From f3702faeddf1c4327028b80b05fb987d908a5221 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Sat, 1 Feb 2025 04:00:43 +0000 Subject: [PATCH] :alien: re-generate openapi models --- githubkit/rest/__init__.py | 90 +- .../ghec_v2022_11_28/models/__init__.py | 9590 ++++++++-------- .../ghec_v2022_11_28/models/group_0002.py | 43 +- .../ghec_v2022_11_28/models/group_0003.py | 186 +- .../ghec_v2022_11_28/models/group_0004.py | 167 +- .../ghec_v2022_11_28/models/group_0005.py | 32 +- .../ghec_v2022_11_28/models/group_0006.py | 17 +- .../ghec_v2022_11_28/models/group_0007.py | 23 +- .../ghec_v2022_11_28/models/group_0008.py | 48 +- .../ghec_v2022_11_28/models/group_0009.py | 34 +- .../ghec_v2022_11_28/models/group_0010.py | 63 +- .../ghec_v2022_11_28/models/group_0011.py | 28 +- .../ghec_v2022_11_28/models/group_0012.py | 63 +- .../ghec_v2022_11_28/models/group_0013.py | 101 +- .../ghec_v2022_11_28/models/group_0014.py | 49 +- .../ghec_v2022_11_28/models/group_0015.py | 100 +- .../ghec_v2022_11_28/models/group_0016.py | 217 +- .../ghec_v2022_11_28/models/group_0017.py | 246 +- .../ghec_v2022_11_28/models/group_0018.py | 56 +- .../ghec_v2022_11_28/models/group_0019.py | 191 +- .../ghec_v2022_11_28/models/group_0020.py | 196 +- .../ghec_v2022_11_28/models/group_0021.py | 31 +- .../ghec_v2022_11_28/models/group_0022.py | 57 +- .../ghec_v2022_11_28/models/group_0023.py | 53 +- .../ghec_v2022_11_28/models/group_0024.py | 106 +- .../ghec_v2022_11_28/models/group_0025.py | 115 +- .../ghec_v2022_11_28/models/group_0026.py | 129 +- .../ghec_v2022_11_28/models/group_0027.py | 277 +- .../ghec_v2022_11_28/models/group_0028.py | 272 +- .../ghec_v2022_11_28/models/group_0029.py | 18 +- .../ghec_v2022_11_28/models/group_0030.py | 34 +- .../ghec_v2022_11_28/models/group_0031.py | 99 +- .../ghec_v2022_11_28/models/group_0032.py | 32 +- .../ghec_v2022_11_28/models/group_0033.py | 34 +- .../ghec_v2022_11_28/models/group_0034.py | 18 +- .../ghec_v2022_11_28/models/group_0035.py | 28 +- .../ghec_v2022_11_28/models/group_0036.py | 37 +- .../ghec_v2022_11_28/models/group_0037.py | 28 +- .../ghec_v2022_11_28/models/group_0038.py | 43 +- .../ghec_v2022_11_28/models/group_0039.py | 30 +- .../ghec_v2022_11_28/models/group_0040.py | 22 +- .../ghec_v2022_11_28/models/group_0041.py | 137 +- .../ghec_v2022_11_28/models/group_0042.py | 23 +- .../ghec_v2022_11_28/models/group_0043.py | 45 +- .../ghec_v2022_11_28/models/group_0044.py | 75 +- .../ghec_v2022_11_28/models/group_0045.py | 48 +- .../ghec_v2022_11_28/models/group_0046.py | 137 +- .../ghec_v2022_11_28/models/group_0047.py | 24 +- .../ghec_v2022_11_28/models/group_0048.py | 58 +- .../ghec_v2022_11_28/models/group_0049.py | 79 +- .../ghec_v2022_11_28/models/group_0050.py | 83 +- .../ghec_v2022_11_28/models/group_0051.py | 139 +- .../ghec_v2022_11_28/models/group_0052.py | 65 +- .../ghec_v2022_11_28/models/group_0053.py | 189 +- .../ghec_v2022_11_28/models/group_0054.py | 25 +- .../ghec_v2022_11_28/models/group_0055.py | 73 +- .../ghec_v2022_11_28/models/group_0056.py | 152 +- .../ghec_v2022_11_28/models/group_0057.py | 72 +- .../ghec_v2022_11_28/models/group_0058.py | 204 +- .../ghec_v2022_11_28/models/group_0059.py | 36 +- .../ghec_v2022_11_28/models/group_0060.py | 52 +- .../ghec_v2022_11_28/models/group_0061.py | 82 +- .../ghec_v2022_11_28/models/group_0062.py | 342 +- .../ghec_v2022_11_28/models/group_0063.py | 111 +- .../ghec_v2022_11_28/models/group_0064.py | 38 +- .../ghec_v2022_11_28/models/group_0065.py | 67 +- .../ghec_v2022_11_28/models/group_0066.py | 133 +- .../ghec_v2022_11_28/models/group_0067.py | 366 +- .../ghec_v2022_11_28/models/group_0068.py | 95 +- .../ghec_v2022_11_28/models/group_0069.py | 41 +- .../ghec_v2022_11_28/models/group_0070.py | 72 +- .../ghec_v2022_11_28/models/group_0071.py | 126 +- .../ghec_v2022_11_28/models/group_0072.py | 75 +- .../ghec_v2022_11_28/models/group_0073.py | 29 +- .../ghec_v2022_11_28/models/group_0074.py | 46 +- .../ghec_v2022_11_28/models/group_0075.py | 33 +- .../ghec_v2022_11_28/models/group_0076.py | 29 +- .../ghec_v2022_11_28/models/group_0077.py | 52 +- .../ghec_v2022_11_28/models/group_0078.py | 41 +- .../ghec_v2022_11_28/models/group_0079.py | 41 +- .../ghec_v2022_11_28/models/group_0080.py | 44 +- .../ghec_v2022_11_28/models/group_0081.py | 28 +- .../ghec_v2022_11_28/models/group_0082.py | 22 +- .../ghec_v2022_11_28/models/group_0083.py | 34 +- .../ghec_v2022_11_28/models/group_0084.py | 20 +- .../ghec_v2022_11_28/models/group_0085.py | 30 +- .../ghec_v2022_11_28/models/group_0086.py | 20 +- .../ghec_v2022_11_28/models/group_0087.py | 107 +- .../ghec_v2022_11_28/models/group_0088.py | 21 +- .../ghec_v2022_11_28/models/group_0089.py | 15 +- .../ghec_v2022_11_28/models/group_0090.py | 49 +- .../ghec_v2022_11_28/models/group_0091.py | 25 +- .../ghec_v2022_11_28/models/group_0092.py | 61 +- .../ghec_v2022_11_28/models/group_0093.py | 28 +- .../ghec_v2022_11_28/models/group_0094.py | 98 +- .../ghec_v2022_11_28/models/group_0095.py | 28 +- .../ghec_v2022_11_28/models/group_0096.py | 23 +- .../ghec_v2022_11_28/models/group_0097.py | 59 +- .../ghec_v2022_11_28/models/group_0098.py | 19 +- .../ghec_v2022_11_28/models/group_0099.py | 58 +- .../ghec_v2022_11_28/models/group_0100.py | 17 +- .../ghec_v2022_11_28/models/group_0101.py | 23 +- .../ghec_v2022_11_28/models/group_0102.py | 28 +- .../ghec_v2022_11_28/models/group_0103.py | 26 +- .../ghec_v2022_11_28/models/group_0104.py | 37 +- .../ghec_v2022_11_28/models/group_0105.py | 26 +- .../ghec_v2022_11_28/models/group_0106.py | 40 +- .../ghec_v2022_11_28/models/group_0107.py | 25 +- .../ghec_v2022_11_28/models/group_0108.py | 25 +- .../ghec_v2022_11_28/models/group_0109.py | 25 +- .../ghec_v2022_11_28/models/group_0110.py | 25 +- .../ghec_v2022_11_28/models/group_0111.py | 19 +- .../ghec_v2022_11_28/models/group_0112.py | 43 +- .../ghec_v2022_11_28/models/group_0113.py | 20 +- .../ghec_v2022_11_28/models/group_0114.py | 38 +- .../ghec_v2022_11_28/models/group_0115.py | 31 +- .../ghec_v2022_11_28/models/group_0116.py | 28 +- .../ghec_v2022_11_28/models/group_0117.py | 17 +- .../ghec_v2022_11_28/models/group_0118.py | 22 +- .../ghec_v2022_11_28/models/group_0119.py | 39 +- .../ghec_v2022_11_28/models/group_0120.py | 23 +- .../ghec_v2022_11_28/models/group_0121.py | 149 +- .../ghec_v2022_11_28/models/group_0122.py | 113 +- .../ghec_v2022_11_28/models/group_0123.py | 93 +- .../ghec_v2022_11_28/models/group_0124.py | 43 +- .../ghec_v2022_11_28/models/group_0125.py | 38 +- .../ghec_v2022_11_28/models/group_0126.py | 27 +- .../ghec_v2022_11_28/models/group_0127.py | 29 +- .../ghec_v2022_11_28/models/group_0128.py | 150 +- .../ghec_v2022_11_28/models/group_0129.py | 115 +- .../ghec_v2022_11_28/models/group_0130.py | 101 +- .../ghec_v2022_11_28/models/group_0131.py | 139 +- .../ghec_v2022_11_28/models/group_0132.py | 68 +- .../ghec_v2022_11_28/models/group_0133.py | 92 +- .../ghec_v2022_11_28/models/group_0134.py | 81 +- .../ghec_v2022_11_28/models/group_0135.py | 76 +- .../ghec_v2022_11_28/models/group_0136.py | 82 +- .../ghec_v2022_11_28/models/group_0137.py | 138 +- .../ghec_v2022_11_28/models/group_0138.py | 102 +- .../ghec_v2022_11_28/models/group_0139.py | 67 +- .../ghec_v2022_11_28/models/group_0140.py | 86 +- .../ghec_v2022_11_28/models/group_0141.py | 92 +- .../ghec_v2022_11_28/models/group_0142.py | 67 +- .../ghec_v2022_11_28/models/group_0143.py | 82 +- .../ghec_v2022_11_28/models/group_0144.py | 144 +- .../ghec_v2022_11_28/models/group_0145.py | 103 +- .../ghec_v2022_11_28/models/group_0146.py | 107 +- .../ghec_v2022_11_28/models/group_0147.py | 155 +- .../ghec_v2022_11_28/models/group_0148.py | 49 +- .../ghec_v2022_11_28/models/group_0149.py | 39 +- .../ghec_v2022_11_28/models/group_0150.py | 49 +- .../ghec_v2022_11_28/models/group_0151.py | 148 +- .../ghec_v2022_11_28/models/group_0152.py | 81 +- .../ghec_v2022_11_28/models/group_0153.py | 99 +- .../ghec_v2022_11_28/models/group_0154.py | 157 +- .../ghec_v2022_11_28/models/group_0155.py | 196 +- .../ghec_v2022_11_28/models/group_0156.py | 43 +- .../ghec_v2022_11_28/models/group_0157.py | 157 +- .../ghec_v2022_11_28/models/group_0158.py | 135 +- .../ghec_v2022_11_28/models/group_0159.py | 81 +- .../ghec_v2022_11_28/models/group_0160.py | 54 +- .../ghec_v2022_11_28/models/group_0161.py | 30 +- .../ghec_v2022_11_28/models/group_0162.py | 180 +- .../ghec_v2022_11_28/models/group_0163.py | 35 +- .../ghec_v2022_11_28/models/group_0164.py | 162 +- .../ghec_v2022_11_28/models/group_0165.py | 49 +- .../ghec_v2022_11_28/models/group_0166.py | 80 +- .../ghec_v2022_11_28/models/group_0167.py | 64 +- .../ghec_v2022_11_28/models/group_0168.py | 28 +- .../ghec_v2022_11_28/models/group_0169.py | 52 +- .../ghec_v2022_11_28/models/group_0170.py | 31 +- .../ghec_v2022_11_28/models/group_0171.py | 37 +- .../ghec_v2022_11_28/models/group_0172.py | 47 +- .../ghec_v2022_11_28/models/group_0173.py | 30 +- .../ghec_v2022_11_28/models/group_0174.py | 34 +- .../ghec_v2022_11_28/models/group_0175.py | 20 +- .../ghec_v2022_11_28/models/group_0176.py | 45 +- .../ghec_v2022_11_28/models/group_0177.py | 47 +- .../ghec_v2022_11_28/models/group_0178.py | 55 +- .../ghec_v2022_11_28/models/group_0179.py | 22 +- .../ghec_v2022_11_28/models/group_0180.py | 62 +- .../ghec_v2022_11_28/models/group_0181.py | 31 +- .../ghec_v2022_11_28/models/group_0182.py | 34 +- .../ghec_v2022_11_28/models/group_0183.py | 51 +- .../ghec_v2022_11_28/models/group_0184.py | 67 +- .../ghec_v2022_11_28/models/group_0185.py | 77 +- .../ghec_v2022_11_28/models/group_0186.py | 98 +- .../ghec_v2022_11_28/models/group_0187.py | 111 +- .../ghec_v2022_11_28/models/group_0188.py | 29 +- .../ghec_v2022_11_28/models/group_0189.py | 50 +- .../ghec_v2022_11_28/models/group_0190.py | 50 +- .../ghec_v2022_11_28/models/group_0191.py | 55 +- .../ghec_v2022_11_28/models/group_0192.py | 64 +- .../ghec_v2022_11_28/models/group_0193.py | 225 +- .../ghec_v2022_11_28/models/group_0194.py | 108 +- .../ghec_v2022_11_28/models/group_0195.py | 93 +- .../ghec_v2022_11_28/models/group_0196.py | 52 +- .../ghec_v2022_11_28/models/group_0197.py | 193 +- .../ghec_v2022_11_28/models/group_0198.py | 41 +- .../ghec_v2022_11_28/models/group_0199.py | 122 +- .../ghec_v2022_11_28/models/group_0200.py | 204 +- .../ghec_v2022_11_28/models/group_0201.py | 64 +- .../ghec_v2022_11_28/models/group_0202.py | 98 +- .../ghec_v2022_11_28/models/group_0203.py | 33 +- .../ghec_v2022_11_28/models/group_0204.py | 209 +- .../ghec_v2022_11_28/models/group_0205.py | 159 +- .../ghec_v2022_11_28/models/group_0206.py | 126 +- .../ghec_v2022_11_28/models/group_0207.py | 45 +- .../ghec_v2022_11_28/models/group_0208.py | 41 +- .../ghec_v2022_11_28/models/group_0209.py | 28 +- .../ghec_v2022_11_28/models/group_0210.py | 24 +- .../ghec_v2022_11_28/models/group_0211.py | 60 +- .../ghec_v2022_11_28/models/group_0212.py | 166 +- .../ghec_v2022_11_28/models/group_0213.py | 46 +- .../ghec_v2022_11_28/models/group_0214.py | 97 +- .../ghec_v2022_11_28/models/group_0215.py | 25 +- .../ghec_v2022_11_28/models/group_0216.py | 20 +- .../ghec_v2022_11_28/models/group_0217.py | 26 +- .../ghec_v2022_11_28/models/group_0218.py | 34 +- .../ghec_v2022_11_28/models/group_0219.py | 44 +- .../ghec_v2022_11_28/models/group_0220.py | 70 +- .../ghec_v2022_11_28/models/group_0221.py | 114 +- .../ghec_v2022_11_28/models/group_0222.py | 106 +- .../ghec_v2022_11_28/models/group_0223.py | 50 +- .../ghec_v2022_11_28/models/group_0224.py | 20 +- .../ghec_v2022_11_28/models/group_0225.py | 22 +- .../ghec_v2022_11_28/models/group_0226.py | 58 +- .../ghec_v2022_11_28/models/group_0227.py | 96 +- .../ghec_v2022_11_28/models/group_0228.py | 110 +- .../ghec_v2022_11_28/models/group_0229.py | 130 +- .../ghec_v2022_11_28/models/group_0230.py | 63 +- .../ghec_v2022_11_28/models/group_0231.py | 21 +- .../ghec_v2022_11_28/models/group_0232.py | 26 +- .../ghec_v2022_11_28/models/group_0233.py | 70 +- .../ghec_v2022_11_28/models/group_0234.py | 73 +- .../ghec_v2022_11_28/models/group_0235.py | 212 +- .../ghec_v2022_11_28/models/group_0236.py | 188 +- .../ghec_v2022_11_28/models/group_0237.py | 50 +- .../ghec_v2022_11_28/models/group_0238.py | 23 +- .../ghec_v2022_11_28/models/group_0239.py | 26 +- .../ghec_v2022_11_28/models/group_0240.py | 53 +- .../ghec_v2022_11_28/models/group_0241.py | 81 +- .../ghec_v2022_11_28/models/group_0242.py | 147 +- .../ghec_v2022_11_28/models/group_0243.py | 183 +- .../ghec_v2022_11_28/models/group_0244.py | 162 +- .../ghec_v2022_11_28/models/group_0245.py | 43 +- .../ghec_v2022_11_28/models/group_0246.py | 43 +- .../ghec_v2022_11_28/models/group_0247.py | 57 +- .../ghec_v2022_11_28/models/group_0248.py | 117 +- .../ghec_v2022_11_28/models/group_0249.py | 42 +- .../ghec_v2022_11_28/models/group_0250.py | 82 +- .../ghec_v2022_11_28/models/group_0251.py | 165 +- .../ghec_v2022_11_28/models/group_0252.py | 67 +- .../ghec_v2022_11_28/models/group_0253.py | 126 +- .../ghec_v2022_11_28/models/group_0254.py | 49 +- .../ghec_v2022_11_28/models/group_0255.py | 80 +- .../ghec_v2022_11_28/models/group_0256.py | 30 +- .../ghec_v2022_11_28/models/group_0257.py | 100 +- .../ghec_v2022_11_28/models/group_0258.py | 45 +- .../ghec_v2022_11_28/models/group_0259.py | 63 +- .../ghec_v2022_11_28/models/group_0260.py | 102 +- .../ghec_v2022_11_28/models/group_0261.py | 22 +- .../ghec_v2022_11_28/models/group_0262.py | 60 +- .../ghec_v2022_11_28/models/group_0263.py | 33 +- .../ghec_v2022_11_28/models/group_0264.py | 68 +- .../ghec_v2022_11_28/models/group_0265.py | 49 +- .../ghec_v2022_11_28/models/group_0266.py | 62 +- .../ghec_v2022_11_28/models/group_0267.py | 55 +- .../ghec_v2022_11_28/models/group_0268.py | 23 +- .../ghec_v2022_11_28/models/group_0269.py | 61 +- .../ghec_v2022_11_28/models/group_0270.py | 32 +- .../ghec_v2022_11_28/models/group_0271.py | 50 +- .../ghec_v2022_11_28/models/group_0272.py | 61 +- .../ghec_v2022_11_28/models/group_0273.py | 53 +- .../ghec_v2022_11_28/models/group_0274.py | 58 +- .../ghec_v2022_11_28/models/group_0275.py | 70 +- .../ghec_v2022_11_28/models/group_0276.py | 62 +- .../ghec_v2022_11_28/models/group_0277.py | 41 +- .../ghec_v2022_11_28/models/group_0278.py | 41 +- .../ghec_v2022_11_28/models/group_0279.py | 44 +- .../ghec_v2022_11_28/models/group_0280.py | 92 +- .../ghec_v2022_11_28/models/group_0281.py | 53 +- .../ghec_v2022_11_28/models/group_0282.py | 73 +- .../ghec_v2022_11_28/models/group_0283.py | 72 +- .../ghec_v2022_11_28/models/group_0284.py | 37 +- .../ghec_v2022_11_28/models/group_0285.py | 50 +- .../ghec_v2022_11_28/models/group_0286.py | 40 +- .../ghec_v2022_11_28/models/group_0287.py | 132 +- .../ghec_v2022_11_28/models/group_0288.py | 45 +- .../ghec_v2022_11_28/models/group_0289.py | 49 +- .../ghec_v2022_11_28/models/group_0290.py | 55 +- .../ghec_v2022_11_28/models/group_0291.py | 46 +- .../ghec_v2022_11_28/models/group_0292.py | 130 +- .../ghec_v2022_11_28/models/group_0293.py | 72 +- .../ghec_v2022_11_28/models/group_0294.py | 81 +- .../ghec_v2022_11_28/models/group_0295.py | 93 +- .../ghec_v2022_11_28/models/group_0296.py | 54 +- .../ghec_v2022_11_28/models/group_0297.py | 47 +- .../ghec_v2022_11_28/models/group_0298.py | 176 +- .../ghec_v2022_11_28/models/group_0299.py | 121 +- .../ghec_v2022_11_28/models/group_0300.py | 77 +- .../ghec_v2022_11_28/models/group_0301.py | 73 +- .../ghec_v2022_11_28/models/group_0302.py | 108 +- .../ghec_v2022_11_28/models/group_0303.py | 47 +- .../ghec_v2022_11_28/models/group_0304.py | 43 +- .../ghec_v2022_11_28/models/group_0305.py | 189 +- .../ghec_v2022_11_28/models/group_0306.py | 32 +- .../ghec_v2022_11_28/models/group_0307.py | 37 +- .../ghec_v2022_11_28/models/group_0308.py | 48 +- .../ghec_v2022_11_28/models/group_0309.py | 83 +- .../ghec_v2022_11_28/models/group_0310.py | 53 +- .../ghec_v2022_11_28/models/group_0311.py | 52 +- .../ghec_v2022_11_28/models/group_0312.py | 84 +- .../ghec_v2022_11_28/models/group_0313.py | 37 +- .../ghec_v2022_11_28/models/group_0314.py | 90 +- .../ghec_v2022_11_28/models/group_0315.py | 37 +- .../ghec_v2022_11_28/models/group_0316.py | 48 +- .../ghec_v2022_11_28/models/group_0317.py | 43 +- .../ghec_v2022_11_28/models/group_0318.py | 55 +- .../ghec_v2022_11_28/models/group_0319.py | 38 +- .../ghec_v2022_11_28/models/group_0320.py | 69 +- .../ghec_v2022_11_28/models/group_0321.py | 91 +- .../ghec_v2022_11_28/models/group_0322.py | 30 +- .../ghec_v2022_11_28/models/group_0323.py | 149 +- .../ghec_v2022_11_28/models/group_0324.py | 47 +- .../ghec_v2022_11_28/models/group_0325.py | 40 +- .../ghec_v2022_11_28/models/group_0326.py | 51 +- .../ghec_v2022_11_28/models/group_0327.py | 78 +- .../ghec_v2022_11_28/models/group_0328.py | 38 +- .../ghec_v2022_11_28/models/group_0329.py | 39 +- .../ghec_v2022_11_28/models/group_0330.py | 137 +- .../ghec_v2022_11_28/models/group_0331.py | 48 +- .../ghec_v2022_11_28/models/group_0332.py | 48 +- .../ghec_v2022_11_28/models/group_0333.py | 41 +- .../ghec_v2022_11_28/models/group_0334.py | 21 +- .../ghec_v2022_11_28/models/group_0335.py | 37 +- .../ghec_v2022_11_28/models/group_0336.py | 37 +- .../ghec_v2022_11_28/models/group_0337.py | 38 +- .../ghec_v2022_11_28/models/group_0338.py | 47 +- .../ghec_v2022_11_28/models/group_0339.py | 61 +- .../ghec_v2022_11_28/models/group_0340.py | 47 +- .../ghec_v2022_11_28/models/group_0341.py | 34 +- .../ghec_v2022_11_28/models/group_0342.py | 97 +- .../ghec_v2022_11_28/models/group_0343.py | 80 +- .../ghec_v2022_11_28/models/group_0344.py | 162 +- .../ghec_v2022_11_28/models/group_0345.py | 42 +- .../ghec_v2022_11_28/models/group_0346.py | 58 +- .../ghec_v2022_11_28/models/group_0347.py | 34 +- .../ghec_v2022_11_28/models/group_0348.py | 29 +- .../ghec_v2022_11_28/models/group_0349.py | 94 +- .../ghec_v2022_11_28/models/group_0350.py | 85 +- .../ghec_v2022_11_28/models/group_0351.py | 151 +- .../ghec_v2022_11_28/models/group_0352.py | 94 +- .../ghec_v2022_11_28/models/group_0353.py | 42 +- .../ghec_v2022_11_28/models/group_0354.py | 27 +- .../ghec_v2022_11_28/models/group_0355.py | 30 +- .../ghec_v2022_11_28/models/group_0356.py | 33 +- .../ghec_v2022_11_28/models/group_0357.py | 119 +- .../ghec_v2022_11_28/models/group_0358.py | 98 +- .../ghec_v2022_11_28/models/group_0359.py | 91 +- .../ghec_v2022_11_28/models/group_0360.py | 42 +- .../ghec_v2022_11_28/models/group_0361.py | 21 +- .../ghec_v2022_11_28/models/group_0362.py | 27 +- .../ghec_v2022_11_28/models/group_0363.py | 35 +- .../ghec_v2022_11_28/models/group_0364.py | 143 +- .../ghec_v2022_11_28/models/group_0365.py | 108 +- .../ghec_v2022_11_28/models/group_0366.py | 22 +- .../ghec_v2022_11_28/models/group_0367.py | 49 +- .../ghec_v2022_11_28/models/group_0368.py | 59 +- .../ghec_v2022_11_28/models/group_0369.py | 17 +- .../ghec_v2022_11_28/models/group_0370.py | 31 +- .../ghec_v2022_11_28/models/group_0371.py | 78 +- .../ghec_v2022_11_28/models/group_0372.py | 79 +- .../ghec_v2022_11_28/models/group_0373.py | 29 +- .../ghec_v2022_11_28/models/group_0374.py | 43 +- .../ghec_v2022_11_28/models/group_0375.py | 56 +- .../ghec_v2022_11_28/models/group_0376.py | 32 +- .../ghec_v2022_11_28/models/group_0377.py | 13 +- .../ghec_v2022_11_28/models/group_0378.py | 13 +- .../ghec_v2022_11_28/models/group_0379.py | 16 +- .../ghec_v2022_11_28/models/group_0380.py | 10 +- .../ghec_v2022_11_28/models/group_0381.py | 15 +- .../ghec_v2022_11_28/models/group_0382.py | 16 +- .../ghec_v2022_11_28/models/group_0383.py | 14 +- .../ghec_v2022_11_28/models/group_0384.py | 15 +- .../ghec_v2022_11_28/models/group_0385.py | 16 +- .../ghec_v2022_11_28/models/group_0386.py | 16 +- .../ghec_v2022_11_28/models/group_0387.py | 13 +- .../ghec_v2022_11_28/models/group_0388.py | 93 +- .../ghec_v2022_11_28/models/group_0389.py | 30 +- .../ghec_v2022_11_28/models/group_0390.py | 72 +- .../ghec_v2022_11_28/models/group_0391.py | 28 +- .../ghec_v2022_11_28/models/group_0392.py | 121 +- .../ghec_v2022_11_28/models/group_0393.py | 94 +- .../ghec_v2022_11_28/models/group_0394.py | 132 +- .../ghec_v2022_11_28/models/group_0395.py | 98 +- .../ghec_v2022_11_28/models/group_0396.py | 29 +- .../ghec_v2022_11_28/models/group_0397.py | 80 +- .../ghec_v2022_11_28/models/group_0398.py | 19 +- .../ghec_v2022_11_28/models/group_0399.py | 128 +- .../ghec_v2022_11_28/models/group_0400.py | 114 +- .../ghec_v2022_11_28/models/group_0401.py | 133 +- .../ghec_v2022_11_28/models/group_0402.py | 18 +- .../ghec_v2022_11_28/models/group_0403.py | 19 +- .../ghec_v2022_11_28/models/group_0404.py | 35 +- .../ghec_v2022_11_28/models/group_0405.py | 17 +- .../ghec_v2022_11_28/models/group_0406.py | 26 +- .../ghec_v2022_11_28/models/group_0407.py | 31 +- .../ghec_v2022_11_28/models/group_0408.py | 61 +- .../ghec_v2022_11_28/models/group_0409.py | 35 +- .../ghec_v2022_11_28/models/group_0410.py | 83 +- .../ghec_v2022_11_28/models/group_0411.py | 38 +- .../ghec_v2022_11_28/models/group_0412.py | 39 +- .../ghec_v2022_11_28/models/group_0413.py | 35 +- .../ghec_v2022_11_28/models/group_0414.py | 41 +- .../ghec_v2022_11_28/models/group_0415.py | 62 +- .../ghec_v2022_11_28/models/group_0416.py | 42 +- .../ghec_v2022_11_28/models/group_0417.py | 65 +- .../ghec_v2022_11_28/models/group_0418.py | 37 +- .../ghec_v2022_11_28/models/group_0419.py | 39 +- .../ghec_v2022_11_28/models/group_0420.py | 64 +- .../ghec_v2022_11_28/models/group_0421.py | 148 +- .../ghec_v2022_11_28/models/group_0422.py | 45 +- .../ghec_v2022_11_28/models/group_0423.py | 67 +- .../ghec_v2022_11_28/models/group_0424.py | 108 +- .../ghec_v2022_11_28/models/group_0425.py | 51 +- .../ghec_v2022_11_28/models/group_0426.py | 128 +- .../ghec_v2022_11_28/models/group_0427.py | 75 +- .../ghec_v2022_11_28/models/group_0428.py | 237 +- .../ghec_v2022_11_28/models/group_0429.py | 96 +- .../ghec_v2022_11_28/models/group_0430.py | 65 +- .../ghec_v2022_11_28/models/group_0431.py | 107 +- .../ghec_v2022_11_28/models/group_0432.py | 47 +- .../ghec_v2022_11_28/models/group_0433.py | 133 +- .../ghec_v2022_11_28/models/group_0434.py | 162 +- .../ghec_v2022_11_28/models/group_0435.py | 141 +- .../ghec_v2022_11_28/models/group_0436.py | 120 +- .../ghec_v2022_11_28/models/group_0437.py | 67 +- .../ghec_v2022_11_28/models/group_0438.py | 90 +- .../ghec_v2022_11_28/models/group_0439.py | 14 +- .../ghec_v2022_11_28/models/group_0440.py | 43 +- .../ghec_v2022_11_28/models/group_0441.py | 155 +- .../ghec_v2022_11_28/models/group_0442.py | 28 +- .../ghec_v2022_11_28/models/group_0443.py | 71 +- .../ghec_v2022_11_28/models/group_0444.py | 45 +- .../ghec_v2022_11_28/models/group_0445.py | 56 +- .../ghec_v2022_11_28/models/group_0446.py | 27 +- .../ghec_v2022_11_28/models/group_0447.py | 367 +- .../ghec_v2022_11_28/models/group_0448.py | 74 +- .../ghec_v2022_11_28/models/group_0449.py | 55 +- .../ghec_v2022_11_28/models/group_0450.py | 174 +- .../ghec_v2022_11_28/models/group_0451.py | 70 +- .../ghec_v2022_11_28/models/group_0452.py | 81 +- .../ghec_v2022_11_28/models/group_0453.py | 34 +- .../ghec_v2022_11_28/models/group_0454.py | 370 +- .../ghec_v2022_11_28/models/group_0455.py | 125 +- .../ghec_v2022_11_28/models/group_0456.py | 58 +- .../ghec_v2022_11_28/models/group_0457.py | 199 +- .../ghec_v2022_11_28/models/group_0458.py | 121 +- .../ghec_v2022_11_28/models/group_0459.py | 210 +- .../ghec_v2022_11_28/models/group_0460.py | 91 +- .../ghec_v2022_11_28/models/group_0461.py | 25 +- .../ghec_v2022_11_28/models/group_0462.py | 77 +- .../ghec_v2022_11_28/models/group_0463.py | 21 +- .../ghec_v2022_11_28/models/group_0464.py | 70 +- .../ghec_v2022_11_28/models/group_0465.py | 102 +- .../ghec_v2022_11_28/models/group_0466.py | 344 +- .../ghec_v2022_11_28/models/group_0467.py | 74 +- .../ghec_v2022_11_28/models/group_0468.py | 376 +- .../ghec_v2022_11_28/models/group_0469.py | 53 +- .../ghec_v2022_11_28/models/group_0470.py | 50 +- .../ghec_v2022_11_28/models/group_0471.py | 129 +- .../ghec_v2022_11_28/models/group_0472.py | 71 +- .../ghec_v2022_11_28/models/group_0473.py | 401 +- .../ghec_v2022_11_28/models/group_0474.py | 18 +- .../ghec_v2022_11_28/models/group_0475.py | 361 +- .../ghec_v2022_11_28/models/group_0476.py | 208 +- .../ghec_v2022_11_28/models/group_0477.py | 88 +- .../ghec_v2022_11_28/models/group_0478.py | 86 +- .../ghec_v2022_11_28/models/group_0479.py | 69 +- .../ghec_v2022_11_28/models/group_0480.py | 42 +- .../ghec_v2022_11_28/models/group_0481.py | 74 +- .../ghec_v2022_11_28/models/group_0482.py | 68 +- .../ghec_v2022_11_28/models/group_0483.py | 196 +- .../ghec_v2022_11_28/models/group_0484.py | 168 +- .../ghec_v2022_11_28/models/group_0485.py | 90 +- .../ghec_v2022_11_28/models/group_0486.py | 1062 +- .../ghec_v2022_11_28/models/group_0487.py | 183 +- .../ghec_v2022_11_28/models/group_0488.py | 106 +- .../ghec_v2022_11_28/models/group_0489.py | 146 +- .../ghec_v2022_11_28/models/group_0490.py | 148 +- .../ghec_v2022_11_28/models/group_0491.py | 168 +- .../ghec_v2022_11_28/models/group_0492.py | 99 +- .../ghec_v2022_11_28/models/group_0493.py | 1094 +- .../ghec_v2022_11_28/models/group_0494.py | 208 +- .../ghec_v2022_11_28/models/group_0495.py | 111 +- .../ghec_v2022_11_28/models/group_0496.py | 170 +- .../ghec_v2022_11_28/models/group_0497.py | 159 +- .../ghec_v2022_11_28/models/group_0498.py | 86 +- .../ghec_v2022_11_28/models/group_0499.py | 106 +- .../ghec_v2022_11_28/models/group_0500.py | 140 +- .../ghec_v2022_11_28/models/group_0501.py | 310 +- .../ghec_v2022_11_28/models/group_0502.py | 75 +- .../ghec_v2022_11_28/models/group_0503.py | 81 +- .../ghec_v2022_11_28/models/group_0504.py | 28 +- .../ghec_v2022_11_28/models/group_0505.py | 33 +- .../ghec_v2022_11_28/models/group_0506.py | 36 +- .../ghec_v2022_11_28/models/group_0507.py | 32 +- .../ghec_v2022_11_28/models/group_0508.py | 211 +- .../ghec_v2022_11_28/models/group_0509.py | 35 +- .../ghec_v2022_11_28/models/group_0510.py | 47 +- .../ghec_v2022_11_28/models/group_0511.py | 52 +- .../ghec_v2022_11_28/models/group_0512.py | 52 +- .../ghec_v2022_11_28/models/group_0513.py | 40 +- .../ghec_v2022_11_28/models/group_0514.py | 40 +- .../ghec_v2022_11_28/models/group_0515.py | 345 +- .../ghec_v2022_11_28/models/group_0516.py | 334 +- .../ghec_v2022_11_28/models/group_0517.py | 345 +- .../ghec_v2022_11_28/models/group_0518.py | 211 +- .../ghec_v2022_11_28/models/group_0519.py | 220 +- .../ghec_v2022_11_28/models/group_0520.py | 179 +- .../ghec_v2022_11_28/models/group_0521.py | 217 +- .../ghec_v2022_11_28/models/group_0522.py | 398 +- .../ghec_v2022_11_28/models/group_0523.py | 388 +- .../ghec_v2022_11_28/models/group_0524.py | 341 +- .../ghec_v2022_11_28/models/group_0525.py | 211 +- .../ghec_v2022_11_28/models/group_0526.py | 211 +- .../ghec_v2022_11_28/models/group_0527.py | 178 +- .../ghec_v2022_11_28/models/group_0528.py | 208 +- .../ghec_v2022_11_28/models/group_0529.py | 192 +- .../ghec_v2022_11_28/models/group_0530.py | 173 +- .../ghec_v2022_11_28/models/group_0531.py | 137 +- .../ghec_v2022_11_28/models/group_0532.py | 46 +- .../ghec_v2022_11_28/models/group_0533.py | 40 +- .../ghec_v2022_11_28/models/group_0534.py | 48 +- .../ghec_v2022_11_28/models/group_0535.py | 42 +- .../ghec_v2022_11_28/models/group_0536.py | 50 +- .../ghec_v2022_11_28/models/group_0537.py | 38 +- .../ghec_v2022_11_28/models/group_0538.py | 36 +- .../ghec_v2022_11_28/models/group_0539.py | 36 +- .../ghec_v2022_11_28/models/group_0540.py | 599 +- .../ghec_v2022_11_28/models/group_0541.py | 58 +- .../ghec_v2022_11_28/models/group_0542.py | 458 +- .../ghec_v2022_11_28/models/group_0543.py | 458 +- .../ghec_v2022_11_28/models/group_0544.py | 496 +- .../ghec_v2022_11_28/models/group_0545.py | 856 +- .../ghec_v2022_11_28/models/group_0546.py | 36 +- .../ghec_v2022_11_28/models/group_0547.py | 596 +- .../ghec_v2022_11_28/models/group_0548.py | 58 +- .../ghec_v2022_11_28/models/group_0549.py | 452 +- .../ghec_v2022_11_28/models/group_0550.py | 452 +- .../ghec_v2022_11_28/models/group_0551.py | 493 +- .../ghec_v2022_11_28/models/group_0552.py | 854 +- .../ghec_v2022_11_28/models/group_0553.py | 24 +- .../ghec_v2022_11_28/models/group_0554.py | 67 +- .../ghec_v2022_11_28/models/group_0555.py | 24 +- .../ghec_v2022_11_28/models/group_0556.py | 24 +- .../ghec_v2022_11_28/models/group_0557.py | 24 +- .../ghec_v2022_11_28/models/group_0558.py | 43 +- .../ghec_v2022_11_28/models/group_0559.py | 24 +- .../ghec_v2022_11_28/models/group_0560.py | 41 +- .../ghec_v2022_11_28/models/group_0561.py | 64 +- .../ghec_v2022_11_28/models/group_0562.py | 24 +- .../ghec_v2022_11_28/models/group_0563.py | 22 +- .../ghec_v2022_11_28/models/group_0564.py | 22 +- .../ghec_v2022_11_28/models/group_0565.py | 32 +- .../ghec_v2022_11_28/models/group_0566.py | 195 +- .../ghec_v2022_11_28/models/group_0567.py | 183 +- .../ghec_v2022_11_28/models/group_0568.py | 48 +- .../ghec_v2022_11_28/models/group_0569.py | 154 +- .../ghec_v2022_11_28/models/group_0570.py | 49 +- .../ghec_v2022_11_28/models/group_0571.py | 45 +- .../ghec_v2022_11_28/models/group_0572.py | 44 +- .../ghec_v2022_11_28/models/group_0573.py | 192 +- .../ghec_v2022_11_28/models/group_0574.py | 193 +- .../ghec_v2022_11_28/models/group_0575.py | 71 +- .../ghec_v2022_11_28/models/group_0576.py | 175 +- .../ghec_v2022_11_28/models/group_0577.py | 48 +- .../ghec_v2022_11_28/models/group_0578.py | 117 +- .../ghec_v2022_11_28/models/group_0579.py | 27 +- .../ghec_v2022_11_28/models/group_0580.py | 44 +- .../ghec_v2022_11_28/models/group_0581.py | 115 +- .../ghec_v2022_11_28/models/group_0582.py | 200 +- .../ghec_v2022_11_28/models/group_0583.py | 211 +- .../ghec_v2022_11_28/models/group_0584.py | 91 +- .../ghec_v2022_11_28/models/group_0585.py | 109 +- .../ghec_v2022_11_28/models/group_0586.py | 80 +- .../ghec_v2022_11_28/models/group_0587.py | 122 +- .../ghec_v2022_11_28/models/group_0588.py | 110 +- .../ghec_v2022_11_28/models/group_0589.py | 165 +- .../ghec_v2022_11_28/models/group_0590.py | 217 +- .../ghec_v2022_11_28/models/group_0591.py | 78 +- .../ghec_v2022_11_28/models/group_0592.py | 61 +- .../ghec_v2022_11_28/models/group_0593.py | 72 +- .../ghec_v2022_11_28/models/group_0594.py | 190 +- .../ghec_v2022_11_28/models/group_0595.py | 194 +- .../ghec_v2022_11_28/models/group_0596.py | 70 +- .../ghec_v2022_11_28/models/group_0597.py | 132 +- .../ghec_v2022_11_28/models/group_0598.py | 17 +- .../ghec_v2022_11_28/models/group_0599.py | 113 +- .../ghec_v2022_11_28/models/group_0600.py | 73 +- .../ghec_v2022_11_28/models/group_0601.py | 165 +- .../ghec_v2022_11_28/models/group_0602.py | 216 +- .../ghec_v2022_11_28/models/group_0603.py | 78 +- .../ghec_v2022_11_28/models/group_0604.py | 61 +- .../ghec_v2022_11_28/models/group_0605.py | 74 +- .../ghec_v2022_11_28/models/group_0606.py | 186 +- .../ghec_v2022_11_28/models/group_0607.py | 194 +- .../ghec_v2022_11_28/models/group_0608.py | 70 +- .../ghec_v2022_11_28/models/group_0609.py | 133 +- .../ghec_v2022_11_28/models/group_0610.py | 17 +- .../ghec_v2022_11_28/models/group_0611.py | 114 +- .../ghec_v2022_11_28/models/group_0612.py | 74 +- .../ghec_v2022_11_28/models/group_0613.py | 165 +- .../ghec_v2022_11_28/models/group_0614.py | 217 +- .../ghec_v2022_11_28/models/group_0615.py | 76 +- .../ghec_v2022_11_28/models/group_0616.py | 60 +- .../ghec_v2022_11_28/models/group_0617.py | 80 +- .../ghec_v2022_11_28/models/group_0618.py | 116 +- .../ghec_v2022_11_28/models/group_0619.py | 221 +- .../ghec_v2022_11_28/models/group_0620.py | 223 +- .../ghec_v2022_11_28/models/group_0621.py | 132 +- .../ghec_v2022_11_28/models/group_0622.py | 19 +- .../ghec_v2022_11_28/models/group_0623.py | 109 +- .../ghec_v2022_11_28/models/group_0624.py | 70 +- .../ghec_v2022_11_28/models/group_0625.py | 69 +- .../ghec_v2022_11_28/models/group_0626.py | 239 +- .../ghec_v2022_11_28/models/group_0627.py | 219 +- .../ghec_v2022_11_28/models/group_0628.py | 60 +- .../ghec_v2022_11_28/models/group_0629.py | 412 +- .../ghec_v2022_11_28/models/group_0630.py | 376 +- .../ghec_v2022_11_28/models/group_0631.py | 451 +- .../ghec_v2022_11_28/models/group_0632.py | 432 +- .../ghec_v2022_11_28/models/group_0633.py | 457 +- .../ghec_v2022_11_28/models/group_0634.py | 423 +- .../ghec_v2022_11_28/models/group_0635.py | 1045 +- .../ghec_v2022_11_28/models/group_0636.py | 416 +- .../ghec_v2022_11_28/models/group_0637.py | 160 +- .../ghec_v2022_11_28/models/group_0638.py | 442 +- .../ghec_v2022_11_28/models/group_0639.py | 430 +- .../ghec_v2022_11_28/models/group_0640.py | 417 +- .../ghec_v2022_11_28/models/group_0641.py | 151 +- .../ghec_v2022_11_28/models/group_0642.py | 1043 +- .../ghec_v2022_11_28/models/group_0643.py | 31 +- .../ghec_v2022_11_28/models/group_0644.py | 428 +- .../ghec_v2022_11_28/models/group_0645.py | 678 +- .../ghec_v2022_11_28/models/group_0646.py | 41 +- .../ghec_v2022_11_28/models/group_0647.py | 90 +- .../ghec_v2022_11_28/models/group_0648.py | 445 +- .../ghec_v2022_11_28/models/group_0649.py | 92 +- .../ghec_v2022_11_28/models/group_0650.py | 38 +- .../ghec_v2022_11_28/models/group_0651.py | 71 +- .../ghec_v2022_11_28/models/group_0652.py | 79 +- .../ghec_v2022_11_28/models/group_0653.py | 36 +- .../ghec_v2022_11_28/models/group_0654.py | 113 +- .../ghec_v2022_11_28/models/group_0655.py | 119 +- .../ghec_v2022_11_28/models/group_0656.py | 97 +- .../ghec_v2022_11_28/models/group_0657.py | 40 +- .../ghec_v2022_11_28/models/group_0658.py | 90 +- .../ghec_v2022_11_28/models/group_0659.py | 70 +- .../ghec_v2022_11_28/models/group_0660.py | 29 +- .../ghec_v2022_11_28/models/group_0661.py | 75 +- .../ghec_v2022_11_28/models/group_0662.py | 120 +- .../ghec_v2022_11_28/models/group_0663.py | 39 +- .../ghec_v2022_11_28/models/group_0664.py | 40 +- .../ghec_v2022_11_28/models/group_0665.py | 69 +- .../ghec_v2022_11_28/models/group_0666.py | 35 +- .../ghec_v2022_11_28/models/group_0667.py | 34 +- .../ghec_v2022_11_28/models/group_0668.py | 92 +- .../ghec_v2022_11_28/models/group_0669.py | 87 +- .../ghec_v2022_11_28/models/group_0670.py | 56 +- .../ghec_v2022_11_28/models/group_0671.py | 73 +- .../ghec_v2022_11_28/models/group_0672.py | 31 +- .../ghec_v2022_11_28/models/group_0673.py | 103 +- .../ghec_v2022_11_28/models/group_0674.py | 598 +- .../ghec_v2022_11_28/models/group_0675.py | 93 +- .../ghec_v2022_11_28/models/group_0676.py | 112 +- .../ghec_v2022_11_28/models/group_0677.py | 225 +- .../ghec_v2022_11_28/models/group_0678.py | 114 +- .../ghec_v2022_11_28/models/group_0679.py | 45 +- .../ghec_v2022_11_28/models/group_0680.py | 95 +- .../ghec_v2022_11_28/models/group_0681.py | 592 +- .../ghec_v2022_11_28/models/group_0682.py | 46 +- .../ghec_v2022_11_28/models/group_0683.py | 105 +- .../ghec_v2022_11_28/models/group_0684.py | 213 +- .../ghec_v2022_11_28/models/group_0685.py | 102 +- .../ghec_v2022_11_28/models/group_0686.py | 62 +- .../ghec_v2022_11_28/models/group_0687.py | 43 +- .../ghec_v2022_11_28/models/group_0688.py | 95 +- .../ghec_v2022_11_28/models/group_0689.py | 66 +- .../ghec_v2022_11_28/models/group_0690.py | 107 +- .../ghec_v2022_11_28/models/group_0691.py | 93 +- .../ghec_v2022_11_28/models/group_0692.py | 57 +- .../ghec_v2022_11_28/models/group_0693.py | 43 +- .../ghec_v2022_11_28/models/group_0694.py | 26 +- .../ghec_v2022_11_28/models/group_0695.py | 79 +- .../ghec_v2022_11_28/models/group_0696.py | 50 +- .../ghec_v2022_11_28/models/group_0697.py | 94 +- .../ghec_v2022_11_28/models/group_0698.py | 85 +- .../ghec_v2022_11_28/models/group_0699.py | 89 +- .../ghec_v2022_11_28/models/group_0700.py | 66 +- .../ghec_v2022_11_28/models/group_0701.py | 28 +- .../ghec_v2022_11_28/models/group_0702.py | 37 +- .../ghec_v2022_11_28/models/group_0703.py | 61 +- .../ghec_v2022_11_28/models/group_0704.py | 35 +- .../ghec_v2022_11_28/models/group_0705.py | 95 +- .../ghec_v2022_11_28/models/group_0706.py | 39 +- .../ghec_v2022_11_28/models/group_0707.py | 85 +- .../ghec_v2022_11_28/models/group_0708.py | 35 +- .../ghec_v2022_11_28/models/group_0709.py | 22 +- .../ghec_v2022_11_28/models/group_0710.py | 108 +- .../ghec_v2022_11_28/models/group_0711.py | 48 +- .../ghec_v2022_11_28/models/group_0712.py | 84 +- .../ghec_v2022_11_28/models/group_0713.py | 24 +- .../ghec_v2022_11_28/models/group_0714.py | 47 +- .../ghec_v2022_11_28/models/group_0715.py | 23 +- .../ghec_v2022_11_28/models/group_0716.py | 90 +- .../ghec_v2022_11_28/models/group_0717.py | 110 +- .../ghec_v2022_11_28/models/group_0718.py | 1156 +- .../ghec_v2022_11_28/models/group_0719.py | 1211 +-- .../ghec_v2022_11_28/models/group_0720.py | 1201 +-- .../ghec_v2022_11_28/models/group_0721.py | 36 +- .../ghec_v2022_11_28/models/group_0722.py | 36 +- .../ghec_v2022_11_28/models/group_0723.py | 109 +- .../ghec_v2022_11_28/models/group_0724.py | 1151 +- .../ghec_v2022_11_28/models/group_0725.py | 1164 +- .../ghec_v2022_11_28/models/group_0726.py | 455 +- .../ghec_v2022_11_28/models/group_0727.py | 490 +- .../ghec_v2022_11_28/models/group_0728.py | 1130 +- .../ghec_v2022_11_28/models/group_0729.py | 34 +- .../ghec_v2022_11_28/models/group_0730.py | 34 +- .../ghec_v2022_11_28/models/group_0731.py | 1155 +- .../ghec_v2022_11_28/models/group_0732.py | 91 +- .../ghec_v2022_11_28/models/group_0733.py | 789 +- .../ghec_v2022_11_28/models/group_0734.py | 569 +- .../ghec_v2022_11_28/models/group_0735.py | 553 +- .../ghec_v2022_11_28/models/group_0736.py | 1239 +-- .../ghec_v2022_11_28/models/group_0737.py | 1075 +- .../ghec_v2022_11_28/models/group_0738.py | 1282 +-- .../ghec_v2022_11_28/models/group_0739.py | 1306 +-- .../ghec_v2022_11_28/models/group_0740.py | 644 +- .../ghec_v2022_11_28/models/group_0741.py | 540 +- .../ghec_v2022_11_28/models/group_0742.py | 420 +- .../ghec_v2022_11_28/models/group_0743.py | 746 +- .../ghec_v2022_11_28/models/group_0744.py | 764 +- .../ghec_v2022_11_28/models/group_0745.py | 530 +- .../ghec_v2022_11_28/models/group_0746.py | 622 +- .../ghec_v2022_11_28/models/group_0747.py | 548 +- .../ghec_v2022_11_28/models/group_0748.py | 580 +- .../ghec_v2022_11_28/models/group_0749.py | 1076 +- .../ghec_v2022_11_28/models/group_0750.py | 1341 ++- .../ghec_v2022_11_28/models/group_0751.py | 1367 ++- .../ghec_v2022_11_28/models/group_0752.py | 1514 ++- .../ghec_v2022_11_28/models/group_0753.py | 1170 +- .../ghec_v2022_11_28/models/group_0754.py | 1178 +- .../ghec_v2022_11_28/models/group_0755.py | 1218 ++- .../ghec_v2022_11_28/models/group_0756.py | 397 +- .../ghec_v2022_11_28/models/group_0757.py | 30 +- .../ghec_v2022_11_28/models/group_0758.py | 155 +- .../ghec_v2022_11_28/models/group_0759.py | 704 +- .../ghec_v2022_11_28/models/group_0760.py | 34 +- .../ghec_v2022_11_28/models/group_0761.py | 106 +- .../ghec_v2022_11_28/models/group_0762.py | 231 +- .../ghec_v2022_11_28/models/group_0763.py | 33 +- .../ghec_v2022_11_28/models/group_0764.py | 33 +- .../ghec_v2022_11_28/models/group_0765.py | 76 +- .../ghec_v2022_11_28/models/group_0766.py | 173 +- .../ghec_v2022_11_28/models/group_0767.py | 29 +- .../ghec_v2022_11_28/models/group_0768.py | 56 +- .../ghec_v2022_11_28/models/group_0769.py | 81 +- .../ghec_v2022_11_28/models/group_0770.py | 28 +- .../ghec_v2022_11_28/models/group_0771.py | 28 +- .../ghec_v2022_11_28/models/group_0772.py | 20 +- .../ghec_v2022_11_28/models/group_0773.py | 47 +- .../ghec_v2022_11_28/models/group_0774.py | 28 +- .../ghec_v2022_11_28/models/group_0775.py | 55 +- .../ghec_v2022_11_28/models/group_0776.py | 82 +- .../ghec_v2022_11_28/models/group_0777.py | 60 +- .../ghec_v2022_11_28/models/group_0778.py | 57 +- .../ghec_v2022_11_28/models/group_0779.py | 126 +- .../ghec_v2022_11_28/models/group_0780.py | 153 +- .../ghec_v2022_11_28/models/group_0781.py | 168 +- .../ghec_v2022_11_28/models/group_0782.py | 115 +- .../ghec_v2022_11_28/models/group_0783.py | 30 +- .../ghec_v2022_11_28/models/group_0784.py | 65 +- .../ghec_v2022_11_28/models/group_0785.py | 111 +- .../ghec_v2022_11_28/models/group_0786.py | 131 +- .../ghec_v2022_11_28/models/group_0787.py | 190 +- .../ghec_v2022_11_28/models/group_0788.py | 166 +- .../ghec_v2022_11_28/models/group_0789.py | 369 +- .../ghec_v2022_11_28/models/group_0790.py | 40 +- .../ghec_v2022_11_28/models/group_0791.py | 31 +- .../ghec_v2022_11_28/models/group_0792.py | 94 +- .../ghec_v2022_11_28/models/group_0793.py | 31 +- .../ghec_v2022_11_28/models/group_0794.py | 92 +- .../ghec_v2022_11_28/models/group_0795.py | 60 +- .../ghec_v2022_11_28/models/group_0796.py | 297 +- .../ghec_v2022_11_28/models/group_0797.py | 47 +- .../ghec_v2022_11_28/models/group_0798.py | 29 +- .../ghec_v2022_11_28/models/group_0799.py | 152 +- .../ghec_v2022_11_28/models/group_0800.py | 30 +- .../ghec_v2022_11_28/models/group_0801.py | 42 +- .../ghec_v2022_11_28/models/group_0802.py | 68 +- .../ghec_v2022_11_28/models/group_0803.py | 30 +- .../ghec_v2022_11_28/models/group_0804.py | 30 +- .../ghec_v2022_11_28/models/group_0805.py | 50 +- .../ghec_v2022_11_28/models/group_0806.py | 155 +- .../ghec_v2022_11_28/models/group_0807.py | 41 +- .../ghec_v2022_11_28/models/group_0808.py | 43 +- .../ghec_v2022_11_28/models/group_0809.py | 41 +- .../ghec_v2022_11_28/models/group_0810.py | 28 +- .../ghec_v2022_11_28/models/group_0811.py | 223 +- .../ghec_v2022_11_28/models/group_0812.py | 70 +- .../ghec_v2022_11_28/models/group_0813.py | 57 +- .../ghec_v2022_11_28/models/group_0814.py | 52 +- .../ghec_v2022_11_28/models/group_0815.py | 55 +- .../ghec_v2022_11_28/models/group_0816.py | 47 +- .../ghec_v2022_11_28/models/group_0817.py | 45 +- .../ghec_v2022_11_28/models/group_0818.py | 236 +- .../ghec_v2022_11_28/models/group_0819.py | 55 +- .../ghec_v2022_11_28/models/group_0820.py | 52 +- .../ghec_v2022_11_28/models/group_0821.py | 244 +- .../ghec_v2022_11_28/models/group_0822.py | 239 +- .../ghec_v2022_11_28/models/group_0823.py | 251 +- .../ghec_v2022_11_28/models/group_0824.py | 354 +- .../ghec_v2022_11_28/models/group_0825.py | 255 +- .../ghec_v2022_11_28/models/group_0826.py | 44 +- .../ghec_v2022_11_28/models/group_0827.py | 38 +- .../ghec_v2022_11_28/models/group_0828.py | 283 +- .../ghec_v2022_11_28/models/group_0829.py | 277 +- .../ghec_v2022_11_28/models/group_0830.py | 273 +- .../ghec_v2022_11_28/models/group_0831.py | 364 +- .../ghec_v2022_11_28/models/group_0832.py | 268 +- .../ghec_v2022_11_28/models/group_0833.py | 75 +- .../ghec_v2022_11_28/models/group_0834.py | 81 +- .../ghec_v2022_11_28/models/group_0835.py | 93 +- .../ghec_v2022_11_28/models/group_0836.py | 500 +- .../ghec_v2022_11_28/models/group_0837.py | 503 +- .../ghec_v2022_11_28/models/group_0838.py | 493 +- .../ghec_v2022_11_28/models/group_0839.py | 90 +- .../ghec_v2022_11_28/models/group_0840.py | 64 +- .../ghec_v2022_11_28/models/group_0841.py | 94 +- .../ghec_v2022_11_28/models/group_0842.py | 99 +- .../ghec_v2022_11_28/models/group_0843.py | 488 +- .../ghec_v2022_11_28/models/group_0844.py | 479 +- .../ghec_v2022_11_28/models/group_0845.py | 487 +- .../ghec_v2022_11_28/models/group_0846.py | 42 +- .../ghec_v2022_11_28/models/group_0847.py | 19 +- .../ghec_v2022_11_28/models/group_0848.py | 38 +- .../ghec_v2022_11_28/models/group_0849.py | 10 +- .../ghec_v2022_11_28/models/group_0850.py | 26 +- .../ghec_v2022_11_28/models/group_0851.py | 15 +- .../ghec_v2022_11_28/models/group_0852.py | 12 +- .../ghec_v2022_11_28/models/group_0853.py | 42 +- .../ghec_v2022_11_28/models/group_0854.py | 37 +- .../ghec_v2022_11_28/models/group_0855.py | 37 +- .../ghec_v2022_11_28/models/group_0856.py | 23 +- .../ghec_v2022_11_28/models/group_0857.py | 17 +- .../ghec_v2022_11_28/models/group_0858.py | 59 +- .../ghec_v2022_11_28/models/group_0859.py | 17 +- .../ghec_v2022_11_28/models/group_0860.py | 16 +- .../ghec_v2022_11_28/models/group_0861.py | 29 +- .../ghec_v2022_11_28/models/group_0862.py | 18 +- .../ghec_v2022_11_28/models/group_0863.py | 47 +- .../ghec_v2022_11_28/models/group_0864.py | 23 +- .../ghec_v2022_11_28/models/group_0865.py | 19 +- .../ghec_v2022_11_28/models/group_0866.py | 15 +- .../ghec_v2022_11_28/models/group_0867.py | 79 +- .../ghec_v2022_11_28/models/group_0868.py | 72 +- .../ghec_v2022_11_28/models/group_0869.py | 40 +- .../ghec_v2022_11_28/models/group_0870.py | 23 +- .../ghec_v2022_11_28/models/group_0871.py | 107 +- .../ghec_v2022_11_28/models/group_0872.py | 110 +- .../ghec_v2022_11_28/models/group_0873.py | 20 +- .../ghec_v2022_11_28/models/group_0874.py | 26 +- .../ghec_v2022_11_28/models/group_0875.py | 40 +- .../ghec_v2022_11_28/models/group_0876.py | 46 +- .../ghec_v2022_11_28/models/group_0877.py | 19 +- .../ghec_v2022_11_28/models/group_0878.py | 15 +- .../ghec_v2022_11_28/models/group_0879.py | 95 +- .../ghec_v2022_11_28/models/group_0880.py | 93 +- .../ghec_v2022_11_28/models/group_0881.py | 51 +- .../ghec_v2022_11_28/models/group_0882.py | 59 +- .../ghec_v2022_11_28/models/group_0883.py | 20 +- .../ghec_v2022_11_28/models/group_0884.py | 18 +- .../ghec_v2022_11_28/models/group_0885.py | 111 +- .../ghec_v2022_11_28/models/group_0886.py | 131 +- .../ghec_v2022_11_28/models/group_0887.py | 45 +- .../ghec_v2022_11_28/models/group_0888.py | 25 +- .../ghec_v2022_11_28/models/group_0889.py | 32 +- .../ghec_v2022_11_28/models/group_0890.py | 53 +- .../ghec_v2022_11_28/models/group_0891.py | 18 +- .../ghec_v2022_11_28/models/group_0892.py | 24 +- .../ghec_v2022_11_28/models/group_0893.py | 25 +- .../ghec_v2022_11_28/models/group_0894.py | 28 +- .../ghec_v2022_11_28/models/group_0895.py | 20 +- .../ghec_v2022_11_28/models/group_0896.py | 90 +- .../ghec_v2022_11_28/models/group_0897.py | 191 +- .../ghec_v2022_11_28/models/group_0898.py | 34 +- .../ghec_v2022_11_28/models/group_0899.py | 26 +- .../ghec_v2022_11_28/models/group_0900.py | 21 +- .../ghec_v2022_11_28/models/group_0901.py | 22 +- .../ghec_v2022_11_28/models/group_0902.py | 59 +- .../ghec_v2022_11_28/models/group_0903.py | 57 +- .../ghec_v2022_11_28/models/group_0904.py | 51 +- .../ghec_v2022_11_28/models/group_0905.py | 13 +- .../ghec_v2022_11_28/models/group_0906.py | 12 +- .../ghec_v2022_11_28/models/group_0907.py | 15 +- .../ghec_v2022_11_28/models/group_0908.py | 18 +- .../ghec_v2022_11_28/models/group_0909.py | 24 +- .../ghec_v2022_11_28/models/group_0910.py | 28 +- .../ghec_v2022_11_28/models/group_0911.py | 17 +- .../ghec_v2022_11_28/models/group_0912.py | 18 +- .../ghec_v2022_11_28/models/group_0913.py | 34 +- .../ghec_v2022_11_28/models/group_0914.py | 127 +- .../ghec_v2022_11_28/models/group_0915.py | 33 +- .../ghec_v2022_11_28/models/group_0916.py | 15 +- .../ghec_v2022_11_28/models/group_0917.py | 60 +- .../ghec_v2022_11_28/models/group_0918.py | 25 +- .../ghec_v2022_11_28/models/group_0919.py | 26 +- .../ghec_v2022_11_28/models/group_0920.py | 12 +- .../ghec_v2022_11_28/models/group_0921.py | 13 +- .../ghec_v2022_11_28/models/group_0922.py | 95 +- .../ghec_v2022_11_28/models/group_0923.py | 161 +- .../ghec_v2022_11_28/models/group_0924.py | 18 +- .../ghec_v2022_11_28/models/group_0925.py | 166 +- .../ghec_v2022_11_28/models/group_0926.py | 53 +- .../ghec_v2022_11_28/models/group_0927.py | 38 +- .../ghec_v2022_11_28/models/group_0928.py | 38 +- .../ghec_v2022_11_28/models/group_0929.py | 14 +- .../ghec_v2022_11_28/models/group_0930.py | 31 +- .../ghec_v2022_11_28/models/group_0931.py | 15 +- .../ghec_v2022_11_28/models/group_0932.py | 18 +- .../ghec_v2022_11_28/models/group_0933.py | 42 +- .../ghec_v2022_11_28/models/group_0934.py | 31 +- .../ghec_v2022_11_28/models/group_0935.py | 29 +- .../ghec_v2022_11_28/models/group_0936.py | 15 +- .../ghec_v2022_11_28/models/group_0937.py | 22 +- .../ghec_v2022_11_28/models/group_0938.py | 38 +- .../ghec_v2022_11_28/models/group_0939.py | 28 +- .../ghec_v2022_11_28/models/group_0940.py | 18 +- .../ghec_v2022_11_28/models/group_0941.py | 16 +- .../ghec_v2022_11_28/models/group_0942.py | 43 +- .../ghec_v2022_11_28/models/group_0943.py | 25 +- .../ghec_v2022_11_28/models/group_0944.py | 26 +- .../ghec_v2022_11_28/models/group_0945.py | 14 +- .../ghec_v2022_11_28/models/group_0946.py | 17 +- .../ghec_v2022_11_28/models/group_0947.py | 88 +- .../ghec_v2022_11_28/models/group_0948.py | 163 +- .../ghec_v2022_11_28/models/group_0949.py | 18 +- .../ghec_v2022_11_28/models/group_0950.py | 166 +- .../ghec_v2022_11_28/models/group_0951.py | 49 +- .../ghec_v2022_11_28/models/group_0952.py | 47 +- .../ghec_v2022_11_28/models/group_0953.py | 29 +- .../ghec_v2022_11_28/models/group_0954.py | 12 +- .../ghec_v2022_11_28/models/group_0955.py | 30 +- .../ghec_v2022_11_28/models/group_0956.py | 34 +- .../ghec_v2022_11_28/models/group_0957.py | 18 +- .../ghec_v2022_11_28/models/group_0958.py | 37 +- .../ghec_v2022_11_28/models/group_0959.py | 46 +- .../ghec_v2022_11_28/models/group_0960.py | 19 +- .../ghec_v2022_11_28/models/group_0961.py | 14 +- .../ghec_v2022_11_28/models/group_0962.py | 17 +- .../ghec_v2022_11_28/models/group_0963.py | 25 +- .../ghec_v2022_11_28/models/group_0964.py | 23 +- .../ghec_v2022_11_28/models/group_0965.py | 18 +- .../ghec_v2022_11_28/models/group_0966.py | 18 +- .../ghec_v2022_11_28/models/group_0967.py | 42 +- .../ghec_v2022_11_28/models/group_0968.py | 45 +- .../ghec_v2022_11_28/models/group_0969.py | 16 +- .../ghec_v2022_11_28/models/group_0970.py | 51 +- .../ghec_v2022_11_28/models/group_0971.py | 16 +- .../ghec_v2022_11_28/models/group_0972.py | 39 +- .../ghec_v2022_11_28/models/group_0973.py | 35 +- .../ghec_v2022_11_28/models/group_0974.py | 124 +- .../ghec_v2022_11_28/models/group_0975.py | 89 +- .../ghec_v2022_11_28/models/group_0976.py | 119 +- .../ghec_v2022_11_28/models/group_0977.py | 54 +- .../ghec_v2022_11_28/models/group_0978.py | 33 +- .../ghec_v2022_11_28/models/group_0979.py | 20 +- .../ghec_v2022_11_28/models/group_0980.py | 19 +- .../ghec_v2022_11_28/models/group_0981.py | 43 +- .../ghec_v2022_11_28/models/group_0982.py | 19 +- .../ghec_v2022_11_28/models/group_0983.py | 25 +- .../ghec_v2022_11_28/models/group_0984.py | 48 +- .../ghec_v2022_11_28/models/group_0985.py | 16 +- .../ghec_v2022_11_28/models/group_0986.py | 18 +- .../ghec_v2022_11_28/models/group_0987.py | 16 +- .../ghec_v2022_11_28/models/group_0988.py | 27 +- .../ghec_v2022_11_28/models/group_0989.py | 17 +- .../ghec_v2022_11_28/models/group_0990.py | 38 +- .../ghec_v2022_11_28/models/group_0991.py | 15 +- .../ghec_v2022_11_28/models/group_0992.py | 39 +- .../ghec_v2022_11_28/models/group_0993.py | 29 +- .../ghec_v2022_11_28/models/group_0994.py | 20 +- .../ghec_v2022_11_28/models/group_0995.py | 46 +- .../ghec_v2022_11_28/models/group_0996.py | 30 +- .../ghec_v2022_11_28/models/group_0997.py | 34 +- .../ghec_v2022_11_28/models/group_0998.py | 21 +- .../ghec_v2022_11_28/models/group_0999.py | 123 +- .../ghec_v2022_11_28/models/group_1000.py | 90 +- .../ghec_v2022_11_28/models/group_1001.py | 102 +- .../ghec_v2022_11_28/models/group_1002.py | 16 +- .../ghec_v2022_11_28/models/group_1003.py | 29 +- .../ghec_v2022_11_28/models/group_1004.py | 28 +- .../ghec_v2022_11_28/models/group_1005.py | 42 +- .../ghec_v2022_11_28/models/group_1006.py | 42 +- .../ghec_v2022_11_28/models/group_1007.py | 17 +- .../ghec_v2022_11_28/models/group_1008.py | 17 +- .../ghec_v2022_11_28/models/group_1009.py | 13 +- .../ghec_v2022_11_28/models/group_1010.py | 280 +- .../ghec_v2022_11_28/models/group_1011.py | 27 +- .../ghec_v2022_11_28/models/group_1012.py | 18 +- .../ghec_v2022_11_28/models/group_1013.py | 21 +- .../ghec_v2022_11_28/models/group_1014.py | 19 +- .../ghec_v2022_11_28/models/group_1015.py | 20 +- .../ghec_v2022_11_28/models/group_1016.py | 19 +- .../ghec_v2022_11_28/models/group_1017.py | 18 +- .../ghec_v2022_11_28/models/group_1018.py | 37 +- .../ghec_v2022_11_28/models/group_1019.py | 20 +- .../ghec_v2022_11_28/models/group_1020.py | 20 +- .../ghec_v2022_11_28/models/group_1021.py | 22 +- .../ghec_v2022_11_28/models/group_1022.py | 22 +- .../ghec_v2022_11_28/models/group_1023.py | 17 +- .../ghec_v2022_11_28/models/group_1024.py | 30 +- .../ghec_v2022_11_28/models/group_1025.py | 36 +- .../ghec_v2022_11_28/models/group_1026.py | 14 +- .../ghec_v2022_11_28/models/group_1027.py | 16 +- .../ghec_v2022_11_28/models/group_1028.py | 18 +- .../ghec_v2022_11_28/models/group_1029.py | 33 +- .../ghec_v2022_11_28/models/group_1030.py | 16 +- .../ghec_v2022_11_28/models/group_1031.py | 13 +- .../ghec_v2022_11_28/models/group_1032.py | 13 +- .../ghec_v2022_11_28/models/group_1033.py | 53 +- .../ghec_v2022_11_28/models/group_1034.py | 37 +- .../ghec_v2022_11_28/models/group_1035.py | 19 +- .../ghec_v2022_11_28/models/group_1036.py | 52 +- .../ghec_v2022_11_28/models/group_1037.py | 11 +- .../ghec_v2022_11_28/models/group_1038.py | 296 +- .../ghec_v2022_11_28/models/group_1039.py | 24 +- .../ghec_v2022_11_28/models/group_1040.py | 218 +- .../ghec_v2022_11_28/models/group_1041.py | 94 +- .../ghec_v2022_11_28/models/group_1042.py | 61 +- .../ghec_v2022_11_28/models/group_1043.py | 21 +- .../ghec_v2022_11_28/models/group_1044.py | 30 +- .../ghec_v2022_11_28/models/group_1045.py | 22 +- .../ghec_v2022_11_28/models/group_1046.py | 30 +- .../ghec_v2022_11_28/models/group_1047.py | 19 +- .../ghec_v2022_11_28/models/group_1048.py | 20 +- .../ghec_v2022_11_28/models/group_1049.py | 15 +- .../ghec_v2022_11_28/models/group_1050.py | 17 +- .../ghec_v2022_11_28/models/group_1051.py | 17 +- .../ghec_v2022_11_28/models/group_1052.py | 15 +- .../ghec_v2022_11_28/models/group_1053.py | 22 +- .../ghec_v2022_11_28/models/group_1054.py | 18 +- .../ghec_v2022_11_28/models/group_1055.py | 14 +- .../ghec_v2022_11_28/models/group_1056.py | 113 +- .../ghec_v2022_11_28/models/group_1057.py | 64 +- .../ghec_v2022_11_28/models/group_1058.py | 68 +- .../ghec_v2022_11_28/models/group_1059.py | 110 +- .../ghec_v2022_11_28/models/group_1060.py | 63 +- .../ghec_v2022_11_28/models/group_1061.py | 94 +- .../ghec_v2022_11_28/models/group_1062.py | 37 +- .../ghec_v2022_11_28/models/group_1063.py | 34 +- .../ghec_v2022_11_28/models/group_1064.py | 53 +- .../ghec_v2022_11_28/models/group_1065.py | 26 +- .../ghec_v2022_11_28/models/group_1066.py | 100 +- .../ghec_v2022_11_28/models/group_1067.py | 33 +- .../ghec_v2022_11_28/models/group_1068.py | 226 +- .../ghec_v2022_11_28/models/group_1069.py | 104 +- .../ghec_v2022_11_28/models/group_1070.py | 61 +- .../ghec_v2022_11_28/models/group_1071.py | 64 +- .../ghec_v2022_11_28/models/group_1072.py | 31 +- .../ghec_v2022_11_28/models/group_1073.py | 22 +- .../ghec_v2022_11_28/models/group_1074.py | 34 +- .../ghec_v2022_11_28/models/group_1075.py | 30 +- .../ghec_v2022_11_28/models/group_1076.py | 23 +- .../ghec_v2022_11_28/models/group_1077.py | 19 +- .../ghec_v2022_11_28/models/group_1078.py | 16 +- .../ghec_v2022_11_28/models/group_1079.py | 22 +- .../ghec_v2022_11_28/models/group_1080.py | 26 +- .../ghec_v2022_11_28/models/group_1081.py | 15 +- .../ghec_v2022_11_28/models/group_1082.py | 66 +- .../ghec_v2022_11_28/models/group_1083.py | 59 +- .../ghec_v2022_11_28/models/group_1084.py | 111 +- .../ghec_v2022_11_28/models/group_1085.py | 82 +- .../ghec_v2022_11_28/models/group_1086.py | 66 +- .../ghec_v2022_11_28/models/group_1087.py | 110 +- .../ghec_v2022_11_28/models/group_1088.py | 76 +- .../ghec_v2022_11_28/models/group_1089.py | 65 +- .../ghec_v2022_11_28/models/group_1090.py | 54 +- .../ghec_v2022_11_28/models/group_1091.py | 40 +- .../ghec_v2022_11_28/models/group_1092.py | 55 +- .../ghec_v2022_11_28/models/group_1093.py | 48 +- .../ghec_v2022_11_28/models/group_1094.py | 37 +- .../ghec_v2022_11_28/models/group_1095.py | 44 +- .../ghec_v2022_11_28/models/group_1096.py | 49 +- .../ghec_v2022_11_28/models/group_1097.py | 45 +- .../ghec_v2022_11_28/models/group_1098.py | 12 +- .../ghec_v2022_11_28/models/group_1099.py | 55 +- .../ghec_v2022_11_28/models/group_1100.py | 28 +- .../ghec_v2022_11_28/models/group_1101.py | 26 +- .../ghec_v2022_11_28/models/group_1102.py | 32 +- .../ghec_v2022_11_28/models/group_1103.py | 80 +- .../ghec_v2022_11_28/models/group_1104.py | 20 +- .../ghec_v2022_11_28/models/group_1105.py | 13 +- .../ghec_v2022_11_28/models/group_1106.py | 58 +- .../ghec_v2022_11_28/models/group_1107.py | 49 +- .../ghec_v2022_11_28/models/group_1108.py | 53 +- .../ghec_v2022_11_28/models/group_1109.py | 49 +- .../ghec_v2022_11_28/models/group_1110.py | 67 +- .../ghec_v2022_11_28/models/group_1111.py | 61 +- .../ghec_v2022_11_28/models/group_1112.py | 30 +- .../ghec_v2022_11_28/models/group_1113.py | 31 +- .../ghec_v2022_11_28/models/group_1114.py | 21 +- .../ghec_v2022_11_28/models/group_1115.py | 19 +- .../ghec_v2022_11_28/models/group_1116.py | 57 +- .../ghec_v2022_11_28/models/group_1117.py | 49 +- .../ghec_v2022_11_28/models/group_1118.py | 54 +- .../ghec_v2022_11_28/models/group_1119.py | 39 +- .../ghec_v2022_11_28/models/group_1120.py | 66 +- .../ghec_v2022_11_28/models/group_1121.py | 41 +- .../ghec_v2022_11_28/models/group_1122.py | 18 +- .../ghec_v2022_11_28/models/group_1123.py | 28 +- .../ghec_v2022_11_28/models/group_1124.py | 21 +- .../ghec_v2022_11_28/models/group_1125.py | 30 +- .../ghec_v2022_11_28/models/group_1126.py | 13 +- .../ghec_v2022_11_28/models/group_1127.py | 19 +- .../ghec_v2022_11_28/models/group_1128.py | 25 +- .../ghec_v2022_11_28/models/group_1129.py | 23 +- .../ghec_v2022_11_28/models/group_1130.py | 19 +- .../ghec_v2022_11_28/models/group_1131.py | 78 +- .../ghec_v2022_11_28/models/group_1132.py | 13 +- .../ghec_v2022_11_28/models/group_1133.py | 14 +- .../ghec_v2022_11_28/models/group_1134.py | 44 +- .../ghec_v2022_11_28/models/group_1135.py | 46 +- .../ghec_v2022_11_28/models/group_1136.py | 51 +- .../ghec_v2022_11_28/models/group_1137.py | 31 +- .../ghec_v2022_11_28/models/group_1138.py | 25 +- .../ghec_v2022_11_28/models/group_1139.py | 29 +- .../ghec_v2022_11_28/models/group_1140.py | 27 +- .../ghec_v2022_11_28/models/group_1141.py | 27 +- .../ghec_v2022_11_28/models/group_1142.py | 17 +- .../ghec_v2022_11_28/models/group_1143.py | 15 +- .../ghec_v2022_11_28/models/group_1144.py | 23 +- .../ghec_v2022_11_28/models/group_1145.py | 51 +- .../ghec_v2022_11_28/models/group_1146.py | 47 +- .../ghec_v2022_11_28/models/group_1147.py | 38 +- .../ghec_v2022_11_28/models/group_1148.py | 60 +- .../ghec_v2022_11_28/models/group_1149.py | 33 +- .../ghec_v2022_11_28/models/group_1150.py | 20 +- .../ghec_v2022_11_28/models/group_1151.py | 22 +- .../ghec_v2022_11_28/models/group_1152.py | 22 +- .../ghec_v2022_11_28/models/group_1153.py | 53 +- .../ghec_v2022_11_28/models/group_1154.py | 12 +- .../ghec_v2022_11_28/models/group_1155.py | 17 +- .../ghec_v2022_11_28/models/group_1156.py | 28 +- .../ghec_v2022_11_28/models/group_1157.py | 52 +- .../ghec_v2022_11_28/models/group_1158.py | 19 +- .../ghec_v2022_11_28/models/group_1159.py | 10 +- .../ghec_v2022_11_28/models/group_1160.py | 43 +- .../ghec_v2022_11_28/models/group_1161.py | 48 +- .../ghec_v2022_11_28/models/group_1162.py | 45 +- .../ghec_v2022_11_28/models/group_1163.py | 17 +- .../ghec_v2022_11_28/models/group_1164.py | 26 +- .../ghec_v2022_11_28/models/group_1165.py | 30 +- .../ghec_v2022_11_28/models/group_1166.py | 15 +- .../ghec_v2022_11_28/models/group_1167.py | 20 +- .../ghec_v2022_11_28/models/group_1168.py | 25 +- .../ghec_v2022_11_28/models/group_1169.py | 27 +- .../ghec_v2022_11_28/models/group_1170.py | 49 +- .../ghec_v2022_11_28/models/group_1171.py | 13 +- .../ghec_v2022_11_28/models/group_1172.py | 21 +- .../ghec_v2022_11_28/models/group_1173.py | 35 +- .../ghec_v2022_11_28/models/group_1174.py | 32 +- .../ghec_v2022_11_28/models/group_1175.py | 45 +- .../ghec_v2022_11_28/models/group_1176.py | 48 +- .../ghec_v2022_11_28/models/group_1177.py | 35 +- .../ghec_v2022_11_28/models/group_1178.py | 29 +- .../ghec_v2022_11_28/models/group_1179.py | 36 +- .../ghec_v2022_11_28/models/group_1180.py | 20 +- .../ghec_v2022_11_28/models/group_1181.py | 88 +- .../ghec_v2022_11_28/models/group_1182.py | 82 +- .../ghec_v2022_11_28/models/group_1183.py | 25 +- .../ghec_v2022_11_28/models/group_1184.py | 19 +- .../ghec_v2022_11_28/models/group_1185.py | 41 +- .../ghec_v2022_11_28/models/group_1186.py | 19 +- .../ghec_v2022_11_28/models/group_1187.py | 16 +- .../ghec_v2022_11_28/models/group_1188.py | 31 +- .../ghec_v2022_11_28/models/group_1189.py | 49 +- .../ghec_v2022_11_28/models/group_1190.py | 46 +- .../ghec_v2022_11_28/models/group_1191.py | 56 +- .../ghec_v2022_11_28/models/group_1192.py | 62 +- .../ghec_v2022_11_28/models/group_1193.py | 73 +- .../ghec_v2022_11_28/models/group_1194.py | 41 +- .../ghec_v2022_11_28/models/group_1195.py | 20 +- .../ghec_v2022_11_28/models/group_1196.py | 16 +- .../ghec_v2022_11_28/models/group_1197.py | 17 +- .../ghec_v2022_11_28/models/group_1198.py | 52 +- .../ghec_v2022_11_28/models/group_1199.py | 22 +- .../ghec_v2022_11_28/models/group_1200.py | 17 +- .../ghec_v2022_11_28/models/group_1201.py | 15 +- .../ghec_v2022_11_28/models/group_1202.py | 14 +- .../ghec_v2022_11_28/models/group_1203.py | 10 +- .../ghec_v2022_11_28/models/group_1204.py | 37 +- .../ghec_v2022_11_28/models/group_1205.py | 31 +- .../ghec_v2022_11_28/models/group_1206.py | 39 +- .../ghec_v2022_11_28/models/group_1207.py | 53 +- .../ghec_v2022_11_28/models/group_1208.py | 53 +- .../ghec_v2022_11_28/models/group_1209.py | 115 +- .../ghec_v2022_11_28/models/group_1210.py | 113 +- .../ghec_v2022_11_28/models/group_1211.py | 25 +- .../ghec_v2022_11_28/models/group_1212.py | 20 +- .../ghec_v2022_11_28/models/group_1213.py | 27 +- .../ghec_v2022_11_28/models/group_1214.py | 20 +- .../ghec_v2022_11_28/models/group_1215.py | 15 +- .../ghec_v2022_11_28/models/group_1216.py | 17 +- .../ghec_v2022_11_28/models/group_1217.py | 23 +- .../ghec_v2022_11_28/models/group_1218.py | 34 +- .../ghec_v2022_11_28/models/group_1219.py | 58 +- .../ghec_v2022_11_28/models/group_1220.py | 55 +- .../ghec_v2022_11_28/models/group_1221.py | 75 +- .../ghec_v2022_11_28/models/group_1222.py | 44 +- .../ghec_v2022_11_28/models/group_1223.py | 19 +- .../ghec_v2022_11_28/models/group_1224.py | 15 +- .../ghec_v2022_11_28/models/group_1225.py | 14 +- .../ghec_v2022_11_28/models/group_1226.py | 56 +- .../ghec_v2022_11_28/models/group_1227.py | 25 +- .../ghec_v2022_11_28/models/group_1228.py | 93 +- .../ghec_v2022_11_28/models/group_1229.py | 21 +- .../ghec_v2022_11_28/models/group_1230.py | 22 +- .../ghec_v2022_11_28/models/group_1231.py | 17 +- .../ghec_v2022_11_28/models/group_1232.py | 168 +- .../ghec_v2022_11_28/models/group_1233.py | 45 + .../ghec_v2022_11_28/models/group_1234.py | 50 + .../ghec_v2022_11_28/models/group_1235.py | 28 + .../ghec_v2022_11_28/models/group_1236.py | 70 + .../ghec_v2022_11_28/models/group_1237.py | 67 + .../ghec_v2022_11_28/models/group_1238.py | 54 + .../ghec_v2022_11_28/models/group_1239.py | 38 + .../ghec_v2022_11_28/models/group_1240.py | 28 + .../ghec_v2022_11_28/models/group_1241.py | 27 + .../ghec_v2022_11_28/models/group_1242.py | 36 + .../ghec_v2022_11_28/models/group_1243.py | 28 + .../ghec_v2022_11_28/models/group_1244.py | 32 + .../ghec_v2022_11_28/models/group_1245.py | 29 + .../ghec_v2022_11_28/models/group_1246.py | 32 + .../ghec_v2022_11_28/models/group_1247.py | 37 + .../ghec_v2022_11_28/models/group_1248.py | 30 + .../ghec_v2022_11_28/models/group_1249.py | 28 + .../ghec_v2022_11_28/models/group_1250.py | 31 + .../ghec_v2022_11_28/models/group_1251.py | 21 + .../ghec_v2022_11_28/models/group_1252.py | 33 + .../ghec_v2022_11_28/models/group_1253.py | 29 + .../ghec_v2022_11_28/models/group_1254.py | 59 + .../ghec_v2022_11_28/models/group_1255.py | 32 + .../ghec_v2022_11_28/models/group_1256.py | 110 + .../ghec_v2022_11_28/models/group_1257.py | 32 + .../ghec_v2022_11_28/models/group_1258.py | 32 + .../ghec_v2022_11_28/models/group_1259.py | 33 + .../ghec_v2022_11_28/models/group_1260.py | 184 + .../ghec_v2022_11_28/rest/__init__.py | 7 + .../versions/ghec_v2022_11_28/rest/actions.py | 1902 +++- .../ghec_v2022_11_28/rest/dependabot.py | 12 + .../ghec_v2022_11_28/rest/enterprise_admin.py | 450 + .../ghec_v2022_11_28/rest/hosted_compute.py | 495 + .../ghec_v2022_11_28/types/__init__.py | 9598 +++++++++-------- .../ghec_v2022_11_28/types/group_0002.py | 38 +- .../ghec_v2022_11_28/types/group_0003.py | 132 +- .../ghec_v2022_11_28/types/group_0004.py | 123 +- .../ghec_v2022_11_28/types/group_0005.py | 29 +- .../ghec_v2022_11_28/types/group_0006.py | 15 +- .../ghec_v2022_11_28/types/group_0007.py | 19 +- .../ghec_v2022_11_28/types/group_0008.py | 35 +- .../ghec_v2022_11_28/types/group_0009.py | 21 +- .../ghec_v2022_11_28/types/group_0010.py | 46 +- .../ghec_v2022_11_28/types/group_0011.py | 18 +- .../ghec_v2022_11_28/types/group_0012.py | 42 +- .../ghec_v2022_11_28/types/group_0013.py | 76 +- .../ghec_v2022_11_28/types/group_0014.py | 36 +- .../ghec_v2022_11_28/types/group_0015.py | 75 +- .../ghec_v2022_11_28/types/group_0016.py | 69 +- .../ghec_v2022_11_28/types/group_0017.py | 89 +- .../ghec_v2022_11_28/types/group_0018.py | 45 +- .../ghec_v2022_11_28/types/group_0019.py | 128 +- .../ghec_v2022_11_28/types/group_0020.py | 133 +- .../ghec_v2022_11_28/types/group_0021.py | 26 +- .../ghec_v2022_11_28/types/group_0022.py | 49 +- .../ghec_v2022_11_28/types/group_0023.py | 49 +- .../ghec_v2022_11_28/types/group_0024.py | 64 +- .../ghec_v2022_11_28/types/group_0025.py | 75 +- .../ghec_v2022_11_28/types/group_0026.py | 86 +- .../ghec_v2022_11_28/types/group_0027.py | 199 +- .../ghec_v2022_11_28/types/group_0028.py | 193 +- .../ghec_v2022_11_28/types/group_0029.py | 11 +- .../ghec_v2022_11_28/types/group_0030.py | 20 +- .../ghec_v2022_11_28/types/group_0031.py | 68 +- .../ghec_v2022_11_28/types/group_0032.py | 20 +- .../ghec_v2022_11_28/types/group_0033.py | 23 +- .../ghec_v2022_11_28/types/group_0034.py | 10 +- .../ghec_v2022_11_28/types/group_0035.py | 16 +- .../ghec_v2022_11_28/types/group_0036.py | 34 +- .../ghec_v2022_11_28/types/group_0037.py | 18 +- .../ghec_v2022_11_28/types/group_0038.py | 35 +- .../ghec_v2022_11_28/types/group_0039.py | 19 +- .../ghec_v2022_11_28/types/group_0040.py | 16 +- .../ghec_v2022_11_28/types/group_0041.py | 95 +- .../ghec_v2022_11_28/types/group_0042.py | 18 +- .../ghec_v2022_11_28/types/group_0043.py | 37 +- .../ghec_v2022_11_28/types/group_0044.py | 57 +- .../ghec_v2022_11_28/types/group_0045.py | 36 +- .../ghec_v2022_11_28/types/group_0046.py | 92 +- .../ghec_v2022_11_28/types/group_0047.py | 21 +- .../ghec_v2022_11_28/types/group_0048.py | 27 +- .../ghec_v2022_11_28/types/group_0049.py | 59 +- .../ghec_v2022_11_28/types/group_0050.py | 55 +- .../ghec_v2022_11_28/types/group_0051.py | 61 +- .../ghec_v2022_11_28/types/group_0052.py | 42 +- .../ghec_v2022_11_28/types/group_0053.py | 110 +- .../ghec_v2022_11_28/types/group_0054.py | 16 +- .../ghec_v2022_11_28/types/group_0055.py | 45 +- .../ghec_v2022_11_28/types/group_0056.py | 77 +- .../ghec_v2022_11_28/types/group_0057.py | 45 +- .../ghec_v2022_11_28/types/group_0058.py | 129 +- .../ghec_v2022_11_28/types/group_0059.py | 29 +- .../ghec_v2022_11_28/types/group_0060.py | 42 +- .../ghec_v2022_11_28/types/group_0061.py | 64 +- .../ghec_v2022_11_28/types/group_0062.py | 193 +- .../ghec_v2022_11_28/types/group_0063.py | 62 +- .../ghec_v2022_11_28/types/group_0064.py | 24 +- .../ghec_v2022_11_28/types/group_0065.py | 49 +- .../ghec_v2022_11_28/types/group_0066.py | 88 +- .../ghec_v2022_11_28/types/group_0067.py | 220 +- .../ghec_v2022_11_28/types/group_0068.py | 42 +- .../ghec_v2022_11_28/types/group_0069.py | 35 +- .../ghec_v2022_11_28/types/group_0070.py | 39 +- .../ghec_v2022_11_28/types/group_0071.py | 78 +- .../ghec_v2022_11_28/types/group_0072.py | 44 +- .../ghec_v2022_11_28/types/group_0073.py | 21 +- .../ghec_v2022_11_28/types/group_0074.py | 36 +- .../ghec_v2022_11_28/types/group_0075.py | 24 +- .../ghec_v2022_11_28/types/group_0076.py | 17 +- .../ghec_v2022_11_28/types/group_0077.py | 23 +- .../ghec_v2022_11_28/types/group_0078.py | 17 +- .../ghec_v2022_11_28/types/group_0079.py | 28 +- .../ghec_v2022_11_28/types/group_0080.py | 31 +- .../ghec_v2022_11_28/types/group_0081.py | 22 +- .../ghec_v2022_11_28/types/group_0082.py | 19 +- .../ghec_v2022_11_28/types/group_0083.py | 27 +- .../ghec_v2022_11_28/types/group_0084.py | 22 +- .../ghec_v2022_11_28/types/group_0085.py | 26 +- .../ghec_v2022_11_28/types/group_0086.py | 20 +- .../ghec_v2022_11_28/types/group_0087.py | 84 +- .../ghec_v2022_11_28/types/group_0088.py | 20 +- .../ghec_v2022_11_28/types/group_0089.py | 10 +- .../ghec_v2022_11_28/types/group_0090.py | 44 +- .../ghec_v2022_11_28/types/group_0091.py | 26 +- .../ghec_v2022_11_28/types/group_0092.py | 34 +- .../ghec_v2022_11_28/types/group_0093.py | 27 +- .../ghec_v2022_11_28/types/group_0094.py | 84 +- .../ghec_v2022_11_28/types/group_0095.py | 19 +- .../ghec_v2022_11_28/types/group_0096.py | 18 +- .../ghec_v2022_11_28/types/group_0097.py | 38 +- .../ghec_v2022_11_28/types/group_0098.py | 15 +- .../ghec_v2022_11_28/types/group_0099.py | 32 +- .../ghec_v2022_11_28/types/group_0100.py | 15 +- .../ghec_v2022_11_28/types/group_0101.py | 14 +- .../ghec_v2022_11_28/types/group_0102.py | 19 +- .../ghec_v2022_11_28/types/group_0103.py | 18 +- .../ghec_v2022_11_28/types/group_0104.py | 20 +- .../ghec_v2022_11_28/types/group_0105.py | 18 +- .../ghec_v2022_11_28/types/group_0106.py | 24 +- .../ghec_v2022_11_28/types/group_0107.py | 17 +- .../ghec_v2022_11_28/types/group_0108.py | 17 +- .../ghec_v2022_11_28/types/group_0109.py | 17 +- .../ghec_v2022_11_28/types/group_0110.py | 16 +- .../ghec_v2022_11_28/types/group_0111.py | 15 +- .../ghec_v2022_11_28/types/group_0112.py | 28 +- .../ghec_v2022_11_28/types/group_0113.py | 16 +- .../ghec_v2022_11_28/types/group_0114.py | 29 +- .../ghec_v2022_11_28/types/group_0115.py | 24 +- .../ghec_v2022_11_28/types/group_0116.py | 21 +- .../ghec_v2022_11_28/types/group_0117.py | 12 +- .../ghec_v2022_11_28/types/group_0118.py | 21 +- .../ghec_v2022_11_28/types/group_0119.py | 27 +- .../ghec_v2022_11_28/types/group_0120.py | 22 +- .../ghec_v2022_11_28/types/group_0121.py | 124 +- .../ghec_v2022_11_28/types/group_0122.py | 62 +- .../ghec_v2022_11_28/types/group_0123.py | 39 +- .../ghec_v2022_11_28/types/group_0124.py | 34 +- .../ghec_v2022_11_28/types/group_0125.py | 34 +- .../ghec_v2022_11_28/types/group_0126.py | 21 +- .../ghec_v2022_11_28/types/group_0127.py | 23 +- .../ghec_v2022_11_28/types/group_0128.py | 126 +- .../ghec_v2022_11_28/types/group_0129.py | 69 +- .../ghec_v2022_11_28/types/group_0130.py | 55 +- .../ghec_v2022_11_28/types/group_0131.py | 110 +- .../ghec_v2022_11_28/types/group_0132.py | 66 +- .../ghec_v2022_11_28/types/group_0133.py | 75 +- .../ghec_v2022_11_28/types/group_0134.py | 54 +- .../ghec_v2022_11_28/types/group_0135.py | 66 +- .../ghec_v2022_11_28/types/group_0136.py | 74 +- .../ghec_v2022_11_28/types/group_0137.py | 128 +- .../ghec_v2022_11_28/types/group_0138.py | 83 +- .../ghec_v2022_11_28/types/group_0139.py | 53 +- .../ghec_v2022_11_28/types/group_0140.py | 71 +- .../ghec_v2022_11_28/types/group_0141.py | 68 +- .../ghec_v2022_11_28/types/group_0142.py | 59 +- .../ghec_v2022_11_28/types/group_0143.py | 82 +- .../ghec_v2022_11_28/types/group_0144.py | 128 +- .../ghec_v2022_11_28/types/group_0145.py | 89 +- .../ghec_v2022_11_28/types/group_0146.py | 85 +- .../ghec_v2022_11_28/types/group_0147.py | 140 +- .../ghec_v2022_11_28/types/group_0148.py | 48 +- .../ghec_v2022_11_28/types/group_0149.py | 35 +- .../ghec_v2022_11_28/types/group_0150.py | 32 +- .../ghec_v2022_11_28/types/group_0151.py | 101 +- .../ghec_v2022_11_28/types/group_0152.py | 71 +- .../ghec_v2022_11_28/types/group_0153.py | 81 +- .../ghec_v2022_11_28/types/group_0154.py | 140 +- .../ghec_v2022_11_28/types/group_0155.py | 114 +- .../ghec_v2022_11_28/types/group_0156.py | 27 +- .../ghec_v2022_11_28/types/group_0157.py | 85 +- .../ghec_v2022_11_28/types/group_0158.py | 96 +- .../ghec_v2022_11_28/types/group_0159.py | 39 +- .../ghec_v2022_11_28/types/group_0160.py | 28 +- .../ghec_v2022_11_28/types/group_0161.py | 20 +- .../ghec_v2022_11_28/types/group_0162.py | 102 +- .../ghec_v2022_11_28/types/group_0163.py | 18 +- .../ghec_v2022_11_28/types/group_0164.py | 89 +- .../ghec_v2022_11_28/types/group_0165.py | 39 +- .../ghec_v2022_11_28/types/group_0166.py | 38 +- .../ghec_v2022_11_28/types/group_0167.py | 39 +- .../ghec_v2022_11_28/types/group_0168.py | 16 +- .../ghec_v2022_11_28/types/group_0169.py | 38 +- .../ghec_v2022_11_28/types/group_0170.py | 20 +- .../ghec_v2022_11_28/types/group_0171.py | 33 +- .../ghec_v2022_11_28/types/group_0172.py | 35 +- .../ghec_v2022_11_28/types/group_0173.py | 24 +- .../ghec_v2022_11_28/types/group_0174.py | 32 +- .../ghec_v2022_11_28/types/group_0175.py | 15 +- .../ghec_v2022_11_28/types/group_0176.py | 37 +- .../ghec_v2022_11_28/types/group_0177.py | 36 +- .../ghec_v2022_11_28/types/group_0178.py | 46 +- .../ghec_v2022_11_28/types/group_0179.py | 14 +- .../ghec_v2022_11_28/types/group_0180.py | 39 +- .../ghec_v2022_11_28/types/group_0181.py | 21 +- .../ghec_v2022_11_28/types/group_0182.py | 21 +- .../ghec_v2022_11_28/types/group_0183.py | 48 +- .../ghec_v2022_11_28/types/group_0184.py | 53 +- .../ghec_v2022_11_28/types/group_0185.py | 59 +- .../ghec_v2022_11_28/types/group_0186.py | 72 +- .../ghec_v2022_11_28/types/group_0187.py | 76 +- .../ghec_v2022_11_28/types/group_0188.py | 19 +- .../ghec_v2022_11_28/types/group_0189.py | 35 +- .../ghec_v2022_11_28/types/group_0190.py | 48 +- .../ghec_v2022_11_28/types/group_0191.py | 45 +- .../ghec_v2022_11_28/types/group_0192.py | 51 +- .../ghec_v2022_11_28/types/group_0193.py | 188 +- .../ghec_v2022_11_28/types/group_0194.py | 81 +- .../ghec_v2022_11_28/types/group_0195.py | 51 +- .../ghec_v2022_11_28/types/group_0196.py | 48 +- .../ghec_v2022_11_28/types/group_0197.py | 140 +- .../ghec_v2022_11_28/types/group_0198.py | 31 +- .../ghec_v2022_11_28/types/group_0199.py | 107 +- .../ghec_v2022_11_28/types/group_0200.py | 160 +- .../ghec_v2022_11_28/types/group_0201.py | 38 +- .../ghec_v2022_11_28/types/group_0202.py | 54 +- .../ghec_v2022_11_28/types/group_0203.py | 31 +- .../ghec_v2022_11_28/types/group_0204.py | 147 +- .../ghec_v2022_11_28/types/group_0205.py | 118 +- .../ghec_v2022_11_28/types/group_0206.py | 107 +- .../ghec_v2022_11_28/types/group_0207.py | 37 +- .../ghec_v2022_11_28/types/group_0208.py | 33 +- .../ghec_v2022_11_28/types/group_0209.py | 25 +- .../ghec_v2022_11_28/types/group_0210.py | 17 +- .../ghec_v2022_11_28/types/group_0211.py | 50 +- .../ghec_v2022_11_28/types/group_0212.py | 115 +- .../ghec_v2022_11_28/types/group_0213.py | 45 +- .../ghec_v2022_11_28/types/group_0214.py | 63 +- .../ghec_v2022_11_28/types/group_0215.py | 17 +- .../ghec_v2022_11_28/types/group_0216.py | 17 +- .../ghec_v2022_11_28/types/group_0217.py | 19 +- .../ghec_v2022_11_28/types/group_0218.py | 23 +- .../ghec_v2022_11_28/types/group_0219.py | 39 +- .../ghec_v2022_11_28/types/group_0220.py | 60 +- .../ghec_v2022_11_28/types/group_0221.py | 84 +- .../ghec_v2022_11_28/types/group_0222.py | 67 +- .../ghec_v2022_11_28/types/group_0223.py | 35 +- .../ghec_v2022_11_28/types/group_0224.py | 13 +- .../ghec_v2022_11_28/types/group_0225.py | 12 +- .../ghec_v2022_11_28/types/group_0226.py | 44 +- .../ghec_v2022_11_28/types/group_0227.py | 73 +- .../ghec_v2022_11_28/types/group_0228.py | 92 +- .../ghec_v2022_11_28/types/group_0229.py | 92 +- .../ghec_v2022_11_28/types/group_0230.py | 52 +- .../ghec_v2022_11_28/types/group_0231.py | 15 +- .../ghec_v2022_11_28/types/group_0232.py | 17 +- .../ghec_v2022_11_28/types/group_0233.py | 55 +- .../ghec_v2022_11_28/types/group_0234.py | 57 +- .../ghec_v2022_11_28/types/group_0235.py | 187 +- .../ghec_v2022_11_28/types/group_0236.py | 136 +- .../ghec_v2022_11_28/types/group_0237.py | 48 +- .../ghec_v2022_11_28/types/group_0238.py | 17 +- .../ghec_v2022_11_28/types/group_0239.py | 19 +- .../ghec_v2022_11_28/types/group_0240.py | 36 +- .../ghec_v2022_11_28/types/group_0241.py | 60 +- .../ghec_v2022_11_28/types/group_0242.py | 127 +- .../ghec_v2022_11_28/types/group_0243.py | 140 +- .../ghec_v2022_11_28/types/group_0244.py | 129 +- .../ghec_v2022_11_28/types/group_0245.py | 26 +- .../ghec_v2022_11_28/types/group_0246.py | 38 +- .../ghec_v2022_11_28/types/group_0247.py | 45 +- .../ghec_v2022_11_28/types/group_0248.py | 98 +- .../ghec_v2022_11_28/types/group_0249.py | 39 +- .../ghec_v2022_11_28/types/group_0250.py | 71 +- .../ghec_v2022_11_28/types/group_0251.py | 131 +- .../ghec_v2022_11_28/types/group_0252.py | 40 +- .../ghec_v2022_11_28/types/group_0253.py | 66 +- .../ghec_v2022_11_28/types/group_0254.py | 31 +- .../ghec_v2022_11_28/types/group_0255.py | 66 +- .../ghec_v2022_11_28/types/group_0256.py | 24 +- .../ghec_v2022_11_28/types/group_0257.py | 75 +- .../ghec_v2022_11_28/types/group_0258.py | 36 +- .../ghec_v2022_11_28/types/group_0259.py | 43 +- .../ghec_v2022_11_28/types/group_0260.py | 69 +- .../ghec_v2022_11_28/types/group_0261.py | 15 +- .../ghec_v2022_11_28/types/group_0262.py | 42 +- .../ghec_v2022_11_28/types/group_0263.py | 18 +- .../ghec_v2022_11_28/types/group_0264.py | 48 +- .../ghec_v2022_11_28/types/group_0265.py | 25 +- .../ghec_v2022_11_28/types/group_0266.py | 49 +- .../ghec_v2022_11_28/types/group_0267.py | 42 +- .../ghec_v2022_11_28/types/group_0268.py | 17 +- .../ghec_v2022_11_28/types/group_0269.py | 47 +- .../ghec_v2022_11_28/types/group_0270.py | 20 +- .../ghec_v2022_11_28/types/group_0271.py | 49 +- .../ghec_v2022_11_28/types/group_0272.py | 37 +- .../ghec_v2022_11_28/types/group_0273.py | 40 +- .../ghec_v2022_11_28/types/group_0274.py | 45 +- .../ghec_v2022_11_28/types/group_0275.py | 61 +- .../ghec_v2022_11_28/types/group_0276.py | 54 +- .../ghec_v2022_11_28/types/group_0277.py | 28 +- .../ghec_v2022_11_28/types/group_0278.py | 31 +- .../ghec_v2022_11_28/types/group_0279.py | 34 +- .../ghec_v2022_11_28/types/group_0280.py | 80 +- .../ghec_v2022_11_28/types/group_0281.py | 44 +- .../ghec_v2022_11_28/types/group_0282.py | 68 +- .../ghec_v2022_11_28/types/group_0283.py | 63 +- .../ghec_v2022_11_28/types/group_0284.py | 37 +- .../ghec_v2022_11_28/types/group_0285.py | 45 +- .../ghec_v2022_11_28/types/group_0286.py | 36 +- .../ghec_v2022_11_28/types/group_0287.py | 118 +- .../ghec_v2022_11_28/types/group_0288.py | 41 +- .../ghec_v2022_11_28/types/group_0289.py | 45 +- .../ghec_v2022_11_28/types/group_0290.py | 49 +- .../ghec_v2022_11_28/types/group_0291.py | 47 +- .../ghec_v2022_11_28/types/group_0292.py | 116 +- .../ghec_v2022_11_28/types/group_0293.py | 65 +- .../ghec_v2022_11_28/types/group_0294.py | 76 +- .../ghec_v2022_11_28/types/group_0295.py | 57 +- .../ghec_v2022_11_28/types/group_0296.py | 42 +- .../ghec_v2022_11_28/types/group_0297.py | 41 +- .../ghec_v2022_11_28/types/group_0298.py | 87 +- .../ghec_v2022_11_28/types/group_0299.py | 108 +- .../ghec_v2022_11_28/types/group_0300.py | 53 +- .../ghec_v2022_11_28/types/group_0301.py | 68 +- .../ghec_v2022_11_28/types/group_0302.py | 79 +- .../ghec_v2022_11_28/types/group_0303.py | 36 +- .../ghec_v2022_11_28/types/group_0304.py | 33 +- .../ghec_v2022_11_28/types/group_0305.py | 101 +- .../ghec_v2022_11_28/types/group_0306.py | 22 +- .../ghec_v2022_11_28/types/group_0307.py | 18 +- .../ghec_v2022_11_28/types/group_0308.py | 33 +- .../ghec_v2022_11_28/types/group_0309.py | 54 +- .../ghec_v2022_11_28/types/group_0310.py | 36 +- .../ghec_v2022_11_28/types/group_0311.py | 35 +- .../ghec_v2022_11_28/types/group_0312.py | 63 +- .../ghec_v2022_11_28/types/group_0313.py | 22 +- .../ghec_v2022_11_28/types/group_0314.py | 79 +- .../ghec_v2022_11_28/types/group_0315.py | 29 +- .../ghec_v2022_11_28/types/group_0316.py | 40 +- .../ghec_v2022_11_28/types/group_0317.py | 32 +- .../ghec_v2022_11_28/types/group_0318.py | 37 +- .../ghec_v2022_11_28/types/group_0319.py | 27 +- .../ghec_v2022_11_28/types/group_0320.py | 66 +- .../ghec_v2022_11_28/types/group_0321.py | 75 +- .../ghec_v2022_11_28/types/group_0322.py | 27 +- .../ghec_v2022_11_28/types/group_0323.py | 113 +- .../ghec_v2022_11_28/types/group_0324.py | 40 +- .../ghec_v2022_11_28/types/group_0325.py | 37 +- .../ghec_v2022_11_28/types/group_0326.py | 36 +- .../ghec_v2022_11_28/types/group_0327.py | 75 +- .../ghec_v2022_11_28/types/group_0328.py | 34 +- .../ghec_v2022_11_28/types/group_0329.py | 35 +- .../ghec_v2022_11_28/types/group_0330.py | 105 +- .../ghec_v2022_11_28/types/group_0331.py | 31 +- .../ghec_v2022_11_28/types/group_0332.py | 31 +- .../ghec_v2022_11_28/types/group_0333.py | 35 +- .../ghec_v2022_11_28/types/group_0334.py | 19 +- .../ghec_v2022_11_28/types/group_0335.py | 31 +- .../ghec_v2022_11_28/types/group_0336.py | 31 +- .../ghec_v2022_11_28/types/group_0337.py | 32 +- .../ghec_v2022_11_28/types/group_0338.py | 35 +- .../ghec_v2022_11_28/types/group_0339.py | 50 +- .../ghec_v2022_11_28/types/group_0340.py | 42 +- .../ghec_v2022_11_28/types/group_0341.py | 27 +- .../ghec_v2022_11_28/types/group_0342.py | 85 +- .../ghec_v2022_11_28/types/group_0343.py | 69 +- .../ghec_v2022_11_28/types/group_0344.py | 106 +- .../ghec_v2022_11_28/types/group_0345.py | 34 +- .../ghec_v2022_11_28/types/group_0346.py | 49 +- .../ghec_v2022_11_28/types/group_0347.py | 30 +- .../ghec_v2022_11_28/types/group_0348.py | 22 +- .../ghec_v2022_11_28/types/group_0349.py | 82 +- .../ghec_v2022_11_28/types/group_0350.py | 76 +- .../ghec_v2022_11_28/types/group_0351.py | 100 +- .../ghec_v2022_11_28/types/group_0352.py | 69 +- .../ghec_v2022_11_28/types/group_0353.py | 39 +- .../ghec_v2022_11_28/types/group_0354.py | 24 +- .../ghec_v2022_11_28/types/group_0355.py | 22 +- .../ghec_v2022_11_28/types/group_0356.py | 36 +- .../ghec_v2022_11_28/types/group_0357.py | 98 +- .../ghec_v2022_11_28/types/group_0358.py | 82 +- .../ghec_v2022_11_28/types/group_0359.py | 66 +- .../ghec_v2022_11_28/types/group_0360.py | 38 +- .../ghec_v2022_11_28/types/group_0361.py | 19 +- .../ghec_v2022_11_28/types/group_0362.py | 18 +- .../ghec_v2022_11_28/types/group_0363.py | 42 +- .../ghec_v2022_11_28/types/group_0364.py | 127 +- .../ghec_v2022_11_28/types/group_0365.py | 85 +- .../ghec_v2022_11_28/types/group_0366.py | 19 +- .../ghec_v2022_11_28/types/group_0367.py | 44 +- .../ghec_v2022_11_28/types/group_0368.py | 60 +- .../ghec_v2022_11_28/types/group_0369.py | 13 +- .../ghec_v2022_11_28/types/group_0370.py | 20 +- .../ghec_v2022_11_28/types/group_0371.py | 64 +- .../ghec_v2022_11_28/types/group_0372.py | 58 +- .../ghec_v2022_11_28/types/group_0373.py | 18 +- .../ghec_v2022_11_28/types/group_0374.py | 33 +- .../ghec_v2022_11_28/types/group_0375.py | 54 +- .../ghec_v2022_11_28/types/group_0376.py | 19 +- .../ghec_v2022_11_28/types/group_0377.py | 11 +- .../ghec_v2022_11_28/types/group_0378.py | 11 +- .../ghec_v2022_11_28/types/group_0379.py | 12 +- .../ghec_v2022_11_28/types/group_0380.py | 8 +- .../ghec_v2022_11_28/types/group_0381.py | 11 +- .../ghec_v2022_11_28/types/group_0382.py | 12 +- .../ghec_v2022_11_28/types/group_0383.py | 12 +- .../ghec_v2022_11_28/types/group_0384.py | 11 +- .../ghec_v2022_11_28/types/group_0385.py | 12 +- .../ghec_v2022_11_28/types/group_0386.py | 12 +- .../ghec_v2022_11_28/types/group_0387.py | 11 +- .../ghec_v2022_11_28/types/group_0388.py | 52 +- .../ghec_v2022_11_28/types/group_0389.py | 19 +- .../ghec_v2022_11_28/types/group_0390.py | 47 +- .../ghec_v2022_11_28/types/group_0391.py | 16 +- .../ghec_v2022_11_28/types/group_0392.py | 80 +- .../ghec_v2022_11_28/types/group_0393.py | 61 +- .../ghec_v2022_11_28/types/group_0394.py | 84 +- .../ghec_v2022_11_28/types/group_0395.py | 55 +- .../ghec_v2022_11_28/types/group_0396.py | 19 +- .../ghec_v2022_11_28/types/group_0397.py | 44 +- .../ghec_v2022_11_28/types/group_0398.py | 12 +- .../ghec_v2022_11_28/types/group_0399.py | 83 +- .../ghec_v2022_11_28/types/group_0400.py | 63 +- .../ghec_v2022_11_28/types/group_0401.py | 82 +- .../ghec_v2022_11_28/types/group_0402.py | 15 +- .../ghec_v2022_11_28/types/group_0403.py | 16 +- .../ghec_v2022_11_28/types/group_0404.py | 31 +- .../ghec_v2022_11_28/types/group_0405.py | 15 +- .../ghec_v2022_11_28/types/group_0406.py | 19 +- .../ghec_v2022_11_28/types/group_0407.py | 28 +- .../ghec_v2022_11_28/types/group_0408.py | 33 +- .../ghec_v2022_11_28/types/group_0409.py | 16 +- .../ghec_v2022_11_28/types/group_0410.py | 48 +- .../ghec_v2022_11_28/types/group_0411.py | 28 +- .../ghec_v2022_11_28/types/group_0412.py | 26 +- .../ghec_v2022_11_28/types/group_0413.py | 26 +- .../ghec_v2022_11_28/types/group_0414.py | 27 +- .../ghec_v2022_11_28/types/group_0415.py | 41 +- .../ghec_v2022_11_28/types/group_0416.py | 24 +- .../ghec_v2022_11_28/types/group_0417.py | 46 +- .../ghec_v2022_11_28/types/group_0418.py | 26 +- .../ghec_v2022_11_28/types/group_0419.py | 26 +- .../ghec_v2022_11_28/types/group_0420.py | 40 +- .../ghec_v2022_11_28/types/group_0421.py | 105 +- .../ghec_v2022_11_28/types/group_0422.py | 38 +- .../ghec_v2022_11_28/types/group_0423.py | 48 +- .../ghec_v2022_11_28/types/group_0424.py | 66 +- .../ghec_v2022_11_28/types/group_0425.py | 41 +- .../ghec_v2022_11_28/types/group_0426.py | 110 +- .../ghec_v2022_11_28/types/group_0427.py | 50 +- .../ghec_v2022_11_28/types/group_0428.py | 214 +- .../ghec_v2022_11_28/types/group_0429.py | 82 +- .../ghec_v2022_11_28/types/group_0430.py | 59 +- .../ghec_v2022_11_28/types/group_0431.py | 94 +- .../ghec_v2022_11_28/types/group_0432.py | 42 +- .../ghec_v2022_11_28/types/group_0433.py | 114 +- .../ghec_v2022_11_28/types/group_0434.py | 95 +- .../ghec_v2022_11_28/types/group_0435.py | 130 +- .../ghec_v2022_11_28/types/group_0436.py | 104 +- .../ghec_v2022_11_28/types/group_0437.py | 62 +- .../ghec_v2022_11_28/types/group_0438.py | 78 +- .../ghec_v2022_11_28/types/group_0439.py | 12 +- .../ghec_v2022_11_28/types/group_0440.py | 23 +- .../ghec_v2022_11_28/types/group_0441.py | 91 +- .../ghec_v2022_11_28/types/group_0442.py | 24 +- .../ghec_v2022_11_28/types/group_0443.py | 65 +- .../ghec_v2022_11_28/types/group_0444.py | 31 +- .../ghec_v2022_11_28/types/group_0445.py | 42 +- .../ghec_v2022_11_28/types/group_0446.py | 24 +- .../ghec_v2022_11_28/types/group_0447.py | 277 +- .../ghec_v2022_11_28/types/group_0448.py | 54 +- .../ghec_v2022_11_28/types/group_0449.py | 29 +- .../ghec_v2022_11_28/types/group_0450.py | 97 +- .../ghec_v2022_11_28/types/group_0451.py | 64 +- .../ghec_v2022_11_28/types/group_0452.py | 65 +- .../ghec_v2022_11_28/types/group_0453.py | 32 +- .../ghec_v2022_11_28/types/group_0454.py | 280 +- .../ghec_v2022_11_28/types/group_0455.py | 107 +- .../ghec_v2022_11_28/types/group_0456.py | 27 +- .../ghec_v2022_11_28/types/group_0457.py | 117 +- .../ghec_v2022_11_28/types/group_0458.py | 110 +- .../ghec_v2022_11_28/types/group_0459.py | 177 +- .../ghec_v2022_11_28/types/group_0460.py | 84 +- .../ghec_v2022_11_28/types/group_0461.py | 17 +- .../ghec_v2022_11_28/types/group_0462.py | 68 +- .../ghec_v2022_11_28/types/group_0463.py | 17 +- .../ghec_v2022_11_28/types/group_0464.py | 58 +- .../ghec_v2022_11_28/types/group_0465.py | 77 +- .../ghec_v2022_11_28/types/group_0466.py | 278 +- .../ghec_v2022_11_28/types/group_0467.py | 62 +- .../ghec_v2022_11_28/types/group_0468.py | 334 +- .../ghec_v2022_11_28/types/group_0469.py | 44 +- .../ghec_v2022_11_28/types/group_0470.py | 43 +- .../ghec_v2022_11_28/types/group_0471.py | 109 +- .../ghec_v2022_11_28/types/group_0472.py | 51 +- .../ghec_v2022_11_28/types/group_0473.py | 346 +- .../ghec_v2022_11_28/types/group_0474.py | 12 +- .../ghec_v2022_11_28/types/group_0475.py | 316 +- .../ghec_v2022_11_28/types/group_0476.py | 190 +- .../ghec_v2022_11_28/types/group_0477.py | 77 +- .../ghec_v2022_11_28/types/group_0478.py | 75 +- .../ghec_v2022_11_28/types/group_0479.py | 49 +- .../ghec_v2022_11_28/types/group_0480.py | 35 +- .../ghec_v2022_11_28/types/group_0481.py | 58 +- .../ghec_v2022_11_28/types/group_0482.py | 58 +- .../ghec_v2022_11_28/types/group_0483.py | 168 +- .../ghec_v2022_11_28/types/group_0484.py | 118 +- .../ghec_v2022_11_28/types/group_0485.py | 62 +- .../ghec_v2022_11_28/types/group_0486.py | 861 +- .../ghec_v2022_11_28/types/group_0487.py | 138 +- .../ghec_v2022_11_28/types/group_0488.py | 84 +- .../ghec_v2022_11_28/types/group_0489.py | 129 +- .../ghec_v2022_11_28/types/group_0490.py | 134 +- .../ghec_v2022_11_28/types/group_0491.py | 122 +- .../ghec_v2022_11_28/types/group_0492.py | 61 +- .../ghec_v2022_11_28/types/group_0493.py | 889 +- .../ghec_v2022_11_28/types/group_0494.py | 166 +- .../ghec_v2022_11_28/types/group_0495.py | 95 +- .../ghec_v2022_11_28/types/group_0496.py | 133 +- .../ghec_v2022_11_28/types/group_0497.py | 138 +- .../ghec_v2022_11_28/types/group_0498.py | 68 +- .../ghec_v2022_11_28/types/group_0499.py | 67 +- .../ghec_v2022_11_28/types/group_0500.py | 102 +- .../ghec_v2022_11_28/types/group_0501.py | 270 +- .../ghec_v2022_11_28/types/group_0502.py | 49 +- .../ghec_v2022_11_28/types/group_0503.py | 67 +- .../ghec_v2022_11_28/types/group_0504.py | 22 +- .../ghec_v2022_11_28/types/group_0505.py | 24 +- .../ghec_v2022_11_28/types/group_0506.py | 26 +- .../ghec_v2022_11_28/types/group_0507.py | 22 +- .../ghec_v2022_11_28/types/group_0508.py | 169 +- .../ghec_v2022_11_28/types/group_0509.py | 24 +- .../ghec_v2022_11_28/types/group_0510.py | 25 +- .../ghec_v2022_11_28/types/group_0511.py | 37 +- .../ghec_v2022_11_28/types/group_0512.py | 27 +- .../ghec_v2022_11_28/types/group_0513.py | 26 +- .../ghec_v2022_11_28/types/group_0514.py | 23 +- .../ghec_v2022_11_28/types/group_0515.py | 264 +- .../ghec_v2022_11_28/types/group_0516.py | 262 +- .../ghec_v2022_11_28/types/group_0517.py | 260 +- .../ghec_v2022_11_28/types/group_0518.py | 150 +- .../ghec_v2022_11_28/types/group_0519.py | 152 +- .../ghec_v2022_11_28/types/group_0520.py | 118 +- .../ghec_v2022_11_28/types/group_0521.py | 146 +- .../ghec_v2022_11_28/types/group_0522.py | 294 +- .../ghec_v2022_11_28/types/group_0523.py | 289 +- .../ghec_v2022_11_28/types/group_0524.py | 258 +- .../ghec_v2022_11_28/types/group_0525.py | 149 +- .../ghec_v2022_11_28/types/group_0526.py | 155 +- .../ghec_v2022_11_28/types/group_0527.py | 118 +- .../ghec_v2022_11_28/types/group_0528.py | 149 +- .../ghec_v2022_11_28/types/group_0529.py | 128 +- .../ghec_v2022_11_28/types/group_0530.py | 115 +- .../ghec_v2022_11_28/types/group_0531.py | 105 +- .../ghec_v2022_11_28/types/group_0532.py | 28 +- .../ghec_v2022_11_28/types/group_0533.py | 24 +- .../ghec_v2022_11_28/types/group_0534.py | 34 +- .../ghec_v2022_11_28/types/group_0535.py | 26 +- .../ghec_v2022_11_28/types/group_0536.py | 29 +- .../ghec_v2022_11_28/types/group_0537.py | 24 +- .../ghec_v2022_11_28/types/group_0538.py | 24 +- .../ghec_v2022_11_28/types/group_0539.py | 24 +- .../ghec_v2022_11_28/types/group_0540.py | 549 +- .../ghec_v2022_11_28/types/group_0541.py | 39 +- .../ghec_v2022_11_28/types/group_0542.py | 420 +- .../ghec_v2022_11_28/types/group_0543.py | 418 +- .../ghec_v2022_11_28/types/group_0544.py | 454 +- .../ghec_v2022_11_28/types/group_0545.py | 762 +- .../ghec_v2022_11_28/types/group_0546.py | 24 +- .../ghec_v2022_11_28/types/group_0547.py | 551 +- .../ghec_v2022_11_28/types/group_0548.py | 39 +- .../ghec_v2022_11_28/types/group_0549.py | 420 +- .../ghec_v2022_11_28/types/group_0550.py | 418 +- .../ghec_v2022_11_28/types/group_0551.py | 455 +- .../ghec_v2022_11_28/types/group_0552.py | 762 +- .../ghec_v2022_11_28/types/group_0553.py | 22 +- .../ghec_v2022_11_28/types/group_0554.py | 57 +- .../ghec_v2022_11_28/types/group_0555.py | 22 +- .../ghec_v2022_11_28/types/group_0556.py | 22 +- .../ghec_v2022_11_28/types/group_0557.py | 22 +- .../ghec_v2022_11_28/types/group_0558.py | 39 +- .../ghec_v2022_11_28/types/group_0559.py | 22 +- .../ghec_v2022_11_28/types/group_0560.py | 26 +- .../ghec_v2022_11_28/types/group_0561.py | 49 +- .../ghec_v2022_11_28/types/group_0562.py | 22 +- .../ghec_v2022_11_28/types/group_0563.py | 20 +- .../ghec_v2022_11_28/types/group_0564.py | 20 +- .../ghec_v2022_11_28/types/group_0565.py | 25 +- .../ghec_v2022_11_28/types/group_0566.py | 160 +- .../ghec_v2022_11_28/types/group_0567.py | 149 +- .../ghec_v2022_11_28/types/group_0568.py | 24 +- .../ghec_v2022_11_28/types/group_0569.py | 131 +- .../ghec_v2022_11_28/types/group_0570.py | 22 +- .../ghec_v2022_11_28/types/group_0571.py | 36 +- .../ghec_v2022_11_28/types/group_0572.py | 31 +- .../ghec_v2022_11_28/types/group_0573.py | 159 +- .../ghec_v2022_11_28/types/group_0574.py | 158 +- .../ghec_v2022_11_28/types/group_0575.py | 53 +- .../ghec_v2022_11_28/types/group_0576.py | 148 +- .../ghec_v2022_11_28/types/group_0577.py | 31 +- .../ghec_v2022_11_28/types/group_0578.py | 96 +- .../ghec_v2022_11_28/types/group_0579.py | 25 +- .../ghec_v2022_11_28/types/group_0580.py | 29 +- .../ghec_v2022_11_28/types/group_0581.py | 95 +- .../ghec_v2022_11_28/types/group_0582.py | 169 +- .../ghec_v2022_11_28/types/group_0583.py | 171 +- .../ghec_v2022_11_28/types/group_0584.py | 70 +- .../ghec_v2022_11_28/types/group_0585.py | 80 +- .../ghec_v2022_11_28/types/group_0586.py | 61 +- .../ghec_v2022_11_28/types/group_0587.py | 95 +- .../ghec_v2022_11_28/types/group_0588.py | 99 +- .../ghec_v2022_11_28/types/group_0589.py | 154 +- .../ghec_v2022_11_28/types/group_0590.py | 175 +- .../ghec_v2022_11_28/types/group_0591.py | 68 +- .../ghec_v2022_11_28/types/group_0592.py | 61 +- .../ghec_v2022_11_28/types/group_0593.py | 62 +- .../ghec_v2022_11_28/types/group_0594.py | 167 +- .../ghec_v2022_11_28/types/group_0595.py | 167 +- .../ghec_v2022_11_28/types/group_0596.py | 61 +- .../ghec_v2022_11_28/types/group_0597.py | 117 +- .../ghec_v2022_11_28/types/group_0598.py | 15 +- .../ghec_v2022_11_28/types/group_0599.py | 108 +- .../ghec_v2022_11_28/types/group_0600.py | 61 +- .../ghec_v2022_11_28/types/group_0601.py | 154 +- .../ghec_v2022_11_28/types/group_0602.py | 174 +- .../ghec_v2022_11_28/types/group_0603.py | 68 +- .../ghec_v2022_11_28/types/group_0604.py | 61 +- .../ghec_v2022_11_28/types/group_0605.py | 64 +- .../ghec_v2022_11_28/types/group_0606.py | 165 +- .../ghec_v2022_11_28/types/group_0607.py | 165 +- .../ghec_v2022_11_28/types/group_0608.py | 61 +- .../ghec_v2022_11_28/types/group_0609.py | 118 +- .../ghec_v2022_11_28/types/group_0610.py | 15 +- .../ghec_v2022_11_28/types/group_0611.py | 107 +- .../ghec_v2022_11_28/types/group_0612.py | 63 +- .../ghec_v2022_11_28/types/group_0613.py | 152 +- .../ghec_v2022_11_28/types/group_0614.py | 173 +- .../ghec_v2022_11_28/types/group_0615.py | 68 +- .../ghec_v2022_11_28/types/group_0616.py | 61 +- .../ghec_v2022_11_28/types/group_0617.py | 60 +- .../ghec_v2022_11_28/types/group_0618.py | 92 +- .../ghec_v2022_11_28/types/group_0619.py | 192 +- .../ghec_v2022_11_28/types/group_0620.py | 189 +- .../ghec_v2022_11_28/types/group_0621.py | 117 +- .../ghec_v2022_11_28/types/group_0622.py | 17 +- .../ghec_v2022_11_28/types/group_0623.py | 107 +- .../ghec_v2022_11_28/types/group_0624.py | 60 +- .../ghec_v2022_11_28/types/group_0625.py | 37 +- .../ghec_v2022_11_28/types/group_0626.py | 206 +- .../ghec_v2022_11_28/types/group_0627.py | 180 +- .../ghec_v2022_11_28/types/group_0628.py | 60 +- .../ghec_v2022_11_28/types/group_0629.py | 347 +- .../ghec_v2022_11_28/types/group_0630.py | 306 +- .../ghec_v2022_11_28/types/group_0631.py | 377 +- .../ghec_v2022_11_28/types/group_0632.py | 356 +- .../ghec_v2022_11_28/types/group_0633.py | 387 +- .../ghec_v2022_11_28/types/group_0634.py | 355 +- .../ghec_v2022_11_28/types/group_0635.py | 901 +- .../ghec_v2022_11_28/types/group_0636.py | 369 +- .../ghec_v2022_11_28/types/group_0637.py | 114 +- .../ghec_v2022_11_28/types/group_0638.py | 348 +- .../ghec_v2022_11_28/types/group_0639.py | 371 +- .../ghec_v2022_11_28/types/group_0640.py | 374 +- .../ghec_v2022_11_28/types/group_0641.py | 110 +- .../ghec_v2022_11_28/types/group_0642.py | 913 +- .../ghec_v2022_11_28/types/group_0643.py | 24 +- .../ghec_v2022_11_28/types/group_0644.py | 370 +- .../ghec_v2022_11_28/types/group_0645.py | 587 +- .../ghec_v2022_11_28/types/group_0646.py | 31 +- .../ghec_v2022_11_28/types/group_0647.py | 79 +- .../ghec_v2022_11_28/types/group_0648.py | 389 +- .../ghec_v2022_11_28/types/group_0649.py | 79 +- .../ghec_v2022_11_28/types/group_0650.py | 29 +- .../ghec_v2022_11_28/types/group_0651.py | 61 +- .../ghec_v2022_11_28/types/group_0652.py | 59 +- .../ghec_v2022_11_28/types/group_0653.py | 29 +- .../ghec_v2022_11_28/types/group_0654.py | 101 +- .../ghec_v2022_11_28/types/group_0655.py | 103 +- .../ghec_v2022_11_28/types/group_0656.py | 79 +- .../ghec_v2022_11_28/types/group_0657.py | 28 +- .../ghec_v2022_11_28/types/group_0658.py | 73 +- .../ghec_v2022_11_28/types/group_0659.py | 53 +- .../ghec_v2022_11_28/types/group_0660.py | 24 +- .../ghec_v2022_11_28/types/group_0661.py | 62 +- .../ghec_v2022_11_28/types/group_0662.py | 94 +- .../ghec_v2022_11_28/types/group_0663.py | 26 +- .../ghec_v2022_11_28/types/group_0664.py | 29 +- .../ghec_v2022_11_28/types/group_0665.py | 58 +- .../ghec_v2022_11_28/types/group_0666.py | 26 +- .../ghec_v2022_11_28/types/group_0667.py | 26 +- .../ghec_v2022_11_28/types/group_0668.py | 81 +- .../ghec_v2022_11_28/types/group_0669.py | 62 +- .../ghec_v2022_11_28/types/group_0670.py | 43 +- .../ghec_v2022_11_28/types/group_0671.py | 53 +- .../ghec_v2022_11_28/types/group_0672.py | 26 +- .../ghec_v2022_11_28/types/group_0673.py | 80 +- .../ghec_v2022_11_28/types/group_0674.py | 504 +- .../ghec_v2022_11_28/types/group_0675.py | 81 +- .../ghec_v2022_11_28/types/group_0676.py | 78 +- .../ghec_v2022_11_28/types/group_0677.py | 194 +- .../ghec_v2022_11_28/types/group_0678.py | 91 +- .../ghec_v2022_11_28/types/group_0679.py | 26 +- .../ghec_v2022_11_28/types/group_0680.py | 78 +- .../ghec_v2022_11_28/types/group_0681.py | 502 +- .../ghec_v2022_11_28/types/group_0682.py | 26 +- .../ghec_v2022_11_28/types/group_0683.py | 74 +- .../ghec_v2022_11_28/types/group_0684.py | 177 +- .../ghec_v2022_11_28/types/group_0685.py | 77 +- .../ghec_v2022_11_28/types/group_0686.py | 43 +- .../ghec_v2022_11_28/types/group_0687.py | 26 +- .../ghec_v2022_11_28/types/group_0688.py | 77 +- .../ghec_v2022_11_28/types/group_0689.py | 45 +- .../ghec_v2022_11_28/types/group_0690.py | 90 +- .../ghec_v2022_11_28/types/group_0691.py | 62 +- .../ghec_v2022_11_28/types/group_0692.py | 63 +- .../ghec_v2022_11_28/types/group_0693.py | 39 +- .../ghec_v2022_11_28/types/group_0694.py | 22 +- .../ghec_v2022_11_28/types/group_0695.py | 71 +- .../ghec_v2022_11_28/types/group_0696.py | 42 +- .../ghec_v2022_11_28/types/group_0697.py | 86 +- .../ghec_v2022_11_28/types/group_0698.py | 64 +- .../ghec_v2022_11_28/types/group_0699.py | 68 +- .../ghec_v2022_11_28/types/group_0700.py | 50 +- .../ghec_v2022_11_28/types/group_0701.py | 24 +- .../ghec_v2022_11_28/types/group_0702.py | 28 +- .../ghec_v2022_11_28/types/group_0703.py | 46 +- .../ghec_v2022_11_28/types/group_0704.py | 24 +- .../ghec_v2022_11_28/types/group_0705.py | 75 +- .../ghec_v2022_11_28/types/group_0706.py | 30 +- .../ghec_v2022_11_28/types/group_0707.py | 60 +- .../ghec_v2022_11_28/types/group_0708.py | 24 +- .../ghec_v2022_11_28/types/group_0709.py | 18 +- .../ghec_v2022_11_28/types/group_0710.py | 107 +- .../ghec_v2022_11_28/types/group_0711.py | 42 +- .../ghec_v2022_11_28/types/group_0712.py | 71 +- .../ghec_v2022_11_28/types/group_0713.py | 20 +- .../ghec_v2022_11_28/types/group_0714.py | 40 +- .../ghec_v2022_11_28/types/group_0715.py | 18 +- .../ghec_v2022_11_28/types/group_0716.py | 74 +- .../ghec_v2022_11_28/types/group_0717.py | 106 +- .../ghec_v2022_11_28/types/group_0718.py | 947 +- .../ghec_v2022_11_28/types/group_0719.py | 998 +- .../ghec_v2022_11_28/types/group_0720.py | 986 +- .../ghec_v2022_11_28/types/group_0721.py | 25 +- .../ghec_v2022_11_28/types/group_0722.py | 25 +- .../ghec_v2022_11_28/types/group_0723.py | 85 +- .../ghec_v2022_11_28/types/group_0724.py | 954 +- .../ghec_v2022_11_28/types/group_0725.py | 955 +- .../ghec_v2022_11_28/types/group_0726.py | 326 +- .../ghec_v2022_11_28/types/group_0727.py | 356 +- .../ghec_v2022_11_28/types/group_0728.py | 933 +- .../ghec_v2022_11_28/types/group_0729.py | 26 +- .../ghec_v2022_11_28/types/group_0730.py | 26 +- .../ghec_v2022_11_28/types/group_0731.py | 957 +- .../ghec_v2022_11_28/types/group_0732.py | 73 +- .../ghec_v2022_11_28/types/group_0733.py | 570 +- .../ghec_v2022_11_28/types/group_0734.py | 402 +- .../ghec_v2022_11_28/types/group_0735.py | 409 +- .../ghec_v2022_11_28/types/group_0736.py | 1026 +- .../ghec_v2022_11_28/types/group_0737.py | 916 +- .../ghec_v2022_11_28/types/group_0738.py | 1064 +- .../ghec_v2022_11_28/types/group_0739.py | 1080 +- .../ghec_v2022_11_28/types/group_0740.py | 487 +- .../ghec_v2022_11_28/types/group_0741.py | 428 +- .../ghec_v2022_11_28/types/group_0742.py | 320 +- .../ghec_v2022_11_28/types/group_0743.py | 532 +- .../ghec_v2022_11_28/types/group_0744.py | 560 +- .../ghec_v2022_11_28/types/group_0745.py | 391 +- .../ghec_v2022_11_28/types/group_0746.py | 473 +- .../ghec_v2022_11_28/types/group_0747.py | 409 +- .../ghec_v2022_11_28/types/group_0748.py | 430 +- .../ghec_v2022_11_28/types/group_0749.py | 877 +- .../ghec_v2022_11_28/types/group_0750.py | 1103 +- .../ghec_v2022_11_28/types/group_0751.py | 1119 +- .../ghec_v2022_11_28/types/group_0752.py | 1214 ++- .../ghec_v2022_11_28/types/group_0753.py | 958 +- .../ghec_v2022_11_28/types/group_0754.py | 962 +- .../ghec_v2022_11_28/types/group_0755.py | 997 +- .../ghec_v2022_11_28/types/group_0756.py | 300 +- .../ghec_v2022_11_28/types/group_0757.py | 24 +- .../ghec_v2022_11_28/types/group_0758.py | 109 +- .../ghec_v2022_11_28/types/group_0759.py | 569 +- .../ghec_v2022_11_28/types/group_0760.py | 26 +- .../ghec_v2022_11_28/types/group_0761.py | 72 +- .../ghec_v2022_11_28/types/group_0762.py | 181 +- .../ghec_v2022_11_28/types/group_0763.py | 24 +- .../ghec_v2022_11_28/types/group_0764.py | 24 +- .../ghec_v2022_11_28/types/group_0765.py | 55 +- .../ghec_v2022_11_28/types/group_0766.py | 151 +- .../ghec_v2022_11_28/types/group_0767.py | 22 +- .../ghec_v2022_11_28/types/group_0768.py | 41 +- .../ghec_v2022_11_28/types/group_0769.py | 65 +- .../ghec_v2022_11_28/types/group_0770.py | 22 +- .../ghec_v2022_11_28/types/group_0771.py | 22 +- .../ghec_v2022_11_28/types/group_0772.py | 18 +- .../ghec_v2022_11_28/types/group_0773.py | 42 +- .../ghec_v2022_11_28/types/group_0774.py | 22 +- .../ghec_v2022_11_28/types/group_0775.py | 41 +- .../ghec_v2022_11_28/types/group_0776.py | 65 +- .../ghec_v2022_11_28/types/group_0777.py | 42 +- .../ghec_v2022_11_28/types/group_0778.py | 29 +- .../ghec_v2022_11_28/types/group_0779.py | 93 +- .../ghec_v2022_11_28/types/group_0780.py | 134 +- .../ghec_v2022_11_28/types/group_0781.py | 126 +- .../ghec_v2022_11_28/types/group_0782.py | 104 +- .../ghec_v2022_11_28/types/group_0783.py | 24 +- .../ghec_v2022_11_28/types/group_0784.py | 44 +- .../ghec_v2022_11_28/types/group_0785.py | 88 +- .../ghec_v2022_11_28/types/group_0786.py | 95 +- .../ghec_v2022_11_28/types/group_0787.py | 163 +- .../ghec_v2022_11_28/types/group_0788.py | 126 +- .../ghec_v2022_11_28/types/group_0789.py | 277 +- .../ghec_v2022_11_28/types/group_0790.py | 22 +- .../ghec_v2022_11_28/types/group_0791.py | 24 +- .../ghec_v2022_11_28/types/group_0792.py | 85 +- .../ghec_v2022_11_28/types/group_0793.py | 24 +- .../ghec_v2022_11_28/types/group_0794.py | 85 +- .../ghec_v2022_11_28/types/group_0795.py | 40 +- .../ghec_v2022_11_28/types/group_0796.py | 231 +- .../ghec_v2022_11_28/types/group_0797.py | 24 +- .../ghec_v2022_11_28/types/group_0798.py | 24 +- .../ghec_v2022_11_28/types/group_0799.py | 120 +- .../ghec_v2022_11_28/types/group_0800.py | 24 +- .../ghec_v2022_11_28/types/group_0801.py | 22 +- .../ghec_v2022_11_28/types/group_0802.py | 41 +- .../ghec_v2022_11_28/types/group_0803.py | 24 +- .../ghec_v2022_11_28/types/group_0804.py | 24 +- .../ghec_v2022_11_28/types/group_0805.py | 41 +- .../ghec_v2022_11_28/types/group_0806.py | 121 +- .../ghec_v2022_11_28/types/group_0807.py | 29 +- .../ghec_v2022_11_28/types/group_0808.py | 24 +- .../ghec_v2022_11_28/types/group_0809.py | 22 +- .../ghec_v2022_11_28/types/group_0810.py | 23 +- .../ghec_v2022_11_28/types/group_0811.py | 201 +- .../ghec_v2022_11_28/types/group_0812.py | 45 +- .../ghec_v2022_11_28/types/group_0813.py | 25 +- .../ghec_v2022_11_28/types/group_0814.py | 31 +- .../ghec_v2022_11_28/types/group_0815.py | 26 +- .../ghec_v2022_11_28/types/group_0816.py | 32 +- .../ghec_v2022_11_28/types/group_0817.py | 36 +- .../ghec_v2022_11_28/types/group_0818.py | 208 +- .../ghec_v2022_11_28/types/group_0819.py | 31 +- .../ghec_v2022_11_28/types/group_0820.py | 22 +- .../ghec_v2022_11_28/types/group_0821.py | 191 +- .../ghec_v2022_11_28/types/group_0822.py | 187 +- .../ghec_v2022_11_28/types/group_0823.py | 206 +- .../ghec_v2022_11_28/types/group_0824.py | 276 +- .../ghec_v2022_11_28/types/group_0825.py | 212 +- .../ghec_v2022_11_28/types/group_0826.py | 35 +- .../ghec_v2022_11_28/types/group_0827.py | 32 +- .../ghec_v2022_11_28/types/group_0828.py | 227 +- .../ghec_v2022_11_28/types/group_0829.py | 211 +- .../ghec_v2022_11_28/types/group_0830.py | 219 +- .../ghec_v2022_11_28/types/group_0831.py | 277 +- .../ghec_v2022_11_28/types/group_0832.py | 206 +- .../ghec_v2022_11_28/types/group_0833.py | 63 +- .../ghec_v2022_11_28/types/group_0834.py | 71 +- .../ghec_v2022_11_28/types/group_0835.py | 65 +- .../ghec_v2022_11_28/types/group_0836.py | 429 +- .../ghec_v2022_11_28/types/group_0837.py | 441 +- .../ghec_v2022_11_28/types/group_0838.py | 433 +- .../ghec_v2022_11_28/types/group_0839.py | 64 +- .../ghec_v2022_11_28/types/group_0840.py | 61 +- .../ghec_v2022_11_28/types/group_0841.py | 71 +- .../ghec_v2022_11_28/types/group_0842.py | 69 +- .../ghec_v2022_11_28/types/group_0843.py | 423 +- .../ghec_v2022_11_28/types/group_0844.py | 421 +- .../ghec_v2022_11_28/types/group_0845.py | 423 +- .../ghec_v2022_11_28/types/group_0846.py | 42 +- .../ghec_v2022_11_28/types/group_0847.py | 12 +- .../ghec_v2022_11_28/types/group_0848.py | 19 +- .../ghec_v2022_11_28/types/group_0849.py | 11 +- .../ghec_v2022_11_28/types/group_0850.py | 14 +- .../ghec_v2022_11_28/types/group_0851.py | 11 +- .../ghec_v2022_11_28/types/group_0852.py | 8 +- .../ghec_v2022_11_28/types/group_0853.py | 30 +- .../ghec_v2022_11_28/types/group_0854.py | 17 +- .../ghec_v2022_11_28/types/group_0855.py | 20 +- .../ghec_v2022_11_28/types/group_0856.py | 20 +- .../ghec_v2022_11_28/types/group_0857.py | 15 +- .../ghec_v2022_11_28/types/group_0858.py | 32 +- .../ghec_v2022_11_28/types/group_0859.py | 13 +- .../ghec_v2022_11_28/types/group_0860.py | 16 +- .../ghec_v2022_11_28/types/group_0861.py | 18 +- .../ghec_v2022_11_28/types/group_0862.py | 14 +- .../ghec_v2022_11_28/types/group_0863.py | 18 +- .../ghec_v2022_11_28/types/group_0864.py | 12 +- .../ghec_v2022_11_28/types/group_0865.py | 11 +- .../ghec_v2022_11_28/types/group_0866.py | 11 +- .../ghec_v2022_11_28/types/group_0867.py | 67 +- .../ghec_v2022_11_28/types/group_0868.py | 56 +- .../ghec_v2022_11_28/types/group_0869.py | 14 +- .../ghec_v2022_11_28/types/group_0870.py | 19 +- .../ghec_v2022_11_28/types/group_0871.py | 53 +- .../ghec_v2022_11_28/types/group_0872.py | 56 +- .../ghec_v2022_11_28/types/group_0873.py | 11 +- .../ghec_v2022_11_28/types/group_0874.py | 18 +- .../ghec_v2022_11_28/types/group_0875.py | 23 +- .../ghec_v2022_11_28/types/group_0876.py | 24 +- .../ghec_v2022_11_28/types/group_0877.py | 14 +- .../ghec_v2022_11_28/types/group_0878.py | 10 +- .../ghec_v2022_11_28/types/group_0879.py | 80 +- .../ghec_v2022_11_28/types/group_0880.py | 81 +- .../ghec_v2022_11_28/types/group_0881.py | 46 +- .../ghec_v2022_11_28/types/group_0882.py | 52 +- .../ghec_v2022_11_28/types/group_0883.py | 14 +- .../ghec_v2022_11_28/types/group_0884.py | 14 +- .../ghec_v2022_11_28/types/group_0885.py | 61 +- .../ghec_v2022_11_28/types/group_0886.py | 61 +- .../ghec_v2022_11_28/types/group_0887.py | 33 +- .../ghec_v2022_11_28/types/group_0888.py | 17 +- .../ghec_v2022_11_28/types/group_0889.py | 22 +- .../ghec_v2022_11_28/types/group_0890.py | 19 +- .../ghec_v2022_11_28/types/group_0891.py | 13 +- .../ghec_v2022_11_28/types/group_0892.py | 16 +- .../ghec_v2022_11_28/types/group_0893.py | 13 +- .../ghec_v2022_11_28/types/group_0894.py | 15 +- .../ghec_v2022_11_28/types/group_0895.py | 12 +- .../ghec_v2022_11_28/types/group_0896.py | 79 +- .../ghec_v2022_11_28/types/group_0897.py | 111 +- .../ghec_v2022_11_28/types/group_0898.py | 23 +- .../ghec_v2022_11_28/types/group_0899.py | 16 +- .../ghec_v2022_11_28/types/group_0900.py | 15 +- .../ghec_v2022_11_28/types/group_0901.py | 16 +- .../ghec_v2022_11_28/types/group_0902.py | 38 +- .../ghec_v2022_11_28/types/group_0903.py | 29 +- .../ghec_v2022_11_28/types/group_0904.py | 37 +- .../ghec_v2022_11_28/types/group_0905.py | 11 +- .../ghec_v2022_11_28/types/group_0906.py | 8 +- .../ghec_v2022_11_28/types/group_0907.py | 11 +- .../ghec_v2022_11_28/types/group_0908.py | 14 +- .../ghec_v2022_11_28/types/group_0909.py | 16 +- .../ghec_v2022_11_28/types/group_0910.py | 13 +- .../ghec_v2022_11_28/types/group_0911.py | 10 +- .../ghec_v2022_11_28/types/group_0912.py | 10 +- .../ghec_v2022_11_28/types/group_0913.py | 28 +- .../ghec_v2022_11_28/types/group_0914.py | 51 +- .../ghec_v2022_11_28/types/group_0915.py | 24 +- .../ghec_v2022_11_28/types/group_0916.py | 11 +- .../ghec_v2022_11_28/types/group_0917.py | 35 +- .../ghec_v2022_11_28/types/group_0918.py | 17 +- .../ghec_v2022_11_28/types/group_0919.py | 17 +- .../ghec_v2022_11_28/types/group_0920.py | 10 +- .../ghec_v2022_11_28/types/group_0921.py | 9 +- .../ghec_v2022_11_28/types/group_0922.py | 72 +- .../ghec_v2022_11_28/types/group_0923.py | 92 +- .../ghec_v2022_11_28/types/group_0924.py | 13 +- .../ghec_v2022_11_28/types/group_0925.py | 92 +- .../ghec_v2022_11_28/types/group_0926.py | 35 +- .../ghec_v2022_11_28/types/group_0927.py | 17 +- .../ghec_v2022_11_28/types/group_0928.py | 24 +- .../ghec_v2022_11_28/types/group_0929.py | 12 +- .../ghec_v2022_11_28/types/group_0930.py | 20 +- .../ghec_v2022_11_28/types/group_0931.py | 8 +- .../ghec_v2022_11_28/types/group_0932.py | 11 +- .../ghec_v2022_11_28/types/group_0933.py | 29 +- .../ghec_v2022_11_28/types/group_0934.py | 17 +- .../ghec_v2022_11_28/types/group_0935.py | 16 +- .../ghec_v2022_11_28/types/group_0936.py | 8 +- .../ghec_v2022_11_28/types/group_0937.py | 13 +- .../ghec_v2022_11_28/types/group_0938.py | 29 +- .../ghec_v2022_11_28/types/group_0939.py | 17 +- .../ghec_v2022_11_28/types/group_0940.py | 11 +- .../ghec_v2022_11_28/types/group_0941.py | 12 +- .../ghec_v2022_11_28/types/group_0942.py | 30 +- .../ghec_v2022_11_28/types/group_0943.py | 17 +- .../ghec_v2022_11_28/types/group_0944.py | 14 +- .../ghec_v2022_11_28/types/group_0945.py | 12 +- .../ghec_v2022_11_28/types/group_0946.py | 13 +- .../ghec_v2022_11_28/types/group_0947.py | 72 +- .../ghec_v2022_11_28/types/group_0948.py | 94 +- .../ghec_v2022_11_28/types/group_0949.py | 13 +- .../ghec_v2022_11_28/types/group_0950.py | 92 +- .../ghec_v2022_11_28/types/group_0951.py | 33 +- .../ghec_v2022_11_28/types/group_0952.py | 30 +- .../ghec_v2022_11_28/types/group_0953.py | 22 +- .../ghec_v2022_11_28/types/group_0954.py | 10 +- .../ghec_v2022_11_28/types/group_0955.py | 17 +- .../ghec_v2022_11_28/types/group_0956.py | 14 +- .../ghec_v2022_11_28/types/group_0957.py | 11 +- .../ghec_v2022_11_28/types/group_0958.py | 26 +- .../ghec_v2022_11_28/types/group_0959.py | 19 +- .../ghec_v2022_11_28/types/group_0960.py | 13 +- .../ghec_v2022_11_28/types/group_0961.py | 8 +- .../ghec_v2022_11_28/types/group_0962.py | 12 +- .../ghec_v2022_11_28/types/group_0963.py | 13 +- .../ghec_v2022_11_28/types/group_0964.py | 15 +- .../ghec_v2022_11_28/types/group_0965.py | 10 +- .../ghec_v2022_11_28/types/group_0966.py | 13 +- .../ghec_v2022_11_28/types/group_0967.py | 30 +- .../ghec_v2022_11_28/types/group_0968.py | 19 +- .../ghec_v2022_11_28/types/group_0969.py | 9 +- .../ghec_v2022_11_28/types/group_0970.py | 19 +- .../ghec_v2022_11_28/types/group_0971.py | 12 +- .../ghec_v2022_11_28/types/group_0972.py | 29 +- .../ghec_v2022_11_28/types/group_0973.py | 17 +- .../ghec_v2022_11_28/types/group_0974.py | 57 +- .../ghec_v2022_11_28/types/group_0975.py | 78 +- .../ghec_v2022_11_28/types/group_0976.py | 95 +- .../ghec_v2022_11_28/types/group_0977.py | 37 +- .../ghec_v2022_11_28/types/group_0978.py | 20 +- .../ghec_v2022_11_28/types/group_0979.py | 15 +- .../ghec_v2022_11_28/types/group_0980.py | 11 +- .../ghec_v2022_11_28/types/group_0981.py | 14 +- .../ghec_v2022_11_28/types/group_0982.py | 15 +- .../ghec_v2022_11_28/types/group_0983.py | 18 +- .../ghec_v2022_11_28/types/group_0984.py | 20 +- .../ghec_v2022_11_28/types/group_0985.py | 10 +- .../ghec_v2022_11_28/types/group_0986.py | 11 +- .../ghec_v2022_11_28/types/group_0987.py | 10 +- .../ghec_v2022_11_28/types/group_0988.py | 12 +- .../ghec_v2022_11_28/types/group_0989.py | 10 +- .../ghec_v2022_11_28/types/group_0990.py | 25 +- .../ghec_v2022_11_28/types/group_0991.py | 10 +- .../ghec_v2022_11_28/types/group_0992.py | 30 +- .../ghec_v2022_11_28/types/group_0993.py | 16 +- .../ghec_v2022_11_28/types/group_0994.py | 12 +- .../ghec_v2022_11_28/types/group_0995.py | 16 +- .../ghec_v2022_11_28/types/group_0996.py | 25 +- .../ghec_v2022_11_28/types/group_0997.py | 25 +- .../ghec_v2022_11_28/types/group_0998.py | 11 +- .../ghec_v2022_11_28/types/group_0999.py | 55 +- .../ghec_v2022_11_28/types/group_1000.py | 79 +- .../ghec_v2022_11_28/types/group_1001.py | 89 +- .../ghec_v2022_11_28/types/group_1002.py | 11 +- .../ghec_v2022_11_28/types/group_1003.py | 13 +- .../ghec_v2022_11_28/types/group_1004.py | 15 +- .../ghec_v2022_11_28/types/group_1005.py | 23 +- .../ghec_v2022_11_28/types/group_1006.py | 18 +- .../ghec_v2022_11_28/types/group_1007.py | 11 +- .../ghec_v2022_11_28/types/group_1008.py | 11 +- .../ghec_v2022_11_28/types/group_1009.py | 11 +- .../ghec_v2022_11_28/types/group_1010.py | 164 +- .../ghec_v2022_11_28/types/group_1011.py | 20 +- .../ghec_v2022_11_28/types/group_1012.py | 13 +- .../ghec_v2022_11_28/types/group_1013.py | 14 +- .../ghec_v2022_11_28/types/group_1014.py | 14 +- .../ghec_v2022_11_28/types/group_1015.py | 14 +- .../ghec_v2022_11_28/types/group_1016.py | 11 +- .../ghec_v2022_11_28/types/group_1017.py | 13 +- .../ghec_v2022_11_28/types/group_1018.py | 24 +- .../ghec_v2022_11_28/types/group_1019.py | 11 +- .../ghec_v2022_11_28/types/group_1020.py | 12 +- .../ghec_v2022_11_28/types/group_1021.py | 15 +- .../ghec_v2022_11_28/types/group_1022.py | 14 +- .../ghec_v2022_11_28/types/group_1023.py | 13 +- .../ghec_v2022_11_28/types/group_1024.py | 27 +- .../ghec_v2022_11_28/types/group_1025.py | 28 +- .../ghec_v2022_11_28/types/group_1026.py | 10 +- .../ghec_v2022_11_28/types/group_1027.py | 11 +- .../ghec_v2022_11_28/types/group_1028.py | 12 +- .../ghec_v2022_11_28/types/group_1029.py | 24 +- .../ghec_v2022_11_28/types/group_1030.py | 11 +- .../ghec_v2022_11_28/types/group_1031.py | 9 +- .../ghec_v2022_11_28/types/group_1032.py | 11 +- .../ghec_v2022_11_28/types/group_1033.py | 40 +- .../ghec_v2022_11_28/types/group_1034.py | 30 +- .../ghec_v2022_11_28/types/group_1035.py | 14 +- .../ghec_v2022_11_28/types/group_1036.py | 48 +- .../ghec_v2022_11_28/types/group_1037.py | 9 +- .../ghec_v2022_11_28/types/group_1038.py | 190 +- .../ghec_v2022_11_28/types/group_1039.py | 15 +- .../ghec_v2022_11_28/types/group_1040.py | 127 +- .../ghec_v2022_11_28/types/group_1041.py | 54 +- .../ghec_v2022_11_28/types/group_1042.py | 33 +- .../ghec_v2022_11_28/types/group_1043.py | 17 +- .../ghec_v2022_11_28/types/group_1044.py | 20 +- .../ghec_v2022_11_28/types/group_1045.py | 18 +- .../ghec_v2022_11_28/types/group_1046.py | 17 +- .../ghec_v2022_11_28/types/group_1047.py | 12 +- .../ghec_v2022_11_28/types/group_1048.py | 12 +- .../ghec_v2022_11_28/types/group_1049.py | 15 +- .../ghec_v2022_11_28/types/group_1050.py | 15 +- .../ghec_v2022_11_28/types/group_1051.py | 17 +- .../ghec_v2022_11_28/types/group_1052.py | 13 +- .../ghec_v2022_11_28/types/group_1053.py | 15 +- .../ghec_v2022_11_28/types/group_1054.py | 14 +- .../ghec_v2022_11_28/types/group_1055.py | 10 +- .../ghec_v2022_11_28/types/group_1056.py | 60 +- .../ghec_v2022_11_28/types/group_1057.py | 46 +- .../ghec_v2022_11_28/types/group_1058.py | 52 +- .../ghec_v2022_11_28/types/group_1059.py | 66 +- .../ghec_v2022_11_28/types/group_1060.py | 37 +- .../ghec_v2022_11_28/types/group_1061.py | 57 +- .../ghec_v2022_11_28/types/group_1062.py | 28 +- .../ghec_v2022_11_28/types/group_1063.py | 27 +- .../ghec_v2022_11_28/types/group_1064.py | 49 +- .../ghec_v2022_11_28/types/group_1065.py | 13 +- .../ghec_v2022_11_28/types/group_1066.py | 75 +- .../ghec_v2022_11_28/types/group_1067.py | 17 +- .../ghec_v2022_11_28/types/group_1068.py | 132 +- .../ghec_v2022_11_28/types/group_1069.py | 61 +- .../ghec_v2022_11_28/types/group_1070.py | 33 +- .../ghec_v2022_11_28/types/group_1071.py | 29 +- .../ghec_v2022_11_28/types/group_1072.py | 26 +- .../ghec_v2022_11_28/types/group_1073.py | 18 +- .../ghec_v2022_11_28/types/group_1074.py | 26 +- .../ghec_v2022_11_28/types/group_1075.py | 24 +- .../ghec_v2022_11_28/types/group_1076.py | 15 +- .../ghec_v2022_11_28/types/group_1077.py | 16 +- .../ghec_v2022_11_28/types/group_1078.py | 14 +- .../ghec_v2022_11_28/types/group_1079.py | 19 +- .../ghec_v2022_11_28/types/group_1080.py | 17 +- .../ghec_v2022_11_28/types/group_1081.py | 13 +- .../ghec_v2022_11_28/types/group_1082.py | 42 +- .../ghec_v2022_11_28/types/group_1083.py | 38 +- .../ghec_v2022_11_28/types/group_1084.py | 62 +- .../ghec_v2022_11_28/types/group_1085.py | 49 +- .../ghec_v2022_11_28/types/group_1086.py | 46 +- .../ghec_v2022_11_28/types/group_1087.py | 66 +- .../ghec_v2022_11_28/types/group_1088.py | 53 +- .../ghec_v2022_11_28/types/group_1089.py | 44 +- .../ghec_v2022_11_28/types/group_1090.py | 19 +- .../ghec_v2022_11_28/types/group_1091.py | 30 +- .../ghec_v2022_11_28/types/group_1092.py | 36 +- .../ghec_v2022_11_28/types/group_1093.py | 32 +- .../ghec_v2022_11_28/types/group_1094.py | 19 +- .../ghec_v2022_11_28/types/group_1095.py | 24 +- .../ghec_v2022_11_28/types/group_1096.py | 20 +- .../ghec_v2022_11_28/types/group_1097.py | 18 +- .../ghec_v2022_11_28/types/group_1098.py | 10 +- .../ghec_v2022_11_28/types/group_1099.py | 22 +- .../ghec_v2022_11_28/types/group_1100.py | 23 +- .../ghec_v2022_11_28/types/group_1101.py | 15 +- .../ghec_v2022_11_28/types/group_1102.py | 23 +- .../ghec_v2022_11_28/types/group_1103.py | 44 +- .../ghec_v2022_11_28/types/group_1104.py | 12 +- .../ghec_v2022_11_28/types/group_1105.py | 9 +- .../ghec_v2022_11_28/types/group_1106.py | 30 +- .../ghec_v2022_11_28/types/group_1107.py | 28 +- .../ghec_v2022_11_28/types/group_1108.py | 30 +- .../ghec_v2022_11_28/types/group_1109.py | 17 +- .../ghec_v2022_11_28/types/group_1110.py | 44 +- .../ghec_v2022_11_28/types/group_1111.py | 41 +- .../ghec_v2022_11_28/types/group_1112.py | 17 +- .../ghec_v2022_11_28/types/group_1113.py | 27 +- .../ghec_v2022_11_28/types/group_1114.py | 12 +- .../ghec_v2022_11_28/types/group_1115.py | 11 +- .../ghec_v2022_11_28/types/group_1116.py | 30 +- .../ghec_v2022_11_28/types/group_1117.py | 28 +- .../ghec_v2022_11_28/types/group_1118.py | 19 +- .../ghec_v2022_11_28/types/group_1119.py | 27 +- .../ghec_v2022_11_28/types/group_1120.py | 43 +- .../ghec_v2022_11_28/types/group_1121.py | 27 +- .../ghec_v2022_11_28/types/group_1122.py | 12 +- .../ghec_v2022_11_28/types/group_1123.py | 21 +- .../ghec_v2022_11_28/types/group_1124.py | 13 +- .../ghec_v2022_11_28/types/group_1125.py | 22 +- .../ghec_v2022_11_28/types/group_1126.py | 11 +- .../ghec_v2022_11_28/types/group_1127.py | 11 +- .../ghec_v2022_11_28/types/group_1128.py | 20 +- .../ghec_v2022_11_28/types/group_1129.py | 12 +- .../ghec_v2022_11_28/types/group_1130.py | 10 +- .../ghec_v2022_11_28/types/group_1131.py | 49 +- .../ghec_v2022_11_28/types/group_1132.py | 9 +- .../ghec_v2022_11_28/types/group_1133.py | 10 +- .../ghec_v2022_11_28/types/group_1134.py | 30 +- .../ghec_v2022_11_28/types/group_1135.py | 25 +- .../ghec_v2022_11_28/types/group_1136.py | 29 +- .../ghec_v2022_11_28/types/group_1137.py | 16 +- .../ghec_v2022_11_28/types/group_1138.py | 14 +- .../ghec_v2022_11_28/types/group_1139.py | 15 +- .../ghec_v2022_11_28/types/group_1140.py | 15 +- .../ghec_v2022_11_28/types/group_1141.py | 14 +- .../ghec_v2022_11_28/types/group_1142.py | 12 +- .../ghec_v2022_11_28/types/group_1143.py | 11 +- .../ghec_v2022_11_28/types/group_1144.py | 14 +- .../ghec_v2022_11_28/types/group_1145.py | 38 +- .../ghec_v2022_11_28/types/group_1146.py | 20 +- .../ghec_v2022_11_28/types/group_1147.py | 23 +- .../ghec_v2022_11_28/types/group_1148.py | 42 +- .../ghec_v2022_11_28/types/group_1149.py | 20 +- .../ghec_v2022_11_28/types/group_1150.py | 13 +- .../ghec_v2022_11_28/types/group_1151.py | 14 +- .../ghec_v2022_11_28/types/group_1152.py | 12 +- .../ghec_v2022_11_28/types/group_1153.py | 24 +- .../ghec_v2022_11_28/types/group_1154.py | 8 +- .../ghec_v2022_11_28/types/group_1155.py | 9 +- .../ghec_v2022_11_28/types/group_1156.py | 21 +- .../ghec_v2022_11_28/types/group_1157.py | 17 +- .../ghec_v2022_11_28/types/group_1158.py | 11 +- .../ghec_v2022_11_28/types/group_1159.py | 6 +- .../ghec_v2022_11_28/types/group_1160.py | 15 +- .../ghec_v2022_11_28/types/group_1161.py | 19 +- .../ghec_v2022_11_28/types/group_1162.py | 20 +- .../ghec_v2022_11_28/types/group_1163.py | 12 +- .../ghec_v2022_11_28/types/group_1164.py | 14 +- .../ghec_v2022_11_28/types/group_1165.py | 11 +- .../ghec_v2022_11_28/types/group_1166.py | 11 +- .../ghec_v2022_11_28/types/group_1167.py | 11 +- .../ghec_v2022_11_28/types/group_1168.py | 14 +- .../ghec_v2022_11_28/types/group_1169.py | 14 +- .../ghec_v2022_11_28/types/group_1170.py | 30 +- .../ghec_v2022_11_28/types/group_1171.py | 11 +- .../ghec_v2022_11_28/types/group_1172.py | 15 +- .../ghec_v2022_11_28/types/group_1173.py | 22 +- .../ghec_v2022_11_28/types/group_1174.py | 18 +- .../ghec_v2022_11_28/types/group_1175.py | 21 +- .../ghec_v2022_11_28/types/group_1176.py | 29 +- .../ghec_v2022_11_28/types/group_1177.py | 22 +- .../ghec_v2022_11_28/types/group_1178.py | 16 +- .../ghec_v2022_11_28/types/group_1179.py | 18 +- .../ghec_v2022_11_28/types/group_1180.py | 13 +- .../ghec_v2022_11_28/types/group_1181.py | 73 +- .../ghec_v2022_11_28/types/group_1182.py | 70 +- .../ghec_v2022_11_28/types/group_1183.py | 14 +- .../ghec_v2022_11_28/types/group_1184.py | 12 +- .../ghec_v2022_11_28/types/group_1185.py | 19 +- .../ghec_v2022_11_28/types/group_1186.py | 11 +- .../ghec_v2022_11_28/types/group_1187.py | 11 +- .../ghec_v2022_11_28/types/group_1188.py | 15 +- .../ghec_v2022_11_28/types/group_1189.py | 20 +- .../ghec_v2022_11_28/types/group_1190.py | 22 +- .../ghec_v2022_11_28/types/group_1191.py | 41 +- .../ghec_v2022_11_28/types/group_1192.py | 43 +- .../ghec_v2022_11_28/types/group_1193.py | 57 +- .../ghec_v2022_11_28/types/group_1194.py | 17 +- .../ghec_v2022_11_28/types/group_1195.py | 11 +- .../ghec_v2022_11_28/types/group_1196.py | 10 +- .../ghec_v2022_11_28/types/group_1197.py | 11 +- .../ghec_v2022_11_28/types/group_1198.py | 31 +- .../ghec_v2022_11_28/types/group_1199.py | 15 +- .../ghec_v2022_11_28/types/group_1200.py | 13 +- .../ghec_v2022_11_28/types/group_1201.py | 9 +- .../ghec_v2022_11_28/types/group_1202.py | 9 +- .../ghec_v2022_11_28/types/group_1203.py | 8 +- .../ghec_v2022_11_28/types/group_1204.py | 16 +- .../ghec_v2022_11_28/types/group_1205.py | 23 +- .../ghec_v2022_11_28/types/group_1206.py | 19 +- .../ghec_v2022_11_28/types/group_1207.py | 21 +- .../ghec_v2022_11_28/types/group_1208.py | 21 +- .../ghec_v2022_11_28/types/group_1209.py | 86 +- .../ghec_v2022_11_28/types/group_1210.py | 87 +- .../ghec_v2022_11_28/types/group_1211.py | 16 +- .../ghec_v2022_11_28/types/group_1212.py | 13 +- .../ghec_v2022_11_28/types/group_1213.py | 14 +- .../ghec_v2022_11_28/types/group_1214.py | 11 +- .../ghec_v2022_11_28/types/group_1215.py | 11 +- .../ghec_v2022_11_28/types/group_1216.py | 11 +- .../ghec_v2022_11_28/types/group_1217.py | 13 +- .../ghec_v2022_11_28/types/group_1218.py | 18 +- .../ghec_v2022_11_28/types/group_1219.py | 42 +- .../ghec_v2022_11_28/types/group_1220.py | 40 +- .../ghec_v2022_11_28/types/group_1221.py | 59 +- .../ghec_v2022_11_28/types/group_1222.py | 20 +- .../ghec_v2022_11_28/types/group_1223.py | 12 +- .../ghec_v2022_11_28/types/group_1224.py | 8 +- .../ghec_v2022_11_28/types/group_1225.py | 9 +- .../ghec_v2022_11_28/types/group_1226.py | 21 +- .../ghec_v2022_11_28/types/group_1227.py | 19 +- .../ghec_v2022_11_28/types/group_1228.py | 40 +- .../ghec_v2022_11_28/types/group_1229.py | 16 +- .../ghec_v2022_11_28/types/group_1230.py | 16 +- .../ghec_v2022_11_28/types/group_1231.py | 10 +- .../ghec_v2022_11_28/types/group_1232.py | 140 +- .../ghec_v2022_11_28/types/group_1233.py | 36 + .../ghec_v2022_11_28/types/group_1234.py | 29 + .../ghec_v2022_11_28/types/group_1235.py | 24 + .../ghec_v2022_11_28/types/group_1236.py | 33 + .../ghec_v2022_11_28/types/group_1237.py | 41 + .../ghec_v2022_11_28/types/group_1238.py | 40 + .../ghec_v2022_11_28/types/group_1239.py | 24 + .../ghec_v2022_11_28/types/group_1240.py | 24 + .../ghec_v2022_11_28/types/group_1241.py | 21 + .../ghec_v2022_11_28/types/group_1242.py | 23 + .../ghec_v2022_11_28/types/group_1243.py | 24 + .../ghec_v2022_11_28/types/group_1244.py | 22 + .../ghec_v2022_11_28/types/group_1245.py | 22 + .../ghec_v2022_11_28/types/group_1246.py | 25 + .../ghec_v2022_11_28/types/group_1247.py | 30 + .../ghec_v2022_11_28/types/group_1248.py | 22 + .../ghec_v2022_11_28/types/group_1249.py | 24 + .../ghec_v2022_11_28/types/group_1250.py | 25 + .../ghec_v2022_11_28/types/group_1251.py | 19 + .../ghec_v2022_11_28/types/group_1252.py | 22 + .../ghec_v2022_11_28/types/group_1253.py | 22 + .../ghec_v2022_11_28/types/group_1254.py | 30 + .../ghec_v2022_11_28/types/group_1255.py | 23 + .../ghec_v2022_11_28/types/group_1256.py | 46 + .../ghec_v2022_11_28/types/group_1257.py | 26 + .../ghec_v2022_11_28/types/group_1258.py | 26 + .../ghec_v2022_11_28/types/group_1259.py | 22 + .../ghec_v2022_11_28/types/group_1260.py | 152 + githubkit/versions/latest/models.py | 90 +- githubkit/versions/latest/types.py | 92 +- .../versions/v2022_11_28/models/__init__.py | 9004 ++++++++-------- .../versions/v2022_11_28/models/group_0002.py | 43 +- .../versions/v2022_11_28/models/group_0003.py | 186 +- .../versions/v2022_11_28/models/group_0004.py | 167 +- .../versions/v2022_11_28/models/group_0005.py | 32 +- .../versions/v2022_11_28/models/group_0006.py | 17 +- .../versions/v2022_11_28/models/group_0007.py | 23 +- .../versions/v2022_11_28/models/group_0008.py | 48 +- .../versions/v2022_11_28/models/group_0009.py | 34 +- .../versions/v2022_11_28/models/group_0010.py | 63 +- .../versions/v2022_11_28/models/group_0011.py | 28 +- .../versions/v2022_11_28/models/group_0012.py | 63 +- .../versions/v2022_11_28/models/group_0013.py | 101 +- .../versions/v2022_11_28/models/group_0014.py | 49 +- .../versions/v2022_11_28/models/group_0015.py | 100 +- .../versions/v2022_11_28/models/group_0016.py | 217 +- .../versions/v2022_11_28/models/group_0017.py | 246 +- .../versions/v2022_11_28/models/group_0018.py | 56 +- .../versions/v2022_11_28/models/group_0019.py | 191 +- .../versions/v2022_11_28/models/group_0020.py | 196 +- .../versions/v2022_11_28/models/group_0021.py | 31 +- .../versions/v2022_11_28/models/group_0022.py | 57 +- .../versions/v2022_11_28/models/group_0023.py | 53 +- .../versions/v2022_11_28/models/group_0024.py | 106 +- .../versions/v2022_11_28/models/group_0025.py | 115 +- .../versions/v2022_11_28/models/group_0026.py | 129 +- .../versions/v2022_11_28/models/group_0027.py | 194 +- .../versions/v2022_11_28/models/group_0028.py | 180 +- .../versions/v2022_11_28/models/group_0029.py | 26 +- .../versions/v2022_11_28/models/group_0030.py | 144 +- .../versions/v2022_11_28/models/group_0031.py | 152 +- .../versions/v2022_11_28/models/group_0032.py | 36 +- .../versions/v2022_11_28/models/group_0033.py | 45 +- .../versions/v2022_11_28/models/group_0034.py | 110 +- .../versions/v2022_11_28/models/group_0035.py | 137 +- .../versions/v2022_11_28/models/group_0036.py | 65 +- .../versions/v2022_11_28/models/group_0037.py | 100 +- .../versions/v2022_11_28/models/group_0038.py | 115 +- .../versions/v2022_11_28/models/group_0039.py | 46 +- .../versions/v2022_11_28/models/group_0040.py | 132 +- .../versions/v2022_11_28/models/group_0041.py | 110 +- .../versions/v2022_11_28/models/group_0042.py | 115 +- .../versions/v2022_11_28/models/group_0043.py | 125 +- .../versions/v2022_11_28/models/group_0044.py | 103 +- .../versions/v2022_11_28/models/group_0045.py | 51 +- .../versions/v2022_11_28/models/group_0046.py | 144 +- .../versions/v2022_11_28/models/group_0047.py | 138 +- .../versions/v2022_11_28/models/group_0048.py | 55 +- .../versions/v2022_11_28/models/group_0049.py | 36 +- .../versions/v2022_11_28/models/group_0050.py | 31 +- .../versions/v2022_11_28/models/group_0051.py | 34 +- .../versions/v2022_11_28/models/group_0052.py | 38 +- .../versions/v2022_11_28/models/group_0053.py | 66 +- .../versions/v2022_11_28/models/group_0054.py | 101 +- .../versions/v2022_11_28/models/group_0055.py | 132 +- .../versions/v2022_11_28/models/group_0056.py | 197 +- .../versions/v2022_11_28/models/group_0057.py | 161 +- .../versions/v2022_11_28/models/group_0058.py | 44 +- .../versions/v2022_11_28/models/group_0059.py | 30 +- .../versions/v2022_11_28/models/group_0060.py | 76 +- .../versions/v2022_11_28/models/group_0061.py | 135 +- .../versions/v2022_11_28/models/group_0062.py | 122 +- .../versions/v2022_11_28/models/group_0063.py | 18 +- .../versions/v2022_11_28/models/group_0064.py | 34 +- .../versions/v2022_11_28/models/group_0065.py | 86 +- .../versions/v2022_11_28/models/group_0066.py | 22 +- .../versions/v2022_11_28/models/group_0067.py | 38 +- .../versions/v2022_11_28/models/group_0068.py | 23 +- .../versions/v2022_11_28/models/group_0069.py | 37 +- .../versions/v2022_11_28/models/group_0070.py | 28 +- .../versions/v2022_11_28/models/group_0071.py | 43 +- .../versions/v2022_11_28/models/group_0072.py | 27 +- .../versions/v2022_11_28/models/group_0073.py | 47 +- .../versions/v2022_11_28/models/group_0074.py | 34 +- .../versions/v2022_11_28/models/group_0075.py | 74 +- .../versions/v2022_11_28/models/group_0076.py | 77 +- .../versions/v2022_11_28/models/group_0077.py | 41 +- .../versions/v2022_11_28/models/group_0078.py | 162 +- .../versions/v2022_11_28/models/group_0079.py | 31 +- .../versions/v2022_11_28/models/group_0080.py | 103 +- .../versions/v2022_11_28/models/group_0081.py | 71 +- .../versions/v2022_11_28/models/group_0082.py | 65 +- .../versions/v2022_11_28/models/group_0083.py | 171 +- .../versions/v2022_11_28/models/group_0084.py | 347 +- .../versions/v2022_11_28/models/group_0085.py | 99 +- .../versions/v2022_11_28/models/group_0086.py | 44 +- .../versions/v2022_11_28/models/group_0087.py | 53 +- .../versions/v2022_11_28/models/group_0088.py | 98 +- .../versions/v2022_11_28/models/group_0089.py | 355 +- .../versions/v2022_11_28/models/group_0090.py | 96 +- .../versions/v2022_11_28/models/group_0091.py | 24 +- .../versions/v2022_11_28/models/group_0092.py | 37 +- .../versions/v2022_11_28/models/group_0093.py | 30 +- .../versions/v2022_11_28/models/group_0094.py | 46 +- .../versions/v2022_11_28/models/group_0095.py | 33 +- .../versions/v2022_11_28/models/group_0096.py | 29 +- .../versions/v2022_11_28/models/group_0097.py | 42 +- .../versions/v2022_11_28/models/group_0098.py | 53 +- .../versions/v2022_11_28/models/group_0099.py | 68 +- .../versions/v2022_11_28/models/group_0100.py | 52 +- .../versions/v2022_11_28/models/group_0101.py | 54 +- .../versions/v2022_11_28/models/group_0102.py | 68 +- .../versions/v2022_11_28/models/group_0103.py | 125 +- .../versions/v2022_11_28/models/group_0104.py | 111 +- .../versions/v2022_11_28/models/group_0105.py | 58 +- .../versions/v2022_11_28/models/group_0106.py | 63 +- .../versions/v2022_11_28/models/group_0107.py | 91 +- .../versions/v2022_11_28/models/group_0108.py | 108 +- .../versions/v2022_11_28/models/group_0109.py | 95 +- .../versions/v2022_11_28/models/group_0110.py | 36 +- .../versions/v2022_11_28/models/group_0111.py | 46 +- .../versions/v2022_11_28/models/group_0112.py | 204 +- .../versions/v2022_11_28/models/group_0113.py | 43 +- .../versions/v2022_11_28/models/group_0114.py | 21 +- .../versions/v2022_11_28/models/group_0115.py | 27 +- .../versions/v2022_11_28/models/group_0116.py | 21 +- .../versions/v2022_11_28/models/group_0117.py | 188 +- .../versions/v2022_11_28/models/group_0118.py | 28 +- .../versions/v2022_11_28/models/group_0119.py | 18 +- .../versions/v2022_11_28/models/group_0120.py | 26 +- .../versions/v2022_11_28/models/group_0121.py | 44 +- .../versions/v2022_11_28/models/group_0122.py | 30 +- .../versions/v2022_11_28/models/group_0123.py | 16 +- .../versions/v2022_11_28/models/group_0124.py | 22 +- .../versions/v2022_11_28/models/group_0125.py | 99 +- .../versions/v2022_11_28/models/group_0126.py | 39 +- .../versions/v2022_11_28/models/group_0127.py | 23 +- .../versions/v2022_11_28/models/group_0128.py | 43 +- .../versions/v2022_11_28/models/group_0129.py | 21 +- .../versions/v2022_11_28/models/group_0130.py | 118 +- .../versions/v2022_11_28/models/group_0131.py | 19 +- .../versions/v2022_11_28/models/group_0132.py | 12 +- .../versions/v2022_11_28/models/group_0133.py | 50 +- .../versions/v2022_11_28/models/group_0134.py | 17 +- .../versions/v2022_11_28/models/group_0135.py | 47 +- .../versions/v2022_11_28/models/group_0136.py | 18 +- .../versions/v2022_11_28/models/group_0137.py | 40 +- .../versions/v2022_11_28/models/group_0138.py | 28 +- .../versions/v2022_11_28/models/group_0139.py | 26 +- .../versions/v2022_11_28/models/group_0140.py | 37 +- .../versions/v2022_11_28/models/group_0141.py | 26 +- .../versions/v2022_11_28/models/group_0142.py | 40 +- .../versions/v2022_11_28/models/group_0143.py | 25 +- .../versions/v2022_11_28/models/group_0144.py | 25 +- .../versions/v2022_11_28/models/group_0145.py | 25 +- .../versions/v2022_11_28/models/group_0146.py | 25 +- .../versions/v2022_11_28/models/group_0147.py | 25 +- .../versions/v2022_11_28/models/group_0148.py | 25 +- .../versions/v2022_11_28/models/group_0149.py | 19 +- .../versions/v2022_11_28/models/group_0150.py | 43 +- .../versions/v2022_11_28/models/group_0151.py | 20 +- .../versions/v2022_11_28/models/group_0152.py | 38 +- .../versions/v2022_11_28/models/group_0153.py | 31 +- .../versions/v2022_11_28/models/group_0154.py | 137 +- .../versions/v2022_11_28/models/group_0155.py | 63 +- .../versions/v2022_11_28/models/group_0156.py | 95 +- .../versions/v2022_11_28/models/group_0157.py | 45 +- .../versions/v2022_11_28/models/group_0158.py | 194 +- .../versions/v2022_11_28/models/group_0159.py | 192 +- .../versions/v2022_11_28/models/group_0160.py | 51 +- .../versions/v2022_11_28/models/group_0161.py | 95 +- .../versions/v2022_11_28/models/group_0162.py | 136 +- .../versions/v2022_11_28/models/group_0163.py | 208 +- .../versions/v2022_11_28/models/group_0164.py | 107 +- .../versions/v2022_11_28/models/group_0165.py | 33 +- .../versions/v2022_11_28/models/group_0166.py | 25 +- .../versions/v2022_11_28/models/group_0167.py | 56 +- .../versions/v2022_11_28/models/group_0168.py | 228 +- .../versions/v2022_11_28/models/group_0169.py | 49 +- .../versions/v2022_11_28/models/group_0170.py | 37 +- .../versions/v2022_11_28/models/group_0171.py | 23 +- .../versions/v2022_11_28/models/group_0172.py | 24 +- .../versions/v2022_11_28/models/group_0173.py | 53 +- .../versions/v2022_11_28/models/group_0174.py | 164 +- .../versions/v2022_11_28/models/group_0175.py | 56 +- .../versions/v2022_11_28/models/group_0176.py | 40 +- .../versions/v2022_11_28/models/group_0177.py | 97 +- .../versions/v2022_11_28/models/group_0178.py | 24 +- .../versions/v2022_11_28/models/group_0179.py | 20 +- .../versions/v2022_11_28/models/group_0180.py | 33 +- .../versions/v2022_11_28/models/group_0181.py | 50 +- .../versions/v2022_11_28/models/group_0182.py | 36 +- .../versions/v2022_11_28/models/group_0183.py | 133 +- .../versions/v2022_11_28/models/group_0184.py | 54 +- .../versions/v2022_11_28/models/group_0185.py | 104 +- .../versions/v2022_11_28/models/group_0186.py | 52 +- .../versions/v2022_11_28/models/group_0187.py | 25 +- .../versions/v2022_11_28/models/group_0188.py | 20 +- .../versions/v2022_11_28/models/group_0189.py | 84 +- .../versions/v2022_11_28/models/group_0190.py | 77 +- .../versions/v2022_11_28/models/group_0191.py | 166 +- .../versions/v2022_11_28/models/group_0192.py | 74 +- .../versions/v2022_11_28/models/group_0193.py | 37 +- .../versions/v2022_11_28/models/group_0194.py | 28 +- .../versions/v2022_11_28/models/group_0195.py | 58 +- .../versions/v2022_11_28/models/group_0196.py | 66 +- .../versions/v2022_11_28/models/group_0197.py | 112 +- .../versions/v2022_11_28/models/group_0198.py | 172 +- .../versions/v2022_11_28/models/group_0199.py | 191 +- .../versions/v2022_11_28/models/group_0200.py | 38 +- .../versions/v2022_11_28/models/group_0201.py | 21 +- .../versions/v2022_11_28/models/group_0202.py | 40 +- .../versions/v2022_11_28/models/group_0203.py | 62 +- .../versions/v2022_11_28/models/group_0204.py | 171 +- .../versions/v2022_11_28/models/group_0205.py | 179 +- .../versions/v2022_11_28/models/group_0206.py | 36 +- .../versions/v2022_11_28/models/group_0207.py | 161 +- .../versions/v2022_11_28/models/group_0208.py | 36 +- .../versions/v2022_11_28/models/group_0209.py | 52 +- .../versions/v2022_11_28/models/group_0210.py | 82 +- .../versions/v2022_11_28/models/group_0211.py | 93 +- .../versions/v2022_11_28/models/group_0212.py | 48 +- .../versions/v2022_11_28/models/group_0213.py | 200 +- .../versions/v2022_11_28/models/group_0214.py | 51 +- .../versions/v2022_11_28/models/group_0215.py | 92 +- .../versions/v2022_11_28/models/group_0216.py | 107 +- .../versions/v2022_11_28/models/group_0217.py | 80 +- .../versions/v2022_11_28/models/group_0218.py | 31 +- .../versions/v2022_11_28/models/group_0219.py | 76 +- .../versions/v2022_11_28/models/group_0220.py | 73 +- .../versions/v2022_11_28/models/group_0221.py | 59 +- .../versions/v2022_11_28/models/group_0222.py | 103 +- .../versions/v2022_11_28/models/group_0223.py | 26 +- .../versions/v2022_11_28/models/group_0224.py | 22 +- .../versions/v2022_11_28/models/group_0225.py | 61 +- .../versions/v2022_11_28/models/group_0226.py | 55 +- .../versions/v2022_11_28/models/group_0227.py | 36 +- .../versions/v2022_11_28/models/group_0228.py | 57 +- .../versions/v2022_11_28/models/group_0229.py | 57 +- .../versions/v2022_11_28/models/group_0230.py | 51 +- .../versions/v2022_11_28/models/group_0231.py | 63 +- .../versions/v2022_11_28/models/group_0232.py | 33 +- .../versions/v2022_11_28/models/group_0233.py | 45 +- .../versions/v2022_11_28/models/group_0234.py | 61 +- .../versions/v2022_11_28/models/group_0235.py | 66 +- .../versions/v2022_11_28/models/group_0236.py | 49 +- .../versions/v2022_11_28/models/group_0237.py | 36 +- .../versions/v2022_11_28/models/group_0238.py | 68 +- .../versions/v2022_11_28/models/group_0239.py | 67 +- .../versions/v2022_11_28/models/group_0240.py | 54 +- .../versions/v2022_11_28/models/group_0241.py | 39 +- .../versions/v2022_11_28/models/group_0242.py | 25 +- .../versions/v2022_11_28/models/group_0243.py | 95 +- .../versions/v2022_11_28/models/group_0244.py | 91 +- .../versions/v2022_11_28/models/group_0245.py | 69 +- .../versions/v2022_11_28/models/group_0246.py | 48 +- .../versions/v2022_11_28/models/group_0247.py | 26 +- .../versions/v2022_11_28/models/group_0248.py | 59 +- .../versions/v2022_11_28/models/group_0249.py | 95 +- .../versions/v2022_11_28/models/group_0250.py | 70 +- .../versions/v2022_11_28/models/group_0251.py | 43 +- .../versions/v2022_11_28/models/group_0252.py | 56 +- .../versions/v2022_11_28/models/group_0253.py | 46 +- .../versions/v2022_11_28/models/group_0254.py | 62 +- .../versions/v2022_11_28/models/group_0255.py | 129 +- .../versions/v2022_11_28/models/group_0256.py | 87 +- .../versions/v2022_11_28/models/group_0257.py | 66 +- .../versions/v2022_11_28/models/group_0258.py | 91 +- .../versions/v2022_11_28/models/group_0259.py | 47 +- .../versions/v2022_11_28/models/group_0260.py | 47 +- .../versions/v2022_11_28/models/group_0261.py | 216 +- .../versions/v2022_11_28/models/group_0262.py | 64 +- .../versions/v2022_11_28/models/group_0263.py | 69 +- .../versions/v2022_11_28/models/group_0264.py | 86 +- .../versions/v2022_11_28/models/group_0265.py | 81 +- .../versions/v2022_11_28/models/group_0266.py | 69 +- .../versions/v2022_11_28/models/group_0267.py | 154 +- .../versions/v2022_11_28/models/group_0268.py | 90 +- .../versions/v2022_11_28/models/group_0269.py | 39 +- .../versions/v2022_11_28/models/group_0270.py | 49 +- .../versions/v2022_11_28/models/group_0271.py | 82 +- .../versions/v2022_11_28/models/group_0272.py | 51 +- .../versions/v2022_11_28/models/group_0273.py | 25 +- .../versions/v2022_11_28/models/group_0274.py | 95 +- .../versions/v2022_11_28/models/group_0275.py | 28 +- .../versions/v2022_11_28/models/group_0276.py | 25 +- .../versions/v2022_11_28/models/group_0277.py | 89 +- .../versions/v2022_11_28/models/group_0278.py | 30 +- .../versions/v2022_11_28/models/group_0279.py | 56 +- .../versions/v2022_11_28/models/group_0280.py | 56 +- .../versions/v2022_11_28/models/group_0281.py | 18 +- .../versions/v2022_11_28/models/group_0282.py | 41 +- .../versions/v2022_11_28/models/group_0283.py | 126 +- .../versions/v2022_11_28/models/group_0284.py | 31 +- .../versions/v2022_11_28/models/group_0285.py | 48 +- .../versions/v2022_11_28/models/group_0286.py | 146 +- .../versions/v2022_11_28/models/group_0287.py | 40 +- .../versions/v2022_11_28/models/group_0288.py | 58 +- .../versions/v2022_11_28/models/group_0289.py | 87 +- .../versions/v2022_11_28/models/group_0290.py | 29 +- .../versions/v2022_11_28/models/group_0291.py | 39 +- .../versions/v2022_11_28/models/group_0292.py | 138 +- .../versions/v2022_11_28/models/group_0293.py | 30 +- .../versions/v2022_11_28/models/group_0294.py | 48 +- .../versions/v2022_11_28/models/group_0295.py | 37 +- .../versions/v2022_11_28/models/group_0296.py | 36 +- .../versions/v2022_11_28/models/group_0297.py | 28 +- .../versions/v2022_11_28/models/group_0298.py | 37 +- .../versions/v2022_11_28/models/group_0299.py | 38 +- .../versions/v2022_11_28/models/group_0300.py | 44 +- .../versions/v2022_11_28/models/group_0301.py | 47 +- .../versions/v2022_11_28/models/group_0302.py | 75 +- .../versions/v2022_11_28/models/group_0303.py | 36 +- .../versions/v2022_11_28/models/group_0304.py | 47 +- .../versions/v2022_11_28/models/group_0305.py | 97 +- .../versions/v2022_11_28/models/group_0306.py | 80 +- .../versions/v2022_11_28/models/group_0307.py | 163 +- .../versions/v2022_11_28/models/group_0308.py | 58 +- .../versions/v2022_11_28/models/group_0309.py | 36 +- .../versions/v2022_11_28/models/group_0310.py | 32 +- .../versions/v2022_11_28/models/group_0311.py | 93 +- .../versions/v2022_11_28/models/group_0312.py | 75 +- .../versions/v2022_11_28/models/group_0313.py | 169 +- .../versions/v2022_11_28/models/group_0314.py | 30 +- .../versions/v2022_11_28/models/group_0315.py | 94 +- .../versions/v2022_11_28/models/group_0316.py | 42 +- .../versions/v2022_11_28/models/group_0317.py | 24 +- .../versions/v2022_11_28/models/group_0318.py | 29 +- .../versions/v2022_11_28/models/group_0319.py | 57 +- .../versions/v2022_11_28/models/group_0320.py | 95 +- .../versions/v2022_11_28/models/group_0321.py | 150 +- .../versions/v2022_11_28/models/group_0322.py | 37 +- .../versions/v2022_11_28/models/group_0323.py | 35 +- .../versions/v2022_11_28/models/group_0324.py | 33 +- .../versions/v2022_11_28/models/group_0325.py | 33 +- .../versions/v2022_11_28/models/group_0326.py | 99 +- .../versions/v2022_11_28/models/group_0327.py | 120 +- .../versions/v2022_11_28/models/group_0328.py | 81 +- .../versions/v2022_11_28/models/group_0329.py | 35 +- .../versions/v2022_11_28/models/group_0330.py | 39 +- .../versions/v2022_11_28/models/group_0331.py | 53 +- .../versions/v2022_11_28/models/group_0332.py | 19 +- .../versions/v2022_11_28/models/group_0333.py | 77 +- .../versions/v2022_11_28/models/group_0334.py | 78 +- .../versions/v2022_11_28/models/group_0335.py | 30 +- .../versions/v2022_11_28/models/group_0336.py | 43 +- .../versions/v2022_11_28/models/group_0337.py | 55 +- .../versions/v2022_11_28/models/group_0338.py | 30 +- .../versions/v2022_11_28/models/group_0339.py | 16 +- .../versions/v2022_11_28/models/group_0340.py | 10 +- .../versions/v2022_11_28/models/group_0341.py | 14 +- .../versions/v2022_11_28/models/group_0342.py | 15 +- .../versions/v2022_11_28/models/group_0343.py | 10 +- .../versions/v2022_11_28/models/group_0344.py | 16 +- .../versions/v2022_11_28/models/group_0345.py | 14 +- .../versions/v2022_11_28/models/group_0346.py | 15 +- .../versions/v2022_11_28/models/group_0347.py | 16 +- .../versions/v2022_11_28/models/group_0348.py | 14 +- .../versions/v2022_11_28/models/group_0349.py | 13 +- .../versions/v2022_11_28/models/group_0350.py | 16 +- .../versions/v2022_11_28/models/group_0351.py | 93 +- .../versions/v2022_11_28/models/group_0352.py | 30 +- .../versions/v2022_11_28/models/group_0353.py | 72 +- .../versions/v2022_11_28/models/group_0354.py | 28 +- .../versions/v2022_11_28/models/group_0355.py | 121 +- .../versions/v2022_11_28/models/group_0356.py | 94 +- .../versions/v2022_11_28/models/group_0357.py | 177 +- .../versions/v2022_11_28/models/group_0358.py | 29 +- .../versions/v2022_11_28/models/group_0359.py | 73 +- .../versions/v2022_11_28/models/group_0360.py | 38 +- .../versions/v2022_11_28/models/group_0361.py | 122 +- .../versions/v2022_11_28/models/group_0362.py | 101 +- .../versions/v2022_11_28/models/group_0363.py | 152 +- .../versions/v2022_11_28/models/group_0364.py | 24 +- .../versions/v2022_11_28/models/group_0365.py | 14 +- .../versions/v2022_11_28/models/group_0366.py | 36 +- .../versions/v2022_11_28/models/group_0367.py | 18 +- .../versions/v2022_11_28/models/group_0368.py | 27 +- .../versions/v2022_11_28/models/group_0369.py | 29 +- .../versions/v2022_11_28/models/group_0370.py | 22 +- .../versions/v2022_11_28/models/group_0371.py | 32 +- .../versions/v2022_11_28/models/group_0372.py | 49 +- .../versions/v2022_11_28/models/group_0373.py | 61 +- .../versions/v2022_11_28/models/group_0374.py | 49 +- .../versions/v2022_11_28/models/group_0375.py | 129 +- .../versions/v2022_11_28/models/group_0376.py | 42 +- .../versions/v2022_11_28/models/group_0377.py | 144 +- .../versions/v2022_11_28/models/group_0378.py | 94 +- .../versions/v2022_11_28/models/group_0379.py | 78 +- .../versions/v2022_11_28/models/group_0380.py | 88 +- .../versions/v2022_11_28/models/group_0381.py | 128 +- .../versions/v2022_11_28/models/group_0382.py | 54 +- .../versions/v2022_11_28/models/group_0383.py | 246 +- .../versions/v2022_11_28/models/group_0384.py | 95 +- .../versions/v2022_11_28/models/group_0385.py | 115 +- .../versions/v2022_11_28/models/group_0386.py | 70 +- .../versions/v2022_11_28/models/group_0387.py | 51 +- .../versions/v2022_11_28/models/group_0388.py | 43 +- .../versions/v2022_11_28/models/group_0389.py | 153 +- .../versions/v2022_11_28/models/group_0390.py | 20 +- .../versions/v2022_11_28/models/group_0391.py | 83 +- .../versions/v2022_11_28/models/group_0392.py | 19 +- .../versions/v2022_11_28/models/group_0393.py | 55 +- .../versions/v2022_11_28/models/group_0394.py | 20 +- .../versions/v2022_11_28/models/group_0395.py | 29 +- .../versions/v2022_11_28/models/group_0396.py | 365 +- .../versions/v2022_11_28/models/group_0397.py | 90 +- .../versions/v2022_11_28/models/group_0398.py | 60 +- .../versions/v2022_11_28/models/group_0399.py | 84 +- .../versions/v2022_11_28/models/group_0400.py | 31 +- .../versions/v2022_11_28/models/group_0401.py | 32 +- .../versions/v2022_11_28/models/group_0402.py | 390 +- .../versions/v2022_11_28/models/group_0403.py | 79 +- .../versions/v2022_11_28/models/group_0404.py | 75 +- .../versions/v2022_11_28/models/group_0405.py | 133 +- .../versions/v2022_11_28/models/group_0406.py | 177 +- .../versions/v2022_11_28/models/group_0407.py | 87 +- .../versions/v2022_11_28/models/group_0408.py | 77 +- .../versions/v2022_11_28/models/group_0409.py | 21 +- .../versions/v2022_11_28/models/group_0410.py | 51 +- .../versions/v2022_11_28/models/group_0411.py | 48 +- .../versions/v2022_11_28/models/group_0412.py | 181 +- .../versions/v2022_11_28/models/group_0413.py | 349 +- .../versions/v2022_11_28/models/group_0414.py | 68 +- .../versions/v2022_11_28/models/group_0415.py | 389 +- .../versions/v2022_11_28/models/group_0416.py | 53 +- .../versions/v2022_11_28/models/group_0417.py | 133 +- .../versions/v2022_11_28/models/group_0418.py | 49 +- .../versions/v2022_11_28/models/group_0419.py | 411 +- .../versions/v2022_11_28/models/group_0420.py | 71 +- .../versions/v2022_11_28/models/group_0421.py | 337 +- .../versions/v2022_11_28/models/group_0422.py | 28 +- .../versions/v2022_11_28/models/group_0423.py | 209 +- .../versions/v2022_11_28/models/group_0424.py | 86 +- .../versions/v2022_11_28/models/group_0425.py | 94 +- .../versions/v2022_11_28/models/group_0426.py | 34 +- .../versions/v2022_11_28/models/group_0427.py | 71 +- .../versions/v2022_11_28/models/group_0428.py | 65 +- .../versions/v2022_11_28/models/group_0429.py | 196 +- .../versions/v2022_11_28/models/group_0430.py | 71 +- .../versions/v2022_11_28/models/group_0431.py | 158 +- .../versions/v2022_11_28/models/group_0432.py | 63 +- .../versions/v2022_11_28/models/group_0433.py | 1068 +- .../versions/v2022_11_28/models/group_0434.py | 183 +- .../versions/v2022_11_28/models/group_0435.py | 103 +- .../versions/v2022_11_28/models/group_0436.py | 148 +- .../versions/v2022_11_28/models/group_0437.py | 237 +- .../versions/v2022_11_28/models/group_0438.py | 96 +- .../versions/v2022_11_28/models/group_0439.py | 1080 +- .../versions/v2022_11_28/models/group_0440.py | 220 +- .../versions/v2022_11_28/models/group_0441.py | 136 +- .../versions/v2022_11_28/models/group_0442.py | 168 +- .../versions/v2022_11_28/models/group_0443.py | 170 +- .../versions/v2022_11_28/models/group_0444.py | 86 +- .../versions/v2022_11_28/models/group_0445.py | 103 +- .../versions/v2022_11_28/models/group_0446.py | 140 +- .../versions/v2022_11_28/models/group_0447.py | 157 +- .../versions/v2022_11_28/models/group_0448.py | 223 +- .../versions/v2022_11_28/models/group_0449.py | 76 +- .../versions/v2022_11_28/models/group_0450.py | 41 +- .../versions/v2022_11_28/models/group_0451.py | 27 +- .../versions/v2022_11_28/models/group_0452.py | 46 +- .../versions/v2022_11_28/models/group_0453.py | 49 +- .../versions/v2022_11_28/models/group_0454.py | 211 +- .../versions/v2022_11_28/models/group_0455.py | 20 +- .../versions/v2022_11_28/models/group_0456.py | 12 +- .../versions/v2022_11_28/models/group_0457.py | 334 +- .../versions/v2022_11_28/models/group_0458.py | 343 +- .../versions/v2022_11_28/models/group_0459.py | 337 +- .../versions/v2022_11_28/models/group_0460.py | 220 +- .../versions/v2022_11_28/models/group_0461.py | 210 +- .../versions/v2022_11_28/models/group_0462.py | 189 +- .../versions/v2022_11_28/models/group_0463.py | 375 +- .../versions/v2022_11_28/models/group_0464.py | 394 +- .../versions/v2022_11_28/models/group_0465.py | 384 +- .../versions/v2022_11_28/models/group_0466.py | 232 +- .../versions/v2022_11_28/models/group_0467.py | 211 +- .../versions/v2022_11_28/models/group_0468.py | 178 +- .../versions/v2022_11_28/models/group_0469.py | 206 +- .../versions/v2022_11_28/models/group_0470.py | 188 +- .../versions/v2022_11_28/models/group_0471.py | 181 +- .../versions/v2022_11_28/models/group_0472.py | 133 +- .../versions/v2022_11_28/models/group_0473.py | 46 +- .../versions/v2022_11_28/models/group_0474.py | 42 +- .../versions/v2022_11_28/models/group_0475.py | 48 +- .../versions/v2022_11_28/models/group_0476.py | 42 +- .../versions/v2022_11_28/models/group_0477.py | 50 +- .../versions/v2022_11_28/models/group_0478.py | 38 +- .../versions/v2022_11_28/models/group_0479.py | 22 +- .../versions/v2022_11_28/models/group_0480.py | 36 +- .../versions/v2022_11_28/models/group_0481.py | 36 +- .../versions/v2022_11_28/models/group_0482.py | 601 +- .../versions/v2022_11_28/models/group_0483.py | 58 +- .../versions/v2022_11_28/models/group_0484.py | 458 +- .../versions/v2022_11_28/models/group_0485.py | 458 +- .../versions/v2022_11_28/models/group_0486.py | 488 +- .../versions/v2022_11_28/models/group_0487.py | 858 +- .../versions/v2022_11_28/models/group_0488.py | 593 +- .../versions/v2022_11_28/models/group_0489.py | 95 +- .../versions/v2022_11_28/models/group_0490.py | 450 +- .../versions/v2022_11_28/models/group_0491.py | 452 +- .../versions/v2022_11_28/models/group_0492.py | 490 +- .../versions/v2022_11_28/models/group_0493.py | 861 +- .../versions/v2022_11_28/models/group_0494.py | 24 +- .../versions/v2022_11_28/models/group_0495.py | 61 +- .../versions/v2022_11_28/models/group_0496.py | 50 +- .../versions/v2022_11_28/models/group_0497.py | 26 +- .../versions/v2022_11_28/models/group_0498.py | 24 +- .../versions/v2022_11_28/models/group_0499.py | 43 +- .../versions/v2022_11_28/models/group_0500.py | 22 +- .../versions/v2022_11_28/models/group_0501.py | 24 +- .../versions/v2022_11_28/models/group_0502.py | 69 +- .../versions/v2022_11_28/models/group_0503.py | 38 +- .../versions/v2022_11_28/models/group_0504.py | 24 +- .../versions/v2022_11_28/models/group_0505.py | 22 +- .../versions/v2022_11_28/models/group_0506.py | 22 +- .../versions/v2022_11_28/models/group_0507.py | 34 +- .../versions/v2022_11_28/models/group_0508.py | 182 +- .../versions/v2022_11_28/models/group_0509.py | 188 +- .../versions/v2022_11_28/models/group_0510.py | 58 +- .../versions/v2022_11_28/models/group_0511.py | 152 +- .../versions/v2022_11_28/models/group_0512.py | 49 +- .../versions/v2022_11_28/models/group_0513.py | 47 +- .../versions/v2022_11_28/models/group_0514.py | 191 +- .../versions/v2022_11_28/models/group_0515.py | 193 +- .../versions/v2022_11_28/models/group_0516.py | 55 +- .../versions/v2022_11_28/models/group_0517.py | 169 +- .../versions/v2022_11_28/models/group_0518.py | 64 +- .../versions/v2022_11_28/models/group_0519.py | 54 +- .../versions/v2022_11_28/models/group_0520.py | 114 +- .../versions/v2022_11_28/models/group_0521.py | 22 +- .../versions/v2022_11_28/models/group_0522.py | 44 +- .../versions/v2022_11_28/models/group_0523.py | 127 +- .../versions/v2022_11_28/models/group_0524.py | 200 +- .../versions/v2022_11_28/models/group_0525.py | 196 +- .../versions/v2022_11_28/models/group_0526.py | 122 +- .../versions/v2022_11_28/models/group_0527.py | 64 +- .../versions/v2022_11_28/models/group_0528.py | 72 +- .../versions/v2022_11_28/models/group_0529.py | 127 +- .../versions/v2022_11_28/models/group_0530.py | 175 +- .../versions/v2022_11_28/models/group_0531.py | 183 +- .../versions/v2022_11_28/models/group_0532.py | 123 +- .../versions/v2022_11_28/models/group_0533.py | 67 +- .../versions/v2022_11_28/models/group_0534.py | 53 +- .../versions/v2022_11_28/models/group_0535.py | 122 +- .../versions/v2022_11_28/models/group_0536.py | 175 +- .../versions/v2022_11_28/models/group_0537.py | 183 +- .../versions/v2022_11_28/models/group_0538.py | 123 +- .../versions/v2022_11_28/models/group_0539.py | 67 +- .../versions/v2022_11_28/models/group_0540.py | 53 +- .../versions/v2022_11_28/models/group_0541.py | 122 +- .../versions/v2022_11_28/models/group_0542.py | 175 +- .../versions/v2022_11_28/models/group_0543.py | 183 +- .../versions/v2022_11_28/models/group_0544.py | 124 +- .../versions/v2022_11_28/models/group_0545.py | 67 +- .../versions/v2022_11_28/models/group_0546.py | 53 +- .../versions/v2022_11_28/models/group_0547.py | 124 +- .../versions/v2022_11_28/models/group_0548.py | 175 +- .../versions/v2022_11_28/models/group_0549.py | 183 +- .../versions/v2022_11_28/models/group_0550.py | 124 +- .../versions/v2022_11_28/models/group_0551.py | 67 +- .../versions/v2022_11_28/models/group_0552.py | 53 +- .../versions/v2022_11_28/models/group_0553.py | 123 +- .../versions/v2022_11_28/models/group_0554.py | 174 +- .../versions/v2022_11_28/models/group_0555.py | 183 +- .../versions/v2022_11_28/models/group_0556.py | 123 +- .../versions/v2022_11_28/models/group_0557.py | 65 +- .../versions/v2022_11_28/models/group_0558.py | 52 +- .../versions/v2022_11_28/models/group_0559.py | 123 +- .../versions/v2022_11_28/models/group_0560.py | 67 +- .../versions/v2022_11_28/models/group_0561.py | 211 +- .../versions/v2022_11_28/models/group_0562.py | 221 +- .../versions/v2022_11_28/models/group_0563.py | 65 +- .../versions/v2022_11_28/models/group_0564.py | 52 +- .../versions/v2022_11_28/models/group_0565.py | 119 +- .../versions/v2022_11_28/models/group_0566.py | 67 +- .../versions/v2022_11_28/models/group_0567.py | 212 +- .../versions/v2022_11_28/models/group_0568.py | 249 +- .../versions/v2022_11_28/models/group_0569.py | 59 +- .../versions/v2022_11_28/models/group_0570.py | 52 +- .../versions/v2022_11_28/models/group_0571.py | 366 +- .../versions/v2022_11_28/models/group_0572.py | 428 +- .../versions/v2022_11_28/models/group_0573.py | 460 +- .../versions/v2022_11_28/models/group_0574.py | 469 +- .../versions/v2022_11_28/models/group_0575.py | 415 +- .../versions/v2022_11_28/models/group_0576.py | 425 +- .../versions/v2022_11_28/models/group_0577.py | 754 +- .../versions/v2022_11_28/models/group_0578.py | 434 +- .../versions/v2022_11_28/models/group_0579.py | 182 +- .../versions/v2022_11_28/models/group_0580.py | 415 +- .../versions/v2022_11_28/models/group_0581.py | 416 +- .../versions/v2022_11_28/models/group_0582.py | 425 +- .../versions/v2022_11_28/models/group_0583.py | 761 +- .../versions/v2022_11_28/models/group_0584.py | 22 +- .../versions/v2022_11_28/models/group_0585.py | 429 +- .../versions/v2022_11_28/models/group_0586.py | 663 +- .../versions/v2022_11_28/models/group_0587.py | 85 +- .../versions/v2022_11_28/models/group_0588.py | 37 +- .../versions/v2022_11_28/models/group_0589.py | 438 +- .../versions/v2022_11_28/models/group_0590.py | 92 +- .../versions/v2022_11_28/models/group_0591.py | 95 +- .../versions/v2022_11_28/models/group_0592.py | 34 +- .../versions/v2022_11_28/models/group_0593.py | 97 +- .../versions/v2022_11_28/models/group_0594.py | 77 +- .../versions/v2022_11_28/models/group_0595.py | 85 +- .../versions/v2022_11_28/models/group_0596.py | 119 +- .../versions/v2022_11_28/models/group_0597.py | 119 +- .../versions/v2022_11_28/models/group_0598.py | 40 +- .../versions/v2022_11_28/models/group_0599.py | 83 +- .../versions/v2022_11_28/models/group_0600.py | 86 +- .../versions/v2022_11_28/models/group_0601.py | 29 +- .../versions/v2022_11_28/models/group_0602.py | 75 +- .../versions/v2022_11_28/models/group_0603.py | 75 +- .../versions/v2022_11_28/models/group_0604.py | 90 +- .../versions/v2022_11_28/models/group_0605.py | 39 +- .../versions/v2022_11_28/models/group_0606.py | 69 +- .../versions/v2022_11_28/models/group_0607.py | 35 +- .../versions/v2022_11_28/models/group_0608.py | 35 +- .../versions/v2022_11_28/models/group_0609.py | 34 +- .../versions/v2022_11_28/models/group_0610.py | 133 +- .../versions/v2022_11_28/models/group_0611.py | 34 +- .../versions/v2022_11_28/models/group_0612.py | 51 +- .../versions/v2022_11_28/models/group_0613.py | 73 +- .../versions/v2022_11_28/models/group_0614.py | 31 +- .../versions/v2022_11_28/models/group_0615.py | 102 +- .../versions/v2022_11_28/models/group_0616.py | 590 +- .../versions/v2022_11_28/models/group_0617.py | 35 +- .../versions/v2022_11_28/models/group_0618.py | 128 +- .../versions/v2022_11_28/models/group_0619.py | 203 +- .../versions/v2022_11_28/models/group_0620.py | 90 +- .../versions/v2022_11_28/models/group_0621.py | 95 +- .../versions/v2022_11_28/models/group_0622.py | 591 +- .../versions/v2022_11_28/models/group_0623.py | 43 +- .../versions/v2022_11_28/models/group_0624.py | 105 +- .../versions/v2022_11_28/models/group_0625.py | 190 +- .../versions/v2022_11_28/models/group_0626.py | 124 +- .../versions/v2022_11_28/models/group_0627.py | 39 +- .../versions/v2022_11_28/models/group_0628.py | 62 +- .../versions/v2022_11_28/models/group_0629.py | 40 +- .../versions/v2022_11_28/models/group_0630.py | 98 +- .../versions/v2022_11_28/models/group_0631.py | 58 +- .../versions/v2022_11_28/models/group_0632.py | 132 +- .../versions/v2022_11_28/models/group_0633.py | 63 +- .../versions/v2022_11_28/models/group_0634.py | 102 +- .../versions/v2022_11_28/models/group_0635.py | 24 +- .../versions/v2022_11_28/models/group_0636.py | 87 +- .../versions/v2022_11_28/models/group_0637.py | 51 +- .../versions/v2022_11_28/models/group_0638.py | 113 +- .../versions/v2022_11_28/models/group_0639.py | 85 +- .../versions/v2022_11_28/models/group_0640.py | 91 +- .../versions/v2022_11_28/models/group_0641.py | 32 +- .../versions/v2022_11_28/models/group_0642.py | 64 +- .../versions/v2022_11_28/models/group_0643.py | 34 +- .../versions/v2022_11_28/models/group_0644.py | 58 +- .../versions/v2022_11_28/models/group_0645.py | 38 +- .../versions/v2022_11_28/models/group_0646.py | 35 +- .../versions/v2022_11_28/models/group_0647.py | 93 +- .../versions/v2022_11_28/models/group_0648.py | 81 +- .../versions/v2022_11_28/models/group_0649.py | 59 +- .../versions/v2022_11_28/models/group_0650.py | 22 +- .../versions/v2022_11_28/models/group_0651.py | 25 +- .../versions/v2022_11_28/models/group_0652.py | 105 +- .../versions/v2022_11_28/models/group_0653.py | 82 +- .../versions/v2022_11_28/models/group_0654.py | 20 +- .../versions/v2022_11_28/models/group_0655.py | 46 +- .../versions/v2022_11_28/models/group_0656.py | 21 +- .../versions/v2022_11_28/models/group_0657.py | 21 +- .../versions/v2022_11_28/models/group_0658.py | 129 +- .../versions/v2022_11_28/models/group_0659.py | 57 +- .../versions/v2022_11_28/models/group_0660.py | 1158 +- .../versions/v2022_11_28/models/group_0661.py | 1209 +-- .../versions/v2022_11_28/models/group_0662.py | 1202 +-- .../versions/v2022_11_28/models/group_0663.py | 36 +- .../versions/v2022_11_28/models/group_0664.py | 101 +- .../versions/v2022_11_28/models/group_0665.py | 34 +- .../versions/v2022_11_28/models/group_0666.py | 432 +- .../versions/v2022_11_28/models/group_0667.py | 1219 ++- .../versions/v2022_11_28/models/group_0668.py | 439 +- .../versions/v2022_11_28/models/group_0669.py | 1138 +- .../versions/v2022_11_28/models/group_0670.py | 1130 +- .../versions/v2022_11_28/models/group_0671.py | 22 +- .../versions/v2022_11_28/models/group_0672.py | 1155 +- .../versions/v2022_11_28/models/group_0673.py | 91 +- .../versions/v2022_11_28/models/group_0674.py | 1141 +- .../versions/v2022_11_28/models/group_0675.py | 711 +- .../versions/v2022_11_28/models/group_0676.py | 559 +- .../versions/v2022_11_28/models/group_0677.py | 1175 +- .../versions/v2022_11_28/models/group_0678.py | 1231 +-- .../versions/v2022_11_28/models/group_0679.py | 1075 +- .../versions/v2022_11_28/models/group_0680.py | 1282 +-- .../versions/v2022_11_28/models/group_0681.py | 765 +- .../versions/v2022_11_28/models/group_0682.py | 543 +- .../versions/v2022_11_28/models/group_0683.py | 550 +- .../versions/v2022_11_28/models/group_0684.py | 420 +- .../versions/v2022_11_28/models/group_0685.py | 673 +- .../versions/v2022_11_28/models/group_0686.py | 760 +- .../versions/v2022_11_28/models/group_0687.py | 550 +- .../versions/v2022_11_28/models/group_0688.py | 536 +- .../versions/v2022_11_28/models/group_0689.py | 591 +- .../versions/v2022_11_28/models/group_0690.py | 522 +- .../versions/v2022_11_28/models/group_0691.py | 1281 ++- .../versions/v2022_11_28/models/group_0692.py | 1342 ++- .../versions/v2022_11_28/models/group_0693.py | 1192 +- .../versions/v2022_11_28/models/group_0694.py | 1518 ++- .../versions/v2022_11_28/models/group_0695.py | 1152 +- .../versions/v2022_11_28/models/group_0696.py | 1163 +- .../versions/v2022_11_28/models/group_0697.py | 528 +- .../versions/v2022_11_28/models/group_0698.py | 30 +- .../versions/v2022_11_28/models/group_0699.py | 112 +- .../versions/v2022_11_28/models/group_0700.py | 685 +- .../versions/v2022_11_28/models/group_0701.py | 178 +- .../versions/v2022_11_28/models/group_0702.py | 106 +- .../versions/v2022_11_28/models/group_0703.py | 231 +- .../versions/v2022_11_28/models/group_0704.py | 28 +- .../versions/v2022_11_28/models/group_0705.py | 33 +- .../versions/v2022_11_28/models/group_0706.py | 76 +- .../versions/v2022_11_28/models/group_0707.py | 173 +- .../versions/v2022_11_28/models/group_0708.py | 29 +- .../versions/v2022_11_28/models/group_0709.py | 29 +- .../versions/v2022_11_28/models/group_0710.py | 56 +- .../versions/v2022_11_28/models/group_0711.py | 78 +- .../versions/v2022_11_28/models/group_0712.py | 28 +- .../versions/v2022_11_28/models/group_0713.py | 20 +- .../versions/v2022_11_28/models/group_0714.py | 20 +- .../versions/v2022_11_28/models/group_0715.py | 47 +- .../versions/v2022_11_28/models/group_0716.py | 55 +- .../versions/v2022_11_28/models/group_0717.py | 82 +- .../versions/v2022_11_28/models/group_0718.py | 30 +- .../versions/v2022_11_28/models/group_0719.py | 60 +- .../versions/v2022_11_28/models/group_0720.py | 57 +- .../versions/v2022_11_28/models/group_0721.py | 131 +- .../versions/v2022_11_28/models/group_0722.py | 136 +- .../versions/v2022_11_28/models/group_0723.py | 168 +- .../versions/v2022_11_28/models/group_0724.py | 117 +- .../versions/v2022_11_28/models/group_0725.py | 60 +- .../versions/v2022_11_28/models/group_0726.py | 62 +- .../versions/v2022_11_28/models/group_0727.py | 182 +- .../versions/v2022_11_28/models/group_0728.py | 135 +- .../versions/v2022_11_28/models/group_0729.py | 216 +- .../versions/v2022_11_28/models/group_0730.py | 111 +- .../versions/v2022_11_28/models/group_0731.py | 290 +- .../versions/v2022_11_28/models/group_0732.py | 45 +- .../versions/v2022_11_28/models/group_0733.py | 94 +- .../versions/v2022_11_28/models/group_0734.py | 31 +- .../versions/v2022_11_28/models/group_0735.py | 92 +- .../versions/v2022_11_28/models/group_0736.py | 22 +- .../versions/v2022_11_28/models/group_0737.py | 324 +- .../versions/v2022_11_28/models/group_0738.py | 47 +- .../versions/v2022_11_28/models/group_0739.py | 29 +- .../versions/v2022_11_28/models/group_0740.py | 29 +- .../versions/v2022_11_28/models/group_0741.py | 152 +- .../versions/v2022_11_28/models/group_0742.py | 30 +- .../versions/v2022_11_28/models/group_0743.py | 68 +- .../versions/v2022_11_28/models/group_0744.py | 45 +- .../versions/v2022_11_28/models/group_0745.py | 30 +- .../versions/v2022_11_28/models/group_0746.py | 30 +- .../versions/v2022_11_28/models/group_0747.py | 159 +- .../versions/v2022_11_28/models/group_0748.py | 39 +- .../versions/v2022_11_28/models/group_0749.py | 47 +- .../versions/v2022_11_28/models/group_0750.py | 43 +- .../versions/v2022_11_28/models/group_0751.py | 30 +- .../versions/v2022_11_28/models/group_0752.py | 28 +- .../versions/v2022_11_28/models/group_0753.py | 239 +- .../versions/v2022_11_28/models/group_0754.py | 62 +- .../versions/v2022_11_28/models/group_0755.py | 49 +- .../versions/v2022_11_28/models/group_0756.py | 60 +- .../versions/v2022_11_28/models/group_0757.py | 53 +- .../versions/v2022_11_28/models/group_0758.py | 45 +- .../versions/v2022_11_28/models/group_0759.py | 236 +- .../versions/v2022_11_28/models/group_0760.py | 55 +- .../versions/v2022_11_28/models/group_0761.py | 52 +- .../versions/v2022_11_28/models/group_0762.py | 59 +- .../versions/v2022_11_28/models/group_0763.py | 243 +- .../versions/v2022_11_28/models/group_0764.py | 251 +- .../versions/v2022_11_28/models/group_0765.py | 251 +- .../versions/v2022_11_28/models/group_0766.py | 354 +- .../versions/v2022_11_28/models/group_0767.py | 255 +- .../versions/v2022_11_28/models/group_0768.py | 26 +- .../versions/v2022_11_28/models/group_0769.py | 239 +- .../versions/v2022_11_28/models/group_0770.py | 281 +- .../versions/v2022_11_28/models/group_0771.py | 277 +- .../versions/v2022_11_28/models/group_0772.py | 376 +- .../versions/v2022_11_28/models/group_0773.py | 267 +- .../versions/v2022_11_28/models/group_0774.py | 89 +- .../versions/v2022_11_28/models/group_0775.py | 79 +- .../versions/v2022_11_28/models/group_0776.py | 91 +- .../versions/v2022_11_28/models/group_0777.py | 107 +- .../versions/v2022_11_28/models/group_0778.py | 514 +- .../versions/v2022_11_28/models/group_0779.py | 481 +- .../versions/v2022_11_28/models/group_0780.py | 504 +- .../versions/v2022_11_28/models/group_0781.py | 78 +- .../versions/v2022_11_28/models/group_0782.py | 100 +- .../versions/v2022_11_28/models/group_0783.py | 96 +- .../versions/v2022_11_28/models/group_0784.py | 492 +- .../versions/v2022_11_28/models/group_0785.py | 477 +- .../versions/v2022_11_28/models/group_0786.py | 487 +- .../versions/v2022_11_28/models/group_0787.py | 42 +- .../versions/v2022_11_28/models/group_0788.py | 19 +- .../versions/v2022_11_28/models/group_0789.py | 25 +- .../versions/v2022_11_28/models/group_0790.py | 49 +- .../versions/v2022_11_28/models/group_0791.py | 30 +- .../versions/v2022_11_28/models/group_0792.py | 109 +- .../versions/v2022_11_28/models/group_0793.py | 115 +- .../versions/v2022_11_28/models/group_0794.py | 20 +- .../versions/v2022_11_28/models/group_0795.py | 25 +- .../versions/v2022_11_28/models/group_0796.py | 47 +- .../versions/v2022_11_28/models/group_0797.py | 18 +- .../versions/v2022_11_28/models/group_0798.py | 111 +- .../versions/v2022_11_28/models/group_0799.py | 131 +- .../versions/v2022_11_28/models/group_0800.py | 45 +- .../versions/v2022_11_28/models/group_0801.py | 25 +- .../versions/v2022_11_28/models/group_0802.py | 32 +- .../versions/v2022_11_28/models/group_0803.py | 16 +- .../versions/v2022_11_28/models/group_0804.py | 36 +- .../versions/v2022_11_28/models/group_0805.py | 33 +- .../versions/v2022_11_28/models/group_0806.py | 43 +- .../versions/v2022_11_28/models/group_0807.py | 12 +- .../versions/v2022_11_28/models/group_0808.py | 14 +- .../versions/v2022_11_28/models/group_0809.py | 127 +- .../versions/v2022_11_28/models/group_0810.py | 36 +- .../versions/v2022_11_28/models/group_0811.py | 17 +- .../versions/v2022_11_28/models/group_0812.py | 23 +- .../versions/v2022_11_28/models/group_0813.py | 14 +- .../versions/v2022_11_28/models/group_0814.py | 45 +- .../versions/v2022_11_28/models/group_0815.py | 122 +- .../versions/v2022_11_28/models/group_0816.py | 46 +- .../versions/v2022_11_28/models/group_0817.py | 14 +- .../versions/v2022_11_28/models/group_0818.py | 56 +- .../versions/v2022_11_28/models/group_0819.py | 14 +- .../versions/v2022_11_28/models/group_0820.py | 15 +- .../versions/v2022_11_28/models/group_0821.py | 12 +- .../versions/v2022_11_28/models/group_0822.py | 27 +- .../versions/v2022_11_28/models/group_0823.py | 35 +- .../versions/v2022_11_28/models/group_0824.py | 23 +- .../versions/v2022_11_28/models/group_0825.py | 18 +- .../versions/v2022_11_28/models/group_0826.py | 16 +- .../versions/v2022_11_28/models/group_0827.py | 52 +- .../versions/v2022_11_28/models/group_0828.py | 56 +- .../versions/v2022_11_28/models/group_0829.py | 34 +- .../versions/v2022_11_28/models/group_0830.py | 14 +- .../versions/v2022_11_28/models/group_0831.py | 15 +- .../versions/v2022_11_28/models/group_0832.py | 40 +- .../versions/v2022_11_28/models/group_0833.py | 25 +- .../versions/v2022_11_28/models/group_0834.py | 23 +- .../versions/v2022_11_28/models/group_0835.py | 12 +- .../versions/v2022_11_28/models/group_0836.py | 26 +- .../versions/v2022_11_28/models/group_0837.py | 84 +- .../versions/v2022_11_28/models/group_0838.py | 164 +- .../versions/v2022_11_28/models/group_0839.py | 18 +- .../versions/v2022_11_28/models/group_0840.py | 170 +- .../versions/v2022_11_28/models/group_0841.py | 25 +- .../versions/v2022_11_28/models/group_0842.py | 34 +- .../versions/v2022_11_28/models/group_0843.py | 29 +- .../versions/v2022_11_28/models/group_0844.py | 12 +- .../versions/v2022_11_28/models/group_0845.py | 28 +- .../versions/v2022_11_28/models/group_0846.py | 43 +- .../versions/v2022_11_28/models/group_0847.py | 25 +- .../versions/v2022_11_28/models/group_0848.py | 41 +- .../versions/v2022_11_28/models/group_0849.py | 31 +- .../versions/v2022_11_28/models/group_0850.py | 15 +- .../versions/v2022_11_28/models/group_0851.py | 81 +- .../versions/v2022_11_28/models/group_0852.py | 166 +- .../versions/v2022_11_28/models/group_0853.py | 18 +- .../versions/v2022_11_28/models/group_0854.py | 169 +- .../versions/v2022_11_28/models/group_0855.py | 26 +- .../versions/v2022_11_28/models/group_0856.py | 22 +- .../versions/v2022_11_28/models/group_0857.py | 27 +- .../versions/v2022_11_28/models/group_0858.py | 18 +- .../versions/v2022_11_28/models/group_0859.py | 31 +- .../versions/v2022_11_28/models/group_0860.py | 38 +- .../versions/v2022_11_28/models/group_0861.py | 31 +- .../versions/v2022_11_28/models/group_0862.py | 49 +- .../versions/v2022_11_28/models/group_0863.py | 28 +- .../versions/v2022_11_28/models/group_0864.py | 50 +- .../versions/v2022_11_28/models/group_0865.py | 48 +- .../versions/v2022_11_28/models/group_0866.py | 28 +- .../versions/v2022_11_28/models/group_0867.py | 14 +- .../versions/v2022_11_28/models/group_0868.py | 17 +- .../versions/v2022_11_28/models/group_0869.py | 47 +- .../versions/v2022_11_28/models/group_0870.py | 18 +- .../versions/v2022_11_28/models/group_0871.py | 20 +- .../versions/v2022_11_28/models/group_0872.py | 51 +- .../versions/v2022_11_28/models/group_0873.py | 19 +- .../versions/v2022_11_28/models/group_0874.py | 37 +- .../versions/v2022_11_28/models/group_0875.py | 27 +- .../versions/v2022_11_28/models/group_0876.py | 31 +- .../versions/v2022_11_28/models/group_0877.py | 20 +- .../versions/v2022_11_28/models/group_0878.py | 54 +- .../versions/v2022_11_28/models/group_0879.py | 48 +- .../versions/v2022_11_28/models/group_0880.py | 42 +- .../versions/v2022_11_28/models/group_0881.py | 45 +- .../versions/v2022_11_28/models/group_0882.py | 13 +- .../versions/v2022_11_28/models/group_0883.py | 37 +- .../versions/v2022_11_28/models/group_0884.py | 18 +- .../versions/v2022_11_28/models/group_0885.py | 23 +- .../versions/v2022_11_28/models/group_0886.py | 55 +- .../versions/v2022_11_28/models/group_0887.py | 121 +- .../versions/v2022_11_28/models/group_0888.py | 91 +- .../versions/v2022_11_28/models/group_0889.py | 89 +- .../versions/v2022_11_28/models/group_0890.py | 44 +- .../versions/v2022_11_28/models/group_0891.py | 32 +- .../versions/v2022_11_28/models/group_0892.py | 26 +- .../versions/v2022_11_28/models/group_0893.py | 19 +- .../versions/v2022_11_28/models/group_0894.py | 39 +- .../versions/v2022_11_28/models/group_0895.py | 48 +- .../versions/v2022_11_28/models/group_0896.py | 25 +- .../versions/v2022_11_28/models/group_0897.py | 38 +- .../versions/v2022_11_28/models/group_0898.py | 15 +- .../versions/v2022_11_28/models/group_0899.py | 23 +- .../versions/v2022_11_28/models/group_0900.py | 24 +- .../versions/v2022_11_28/models/group_0901.py | 120 +- .../versions/v2022_11_28/models/group_0902.py | 86 +- .../versions/v2022_11_28/models/group_0903.py | 90 +- .../versions/v2022_11_28/models/group_0904.py | 40 +- .../versions/v2022_11_28/models/group_0905.py | 26 +- .../versions/v2022_11_28/models/group_0906.py | 30 +- .../versions/v2022_11_28/models/group_0907.py | 65 +- .../versions/v2022_11_28/models/group_0908.py | 56 +- .../versions/v2022_11_28/models/group_0909.py | 17 +- .../versions/v2022_11_28/models/group_0910.py | 19 +- .../versions/v2022_11_28/models/group_0911.py | 15 +- .../versions/v2022_11_28/models/group_0912.py | 30 +- .../versions/v2022_11_28/models/group_0913.py | 25 +- .../versions/v2022_11_28/models/group_0914.py | 18 +- .../versions/v2022_11_28/models/group_0915.py | 16 +- .../versions/v2022_11_28/models/group_0916.py | 25 +- .../versions/v2022_11_28/models/group_0917.py | 9 +- .../versions/v2022_11_28/models/group_0918.py | 15 +- .../versions/v2022_11_28/models/group_0919.py | 17 +- .../versions/v2022_11_28/models/group_0920.py | 9 +- .../versions/v2022_11_28/models/group_0921.py | 258 +- .../versions/v2022_11_28/models/group_0922.py | 22 +- .../versions/v2022_11_28/models/group_0923.py | 16 +- .../versions/v2022_11_28/models/group_0924.py | 34 +- .../versions/v2022_11_28/models/group_0925.py | 29 +- .../versions/v2022_11_28/models/group_0926.py | 13 +- .../versions/v2022_11_28/models/group_0927.py | 20 +- .../versions/v2022_11_28/models/group_0928.py | 18 +- .../versions/v2022_11_28/models/group_0929.py | 40 +- .../versions/v2022_11_28/models/group_0930.py | 16 +- .../versions/v2022_11_28/models/group_0931.py | 18 +- .../versions/v2022_11_28/models/group_0932.py | 17 +- .../versions/v2022_11_28/models/group_0933.py | 31 +- .../versions/v2022_11_28/models/group_0934.py | 19 +- .../versions/v2022_11_28/models/group_0935.py | 19 +- .../versions/v2022_11_28/models/group_0936.py | 18 +- .../versions/v2022_11_28/models/group_0937.py | 13 +- .../versions/v2022_11_28/models/group_0938.py | 259 +- .../versions/v2022_11_28/models/group_0939.py | 12 +- .../versions/v2022_11_28/models/group_0940.py | 17 +- .../versions/v2022_11_28/models/group_0941.py | 22 +- .../versions/v2022_11_28/models/group_0942.py | 14 +- .../versions/v2022_11_28/models/group_0943.py | 16 +- .../versions/v2022_11_28/models/group_0944.py | 43 +- .../versions/v2022_11_28/models/group_0945.py | 38 +- .../versions/v2022_11_28/models/group_0946.py | 29 +- .../versions/v2022_11_28/models/group_0947.py | 53 +- .../versions/v2022_11_28/models/group_0948.py | 18 +- .../versions/v2022_11_28/models/group_0949.py | 87 +- .../versions/v2022_11_28/models/group_0950.py | 24 +- .../versions/v2022_11_28/models/group_0951.py | 219 +- .../versions/v2022_11_28/models/group_0952.py | 98 +- .../versions/v2022_11_28/models/group_0953.py | 50 +- .../versions/v2022_11_28/models/group_0954.py | 24 +- .../versions/v2022_11_28/models/group_0955.py | 24 +- .../versions/v2022_11_28/models/group_0956.py | 22 +- .../versions/v2022_11_28/models/group_0957.py | 18 +- .../versions/v2022_11_28/models/group_0958.py | 17 +- .../versions/v2022_11_28/models/group_0959.py | 17 +- .../versions/v2022_11_28/models/group_0960.py | 17 +- .../versions/v2022_11_28/models/group_0961.py | 45 +- .../versions/v2022_11_28/models/group_0962.py | 39 +- .../versions/v2022_11_28/models/group_0963.py | 15 +- .../versions/v2022_11_28/models/group_0964.py | 52 +- .../versions/v2022_11_28/models/group_0965.py | 16 +- .../versions/v2022_11_28/models/group_0966.py | 86 +- .../versions/v2022_11_28/models/group_0967.py | 111 +- .../versions/v2022_11_28/models/group_0968.py | 236 +- .../versions/v2022_11_28/models/group_0969.py | 120 +- .../versions/v2022_11_28/models/group_0970.py | 111 +- .../versions/v2022_11_28/models/group_0971.py | 72 +- .../versions/v2022_11_28/models/group_0972.py | 75 +- .../versions/v2022_11_28/models/group_0973.py | 21 +- .../versions/v2022_11_28/models/group_0974.py | 35 +- .../versions/v2022_11_28/models/group_0975.py | 17 +- .../versions/v2022_11_28/models/group_0976.py | 32 +- .../versions/v2022_11_28/models/group_0977.py | 50 +- .../versions/v2022_11_28/models/group_0978.py | 52 +- .../versions/v2022_11_28/models/group_0979.py | 52 +- .../versions/v2022_11_28/models/group_0980.py | 59 +- .../versions/v2022_11_28/models/group_0981.py | 15 +- .../versions/v2022_11_28/models/group_0982.py | 58 +- .../versions/v2022_11_28/models/group_0983.py | 29 +- .../versions/v2022_11_28/models/group_0984.py | 113 +- .../versions/v2022_11_28/models/group_0985.py | 72 +- .../versions/v2022_11_28/models/group_0986.py | 87 +- .../versions/v2022_11_28/models/group_0987.py | 108 +- .../versions/v2022_11_28/models/group_0988.py | 61 +- .../versions/v2022_11_28/models/group_0989.py | 67 +- .../versions/v2022_11_28/models/group_0990.py | 16 +- .../versions/v2022_11_28/models/group_0991.py | 37 +- .../versions/v2022_11_28/models/group_0992.py | 10 +- .../versions/v2022_11_28/models/group_0993.py | 72 +- .../versions/v2022_11_28/models/group_0994.py | 67 +- .../versions/v2022_11_28/models/group_0995.py | 35 +- .../versions/v2022_11_28/models/group_0996.py | 62 +- .../versions/v2022_11_28/models/group_0997.py | 42 +- .../versions/v2022_11_28/models/group_0998.py | 20 +- .../versions/v2022_11_28/models/group_0999.py | 64 +- .../versions/v2022_11_28/models/group_1000.py | 27 +- .../versions/v2022_11_28/models/group_1001.py | 57 +- .../versions/v2022_11_28/models/group_1002.py | 39 +- .../versions/v2022_11_28/models/group_1003.py | 76 +- .../versions/v2022_11_28/models/group_1004.py | 43 +- .../versions/v2022_11_28/models/group_1005.py | 18 +- .../versions/v2022_11_28/models/group_1006.py | 28 +- .../versions/v2022_11_28/models/group_1007.py | 19 +- .../versions/v2022_11_28/models/group_1008.py | 24 +- .../versions/v2022_11_28/models/group_1009.py | 12 +- .../versions/v2022_11_28/models/group_1010.py | 67 +- .../versions/v2022_11_28/models/group_1011.py | 58 +- .../versions/v2022_11_28/models/group_1012.py | 28 +- .../versions/v2022_11_28/models/group_1013.py | 34 +- .../versions/v2022_11_28/models/group_1014.py | 75 +- .../versions/v2022_11_28/models/group_1015.py | 18 +- .../versions/v2022_11_28/models/group_1016.py | 54 +- .../versions/v2022_11_28/models/group_1017.py | 44 +- .../versions/v2022_11_28/models/group_1018.py | 51 +- .../versions/v2022_11_28/models/group_1019.py | 56 +- .../versions/v2022_11_28/models/group_1020.py | 54 +- .../versions/v2022_11_28/models/group_1021.py | 45 +- .../versions/v2022_11_28/models/group_1022.py | 33 +- .../versions/v2022_11_28/models/group_1023.py | 39 +- .../versions/v2022_11_28/models/group_1024.py | 16 +- .../versions/v2022_11_28/models/group_1025.py | 16 +- .../versions/v2022_11_28/models/group_1026.py | 15 +- .../versions/v2022_11_28/models/group_1027.py | 20 +- .../versions/v2022_11_28/models/group_1028.py | 50 +- .../versions/v2022_11_28/models/group_1029.py | 23 +- .../versions/v2022_11_28/models/group_1030.py | 20 +- .../versions/v2022_11_28/models/group_1031.py | 88 +- .../versions/v2022_11_28/models/group_1032.py | 16 +- .../versions/v2022_11_28/models/group_1033.py | 13 +- .../versions/v2022_11_28/models/group_1034.py | 58 +- .../versions/v2022_11_28/models/group_1035.py | 47 +- .../versions/v2022_11_28/models/group_1036.py | 55 +- .../versions/v2022_11_28/models/group_1037.py | 46 +- .../versions/v2022_11_28/models/group_1038.py | 25 +- .../versions/v2022_11_28/models/group_1039.py | 42 +- .../versions/v2022_11_28/models/group_1040.py | 41 +- .../versions/v2022_11_28/models/group_1041.py | 18 +- .../versions/v2022_11_28/models/group_1042.py | 14 +- .../versions/v2022_11_28/models/group_1043.py | 12 +- .../versions/v2022_11_28/models/group_1044.py | 19 +- .../versions/v2022_11_28/models/group_1045.py | 41 +- .../versions/v2022_11_28/models/group_1046.py | 17 +- .../versions/v2022_11_28/models/group_1047.py | 26 +- .../versions/v2022_11_28/models/group_1048.py | 53 +- .../versions/v2022_11_28/models/group_1049.py | 15 +- .../versions/v2022_11_28/models/group_1050.py | 18 +- .../versions/v2022_11_28/models/group_1051.py | 26 +- .../versions/v2022_11_28/models/group_1052.py | 28 +- .../versions/v2022_11_28/models/group_1053.py | 29 +- .../versions/v2022_11_28/models/group_1054.py | 13 +- .../versions/v2022_11_28/models/group_1055.py | 26 +- .../versions/v2022_11_28/models/group_1056.py | 42 +- .../versions/v2022_11_28/models/group_1057.py | 31 +- .../versions/v2022_11_28/models/group_1058.py | 33 +- .../versions/v2022_11_28/models/group_1059.py | 35 +- .../versions/v2022_11_28/models/group_1060.py | 32 +- .../versions/v2022_11_28/models/group_1061.py | 21 +- .../versions/v2022_11_28/models/group_1062.py | 22 +- .../versions/v2022_11_28/models/group_1063.py | 21 +- .../versions/v2022_11_28/models/group_1064.py | 31 +- .../versions/v2022_11_28/models/group_1065.py | 23 +- .../versions/v2022_11_28/models/group_1066.py | 15 +- .../versions/v2022_11_28/models/group_1067.py | 23 +- .../versions/v2022_11_28/models/group_1068.py | 42 +- .../versions/v2022_11_28/models/group_1069.py | 28 +- .../versions/v2022_11_28/models/group_1070.py | 19 +- .../versions/v2022_11_28/models/group_1071.py | 38 +- .../versions/v2022_11_28/models/group_1072.py | 52 +- .../versions/v2022_11_28/models/group_1073.py | 53 +- .../versions/v2022_11_28/models/group_1074.py | 31 +- .../versions/v2022_11_28/models/group_1075.py | 34 +- .../versions/v2022_11_28/models/group_1076.py | 32 +- .../versions/v2022_11_28/models/group_1077.py | 31 +- .../versions/v2022_11_28/models/group_1078.py | 22 +- .../versions/v2022_11_28/models/group_1079.py | 21 +- .../versions/v2022_11_28/models/group_1080.py | 21 +- .../versions/v2022_11_28/models/group_1081.py | 55 +- .../versions/v2022_11_28/models/group_1082.py | 12 +- .../versions/v2022_11_28/models/group_1083.py | 16 +- .../versions/v2022_11_28/models/group_1084.py | 21 +- .../versions/v2022_11_28/models/group_1085.py | 37 +- .../versions/v2022_11_28/models/group_1086.py | 13 +- .../versions/v2022_11_28/models/group_1087.py | 42 +- .../versions/v2022_11_28/models/group_1088.py | 30 +- .../versions/v2022_11_28/models/group_1089.py | 48 +- .../versions/v2022_11_28/models/group_1090.py | 45 +- .../versions/v2022_11_28/models/group_1091.py | 14 +- .../versions/v2022_11_28/models/group_1092.py | 81 +- .../versions/v2022_11_28/models/group_1093.py | 81 +- .../versions/v2022_11_28/models/group_1094.py | 25 +- .../versions/v2022_11_28/models/group_1095.py | 20 +- .../versions/v2022_11_28/models/group_1096.py | 26 +- .../versions/v2022_11_28/models/group_1097.py | 18 +- .../versions/v2022_11_28/models/group_1098.py | 52 +- .../versions/v2022_11_28/models/group_1099.py | 12 +- .../versions/v2022_11_28/models/group_1100.py | 22 +- .../versions/v2022_11_28/models/group_1101.py | 28 +- .../versions/v2022_11_28/models/group_1102.py | 31 +- .../versions/v2022_11_28/models/group_1103.py | 16 +- .../versions/v2022_11_28/models/group_1104.py | 39 +- .../versions/v2022_11_28/models/group_1105.py | 17 +- .../versions/v2022_11_28/models/group_1106.py | 26 +- .../versions/v2022_11_28/models/group_1107.py | 44 +- .../versions/v2022_11_28/models/group_1108.py | 14 +- .../versions/v2022_11_28/models/group_1109.py | 79 +- .../versions/v2022_11_28/models/group_1110.py | 79 +- .../versions/v2022_11_28/models/group_1111.py | 25 +- .../versions/v2022_11_28/models/group_1112.py | 18 +- .../versions/v2022_11_28/models/group_1113.py | 38 +- .../versions/v2022_11_28/models/group_1114.py | 22 +- .../versions/v2022_11_28/models/group_1115.py | 55 +- .../versions/v2022_11_28/models/group_1116.py | 52 +- .../versions/v2022_11_28/models/group_1117.py | 44 +- .../versions/v2022_11_28/models/group_1118.py | 28 +- .../versions/v2022_11_28/models/group_1119.py | 49 +- .../versions/v2022_11_28/models/group_1120.py | 17 +- .../versions/v2022_11_28/models/group_1121.py | 20 +- .../versions/v2022_11_28/models/group_1122.py | 13 +- .../versions/v2022_11_28/models/group_1123.py | 17 +- .../versions/v2022_11_28/models/group_1124.py | 22 +- .../versions/v2022_11_28/models/group_1125.py | 23 +- .../versions/v2022_11_28/models/group_1126.py | 28 +- .../versions/v2022_11_28/models/group_1127.py | 16 +- .../versions/v2022_11_28/models/group_1128.py | 16 +- .../versions/v2022_11_28/models/group_1129.py | 19 +- .../versions/v2022_11_28/models/group_1130.py | 45 +- .../versions/v2022_11_28/models/group_1131.py | 21 +- .../versions/v2022_11_28/models/group_1132.py | 53 +- .../versions/v2022_11_28/models/group_1133.py | 56 +- .../versions/v2022_11_28/models/group_1134.py | 42 +- .../versions/v2022_11_28/models/group_1135.py | 94 +- .../versions/v2022_11_28/models/group_1136.py | 18 +- .../versions/v2022_11_28/models/group_1137.py | 17 +- .../versions/v2022_11_28/models/group_1138.py | 21 +- .../versions/v2022_11_28/models/group_1139.py | 170 +- .../versions/v2022_11_28/models/group_1140.py | 32 + .../versions/v2022_11_28/models/group_1141.py | 29 + .../versions/v2022_11_28/models/group_1142.py | 32 + .../versions/v2022_11_28/models/group_1143.py | 37 + .../versions/v2022_11_28/models/group_1144.py | 30 + .../versions/v2022_11_28/models/group_1145.py | 28 + .../versions/v2022_11_28/models/group_1146.py | 31 + .../versions/v2022_11_28/models/group_1147.py | 21 + .../versions/v2022_11_28/models/group_1148.py | 33 + .../versions/v2022_11_28/models/group_1149.py | 29 + .../versions/v2022_11_28/models/group_1150.py | 59 + .../versions/v2022_11_28/models/group_1151.py | 32 + .../versions/v2022_11_28/models/group_1152.py | 110 + .../versions/v2022_11_28/models/group_1153.py | 32 + .../versions/v2022_11_28/models/group_1154.py | 32 + .../versions/v2022_11_28/models/group_1155.py | 33 + .../versions/v2022_11_28/models/group_1156.py | 184 + .../versions/v2022_11_28/rest/__init__.py | 7 + .../versions/v2022_11_28/rest/actions.py | 737 +- .../versions/v2022_11_28/rest/dependabot.py | 12 + .../v2022_11_28/rest/hosted_compute.py | 495 + .../versions/v2022_11_28/types/__init__.py | 9010 ++++++++-------- .../versions/v2022_11_28/types/group_0002.py | 38 +- .../versions/v2022_11_28/types/group_0003.py | 132 +- .../versions/v2022_11_28/types/group_0004.py | 123 +- .../versions/v2022_11_28/types/group_0005.py | 29 +- .../versions/v2022_11_28/types/group_0006.py | 15 +- .../versions/v2022_11_28/types/group_0007.py | 19 +- .../versions/v2022_11_28/types/group_0008.py | 35 +- .../versions/v2022_11_28/types/group_0009.py | 21 +- .../versions/v2022_11_28/types/group_0010.py | 46 +- .../versions/v2022_11_28/types/group_0011.py | 18 +- .../versions/v2022_11_28/types/group_0012.py | 42 +- .../versions/v2022_11_28/types/group_0013.py | 76 +- .../versions/v2022_11_28/types/group_0014.py | 36 +- .../versions/v2022_11_28/types/group_0015.py | 75 +- .../versions/v2022_11_28/types/group_0016.py | 69 +- .../versions/v2022_11_28/types/group_0017.py | 89 +- .../versions/v2022_11_28/types/group_0018.py | 45 +- .../versions/v2022_11_28/types/group_0019.py | 128 +- .../versions/v2022_11_28/types/group_0020.py | 133 +- .../versions/v2022_11_28/types/group_0021.py | 26 +- .../versions/v2022_11_28/types/group_0022.py | 49 +- .../versions/v2022_11_28/types/group_0023.py | 49 +- .../versions/v2022_11_28/types/group_0024.py | 64 +- .../versions/v2022_11_28/types/group_0025.py | 75 +- .../versions/v2022_11_28/types/group_0026.py | 86 +- .../versions/v2022_11_28/types/group_0027.py | 114 +- .../versions/v2022_11_28/types/group_0028.py | 100 +- .../versions/v2022_11_28/types/group_0029.py | 15 +- .../versions/v2022_11_28/types/group_0030.py | 63 +- .../versions/v2022_11_28/types/group_0031.py | 77 +- .../versions/v2022_11_28/types/group_0032.py | 32 +- .../versions/v2022_11_28/types/group_0033.py | 31 +- .../versions/v2022_11_28/types/group_0034.py | 75 +- .../versions/v2022_11_28/types/group_0035.py | 99 +- .../versions/v2022_11_28/types/group_0036.py | 43 +- .../versions/v2022_11_28/types/group_0037.py | 53 +- .../versions/v2022_11_28/types/group_0038.py | 69 +- .../versions/v2022_11_28/types/group_0039.py | 41 +- .../versions/v2022_11_28/types/group_0040.py | 113 +- .../versions/v2022_11_28/types/group_0041.py | 85 +- .../versions/v2022_11_28/types/group_0042.py | 94 +- .../versions/v2022_11_28/types/group_0043.py | 101 +- .../versions/v2022_11_28/types/group_0044.py | 77 +- .../versions/v2022_11_28/types/group_0045.py | 43 +- .../versions/v2022_11_28/types/group_0046.py | 129 +- .../versions/v2022_11_28/types/group_0047.py | 126 +- .../versions/v2022_11_28/types/group_0048.py | 47 +- .../versions/v2022_11_28/types/group_0049.py | 32 +- .../versions/v2022_11_28/types/group_0050.py | 26 +- .../versions/v2022_11_28/types/group_0051.py | 32 +- .../versions/v2022_11_28/types/group_0052.py | 40 +- .../versions/v2022_11_28/types/group_0053.py | 43 +- .../versions/v2022_11_28/types/group_0054.py | 81 +- .../versions/v2022_11_28/types/group_0055.py | 111 +- .../versions/v2022_11_28/types/group_0056.py | 177 +- .../versions/v2022_11_28/types/group_0057.py | 144 +- .../versions/v2022_11_28/types/group_0058.py | 39 +- .../versions/v2022_11_28/types/group_0059.py | 28 +- .../versions/v2022_11_28/types/group_0060.py | 42 +- .../versions/v2022_11_28/types/group_0061.py | 92 +- .../versions/v2022_11_28/types/group_0062.py | 86 +- .../versions/v2022_11_28/types/group_0063.py | 12 +- .../versions/v2022_11_28/types/group_0064.py | 20 +- .../versions/v2022_11_28/types/group_0065.py | 55 +- .../versions/v2022_11_28/types/group_0066.py | 16 +- .../versions/v2022_11_28/types/group_0067.py | 25 +- .../versions/v2022_11_28/types/group_0068.py | 15 +- .../versions/v2022_11_28/types/group_0069.py | 23 +- .../versions/v2022_11_28/types/group_0070.py | 18 +- .../versions/v2022_11_28/types/group_0071.py | 35 +- .../versions/v2022_11_28/types/group_0072.py | 18 +- .../versions/v2022_11_28/types/group_0073.py | 25 +- .../versions/v2022_11_28/types/group_0074.py | 22 +- .../versions/v2022_11_28/types/group_0075.py | 47 +- .../versions/v2022_11_28/types/group_0076.py | 60 +- .../versions/v2022_11_28/types/group_0077.py | 24 +- .../versions/v2022_11_28/types/group_0078.py | 96 +- .../versions/v2022_11_28/types/group_0079.py | 19 +- .../versions/v2022_11_28/types/group_0080.py | 59 +- .../versions/v2022_11_28/types/group_0081.py | 47 +- .../versions/v2022_11_28/types/group_0082.py | 50 +- .../versions/v2022_11_28/types/group_0083.py | 111 +- .../versions/v2022_11_28/types/group_0084.py | 191 +- .../versions/v2022_11_28/types/group_0085.py | 52 +- .../versions/v2022_11_28/types/group_0086.py | 30 +- .../versions/v2022_11_28/types/group_0087.py | 44 +- .../versions/v2022_11_28/types/group_0088.py | 69 +- .../versions/v2022_11_28/types/group_0089.py | 199 +- .../versions/v2022_11_28/types/group_0090.py | 44 +- .../versions/v2022_11_28/types/group_0091.py | 21 +- .../versions/v2022_11_28/types/group_0092.py | 26 +- .../versions/v2022_11_28/types/group_0093.py | 27 +- .../versions/v2022_11_28/types/group_0094.py | 43 +- .../versions/v2022_11_28/types/group_0095.py | 23 +- .../versions/v2022_11_28/types/group_0096.py | 22 +- .../versions/v2022_11_28/types/group_0097.py | 30 +- .../versions/v2022_11_28/types/group_0098.py | 43 +- .../versions/v2022_11_28/types/group_0099.py | 46 +- .../versions/v2022_11_28/types/group_0100.py | 50 +- .../versions/v2022_11_28/types/group_0101.py | 44 +- .../versions/v2022_11_28/types/group_0102.py | 54 +- .../versions/v2022_11_28/types/group_0103.py | 93 +- .../versions/v2022_11_28/types/group_0104.py | 76 +- .../versions/v2022_11_28/types/group_0105.py | 50 +- .../versions/v2022_11_28/types/group_0106.py | 50 +- .../versions/v2022_11_28/types/group_0107.py | 58 +- .../versions/v2022_11_28/types/group_0108.py | 76 +- .../versions/v2022_11_28/types/group_0109.py | 70 +- .../versions/v2022_11_28/types/group_0110.py | 25 +- .../versions/v2022_11_28/types/group_0111.py | 30 +- .../versions/v2022_11_28/types/group_0112.py | 156 +- .../versions/v2022_11_28/types/group_0113.py | 18 +- .../versions/v2022_11_28/types/group_0114.py | 16 +- .../versions/v2022_11_28/types/group_0115.py | 19 +- .../versions/v2022_11_28/types/group_0116.py | 20 +- .../versions/v2022_11_28/types/group_0117.py | 150 +- .../versions/v2022_11_28/types/group_0118.py | 21 +- .../versions/v2022_11_28/types/group_0119.py | 13 +- .../versions/v2022_11_28/types/group_0120.py | 20 +- .../versions/v2022_11_28/types/group_0121.py | 31 +- .../versions/v2022_11_28/types/group_0122.py | 21 +- .../versions/v2022_11_28/types/group_0123.py | 14 +- .../versions/v2022_11_28/types/group_0124.py | 19 +- .../versions/v2022_11_28/types/group_0125.py | 87 +- .../versions/v2022_11_28/types/group_0126.py | 25 +- .../versions/v2022_11_28/types/group_0127.py | 21 +- .../versions/v2022_11_28/types/group_0128.py | 36 +- .../versions/v2022_11_28/types/group_0129.py | 20 +- .../versions/v2022_11_28/types/group_0130.py | 89 +- .../versions/v2022_11_28/types/group_0131.py | 15 +- .../versions/v2022_11_28/types/group_0132.py | 8 +- .../versions/v2022_11_28/types/group_0133.py | 37 +- .../versions/v2022_11_28/types/group_0134.py | 15 +- .../versions/v2022_11_28/types/group_0135.py | 22 +- .../versions/v2022_11_28/types/group_0136.py | 16 +- .../versions/v2022_11_28/types/group_0137.py | 25 +- .../versions/v2022_11_28/types/group_0138.py | 19 +- .../versions/v2022_11_28/types/group_0139.py | 18 +- .../versions/v2022_11_28/types/group_0140.py | 20 +- .../versions/v2022_11_28/types/group_0141.py | 18 +- .../versions/v2022_11_28/types/group_0142.py | 24 +- .../versions/v2022_11_28/types/group_0143.py | 17 +- .../versions/v2022_11_28/types/group_0144.py | 17 +- .../versions/v2022_11_28/types/group_0145.py | 17 +- .../versions/v2022_11_28/types/group_0146.py | 17 +- .../versions/v2022_11_28/types/group_0147.py | 17 +- .../versions/v2022_11_28/types/group_0148.py | 16 +- .../versions/v2022_11_28/types/group_0149.py | 15 +- .../versions/v2022_11_28/types/group_0150.py | 28 +- .../versions/v2022_11_28/types/group_0151.py | 16 +- .../versions/v2022_11_28/types/group_0152.py | 29 +- .../versions/v2022_11_28/types/group_0153.py | 23 +- .../versions/v2022_11_28/types/group_0154.py | 119 +- .../versions/v2022_11_28/types/group_0155.py | 34 +- .../versions/v2022_11_28/types/group_0156.py | 51 +- .../versions/v2022_11_28/types/group_0157.py | 34 +- .../versions/v2022_11_28/types/group_0158.py | 138 +- .../versions/v2022_11_28/types/group_0159.py | 133 +- .../versions/v2022_11_28/types/group_0160.py | 24 +- .../versions/v2022_11_28/types/group_0161.py | 50 +- .../versions/v2022_11_28/types/group_0162.py | 119 +- .../versions/v2022_11_28/types/group_0163.py | 153 +- .../versions/v2022_11_28/types/group_0164.py | 50 +- .../versions/v2022_11_28/types/group_0165.py | 24 +- .../versions/v2022_11_28/types/group_0166.py | 16 +- .../versions/v2022_11_28/types/group_0167.py | 41 +- .../versions/v2022_11_28/types/group_0168.py | 181 +- .../versions/v2022_11_28/types/group_0169.py | 39 +- .../versions/v2022_11_28/types/group_0170.py | 31 +- .../versions/v2022_11_28/types/group_0171.py | 21 +- .../versions/v2022_11_28/types/group_0172.py | 17 +- .../versions/v2022_11_28/types/group_0173.py | 47 +- .../versions/v2022_11_28/types/group_0174.py | 127 +- .../versions/v2022_11_28/types/group_0175.py | 47 +- .../versions/v2022_11_28/types/group_0176.py | 35 +- .../versions/v2022_11_28/types/group_0177.py | 67 +- .../versions/v2022_11_28/types/group_0178.py | 17 +- .../versions/v2022_11_28/types/group_0179.py | 17 +- .../versions/v2022_11_28/types/group_0180.py | 26 +- .../versions/v2022_11_28/types/group_0181.py | 39 +- .../versions/v2022_11_28/types/group_0182.py | 31 +- .../versions/v2022_11_28/types/group_0183.py | 92 +- .../versions/v2022_11_28/types/group_0184.py | 44 +- .../versions/v2022_11_28/types/group_0185.py | 65 +- .../versions/v2022_11_28/types/group_0186.py | 37 +- .../versions/v2022_11_28/types/group_0187.py | 14 +- .../versions/v2022_11_28/types/group_0188.py | 12 +- .../versions/v2022_11_28/types/group_0189.py | 65 +- .../versions/v2022_11_28/types/group_0190.py | 65 +- .../versions/v2022_11_28/types/group_0191.py | 129 +- .../versions/v2022_11_28/types/group_0192.py | 54 +- .../versions/v2022_11_28/types/group_0193.py | 30 +- .../versions/v2022_11_28/types/group_0194.py | 19 +- .../versions/v2022_11_28/types/group_0195.py | 43 +- .../versions/v2022_11_28/types/group_0196.py | 55 +- .../versions/v2022_11_28/types/group_0197.py | 90 +- .../versions/v2022_11_28/types/group_0198.py | 150 +- .../versions/v2022_11_28/types/group_0199.py | 148 +- .../versions/v2022_11_28/types/group_0200.py | 31 +- .../versions/v2022_11_28/types/group_0201.py | 15 +- .../versions/v2022_11_28/types/group_0202.py | 31 +- .../versions/v2022_11_28/types/group_0203.py | 48 +- .../versions/v2022_11_28/types/group_0204.py | 149 +- .../versions/v2022_11_28/types/group_0205.py | 135 +- .../versions/v2022_11_28/types/group_0206.py | 30 +- .../versions/v2022_11_28/types/group_0207.py | 129 +- .../versions/v2022_11_28/types/group_0208.py | 30 +- .../versions/v2022_11_28/types/group_0209.py | 47 +- .../versions/v2022_11_28/types/group_0210.py | 67 +- .../versions/v2022_11_28/types/group_0211.py | 72 +- .../versions/v2022_11_28/types/group_0212.py | 42 +- .../versions/v2022_11_28/types/group_0213.py | 164 +- .../versions/v2022_11_28/types/group_0214.py | 44 +- .../versions/v2022_11_28/types/group_0215.py | 56 +- .../versions/v2022_11_28/types/group_0216.py | 68 +- .../versions/v2022_11_28/types/group_0217.py | 68 +- .../versions/v2022_11_28/types/group_0218.py | 23 +- .../versions/v2022_11_28/types/group_0219.py | 65 +- .../versions/v2022_11_28/types/group_0220.py | 48 +- .../versions/v2022_11_28/types/group_0221.py | 48 +- .../versions/v2022_11_28/types/group_0222.py | 61 +- .../versions/v2022_11_28/types/group_0223.py | 20 +- .../versions/v2022_11_28/types/group_0224.py | 15 +- .../versions/v2022_11_28/types/group_0225.py | 47 +- .../versions/v2022_11_28/types/group_0226.py | 32 +- .../versions/v2022_11_28/types/group_0227.py | 32 +- .../versions/v2022_11_28/types/group_0228.py | 34 +- .../versions/v2022_11_28/types/group_0229.py | 45 +- .../versions/v2022_11_28/types/group_0230.py | 45 +- .../versions/v2022_11_28/types/group_0231.py | 44 +- .../versions/v2022_11_28/types/group_0232.py | 18 +- .../versions/v2022_11_28/types/group_0233.py | 36 +- .../versions/v2022_11_28/types/group_0234.py | 38 +- .../versions/v2022_11_28/types/group_0235.py | 54 +- .../versions/v2022_11_28/types/group_0236.py | 35 +- .../versions/v2022_11_28/types/group_0237.py | 27 +- .../versions/v2022_11_28/types/group_0238.py | 60 +- .../versions/v2022_11_28/types/group_0239.py | 54 +- .../versions/v2022_11_28/types/group_0240.py | 43 +- .../versions/v2022_11_28/types/group_0241.py | 28 +- .../versions/v2022_11_28/types/group_0242.py | 16 +- .../versions/v2022_11_28/types/group_0243.py | 80 +- .../versions/v2022_11_28/types/group_0244.py | 68 +- .../versions/v2022_11_28/types/group_0245.py | 62 +- .../versions/v2022_11_28/types/group_0246.py | 41 +- .../versions/v2022_11_28/types/group_0247.py | 23 +- .../versions/v2022_11_28/types/group_0248.py | 49 +- .../versions/v2022_11_28/types/group_0249.py | 84 +- .../versions/v2022_11_28/types/group_0250.py | 64 +- .../versions/v2022_11_28/types/group_0251.py | 39 +- .../versions/v2022_11_28/types/group_0252.py | 50 +- .../versions/v2022_11_28/types/group_0253.py | 47 +- .../versions/v2022_11_28/types/group_0254.py | 57 +- .../versions/v2022_11_28/types/group_0255.py | 121 +- .../versions/v2022_11_28/types/group_0256.py | 73 +- .../versions/v2022_11_28/types/group_0257.py | 61 +- .../versions/v2022_11_28/types/group_0258.py | 61 +- .../versions/v2022_11_28/types/group_0259.py | 37 +- .../versions/v2022_11_28/types/group_0260.py | 41 +- .../versions/v2022_11_28/types/group_0261.py | 130 +- .../versions/v2022_11_28/types/group_0262.py | 54 +- .../versions/v2022_11_28/types/group_0263.py | 46 +- .../versions/v2022_11_28/types/group_0264.py | 72 +- .../versions/v2022_11_28/types/group_0265.py | 58 +- .../versions/v2022_11_28/types/group_0266.py | 64 +- .../versions/v2022_11_28/types/group_0267.py | 79 +- .../versions/v2022_11_28/types/group_0268.py | 69 +- .../versions/v2022_11_28/types/group_0269.py | 21 +- .../versions/v2022_11_28/types/group_0270.py | 36 +- .../versions/v2022_11_28/types/group_0271.py | 56 +- .../versions/v2022_11_28/types/group_0272.py | 44 +- .../versions/v2022_11_28/types/group_0273.py | 15 +- .../versions/v2022_11_28/types/group_0274.py | 63 +- .../versions/v2022_11_28/types/group_0275.py | 20 +- .../versions/v2022_11_28/types/group_0276.py | 21 +- .../versions/v2022_11_28/types/group_0277.py | 76 +- .../versions/v2022_11_28/types/group_0278.py | 25 +- .../versions/v2022_11_28/types/group_0279.py | 42 +- .../versions/v2022_11_28/types/group_0280.py | 38 +- .../versions/v2022_11_28/types/group_0281.py | 15 +- .../versions/v2022_11_28/types/group_0282.py | 31 +- .../versions/v2022_11_28/types/group_0283.py | 114 +- .../versions/v2022_11_28/types/group_0284.py | 28 +- .../versions/v2022_11_28/types/group_0285.py | 44 +- .../versions/v2022_11_28/types/group_0286.py | 113 +- .../versions/v2022_11_28/types/group_0287.py | 37 +- .../versions/v2022_11_28/types/group_0288.py | 45 +- .../versions/v2022_11_28/types/group_0289.py | 75 +- .../versions/v2022_11_28/types/group_0290.py | 26 +- .../versions/v2022_11_28/types/group_0291.py | 35 +- .../versions/v2022_11_28/types/group_0292.py | 106 +- .../versions/v2022_11_28/types/group_0293.py | 26 +- .../versions/v2022_11_28/types/group_0294.py | 31 +- .../versions/v2022_11_28/types/group_0295.py | 26 +- .../versions/v2022_11_28/types/group_0296.py | 33 +- .../versions/v2022_11_28/types/group_0297.py | 25 +- .../versions/v2022_11_28/types/group_0298.py | 31 +- .../versions/v2022_11_28/types/group_0299.py | 32 +- .../versions/v2022_11_28/types/group_0300.py | 33 +- .../versions/v2022_11_28/types/group_0301.py | 35 +- .../versions/v2022_11_28/types/group_0302.py | 59 +- .../versions/v2022_11_28/types/group_0303.py | 32 +- .../versions/v2022_11_28/types/group_0304.py | 39 +- .../versions/v2022_11_28/types/group_0305.py | 85 +- .../versions/v2022_11_28/types/group_0306.py | 69 +- .../versions/v2022_11_28/types/group_0307.py | 106 +- .../versions/v2022_11_28/types/group_0308.py | 49 +- .../versions/v2022_11_28/types/group_0309.py | 32 +- .../versions/v2022_11_28/types/group_0310.py | 25 +- .../versions/v2022_11_28/types/group_0311.py | 82 +- .../versions/v2022_11_28/types/group_0312.py | 66 +- .../versions/v2022_11_28/types/group_0313.py | 111 +- .../versions/v2022_11_28/types/group_0314.py | 28 +- .../versions/v2022_11_28/types/group_0315.py | 69 +- .../versions/v2022_11_28/types/group_0316.py | 39 +- .../versions/v2022_11_28/types/group_0317.py | 21 +- .../versions/v2022_11_28/types/group_0318.py | 20 +- .../versions/v2022_11_28/types/group_0319.py | 64 +- .../versions/v2022_11_28/types/group_0320.py | 85 +- .../versions/v2022_11_28/types/group_0321.py | 125 +- .../versions/v2022_11_28/types/group_0322.py | 34 +- .../versions/v2022_11_28/types/group_0323.py | 31 +- .../versions/v2022_11_28/types/group_0324.py | 24 +- .../versions/v2022_11_28/types/group_0325.py | 40 +- .../versions/v2022_11_28/types/group_0326.py | 88 +- .../versions/v2022_11_28/types/group_0327.py | 106 +- .../versions/v2022_11_28/types/group_0328.py | 58 +- .../versions/v2022_11_28/types/group_0329.py | 31 +- .../versions/v2022_11_28/types/group_0330.py | 34 +- .../versions/v2022_11_28/types/group_0331.py | 46 +- .../versions/v2022_11_28/types/group_0332.py | 15 +- .../versions/v2022_11_28/types/group_0333.py | 63 +- .../versions/v2022_11_28/types/group_0334.py | 57 +- .../versions/v2022_11_28/types/group_0335.py | 19 +- .../versions/v2022_11_28/types/group_0336.py | 33 +- .../versions/v2022_11_28/types/group_0337.py | 51 +- .../versions/v2022_11_28/types/group_0338.py | 19 +- .../versions/v2022_11_28/types/group_0339.py | 12 +- .../versions/v2022_11_28/types/group_0340.py | 8 +- .../versions/v2022_11_28/types/group_0341.py | 12 +- .../versions/v2022_11_28/types/group_0342.py | 11 +- .../versions/v2022_11_28/types/group_0343.py | 8 +- .../versions/v2022_11_28/types/group_0344.py | 12 +- .../versions/v2022_11_28/types/group_0345.py | 12 +- .../versions/v2022_11_28/types/group_0346.py | 11 +- .../versions/v2022_11_28/types/group_0347.py | 12 +- .../versions/v2022_11_28/types/group_0348.py | 12 +- .../versions/v2022_11_28/types/group_0349.py | 11 +- .../versions/v2022_11_28/types/group_0350.py | 12 +- .../versions/v2022_11_28/types/group_0351.py | 52 +- .../versions/v2022_11_28/types/group_0352.py | 19 +- .../versions/v2022_11_28/types/group_0353.py | 47 +- .../versions/v2022_11_28/types/group_0354.py | 16 +- .../versions/v2022_11_28/types/group_0355.py | 80 +- .../versions/v2022_11_28/types/group_0356.py | 61 +- .../versions/v2022_11_28/types/group_0357.py | 106 +- .../versions/v2022_11_28/types/group_0358.py | 20 +- .../versions/v2022_11_28/types/group_0359.py | 45 +- .../versions/v2022_11_28/types/group_0360.py | 29 +- .../versions/v2022_11_28/types/group_0361.py | 78 +- .../versions/v2022_11_28/types/group_0362.py | 64 +- .../versions/v2022_11_28/types/group_0363.py | 86 +- .../versions/v2022_11_28/types/group_0364.py | 21 +- .../versions/v2022_11_28/types/group_0365.py | 12 +- .../versions/v2022_11_28/types/group_0366.py | 33 +- .../versions/v2022_11_28/types/group_0367.py | 16 +- .../versions/v2022_11_28/types/group_0368.py | 20 +- .../versions/v2022_11_28/types/group_0369.py | 26 +- .../versions/v2022_11_28/types/group_0370.py | 20 +- .../versions/v2022_11_28/types/group_0371.py | 26 +- .../versions/v2022_11_28/types/group_0372.py | 42 +- .../versions/v2022_11_28/types/group_0373.py | 52 +- .../versions/v2022_11_28/types/group_0374.py | 44 +- .../versions/v2022_11_28/types/group_0375.py | 111 +- .../versions/v2022_11_28/types/group_0376.py | 36 +- .../versions/v2022_11_28/types/group_0377.py | 130 +- .../versions/v2022_11_28/types/group_0378.py | 80 +- .../versions/v2022_11_28/types/group_0379.py | 71 +- .../versions/v2022_11_28/types/group_0380.py | 83 +- .../versions/v2022_11_28/types/group_0381.py | 110 +- .../versions/v2022_11_28/types/group_0382.py | 39 +- .../versions/v2022_11_28/types/group_0383.py | 189 +- .../versions/v2022_11_28/types/group_0384.py | 82 +- .../versions/v2022_11_28/types/group_0385.py | 97 +- .../versions/v2022_11_28/types/group_0386.py | 67 +- .../versions/v2022_11_28/types/group_0387.py | 39 +- .../versions/v2022_11_28/types/group_0388.py | 22 +- .../versions/v2022_11_28/types/group_0389.py | 89 +- .../versions/v2022_11_28/types/group_0390.py | 18 +- .../versions/v2022_11_28/types/group_0391.py | 66 +- .../versions/v2022_11_28/types/group_0392.py | 16 +- .../versions/v2022_11_28/types/group_0393.py | 46 +- .../versions/v2022_11_28/types/group_0394.py | 18 +- .../versions/v2022_11_28/types/group_0395.py | 31 +- .../versions/v2022_11_28/types/group_0396.py | 277 +- .../versions/v2022_11_28/types/group_0397.py | 62 +- .../versions/v2022_11_28/types/group_0398.py | 53 +- .../versions/v2022_11_28/types/group_0399.py | 69 +- .../versions/v2022_11_28/types/group_0400.py | 26 +- .../versions/v2022_11_28/types/group_0401.py | 30 +- .../versions/v2022_11_28/types/group_0402.py | 304 +- .../versions/v2022_11_28/types/group_0403.py | 64 +- .../versions/v2022_11_28/types/group_0404.py | 67 +- .../versions/v2022_11_28/types/group_0405.py | 111 +- .../versions/v2022_11_28/types/group_0406.py | 155 +- .../versions/v2022_11_28/types/group_0407.py | 80 +- .../versions/v2022_11_28/types/group_0408.py | 71 +- .../versions/v2022_11_28/types/group_0409.py | 17 +- .../versions/v2022_11_28/types/group_0410.py | 44 +- .../versions/v2022_11_28/types/group_0411.py | 33 +- .../versions/v2022_11_28/types/group_0412.py | 149 +- .../versions/v2022_11_28/types/group_0413.py | 296 +- .../versions/v2022_11_28/types/group_0414.py | 59 +- .../versions/v2022_11_28/types/group_0415.py | 340 +- .../versions/v2022_11_28/types/group_0416.py | 44 +- .../versions/v2022_11_28/types/group_0417.py | 113 +- .../versions/v2022_11_28/types/group_0418.py | 43 +- .../versions/v2022_11_28/types/group_0419.py | 341 +- .../versions/v2022_11_28/types/group_0420.py | 65 +- .../versions/v2022_11_28/types/group_0421.py | 292 +- .../versions/v2022_11_28/types/group_0422.py | 23 +- .../versions/v2022_11_28/types/group_0423.py | 177 +- .../versions/v2022_11_28/types/group_0424.py | 75 +- .../versions/v2022_11_28/types/group_0425.py | 73 +- .../versions/v2022_11_28/types/group_0426.py | 29 +- .../versions/v2022_11_28/types/group_0427.py | 68 +- .../versions/v2022_11_28/types/group_0428.py | 57 +- .../versions/v2022_11_28/types/group_0429.py | 169 +- .../versions/v2022_11_28/types/group_0430.py | 64 +- .../versions/v2022_11_28/types/group_0431.py | 114 +- .../versions/v2022_11_28/types/group_0432.py | 28 +- .../versions/v2022_11_28/types/group_0433.py | 871 +- .../versions/v2022_11_28/types/group_0434.py | 125 +- .../versions/v2022_11_28/types/group_0435.py | 89 +- .../versions/v2022_11_28/types/group_0436.py | 134 +- .../versions/v2022_11_28/types/group_0437.py | 194 +- .../versions/v2022_11_28/types/group_0438.py | 68 +- .../versions/v2022_11_28/types/group_0439.py | 894 +- .../versions/v2022_11_28/types/group_0440.py | 163 +- .../versions/v2022_11_28/types/group_0441.py | 120 +- .../versions/v2022_11_28/types/group_0442.py | 143 +- .../versions/v2022_11_28/types/group_0443.py | 137 +- .../versions/v2022_11_28/types/group_0444.py | 68 +- .../versions/v2022_11_28/types/group_0445.py | 65 +- .../versions/v2022_11_28/types/group_0446.py | 102 +- .../versions/v2022_11_28/types/group_0447.py | 130 +- .../versions/v2022_11_28/types/group_0448.py | 177 +- .../versions/v2022_11_28/types/group_0449.py | 65 +- .../versions/v2022_11_28/types/group_0450.py | 23 +- .../versions/v2022_11_28/types/group_0451.py | 20 +- .../versions/v2022_11_28/types/group_0452.py | 25 +- .../versions/v2022_11_28/types/group_0453.py | 35 +- .../versions/v2022_11_28/types/group_0454.py | 169 +- .../versions/v2022_11_28/types/group_0455.py | 18 +- .../versions/v2022_11_28/types/group_0456.py | 8 +- .../versions/v2022_11_28/types/group_0457.py | 264 +- .../versions/v2022_11_28/types/group_0458.py | 260 +- .../versions/v2022_11_28/types/group_0459.py | 259 +- .../versions/v2022_11_28/types/group_0460.py | 150 +- .../versions/v2022_11_28/types/group_0461.py | 153 +- .../versions/v2022_11_28/types/group_0462.py | 117 +- .../versions/v2022_11_28/types/group_0463.py | 269 +- .../versions/v2022_11_28/types/group_0464.py | 290 +- .../versions/v2022_11_28/types/group_0465.py | 287 +- .../versions/v2022_11_28/types/group_0466.py | 156 +- .../versions/v2022_11_28/types/group_0467.py | 151 +- .../versions/v2022_11_28/types/group_0468.py | 118 +- .../versions/v2022_11_28/types/group_0469.py | 147 +- .../versions/v2022_11_28/types/group_0470.py | 125 +- .../versions/v2022_11_28/types/group_0471.py | 122 +- .../versions/v2022_11_28/types/group_0472.py | 103 +- .../versions/v2022_11_28/types/group_0473.py | 28 +- .../versions/v2022_11_28/types/group_0474.py | 26 +- .../versions/v2022_11_28/types/group_0475.py | 34 +- .../versions/v2022_11_28/types/group_0476.py | 26 +- .../versions/v2022_11_28/types/group_0477.py | 29 +- .../versions/v2022_11_28/types/group_0478.py | 24 +- .../versions/v2022_11_28/types/group_0479.py | 20 +- .../versions/v2022_11_28/types/group_0480.py | 24 +- .../versions/v2022_11_28/types/group_0481.py | 24 +- .../versions/v2022_11_28/types/group_0482.py | 551 +- .../versions/v2022_11_28/types/group_0483.py | 39 +- .../versions/v2022_11_28/types/group_0484.py | 420 +- .../versions/v2022_11_28/types/group_0485.py | 418 +- .../versions/v2022_11_28/types/group_0486.py | 452 +- .../versions/v2022_11_28/types/group_0487.py | 764 +- .../versions/v2022_11_28/types/group_0488.py | 551 +- .../versions/v2022_11_28/types/group_0489.py | 67 +- .../versions/v2022_11_28/types/group_0490.py | 418 +- .../versions/v2022_11_28/types/group_0491.py | 418 +- .../versions/v2022_11_28/types/group_0492.py | 454 +- .../versions/v2022_11_28/types/group_0493.py | 767 +- .../versions/v2022_11_28/types/group_0494.py | 22 +- .../versions/v2022_11_28/types/group_0495.py | 54 +- .../versions/v2022_11_28/types/group_0496.py | 45 +- .../versions/v2022_11_28/types/group_0497.py | 24 +- .../versions/v2022_11_28/types/group_0498.py | 22 +- .../versions/v2022_11_28/types/group_0499.py | 39 +- .../versions/v2022_11_28/types/group_0500.py | 20 +- .../versions/v2022_11_28/types/group_0501.py | 22 +- .../versions/v2022_11_28/types/group_0502.py | 51 +- .../versions/v2022_11_28/types/group_0503.py | 26 +- .../versions/v2022_11_28/types/group_0504.py | 22 +- .../versions/v2022_11_28/types/group_0505.py | 20 +- .../versions/v2022_11_28/types/group_0506.py | 20 +- .../versions/v2022_11_28/types/group_0507.py | 27 +- .../versions/v2022_11_28/types/group_0508.py | 150 +- .../versions/v2022_11_28/types/group_0509.py | 155 +- .../versions/v2022_11_28/types/group_0510.py | 28 +- .../versions/v2022_11_28/types/group_0511.py | 129 +- .../versions/v2022_11_28/types/group_0512.py | 22 +- .../versions/v2022_11_28/types/group_0513.py | 37 +- .../versions/v2022_11_28/types/group_0514.py | 158 +- .../versions/v2022_11_28/types/group_0515.py | 158 +- .../versions/v2022_11_28/types/group_0516.py | 27 +- .../versions/v2022_11_28/types/group_0517.py | 136 +- .../versions/v2022_11_28/types/group_0518.py | 47 +- .../versions/v2022_11_28/types/group_0519.py | 41 +- .../versions/v2022_11_28/types/group_0520.py | 96 +- .../versions/v2022_11_28/types/group_0521.py | 20 +- .../versions/v2022_11_28/types/group_0522.py | 29 +- .../versions/v2022_11_28/types/group_0523.py | 101 +- .../versions/v2022_11_28/types/group_0524.py | 171 +- .../versions/v2022_11_28/types/group_0525.py | 168 +- .../versions/v2022_11_28/types/group_0526.py | 91 +- .../versions/v2022_11_28/types/group_0527.py | 51 +- .../versions/v2022_11_28/types/group_0528.py | 62 +- .../versions/v2022_11_28/types/group_0529.py | 103 +- .../versions/v2022_11_28/types/group_0530.py | 161 +- .../versions/v2022_11_28/types/group_0531.py | 159 +- .../versions/v2022_11_28/types/group_0532.py | 108 +- .../versions/v2022_11_28/types/group_0533.py | 55 +- .../versions/v2022_11_28/types/group_0534.py | 47 +- .../versions/v2022_11_28/types/group_0535.py | 95 +- .../versions/v2022_11_28/types/group_0536.py | 161 +- .../versions/v2022_11_28/types/group_0537.py | 159 +- .../versions/v2022_11_28/types/group_0538.py | 108 +- .../versions/v2022_11_28/types/group_0539.py | 55 +- .../versions/v2022_11_28/types/group_0540.py | 47 +- .../versions/v2022_11_28/types/group_0541.py | 95 +- .../versions/v2022_11_28/types/group_0542.py | 161 +- .../versions/v2022_11_28/types/group_0543.py | 159 +- .../versions/v2022_11_28/types/group_0544.py | 109 +- .../versions/v2022_11_28/types/group_0545.py | 55 +- .../versions/v2022_11_28/types/group_0546.py | 47 +- .../versions/v2022_11_28/types/group_0547.py | 97 +- .../versions/v2022_11_28/types/group_0548.py | 159 +- .../versions/v2022_11_28/types/group_0549.py | 157 +- .../versions/v2022_11_28/types/group_0550.py | 109 +- .../versions/v2022_11_28/types/group_0551.py | 55 +- .../versions/v2022_11_28/types/group_0552.py | 47 +- .../versions/v2022_11_28/types/group_0553.py | 96 +- .../versions/v2022_11_28/types/group_0554.py | 159 +- .../versions/v2022_11_28/types/group_0555.py | 157 +- .../versions/v2022_11_28/types/group_0556.py | 108 +- .../versions/v2022_11_28/types/group_0557.py | 55 +- .../versions/v2022_11_28/types/group_0558.py | 47 +- .../versions/v2022_11_28/types/group_0559.py | 92 +- .../versions/v2022_11_28/types/group_0560.py | 59 +- .../versions/v2022_11_28/types/group_0561.py | 184 +- .../versions/v2022_11_28/types/group_0562.py | 183 +- .../versions/v2022_11_28/types/group_0563.py | 55 +- .../versions/v2022_11_28/types/group_0564.py | 49 +- .../versions/v2022_11_28/types/group_0565.py | 92 +- .../versions/v2022_11_28/types/group_0566.py | 58 +- .../versions/v2022_11_28/types/group_0567.py | 181 +- .../versions/v2022_11_28/types/group_0568.py | 205 +- .../versions/v2022_11_28/types/group_0569.py | 51 +- .../versions/v2022_11_28/types/group_0570.py | 44 +- .../versions/v2022_11_28/types/group_0571.py | 302 +- .../versions/v2022_11_28/types/group_0572.py | 357 +- .../versions/v2022_11_28/types/group_0573.py | 381 +- .../versions/v2022_11_28/types/group_0574.py | 387 +- .../versions/v2022_11_28/types/group_0575.py | 354 +- .../versions/v2022_11_28/types/group_0576.py | 359 +- .../versions/v2022_11_28/types/group_0577.py | 645 +- .../versions/v2022_11_28/types/group_0578.py | 377 +- .../versions/v2022_11_28/types/group_0579.py | 137 +- .../versions/v2022_11_28/types/group_0580.py | 328 +- .../versions/v2022_11_28/types/group_0581.py | 371 +- .../versions/v2022_11_28/types/group_0582.py | 373 +- .../versions/v2022_11_28/types/group_0583.py | 644 +- .../versions/v2022_11_28/types/group_0584.py | 20 +- .../versions/v2022_11_28/types/group_0585.py | 371 +- .../versions/v2022_11_28/types/group_0586.py | 582 +- .../versions/v2022_11_28/types/group_0587.py | 62 +- .../versions/v2022_11_28/types/group_0588.py | 29 +- .../versions/v2022_11_28/types/group_0589.py | 388 +- .../versions/v2022_11_28/types/group_0590.py | 79 +- .../versions/v2022_11_28/types/group_0591.py | 81 +- .../versions/v2022_11_28/types/group_0592.py | 27 +- .../versions/v2022_11_28/types/group_0593.py | 71 +- .../versions/v2022_11_28/types/group_0594.py | 58 +- .../versions/v2022_11_28/types/group_0595.py | 75 +- .../versions/v2022_11_28/types/group_0596.py | 103 +- .../versions/v2022_11_28/types/group_0597.py | 103 +- .../versions/v2022_11_28/types/group_0598.py | 27 +- .../versions/v2022_11_28/types/group_0599.py | 66 +- .../versions/v2022_11_28/types/group_0600.py | 65 +- .../versions/v2022_11_28/types/group_0601.py | 24 +- .../versions/v2022_11_28/types/group_0602.py | 62 +- .../versions/v2022_11_28/types/group_0603.py | 62 +- .../versions/v2022_11_28/types/group_0604.py | 62 +- .../versions/v2022_11_28/types/group_0605.py | 27 +- .../versions/v2022_11_28/types/group_0606.py | 58 +- .../versions/v2022_11_28/types/group_0607.py | 28 +- .../versions/v2022_11_28/types/group_0608.py | 26 +- .../versions/v2022_11_28/types/group_0609.py | 26 +- .../versions/v2022_11_28/types/group_0610.py | 103 +- .../versions/v2022_11_28/types/group_0611.py | 26 +- .../versions/v2022_11_28/types/group_0612.py | 41 +- .../versions/v2022_11_28/types/group_0613.py | 53 +- .../versions/v2022_11_28/types/group_0614.py | 24 +- .../versions/v2022_11_28/types/group_0615.py | 80 +- .../versions/v2022_11_28/types/group_0616.py | 495 +- .../versions/v2022_11_28/types/group_0617.py | 26 +- .../versions/v2022_11_28/types/group_0618.py | 97 +- .../versions/v2022_11_28/types/group_0619.py | 176 +- .../versions/v2022_11_28/types/group_0620.py | 80 +- .../versions/v2022_11_28/types/group_0621.py | 78 +- .../versions/v2022_11_28/types/group_0622.py | 502 +- .../versions/v2022_11_28/types/group_0623.py | 26 +- .../versions/v2022_11_28/types/group_0624.py | 76 +- .../versions/v2022_11_28/types/group_0625.py | 173 +- .../versions/v2022_11_28/types/group_0626.py | 88 +- .../versions/v2022_11_28/types/group_0627.py | 23 +- .../versions/v2022_11_28/types/group_0628.py | 43 +- .../versions/v2022_11_28/types/group_0629.py | 24 +- .../versions/v2022_11_28/types/group_0630.py | 77 +- .../versions/v2022_11_28/types/group_0631.py | 43 +- .../versions/v2022_11_28/types/group_0632.py | 92 +- .../versions/v2022_11_28/types/group_0633.py | 55 +- .../versions/v2022_11_28/types/group_0634.py | 77 +- .../versions/v2022_11_28/types/group_0635.py | 22 +- .../versions/v2022_11_28/types/group_0636.py | 77 +- .../versions/v2022_11_28/types/group_0637.py | 43 +- .../versions/v2022_11_28/types/group_0638.py | 103 +- .../versions/v2022_11_28/types/group_0639.py | 64 +- .../versions/v2022_11_28/types/group_0640.py | 68 +- .../versions/v2022_11_28/types/group_0641.py | 26 +- .../versions/v2022_11_28/types/group_0642.py | 50 +- .../versions/v2022_11_28/types/group_0643.py | 28 +- .../versions/v2022_11_28/types/group_0644.py | 43 +- .../versions/v2022_11_28/types/group_0645.py | 27 +- .../versions/v2022_11_28/types/group_0646.py | 24 +- .../versions/v2022_11_28/types/group_0647.py | 75 +- .../versions/v2022_11_28/types/group_0648.py | 56 +- .../versions/v2022_11_28/types/group_0649.py | 46 +- .../versions/v2022_11_28/types/group_0650.py | 18 +- .../versions/v2022_11_28/types/group_0651.py | 21 +- .../versions/v2022_11_28/types/group_0652.py | 104 +- .../versions/v2022_11_28/types/group_0653.py | 67 +- .../versions/v2022_11_28/types/group_0654.py | 18 +- .../versions/v2022_11_28/types/group_0655.py | 40 +- .../versions/v2022_11_28/types/group_0656.py | 16 +- .../versions/v2022_11_28/types/group_0657.py | 16 +- .../versions/v2022_11_28/types/group_0658.py | 116 +- .../versions/v2022_11_28/types/group_0659.py | 44 +- .../versions/v2022_11_28/types/group_0660.py | 951 +- .../versions/v2022_11_28/types/group_0661.py | 996 +- .../versions/v2022_11_28/types/group_0662.py | 986 +- .../versions/v2022_11_28/types/group_0663.py | 25 +- .../versions/v2022_11_28/types/group_0664.py | 81 +- .../versions/v2022_11_28/types/group_0665.py | 25 +- .../versions/v2022_11_28/types/group_0666.py | 343 +- .../versions/v2022_11_28/types/group_0667.py | 1002 +- .../versions/v2022_11_28/types/group_0668.py | 310 +- .../versions/v2022_11_28/types/group_0669.py | 941 +- .../versions/v2022_11_28/types/group_0670.py | 933 +- .../versions/v2022_11_28/types/group_0671.py | 20 +- .../versions/v2022_11_28/types/group_0672.py | 957 +- .../versions/v2022_11_28/types/group_0673.py | 73 +- .../versions/v2022_11_28/types/group_0674.py | 943 +- .../versions/v2022_11_28/types/group_0675.py | 501 +- .../versions/v2022_11_28/types/group_0676.py | 402 +- .../versions/v2022_11_28/types/group_0677.py | 976 +- .../versions/v2022_11_28/types/group_0678.py | 1022 +- .../versions/v2022_11_28/types/group_0679.py | 916 +- .../versions/v2022_11_28/types/group_0680.py | 1064 +- .../versions/v2022_11_28/types/group_0681.py | 578 +- .../versions/v2022_11_28/types/group_0682.py | 433 +- .../versions/v2022_11_28/types/group_0683.py | 429 +- .../versions/v2022_11_28/types/group_0684.py | 332 +- .../versions/v2022_11_28/types/group_0685.py | 475 +- .../versions/v2022_11_28/types/group_0686.py | 565 +- .../versions/v2022_11_28/types/group_0687.py | 407 +- .../versions/v2022_11_28/types/group_0688.py | 411 +- .../versions/v2022_11_28/types/group_0689.py | 440 +- .../versions/v2022_11_28/types/group_0690.py | 365 +- .../versions/v2022_11_28/types/group_0691.py | 1028 +- .../versions/v2022_11_28/types/group_0692.py | 1112 +- .../versions/v2022_11_28/types/group_0693.py | 972 +- .../versions/v2022_11_28/types/group_0694.py | 1200 ++- .../versions/v2022_11_28/types/group_0695.py | 952 +- .../versions/v2022_11_28/types/group_0696.py | 956 +- .../versions/v2022_11_28/types/group_0697.py | 401 +- .../versions/v2022_11_28/types/group_0698.py | 24 +- .../versions/v2022_11_28/types/group_0699.py | 78 +- .../versions/v2022_11_28/types/group_0700.py | 533 +- .../versions/v2022_11_28/types/group_0701.py | 155 +- .../versions/v2022_11_28/types/group_0702.py | 72 +- .../versions/v2022_11_28/types/group_0703.py | 181 +- .../versions/v2022_11_28/types/group_0704.py | 24 +- .../versions/v2022_11_28/types/group_0705.py | 24 +- .../versions/v2022_11_28/types/group_0706.py | 55 +- .../versions/v2022_11_28/types/group_0707.py | 151 +- .../versions/v2022_11_28/types/group_0708.py | 22 +- .../versions/v2022_11_28/types/group_0709.py | 22 +- .../versions/v2022_11_28/types/group_0710.py | 41 +- .../versions/v2022_11_28/types/group_0711.py | 65 +- .../versions/v2022_11_28/types/group_0712.py | 22 +- .../versions/v2022_11_28/types/group_0713.py | 18 +- .../versions/v2022_11_28/types/group_0714.py | 18 +- .../versions/v2022_11_28/types/group_0715.py | 42 +- .../versions/v2022_11_28/types/group_0716.py | 41 +- .../versions/v2022_11_28/types/group_0717.py | 65 +- .../versions/v2022_11_28/types/group_0718.py | 24 +- .../versions/v2022_11_28/types/group_0719.py | 42 +- .../versions/v2022_11_28/types/group_0720.py | 29 +- .../versions/v2022_11_28/types/group_0721.py | 95 +- .../versions/v2022_11_28/types/group_0722.py | 106 +- .../versions/v2022_11_28/types/group_0723.py | 126 +- .../versions/v2022_11_28/types/group_0724.py | 106 +- .../versions/v2022_11_28/types/group_0725.py | 42 +- .../versions/v2022_11_28/types/group_0726.py | 31 +- .../versions/v2022_11_28/types/group_0727.py | 140 +- .../versions/v2022_11_28/types/group_0728.py | 106 +- .../versions/v2022_11_28/types/group_0729.py | 171 +- .../versions/v2022_11_28/types/group_0730.py | 104 +- .../versions/v2022_11_28/types/group_0731.py | 225 +- .../versions/v2022_11_28/types/group_0732.py | 24 +- .../versions/v2022_11_28/types/group_0733.py | 85 +- .../versions/v2022_11_28/types/group_0734.py | 24 +- .../versions/v2022_11_28/types/group_0735.py | 85 +- .../versions/v2022_11_28/types/group_0736.py | 20 +- .../versions/v2022_11_28/types/group_0737.py | 243 +- .../versions/v2022_11_28/types/group_0738.py | 24 +- .../versions/v2022_11_28/types/group_0739.py | 24 +- .../versions/v2022_11_28/types/group_0740.py | 24 +- .../versions/v2022_11_28/types/group_0741.py | 120 +- .../versions/v2022_11_28/types/group_0742.py | 24 +- .../versions/v2022_11_28/types/group_0743.py | 40 +- .../versions/v2022_11_28/types/group_0744.py | 23 +- .../versions/v2022_11_28/types/group_0745.py | 24 +- .../versions/v2022_11_28/types/group_0746.py | 24 +- .../versions/v2022_11_28/types/group_0747.py | 121 +- .../versions/v2022_11_28/types/group_0748.py | 27 +- .../versions/v2022_11_28/types/group_0749.py | 25 +- .../versions/v2022_11_28/types/group_0750.py | 25 +- .../versions/v2022_11_28/types/group_0751.py | 25 +- .../versions/v2022_11_28/types/group_0752.py | 23 +- .../versions/v2022_11_28/types/group_0753.py | 212 +- .../versions/v2022_11_28/types/group_0754.py | 29 +- .../versions/v2022_11_28/types/group_0755.py | 27 +- .../versions/v2022_11_28/types/group_0756.py | 30 +- .../versions/v2022_11_28/types/group_0757.py | 23 +- .../versions/v2022_11_28/types/group_0758.py | 36 +- .../versions/v2022_11_28/types/group_0759.py | 208 +- .../versions/v2022_11_28/types/group_0760.py | 31 +- .../versions/v2022_11_28/types/group_0761.py | 27 +- .../versions/v2022_11_28/types/group_0762.py | 26 +- .../versions/v2022_11_28/types/group_0763.py | 191 +- .../versions/v2022_11_28/types/group_0764.py | 208 +- .../versions/v2022_11_28/types/group_0765.py | 206 +- .../versions/v2022_11_28/types/group_0766.py | 276 +- .../versions/v2022_11_28/types/group_0767.py | 212 +- .../versions/v2022_11_28/types/group_0768.py | 20 +- .../versions/v2022_11_28/types/group_0769.py | 195 +- .../versions/v2022_11_28/types/group_0770.py | 221 +- .../versions/v2022_11_28/types/group_0771.py | 211 +- .../versions/v2022_11_28/types/group_0772.py | 287 +- .../versions/v2022_11_28/types/group_0773.py | 219 +- .../versions/v2022_11_28/types/group_0774.py | 73 +- .../versions/v2022_11_28/types/group_0775.py | 71 +- .../versions/v2022_11_28/types/group_0776.py | 65 +- .../versions/v2022_11_28/types/group_0777.py | 57 +- .../versions/v2022_11_28/types/group_0778.py | 443 +- .../versions/v2022_11_28/types/group_0779.py | 429 +- .../versions/v2022_11_28/types/group_0780.py | 434 +- .../versions/v2022_11_28/types/group_0781.py | 68 +- .../versions/v2022_11_28/types/group_0782.py | 73 +- .../versions/v2022_11_28/types/group_0783.py | 71 +- .../versions/v2022_11_28/types/group_0784.py | 423 +- .../versions/v2022_11_28/types/group_0785.py | 421 +- .../versions/v2022_11_28/types/group_0786.py | 423 +- .../versions/v2022_11_28/types/group_0787.py | 42 +- .../versions/v2022_11_28/types/group_0788.py | 12 +- .../versions/v2022_11_28/types/group_0789.py | 14 +- .../versions/v2022_11_28/types/group_0790.py | 17 +- .../versions/v2022_11_28/types/group_0791.py | 17 +- .../versions/v2022_11_28/types/group_0792.py | 57 +- .../versions/v2022_11_28/types/group_0793.py | 59 +- .../versions/v2022_11_28/types/group_0794.py | 13 +- .../versions/v2022_11_28/types/group_0795.py | 17 +- .../versions/v2022_11_28/types/group_0796.py | 25 +- .../versions/v2022_11_28/types/group_0797.py | 15 +- .../versions/v2022_11_28/types/group_0798.py | 61 +- .../versions/v2022_11_28/types/group_0799.py | 61 +- .../versions/v2022_11_28/types/group_0800.py | 33 +- .../versions/v2022_11_28/types/group_0801.py | 17 +- .../versions/v2022_11_28/types/group_0802.py | 22 +- .../versions/v2022_11_28/types/group_0803.py | 12 +- .../versions/v2022_11_28/types/group_0804.py | 28 +- .../versions/v2022_11_28/types/group_0805.py | 25 +- .../versions/v2022_11_28/types/group_0806.py | 34 +- .../versions/v2022_11_28/types/group_0807.py | 10 +- .../versions/v2022_11_28/types/group_0808.py | 10 +- .../versions/v2022_11_28/types/group_0809.py | 52 +- .../versions/v2022_11_28/types/group_0810.py | 27 +- .../versions/v2022_11_28/types/group_0811.py | 11 +- .../versions/v2022_11_28/types/group_0812.py | 15 +- .../versions/v2022_11_28/types/group_0813.py | 10 +- .../versions/v2022_11_28/types/group_0814.py | 36 +- .../versions/v2022_11_28/types/group_0815.py | 53 +- .../versions/v2022_11_28/types/group_0816.py | 30 +- .../versions/v2022_11_28/types/group_0817.py | 12 +- .../versions/v2022_11_28/types/group_0818.py | 31 +- .../versions/v2022_11_28/types/group_0819.py | 12 +- .../versions/v2022_11_28/types/group_0820.py | 11 +- .../versions/v2022_11_28/types/group_0821.py | 10 +- .../versions/v2022_11_28/types/group_0822.py | 14 +- .../versions/v2022_11_28/types/group_0823.py | 18 +- .../versions/v2022_11_28/types/group_0824.py | 15 +- .../versions/v2022_11_28/types/group_0825.py | 11 +- .../versions/v2022_11_28/types/group_0826.py | 8 +- .../versions/v2022_11_28/types/group_0827.py | 34 +- .../versions/v2022_11_28/types/group_0828.py | 31 +- .../versions/v2022_11_28/types/group_0829.py | 18 +- .../versions/v2022_11_28/types/group_0830.py | 12 +- .../versions/v2022_11_28/types/group_0831.py | 11 +- .../versions/v2022_11_28/types/group_0832.py | 30 +- .../versions/v2022_11_28/types/group_0833.py | 17 +- .../versions/v2022_11_28/types/group_0834.py | 14 +- .../versions/v2022_11_28/types/group_0835.py | 10 +- .../versions/v2022_11_28/types/group_0836.py | 13 +- .../versions/v2022_11_28/types/group_0837.py | 68 +- .../versions/v2022_11_28/types/group_0838.py | 93 +- .../versions/v2022_11_28/types/group_0839.py | 10 +- .../versions/v2022_11_28/types/group_0840.py | 92 +- .../versions/v2022_11_28/types/group_0841.py | 17 +- .../versions/v2022_11_28/types/group_0842.py | 28 +- .../versions/v2022_11_28/types/group_0843.py | 20 +- .../versions/v2022_11_28/types/group_0844.py | 10 +- .../versions/v2022_11_28/types/group_0845.py | 17 +- .../versions/v2022_11_28/types/group_0846.py | 30 +- .../versions/v2022_11_28/types/group_0847.py | 14 +- .../versions/v2022_11_28/types/group_0848.py | 29 +- .../versions/v2022_11_28/types/group_0849.py | 17 +- .../versions/v2022_11_28/types/group_0850.py | 11 +- .../versions/v2022_11_28/types/group_0851.py | 67 +- .../versions/v2022_11_28/types/group_0852.py | 92 +- .../versions/v2022_11_28/types/group_0853.py | 13 +- .../versions/v2022_11_28/types/group_0854.py | 92 +- .../versions/v2022_11_28/types/group_0855.py | 18 +- .../versions/v2022_11_28/types/group_0856.py | 13 +- .../versions/v2022_11_28/types/group_0857.py | 21 +- .../versions/v2022_11_28/types/group_0858.py | 11 +- .../versions/v2022_11_28/types/group_0859.py | 20 +- .../versions/v2022_11_28/types/group_0860.py | 29 +- .../versions/v2022_11_28/types/group_0861.py | 14 +- .../versions/v2022_11_28/types/group_0862.py | 30 +- .../versions/v2022_11_28/types/group_0863.py | 14 +- .../versions/v2022_11_28/types/group_0864.py | 32 +- .../versions/v2022_11_28/types/group_0865.py | 29 +- .../versions/v2022_11_28/types/group_0866.py | 14 +- .../versions/v2022_11_28/types/group_0867.py | 12 +- .../versions/v2022_11_28/types/group_0868.py | 8 +- .../versions/v2022_11_28/types/group_0869.py | 18 +- .../versions/v2022_11_28/types/group_0870.py | 11 +- .../versions/v2022_11_28/types/group_0871.py | 14 +- .../versions/v2022_11_28/types/group_0872.py | 19 +- .../versions/v2022_11_28/types/group_0873.py | 13 +- .../versions/v2022_11_28/types/group_0874.py | 29 +- .../versions/v2022_11_28/types/group_0875.py | 13 +- .../versions/v2022_11_28/types/group_0876.py | 16 +- .../versions/v2022_11_28/types/group_0877.py | 12 +- .../versions/v2022_11_28/types/group_0878.py | 33 +- .../versions/v2022_11_28/types/group_0879.py | 30 +- .../versions/v2022_11_28/types/group_0880.py | 32 +- .../versions/v2022_11_28/types/group_0881.py | 19 +- .../versions/v2022_11_28/types/group_0882.py | 9 +- .../versions/v2022_11_28/types/group_0883.py | 18 +- .../versions/v2022_11_28/types/group_0884.py | 14 +- .../versions/v2022_11_28/types/group_0885.py | 13 +- .../versions/v2022_11_28/types/group_0886.py | 22 +- .../versions/v2022_11_28/types/group_0887.py | 54 +- .../versions/v2022_11_28/types/group_0888.py | 78 +- .../versions/v2022_11_28/types/group_0889.py | 77 +- .../versions/v2022_11_28/types/group_0890.py | 21 +- .../versions/v2022_11_28/types/group_0891.py | 16 +- .../versions/v2022_11_28/types/group_0892.py | 14 +- .../versions/v2022_11_28/types/group_0893.py | 12 +- .../versions/v2022_11_28/types/group_0894.py | 30 +- .../versions/v2022_11_28/types/group_0895.py | 20 +- .../versions/v2022_11_28/types/group_0896.py | 18 +- .../versions/v2022_11_28/types/group_0897.py | 19 +- .../versions/v2022_11_28/types/group_0898.py | 10 +- .../versions/v2022_11_28/types/group_0899.py | 13 +- .../versions/v2022_11_28/types/group_0900.py | 14 +- .../versions/v2022_11_28/types/group_0901.py | 54 +- .../versions/v2022_11_28/types/group_0902.py | 77 +- .../versions/v2022_11_28/types/group_0903.py | 78 +- .../versions/v2022_11_28/types/group_0904.py | 29 +- .../versions/v2022_11_28/types/group_0905.py | 12 +- .../versions/v2022_11_28/types/group_0906.py | 15 +- .../versions/v2022_11_28/types/group_0907.py | 32 +- .../versions/v2022_11_28/types/group_0908.py | 29 +- .../versions/v2022_11_28/types/group_0909.py | 12 +- .../versions/v2022_11_28/types/group_0910.py | 12 +- .../versions/v2022_11_28/types/group_0911.py | 9 +- .../versions/v2022_11_28/types/group_0912.py | 25 +- .../versions/v2022_11_28/types/group_0913.py | 17 +- .../versions/v2022_11_28/types/group_0914.py | 11 +- .../versions/v2022_11_28/types/group_0915.py | 11 +- .../versions/v2022_11_28/types/group_0916.py | 14 +- .../versions/v2022_11_28/types/group_0917.py | 7 +- .../versions/v2022_11_28/types/group_0918.py | 9 +- .../versions/v2022_11_28/types/group_0919.py | 11 +- .../versions/v2022_11_28/types/group_0920.py | 7 +- .../versions/v2022_11_28/types/group_0921.py | 149 +- .../versions/v2022_11_28/types/group_0922.py | 14 +- .../versions/v2022_11_28/types/group_0923.py | 10 +- .../versions/v2022_11_28/types/group_0924.py | 26 +- .../versions/v2022_11_28/types/group_0925.py | 26 +- .../versions/v2022_11_28/types/group_0926.py | 11 +- .../versions/v2022_11_28/types/group_0927.py | 13 +- .../versions/v2022_11_28/types/group_0928.py | 12 +- .../versions/v2022_11_28/types/group_0929.py | 26 +- .../versions/v2022_11_28/types/group_0930.py | 8 +- .../versions/v2022_11_28/types/group_0931.py | 8 +- .../versions/v2022_11_28/types/group_0932.py | 15 +- .../versions/v2022_11_28/types/group_0933.py | 18 +- .../versions/v2022_11_28/types/group_0934.py | 17 +- .../versions/v2022_11_28/types/group_0935.py | 14 +- .../versions/v2022_11_28/types/group_0936.py | 11 +- .../versions/v2022_11_28/types/group_0937.py | 9 +- .../versions/v2022_11_28/types/group_0938.py | 149 +- .../versions/v2022_11_28/types/group_0939.py | 10 +- .../versions/v2022_11_28/types/group_0940.py | 9 +- .../versions/v2022_11_28/types/group_0941.py | 15 +- .../versions/v2022_11_28/types/group_0942.py | 12 +- .../versions/v2022_11_28/types/group_0943.py | 14 +- .../versions/v2022_11_28/types/group_0944.py | 35 +- .../versions/v2022_11_28/types/group_0945.py | 29 +- .../versions/v2022_11_28/types/group_0946.py | 16 +- .../versions/v2022_11_28/types/group_0947.py | 48 +- .../versions/v2022_11_28/types/group_0948.py | 10 +- .../versions/v2022_11_28/types/group_0949.py | 71 +- .../versions/v2022_11_28/types/group_0950.py | 15 +- .../versions/v2022_11_28/types/group_0951.py | 128 +- .../versions/v2022_11_28/types/group_0952.py | 57 +- .../versions/v2022_11_28/types/group_0953.py | 35 +- .../versions/v2022_11_28/types/group_0954.py | 18 +- .../versions/v2022_11_28/types/group_0955.py | 18 +- .../versions/v2022_11_28/types/group_0956.py | 18 +- .../versions/v2022_11_28/types/group_0957.py | 13 +- .../versions/v2022_11_28/types/group_0958.py | 13 +- .../versions/v2022_11_28/types/group_0959.py | 13 +- .../versions/v2022_11_28/types/group_0960.py | 17 +- .../versions/v2022_11_28/types/group_0961.py | 41 +- .../versions/v2022_11_28/types/group_0962.py | 30 +- .../versions/v2022_11_28/types/group_0963.py | 13 +- .../versions/v2022_11_28/types/group_0964.py | 48 +- .../versions/v2022_11_28/types/group_0965.py | 14 +- .../versions/v2022_11_28/types/group_0966.py | 70 +- .../versions/v2022_11_28/types/group_0967.py | 59 +- .../versions/v2022_11_28/types/group_0968.py | 150 +- .../versions/v2022_11_28/types/group_0969.py | 79 +- .../versions/v2022_11_28/types/group_0970.py | 65 +- .../versions/v2022_11_28/types/group_0971.py | 48 +- .../versions/v2022_11_28/types/group_0972.py | 50 +- .../versions/v2022_11_28/types/group_0973.py | 17 +- .../versions/v2022_11_28/types/group_0974.py | 28 +- .../versions/v2022_11_28/types/group_0975.py | 13 +- .../versions/v2022_11_28/types/group_0976.py | 19 +- .../versions/v2022_11_28/types/group_0977.py | 23 +- .../versions/v2022_11_28/types/group_0978.py | 23 +- .../versions/v2022_11_28/types/group_0979.py | 25 +- .../versions/v2022_11_28/types/group_0980.py | 21 +- .../versions/v2022_11_28/types/group_0981.py | 13 +- .../versions/v2022_11_28/types/group_0982.py | 25 +- .../versions/v2022_11_28/types/group_0983.py | 26 +- .../versions/v2022_11_28/types/group_0984.py | 60 +- .../versions/v2022_11_28/types/group_0985.py | 51 +- .../versions/v2022_11_28/types/group_0986.py | 53 +- .../versions/v2022_11_28/types/group_0987.py | 64 +- .../versions/v2022_11_28/types/group_0988.py | 42 +- .../versions/v2022_11_28/types/group_0989.py | 48 +- .../versions/v2022_11_28/types/group_0990.py | 11 +- .../versions/v2022_11_28/types/group_0991.py | 27 +- .../versions/v2022_11_28/types/group_0992.py | 8 +- .../versions/v2022_11_28/types/group_0993.py | 45 +- .../versions/v2022_11_28/types/group_0994.py | 43 +- .../versions/v2022_11_28/types/group_0995.py | 20 +- .../versions/v2022_11_28/types/group_0996.py | 33 +- .../versions/v2022_11_28/types/group_0997.py | 16 +- .../versions/v2022_11_28/types/group_0998.py | 14 +- .../versions/v2022_11_28/types/group_0999.py | 40 +- .../versions/v2022_11_28/types/group_1000.py | 24 +- .../versions/v2022_11_28/types/group_1001.py | 22 +- .../versions/v2022_11_28/types/group_1002.py | 28 +- .../versions/v2022_11_28/types/group_1003.py | 39 +- .../versions/v2022_11_28/types/group_1004.py | 28 +- .../versions/v2022_11_28/types/group_1005.py | 12 +- .../versions/v2022_11_28/types/group_1006.py | 21 +- .../versions/v2022_11_28/types/group_1007.py | 14 +- .../versions/v2022_11_28/types/group_1008.py | 14 +- .../versions/v2022_11_28/types/group_1009.py | 10 +- .../versions/v2022_11_28/types/group_1010.py | 41 +- .../versions/v2022_11_28/types/group_1011.py | 35 +- .../versions/v2022_11_28/types/group_1012.py | 17 +- .../versions/v2022_11_28/types/group_1013.py | 27 +- .../versions/v2022_11_28/types/group_1014.py | 45 +- .../versions/v2022_11_28/types/group_1015.py | 12 +- .../versions/v2022_11_28/types/group_1016.py | 30 +- .../versions/v2022_11_28/types/group_1017.py | 28 +- .../versions/v2022_11_28/types/group_1018.py | 32 +- .../versions/v2022_11_28/types/group_1019.py | 33 +- .../versions/v2022_11_28/types/group_1020.py | 37 +- .../versions/v2022_11_28/types/group_1021.py | 31 +- .../versions/v2022_11_28/types/group_1022.py | 17 +- .../versions/v2022_11_28/types/group_1023.py | 23 +- .../versions/v2022_11_28/types/group_1024.py | 14 +- .../versions/v2022_11_28/types/group_1025.py | 10 +- .../versions/v2022_11_28/types/group_1026.py | 11 +- .../versions/v2022_11_28/types/group_1027.py | 12 +- .../versions/v2022_11_28/types/group_1028.py | 27 +- .../versions/v2022_11_28/types/group_1029.py | 12 +- .../versions/v2022_11_28/types/group_1030.py | 14 +- .../versions/v2022_11_28/types/group_1031.py | 60 +- .../versions/v2022_11_28/types/group_1032.py | 11 +- .../versions/v2022_11_28/types/group_1033.py | 9 +- .../versions/v2022_11_28/types/group_1034.py | 30 +- .../versions/v2022_11_28/types/group_1035.py | 23 +- .../versions/v2022_11_28/types/group_1036.py | 28 +- .../versions/v2022_11_28/types/group_1037.py | 16 +- .../versions/v2022_11_28/types/group_1038.py | 12 +- .../versions/v2022_11_28/types/group_1039.py | 24 +- .../versions/v2022_11_28/types/group_1040.py | 14 +- .../versions/v2022_11_28/types/group_1041.py | 10 +- .../versions/v2022_11_28/types/group_1042.py | 10 +- .../versions/v2022_11_28/types/group_1043.py | 8 +- .../versions/v2022_11_28/types/group_1044.py | 10 +- .../versions/v2022_11_28/types/group_1045.py | 30 +- .../versions/v2022_11_28/types/group_1046.py | 12 +- .../versions/v2022_11_28/types/group_1047.py | 15 +- .../versions/v2022_11_28/types/group_1048.py | 44 +- .../versions/v2022_11_28/types/group_1049.py | 10 +- .../versions/v2022_11_28/types/group_1050.py | 10 +- .../versions/v2022_11_28/types/group_1051.py | 15 +- .../versions/v2022_11_28/types/group_1052.py | 13 +- .../versions/v2022_11_28/types/group_1053.py | 20 +- .../versions/v2022_11_28/types/group_1054.py | 11 +- .../versions/v2022_11_28/types/group_1055.py | 15 +- .../versions/v2022_11_28/types/group_1056.py | 28 +- .../versions/v2022_11_28/types/group_1057.py | 19 +- .../versions/v2022_11_28/types/group_1058.py | 20 +- .../versions/v2022_11_28/types/group_1059.py | 22 +- .../versions/v2022_11_28/types/group_1060.py | 21 +- .../versions/v2022_11_28/types/group_1061.py | 14 +- .../versions/v2022_11_28/types/group_1062.py | 14 +- .../versions/v2022_11_28/types/group_1063.py | 14 +- .../versions/v2022_11_28/types/group_1064.py | 17 +- .../versions/v2022_11_28/types/group_1065.py | 12 +- .../versions/v2022_11_28/types/group_1066.py | 11 +- .../versions/v2022_11_28/types/group_1067.py | 14 +- .../versions/v2022_11_28/types/group_1068.py | 20 +- .../versions/v2022_11_28/types/group_1069.py | 15 +- .../versions/v2022_11_28/types/group_1070.py | 14 +- .../versions/v2022_11_28/types/group_1071.py | 14 +- .../versions/v2022_11_28/types/group_1072.py | 23 +- .../versions/v2022_11_28/types/group_1073.py | 29 +- .../versions/v2022_11_28/types/group_1074.py | 19 +- .../versions/v2022_11_28/types/group_1075.py | 23 +- .../versions/v2022_11_28/types/group_1076.py | 20 +- .../versions/v2022_11_28/types/group_1077.py | 20 +- .../versions/v2022_11_28/types/group_1078.py | 14 +- .../versions/v2022_11_28/types/group_1079.py | 13 +- .../versions/v2022_11_28/types/group_1080.py | 13 +- .../versions/v2022_11_28/types/group_1081.py | 34 +- .../versions/v2022_11_28/types/group_1082.py | 8 +- .../versions/v2022_11_28/types/group_1083.py | 11 +- .../versions/v2022_11_28/types/group_1084.py | 14 +- .../versions/v2022_11_28/types/group_1085.py | 15 +- .../versions/v2022_11_28/types/group_1086.py | 11 +- .../versions/v2022_11_28/types/group_1087.py | 20 +- .../versions/v2022_11_28/types/group_1088.py | 15 +- .../versions/v2022_11_28/types/group_1089.py | 21 +- .../versions/v2022_11_28/types/group_1090.py | 30 +- .../versions/v2022_11_28/types/group_1091.py | 9 +- .../versions/v2022_11_28/types/group_1092.py | 72 +- .../versions/v2022_11_28/types/group_1093.py | 69 +- .../versions/v2022_11_28/types/group_1094.py | 14 +- .../versions/v2022_11_28/types/group_1095.py | 13 +- .../versions/v2022_11_28/types/group_1096.py | 13 +- .../versions/v2022_11_28/types/group_1097.py | 10 +- .../versions/v2022_11_28/types/group_1098.py | 31 +- .../versions/v2022_11_28/types/group_1099.py | 8 +- .../versions/v2022_11_28/types/group_1100.py | 12 +- .../versions/v2022_11_28/types/group_1101.py | 14 +- .../versions/v2022_11_28/types/group_1102.py | 16 +- .../versions/v2022_11_28/types/group_1103.py | 11 +- .../versions/v2022_11_28/types/group_1104.py | 16 +- .../versions/v2022_11_28/types/group_1105.py | 12 +- .../versions/v2022_11_28/types/group_1106.py | 15 +- .../versions/v2022_11_28/types/group_1107.py | 23 +- .../versions/v2022_11_28/types/group_1108.py | 10 +- .../versions/v2022_11_28/types/group_1109.py | 69 +- .../versions/v2022_11_28/types/group_1110.py | 69 +- .../versions/v2022_11_28/types/group_1111.py | 14 +- .../versions/v2022_11_28/types/group_1112.py | 11 +- .../versions/v2022_11_28/types/group_1113.py | 20 +- .../versions/v2022_11_28/types/group_1114.py | 14 +- .../versions/v2022_11_28/types/group_1115.py | 22 +- .../versions/v2022_11_28/types/group_1116.py | 30 +- .../versions/v2022_11_28/types/group_1117.py | 31 +- .../versions/v2022_11_28/types/group_1118.py | 15 +- .../versions/v2022_11_28/types/group_1119.py | 21 +- .../versions/v2022_11_28/types/group_1120.py | 12 +- .../versions/v2022_11_28/types/group_1121.py | 11 +- .../versions/v2022_11_28/types/group_1122.py | 11 +- .../versions/v2022_11_28/types/group_1123.py | 13 +- .../versions/v2022_11_28/types/group_1124.py | 14 +- .../versions/v2022_11_28/types/group_1125.py | 15 +- .../versions/v2022_11_28/types/group_1126.py | 20 +- .../versions/v2022_11_28/types/group_1127.py | 10 +- .../versions/v2022_11_28/types/group_1128.py | 14 +- .../versions/v2022_11_28/types/group_1129.py | 13 +- .../versions/v2022_11_28/types/group_1130.py | 18 +- .../versions/v2022_11_28/types/group_1131.py | 14 +- .../versions/v2022_11_28/types/group_1132.py | 21 +- .../versions/v2022_11_28/types/group_1133.py | 35 +- .../versions/v2022_11_28/types/group_1134.py | 29 +- .../versions/v2022_11_28/types/group_1135.py | 42 +- .../versions/v2022_11_28/types/group_1136.py | 14 +- .../versions/v2022_11_28/types/group_1137.py | 13 +- .../versions/v2022_11_28/types/group_1138.py | 11 +- .../versions/v2022_11_28/types/group_1139.py | 142 +- .../versions/v2022_11_28/types/group_1140.py | 22 + .../versions/v2022_11_28/types/group_1141.py | 22 + .../versions/v2022_11_28/types/group_1142.py | 25 + .../versions/v2022_11_28/types/group_1143.py | 30 + .../versions/v2022_11_28/types/group_1144.py | 22 + .../versions/v2022_11_28/types/group_1145.py | 24 + .../versions/v2022_11_28/types/group_1146.py | 25 + .../versions/v2022_11_28/types/group_1147.py | 19 + .../versions/v2022_11_28/types/group_1148.py | 22 + .../versions/v2022_11_28/types/group_1149.py | 22 + .../versions/v2022_11_28/types/group_1150.py | 30 + .../versions/v2022_11_28/types/group_1151.py | 23 + .../versions/v2022_11_28/types/group_1152.py | 46 + .../versions/v2022_11_28/types/group_1153.py | 26 + .../versions/v2022_11_28/types/group_1154.py | 26 + .../versions/v2022_11_28/types/group_1155.py | 22 + .../versions/v2022_11_28/types/group_1156.py | 152 + 4844 files changed, 257327 insertions(+), 249889 deletions(-) create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1233.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1234.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1235.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1236.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1237.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1238.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1239.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1240.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1241.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1242.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1243.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1244.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1245.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1246.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1247.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1248.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1249.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1250.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1251.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1252.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1253.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1254.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1255.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1256.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1257.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1258.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1259.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1260.py create mode 100644 githubkit/versions/ghec_v2022_11_28/rest/hosted_compute.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1233.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1234.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1235.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1236.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1237.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1238.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1239.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1240.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1241.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1242.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1243.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1244.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1245.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1246.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1247.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1248.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1249.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1250.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1251.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1252.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1253.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1254.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1255.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1256.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1257.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1258.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1259.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1260.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1140.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1141.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1142.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1143.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1144.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1145.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1146.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1147.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1148.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1149.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1150.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1151.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1152.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1153.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1154.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1155.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1156.py create mode 100644 githubkit/versions/v2022_11_28/rest/hosted_compute.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1140.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1141.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1142.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1143.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1144.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1145.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1146.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1147.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1148.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1149.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1150.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1151.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1152.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1153.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1154.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1155.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1156.py diff --git a/githubkit/rest/__init__.py b/githubkit/rest/__init__.py index 5265cb337..c8923b590 100644 --- a/githubkit/rest/__init__.py +++ b/githubkit/rest/__init__.py @@ -31,6 +31,24 @@ from githubkit.versions.v2022_11_28.models import ( ActionsGetDefaultWorkflowPermissions as ActionsGetDefaultWorkflowPermissions, ) + from githubkit.versions.v2022_11_28.models import ( + ActionsHostedRunner as ActionsHostedRunner, + ) + from githubkit.versions.v2022_11_28.models import ( + ActionsHostedRunnerImage as ActionsHostedRunnerImage, + ) + from githubkit.versions.v2022_11_28.models import ( + ActionsHostedRunnerLimits as ActionsHostedRunnerLimits, + ) + from githubkit.versions.v2022_11_28.models import ( + ActionsHostedRunnerLimitsPropPublicIps as ActionsHostedRunnerLimitsPropPublicIps, + ) + from githubkit.versions.v2022_11_28.models import ( + ActionsHostedRunnerMachineSpec as ActionsHostedRunnerMachineSpec, + ) + from githubkit.versions.v2022_11_28.models import ( + ActionsHostedRunnerPoolImage as ActionsHostedRunnerPoolImage, + ) from githubkit.versions.v2022_11_28.models import ( ActionsOrganizationPermissions as ActionsOrganizationPermissions, ) @@ -861,9 +879,6 @@ from githubkit.versions.v2022_11_28.models import ( GlobalAdvisoryPropCwesItems as GlobalAdvisoryPropCwesItems, ) - from githubkit.versions.v2022_11_28.models import ( - GlobalAdvisoryPropEpss as GlobalAdvisoryPropEpss, - ) from githubkit.versions.v2022_11_28.models import ( GlobalAdvisoryPropIdentifiersItems as GlobalAdvisoryPropIdentifiersItems, ) @@ -1039,6 +1054,10 @@ from githubkit.versions.v2022_11_28.models import ( MovedColumnInProjectIssueEventPropProjectCard as MovedColumnInProjectIssueEventPropProjectCard, ) + from githubkit.versions.v2022_11_28.models import ( + NetworkConfiguration as NetworkConfiguration, + ) + from githubkit.versions.v2022_11_28.models import NetworkSettings as NetworkSettings from githubkit.versions.v2022_11_28.models import ( NotificationsPutBody as NotificationsPutBody, ) @@ -1141,6 +1160,30 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200 as OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersGetResponse200 as OrgsOrgActionsHostedRunnersGetResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200 as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200 as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200 as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersPlatformsGetResponse200 as OrgsOrgActionsHostedRunnersPlatformsGetResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersPostBody as OrgsOrgActionsHostedRunnersPostBody, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersPostBodyPropImage as OrgsOrgActionsHostedRunnersPostBodyPropImage, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) @@ -1156,6 +1199,9 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsRunnerGroupsPostBody as OrgsOrgActionsRunnerGroupsPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, ) @@ -1429,6 +1475,15 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgSettingsNetworkConfigurationsGetResponse200 as OrgsOrgSettingsNetworkConfigurationsGetResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgSettingsNetworkConfigurationsPostBody as OrgsOrgSettingsNetworkConfigurationsPostBody, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody, ) @@ -1703,6 +1758,7 @@ from githubkit.versions.v2022_11_28.models import ( ProtectedBranchRequiredStatusCheckPropChecksItems as ProtectedBranchRequiredStatusCheckPropChecksItems, ) + from githubkit.versions.v2022_11_28.models import PublicIp as PublicIp from githubkit.versions.v2022_11_28.models import PublicUser as PublicUser from githubkit.versions.v2022_11_28.models import ( PublicUserPropPlan as PublicUserPropPlan, @@ -2977,6 +3033,9 @@ from githubkit.versions.v2022_11_28.models import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1 as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1, ) + from githubkit.versions.v2022_11_28.models import ( + SecurityAdvisoryEpss as SecurityAdvisoryEpss, + ) from githubkit.versions.v2022_11_28.models import ( SecurityAndAnalysis as SecurityAndAnalysis, ) @@ -9630,17 +9689,18 @@ "CvssSeverities", "CvssSeveritiesPropCvssV3", "CvssSeveritiesPropCvssV4", + "SecurityAdvisoryEpss", "SimpleUser", "GlobalAdvisory", "GlobalAdvisoryPropIdentifiersItems", "GlobalAdvisoryPropCvss", "GlobalAdvisoryPropCwesItems", - "GlobalAdvisoryPropEpss", "Vulnerability", "VulnerabilityPropPackage", "GlobalAdvisoryPropCreditsItems", "BasicError", "ValidationErrorSimple", + "Enterprise", "IntegrationPropPermissions", "Integration", "WebhookConfig", @@ -9654,7 +9714,6 @@ "HookDeliveryPropRequestPropPayload", "HookDeliveryPropResponse", "HookDeliveryPropResponsePropHeaders", - "Enterprise", "IntegrationInstallationRequest", "AppPermissions", "Installation", @@ -9754,6 +9813,13 @@ "OrganizationFull", "OrganizationFullPropPlan", "ActionsCacheUsageOrgEnterprise", + "ActionsHostedRunnerMachineSpec", + "ActionsHostedRunner", + "ActionsHostedRunnerPoolImage", + "PublicIp", + "ActionsHostedRunnerImage", + "ActionsHostedRunnerLimits", + "ActionsHostedRunnerLimitsPropPublicIps", "OidcCustomSub", "ActionsOrganizationPermissions", "SelectedActions", @@ -9920,6 +9986,7 @@ "ActionsBillingUsagePropMinutesUsedBreakdown", "PackagesBillingUsage", "CombinedBillingUsage", + "NetworkSettings", "TeamFull", "TeamOrganization", "TeamOrganizationPropPlan", @@ -12536,6 +12603,14 @@ "OrgsOrgPatchBody", "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", + "OrgsOrgActionsHostedRunnersGetResponse200", + "OrgsOrgActionsHostedRunnersPostBody", + "OrgsOrgActionsHostedRunnersPostBodyPropImage", + "OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200", + "OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200", + "OrgsOrgActionsHostedRunnersMachineSizesGetResponse200", + "OrgsOrgActionsHostedRunnersPlatformsGetResponse200", + "OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody", "OrgsOrgActionsPermissionsPutBody", "OrgsOrgActionsPermissionsRepositoriesGetResponse200", "OrgsOrgActionsPermissionsRepositoriesPutBody", @@ -12543,6 +12618,7 @@ "RunnerGroupsOrg", "OrgsOrgActionsRunnerGroupsPostBody", "OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody", + "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200", "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200", "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody", "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", @@ -12634,6 +12710,10 @@ "OrgsOrgReposPostBodyPropCustomProperties", "OrgsOrgRulesetsPostBody", "OrgsOrgRulesetsRulesetIdPutBody", + "OrgsOrgSettingsNetworkConfigurationsGetResponse200", + "NetworkConfiguration", + "OrgsOrgSettingsNetworkConfigurationsPostBody", + "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody", "OrgsOrgTeamsPostBody", "OrgsOrgTeamsTeamSlugPatchBody", "OrgsOrgTeamsTeamSlugDiscussionsPostBody", diff --git a/githubkit/versions/ghec_v2022_11_28/models/__init__.py b/githubkit/versions/ghec_v2022_11_28/models/__init__.py index cbd8e703f..625cf7921 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/models/__init__.py @@ -14,8862 +14,8944 @@ from .group_0001 import CvssSeverities as CvssSeverities from .group_0001 import CvssSeveritiesPropCvssV3 as CvssSeveritiesPropCvssV3 from .group_0001 import CvssSeveritiesPropCvssV4 as CvssSeveritiesPropCvssV4 - from .group_0002 import SimpleUser as SimpleUser - from .group_0003 import GlobalAdvisory as GlobalAdvisory - from .group_0003 import GlobalAdvisoryPropCvss as GlobalAdvisoryPropCvss - from .group_0003 import GlobalAdvisoryPropCwesItems as GlobalAdvisoryPropCwesItems - from .group_0003 import GlobalAdvisoryPropEpss as GlobalAdvisoryPropEpss - from .group_0003 import ( + from .group_0002 import SecurityAdvisoryEpss as SecurityAdvisoryEpss + from .group_0003 import SimpleUser as SimpleUser + from .group_0004 import GlobalAdvisory as GlobalAdvisory + from .group_0004 import GlobalAdvisoryPropCvss as GlobalAdvisoryPropCvss + from .group_0004 import GlobalAdvisoryPropCwesItems as GlobalAdvisoryPropCwesItems + from .group_0004 import ( GlobalAdvisoryPropIdentifiersItems as GlobalAdvisoryPropIdentifiersItems, ) - from .group_0003 import Vulnerability as Vulnerability - from .group_0003 import VulnerabilityPropPackage as VulnerabilityPropPackage - from .group_0004 import ( + from .group_0004 import Vulnerability as Vulnerability + from .group_0004 import VulnerabilityPropPackage as VulnerabilityPropPackage + from .group_0005 import ( GlobalAdvisoryPropCreditsItems as GlobalAdvisoryPropCreditsItems, ) - from .group_0005 import BasicError as BasicError - from .group_0006 import ValidationErrorSimple as ValidationErrorSimple - from .group_0007 import IntegrationPropPermissions as IntegrationPropPermissions - from .group_0008 import Integration as Integration - from .group_0009 import WebhookConfig as WebhookConfig - from .group_0010 import HookDeliveryItem as HookDeliveryItem - from .group_0011 import ScimError as ScimError - from .group_0012 import ValidationError as ValidationError - from .group_0012 import ( + from .group_0006 import BasicError as BasicError + from .group_0007 import ValidationErrorSimple as ValidationErrorSimple + from .group_0008 import Enterprise as Enterprise + from .group_0009 import IntegrationPropPermissions as IntegrationPropPermissions + from .group_0010 import Integration as Integration + from .group_0011 import WebhookConfig as WebhookConfig + from .group_0012 import HookDeliveryItem as HookDeliveryItem + from .group_0013 import ScimError as ScimError + from .group_0014 import ValidationError as ValidationError + from .group_0014 import ( ValidationErrorPropErrorsItems as ValidationErrorPropErrorsItems, ) - from .group_0013 import HookDelivery as HookDelivery - from .group_0013 import HookDeliveryPropRequest as HookDeliveryPropRequest - from .group_0013 import ( + from .group_0015 import HookDelivery as HookDelivery + from .group_0015 import HookDeliveryPropRequest as HookDeliveryPropRequest + from .group_0015 import ( HookDeliveryPropRequestPropHeaders as HookDeliveryPropRequestPropHeaders, ) - from .group_0013 import ( + from .group_0015 import ( HookDeliveryPropRequestPropPayload as HookDeliveryPropRequestPropPayload, ) - from .group_0013 import HookDeliveryPropResponse as HookDeliveryPropResponse - from .group_0013 import ( + from .group_0015 import HookDeliveryPropResponse as HookDeliveryPropResponse + from .group_0015 import ( HookDeliveryPropResponsePropHeaders as HookDeliveryPropResponsePropHeaders, ) - from .group_0014 import Enterprise as Enterprise - from .group_0015 import ( + from .group_0016 import ( IntegrationInstallationRequest as IntegrationInstallationRequest, ) - from .group_0016 import AppPermissions as AppPermissions - from .group_0017 import Installation as Installation - from .group_0018 import LicenseSimple as LicenseSimple - from .group_0019 import Repository as Repository - from .group_0019 import RepositoryPropPermissions as RepositoryPropPermissions - from .group_0020 import InstallationToken as InstallationToken - from .group_0021 import ScopedInstallation as ScopedInstallation - from .group_0022 import Authorization as Authorization - from .group_0022 import AuthorizationPropApp as AuthorizationPropApp - from .group_0023 import SimpleClassroomRepository as SimpleClassroomRepository - from .group_0024 import Classroom as Classroom - from .group_0024 import ClassroomAssignment as ClassroomAssignment - from .group_0024 import SimpleClassroomOrganization as SimpleClassroomOrganization - from .group_0025 import ClassroomAcceptedAssignment as ClassroomAcceptedAssignment - from .group_0025 import SimpleClassroom as SimpleClassroom - from .group_0025 import SimpleClassroomAssignment as SimpleClassroomAssignment - from .group_0025 import SimpleClassroomUser as SimpleClassroomUser - from .group_0026 import ClassroomAssignmentGrade as ClassroomAssignmentGrade - from .group_0027 import ServerStatisticsActions as ServerStatisticsActions - from .group_0027 import ServerStatisticsItems as ServerStatisticsItems - from .group_0027 import ( + from .group_0017 import AppPermissions as AppPermissions + from .group_0018 import Installation as Installation + from .group_0019 import LicenseSimple as LicenseSimple + from .group_0020 import Repository as Repository + from .group_0020 import RepositoryPropPermissions as RepositoryPropPermissions + from .group_0021 import InstallationToken as InstallationToken + from .group_0022 import ScopedInstallation as ScopedInstallation + from .group_0023 import Authorization as Authorization + from .group_0023 import AuthorizationPropApp as AuthorizationPropApp + from .group_0024 import SimpleClassroomRepository as SimpleClassroomRepository + from .group_0025 import Classroom as Classroom + from .group_0025 import ClassroomAssignment as ClassroomAssignment + from .group_0025 import SimpleClassroomOrganization as SimpleClassroomOrganization + from .group_0026 import ClassroomAcceptedAssignment as ClassroomAcceptedAssignment + from .group_0026 import SimpleClassroom as SimpleClassroom + from .group_0026 import SimpleClassroomAssignment as SimpleClassroomAssignment + from .group_0026 import SimpleClassroomUser as SimpleClassroomUser + from .group_0027 import ClassroomAssignmentGrade as ClassroomAssignmentGrade + from .group_0028 import ServerStatisticsActions as ServerStatisticsActions + from .group_0028 import ServerStatisticsItems as ServerStatisticsItems + from .group_0028 import ( ServerStatisticsItemsPropDormantUsers as ServerStatisticsItemsPropDormantUsers, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStats as ServerStatisticsItemsPropGheStats, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropComments as ServerStatisticsItemsPropGheStatsPropComments, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropGists as ServerStatisticsItemsPropGheStatsPropGists, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropHooks as ServerStatisticsItemsPropGheStatsPropHooks, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropIssues as ServerStatisticsItemsPropGheStatsPropIssues, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropMilestones as ServerStatisticsItemsPropGheStatsPropMilestones, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropOrgs as ServerStatisticsItemsPropGheStatsPropOrgs, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropPages as ServerStatisticsItemsPropGheStatsPropPages, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropPulls as ServerStatisticsItemsPropGheStatsPropPulls, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropRepos as ServerStatisticsItemsPropGheStatsPropRepos, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropUsers as ServerStatisticsItemsPropGheStatsPropUsers, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGithubConnect as ServerStatisticsItemsPropGithubConnect, ) - from .group_0027 import ServerStatisticsPackages as ServerStatisticsPackages - from .group_0027 import ( + from .group_0028 import ServerStatisticsPackages as ServerStatisticsPackages + from .group_0028 import ( ServerStatisticsPackagesPropEcosystemsItems as ServerStatisticsPackagesPropEcosystemsItems, ) - from .group_0028 import ( + from .group_0029 import ( ActionsCacheUsageOrgEnterprise as ActionsCacheUsageOrgEnterprise, ) - from .group_0029 import ( - ActionsOidcCustomIssuerPolicyForEnterprise as ActionsOidcCustomIssuerPolicyForEnterprise, + from .group_0030 import ( + ActionsHostedRunnerMachineSpec as ActionsHostedRunnerMachineSpec, ) - from .group_0030 import ActionsEnterprisePermissions as ActionsEnterprisePermissions - from .group_0031 import OrganizationSimple as OrganizationSimple - from .group_0032 import SelectedActions as SelectedActions + from .group_0031 import ActionsHostedRunner as ActionsHostedRunner + from .group_0031 import ActionsHostedRunnerPoolImage as ActionsHostedRunnerPoolImage + from .group_0031 import PublicIp as PublicIp + from .group_0032 import ActionsHostedRunnerImage as ActionsHostedRunnerImage + from .group_0033 import ActionsHostedRunnerLimits as ActionsHostedRunnerLimits from .group_0033 import ( - ActionsGetDefaultWorkflowPermissions as ActionsGetDefaultWorkflowPermissions, + ActionsHostedRunnerLimitsPropPublicIps as ActionsHostedRunnerLimitsPropPublicIps, ) from .group_0034 import ( - ActionsSetDefaultWorkflowPermissions as ActionsSetDefaultWorkflowPermissions, + ActionsOidcCustomIssuerPolicyForEnterprise as ActionsOidcCustomIssuerPolicyForEnterprise, ) - from .group_0035 import RunnerLabel as RunnerLabel - from .group_0036 import Runner as Runner - from .group_0037 import RunnerApplication as RunnerApplication - from .group_0038 import AuthenticationToken as AuthenticationToken + from .group_0035 import ActionsEnterprisePermissions as ActionsEnterprisePermissions + from .group_0036 import OrganizationSimple as OrganizationSimple + from .group_0037 import SelectedActions as SelectedActions from .group_0038 import ( + ActionsGetDefaultWorkflowPermissions as ActionsGetDefaultWorkflowPermissions, + ) + from .group_0039 import ( + ActionsSetDefaultWorkflowPermissions as ActionsSetDefaultWorkflowPermissions, + ) + from .group_0040 import RunnerLabel as RunnerLabel + from .group_0041 import Runner as Runner + from .group_0042 import RunnerApplication as RunnerApplication + from .group_0043 import AuthenticationToken as AuthenticationToken + from .group_0043 import ( AuthenticationTokenPropPermissions as AuthenticationTokenPropPermissions, ) - from .group_0039 import AnnouncementBanner as AnnouncementBanner - from .group_0040 import Announcement as Announcement - from .group_0041 import AuditLogEvent as AuditLogEvent - from .group_0041 import ( + from .group_0044 import AnnouncementBanner as AnnouncementBanner + from .group_0045 import Announcement as Announcement + from .group_0046 import AuditLogEvent as AuditLogEvent + from .group_0046 import ( AuditLogEventPropActorLocation as AuditLogEventPropActorLocation, ) - from .group_0041 import AuditLogEventPropConfigItems as AuditLogEventPropConfigItems - from .group_0041 import ( + from .group_0046 import AuditLogEventPropConfigItems as AuditLogEventPropConfigItems + from .group_0046 import ( AuditLogEventPropConfigWasItems as AuditLogEventPropConfigWasItems, ) - from .group_0041 import AuditLogEventPropData as AuditLogEventPropData - from .group_0041 import AuditLogEventPropEventsItems as AuditLogEventPropEventsItems - from .group_0041 import ( + from .group_0046 import AuditLogEventPropData as AuditLogEventPropData + from .group_0046 import AuditLogEventPropEventsItems as AuditLogEventPropEventsItems + from .group_0046 import ( AuditLogEventPropEventsWereItems as AuditLogEventPropEventsWereItems, ) - from .group_0042 import AuditLogStreamKey as AuditLogStreamKey - from .group_0043 import ( + from .group_0047 import AuditLogStreamKey as AuditLogStreamKey + from .group_0048 import ( GetAuditLogStreamConfigsItems as GetAuditLogStreamConfigsItems, ) - from .group_0044 import AmazonS3AccessKeysConfig as AmazonS3AccessKeysConfig - from .group_0044 import AzureBlobConfig as AzureBlobConfig - from .group_0044 import AzureHubConfig as AzureHubConfig - from .group_0044 import GoogleCloudConfig as GoogleCloudConfig - from .group_0045 import AmazonS3OidcConfig as AmazonS3OidcConfig - from .group_0045 import SplunkConfig as SplunkConfig - from .group_0046 import DatadogConfig as DatadogConfig - from .group_0047 import GetAuditLogStreamConfig as GetAuditLogStreamConfig - from .group_0048 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary - from .group_0049 import CodeScanningAnalysisTool as CodeScanningAnalysisTool - from .group_0050 import CodeScanningAlertInstance as CodeScanningAlertInstance - from .group_0050 import ( + from .group_0049 import AmazonS3AccessKeysConfig as AmazonS3AccessKeysConfig + from .group_0049 import AzureBlobConfig as AzureBlobConfig + from .group_0049 import AzureHubConfig as AzureHubConfig + from .group_0049 import GoogleCloudConfig as GoogleCloudConfig + from .group_0050 import AmazonS3OidcConfig as AmazonS3OidcConfig + from .group_0050 import SplunkConfig as SplunkConfig + from .group_0051 import DatadogConfig as DatadogConfig + from .group_0052 import GetAuditLogStreamConfig as GetAuditLogStreamConfig + from .group_0053 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary + from .group_0054 import CodeScanningAnalysisTool as CodeScanningAnalysisTool + from .group_0055 import CodeScanningAlertInstance as CodeScanningAlertInstance + from .group_0055 import ( CodeScanningAlertInstancePropMessage as CodeScanningAlertInstancePropMessage, ) - from .group_0050 import CodeScanningAlertLocation as CodeScanningAlertLocation - from .group_0051 import SimpleRepository as SimpleRepository - from .group_0052 import ( + from .group_0055 import CodeScanningAlertLocation as CodeScanningAlertLocation + from .group_0056 import SimpleRepository as SimpleRepository + from .group_0057 import ( CodeScanningOrganizationAlertItems as CodeScanningOrganizationAlertItems, ) - from .group_0053 import CodeSecurityConfiguration as CodeSecurityConfiguration - from .group_0053 import ( + from .group_0058 import CodeSecurityConfiguration as CodeSecurityConfiguration + from .group_0058 import ( CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions as CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions, ) - from .group_0053 import ( + from .group_0058 import ( CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions as CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions, ) - from .group_0053 import ( + from .group_0058 import ( CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions as CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions, ) - from .group_0053 import ( + from .group_0058 import ( CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems as CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0054 import ( + from .group_0059 import ( CodeScanningDefaultSetupOptions as CodeScanningDefaultSetupOptions, ) - from .group_0055 import ( + from .group_0060 import ( CodeSecurityDefaultConfigurationsItems as CodeSecurityDefaultConfigurationsItems, ) - from .group_0056 import ( + from .group_0061 import ( CodeSecurityConfigurationRepositories as CodeSecurityConfigurationRepositories, ) - from .group_0057 import ( + from .group_0062 import ( EnterpriseSecurityAnalysisSettings as EnterpriseSecurityAnalysisSettings, ) - from .group_0058 import GetConsumedLicenses as GetConsumedLicenses - from .group_0058 import ( + from .group_0063 import GetConsumedLicenses as GetConsumedLicenses + from .group_0063 import ( GetConsumedLicensesPropUsersItems as GetConsumedLicensesPropUsersItems, ) - from .group_0059 import TeamSimple as TeamSimple - from .group_0060 import Team as Team - from .group_0060 import TeamPropPermissions as TeamPropPermissions - from .group_0061 import CopilotSeatDetails as CopilotSeatDetails - from .group_0061 import EnterpriseTeam as EnterpriseTeam - from .group_0062 import CopilotDotcomChat as CopilotDotcomChat - from .group_0062 import ( + from .group_0064 import TeamSimple as TeamSimple + from .group_0065 import Team as Team + from .group_0065 import TeamPropPermissions as TeamPropPermissions + from .group_0066 import CopilotSeatDetails as CopilotSeatDetails + from .group_0066 import EnterpriseTeam as EnterpriseTeam + from .group_0067 import CopilotDotcomChat as CopilotDotcomChat + from .group_0067 import ( CopilotDotcomChatPropModelsItems as CopilotDotcomChatPropModelsItems, ) - from .group_0062 import CopilotDotcomPullRequests as CopilotDotcomPullRequests - from .group_0062 import ( + from .group_0067 import CopilotDotcomPullRequests as CopilotDotcomPullRequests + from .group_0067 import ( CopilotDotcomPullRequestsPropRepositoriesItems as CopilotDotcomPullRequestsPropRepositoriesItems, ) - from .group_0062 import ( + from .group_0067 import ( CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems as CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems, ) - from .group_0062 import CopilotIdeChat as CopilotIdeChat - from .group_0062 import ( + from .group_0067 import CopilotIdeChat as CopilotIdeChat + from .group_0067 import ( CopilotIdeChatPropEditorsItems as CopilotIdeChatPropEditorsItems, ) - from .group_0062 import ( + from .group_0067 import ( CopilotIdeChatPropEditorsItemsPropModelsItems as CopilotIdeChatPropEditorsItemsPropModelsItems, ) - from .group_0062 import CopilotIdeCodeCompletions as CopilotIdeCodeCompletions - from .group_0062 import ( + from .group_0067 import CopilotIdeCodeCompletions as CopilotIdeCodeCompletions + from .group_0067 import ( CopilotIdeCodeCompletionsPropEditorsItems as CopilotIdeCodeCompletionsPropEditorsItems, ) - from .group_0062 import ( + from .group_0067 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems, ) - from .group_0062 import ( + from .group_0067 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems, ) - from .group_0062 import ( + from .group_0067 import ( CopilotIdeCodeCompletionsPropLanguagesItems as CopilotIdeCodeCompletionsPropLanguagesItems, ) - from .group_0062 import CopilotUsageMetricsDay as CopilotUsageMetricsDay - from .group_0063 import CopilotUsageMetrics as CopilotUsageMetrics - from .group_0063 import ( + from .group_0067 import CopilotUsageMetricsDay as CopilotUsageMetricsDay + from .group_0068 import CopilotUsageMetrics as CopilotUsageMetrics + from .group_0068 import ( CopilotUsageMetricsPropBreakdownItems as CopilotUsageMetricsPropBreakdownItems, ) - from .group_0064 import DependabotAlertPackage as DependabotAlertPackage - from .group_0065 import ( + from .group_0069 import DependabotAlertPackage as DependabotAlertPackage + from .group_0070 import ( DependabotAlertSecurityVulnerability as DependabotAlertSecurityVulnerability, ) - from .group_0065 import ( + from .group_0070 import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, ) - from .group_0066 import ( + from .group_0071 import ( DependabotAlertSecurityAdvisory as DependabotAlertSecurityAdvisory, ) - from .group_0066 import ( + from .group_0071 import ( DependabotAlertSecurityAdvisoryPropCvss as DependabotAlertSecurityAdvisoryPropCvss, ) - from .group_0066 import ( + from .group_0071 import ( DependabotAlertSecurityAdvisoryPropCwesItems as DependabotAlertSecurityAdvisoryPropCwesItems, ) - from .group_0066 import ( + from .group_0071 import ( DependabotAlertSecurityAdvisoryPropIdentifiersItems as DependabotAlertSecurityAdvisoryPropIdentifiersItems, ) - from .group_0066 import ( + from .group_0071 import ( DependabotAlertSecurityAdvisoryPropReferencesItems as DependabotAlertSecurityAdvisoryPropReferencesItems, ) - from .group_0067 import ( + from .group_0072 import ( DependabotAlertWithRepository as DependabotAlertWithRepository, ) - from .group_0068 import ( + from .group_0073 import ( DependabotAlertWithRepositoryPropDependency as DependabotAlertWithRepositoryPropDependency, ) - from .group_0069 import GetLicenseSyncStatus as GetLicenseSyncStatus - from .group_0069 import ( + from .group_0074 import GetLicenseSyncStatus as GetLicenseSyncStatus + from .group_0074 import ( GetLicenseSyncStatusPropServerInstancesItems as GetLicenseSyncStatusPropServerInstancesItems, ) - from .group_0069 import ( + from .group_0074 import ( GetLicenseSyncStatusPropServerInstancesItemsPropLastSync as GetLicenseSyncStatusPropServerInstancesItemsPropLastSync, ) - from .group_0070 import CustomProperty as CustomProperty - from .group_0071 import CustomPropertySetPayload as CustomPropertySetPayload - from .group_0072 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor - from .group_0073 import ( + from .group_0075 import NetworkConfiguration as NetworkConfiguration + from .group_0076 import NetworkSettings as NetworkSettings + from .group_0077 import CustomProperty as CustomProperty + from .group_0078 import CustomPropertySetPayload as CustomPropertySetPayload + from .group_0079 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor + from .group_0080 import ( EnterpriseRulesetConditionsOrganizationNameTarget as EnterpriseRulesetConditionsOrganizationNameTarget, ) - from .group_0074 import ( + from .group_0081 import ( EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName as EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, ) - from .group_0075 import ( + from .group_0082 import ( RepositoryRulesetConditionsRepositoryNameTarget as RepositoryRulesetConditionsRepositoryNameTarget, ) - from .group_0076 import ( + from .group_0083 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) - from .group_0077 import RepositoryRulesetConditions as RepositoryRulesetConditions - from .group_0078 import ( + from .group_0084 import RepositoryRulesetConditions as RepositoryRulesetConditions + from .group_0085 import ( RepositoryRulesetConditionsPropRefName as RepositoryRulesetConditionsPropRefName, ) - from .group_0079 import ( + from .group_0086 import ( RepositoryRulesetConditionsRepositoryPropertyTarget as RepositoryRulesetConditionsRepositoryPropertyTarget, ) - from .group_0080 import ( + from .group_0087 import ( RepositoryRulesetConditionsRepositoryPropertySpec as RepositoryRulesetConditionsRepositoryPropertySpec, ) - from .group_0080 import ( + from .group_0087 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) - from .group_0081 import ( + from .group_0088 import ( EnterpriseRulesetConditionsOrganizationIdTarget as EnterpriseRulesetConditionsOrganizationIdTarget, ) - from .group_0082 import ( + from .group_0089 import ( EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId as EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, ) - from .group_0083 import ( + from .group_0090 import ( EnterpriseRulesetConditionsOneof0 as EnterpriseRulesetConditionsOneof0, ) - from .group_0084 import ( + from .group_0091 import ( EnterpriseRulesetConditionsOneof1 as EnterpriseRulesetConditionsOneof1, ) - from .group_0085 import ( + from .group_0092 import ( EnterpriseRulesetConditionsOneof2 as EnterpriseRulesetConditionsOneof2, ) - from .group_0086 import ( + from .group_0093 import ( EnterpriseRulesetConditionsOneof3 as EnterpriseRulesetConditionsOneof3, ) - from .group_0087 import RepositoryRuleCreation as RepositoryRuleCreation - from .group_0087 import RepositoryRuleDeletion as RepositoryRuleDeletion - from .group_0087 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward - from .group_0087 import RepositoryRuleOneof15 as RepositoryRuleOneof15 - from .group_0087 import ( + from .group_0094 import RepositoryRuleCreation as RepositoryRuleCreation + from .group_0094 import RepositoryRuleDeletion as RepositoryRuleDeletion + from .group_0094 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward + from .group_0094 import RepositoryRuleOneof15 as RepositoryRuleOneof15 + from .group_0094 import ( RepositoryRuleOneof15PropParameters as RepositoryRuleOneof15PropParameters, ) - from .group_0087 import RepositoryRuleOneof17 as RepositoryRuleOneof17 - from .group_0087 import ( + from .group_0094 import RepositoryRuleOneof17 as RepositoryRuleOneof17 + from .group_0094 import ( RepositoryRuleOneof17PropParameters as RepositoryRuleOneof17PropParameters, ) - from .group_0087 import ( + from .group_0094 import ( RepositoryRuleRequiredSignatures as RepositoryRuleRequiredSignatures, ) - from .group_0088 import RepositoryRuleUpdate as RepositoryRuleUpdate - from .group_0089 import ( + from .group_0095 import RepositoryRuleUpdate as RepositoryRuleUpdate + from .group_0096 import ( RepositoryRuleUpdatePropParameters as RepositoryRuleUpdatePropParameters, ) - from .group_0090 import RepositoryRuleOneof16 as RepositoryRuleOneof16 - from .group_0090 import ( + from .group_0097 import RepositoryRuleOneof16 as RepositoryRuleOneof16 + from .group_0097 import ( RepositoryRuleOneof16PropParameters as RepositoryRuleOneof16PropParameters, ) - from .group_0090 import ( + from .group_0097 import ( RepositoryRuleRequiredLinearHistory as RepositoryRuleRequiredLinearHistory, ) - from .group_0091 import RepositoryRuleMergeQueue as RepositoryRuleMergeQueue - from .group_0092 import ( + from .group_0098 import RepositoryRuleMergeQueue as RepositoryRuleMergeQueue + from .group_0099 import ( RepositoryRuleMergeQueuePropParameters as RepositoryRuleMergeQueuePropParameters, ) - from .group_0093 import ( + from .group_0100 import ( RepositoryRuleRequiredDeployments as RepositoryRuleRequiredDeployments, ) - from .group_0094 import ( + from .group_0101 import ( RepositoryRuleRequiredDeploymentsPropParameters as RepositoryRuleRequiredDeploymentsPropParameters, ) - from .group_0095 import ( + from .group_0102 import ( RepositoryRuleParamsRequiredReviewerConfiguration as RepositoryRuleParamsRequiredReviewerConfiguration, ) - from .group_0096 import RepositoryRulePullRequest as RepositoryRulePullRequest - from .group_0097 import ( + from .group_0103 import RepositoryRulePullRequest as RepositoryRulePullRequest + from .group_0104 import ( RepositoryRulePullRequestPropParameters as RepositoryRulePullRequestPropParameters, ) - from .group_0098 import ( + from .group_0105 import ( RepositoryRuleRequiredStatusChecks as RepositoryRuleRequiredStatusChecks, ) - from .group_0099 import ( + from .group_0106 import ( RepositoryRuleParamsStatusCheckConfiguration as RepositoryRuleParamsStatusCheckConfiguration, ) - from .group_0099 import ( + from .group_0106 import ( RepositoryRuleRequiredStatusChecksPropParameters as RepositoryRuleRequiredStatusChecksPropParameters, ) - from .group_0100 import ( + from .group_0107 import ( RepositoryRuleCommitMessagePattern as RepositoryRuleCommitMessagePattern, ) - from .group_0101 import ( + from .group_0108 import ( RepositoryRuleCommitMessagePatternPropParameters as RepositoryRuleCommitMessagePatternPropParameters, ) - from .group_0102 import ( + from .group_0109 import ( RepositoryRuleCommitAuthorEmailPattern as RepositoryRuleCommitAuthorEmailPattern, ) - from .group_0103 import ( + from .group_0110 import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) - from .group_0104 import ( + from .group_0111 import ( RepositoryRuleCommitterEmailPattern as RepositoryRuleCommitterEmailPattern, ) - from .group_0105 import ( + from .group_0112 import ( RepositoryRuleCommitterEmailPatternPropParameters as RepositoryRuleCommitterEmailPatternPropParameters, ) - from .group_0106 import ( + from .group_0113 import ( RepositoryRuleBranchNamePattern as RepositoryRuleBranchNamePattern, ) - from .group_0107 import ( + from .group_0114 import ( RepositoryRuleBranchNamePatternPropParameters as RepositoryRuleBranchNamePatternPropParameters, ) - from .group_0108 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern - from .group_0109 import ( + from .group_0115 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern + from .group_0116 import ( RepositoryRuleTagNamePatternPropParameters as RepositoryRuleTagNamePatternPropParameters, ) - from .group_0110 import ( + from .group_0117 import ( RepositoryRuleParamsRestrictedCommits as RepositoryRuleParamsRestrictedCommits, ) - from .group_0111 import RepositoryRuleWorkflows as RepositoryRuleWorkflows - from .group_0112 import ( + from .group_0118 import RepositoryRuleWorkflows as RepositoryRuleWorkflows + from .group_0119 import ( RepositoryRuleParamsWorkflowFileReference as RepositoryRuleParamsWorkflowFileReference, ) - from .group_0112 import ( + from .group_0119 import ( RepositoryRuleWorkflowsPropParameters as RepositoryRuleWorkflowsPropParameters, ) - from .group_0113 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning - from .group_0114 import ( + from .group_0120 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning + from .group_0121 import ( RepositoryRuleCodeScanningPropParameters as RepositoryRuleCodeScanningPropParameters, ) - from .group_0114 import ( + from .group_0121 import ( RepositoryRuleParamsCodeScanningTool as RepositoryRuleParamsCodeScanningTool, ) - from .group_0115 import RepositoryRuleOneof18 as RepositoryRuleOneof18 - from .group_0115 import ( + from .group_0122 import RepositoryRuleOneof18 as RepositoryRuleOneof18 + from .group_0122 import ( RepositoryRuleOneof18PropParameters as RepositoryRuleOneof18PropParameters, ) - from .group_0116 import ( + from .group_0123 import ( RepositoryRulesetConditionsRepositoryIdTarget as RepositoryRulesetConditionsRepositoryIdTarget, ) - from .group_0117 import ( + from .group_0124 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId, ) - from .group_0118 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 - from .group_0119 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 - from .group_0120 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 - from .group_0121 import RepositoryRuleset as RepositoryRuleset - from .group_0121 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks - from .group_0121 import ( + from .group_0125 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 + from .group_0126 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 + from .group_0127 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 + from .group_0128 import RepositoryRuleset as RepositoryRuleset + from .group_0128 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks + from .group_0128 import ( RepositoryRulesetPropLinksPropHtml as RepositoryRulesetPropLinksPropHtml, ) - from .group_0121 import ( + from .group_0128 import ( RepositoryRulesetPropLinksPropSelf as RepositoryRulesetPropLinksPropSelf, ) - from .group_0122 import ( + from .group_0129 import ( OrganizationSecretScanningAlert as OrganizationSecretScanningAlert, ) - from .group_0123 import ActionsBillingUsage as ActionsBillingUsage - from .group_0123 import ( + from .group_0130 import ActionsBillingUsage as ActionsBillingUsage + from .group_0130 import ( ActionsBillingUsagePropMinutesUsedBreakdown as ActionsBillingUsagePropMinutesUsedBreakdown, ) - from .group_0124 import ( + from .group_0131 import ( AdvancedSecurityActiveCommitters as AdvancedSecurityActiveCommitters, ) - from .group_0124 import ( + from .group_0131 import ( AdvancedSecurityActiveCommittersRepository as AdvancedSecurityActiveCommittersRepository, ) - from .group_0124 import ( + from .group_0131 import ( AdvancedSecurityActiveCommittersUser as AdvancedSecurityActiveCommittersUser, ) - from .group_0125 import GetAllCostCenters as GetAllCostCenters - from .group_0125 import ( + from .group_0132 import GetAllCostCenters as GetAllCostCenters + from .group_0132 import ( GetAllCostCentersPropCostCentersItems as GetAllCostCentersPropCostCentersItems, ) - from .group_0125 import ( + from .group_0132 import ( GetAllCostCentersPropCostCentersItemsPropResourcesItems as GetAllCostCentersPropCostCentersItemsPropResourcesItems, ) - from .group_0126 import PackagesBillingUsage as PackagesBillingUsage - from .group_0127 import CombinedBillingUsage as CombinedBillingUsage - from .group_0128 import BillingUsageReport as BillingUsageReport - from .group_0128 import ( + from .group_0133 import PackagesBillingUsage as PackagesBillingUsage + from .group_0134 import CombinedBillingUsage as CombinedBillingUsage + from .group_0135 import BillingUsageReport as BillingUsageReport + from .group_0135 import ( BillingUsageReportPropUsageItemsItems as BillingUsageReportPropUsageItemsItems, ) - from .group_0129 import Milestone as Milestone - from .group_0130 import ReactionRollup as ReactionRollup - from .group_0131 import Issue as Issue - from .group_0131 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 - from .group_0131 import IssuePropPullRequest as IssuePropPullRequest - from .group_0131 import SubIssuesSummary as SubIssuesSummary - from .group_0132 import IssueComment as IssueComment - from .group_0133 import Actor as Actor - from .group_0133 import Event as Event - from .group_0133 import EventPropPayload as EventPropPayload - from .group_0133 import ( + from .group_0136 import Milestone as Milestone + from .group_0137 import ReactionRollup as ReactionRollup + from .group_0138 import Issue as Issue + from .group_0138 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 + from .group_0138 import IssuePropPullRequest as IssuePropPullRequest + from .group_0138 import SubIssuesSummary as SubIssuesSummary + from .group_0139 import IssueComment as IssueComment + from .group_0140 import Actor as Actor + from .group_0140 import Event as Event + from .group_0140 import EventPropPayload as EventPropPayload + from .group_0140 import ( EventPropPayloadPropPagesItems as EventPropPayloadPropPagesItems, ) - from .group_0133 import EventPropRepo as EventPropRepo - from .group_0134 import Feed as Feed - from .group_0134 import FeedPropLinks as FeedPropLinks - from .group_0134 import LinkWithType as LinkWithType - from .group_0135 import BaseGist as BaseGist - from .group_0135 import BaseGistPropFiles as BaseGistPropFiles - from .group_0136 import GistHistory as GistHistory - from .group_0136 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus - from .group_0136 import GistSimplePropForkOf as GistSimplePropForkOf - from .group_0136 import ( + from .group_0140 import EventPropRepo as EventPropRepo + from .group_0141 import Feed as Feed + from .group_0141 import FeedPropLinks as FeedPropLinks + from .group_0141 import LinkWithType as LinkWithType + from .group_0142 import BaseGist as BaseGist + from .group_0142 import BaseGistPropFiles as BaseGistPropFiles + from .group_0143 import GistHistory as GistHistory + from .group_0143 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus + from .group_0143 import GistSimplePropForkOf as GistSimplePropForkOf + from .group_0143 import ( GistSimplePropForkOfPropFiles as GistSimplePropForkOfPropFiles, ) - from .group_0137 import GistSimple as GistSimple - from .group_0137 import GistSimplePropFiles as GistSimplePropFiles - from .group_0137 import GistSimplePropForksItems as GistSimplePropForksItems - from .group_0137 import PublicUser as PublicUser - from .group_0137 import PublicUserPropPlan as PublicUserPropPlan - from .group_0138 import GistComment as GistComment - from .group_0139 import GistCommit as GistCommit - from .group_0139 import GistCommitPropChangeStatus as GistCommitPropChangeStatus - from .group_0140 import GitignoreTemplate as GitignoreTemplate - from .group_0141 import License as License - from .group_0142 import MarketplaceListingPlan as MarketplaceListingPlan - from .group_0143 import MarketplacePurchase as MarketplacePurchase - from .group_0144 import ( + from .group_0144 import GistSimple as GistSimple + from .group_0144 import GistSimplePropFiles as GistSimplePropFiles + from .group_0144 import GistSimplePropForksItems as GistSimplePropForksItems + from .group_0144 import PublicUser as PublicUser + from .group_0144 import PublicUserPropPlan as PublicUserPropPlan + from .group_0145 import GistComment as GistComment + from .group_0146 import GistCommit as GistCommit + from .group_0146 import GistCommitPropChangeStatus as GistCommitPropChangeStatus + from .group_0147 import GitignoreTemplate as GitignoreTemplate + from .group_0148 import License as License + from .group_0149 import MarketplaceListingPlan as MarketplaceListingPlan + from .group_0150 import MarketplacePurchase as MarketplacePurchase + from .group_0151 import ( MarketplacePurchasePropMarketplacePendingChange as MarketplacePurchasePropMarketplacePendingChange, ) - from .group_0144 import ( + from .group_0151 import ( MarketplacePurchasePropMarketplacePurchase as MarketplacePurchasePropMarketplacePurchase, ) - from .group_0145 import ApiOverview as ApiOverview - from .group_0145 import ApiOverviewPropDomains as ApiOverviewPropDomains - from .group_0145 import ( + from .group_0152 import ApiOverview as ApiOverview + from .group_0152 import ApiOverviewPropDomains as ApiOverviewPropDomains + from .group_0152 import ( ApiOverviewPropDomainsPropActionsInbound as ApiOverviewPropDomainsPropActionsInbound, ) - from .group_0145 import ( + from .group_0152 import ( ApiOverviewPropDomainsPropArtifactAttestations as ApiOverviewPropDomainsPropArtifactAttestations, ) - from .group_0145 import ( + from .group_0152 import ( ApiOverviewPropSshKeyFingerprints as ApiOverviewPropSshKeyFingerprints, ) - from .group_0146 import SecurityAndAnalysis as SecurityAndAnalysis - from .group_0146 import ( + from .group_0153 import SecurityAndAnalysis as SecurityAndAnalysis + from .group_0153 import ( SecurityAndAnalysisPropAdvancedSecurity as SecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0146 import ( + from .group_0153 import ( SecurityAndAnalysisPropDependabotSecurityUpdates as SecurityAndAnalysisPropDependabotSecurityUpdates, ) - from .group_0146 import ( + from .group_0153 import ( SecurityAndAnalysisPropSecretScanning as SecurityAndAnalysisPropSecretScanning, ) - from .group_0146 import ( + from .group_0153 import ( SecurityAndAnalysisPropSecretScanningAiDetection as SecurityAndAnalysisPropSecretScanningAiDetection, ) - from .group_0146 import ( + from .group_0153 import ( SecurityAndAnalysisPropSecretScanningNonProviderPatterns as SecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) - from .group_0146 import ( + from .group_0153 import ( SecurityAndAnalysisPropSecretScanningPushProtection as SecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0146 import ( + from .group_0153 import ( SecurityAndAnalysisPropSecretScanningValidityChecks as SecurityAndAnalysisPropSecretScanningValidityChecks, ) - from .group_0147 import CodeOfConduct as CodeOfConduct - from .group_0147 import MinimalRepository as MinimalRepository - from .group_0147 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense - from .group_0147 import ( + from .group_0154 import CodeOfConduct as CodeOfConduct + from .group_0154 import MinimalRepository as MinimalRepository + from .group_0154 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense + from .group_0154 import ( MinimalRepositoryPropPermissions as MinimalRepositoryPropPermissions, ) - from .group_0148 import Thread as Thread - from .group_0148 import ThreadPropSubject as ThreadPropSubject - from .group_0149 import ThreadSubscription as ThreadSubscription - from .group_0150 import ( + from .group_0155 import Thread as Thread + from .group_0155 import ThreadPropSubject as ThreadPropSubject + from .group_0156 import ThreadSubscription as ThreadSubscription + from .group_0157 import ( OrganizationCustomRepositoryRole as OrganizationCustomRepositoryRole, ) - from .group_0151 import OrganizationFull as OrganizationFull - from .group_0151 import OrganizationFullPropPlan as OrganizationFullPropPlan - from .group_0152 import OidcCustomSub as OidcCustomSub - from .group_0153 import ( + from .group_0158 import OrganizationFull as OrganizationFull + from .group_0158 import OrganizationFullPropPlan as OrganizationFullPropPlan + from .group_0159 import OidcCustomSub as OidcCustomSub + from .group_0160 import ( ActionsOrganizationPermissions as ActionsOrganizationPermissions, ) - from .group_0154 import ActionsPublicKey as ActionsPublicKey - from .group_0155 import BypassResponse as BypassResponse - from .group_0155 import BypassResponsePropReviewer as BypassResponsePropReviewer - from .group_0155 import PushRuleBypassRequest as PushRuleBypassRequest - from .group_0155 import ( + from .group_0161 import ActionsPublicKey as ActionsPublicKey + from .group_0162 import BypassResponse as BypassResponse + from .group_0162 import BypassResponsePropReviewer as BypassResponsePropReviewer + from .group_0162 import PushRuleBypassRequest as PushRuleBypassRequest + from .group_0162 import ( PushRuleBypassRequestPropDataItems as PushRuleBypassRequestPropDataItems, ) - from .group_0155 import ( + from .group_0162 import ( PushRuleBypassRequestPropOrganization as PushRuleBypassRequestPropOrganization, ) - from .group_0155 import ( + from .group_0162 import ( PushRuleBypassRequestPropRepository as PushRuleBypassRequestPropRepository, ) - from .group_0155 import ( + from .group_0162 import ( PushRuleBypassRequestPropRequester as PushRuleBypassRequestPropRequester, ) - from .group_0156 import CodespaceMachine as CodespaceMachine - from .group_0157 import Codespace as Codespace - from .group_0157 import CodespacePropGitStatus as CodespacePropGitStatus - from .group_0157 import ( + from .group_0163 import CodespaceMachine as CodespaceMachine + from .group_0164 import Codespace as Codespace + from .group_0164 import CodespacePropGitStatus as CodespacePropGitStatus + from .group_0164 import ( CodespacePropRuntimeConstraints as CodespacePropRuntimeConstraints, ) - from .group_0158 import CodespacesPublicKey as CodespacesPublicKey - from .group_0159 import CopilotOrganizationDetails as CopilotOrganizationDetails - from .group_0159 import CopilotSeatBreakdown as CopilotSeatBreakdown - from .group_0160 import CredentialAuthorization as CredentialAuthorization - from .group_0161 import ( + from .group_0165 import CodespacesPublicKey as CodespacesPublicKey + from .group_0166 import CopilotOrganizationDetails as CopilotOrganizationDetails + from .group_0166 import CopilotSeatBreakdown as CopilotSeatBreakdown + from .group_0167 import CredentialAuthorization as CredentialAuthorization + from .group_0168 import ( OrganizationCustomRepositoryRoleCreateSchema as OrganizationCustomRepositoryRoleCreateSchema, ) - from .group_0162 import ( + from .group_0169 import ( OrganizationCustomRepositoryRoleUpdateSchema as OrganizationCustomRepositoryRoleUpdateSchema, ) - from .group_0163 import DependabotPublicKey as DependabotPublicKey - from .group_0164 import Package as Package - from .group_0165 import ExternalGroup as ExternalGroup - from .group_0165 import ( + from .group_0170 import DependabotPublicKey as DependabotPublicKey + from .group_0171 import Package as Package + from .group_0172 import ExternalGroup as ExternalGroup + from .group_0172 import ( ExternalGroupPropMembersItems as ExternalGroupPropMembersItems, ) - from .group_0165 import ExternalGroupPropTeamsItems as ExternalGroupPropTeamsItems - from .group_0166 import ExternalGroups as ExternalGroups - from .group_0166 import ( + from .group_0172 import ExternalGroupPropTeamsItems as ExternalGroupPropTeamsItems + from .group_0173 import ExternalGroups as ExternalGroups + from .group_0173 import ( ExternalGroupsPropGroupsItems as ExternalGroupsPropGroupsItems, ) - from .group_0167 import OrganizationInvitation as OrganizationInvitation - from .group_0168 import ( + from .group_0174 import OrganizationInvitation as OrganizationInvitation + from .group_0175 import ( RepositoryFineGrainedPermission as RepositoryFineGrainedPermission, ) - from .group_0169 import OrgHook as OrgHook - from .group_0169 import OrgHookPropConfig as OrgHookPropConfig - from .group_0170 import ApiInsightsRouteStatsItems as ApiInsightsRouteStatsItems - from .group_0171 import ApiInsightsSubjectStatsItems as ApiInsightsSubjectStatsItems - from .group_0172 import ApiInsightsSummaryStats as ApiInsightsSummaryStats - from .group_0173 import ApiInsightsTimeStatsItems as ApiInsightsTimeStatsItems - from .group_0174 import ApiInsightsUserStatsItems as ApiInsightsUserStatsItems - from .group_0175 import InteractionLimitResponse as InteractionLimitResponse - from .group_0176 import InteractionLimit as InteractionLimit - from .group_0177 import OrgMembership as OrgMembership - from .group_0177 import OrgMembershipPropPermissions as OrgMembershipPropPermissions - from .group_0178 import Migration as Migration - from .group_0179 import ( + from .group_0176 import OrgHook as OrgHook + from .group_0176 import OrgHookPropConfig as OrgHookPropConfig + from .group_0177 import ApiInsightsRouteStatsItems as ApiInsightsRouteStatsItems + from .group_0178 import ApiInsightsSubjectStatsItems as ApiInsightsSubjectStatsItems + from .group_0179 import ApiInsightsSummaryStats as ApiInsightsSummaryStats + from .group_0180 import ApiInsightsTimeStatsItems as ApiInsightsTimeStatsItems + from .group_0181 import ApiInsightsUserStatsItems as ApiInsightsUserStatsItems + from .group_0182 import InteractionLimitResponse as InteractionLimitResponse + from .group_0183 import InteractionLimit as InteractionLimit + from .group_0184 import OrgMembership as OrgMembership + from .group_0184 import OrgMembershipPropPermissions as OrgMembershipPropPermissions + from .group_0185 import Migration as Migration + from .group_0186 import ( OrganizationFineGrainedPermission as OrganizationFineGrainedPermission, ) - from .group_0180 import OrganizationRole as OrganizationRole - from .group_0180 import ( + from .group_0187 import OrganizationRole as OrganizationRole + from .group_0187 import ( OrgsOrgOrganizationRolesGetResponse200 as OrgsOrgOrganizationRolesGetResponse200, ) - from .group_0181 import ( + from .group_0188 import ( OrganizationCustomOrganizationRoleCreateSchema as OrganizationCustomOrganizationRoleCreateSchema, ) - from .group_0182 import ( + from .group_0189 import ( OrganizationCustomOrganizationRoleUpdateSchema as OrganizationCustomOrganizationRoleUpdateSchema, ) - from .group_0183 import TeamRoleAssignment as TeamRoleAssignment - from .group_0183 import ( + from .group_0190 import TeamRoleAssignment as TeamRoleAssignment + from .group_0190 import ( TeamRoleAssignmentPropPermissions as TeamRoleAssignmentPropPermissions, ) - from .group_0184 import UserRoleAssignment as UserRoleAssignment - from .group_0185 import PackageVersion as PackageVersion - from .group_0185 import PackageVersionPropMetadata as PackageVersionPropMetadata - from .group_0185 import ( + from .group_0191 import UserRoleAssignment as UserRoleAssignment + from .group_0192 import PackageVersion as PackageVersion + from .group_0192 import PackageVersionPropMetadata as PackageVersionPropMetadata + from .group_0192 import ( PackageVersionPropMetadataPropContainer as PackageVersionPropMetadataPropContainer, ) - from .group_0185 import ( + from .group_0192 import ( PackageVersionPropMetadataPropDocker as PackageVersionPropMetadataPropDocker, ) - from .group_0186 import ( + from .group_0193 import ( OrganizationProgrammaticAccessGrantRequest as OrganizationProgrammaticAccessGrantRequest, ) - from .group_0186 import ( + from .group_0193 import ( OrganizationProgrammaticAccessGrantRequestPropPermissions as OrganizationProgrammaticAccessGrantRequestPropPermissions, ) - from .group_0186 import ( + from .group_0193 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization, ) - from .group_0186 import ( + from .group_0193 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther, ) - from .group_0186 import ( + from .group_0193 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository, ) - from .group_0187 import ( + from .group_0194 import ( OrganizationProgrammaticAccessGrant as OrganizationProgrammaticAccessGrant, ) - from .group_0187 import ( + from .group_0194 import ( OrganizationProgrammaticAccessGrantPropPermissions as OrganizationProgrammaticAccessGrantPropPermissions, ) - from .group_0187 import ( + from .group_0194 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization, ) - from .group_0187 import ( + from .group_0194 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOther as OrganizationProgrammaticAccessGrantPropPermissionsPropOther, ) - from .group_0187 import ( + from .group_0194 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantPropPermissionsPropRepository, ) - from .group_0188 import ( + from .group_0195 import ( OrgPrivateRegistryConfigurationWithSelectedRepositories as OrgPrivateRegistryConfigurationWithSelectedRepositories, ) - from .group_0189 import Project as Project - from .group_0190 import CustomPropertyValue as CustomPropertyValue - from .group_0191 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues - from .group_0192 import CodeOfConductSimple as CodeOfConductSimple - from .group_0193 import FullRepository as FullRepository - from .group_0193 import ( + from .group_0196 import Project as Project + from .group_0197 import CustomPropertyValue as CustomPropertyValue + from .group_0198 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues + from .group_0199 import CodeOfConductSimple as CodeOfConductSimple + from .group_0200 import FullRepository as FullRepository + from .group_0200 import ( FullRepositoryPropCustomProperties as FullRepositoryPropCustomProperties, ) - from .group_0193 import ( + from .group_0200 import ( FullRepositoryPropPermissions as FullRepositoryPropPermissions, ) - from .group_0194 import RuleSuitesItems as RuleSuitesItems - from .group_0195 import RuleSuite as RuleSuite - from .group_0195 import ( + from .group_0201 import RuleSuitesItems as RuleSuitesItems + from .group_0202 import RuleSuite as RuleSuite + from .group_0202 import ( RuleSuitePropRuleEvaluationsItems as RuleSuitePropRuleEvaluationsItems, ) - from .group_0195 import ( + from .group_0202 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSource as RuleSuitePropRuleEvaluationsItemsPropRuleSource, ) - from .group_0196 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit - from .group_0197 import RepositoryAdvisory as RepositoryAdvisory - from .group_0197 import ( + from .group_0203 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit + from .group_0204 import RepositoryAdvisory as RepositoryAdvisory + from .group_0204 import ( RepositoryAdvisoryPropCreditsItems as RepositoryAdvisoryPropCreditsItems, ) - from .group_0197 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss - from .group_0197 import ( + from .group_0204 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss + from .group_0204 import ( RepositoryAdvisoryPropCwesItems as RepositoryAdvisoryPropCwesItems, ) - from .group_0197 import ( + from .group_0204 import ( RepositoryAdvisoryPropIdentifiersItems as RepositoryAdvisoryPropIdentifiersItems, ) - from .group_0197 import ( + from .group_0204 import ( RepositoryAdvisoryPropSubmission as RepositoryAdvisoryPropSubmission, ) - from .group_0197 import ( + from .group_0204 import ( RepositoryAdvisoryVulnerability as RepositoryAdvisoryVulnerability, ) - from .group_0197 import ( + from .group_0204 import ( RepositoryAdvisoryVulnerabilityPropPackage as RepositoryAdvisoryVulnerabilityPropPackage, ) - from .group_0198 import GroupMapping as GroupMapping - from .group_0198 import GroupMappingPropGroupsItems as GroupMappingPropGroupsItems - from .group_0199 import TeamFull as TeamFull - from .group_0199 import TeamOrganization as TeamOrganization - from .group_0199 import TeamOrganizationPropPlan as TeamOrganizationPropPlan - from .group_0200 import TeamDiscussion as TeamDiscussion - from .group_0201 import TeamDiscussionComment as TeamDiscussionComment - from .group_0202 import Reaction as Reaction - from .group_0203 import TeamMembership as TeamMembership - from .group_0204 import TeamProject as TeamProject - from .group_0204 import TeamProjectPropPermissions as TeamProjectPropPermissions - from .group_0205 import TeamRepository as TeamRepository - from .group_0205 import ( + from .group_0205 import GroupMapping as GroupMapping + from .group_0205 import GroupMappingPropGroupsItems as GroupMappingPropGroupsItems + from .group_0206 import TeamFull as TeamFull + from .group_0206 import TeamOrganization as TeamOrganization + from .group_0206 import TeamOrganizationPropPlan as TeamOrganizationPropPlan + from .group_0207 import TeamDiscussion as TeamDiscussion + from .group_0208 import TeamDiscussionComment as TeamDiscussionComment + from .group_0209 import Reaction as Reaction + from .group_0210 import TeamMembership as TeamMembership + from .group_0211 import TeamProject as TeamProject + from .group_0211 import TeamProjectPropPermissions as TeamProjectPropPermissions + from .group_0212 import TeamRepository as TeamRepository + from .group_0212 import ( TeamRepositoryPropPermissions as TeamRepositoryPropPermissions, ) - from .group_0206 import ProjectCard as ProjectCard - from .group_0207 import ProjectColumn as ProjectColumn - from .group_0208 import ( + from .group_0213 import ProjectCard as ProjectCard + from .group_0214 import ProjectColumn as ProjectColumn + from .group_0215 import ( ProjectCollaboratorPermission as ProjectCollaboratorPermission, ) - from .group_0209 import RateLimit as RateLimit - from .group_0210 import RateLimitOverview as RateLimitOverview - from .group_0211 import ( + from .group_0216 import RateLimit as RateLimit + from .group_0217 import RateLimitOverview as RateLimitOverview + from .group_0218 import ( RateLimitOverviewPropResources as RateLimitOverviewPropResources, ) - from .group_0212 import Artifact as Artifact - from .group_0212 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun - from .group_0213 import ActionsCacheList as ActionsCacheList - from .group_0213 import ( + from .group_0219 import Artifact as Artifact + from .group_0219 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun + from .group_0220 import ActionsCacheList as ActionsCacheList + from .group_0220 import ( ActionsCacheListPropActionsCachesItems as ActionsCacheListPropActionsCachesItems, ) - from .group_0214 import Job as Job - from .group_0214 import JobPropStepsItems as JobPropStepsItems - from .group_0215 import OidcCustomSubRepo as OidcCustomSubRepo - from .group_0216 import ActionsSecret as ActionsSecret - from .group_0217 import ActionsVariable as ActionsVariable - from .group_0218 import ActionsRepositoryPermissions as ActionsRepositoryPermissions - from .group_0219 import ( + from .group_0221 import Job as Job + from .group_0221 import JobPropStepsItems as JobPropStepsItems + from .group_0222 import OidcCustomSubRepo as OidcCustomSubRepo + from .group_0223 import ActionsSecret as ActionsSecret + from .group_0224 import ActionsVariable as ActionsVariable + from .group_0225 import ActionsRepositoryPermissions as ActionsRepositoryPermissions + from .group_0226 import ( ActionsWorkflowAccessToRepository as ActionsWorkflowAccessToRepository, ) - from .group_0220 import PullRequestMinimal as PullRequestMinimal - from .group_0220 import PullRequestMinimalPropBase as PullRequestMinimalPropBase - from .group_0220 import ( + from .group_0227 import PullRequestMinimal as PullRequestMinimal + from .group_0227 import PullRequestMinimalPropBase as PullRequestMinimalPropBase + from .group_0227 import ( PullRequestMinimalPropBasePropRepo as PullRequestMinimalPropBasePropRepo, ) - from .group_0220 import PullRequestMinimalPropHead as PullRequestMinimalPropHead - from .group_0220 import ( + from .group_0227 import PullRequestMinimalPropHead as PullRequestMinimalPropHead + from .group_0227 import ( PullRequestMinimalPropHeadPropRepo as PullRequestMinimalPropHeadPropRepo, ) - from .group_0221 import SimpleCommit as SimpleCommit - from .group_0221 import SimpleCommitPropAuthor as SimpleCommitPropAuthor - from .group_0221 import SimpleCommitPropCommitter as SimpleCommitPropCommitter - from .group_0222 import ReferencedWorkflow as ReferencedWorkflow - from .group_0222 import WorkflowRun as WorkflowRun - from .group_0223 import EnvironmentApprovals as EnvironmentApprovals - from .group_0223 import ( + from .group_0228 import SimpleCommit as SimpleCommit + from .group_0228 import SimpleCommitPropAuthor as SimpleCommitPropAuthor + from .group_0228 import SimpleCommitPropCommitter as SimpleCommitPropCommitter + from .group_0229 import ReferencedWorkflow as ReferencedWorkflow + from .group_0229 import WorkflowRun as WorkflowRun + from .group_0230 import EnvironmentApprovals as EnvironmentApprovals + from .group_0230 import ( EnvironmentApprovalsPropEnvironmentsItems as EnvironmentApprovalsPropEnvironmentsItems, ) - from .group_0224 import ( + from .group_0231 import ( ReviewCustomGatesCommentRequired as ReviewCustomGatesCommentRequired, ) - from .group_0225 import ( + from .group_0232 import ( ReviewCustomGatesStateRequired as ReviewCustomGatesStateRequired, ) - from .group_0226 import PendingDeployment as PendingDeployment - from .group_0226 import ( + from .group_0233 import PendingDeployment as PendingDeployment + from .group_0233 import ( PendingDeploymentPropEnvironment as PendingDeploymentPropEnvironment, ) - from .group_0226 import ( + from .group_0233 import ( PendingDeploymentPropReviewersItems as PendingDeploymentPropReviewersItems, ) - from .group_0227 import Deployment as Deployment - from .group_0227 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 - from .group_0228 import WorkflowRunUsage as WorkflowRunUsage - from .group_0228 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable - from .group_0228 import ( + from .group_0234 import Deployment as Deployment + from .group_0234 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 + from .group_0235 import WorkflowRunUsage as WorkflowRunUsage + from .group_0235 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable + from .group_0235 import ( WorkflowRunUsagePropBillablePropMacos as WorkflowRunUsagePropBillablePropMacos, ) - from .group_0228 import ( + from .group_0235 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) - from .group_0228 import ( + from .group_0235 import ( WorkflowRunUsagePropBillablePropUbuntu as WorkflowRunUsagePropBillablePropUbuntu, ) - from .group_0228 import ( + from .group_0235 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems, ) - from .group_0228 import ( + from .group_0235 import ( WorkflowRunUsagePropBillablePropWindows as WorkflowRunUsagePropBillablePropWindows, ) - from .group_0228 import ( + from .group_0235 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems, ) - from .group_0229 import WorkflowUsage as WorkflowUsage - from .group_0229 import WorkflowUsagePropBillable as WorkflowUsagePropBillable - from .group_0229 import ( + from .group_0236 import WorkflowUsage as WorkflowUsage + from .group_0236 import WorkflowUsagePropBillable as WorkflowUsagePropBillable + from .group_0236 import ( WorkflowUsagePropBillablePropMacos as WorkflowUsagePropBillablePropMacos, ) - from .group_0229 import ( + from .group_0236 import ( WorkflowUsagePropBillablePropUbuntu as WorkflowUsagePropBillablePropUbuntu, ) - from .group_0229 import ( + from .group_0236 import ( WorkflowUsagePropBillablePropWindows as WorkflowUsagePropBillablePropWindows, ) - from .group_0230 import Activity as Activity - from .group_0231 import Autolink as Autolink - from .group_0232 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes - from .group_0233 import ( + from .group_0237 import Activity as Activity + from .group_0238 import Autolink as Autolink + from .group_0239 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes + from .group_0240 import ( ProtectedBranchPullRequestReview as ProtectedBranchPullRequestReview, ) - from .group_0234 import ( + from .group_0241 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, ) - from .group_0234 import ( + from .group_0241 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictions as ProtectedBranchPullRequestReviewPropDismissalRestrictions, ) - from .group_0235 import BranchRestrictionPolicy as BranchRestrictionPolicy - from .group_0235 import ( + from .group_0242 import BranchRestrictionPolicy as BranchRestrictionPolicy + from .group_0242 import ( BranchRestrictionPolicyPropAppsItems as BranchRestrictionPolicyPropAppsItems, ) - from .group_0235 import ( + from .group_0242 import ( BranchRestrictionPolicyPropAppsItemsPropOwner as BranchRestrictionPolicyPropAppsItemsPropOwner, ) - from .group_0235 import ( + from .group_0242 import ( BranchRestrictionPolicyPropAppsItemsPropPermissions as BranchRestrictionPolicyPropAppsItemsPropPermissions, ) - from .group_0235 import ( + from .group_0242 import ( BranchRestrictionPolicyPropTeamsItems as BranchRestrictionPolicyPropTeamsItems, ) - from .group_0235 import ( + from .group_0242 import ( BranchRestrictionPolicyPropUsersItems as BranchRestrictionPolicyPropUsersItems, ) - from .group_0236 import BranchProtection as BranchProtection - from .group_0236 import ( + from .group_0243 import BranchProtection as BranchProtection + from .group_0243 import ( BranchProtectionPropAllowDeletions as BranchProtectionPropAllowDeletions, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropAllowForcePushes as BranchProtectionPropAllowForcePushes, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropAllowForkSyncing as BranchProtectionPropAllowForkSyncing, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropBlockCreations as BranchProtectionPropBlockCreations, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropLockBranch as BranchProtectionPropLockBranch, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropRequiredConversationResolution as BranchProtectionPropRequiredConversationResolution, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropRequiredLinearHistory as BranchProtectionPropRequiredLinearHistory, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropRequiredSignatures as BranchProtectionPropRequiredSignatures, ) - from .group_0236 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced - from .group_0236 import ( + from .group_0243 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced + from .group_0243 import ( ProtectedBranchRequiredStatusCheck as ProtectedBranchRequiredStatusCheck, ) - from .group_0236 import ( + from .group_0243 import ( ProtectedBranchRequiredStatusCheckPropChecksItems as ProtectedBranchRequiredStatusCheckPropChecksItems, ) - from .group_0237 import ShortBranch as ShortBranch - from .group_0237 import ShortBranchPropCommit as ShortBranchPropCommit - from .group_0238 import GitUser as GitUser - from .group_0239 import Verification as Verification - from .group_0240 import DiffEntry as DiffEntry - from .group_0241 import Commit as Commit - from .group_0241 import CommitPropParentsItems as CommitPropParentsItems - from .group_0241 import CommitPropStats as CommitPropStats - from .group_0241 import EmptyObject as EmptyObject - from .group_0242 import CommitPropCommit as CommitPropCommit - from .group_0242 import CommitPropCommitPropTree as CommitPropCommitPropTree - from .group_0243 import BranchWithProtection as BranchWithProtection - from .group_0243 import ( + from .group_0244 import ShortBranch as ShortBranch + from .group_0244 import ShortBranchPropCommit as ShortBranchPropCommit + from .group_0245 import GitUser as GitUser + from .group_0246 import Verification as Verification + from .group_0247 import DiffEntry as DiffEntry + from .group_0248 import Commit as Commit + from .group_0248 import CommitPropParentsItems as CommitPropParentsItems + from .group_0248 import CommitPropStats as CommitPropStats + from .group_0248 import EmptyObject as EmptyObject + from .group_0249 import CommitPropCommit as CommitPropCommit + from .group_0249 import CommitPropCommitPropTree as CommitPropCommitPropTree + from .group_0250 import BranchWithProtection as BranchWithProtection + from .group_0250 import ( BranchWithProtectionPropLinks as BranchWithProtectionPropLinks, ) - from .group_0244 import ProtectedBranch as ProtectedBranch - from .group_0244 import ( + from .group_0251 import ProtectedBranch as ProtectedBranch + from .group_0251 import ( ProtectedBranchPropAllowDeletions as ProtectedBranchPropAllowDeletions, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropAllowForcePushes as ProtectedBranchPropAllowForcePushes, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropAllowForkSyncing as ProtectedBranchPropAllowForkSyncing, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropBlockCreations as ProtectedBranchPropBlockCreations, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropEnforceAdmins as ProtectedBranchPropEnforceAdmins, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropLockBranch as ProtectedBranchPropLockBranch, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropRequiredConversationResolution as ProtectedBranchPropRequiredConversationResolution, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropRequiredLinearHistory as ProtectedBranchPropRequiredLinearHistory, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropRequiredSignatures as ProtectedBranchPropRequiredSignatures, ) - from .group_0244 import StatusCheckPolicy as StatusCheckPolicy - from .group_0244 import ( + from .group_0251 import StatusCheckPolicy as StatusCheckPolicy + from .group_0251 import ( StatusCheckPolicyPropChecksItems as StatusCheckPolicyPropChecksItems, ) - from .group_0245 import ( + from .group_0252 import ( ProtectedBranchPropRequiredPullRequestReviews as ProtectedBranchPropRequiredPullRequestReviews, ) - from .group_0246 import ( + from .group_0253 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0246 import ( + from .group_0253 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0247 import DeploymentSimple as DeploymentSimple - from .group_0248 import CheckRun as CheckRun - from .group_0248 import CheckRunPropCheckSuite as CheckRunPropCheckSuite - from .group_0248 import CheckRunPropOutput as CheckRunPropOutput - from .group_0249 import CheckAnnotation as CheckAnnotation - from .group_0250 import CheckSuite as CheckSuite - from .group_0250 import ( + from .group_0254 import DeploymentSimple as DeploymentSimple + from .group_0255 import CheckRun as CheckRun + from .group_0255 import CheckRunPropCheckSuite as CheckRunPropCheckSuite + from .group_0255 import CheckRunPropOutput as CheckRunPropOutput + from .group_0256 import CheckAnnotation as CheckAnnotation + from .group_0257 import CheckSuite as CheckSuite + from .group_0257 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200 as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200, ) - from .group_0251 import CheckSuitePreference as CheckSuitePreference - from .group_0251 import ( + from .group_0258 import CheckSuitePreference as CheckSuitePreference + from .group_0258 import ( CheckSuitePreferencePropPreferences as CheckSuitePreferencePropPreferences, ) - from .group_0251 import ( + from .group_0258 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems, ) - from .group_0252 import CodeScanningAlertItems as CodeScanningAlertItems - from .group_0253 import CodeScanningAlert as CodeScanningAlert - from .group_0253 import CodeScanningAlertRule as CodeScanningAlertRule - from .group_0254 import CodeScanningAutofix as CodeScanningAutofix - from .group_0255 import CodeScanningAutofixCommits as CodeScanningAutofixCommits - from .group_0256 import ( + from .group_0259 import CodeScanningAlertItems as CodeScanningAlertItems + from .group_0260 import CodeScanningAlert as CodeScanningAlert + from .group_0260 import CodeScanningAlertRule as CodeScanningAlertRule + from .group_0261 import CodeScanningAutofix as CodeScanningAutofix + from .group_0262 import CodeScanningAutofixCommits as CodeScanningAutofixCommits + from .group_0263 import ( CodeScanningAutofixCommitsResponse as CodeScanningAutofixCommitsResponse, ) - from .group_0257 import CodeScanningAnalysis as CodeScanningAnalysis - from .group_0258 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion - from .group_0259 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase - from .group_0260 import ( + from .group_0264 import CodeScanningAnalysis as CodeScanningAnalysis + from .group_0265 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion + from .group_0266 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase + from .group_0267 import ( CodeScanningVariantAnalysisRepository as CodeScanningVariantAnalysisRepository, ) - from .group_0261 import ( + from .group_0268 import ( CodeScanningVariantAnalysisSkippedRepoGroup as CodeScanningVariantAnalysisSkippedRepoGroup, ) - from .group_0262 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis - from .group_0263 import ( + from .group_0269 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis + from .group_0270 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItems as CodeScanningVariantAnalysisPropScannedRepositoriesItems, ) - from .group_0264 import ( + from .group_0271 import ( CodeScanningVariantAnalysisPropSkippedRepositories as CodeScanningVariantAnalysisPropSkippedRepositories, ) - from .group_0264 import ( + from .group_0271 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos, ) - from .group_0265 import ( + from .group_0272 import ( CodeScanningVariantAnalysisRepoTask as CodeScanningVariantAnalysisRepoTask, ) - from .group_0266 import CodeScanningDefaultSetup as CodeScanningDefaultSetup - from .group_0267 import ( + from .group_0273 import CodeScanningDefaultSetup as CodeScanningDefaultSetup + from .group_0274 import ( CodeScanningDefaultSetupUpdate as CodeScanningDefaultSetupUpdate, ) - from .group_0268 import ( + from .group_0275 import ( CodeScanningDefaultSetupUpdateResponse as CodeScanningDefaultSetupUpdateResponse, ) - from .group_0269 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt - from .group_0270 import CodeScanningSarifsStatus as CodeScanningSarifsStatus - from .group_0271 import ( + from .group_0276 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt + from .group_0277 import CodeScanningSarifsStatus as CodeScanningSarifsStatus + from .group_0278 import ( CodeSecurityConfigurationForRepository as CodeSecurityConfigurationForRepository, ) - from .group_0272 import CodeownersErrors as CodeownersErrors - from .group_0272 import ( + from .group_0279 import CodeownersErrors as CodeownersErrors + from .group_0279 import ( CodeownersErrorsPropErrorsItems as CodeownersErrorsPropErrorsItems, ) - from .group_0273 import ( + from .group_0280 import ( CodespacesPermissionsCheckForDevcontainer as CodespacesPermissionsCheckForDevcontainer, ) - from .group_0274 import RepositoryInvitation as RepositoryInvitation - from .group_0275 import Collaborator as Collaborator - from .group_0275 import CollaboratorPropPermissions as CollaboratorPropPermissions - from .group_0275 import ( + from .group_0281 import RepositoryInvitation as RepositoryInvitation + from .group_0282 import Collaborator as Collaborator + from .group_0282 import CollaboratorPropPermissions as CollaboratorPropPermissions + from .group_0282 import ( RepositoryCollaboratorPermission as RepositoryCollaboratorPermission, ) - from .group_0276 import CommitComment as CommitComment - from .group_0276 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent - from .group_0277 import BranchShort as BranchShort - from .group_0277 import BranchShortPropCommit as BranchShortPropCommit - from .group_0278 import Link as Link - from .group_0279 import AutoMerge as AutoMerge - from .group_0280 import PullRequestSimple as PullRequestSimple - from .group_0280 import ( + from .group_0283 import CommitComment as CommitComment + from .group_0283 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent + from .group_0284 import BranchShort as BranchShort + from .group_0284 import BranchShortPropCommit as BranchShortPropCommit + from .group_0285 import Link as Link + from .group_0286 import AutoMerge as AutoMerge + from .group_0287 import PullRequestSimple as PullRequestSimple + from .group_0287 import ( PullRequestSimplePropLabelsItems as PullRequestSimplePropLabelsItems, ) - from .group_0281 import PullRequestSimplePropBase as PullRequestSimplePropBase - from .group_0281 import PullRequestSimplePropHead as PullRequestSimplePropHead - from .group_0282 import PullRequestSimplePropLinks as PullRequestSimplePropLinks - from .group_0283 import CombinedCommitStatus as CombinedCommitStatus - from .group_0283 import SimpleCommitStatus as SimpleCommitStatus - from .group_0284 import Status as Status - from .group_0285 import CommunityHealthFile as CommunityHealthFile - from .group_0285 import CommunityProfile as CommunityProfile - from .group_0285 import CommunityProfilePropFiles as CommunityProfilePropFiles - from .group_0286 import CommitComparison as CommitComparison - from .group_0287 import ContentTree as ContentTree - from .group_0287 import ContentTreePropEntriesItems as ContentTreePropEntriesItems - from .group_0287 import ( + from .group_0288 import PullRequestSimplePropBase as PullRequestSimplePropBase + from .group_0288 import PullRequestSimplePropHead as PullRequestSimplePropHead + from .group_0289 import PullRequestSimplePropLinks as PullRequestSimplePropLinks + from .group_0290 import CombinedCommitStatus as CombinedCommitStatus + from .group_0290 import SimpleCommitStatus as SimpleCommitStatus + from .group_0291 import Status as Status + from .group_0292 import CommunityHealthFile as CommunityHealthFile + from .group_0292 import CommunityProfile as CommunityProfile + from .group_0292 import CommunityProfilePropFiles as CommunityProfilePropFiles + from .group_0293 import CommitComparison as CommitComparison + from .group_0294 import ContentTree as ContentTree + from .group_0294 import ContentTreePropEntriesItems as ContentTreePropEntriesItems + from .group_0294 import ( ContentTreePropEntriesItemsPropLinks as ContentTreePropEntriesItemsPropLinks, ) - from .group_0287 import ContentTreePropLinks as ContentTreePropLinks - from .group_0288 import ContentDirectoryItems as ContentDirectoryItems - from .group_0288 import ( + from .group_0294 import ContentTreePropLinks as ContentTreePropLinks + from .group_0295 import ContentDirectoryItems as ContentDirectoryItems + from .group_0295 import ( ContentDirectoryItemsPropLinks as ContentDirectoryItemsPropLinks, ) - from .group_0289 import ContentFile as ContentFile - from .group_0289 import ContentFilePropLinks as ContentFilePropLinks - from .group_0290 import ContentSymlink as ContentSymlink - from .group_0290 import ContentSymlinkPropLinks as ContentSymlinkPropLinks - from .group_0291 import ContentSubmodule as ContentSubmodule - from .group_0291 import ContentSubmodulePropLinks as ContentSubmodulePropLinks - from .group_0292 import FileCommit as FileCommit - from .group_0292 import FileCommitPropCommit as FileCommitPropCommit - from .group_0292 import ( + from .group_0296 import ContentFile as ContentFile + from .group_0296 import ContentFilePropLinks as ContentFilePropLinks + from .group_0297 import ContentSymlink as ContentSymlink + from .group_0297 import ContentSymlinkPropLinks as ContentSymlinkPropLinks + from .group_0298 import ContentSubmodule as ContentSubmodule + from .group_0298 import ContentSubmodulePropLinks as ContentSubmodulePropLinks + from .group_0299 import FileCommit as FileCommit + from .group_0299 import FileCommitPropCommit as FileCommitPropCommit + from .group_0299 import ( FileCommitPropCommitPropAuthor as FileCommitPropCommitPropAuthor, ) - from .group_0292 import ( + from .group_0299 import ( FileCommitPropCommitPropCommitter as FileCommitPropCommitPropCommitter, ) - from .group_0292 import ( + from .group_0299 import ( FileCommitPropCommitPropParentsItems as FileCommitPropCommitPropParentsItems, ) - from .group_0292 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree - from .group_0292 import ( + from .group_0299 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree + from .group_0299 import ( FileCommitPropCommitPropVerification as FileCommitPropCommitPropVerification, ) - from .group_0292 import FileCommitPropContent as FileCommitPropContent - from .group_0292 import ( + from .group_0299 import FileCommitPropContent as FileCommitPropContent + from .group_0299 import ( FileCommitPropContentPropLinks as FileCommitPropContentPropLinks, ) - from .group_0293 import RepositoryRuleViolationError as RepositoryRuleViolationError - from .group_0293 import ( + from .group_0300 import RepositoryRuleViolationError as RepositoryRuleViolationError + from .group_0300 import ( RepositoryRuleViolationErrorPropMetadata as RepositoryRuleViolationErrorPropMetadata, ) - from .group_0293 import ( + from .group_0300 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanning as RepositoryRuleViolationErrorPropMetadataPropSecretScanning, ) - from .group_0293 import ( + from .group_0300 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems as RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems, ) - from .group_0294 import Contributor as Contributor - from .group_0295 import DependabotAlert as DependabotAlert - from .group_0296 import ( + from .group_0301 import Contributor as Contributor + from .group_0302 import DependabotAlert as DependabotAlert + from .group_0303 import ( DependabotAlertPropDependency as DependabotAlertPropDependency, ) - from .group_0297 import DependencyGraphDiffItems as DependencyGraphDiffItems - from .group_0297 import ( + from .group_0304 import DependencyGraphDiffItems as DependencyGraphDiffItems + from .group_0304 import ( DependencyGraphDiffItemsPropVulnerabilitiesItems as DependencyGraphDiffItemsPropVulnerabilitiesItems, ) - from .group_0298 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom - from .group_0298 import ( + from .group_0305 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom + from .group_0305 import ( DependencyGraphSpdxSbomPropSbom as DependencyGraphSpdxSbomPropSbom, ) - from .group_0298 import ( + from .group_0305 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfo as DependencyGraphSpdxSbomPropSbomPropCreationInfo, ) - from .group_0298 import ( + from .group_0305 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItems as DependencyGraphSpdxSbomPropSbomPropPackagesItems, ) - from .group_0298 import ( + from .group_0305 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems, ) - from .group_0298 import ( + from .group_0305 import ( DependencyGraphSpdxSbomPropSbomPropRelationshipsItems as DependencyGraphSpdxSbomPropSbomPropRelationshipsItems, ) - from .group_0299 import Metadata as Metadata - from .group_0300 import Dependency as Dependency - from .group_0301 import Manifest as Manifest - from .group_0301 import ManifestPropFile as ManifestPropFile - from .group_0301 import ManifestPropResolved as ManifestPropResolved - from .group_0302 import Snapshot as Snapshot - from .group_0302 import SnapshotPropDetector as SnapshotPropDetector - from .group_0302 import SnapshotPropJob as SnapshotPropJob - from .group_0302 import SnapshotPropManifests as SnapshotPropManifests - from .group_0303 import DeploymentStatus as DeploymentStatus - from .group_0304 import ( + from .group_0306 import Metadata as Metadata + from .group_0307 import Dependency as Dependency + from .group_0308 import Manifest as Manifest + from .group_0308 import ManifestPropFile as ManifestPropFile + from .group_0308 import ManifestPropResolved as ManifestPropResolved + from .group_0309 import Snapshot as Snapshot + from .group_0309 import SnapshotPropDetector as SnapshotPropDetector + from .group_0309 import SnapshotPropJob as SnapshotPropJob + from .group_0309 import SnapshotPropManifests as SnapshotPropManifests + from .group_0310 import DeploymentStatus as DeploymentStatus + from .group_0311 import ( DeploymentBranchPolicySettings as DeploymentBranchPolicySettings, ) - from .group_0305 import Environment as Environment - from .group_0305 import ( + from .group_0312 import Environment as Environment + from .group_0312 import ( EnvironmentPropProtectionRulesItemsAnyof0 as EnvironmentPropProtectionRulesItemsAnyof0, ) - from .group_0305 import ( + from .group_0312 import ( EnvironmentPropProtectionRulesItemsAnyof2 as EnvironmentPropProtectionRulesItemsAnyof2, ) - from .group_0305 import ( + from .group_0312 import ( ReposOwnerRepoEnvironmentsGetResponse200 as ReposOwnerRepoEnvironmentsGetResponse200, ) - from .group_0306 import ( + from .group_0313 import ( EnvironmentPropProtectionRulesItemsAnyof1 as EnvironmentPropProtectionRulesItemsAnyof1, ) - from .group_0307 import ( + from .group_0314 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems, ) - from .group_0308 import ( + from .group_0315 import ( DeploymentBranchPolicyNamePatternWithType as DeploymentBranchPolicyNamePatternWithType, ) - from .group_0309 import ( + from .group_0316 import ( DeploymentBranchPolicyNamePattern as DeploymentBranchPolicyNamePattern, ) - from .group_0310 import CustomDeploymentRuleApp as CustomDeploymentRuleApp - from .group_0311 import DeploymentProtectionRule as DeploymentProtectionRule - from .group_0311 import ( + from .group_0317 import CustomDeploymentRuleApp as CustomDeploymentRuleApp + from .group_0318 import DeploymentProtectionRule as DeploymentProtectionRule + from .group_0318 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200, ) - from .group_0312 import ShortBlob as ShortBlob - from .group_0313 import Blob as Blob - from .group_0314 import GitCommit as GitCommit - from .group_0314 import GitCommitPropAuthor as GitCommitPropAuthor - from .group_0314 import GitCommitPropCommitter as GitCommitPropCommitter - from .group_0314 import GitCommitPropParentsItems as GitCommitPropParentsItems - from .group_0314 import GitCommitPropTree as GitCommitPropTree - from .group_0314 import GitCommitPropVerification as GitCommitPropVerification - from .group_0315 import GitRef as GitRef - from .group_0315 import GitRefPropObject as GitRefPropObject - from .group_0316 import GitTag as GitTag - from .group_0316 import GitTagPropObject as GitTagPropObject - from .group_0316 import GitTagPropTagger as GitTagPropTagger - from .group_0317 import GitTree as GitTree - from .group_0317 import GitTreePropTreeItems as GitTreePropTreeItems - from .group_0318 import HookResponse as HookResponse - from .group_0319 import Hook as Hook - from .group_0320 import Import as Import - from .group_0320 import ( + from .group_0319 import ShortBlob as ShortBlob + from .group_0320 import Blob as Blob + from .group_0321 import GitCommit as GitCommit + from .group_0321 import GitCommitPropAuthor as GitCommitPropAuthor + from .group_0321 import GitCommitPropCommitter as GitCommitPropCommitter + from .group_0321 import GitCommitPropParentsItems as GitCommitPropParentsItems + from .group_0321 import GitCommitPropTree as GitCommitPropTree + from .group_0321 import GitCommitPropVerification as GitCommitPropVerification + from .group_0322 import GitRef as GitRef + from .group_0322 import GitRefPropObject as GitRefPropObject + from .group_0323 import GitTag as GitTag + from .group_0323 import GitTagPropObject as GitTagPropObject + from .group_0323 import GitTagPropTagger as GitTagPropTagger + from .group_0324 import GitTree as GitTree + from .group_0324 import GitTreePropTreeItems as GitTreePropTreeItems + from .group_0325 import HookResponse as HookResponse + from .group_0326 import Hook as Hook + from .group_0327 import Import as Import + from .group_0327 import ( ImportPropProjectChoicesItems as ImportPropProjectChoicesItems, ) - from .group_0321 import PorterAuthor as PorterAuthor - from .group_0322 import PorterLargeFile as PorterLargeFile - from .group_0323 import IssueEvent as IssueEvent - from .group_0323 import IssueEventDismissedReview as IssueEventDismissedReview - from .group_0323 import IssueEventLabel as IssueEventLabel - from .group_0323 import IssueEventMilestone as IssueEventMilestone - from .group_0323 import IssueEventProjectCard as IssueEventProjectCard - from .group_0323 import IssueEventRename as IssueEventRename - from .group_0324 import LabeledIssueEvent as LabeledIssueEvent - from .group_0324 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel - from .group_0325 import UnlabeledIssueEvent as UnlabeledIssueEvent - from .group_0325 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel - from .group_0326 import AssignedIssueEvent as AssignedIssueEvent - from .group_0327 import UnassignedIssueEvent as UnassignedIssueEvent - from .group_0328 import MilestonedIssueEvent as MilestonedIssueEvent - from .group_0328 import ( + from .group_0328 import PorterAuthor as PorterAuthor + from .group_0329 import PorterLargeFile as PorterLargeFile + from .group_0330 import IssueEvent as IssueEvent + from .group_0330 import IssueEventDismissedReview as IssueEventDismissedReview + from .group_0330 import IssueEventLabel as IssueEventLabel + from .group_0330 import IssueEventMilestone as IssueEventMilestone + from .group_0330 import IssueEventProjectCard as IssueEventProjectCard + from .group_0330 import IssueEventRename as IssueEventRename + from .group_0331 import LabeledIssueEvent as LabeledIssueEvent + from .group_0331 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel + from .group_0332 import UnlabeledIssueEvent as UnlabeledIssueEvent + from .group_0332 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel + from .group_0333 import AssignedIssueEvent as AssignedIssueEvent + from .group_0334 import UnassignedIssueEvent as UnassignedIssueEvent + from .group_0335 import MilestonedIssueEvent as MilestonedIssueEvent + from .group_0335 import ( MilestonedIssueEventPropMilestone as MilestonedIssueEventPropMilestone, ) - from .group_0329 import DemilestonedIssueEvent as DemilestonedIssueEvent - from .group_0329 import ( + from .group_0336 import DemilestonedIssueEvent as DemilestonedIssueEvent + from .group_0336 import ( DemilestonedIssueEventPropMilestone as DemilestonedIssueEventPropMilestone, ) - from .group_0330 import RenamedIssueEvent as RenamedIssueEvent - from .group_0330 import RenamedIssueEventPropRename as RenamedIssueEventPropRename - from .group_0331 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent - from .group_0332 import ( + from .group_0337 import RenamedIssueEvent as RenamedIssueEvent + from .group_0337 import RenamedIssueEventPropRename as RenamedIssueEventPropRename + from .group_0338 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent + from .group_0339 import ( ReviewRequestRemovedIssueEvent as ReviewRequestRemovedIssueEvent, ) - from .group_0333 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent - from .group_0333 import ( + from .group_0340 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent + from .group_0340 import ( ReviewDismissedIssueEventPropDismissedReview as ReviewDismissedIssueEventPropDismissedReview, ) - from .group_0334 import LockedIssueEvent as LockedIssueEvent - from .group_0335 import AddedToProjectIssueEvent as AddedToProjectIssueEvent - from .group_0335 import ( + from .group_0341 import LockedIssueEvent as LockedIssueEvent + from .group_0342 import AddedToProjectIssueEvent as AddedToProjectIssueEvent + from .group_0342 import ( AddedToProjectIssueEventPropProjectCard as AddedToProjectIssueEventPropProjectCard, ) - from .group_0336 import ( + from .group_0343 import ( MovedColumnInProjectIssueEvent as MovedColumnInProjectIssueEvent, ) - from .group_0336 import ( + from .group_0343 import ( MovedColumnInProjectIssueEventPropProjectCard as MovedColumnInProjectIssueEventPropProjectCard, ) - from .group_0337 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent - from .group_0337 import ( + from .group_0344 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent + from .group_0344 import ( RemovedFromProjectIssueEventPropProjectCard as RemovedFromProjectIssueEventPropProjectCard, ) - from .group_0338 import ( + from .group_0345 import ( ConvertedNoteToIssueIssueEvent as ConvertedNoteToIssueIssueEvent, ) - from .group_0338 import ( + from .group_0345 import ( ConvertedNoteToIssueIssueEventPropProjectCard as ConvertedNoteToIssueIssueEventPropProjectCard, ) - from .group_0339 import TimelineCommentEvent as TimelineCommentEvent - from .group_0340 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent - from .group_0341 import ( + from .group_0346 import TimelineCommentEvent as TimelineCommentEvent + from .group_0347 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent + from .group_0348 import ( TimelineCrossReferencedEventPropSource as TimelineCrossReferencedEventPropSource, ) - from .group_0342 import TimelineCommittedEvent as TimelineCommittedEvent - from .group_0342 import ( + from .group_0349 import TimelineCommittedEvent as TimelineCommittedEvent + from .group_0349 import ( TimelineCommittedEventPropAuthor as TimelineCommittedEventPropAuthor, ) - from .group_0342 import ( + from .group_0349 import ( TimelineCommittedEventPropCommitter as TimelineCommittedEventPropCommitter, ) - from .group_0342 import ( + from .group_0349 import ( TimelineCommittedEventPropParentsItems as TimelineCommittedEventPropParentsItems, ) - from .group_0342 import ( + from .group_0349 import ( TimelineCommittedEventPropTree as TimelineCommittedEventPropTree, ) - from .group_0342 import ( + from .group_0349 import ( TimelineCommittedEventPropVerification as TimelineCommittedEventPropVerification, ) - from .group_0343 import TimelineReviewedEvent as TimelineReviewedEvent - from .group_0343 import ( + from .group_0350 import TimelineReviewedEvent as TimelineReviewedEvent + from .group_0350 import ( TimelineReviewedEventPropLinks as TimelineReviewedEventPropLinks, ) - from .group_0343 import ( + from .group_0350 import ( TimelineReviewedEventPropLinksPropHtml as TimelineReviewedEventPropLinksPropHtml, ) - from .group_0343 import ( + from .group_0350 import ( TimelineReviewedEventPropLinksPropPullRequest as TimelineReviewedEventPropLinksPropPullRequest, ) - from .group_0344 import PullRequestReviewComment as PullRequestReviewComment - from .group_0344 import ( + from .group_0351 import PullRequestReviewComment as PullRequestReviewComment + from .group_0351 import ( PullRequestReviewCommentPropLinks as PullRequestReviewCommentPropLinks, ) - from .group_0344 import ( + from .group_0351 import ( PullRequestReviewCommentPropLinksPropHtml as PullRequestReviewCommentPropLinksPropHtml, ) - from .group_0344 import ( + from .group_0351 import ( PullRequestReviewCommentPropLinksPropPullRequest as PullRequestReviewCommentPropLinksPropPullRequest, ) - from .group_0344 import ( + from .group_0351 import ( PullRequestReviewCommentPropLinksPropSelf as PullRequestReviewCommentPropLinksPropSelf, ) - from .group_0344 import TimelineLineCommentedEvent as TimelineLineCommentedEvent - from .group_0345 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent - from .group_0346 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent - from .group_0347 import StateChangeIssueEvent as StateChangeIssueEvent - from .group_0348 import DeployKey as DeployKey - from .group_0349 import Language as Language - from .group_0350 import LicenseContent as LicenseContent - from .group_0350 import LicenseContentPropLinks as LicenseContentPropLinks - from .group_0351 import MergedUpstream as MergedUpstream - from .group_0352 import Page as Page - from .group_0352 import PagesHttpsCertificate as PagesHttpsCertificate - from .group_0352 import PagesSourceHash as PagesSourceHash - from .group_0353 import PageBuild as PageBuild - from .group_0353 import PageBuildPropError as PageBuildPropError - from .group_0354 import PageBuildStatus as PageBuildStatus - from .group_0355 import PageDeployment as PageDeployment - from .group_0356 import PagesDeploymentStatus as PagesDeploymentStatus - from .group_0357 import PagesHealthCheck as PagesHealthCheck - from .group_0357 import ( + from .group_0351 import TimelineLineCommentedEvent as TimelineLineCommentedEvent + from .group_0352 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent + from .group_0353 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent + from .group_0354 import StateChangeIssueEvent as StateChangeIssueEvent + from .group_0355 import DeployKey as DeployKey + from .group_0356 import Language as Language + from .group_0357 import LicenseContent as LicenseContent + from .group_0357 import LicenseContentPropLinks as LicenseContentPropLinks + from .group_0358 import MergedUpstream as MergedUpstream + from .group_0359 import Page as Page + from .group_0359 import PagesHttpsCertificate as PagesHttpsCertificate + from .group_0359 import PagesSourceHash as PagesSourceHash + from .group_0360 import PageBuild as PageBuild + from .group_0360 import PageBuildPropError as PageBuildPropError + from .group_0361 import PageBuildStatus as PageBuildStatus + from .group_0362 import PageDeployment as PageDeployment + from .group_0363 import PagesDeploymentStatus as PagesDeploymentStatus + from .group_0364 import PagesHealthCheck as PagesHealthCheck + from .group_0364 import ( PagesHealthCheckPropAltDomain as PagesHealthCheckPropAltDomain, ) - from .group_0357 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain - from .group_0358 import PullRequest as PullRequest - from .group_0359 import PullRequestPropLabelsItems as PullRequestPropLabelsItems - from .group_0360 import PullRequestPropBase as PullRequestPropBase - from .group_0360 import PullRequestPropHead as PullRequestPropHead - from .group_0361 import PullRequestPropLinks as PullRequestPropLinks - from .group_0362 import PullRequestMergeResult as PullRequestMergeResult - from .group_0363 import PullRequestReviewRequest as PullRequestReviewRequest - from .group_0364 import PullRequestReview as PullRequestReview - from .group_0364 import PullRequestReviewPropLinks as PullRequestReviewPropLinks - from .group_0364 import ( + from .group_0364 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain + from .group_0365 import PullRequest as PullRequest + from .group_0366 import PullRequestPropLabelsItems as PullRequestPropLabelsItems + from .group_0367 import PullRequestPropBase as PullRequestPropBase + from .group_0367 import PullRequestPropHead as PullRequestPropHead + from .group_0368 import PullRequestPropLinks as PullRequestPropLinks + from .group_0369 import PullRequestMergeResult as PullRequestMergeResult + from .group_0370 import PullRequestReviewRequest as PullRequestReviewRequest + from .group_0371 import PullRequestReview as PullRequestReview + from .group_0371 import PullRequestReviewPropLinks as PullRequestReviewPropLinks + from .group_0371 import ( PullRequestReviewPropLinksPropHtml as PullRequestReviewPropLinksPropHtml, ) - from .group_0364 import ( + from .group_0371 import ( PullRequestReviewPropLinksPropPullRequest as PullRequestReviewPropLinksPropPullRequest, ) - from .group_0365 import ReviewComment as ReviewComment - from .group_0366 import ReviewCommentPropLinks as ReviewCommentPropLinks - from .group_0367 import ReleaseAsset as ReleaseAsset - from .group_0368 import Release as Release - from .group_0369 import ReleaseNotesContent as ReleaseNotesContent - from .group_0370 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo - from .group_0371 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 - from .group_0372 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 - from .group_0373 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 - from .group_0374 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 - from .group_0375 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 - from .group_0376 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 - from .group_0377 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 - from .group_0378 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 - from .group_0379 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 - from .group_0380 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 - from .group_0381 import ( + from .group_0372 import ReviewComment as ReviewComment + from .group_0373 import ReviewCommentPropLinks as ReviewCommentPropLinks + from .group_0374 import ReleaseAsset as ReleaseAsset + from .group_0375 import Release as Release + from .group_0376 import ReleaseNotesContent as ReleaseNotesContent + from .group_0377 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo + from .group_0378 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 + from .group_0379 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 + from .group_0380 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 + from .group_0381 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 + from .group_0382 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 + from .group_0383 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 + from .group_0384 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 + from .group_0385 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 + from .group_0386 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 + from .group_0387 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 + from .group_0388 import ( RepositoryRuleDetailedOneof10 as RepositoryRuleDetailedOneof10, ) - from .group_0382 import ( + from .group_0389 import ( RepositoryRuleDetailedOneof11 as RepositoryRuleDetailedOneof11, ) - from .group_0383 import ( + from .group_0390 import ( RepositoryRuleDetailedOneof12 as RepositoryRuleDetailedOneof12, ) - from .group_0384 import ( + from .group_0391 import ( RepositoryRuleDetailedOneof13 as RepositoryRuleDetailedOneof13, ) - from .group_0385 import ( + from .group_0392 import ( RepositoryRuleDetailedOneof14 as RepositoryRuleDetailedOneof14, ) - from .group_0386 import ( + from .group_0393 import ( RepositoryRuleDetailedOneof15 as RepositoryRuleDetailedOneof15, ) - from .group_0387 import ( + from .group_0394 import ( RepositoryRuleDetailedOneof16 as RepositoryRuleDetailedOneof16, ) - from .group_0388 import SecretScanningAlert as SecretScanningAlert - from .group_0389 import ( + from .group_0395 import SecretScanningAlert as SecretScanningAlert + from .group_0396 import ( SecretScanningPushProtectionBypass as SecretScanningPushProtectionBypass, ) - from .group_0390 import SecretScanningScan as SecretScanningScan - from .group_0390 import SecretScanningScanHistory as SecretScanningScanHistory - from .group_0390 import ( + from .group_0397 import SecretScanningScan as SecretScanningScan + from .group_0397 import SecretScanningScanHistory as SecretScanningScanHistory + from .group_0397 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItems as SecretScanningScanHistoryPropCustomPatternBackfillScansItems, ) - from .group_0391 import ( + from .group_0398 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1 as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1, ) - from .group_0392 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate - from .group_0392 import ( + from .group_0399 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate + from .group_0399 import ( RepositoryAdvisoryCreatePropCreditsItems as RepositoryAdvisoryCreatePropCreditsItems, ) - from .group_0392 import ( + from .group_0399 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItems as RepositoryAdvisoryCreatePropVulnerabilitiesItems, ) - from .group_0392 import ( + from .group_0399 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0393 import ( + from .group_0400 import ( PrivateVulnerabilityReportCreate as PrivateVulnerabilityReportCreate, ) - from .group_0393 import ( + from .group_0400 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItems as PrivateVulnerabilityReportCreatePropVulnerabilitiesItems, ) - from .group_0393 import ( + from .group_0400 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0394 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate - from .group_0394 import ( + from .group_0401 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate + from .group_0401 import ( RepositoryAdvisoryUpdatePropCreditsItems as RepositoryAdvisoryUpdatePropCreditsItems, ) - from .group_0394 import ( + from .group_0401 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItems as RepositoryAdvisoryUpdatePropVulnerabilitiesItems, ) - from .group_0394 import ( + from .group_0401 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage, ) - from .group_0395 import Stargazer as Stargazer - from .group_0396 import CommitActivity as CommitActivity - from .group_0397 import ContributorActivity as ContributorActivity - from .group_0397 import ( + from .group_0402 import Stargazer as Stargazer + from .group_0403 import CommitActivity as CommitActivity + from .group_0404 import ContributorActivity as ContributorActivity + from .group_0404 import ( ContributorActivityPropWeeksItems as ContributorActivityPropWeeksItems, ) - from .group_0398 import ParticipationStats as ParticipationStats - from .group_0399 import RepositorySubscription as RepositorySubscription - from .group_0400 import Tag as Tag - from .group_0400 import TagPropCommit as TagPropCommit - from .group_0401 import TagProtection as TagProtection - from .group_0402 import Topic as Topic - from .group_0403 import Traffic as Traffic - from .group_0404 import CloneTraffic as CloneTraffic - from .group_0405 import ContentTraffic as ContentTraffic - from .group_0406 import ReferrerTraffic as ReferrerTraffic - from .group_0407 import ViewTraffic as ViewTraffic - from .group_0408 import GroupResponse as GroupResponse - from .group_0408 import ( + from .group_0405 import ParticipationStats as ParticipationStats + from .group_0406 import RepositorySubscription as RepositorySubscription + from .group_0407 import Tag as Tag + from .group_0407 import TagPropCommit as TagPropCommit + from .group_0408 import TagProtection as TagProtection + from .group_0409 import Topic as Topic + from .group_0410 import Traffic as Traffic + from .group_0411 import CloneTraffic as CloneTraffic + from .group_0412 import ContentTraffic as ContentTraffic + from .group_0413 import ReferrerTraffic as ReferrerTraffic + from .group_0414 import ViewTraffic as ViewTraffic + from .group_0415 import GroupResponse as GroupResponse + from .group_0415 import ( GroupResponsePropMembersItems as GroupResponsePropMembersItems, ) - from .group_0409 import Meta as Meta - from .group_0410 import ScimEnterpriseGroupList as ScimEnterpriseGroupList - from .group_0410 import ScimEnterpriseGroupResponse as ScimEnterpriseGroupResponse - from .group_0410 import ( + from .group_0416 import Meta as Meta + from .group_0417 import ScimEnterpriseGroupList as ScimEnterpriseGroupList + from .group_0417 import ScimEnterpriseGroupResponse as ScimEnterpriseGroupResponse + from .group_0417 import ( ScimEnterpriseGroupResponseMergedMembers as ScimEnterpriseGroupResponseMergedMembers, ) - from .group_0411 import ( + from .group_0418 import ( ScimEnterpriseGroupResponseAllof1 as ScimEnterpriseGroupResponseAllof1, ) - from .group_0411 import ( + from .group_0418 import ( ScimEnterpriseGroupResponseAllof1PropMembersItems as ScimEnterpriseGroupResponseAllof1PropMembersItems, ) - from .group_0412 import Group as Group - from .group_0412 import GroupPropMembersItems as GroupPropMembersItems - from .group_0413 import PatchSchema as PatchSchema - from .group_0413 import ( + from .group_0419 import Group as Group + from .group_0419 import GroupPropMembersItems as GroupPropMembersItems + from .group_0420 import PatchSchema as PatchSchema + from .group_0420 import ( PatchSchemaPropOperationsItems as PatchSchemaPropOperationsItems, ) - from .group_0414 import UserEmailsResponseItems as UserEmailsResponseItems - from .group_0414 import UserNameResponse as UserNameResponse - from .group_0415 import UserRoleItems as UserRoleItems - from .group_0416 import UserResponse as UserResponse - from .group_0417 import ScimEnterpriseUserList as ScimEnterpriseUserList - from .group_0417 import ScimEnterpriseUserResponse as ScimEnterpriseUserResponse - from .group_0418 import ( + from .group_0421 import UserEmailsResponseItems as UserEmailsResponseItems + from .group_0421 import UserNameResponse as UserNameResponse + from .group_0422 import UserRoleItems as UserRoleItems + from .group_0423 import UserResponse as UserResponse + from .group_0424 import ScimEnterpriseUserList as ScimEnterpriseUserList + from .group_0424 import ScimEnterpriseUserResponse as ScimEnterpriseUserResponse + from .group_0425 import ( ScimEnterpriseUserResponseAllof1 as ScimEnterpriseUserResponseAllof1, ) - from .group_0419 import ( + from .group_0426 import ( ScimEnterpriseUserResponseAllof1PropGroupsItems as ScimEnterpriseUserResponseAllof1PropGroupsItems, ) - from .group_0420 import User as User - from .group_0420 import UserEmailsItems as UserEmailsItems - from .group_0420 import UserName as UserName - from .group_0421 import ScimUser as ScimUser - from .group_0421 import ScimUserList as ScimUserList - from .group_0421 import ScimUserPropEmailsItems as ScimUserPropEmailsItems - from .group_0421 import ScimUserPropGroupsItems as ScimUserPropGroupsItems - from .group_0421 import ScimUserPropMeta as ScimUserPropMeta - from .group_0421 import ScimUserPropName as ScimUserPropName - from .group_0421 import ScimUserPropOperationsItems as ScimUserPropOperationsItems - from .group_0421 import ( + from .group_0427 import User as User + from .group_0427 import UserEmailsItems as UserEmailsItems + from .group_0427 import UserName as UserName + from .group_0428 import ScimUser as ScimUser + from .group_0428 import ScimUserList as ScimUserList + from .group_0428 import ScimUserPropEmailsItems as ScimUserPropEmailsItems + from .group_0428 import ScimUserPropGroupsItems as ScimUserPropGroupsItems + from .group_0428 import ScimUserPropMeta as ScimUserPropMeta + from .group_0428 import ScimUserPropName as ScimUserPropName + from .group_0428 import ScimUserPropOperationsItems as ScimUserPropOperationsItems + from .group_0428 import ( ScimUserPropOperationsItemsPropValueOneof1 as ScimUserPropOperationsItemsPropValueOneof1, ) - from .group_0421 import ScimUserPropRolesItems as ScimUserPropRolesItems - from .group_0422 import SearchResultTextMatchesItems as SearchResultTextMatchesItems - from .group_0422 import ( + from .group_0428 import ScimUserPropRolesItems as ScimUserPropRolesItems + from .group_0429 import SearchResultTextMatchesItems as SearchResultTextMatchesItems + from .group_0429 import ( SearchResultTextMatchesItemsPropMatchesItems as SearchResultTextMatchesItemsPropMatchesItems, ) - from .group_0423 import CodeSearchResultItem as CodeSearchResultItem - from .group_0423 import SearchCodeGetResponse200 as SearchCodeGetResponse200 - from .group_0424 import CommitSearchResultItem as CommitSearchResultItem - from .group_0424 import ( + from .group_0430 import CodeSearchResultItem as CodeSearchResultItem + from .group_0430 import SearchCodeGetResponse200 as SearchCodeGetResponse200 + from .group_0431 import CommitSearchResultItem as CommitSearchResultItem + from .group_0431 import ( CommitSearchResultItemPropParentsItems as CommitSearchResultItemPropParentsItems, ) - from .group_0424 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 - from .group_0425 import ( + from .group_0431 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 + from .group_0432 import ( CommitSearchResultItemPropCommit as CommitSearchResultItemPropCommit, ) - from .group_0425 import ( + from .group_0432 import ( CommitSearchResultItemPropCommitPropAuthor as CommitSearchResultItemPropCommitPropAuthor, ) - from .group_0425 import ( + from .group_0432 import ( CommitSearchResultItemPropCommitPropTree as CommitSearchResultItemPropCommitPropTree, ) - from .group_0426 import IssueSearchResultItem as IssueSearchResultItem - from .group_0426 import ( + from .group_0433 import IssueSearchResultItem as IssueSearchResultItem + from .group_0433 import ( IssueSearchResultItemPropLabelsItems as IssueSearchResultItemPropLabelsItems, ) - from .group_0426 import ( + from .group_0433 import ( IssueSearchResultItemPropPullRequest as IssueSearchResultItemPropPullRequest, ) - from .group_0426 import ( + from .group_0433 import ( IssueSearchResultItemPropSubIssuesSummary as IssueSearchResultItemPropSubIssuesSummary, ) - from .group_0426 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 - from .group_0427 import LabelSearchResultItem as LabelSearchResultItem - from .group_0427 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 - from .group_0428 import RepoSearchResultItem as RepoSearchResultItem - from .group_0428 import ( + from .group_0433 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 + from .group_0434 import LabelSearchResultItem as LabelSearchResultItem + from .group_0434 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 + from .group_0435 import RepoSearchResultItem as RepoSearchResultItem + from .group_0435 import ( RepoSearchResultItemPropPermissions as RepoSearchResultItemPropPermissions, ) - from .group_0428 import ( + from .group_0435 import ( SearchRepositoriesGetResponse200 as SearchRepositoriesGetResponse200, ) - from .group_0429 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 - from .group_0429 import TopicSearchResultItem as TopicSearchResultItem - from .group_0429 import ( + from .group_0436 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 + from .group_0436 import TopicSearchResultItem as TopicSearchResultItem + from .group_0436 import ( TopicSearchResultItemPropAliasesItems as TopicSearchResultItemPropAliasesItems, ) - from .group_0429 import ( + from .group_0436 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelation as TopicSearchResultItemPropAliasesItemsPropTopicRelation, ) - from .group_0429 import ( + from .group_0436 import ( TopicSearchResultItemPropRelatedItems as TopicSearchResultItemPropRelatedItems, ) - from .group_0429 import ( + from .group_0436 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelation as TopicSearchResultItemPropRelatedItemsPropTopicRelation, ) - from .group_0430 import SearchUsersGetResponse200 as SearchUsersGetResponse200 - from .group_0430 import UserSearchResultItem as UserSearchResultItem - from .group_0431 import PrivateUser as PrivateUser - from .group_0431 import PrivateUserPropPlan as PrivateUserPropPlan - from .group_0432 import CodespacesUserPublicKey as CodespacesUserPublicKey - from .group_0433 import CodespaceExportDetails as CodespaceExportDetails - from .group_0434 import CodespaceWithFullRepository as CodespaceWithFullRepository - from .group_0434 import ( + from .group_0437 import SearchUsersGetResponse200 as SearchUsersGetResponse200 + from .group_0437 import UserSearchResultItem as UserSearchResultItem + from .group_0438 import PrivateUser as PrivateUser + from .group_0438 import PrivateUserPropPlan as PrivateUserPropPlan + from .group_0439 import CodespacesUserPublicKey as CodespacesUserPublicKey + from .group_0440 import CodespaceExportDetails as CodespaceExportDetails + from .group_0441 import CodespaceWithFullRepository as CodespaceWithFullRepository + from .group_0441 import ( CodespaceWithFullRepositoryPropGitStatus as CodespaceWithFullRepositoryPropGitStatus, ) - from .group_0434 import ( + from .group_0441 import ( CodespaceWithFullRepositoryPropRuntimeConstraints as CodespaceWithFullRepositoryPropRuntimeConstraints, ) - from .group_0435 import Email as Email - from .group_0436 import GpgKey as GpgKey - from .group_0436 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems - from .group_0436 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems - from .group_0436 import ( + from .group_0442 import Email as Email + from .group_0443 import GpgKey as GpgKey + from .group_0443 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems + from .group_0443 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems + from .group_0443 import ( GpgKeyPropSubkeysItemsPropEmailsItems as GpgKeyPropSubkeysItemsPropEmailsItems, ) - from .group_0437 import Key as Key - from .group_0438 import MarketplaceAccount as MarketplaceAccount - from .group_0438 import UserMarketplacePurchase as UserMarketplacePurchase - from .group_0439 import SocialAccount as SocialAccount - from .group_0440 import SshSigningKey as SshSigningKey - from .group_0441 import StarredRepository as StarredRepository - from .group_0442 import Hovercard as Hovercard - from .group_0442 import HovercardPropContextsItems as HovercardPropContextsItems - from .group_0443 import KeySimple as KeySimple - from .group_0444 import EnterpriseWebhooks as EnterpriseWebhooks - from .group_0445 import SimpleInstallation as SimpleInstallation - from .group_0446 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks - from .group_0447 import RepositoryWebhooks as RepositoryWebhooks - from .group_0447 import ( + from .group_0444 import Key as Key + from .group_0445 import MarketplaceAccount as MarketplaceAccount + from .group_0445 import UserMarketplacePurchase as UserMarketplacePurchase + from .group_0446 import SocialAccount as SocialAccount + from .group_0447 import SshSigningKey as SshSigningKey + from .group_0448 import StarredRepository as StarredRepository + from .group_0449 import Hovercard as Hovercard + from .group_0449 import HovercardPropContextsItems as HovercardPropContextsItems + from .group_0450 import KeySimple as KeySimple + from .group_0451 import EnterpriseWebhooks as EnterpriseWebhooks + from .group_0452 import SimpleInstallation as SimpleInstallation + from .group_0453 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks + from .group_0454 import RepositoryWebhooks as RepositoryWebhooks + from .group_0454 import ( RepositoryWebhooksPropCustomProperties as RepositoryWebhooksPropCustomProperties, ) - from .group_0447 import ( + from .group_0454 import ( RepositoryWebhooksPropPermissions as RepositoryWebhooksPropPermissions, ) - from .group_0447 import ( + from .group_0454 import ( RepositoryWebhooksPropTemplateRepository as RepositoryWebhooksPropTemplateRepository, ) - from .group_0447 import ( + from .group_0454 import ( RepositoryWebhooksPropTemplateRepositoryPropOwner as RepositoryWebhooksPropTemplateRepositoryPropOwner, ) - from .group_0447 import ( + from .group_0454 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissions as RepositoryWebhooksPropTemplateRepositoryPropPermissions, ) - from .group_0448 import WebhooksRule as WebhooksRule - from .group_0449 import ExemptionResponse as ExemptionResponse - from .group_0450 import ExemptionRequest as ExemptionRequest - from .group_0450 import ( + from .group_0455 import WebhooksRule as WebhooksRule + from .group_0456 import ExemptionResponse as ExemptionResponse + from .group_0457 import ExemptionRequest as ExemptionRequest + from .group_0457 import ( ExemptionRequestPushRulesetBypass as ExemptionRequestPushRulesetBypass, ) - from .group_0450 import ( + from .group_0457 import ( ExemptionRequestPushRulesetBypassPropDataItems as ExemptionRequestPushRulesetBypassPropDataItems, ) - from .group_0450 import ( + from .group_0457 import ( ExemptionRequestSecretScanning as ExemptionRequestSecretScanning, ) - from .group_0450 import ( + from .group_0457 import ( ExemptionRequestSecretScanningMetadata as ExemptionRequestSecretScanningMetadata, ) - from .group_0450 import ( + from .group_0457 import ( ExemptionRequestSecretScanningPropDataItems as ExemptionRequestSecretScanningPropDataItems, ) - from .group_0450 import ( + from .group_0457 import ( ExemptionRequestSecretScanningPropDataItemsPropLocationsItems as ExemptionRequestSecretScanningPropDataItemsPropLocationsItems, ) - from .group_0451 import SimpleCheckSuite as SimpleCheckSuite - from .group_0452 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite - from .group_0452 import ( + from .group_0458 import SimpleCheckSuite as SimpleCheckSuite + from .group_0459 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite + from .group_0459 import ( CheckRunWithSimpleCheckSuitePropOutput as CheckRunWithSimpleCheckSuitePropOutput, ) - from .group_0453 import WebhooksDeployKey as WebhooksDeployKey - from .group_0454 import WebhooksWorkflow as WebhooksWorkflow - from .group_0455 import WebhooksApprover as WebhooksApprover - from .group_0455 import WebhooksReviewersItems as WebhooksReviewersItems - from .group_0455 import ( + from .group_0460 import WebhooksDeployKey as WebhooksDeployKey + from .group_0461 import WebhooksWorkflow as WebhooksWorkflow + from .group_0462 import WebhooksApprover as WebhooksApprover + from .group_0462 import WebhooksReviewersItems as WebhooksReviewersItems + from .group_0462 import ( WebhooksReviewersItemsPropReviewer as WebhooksReviewersItemsPropReviewer, ) - from .group_0456 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun - from .group_0457 import WebhooksUser as WebhooksUser - from .group_0458 import WebhooksAnswer as WebhooksAnswer - from .group_0458 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions - from .group_0458 import WebhooksAnswerPropUser as WebhooksAnswerPropUser - from .group_0459 import Discussion as Discussion - from .group_0459 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy - from .group_0459 import DiscussionPropCategory as DiscussionPropCategory - from .group_0459 import DiscussionPropReactions as DiscussionPropReactions - from .group_0459 import DiscussionPropUser as DiscussionPropUser - from .group_0459 import Label as Label - from .group_0460 import WebhooksComment as WebhooksComment - from .group_0460 import WebhooksCommentPropReactions as WebhooksCommentPropReactions - from .group_0460 import WebhooksCommentPropUser as WebhooksCommentPropUser - from .group_0461 import WebhooksLabel as WebhooksLabel - from .group_0462 import WebhooksRepositoriesItems as WebhooksRepositoriesItems - from .group_0463 import ( + from .group_0463 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun + from .group_0464 import WebhooksUser as WebhooksUser + from .group_0465 import WebhooksAnswer as WebhooksAnswer + from .group_0465 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions + from .group_0465 import WebhooksAnswerPropUser as WebhooksAnswerPropUser + from .group_0466 import Discussion as Discussion + from .group_0466 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy + from .group_0466 import DiscussionPropCategory as DiscussionPropCategory + from .group_0466 import DiscussionPropReactions as DiscussionPropReactions + from .group_0466 import DiscussionPropUser as DiscussionPropUser + from .group_0466 import Label as Label + from .group_0467 import WebhooksComment as WebhooksComment + from .group_0467 import WebhooksCommentPropReactions as WebhooksCommentPropReactions + from .group_0467 import WebhooksCommentPropUser as WebhooksCommentPropUser + from .group_0468 import WebhooksLabel as WebhooksLabel + from .group_0469 import WebhooksRepositoriesItems as WebhooksRepositoriesItems + from .group_0470 import ( WebhooksRepositoriesAddedItems as WebhooksRepositoriesAddedItems, ) - from .group_0464 import WebhooksIssueComment as WebhooksIssueComment - from .group_0464 import ( + from .group_0471 import WebhooksIssueComment as WebhooksIssueComment + from .group_0471 import ( WebhooksIssueCommentPropReactions as WebhooksIssueCommentPropReactions, ) - from .group_0464 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser - from .group_0465 import WebhooksChanges as WebhooksChanges - from .group_0465 import WebhooksChangesPropBody as WebhooksChangesPropBody - from .group_0466 import WebhooksIssue as WebhooksIssue - from .group_0466 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee - from .group_0466 import ( + from .group_0471 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser + from .group_0472 import WebhooksChanges as WebhooksChanges + from .group_0472 import WebhooksChangesPropBody as WebhooksChangesPropBody + from .group_0473 import WebhooksIssue as WebhooksIssue + from .group_0473 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee + from .group_0473 import ( WebhooksIssuePropAssigneesItems as WebhooksIssuePropAssigneesItems, ) - from .group_0466 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems - from .group_0466 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone - from .group_0466 import ( + from .group_0473 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems + from .group_0473 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone + from .group_0473 import ( WebhooksIssuePropMilestonePropCreator as WebhooksIssuePropMilestonePropCreator, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropPerformedViaGithubApp as WebhooksIssuePropPerformedViaGithubApp, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropPerformedViaGithubAppPropOwner as WebhooksIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissions as WebhooksIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0466 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest - from .group_0466 import WebhooksIssuePropReactions as WebhooksIssuePropReactions - from .group_0466 import ( + from .group_0473 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest + from .group_0473 import WebhooksIssuePropReactions as WebhooksIssuePropReactions + from .group_0473 import ( WebhooksIssuePropSubIssuesSummary as WebhooksIssuePropSubIssuesSummary, ) - from .group_0466 import WebhooksIssuePropUser as WebhooksIssuePropUser - from .group_0467 import WebhooksMilestone as WebhooksMilestone - from .group_0467 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator - from .group_0468 import WebhooksIssue2 as WebhooksIssue2 - from .group_0468 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee - from .group_0468 import ( + from .group_0473 import WebhooksIssuePropUser as WebhooksIssuePropUser + from .group_0474 import WebhooksMilestone as WebhooksMilestone + from .group_0474 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator + from .group_0475 import WebhooksIssue2 as WebhooksIssue2 + from .group_0475 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee + from .group_0475 import ( WebhooksIssue2PropAssigneesItems as WebhooksIssue2PropAssigneesItems, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropLabelsItems as WebhooksIssue2PropLabelsItems, ) - from .group_0468 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone - from .group_0468 import ( + from .group_0475 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone + from .group_0475 import ( WebhooksIssue2PropMilestonePropCreator as WebhooksIssue2PropMilestonePropCreator, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropPerformedViaGithubApp as WebhooksIssue2PropPerformedViaGithubApp, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwner as WebhooksIssue2PropPerformedViaGithubAppPropOwner, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissions as WebhooksIssue2PropPerformedViaGithubAppPropPermissions, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropPullRequest as WebhooksIssue2PropPullRequest, ) - from .group_0468 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions - from .group_0468 import ( + from .group_0475 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions + from .group_0475 import ( WebhooksIssue2PropSubIssuesSummary as WebhooksIssue2PropSubIssuesSummary, ) - from .group_0468 import WebhooksIssue2PropUser as WebhooksIssue2PropUser - from .group_0469 import WebhooksUserMannequin as WebhooksUserMannequin - from .group_0470 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase - from .group_0470 import ( + from .group_0475 import WebhooksIssue2PropUser as WebhooksIssue2PropUser + from .group_0476 import WebhooksUserMannequin as WebhooksUserMannequin + from .group_0477 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase + from .group_0477 import ( WebhooksMarketplacePurchasePropAccount as WebhooksMarketplacePurchasePropAccount, ) - from .group_0470 import ( + from .group_0477 import ( WebhooksMarketplacePurchasePropPlan as WebhooksMarketplacePurchasePropPlan, ) - from .group_0471 import ( + from .group_0478 import ( WebhooksPreviousMarketplacePurchase as WebhooksPreviousMarketplacePurchase, ) - from .group_0471 import ( + from .group_0478 import ( WebhooksPreviousMarketplacePurchasePropAccount as WebhooksPreviousMarketplacePurchasePropAccount, ) - from .group_0471 import ( + from .group_0478 import ( WebhooksPreviousMarketplacePurchasePropPlan as WebhooksPreviousMarketplacePurchasePropPlan, ) - from .group_0472 import WebhooksTeam as WebhooksTeam - from .group_0472 import WebhooksTeamPropParent as WebhooksTeamPropParent - from .group_0473 import MergeGroup as MergeGroup - from .group_0474 import WebhooksMilestone3 as WebhooksMilestone3 - from .group_0474 import ( + from .group_0479 import WebhooksTeam as WebhooksTeam + from .group_0479 import WebhooksTeamPropParent as WebhooksTeamPropParent + from .group_0480 import MergeGroup as MergeGroup + from .group_0481 import WebhooksMilestone3 as WebhooksMilestone3 + from .group_0481 import ( WebhooksMilestone3PropCreator as WebhooksMilestone3PropCreator, ) - from .group_0475 import WebhooksMembership as WebhooksMembership - from .group_0475 import WebhooksMembershipPropUser as WebhooksMembershipPropUser - from .group_0476 import PersonalAccessTokenRequest as PersonalAccessTokenRequest - from .group_0476 import ( + from .group_0482 import WebhooksMembership as WebhooksMembership + from .group_0482 import WebhooksMembershipPropUser as WebhooksMembershipPropUser + from .group_0483 import PersonalAccessTokenRequest as PersonalAccessTokenRequest + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsAdded as PersonalAccessTokenRequestPropPermissionsAdded, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOther as PersonalAccessTokenRequestPropPermissionsAddedPropOther, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepository as PersonalAccessTokenRequestPropPermissionsAddedPropRepository, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsResult as PersonalAccessTokenRequestPropPermissionsResult, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganization as PersonalAccessTokenRequestPropPermissionsResultPropOrganization, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsResultPropOther as PersonalAccessTokenRequestPropPermissionsResultPropOther, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepository as PersonalAccessTokenRequestPropPermissionsResultPropRepository, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsUpgraded as PersonalAccessTokenRequestPropPermissionsUpgraded, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOther as PersonalAccessTokenRequestPropPermissionsUpgradedPropOther, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropRepositoriesItems as PersonalAccessTokenRequestPropRepositoriesItems, ) - from .group_0477 import WebhooksProjectCard as WebhooksProjectCard - from .group_0477 import ( + from .group_0484 import WebhooksProjectCard as WebhooksProjectCard + from .group_0484 import ( WebhooksProjectCardPropCreator as WebhooksProjectCardPropCreator, ) - from .group_0478 import WebhooksProject as WebhooksProject - from .group_0478 import WebhooksProjectPropCreator as WebhooksProjectPropCreator - from .group_0479 import WebhooksProjectColumn as WebhooksProjectColumn - from .group_0480 import ProjectsV2 as ProjectsV2 - from .group_0481 import WebhooksProjectChanges as WebhooksProjectChanges - from .group_0481 import ( + from .group_0485 import WebhooksProject as WebhooksProject + from .group_0485 import WebhooksProjectPropCreator as WebhooksProjectPropCreator + from .group_0486 import WebhooksProjectColumn as WebhooksProjectColumn + from .group_0487 import ProjectsV2 as ProjectsV2 + from .group_0488 import WebhooksProjectChanges as WebhooksProjectChanges + from .group_0488 import ( WebhooksProjectChangesPropArchivedAt as WebhooksProjectChangesPropArchivedAt, ) - from .group_0482 import ProjectsV2Item as ProjectsV2Item - from .group_0483 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate - from .group_0484 import PullRequestWebhook as PullRequestWebhook - from .group_0485 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 - from .group_0486 import WebhooksPullRequest5 as WebhooksPullRequest5 - from .group_0486 import ( + from .group_0489 import ProjectsV2Item as ProjectsV2Item + from .group_0490 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate + from .group_0491 import PullRequestWebhook as PullRequestWebhook + from .group_0492 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 + from .group_0493 import WebhooksPullRequest5 as WebhooksPullRequest5 + from .group_0493 import ( WebhooksPullRequest5PropAssignee as WebhooksPullRequest5PropAssignee, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropAssigneesItems as WebhooksPullRequest5PropAssigneesItems, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropAutoMerge as WebhooksPullRequest5PropAutoMerge, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropAutoMergePropEnabledBy as WebhooksPullRequest5PropAutoMergePropEnabledBy, ) - from .group_0486 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase - from .group_0486 import ( + from .group_0493 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase + from .group_0493 import ( WebhooksPullRequest5PropBasePropRepo as WebhooksPullRequest5PropBasePropRepo, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropBasePropRepoPropLicense as WebhooksPullRequest5PropBasePropRepoPropLicense, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropBasePropRepoPropOwner as WebhooksPullRequest5PropBasePropRepoPropOwner, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropBasePropRepoPropPermissions as WebhooksPullRequest5PropBasePropRepoPropPermissions, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropBasePropUser as WebhooksPullRequest5PropBasePropUser, ) - from .group_0486 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead - from .group_0486 import ( + from .group_0493 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead + from .group_0493 import ( WebhooksPullRequest5PropHeadPropRepo as WebhooksPullRequest5PropHeadPropRepo, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropHeadPropRepoPropLicense as WebhooksPullRequest5PropHeadPropRepoPropLicense, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropHeadPropRepoPropOwner as WebhooksPullRequest5PropHeadPropRepoPropOwner, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissions as WebhooksPullRequest5PropHeadPropRepoPropPermissions, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropHeadPropUser as WebhooksPullRequest5PropHeadPropUser, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLabelsItems as WebhooksPullRequest5PropLabelsItems, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinks as WebhooksPullRequest5PropLinks, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropComments as WebhooksPullRequest5PropLinksPropComments, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropCommits as WebhooksPullRequest5PropLinksPropCommits, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropHtml as WebhooksPullRequest5PropLinksPropHtml, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropIssue as WebhooksPullRequest5PropLinksPropIssue, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropReviewComment as WebhooksPullRequest5PropLinksPropReviewComment, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropReviewComments as WebhooksPullRequest5PropLinksPropReviewComments, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropSelf as WebhooksPullRequest5PropLinksPropSelf, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropStatuses as WebhooksPullRequest5PropLinksPropStatuses, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropMergedBy as WebhooksPullRequest5PropMergedBy, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropMilestone as WebhooksPullRequest5PropMilestone, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropMilestonePropCreator as WebhooksPullRequest5PropMilestonePropCreator, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0 as WebhooksPullRequest5PropRequestedReviewersItemsOneof0, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1 as WebhooksPullRequest5PropRequestedReviewersItemsOneof1, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropRequestedTeamsItems as WebhooksPullRequest5PropRequestedTeamsItems, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParent as WebhooksPullRequest5PropRequestedTeamsItemsPropParent, ) - from .group_0486 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser - from .group_0487 import WebhooksReviewComment as WebhooksReviewComment - from .group_0487 import ( + from .group_0493 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser + from .group_0494 import WebhooksReviewComment as WebhooksReviewComment + from .group_0494 import ( WebhooksReviewCommentPropLinks as WebhooksReviewCommentPropLinks, ) - from .group_0487 import ( + from .group_0494 import ( WebhooksReviewCommentPropLinksPropHtml as WebhooksReviewCommentPropLinksPropHtml, ) - from .group_0487 import ( + from .group_0494 import ( WebhooksReviewCommentPropLinksPropPullRequest as WebhooksReviewCommentPropLinksPropPullRequest, ) - from .group_0487 import ( + from .group_0494 import ( WebhooksReviewCommentPropLinksPropSelf as WebhooksReviewCommentPropLinksPropSelf, ) - from .group_0487 import ( + from .group_0494 import ( WebhooksReviewCommentPropReactions as WebhooksReviewCommentPropReactions, ) - from .group_0487 import ( + from .group_0494 import ( WebhooksReviewCommentPropUser as WebhooksReviewCommentPropUser, ) - from .group_0488 import WebhooksReview as WebhooksReview - from .group_0488 import WebhooksReviewPropLinks as WebhooksReviewPropLinks - from .group_0488 import ( + from .group_0495 import WebhooksReview as WebhooksReview + from .group_0495 import WebhooksReviewPropLinks as WebhooksReviewPropLinks + from .group_0495 import ( WebhooksReviewPropLinksPropHtml as WebhooksReviewPropLinksPropHtml, ) - from .group_0488 import ( + from .group_0495 import ( WebhooksReviewPropLinksPropPullRequest as WebhooksReviewPropLinksPropPullRequest, ) - from .group_0488 import WebhooksReviewPropUser as WebhooksReviewPropUser - from .group_0489 import WebhooksRelease as WebhooksRelease - from .group_0489 import ( + from .group_0495 import WebhooksReviewPropUser as WebhooksReviewPropUser + from .group_0496 import WebhooksRelease as WebhooksRelease + from .group_0496 import ( WebhooksReleasePropAssetsItems as WebhooksReleasePropAssetsItems, ) - from .group_0489 import ( + from .group_0496 import ( WebhooksReleasePropAssetsItemsPropUploader as WebhooksReleasePropAssetsItemsPropUploader, ) - from .group_0489 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor - from .group_0489 import WebhooksReleasePropReactions as WebhooksReleasePropReactions - from .group_0490 import WebhooksRelease1 as WebhooksRelease1 - from .group_0490 import ( + from .group_0496 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor + from .group_0496 import WebhooksReleasePropReactions as WebhooksReleasePropReactions + from .group_0497 import WebhooksRelease1 as WebhooksRelease1 + from .group_0497 import ( WebhooksRelease1PropAssetsItems as WebhooksRelease1PropAssetsItems, ) - from .group_0490 import ( + from .group_0497 import ( WebhooksRelease1PropAssetsItemsPropUploader as WebhooksRelease1PropAssetsItemsPropUploader, ) - from .group_0490 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor - from .group_0490 import ( + from .group_0497 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor + from .group_0497 import ( WebhooksRelease1PropReactions as WebhooksRelease1PropReactions, ) - from .group_0491 import WebhooksAlert as WebhooksAlert - from .group_0491 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser - from .group_0492 import SecretScanningAlertWebhook as SecretScanningAlertWebhook - from .group_0493 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory - from .group_0493 import ( + from .group_0498 import WebhooksAlert as WebhooksAlert + from .group_0498 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser + from .group_0499 import SecretScanningAlertWebhook as SecretScanningAlertWebhook + from .group_0500 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory + from .group_0500 import ( WebhooksSecurityAdvisoryPropCvss as WebhooksSecurityAdvisoryPropCvss, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropCwesItems as WebhooksSecurityAdvisoryPropCwesItems, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropIdentifiersItems as WebhooksSecurityAdvisoryPropIdentifiersItems, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropReferencesItems as WebhooksSecurityAdvisoryPropReferencesItems, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItems as WebhooksSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0494 import WebhooksSponsorship as WebhooksSponsorship - from .group_0494 import ( + from .group_0501 import WebhooksSponsorship as WebhooksSponsorship + from .group_0501 import ( WebhooksSponsorshipPropMaintainer as WebhooksSponsorshipPropMaintainer, ) - from .group_0494 import ( + from .group_0501 import ( WebhooksSponsorshipPropSponsor as WebhooksSponsorshipPropSponsor, ) - from .group_0494 import ( + from .group_0501 import ( WebhooksSponsorshipPropSponsorable as WebhooksSponsorshipPropSponsorable, ) - from .group_0494 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier - from .group_0495 import WebhooksChanges8 as WebhooksChanges8 - from .group_0495 import WebhooksChanges8PropTier as WebhooksChanges8PropTier - from .group_0495 import ( + from .group_0501 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier + from .group_0502 import WebhooksChanges8 as WebhooksChanges8 + from .group_0502 import WebhooksChanges8PropTier as WebhooksChanges8PropTier + from .group_0502 import ( WebhooksChanges8PropTierPropFrom as WebhooksChanges8PropTierPropFrom, ) - from .group_0496 import WebhooksTeam1 as WebhooksTeam1 - from .group_0496 import WebhooksTeam1PropParent as WebhooksTeam1PropParent - from .group_0497 import ( + from .group_0503 import WebhooksTeam1 as WebhooksTeam1 + from .group_0503 import WebhooksTeam1PropParent as WebhooksTeam1PropParent + from .group_0504 import ( WebhookBranchProtectionConfigurationDisabled as WebhookBranchProtectionConfigurationDisabled, ) - from .group_0498 import ( + from .group_0505 import ( WebhookBranchProtectionConfigurationEnabled as WebhookBranchProtectionConfigurationEnabled, ) - from .group_0499 import ( + from .group_0506 import ( WebhookBranchProtectionRuleCreated as WebhookBranchProtectionRuleCreated, ) - from .group_0500 import ( + from .group_0507 import ( WebhookBranchProtectionRuleDeleted as WebhookBranchProtectionRuleDeleted, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEdited as WebhookBranchProtectionRuleEdited, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChanges as WebhookBranchProtectionRuleEditedPropChanges, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval, ) - from .group_0502 import ( + from .group_0509 import ( WebhookExemptionRequestCancelled as WebhookExemptionRequestCancelled, ) - from .group_0503 import ( + from .group_0510 import ( WebhookExemptionRequestCompleted as WebhookExemptionRequestCompleted, ) - from .group_0504 import ( + from .group_0511 import ( WebhookExemptionRequestCreated as WebhookExemptionRequestCreated, ) - from .group_0505 import ( + from .group_0512 import ( WebhookExemptionRequestResponseDismissed as WebhookExemptionRequestResponseDismissed, ) - from .group_0506 import ( + from .group_0513 import ( WebhookExemptionRequestResponseSubmitted as WebhookExemptionRequestResponseSubmitted, ) - from .group_0507 import WebhookCheckRunCompleted as WebhookCheckRunCompleted - from .group_0508 import ( + from .group_0514 import WebhookCheckRunCompleted as WebhookCheckRunCompleted + from .group_0515 import ( WebhookCheckRunCompletedFormEncoded as WebhookCheckRunCompletedFormEncoded, ) - from .group_0509 import WebhookCheckRunCreated as WebhookCheckRunCreated - from .group_0510 import ( + from .group_0516 import WebhookCheckRunCreated as WebhookCheckRunCreated + from .group_0517 import ( WebhookCheckRunCreatedFormEncoded as WebhookCheckRunCreatedFormEncoded, ) - from .group_0511 import ( + from .group_0518 import ( WebhookCheckRunRequestedAction as WebhookCheckRunRequestedAction, ) - from .group_0511 import ( + from .group_0518 import ( WebhookCheckRunRequestedActionPropRequestedAction as WebhookCheckRunRequestedActionPropRequestedAction, ) - from .group_0512 import ( + from .group_0519 import ( WebhookCheckRunRequestedActionFormEncoded as WebhookCheckRunRequestedActionFormEncoded, ) - from .group_0513 import WebhookCheckRunRerequested as WebhookCheckRunRerequested - from .group_0514 import ( + from .group_0520 import WebhookCheckRunRerequested as WebhookCheckRunRerequested + from .group_0521 import ( WebhookCheckRunRerequestedFormEncoded as WebhookCheckRunRerequestedFormEncoded, ) - from .group_0515 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted - from .group_0515 import ( + from .group_0522 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuite as WebhookCheckSuiteCompletedPropCheckSuite, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropApp as WebhookCheckSuiteCompletedPropCheckSuitePropApp, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0516 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested - from .group_0516 import ( + from .group_0523 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuite as WebhookCheckSuiteRequestedPropCheckSuite, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropApp as WebhookCheckSuiteRequestedPropCheckSuitePropApp, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0517 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested - from .group_0517 import ( + from .group_0524 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropApp as WebhookCheckSuiteRerequestedPropCheckSuitePropApp, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranch as WebhookCodeScanningAlertAppearedInBranch, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlert as WebhookCodeScanningAlertAppearedInBranchPropAlert, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool as WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUser as WebhookCodeScanningAlertClosedByUser, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlert as WebhookCodeScanningAlertClosedByUserPropAlert, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRule as WebhookCodeScanningAlertClosedByUserPropAlertPropRule, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropTool as WebhookCodeScanningAlertClosedByUserPropAlertPropTool, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreated as WebhookCodeScanningAlertCreated, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedPropAlert as WebhookCodeScanningAlertCreatedPropAlert, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedPropAlertPropRule as WebhookCodeScanningAlertCreatedPropAlertPropRule, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedPropAlertPropTool as WebhookCodeScanningAlertCreatedPropAlertPropTool, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixed as WebhookCodeScanningAlertFixed, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlert as WebhookCodeScanningAlertFixedPropAlert, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedBy as WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertPropRule as WebhookCodeScanningAlertFixedPropAlertPropRule, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertPropTool as WebhookCodeScanningAlertFixedPropAlertPropTool, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopened as WebhookCodeScanningAlertReopened, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlert as WebhookCodeScanningAlertReopenedPropAlert, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy as WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertPropRule as WebhookCodeScanningAlertReopenedPropAlertPropRule, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertPropTool as WebhookCodeScanningAlertReopenedPropAlertPropTool, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUser as WebhookCodeScanningAlertReopenedByUser, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserPropAlert as WebhookCodeScanningAlertReopenedByUserPropAlert, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRule as WebhookCodeScanningAlertReopenedByUserPropAlertPropRule, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropTool as WebhookCodeScanningAlertReopenedByUserPropAlertPropTool, ) - from .group_0524 import WebhookCommitCommentCreated as WebhookCommitCommentCreated - from .group_0524 import ( + from .group_0531 import WebhookCommitCommentCreated as WebhookCommitCommentCreated + from .group_0531 import ( WebhookCommitCommentCreatedPropComment as WebhookCommitCommentCreatedPropComment, ) - from .group_0524 import ( + from .group_0531 import ( WebhookCommitCommentCreatedPropCommentPropReactions as WebhookCommitCommentCreatedPropCommentPropReactions, ) - from .group_0524 import ( + from .group_0531 import ( WebhookCommitCommentCreatedPropCommentPropUser as WebhookCommitCommentCreatedPropCommentPropUser, ) - from .group_0525 import WebhookCreate as WebhookCreate - from .group_0526 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated - from .group_0527 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted - from .group_0527 import ( + from .group_0532 import WebhookCreate as WebhookCreate + from .group_0533 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated + from .group_0534 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted + from .group_0534 import ( WebhookCustomPropertyDeletedPropDefinition as WebhookCustomPropertyDeletedPropDefinition, ) - from .group_0528 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated - from .group_0529 import ( + from .group_0535 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated + from .group_0536 import ( WebhookCustomPropertyValuesUpdated as WebhookCustomPropertyValuesUpdated, ) - from .group_0530 import WebhookDelete as WebhookDelete - from .group_0531 import ( + from .group_0537 import WebhookDelete as WebhookDelete + from .group_0538 import ( WebhookDependabotAlertAutoDismissed as WebhookDependabotAlertAutoDismissed, ) - from .group_0532 import ( + from .group_0539 import ( WebhookDependabotAlertAutoReopened as WebhookDependabotAlertAutoReopened, ) - from .group_0533 import ( + from .group_0540 import ( WebhookDependabotAlertCreated as WebhookDependabotAlertCreated, ) - from .group_0534 import ( + from .group_0541 import ( WebhookDependabotAlertDismissed as WebhookDependabotAlertDismissed, ) - from .group_0535 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed - from .group_0536 import ( + from .group_0542 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed + from .group_0543 import ( WebhookDependabotAlertReintroduced as WebhookDependabotAlertReintroduced, ) - from .group_0537 import ( + from .group_0544 import ( WebhookDependabotAlertReopened as WebhookDependabotAlertReopened, ) - from .group_0538 import WebhookDeployKeyCreated as WebhookDeployKeyCreated - from .group_0539 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted - from .group_0540 import WebhookDeploymentCreated as WebhookDeploymentCreated - from .group_0540 import ( + from .group_0545 import WebhookDeployKeyCreated as WebhookDeployKeyCreated + from .group_0546 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted + from .group_0547 import WebhookDeploymentCreated as WebhookDeploymentCreated + from .group_0547 import ( WebhookDeploymentCreatedPropDeployment as WebhookDeploymentCreatedPropDeployment, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropDeploymentPropCreator as WebhookDeploymentCreatedPropDeploymentPropCreator, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRun as WebhookDeploymentCreatedPropWorkflowRun, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropActor as WebhookDeploymentCreatedPropWorkflowRunPropActor, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepository as WebhookDeploymentCreatedPropWorkflowRunPropRepository, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0541 import ( + from .group_0548 import ( WebhookDeploymentProtectionRuleRequested as WebhookDeploymentProtectionRuleRequested, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApproved as WebhookDeploymentReviewApproved, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRun as WebhookDeploymentReviewApprovedPropWorkflowRun, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejected as WebhookDeploymentReviewRejected, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRun as WebhookDeploymentReviewRejectedPropWorkflowRun, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequested as WebhookDeploymentReviewRequested, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropReviewersItems as WebhookDeploymentReviewRequestedPropReviewersItems, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRun as WebhookDeploymentReviewRequestedPropWorkflowJobRun, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRun as WebhookDeploymentReviewRequestedPropWorkflowRun, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreated as WebhookDeploymentStatusCreated, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropCheckRun as WebhookDeploymentStatusCreatedPropCheckRun, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeployment as WebhookDeploymentStatusCreatedPropDeployment, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreator as WebhookDeploymentStatusCreatedPropDeploymentPropCreator, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentStatus as WebhookDeploymentStatusCreatedPropDeploymentStatus, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRun as WebhookDeploymentStatusCreatedPropWorkflowRun, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0546 import WebhookDiscussionAnswered as WebhookDiscussionAnswered - from .group_0547 import ( + from .group_0553 import WebhookDiscussionAnswered as WebhookDiscussionAnswered + from .group_0554 import ( WebhookDiscussionCategoryChanged as WebhookDiscussionCategoryChanged, ) - from .group_0547 import ( + from .group_0554 import ( WebhookDiscussionCategoryChangedPropChanges as WebhookDiscussionCategoryChangedPropChanges, ) - from .group_0547 import ( + from .group_0554 import ( WebhookDiscussionCategoryChangedPropChangesPropCategory as WebhookDiscussionCategoryChangedPropChangesPropCategory, ) - from .group_0547 import ( + from .group_0554 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom, ) - from .group_0548 import WebhookDiscussionClosed as WebhookDiscussionClosed - from .group_0549 import ( + from .group_0555 import WebhookDiscussionClosed as WebhookDiscussionClosed + from .group_0556 import ( WebhookDiscussionCommentCreated as WebhookDiscussionCommentCreated, ) - from .group_0550 import ( + from .group_0557 import ( WebhookDiscussionCommentDeleted as WebhookDiscussionCommentDeleted, ) - from .group_0551 import ( + from .group_0558 import ( WebhookDiscussionCommentEdited as WebhookDiscussionCommentEdited, ) - from .group_0551 import ( + from .group_0558 import ( WebhookDiscussionCommentEditedPropChanges as WebhookDiscussionCommentEditedPropChanges, ) - from .group_0551 import ( + from .group_0558 import ( WebhookDiscussionCommentEditedPropChangesPropBody as WebhookDiscussionCommentEditedPropChangesPropBody, ) - from .group_0552 import WebhookDiscussionCreated as WebhookDiscussionCreated - from .group_0553 import WebhookDiscussionDeleted as WebhookDiscussionDeleted - from .group_0554 import WebhookDiscussionEdited as WebhookDiscussionEdited - from .group_0554 import ( + from .group_0559 import WebhookDiscussionCreated as WebhookDiscussionCreated + from .group_0560 import WebhookDiscussionDeleted as WebhookDiscussionDeleted + from .group_0561 import WebhookDiscussionEdited as WebhookDiscussionEdited + from .group_0561 import ( WebhookDiscussionEditedPropChanges as WebhookDiscussionEditedPropChanges, ) - from .group_0554 import ( + from .group_0561 import ( WebhookDiscussionEditedPropChangesPropBody as WebhookDiscussionEditedPropChangesPropBody, ) - from .group_0554 import ( + from .group_0561 import ( WebhookDiscussionEditedPropChangesPropTitle as WebhookDiscussionEditedPropChangesPropTitle, ) - from .group_0555 import WebhookDiscussionLabeled as WebhookDiscussionLabeled - from .group_0556 import WebhookDiscussionLocked as WebhookDiscussionLocked - from .group_0557 import WebhookDiscussionPinned as WebhookDiscussionPinned - from .group_0558 import WebhookDiscussionReopened as WebhookDiscussionReopened - from .group_0559 import WebhookDiscussionTransferred as WebhookDiscussionTransferred - from .group_0560 import ( + from .group_0562 import WebhookDiscussionLabeled as WebhookDiscussionLabeled + from .group_0563 import WebhookDiscussionLocked as WebhookDiscussionLocked + from .group_0564 import WebhookDiscussionPinned as WebhookDiscussionPinned + from .group_0565 import WebhookDiscussionReopened as WebhookDiscussionReopened + from .group_0566 import WebhookDiscussionTransferred as WebhookDiscussionTransferred + from .group_0567 import ( WebhookDiscussionTransferredPropChanges as WebhookDiscussionTransferredPropChanges, ) - from .group_0561 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered - from .group_0562 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled - from .group_0563 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked - from .group_0564 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned - from .group_0565 import WebhookFork as WebhookFork - from .group_0566 import WebhookForkPropForkee as WebhookForkPropForkee - from .group_0566 import ( + from .group_0568 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered + from .group_0569 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled + from .group_0570 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked + from .group_0571 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned + from .group_0572 import WebhookFork as WebhookFork + from .group_0573 import WebhookForkPropForkee as WebhookForkPropForkee + from .group_0573 import ( WebhookForkPropForkeeMergedLicense as WebhookForkPropForkeeMergedLicense, ) - from .group_0566 import ( + from .group_0573 import ( WebhookForkPropForkeeMergedOwner as WebhookForkPropForkeeMergedOwner, ) - from .group_0567 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 - from .group_0567 import ( + from .group_0574 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 + from .group_0574 import ( WebhookForkPropForkeeAllof0PropLicense as WebhookForkPropForkeeAllof0PropLicense, ) - from .group_0567 import ( + from .group_0574 import ( WebhookForkPropForkeeAllof0PropOwner as WebhookForkPropForkeeAllof0PropOwner, ) - from .group_0568 import ( + from .group_0575 import ( WebhookForkPropForkeeAllof0PropPermissions as WebhookForkPropForkeeAllof0PropPermissions, ) - from .group_0569 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 - from .group_0569 import ( + from .group_0576 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 + from .group_0576 import ( WebhookForkPropForkeeAllof1PropLicense as WebhookForkPropForkeeAllof1PropLicense, ) - from .group_0569 import ( + from .group_0576 import ( WebhookForkPropForkeeAllof1PropOwner as WebhookForkPropForkeeAllof1PropOwner, ) - from .group_0570 import ( + from .group_0577 import ( WebhookGithubAppAuthorizationRevoked as WebhookGithubAppAuthorizationRevoked, ) - from .group_0571 import WebhookGollum as WebhookGollum - from .group_0571 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems - from .group_0572 import WebhookInstallationCreated as WebhookInstallationCreated - from .group_0573 import WebhookInstallationDeleted as WebhookInstallationDeleted - from .group_0574 import ( + from .group_0578 import WebhookGollum as WebhookGollum + from .group_0578 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems + from .group_0579 import WebhookInstallationCreated as WebhookInstallationCreated + from .group_0580 import WebhookInstallationDeleted as WebhookInstallationDeleted + from .group_0581 import ( WebhookInstallationNewPermissionsAccepted as WebhookInstallationNewPermissionsAccepted, ) - from .group_0575 import ( + from .group_0582 import ( WebhookInstallationRepositoriesAdded as WebhookInstallationRepositoriesAdded, ) - from .group_0575 import ( + from .group_0582 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems, ) - from .group_0576 import ( + from .group_0583 import ( WebhookInstallationRepositoriesRemoved as WebhookInstallationRepositoriesRemoved, ) - from .group_0576 import ( + from .group_0583 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems, ) - from .group_0577 import WebhookInstallationSuspend as WebhookInstallationSuspend - from .group_0578 import ( + from .group_0584 import WebhookInstallationSuspend as WebhookInstallationSuspend + from .group_0585 import ( WebhookInstallationTargetRenamed as WebhookInstallationTargetRenamed, ) - from .group_0578 import ( + from .group_0585 import ( WebhookInstallationTargetRenamedPropAccount as WebhookInstallationTargetRenamedPropAccount, ) - from .group_0578 import ( + from .group_0585 import ( WebhookInstallationTargetRenamedPropChanges as WebhookInstallationTargetRenamedPropChanges, ) - from .group_0578 import ( + from .group_0585 import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) - from .group_0578 import ( + from .group_0585 import ( WebhookInstallationTargetRenamedPropChangesPropSlug as WebhookInstallationTargetRenamedPropChangesPropSlug, ) - from .group_0579 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend - from .group_0580 import WebhookIssueCommentCreated as WebhookIssueCommentCreated - from .group_0581 import ( + from .group_0586 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend + from .group_0587 import WebhookIssueCommentCreated as WebhookIssueCommentCreated + from .group_0588 import ( WebhookIssueCommentCreatedPropComment as WebhookIssueCommentCreatedPropComment, ) - from .group_0581 import ( + from .group_0588 import ( WebhookIssueCommentCreatedPropCommentPropReactions as WebhookIssueCommentCreatedPropCommentPropReactions, ) - from .group_0581 import ( + from .group_0588 import ( WebhookIssueCommentCreatedPropCommentPropUser as WebhookIssueCommentCreatedPropCommentPropUser, ) - from .group_0582 import ( + from .group_0589 import ( WebhookIssueCommentCreatedPropIssue as WebhookIssueCommentCreatedPropIssue, ) - from .group_0582 import ( + from .group_0589 import ( WebhookIssueCommentCreatedPropIssueMergedAssignees as WebhookIssueCommentCreatedPropIssueMergedAssignees, ) - from .group_0582 import ( + from .group_0589 import ( WebhookIssueCommentCreatedPropIssueMergedReactions as WebhookIssueCommentCreatedPropIssueMergedReactions, ) - from .group_0582 import ( + from .group_0589 import ( WebhookIssueCommentCreatedPropIssueMergedUser as WebhookIssueCommentCreatedPropIssueMergedUser, ) - from .group_0583 import ( + from .group_0590 import ( WebhookIssueCommentCreatedPropIssueAllof0 as WebhookIssueCommentCreatedPropIssueAllof0, ) - from .group_0583 import ( + from .group_0590 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, ) - from .group_0583 import ( + from .group_0590 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactions as WebhookIssueCommentCreatedPropIssueAllof0PropReactions, ) - from .group_0583 import ( + from .group_0590 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUser as WebhookIssueCommentCreatedPropIssueAllof0PropUser, ) - from .group_0584 import ( + from .group_0591 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssignee as WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, ) - from .group_0584 import ( + from .group_0591 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, ) - from .group_0584 import ( + from .group_0591 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) - from .group_0585 import ( + from .group_0592 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0586 import ( + from .group_0593 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestone as WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, ) - from .group_0587 import ( + from .group_0594 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0587 import ( + from .group_0594 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0588 import ( + from .group_0595 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0589 import ( + from .group_0596 import ( WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1 as WebhookIssueCommentCreatedPropIssueAllof1, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssignee as WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestone as WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactions as WebhookIssueCommentCreatedPropIssueAllof1PropReactions, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUser as WebhookIssueCommentCreatedPropIssueAllof1PropUser, ) - from .group_0591 import ( + from .group_0598 import ( WebhookIssueCommentCreatedPropIssueMergedMilestone as WebhookIssueCommentCreatedPropIssueMergedMilestone, ) - from .group_0592 import ( + from .group_0599 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, ) - from .group_0593 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted - from .group_0594 import ( + from .group_0600 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted + from .group_0601 import ( WebhookIssueCommentDeletedPropIssue as WebhookIssueCommentDeletedPropIssue, ) - from .group_0594 import ( + from .group_0601 import ( WebhookIssueCommentDeletedPropIssueMergedAssignees as WebhookIssueCommentDeletedPropIssueMergedAssignees, ) - from .group_0594 import ( + from .group_0601 import ( WebhookIssueCommentDeletedPropIssueMergedReactions as WebhookIssueCommentDeletedPropIssueMergedReactions, ) - from .group_0594 import ( + from .group_0601 import ( WebhookIssueCommentDeletedPropIssueMergedUser as WebhookIssueCommentDeletedPropIssueMergedUser, ) - from .group_0595 import ( + from .group_0602 import ( WebhookIssueCommentDeletedPropIssueAllof0 as WebhookIssueCommentDeletedPropIssueAllof0, ) - from .group_0595 import ( + from .group_0602 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, ) - from .group_0595 import ( + from .group_0602 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactions as WebhookIssueCommentDeletedPropIssueAllof0PropReactions, ) - from .group_0595 import ( + from .group_0602 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUser as WebhookIssueCommentDeletedPropIssueAllof0PropUser, ) - from .group_0596 import ( + from .group_0603 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee as WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, ) - from .group_0596 import ( + from .group_0603 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, ) - from .group_0596 import ( + from .group_0603 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) - from .group_0597 import ( + from .group_0604 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0598 import ( + from .group_0605 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestone as WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, ) - from .group_0599 import ( + from .group_0606 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0599 import ( + from .group_0606 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0600 import ( + from .group_0607 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0601 import ( + from .group_0608 import ( WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1 as WebhookIssueCommentDeletedPropIssueAllof1, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssignee as WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestone as WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactions as WebhookIssueCommentDeletedPropIssueAllof1PropReactions, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUser as WebhookIssueCommentDeletedPropIssueAllof1PropUser, ) - from .group_0603 import ( + from .group_0610 import ( WebhookIssueCommentDeletedPropIssueMergedMilestone as WebhookIssueCommentDeletedPropIssueMergedMilestone, ) - from .group_0604 import ( + from .group_0611 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, ) - from .group_0605 import WebhookIssueCommentEdited as WebhookIssueCommentEdited - from .group_0606 import ( + from .group_0612 import WebhookIssueCommentEdited as WebhookIssueCommentEdited + from .group_0613 import ( WebhookIssueCommentEditedPropIssue as WebhookIssueCommentEditedPropIssue, ) - from .group_0606 import ( + from .group_0613 import ( WebhookIssueCommentEditedPropIssueMergedAssignees as WebhookIssueCommentEditedPropIssueMergedAssignees, ) - from .group_0606 import ( + from .group_0613 import ( WebhookIssueCommentEditedPropIssueMergedReactions as WebhookIssueCommentEditedPropIssueMergedReactions, ) - from .group_0606 import ( + from .group_0613 import ( WebhookIssueCommentEditedPropIssueMergedUser as WebhookIssueCommentEditedPropIssueMergedUser, ) - from .group_0607 import ( + from .group_0614 import ( WebhookIssueCommentEditedPropIssueAllof0 as WebhookIssueCommentEditedPropIssueAllof0, ) - from .group_0607 import ( + from .group_0614 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, ) - from .group_0607 import ( + from .group_0614 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactions as WebhookIssueCommentEditedPropIssueAllof0PropReactions, ) - from .group_0607 import ( + from .group_0614 import ( WebhookIssueCommentEditedPropIssueAllof0PropUser as WebhookIssueCommentEditedPropIssueAllof0PropUser, ) - from .group_0608 import ( + from .group_0615 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee as WebhookIssueCommentEditedPropIssueAllof0PropAssignee, ) - from .group_0608 import ( + from .group_0615 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, ) - from .group_0608 import ( + from .group_0615 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequest as WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) - from .group_0609 import ( + from .group_0616 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0610 import ( + from .group_0617 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestone as WebhookIssueCommentEditedPropIssueAllof0PropMilestone, ) - from .group_0611 import ( + from .group_0618 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0611 import ( + from .group_0618 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0612 import ( + from .group_0619 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0613 import ( + from .group_0620 import ( WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1 as WebhookIssueCommentEditedPropIssueAllof1, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssignee as WebhookIssueCommentEditedPropIssueAllof1PropAssignee, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestone as WebhookIssueCommentEditedPropIssueAllof1PropMilestone, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactions as WebhookIssueCommentEditedPropIssueAllof1PropReactions, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropUser as WebhookIssueCommentEditedPropIssueAllof1PropUser, ) - from .group_0615 import ( + from .group_0622 import ( WebhookIssueCommentEditedPropIssueMergedMilestone as WebhookIssueCommentEditedPropIssueMergedMilestone, ) - from .group_0616 import ( + from .group_0623 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, ) - from .group_0617 import WebhookIssuesAssigned as WebhookIssuesAssigned - from .group_0618 import WebhookIssuesClosed as WebhookIssuesClosed - from .group_0619 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue - from .group_0619 import ( + from .group_0624 import WebhookIssuesAssigned as WebhookIssuesAssigned + from .group_0625 import WebhookIssuesClosed as WebhookIssuesClosed + from .group_0626 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue + from .group_0626 import ( WebhookIssuesClosedPropIssueMergedAssignee as WebhookIssuesClosedPropIssueMergedAssignee, ) - from .group_0619 import ( + from .group_0626 import ( WebhookIssuesClosedPropIssueMergedAssignees as WebhookIssuesClosedPropIssueMergedAssignees, ) - from .group_0619 import ( + from .group_0626 import ( WebhookIssuesClosedPropIssueMergedLabels as WebhookIssuesClosedPropIssueMergedLabels, ) - from .group_0619 import ( + from .group_0626 import ( WebhookIssuesClosedPropIssueMergedReactions as WebhookIssuesClosedPropIssueMergedReactions, ) - from .group_0619 import ( + from .group_0626 import ( WebhookIssuesClosedPropIssueMergedUser as WebhookIssuesClosedPropIssueMergedUser, ) - from .group_0620 import ( + from .group_0627 import ( WebhookIssuesClosedPropIssueAllof0 as WebhookIssuesClosedPropIssueAllof0, ) - from .group_0620 import ( + from .group_0627 import ( WebhookIssuesClosedPropIssueAllof0PropAssignee as WebhookIssuesClosedPropIssueAllof0PropAssignee, ) - from .group_0620 import ( + from .group_0627 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItems as WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, ) - from .group_0620 import ( + from .group_0627 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItems as WebhookIssuesClosedPropIssueAllof0PropLabelsItems, ) - from .group_0620 import ( + from .group_0627 import ( WebhookIssuesClosedPropIssueAllof0PropReactions as WebhookIssuesClosedPropIssueAllof0PropReactions, ) - from .group_0620 import ( + from .group_0627 import ( WebhookIssuesClosedPropIssueAllof0PropUser as WebhookIssuesClosedPropIssueAllof0PropUser, ) - from .group_0621 import ( + from .group_0628 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0622 import ( + from .group_0629 import ( WebhookIssuesClosedPropIssueAllof0PropMilestone as WebhookIssuesClosedPropIssueAllof0PropMilestone, ) - from .group_0623 import ( + from .group_0630 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0623 import ( + from .group_0630 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0624 import ( + from .group_0631 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0625 import ( + from .group_0632 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequest as WebhookIssuesClosedPropIssueAllof0PropPullRequest, ) - from .group_0625 import ( + from .group_0632 import ( WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1 as WebhookIssuesClosedPropIssueAllof1, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropAssignee as WebhookIssuesClosedPropIssueAllof1PropAssignee, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItems as WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItems as WebhookIssuesClosedPropIssueAllof1PropLabelsItems, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropMilestone as WebhookIssuesClosedPropIssueAllof1PropMilestone, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropReactions as WebhookIssuesClosedPropIssueAllof1PropReactions, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropUser as WebhookIssuesClosedPropIssueAllof1PropUser, ) - from .group_0627 import ( + from .group_0634 import ( WebhookIssuesClosedPropIssueMergedMilestone as WebhookIssuesClosedPropIssueMergedMilestone, ) - from .group_0628 import ( + from .group_0635 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp as WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, ) - from .group_0629 import WebhookIssuesDeleted as WebhookIssuesDeleted - from .group_0629 import ( + from .group_0636 import WebhookIssuesDeleted as WebhookIssuesDeleted + from .group_0636 import ( WebhookIssuesDeletedPropIssue as WebhookIssuesDeletedPropIssue, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropAssignee as WebhookIssuesDeletedPropIssuePropAssignee, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropAssigneesItems as WebhookIssuesDeletedPropIssuePropAssigneesItems, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropLabelsItems as WebhookIssuesDeletedPropIssuePropLabelsItems, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropMilestone as WebhookIssuesDeletedPropIssuePropMilestone, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreator as WebhookIssuesDeletedPropIssuePropMilestonePropCreator, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp as WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropPullRequest as WebhookIssuesDeletedPropIssuePropPullRequest, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropSubIssuesSummary as WebhookIssuesDeletedPropIssuePropSubIssuesSummary, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropUser as WebhookIssuesDeletedPropIssuePropUser, ) - from .group_0630 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned - from .group_0630 import ( + from .group_0637 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned + from .group_0637 import ( WebhookIssuesDemilestonedPropIssue as WebhookIssuesDemilestonedPropIssue, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropAssignee as WebhookIssuesDemilestonedPropIssuePropAssignee, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItems as WebhookIssuesDemilestonedPropIssuePropAssigneesItems, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItems as WebhookIssuesDemilestonedPropIssuePropLabelsItems, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropMilestone as WebhookIssuesDemilestonedPropIssuePropMilestone, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropPullRequest as WebhookIssuesDemilestonedPropIssuePropPullRequest, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, ) - from .group_0631 import WebhookIssuesEdited as WebhookIssuesEdited - from .group_0631 import ( + from .group_0638 import WebhookIssuesEdited as WebhookIssuesEdited + from .group_0638 import ( WebhookIssuesEditedPropChanges as WebhookIssuesEditedPropChanges, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropChangesPropBody as WebhookIssuesEditedPropChangesPropBody, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropChangesPropTitle as WebhookIssuesEditedPropChangesPropTitle, ) - from .group_0631 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue - from .group_0631 import ( + from .group_0638 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue + from .group_0638 import ( WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropAssigneesItems as WebhookIssuesEditedPropIssuePropAssigneesItems, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropLabelsItems as WebhookIssuesEditedPropIssuePropLabelsItems, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropMilestone as WebhookIssuesEditedPropIssuePropMilestone, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreator as WebhookIssuesEditedPropIssuePropMilestonePropCreator, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubApp as WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropPullRequest as WebhookIssuesEditedPropIssuePropPullRequest, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropReactions as WebhookIssuesEditedPropIssuePropReactions, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropSubIssuesSummary as WebhookIssuesEditedPropIssuePropSubIssuesSummary, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) - from .group_0632 import WebhookIssuesLabeled as WebhookIssuesLabeled - from .group_0632 import ( + from .group_0639 import WebhookIssuesLabeled as WebhookIssuesLabeled + from .group_0639 import ( WebhookIssuesLabeledPropIssue as WebhookIssuesLabeledPropIssue, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropAssignee as WebhookIssuesLabeledPropIssuePropAssignee, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropLabelsItems as WebhookIssuesLabeledPropIssuePropLabelsItems, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreator as WebhookIssuesLabeledPropIssuePropMilestonePropCreator, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp as WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropPullRequest as WebhookIssuesLabeledPropIssuePropPullRequest, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropSubIssuesSummary as WebhookIssuesLabeledPropIssuePropSubIssuesSummary, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropUser as WebhookIssuesLabeledPropIssuePropUser, ) - from .group_0633 import WebhookIssuesLocked as WebhookIssuesLocked - from .group_0633 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue - from .group_0633 import ( + from .group_0640 import WebhookIssuesLocked as WebhookIssuesLocked + from .group_0640 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue + from .group_0640 import ( WebhookIssuesLockedPropIssuePropAssignee as WebhookIssuesLockedPropIssuePropAssignee, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropAssigneesItems as WebhookIssuesLockedPropIssuePropAssigneesItems, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropLabelsItems as WebhookIssuesLockedPropIssuePropLabelsItems, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropMilestone as WebhookIssuesLockedPropIssuePropMilestone, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreator as WebhookIssuesLockedPropIssuePropMilestonePropCreator, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubApp as WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropPullRequest as WebhookIssuesLockedPropIssuePropPullRequest, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropSubIssuesSummary as WebhookIssuesLockedPropIssuePropSubIssuesSummary, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, ) - from .group_0634 import WebhookIssuesMilestoned as WebhookIssuesMilestoned - from .group_0634 import ( + from .group_0641 import WebhookIssuesMilestoned as WebhookIssuesMilestoned + from .group_0641 import ( WebhookIssuesMilestonedPropIssue as WebhookIssuesMilestonedPropIssue, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropAssignee as WebhookIssuesMilestonedPropIssuePropAssignee, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItems as WebhookIssuesMilestonedPropIssuePropAssigneesItems, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropLabelsItems as WebhookIssuesMilestonedPropIssuePropLabelsItems, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropMilestone as WebhookIssuesMilestonedPropIssuePropMilestone, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreator as WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropPullRequest as WebhookIssuesMilestonedPropIssuePropPullRequest, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropSubIssuesSummary as WebhookIssuesMilestonedPropIssuePropSubIssuesSummary, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, ) - from .group_0635 import WebhookIssuesOpened as WebhookIssuesOpened - from .group_0635 import ( + from .group_0642 import WebhookIssuesOpened as WebhookIssuesOpened + from .group_0642 import ( WebhookIssuesOpenedPropChanges as WebhookIssuesOpenedPropChanges, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssue as WebhookIssuesOpenedPropChangesPropOldIssue, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee as WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldRepository as WebhookIssuesOpenedPropChangesPropOldRepository, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions, ) - from .group_0635 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue - from .group_0635 import ( + from .group_0642 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropAssignee as WebhookIssuesOpenedPropIssuePropAssignee, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropAssigneesItems as WebhookIssuesOpenedPropIssuePropAssigneesItems, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropLabelsItems as WebhookIssuesOpenedPropIssuePropLabelsItems, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropMilestone as WebhookIssuesOpenedPropIssuePropMilestone, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreator as WebhookIssuesOpenedPropIssuePropMilestonePropCreator, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropPullRequest as WebhookIssuesOpenedPropIssuePropPullRequest, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropReactions as WebhookIssuesOpenedPropIssuePropReactions, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropSubIssuesSummary as WebhookIssuesOpenedPropIssuePropSubIssuesSummary, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropUser as WebhookIssuesOpenedPropIssuePropUser, ) - from .group_0636 import WebhookIssuesPinned as WebhookIssuesPinned - from .group_0637 import WebhookIssuesReopened as WebhookIssuesReopened - from .group_0637 import ( + from .group_0643 import WebhookIssuesPinned as WebhookIssuesPinned + from .group_0644 import WebhookIssuesReopened as WebhookIssuesReopened + from .group_0644 import ( WebhookIssuesReopenedPropIssue as WebhookIssuesReopenedPropIssue, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropAssignee as WebhookIssuesReopenedPropIssuePropAssignee, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropAssigneesItems as WebhookIssuesReopenedPropIssuePropAssigneesItems, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropLabelsItems as WebhookIssuesReopenedPropIssuePropLabelsItems, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropMilestone as WebhookIssuesReopenedPropIssuePropMilestone, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreator as WebhookIssuesReopenedPropIssuePropMilestonePropCreator, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp as WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropPullRequest as WebhookIssuesReopenedPropIssuePropPullRequest, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropSubIssuesSummary as WebhookIssuesReopenedPropIssuePropSubIssuesSummary, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) - from .group_0638 import WebhookIssuesTransferred as WebhookIssuesTransferred - from .group_0638 import ( + from .group_0645 import WebhookIssuesTransferred as WebhookIssuesTransferred + from .group_0645 import ( WebhookIssuesTransferredPropChanges as WebhookIssuesTransferredPropChanges, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssue as WebhookIssuesTransferredPropChangesPropNewIssue, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewRepository as WebhookIssuesTransferredPropChangesPropNewRepository, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions, ) - from .group_0639 import WebhookIssuesUnassigned as WebhookIssuesUnassigned - from .group_0640 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled - from .group_0641 import WebhookIssuesUnlocked as WebhookIssuesUnlocked - from .group_0641 import ( + from .group_0646 import WebhookIssuesUnassigned as WebhookIssuesUnassigned + from .group_0647 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled + from .group_0648 import WebhookIssuesUnlocked as WebhookIssuesUnlocked + from .group_0648 import ( WebhookIssuesUnlockedPropIssue as WebhookIssuesUnlockedPropIssue, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropAssignee as WebhookIssuesUnlockedPropIssuePropAssignee, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItems as WebhookIssuesUnlockedPropIssuePropAssigneesItems, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropLabelsItems as WebhookIssuesUnlockedPropIssuePropLabelsItems, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropMilestone as WebhookIssuesUnlockedPropIssuePropMilestone, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropPullRequest as WebhookIssuesUnlockedPropIssuePropPullRequest, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropSubIssuesSummary as WebhookIssuesUnlockedPropIssuePropSubIssuesSummary, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) - from .group_0642 import WebhookIssuesUnpinned as WebhookIssuesUnpinned - from .group_0643 import WebhookLabelCreated as WebhookLabelCreated - from .group_0644 import WebhookLabelDeleted as WebhookLabelDeleted - from .group_0645 import WebhookLabelEdited as WebhookLabelEdited - from .group_0645 import ( + from .group_0649 import WebhookIssuesUnpinned as WebhookIssuesUnpinned + from .group_0650 import WebhookLabelCreated as WebhookLabelCreated + from .group_0651 import WebhookLabelDeleted as WebhookLabelDeleted + from .group_0652 import WebhookLabelEdited as WebhookLabelEdited + from .group_0652 import ( WebhookLabelEditedPropChanges as WebhookLabelEditedPropChanges, ) - from .group_0645 import ( + from .group_0652 import ( WebhookLabelEditedPropChangesPropColor as WebhookLabelEditedPropChangesPropColor, ) - from .group_0645 import ( + from .group_0652 import ( WebhookLabelEditedPropChangesPropDescription as WebhookLabelEditedPropChangesPropDescription, ) - from .group_0645 import ( + from .group_0652 import ( WebhookLabelEditedPropChangesPropName as WebhookLabelEditedPropChangesPropName, ) - from .group_0646 import ( + from .group_0653 import ( WebhookMarketplacePurchaseCancelled as WebhookMarketplacePurchaseCancelled, ) - from .group_0647 import ( + from .group_0654 import ( WebhookMarketplacePurchaseChanged as WebhookMarketplacePurchaseChanged, ) - from .group_0647 import ( + from .group_0654 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase, ) - from .group_0647 import ( + from .group_0654 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount, ) - from .group_0647 import ( + from .group_0654 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan, ) - from .group_0648 import ( + from .group_0655 import ( WebhookMarketplacePurchasePendingChange as WebhookMarketplacePurchasePendingChange, ) - from .group_0648 import ( + from .group_0655 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase, ) - from .group_0648 import ( + from .group_0655 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount, ) - from .group_0648 import ( + from .group_0655 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan, ) - from .group_0649 import ( + from .group_0656 import ( WebhookMarketplacePurchasePendingChangeCancelled as WebhookMarketplacePurchasePendingChangeCancelled, ) - from .group_0649 import ( + from .group_0656 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, ) - from .group_0649 import ( + from .group_0656 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount, ) - from .group_0649 import ( + from .group_0656 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan, ) - from .group_0650 import ( + from .group_0657 import ( WebhookMarketplacePurchasePurchased as WebhookMarketplacePurchasePurchased, ) - from .group_0651 import WebhookMemberAdded as WebhookMemberAdded - from .group_0651 import ( + from .group_0658 import WebhookMemberAdded as WebhookMemberAdded + from .group_0658 import ( WebhookMemberAddedPropChanges as WebhookMemberAddedPropChanges, ) - from .group_0651 import ( + from .group_0658 import ( WebhookMemberAddedPropChangesPropPermission as WebhookMemberAddedPropChangesPropPermission, ) - from .group_0651 import ( + from .group_0658 import ( WebhookMemberAddedPropChangesPropRoleName as WebhookMemberAddedPropChangesPropRoleName, ) - from .group_0652 import WebhookMemberEdited as WebhookMemberEdited - from .group_0652 import ( + from .group_0659 import WebhookMemberEdited as WebhookMemberEdited + from .group_0659 import ( WebhookMemberEditedPropChanges as WebhookMemberEditedPropChanges, ) - from .group_0652 import ( + from .group_0659 import ( WebhookMemberEditedPropChangesPropOldPermission as WebhookMemberEditedPropChangesPropOldPermission, ) - from .group_0652 import ( + from .group_0659 import ( WebhookMemberEditedPropChangesPropPermission as WebhookMemberEditedPropChangesPropPermission, ) - from .group_0653 import WebhookMemberRemoved as WebhookMemberRemoved - from .group_0654 import WebhookMembershipAdded as WebhookMembershipAdded - from .group_0654 import ( + from .group_0660 import WebhookMemberRemoved as WebhookMemberRemoved + from .group_0661 import WebhookMembershipAdded as WebhookMembershipAdded + from .group_0661 import ( WebhookMembershipAddedPropSender as WebhookMembershipAddedPropSender, ) - from .group_0655 import WebhookMembershipRemoved as WebhookMembershipRemoved - from .group_0655 import ( + from .group_0662 import WebhookMembershipRemoved as WebhookMembershipRemoved + from .group_0662 import ( WebhookMembershipRemovedPropSender as WebhookMembershipRemovedPropSender, ) - from .group_0656 import ( + from .group_0663 import ( WebhookMergeGroupChecksRequested as WebhookMergeGroupChecksRequested, ) - from .group_0657 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed - from .group_0658 import WebhookMetaDeleted as WebhookMetaDeleted - from .group_0658 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook - from .group_0658 import ( + from .group_0664 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed + from .group_0665 import WebhookMetaDeleted as WebhookMetaDeleted + from .group_0665 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook + from .group_0665 import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) - from .group_0659 import WebhookMilestoneClosed as WebhookMilestoneClosed - from .group_0660 import WebhookMilestoneCreated as WebhookMilestoneCreated - from .group_0661 import WebhookMilestoneDeleted as WebhookMilestoneDeleted - from .group_0662 import WebhookMilestoneEdited as WebhookMilestoneEdited - from .group_0662 import ( + from .group_0666 import WebhookMilestoneClosed as WebhookMilestoneClosed + from .group_0667 import WebhookMilestoneCreated as WebhookMilestoneCreated + from .group_0668 import WebhookMilestoneDeleted as WebhookMilestoneDeleted + from .group_0669 import WebhookMilestoneEdited as WebhookMilestoneEdited + from .group_0669 import ( WebhookMilestoneEditedPropChanges as WebhookMilestoneEditedPropChanges, ) - from .group_0662 import ( + from .group_0669 import ( WebhookMilestoneEditedPropChangesPropDescription as WebhookMilestoneEditedPropChangesPropDescription, ) - from .group_0662 import ( + from .group_0669 import ( WebhookMilestoneEditedPropChangesPropDueOn as WebhookMilestoneEditedPropChangesPropDueOn, ) - from .group_0662 import ( + from .group_0669 import ( WebhookMilestoneEditedPropChangesPropTitle as WebhookMilestoneEditedPropChangesPropTitle, ) - from .group_0663 import WebhookMilestoneOpened as WebhookMilestoneOpened - from .group_0664 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked - from .group_0665 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked - from .group_0666 import WebhookOrganizationDeleted as WebhookOrganizationDeleted - from .group_0667 import ( + from .group_0670 import WebhookMilestoneOpened as WebhookMilestoneOpened + from .group_0671 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked + from .group_0672 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked + from .group_0673 import WebhookOrganizationDeleted as WebhookOrganizationDeleted + from .group_0674 import ( WebhookOrganizationMemberAdded as WebhookOrganizationMemberAdded, ) - from .group_0668 import ( + from .group_0675 import ( WebhookOrganizationMemberInvited as WebhookOrganizationMemberInvited, ) - from .group_0668 import ( + from .group_0675 import ( WebhookOrganizationMemberInvitedPropInvitation as WebhookOrganizationMemberInvitedPropInvitation, ) - from .group_0668 import ( + from .group_0675 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviter as WebhookOrganizationMemberInvitedPropInvitationPropInviter, ) - from .group_0669 import ( + from .group_0676 import ( WebhookOrganizationMemberRemoved as WebhookOrganizationMemberRemoved, ) - from .group_0670 import WebhookOrganizationRenamed as WebhookOrganizationRenamed - from .group_0670 import ( + from .group_0677 import WebhookOrganizationRenamed as WebhookOrganizationRenamed + from .group_0677 import ( WebhookOrganizationRenamedPropChanges as WebhookOrganizationRenamedPropChanges, ) - from .group_0670 import ( + from .group_0677 import ( WebhookOrganizationRenamedPropChangesPropLogin as WebhookOrganizationRenamedPropChangesPropLogin, ) - from .group_0671 import WebhookRubygemsMetadata as WebhookRubygemsMetadata - from .group_0671 import ( + from .group_0678 import WebhookRubygemsMetadata as WebhookRubygemsMetadata + from .group_0678 import ( WebhookRubygemsMetadataPropDependenciesItems as WebhookRubygemsMetadataPropDependenciesItems, ) - from .group_0671 import ( + from .group_0678 import ( WebhookRubygemsMetadataPropMetadata as WebhookRubygemsMetadataPropMetadata, ) - from .group_0671 import ( + from .group_0678 import ( WebhookRubygemsMetadataPropVersionInfo as WebhookRubygemsMetadataPropVersionInfo, ) - from .group_0672 import WebhookPackagePublished as WebhookPackagePublished - from .group_0673 import ( + from .group_0679 import WebhookPackagePublished as WebhookPackagePublished + from .group_0680 import ( WebhookPackagePublishedPropPackage as WebhookPackagePublishedPropPackage, ) - from .group_0673 import ( + from .group_0680 import ( WebhookPackagePublishedPropPackagePropOwner as WebhookPackagePublishedPropPackagePropOwner, ) - from .group_0673 import ( + from .group_0680 import ( WebhookPackagePublishedPropPackagePropRegistry as WebhookPackagePublishedPropPackagePropRegistry, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersion as WebhookPackagePublishedPropPackagePropPackageVersion, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1 as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropRelease as WebhookPackagePublishedPropPackagePropPackageVersionPropRelease, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0675 import WebhookPackageUpdated as WebhookPackageUpdated - from .group_0676 import ( + from .group_0682 import WebhookPackageUpdated as WebhookPackageUpdated + from .group_0683 import ( WebhookPackageUpdatedPropPackage as WebhookPackageUpdatedPropPackage, ) - from .group_0676 import ( + from .group_0683 import ( WebhookPackageUpdatedPropPackagePropOwner as WebhookPackageUpdatedPropPackagePropOwner, ) - from .group_0676 import ( + from .group_0683 import ( WebhookPackageUpdatedPropPackagePropRegistry as WebhookPackageUpdatedPropPackagePropRegistry, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersion as WebhookPackageUpdatedPropPackagePropPackageVersion, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease as WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0678 import WebhookPageBuild as WebhookPageBuild - from .group_0678 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild - from .group_0678 import ( + from .group_0685 import WebhookPageBuild as WebhookPageBuild + from .group_0685 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild + from .group_0685 import ( WebhookPageBuildPropBuildPropError as WebhookPageBuildPropBuildPropError, ) - from .group_0678 import ( + from .group_0685 import ( WebhookPageBuildPropBuildPropPusher as WebhookPageBuildPropBuildPropPusher, ) - from .group_0679 import ( + from .group_0686 import ( WebhookPersonalAccessTokenRequestApproved as WebhookPersonalAccessTokenRequestApproved, ) - from .group_0680 import ( + from .group_0687 import ( WebhookPersonalAccessTokenRequestCancelled as WebhookPersonalAccessTokenRequestCancelled, ) - from .group_0681 import ( + from .group_0688 import ( WebhookPersonalAccessTokenRequestCreated as WebhookPersonalAccessTokenRequestCreated, ) - from .group_0682 import ( + from .group_0689 import ( WebhookPersonalAccessTokenRequestDenied as WebhookPersonalAccessTokenRequestDenied, ) - from .group_0683 import WebhookPing as WebhookPing - from .group_0684 import WebhookPingPropHook as WebhookPingPropHook - from .group_0684 import ( + from .group_0690 import WebhookPing as WebhookPing + from .group_0691 import WebhookPingPropHook as WebhookPingPropHook + from .group_0691 import ( WebhookPingPropHookPropConfig as WebhookPingPropHookPropConfig, ) - from .group_0685 import WebhookPingFormEncoded as WebhookPingFormEncoded - from .group_0686 import WebhookProjectCardConverted as WebhookProjectCardConverted - from .group_0686 import ( + from .group_0692 import WebhookPingFormEncoded as WebhookPingFormEncoded + from .group_0693 import WebhookProjectCardConverted as WebhookProjectCardConverted + from .group_0693 import ( WebhookProjectCardConvertedPropChanges as WebhookProjectCardConvertedPropChanges, ) - from .group_0686 import ( + from .group_0693 import ( WebhookProjectCardConvertedPropChangesPropNote as WebhookProjectCardConvertedPropChangesPropNote, ) - from .group_0687 import WebhookProjectCardCreated as WebhookProjectCardCreated - from .group_0688 import WebhookProjectCardDeleted as WebhookProjectCardDeleted - from .group_0688 import ( + from .group_0694 import WebhookProjectCardCreated as WebhookProjectCardCreated + from .group_0695 import WebhookProjectCardDeleted as WebhookProjectCardDeleted + from .group_0695 import ( WebhookProjectCardDeletedPropProjectCard as WebhookProjectCardDeletedPropProjectCard, ) - from .group_0688 import ( + from .group_0695 import ( WebhookProjectCardDeletedPropProjectCardPropCreator as WebhookProjectCardDeletedPropProjectCardPropCreator, ) - from .group_0689 import WebhookProjectCardEdited as WebhookProjectCardEdited - from .group_0689 import ( + from .group_0696 import WebhookProjectCardEdited as WebhookProjectCardEdited + from .group_0696 import ( WebhookProjectCardEditedPropChanges as WebhookProjectCardEditedPropChanges, ) - from .group_0689 import ( + from .group_0696 import ( WebhookProjectCardEditedPropChangesPropNote as WebhookProjectCardEditedPropChangesPropNote, ) - from .group_0690 import WebhookProjectCardMoved as WebhookProjectCardMoved - from .group_0690 import ( + from .group_0697 import WebhookProjectCardMoved as WebhookProjectCardMoved + from .group_0697 import ( WebhookProjectCardMovedPropChanges as WebhookProjectCardMovedPropChanges, ) - from .group_0690 import ( + from .group_0697 import ( WebhookProjectCardMovedPropChangesPropColumnId as WebhookProjectCardMovedPropChangesPropColumnId, ) - from .group_0690 import ( + from .group_0697 import ( WebhookProjectCardMovedPropProjectCard as WebhookProjectCardMovedPropProjectCard, ) - from .group_0690 import ( + from .group_0697 import ( WebhookProjectCardMovedPropProjectCardMergedCreator as WebhookProjectCardMovedPropProjectCardMergedCreator, ) - from .group_0691 import ( + from .group_0698 import ( WebhookProjectCardMovedPropProjectCardAllof0 as WebhookProjectCardMovedPropProjectCardAllof0, ) - from .group_0691 import ( + from .group_0698 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreator as WebhookProjectCardMovedPropProjectCardAllof0PropCreator, ) - from .group_0692 import ( + from .group_0699 import ( WebhookProjectCardMovedPropProjectCardAllof1 as WebhookProjectCardMovedPropProjectCardAllof1, ) - from .group_0692 import ( + from .group_0699 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreator as WebhookProjectCardMovedPropProjectCardAllof1PropCreator, ) - from .group_0693 import WebhookProjectClosed as WebhookProjectClosed - from .group_0694 import WebhookProjectColumnCreated as WebhookProjectColumnCreated - from .group_0695 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted - from .group_0696 import WebhookProjectColumnEdited as WebhookProjectColumnEdited - from .group_0696 import ( + from .group_0700 import WebhookProjectClosed as WebhookProjectClosed + from .group_0701 import WebhookProjectColumnCreated as WebhookProjectColumnCreated + from .group_0702 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted + from .group_0703 import WebhookProjectColumnEdited as WebhookProjectColumnEdited + from .group_0703 import ( WebhookProjectColumnEditedPropChanges as WebhookProjectColumnEditedPropChanges, ) - from .group_0696 import ( + from .group_0703 import ( WebhookProjectColumnEditedPropChangesPropName as WebhookProjectColumnEditedPropChangesPropName, ) - from .group_0697 import WebhookProjectColumnMoved as WebhookProjectColumnMoved - from .group_0698 import WebhookProjectCreated as WebhookProjectCreated - from .group_0699 import WebhookProjectDeleted as WebhookProjectDeleted - from .group_0700 import WebhookProjectEdited as WebhookProjectEdited - from .group_0700 import ( + from .group_0704 import WebhookProjectColumnMoved as WebhookProjectColumnMoved + from .group_0705 import WebhookProjectCreated as WebhookProjectCreated + from .group_0706 import WebhookProjectDeleted as WebhookProjectDeleted + from .group_0707 import WebhookProjectEdited as WebhookProjectEdited + from .group_0707 import ( WebhookProjectEditedPropChanges as WebhookProjectEditedPropChanges, ) - from .group_0700 import ( + from .group_0707 import ( WebhookProjectEditedPropChangesPropBody as WebhookProjectEditedPropChangesPropBody, ) - from .group_0700 import ( + from .group_0707 import ( WebhookProjectEditedPropChangesPropName as WebhookProjectEditedPropChangesPropName, ) - from .group_0701 import WebhookProjectReopened as WebhookProjectReopened - from .group_0702 import ( + from .group_0708 import WebhookProjectReopened as WebhookProjectReopened + from .group_0709 import ( WebhookProjectsV2ProjectClosed as WebhookProjectsV2ProjectClosed, ) - from .group_0703 import ( + from .group_0710 import ( WebhookProjectsV2ProjectCreated as WebhookProjectsV2ProjectCreated, ) - from .group_0704 import ( + from .group_0711 import ( WebhookProjectsV2ProjectDeleted as WebhookProjectsV2ProjectDeleted, ) - from .group_0705 import ( + from .group_0712 import ( WebhookProjectsV2ProjectEdited as WebhookProjectsV2ProjectEdited, ) - from .group_0705 import ( + from .group_0712 import ( WebhookProjectsV2ProjectEditedPropChanges as WebhookProjectsV2ProjectEditedPropChanges, ) - from .group_0705 import ( + from .group_0712 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescription as WebhookProjectsV2ProjectEditedPropChangesPropDescription, ) - from .group_0705 import ( + from .group_0712 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublic as WebhookProjectsV2ProjectEditedPropChangesPropPublic, ) - from .group_0705 import ( + from .group_0712 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescription as WebhookProjectsV2ProjectEditedPropChangesPropShortDescription, ) - from .group_0705 import ( + from .group_0712 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitle as WebhookProjectsV2ProjectEditedPropChangesPropTitle, ) - from .group_0706 import ( + from .group_0713 import ( WebhookProjectsV2ItemArchived as WebhookProjectsV2ItemArchived, ) - from .group_0707 import ( + from .group_0714 import ( WebhookProjectsV2ItemConverted as WebhookProjectsV2ItemConverted, ) - from .group_0707 import ( + from .group_0714 import ( WebhookProjectsV2ItemConvertedPropChanges as WebhookProjectsV2ItemConvertedPropChanges, ) - from .group_0707 import ( + from .group_0714 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentType as WebhookProjectsV2ItemConvertedPropChangesPropContentType, ) - from .group_0708 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated - from .group_0709 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted - from .group_0710 import ProjectsV2IterationSetting as ProjectsV2IterationSetting - from .group_0710 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption - from .group_0710 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited - from .group_0710 import ( + from .group_0715 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated + from .group_0716 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted + from .group_0717 import ProjectsV2IterationSetting as ProjectsV2IterationSetting + from .group_0717 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption + from .group_0717 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited + from .group_0717 import ( WebhookProjectsV2ItemEditedPropChangesOneof0 as WebhookProjectsV2ItemEditedPropChangesOneof0, ) - from .group_0710 import ( + from .group_0717 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue, ) - from .group_0710 import ( + from .group_0717 import ( WebhookProjectsV2ItemEditedPropChangesOneof1 as WebhookProjectsV2ItemEditedPropChangesOneof1, ) - from .group_0710 import ( + from .group_0717 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBody as WebhookProjectsV2ItemEditedPropChangesOneof1PropBody, ) - from .group_0711 import ( + from .group_0718 import ( WebhookProjectsV2ItemReordered as WebhookProjectsV2ItemReordered, ) - from .group_0711 import ( + from .group_0718 import ( WebhookProjectsV2ItemReorderedPropChanges as WebhookProjectsV2ItemReorderedPropChanges, ) - from .group_0711 import ( + from .group_0718 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId, ) - from .group_0712 import ( + from .group_0719 import ( WebhookProjectsV2ItemRestored as WebhookProjectsV2ItemRestored, ) - from .group_0713 import ( + from .group_0720 import ( WebhookProjectsV2ProjectReopened as WebhookProjectsV2ProjectReopened, ) - from .group_0714 import ( + from .group_0721 import ( WebhookProjectsV2StatusUpdateCreated as WebhookProjectsV2StatusUpdateCreated, ) - from .group_0715 import ( + from .group_0722 import ( WebhookProjectsV2StatusUpdateDeleted as WebhookProjectsV2StatusUpdateDeleted, ) - from .group_0716 import ( + from .group_0723 import ( WebhookProjectsV2StatusUpdateEdited as WebhookProjectsV2StatusUpdateEdited, ) - from .group_0716 import ( + from .group_0723 import ( WebhookProjectsV2StatusUpdateEditedPropChanges as WebhookProjectsV2StatusUpdateEditedPropChanges, ) - from .group_0716 import ( + from .group_0723 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropBody as WebhookProjectsV2StatusUpdateEditedPropChangesPropBody, ) - from .group_0716 import ( + from .group_0723 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate, ) - from .group_0716 import ( + from .group_0723 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus, ) - from .group_0716 import ( + from .group_0723 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate, ) - from .group_0717 import WebhookPublic as WebhookPublic - from .group_0718 import WebhookPullRequestAssigned as WebhookPullRequestAssigned - from .group_0718 import ( + from .group_0724 import WebhookPublic as WebhookPublic + from .group_0725 import WebhookPullRequestAssigned as WebhookPullRequestAssigned + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequest as WebhookPullRequestAssignedPropPullRequest, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropAssignee as WebhookPullRequestAssignedPropPullRequestPropAssignee, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItems as WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMerge as WebhookPullRequestAssignedPropPullRequestPropAutoMerge, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepo as WebhookPullRequestAssignedPropPullRequestPropBasePropRepo, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUser as WebhookPullRequestAssignedPropPullRequestPropBasePropUser, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropHead as WebhookPullRequestAssignedPropPullRequestPropHead, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUser as WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItems as WebhookPullRequestAssignedPropPullRequestPropLabelsItems, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinks as WebhookPullRequestAssignedPropPullRequestPropLinks, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropComments, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropMergedBy as WebhookPullRequestAssignedPropPullRequestPropMergedBy, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropMilestone as WebhookPullRequestAssignedPropPullRequestPropMilestone, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropUser as WebhookPullRequestAssignedPropPullRequestPropUser, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabled as WebhookPullRequestAutoMergeDisabled, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequest as WebhookPullRequestAutoMergeDisabledPropPullRequest, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabled as WebhookPullRequestAutoMergeEnabled, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequest as WebhookPullRequestAutoMergeEnabledPropPullRequest, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, ) - from .group_0721 import WebhookPullRequestClosed as WebhookPullRequestClosed - from .group_0722 import ( + from .group_0728 import WebhookPullRequestClosed as WebhookPullRequestClosed + from .group_0729 import ( WebhookPullRequestConvertedToDraft as WebhookPullRequestConvertedToDraft, ) - from .group_0723 import ( + from .group_0730 import ( WebhookPullRequestDemilestoned as WebhookPullRequestDemilestoned, ) - from .group_0724 import WebhookPullRequestDequeued as WebhookPullRequestDequeued - from .group_0724 import ( + from .group_0731 import WebhookPullRequestDequeued as WebhookPullRequestDequeued + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequest as WebhookPullRequestDequeuedPropPullRequest, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropAssignee as WebhookPullRequestDequeuedPropPullRequestPropAssignee, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMerge as WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropBase as WebhookPullRequestDequeuedPropPullRequestPropBase, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUser as WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropHead as WebhookPullRequestDequeuedPropPullRequestPropHead, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItems as WebhookPullRequestDequeuedPropPullRequestPropLabelsItems, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinks as WebhookPullRequestDequeuedPropPullRequestPropLinks, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedBy as WebhookPullRequestDequeuedPropPullRequestPropMergedBy, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestone as WebhookPullRequestDequeuedPropPullRequestPropMilestone, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropUser as WebhookPullRequestDequeuedPropPullRequestPropUser, ) - from .group_0725 import WebhookPullRequestEdited as WebhookPullRequestEdited - from .group_0725 import ( + from .group_0732 import WebhookPullRequestEdited as WebhookPullRequestEdited + from .group_0732 import ( WebhookPullRequestEditedPropChanges as WebhookPullRequestEditedPropChanges, ) - from .group_0725 import ( + from .group_0732 import ( WebhookPullRequestEditedPropChangesPropBase as WebhookPullRequestEditedPropChangesPropBase, ) - from .group_0725 import ( + from .group_0732 import ( WebhookPullRequestEditedPropChangesPropBasePropRef as WebhookPullRequestEditedPropChangesPropBasePropRef, ) - from .group_0725 import ( + from .group_0732 import ( WebhookPullRequestEditedPropChangesPropBasePropSha as WebhookPullRequestEditedPropChangesPropBasePropSha, ) - from .group_0725 import ( + from .group_0732 import ( WebhookPullRequestEditedPropChangesPropBody as WebhookPullRequestEditedPropChangesPropBody, ) - from .group_0725 import ( + from .group_0732 import ( WebhookPullRequestEditedPropChangesPropTitle as WebhookPullRequestEditedPropChangesPropTitle, ) - from .group_0726 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued - from .group_0726 import ( + from .group_0733 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequest as WebhookPullRequestEnqueuedPropPullRequest, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssignee as WebhookPullRequestEnqueuedPropPullRequestPropAssignee, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge as WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropBase as WebhookPullRequestEnqueuedPropPullRequestPropBase, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropHead as WebhookPullRequestEnqueuedPropPullRequestPropHead, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinks as WebhookPullRequestEnqueuedPropPullRequestPropLinks, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedBy as WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestone as WebhookPullRequestEnqueuedPropPullRequestPropMilestone, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropUser as WebhookPullRequestEnqueuedPropPullRequestPropUser, ) - from .group_0727 import WebhookPullRequestLabeled as WebhookPullRequestLabeled - from .group_0727 import ( + from .group_0734 import WebhookPullRequestLabeled as WebhookPullRequestLabeled + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequest as WebhookPullRequestLabeledPropPullRequest, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropAssignee as WebhookPullRequestLabeledPropPullRequestPropAssignee, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItems as WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMerge as WebhookPullRequestLabeledPropPullRequestPropAutoMerge, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropBase as WebhookPullRequestLabeledPropPullRequestPropBase, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepo as WebhookPullRequestLabeledPropPullRequestPropBasePropRepo, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUser as WebhookPullRequestLabeledPropPullRequestPropBasePropUser, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropHead as WebhookPullRequestLabeledPropPullRequestPropHead, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUser as WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItems as WebhookPullRequestLabeledPropPullRequestPropLabelsItems, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinks as WebhookPullRequestLabeledPropPullRequestPropLinks, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropComments, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropMergedBy as WebhookPullRequestLabeledPropPullRequestPropMergedBy, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropMilestone as WebhookPullRequestLabeledPropPullRequestPropMilestone, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropUser as WebhookPullRequestLabeledPropPullRequestPropUser, ) - from .group_0728 import WebhookPullRequestLocked as WebhookPullRequestLocked - from .group_0728 import ( + from .group_0735 import WebhookPullRequestLocked as WebhookPullRequestLocked + from .group_0735 import ( WebhookPullRequestLockedPropPullRequest as WebhookPullRequestLockedPropPullRequest, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropAssignee as WebhookPullRequestLockedPropPullRequestPropAssignee, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItems as WebhookPullRequestLockedPropPullRequestPropAssigneesItems, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropAutoMerge as WebhookPullRequestLockedPropPullRequestPropAutoMerge, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropBase as WebhookPullRequestLockedPropPullRequestPropBase, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepo as WebhookPullRequestLockedPropPullRequestPropBasePropRepo, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUser as WebhookPullRequestLockedPropPullRequestPropBasePropUser, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropHead as WebhookPullRequestLockedPropPullRequestPropHead, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepo as WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUser as WebhookPullRequestLockedPropPullRequestPropHeadPropUser, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItems as WebhookPullRequestLockedPropPullRequestPropLabelsItems, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinks as WebhookPullRequestLockedPropPullRequestPropLinks, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropComments as WebhookPullRequestLockedPropPullRequestPropLinksPropComments, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommits as WebhookPullRequestLockedPropPullRequestPropLinksPropCommits, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtml as WebhookPullRequestLockedPropPullRequestPropLinksPropHtml, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssue as WebhookPullRequestLockedPropPullRequestPropLinksPropIssue, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelf as WebhookPullRequestLockedPropPullRequestPropLinksPropSelf, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropMergedBy as WebhookPullRequestLockedPropPullRequestPropMergedBy, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropMilestone as WebhookPullRequestLockedPropPullRequestPropMilestone, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropUser as WebhookPullRequestLockedPropPullRequestPropUser, ) - from .group_0729 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned - from .group_0730 import WebhookPullRequestOpened as WebhookPullRequestOpened - from .group_0731 import ( + from .group_0736 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned + from .group_0737 import WebhookPullRequestOpened as WebhookPullRequestOpened + from .group_0738 import ( WebhookPullRequestReadyForReview as WebhookPullRequestReadyForReview, ) - from .group_0732 import WebhookPullRequestReopened as WebhookPullRequestReopened - from .group_0733 import ( + from .group_0739 import WebhookPullRequestReopened as WebhookPullRequestReopened + from .group_0740 import ( WebhookPullRequestReviewCommentCreated as WebhookPullRequestReviewCommentCreated, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropComment as WebhookPullRequestReviewCommentCreatedPropComment, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinks as WebhookPullRequestReviewCommentCreatedPropCommentPropLinks, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactions as WebhookPullRequestReviewCommentCreatedPropCommentPropReactions, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUser as WebhookPullRequestReviewCommentCreatedPropCommentPropUser, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequest as WebhookPullRequestReviewCommentCreatedPropPullRequest, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeleted as WebhookPullRequestReviewCommentDeleted, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequest as WebhookPullRequestReviewCommentDeletedPropPullRequest, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEdited as WebhookPullRequestReviewCommentEdited, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequest as WebhookPullRequestReviewCommentEditedPropPullRequest, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBase as WebhookPullRequestReviewCommentEditedPropPullRequestPropBase, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHead as WebhookPullRequestReviewCommentEditedPropPullRequestPropHead, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissed as WebhookPullRequestReviewDismissed, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequest as WebhookPullRequestReviewDismissedPropPullRequest, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssignee as WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBase as WebhookPullRequestReviewDismissedPropPullRequestPropBase, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHead as WebhookPullRequestReviewDismissedPropPullRequestPropHead, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinks as WebhookPullRequestReviewDismissedPropPullRequestPropLinks, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestone as WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropUser, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropReview as WebhookPullRequestReviewDismissedPropReview, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropReviewPropLinks as WebhookPullRequestReviewDismissedPropReviewPropLinks, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropReviewPropUser as WebhookPullRequestReviewDismissedPropReviewPropUser, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEdited as WebhookPullRequestReviewEdited, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropChanges as WebhookPullRequestReviewEditedPropChanges, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropChangesPropBody as WebhookPullRequestReviewEditedPropChangesPropBody, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequest as WebhookPullRequestReviewEditedPropPullRequest, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssignee as WebhookPullRequestReviewEditedPropPullRequestPropAssignee, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropBase as WebhookPullRequestReviewEditedPropPullRequestPropBase, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropHead as WebhookPullRequestReviewEditedPropPullRequestPropHead, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinks as WebhookPullRequestReviewEditedPropPullRequestPropLinks, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestone as WebhookPullRequestReviewEditedPropPullRequestPropMilestone, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropUser as WebhookPullRequestReviewEditedPropPullRequestPropUser, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0 as WebhookPullRequestReviewRequestRemovedOneof0, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1 as WebhookPullRequestReviewRequestRemovedOneof1, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0 as WebhookPullRequestReviewRequestedOneof0, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequest as WebhookPullRequestReviewRequestedOneof0PropPullRequest, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1 as WebhookPullRequestReviewRequestedOneof1, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequest as WebhookPullRequestReviewRequestedOneof1PropPullRequest, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestedOneof1PropRequestedTeam, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmitted as WebhookPullRequestReviewSubmitted, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequest as WebhookPullRequestReviewSubmittedPropPullRequest, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee as WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBase as WebhookPullRequestReviewSubmittedPropPullRequestPropBase, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHead as WebhookPullRequestReviewSubmittedPropPullRequestPropHead, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinks as WebhookPullRequestReviewSubmittedPropPullRequestPropLinks, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropUser, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolved as WebhookPullRequestReviewThreadResolved, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequest as WebhookPullRequestReviewThreadResolvedPropPullRequest, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThread as WebhookPullRequestReviewThreadResolvedPropThread, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolved as WebhookPullRequestReviewThreadUnresolved, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropPullRequest, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThread as WebhookPullRequestReviewThreadUnresolvedPropThread, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronize as WebhookPullRequestSynchronize, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequest as WebhookPullRequestSynchronizePropPullRequest, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropAssignee as WebhookPullRequestSynchronizePropPullRequestPropAssignee, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMerge as WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropBase as WebhookPullRequestSynchronizePropPullRequestPropBase, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUser as WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropHead as WebhookPullRequestSynchronizePropPullRequestPropHead, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItems as WebhookPullRequestSynchronizePropPullRequestPropLabelsItems, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinks as WebhookPullRequestSynchronizePropPullRequestPropLinks, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedBy as WebhookPullRequestSynchronizePropPullRequestPropMergedBy, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestone as WebhookPullRequestSynchronizePropPullRequestPropMilestone, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropUser as WebhookPullRequestSynchronizePropPullRequestPropUser, ) - from .group_0746 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned - from .group_0746 import ( + from .group_0753 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequest as WebhookPullRequestUnassignedPropPullRequest, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropAssignee as WebhookPullRequestUnassignedPropPullRequestPropAssignee, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMerge as WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropBase as WebhookPullRequestUnassignedPropPullRequestPropBase, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUser as WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropHead as WebhookPullRequestUnassignedPropPullRequestPropHead, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItems as WebhookPullRequestUnassignedPropPullRequestPropLabelsItems, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedBy as WebhookPullRequestUnassignedPropPullRequestPropMergedBy, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestone as WebhookPullRequestUnassignedPropPullRequestPropMilestone, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropUser as WebhookPullRequestUnassignedPropPullRequestPropUser, ) - from .group_0747 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled - from .group_0747 import ( + from .group_0754 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequest as WebhookPullRequestUnlabeledPropPullRequest, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssignee as WebhookPullRequestUnlabeledPropPullRequestPropAssignee, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge as WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropBase as WebhookPullRequestUnlabeledPropPullRequestPropBase, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropHead as WebhookPullRequestUnlabeledPropPullRequestPropHead, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinks as WebhookPullRequestUnlabeledPropPullRequestPropLinks, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedBy as WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestone as WebhookPullRequestUnlabeledPropPullRequestPropMilestone, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropUser as WebhookPullRequestUnlabeledPropPullRequestPropUser, ) - from .group_0748 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked - from .group_0748 import ( + from .group_0755 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequest as WebhookPullRequestUnlockedPropPullRequest, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropAssignee as WebhookPullRequestUnlockedPropPullRequestPropAssignee, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMerge as WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropBase as WebhookPullRequestUnlockedPropPullRequestPropBase, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUser as WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropHead as WebhookPullRequestUnlockedPropPullRequestPropHead, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItems as WebhookPullRequestUnlockedPropPullRequestPropLabelsItems, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinks as WebhookPullRequestUnlockedPropPullRequestPropLinks, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedBy as WebhookPullRequestUnlockedPropPullRequestPropMergedBy, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestone as WebhookPullRequestUnlockedPropPullRequestPropMilestone, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropUser as WebhookPullRequestUnlockedPropPullRequestPropUser, ) - from .group_0749 import WebhookPush as WebhookPush - from .group_0749 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems - from .group_0749 import ( + from .group_0756 import WebhookPush as WebhookPush + from .group_0756 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems + from .group_0756 import ( WebhookPushPropCommitsItemsPropAuthor as WebhookPushPropCommitsItemsPropAuthor, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropCommitsItemsPropCommitter as WebhookPushPropCommitsItemsPropCommitter, ) - from .group_0749 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit - from .group_0749 import ( + from .group_0756 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit + from .group_0756 import ( WebhookPushPropHeadCommitPropAuthor as WebhookPushPropHeadCommitPropAuthor, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropHeadCommitPropCommitter as WebhookPushPropHeadCommitPropCommitter, ) - from .group_0749 import WebhookPushPropPusher as WebhookPushPropPusher - from .group_0749 import WebhookPushPropRepository as WebhookPushPropRepository - from .group_0749 import ( + from .group_0756 import WebhookPushPropPusher as WebhookPushPropPusher + from .group_0756 import WebhookPushPropRepository as WebhookPushPropRepository + from .group_0756 import ( WebhookPushPropRepositoryPropCustomProperties as WebhookPushPropRepositoryPropCustomProperties, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropRepositoryPropLicense as WebhookPushPropRepositoryPropLicense, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropRepositoryPropOwner as WebhookPushPropRepositoryPropOwner, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropRepositoryPropPermissions as WebhookPushPropRepositoryPropPermissions, ) - from .group_0750 import ( + from .group_0757 import ( WebhookRegistryPackagePublished as WebhookRegistryPackagePublished, ) - from .group_0751 import ( + from .group_0758 import ( WebhookRegistryPackagePublishedPropRegistryPackage as WebhookRegistryPackagePublishedPropRegistryPackage, ) - from .group_0751 import ( + from .group_0758 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwner as WebhookRegistryPackagePublishedPropRegistryPackagePropOwner, ) - from .group_0751 import ( + from .group_0758 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0753 import ( + from .group_0760 import ( WebhookRegistryPackageUpdated as WebhookRegistryPackageUpdated, ) - from .group_0754 import ( + from .group_0761 import ( WebhookRegistryPackageUpdatedPropRegistryPackage as WebhookRegistryPackageUpdatedPropRegistryPackage, ) - from .group_0754 import ( + from .group_0761 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner, ) - from .group_0754 import ( + from .group_0761 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0756 import WebhookReleaseCreated as WebhookReleaseCreated - from .group_0757 import WebhookReleaseDeleted as WebhookReleaseDeleted - from .group_0758 import WebhookReleaseEdited as WebhookReleaseEdited - from .group_0758 import ( + from .group_0763 import WebhookReleaseCreated as WebhookReleaseCreated + from .group_0764 import WebhookReleaseDeleted as WebhookReleaseDeleted + from .group_0765 import WebhookReleaseEdited as WebhookReleaseEdited + from .group_0765 import ( WebhookReleaseEditedPropChanges as WebhookReleaseEditedPropChanges, ) - from .group_0758 import ( + from .group_0765 import ( WebhookReleaseEditedPropChangesPropBody as WebhookReleaseEditedPropChangesPropBody, ) - from .group_0758 import ( + from .group_0765 import ( WebhookReleaseEditedPropChangesPropMakeLatest as WebhookReleaseEditedPropChangesPropMakeLatest, ) - from .group_0758 import ( + from .group_0765 import ( WebhookReleaseEditedPropChangesPropName as WebhookReleaseEditedPropChangesPropName, ) - from .group_0759 import WebhookReleasePrereleased as WebhookReleasePrereleased - from .group_0759 import ( + from .group_0766 import WebhookReleasePrereleased as WebhookReleasePrereleased + from .group_0766 import ( WebhookReleasePrereleasedPropRelease as WebhookReleasePrereleasedPropRelease, ) - from .group_0759 import ( + from .group_0766 import ( WebhookReleasePrereleasedPropReleasePropAssetsItems as WebhookReleasePrereleasedPropReleasePropAssetsItems, ) - from .group_0759 import ( + from .group_0766 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, ) - from .group_0759 import ( + from .group_0766 import ( WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) - from .group_0759 import ( + from .group_0766 import ( WebhookReleasePrereleasedPropReleasePropReactions as WebhookReleasePrereleasedPropReleasePropReactions, ) - from .group_0760 import WebhookReleasePublished as WebhookReleasePublished - from .group_0761 import WebhookReleaseReleased as WebhookReleaseReleased - from .group_0762 import WebhookReleaseUnpublished as WebhookReleaseUnpublished - from .group_0763 import ( + from .group_0767 import WebhookReleasePublished as WebhookReleasePublished + from .group_0768 import WebhookReleaseReleased as WebhookReleaseReleased + from .group_0769 import WebhookReleaseUnpublished as WebhookReleaseUnpublished + from .group_0770 import ( WebhookRepositoryAdvisoryPublished as WebhookRepositoryAdvisoryPublished, ) - from .group_0764 import ( + from .group_0771 import ( WebhookRepositoryAdvisoryReported as WebhookRepositoryAdvisoryReported, ) - from .group_0765 import WebhookRepositoryArchived as WebhookRepositoryArchived - from .group_0766 import WebhookRepositoryCreated as WebhookRepositoryCreated - from .group_0767 import WebhookRepositoryDeleted as WebhookRepositoryDeleted - from .group_0768 import ( + from .group_0772 import WebhookRepositoryArchived as WebhookRepositoryArchived + from .group_0773 import WebhookRepositoryCreated as WebhookRepositoryCreated + from .group_0774 import WebhookRepositoryDeleted as WebhookRepositoryDeleted + from .group_0775 import ( WebhookRepositoryDispatchSample as WebhookRepositoryDispatchSample, ) - from .group_0768 import ( + from .group_0775 import ( WebhookRepositoryDispatchSamplePropClientPayload as WebhookRepositoryDispatchSamplePropClientPayload, ) - from .group_0769 import WebhookRepositoryEdited as WebhookRepositoryEdited - from .group_0769 import ( + from .group_0776 import WebhookRepositoryEdited as WebhookRepositoryEdited + from .group_0776 import ( WebhookRepositoryEditedPropChanges as WebhookRepositoryEditedPropChanges, ) - from .group_0769 import ( + from .group_0776 import ( WebhookRepositoryEditedPropChangesPropDefaultBranch as WebhookRepositoryEditedPropChangesPropDefaultBranch, ) - from .group_0769 import ( + from .group_0776 import ( WebhookRepositoryEditedPropChangesPropDescription as WebhookRepositoryEditedPropChangesPropDescription, ) - from .group_0769 import ( + from .group_0776 import ( WebhookRepositoryEditedPropChangesPropHomepage as WebhookRepositoryEditedPropChangesPropHomepage, ) - from .group_0769 import ( + from .group_0776 import ( WebhookRepositoryEditedPropChangesPropTopics as WebhookRepositoryEditedPropChangesPropTopics, ) - from .group_0770 import WebhookRepositoryImport as WebhookRepositoryImport - from .group_0771 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized - from .group_0772 import WebhookRepositoryPublicized as WebhookRepositoryPublicized - from .group_0773 import WebhookRepositoryRenamed as WebhookRepositoryRenamed - from .group_0773 import ( + from .group_0777 import WebhookRepositoryImport as WebhookRepositoryImport + from .group_0778 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized + from .group_0779 import WebhookRepositoryPublicized as WebhookRepositoryPublicized + from .group_0780 import WebhookRepositoryRenamed as WebhookRepositoryRenamed + from .group_0780 import ( WebhookRepositoryRenamedPropChanges as WebhookRepositoryRenamedPropChanges, ) - from .group_0773 import ( + from .group_0780 import ( WebhookRepositoryRenamedPropChangesPropRepository as WebhookRepositoryRenamedPropChangesPropRepository, ) - from .group_0773 import ( + from .group_0780 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropName as WebhookRepositoryRenamedPropChangesPropRepositoryPropName, ) - from .group_0774 import ( + from .group_0781 import ( WebhookRepositoryRulesetCreated as WebhookRepositoryRulesetCreated, ) - from .group_0775 import ( + from .group_0782 import ( WebhookRepositoryRulesetDeleted as WebhookRepositoryRulesetDeleted, ) - from .group_0776 import ( + from .group_0783 import ( WebhookRepositoryRulesetEdited as WebhookRepositoryRulesetEdited, ) - from .group_0777 import ( + from .group_0784 import ( WebhookRepositoryRulesetEditedPropChanges as WebhookRepositoryRulesetEditedPropChanges, ) - from .group_0777 import ( + from .group_0784 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcement as WebhookRepositoryRulesetEditedPropChangesPropEnforcement, ) - from .group_0777 import ( + from .group_0784 import ( WebhookRepositoryRulesetEditedPropChangesPropName as WebhookRepositoryRulesetEditedPropChangesPropName, ) - from .group_0778 import ( + from .group_0785 import ( WebhookRepositoryRulesetEditedPropChangesPropConditions as WebhookRepositoryRulesetEditedPropChangesPropConditions, ) - from .group_0779 import ( + from .group_0786 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, ) - from .group_0779 import ( + from .group_0786 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) - from .group_0779 import ( + from .group_0786 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType, ) - from .group_0779 import ( + from .group_0786 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude, ) - from .group_0779 import ( + from .group_0786 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude, ) - from .group_0779 import ( + from .group_0786 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget, ) - from .group_0780 import ( + from .group_0787 import ( WebhookRepositoryRulesetEditedPropChangesPropRules as WebhookRepositoryRulesetEditedPropChangesPropRules, ) - from .group_0781 import ( + from .group_0788 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, ) - from .group_0781 import ( + from .group_0788 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges, ) - from .group_0781 import ( + from .group_0788 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration, ) - from .group_0781 import ( + from .group_0788 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern, ) - from .group_0781 import ( + from .group_0788 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType, ) - from .group_0782 import WebhookRepositoryTransferred as WebhookRepositoryTransferred - from .group_0782 import ( + from .group_0789 import WebhookRepositoryTransferred as WebhookRepositoryTransferred + from .group_0789 import ( WebhookRepositoryTransferredPropChanges as WebhookRepositoryTransferredPropChanges, ) - from .group_0782 import ( + from .group_0789 import ( WebhookRepositoryTransferredPropChangesPropOwner as WebhookRepositoryTransferredPropChangesPropOwner, ) - from .group_0782 import ( + from .group_0789 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFrom as WebhookRepositoryTransferredPropChangesPropOwnerPropFrom, ) - from .group_0782 import ( + from .group_0789 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization, ) - from .group_0782 import ( + from .group_0789 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, ) - from .group_0783 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived - from .group_0784 import ( + from .group_0790 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived + from .group_0791 import ( WebhookRepositoryVulnerabilityAlertCreate as WebhookRepositoryVulnerabilityAlertCreate, ) - from .group_0785 import ( + from .group_0792 import ( WebhookRepositoryVulnerabilityAlertDismiss as WebhookRepositoryVulnerabilityAlertDismiss, ) - from .group_0785 import ( + from .group_0792 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlert as WebhookRepositoryVulnerabilityAlertDismissPropAlert, ) - from .group_0785 import ( + from .group_0792 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, ) - from .group_0786 import ( + from .group_0793 import ( WebhookRepositoryVulnerabilityAlertReopen as WebhookRepositoryVulnerabilityAlertReopen, ) - from .group_0787 import ( + from .group_0794 import ( WebhookRepositoryVulnerabilityAlertResolve as WebhookRepositoryVulnerabilityAlertResolve, ) - from .group_0787 import ( + from .group_0794 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlert as WebhookRepositoryVulnerabilityAlertResolvePropAlert, ) - from .group_0787 import ( + from .group_0794 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, ) - from .group_0788 import ( + from .group_0795 import ( WebhookSecretScanningAlertCreated as WebhookSecretScanningAlertCreated, ) - from .group_0789 import SecretScanningLocation as SecretScanningLocation - from .group_0789 import SecretScanningLocationCommit as SecretScanningLocationCommit - from .group_0789 import ( + from .group_0796 import SecretScanningLocation as SecretScanningLocation + from .group_0796 import SecretScanningLocationCommit as SecretScanningLocationCommit + from .group_0796 import ( SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationDiscussionComment as SecretScanningLocationDiscussionComment, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationDiscussionTitle as SecretScanningLocationDiscussionTitle, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationIssueComment as SecretScanningLocationIssueComment, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationIssueTitle as SecretScanningLocationIssueTitle, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationPullRequestBody as SecretScanningLocationPullRequestBody, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationPullRequestComment as SecretScanningLocationPullRequestComment, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationPullRequestReview as SecretScanningLocationPullRequestReview, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationPullRequestReviewComment as SecretScanningLocationPullRequestReviewComment, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationPullRequestTitle as SecretScanningLocationPullRequestTitle, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationWikiCommit as SecretScanningLocationWikiCommit, ) - from .group_0789 import ( + from .group_0796 import ( WebhookSecretScanningAlertLocationCreated as WebhookSecretScanningAlertLocationCreated, ) - from .group_0790 import ( + from .group_0797 import ( WebhookSecretScanningAlertLocationCreatedFormEncoded as WebhookSecretScanningAlertLocationCreatedFormEncoded, ) - from .group_0791 import ( + from .group_0798 import ( WebhookSecretScanningAlertPubliclyLeaked as WebhookSecretScanningAlertPubliclyLeaked, ) - from .group_0792 import ( + from .group_0799 import ( WebhookSecretScanningAlertReopened as WebhookSecretScanningAlertReopened, ) - from .group_0793 import ( + from .group_0800 import ( WebhookSecretScanningAlertResolved as WebhookSecretScanningAlertResolved, ) - from .group_0794 import ( + from .group_0801 import ( WebhookSecretScanningAlertValidated as WebhookSecretScanningAlertValidated, ) - from .group_0795 import ( + from .group_0802 import ( WebhookSecretScanningScanCompleted as WebhookSecretScanningScanCompleted, ) - from .group_0796 import ( + from .group_0803 import ( WebhookSecurityAdvisoryPublished as WebhookSecurityAdvisoryPublished, ) - from .group_0797 import ( + from .group_0804 import ( WebhookSecurityAdvisoryUpdated as WebhookSecurityAdvisoryUpdated, ) - from .group_0798 import ( + from .group_0805 import ( WebhookSecurityAdvisoryWithdrawn as WebhookSecurityAdvisoryWithdrawn, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0800 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis - from .group_0801 import ( + from .group_0807 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis + from .group_0808 import ( WebhookSecurityAndAnalysisPropChanges as WebhookSecurityAndAnalysisPropChanges, ) - from .group_0802 import ( + from .group_0809 import ( WebhookSecurityAndAnalysisPropChangesPropFrom as WebhookSecurityAndAnalysisPropChangesPropFrom, ) - from .group_0803 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled - from .group_0804 import WebhookSponsorshipCreated as WebhookSponsorshipCreated - from .group_0805 import WebhookSponsorshipEdited as WebhookSponsorshipEdited - from .group_0805 import ( + from .group_0810 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled + from .group_0811 import WebhookSponsorshipCreated as WebhookSponsorshipCreated + from .group_0812 import WebhookSponsorshipEdited as WebhookSponsorshipEdited + from .group_0812 import ( WebhookSponsorshipEditedPropChanges as WebhookSponsorshipEditedPropChanges, ) - from .group_0805 import ( + from .group_0812 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevel as WebhookSponsorshipEditedPropChangesPropPrivacyLevel, ) - from .group_0806 import ( + from .group_0813 import ( WebhookSponsorshipPendingCancellation as WebhookSponsorshipPendingCancellation, ) - from .group_0807 import ( + from .group_0814 import ( WebhookSponsorshipPendingTierChange as WebhookSponsorshipPendingTierChange, ) - from .group_0808 import ( + from .group_0815 import ( WebhookSponsorshipTierChanged as WebhookSponsorshipTierChanged, ) - from .group_0809 import WebhookStarCreated as WebhookStarCreated - from .group_0810 import WebhookStarDeleted as WebhookStarDeleted - from .group_0811 import WebhookStatus as WebhookStatus - from .group_0811 import ( + from .group_0816 import WebhookStarCreated as WebhookStarCreated + from .group_0817 import WebhookStarDeleted as WebhookStarDeleted + from .group_0818 import WebhookStatus as WebhookStatus + from .group_0818 import ( WebhookStatusPropBranchesItems as WebhookStatusPropBranchesItems, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropBranchesItemsPropCommit as WebhookStatusPropBranchesItemsPropCommit, ) - from .group_0811 import WebhookStatusPropCommit as WebhookStatusPropCommit - from .group_0811 import ( + from .group_0818 import WebhookStatusPropCommit as WebhookStatusPropCommit + from .group_0818 import ( WebhookStatusPropCommitPropAuthor as WebhookStatusPropCommitPropAuthor, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropCommit as WebhookStatusPropCommitPropCommit, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropCommitPropAuthor as WebhookStatusPropCommitPropCommitPropAuthor, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropCommitPropCommitter as WebhookStatusPropCommitPropCommitPropCommitter, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropCommitPropTree as WebhookStatusPropCommitPropCommitPropTree, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropCommitPropVerification as WebhookStatusPropCommitPropCommitPropVerification, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropCommitter as WebhookStatusPropCommitPropCommitter, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropParentsItems as WebhookStatusPropCommitPropParentsItems, ) - from .group_0812 import ( + from .group_0819 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0 as WebhookStatusPropCommitPropCommitPropAuthorAllof0, ) - from .group_0813 import ( + from .group_0820 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1 as WebhookStatusPropCommitPropCommitPropAuthorAllof1, ) - from .group_0814 import ( + from .group_0821 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0 as WebhookStatusPropCommitPropCommitPropCommitterAllof0, ) - from .group_0815 import ( + from .group_0822 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1 as WebhookStatusPropCommitPropCommitPropCommitterAllof1, ) - from .group_0816 import ( + from .group_0823 import ( WebhookSubIssuesParentIssueAdded as WebhookSubIssuesParentIssueAdded, ) - from .group_0817 import ( + from .group_0824 import ( WebhookSubIssuesParentIssueRemoved as WebhookSubIssuesParentIssueRemoved, ) - from .group_0818 import ( + from .group_0825 import ( WebhookSubIssuesSubIssueAdded as WebhookSubIssuesSubIssueAdded, ) - from .group_0819 import ( + from .group_0826 import ( WebhookSubIssuesSubIssueRemoved as WebhookSubIssuesSubIssueRemoved, ) - from .group_0820 import WebhookTeamAdd as WebhookTeamAdd - from .group_0821 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository - from .group_0821 import ( + from .group_0827 import WebhookTeamAdd as WebhookTeamAdd + from .group_0828 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository + from .group_0828 import ( WebhookTeamAddedToRepositoryPropRepository as WebhookTeamAddedToRepositoryPropRepository, ) - from .group_0821 import ( + from .group_0828 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties as WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties, ) - from .group_0821 import ( + from .group_0828 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicense as WebhookTeamAddedToRepositoryPropRepositoryPropLicense, ) - from .group_0821 import ( + from .group_0828 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwner as WebhookTeamAddedToRepositoryPropRepositoryPropOwner, ) - from .group_0821 import ( + from .group_0828 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissions as WebhookTeamAddedToRepositoryPropRepositoryPropPermissions, ) - from .group_0822 import WebhookTeamCreated as WebhookTeamCreated - from .group_0822 import ( + from .group_0829 import WebhookTeamCreated as WebhookTeamCreated + from .group_0829 import ( WebhookTeamCreatedPropRepository as WebhookTeamCreatedPropRepository, ) - from .group_0822 import ( + from .group_0829 import ( WebhookTeamCreatedPropRepositoryPropCustomProperties as WebhookTeamCreatedPropRepositoryPropCustomProperties, ) - from .group_0822 import ( + from .group_0829 import ( WebhookTeamCreatedPropRepositoryPropLicense as WebhookTeamCreatedPropRepositoryPropLicense, ) - from .group_0822 import ( + from .group_0829 import ( WebhookTeamCreatedPropRepositoryPropOwner as WebhookTeamCreatedPropRepositoryPropOwner, ) - from .group_0822 import ( + from .group_0829 import ( WebhookTeamCreatedPropRepositoryPropPermissions as WebhookTeamCreatedPropRepositoryPropPermissions, ) - from .group_0823 import WebhookTeamDeleted as WebhookTeamDeleted - from .group_0823 import ( + from .group_0830 import WebhookTeamDeleted as WebhookTeamDeleted + from .group_0830 import ( WebhookTeamDeletedPropRepository as WebhookTeamDeletedPropRepository, ) - from .group_0823 import ( + from .group_0830 import ( WebhookTeamDeletedPropRepositoryPropCustomProperties as WebhookTeamDeletedPropRepositoryPropCustomProperties, ) - from .group_0823 import ( + from .group_0830 import ( WebhookTeamDeletedPropRepositoryPropLicense as WebhookTeamDeletedPropRepositoryPropLicense, ) - from .group_0823 import ( + from .group_0830 import ( WebhookTeamDeletedPropRepositoryPropOwner as WebhookTeamDeletedPropRepositoryPropOwner, ) - from .group_0823 import ( + from .group_0830 import ( WebhookTeamDeletedPropRepositoryPropPermissions as WebhookTeamDeletedPropRepositoryPropPermissions, ) - from .group_0824 import WebhookTeamEdited as WebhookTeamEdited - from .group_0824 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges - from .group_0824 import ( + from .group_0831 import WebhookTeamEdited as WebhookTeamEdited + from .group_0831 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges + from .group_0831 import ( WebhookTeamEditedPropChangesPropDescription as WebhookTeamEditedPropChangesPropDescription, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesPropName as WebhookTeamEditedPropChangesPropName, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesPropNotificationSetting as WebhookTeamEditedPropChangesPropNotificationSetting, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesPropPrivacy as WebhookTeamEditedPropChangesPropPrivacy, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesPropRepository as WebhookTeamEditedPropChangesPropRepository, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissions as WebhookTeamEditedPropChangesPropRepositoryPropPermissions, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropRepository as WebhookTeamEditedPropRepository, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropRepositoryPropCustomProperties as WebhookTeamEditedPropRepositoryPropCustomProperties, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropRepositoryPropLicense as WebhookTeamEditedPropRepositoryPropLicense, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropRepositoryPropOwner as WebhookTeamEditedPropRepositoryPropOwner, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropRepositoryPropPermissions as WebhookTeamEditedPropRepositoryPropPermissions, ) - from .group_0825 import ( + from .group_0832 import ( WebhookTeamRemovedFromRepository as WebhookTeamRemovedFromRepository, ) - from .group_0825 import ( + from .group_0832 import ( WebhookTeamRemovedFromRepositoryPropRepository as WebhookTeamRemovedFromRepositoryPropRepository, ) - from .group_0825 import ( + from .group_0832 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties, ) - from .group_0825 import ( + from .group_0832 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, ) - from .group_0825 import ( + from .group_0832 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, ) - from .group_0825 import ( + from .group_0832 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions, ) - from .group_0826 import WebhookWatchStarted as WebhookWatchStarted - from .group_0827 import WebhookWorkflowDispatch as WebhookWorkflowDispatch - from .group_0827 import ( + from .group_0833 import WebhookWatchStarted as WebhookWatchStarted + from .group_0834 import WebhookWorkflowDispatch as WebhookWorkflowDispatch + from .group_0834 import ( WebhookWorkflowDispatchPropInputs as WebhookWorkflowDispatchPropInputs, ) - from .group_0828 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted - from .group_0828 import ( + from .group_0835 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted + from .group_0835 import ( WebhookWorkflowJobCompletedPropWorkflowJob as WebhookWorkflowJobCompletedPropWorkflowJob, ) - from .group_0828 import ( + from .group_0835 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps as WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps, ) - from .group_0829 import ( + from .group_0836 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0 as WebhookWorkflowJobCompletedPropWorkflowJobAllof0, ) - from .group_0829 import ( + from .group_0836 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems, ) - from .group_0830 import ( + from .group_0837 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1 as WebhookWorkflowJobCompletedPropWorkflowJobAllof1, ) - from .group_0830 import ( + from .group_0837 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, ) - from .group_0831 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress - from .group_0831 import ( + from .group_0838 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress + from .group_0838 import ( WebhookWorkflowJobInProgressPropWorkflowJob as WebhookWorkflowJobInProgressPropWorkflowJob, ) - from .group_0831 import ( + from .group_0838 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps as WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps, ) - from .group_0832 import ( + from .group_0839 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0 as WebhookWorkflowJobInProgressPropWorkflowJobAllof0, ) - from .group_0832 import ( + from .group_0839 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, ) - from .group_0833 import ( + from .group_0840 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1 as WebhookWorkflowJobInProgressPropWorkflowJobAllof1, ) - from .group_0833 import ( + from .group_0840 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, ) - from .group_0834 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued - from .group_0834 import ( + from .group_0841 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued + from .group_0841 import ( WebhookWorkflowJobQueuedPropWorkflowJob as WebhookWorkflowJobQueuedPropWorkflowJob, ) - from .group_0834 import ( + from .group_0841 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems, ) - from .group_0835 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting - from .group_0835 import ( + from .group_0842 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting + from .group_0842 import ( WebhookWorkflowJobWaitingPropWorkflowJob as WebhookWorkflowJobWaitingPropWorkflowJob, ) - from .group_0835 import ( + from .group_0842 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems, ) - from .group_0836 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted - from .group_0836 import ( + from .group_0843 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRun as WebhookWorkflowRunCompletedPropWorkflowRun, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActor as WebhookWorkflowRunCompletedPropWorkflowRunPropActor, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropRepository, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, ) - from .group_0837 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress - from .group_0837 import ( + from .group_0844 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRun as WebhookWorkflowRunInProgressPropWorkflowRun, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActor as WebhookWorkflowRunInProgressPropWorkflowRunPropActor, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropRepository, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) - from .group_0838 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested - from .group_0838 import ( + from .group_0845 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRun as WebhookWorkflowRunRequestedPropWorkflowRun, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActor as WebhookWorkflowRunRequestedPropWorkflowRunPropActor, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropRepository, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0839 import ( + from .group_0846 import ( AppManifestsCodeConversionsPostResponse201 as AppManifestsCodeConversionsPostResponse201, ) - from .group_0840 import ( + from .group_0847 import ( AppManifestsCodeConversionsPostResponse201Allof1 as AppManifestsCodeConversionsPostResponse201Allof1, ) - from .group_0841 import AppHookConfigPatchBody as AppHookConfigPatchBody - from .group_0842 import ( + from .group_0848 import AppHookConfigPatchBody as AppHookConfigPatchBody + from .group_0849 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202 as AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) - from .group_0843 import ( + from .group_0850 import ( AppInstallationsInstallationIdAccessTokensPostBody as AppInstallationsInstallationIdAccessTokensPostBody, ) - from .group_0844 import ( + from .group_0851 import ( ApplicationsClientIdGrantDeleteBody as ApplicationsClientIdGrantDeleteBody, ) - from .group_0845 import ( + from .group_0852 import ( ApplicationsClientIdTokenPostBody as ApplicationsClientIdTokenPostBody, ) - from .group_0846 import ( + from .group_0853 import ( ApplicationsClientIdTokenDeleteBody as ApplicationsClientIdTokenDeleteBody, ) - from .group_0847 import ( + from .group_0854 import ( ApplicationsClientIdTokenPatchBody as ApplicationsClientIdTokenPatchBody, ) - from .group_0848 import ( + from .group_0855 import ( ApplicationsClientIdTokenScopedPostBody as ApplicationsClientIdTokenScopedPostBody, ) - from .group_0849 import EmojisGetResponse200 as EmojisGetResponse200 - from .group_0850 import ( + from .group_0856 import EmojisGetResponse200 as EmojisGetResponse200 + from .group_0857 import ( + EnterprisesEnterpriseActionsHostedRunnersGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersGetResponse200, + ) + from .group_0858 import ( + EnterprisesEnterpriseActionsHostedRunnersPostBody as EnterprisesEnterpriseActionsHostedRunnersPostBody, + ) + from .group_0858 import ( + EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage as EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage, + ) + from .group_0859 import ( + EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200, + ) + from .group_0860 import ( + EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200, + ) + from .group_0861 import ( + EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200, + ) + from .group_0862 import ( + EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200, + ) + from .group_0863 import ( + EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody as EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody, + ) + from .group_0864 import ( EnterprisesEnterpriseActionsPermissionsPutBody as EnterprisesEnterpriseActionsPermissionsPutBody, ) - from .group_0851 import ( + from .group_0865 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200 as EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200, ) - from .group_0852 import ( + from .group_0866 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody as EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody, ) - from .group_0853 import ( + from .group_0867 import ( EnterprisesEnterpriseActionsRunnerGroupsGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsGetResponse200, ) - from .group_0853 import RunnerGroupsEnterprise as RunnerGroupsEnterprise - from .group_0854 import ( + from .group_0867 import RunnerGroupsEnterprise as RunnerGroupsEnterprise + from .group_0868 import ( EnterprisesEnterpriseActionsRunnerGroupsPostBody as EnterprisesEnterpriseActionsRunnerGroupsPostBody, ) - from .group_0855 import ( + from .group_0869 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0856 import ( + from .group_0870 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200, ) - from .group_0857 import ( + from .group_0871 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody, ) - from .group_0858 import ( + from .group_0872 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0859 import ( + from .group_0873 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0860 import ( + from .group_0874 import ( EnterprisesEnterpriseActionsRunnersGetResponse200 as EnterprisesEnterpriseActionsRunnersGetResponse200, ) - from .group_0861 import ( + from .group_0875 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, ) - from .group_0862 import ( + from .group_0876 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201 as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, ) - from .group_0863 import ( + from .group_0877 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200 as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200, ) - from .group_0864 import ( + from .group_0878 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0865 import ( + from .group_0879 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0866 import ( + from .group_0880 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200 as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200, ) - from .group_0867 import ( + from .group_0881 import ( EnterprisesEnterpriseAuditLogStreamsPostBody as EnterprisesEnterpriseAuditLogStreamsPostBody, ) - from .group_0868 import ( + from .group_0882 import ( EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody as EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody, ) - from .group_0869 import ( + from .group_0883 import ( EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422 as EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422, ) - from .group_0870 import ( + from .group_0884 import ( EnterprisesEnterpriseCodeScanningAlertsGetResponse503 as EnterprisesEnterpriseCodeScanningAlertsGetResponse503, ) - from .group_0871 import ( + from .group_0885 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBody as EnterprisesEnterpriseCodeSecurityConfigurationsPostBody, ) - from .group_0871 import ( + from .group_0885 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0872 import ( + from .group_0886 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_0872 import ( + from .group_0886 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0873 import ( + from .group_0887 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_0874 import ( + from .group_0888 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0875 import ( + from .group_0889 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0876 import ( + from .group_0890 import ( EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody as EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody, ) - from .group_0877 import ( + from .group_0891 import ( EnterprisesEnterpriseCopilotBillingSeatsGetResponse200 as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, ) - from .group_0878 import ( + from .group_0892 import ( + EnterprisesEnterpriseNetworkConfigurationsGetResponse200 as EnterprisesEnterpriseNetworkConfigurationsGetResponse200, + ) + from .group_0893 import ( + EnterprisesEnterpriseNetworkConfigurationsPostBody as EnterprisesEnterpriseNetworkConfigurationsPostBody, + ) + from .group_0894 import ( + EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody as EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody, + ) + from .group_0895 import ( EnterprisesEnterprisePropertiesSchemaPatchBody as EnterprisesEnterprisePropertiesSchemaPatchBody, ) - from .group_0879 import ( + from .group_0896 import ( EnterprisesEnterpriseRulesetsPostBody as EnterprisesEnterpriseRulesetsPostBody, ) - from .group_0880 import ( + from .group_0897 import ( EnterprisesEnterpriseRulesetsRulesetIdPutBody as EnterprisesEnterpriseRulesetsRulesetIdPutBody, ) - from .group_0881 import ( + from .group_0898 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody, ) - from .group_0882 import ( + from .group_0899 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200, ) - from .group_0883 import ( + from .group_0900 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody, ) - from .group_0884 import ( + from .group_0901 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200, ) - from .group_0885 import GistsPostBody as GistsPostBody - from .group_0885 import GistsPostBodyPropFiles as GistsPostBodyPropFiles - from .group_0886 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 - from .group_0886 import ( + from .group_0902 import GistsPostBody as GistsPostBody + from .group_0902 import GistsPostBodyPropFiles as GistsPostBodyPropFiles + from .group_0903 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 + from .group_0903 import ( GistsGistIdGetResponse403PropBlock as GistsGistIdGetResponse403PropBlock, ) - from .group_0887 import GistsGistIdPatchBody as GistsGistIdPatchBody - from .group_0887 import ( + from .group_0904 import GistsGistIdPatchBody as GistsGistIdPatchBody + from .group_0904 import ( GistsGistIdPatchBodyPropFiles as GistsGistIdPatchBodyPropFiles, ) - from .group_0888 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody - from .group_0889 import ( + from .group_0905 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody + from .group_0906 import ( GistsGistIdCommentsCommentIdPatchBody as GistsGistIdCommentsCommentIdPatchBody, ) - from .group_0890 import ( + from .group_0907 import ( GistsGistIdStarGetResponse404 as GistsGistIdStarGetResponse404, ) - from .group_0891 import ( + from .group_0908 import ( InstallationRepositoriesGetResponse200 as InstallationRepositoriesGetResponse200, ) - from .group_0892 import MarkdownPostBody as MarkdownPostBody - from .group_0893 import NotificationsPutBody as NotificationsPutBody - from .group_0894 import NotificationsPutResponse202 as NotificationsPutResponse202 - from .group_0895 import ( + from .group_0909 import MarkdownPostBody as MarkdownPostBody + from .group_0910 import NotificationsPutBody as NotificationsPutBody + from .group_0911 import NotificationsPutResponse202 as NotificationsPutResponse202 + from .group_0912 import ( NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody, ) - from .group_0896 import ( + from .group_0913 import ( OrganizationsOrganizationIdCustomRolesGetResponse200 as OrganizationsOrganizationIdCustomRolesGetResponse200, ) - from .group_0897 import OrgsOrgPatchBody as OrgsOrgPatchBody - from .group_0898 import ( + from .group_0914 import OrgsOrgPatchBody as OrgsOrgPatchBody + from .group_0915 import ( ActionsCacheUsageByRepository as ActionsCacheUsageByRepository, ) - from .group_0898 import ( + from .group_0915 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200 as OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) - from .group_0899 import ( + from .group_0916 import ( + OrgsOrgActionsHostedRunnersGetResponse200 as OrgsOrgActionsHostedRunnersGetResponse200, + ) + from .group_0917 import ( + OrgsOrgActionsHostedRunnersPostBody as OrgsOrgActionsHostedRunnersPostBody, + ) + from .group_0917 import ( + OrgsOrgActionsHostedRunnersPostBodyPropImage as OrgsOrgActionsHostedRunnersPostBodyPropImage, + ) + from .group_0918 import ( + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200 as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + ) + from .group_0919 import ( + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200 as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + ) + from .group_0920 import ( + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200 as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + ) + from .group_0921 import ( + OrgsOrgActionsHostedRunnersPlatformsGetResponse200 as OrgsOrgActionsHostedRunnersPlatformsGetResponse200, + ) + from .group_0922 import ( + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, + ) + from .group_0923 import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) - from .group_0900 import ( + from .group_0924 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200 as OrgsOrgActionsPermissionsRepositoriesGetResponse200, ) - from .group_0901 import ( + from .group_0925 import ( OrgsOrgActionsPermissionsRepositoriesPutBody as OrgsOrgActionsPermissionsRepositoriesPutBody, ) - from .group_0902 import ( + from .group_0926 import ( OrgsOrgActionsRunnerGroupsGetResponse200 as OrgsOrgActionsRunnerGroupsGetResponse200, ) - from .group_0902 import RunnerGroupsOrg as RunnerGroupsOrg - from .group_0903 import ( + from .group_0926 import RunnerGroupsOrg as RunnerGroupsOrg + from .group_0927 import ( OrgsOrgActionsRunnerGroupsPostBody as OrgsOrgActionsRunnerGroupsPostBody, ) - from .group_0904 import ( + from .group_0928 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0905 import ( + from .group_0929 import ( + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + ) + from .group_0930 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200, ) - from .group_0906 import ( + from .group_0931 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody, ) - from .group_0907 import ( + from .group_0932 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0908 import ( + from .group_0933 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0909 import ( + from .group_0934 import ( OrgsOrgActionsRunnersGetResponse200 as OrgsOrgActionsRunnersGetResponse200, ) - from .group_0910 import ( + from .group_0935 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBody as OrgsOrgActionsRunnersGenerateJitconfigPostBody, ) - from .group_0911 import ( + from .group_0936 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBody as OrgsOrgActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0912 import ( + from .group_0937 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBody as OrgsOrgActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0913 import OrganizationActionsSecret as OrganizationActionsSecret - from .group_0913 import ( + from .group_0938 import OrganizationActionsSecret as OrganizationActionsSecret + from .group_0938 import ( OrgsOrgActionsSecretsGetResponse200 as OrgsOrgActionsSecretsGetResponse200, ) - from .group_0914 import ( + from .group_0939 import ( OrgsOrgActionsSecretsSecretNamePutBody as OrgsOrgActionsSecretsSecretNamePutBody, ) - from .group_0915 import ( + from .group_0940 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0916 import ( + from .group_0941 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBody as OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, ) - from .group_0917 import OrganizationActionsVariable as OrganizationActionsVariable - from .group_0917 import ( + from .group_0942 import OrganizationActionsVariable as OrganizationActionsVariable + from .group_0942 import ( OrgsOrgActionsVariablesGetResponse200 as OrgsOrgActionsVariablesGetResponse200, ) - from .group_0918 import ( + from .group_0943 import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) - from .group_0919 import ( + from .group_0944 import ( OrgsOrgActionsVariablesNamePatchBody as OrgsOrgActionsVariablesNamePatchBody, ) - from .group_0920 import ( + from .group_0945 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200 as OrgsOrgActionsVariablesNameRepositoriesGetResponse200, ) - from .group_0921 import ( + from .group_0946 import ( OrgsOrgActionsVariablesNameRepositoriesPutBody as OrgsOrgActionsVariablesNameRepositoriesPutBody, ) - from .group_0922 import ( + from .group_0947 import ( OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, ) - from .group_0922 import ( + from .group_0947 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_0922 import ( + from .group_0947 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_0922 import ( + from .group_0947 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_0922 import ( + from .group_0947 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) - from .group_0923 import ( + from .group_0948 import ( OrgsOrgCodeSecurityConfigurationsPostBody as OrgsOrgCodeSecurityConfigurationsPostBody, ) - from .group_0923 import ( + from .group_0948 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions as OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0923 import ( + from .group_0948 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions, ) - from .group_0923 import ( + from .group_0948 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0924 import ( + from .group_0949 import ( OrgsOrgCodeSecurityConfigurationsDetachDeleteBody as OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, ) - from .group_0925 import ( + from .group_0950 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_0925 import ( + from .group_0950 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0925 import ( + from .group_0950 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions, ) - from .group_0925 import ( + from .group_0950 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0926 import ( + from .group_0951 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_0927 import ( + from .group_0952 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0928 import ( + from .group_0953 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0929 import ( + from .group_0954 import ( OrgsOrgCodespacesGetResponse200 as OrgsOrgCodespacesGetResponse200, ) - from .group_0930 import ( + from .group_0955 import ( OrgsOrgCodespacesAccessPutBody as OrgsOrgCodespacesAccessPutBody, ) - from .group_0931 import ( + from .group_0956 import ( OrgsOrgCodespacesAccessSelectedUsersPostBody as OrgsOrgCodespacesAccessSelectedUsersPostBody, ) - from .group_0932 import ( + from .group_0957 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) - from .group_0933 import CodespacesOrgSecret as CodespacesOrgSecret - from .group_0933 import ( + from .group_0958 import CodespacesOrgSecret as CodespacesOrgSecret + from .group_0958 import ( OrgsOrgCodespacesSecretsGetResponse200 as OrgsOrgCodespacesSecretsGetResponse200, ) - from .group_0934 import ( + from .group_0959 import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) - from .group_0935 import ( + from .group_0960 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0936 import ( + from .group_0961 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_0937 import ( + from .group_0962 import ( OrgsOrgCopilotBillingSeatsGetResponse200 as OrgsOrgCopilotBillingSeatsGetResponse200, ) - from .group_0938 import ( + from .group_0963 import ( OrgsOrgCopilotBillingSelectedTeamsPostBody as OrgsOrgCopilotBillingSelectedTeamsPostBody, ) - from .group_0939 import ( + from .group_0964 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) - from .group_0940 import ( + from .group_0965 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBody as OrgsOrgCopilotBillingSelectedTeamsDeleteBody, ) - from .group_0941 import ( + from .group_0966 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, ) - from .group_0942 import ( + from .group_0967 import ( OrgsOrgCopilotBillingSelectedUsersPostBody as OrgsOrgCopilotBillingSelectedUsersPostBody, ) - from .group_0943 import ( + from .group_0968 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201, ) - from .group_0944 import ( + from .group_0969 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBody as OrgsOrgCopilotBillingSelectedUsersDeleteBody, ) - from .group_0945 import ( + from .group_0970 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, ) - from .group_0946 import ( + from .group_0971 import ( OrgsOrgCustomRepositoryRolesGetResponse200 as OrgsOrgCustomRepositoryRolesGetResponse200, ) - from .group_0947 import OrganizationDependabotSecret as OrganizationDependabotSecret - from .group_0947 import ( + from .group_0972 import OrganizationDependabotSecret as OrganizationDependabotSecret + from .group_0972 import ( OrgsOrgDependabotSecretsGetResponse200 as OrgsOrgDependabotSecretsGetResponse200, ) - from .group_0948 import ( + from .group_0973 import ( OrgsOrgDependabotSecretsSecretNamePutBody as OrgsOrgDependabotSecretsSecretNamePutBody, ) - from .group_0949 import ( + from .group_0974 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0950 import ( + from .group_0975 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody, ) - from .group_0951 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody - from .group_0951 import ( + from .group_0976 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody + from .group_0976 import ( OrgsOrgHooksPostBodyPropConfig as OrgsOrgHooksPostBodyPropConfig, ) - from .group_0952 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody - from .group_0952 import ( + from .group_0977 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody + from .group_0977 import ( OrgsOrgHooksHookIdPatchBodyPropConfig as OrgsOrgHooksHookIdPatchBodyPropConfig, ) - from .group_0953 import ( + from .group_0978 import ( OrgsOrgHooksHookIdConfigPatchBody as OrgsOrgHooksHookIdConfigPatchBody, ) - from .group_0954 import ( + from .group_0979 import ( OrgsOrgInstallationsGetResponse200 as OrgsOrgInstallationsGetResponse200, ) - from .group_0955 import ( + from .group_0980 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1 as OrgsOrgInteractionLimitsGetResponse200Anyof1, ) - from .group_0956 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody - from .group_0957 import ( + from .group_0981 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody + from .group_0982 import ( OrgsOrgMembersUsernameCodespacesGetResponse200 as OrgsOrgMembersUsernameCodespacesGetResponse200, ) - from .group_0958 import ( + from .group_0983 import ( OrgsOrgMembershipsUsernamePutBody as OrgsOrgMembershipsUsernamePutBody, ) - from .group_0959 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody - from .group_0960 import ( + from .group_0984 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody + from .group_0985 import ( OrgsOrgOutsideCollaboratorsUsernamePutBody as OrgsOrgOutsideCollaboratorsUsernamePutBody, ) - from .group_0961 import ( + from .group_0986 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202 as OrgsOrgOutsideCollaboratorsUsernamePutResponse202, ) - from .group_0962 import ( + from .group_0987 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422 as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422, ) - from .group_0963 import ( + from .group_0988 import ( OrgsOrgPersonalAccessTokenRequestsPostBody as OrgsOrgPersonalAccessTokenRequestsPostBody, ) - from .group_0964 import ( + from .group_0989 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) - from .group_0965 import ( + from .group_0990 import ( OrgsOrgPersonalAccessTokensPostBody as OrgsOrgPersonalAccessTokensPostBody, ) - from .group_0966 import ( + from .group_0991 import ( OrgsOrgPersonalAccessTokensPatIdPostBody as OrgsOrgPersonalAccessTokensPatIdPostBody, ) - from .group_0967 import ( + from .group_0992 import ( OrgPrivateRegistryConfiguration as OrgPrivateRegistryConfiguration, ) - from .group_0967 import ( + from .group_0992 import ( OrgsOrgPrivateRegistriesGetResponse200 as OrgsOrgPrivateRegistriesGetResponse200, ) - from .group_0968 import ( + from .group_0993 import ( OrgsOrgPrivateRegistriesPostBody as OrgsOrgPrivateRegistriesPostBody, ) - from .group_0969 import ( + from .group_0994 import ( OrgsOrgPrivateRegistriesPublicKeyGetResponse200 as OrgsOrgPrivateRegistriesPublicKeyGetResponse200, ) - from .group_0970 import ( + from .group_0995 import ( OrgsOrgPrivateRegistriesSecretNamePatchBody as OrgsOrgPrivateRegistriesSecretNamePatchBody, ) - from .group_0971 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody - from .group_0972 import ( + from .group_0996 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody + from .group_0997 import ( OrgsOrgPropertiesSchemaPatchBody as OrgsOrgPropertiesSchemaPatchBody, ) - from .group_0973 import ( + from .group_0998 import ( OrgsOrgPropertiesValuesPatchBody as OrgsOrgPropertiesValuesPatchBody, ) - from .group_0974 import OrgsOrgReposPostBody as OrgsOrgReposPostBody - from .group_0974 import ( + from .group_0999 import OrgsOrgReposPostBody as OrgsOrgReposPostBody + from .group_0999 import ( OrgsOrgReposPostBodyPropCustomProperties as OrgsOrgReposPostBodyPropCustomProperties, ) - from .group_0975 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody - from .group_0976 import ( + from .group_1000 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody + from .group_1001 import ( OrgsOrgRulesetsRulesetIdPutBody as OrgsOrgRulesetsRulesetIdPutBody, ) - from .group_0977 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody - from .group_0978 import ( + from .group_1002 import ( + OrgsOrgSettingsNetworkConfigurationsGetResponse200 as OrgsOrgSettingsNetworkConfigurationsGetResponse200, + ) + from .group_1003 import ( + OrgsOrgSettingsNetworkConfigurationsPostBody as OrgsOrgSettingsNetworkConfigurationsPostBody, + ) + from .group_1004 import ( + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, + ) + from .group_1005 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody + from .group_1006 import ( OrgsOrgTeamsTeamSlugPatchBody as OrgsOrgTeamsTeamSlugPatchBody, ) - from .group_0979 import ( + from .group_1007 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsPostBody, ) - from .group_0980 import ( + from .group_1008 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, ) - from .group_0981 import ( + from .group_1009 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_0982 import ( + from .group_1010 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_0983 import ( + from .group_1011 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_0984 import ( + from .group_1012 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_0985 import ( + from .group_1013 import ( OrgsOrgTeamsTeamSlugExternalGroupsPatchBody as OrgsOrgTeamsTeamSlugExternalGroupsPatchBody, ) - from .group_0986 import ( + from .group_1014 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, ) - from .group_0987 import ( + from .group_1015 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, ) - from .group_0988 import ( + from .group_1016 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403 as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403, ) - from .group_0989 import ( + from .group_1017 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, ) - from .group_0990 import ( + from .group_1018 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody, ) - from .group_0990 import ( + from .group_1018 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems, ) - from .group_0991 import ( + from .group_1019 import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) - from .group_0992 import ( + from .group_1020 import ( ProjectsColumnsCardsCardIdDeleteResponse403 as ProjectsColumnsCardsCardIdDeleteResponse403, ) - from .group_0993 import ( + from .group_1021 import ( ProjectsColumnsCardsCardIdPatchBody as ProjectsColumnsCardsCardIdPatchBody, ) - from .group_0994 import ( + from .group_1022 import ( ProjectsColumnsCardsCardIdMovesPostBody as ProjectsColumnsCardsCardIdMovesPostBody, ) - from .group_0995 import ( + from .group_1023 import ( ProjectsColumnsCardsCardIdMovesPostResponse201 as ProjectsColumnsCardsCardIdMovesPostResponse201, ) - from .group_0996 import ( + from .group_1024 import ( ProjectsColumnsCardsCardIdMovesPostResponse403 as ProjectsColumnsCardsCardIdMovesPostResponse403, ) - from .group_0996 import ( + from .group_1024 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems, ) - from .group_0997 import ( + from .group_1025 import ( ProjectsColumnsCardsCardIdMovesPostResponse503 as ProjectsColumnsCardsCardIdMovesPostResponse503, ) - from .group_0997 import ( + from .group_1025 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems, ) - from .group_0998 import ( + from .group_1026 import ( ProjectsColumnsColumnIdPatchBody as ProjectsColumnsColumnIdPatchBody, ) - from .group_0999 import ( + from .group_1027 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0 as ProjectsColumnsColumnIdCardsPostBodyOneof0, ) - from .group_1000 import ( + from .group_1028 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1 as ProjectsColumnsColumnIdCardsPostBodyOneof1, ) - from .group_1001 import ( + from .group_1029 import ( ProjectsColumnsColumnIdCardsPostResponse503 as ProjectsColumnsColumnIdCardsPostResponse503, ) - from .group_1001 import ( + from .group_1029 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems, ) - from .group_1002 import ( + from .group_1030 import ( ProjectsColumnsColumnIdMovesPostBody as ProjectsColumnsColumnIdMovesPostBody, ) - from .group_1003 import ( + from .group_1031 import ( ProjectsColumnsColumnIdMovesPostResponse201 as ProjectsColumnsColumnIdMovesPostResponse201, ) - from .group_1004 import ( + from .group_1032 import ( ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403, ) - from .group_1005 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody - from .group_1006 import ( + from .group_1033 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody + from .group_1034 import ( ProjectsProjectIdPatchResponse403 as ProjectsProjectIdPatchResponse403, ) - from .group_1007 import ( + from .group_1035 import ( ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody, ) - from .group_1008 import ( + from .group_1036 import ( ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody, ) - from .group_1009 import ( + from .group_1037 import ( ReposOwnerRepoDeleteResponse403 as ReposOwnerRepoDeleteResponse403, ) - from .group_1010 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody - from .group_1010 import ( + from .group_1038 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysis as ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks, ) - from .group_1011 import ( + from .group_1039 import ( ReposOwnerRepoActionsArtifactsGetResponse200 as ReposOwnerRepoActionsArtifactsGetResponse200, ) - from .group_1012 import ( + from .group_1040 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBody as ReposOwnerRepoActionsJobsJobIdRerunPostBody, ) - from .group_1013 import ( + from .group_1041 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBody as ReposOwnerRepoActionsOidcCustomizationSubPutBody, ) - from .group_1014 import ( + from .group_1042 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200 as ReposOwnerRepoActionsOrganizationSecretsGetResponse200, ) - from .group_1015 import ( + from .group_1043 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200 as ReposOwnerRepoActionsOrganizationVariablesGetResponse200, ) - from .group_1016 import ( + from .group_1044 import ( ReposOwnerRepoActionsPermissionsPutBody as ReposOwnerRepoActionsPermissionsPutBody, ) - from .group_1017 import ( + from .group_1045 import ( ReposOwnerRepoActionsRunnersGetResponse200 as ReposOwnerRepoActionsRunnersGetResponse200, ) - from .group_1018 import ( + from .group_1046 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, ) - from .group_1019 import ( + from .group_1047 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, ) - from .group_1020 import ( + from .group_1048 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, ) - from .group_1021 import ( + from .group_1049 import ( ReposOwnerRepoActionsRunsGetResponse200 as ReposOwnerRepoActionsRunsGetResponse200, ) - from .group_1022 import ( + from .group_1050 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200 as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200, ) - from .group_1023 import ( + from .group_1051 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200, ) - from .group_1024 import ( + from .group_1052 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200, ) - from .group_1025 import ( + from .group_1053 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, ) - from .group_1026 import ( + from .group_1054 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBody as ReposOwnerRepoActionsRunsRunIdRerunPostBody, ) - from .group_1027 import ( + from .group_1055 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) - from .group_1028 import ( + from .group_1056 import ( ReposOwnerRepoActionsSecretsGetResponse200 as ReposOwnerRepoActionsSecretsGetResponse200, ) - from .group_1029 import ( + from .group_1057 import ( ReposOwnerRepoActionsSecretsSecretNamePutBody as ReposOwnerRepoActionsSecretsSecretNamePutBody, ) - from .group_1030 import ( + from .group_1058 import ( ReposOwnerRepoActionsVariablesGetResponse200 as ReposOwnerRepoActionsVariablesGetResponse200, ) - from .group_1031 import ( + from .group_1059 import ( ReposOwnerRepoActionsVariablesPostBody as ReposOwnerRepoActionsVariablesPostBody, ) - from .group_1032 import ( + from .group_1060 import ( ReposOwnerRepoActionsVariablesNamePatchBody as ReposOwnerRepoActionsVariablesNamePatchBody, ) - from .group_1033 import ( + from .group_1061 import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) - from .group_1033 import Workflow as Workflow - from .group_1034 import ( + from .group_1061 import Workflow as Workflow + from .group_1062 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, ) - from .group_1034 import ( + from .group_1062 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) - from .group_1035 import ( + from .group_1063 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200 as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200, ) - from .group_1036 import ( + from .group_1064 import ( ReposOwnerRepoAttestationsPostBody as ReposOwnerRepoAttestationsPostBody, ) - from .group_1036 import ( + from .group_1064 import ( ReposOwnerRepoAttestationsPostBodyPropBundle as ReposOwnerRepoAttestationsPostBodyPropBundle, ) - from .group_1036 import ( + from .group_1064 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope, ) - from .group_1036 import ( + from .group_1064 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial, ) - from .group_1037 import ( + from .group_1065 import ( ReposOwnerRepoAttestationsPostResponse201 as ReposOwnerRepoAttestationsPostResponse201, ) - from .group_1038 import ( + from .group_1066 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200 as ReposOwnerRepoAttestationsSubjectDigestGetResponse200, ) - from .group_1038 import ( + from .group_1066 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_1038 import ( + from .group_1066 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_1038 import ( + from .group_1066 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_1038 import ( + from .group_1066 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) - from .group_1039 import ( + from .group_1067 import ( ReposOwnerRepoAutolinksPostBody as ReposOwnerRepoAutolinksPostBody, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBody as ReposOwnerRepoBranchesBranchProtectionPutBody, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, ) - from .group_1041 import ( + from .group_1069 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody, ) - from .group_1041 import ( + from .group_1069 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances, ) - from .group_1041 import ( + from .group_1069 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions, ) - from .group_1042 import ( + from .group_1070 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody, ) - from .group_1042 import ( + from .group_1070 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) - from .group_1043 import ( + from .group_1071 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) - from .group_1044 import ( + from .group_1072 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0, ) - from .group_1045 import ( + from .group_1073 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0, ) - from .group_1046 import ( + from .group_1074 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody, ) - from .group_1047 import ( + from .group_1075 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody, ) - from .group_1048 import ( + from .group_1076 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody, ) - from .group_1049 import ( + from .group_1077 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0, ) - from .group_1050 import ( + from .group_1078 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0, ) - from .group_1051 import ( + from .group_1079 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0, ) - from .group_1052 import ( + from .group_1080 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody, ) - from .group_1053 import ( + from .group_1081 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody, ) - from .group_1054 import ( + from .group_1082 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody, ) - from .group_1055 import ( + from .group_1083 import ( ReposOwnerRepoBranchesBranchRenamePostBody as ReposOwnerRepoBranchesBranchRenamePostBody, ) - from .group_1056 import ( + from .group_1084 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems as ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) - from .group_1056 import ( + from .group_1084 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) - from .group_1056 import ( + from .group_1084 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems, ) - from .group_1056 import ( + from .group_1084 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems, ) - from .group_1057 import ( + from .group_1085 import ( ReposOwnerRepoCheckRunsPostBodyOneof0 as ReposOwnerRepoCheckRunsPostBodyOneof0, ) - from .group_1058 import ( + from .group_1086 import ( ReposOwnerRepoCheckRunsPostBodyOneof1 as ReposOwnerRepoCheckRunsPostBodyOneof1, ) - from .group_1059 import ( + from .group_1087 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) - from .group_1059 import ( + from .group_1087 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) - from .group_1059 import ( + from .group_1087 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems, ) - from .group_1059 import ( + from .group_1087 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems, ) - from .group_1060 import ( + from .group_1088 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0, ) - from .group_1061 import ( + from .group_1089 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1, ) - from .group_1062 import ( + from .group_1090 import ( ReposOwnerRepoCheckSuitesPostBody as ReposOwnerRepoCheckSuitesPostBody, ) - from .group_1063 import ( + from .group_1091 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBody as ReposOwnerRepoCheckSuitesPreferencesPatchBody, ) - from .group_1063 import ( + from .group_1091 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) - from .group_1064 import ( + from .group_1092 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) - from .group_1065 import ( + from .group_1093 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody, ) - from .group_1066 import ( + from .group_1094 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0, ) - from .group_1067 import ( + from .group_1095 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1, ) - from .group_1068 import ( + from .group_1096 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2, ) - from .group_1069 import ( + from .group_1097 import ( ReposOwnerRepoCodeScanningSarifsPostBody as ReposOwnerRepoCodeScanningSarifsPostBody, ) - from .group_1070 import ( + from .group_1098 import ( ReposOwnerRepoCodespacesGetResponse200 as ReposOwnerRepoCodespacesGetResponse200, ) - from .group_1071 import ( + from .group_1099 import ( ReposOwnerRepoCodespacesPostBody as ReposOwnerRepoCodespacesPostBody, ) - from .group_1072 import ( + from .group_1100 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200 as ReposOwnerRepoCodespacesDevcontainersGetResponse200, ) - from .group_1072 import ( + from .group_1100 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems, ) - from .group_1073 import ( + from .group_1101 import ( ReposOwnerRepoCodespacesMachinesGetResponse200 as ReposOwnerRepoCodespacesMachinesGetResponse200, ) - from .group_1074 import ( + from .group_1102 import ( ReposOwnerRepoCodespacesNewGetResponse200 as ReposOwnerRepoCodespacesNewGetResponse200, ) - from .group_1074 import ( + from .group_1102 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) - from .group_1075 import RepoCodespacesSecret as RepoCodespacesSecret - from .group_1075 import ( + from .group_1103 import RepoCodespacesSecret as RepoCodespacesSecret + from .group_1103 import ( ReposOwnerRepoCodespacesSecretsGetResponse200 as ReposOwnerRepoCodespacesSecretsGetResponse200, ) - from .group_1076 import ( + from .group_1104 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBody as ReposOwnerRepoCodespacesSecretsSecretNamePutBody, ) - from .group_1077 import ( + from .group_1105 import ( ReposOwnerRepoCollaboratorsUsernamePutBody as ReposOwnerRepoCollaboratorsUsernamePutBody, ) - from .group_1078 import ( + from .group_1106 import ( ReposOwnerRepoCommentsCommentIdPatchBody as ReposOwnerRepoCommentsCommentIdPatchBody, ) - from .group_1079 import ( + from .group_1107 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBody as ReposOwnerRepoCommentsCommentIdReactionsPostBody, ) - from .group_1080 import ( + from .group_1108 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBody as ReposOwnerRepoCommitsCommitShaCommentsPostBody, ) - from .group_1081 import ( + from .group_1109 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200 as ReposOwnerRepoCommitsRefCheckRunsGetResponse200, ) - from .group_1082 import ( + from .group_1110 import ( ReposOwnerRepoContentsPathPutBody as ReposOwnerRepoContentsPathPutBody, ) - from .group_1082 import ( + from .group_1110 import ( ReposOwnerRepoContentsPathPutBodyPropAuthor as ReposOwnerRepoContentsPathPutBodyPropAuthor, ) - from .group_1082 import ( + from .group_1110 import ( ReposOwnerRepoContentsPathPutBodyPropCommitter as ReposOwnerRepoContentsPathPutBodyPropCommitter, ) - from .group_1083 import ( + from .group_1111 import ( ReposOwnerRepoContentsPathDeleteBody as ReposOwnerRepoContentsPathDeleteBody, ) - from .group_1083 import ( + from .group_1111 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthor as ReposOwnerRepoContentsPathDeleteBodyPropAuthor, ) - from .group_1083 import ( + from .group_1111 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitter as ReposOwnerRepoContentsPathDeleteBodyPropCommitter, ) - from .group_1084 import ( + from .group_1112 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBody as ReposOwnerRepoDependabotAlertsAlertNumberPatchBody, ) - from .group_1085 import DependabotSecret as DependabotSecret - from .group_1085 import ( + from .group_1113 import DependabotSecret as DependabotSecret + from .group_1113 import ( ReposOwnerRepoDependabotSecretsGetResponse200 as ReposOwnerRepoDependabotSecretsGetResponse200, ) - from .group_1086 import ( + from .group_1114 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBody as ReposOwnerRepoDependabotSecretsSecretNamePutBody, ) - from .group_1087 import ( + from .group_1115 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201 as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201, ) - from .group_1088 import ( + from .group_1116 import ( ReposOwnerRepoDeploymentsPostBody as ReposOwnerRepoDeploymentsPostBody, ) - from .group_1088 import ( + from .group_1116 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, ) - from .group_1089 import ( + from .group_1117 import ( ReposOwnerRepoDeploymentsPostResponse202 as ReposOwnerRepoDeploymentsPostResponse202, ) - from .group_1090 import ( + from .group_1118 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, ) - from .group_1091 import ( + from .group_1119 import ( ReposOwnerRepoDispatchesPostBody as ReposOwnerRepoDispatchesPostBody, ) - from .group_1091 import ( + from .group_1119 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayload as ReposOwnerRepoDispatchesPostBodyPropClientPayload, ) - from .group_1092 import ( + from .group_1120 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, ) - from .group_1092 import ( + from .group_1120 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems, ) - from .group_1093 import DeploymentBranchPolicy as DeploymentBranchPolicy - from .group_1093 import ( + from .group_1121 import DeploymentBranchPolicy as DeploymentBranchPolicy + from .group_1121 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) - from .group_1094 import ( + from .group_1122 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) - from .group_1095 import ( + from .group_1123 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) - from .group_1096 import ( + from .group_1124 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200, ) - from .group_1097 import ( + from .group_1125 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, ) - from .group_1098 import ( + from .group_1126 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200, ) - from .group_1099 import ( + from .group_1127 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, ) - from .group_1100 import ( + from .group_1128 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) - from .group_1101 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody - from .group_1102 import ( + from .group_1129 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody + from .group_1130 import ( ReposOwnerRepoGitBlobsPostBody as ReposOwnerRepoGitBlobsPostBody, ) - from .group_1103 import ( + from .group_1131 import ( ReposOwnerRepoGitCommitsPostBody as ReposOwnerRepoGitCommitsPostBody, ) - from .group_1103 import ( + from .group_1131 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthor as ReposOwnerRepoGitCommitsPostBodyPropAuthor, ) - from .group_1103 import ( + from .group_1131 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitter as ReposOwnerRepoGitCommitsPostBodyPropCommitter, ) - from .group_1104 import ( + from .group_1132 import ( ReposOwnerRepoGitRefsPostBody as ReposOwnerRepoGitRefsPostBody, ) - from .group_1105 import ( + from .group_1133 import ( ReposOwnerRepoGitRefsRefPatchBody as ReposOwnerRepoGitRefsRefPatchBody, ) - from .group_1106 import ( + from .group_1134 import ( ReposOwnerRepoGitTagsPostBody as ReposOwnerRepoGitTagsPostBody, ) - from .group_1106 import ( + from .group_1134 import ( ReposOwnerRepoGitTagsPostBodyPropTagger as ReposOwnerRepoGitTagsPostBodyPropTagger, ) - from .group_1107 import ( + from .group_1135 import ( ReposOwnerRepoGitTreesPostBody as ReposOwnerRepoGitTreesPostBody, ) - from .group_1107 import ( + from .group_1135 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItems as ReposOwnerRepoGitTreesPostBodyPropTreeItems, ) - from .group_1108 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody - from .group_1108 import ( + from .group_1136 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody + from .group_1136 import ( ReposOwnerRepoHooksPostBodyPropConfig as ReposOwnerRepoHooksPostBodyPropConfig, ) - from .group_1109 import ( + from .group_1137 import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) - from .group_1110 import ( + from .group_1138 import ( ReposOwnerRepoHooksHookIdConfigPatchBody as ReposOwnerRepoHooksHookIdConfigPatchBody, ) - from .group_1111 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody - from .group_1112 import ( + from .group_1139 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody + from .group_1140 import ( ReposOwnerRepoImportPatchBody as ReposOwnerRepoImportPatchBody, ) - from .group_1113 import ( + from .group_1141 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) - from .group_1114 import ( + from .group_1142 import ( ReposOwnerRepoImportLfsPatchBody as ReposOwnerRepoImportLfsPatchBody, ) - from .group_1115 import ( + from .group_1143 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1 as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1, ) - from .group_1116 import ( + from .group_1144 import ( ReposOwnerRepoInvitationsInvitationIdPatchBody as ReposOwnerRepoInvitationsInvitationIdPatchBody, ) - from .group_1117 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody - from .group_1117 import ( + from .group_1145 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody + from .group_1145 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1, ) - from .group_1118 import ( + from .group_1146 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBody as ReposOwnerRepoIssuesCommentsCommentIdPatchBody, ) - from .group_1119 import ( + from .group_1147 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody, ) - from .group_1120 import ( + from .group_1148 import ( ReposOwnerRepoIssuesIssueNumberPatchBody as ReposOwnerRepoIssuesIssueNumberPatchBody, ) - from .group_1120 import ( + from .group_1148 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1, ) - from .group_1121 import ( + from .group_1149 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBody as ReposOwnerRepoIssuesIssueNumberAssigneesPostBody, ) - from .group_1122 import ( + from .group_1150 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody, ) - from .group_1123 import ( + from .group_1151 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBody as ReposOwnerRepoIssuesIssueNumberCommentsPostBody, ) - from .group_1124 import ( + from .group_1152 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0, ) - from .group_1125 import ( + from .group_1153 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) - from .group_1125 import ( + from .group_1153 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems, ) - from .group_1126 import ( + from .group_1154 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items, ) - from .group_1127 import ( + from .group_1155 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0, ) - from .group_1128 import ( + from .group_1156 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2, ) - from .group_1128 import ( + from .group_1156 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems, ) - from .group_1129 import ( + from .group_1157 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) - from .group_1130 import ( + from .group_1158 import ( ReposOwnerRepoIssuesIssueNumberLockPutBody as ReposOwnerRepoIssuesIssueNumberLockPutBody, ) - from .group_1131 import ( + from .group_1159 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBody as ReposOwnerRepoIssuesIssueNumberReactionsPostBody, ) - from .group_1132 import ( + from .group_1160 import ( ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody as ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody, ) - from .group_1133 import ( + from .group_1161 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody as ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody, ) - from .group_1134 import ( + from .group_1162 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody as ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody, ) - from .group_1135 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody - from .group_1136 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody - from .group_1137 import ( + from .group_1163 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody + from .group_1164 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody + from .group_1165 import ( ReposOwnerRepoLabelsNamePatchBody as ReposOwnerRepoLabelsNamePatchBody, ) - from .group_1138 import ( + from .group_1166 import ( ReposOwnerRepoMergeUpstreamPostBody as ReposOwnerRepoMergeUpstreamPostBody, ) - from .group_1139 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody - from .group_1140 import ( + from .group_1167 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody + from .group_1168 import ( ReposOwnerRepoMilestonesPostBody as ReposOwnerRepoMilestonesPostBody, ) - from .group_1141 import ( + from .group_1169 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBody as ReposOwnerRepoMilestonesMilestoneNumberPatchBody, ) - from .group_1142 import ( + from .group_1170 import ( ReposOwnerRepoNotificationsPutBody as ReposOwnerRepoNotificationsPutBody, ) - from .group_1143 import ( + from .group_1171 import ( ReposOwnerRepoNotificationsPutResponse202 as ReposOwnerRepoNotificationsPutResponse202, ) - from .group_1144 import ( + from .group_1172 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1 as ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ) - from .group_1145 import ( + from .group_1173 import ( ReposOwnerRepoPagesPutBodyAnyof0 as ReposOwnerRepoPagesPutBodyAnyof0, ) - from .group_1146 import ( + from .group_1174 import ( ReposOwnerRepoPagesPutBodyAnyof1 as ReposOwnerRepoPagesPutBodyAnyof1, ) - from .group_1147 import ( + from .group_1175 import ( ReposOwnerRepoPagesPutBodyAnyof2 as ReposOwnerRepoPagesPutBodyAnyof2, ) - from .group_1148 import ( + from .group_1176 import ( ReposOwnerRepoPagesPutBodyAnyof3 as ReposOwnerRepoPagesPutBodyAnyof3, ) - from .group_1149 import ( + from .group_1177 import ( ReposOwnerRepoPagesPutBodyAnyof4 as ReposOwnerRepoPagesPutBodyAnyof4, ) - from .group_1150 import ( + from .group_1178 import ( ReposOwnerRepoPagesPostBodyPropSource as ReposOwnerRepoPagesPostBodyPropSource, ) - from .group_1151 import ( + from .group_1179 import ( ReposOwnerRepoPagesPostBodyAnyof0 as ReposOwnerRepoPagesPostBodyAnyof0, ) - from .group_1152 import ( + from .group_1180 import ( ReposOwnerRepoPagesPostBodyAnyof1 as ReposOwnerRepoPagesPostBodyAnyof1, ) - from .group_1153 import ( + from .group_1181 import ( ReposOwnerRepoPagesDeploymentsPostBody as ReposOwnerRepoPagesDeploymentsPostBody, ) - from .group_1154 import ( + from .group_1182 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200 as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ) - from .group_1155 import ( + from .group_1183 import ( ReposOwnerRepoProjectsPostBody as ReposOwnerRepoProjectsPostBody, ) - from .group_1156 import ( + from .group_1184 import ( ReposOwnerRepoPropertiesValuesPatchBody as ReposOwnerRepoPropertiesValuesPatchBody, ) - from .group_1157 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody - from .group_1158 import ( + from .group_1185 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody + from .group_1186 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBody as ReposOwnerRepoPullsCommentsCommentIdPatchBody, ) - from .group_1159 import ( + from .group_1187 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody, ) - from .group_1160 import ( + from .group_1188 import ( ReposOwnerRepoPullsPullNumberPatchBody as ReposOwnerRepoPullsPullNumberPatchBody, ) - from .group_1161 import ( + from .group_1189 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBody as ReposOwnerRepoPullsPullNumberCodespacesPostBody, ) - from .group_1162 import ( + from .group_1190 import ( ReposOwnerRepoPullsPullNumberCommentsPostBody as ReposOwnerRepoPullsPullNumberCommentsPostBody, ) - from .group_1163 import ( + from .group_1191 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody, ) - from .group_1164 import ( + from .group_1192 import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from .group_1165 import ( + from .group_1193 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405 as ReposOwnerRepoPullsPullNumberMergePutResponse405, ) - from .group_1166 import ( + from .group_1194 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409 as ReposOwnerRepoPullsPullNumberMergePutResponse409, ) - from .group_1167 import ( + from .group_1195 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0, ) - from .group_1168 import ( + from .group_1196 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1, ) - from .group_1169 import ( + from .group_1197 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody, ) - from .group_1170 import ( + from .group_1198 import ( ReposOwnerRepoPullsPullNumberReviewsPostBody as ReposOwnerRepoPullsPullNumberReviewsPostBody, ) - from .group_1170 import ( + from .group_1198 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems, ) - from .group_1171 import ( + from .group_1199 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody, ) - from .group_1172 import ( + from .group_1200 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody, ) - from .group_1173 import ( + from .group_1201 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody, ) - from .group_1174 import ( + from .group_1202 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBody as ReposOwnerRepoPullsPullNumberUpdateBranchPutBody, ) - from .group_1175 import ( + from .group_1203 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202 as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202, ) - from .group_1176 import ( + from .group_1204 import ( ReposOwnerRepoReleasesPostBody as ReposOwnerRepoReleasesPostBody, ) - from .group_1177 import ( + from .group_1205 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBody as ReposOwnerRepoReleasesAssetsAssetIdPatchBody, ) - from .group_1178 import ( + from .group_1206 import ( ReposOwnerRepoReleasesGenerateNotesPostBody as ReposOwnerRepoReleasesGenerateNotesPostBody, ) - from .group_1179 import ( + from .group_1207 import ( ReposOwnerRepoReleasesReleaseIdPatchBody as ReposOwnerRepoReleasesReleaseIdPatchBody, ) - from .group_1180 import ( + from .group_1208 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBody as ReposOwnerRepoReleasesReleaseIdReactionsPostBody, ) - from .group_1181 import ( + from .group_1209 import ( ReposOwnerRepoRulesetsPostBody as ReposOwnerRepoRulesetsPostBody, ) - from .group_1182 import ( + from .group_1210 import ( ReposOwnerRepoRulesetsRulesetIdPutBody as ReposOwnerRepoRulesetsRulesetIdPutBody, ) - from .group_1183 import ( + from .group_1211 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, ) - from .group_1184 import ( + from .group_1212 import ( ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody as ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody, ) - from .group_1185 import ( + from .group_1213 import ( ReposOwnerRepoStatusesShaPostBody as ReposOwnerRepoStatusesShaPostBody, ) - from .group_1186 import ( + from .group_1214 import ( ReposOwnerRepoSubscriptionPutBody as ReposOwnerRepoSubscriptionPutBody, ) - from .group_1187 import ( + from .group_1215 import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) - from .group_1188 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody - from .group_1189 import ( + from .group_1216 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody + from .group_1217 import ( ReposOwnerRepoTransferPostBody as ReposOwnerRepoTransferPostBody, ) - from .group_1190 import ( + from .group_1218 import ( ReposTemplateOwnerTemplateRepoGeneratePostBody as ReposTemplateOwnerTemplateRepoGeneratePostBody, ) - from .group_1191 import ( + from .group_1219 import ( ScimV2OrganizationsOrgUsersPostBody as ScimV2OrganizationsOrgUsersPostBody, ) - from .group_1191 import ( + from .group_1219 import ( ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems as ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems, ) - from .group_1191 import ( + from .group_1219 import ( ScimV2OrganizationsOrgUsersPostBodyPropName as ScimV2OrganizationsOrgUsersPostBodyPropName, ) - from .group_1192 import ( + from .group_1220 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBody as ScimV2OrganizationsOrgUsersScimUserIdPutBody, ) - from .group_1192 import ( + from .group_1220 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems, ) - from .group_1192 import ( + from .group_1220 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName, ) - from .group_1193 import ( + from .group_1221 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBody as ScimV2OrganizationsOrgUsersScimUserIdPatchBody, ) - from .group_1193 import ( + from .group_1221 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems, ) - from .group_1193 import ( + from .group_1221 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, ) - from .group_1193 import ( + from .group_1221 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items, ) - from .group_1194 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody - from .group_1195 import ( + from .group_1222 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody + from .group_1223 import ( TeamsTeamIdDiscussionsPostBody as TeamsTeamIdDiscussionsPostBody, ) - from .group_1196 import ( + from .group_1224 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberPatchBody, ) - from .group_1197 import ( + from .group_1225 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_1198 import ( + from .group_1226 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_1199 import ( + from .group_1227 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_1200 import ( + from .group_1228 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_1201 import ( + from .group_1229 import ( TeamsTeamIdMembershipsUsernamePutBody as TeamsTeamIdMembershipsUsernamePutBody, ) - from .group_1202 import ( + from .group_1230 import ( TeamsTeamIdProjectsProjectIdPutBody as TeamsTeamIdProjectsProjectIdPutBody, ) - from .group_1203 import ( + from .group_1231 import ( TeamsTeamIdProjectsProjectIdPutResponse403 as TeamsTeamIdProjectsProjectIdPutResponse403, ) - from .group_1204 import ( + from .group_1232 import ( TeamsTeamIdReposOwnerRepoPutBody as TeamsTeamIdReposOwnerRepoPutBody, ) - from .group_1205 import ( + from .group_1233 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBody as TeamsTeamIdTeamSyncGroupMappingsPatchBody, ) - from .group_1205 import ( + from .group_1233 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems as TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems, ) - from .group_1206 import UserPatchBody as UserPatchBody - from .group_1207 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 - from .group_1208 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 - from .group_1209 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 - from .group_1209 import ( + from .group_1234 import UserPatchBody as UserPatchBody + from .group_1235 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 + from .group_1236 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 + from .group_1237 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 + from .group_1237 import ( UserCodespacesPostBodyOneof1PropPullRequest as UserCodespacesPostBodyOneof1PropPullRequest, ) - from .group_1210 import CodespacesSecret as CodespacesSecret - from .group_1210 import ( + from .group_1238 import CodespacesSecret as CodespacesSecret + from .group_1238 import ( UserCodespacesSecretsGetResponse200 as UserCodespacesSecretsGetResponse200, ) - from .group_1211 import ( + from .group_1239 import ( UserCodespacesSecretsSecretNamePutBody as UserCodespacesSecretsSecretNamePutBody, ) - from .group_1212 import ( + from .group_1240 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200 as UserCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1213 import ( + from .group_1241 import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_1214 import ( + from .group_1242 import ( UserCodespacesCodespaceNamePatchBody as UserCodespacesCodespaceNamePatchBody, ) - from .group_1215 import ( + from .group_1243 import ( UserCodespacesCodespaceNameMachinesGetResponse200 as UserCodespacesCodespaceNameMachinesGetResponse200, ) - from .group_1216 import ( + from .group_1244 import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) - from .group_1217 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody - from .group_1218 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 - from .group_1219 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 - from .group_1220 import UserGpgKeysPostBody as UserGpgKeysPostBody - from .group_1221 import ( + from .group_1245 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody + from .group_1246 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 + from .group_1247 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 + from .group_1248 import UserGpgKeysPostBody as UserGpgKeysPostBody + from .group_1249 import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) - from .group_1222 import ( + from .group_1250 import ( UserInstallationsInstallationIdRepositoriesGetResponse200 as UserInstallationsInstallationIdRepositoriesGetResponse200, ) - from .group_1223 import ( + from .group_1251 import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) - from .group_1224 import UserKeysPostBody as UserKeysPostBody - from .group_1225 import ( + from .group_1252 import UserKeysPostBody as UserKeysPostBody + from .group_1253 import ( UserMembershipsOrgsOrgPatchBody as UserMembershipsOrgsOrgPatchBody, ) - from .group_1226 import UserMigrationsPostBody as UserMigrationsPostBody - from .group_1227 import UserProjectsPostBody as UserProjectsPostBody - from .group_1228 import UserReposPostBody as UserReposPostBody - from .group_1229 import UserSocialAccountsPostBody as UserSocialAccountsPostBody - from .group_1230 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody - from .group_1231 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody - from .group_1232 import SigstoreBundle0 as SigstoreBundle0 - from .group_1232 import ( + from .group_1254 import UserMigrationsPostBody as UserMigrationsPostBody + from .group_1255 import UserProjectsPostBody as UserProjectsPostBody + from .group_1256 import UserReposPostBody as UserReposPostBody + from .group_1257 import UserSocialAccountsPostBody as UserSocialAccountsPostBody + from .group_1258 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody + from .group_1259 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody + from .group_1260 import SigstoreBundle0 as SigstoreBundle0 + from .group_1260 import ( SigstoreBundle0PropDsseEnvelope as SigstoreBundle0PropDsseEnvelope, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropDsseEnvelopePropSignaturesItems as SigstoreBundle0PropDsseEnvelopePropSignaturesItems, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterial as SigstoreBundle0PropVerificationMaterial, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChain as SigstoreBundle0PropVerificationMaterialPropX509CertificateChain, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems, ) - from .group_1232 import ( + from .group_1260 import ( UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, ) - from .group_1232 import ( + from .group_1260 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) else: @@ -8880,29 +8962,30 @@ "CvssSeveritiesPropCvssV3", "CvssSeveritiesPropCvssV4", ), - ".group_0002": ("SimpleUser",), - ".group_0003": ( + ".group_0002": ("SecurityAdvisoryEpss",), + ".group_0003": ("SimpleUser",), + ".group_0004": ( "GlobalAdvisory", "GlobalAdvisoryPropIdentifiersItems", "GlobalAdvisoryPropCvss", "GlobalAdvisoryPropCwesItems", - "GlobalAdvisoryPropEpss", "Vulnerability", "VulnerabilityPropPackage", ), - ".group_0004": ("GlobalAdvisoryPropCreditsItems",), - ".group_0005": ("BasicError",), - ".group_0006": ("ValidationErrorSimple",), - ".group_0007": ("IntegrationPropPermissions",), - ".group_0008": ("Integration",), - ".group_0009": ("WebhookConfig",), - ".group_0010": ("HookDeliveryItem",), - ".group_0011": ("ScimError",), - ".group_0012": ( + ".group_0005": ("GlobalAdvisoryPropCreditsItems",), + ".group_0006": ("BasicError",), + ".group_0007": ("ValidationErrorSimple",), + ".group_0008": ("Enterprise",), + ".group_0009": ("IntegrationPropPermissions",), + ".group_0010": ("Integration",), + ".group_0011": ("WebhookConfig",), + ".group_0012": ("HookDeliveryItem",), + ".group_0013": ("ScimError",), + ".group_0014": ( "ValidationError", "ValidationErrorPropErrorsItems", ), - ".group_0013": ( + ".group_0015": ( "HookDelivery", "HookDeliveryPropRequest", "HookDeliveryPropRequestPropHeaders", @@ -8910,35 +8993,34 @@ "HookDeliveryPropResponse", "HookDeliveryPropResponsePropHeaders", ), - ".group_0014": ("Enterprise",), - ".group_0015": ("IntegrationInstallationRequest",), - ".group_0016": ("AppPermissions",), - ".group_0017": ("Installation",), - ".group_0018": ("LicenseSimple",), - ".group_0019": ( + ".group_0016": ("IntegrationInstallationRequest",), + ".group_0017": ("AppPermissions",), + ".group_0018": ("Installation",), + ".group_0019": ("LicenseSimple",), + ".group_0020": ( "Repository", "RepositoryPropPermissions", ), - ".group_0020": ("InstallationToken",), - ".group_0021": ("ScopedInstallation",), - ".group_0022": ( + ".group_0021": ("InstallationToken",), + ".group_0022": ("ScopedInstallation",), + ".group_0023": ( "Authorization", "AuthorizationPropApp", ), - ".group_0023": ("SimpleClassroomRepository",), - ".group_0024": ( + ".group_0024": ("SimpleClassroomRepository",), + ".group_0025": ( "ClassroomAssignment", "Classroom", "SimpleClassroomOrganization", ), - ".group_0025": ( + ".group_0026": ( "ClassroomAcceptedAssignment", "SimpleClassroomUser", "SimpleClassroomAssignment", "SimpleClassroom", ), - ".group_0026": ("ClassroomAssignmentGrade",), - ".group_0027": ( + ".group_0027": ("ClassroomAssignmentGrade",), + ".group_0028": ( "ServerStatisticsItems", "ServerStatisticsActions", "ServerStatisticsItemsPropGithubConnect", @@ -8957,23 +9039,34 @@ "ServerStatisticsItemsPropGheStatsPropRepos", "ServerStatisticsItemsPropGheStatsPropUsers", ), - ".group_0028": ("ActionsCacheUsageOrgEnterprise",), - ".group_0029": ("ActionsOidcCustomIssuerPolicyForEnterprise",), - ".group_0030": ("ActionsEnterprisePermissions",), - ".group_0031": ("OrganizationSimple",), - ".group_0032": ("SelectedActions",), - ".group_0033": ("ActionsGetDefaultWorkflowPermissions",), - ".group_0034": ("ActionsSetDefaultWorkflowPermissions",), - ".group_0035": ("RunnerLabel",), - ".group_0036": ("Runner",), - ".group_0037": ("RunnerApplication",), - ".group_0038": ( + ".group_0029": ("ActionsCacheUsageOrgEnterprise",), + ".group_0030": ("ActionsHostedRunnerMachineSpec",), + ".group_0031": ( + "ActionsHostedRunner", + "ActionsHostedRunnerPoolImage", + "PublicIp", + ), + ".group_0032": ("ActionsHostedRunnerImage",), + ".group_0033": ( + "ActionsHostedRunnerLimits", + "ActionsHostedRunnerLimitsPropPublicIps", + ), + ".group_0034": ("ActionsOidcCustomIssuerPolicyForEnterprise",), + ".group_0035": ("ActionsEnterprisePermissions",), + ".group_0036": ("OrganizationSimple",), + ".group_0037": ("SelectedActions",), + ".group_0038": ("ActionsGetDefaultWorkflowPermissions",), + ".group_0039": ("ActionsSetDefaultWorkflowPermissions",), + ".group_0040": ("RunnerLabel",), + ".group_0041": ("Runner",), + ".group_0042": ("RunnerApplication",), + ".group_0043": ( "AuthenticationToken", "AuthenticationTokenPropPermissions", ), - ".group_0039": ("AnnouncementBanner",), - ".group_0040": ("Announcement",), - ".group_0041": ( + ".group_0044": ("AnnouncementBanner",), + ".group_0045": ("Announcement",), + ".group_0046": ( "AuditLogEvent", "AuditLogEventPropActorLocation", "AuditLogEventPropData", @@ -8982,54 +9075,54 @@ "AuditLogEventPropEventsItems", "AuditLogEventPropEventsWereItems", ), - ".group_0042": ("AuditLogStreamKey",), - ".group_0043": ("GetAuditLogStreamConfigsItems",), - ".group_0044": ( + ".group_0047": ("AuditLogStreamKey",), + ".group_0048": ("GetAuditLogStreamConfigsItems",), + ".group_0049": ( "AzureBlobConfig", "AzureHubConfig", "AmazonS3AccessKeysConfig", "GoogleCloudConfig", ), - ".group_0045": ( + ".group_0050": ( "AmazonS3OidcConfig", "SplunkConfig", ), - ".group_0046": ("DatadogConfig",), - ".group_0047": ("GetAuditLogStreamConfig",), - ".group_0048": ("CodeScanningAlertRuleSummary",), - ".group_0049": ("CodeScanningAnalysisTool",), - ".group_0050": ( + ".group_0051": ("DatadogConfig",), + ".group_0052": ("GetAuditLogStreamConfig",), + ".group_0053": ("CodeScanningAlertRuleSummary",), + ".group_0054": ("CodeScanningAnalysisTool",), + ".group_0055": ( "CodeScanningAlertInstance", "CodeScanningAlertLocation", "CodeScanningAlertInstancePropMessage", ), - ".group_0051": ("SimpleRepository",), - ".group_0052": ("CodeScanningOrganizationAlertItems",), - ".group_0053": ( + ".group_0056": ("SimpleRepository",), + ".group_0057": ("CodeScanningOrganizationAlertItems",), + ".group_0058": ( "CodeSecurityConfiguration", "CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions", "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0054": ("CodeScanningDefaultSetupOptions",), - ".group_0055": ("CodeSecurityDefaultConfigurationsItems",), - ".group_0056": ("CodeSecurityConfigurationRepositories",), - ".group_0057": ("EnterpriseSecurityAnalysisSettings",), - ".group_0058": ( + ".group_0059": ("CodeScanningDefaultSetupOptions",), + ".group_0060": ("CodeSecurityDefaultConfigurationsItems",), + ".group_0061": ("CodeSecurityConfigurationRepositories",), + ".group_0062": ("EnterpriseSecurityAnalysisSettings",), + ".group_0063": ( "GetConsumedLicenses", "GetConsumedLicensesPropUsersItems", ), - ".group_0059": ("TeamSimple",), - ".group_0060": ( + ".group_0064": ("TeamSimple",), + ".group_0065": ( "Team", "TeamPropPermissions", ), - ".group_0061": ( + ".group_0066": ( "CopilotSeatDetails", "EnterpriseTeam", ), - ".group_0062": ( + ".group_0067": ( "CopilotUsageMetricsDay", "CopilotDotcomChat", "CopilotDotcomChatPropModelsItems", @@ -9045,56 +9138,58 @@ "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", ), - ".group_0063": ( + ".group_0068": ( "CopilotUsageMetrics", "CopilotUsageMetricsPropBreakdownItems", ), - ".group_0064": ("DependabotAlertPackage",), - ".group_0065": ( + ".group_0069": ("DependabotAlertPackage",), + ".group_0070": ( "DependabotAlertSecurityVulnerability", "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", ), - ".group_0066": ( + ".group_0071": ( "DependabotAlertSecurityAdvisory", "DependabotAlertSecurityAdvisoryPropCvss", "DependabotAlertSecurityAdvisoryPropCwesItems", "DependabotAlertSecurityAdvisoryPropIdentifiersItems", "DependabotAlertSecurityAdvisoryPropReferencesItems", ), - ".group_0067": ("DependabotAlertWithRepository",), - ".group_0068": ("DependabotAlertWithRepositoryPropDependency",), - ".group_0069": ( + ".group_0072": ("DependabotAlertWithRepository",), + ".group_0073": ("DependabotAlertWithRepositoryPropDependency",), + ".group_0074": ( "GetLicenseSyncStatus", "GetLicenseSyncStatusPropServerInstancesItems", "GetLicenseSyncStatusPropServerInstancesItemsPropLastSync", ), - ".group_0070": ("CustomProperty",), - ".group_0071": ("CustomPropertySetPayload",), - ".group_0072": ("RepositoryRulesetBypassActor",), - ".group_0073": ("EnterpriseRulesetConditionsOrganizationNameTarget",), - ".group_0074": ( + ".group_0075": ("NetworkConfiguration",), + ".group_0076": ("NetworkSettings",), + ".group_0077": ("CustomProperty",), + ".group_0078": ("CustomPropertySetPayload",), + ".group_0079": ("RepositoryRulesetBypassActor",), + ".group_0080": ("EnterpriseRulesetConditionsOrganizationNameTarget",), + ".group_0081": ( "EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName", ), - ".group_0075": ("RepositoryRulesetConditionsRepositoryNameTarget",), - ".group_0076": ( + ".group_0082": ("RepositoryRulesetConditionsRepositoryNameTarget",), + ".group_0083": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName", ), - ".group_0077": ("RepositoryRulesetConditions",), - ".group_0078": ("RepositoryRulesetConditionsPropRefName",), - ".group_0079": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), - ".group_0080": ( + ".group_0084": ("RepositoryRulesetConditions",), + ".group_0085": ("RepositoryRulesetConditionsPropRefName",), + ".group_0086": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), + ".group_0087": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", "RepositoryRulesetConditionsRepositoryPropertySpec", ), - ".group_0081": ("EnterpriseRulesetConditionsOrganizationIdTarget",), - ".group_0082": ( + ".group_0088": ("EnterpriseRulesetConditionsOrganizationIdTarget",), + ".group_0089": ( "EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId", ), - ".group_0083": ("EnterpriseRulesetConditionsOneof0",), - ".group_0084": ("EnterpriseRulesetConditionsOneof1",), - ".group_0085": ("EnterpriseRulesetConditionsOneof2",), - ".group_0086": ("EnterpriseRulesetConditionsOneof3",), - ".group_0087": ( + ".group_0090": ("EnterpriseRulesetConditionsOneof0",), + ".group_0091": ("EnterpriseRulesetConditionsOneof1",), + ".group_0092": ("EnterpriseRulesetConditionsOneof2",), + ".group_0093": ("EnterpriseRulesetConditionsOneof3",), + ".group_0094": ( "RepositoryRuleCreation", "RepositoryRuleDeletion", "RepositoryRuleRequiredSignatures", @@ -9104,143 +9199,143 @@ "RepositoryRuleOneof17", "RepositoryRuleOneof17PropParameters", ), - ".group_0088": ("RepositoryRuleUpdate",), - ".group_0089": ("RepositoryRuleUpdatePropParameters",), - ".group_0090": ( + ".group_0095": ("RepositoryRuleUpdate",), + ".group_0096": ("RepositoryRuleUpdatePropParameters",), + ".group_0097": ( "RepositoryRuleRequiredLinearHistory", "RepositoryRuleOneof16", "RepositoryRuleOneof16PropParameters", ), - ".group_0091": ("RepositoryRuleMergeQueue",), - ".group_0092": ("RepositoryRuleMergeQueuePropParameters",), - ".group_0093": ("RepositoryRuleRequiredDeployments",), - ".group_0094": ("RepositoryRuleRequiredDeploymentsPropParameters",), - ".group_0095": ("RepositoryRuleParamsRequiredReviewerConfiguration",), - ".group_0096": ("RepositoryRulePullRequest",), - ".group_0097": ("RepositoryRulePullRequestPropParameters",), - ".group_0098": ("RepositoryRuleRequiredStatusChecks",), - ".group_0099": ( + ".group_0098": ("RepositoryRuleMergeQueue",), + ".group_0099": ("RepositoryRuleMergeQueuePropParameters",), + ".group_0100": ("RepositoryRuleRequiredDeployments",), + ".group_0101": ("RepositoryRuleRequiredDeploymentsPropParameters",), + ".group_0102": ("RepositoryRuleParamsRequiredReviewerConfiguration",), + ".group_0103": ("RepositoryRulePullRequest",), + ".group_0104": ("RepositoryRulePullRequestPropParameters",), + ".group_0105": ("RepositoryRuleRequiredStatusChecks",), + ".group_0106": ( "RepositoryRuleRequiredStatusChecksPropParameters", "RepositoryRuleParamsStatusCheckConfiguration", ), - ".group_0100": ("RepositoryRuleCommitMessagePattern",), - ".group_0101": ("RepositoryRuleCommitMessagePatternPropParameters",), - ".group_0102": ("RepositoryRuleCommitAuthorEmailPattern",), - ".group_0103": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), - ".group_0104": ("RepositoryRuleCommitterEmailPattern",), - ".group_0105": ("RepositoryRuleCommitterEmailPatternPropParameters",), - ".group_0106": ("RepositoryRuleBranchNamePattern",), - ".group_0107": ("RepositoryRuleBranchNamePatternPropParameters",), - ".group_0108": ("RepositoryRuleTagNamePattern",), - ".group_0109": ("RepositoryRuleTagNamePatternPropParameters",), - ".group_0110": ("RepositoryRuleParamsRestrictedCommits",), - ".group_0111": ("RepositoryRuleWorkflows",), - ".group_0112": ( + ".group_0107": ("RepositoryRuleCommitMessagePattern",), + ".group_0108": ("RepositoryRuleCommitMessagePatternPropParameters",), + ".group_0109": ("RepositoryRuleCommitAuthorEmailPattern",), + ".group_0110": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), + ".group_0111": ("RepositoryRuleCommitterEmailPattern",), + ".group_0112": ("RepositoryRuleCommitterEmailPatternPropParameters",), + ".group_0113": ("RepositoryRuleBranchNamePattern",), + ".group_0114": ("RepositoryRuleBranchNamePatternPropParameters",), + ".group_0115": ("RepositoryRuleTagNamePattern",), + ".group_0116": ("RepositoryRuleTagNamePatternPropParameters",), + ".group_0117": ("RepositoryRuleParamsRestrictedCommits",), + ".group_0118": ("RepositoryRuleWorkflows",), + ".group_0119": ( "RepositoryRuleWorkflowsPropParameters", "RepositoryRuleParamsWorkflowFileReference", ), - ".group_0113": ("RepositoryRuleCodeScanning",), - ".group_0114": ( + ".group_0120": ("RepositoryRuleCodeScanning",), + ".group_0121": ( "RepositoryRuleCodeScanningPropParameters", "RepositoryRuleParamsCodeScanningTool", ), - ".group_0115": ( + ".group_0122": ( "RepositoryRuleOneof18", "RepositoryRuleOneof18PropParameters", ), - ".group_0116": ("RepositoryRulesetConditionsRepositoryIdTarget",), - ".group_0117": ( + ".group_0123": ("RepositoryRulesetConditionsRepositoryIdTarget",), + ".group_0124": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId", ), - ".group_0118": ("OrgRulesetConditionsOneof0",), - ".group_0119": ("OrgRulesetConditionsOneof1",), - ".group_0120": ("OrgRulesetConditionsOneof2",), - ".group_0121": ( + ".group_0125": ("OrgRulesetConditionsOneof0",), + ".group_0126": ("OrgRulesetConditionsOneof1",), + ".group_0127": ("OrgRulesetConditionsOneof2",), + ".group_0128": ( "RepositoryRuleset", "RepositoryRulesetPropLinks", "RepositoryRulesetPropLinksPropSelf", "RepositoryRulesetPropLinksPropHtml", ), - ".group_0122": ("OrganizationSecretScanningAlert",), - ".group_0123": ( + ".group_0129": ("OrganizationSecretScanningAlert",), + ".group_0130": ( "ActionsBillingUsage", "ActionsBillingUsagePropMinutesUsedBreakdown", ), - ".group_0124": ( + ".group_0131": ( "AdvancedSecurityActiveCommitters", "AdvancedSecurityActiveCommittersRepository", "AdvancedSecurityActiveCommittersUser", ), - ".group_0125": ( + ".group_0132": ( "GetAllCostCenters", "GetAllCostCentersPropCostCentersItems", "GetAllCostCentersPropCostCentersItemsPropResourcesItems", ), - ".group_0126": ("PackagesBillingUsage",), - ".group_0127": ("CombinedBillingUsage",), - ".group_0128": ( + ".group_0133": ("PackagesBillingUsage",), + ".group_0134": ("CombinedBillingUsage",), + ".group_0135": ( "BillingUsageReport", "BillingUsageReportPropUsageItemsItems", ), - ".group_0129": ("Milestone",), - ".group_0130": ("ReactionRollup",), - ".group_0131": ( + ".group_0136": ("Milestone",), + ".group_0137": ("ReactionRollup",), + ".group_0138": ( "Issue", "SubIssuesSummary", "IssuePropLabelsItemsOneof1", "IssuePropPullRequest", ), - ".group_0132": ("IssueComment",), - ".group_0133": ( + ".group_0139": ("IssueComment",), + ".group_0140": ( "EventPropPayload", "EventPropPayloadPropPagesItems", "Event", "Actor", "EventPropRepo", ), - ".group_0134": ( + ".group_0141": ( "Feed", "FeedPropLinks", "LinkWithType", ), - ".group_0135": ( + ".group_0142": ( "BaseGist", "BaseGistPropFiles", ), - ".group_0136": ( + ".group_0143": ( "GistHistory", "GistHistoryPropChangeStatus", "GistSimplePropForkOf", "GistSimplePropForkOfPropFiles", ), - ".group_0137": ( + ".group_0144": ( "GistSimple", "GistSimplePropFiles", "GistSimplePropForksItems", "PublicUser", "PublicUserPropPlan", ), - ".group_0138": ("GistComment",), - ".group_0139": ( + ".group_0145": ("GistComment",), + ".group_0146": ( "GistCommit", "GistCommitPropChangeStatus", ), - ".group_0140": ("GitignoreTemplate",), - ".group_0141": ("License",), - ".group_0142": ("MarketplaceListingPlan",), - ".group_0143": ("MarketplacePurchase",), - ".group_0144": ( + ".group_0147": ("GitignoreTemplate",), + ".group_0148": ("License",), + ".group_0149": ("MarketplaceListingPlan",), + ".group_0150": ("MarketplacePurchase",), + ".group_0151": ( "MarketplacePurchasePropMarketplacePendingChange", "MarketplacePurchasePropMarketplacePurchase", ), - ".group_0145": ( + ".group_0152": ( "ApiOverview", "ApiOverviewPropSshKeyFingerprints", "ApiOverviewPropDomains", "ApiOverviewPropDomainsPropActionsInbound", "ApiOverviewPropDomainsPropArtifactAttestations", ), - ".group_0146": ( + ".group_0153": ( "SecurityAndAnalysis", "SecurityAndAnalysisPropAdvancedSecurity", "SecurityAndAnalysisPropDependabotSecurityUpdates", @@ -9250,26 +9345,26 @@ "SecurityAndAnalysisPropSecretScanningAiDetection", "SecurityAndAnalysisPropSecretScanningValidityChecks", ), - ".group_0147": ( + ".group_0154": ( "MinimalRepository", "CodeOfConduct", "MinimalRepositoryPropPermissions", "MinimalRepositoryPropLicense", ), - ".group_0148": ( + ".group_0155": ( "Thread", "ThreadPropSubject", ), - ".group_0149": ("ThreadSubscription",), - ".group_0150": ("OrganizationCustomRepositoryRole",), - ".group_0151": ( + ".group_0156": ("ThreadSubscription",), + ".group_0157": ("OrganizationCustomRepositoryRole",), + ".group_0158": ( "OrganizationFull", "OrganizationFullPropPlan", ), - ".group_0152": ("OidcCustomSub",), - ".group_0153": ("ActionsOrganizationPermissions",), - ".group_0154": ("ActionsPublicKey",), - ".group_0155": ( + ".group_0159": ("OidcCustomSub",), + ".group_0160": ("ActionsOrganizationPermissions",), + ".group_0161": ("ActionsPublicKey",), + ".group_0162": ( "PushRuleBypassRequest", "PushRuleBypassRequestPropRepository", "PushRuleBypassRequestPropOrganization", @@ -9278,99 +9373,99 @@ "BypassResponse", "BypassResponsePropReviewer", ), - ".group_0156": ("CodespaceMachine",), - ".group_0157": ( + ".group_0163": ("CodespaceMachine",), + ".group_0164": ( "Codespace", "CodespacePropGitStatus", "CodespacePropRuntimeConstraints", ), - ".group_0158": ("CodespacesPublicKey",), - ".group_0159": ( + ".group_0165": ("CodespacesPublicKey",), + ".group_0166": ( "CopilotOrganizationDetails", "CopilotSeatBreakdown", ), - ".group_0160": ("CredentialAuthorization",), - ".group_0161": ("OrganizationCustomRepositoryRoleCreateSchema",), - ".group_0162": ("OrganizationCustomRepositoryRoleUpdateSchema",), - ".group_0163": ("DependabotPublicKey",), - ".group_0164": ("Package",), - ".group_0165": ( + ".group_0167": ("CredentialAuthorization",), + ".group_0168": ("OrganizationCustomRepositoryRoleCreateSchema",), + ".group_0169": ("OrganizationCustomRepositoryRoleUpdateSchema",), + ".group_0170": ("DependabotPublicKey",), + ".group_0171": ("Package",), + ".group_0172": ( "ExternalGroup", "ExternalGroupPropTeamsItems", "ExternalGroupPropMembersItems", ), - ".group_0166": ( + ".group_0173": ( "ExternalGroups", "ExternalGroupsPropGroupsItems", ), - ".group_0167": ("OrganizationInvitation",), - ".group_0168": ("RepositoryFineGrainedPermission",), - ".group_0169": ( + ".group_0174": ("OrganizationInvitation",), + ".group_0175": ("RepositoryFineGrainedPermission",), + ".group_0176": ( "OrgHook", "OrgHookPropConfig", ), - ".group_0170": ("ApiInsightsRouteStatsItems",), - ".group_0171": ("ApiInsightsSubjectStatsItems",), - ".group_0172": ("ApiInsightsSummaryStats",), - ".group_0173": ("ApiInsightsTimeStatsItems",), - ".group_0174": ("ApiInsightsUserStatsItems",), - ".group_0175": ("InteractionLimitResponse",), - ".group_0176": ("InteractionLimit",), - ".group_0177": ( + ".group_0177": ("ApiInsightsRouteStatsItems",), + ".group_0178": ("ApiInsightsSubjectStatsItems",), + ".group_0179": ("ApiInsightsSummaryStats",), + ".group_0180": ("ApiInsightsTimeStatsItems",), + ".group_0181": ("ApiInsightsUserStatsItems",), + ".group_0182": ("InteractionLimitResponse",), + ".group_0183": ("InteractionLimit",), + ".group_0184": ( "OrgMembership", "OrgMembershipPropPermissions", ), - ".group_0178": ("Migration",), - ".group_0179": ("OrganizationFineGrainedPermission",), - ".group_0180": ( + ".group_0185": ("Migration",), + ".group_0186": ("OrganizationFineGrainedPermission",), + ".group_0187": ( "OrganizationRole", "OrgsOrgOrganizationRolesGetResponse200", ), - ".group_0181": ("OrganizationCustomOrganizationRoleCreateSchema",), - ".group_0182": ("OrganizationCustomOrganizationRoleUpdateSchema",), - ".group_0183": ( + ".group_0188": ("OrganizationCustomOrganizationRoleCreateSchema",), + ".group_0189": ("OrganizationCustomOrganizationRoleUpdateSchema",), + ".group_0190": ( "TeamRoleAssignment", "TeamRoleAssignmentPropPermissions", ), - ".group_0184": ("UserRoleAssignment",), - ".group_0185": ( + ".group_0191": ("UserRoleAssignment",), + ".group_0192": ( "PackageVersion", "PackageVersionPropMetadata", "PackageVersionPropMetadataPropContainer", "PackageVersionPropMetadataPropDocker", ), - ".group_0186": ( + ".group_0193": ( "OrganizationProgrammaticAccessGrantRequest", "OrganizationProgrammaticAccessGrantRequestPropPermissions", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", ), - ".group_0187": ( + ".group_0194": ( "OrganizationProgrammaticAccessGrant", "OrganizationProgrammaticAccessGrantPropPermissions", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", ), - ".group_0188": ("OrgPrivateRegistryConfigurationWithSelectedRepositories",), - ".group_0189": ("Project",), - ".group_0190": ("CustomPropertyValue",), - ".group_0191": ("OrgRepoCustomPropertyValues",), - ".group_0192": ("CodeOfConductSimple",), - ".group_0193": ( + ".group_0195": ("OrgPrivateRegistryConfigurationWithSelectedRepositories",), + ".group_0196": ("Project",), + ".group_0197": ("CustomPropertyValue",), + ".group_0198": ("OrgRepoCustomPropertyValues",), + ".group_0199": ("CodeOfConductSimple",), + ".group_0200": ( "FullRepository", "FullRepositoryPropPermissions", "FullRepositoryPropCustomProperties", ), - ".group_0194": ("RuleSuitesItems",), - ".group_0195": ( + ".group_0201": ("RuleSuitesItems",), + ".group_0202": ( "RuleSuite", "RuleSuitePropRuleEvaluationsItems", "RuleSuitePropRuleEvaluationsItemsPropRuleSource", ), - ".group_0196": ("RepositoryAdvisoryCredit",), - ".group_0197": ( + ".group_0203": ("RepositoryAdvisoryCredit",), + ".group_0204": ( "RepositoryAdvisory", "RepositoryAdvisoryPropIdentifiersItems", "RepositoryAdvisoryPropSubmission", @@ -9380,82 +9475,82 @@ "RepositoryAdvisoryVulnerability", "RepositoryAdvisoryVulnerabilityPropPackage", ), - ".group_0198": ( + ".group_0205": ( "GroupMapping", "GroupMappingPropGroupsItems", ), - ".group_0199": ( + ".group_0206": ( "TeamFull", "TeamOrganization", "TeamOrganizationPropPlan", ), - ".group_0200": ("TeamDiscussion",), - ".group_0201": ("TeamDiscussionComment",), - ".group_0202": ("Reaction",), - ".group_0203": ("TeamMembership",), - ".group_0204": ( + ".group_0207": ("TeamDiscussion",), + ".group_0208": ("TeamDiscussionComment",), + ".group_0209": ("Reaction",), + ".group_0210": ("TeamMembership",), + ".group_0211": ( "TeamProject", "TeamProjectPropPermissions", ), - ".group_0205": ( + ".group_0212": ( "TeamRepository", "TeamRepositoryPropPermissions", ), - ".group_0206": ("ProjectCard",), - ".group_0207": ("ProjectColumn",), - ".group_0208": ("ProjectCollaboratorPermission",), - ".group_0209": ("RateLimit",), - ".group_0210": ("RateLimitOverview",), - ".group_0211": ("RateLimitOverviewPropResources",), - ".group_0212": ( + ".group_0213": ("ProjectCard",), + ".group_0214": ("ProjectColumn",), + ".group_0215": ("ProjectCollaboratorPermission",), + ".group_0216": ("RateLimit",), + ".group_0217": ("RateLimitOverview",), + ".group_0218": ("RateLimitOverviewPropResources",), + ".group_0219": ( "Artifact", "ArtifactPropWorkflowRun", ), - ".group_0213": ( + ".group_0220": ( "ActionsCacheList", "ActionsCacheListPropActionsCachesItems", ), - ".group_0214": ( + ".group_0221": ( "Job", "JobPropStepsItems", ), - ".group_0215": ("OidcCustomSubRepo",), - ".group_0216": ("ActionsSecret",), - ".group_0217": ("ActionsVariable",), - ".group_0218": ("ActionsRepositoryPermissions",), - ".group_0219": ("ActionsWorkflowAccessToRepository",), - ".group_0220": ( + ".group_0222": ("OidcCustomSubRepo",), + ".group_0223": ("ActionsSecret",), + ".group_0224": ("ActionsVariable",), + ".group_0225": ("ActionsRepositoryPermissions",), + ".group_0226": ("ActionsWorkflowAccessToRepository",), + ".group_0227": ( "PullRequestMinimal", "PullRequestMinimalPropHead", "PullRequestMinimalPropHeadPropRepo", "PullRequestMinimalPropBase", "PullRequestMinimalPropBasePropRepo", ), - ".group_0221": ( + ".group_0228": ( "SimpleCommit", "SimpleCommitPropAuthor", "SimpleCommitPropCommitter", ), - ".group_0222": ( + ".group_0229": ( "WorkflowRun", "ReferencedWorkflow", ), - ".group_0223": ( + ".group_0230": ( "EnvironmentApprovals", "EnvironmentApprovalsPropEnvironmentsItems", ), - ".group_0224": ("ReviewCustomGatesCommentRequired",), - ".group_0225": ("ReviewCustomGatesStateRequired",), - ".group_0226": ( + ".group_0231": ("ReviewCustomGatesCommentRequired",), + ".group_0232": ("ReviewCustomGatesStateRequired",), + ".group_0233": ( "PendingDeploymentPropReviewersItems", "PendingDeployment", "PendingDeploymentPropEnvironment", ), - ".group_0227": ( + ".group_0234": ( "Deployment", "DeploymentPropPayloadOneof0", ), - ".group_0228": ( + ".group_0235": ( "WorkflowRunUsage", "WorkflowRunUsagePropBillable", "WorkflowRunUsagePropBillablePropUbuntu", @@ -9465,22 +9560,22 @@ "WorkflowRunUsagePropBillablePropWindows", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", ), - ".group_0229": ( + ".group_0236": ( "WorkflowUsage", "WorkflowUsagePropBillable", "WorkflowUsagePropBillablePropUbuntu", "WorkflowUsagePropBillablePropMacos", "WorkflowUsagePropBillablePropWindows", ), - ".group_0230": ("Activity",), - ".group_0231": ("Autolink",), - ".group_0232": ("CheckAutomatedSecurityFixes",), - ".group_0233": ("ProtectedBranchPullRequestReview",), - ".group_0234": ( + ".group_0237": ("Activity",), + ".group_0238": ("Autolink",), + ".group_0239": ("CheckAutomatedSecurityFixes",), + ".group_0240": ("ProtectedBranchPullRequestReview",), + ".group_0241": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictions", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", ), - ".group_0235": ( + ".group_0242": ( "BranchRestrictionPolicy", "BranchRestrictionPolicyPropUsersItems", "BranchRestrictionPolicyPropTeamsItems", @@ -9488,7 +9583,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwner", "BranchRestrictionPolicyPropAppsItemsPropPermissions", ), - ".group_0236": ( + ".group_0243": ( "BranchProtection", "ProtectedBranchAdminEnforced", "BranchProtectionPropRequiredLinearHistory", @@ -9502,28 +9597,28 @@ "ProtectedBranchRequiredStatusCheck", "ProtectedBranchRequiredStatusCheckPropChecksItems", ), - ".group_0237": ( + ".group_0244": ( "ShortBranch", "ShortBranchPropCommit", ), - ".group_0238": ("GitUser",), - ".group_0239": ("Verification",), - ".group_0240": ("DiffEntry",), - ".group_0241": ( + ".group_0245": ("GitUser",), + ".group_0246": ("Verification",), + ".group_0247": ("DiffEntry",), + ".group_0248": ( "Commit", "EmptyObject", "CommitPropParentsItems", "CommitPropStats", ), - ".group_0242": ( + ".group_0249": ( "CommitPropCommit", "CommitPropCommitPropTree", ), - ".group_0243": ( + ".group_0250": ( "BranchWithProtection", "BranchWithProtectionPropLinks", ), - ".group_0244": ( + ".group_0251": ( "ProtectedBranch", "ProtectedBranchPropRequiredSignatures", "ProtectedBranchPropEnforceAdmins", @@ -9537,117 +9632,117 @@ "StatusCheckPolicy", "StatusCheckPolicyPropChecksItems", ), - ".group_0245": ("ProtectedBranchPropRequiredPullRequestReviews",), - ".group_0246": ( + ".group_0252": ("ProtectedBranchPropRequiredPullRequestReviews",), + ".group_0253": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", ), - ".group_0247": ("DeploymentSimple",), - ".group_0248": ( + ".group_0254": ("DeploymentSimple",), + ".group_0255": ( "CheckRun", "CheckRunPropOutput", "CheckRunPropCheckSuite", ), - ".group_0249": ("CheckAnnotation",), - ".group_0250": ( + ".group_0256": ("CheckAnnotation",), + ".group_0257": ( "CheckSuite", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", ), - ".group_0251": ( + ".group_0258": ( "CheckSuitePreference", "CheckSuitePreferencePropPreferences", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", ), - ".group_0252": ("CodeScanningAlertItems",), - ".group_0253": ( + ".group_0259": ("CodeScanningAlertItems",), + ".group_0260": ( "CodeScanningAlert", "CodeScanningAlertRule", ), - ".group_0254": ("CodeScanningAutofix",), - ".group_0255": ("CodeScanningAutofixCommits",), - ".group_0256": ("CodeScanningAutofixCommitsResponse",), - ".group_0257": ("CodeScanningAnalysis",), - ".group_0258": ("CodeScanningAnalysisDeletion",), - ".group_0259": ("CodeScanningCodeqlDatabase",), - ".group_0260": ("CodeScanningVariantAnalysisRepository",), - ".group_0261": ("CodeScanningVariantAnalysisSkippedRepoGroup",), - ".group_0262": ("CodeScanningVariantAnalysis",), - ".group_0263": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), - ".group_0264": ( + ".group_0261": ("CodeScanningAutofix",), + ".group_0262": ("CodeScanningAutofixCommits",), + ".group_0263": ("CodeScanningAutofixCommitsResponse",), + ".group_0264": ("CodeScanningAnalysis",), + ".group_0265": ("CodeScanningAnalysisDeletion",), + ".group_0266": ("CodeScanningCodeqlDatabase",), + ".group_0267": ("CodeScanningVariantAnalysisRepository",), + ".group_0268": ("CodeScanningVariantAnalysisSkippedRepoGroup",), + ".group_0269": ("CodeScanningVariantAnalysis",), + ".group_0270": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), + ".group_0271": ( "CodeScanningVariantAnalysisPropSkippedRepositories", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", ), - ".group_0265": ("CodeScanningVariantAnalysisRepoTask",), - ".group_0266": ("CodeScanningDefaultSetup",), - ".group_0267": ("CodeScanningDefaultSetupUpdate",), - ".group_0268": ("CodeScanningDefaultSetupUpdateResponse",), - ".group_0269": ("CodeScanningSarifsReceipt",), - ".group_0270": ("CodeScanningSarifsStatus",), - ".group_0271": ("CodeSecurityConfigurationForRepository",), - ".group_0272": ( + ".group_0272": ("CodeScanningVariantAnalysisRepoTask",), + ".group_0273": ("CodeScanningDefaultSetup",), + ".group_0274": ("CodeScanningDefaultSetupUpdate",), + ".group_0275": ("CodeScanningDefaultSetupUpdateResponse",), + ".group_0276": ("CodeScanningSarifsReceipt",), + ".group_0277": ("CodeScanningSarifsStatus",), + ".group_0278": ("CodeSecurityConfigurationForRepository",), + ".group_0279": ( "CodeownersErrors", "CodeownersErrorsPropErrorsItems", ), - ".group_0273": ("CodespacesPermissionsCheckForDevcontainer",), - ".group_0274": ("RepositoryInvitation",), - ".group_0275": ( + ".group_0280": ("CodespacesPermissionsCheckForDevcontainer",), + ".group_0281": ("RepositoryInvitation",), + ".group_0282": ( "RepositoryCollaboratorPermission", "Collaborator", "CollaboratorPropPermissions", ), - ".group_0276": ( + ".group_0283": ( "CommitComment", "TimelineCommitCommentedEvent", ), - ".group_0277": ( + ".group_0284": ( "BranchShort", "BranchShortPropCommit", ), - ".group_0278": ("Link",), - ".group_0279": ("AutoMerge",), - ".group_0280": ( + ".group_0285": ("Link",), + ".group_0286": ("AutoMerge",), + ".group_0287": ( "PullRequestSimple", "PullRequestSimplePropLabelsItems", ), - ".group_0281": ( + ".group_0288": ( "PullRequestSimplePropHead", "PullRequestSimplePropBase", ), - ".group_0282": ("PullRequestSimplePropLinks",), - ".group_0283": ( + ".group_0289": ("PullRequestSimplePropLinks",), + ".group_0290": ( "CombinedCommitStatus", "SimpleCommitStatus", ), - ".group_0284": ("Status",), - ".group_0285": ( + ".group_0291": ("Status",), + ".group_0292": ( "CommunityProfilePropFiles", "CommunityHealthFile", "CommunityProfile", ), - ".group_0286": ("CommitComparison",), - ".group_0287": ( + ".group_0293": ("CommitComparison",), + ".group_0294": ( "ContentTree", "ContentTreePropLinks", "ContentTreePropEntriesItems", "ContentTreePropEntriesItemsPropLinks", ), - ".group_0288": ( + ".group_0295": ( "ContentDirectoryItems", "ContentDirectoryItemsPropLinks", ), - ".group_0289": ( + ".group_0296": ( "ContentFile", "ContentFilePropLinks", ), - ".group_0290": ( + ".group_0297": ( "ContentSymlink", "ContentSymlinkPropLinks", ), - ".group_0291": ( + ".group_0298": ( "ContentSubmodule", "ContentSubmodulePropLinks", ), - ".group_0292": ( + ".group_0299": ( "FileCommit", "FileCommitPropContent", "FileCommitPropContentPropLinks", @@ -9658,20 +9753,20 @@ "FileCommitPropCommitPropParentsItems", "FileCommitPropCommitPropVerification", ), - ".group_0293": ( + ".group_0300": ( "RepositoryRuleViolationError", "RepositoryRuleViolationErrorPropMetadata", "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", ), - ".group_0294": ("Contributor",), - ".group_0295": ("DependabotAlert",), - ".group_0296": ("DependabotAlertPropDependency",), - ".group_0297": ( + ".group_0301": ("Contributor",), + ".group_0302": ("DependabotAlert",), + ".group_0303": ("DependabotAlertPropDependency",), + ".group_0304": ( "DependencyGraphDiffItems", "DependencyGraphDiffItemsPropVulnerabilitiesItems", ), - ".group_0298": ( + ".group_0305": ( "DependencyGraphSpdxSbom", "DependencyGraphSpdxSbomPropSbom", "DependencyGraphSpdxSbomPropSbomPropCreationInfo", @@ -9679,39 +9774,39 @@ "DependencyGraphSpdxSbomPropSbomPropPackagesItems", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", ), - ".group_0299": ("Metadata",), - ".group_0300": ("Dependency",), - ".group_0301": ( + ".group_0306": ("Metadata",), + ".group_0307": ("Dependency",), + ".group_0308": ( "Manifest", "ManifestPropFile", "ManifestPropResolved", ), - ".group_0302": ( + ".group_0309": ( "Snapshot", "SnapshotPropJob", "SnapshotPropDetector", "SnapshotPropManifests", ), - ".group_0303": ("DeploymentStatus",), - ".group_0304": ("DeploymentBranchPolicySettings",), - ".group_0305": ( + ".group_0310": ("DeploymentStatus",), + ".group_0311": ("DeploymentBranchPolicySettings",), + ".group_0312": ( "Environment", "EnvironmentPropProtectionRulesItemsAnyof0", "EnvironmentPropProtectionRulesItemsAnyof2", "ReposOwnerRepoEnvironmentsGetResponse200", ), - ".group_0306": ("EnvironmentPropProtectionRulesItemsAnyof1",), - ".group_0307": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), - ".group_0308": ("DeploymentBranchPolicyNamePatternWithType",), - ".group_0309": ("DeploymentBranchPolicyNamePattern",), - ".group_0310": ("CustomDeploymentRuleApp",), - ".group_0311": ( + ".group_0313": ("EnvironmentPropProtectionRulesItemsAnyof1",), + ".group_0314": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), + ".group_0315": ("DeploymentBranchPolicyNamePatternWithType",), + ".group_0316": ("DeploymentBranchPolicyNamePattern",), + ".group_0317": ("CustomDeploymentRuleApp",), + ".group_0318": ( "DeploymentProtectionRule", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ), - ".group_0312": ("ShortBlob",), - ".group_0313": ("Blob",), - ".group_0314": ( + ".group_0319": ("ShortBlob",), + ".group_0320": ("Blob",), + ".group_0321": ( "GitCommit", "GitCommitPropAuthor", "GitCommitPropCommitter", @@ -9719,28 +9814,28 @@ "GitCommitPropParentsItems", "GitCommitPropVerification", ), - ".group_0315": ( + ".group_0322": ( "GitRef", "GitRefPropObject", ), - ".group_0316": ( + ".group_0323": ( "GitTag", "GitTagPropTagger", "GitTagPropObject", ), - ".group_0317": ( + ".group_0324": ( "GitTree", "GitTreePropTreeItems", ), - ".group_0318": ("HookResponse",), - ".group_0319": ("Hook",), - ".group_0320": ( + ".group_0325": ("HookResponse",), + ".group_0326": ("Hook",), + ".group_0327": ( "Import", "ImportPropProjectChoicesItems", ), - ".group_0321": ("PorterAuthor",), - ".group_0322": ("PorterLargeFile",), - ".group_0323": ( + ".group_0328": ("PorterAuthor",), + ".group_0329": ("PorterLargeFile",), + ".group_0330": ( "IssueEvent", "IssueEventLabel", "IssueEventDismissedReview", @@ -9748,55 +9843,55 @@ "IssueEventProjectCard", "IssueEventRename", ), - ".group_0324": ( + ".group_0331": ( "LabeledIssueEvent", "LabeledIssueEventPropLabel", ), - ".group_0325": ( + ".group_0332": ( "UnlabeledIssueEvent", "UnlabeledIssueEventPropLabel", ), - ".group_0326": ("AssignedIssueEvent",), - ".group_0327": ("UnassignedIssueEvent",), - ".group_0328": ( + ".group_0333": ("AssignedIssueEvent",), + ".group_0334": ("UnassignedIssueEvent",), + ".group_0335": ( "MilestonedIssueEvent", "MilestonedIssueEventPropMilestone", ), - ".group_0329": ( + ".group_0336": ( "DemilestonedIssueEvent", "DemilestonedIssueEventPropMilestone", ), - ".group_0330": ( + ".group_0337": ( "RenamedIssueEvent", "RenamedIssueEventPropRename", ), - ".group_0331": ("ReviewRequestedIssueEvent",), - ".group_0332": ("ReviewRequestRemovedIssueEvent",), - ".group_0333": ( + ".group_0338": ("ReviewRequestedIssueEvent",), + ".group_0339": ("ReviewRequestRemovedIssueEvent",), + ".group_0340": ( "ReviewDismissedIssueEvent", "ReviewDismissedIssueEventPropDismissedReview", ), - ".group_0334": ("LockedIssueEvent",), - ".group_0335": ( + ".group_0341": ("LockedIssueEvent",), + ".group_0342": ( "AddedToProjectIssueEvent", "AddedToProjectIssueEventPropProjectCard", ), - ".group_0336": ( + ".group_0343": ( "MovedColumnInProjectIssueEvent", "MovedColumnInProjectIssueEventPropProjectCard", ), - ".group_0337": ( + ".group_0344": ( "RemovedFromProjectIssueEvent", "RemovedFromProjectIssueEventPropProjectCard", ), - ".group_0338": ( + ".group_0345": ( "ConvertedNoteToIssueIssueEvent", "ConvertedNoteToIssueIssueEventPropProjectCard", ), - ".group_0339": ("TimelineCommentEvent",), - ".group_0340": ("TimelineCrossReferencedEvent",), - ".group_0341": ("TimelineCrossReferencedEventPropSource",), - ".group_0342": ( + ".group_0346": ("TimelineCommentEvent",), + ".group_0347": ("TimelineCrossReferencedEvent",), + ".group_0348": ("TimelineCrossReferencedEventPropSource",), + ".group_0349": ( "TimelineCommittedEvent", "TimelineCommittedEventPropAuthor", "TimelineCommittedEventPropCommitter", @@ -9804,13 +9899,13 @@ "TimelineCommittedEventPropParentsItems", "TimelineCommittedEventPropVerification", ), - ".group_0343": ( + ".group_0350": ( "TimelineReviewedEvent", "TimelineReviewedEventPropLinks", "TimelineReviewedEventPropLinksPropHtml", "TimelineReviewedEventPropLinksPropPullRequest", ), - ".group_0344": ( + ".group_0351": ( "PullRequestReviewComment", "PullRequestReviewCommentPropLinks", "PullRequestReviewCommentPropLinksPropSelf", @@ -9818,157 +9913,157 @@ "PullRequestReviewCommentPropLinksPropPullRequest", "TimelineLineCommentedEvent", ), - ".group_0345": ("TimelineAssignedIssueEvent",), - ".group_0346": ("TimelineUnassignedIssueEvent",), - ".group_0347": ("StateChangeIssueEvent",), - ".group_0348": ("DeployKey",), - ".group_0349": ("Language",), - ".group_0350": ( + ".group_0352": ("TimelineAssignedIssueEvent",), + ".group_0353": ("TimelineUnassignedIssueEvent",), + ".group_0354": ("StateChangeIssueEvent",), + ".group_0355": ("DeployKey",), + ".group_0356": ("Language",), + ".group_0357": ( "LicenseContent", "LicenseContentPropLinks", ), - ".group_0351": ("MergedUpstream",), - ".group_0352": ( + ".group_0358": ("MergedUpstream",), + ".group_0359": ( "Page", "PagesSourceHash", "PagesHttpsCertificate", ), - ".group_0353": ( + ".group_0360": ( "PageBuild", "PageBuildPropError", ), - ".group_0354": ("PageBuildStatus",), - ".group_0355": ("PageDeployment",), - ".group_0356": ("PagesDeploymentStatus",), - ".group_0357": ( + ".group_0361": ("PageBuildStatus",), + ".group_0362": ("PageDeployment",), + ".group_0363": ("PagesDeploymentStatus",), + ".group_0364": ( "PagesHealthCheck", "PagesHealthCheckPropDomain", "PagesHealthCheckPropAltDomain", ), - ".group_0358": ("PullRequest",), - ".group_0359": ("PullRequestPropLabelsItems",), - ".group_0360": ( + ".group_0365": ("PullRequest",), + ".group_0366": ("PullRequestPropLabelsItems",), + ".group_0367": ( "PullRequestPropHead", "PullRequestPropBase", ), - ".group_0361": ("PullRequestPropLinks",), - ".group_0362": ("PullRequestMergeResult",), - ".group_0363": ("PullRequestReviewRequest",), - ".group_0364": ( + ".group_0368": ("PullRequestPropLinks",), + ".group_0369": ("PullRequestMergeResult",), + ".group_0370": ("PullRequestReviewRequest",), + ".group_0371": ( "PullRequestReview", "PullRequestReviewPropLinks", "PullRequestReviewPropLinksPropHtml", "PullRequestReviewPropLinksPropPullRequest", ), - ".group_0365": ("ReviewComment",), - ".group_0366": ("ReviewCommentPropLinks",), - ".group_0367": ("ReleaseAsset",), - ".group_0368": ("Release",), - ".group_0369": ("ReleaseNotesContent",), - ".group_0370": ("RepositoryRuleRulesetInfo",), - ".group_0371": ("RepositoryRuleDetailedOneof0",), - ".group_0372": ("RepositoryRuleDetailedOneof1",), - ".group_0373": ("RepositoryRuleDetailedOneof2",), - ".group_0374": ("RepositoryRuleDetailedOneof3",), - ".group_0375": ("RepositoryRuleDetailedOneof4",), - ".group_0376": ("RepositoryRuleDetailedOneof5",), - ".group_0377": ("RepositoryRuleDetailedOneof6",), - ".group_0378": ("RepositoryRuleDetailedOneof7",), - ".group_0379": ("RepositoryRuleDetailedOneof8",), - ".group_0380": ("RepositoryRuleDetailedOneof9",), - ".group_0381": ("RepositoryRuleDetailedOneof10",), - ".group_0382": ("RepositoryRuleDetailedOneof11",), - ".group_0383": ("RepositoryRuleDetailedOneof12",), - ".group_0384": ("RepositoryRuleDetailedOneof13",), - ".group_0385": ("RepositoryRuleDetailedOneof14",), - ".group_0386": ("RepositoryRuleDetailedOneof15",), - ".group_0387": ("RepositoryRuleDetailedOneof16",), - ".group_0388": ("SecretScanningAlert",), - ".group_0389": ("SecretScanningPushProtectionBypass",), - ".group_0390": ( + ".group_0372": ("ReviewComment",), + ".group_0373": ("ReviewCommentPropLinks",), + ".group_0374": ("ReleaseAsset",), + ".group_0375": ("Release",), + ".group_0376": ("ReleaseNotesContent",), + ".group_0377": ("RepositoryRuleRulesetInfo",), + ".group_0378": ("RepositoryRuleDetailedOneof0",), + ".group_0379": ("RepositoryRuleDetailedOneof1",), + ".group_0380": ("RepositoryRuleDetailedOneof2",), + ".group_0381": ("RepositoryRuleDetailedOneof3",), + ".group_0382": ("RepositoryRuleDetailedOneof4",), + ".group_0383": ("RepositoryRuleDetailedOneof5",), + ".group_0384": ("RepositoryRuleDetailedOneof6",), + ".group_0385": ("RepositoryRuleDetailedOneof7",), + ".group_0386": ("RepositoryRuleDetailedOneof8",), + ".group_0387": ("RepositoryRuleDetailedOneof9",), + ".group_0388": ("RepositoryRuleDetailedOneof10",), + ".group_0389": ("RepositoryRuleDetailedOneof11",), + ".group_0390": ("RepositoryRuleDetailedOneof12",), + ".group_0391": ("RepositoryRuleDetailedOneof13",), + ".group_0392": ("RepositoryRuleDetailedOneof14",), + ".group_0393": ("RepositoryRuleDetailedOneof15",), + ".group_0394": ("RepositoryRuleDetailedOneof16",), + ".group_0395": ("SecretScanningAlert",), + ".group_0396": ("SecretScanningPushProtectionBypass",), + ".group_0397": ( "SecretScanningScanHistory", "SecretScanningScan", "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", ), - ".group_0391": ( + ".group_0398": ( "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1", ), - ".group_0392": ( + ".group_0399": ( "RepositoryAdvisoryCreate", "RepositoryAdvisoryCreatePropCreditsItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0393": ( + ".group_0400": ( "PrivateVulnerabilityReportCreate", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0394": ( + ".group_0401": ( "RepositoryAdvisoryUpdate", "RepositoryAdvisoryUpdatePropCreditsItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", ), - ".group_0395": ("Stargazer",), - ".group_0396": ("CommitActivity",), - ".group_0397": ( + ".group_0402": ("Stargazer",), + ".group_0403": ("CommitActivity",), + ".group_0404": ( "ContributorActivity", "ContributorActivityPropWeeksItems", ), - ".group_0398": ("ParticipationStats",), - ".group_0399": ("RepositorySubscription",), - ".group_0400": ( + ".group_0405": ("ParticipationStats",), + ".group_0406": ("RepositorySubscription",), + ".group_0407": ( "Tag", "TagPropCommit", ), - ".group_0401": ("TagProtection",), - ".group_0402": ("Topic",), - ".group_0403": ("Traffic",), - ".group_0404": ("CloneTraffic",), - ".group_0405": ("ContentTraffic",), - ".group_0406": ("ReferrerTraffic",), - ".group_0407": ("ViewTraffic",), - ".group_0408": ( + ".group_0408": ("TagProtection",), + ".group_0409": ("Topic",), + ".group_0410": ("Traffic",), + ".group_0411": ("CloneTraffic",), + ".group_0412": ("ContentTraffic",), + ".group_0413": ("ReferrerTraffic",), + ".group_0414": ("ViewTraffic",), + ".group_0415": ( "GroupResponse", "GroupResponsePropMembersItems", ), - ".group_0409": ("Meta",), - ".group_0410": ( + ".group_0416": ("Meta",), + ".group_0417": ( "ScimEnterpriseGroupResponse", "ScimEnterpriseGroupResponseMergedMembers", "ScimEnterpriseGroupList", ), - ".group_0411": ( + ".group_0418": ( "ScimEnterpriseGroupResponseAllof1", "ScimEnterpriseGroupResponseAllof1PropMembersItems", ), - ".group_0412": ( + ".group_0419": ( "Group", "GroupPropMembersItems", ), - ".group_0413": ( + ".group_0420": ( "PatchSchema", "PatchSchemaPropOperationsItems", ), - ".group_0414": ( + ".group_0421": ( "UserNameResponse", "UserEmailsResponseItems", ), - ".group_0415": ("UserRoleItems",), - ".group_0416": ("UserResponse",), - ".group_0417": ( + ".group_0422": ("UserRoleItems",), + ".group_0423": ("UserResponse",), + ".group_0424": ( "ScimEnterpriseUserResponse", "ScimEnterpriseUserList", ), - ".group_0418": ("ScimEnterpriseUserResponseAllof1",), - ".group_0419": ("ScimEnterpriseUserResponseAllof1PropGroupsItems",), - ".group_0420": ( + ".group_0425": ("ScimEnterpriseUserResponseAllof1",), + ".group_0426": ("ScimEnterpriseUserResponseAllof1PropGroupsItems",), + ".group_0427": ( "User", "UserName", "UserEmailsItems", ), - ".group_0421": ( + ".group_0428": ( "ScimUserList", "ScimUser", "ScimUserPropName", @@ -9979,41 +10074,41 @@ "ScimUserPropOperationsItems", "ScimUserPropOperationsItemsPropValueOneof1", ), - ".group_0422": ( + ".group_0429": ( "SearchResultTextMatchesItems", "SearchResultTextMatchesItemsPropMatchesItems", ), - ".group_0423": ( + ".group_0430": ( "CodeSearchResultItem", "SearchCodeGetResponse200", ), - ".group_0424": ( + ".group_0431": ( "CommitSearchResultItem", "CommitSearchResultItemPropParentsItems", "SearchCommitsGetResponse200", ), - ".group_0425": ( + ".group_0432": ( "CommitSearchResultItemPropCommit", "CommitSearchResultItemPropCommitPropAuthor", "CommitSearchResultItemPropCommitPropTree", ), - ".group_0426": ( + ".group_0433": ( "IssueSearchResultItem", "IssueSearchResultItemPropLabelsItems", "IssueSearchResultItemPropSubIssuesSummary", "IssueSearchResultItemPropPullRequest", "SearchIssuesGetResponse200", ), - ".group_0427": ( + ".group_0434": ( "LabelSearchResultItem", "SearchLabelsGetResponse200", ), - ".group_0428": ( + ".group_0435": ( "RepoSearchResultItem", "RepoSearchResultItemPropPermissions", "SearchRepositoriesGetResponse200", ), - ".group_0429": ( + ".group_0436": ( "TopicSearchResultItem", "TopicSearchResultItemPropRelatedItems", "TopicSearchResultItemPropRelatedItemsPropTopicRelation", @@ -10021,45 +10116,45 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelation", "SearchTopicsGetResponse200", ), - ".group_0430": ( + ".group_0437": ( "UserSearchResultItem", "SearchUsersGetResponse200", ), - ".group_0431": ( + ".group_0438": ( "PrivateUser", "PrivateUserPropPlan", ), - ".group_0432": ("CodespacesUserPublicKey",), - ".group_0433": ("CodespaceExportDetails",), - ".group_0434": ( + ".group_0439": ("CodespacesUserPublicKey",), + ".group_0440": ("CodespaceExportDetails",), + ".group_0441": ( "CodespaceWithFullRepository", "CodespaceWithFullRepositoryPropGitStatus", "CodespaceWithFullRepositoryPropRuntimeConstraints", ), - ".group_0435": ("Email",), - ".group_0436": ( + ".group_0442": ("Email",), + ".group_0443": ( "GpgKey", "GpgKeyPropEmailsItems", "GpgKeyPropSubkeysItems", "GpgKeyPropSubkeysItemsPropEmailsItems", ), - ".group_0437": ("Key",), - ".group_0438": ( + ".group_0444": ("Key",), + ".group_0445": ( "UserMarketplacePurchase", "MarketplaceAccount", ), - ".group_0439": ("SocialAccount",), - ".group_0440": ("SshSigningKey",), - ".group_0441": ("StarredRepository",), - ".group_0442": ( + ".group_0446": ("SocialAccount",), + ".group_0447": ("SshSigningKey",), + ".group_0448": ("StarredRepository",), + ".group_0449": ( "Hovercard", "HovercardPropContextsItems", ), - ".group_0443": ("KeySimple",), - ".group_0444": ("EnterpriseWebhooks",), - ".group_0445": ("SimpleInstallation",), - ".group_0446": ("OrganizationSimpleWebhooks",), - ".group_0447": ( + ".group_0450": ("KeySimple",), + ".group_0451": ("EnterpriseWebhooks",), + ".group_0452": ("SimpleInstallation",), + ".group_0453": ("OrganizationSimpleWebhooks",), + ".group_0454": ( "RepositoryWebhooks", "RepositoryWebhooksPropPermissions", "RepositoryWebhooksPropCustomProperties", @@ -10067,9 +10162,9 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwner", "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ), - ".group_0448": ("WebhooksRule",), - ".group_0449": ("ExemptionResponse",), - ".group_0450": ( + ".group_0455": ("WebhooksRule",), + ".group_0456": ("ExemptionResponse",), + ".group_0457": ( "ExemptionRequest", "ExemptionRequestSecretScanningMetadata", "ExemptionRequestPushRulesetBypass", @@ -10078,26 +10173,26 @@ "ExemptionRequestSecretScanningPropDataItems", "ExemptionRequestSecretScanningPropDataItemsPropLocationsItems", ), - ".group_0451": ("SimpleCheckSuite",), - ".group_0452": ( + ".group_0458": ("SimpleCheckSuite",), + ".group_0459": ( "CheckRunWithSimpleCheckSuite", "CheckRunWithSimpleCheckSuitePropOutput", ), - ".group_0453": ("WebhooksDeployKey",), - ".group_0454": ("WebhooksWorkflow",), - ".group_0455": ( + ".group_0460": ("WebhooksDeployKey",), + ".group_0461": ("WebhooksWorkflow",), + ".group_0462": ( "WebhooksApprover", "WebhooksReviewersItems", "WebhooksReviewersItemsPropReviewer", ), - ".group_0456": ("WebhooksWorkflowJobRun",), - ".group_0457": ("WebhooksUser",), - ".group_0458": ( + ".group_0463": ("WebhooksWorkflowJobRun",), + ".group_0464": ("WebhooksUser",), + ".group_0465": ( "WebhooksAnswer", "WebhooksAnswerPropReactions", "WebhooksAnswerPropUser", ), - ".group_0459": ( + ".group_0466": ( "Discussion", "Label", "DiscussionPropAnswerChosenBy", @@ -10105,24 +10200,24 @@ "DiscussionPropReactions", "DiscussionPropUser", ), - ".group_0460": ( + ".group_0467": ( "WebhooksComment", "WebhooksCommentPropReactions", "WebhooksCommentPropUser", ), - ".group_0461": ("WebhooksLabel",), - ".group_0462": ("WebhooksRepositoriesItems",), - ".group_0463": ("WebhooksRepositoriesAddedItems",), - ".group_0464": ( + ".group_0468": ("WebhooksLabel",), + ".group_0469": ("WebhooksRepositoriesItems",), + ".group_0470": ("WebhooksRepositoriesAddedItems",), + ".group_0471": ( "WebhooksIssueComment", "WebhooksIssueCommentPropReactions", "WebhooksIssueCommentPropUser", ), - ".group_0465": ( + ".group_0472": ( "WebhooksChanges", "WebhooksChangesPropBody", ), - ".group_0466": ( + ".group_0473": ( "WebhooksIssue", "WebhooksIssuePropAssignee", "WebhooksIssuePropAssigneesItems", @@ -10137,11 +10232,11 @@ "WebhooksIssuePropSubIssuesSummary", "WebhooksIssuePropUser", ), - ".group_0467": ( + ".group_0474": ( "WebhooksMilestone", "WebhooksMilestonePropCreator", ), - ".group_0468": ( + ".group_0475": ( "WebhooksIssue2", "WebhooksIssue2PropAssignee", "WebhooksIssue2PropAssigneesItems", @@ -10156,31 +10251,31 @@ "WebhooksIssue2PropSubIssuesSummary", "WebhooksIssue2PropUser", ), - ".group_0469": ("WebhooksUserMannequin",), - ".group_0470": ( + ".group_0476": ("WebhooksUserMannequin",), + ".group_0477": ( "WebhooksMarketplacePurchase", "WebhooksMarketplacePurchasePropAccount", "WebhooksMarketplacePurchasePropPlan", ), - ".group_0471": ( + ".group_0478": ( "WebhooksPreviousMarketplacePurchase", "WebhooksPreviousMarketplacePurchasePropAccount", "WebhooksPreviousMarketplacePurchasePropPlan", ), - ".group_0472": ( + ".group_0479": ( "WebhooksTeam", "WebhooksTeamPropParent", ), - ".group_0473": ("MergeGroup",), - ".group_0474": ( + ".group_0480": ("MergeGroup",), + ".group_0481": ( "WebhooksMilestone3", "WebhooksMilestone3PropCreator", ), - ".group_0475": ( + ".group_0482": ( "WebhooksMembership", "WebhooksMembershipPropUser", ), - ".group_0476": ( + ".group_0483": ( "PersonalAccessTokenRequest", "PersonalAccessTokenRequestPropRepositoriesItems", "PersonalAccessTokenRequestPropPermissionsAdded", @@ -10196,25 +10291,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepository", "PersonalAccessTokenRequestPropPermissionsResultPropOther", ), - ".group_0477": ( + ".group_0484": ( "WebhooksProjectCard", "WebhooksProjectCardPropCreator", ), - ".group_0478": ( + ".group_0485": ( "WebhooksProject", "WebhooksProjectPropCreator", ), - ".group_0479": ("WebhooksProjectColumn",), - ".group_0480": ("ProjectsV2",), - ".group_0481": ( + ".group_0486": ("WebhooksProjectColumn",), + ".group_0487": ("ProjectsV2",), + ".group_0488": ( "WebhooksProjectChanges", "WebhooksProjectChangesPropArchivedAt", ), - ".group_0482": ("ProjectsV2Item",), - ".group_0483": ("ProjectsV2StatusUpdate",), - ".group_0484": ("PullRequestWebhook",), - ".group_0485": ("PullRequestWebhookAllof1",), - ".group_0486": ( + ".group_0489": ("ProjectsV2Item",), + ".group_0490": ("ProjectsV2StatusUpdate",), + ".group_0491": ("PullRequestWebhook",), + ".group_0492": ("PullRequestWebhookAllof1",), + ".group_0493": ( "WebhooksPullRequest5", "WebhooksPullRequest5PropAssignee", "WebhooksPullRequest5PropAssigneesItems", @@ -10252,7 +10347,7 @@ "WebhooksPullRequest5PropRequestedTeamsItems", "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", ), - ".group_0487": ( + ".group_0494": ( "WebhooksReviewComment", "WebhooksReviewCommentPropReactions", "WebhooksReviewCommentPropUser", @@ -10261,33 +10356,33 @@ "WebhooksReviewCommentPropLinksPropPullRequest", "WebhooksReviewCommentPropLinksPropSelf", ), - ".group_0488": ( + ".group_0495": ( "WebhooksReview", "WebhooksReviewPropUser", "WebhooksReviewPropLinks", "WebhooksReviewPropLinksPropHtml", "WebhooksReviewPropLinksPropPullRequest", ), - ".group_0489": ( + ".group_0496": ( "WebhooksRelease", "WebhooksReleasePropAuthor", "WebhooksReleasePropReactions", "WebhooksReleasePropAssetsItems", "WebhooksReleasePropAssetsItemsPropUploader", ), - ".group_0490": ( + ".group_0497": ( "WebhooksRelease1", "WebhooksRelease1PropAssetsItems", "WebhooksRelease1PropAssetsItemsPropUploader", "WebhooksRelease1PropAuthor", "WebhooksRelease1PropReactions", ), - ".group_0491": ( + ".group_0498": ( "WebhooksAlert", "WebhooksAlertPropDismisser", ), - ".group_0492": ("SecretScanningAlertWebhook",), - ".group_0493": ( + ".group_0499": ("SecretScanningAlertWebhook",), + ".group_0500": ( "WebhooksSecurityAdvisory", "WebhooksSecurityAdvisoryPropCvss", "WebhooksSecurityAdvisoryPropCwesItems", @@ -10297,27 +10392,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0494": ( + ".group_0501": ( "WebhooksSponsorship", "WebhooksSponsorshipPropMaintainer", "WebhooksSponsorshipPropSponsor", "WebhooksSponsorshipPropSponsorable", "WebhooksSponsorshipPropTier", ), - ".group_0495": ( + ".group_0502": ( "WebhooksChanges8", "WebhooksChanges8PropTier", "WebhooksChanges8PropTierPropFrom", ), - ".group_0496": ( + ".group_0503": ( "WebhooksTeam1", "WebhooksTeam1PropParent", ), - ".group_0497": ("WebhookBranchProtectionConfigurationDisabled",), - ".group_0498": ("WebhookBranchProtectionConfigurationEnabled",), - ".group_0499": ("WebhookBranchProtectionRuleCreated",), - ".group_0500": ("WebhookBranchProtectionRuleDeleted",), - ".group_0501": ( + ".group_0504": ("WebhookBranchProtectionConfigurationDisabled",), + ".group_0505": ("WebhookBranchProtectionConfigurationEnabled",), + ".group_0506": ("WebhookBranchProtectionRuleCreated",), + ".group_0507": ("WebhookBranchProtectionRuleDeleted",), + ".group_0508": ( "WebhookBranchProtectionRuleEdited", "WebhookBranchProtectionRuleEditedPropChanges", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", @@ -10332,23 +10427,23 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", ), - ".group_0502": ("WebhookExemptionRequestCancelled",), - ".group_0503": ("WebhookExemptionRequestCompleted",), - ".group_0504": ("WebhookExemptionRequestCreated",), - ".group_0505": ("WebhookExemptionRequestResponseDismissed",), - ".group_0506": ("WebhookExemptionRequestResponseSubmitted",), - ".group_0507": ("WebhookCheckRunCompleted",), - ".group_0508": ("WebhookCheckRunCompletedFormEncoded",), - ".group_0509": ("WebhookCheckRunCreated",), - ".group_0510": ("WebhookCheckRunCreatedFormEncoded",), - ".group_0511": ( + ".group_0509": ("WebhookExemptionRequestCancelled",), + ".group_0510": ("WebhookExemptionRequestCompleted",), + ".group_0511": ("WebhookExemptionRequestCreated",), + ".group_0512": ("WebhookExemptionRequestResponseDismissed",), + ".group_0513": ("WebhookExemptionRequestResponseSubmitted",), + ".group_0514": ("WebhookCheckRunCompleted",), + ".group_0515": ("WebhookCheckRunCompletedFormEncoded",), + ".group_0516": ("WebhookCheckRunCreated",), + ".group_0517": ("WebhookCheckRunCreatedFormEncoded",), + ".group_0518": ( "WebhookCheckRunRequestedAction", "WebhookCheckRunRequestedActionPropRequestedAction", ), - ".group_0512": ("WebhookCheckRunRequestedActionFormEncoded",), - ".group_0513": ("WebhookCheckRunRerequested",), - ".group_0514": ("WebhookCheckRunRerequestedFormEncoded",), - ".group_0515": ( + ".group_0519": ("WebhookCheckRunRequestedActionFormEncoded",), + ".group_0520": ("WebhookCheckRunRerequested",), + ".group_0521": ("WebhookCheckRunRerequestedFormEncoded",), + ".group_0522": ( "WebhookCheckSuiteCompleted", "WebhookCheckSuiteCompletedPropCheckSuite", "WebhookCheckSuiteCompletedPropCheckSuitePropApp", @@ -10363,7 +10458,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0516": ( + ".group_0523": ( "WebhookCheckSuiteRequested", "WebhookCheckSuiteRequestedPropCheckSuite", "WebhookCheckSuiteRequestedPropCheckSuitePropApp", @@ -10378,7 +10473,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0517": ( + ".group_0524": ( "WebhookCheckSuiteRerequested", "WebhookCheckSuiteRerequestedPropCheckSuite", "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", @@ -10393,7 +10488,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0518": ( + ".group_0525": ( "WebhookCodeScanningAlertAppearedInBranch", "WebhookCodeScanningAlertAppearedInBranchPropAlert", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", @@ -10403,7 +10498,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ), - ".group_0519": ( + ".group_0526": ( "WebhookCodeScanningAlertClosedByUser", "WebhookCodeScanningAlertClosedByUserPropAlert", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", @@ -10413,7 +10508,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ), - ".group_0520": ( + ".group_0527": ( "WebhookCodeScanningAlertCreated", "WebhookCodeScanningAlertCreatedPropAlert", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", @@ -10422,7 +10517,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRule", "WebhookCodeScanningAlertCreatedPropAlertPropTool", ), - ".group_0521": ( + ".group_0528": ( "WebhookCodeScanningAlertFixed", "WebhookCodeScanningAlertFixedPropAlert", "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", @@ -10432,7 +10527,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRule", "WebhookCodeScanningAlertFixedPropAlertPropTool", ), - ".group_0522": ( + ".group_0529": ( "WebhookCodeScanningAlertReopened", "WebhookCodeScanningAlertReopenedPropAlert", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", @@ -10442,7 +10537,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRule", "WebhookCodeScanningAlertReopenedPropAlertPropTool", ), - ".group_0523": ( + ".group_0530": ( "WebhookCodeScanningAlertReopenedByUser", "WebhookCodeScanningAlertReopenedByUserPropAlert", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", @@ -10451,31 +10546,31 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", ), - ".group_0524": ( + ".group_0531": ( "WebhookCommitCommentCreated", "WebhookCommitCommentCreatedPropComment", "WebhookCommitCommentCreatedPropCommentPropReactions", "WebhookCommitCommentCreatedPropCommentPropUser", ), - ".group_0525": ("WebhookCreate",), - ".group_0526": ("WebhookCustomPropertyCreated",), - ".group_0527": ( + ".group_0532": ("WebhookCreate",), + ".group_0533": ("WebhookCustomPropertyCreated",), + ".group_0534": ( "WebhookCustomPropertyDeleted", "WebhookCustomPropertyDeletedPropDefinition", ), - ".group_0528": ("WebhookCustomPropertyUpdated",), - ".group_0529": ("WebhookCustomPropertyValuesUpdated",), - ".group_0530": ("WebhookDelete",), - ".group_0531": ("WebhookDependabotAlertAutoDismissed",), - ".group_0532": ("WebhookDependabotAlertAutoReopened",), - ".group_0533": ("WebhookDependabotAlertCreated",), - ".group_0534": ("WebhookDependabotAlertDismissed",), - ".group_0535": ("WebhookDependabotAlertFixed",), - ".group_0536": ("WebhookDependabotAlertReintroduced",), - ".group_0537": ("WebhookDependabotAlertReopened",), - ".group_0538": ("WebhookDeployKeyCreated",), - ".group_0539": ("WebhookDeployKeyDeleted",), - ".group_0540": ( + ".group_0535": ("WebhookCustomPropertyUpdated",), + ".group_0536": ("WebhookCustomPropertyValuesUpdated",), + ".group_0537": ("WebhookDelete",), + ".group_0538": ("WebhookDependabotAlertAutoDismissed",), + ".group_0539": ("WebhookDependabotAlertAutoReopened",), + ".group_0540": ("WebhookDependabotAlertCreated",), + ".group_0541": ("WebhookDependabotAlertDismissed",), + ".group_0542": ("WebhookDependabotAlertFixed",), + ".group_0543": ("WebhookDependabotAlertReintroduced",), + ".group_0544": ("WebhookDependabotAlertReopened",), + ".group_0545": ("WebhookDeployKeyCreated",), + ".group_0546": ("WebhookDeployKeyDeleted",), + ".group_0547": ( "WebhookDeploymentCreated", "WebhookDeploymentCreatedPropDeployment", "WebhookDeploymentCreatedPropDeploymentPropCreator", @@ -10497,8 +10592,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0541": ("WebhookDeploymentProtectionRuleRequested",), - ".group_0542": ( + ".group_0548": ("WebhookDeploymentProtectionRuleRequested",), + ".group_0549": ( "WebhookDeploymentReviewApproved", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", "WebhookDeploymentReviewApprovedPropWorkflowRun", @@ -10516,7 +10611,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0543": ( + ".group_0550": ( "WebhookDeploymentReviewRejected", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", "WebhookDeploymentReviewRejectedPropWorkflowRun", @@ -10534,7 +10629,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0544": ( + ".group_0551": ( "WebhookDeploymentReviewRequested", "WebhookDeploymentReviewRequestedPropWorkflowJobRun", "WebhookDeploymentReviewRequestedPropReviewersItems", @@ -10554,7 +10649,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0545": ( + ".group_0552": ( "WebhookDeploymentStatusCreated", "WebhookDeploymentStatusCreatedPropCheckRun", "WebhookDeploymentStatusCreatedPropDeployment", @@ -10582,119 +10677,119 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0546": ("WebhookDiscussionAnswered",), - ".group_0547": ( + ".group_0553": ("WebhookDiscussionAnswered",), + ".group_0554": ( "WebhookDiscussionCategoryChanged", "WebhookDiscussionCategoryChangedPropChanges", "WebhookDiscussionCategoryChangedPropChangesPropCategory", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ), - ".group_0548": ("WebhookDiscussionClosed",), - ".group_0549": ("WebhookDiscussionCommentCreated",), - ".group_0550": ("WebhookDiscussionCommentDeleted",), - ".group_0551": ( + ".group_0555": ("WebhookDiscussionClosed",), + ".group_0556": ("WebhookDiscussionCommentCreated",), + ".group_0557": ("WebhookDiscussionCommentDeleted",), + ".group_0558": ( "WebhookDiscussionCommentEdited", "WebhookDiscussionCommentEditedPropChanges", "WebhookDiscussionCommentEditedPropChangesPropBody", ), - ".group_0552": ("WebhookDiscussionCreated",), - ".group_0553": ("WebhookDiscussionDeleted",), - ".group_0554": ( + ".group_0559": ("WebhookDiscussionCreated",), + ".group_0560": ("WebhookDiscussionDeleted",), + ".group_0561": ( "WebhookDiscussionEdited", "WebhookDiscussionEditedPropChanges", "WebhookDiscussionEditedPropChangesPropBody", "WebhookDiscussionEditedPropChangesPropTitle", ), - ".group_0555": ("WebhookDiscussionLabeled",), - ".group_0556": ("WebhookDiscussionLocked",), - ".group_0557": ("WebhookDiscussionPinned",), - ".group_0558": ("WebhookDiscussionReopened",), - ".group_0559": ("WebhookDiscussionTransferred",), - ".group_0560": ("WebhookDiscussionTransferredPropChanges",), - ".group_0561": ("WebhookDiscussionUnanswered",), - ".group_0562": ("WebhookDiscussionUnlabeled",), - ".group_0563": ("WebhookDiscussionUnlocked",), - ".group_0564": ("WebhookDiscussionUnpinned",), - ".group_0565": ("WebhookFork",), - ".group_0566": ( + ".group_0562": ("WebhookDiscussionLabeled",), + ".group_0563": ("WebhookDiscussionLocked",), + ".group_0564": ("WebhookDiscussionPinned",), + ".group_0565": ("WebhookDiscussionReopened",), + ".group_0566": ("WebhookDiscussionTransferred",), + ".group_0567": ("WebhookDiscussionTransferredPropChanges",), + ".group_0568": ("WebhookDiscussionUnanswered",), + ".group_0569": ("WebhookDiscussionUnlabeled",), + ".group_0570": ("WebhookDiscussionUnlocked",), + ".group_0571": ("WebhookDiscussionUnpinned",), + ".group_0572": ("WebhookFork",), + ".group_0573": ( "WebhookForkPropForkee", "WebhookForkPropForkeeMergedLicense", "WebhookForkPropForkeeMergedOwner", ), - ".group_0567": ( + ".group_0574": ( "WebhookForkPropForkeeAllof0", "WebhookForkPropForkeeAllof0PropLicense", "WebhookForkPropForkeeAllof0PropOwner", ), - ".group_0568": ("WebhookForkPropForkeeAllof0PropPermissions",), - ".group_0569": ( + ".group_0575": ("WebhookForkPropForkeeAllof0PropPermissions",), + ".group_0576": ( "WebhookForkPropForkeeAllof1", "WebhookForkPropForkeeAllof1PropLicense", "WebhookForkPropForkeeAllof1PropOwner", ), - ".group_0570": ("WebhookGithubAppAuthorizationRevoked",), - ".group_0571": ( + ".group_0577": ("WebhookGithubAppAuthorizationRevoked",), + ".group_0578": ( "WebhookGollum", "WebhookGollumPropPagesItems", ), - ".group_0572": ("WebhookInstallationCreated",), - ".group_0573": ("WebhookInstallationDeleted",), - ".group_0574": ("WebhookInstallationNewPermissionsAccepted",), - ".group_0575": ( + ".group_0579": ("WebhookInstallationCreated",), + ".group_0580": ("WebhookInstallationDeleted",), + ".group_0581": ("WebhookInstallationNewPermissionsAccepted",), + ".group_0582": ( "WebhookInstallationRepositoriesAdded", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", ), - ".group_0576": ( + ".group_0583": ( "WebhookInstallationRepositoriesRemoved", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ), - ".group_0577": ("WebhookInstallationSuspend",), - ".group_0578": ( + ".group_0584": ("WebhookInstallationSuspend",), + ".group_0585": ( "WebhookInstallationTargetRenamed", "WebhookInstallationTargetRenamedPropAccount", "WebhookInstallationTargetRenamedPropChanges", "WebhookInstallationTargetRenamedPropChangesPropLogin", "WebhookInstallationTargetRenamedPropChangesPropSlug", ), - ".group_0579": ("WebhookInstallationUnsuspend",), - ".group_0580": ("WebhookIssueCommentCreated",), - ".group_0581": ( + ".group_0586": ("WebhookInstallationUnsuspend",), + ".group_0587": ("WebhookIssueCommentCreated",), + ".group_0588": ( "WebhookIssueCommentCreatedPropComment", "WebhookIssueCommentCreatedPropCommentPropReactions", "WebhookIssueCommentCreatedPropCommentPropUser", ), - ".group_0582": ( + ".group_0589": ( "WebhookIssueCommentCreatedPropIssue", "WebhookIssueCommentCreatedPropIssueMergedAssignees", "WebhookIssueCommentCreatedPropIssueMergedReactions", "WebhookIssueCommentCreatedPropIssueMergedUser", ), - ".group_0583": ( + ".group_0590": ( "WebhookIssueCommentCreatedPropIssueAllof0", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ), - ".group_0584": ( + ".group_0591": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", ), - ".group_0585": ( + ".group_0592": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0586": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), - ".group_0587": ( + ".group_0593": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), + ".group_0594": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0588": ( + ".group_0595": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0589": ( + ".group_0596": ( "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0590": ( + ".group_0597": ( "WebhookIssueCommentCreatedPropIssueAllof1", "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", @@ -10704,43 +10799,43 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ), - ".group_0591": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), - ".group_0592": ( + ".group_0598": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), + ".group_0599": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp", ), - ".group_0593": ("WebhookIssueCommentDeleted",), - ".group_0594": ( + ".group_0600": ("WebhookIssueCommentDeleted",), + ".group_0601": ( "WebhookIssueCommentDeletedPropIssue", "WebhookIssueCommentDeletedPropIssueMergedAssignees", "WebhookIssueCommentDeletedPropIssueMergedReactions", "WebhookIssueCommentDeletedPropIssueMergedUser", ), - ".group_0595": ( + ".group_0602": ( "WebhookIssueCommentDeletedPropIssueAllof0", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ), - ".group_0596": ( + ".group_0603": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", ), - ".group_0597": ( + ".group_0604": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0598": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), - ".group_0599": ( + ".group_0605": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), + ".group_0606": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0600": ( + ".group_0607": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0601": ( + ".group_0608": ( "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0602": ( + ".group_0609": ( "WebhookIssueCommentDeletedPropIssueAllof1", "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", @@ -10750,43 +10845,43 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ), - ".group_0603": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), - ".group_0604": ( + ".group_0610": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), + ".group_0611": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp", ), - ".group_0605": ("WebhookIssueCommentEdited",), - ".group_0606": ( + ".group_0612": ("WebhookIssueCommentEdited",), + ".group_0613": ( "WebhookIssueCommentEditedPropIssue", "WebhookIssueCommentEditedPropIssueMergedAssignees", "WebhookIssueCommentEditedPropIssueMergedReactions", "WebhookIssueCommentEditedPropIssueMergedUser", ), - ".group_0607": ( + ".group_0614": ( "WebhookIssueCommentEditedPropIssueAllof0", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentEditedPropIssueAllof0PropReactions", "WebhookIssueCommentEditedPropIssueAllof0PropUser", ), - ".group_0608": ( + ".group_0615": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", ), - ".group_0609": ( + ".group_0616": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0610": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), - ".group_0611": ( + ".group_0617": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), + ".group_0618": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0612": ( + ".group_0619": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0613": ( + ".group_0620": ( "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0614": ( + ".group_0621": ( "WebhookIssueCommentEditedPropIssueAllof1", "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", @@ -10796,13 +10891,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactions", "WebhookIssueCommentEditedPropIssueAllof1PropUser", ), - ".group_0615": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), - ".group_0616": ( + ".group_0622": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), + ".group_0623": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp", ), - ".group_0617": ("WebhookIssuesAssigned",), - ".group_0618": ("WebhookIssuesClosed",), - ".group_0619": ( + ".group_0624": ("WebhookIssuesAssigned",), + ".group_0625": ("WebhookIssuesClosed",), + ".group_0626": ( "WebhookIssuesClosedPropIssue", "WebhookIssuesClosedPropIssueMergedAssignee", "WebhookIssuesClosedPropIssueMergedAssignees", @@ -10810,7 +10905,7 @@ "WebhookIssuesClosedPropIssueMergedReactions", "WebhookIssuesClosedPropIssueMergedUser", ), - ".group_0620": ( + ".group_0627": ( "WebhookIssuesClosedPropIssueAllof0", "WebhookIssuesClosedPropIssueAllof0PropAssignee", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", @@ -10818,18 +10913,18 @@ "WebhookIssuesClosedPropIssueAllof0PropReactions", "WebhookIssuesClosedPropIssueAllof0PropUser", ), - ".group_0621": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), - ".group_0622": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), - ".group_0623": ( + ".group_0628": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), + ".group_0629": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), + ".group_0630": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0624": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), - ".group_0625": ( + ".group_0631": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), + ".group_0632": ( "WebhookIssuesClosedPropIssueAllof0PropPullRequest", "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0626": ( + ".group_0633": ( "WebhookIssuesClosedPropIssueAllof1", "WebhookIssuesClosedPropIssueAllof1PropAssignee", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", @@ -10839,9 +10934,9 @@ "WebhookIssuesClosedPropIssueAllof1PropReactions", "WebhookIssuesClosedPropIssueAllof1PropUser", ), - ".group_0627": ("WebhookIssuesClosedPropIssueMergedMilestone",), - ".group_0628": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), - ".group_0629": ( + ".group_0634": ("WebhookIssuesClosedPropIssueMergedMilestone",), + ".group_0635": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), + ".group_0636": ( "WebhookIssuesDeleted", "WebhookIssuesDeletedPropIssue", "WebhookIssuesDeletedPropIssuePropAssignee", @@ -10857,7 +10952,7 @@ "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", "WebhookIssuesDeletedPropIssuePropUser", ), - ".group_0630": ( + ".group_0637": ( "WebhookIssuesDemilestoned", "WebhookIssuesDemilestonedPropIssue", "WebhookIssuesDemilestonedPropIssuePropAssignee", @@ -10873,7 +10968,7 @@ "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesDemilestonedPropIssuePropUser", ), - ".group_0631": ( + ".group_0638": ( "WebhookIssuesEdited", "WebhookIssuesEditedPropChanges", "WebhookIssuesEditedPropChangesPropBody", @@ -10892,7 +10987,7 @@ "WebhookIssuesEditedPropIssuePropSubIssuesSummary", "WebhookIssuesEditedPropIssuePropUser", ), - ".group_0632": ( + ".group_0639": ( "WebhookIssuesLabeled", "WebhookIssuesLabeledPropIssue", "WebhookIssuesLabeledPropIssuePropAssignee", @@ -10908,7 +11003,7 @@ "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", "WebhookIssuesLabeledPropIssuePropUser", ), - ".group_0633": ( + ".group_0640": ( "WebhookIssuesLocked", "WebhookIssuesLockedPropIssue", "WebhookIssuesLockedPropIssuePropAssignee", @@ -10924,7 +11019,7 @@ "WebhookIssuesLockedPropIssuePropSubIssuesSummary", "WebhookIssuesLockedPropIssuePropUser", ), - ".group_0634": ( + ".group_0641": ( "WebhookIssuesMilestoned", "WebhookIssuesMilestonedPropIssue", "WebhookIssuesMilestonedPropIssuePropAssignee", @@ -10940,7 +11035,7 @@ "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesMilestonedPropIssuePropUser", ), - ".group_0635": ( + ".group_0642": ( "WebhookIssuesOpened", "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", @@ -10975,8 +11070,8 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ), - ".group_0636": ("WebhookIssuesPinned",), - ".group_0637": ( + ".group_0643": ("WebhookIssuesPinned",), + ".group_0644": ( "WebhookIssuesReopened", "WebhookIssuesReopenedPropIssue", "WebhookIssuesReopenedPropIssuePropAssignee", @@ -10992,7 +11087,7 @@ "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", "WebhookIssuesReopenedPropIssuePropUser", ), - ".group_0638": ( + ".group_0645": ( "WebhookIssuesTransferred", "WebhookIssuesTransferredPropChanges", "WebhookIssuesTransferredPropChangesPropNewIssue", @@ -11014,9 +11109,9 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ), - ".group_0639": ("WebhookIssuesUnassigned",), - ".group_0640": ("WebhookIssuesUnlabeled",), - ".group_0641": ( + ".group_0646": ("WebhookIssuesUnassigned",), + ".group_0647": ("WebhookIssuesUnlabeled",), + ".group_0648": ( "WebhookIssuesUnlocked", "WebhookIssuesUnlockedPropIssue", "WebhookIssuesUnlockedPropIssuePropAssignee", @@ -11032,103 +11127,103 @@ "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", "WebhookIssuesUnlockedPropIssuePropUser", ), - ".group_0642": ("WebhookIssuesUnpinned",), - ".group_0643": ("WebhookLabelCreated",), - ".group_0644": ("WebhookLabelDeleted",), - ".group_0645": ( + ".group_0649": ("WebhookIssuesUnpinned",), + ".group_0650": ("WebhookLabelCreated",), + ".group_0651": ("WebhookLabelDeleted",), + ".group_0652": ( "WebhookLabelEdited", "WebhookLabelEditedPropChanges", "WebhookLabelEditedPropChangesPropColor", "WebhookLabelEditedPropChangesPropDescription", "WebhookLabelEditedPropChangesPropName", ), - ".group_0646": ("WebhookMarketplacePurchaseCancelled",), - ".group_0647": ( + ".group_0653": ("WebhookMarketplacePurchaseCancelled",), + ".group_0654": ( "WebhookMarketplacePurchaseChanged", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ), - ".group_0648": ( + ".group_0655": ( "WebhookMarketplacePurchasePendingChange", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ), - ".group_0649": ( + ".group_0656": ( "WebhookMarketplacePurchasePendingChangeCancelled", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ), - ".group_0650": ("WebhookMarketplacePurchasePurchased",), - ".group_0651": ( + ".group_0657": ("WebhookMarketplacePurchasePurchased",), + ".group_0658": ( "WebhookMemberAdded", "WebhookMemberAddedPropChanges", "WebhookMemberAddedPropChangesPropPermission", "WebhookMemberAddedPropChangesPropRoleName", ), - ".group_0652": ( + ".group_0659": ( "WebhookMemberEdited", "WebhookMemberEditedPropChanges", "WebhookMemberEditedPropChangesPropOldPermission", "WebhookMemberEditedPropChangesPropPermission", ), - ".group_0653": ("WebhookMemberRemoved",), - ".group_0654": ( + ".group_0660": ("WebhookMemberRemoved",), + ".group_0661": ( "WebhookMembershipAdded", "WebhookMembershipAddedPropSender", ), - ".group_0655": ( + ".group_0662": ( "WebhookMembershipRemoved", "WebhookMembershipRemovedPropSender", ), - ".group_0656": ("WebhookMergeGroupChecksRequested",), - ".group_0657": ("WebhookMergeGroupDestroyed",), - ".group_0658": ( + ".group_0663": ("WebhookMergeGroupChecksRequested",), + ".group_0664": ("WebhookMergeGroupDestroyed",), + ".group_0665": ( "WebhookMetaDeleted", "WebhookMetaDeletedPropHook", "WebhookMetaDeletedPropHookPropConfig", ), - ".group_0659": ("WebhookMilestoneClosed",), - ".group_0660": ("WebhookMilestoneCreated",), - ".group_0661": ("WebhookMilestoneDeleted",), - ".group_0662": ( + ".group_0666": ("WebhookMilestoneClosed",), + ".group_0667": ("WebhookMilestoneCreated",), + ".group_0668": ("WebhookMilestoneDeleted",), + ".group_0669": ( "WebhookMilestoneEdited", "WebhookMilestoneEditedPropChanges", "WebhookMilestoneEditedPropChangesPropDescription", "WebhookMilestoneEditedPropChangesPropDueOn", "WebhookMilestoneEditedPropChangesPropTitle", ), - ".group_0663": ("WebhookMilestoneOpened",), - ".group_0664": ("WebhookOrgBlockBlocked",), - ".group_0665": ("WebhookOrgBlockUnblocked",), - ".group_0666": ("WebhookOrganizationDeleted",), - ".group_0667": ("WebhookOrganizationMemberAdded",), - ".group_0668": ( + ".group_0670": ("WebhookMilestoneOpened",), + ".group_0671": ("WebhookOrgBlockBlocked",), + ".group_0672": ("WebhookOrgBlockUnblocked",), + ".group_0673": ("WebhookOrganizationDeleted",), + ".group_0674": ("WebhookOrganizationMemberAdded",), + ".group_0675": ( "WebhookOrganizationMemberInvited", "WebhookOrganizationMemberInvitedPropInvitation", "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ), - ".group_0669": ("WebhookOrganizationMemberRemoved",), - ".group_0670": ( + ".group_0676": ("WebhookOrganizationMemberRemoved",), + ".group_0677": ( "WebhookOrganizationRenamed", "WebhookOrganizationRenamedPropChanges", "WebhookOrganizationRenamedPropChangesPropLogin", ), - ".group_0671": ( + ".group_0678": ( "WebhookRubygemsMetadata", "WebhookRubygemsMetadataPropVersionInfo", "WebhookRubygemsMetadataPropMetadata", "WebhookRubygemsMetadataPropDependenciesItems", ), - ".group_0672": ("WebhookPackagePublished",), - ".group_0673": ( + ".group_0679": ("WebhookPackagePublished",), + ".group_0680": ( "WebhookPackagePublishedPropPackage", "WebhookPackagePublishedPropPackagePropOwner", "WebhookPackagePublishedPropPackagePropRegistry", ), - ".group_0674": ( + ".group_0681": ( "WebhookPackagePublishedPropPackagePropPackageVersion", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", @@ -11160,13 +11255,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0675": ("WebhookPackageUpdated",), - ".group_0676": ( + ".group_0682": ("WebhookPackageUpdated",), + ".group_0683": ( "WebhookPackageUpdatedPropPackage", "WebhookPackageUpdatedPropPackagePropOwner", "WebhookPackageUpdatedPropPackagePropRegistry", ), - ".group_0677": ( + ".group_0684": ( "WebhookPackageUpdatedPropPackagePropPackageVersion", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", @@ -11175,75 +11270,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0678": ( + ".group_0685": ( "WebhookPageBuild", "WebhookPageBuildPropBuild", "WebhookPageBuildPropBuildPropError", "WebhookPageBuildPropBuildPropPusher", ), - ".group_0679": ("WebhookPersonalAccessTokenRequestApproved",), - ".group_0680": ("WebhookPersonalAccessTokenRequestCancelled",), - ".group_0681": ("WebhookPersonalAccessTokenRequestCreated",), - ".group_0682": ("WebhookPersonalAccessTokenRequestDenied",), - ".group_0683": ("WebhookPing",), - ".group_0684": ( + ".group_0686": ("WebhookPersonalAccessTokenRequestApproved",), + ".group_0687": ("WebhookPersonalAccessTokenRequestCancelled",), + ".group_0688": ("WebhookPersonalAccessTokenRequestCreated",), + ".group_0689": ("WebhookPersonalAccessTokenRequestDenied",), + ".group_0690": ("WebhookPing",), + ".group_0691": ( "WebhookPingPropHook", "WebhookPingPropHookPropConfig", ), - ".group_0685": ("WebhookPingFormEncoded",), - ".group_0686": ( + ".group_0692": ("WebhookPingFormEncoded",), + ".group_0693": ( "WebhookProjectCardConverted", "WebhookProjectCardConvertedPropChanges", "WebhookProjectCardConvertedPropChangesPropNote", ), - ".group_0687": ("WebhookProjectCardCreated",), - ".group_0688": ( + ".group_0694": ("WebhookProjectCardCreated",), + ".group_0695": ( "WebhookProjectCardDeleted", "WebhookProjectCardDeletedPropProjectCard", "WebhookProjectCardDeletedPropProjectCardPropCreator", ), - ".group_0689": ( + ".group_0696": ( "WebhookProjectCardEdited", "WebhookProjectCardEditedPropChanges", "WebhookProjectCardEditedPropChangesPropNote", ), - ".group_0690": ( + ".group_0697": ( "WebhookProjectCardMoved", "WebhookProjectCardMovedPropChanges", "WebhookProjectCardMovedPropChangesPropColumnId", "WebhookProjectCardMovedPropProjectCard", "WebhookProjectCardMovedPropProjectCardMergedCreator", ), - ".group_0691": ( + ".group_0698": ( "WebhookProjectCardMovedPropProjectCardAllof0", "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ), - ".group_0692": ( + ".group_0699": ( "WebhookProjectCardMovedPropProjectCardAllof1", "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ), - ".group_0693": ("WebhookProjectClosed",), - ".group_0694": ("WebhookProjectColumnCreated",), - ".group_0695": ("WebhookProjectColumnDeleted",), - ".group_0696": ( + ".group_0700": ("WebhookProjectClosed",), + ".group_0701": ("WebhookProjectColumnCreated",), + ".group_0702": ("WebhookProjectColumnDeleted",), + ".group_0703": ( "WebhookProjectColumnEdited", "WebhookProjectColumnEditedPropChanges", "WebhookProjectColumnEditedPropChangesPropName", ), - ".group_0697": ("WebhookProjectColumnMoved",), - ".group_0698": ("WebhookProjectCreated",), - ".group_0699": ("WebhookProjectDeleted",), - ".group_0700": ( + ".group_0704": ("WebhookProjectColumnMoved",), + ".group_0705": ("WebhookProjectCreated",), + ".group_0706": ("WebhookProjectDeleted",), + ".group_0707": ( "WebhookProjectEdited", "WebhookProjectEditedPropChanges", "WebhookProjectEditedPropChangesPropBody", "WebhookProjectEditedPropChangesPropName", ), - ".group_0701": ("WebhookProjectReopened",), - ".group_0702": ("WebhookProjectsV2ProjectClosed",), - ".group_0703": ("WebhookProjectsV2ProjectCreated",), - ".group_0704": ("WebhookProjectsV2ProjectDeleted",), - ".group_0705": ( + ".group_0708": ("WebhookProjectReopened",), + ".group_0709": ("WebhookProjectsV2ProjectClosed",), + ".group_0710": ("WebhookProjectsV2ProjectCreated",), + ".group_0711": ("WebhookProjectsV2ProjectDeleted",), + ".group_0712": ( "WebhookProjectsV2ProjectEdited", "WebhookProjectsV2ProjectEditedPropChanges", "WebhookProjectsV2ProjectEditedPropChangesPropDescription", @@ -11251,15 +11346,15 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ), - ".group_0706": ("WebhookProjectsV2ItemArchived",), - ".group_0707": ( + ".group_0713": ("WebhookProjectsV2ItemArchived",), + ".group_0714": ( "WebhookProjectsV2ItemConverted", "WebhookProjectsV2ItemConvertedPropChanges", "WebhookProjectsV2ItemConvertedPropChangesPropContentType", ), - ".group_0708": ("WebhookProjectsV2ItemCreated",), - ".group_0709": ("WebhookProjectsV2ItemDeleted",), - ".group_0710": ( + ".group_0715": ("WebhookProjectsV2ItemCreated",), + ".group_0716": ("WebhookProjectsV2ItemDeleted",), + ".group_0717": ( "WebhookProjectsV2ItemEdited", "WebhookProjectsV2ItemEditedPropChangesOneof0", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", @@ -11268,16 +11363,16 @@ "WebhookProjectsV2ItemEditedPropChangesOneof1", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ), - ".group_0711": ( + ".group_0718": ( "WebhookProjectsV2ItemReordered", "WebhookProjectsV2ItemReorderedPropChanges", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ), - ".group_0712": ("WebhookProjectsV2ItemRestored",), - ".group_0713": ("WebhookProjectsV2ProjectReopened",), - ".group_0714": ("WebhookProjectsV2StatusUpdateCreated",), - ".group_0715": ("WebhookProjectsV2StatusUpdateDeleted",), - ".group_0716": ( + ".group_0719": ("WebhookProjectsV2ItemRestored",), + ".group_0720": ("WebhookProjectsV2ProjectReopened",), + ".group_0721": ("WebhookProjectsV2StatusUpdateCreated",), + ".group_0722": ("WebhookProjectsV2StatusUpdateDeleted",), + ".group_0723": ( "WebhookProjectsV2StatusUpdateEdited", "WebhookProjectsV2StatusUpdateEditedPropChanges", "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", @@ -11285,8 +11380,8 @@ "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", ), - ".group_0717": ("WebhookPublic",), - ".group_0718": ( + ".group_0724": ("WebhookPublic",), + ".group_0725": ( "WebhookPullRequestAssigned", "WebhookPullRequestAssignedPropPullRequest", "WebhookPullRequestAssignedPropPullRequestPropAssignee", @@ -11325,7 +11420,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0719": ( + ".group_0726": ( "WebhookPullRequestAutoMergeDisabled", "WebhookPullRequestAutoMergeDisabledPropPullRequest", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", @@ -11364,7 +11459,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0720": ( + ".group_0727": ( "WebhookPullRequestAutoMergeEnabled", "WebhookPullRequestAutoMergeEnabledPropPullRequest", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", @@ -11403,10 +11498,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0721": ("WebhookPullRequestClosed",), - ".group_0722": ("WebhookPullRequestConvertedToDraft",), - ".group_0723": ("WebhookPullRequestDemilestoned",), - ".group_0724": ( + ".group_0728": ("WebhookPullRequestClosed",), + ".group_0729": ("WebhookPullRequestConvertedToDraft",), + ".group_0730": ("WebhookPullRequestDemilestoned",), + ".group_0731": ( "WebhookPullRequestDequeued", "WebhookPullRequestDequeuedPropPullRequest", "WebhookPullRequestDequeuedPropPullRequestPropAssignee", @@ -11445,7 +11540,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0725": ( + ".group_0732": ( "WebhookPullRequestEdited", "WebhookPullRequestEditedPropChanges", "WebhookPullRequestEditedPropChangesPropBody", @@ -11454,7 +11549,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRef", "WebhookPullRequestEditedPropChangesPropBasePropSha", ), - ".group_0726": ( + ".group_0733": ( "WebhookPullRequestEnqueued", "WebhookPullRequestEnqueuedPropPullRequest", "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", @@ -11493,7 +11588,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0727": ( + ".group_0734": ( "WebhookPullRequestLabeled", "WebhookPullRequestLabeledPropPullRequest", "WebhookPullRequestLabeledPropPullRequestPropAssignee", @@ -11532,7 +11627,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0728": ( + ".group_0735": ( "WebhookPullRequestLocked", "WebhookPullRequestLockedPropPullRequest", "WebhookPullRequestLockedPropPullRequestPropAssignee", @@ -11571,11 +11666,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0729": ("WebhookPullRequestMilestoned",), - ".group_0730": ("WebhookPullRequestOpened",), - ".group_0731": ("WebhookPullRequestReadyForReview",), - ".group_0732": ("WebhookPullRequestReopened",), - ".group_0733": ( + ".group_0736": ("WebhookPullRequestMilestoned",), + ".group_0737": ("WebhookPullRequestOpened",), + ".group_0738": ("WebhookPullRequestReadyForReview",), + ".group_0739": ("WebhookPullRequestReopened",), + ".group_0740": ( "WebhookPullRequestReviewCommentCreated", "WebhookPullRequestReviewCommentCreatedPropComment", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", @@ -11620,7 +11715,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0734": ( + ".group_0741": ( "WebhookPullRequestReviewCommentDeleted", "WebhookPullRequestReviewCommentDeletedPropPullRequest", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", @@ -11658,7 +11753,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0735": ( + ".group_0742": ( "WebhookPullRequestReviewCommentEdited", "WebhookPullRequestReviewCommentEditedPropPullRequest", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", @@ -11696,7 +11791,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0736": ( + ".group_0743": ( "WebhookPullRequestReviewDismissed", "WebhookPullRequestReviewDismissedPropReview", "WebhookPullRequestReviewDismissedPropReviewPropUser", @@ -11739,7 +11834,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0737": ( + ".group_0744": ( "WebhookPullRequestReviewEdited", "WebhookPullRequestReviewEditedPropChanges", "WebhookPullRequestReviewEditedPropChangesPropBody", @@ -11779,7 +11874,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0738": ( + ".group_0745": ( "WebhookPullRequestReviewRequestRemovedOneof0", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", @@ -11819,7 +11914,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0739": ( + ".group_0746": ( "WebhookPullRequestReviewRequestRemovedOneof1", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", @@ -11860,7 +11955,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0740": ( + ".group_0747": ( "WebhookPullRequestReviewRequestedOneof0", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestedOneof0PropPullRequest", @@ -11900,7 +11995,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0741": ( + ".group_0748": ( "WebhookPullRequestReviewRequestedOneof1", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", @@ -11941,7 +12036,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0742": ( + ".group_0749": ( "WebhookPullRequestReviewSubmitted", "WebhookPullRequestReviewSubmittedPropPullRequest", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", @@ -11979,7 +12074,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0743": ( + ".group_0750": ( "WebhookPullRequestReviewThreadResolved", "WebhookPullRequestReviewThreadResolvedPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", @@ -12025,7 +12120,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0744": ( + ".group_0751": ( "WebhookPullRequestReviewThreadUnresolved", "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", @@ -12071,7 +12166,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0745": ( + ".group_0752": ( "WebhookPullRequestSynchronize", "WebhookPullRequestSynchronizePropPullRequest", "WebhookPullRequestSynchronizePropPullRequestPropAssignee", @@ -12110,7 +12205,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0746": ( + ".group_0753": ( "WebhookPullRequestUnassigned", "WebhookPullRequestUnassignedPropPullRequest", "WebhookPullRequestUnassignedPropPullRequestPropAssignee", @@ -12149,7 +12244,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0747": ( + ".group_0754": ( "WebhookPullRequestUnlabeled", "WebhookPullRequestUnlabeledPropPullRequest", "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", @@ -12188,7 +12283,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0748": ( + ".group_0755": ( "WebhookPullRequestUnlocked", "WebhookPullRequestUnlockedPropPullRequest", "WebhookPullRequestUnlockedPropPullRequestPropAssignee", @@ -12227,7 +12322,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0749": ( + ".group_0756": ( "WebhookPush", "WebhookPushPropHeadCommit", "WebhookPushPropHeadCommitPropAuthor", @@ -12242,13 +12337,13 @@ "WebhookPushPropRepositoryPropOwner", "WebhookPushPropRepositoryPropPermissions", ), - ".group_0750": ("WebhookRegistryPackagePublished",), - ".group_0751": ( + ".group_0757": ("WebhookRegistryPackagePublished",), + ".group_0758": ( "WebhookRegistryPackagePublishedPropRegistryPackage", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ), - ".group_0752": ( + ".group_0759": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", @@ -12279,13 +12374,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0753": ("WebhookRegistryPackageUpdated",), - ".group_0754": ( + ".group_0760": ("WebhookRegistryPackageUpdated",), + ".group_0761": ( "WebhookRegistryPackageUpdatedPropRegistryPackage", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ), - ".group_0755": ( + ".group_0762": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", @@ -12294,16 +12389,16 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0756": ("WebhookReleaseCreated",), - ".group_0757": ("WebhookReleaseDeleted",), - ".group_0758": ( + ".group_0763": ("WebhookReleaseCreated",), + ".group_0764": ("WebhookReleaseDeleted",), + ".group_0765": ( "WebhookReleaseEdited", "WebhookReleaseEditedPropChanges", "WebhookReleaseEditedPropChangesPropBody", "WebhookReleaseEditedPropChangesPropName", "WebhookReleaseEditedPropChangesPropMakeLatest", ), - ".group_0759": ( + ".group_0766": ( "WebhookReleasePrereleased", "WebhookReleasePrereleasedPropRelease", "WebhookReleasePrereleasedPropReleasePropAssetsItems", @@ -12311,19 +12406,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthor", "WebhookReleasePrereleasedPropReleasePropReactions", ), - ".group_0760": ("WebhookReleasePublished",), - ".group_0761": ("WebhookReleaseReleased",), - ".group_0762": ("WebhookReleaseUnpublished",), - ".group_0763": ("WebhookRepositoryAdvisoryPublished",), - ".group_0764": ("WebhookRepositoryAdvisoryReported",), - ".group_0765": ("WebhookRepositoryArchived",), - ".group_0766": ("WebhookRepositoryCreated",), - ".group_0767": ("WebhookRepositoryDeleted",), - ".group_0768": ( + ".group_0767": ("WebhookReleasePublished",), + ".group_0768": ("WebhookReleaseReleased",), + ".group_0769": ("WebhookReleaseUnpublished",), + ".group_0770": ("WebhookRepositoryAdvisoryPublished",), + ".group_0771": ("WebhookRepositoryAdvisoryReported",), + ".group_0772": ("WebhookRepositoryArchived",), + ".group_0773": ("WebhookRepositoryCreated",), + ".group_0774": ("WebhookRepositoryDeleted",), + ".group_0775": ( "WebhookRepositoryDispatchSample", "WebhookRepositoryDispatchSamplePropClientPayload", ), - ".group_0769": ( + ".group_0776": ( "WebhookRepositoryEdited", "WebhookRepositoryEditedPropChanges", "WebhookRepositoryEditedPropChangesPropDefaultBranch", @@ -12331,25 +12426,25 @@ "WebhookRepositoryEditedPropChangesPropHomepage", "WebhookRepositoryEditedPropChangesPropTopics", ), - ".group_0770": ("WebhookRepositoryImport",), - ".group_0771": ("WebhookRepositoryPrivatized",), - ".group_0772": ("WebhookRepositoryPublicized",), - ".group_0773": ( + ".group_0777": ("WebhookRepositoryImport",), + ".group_0778": ("WebhookRepositoryPrivatized",), + ".group_0779": ("WebhookRepositoryPublicized",), + ".group_0780": ( "WebhookRepositoryRenamed", "WebhookRepositoryRenamedPropChanges", "WebhookRepositoryRenamedPropChangesPropRepository", "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ), - ".group_0774": ("WebhookRepositoryRulesetCreated",), - ".group_0775": ("WebhookRepositoryRulesetDeleted",), - ".group_0776": ("WebhookRepositoryRulesetEdited",), - ".group_0777": ( + ".group_0781": ("WebhookRepositoryRulesetCreated",), + ".group_0782": ("WebhookRepositoryRulesetDeleted",), + ".group_0783": ("WebhookRepositoryRulesetEdited",), + ".group_0784": ( "WebhookRepositoryRulesetEditedPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropName", "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", ), - ".group_0778": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), - ".group_0779": ( + ".group_0785": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), + ".group_0786": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", @@ -12357,15 +12452,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", ), - ".group_0780": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), - ".group_0781": ( + ".group_0787": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), + ".group_0788": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ), - ".group_0782": ( + ".group_0789": ( "WebhookRepositoryTransferred", "WebhookRepositoryTransferredPropChanges", "WebhookRepositoryTransferredPropChangesPropOwner", @@ -12373,21 +12468,21 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ), - ".group_0783": ("WebhookRepositoryUnarchived",), - ".group_0784": ("WebhookRepositoryVulnerabilityAlertCreate",), - ".group_0785": ( + ".group_0790": ("WebhookRepositoryUnarchived",), + ".group_0791": ("WebhookRepositoryVulnerabilityAlertCreate",), + ".group_0792": ( "WebhookRepositoryVulnerabilityAlertDismiss", "WebhookRepositoryVulnerabilityAlertDismissPropAlert", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", ), - ".group_0786": ("WebhookRepositoryVulnerabilityAlertReopen",), - ".group_0787": ( + ".group_0793": ("WebhookRepositoryVulnerabilityAlertReopen",), + ".group_0794": ( "WebhookRepositoryVulnerabilityAlertResolve", "WebhookRepositoryVulnerabilityAlertResolvePropAlert", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", ), - ".group_0788": ("WebhookSecretScanningAlertCreated",), - ".group_0789": ( + ".group_0795": ("WebhookSecretScanningAlertCreated",), + ".group_0796": ( "WebhookSecretScanningAlertLocationCreated", "SecretScanningLocation", "SecretScanningLocationCommit", @@ -12404,16 +12499,16 @@ "SecretScanningLocationPullRequestReview", "SecretScanningLocationPullRequestReviewComment", ), - ".group_0790": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), - ".group_0791": ("WebhookSecretScanningAlertPubliclyLeaked",), - ".group_0792": ("WebhookSecretScanningAlertReopened",), - ".group_0793": ("WebhookSecretScanningAlertResolved",), - ".group_0794": ("WebhookSecretScanningAlertValidated",), - ".group_0795": ("WebhookSecretScanningScanCompleted",), - ".group_0796": ("WebhookSecurityAdvisoryPublished",), - ".group_0797": ("WebhookSecurityAdvisoryUpdated",), - ".group_0798": ("WebhookSecurityAdvisoryWithdrawn",), - ".group_0799": ( + ".group_0797": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), + ".group_0798": ("WebhookSecretScanningAlertPubliclyLeaked",), + ".group_0799": ("WebhookSecretScanningAlertReopened",), + ".group_0800": ("WebhookSecretScanningAlertResolved",), + ".group_0801": ("WebhookSecretScanningAlertValidated",), + ".group_0802": ("WebhookSecretScanningScanCompleted",), + ".group_0803": ("WebhookSecurityAdvisoryPublished",), + ".group_0804": ("WebhookSecurityAdvisoryUpdated",), + ".group_0805": ("WebhookSecurityAdvisoryWithdrawn",), + ".group_0806": ( "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", @@ -12423,22 +12518,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0800": ("WebhookSecurityAndAnalysis",), - ".group_0801": ("WebhookSecurityAndAnalysisPropChanges",), - ".group_0802": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), - ".group_0803": ("WebhookSponsorshipCancelled",), - ".group_0804": ("WebhookSponsorshipCreated",), - ".group_0805": ( + ".group_0807": ("WebhookSecurityAndAnalysis",), + ".group_0808": ("WebhookSecurityAndAnalysisPropChanges",), + ".group_0809": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), + ".group_0810": ("WebhookSponsorshipCancelled",), + ".group_0811": ("WebhookSponsorshipCreated",), + ".group_0812": ( "WebhookSponsorshipEdited", "WebhookSponsorshipEditedPropChanges", "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", ), - ".group_0806": ("WebhookSponsorshipPendingCancellation",), - ".group_0807": ("WebhookSponsorshipPendingTierChange",), - ".group_0808": ("WebhookSponsorshipTierChanged",), - ".group_0809": ("WebhookStarCreated",), - ".group_0810": ("WebhookStarDeleted",), - ".group_0811": ( + ".group_0813": ("WebhookSponsorshipPendingCancellation",), + ".group_0814": ("WebhookSponsorshipPendingTierChange",), + ".group_0815": ("WebhookSponsorshipTierChanged",), + ".group_0816": ("WebhookStarCreated",), + ".group_0817": ("WebhookStarDeleted",), + ".group_0818": ( "WebhookStatus", "WebhookStatusPropBranchesItems", "WebhookStatusPropBranchesItemsPropCommit", @@ -12452,16 +12547,16 @@ "WebhookStatusPropCommitPropCommitPropTree", "WebhookStatusPropCommitPropCommitPropVerification", ), - ".group_0812": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), - ".group_0813": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), - ".group_0814": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), - ".group_0815": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), - ".group_0816": ("WebhookSubIssuesParentIssueAdded",), - ".group_0817": ("WebhookSubIssuesParentIssueRemoved",), - ".group_0818": ("WebhookSubIssuesSubIssueAdded",), - ".group_0819": ("WebhookSubIssuesSubIssueRemoved",), - ".group_0820": ("WebhookTeamAdd",), - ".group_0821": ( + ".group_0819": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), + ".group_0820": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), + ".group_0821": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), + ".group_0822": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), + ".group_0823": ("WebhookSubIssuesParentIssueAdded",), + ".group_0824": ("WebhookSubIssuesParentIssueRemoved",), + ".group_0825": ("WebhookSubIssuesSubIssueAdded",), + ".group_0826": ("WebhookSubIssuesSubIssueRemoved",), + ".group_0827": ("WebhookTeamAdd",), + ".group_0828": ( "WebhookTeamAddedToRepository", "WebhookTeamAddedToRepositoryPropRepository", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", @@ -12469,7 +12564,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", ), - ".group_0822": ( + ".group_0829": ( "WebhookTeamCreated", "WebhookTeamCreatedPropRepository", "WebhookTeamCreatedPropRepositoryPropCustomProperties", @@ -12477,7 +12572,7 @@ "WebhookTeamCreatedPropRepositoryPropOwner", "WebhookTeamCreatedPropRepositoryPropPermissions", ), - ".group_0823": ( + ".group_0830": ( "WebhookTeamDeleted", "WebhookTeamDeletedPropRepository", "WebhookTeamDeletedPropRepositoryPropCustomProperties", @@ -12485,7 +12580,7 @@ "WebhookTeamDeletedPropRepositoryPropOwner", "WebhookTeamDeletedPropRepositoryPropPermissions", ), - ".group_0824": ( + ".group_0831": ( "WebhookTeamEdited", "WebhookTeamEditedPropRepository", "WebhookTeamEditedPropRepositoryPropCustomProperties", @@ -12501,7 +12596,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", ), - ".group_0825": ( + ".group_0832": ( "WebhookTeamRemovedFromRepository", "WebhookTeamRemovedFromRepositoryPropRepository", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", @@ -12509,48 +12604,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ), - ".group_0826": ("WebhookWatchStarted",), - ".group_0827": ( + ".group_0833": ("WebhookWatchStarted",), + ".group_0834": ( "WebhookWorkflowDispatch", "WebhookWorkflowDispatchPropInputs", ), - ".group_0828": ( + ".group_0835": ( "WebhookWorkflowJobCompleted", "WebhookWorkflowJobCompletedPropWorkflowJob", "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ), - ".group_0829": ( + ".group_0836": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ), - ".group_0830": ( + ".group_0837": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ), - ".group_0831": ( + ".group_0838": ( "WebhookWorkflowJobInProgress", "WebhookWorkflowJobInProgressPropWorkflowJob", "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ), - ".group_0832": ( + ".group_0839": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ), - ".group_0833": ( + ".group_0840": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ), - ".group_0834": ( + ".group_0841": ( "WebhookWorkflowJobQueued", "WebhookWorkflowJobQueuedPropWorkflowJob", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", ), - ".group_0835": ( + ".group_0842": ( "WebhookWorkflowJobWaiting", "WebhookWorkflowJobWaitingPropWorkflowJob", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", ), - ".group_0836": ( + ".group_0843": ( "WebhookWorkflowRunCompleted", "WebhookWorkflowRunCompletedPropWorkflowRun", "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", @@ -12569,7 +12664,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0837": ( + ".group_0844": ( "WebhookWorkflowRunInProgress", "WebhookWorkflowRunInProgressPropWorkflowRun", "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", @@ -12588,7 +12683,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0838": ( + ".group_0845": ( "WebhookWorkflowRunRequested", "WebhookWorkflowRunRequestedPropWorkflowRun", "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", @@ -12607,310 +12702,353 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0839": ("AppManifestsCodeConversionsPostResponse201",), - ".group_0840": ("AppManifestsCodeConversionsPostResponse201Allof1",), - ".group_0841": ("AppHookConfigPatchBody",), - ".group_0842": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), - ".group_0843": ("AppInstallationsInstallationIdAccessTokensPostBody",), - ".group_0844": ("ApplicationsClientIdGrantDeleteBody",), - ".group_0845": ("ApplicationsClientIdTokenPostBody",), - ".group_0846": ("ApplicationsClientIdTokenDeleteBody",), - ".group_0847": ("ApplicationsClientIdTokenPatchBody",), - ".group_0848": ("ApplicationsClientIdTokenScopedPostBody",), - ".group_0849": ("EmojisGetResponse200",), - ".group_0850": ("EnterprisesEnterpriseActionsPermissionsPutBody",), - ".group_0851": ( + ".group_0846": ("AppManifestsCodeConversionsPostResponse201",), + ".group_0847": ("AppManifestsCodeConversionsPostResponse201Allof1",), + ".group_0848": ("AppHookConfigPatchBody",), + ".group_0849": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), + ".group_0850": ("AppInstallationsInstallationIdAccessTokensPostBody",), + ".group_0851": ("ApplicationsClientIdGrantDeleteBody",), + ".group_0852": ("ApplicationsClientIdTokenPostBody",), + ".group_0853": ("ApplicationsClientIdTokenDeleteBody",), + ".group_0854": ("ApplicationsClientIdTokenPatchBody",), + ".group_0855": ("ApplicationsClientIdTokenScopedPostBody",), + ".group_0856": ("EmojisGetResponse200",), + ".group_0857": ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200",), + ".group_0858": ( + "EnterprisesEnterpriseActionsHostedRunnersPostBody", + "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage", + ), + ".group_0859": ( + "EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200", + ), + ".group_0860": ( + "EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200", + ), + ".group_0861": ( + "EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200", + ), + ".group_0862": ( + "EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200", + ), + ".group_0863": ( + "EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody", + ), + ".group_0864": ("EnterprisesEnterpriseActionsPermissionsPutBody",), + ".group_0865": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200", ), - ".group_0852": ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",), - ".group_0853": ( + ".group_0866": ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",), + ".group_0867": ( "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", "RunnerGroupsEnterprise", ), - ".group_0854": ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",), - ".group_0855": ( + ".group_0868": ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",), + ".group_0869": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody", ), - ".group_0856": ( + ".group_0870": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", ), - ".group_0857": ( + ".group_0871": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody", ), - ".group_0858": ( + ".group_0872": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0859": ( + ".group_0873": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody", ), - ".group_0860": ("EnterprisesEnterpriseActionsRunnersGetResponse200",), - ".group_0861": ( + ".group_0874": ("EnterprisesEnterpriseActionsRunnersGetResponse200",), + ".group_0875": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody", ), - ".group_0862": ( + ".group_0876": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201", ), - ".group_0863": ( + ".group_0877": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200", ), - ".group_0864": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",), - ".group_0865": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",), - ".group_0866": ( + ".group_0878": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",), + ".group_0879": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",), + ".group_0880": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200", ), - ".group_0867": ("EnterprisesEnterpriseAuditLogStreamsPostBody",), - ".group_0868": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody",), - ".group_0869": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422",), - ".group_0870": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",), - ".group_0871": ( + ".group_0881": ("EnterprisesEnterpriseAuditLogStreamsPostBody",), + ".group_0882": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody",), + ".group_0883": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422",), + ".group_0884": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",), + ".group_0885": ( "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", ), - ".group_0872": ( + ".group_0886": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", ), - ".group_0873": ( + ".group_0887": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0874": ( + ".group_0888": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0875": ( + ".group_0889": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0876": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",), - ".group_0877": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",), - ".group_0878": ("EnterprisesEnterprisePropertiesSchemaPatchBody",), - ".group_0879": ("EnterprisesEnterpriseRulesetsPostBody",), - ".group_0880": ("EnterprisesEnterpriseRulesetsRulesetIdPutBody",), - ".group_0881": ( + ".group_0890": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",), + ".group_0891": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",), + ".group_0892": ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200",), + ".group_0893": ("EnterprisesEnterpriseNetworkConfigurationsPostBody",), + ".group_0894": ( + "EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody", + ), + ".group_0895": ("EnterprisesEnterprisePropertiesSchemaPatchBody",), + ".group_0896": ("EnterprisesEnterpriseRulesetsPostBody",), + ".group_0897": ("EnterprisesEnterpriseRulesetsRulesetIdPutBody",), + ".group_0898": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody", ), - ".group_0882": ( + ".group_0899": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200", ), - ".group_0883": ( + ".group_0900": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody", ), - ".group_0884": ( + ".group_0901": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200", ), - ".group_0885": ( + ".group_0902": ( "GistsPostBody", "GistsPostBodyPropFiles", ), - ".group_0886": ( + ".group_0903": ( "GistsGistIdGetResponse403", "GistsGistIdGetResponse403PropBlock", ), - ".group_0887": ( + ".group_0904": ( "GistsGistIdPatchBody", "GistsGistIdPatchBodyPropFiles", ), - ".group_0888": ("GistsGistIdCommentsPostBody",), - ".group_0889": ("GistsGistIdCommentsCommentIdPatchBody",), - ".group_0890": ("GistsGistIdStarGetResponse404",), - ".group_0891": ("InstallationRepositoriesGetResponse200",), - ".group_0892": ("MarkdownPostBody",), - ".group_0893": ("NotificationsPutBody",), - ".group_0894": ("NotificationsPutResponse202",), - ".group_0895": ("NotificationsThreadsThreadIdSubscriptionPutBody",), - ".group_0896": ("OrganizationsOrganizationIdCustomRolesGetResponse200",), - ".group_0897": ("OrgsOrgPatchBody",), - ".group_0898": ( + ".group_0905": ("GistsGistIdCommentsPostBody",), + ".group_0906": ("GistsGistIdCommentsCommentIdPatchBody",), + ".group_0907": ("GistsGistIdStarGetResponse404",), + ".group_0908": ("InstallationRepositoriesGetResponse200",), + ".group_0909": ("MarkdownPostBody",), + ".group_0910": ("NotificationsPutBody",), + ".group_0911": ("NotificationsPutResponse202",), + ".group_0912": ("NotificationsThreadsThreadIdSubscriptionPutBody",), + ".group_0913": ("OrganizationsOrganizationIdCustomRolesGetResponse200",), + ".group_0914": ("OrgsOrgPatchBody",), + ".group_0915": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", ), - ".group_0899": ("OrgsOrgActionsPermissionsPutBody",), - ".group_0900": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), - ".group_0901": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), - ".group_0902": ( + ".group_0916": ("OrgsOrgActionsHostedRunnersGetResponse200",), + ".group_0917": ( + "OrgsOrgActionsHostedRunnersPostBody", + "OrgsOrgActionsHostedRunnersPostBodyPropImage", + ), + ".group_0918": ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",), + ".group_0919": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",), + ".group_0920": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",), + ".group_0921": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",), + ".group_0922": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",), + ".group_0923": ("OrgsOrgActionsPermissionsPutBody",), + ".group_0924": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), + ".group_0925": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), + ".group_0926": ( "OrgsOrgActionsRunnerGroupsGetResponse200", "RunnerGroupsOrg", ), - ".group_0903": ("OrgsOrgActionsRunnerGroupsPostBody",), - ".group_0904": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), - ".group_0905": ( + ".group_0927": ("OrgsOrgActionsRunnerGroupsPostBody",), + ".group_0928": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), + ".group_0929": ( + "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200", + ), + ".group_0930": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200", ), - ".group_0906": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), - ".group_0907": ( + ".group_0931": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), + ".group_0932": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0908": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), - ".group_0909": ("OrgsOrgActionsRunnersGetResponse200",), - ".group_0910": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), - ".group_0911": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), - ".group_0912": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), - ".group_0913": ( + ".group_0933": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), + ".group_0934": ("OrgsOrgActionsRunnersGetResponse200",), + ".group_0935": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), + ".group_0936": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), + ".group_0937": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), + ".group_0938": ( "OrgsOrgActionsSecretsGetResponse200", "OrganizationActionsSecret", ), - ".group_0914": ("OrgsOrgActionsSecretsSecretNamePutBody",), - ".group_0915": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), - ".group_0916": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), - ".group_0917": ( + ".group_0939": ("OrgsOrgActionsSecretsSecretNamePutBody",), + ".group_0940": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), + ".group_0941": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), + ".group_0942": ( "OrgsOrgActionsVariablesGetResponse200", "OrganizationActionsVariable", ), - ".group_0918": ("OrgsOrgActionsVariablesPostBody",), - ".group_0919": ("OrgsOrgActionsVariablesNamePatchBody",), - ".group_0920": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), - ".group_0921": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), - ".group_0922": ( + ".group_0943": ("OrgsOrgActionsVariablesPostBody",), + ".group_0944": ("OrgsOrgActionsVariablesNamePatchBody",), + ".group_0945": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), + ".group_0946": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), + ".group_0947": ( "OrgsOrgAttestationsSubjectDigestGetResponse200", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_0923": ( + ".group_0948": ( "OrgsOrgCodeSecurityConfigurationsPostBody", "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0924": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), - ".group_0925": ( + ".group_0949": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), + ".group_0950": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0926": ( + ".group_0951": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0927": ( + ".group_0952": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0928": ( + ".group_0953": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0929": ("OrgsOrgCodespacesGetResponse200",), - ".group_0930": ("OrgsOrgCodespacesAccessPutBody",), - ".group_0931": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), - ".group_0932": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), - ".group_0933": ( + ".group_0954": ("OrgsOrgCodespacesGetResponse200",), + ".group_0955": ("OrgsOrgCodespacesAccessPutBody",), + ".group_0956": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), + ".group_0957": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), + ".group_0958": ( "OrgsOrgCodespacesSecretsGetResponse200", "CodespacesOrgSecret", ), - ".group_0934": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), - ".group_0935": ( + ".group_0959": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), + ".group_0960": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0936": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_0937": ("OrgsOrgCopilotBillingSeatsGetResponse200",), - ".group_0938": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), - ".group_0939": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), - ".group_0940": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), - ".group_0941": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), - ".group_0942": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), - ".group_0943": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), - ".group_0944": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), - ".group_0945": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), - ".group_0946": ("OrgsOrgCustomRepositoryRolesGetResponse200",), - ".group_0947": ( + ".group_0961": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_0962": ("OrgsOrgCopilotBillingSeatsGetResponse200",), + ".group_0963": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), + ".group_0964": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), + ".group_0965": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), + ".group_0966": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), + ".group_0967": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), + ".group_0968": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), + ".group_0969": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), + ".group_0970": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), + ".group_0971": ("OrgsOrgCustomRepositoryRolesGetResponse200",), + ".group_0972": ( "OrgsOrgDependabotSecretsGetResponse200", "OrganizationDependabotSecret", ), - ".group_0948": ("OrgsOrgDependabotSecretsSecretNamePutBody",), - ".group_0949": ( + ".group_0973": ("OrgsOrgDependabotSecretsSecretNamePutBody",), + ".group_0974": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0950": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), - ".group_0951": ( + ".group_0975": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), + ".group_0976": ( "OrgsOrgHooksPostBody", "OrgsOrgHooksPostBodyPropConfig", ), - ".group_0952": ( + ".group_0977": ( "OrgsOrgHooksHookIdPatchBody", "OrgsOrgHooksHookIdPatchBodyPropConfig", ), - ".group_0953": ("OrgsOrgHooksHookIdConfigPatchBody",), - ".group_0954": ("OrgsOrgInstallationsGetResponse200",), - ".group_0955": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), - ".group_0956": ("OrgsOrgInvitationsPostBody",), - ".group_0957": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), - ".group_0958": ("OrgsOrgMembershipsUsernamePutBody",), - ".group_0959": ("OrgsOrgMigrationsPostBody",), - ".group_0960": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), - ".group_0961": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), - ".group_0962": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), - ".group_0963": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), - ".group_0964": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), - ".group_0965": ("OrgsOrgPersonalAccessTokensPostBody",), - ".group_0966": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), - ".group_0967": ( + ".group_0978": ("OrgsOrgHooksHookIdConfigPatchBody",), + ".group_0979": ("OrgsOrgInstallationsGetResponse200",), + ".group_0980": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), + ".group_0981": ("OrgsOrgInvitationsPostBody",), + ".group_0982": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), + ".group_0983": ("OrgsOrgMembershipsUsernamePutBody",), + ".group_0984": ("OrgsOrgMigrationsPostBody",), + ".group_0985": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), + ".group_0986": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), + ".group_0987": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), + ".group_0988": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), + ".group_0989": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), + ".group_0990": ("OrgsOrgPersonalAccessTokensPostBody",), + ".group_0991": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), + ".group_0992": ( "OrgsOrgPrivateRegistriesGetResponse200", "OrgPrivateRegistryConfiguration", ), - ".group_0968": ("OrgsOrgPrivateRegistriesPostBody",), - ".group_0969": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",), - ".group_0970": ("OrgsOrgPrivateRegistriesSecretNamePatchBody",), - ".group_0971": ("OrgsOrgProjectsPostBody",), - ".group_0972": ("OrgsOrgPropertiesSchemaPatchBody",), - ".group_0973": ("OrgsOrgPropertiesValuesPatchBody",), - ".group_0974": ( + ".group_0993": ("OrgsOrgPrivateRegistriesPostBody",), + ".group_0994": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",), + ".group_0995": ("OrgsOrgPrivateRegistriesSecretNamePatchBody",), + ".group_0996": ("OrgsOrgProjectsPostBody",), + ".group_0997": ("OrgsOrgPropertiesSchemaPatchBody",), + ".group_0998": ("OrgsOrgPropertiesValuesPatchBody",), + ".group_0999": ( "OrgsOrgReposPostBody", "OrgsOrgReposPostBodyPropCustomProperties", ), - ".group_0975": ("OrgsOrgRulesetsPostBody",), - ".group_0976": ("OrgsOrgRulesetsRulesetIdPutBody",), - ".group_0977": ("OrgsOrgTeamsPostBody",), - ".group_0978": ("OrgsOrgTeamsTeamSlugPatchBody",), - ".group_0979": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), - ".group_0980": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), - ".group_0981": ( + ".group_1000": ("OrgsOrgRulesetsPostBody",), + ".group_1001": ("OrgsOrgRulesetsRulesetIdPutBody",), + ".group_1002": ("OrgsOrgSettingsNetworkConfigurationsGetResponse200",), + ".group_1003": ("OrgsOrgSettingsNetworkConfigurationsPostBody",), + ".group_1004": ( + "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody", + ), + ".group_1005": ("OrgsOrgTeamsPostBody",), + ".group_1006": ("OrgsOrgTeamsTeamSlugPatchBody",), + ".group_1007": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), + ".group_1008": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), + ".group_1009": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody", ), - ".group_0982": ( + ".group_1010": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_0983": ( + ".group_1011": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_0984": ( + ".group_1012": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody", ), - ".group_0985": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",), - ".group_0986": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), - ".group_0987": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), - ".group_0988": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), - ".group_0989": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), - ".group_0990": ( + ".group_1013": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",), + ".group_1014": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), + ".group_1015": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), + ".group_1016": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), + ".group_1017": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), + ".group_1018": ( "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", ), - ".group_0991": ("OrgsOrgSecurityProductEnablementPostBody",), - ".group_0992": ("ProjectsColumnsCardsCardIdDeleteResponse403",), - ".group_0993": ("ProjectsColumnsCardsCardIdPatchBody",), - ".group_0994": ("ProjectsColumnsCardsCardIdMovesPostBody",), - ".group_0995": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), - ".group_0996": ( + ".group_1019": ("OrgsOrgSecurityProductEnablementPostBody",), + ".group_1020": ("ProjectsColumnsCardsCardIdDeleteResponse403",), + ".group_1021": ("ProjectsColumnsCardsCardIdPatchBody",), + ".group_1022": ("ProjectsColumnsCardsCardIdMovesPostBody",), + ".group_1023": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), + ".group_1024": ( "ProjectsColumnsCardsCardIdMovesPostResponse403", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ), - ".group_0997": ( + ".group_1025": ( "ProjectsColumnsCardsCardIdMovesPostResponse503", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ), - ".group_0998": ("ProjectsColumnsColumnIdPatchBody",), - ".group_0999": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), - ".group_1000": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), - ".group_1001": ( + ".group_1026": ("ProjectsColumnsColumnIdPatchBody",), + ".group_1027": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), + ".group_1028": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), + ".group_1029": ( "ProjectsColumnsColumnIdCardsPostResponse503", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ), - ".group_1002": ("ProjectsColumnsColumnIdMovesPostBody",), - ".group_1003": ("ProjectsColumnsColumnIdMovesPostResponse201",), - ".group_1004": ("ProjectsProjectIdDeleteResponse403",), - ".group_1005": ("ProjectsProjectIdPatchBody",), - ".group_1006": ("ProjectsProjectIdPatchResponse403",), - ".group_1007": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), - ".group_1008": ("ProjectsProjectIdColumnsPostBody",), - ".group_1009": ("ReposOwnerRepoDeleteResponse403",), - ".group_1010": ( + ".group_1030": ("ProjectsColumnsColumnIdMovesPostBody",), + ".group_1031": ("ProjectsColumnsColumnIdMovesPostResponse201",), + ".group_1032": ("ProjectsProjectIdDeleteResponse403",), + ".group_1033": ("ProjectsProjectIdPatchBody",), + ".group_1034": ("ProjectsProjectIdPatchResponse403",), + ".group_1035": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), + ".group_1036": ("ProjectsProjectIdColumnsPostBody",), + ".group_1037": ("ReposOwnerRepoDeleteResponse403",), + ".group_1038": ( "ReposOwnerRepoPatchBody", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", @@ -12920,55 +13058,55 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", ), - ".group_1011": ("ReposOwnerRepoActionsArtifactsGetResponse200",), - ".group_1012": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), - ".group_1013": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), - ".group_1014": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), - ".group_1015": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), - ".group_1016": ("ReposOwnerRepoActionsPermissionsPutBody",), - ".group_1017": ("ReposOwnerRepoActionsRunnersGetResponse200",), - ".group_1018": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), - ".group_1019": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), - ".group_1020": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), - ".group_1021": ("ReposOwnerRepoActionsRunsGetResponse200",), - ".group_1022": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), - ".group_1023": ( + ".group_1039": ("ReposOwnerRepoActionsArtifactsGetResponse200",), + ".group_1040": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), + ".group_1041": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), + ".group_1042": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), + ".group_1043": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), + ".group_1044": ("ReposOwnerRepoActionsPermissionsPutBody",), + ".group_1045": ("ReposOwnerRepoActionsRunnersGetResponse200",), + ".group_1046": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), + ".group_1047": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), + ".group_1048": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), + ".group_1049": ("ReposOwnerRepoActionsRunsGetResponse200",), + ".group_1050": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), + ".group_1051": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200", ), - ".group_1024": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), - ".group_1025": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), - ".group_1026": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), - ".group_1027": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), - ".group_1028": ("ReposOwnerRepoActionsSecretsGetResponse200",), - ".group_1029": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), - ".group_1030": ("ReposOwnerRepoActionsVariablesGetResponse200",), - ".group_1031": ("ReposOwnerRepoActionsVariablesPostBody",), - ".group_1032": ("ReposOwnerRepoActionsVariablesNamePatchBody",), - ".group_1033": ( + ".group_1052": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), + ".group_1053": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), + ".group_1054": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), + ".group_1055": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), + ".group_1056": ("ReposOwnerRepoActionsSecretsGetResponse200",), + ".group_1057": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), + ".group_1058": ("ReposOwnerRepoActionsVariablesGetResponse200",), + ".group_1059": ("ReposOwnerRepoActionsVariablesPostBody",), + ".group_1060": ("ReposOwnerRepoActionsVariablesNamePatchBody",), + ".group_1061": ( "ReposOwnerRepoActionsWorkflowsGetResponse200", "Workflow", ), - ".group_1034": ( + ".group_1062": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ), - ".group_1035": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), - ".group_1036": ( + ".group_1063": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), + ".group_1064": ( "ReposOwnerRepoAttestationsPostBody", "ReposOwnerRepoAttestationsPostBodyPropBundle", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", ), - ".group_1037": ("ReposOwnerRepoAttestationsPostResponse201",), - ".group_1038": ( + ".group_1065": ("ReposOwnerRepoAttestationsPostResponse201",), + ".group_1066": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_1039": ("ReposOwnerRepoAutolinksPostBody",), - ".group_1040": ( + ".group_1067": ("ReposOwnerRepoAutolinksPostBody",), + ".group_1068": ( "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", @@ -12977,356 +13115,356 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ), - ".group_1041": ( + ".group_1069": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ), - ".group_1042": ( + ".group_1070": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ), - ".group_1043": ( + ".group_1071": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ), - ".group_1044": ( + ".group_1072": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ), - ".group_1045": ( + ".group_1073": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ), - ".group_1046": ( + ".group_1074": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody", ), - ".group_1047": ( + ".group_1075": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody", ), - ".group_1048": ( + ".group_1076": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody", ), - ".group_1049": ( + ".group_1077": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0", ), - ".group_1050": ( + ".group_1078": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0", ), - ".group_1051": ( + ".group_1079": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0", ), - ".group_1052": ( + ".group_1080": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody", ), - ".group_1053": ( + ".group_1081": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody", ), - ".group_1054": ( + ".group_1082": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody", ), - ".group_1055": ("ReposOwnerRepoBranchesBranchRenamePostBody",), - ".group_1056": ( + ".group_1083": ("ReposOwnerRepoBranchesBranchRenamePostBody",), + ".group_1084": ( "ReposOwnerRepoCheckRunsPostBodyPropOutput", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ), - ".group_1057": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), - ".group_1058": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), - ".group_1059": ( + ".group_1085": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), + ".group_1086": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), + ".group_1087": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", ), - ".group_1060": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), - ".group_1061": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), - ".group_1062": ("ReposOwnerRepoCheckSuitesPostBody",), - ".group_1063": ( + ".group_1088": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), + ".group_1089": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), + ".group_1090": ("ReposOwnerRepoCheckSuitesPostBody",), + ".group_1091": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBody", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ), - ".group_1064": ( + ".group_1092": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200", ), - ".group_1065": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), - ".group_1066": ( + ".group_1093": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), + ".group_1094": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0", ), - ".group_1067": ( + ".group_1095": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1", ), - ".group_1068": ( + ".group_1096": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2", ), - ".group_1069": ("ReposOwnerRepoCodeScanningSarifsPostBody",), - ".group_1070": ("ReposOwnerRepoCodespacesGetResponse200",), - ".group_1071": ("ReposOwnerRepoCodespacesPostBody",), - ".group_1072": ( + ".group_1097": ("ReposOwnerRepoCodeScanningSarifsPostBody",), + ".group_1098": ("ReposOwnerRepoCodespacesGetResponse200",), + ".group_1099": ("ReposOwnerRepoCodespacesPostBody",), + ".group_1100": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ), - ".group_1073": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), - ".group_1074": ( + ".group_1101": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), + ".group_1102": ( "ReposOwnerRepoCodespacesNewGetResponse200", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ), - ".group_1075": ( + ".group_1103": ( "ReposOwnerRepoCodespacesSecretsGetResponse200", "RepoCodespacesSecret", ), - ".group_1076": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), - ".group_1077": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), - ".group_1078": ("ReposOwnerRepoCommentsCommentIdPatchBody",), - ".group_1079": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), - ".group_1080": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), - ".group_1081": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), - ".group_1082": ( + ".group_1104": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), + ".group_1105": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), + ".group_1106": ("ReposOwnerRepoCommentsCommentIdPatchBody",), + ".group_1107": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), + ".group_1108": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), + ".group_1109": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), + ".group_1110": ( "ReposOwnerRepoContentsPathPutBody", "ReposOwnerRepoContentsPathPutBodyPropCommitter", "ReposOwnerRepoContentsPathPutBodyPropAuthor", ), - ".group_1083": ( + ".group_1111": ( "ReposOwnerRepoContentsPathDeleteBody", "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ), - ".group_1084": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), - ".group_1085": ( + ".group_1112": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), + ".group_1113": ( "ReposOwnerRepoDependabotSecretsGetResponse200", "DependabotSecret", ), - ".group_1086": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), - ".group_1087": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), - ".group_1088": ( + ".group_1114": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), + ".group_1115": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), + ".group_1116": ( "ReposOwnerRepoDeploymentsPostBody", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ), - ".group_1089": ("ReposOwnerRepoDeploymentsPostResponse202",), - ".group_1090": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), - ".group_1091": ( + ".group_1117": ("ReposOwnerRepoDeploymentsPostResponse202",), + ".group_1118": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), + ".group_1119": ( "ReposOwnerRepoDispatchesPostBody", "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ), - ".group_1092": ( + ".group_1120": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ), - ".group_1093": ( + ".group_1121": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", "DeploymentBranchPolicy", ), - ".group_1094": ( + ".group_1122": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ), - ".group_1095": ( + ".group_1123": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ), - ".group_1096": ( + ".group_1124": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200", ), - ".group_1097": ( + ".group_1125": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody", ), - ".group_1098": ( + ".group_1126": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200", ), - ".group_1099": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), - ".group_1100": ( + ".group_1127": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), + ".group_1128": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody", ), - ".group_1101": ("ReposOwnerRepoForksPostBody",), - ".group_1102": ("ReposOwnerRepoGitBlobsPostBody",), - ".group_1103": ( + ".group_1129": ("ReposOwnerRepoForksPostBody",), + ".group_1130": ("ReposOwnerRepoGitBlobsPostBody",), + ".group_1131": ( "ReposOwnerRepoGitCommitsPostBody", "ReposOwnerRepoGitCommitsPostBodyPropAuthor", "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ), - ".group_1104": ("ReposOwnerRepoGitRefsPostBody",), - ".group_1105": ("ReposOwnerRepoGitRefsRefPatchBody",), - ".group_1106": ( + ".group_1132": ("ReposOwnerRepoGitRefsPostBody",), + ".group_1133": ("ReposOwnerRepoGitRefsRefPatchBody",), + ".group_1134": ( "ReposOwnerRepoGitTagsPostBody", "ReposOwnerRepoGitTagsPostBodyPropTagger", ), - ".group_1107": ( + ".group_1135": ( "ReposOwnerRepoGitTreesPostBody", "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ), - ".group_1108": ( + ".group_1136": ( "ReposOwnerRepoHooksPostBody", "ReposOwnerRepoHooksPostBodyPropConfig", ), - ".group_1109": ("ReposOwnerRepoHooksHookIdPatchBody",), - ".group_1110": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), - ".group_1111": ("ReposOwnerRepoImportPutBody",), - ".group_1112": ("ReposOwnerRepoImportPatchBody",), - ".group_1113": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), - ".group_1114": ("ReposOwnerRepoImportLfsPatchBody",), - ".group_1115": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), - ".group_1116": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), - ".group_1117": ( + ".group_1137": ("ReposOwnerRepoHooksHookIdPatchBody",), + ".group_1138": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), + ".group_1139": ("ReposOwnerRepoImportPutBody",), + ".group_1140": ("ReposOwnerRepoImportPatchBody",), + ".group_1141": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), + ".group_1142": ("ReposOwnerRepoImportLfsPatchBody",), + ".group_1143": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), + ".group_1144": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), + ".group_1145": ( "ReposOwnerRepoIssuesPostBody", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", ), - ".group_1118": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), - ".group_1119": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), - ".group_1120": ( + ".group_1146": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), + ".group_1147": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), + ".group_1148": ( "ReposOwnerRepoIssuesIssueNumberPatchBody", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", ), - ".group_1121": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), - ".group_1122": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), - ".group_1123": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), - ".group_1124": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), - ".group_1125": ( + ".group_1149": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), + ".group_1150": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), + ".group_1151": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), + ".group_1152": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), + ".group_1153": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", ), - ".group_1126": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), - ".group_1127": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), - ".group_1128": ( + ".group_1154": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), + ".group_1155": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), + ".group_1156": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", ), - ".group_1129": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), - ".group_1130": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), - ".group_1131": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), - ".group_1132": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",), - ".group_1133": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",), - ".group_1134": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",), - ".group_1135": ("ReposOwnerRepoKeysPostBody",), - ".group_1136": ("ReposOwnerRepoLabelsPostBody",), - ".group_1137": ("ReposOwnerRepoLabelsNamePatchBody",), - ".group_1138": ("ReposOwnerRepoMergeUpstreamPostBody",), - ".group_1139": ("ReposOwnerRepoMergesPostBody",), - ".group_1140": ("ReposOwnerRepoMilestonesPostBody",), - ".group_1141": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), - ".group_1142": ("ReposOwnerRepoNotificationsPutBody",), - ".group_1143": ("ReposOwnerRepoNotificationsPutResponse202",), - ".group_1144": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), - ".group_1145": ("ReposOwnerRepoPagesPutBodyAnyof0",), - ".group_1146": ("ReposOwnerRepoPagesPutBodyAnyof1",), - ".group_1147": ("ReposOwnerRepoPagesPutBodyAnyof2",), - ".group_1148": ("ReposOwnerRepoPagesPutBodyAnyof3",), - ".group_1149": ("ReposOwnerRepoPagesPutBodyAnyof4",), - ".group_1150": ("ReposOwnerRepoPagesPostBodyPropSource",), - ".group_1151": ("ReposOwnerRepoPagesPostBodyAnyof0",), - ".group_1152": ("ReposOwnerRepoPagesPostBodyAnyof1",), - ".group_1153": ("ReposOwnerRepoPagesDeploymentsPostBody",), - ".group_1154": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), - ".group_1155": ("ReposOwnerRepoProjectsPostBody",), - ".group_1156": ("ReposOwnerRepoPropertiesValuesPatchBody",), - ".group_1157": ("ReposOwnerRepoPullsPostBody",), - ".group_1158": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), - ".group_1159": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), - ".group_1160": ("ReposOwnerRepoPullsPullNumberPatchBody",), - ".group_1161": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), - ".group_1162": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), - ".group_1163": ( + ".group_1157": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), + ".group_1158": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), + ".group_1159": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), + ".group_1160": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",), + ".group_1161": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",), + ".group_1162": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",), + ".group_1163": ("ReposOwnerRepoKeysPostBody",), + ".group_1164": ("ReposOwnerRepoLabelsPostBody",), + ".group_1165": ("ReposOwnerRepoLabelsNamePatchBody",), + ".group_1166": ("ReposOwnerRepoMergeUpstreamPostBody",), + ".group_1167": ("ReposOwnerRepoMergesPostBody",), + ".group_1168": ("ReposOwnerRepoMilestonesPostBody",), + ".group_1169": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), + ".group_1170": ("ReposOwnerRepoNotificationsPutBody",), + ".group_1171": ("ReposOwnerRepoNotificationsPutResponse202",), + ".group_1172": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), + ".group_1173": ("ReposOwnerRepoPagesPutBodyAnyof0",), + ".group_1174": ("ReposOwnerRepoPagesPutBodyAnyof1",), + ".group_1175": ("ReposOwnerRepoPagesPutBodyAnyof2",), + ".group_1176": ("ReposOwnerRepoPagesPutBodyAnyof3",), + ".group_1177": ("ReposOwnerRepoPagesPutBodyAnyof4",), + ".group_1178": ("ReposOwnerRepoPagesPostBodyPropSource",), + ".group_1179": ("ReposOwnerRepoPagesPostBodyAnyof0",), + ".group_1180": ("ReposOwnerRepoPagesPostBodyAnyof1",), + ".group_1181": ("ReposOwnerRepoPagesDeploymentsPostBody",), + ".group_1182": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), + ".group_1183": ("ReposOwnerRepoProjectsPostBody",), + ".group_1184": ("ReposOwnerRepoPropertiesValuesPatchBody",), + ".group_1185": ("ReposOwnerRepoPullsPostBody",), + ".group_1186": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), + ".group_1187": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), + ".group_1188": ("ReposOwnerRepoPullsPullNumberPatchBody",), + ".group_1189": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), + ".group_1190": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), + ".group_1191": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody", ), - ".group_1164": ("ReposOwnerRepoPullsPullNumberMergePutBody",), - ".group_1165": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), - ".group_1166": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), - ".group_1167": ( + ".group_1192": ("ReposOwnerRepoPullsPullNumberMergePutBody",), + ".group_1193": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), + ".group_1194": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), + ".group_1195": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0", ), - ".group_1168": ( + ".group_1196": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1", ), - ".group_1169": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), - ".group_1170": ( + ".group_1197": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), + ".group_1198": ( "ReposOwnerRepoPullsPullNumberReviewsPostBody", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", ), - ".group_1171": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), - ".group_1172": ( + ".group_1199": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), + ".group_1200": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody", ), - ".group_1173": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), - ".group_1174": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), - ".group_1175": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), - ".group_1176": ("ReposOwnerRepoReleasesPostBody",), - ".group_1177": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), - ".group_1178": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), - ".group_1179": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), - ".group_1180": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), - ".group_1181": ("ReposOwnerRepoRulesetsPostBody",), - ".group_1182": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), - ".group_1183": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), - ".group_1184": ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",), - ".group_1185": ("ReposOwnerRepoStatusesShaPostBody",), - ".group_1186": ("ReposOwnerRepoSubscriptionPutBody",), - ".group_1187": ("ReposOwnerRepoTagsProtectionPostBody",), - ".group_1188": ("ReposOwnerRepoTopicsPutBody",), - ".group_1189": ("ReposOwnerRepoTransferPostBody",), - ".group_1190": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), - ".group_1191": ( + ".group_1201": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), + ".group_1202": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), + ".group_1203": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), + ".group_1204": ("ReposOwnerRepoReleasesPostBody",), + ".group_1205": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), + ".group_1206": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), + ".group_1207": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), + ".group_1208": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), + ".group_1209": ("ReposOwnerRepoRulesetsPostBody",), + ".group_1210": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), + ".group_1211": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), + ".group_1212": ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",), + ".group_1213": ("ReposOwnerRepoStatusesShaPostBody",), + ".group_1214": ("ReposOwnerRepoSubscriptionPutBody",), + ".group_1215": ("ReposOwnerRepoTagsProtectionPostBody",), + ".group_1216": ("ReposOwnerRepoTopicsPutBody",), + ".group_1217": ("ReposOwnerRepoTransferPostBody",), + ".group_1218": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), + ".group_1219": ( "ScimV2OrganizationsOrgUsersPostBody", "ScimV2OrganizationsOrgUsersPostBodyPropName", "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", ), - ".group_1192": ( + ".group_1220": ( "ScimV2OrganizationsOrgUsersScimUserIdPutBody", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", ), - ".group_1193": ( + ".group_1221": ( "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", ), - ".group_1194": ("TeamsTeamIdPatchBody",), - ".group_1195": ("TeamsTeamIdDiscussionsPostBody",), - ".group_1196": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), - ".group_1197": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), - ".group_1198": ( + ".group_1222": ("TeamsTeamIdPatchBody",), + ".group_1223": ("TeamsTeamIdDiscussionsPostBody",), + ".group_1224": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), + ".group_1225": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), + ".group_1226": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1199": ( + ".group_1227": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1200": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), - ".group_1201": ("TeamsTeamIdMembershipsUsernamePutBody",), - ".group_1202": ("TeamsTeamIdProjectsProjectIdPutBody",), - ".group_1203": ("TeamsTeamIdProjectsProjectIdPutResponse403",), - ".group_1204": ("TeamsTeamIdReposOwnerRepoPutBody",), - ".group_1205": ( + ".group_1228": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), + ".group_1229": ("TeamsTeamIdMembershipsUsernamePutBody",), + ".group_1230": ("TeamsTeamIdProjectsProjectIdPutBody",), + ".group_1231": ("TeamsTeamIdProjectsProjectIdPutResponse403",), + ".group_1232": ("TeamsTeamIdReposOwnerRepoPutBody",), + ".group_1233": ( "TeamsTeamIdTeamSyncGroupMappingsPatchBody", "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", ), - ".group_1206": ("UserPatchBody",), - ".group_1207": ("UserCodespacesGetResponse200",), - ".group_1208": ("UserCodespacesPostBodyOneof0",), - ".group_1209": ( + ".group_1234": ("UserPatchBody",), + ".group_1235": ("UserCodespacesGetResponse200",), + ".group_1236": ("UserCodespacesPostBodyOneof0",), + ".group_1237": ( "UserCodespacesPostBodyOneof1", "UserCodespacesPostBodyOneof1PropPullRequest", ), - ".group_1210": ( + ".group_1238": ( "UserCodespacesSecretsGetResponse200", "CodespacesSecret", ), - ".group_1211": ("UserCodespacesSecretsSecretNamePutBody",), - ".group_1212": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), - ".group_1213": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1214": ("UserCodespacesCodespaceNamePatchBody",), - ".group_1215": ("UserCodespacesCodespaceNameMachinesGetResponse200",), - ".group_1216": ("UserCodespacesCodespaceNamePublishPostBody",), - ".group_1217": ("UserEmailVisibilityPatchBody",), - ".group_1218": ("UserEmailsPostBodyOneof0",), - ".group_1219": ("UserEmailsDeleteBodyOneof0",), - ".group_1220": ("UserGpgKeysPostBody",), - ".group_1221": ("UserInstallationsGetResponse200",), - ".group_1222": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), - ".group_1223": ("UserInteractionLimitsGetResponse200Anyof1",), - ".group_1224": ("UserKeysPostBody",), - ".group_1225": ("UserMembershipsOrgsOrgPatchBody",), - ".group_1226": ("UserMigrationsPostBody",), - ".group_1227": ("UserProjectsPostBody",), - ".group_1228": ("UserReposPostBody",), - ".group_1229": ("UserSocialAccountsPostBody",), - ".group_1230": ("UserSocialAccountsDeleteBody",), - ".group_1231": ("UserSshSigningKeysPostBody",), - ".group_1232": ( + ".group_1239": ("UserCodespacesSecretsSecretNamePutBody",), + ".group_1240": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), + ".group_1241": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1242": ("UserCodespacesCodespaceNamePatchBody",), + ".group_1243": ("UserCodespacesCodespaceNameMachinesGetResponse200",), + ".group_1244": ("UserCodespacesCodespaceNamePublishPostBody",), + ".group_1245": ("UserEmailVisibilityPatchBody",), + ".group_1246": ("UserEmailsPostBodyOneof0",), + ".group_1247": ("UserEmailsDeleteBodyOneof0",), + ".group_1248": ("UserGpgKeysPostBody",), + ".group_1249": ("UserInstallationsGetResponse200",), + ".group_1250": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), + ".group_1251": ("UserInteractionLimitsGetResponse200Anyof1",), + ".group_1252": ("UserKeysPostBody",), + ".group_1253": ("UserMembershipsOrgsOrgPatchBody",), + ".group_1254": ("UserMigrationsPostBody",), + ".group_1255": ("UserProjectsPostBody",), + ".group_1256": ("UserReposPostBody",), + ".group_1257": ("UserSocialAccountsPostBody",), + ".group_1258": ("UserSocialAccountsDeleteBody",), + ".group_1259": ("UserSshSigningKeysPostBody",), + ".group_1260": ( "UsersUsernameAttestationsSubjectDigestGetResponse200", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", "SigstoreBundle0", diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0002.py b/githubkit/versions/ghec_v2022_11_28/models/group_0002.py index b3fc247ac..96476de55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0002.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0002.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,36 +16,17 @@ from githubkit.utils import UNSET -class SimpleUser(GitHubModel): - """Simple User +class SecurityAdvisoryEpss(GitHubModel): + """SecurityAdvisoryEpss - A GitHub user. + The EPSS scores as calculated by the [Exploit Prediction Scoring + System](https://www.first.org/epss). """ - name: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - starred_at: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(SimpleUser) - -__all__ = ("SimpleUser",) + percentage: Missing[float] = Field(le=100.0, default=UNSET) + percentile: Missing[float] = Field(le=100.0, default=UNSET) + + +model_rebuild(SecurityAdvisoryEpss) + +__all__ = ("SecurityAdvisoryEpss",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0003.py b/githubkit/versions/ghec_v2022_11_28/models/group_0003.py index 5c621fcd5..b3fc247ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0003.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0003.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Union from pydantic import Field @@ -18,160 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities -from .group_0004 import GlobalAdvisoryPropCreditsItems +class SimpleUser(GitHubModel): + """Simple User -class GlobalAdvisory(GitHubModel): - """GlobalAdvisory - - A GitHub Security Advisory. - """ - - ghsa_id: str = Field(description="The GitHub Security Advisory ID.") - cve_id: Union[str, None] = Field( - description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - url: str = Field(description="The API URL for the advisory.") - html_url: str = Field(description="The URL for the advisory.") - repository_advisory_url: Union[str, None] = Field( - description="The API URL for the repository advisory." - ) - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: Union[Annotated[str, Field(max_length=65535)], None] = Field( - description="A detailed description of what the advisory entails." - ) - type: Literal["reviewed", "unreviewed", "malware"] = Field( - description="The type of advisory." - ) - severity: Literal["critical", "high", "medium", "low", "unknown"] = Field( - description="The severity of the advisory." - ) - source_code_location: Union[str, None] = Field( - description="The URL of the advisory's source code." - ) - identifiers: Union[list[GlobalAdvisoryPropIdentifiersItems], None] = Field() - references: Union[list[str], None] = Field() - published_at: datetime = Field( - description="The date and time of when the advisory was published, in ISO 8601 format." - ) - updated_at: datetime = Field( - description="The date and time of when the advisory was last updated, in ISO 8601 format." - ) - github_reviewed_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format." - ) - nvd_published_at: Union[datetime, None] = Field( - description="The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database." - ) - withdrawn_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was withdrawn, in ISO 8601 format." - ) - vulnerabilities: Union[list[Vulnerability], None] = Field( - description="The products and respective version ranges affected by the advisory." - ) - cvss: Union[GlobalAdvisoryPropCvss, None] = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: Union[list[GlobalAdvisoryPropCwesItems], None] = Field() - epss: Missing[Union[GlobalAdvisoryPropEpss, None]] = Field(default=UNSET) - credits_: Union[list[GlobalAdvisoryPropCreditsItems], None] = Field( - alias="credits", description="The users who contributed to the advisory." - ) - - -class GlobalAdvisoryPropIdentifiersItems(GitHubModel): - """GlobalAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") - value: str = Field(description="The identifier value.") - - -class GlobalAdvisoryPropCvss(GitHubModel): - """GlobalAdvisoryPropCvss""" - - vector_string: Union[str, None] = Field(description="The CVSS vector.") - score: Union[Annotated[float, Field(le=10.0)], None] = Field( - description="The CVSS score." - ) - - -class GlobalAdvisoryPropCwesItems(GitHubModel): - """GlobalAdvisoryPropCwesItems""" - - cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") - name: str = Field(description="The name of the CWE.") - - -class GlobalAdvisoryPropEpss(GitHubModel): - """GlobalAdvisoryPropEpss""" - - percentage: Missing[float] = Field(default=UNSET) - percentile: Missing[float] = Field(default=UNSET) - - -class Vulnerability(GitHubModel): - """Vulnerability - - A vulnerability describing the product and its affected versions within a GitHub - Security Advisory. + A GitHub user. """ - package: Union[VulnerabilityPropPackage, None] = Field( - description="The name of the package affected by the vulnerability." - ) - vulnerable_version_range: Union[str, None] = Field( - description="The range of the package versions affected by the vulnerability." - ) - first_patched_version: Union[str, None] = Field( - description="The package version that resolves the vulnerability." - ) - vulnerable_functions: Union[list[str], None] = Field( - description="The functions in the package that are affected by the vulnerability." - ) - - -class VulnerabilityPropPackage(GitHubModel): - """VulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Union[str, None] = Field( - description="The unique package name within its ecosystem." - ) - - -model_rebuild(GlobalAdvisory) -model_rebuild(GlobalAdvisoryPropIdentifiersItems) -model_rebuild(GlobalAdvisoryPropCvss) -model_rebuild(GlobalAdvisoryPropCwesItems) -model_rebuild(GlobalAdvisoryPropEpss) -model_rebuild(Vulnerability) -model_rebuild(VulnerabilityPropPackage) - -__all__ = ( - "GlobalAdvisory", - "GlobalAdvisoryPropCvss", - "GlobalAdvisoryPropCwesItems", - "GlobalAdvisoryPropEpss", - "GlobalAdvisoryPropIdentifiersItems", - "Vulnerability", - "VulnerabilityPropPackage", -) + name: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + login: str = Field() + id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + starred_at: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(SimpleUser) + +__all__ = ("SimpleUser",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0004.py b/githubkit/versions/ghec_v2022_11_28/models/group_0004.py index 23cadae10..1a33659e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0004.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0004.py @@ -9,33 +9,164 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0001 import CvssSeverities +from .group_0002 import SecurityAdvisoryEpss +from .group_0005 import GlobalAdvisoryPropCreditsItems -class GlobalAdvisoryPropCreditsItems(GitHubModel): - """GlobalAdvisoryPropCreditsItems""" +class GlobalAdvisory(GitHubModel): + """GlobalAdvisory - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", + A GitHub Security Advisory. + """ + + ghsa_id: str = Field(description="The GitHub Security Advisory ID.") + cve_id: Union[str, None] = Field( + description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + url: str = Field(description="The API URL for the advisory.") + html_url: str = Field(description="The URL for the advisory.") + repository_advisory_url: Union[str, None] = Field( + description="The API URL for the repository advisory." + ) + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: Union[Annotated[str, Field(max_length=65535)], None] = Field( + description="A detailed description of what the advisory entails." + ) + type: Literal["reviewed", "unreviewed", "malware"] = Field( + description="The type of advisory." + ) + severity: Literal["critical", "high", "medium", "low", "unknown"] = Field( + description="The severity of the advisory." + ) + source_code_location: Union[str, None] = Field( + description="The URL of the advisory's source code." + ) + identifiers: Union[list[GlobalAdvisoryPropIdentifiersItems], None] = Field() + references: Union[list[str], None] = Field() + published_at: datetime = Field( + description="The date and time of when the advisory was published, in ISO 8601 format." + ) + updated_at: datetime = Field( + description="The date and time of when the advisory was last updated, in ISO 8601 format." + ) + github_reviewed_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format." + ) + nvd_published_at: Union[datetime, None] = Field( + description="The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database." + ) + withdrawn_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was withdrawn, in ISO 8601 format." + ) + vulnerabilities: Union[list[Vulnerability], None] = Field( + description="The products and respective version ranges affected by the advisory." + ) + cvss: Union[GlobalAdvisoryPropCvss, None] = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + epss: Missing[Union[SecurityAdvisoryEpss, None]] = Field( + default=UNSET, + description="The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + ) + cwes: Union[list[GlobalAdvisoryPropCwesItems], None] = Field() + credits_: Union[list[GlobalAdvisoryPropCreditsItems], None] = Field( + alias="credits", description="The users who contributed to the advisory." + ) + + +class GlobalAdvisoryPropIdentifiersItems(GitHubModel): + """GlobalAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") + value: str = Field(description="The identifier value.") + + +class GlobalAdvisoryPropCvss(GitHubModel): + """GlobalAdvisoryPropCvss""" + + vector_string: Union[str, None] = Field(description="The CVSS vector.") + score: Union[Annotated[float, Field(le=10.0)], None] = Field( + description="The CVSS score." + ) + + +class GlobalAdvisoryPropCwesItems(GitHubModel): + """GlobalAdvisoryPropCwesItems""" + + cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") + name: str = Field(description="The name of the CWE.") + + +class Vulnerability(GitHubModel): + """Vulnerability + + A vulnerability describing the product and its affected versions within a GitHub + Security Advisory. + """ + + package: Union[VulnerabilityPropPackage, None] = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Union[str, None] = Field( + description="The range of the package versions affected by the vulnerability." + ) + first_patched_version: Union[str, None] = Field( + description="The package version that resolves the vulnerability." + ) + vulnerable_functions: Union[list[str], None] = Field( + description="The functions in the package that are affected by the vulnerability." + ) + + +class VulnerabilityPropPackage(GitHubModel): + """VulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", "other", - ] = Field(description="The type of credit the user is receiving.") + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Union[str, None] = Field( + description="The unique package name within its ecosystem." + ) -model_rebuild(GlobalAdvisoryPropCreditsItems) +model_rebuild(GlobalAdvisory) +model_rebuild(GlobalAdvisoryPropIdentifiersItems) +model_rebuild(GlobalAdvisoryPropCvss) +model_rebuild(GlobalAdvisoryPropCwesItems) +model_rebuild(Vulnerability) +model_rebuild(VulnerabilityPropPackage) -__all__ = ("GlobalAdvisoryPropCreditsItems",) +__all__ = ( + "GlobalAdvisory", + "GlobalAdvisoryPropCvss", + "GlobalAdvisoryPropCwesItems", + "GlobalAdvisoryPropIdentifiersItems", + "Vulnerability", + "VulnerabilityPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0005.py b/githubkit/versions/ghec_v2022_11_28/models/group_0005.py index 3cd3645dd..e9904f33d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0005.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0005.py @@ -9,25 +9,33 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class BasicError(GitHubModel): - """Basic Error - Basic Error - """ +class GlobalAdvisoryPropCreditsItems(GitHubModel): + """GlobalAdvisoryPropCreditsItems""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") -model_rebuild(BasicError) +model_rebuild(GlobalAdvisoryPropCreditsItems) -__all__ = ("BasicError",) +__all__ = ("GlobalAdvisoryPropCreditsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0006.py b/githubkit/versions/ghec_v2022_11_28/models/group_0006.py index 3a0a5796a..3cd3645dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0006.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0006.py @@ -16,17 +16,18 @@ from githubkit.utils import UNSET -class ValidationErrorSimple(GitHubModel): - """Validation Error Simple +class BasicError(GitHubModel): + """Basic Error - Validation Error Simple + Basic Error """ - message: str = Field() - documentation_url: str = Field() - errors: Missing[list[str]] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) -model_rebuild(ValidationErrorSimple) +model_rebuild(BasicError) -__all__ = ("ValidationErrorSimple",) +__all__ = ("BasicError",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0007.py b/githubkit/versions/ghec_v2022_11_28/models/group_0007.py index f287adffa..3a0a5796a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0007.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0007.py @@ -11,27 +11,22 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class IntegrationPropPermissions(ExtraGitHubModel): - """IntegrationPropPermissions +class ValidationErrorSimple(GitHubModel): + """Validation Error Simple - The set of permissions for the GitHub app - - Examples: - {'issues': 'read', 'deployments': 'write'} + Validation Error Simple """ - issues: Missing[str] = Field(default=UNSET) - checks: Missing[str] = Field(default=UNSET) - metadata: Missing[str] = Field(default=UNSET) - contents: Missing[str] = Field(default=UNSET) - deployments: Missing[str] = Field(default=UNSET) + message: str = Field() + documentation_url: str = Field() + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(IntegrationPropPermissions) +model_rebuild(ValidationErrorSimple) -__all__ = ("IntegrationPropPermissions",) +__all__ = ("ValidationErrorSimple",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0008.py b/githubkit/versions/ghec_v2022_11_28/models/group_0008.py index 6d3bf9586..08f537dcb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0008.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0008.py @@ -18,45 +18,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0007 import IntegrationPropPermissions +class Enterprise(GitHubModel): + """Enterprise -class Integration(GitHubModel): - """GitHub app - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + An enterprise on GitHub. """ - id: int = Field(description="Unique identifier of the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the enterprise." ) - node_id: str = Field() - client_id: Missing[str] = Field(default=UNSET) - owner: Union[None, SimpleUser] = Field() - name: str = Field(description="The name of the GitHub app") - description: Union[str, None] = Field() - external_url: str = Field() html_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: IntegrationPropPermissions = Field( - description="The set of permissions for the GitHub app" + website_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The enterprise's website URL." ) - events: list[str] = Field(description="The list of events for the GitHub app") - installations_count: Missing[int] = Field( - default=UNSET, - description="The number of installations associated with the GitHub app", - ) - client_secret: Missing[str] = Field(default=UNSET) - webhook_secret: Missing[Union[str, None]] = Field(default=UNSET) - pem: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the enterprise") + node_id: str = Field() + name: str = Field(description="The name of the enterprise.") + slug: str = Field(description="The slug url identifier for the enterprise.") + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + avatar_url: str = Field() -model_rebuild(Integration) +model_rebuild(Enterprise) -__all__ = ("Integration",) +__all__ = ("Enterprise",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0009.py b/githubkit/versions/ghec_v2022_11_28/models/group_0009.py index c400d11b1..f287adffa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0009.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0009.py @@ -9,35 +9,29 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class WebhookConfig(GitHubModel): - """Webhook Configuration +class IntegrationPropPermissions(ExtraGitHubModel): + """IntegrationPropPermissions + + The set of permissions for the GitHub app - Configuration object of the webhook + Examples: + {'issues': 'read', 'deployments': 'write'} """ - 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) + issues: Missing[str] = Field(default=UNSET) + checks: Missing[str] = Field(default=UNSET) + metadata: Missing[str] = Field(default=UNSET) + contents: Missing[str] = Field(default=UNSET) + deployments: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookConfig) +model_rebuild(IntegrationPropPermissions) -__all__ = ("WebhookConfig",) +__all__ = ("IntegrationPropPermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0010.py b/githubkit/versions/ghec_v2022_11_28/models/group_0010.py index 158388e9d..c5a0ce797 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0010.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0010.py @@ -18,43 +18,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0008 import Enterprise +from .group_0009 import IntegrationPropPermissions -class HookDeliveryItem(GitHubModel): - """Simple webhook delivery - Delivery made by a webhook, without request and response information. +class Integration(GitHubModel): + """GitHub app + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - id: int = Field(description="Unique identifier of the webhook delivery.") - guid: str = Field( - description="Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event)." - ) - delivered_at: datetime = Field( - description="Time when the webhook delivery occurred." - ) - redelivery: bool = Field( - description="Whether the webhook delivery is a redelivery." - ) - duration: float = Field(description="Time spent delivering.") - status: str = Field( - description="Describes the response returned after attempting the delivery." - ) - status_code: int = Field(description="Status code received when delivery was made.") - event: str = Field(description="The event that triggered the delivery.") - action: Union[str, None] = Field( - description="The type of activity for the event that triggered the delivery." - ) - installation_id: Union[int, None] = Field( - description="The id of the GitHub App installation associated with this event." + id: int = Field(description="Unique identifier of the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - repository_id: Union[int, None] = Field( - description="The id of the repository associated with this event." + node_id: str = Field() + client_id: Missing[str] = Field(default=UNSET) + owner: Union[SimpleUser, Enterprise] = Field() + name: str = Field(description="The name of the GitHub app") + description: Union[str, None] = Field() + external_url: str = Field() + html_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: IntegrationPropPermissions = Field( + description="The set of permissions for the GitHub app" ) - throttled_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Time when the webhook delivery was throttled." + events: list[str] = Field(description="The list of events for the GitHub app") + installations_count: Missing[int] = Field( + default=UNSET, + description="The number of installations associated with the GitHub app", ) + client_secret: Missing[str] = Field(default=UNSET) + webhook_secret: Missing[Union[str, None]] = Field(default=UNSET) + pem: Missing[str] = Field(default=UNSET) -model_rebuild(HookDeliveryItem) +model_rebuild(Integration) -__all__ = ("HookDeliveryItem",) +__all__ = ("Integration",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0011.py b/githubkit/versions/ghec_v2022_11_28/models/group_0011.py index 8097b13ec..c400d11b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0011.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0011.py @@ -18,20 +18,26 @@ from githubkit.utils import UNSET -class ScimError(GitHubModel): - """Scim Error +class WebhookConfig(GitHubModel): + """Webhook Configuration - Scim Error + Configuration object of the webhook """ - message: Missing[Union[str, None]] = Field(default=UNSET) - documentation_url: Missing[Union[str, None]] = Field(default=UNSET) - detail: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[int] = Field(default=UNSET) - scim_type: Missing[Union[str, None]] = Field(default=UNSET, alias="scimType") - schemas: Missing[list[str]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ScimError) +model_rebuild(WebhookConfig) -__all__ = ("ScimError",) +__all__ = ("WebhookConfig",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0012.py b/githubkit/versions/ghec_v2022_11_28/models/group_0012.py index d347d5d9a..158388e9d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0012.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0012.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -18,32 +19,42 @@ from githubkit.utils import UNSET -class ValidationError(GitHubModel): - """Validation Error +class HookDeliveryItem(GitHubModel): + """Simple webhook delivery - Validation Error + Delivery made by a webhook, without request and response information. """ - message: str = Field() - documentation_url: str = Field() - errors: Missing[list[ValidationErrorPropErrorsItems]] = Field(default=UNSET) - - -class ValidationErrorPropErrorsItems(GitHubModel): - """ValidationErrorPropErrorsItems""" - - resource: Missing[str] = Field(default=UNSET) - field: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - code: str = Field() - index: Missing[int] = Field(default=UNSET) - value: Missing[Union[str, None, int, None, list[str], None]] = Field(default=UNSET) - - -model_rebuild(ValidationError) -model_rebuild(ValidationErrorPropErrorsItems) - -__all__ = ( - "ValidationError", - "ValidationErrorPropErrorsItems", -) + id: int = Field(description="Unique identifier of the webhook delivery.") + guid: str = Field( + description="Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event)." + ) + delivered_at: datetime = Field( + description="Time when the webhook delivery occurred." + ) + redelivery: bool = Field( + description="Whether the webhook delivery is a redelivery." + ) + duration: float = Field(description="Time spent delivering.") + status: str = Field( + description="Describes the response returned after attempting the delivery." + ) + status_code: int = Field(description="Status code received when delivery was made.") + event: str = Field(description="The event that triggered the delivery.") + action: Union[str, None] = Field( + description="The type of activity for the event that triggered the delivery." + ) + installation_id: Union[int, None] = Field( + description="The id of the GitHub App installation associated with this event." + ) + repository_id: Union[int, None] = Field( + description="The id of the repository associated with this event." + ) + throttled_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Time when the webhook delivery was throttled." + ) + + +model_rebuild(HookDeliveryItem) + +__all__ = ("HookDeliveryItem",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0013.py b/githubkit/versions/ghec_v2022_11_28/models/group_0013.py index 68fb1bd10..8097b13ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0013.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0013.py @@ -9,106 +9,29 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class HookDelivery(GitHubModel): - """Webhook delivery +class ScimError(GitHubModel): + """Scim Error - Delivery made by a webhook. + Scim Error """ - id: int = Field(description="Unique identifier of the delivery.") - guid: str = Field( - description="Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event)." - ) - delivered_at: datetime = Field(description="Time when the delivery was delivered.") - redelivery: bool = Field(description="Whether the delivery is a redelivery.") - duration: float = Field(description="Time spent delivering.") - status: str = Field( - description="Description of the status of the attempted delivery" - ) - status_code: int = Field(description="Status code received when delivery was made.") - event: str = Field(description="The event that triggered the delivery.") - action: Union[str, None] = Field( - description="The type of activity for the event that triggered the delivery." - ) - installation_id: Union[int, None] = Field( - description="The id of the GitHub App installation associated with this event." - ) - repository_id: Union[int, None] = Field( - description="The id of the repository associated with this event." - ) - throttled_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Time when the webhook delivery was throttled." - ) - url: Missing[str] = Field( - default=UNSET, description="The URL target of the delivery." - ) - request: HookDeliveryPropRequest = Field() - response: HookDeliveryPropResponse = Field() + message: Missing[Union[str, None]] = Field(default=UNSET) + documentation_url: Missing[Union[str, None]] = Field(default=UNSET) + detail: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[int] = Field(default=UNSET) + scim_type: Missing[Union[str, None]] = Field(default=UNSET, alias="scimType") + schemas: Missing[list[str]] = Field(default=UNSET) -class HookDeliveryPropRequest(GitHubModel): - """HookDeliveryPropRequest""" +model_rebuild(ScimError) - headers: Union[HookDeliveryPropRequestPropHeaders, None] = Field( - description="The request headers sent with the webhook delivery." - ) - payload: Union[HookDeliveryPropRequestPropPayload, None] = Field( - description="The webhook payload." - ) - - -class HookDeliveryPropRequestPropHeaders(ExtraGitHubModel): - """HookDeliveryPropRequestPropHeaders - - The request headers sent with the webhook delivery. - """ - - -class HookDeliveryPropRequestPropPayload(ExtraGitHubModel): - """HookDeliveryPropRequestPropPayload - - The webhook payload. - """ - - -class HookDeliveryPropResponse(GitHubModel): - """HookDeliveryPropResponse""" - - headers: Union[HookDeliveryPropResponsePropHeaders, None] = Field( - description="The response headers received when the delivery was made." - ) - payload: Union[str, None] = Field(description="The response payload received.") - - -class HookDeliveryPropResponsePropHeaders(ExtraGitHubModel): - """HookDeliveryPropResponsePropHeaders - - The response headers received when the delivery was made. - """ - - -model_rebuild(HookDelivery) -model_rebuild(HookDeliveryPropRequest) -model_rebuild(HookDeliveryPropRequestPropHeaders) -model_rebuild(HookDeliveryPropRequestPropPayload) -model_rebuild(HookDeliveryPropResponse) -model_rebuild(HookDeliveryPropResponsePropHeaders) - -__all__ = ( - "HookDelivery", - "HookDeliveryPropRequest", - "HookDeliveryPropRequestPropHeaders", - "HookDeliveryPropRequestPropPayload", - "HookDeliveryPropResponse", - "HookDeliveryPropResponsePropHeaders", -) +__all__ = ("ScimError",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0014.py b/githubkit/versions/ghec_v2022_11_28/models/group_0014.py index 08f537dcb..d347d5d9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0014.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0014.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -19,28 +18,32 @@ from githubkit.utils import UNSET -class Enterprise(GitHubModel): - """Enterprise +class ValidationError(GitHubModel): + """Validation Error - An enterprise on GitHub. + Validation Error """ - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the enterprise." - ) - html_url: str = Field() - website_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The enterprise's website URL." - ) - id: int = Field(description="Unique identifier of the enterprise") - node_id: str = Field() - name: str = Field(description="The name of the enterprise.") - slug: str = Field(description="The slug url identifier for the enterprise.") - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - avatar_url: str = Field() - - -model_rebuild(Enterprise) - -__all__ = ("Enterprise",) + message: str = Field() + documentation_url: str = Field() + errors: Missing[list[ValidationErrorPropErrorsItems]] = Field(default=UNSET) + + +class ValidationErrorPropErrorsItems(GitHubModel): + """ValidationErrorPropErrorsItems""" + + resource: Missing[str] = Field(default=UNSET) + field: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + code: str = Field() + index: Missing[int] = Field(default=UNSET) + value: Missing[Union[str, None, int, None, list[str], None]] = Field(default=UNSET) + + +model_rebuild(ValidationError) +model_rebuild(ValidationErrorPropErrorsItems) + +__all__ = ( + "ValidationError", + "ValidationErrorPropErrorsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0015.py b/githubkit/versions/ghec_v2022_11_28/models/group_0015.py index 62e357419..68fb1bd10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0015.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0015.py @@ -14,27 +14,101 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0014 import Enterprise +class HookDelivery(GitHubModel): + """Webhook delivery -class IntegrationInstallationRequest(GitHubModel): - """Integration Installation Request + Delivery made by a webhook. + """ + + id: int = Field(description="Unique identifier of the delivery.") + guid: str = Field( + description="Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event)." + ) + delivered_at: datetime = Field(description="Time when the delivery was delivered.") + redelivery: bool = Field(description="Whether the delivery is a redelivery.") + duration: float = Field(description="Time spent delivering.") + status: str = Field( + description="Description of the status of the attempted delivery" + ) + status_code: int = Field(description="Status code received when delivery was made.") + event: str = Field(description="The event that triggered the delivery.") + action: Union[str, None] = Field( + description="The type of activity for the event that triggered the delivery." + ) + installation_id: Union[int, None] = Field( + description="The id of the GitHub App installation associated with this event." + ) + repository_id: Union[int, None] = Field( + description="The id of the repository associated with this event." + ) + throttled_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Time when the webhook delivery was throttled." + ) + url: Missing[str] = Field( + default=UNSET, description="The URL target of the delivery." + ) + request: HookDeliveryPropRequest = Field() + response: HookDeliveryPropResponse = Field() + + +class HookDeliveryPropRequest(GitHubModel): + """HookDeliveryPropRequest""" + + headers: Union[HookDeliveryPropRequestPropHeaders, None] = Field( + description="The request headers sent with the webhook delivery." + ) + payload: Union[HookDeliveryPropRequestPropPayload, None] = Field( + description="The webhook payload." + ) - Request to install an integration on a target + +class HookDeliveryPropRequestPropHeaders(ExtraGitHubModel): + """HookDeliveryPropRequestPropHeaders + + The request headers sent with the webhook delivery. """ - id: int = Field(description="Unique identifier of the request installation.") - node_id: Missing[str] = Field(default=UNSET) - account: Union[SimpleUser, Enterprise] = Field() - requester: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: datetime = Field() + +class HookDeliveryPropRequestPropPayload(ExtraGitHubModel): + """HookDeliveryPropRequestPropPayload + + The webhook payload. + """ + + +class HookDeliveryPropResponse(GitHubModel): + """HookDeliveryPropResponse""" + + headers: Union[HookDeliveryPropResponsePropHeaders, None] = Field( + description="The response headers received when the delivery was made." + ) + payload: Union[str, None] = Field(description="The response payload received.") + + +class HookDeliveryPropResponsePropHeaders(ExtraGitHubModel): + """HookDeliveryPropResponsePropHeaders + + The response headers received when the delivery was made. + """ -model_rebuild(IntegrationInstallationRequest) +model_rebuild(HookDelivery) +model_rebuild(HookDeliveryPropRequest) +model_rebuild(HookDeliveryPropRequestPropHeaders) +model_rebuild(HookDeliveryPropRequestPropPayload) +model_rebuild(HookDeliveryPropResponse) +model_rebuild(HookDeliveryPropResponsePropHeaders) -__all__ = ("IntegrationInstallationRequest",) +__all__ = ( + "HookDelivery", + "HookDeliveryPropRequest", + "HookDeliveryPropRequestPropHeaders", + "HookDeliveryPropRequestPropPayload", + "HookDeliveryPropResponse", + "HookDeliveryPropResponsePropHeaders", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0016.py b/githubkit/versions/ghec_v2022_11_28/models/group_0016.py index bdbe051a1..55f20d66b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0016.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0016.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,213 +18,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0008 import Enterprise -class AppPermissions(GitHubModel): - """App Permissions - The permissions granted to the user access token. +class IntegrationInstallationRequest(GitHubModel): + """Integration Installation Request - Examples: - {'contents': 'read', 'issues': 'read', 'deployments': 'write', 'single_file': - 'read'} + Request to install an integration on a target """ - actions: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.", - ) - administration: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.", - ) - checks: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for checks on code.", - ) - codespaces: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to create, edit, delete, and list Codespaces.", - ) - contents: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.", - ) - dependabot_secrets: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The leve of permission to grant the access token to manage Dependabot secrets.", - ) - deployments: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for deployments and deployment statuses.", - ) - environments: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for managing repository environments.", - ) - issues: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.", - ) - metadata: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.", - ) - packages: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for packages published to GitHub Packages.", - ) - pages: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.", - ) - pull_requests: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.", - ) - repository_custom_properties: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property.", - ) - repository_hooks: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage the post-receive hooks for a repository.", - ) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage repository projects, columns, and cards.", - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage secret scanning alerts.", - ) - secrets: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage repository secrets.", - ) - security_events: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage security events like code scanning alerts.", - ) - single_file: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage just a single file.", - ) - statuses: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for commit statuses.", - ) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage Dependabot alerts.", - ) - workflows: Missing[Literal["write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to update GitHub Actions workflow files.", - ) - members: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for organization teams and members.", - ) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage access to an organization.", - ) - organization_custom_roles: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for custom repository roles management.", - ) - organization_custom_org_roles: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for custom organization roles management.", - ) - organization_custom_properties: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for custom property management.", - ) - organization_copilot_seat_management: Missing[Literal["write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change.", - ) - organization_announcement_banners: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage announcement banners for an organization.", - ) - organization_events: Missing[Literal["read"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view events triggered by an activity in an organization.", - ) - organization_hooks: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage the post-receive hooks for an organization.", - ) - organization_personal_access_tokens: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization.", - ) - organization_personal_access_token_requests: Missing[Literal["read", "write"]] = ( - Field( - default=UNSET, - description="The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization.", - ) - ) - organization_plan: Missing[Literal["read"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for viewing an organization's plan.", - ) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage organization projects and projects public preview (where available).", - ) - organization_packages: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for organization packages published to GitHub Packages.", - ) - organization_secrets: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage organization secrets.", - ) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.", - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage users blocked by the organization.", - ) - team_discussions: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage team discussions and related comments.", - ) - email_addresses: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage the email addresses belonging to a user.", - ) - followers: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage the followers belonging to a user.", - ) - git_ssh_keys: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage git SSH keys.", - ) - gpg_keys: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage GPG keys belonging to a user.", - ) - interaction_limits: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage interaction limits on a repository.", - ) - profile: Missing[Literal["write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage the profile settings belonging to a user.", - ) - starring: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to list and manage repositories a user is starring.", - ) + id: int = Field(description="Unique identifier of the request installation.") + node_id: Missing[str] = Field(default=UNSET) + account: Union[SimpleUser, Enterprise] = Field() + requester: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: datetime = Field() -model_rebuild(AppPermissions) +model_rebuild(IntegrationInstallationRequest) -__all__ = ("AppPermissions",) +__all__ = ("IntegrationInstallationRequest",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0017.py b/githubkit/versions/ghec_v2022_11_28/models/group_0017.py index eeb506dc5..bdbe051a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0017.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0017.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,46 +17,213 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0014 import Enterprise -from .group_0016 import AppPermissions +class AppPermissions(GitHubModel): + """App Permissions -class Installation(GitHubModel): - """Installation + The permissions granted to the user access token. - Installation + Examples: + {'contents': 'read', 'issues': 'read', 'deployments': 'write', 'single_file': + 'read'} """ - id: int = Field(description="The ID of the installation.") - account: Union[SimpleUser, Enterprise, None] = Field() - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - access_tokens_url: str = Field() - repositories_url: str = Field() - html_url: str = Field() - app_id: int = Field() - target_id: int = Field( - description="The ID of the user or organization this token is being scoped to." - ) - target_type: str = Field() - permissions: AppPermissions = Field( - title="App Permissions", - description="The permissions granted to the user access token.", - ) - events: list[str] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - single_file_name: Union[str, None] = Field() - has_multiple_single_files: Missing[bool] = Field(default=UNSET) - single_file_paths: Missing[list[str]] = Field(default=UNSET) - app_slug: str = Field() - suspended_by: Union[None, SimpleUser] = Field() - suspended_at: Union[datetime, None] = Field() - contact_email: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(Installation) - -__all__ = ("Installation",) + actions: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.", + ) + administration: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.", + ) + checks: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for checks on code.", + ) + codespaces: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to create, edit, delete, and list Codespaces.", + ) + contents: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.", + ) + dependabot_secrets: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The leve of permission to grant the access token to manage Dependabot secrets.", + ) + deployments: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for deployments and deployment statuses.", + ) + environments: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for managing repository environments.", + ) + issues: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.", + ) + metadata: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.", + ) + packages: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for packages published to GitHub Packages.", + ) + pages: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.", + ) + pull_requests: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.", + ) + repository_custom_properties: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property.", + ) + repository_hooks: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage the post-receive hooks for a repository.", + ) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage repository projects, columns, and cards.", + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage secret scanning alerts.", + ) + secrets: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage repository secrets.", + ) + security_events: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage security events like code scanning alerts.", + ) + single_file: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage just a single file.", + ) + statuses: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for commit statuses.", + ) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage Dependabot alerts.", + ) + workflows: Missing[Literal["write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to update GitHub Actions workflow files.", + ) + members: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for organization teams and members.", + ) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage access to an organization.", + ) + organization_custom_roles: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for custom repository roles management.", + ) + organization_custom_org_roles: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for custom organization roles management.", + ) + organization_custom_properties: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for custom property management.", + ) + organization_copilot_seat_management: Missing[Literal["write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change.", + ) + organization_announcement_banners: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage announcement banners for an organization.", + ) + organization_events: Missing[Literal["read"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view events triggered by an activity in an organization.", + ) + organization_hooks: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage the post-receive hooks for an organization.", + ) + organization_personal_access_tokens: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization.", + ) + organization_personal_access_token_requests: Missing[Literal["read", "write"]] = ( + Field( + default=UNSET, + description="The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization.", + ) + ) + organization_plan: Missing[Literal["read"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for viewing an organization's plan.", + ) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage organization projects and projects public preview (where available).", + ) + organization_packages: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for organization packages published to GitHub Packages.", + ) + organization_secrets: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage organization secrets.", + ) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.", + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage users blocked by the organization.", + ) + team_discussions: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage team discussions and related comments.", + ) + email_addresses: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage the email addresses belonging to a user.", + ) + followers: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage the followers belonging to a user.", + ) + git_ssh_keys: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage git SSH keys.", + ) + gpg_keys: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage GPG keys belonging to a user.", + ) + interaction_limits: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage interaction limits on a repository.", + ) + profile: Missing[Literal["write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage the profile settings belonging to a user.", + ) + starring: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to list and manage repositories a user is starring.", + ) + + +model_rebuild(AppPermissions) + +__all__ = ("AppPermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0018.py b/githubkit/versions/ghec_v2022_11_28/models/group_0018.py index 4c49d07bf..82c855392 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0018.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0018.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,21 +18,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0008 import Enterprise +from .group_0017 import AppPermissions -class LicenseSimple(GitHubModel): - """License Simple - License Simple - """ - - key: str = Field() - name: str = Field() - url: Union[str, None] = Field() - spdx_id: Union[str, None] = Field() - node_id: str = Field() - html_url: Missing[str] = Field(default=UNSET) +class Installation(GitHubModel): + """Installation + Installation + """ -model_rebuild(LicenseSimple) - -__all__ = ("LicenseSimple",) + id: int = Field(description="The ID of the installation.") + account: Union[SimpleUser, Enterprise, None] = Field() + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" + ) + access_tokens_url: str = Field() + repositories_url: str = Field() + html_url: str = Field() + app_id: int = Field() + target_id: int = Field( + description="The ID of the user or organization this token is being scoped to." + ) + target_type: str = Field() + permissions: AppPermissions = Field( + title="App Permissions", + description="The permissions granted to the user access token.", + ) + events: list[str] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + single_file_name: Union[str, None] = Field() + has_multiple_single_files: Missing[bool] = Field(default=UNSET) + single_file_paths: Missing[list[str]] = Field(default=UNSET) + app_slug: str = Field() + suspended_by: Union[None, SimpleUser] = Field() + suspended_at: Union[datetime, None] = Field() + contact_email: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(Installation) + +__all__ = ("Installation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0019.py b/githubkit/versions/ghec_v2022_11_28/models/group_0019.py index edb494eca..4c49d07bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0019.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0019.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,189 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0018 import LicenseSimple +class LicenseSimple(GitHubModel): + """License Simple -class Repository(GitHubModel): - """Repository - - A repository on GitHub. + License Simple """ - id: int = Field(description="Unique identifier of the repository") + key: str = Field() + name: str = Field() + url: Union[str, None] = Field() + spdx_id: Union[str, None] = Field() node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - forks: int = Field() - permissions: Missing[RepositoryPropPermissions] = Field(default=UNSET) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field( - default=False, description="Whether the repository is private or public." - ) - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - starred_at: Missing[str] = Field(default=UNSET) - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether anonymous git access is enabled for this repository", - ) - - -class RepositoryPropPermissions(GitHubModel): - """RepositoryPropPermissions""" - - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) -model_rebuild(Repository) -model_rebuild(RepositoryPropPermissions) +model_rebuild(LicenseSimple) -__all__ = ( - "Repository", - "RepositoryPropPermissions", -) +__all__ = ("LicenseSimple",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0020.py b/githubkit/versions/ghec_v2022_11_28/models/group_0020.py index 84d6f5bf7..4db4f77ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0020.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0020.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,30 +18,189 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0016 import AppPermissions -from .group_0019 import Repository +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple -class InstallationToken(GitHubModel): - """Installation Token +class Repository(GitHubModel): + """Repository - Authentication token for a GitHub App installed on a user or org. + A repository on GitHub. """ - token: str = Field() - expires_at: str = Field() - permissions: Missing[AppPermissions] = Field( + id: int = Field(description="Unique identifier of the repository") + node_id: str = Field() + name: str = Field(description="The name of the repository.") + full_name: str = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + forks: int = Field() + permissions: Missing[RepositoryPropPermissions] = Field(default=UNSET) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field( + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + ) + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + description="The repository visibility: public, private, or internal.", ) - repository_selection: Missing[Literal["all", "selected"]] = Field(default=UNSET) - repositories: Missing[list[Repository]] = Field(default=UNSET) - single_file: Missing[str] = Field(default=UNSET) - has_multiple_single_files: Missing[bool] = Field(default=UNSET) - single_file_paths: Missing[list[str]] = Field(default=UNSET) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + starred_at: Missing[str] = Field(default=UNSET) + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether anonymous git access is enabled for this repository", + ) + + +class RepositoryPropPermissions(GitHubModel): + """RepositoryPropPermissions""" + + admin: bool = Field() + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) -model_rebuild(InstallationToken) +model_rebuild(Repository) +model_rebuild(RepositoryPropPermissions) -__all__ = ("InstallationToken",) +__all__ = ( + "Repository", + "RepositoryPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0021.py b/githubkit/versions/ghec_v2022_11_28/models/group_0021.py index 2be05670d..18250d0ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0021.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0021.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,27 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0016 import AppPermissions +from .group_0017 import AppPermissions +from .group_0020 import Repository -class ScopedInstallation(GitHubModel): - """Scoped Installation""" +class InstallationToken(GitHubModel): + """Installation Token - permissions: AppPermissions = Field( + Authentication token for a GitHub App installed on a user or org. + """ + + token: str = Field() + expires_at: str = Field() + permissions: Missing[AppPermissions] = Field( + default=UNSET, title="App Permissions", description="The permissions granted to the user access token.", ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - single_file_name: Union[str, None] = Field() + repository_selection: Missing[Literal["all", "selected"]] = Field(default=UNSET) + repositories: Missing[list[Repository]] = Field(default=UNSET) + single_file: Missing[str] = Field(default=UNSET) has_multiple_single_files: Missing[bool] = Field(default=UNSET) single_file_paths: Missing[list[str]] = Field(default=UNSET) - repositories_url: str = Field() - account: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(ScopedInstallation) +model_rebuild(InstallationToken) -__all__ = ("ScopedInstallation",) +__all__ = ("InstallationToken",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0022.py b/githubkit/versions/ghec_v2022_11_28/models/group_0022.py index 9cd38aea3..0567361e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0022.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0022.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,47 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0021 import ScopedInstallation +from .group_0003 import SimpleUser +from .group_0017 import AppPermissions -class Authorization(GitHubModel): - """Authorization +class ScopedInstallation(GitHubModel): + """Scoped Installation""" - The authorization for an OAuth app, GitHub App, or a Personal Access Token. - """ - - id: int = Field() - url: str = Field() - scopes: Union[list[str], None] = Field( - description="A list of scopes that this authorization is in." + permissions: AppPermissions = Field( + title="App Permissions", + description="The permissions granted to the user access token.", ) - token: str = Field() - token_last_eight: Union[str, None] = Field() - hashed_token: Union[str, None] = Field() - app: AuthorizationPropApp = Field() - note: Union[str, None] = Field() - note_url: Union[str, None] = Field() - updated_at: datetime = Field() - created_at: datetime = Field() - fingerprint: Union[str, None] = Field() - user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - installation: Missing[Union[None, ScopedInstallation]] = Field(default=UNSET) - expires_at: Union[datetime, None] = Field() - - -class AuthorizationPropApp(GitHubModel): - """AuthorizationPropApp""" - - client_id: str = Field() - name: str = Field() - url: str = Field() + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" + ) + single_file_name: Union[str, None] = Field() + has_multiple_single_files: Missing[bool] = Field(default=UNSET) + single_file_paths: Missing[list[str]] = Field(default=UNSET) + repositories_url: str = Field() + account: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(Authorization) -model_rebuild(AuthorizationPropApp) +model_rebuild(ScopedInstallation) -__all__ = ( - "Authorization", - "AuthorizationPropApp", -) +__all__ = ("ScopedInstallation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0023.py b/githubkit/versions/ghec_v2022_11_28/models/group_0023.py index d3be8c786..4438f1145 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0023.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0023.py @@ -9,27 +9,56 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0022 import ScopedInstallation -class SimpleClassroomRepository(GitHubModel): - """Simple Classroom Repository +class Authorization(GitHubModel): + """Authorization - A GitHub repository view for Classroom + The authorization for an OAuth app, GitHub App, or a Personal Access Token. """ - id: int = Field(description="A unique identifier of the repository.") - full_name: str = Field( - description="The full, globally unique name of the repository." + id: int = Field() + url: str = Field() + scopes: Union[list[str], None] = Field( + description="A list of scopes that this authorization is in." ) - html_url: str = Field(description="The URL to view the repository on GitHub.com.") - node_id: str = Field(description="The GraphQL identifier of the repository.") - private: bool = Field(description="Whether the repository is private.") - default_branch: str = Field(description="The default branch for the repository.") + token: str = Field() + token_last_eight: Union[str, None] = Field() + hashed_token: Union[str, None] = Field() + app: AuthorizationPropApp = Field() + note: Union[str, None] = Field() + note_url: Union[str, None] = Field() + updated_at: datetime = Field() + created_at: datetime = Field() + fingerprint: Union[str, None] = Field() + user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + installation: Missing[Union[None, ScopedInstallation]] = Field(default=UNSET) + expires_at: Union[datetime, None] = Field() + + +class AuthorizationPropApp(GitHubModel): + """AuthorizationPropApp""" + + client_id: str = Field() + name: str = Field() + url: str = Field() -model_rebuild(SimpleClassroomRepository) +model_rebuild(Authorization) +model_rebuild(AuthorizationPropApp) -__all__ = ("SimpleClassroomRepository",) +__all__ = ( + "Authorization", + "AuthorizationPropApp", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0024.py b/githubkit/versions/ghec_v2022_11_28/models/group_0024.py index c8fefba16..d3be8c786 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0024.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0024.py @@ -9,109 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0023 import SimpleClassroomRepository - -class ClassroomAssignment(GitHubModel): - """Classroom Assignment +class SimpleClassroomRepository(GitHubModel): + """Simple Classroom Repository - A GitHub Classroom assignment + A GitHub repository view for Classroom """ - id: int = Field(description="Unique identifier of the repository.") - public_repo: bool = Field( - description="Whether an accepted assignment creates a public repository." - ) - title: str = Field(description="Assignment title.") - type: Literal["individual", "group"] = Field( - description="Whether it's a group assignment or individual assignment." - ) - invite_link: str = Field( - description="The link that a student can use to accept the assignment." - ) - invitations_enabled: bool = Field( - description="Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment." - ) - slug: str = Field(description="Sluggified name of the assignment.") - students_are_repo_admins: bool = Field( - description="Whether students are admins on created repository when a student accepts the assignment." - ) - feedback_pull_requests_enabled: bool = Field( - description="Whether feedback pull request will be created when a student accepts the assignment." - ) - max_teams: Union[int, None] = Field( - description="The maximum allowable teams for the assignment." - ) - max_members: Union[int, None] = Field( - description="The maximum allowable members per team." - ) - editor: str = Field(description="The selected editor for the assignment.") - accepted: int = Field( - description="The number of students that have accepted the assignment." - ) - submitted: int = Field( - description="The number of students that have submitted the assignment." - ) - passing: int = Field( - description="The number of students that have passed the assignment." - ) - language: str = Field( - description="The programming language used in the assignment." - ) - deadline: Union[datetime, None] = Field( - description="The time at which the assignment is due." + id: int = Field(description="A unique identifier of the repository.") + full_name: str = Field( + description="The full, globally unique name of the repository." ) - starter_code_repository: SimpleClassroomRepository = Field( - title="Simple Classroom Repository", - description="A GitHub repository view for Classroom", - ) - classroom: Classroom = Field( - title="Classroom", description="A GitHub Classroom classroom" - ) - - -class Classroom(GitHubModel): - """Classroom - - A GitHub Classroom classroom - """ - - id: int = Field(description="Unique identifier of the classroom.") - name: str = Field(description="The name of the classroom.") - archived: bool = Field(description="Whether classroom is archived.") - organization: SimpleClassroomOrganization = Field( - title="Organization Simple for Classroom", description="A GitHub organization." - ) - url: str = Field(description="The URL of the classroom on GitHub Classroom.") - - -class SimpleClassroomOrganization(GitHubModel): - """Organization Simple for Classroom - - A GitHub organization. - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - html_url: str = Field() - name: Union[str, None] = Field() - avatar_url: str = Field() + html_url: str = Field(description="The URL to view the repository on GitHub.com.") + node_id: str = Field(description="The GraphQL identifier of the repository.") + private: bool = Field(description="Whether the repository is private.") + default_branch: str = Field(description="The default branch for the repository.") -model_rebuild(ClassroomAssignment) -model_rebuild(Classroom) -model_rebuild(SimpleClassroomOrganization) +model_rebuild(SimpleClassroomRepository) -__all__ = ( - "Classroom", - "ClassroomAssignment", - "SimpleClassroomOrganization", -) +__all__ = ("SimpleClassroomRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0025.py b/githubkit/versions/ghec_v2022_11_28/models/group_0025.py index 0205436c8..4c0d8dd53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0025.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0025.py @@ -15,49 +15,12 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0023 import SimpleClassroomRepository +from .group_0024 import SimpleClassroomRepository -class ClassroomAcceptedAssignment(GitHubModel): - """Classroom Accepted Assignment - - A GitHub Classroom accepted assignment - """ - - id: int = Field(description="Unique identifier of the repository.") - submitted: bool = Field( - description="Whether an accepted assignment has been submitted." - ) - passing: bool = Field(description="Whether a submission passed.") - commit_count: int = Field(description="Count of student commits.") - grade: str = Field(description="Most recent grade.") - students: list[SimpleClassroomUser] = Field() - repository: SimpleClassroomRepository = Field( - title="Simple Classroom Repository", - description="A GitHub repository view for Classroom", - ) - assignment: SimpleClassroomAssignment = Field( - title="Simple Classroom Assignment", description="A GitHub Classroom assignment" - ) - - -class SimpleClassroomUser(GitHubModel): - """Simple Classroom User - - A GitHub user simplified for Classroom. - """ - - id: int = Field() - login: str = Field() - avatar_url: str = Field() - html_url: str = Field() - - -class SimpleClassroomAssignment(GitHubModel): - """Simple Classroom Assignment +class ClassroomAssignment(GitHubModel): + """Classroom Assignment A GitHub Classroom assignment """ @@ -68,7 +31,7 @@ class SimpleClassroomAssignment(GitHubModel): ) title: str = Field(description="Assignment title.") type: Literal["individual", "group"] = Field( - description="Whether it's a Group Assignment or Individual Assignment." + description="Whether it's a group assignment or individual assignment." ) invite_link: str = Field( description="The link that a student can use to accept the assignment." @@ -78,61 +41,77 @@ class SimpleClassroomAssignment(GitHubModel): ) slug: str = Field(description="Sluggified name of the assignment.") students_are_repo_admins: bool = Field( - description="Whether students are admins on created repository on accepted assignment." + description="Whether students are admins on created repository when a student accepts the assignment." ) feedback_pull_requests_enabled: bool = Field( - description="Whether feedback pull request will be created on assignment acceptance." + description="Whether feedback pull request will be created when a student accepts the assignment." ) - max_teams: Missing[Union[int, None]] = Field( - default=UNSET, description="The maximum allowable teams for the assignment." + max_teams: Union[int, None] = Field( + description="The maximum allowable teams for the assignment." ) - max_members: Missing[Union[int, None]] = Field( - default=UNSET, description="The maximum allowable members per team." - ) - editor: Union[str, None] = Field( - description="The selected editor for the assignment." + max_members: Union[int, None] = Field( + description="The maximum allowable members per team." ) + editor: str = Field(description="The selected editor for the assignment.") accepted: int = Field( description="The number of students that have accepted the assignment." ) - submitted: Missing[int] = Field( - default=UNSET, - description="The number of students that have submitted the assignment.", + submitted: int = Field( + description="The number of students that have submitted the assignment." ) passing: int = Field( description="The number of students that have passed the assignment." ) - language: Union[str, None] = Field( + language: str = Field( description="The programming language used in the assignment." ) deadline: Union[datetime, None] = Field( description="The time at which the assignment is due." ) - classroom: SimpleClassroom = Field( - title="Simple Classroom", description="A GitHub Classroom classroom" + starter_code_repository: SimpleClassroomRepository = Field( + title="Simple Classroom Repository", + description="A GitHub repository view for Classroom", + ) + classroom: Classroom = Field( + title="Classroom", description="A GitHub Classroom classroom" ) -class SimpleClassroom(GitHubModel): - """Simple Classroom +class Classroom(GitHubModel): + """Classroom A GitHub Classroom classroom """ id: int = Field(description="Unique identifier of the classroom.") name: str = Field(description="The name of the classroom.") - archived: bool = Field(description="Returns whether classroom is archived or not.") - url: str = Field(description="The url of the classroom on GitHub Classroom.") + archived: bool = Field(description="Whether classroom is archived.") + organization: SimpleClassroomOrganization = Field( + title="Organization Simple for Classroom", description="A GitHub organization." + ) + url: str = Field(description="The URL of the classroom on GitHub Classroom.") + + +class SimpleClassroomOrganization(GitHubModel): + """Organization Simple for Classroom + + A GitHub organization. + """ + + id: int = Field() + login: str = Field() + node_id: str = Field() + html_url: str = Field() + name: Union[str, None] = Field() + avatar_url: str = Field() -model_rebuild(ClassroomAcceptedAssignment) -model_rebuild(SimpleClassroomUser) -model_rebuild(SimpleClassroomAssignment) -model_rebuild(SimpleClassroom) +model_rebuild(ClassroomAssignment) +model_rebuild(Classroom) +model_rebuild(SimpleClassroomOrganization) __all__ = ( - "ClassroomAcceptedAssignment", - "SimpleClassroom", - "SimpleClassroomAssignment", - "SimpleClassroomUser", + "Classroom", + "ClassroomAssignment", + "SimpleClassroomOrganization", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0026.py b/githubkit/versions/ghec_v2022_11_28/models/group_0026.py index 5af18ec3b..3596233bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0026.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0026.py @@ -9,45 +9,130 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0024 import SimpleClassroomRepository + + +class ClassroomAcceptedAssignment(GitHubModel): + """Classroom Accepted Assignment + + A GitHub Classroom accepted assignment + """ + + id: int = Field(description="Unique identifier of the repository.") + submitted: bool = Field( + description="Whether an accepted assignment has been submitted." + ) + passing: bool = Field(description="Whether a submission passed.") + commit_count: int = Field(description="Count of student commits.") + grade: str = Field(description="Most recent grade.") + students: list[SimpleClassroomUser] = Field() + repository: SimpleClassroomRepository = Field( + title="Simple Classroom Repository", + description="A GitHub repository view for Classroom", + ) + assignment: SimpleClassroomAssignment = Field( + title="Simple Classroom Assignment", description="A GitHub Classroom assignment" + ) + + +class SimpleClassroomUser(GitHubModel): + """Simple Classroom User + + A GitHub user simplified for Classroom. + """ + + id: int = Field() + login: str = Field() + avatar_url: str = Field() + html_url: str = Field() + -class ClassroomAssignmentGrade(GitHubModel): - """Classroom Assignment Grade +class SimpleClassroomAssignment(GitHubModel): + """Simple Classroom Assignment - Grade for a student or groups GitHub Classroom assignment + A GitHub Classroom assignment """ - assignment_name: str = Field(description="Name of the assignment") - assignment_url: str = Field(description="URL of the assignment") - starter_code_url: str = Field( - description="URL of the starter code for the assignment" + id: int = Field(description="Unique identifier of the repository.") + public_repo: bool = Field( + description="Whether an accepted assignment creates a public repository." ) - github_username: str = Field(description="GitHub username of the student") - roster_identifier: str = Field(description="Roster identifier of the student") - student_repository_name: str = Field( - description="Name of the student's assignment repository" + title: str = Field(description="Assignment title.") + type: Literal["individual", "group"] = Field( + description="Whether it's a Group Assignment or Individual Assignment." ) - student_repository_url: str = Field( - description="URL of the student's assignment repository" + invite_link: str = Field( + description="The link that a student can use to accept the assignment." ) - submission_timestamp: str = Field( - description="Timestamp of the student's assignment submission" + invitations_enabled: bool = Field( + description="Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment." ) - points_awarded: int = Field(description="Number of points awarded to the student") - points_available: int = Field( - description="Number of points available for the assignment" + slug: str = Field(description="Sluggified name of the assignment.") + students_are_repo_admins: bool = Field( + description="Whether students are admins on created repository on accepted assignment." ) - group_name: Missing[str] = Field( + feedback_pull_requests_enabled: bool = Field( + description="Whether feedback pull request will be created on assignment acceptance." + ) + max_teams: Missing[Union[int, None]] = Field( + default=UNSET, description="The maximum allowable teams for the assignment." + ) + max_members: Missing[Union[int, None]] = Field( + default=UNSET, description="The maximum allowable members per team." + ) + editor: Union[str, None] = Field( + description="The selected editor for the assignment." + ) + accepted: int = Field( + description="The number of students that have accepted the assignment." + ) + submitted: Missing[int] = Field( default=UNSET, - description="If a group assignment, name of the group the student is in", + description="The number of students that have submitted the assignment.", + ) + passing: int = Field( + description="The number of students that have passed the assignment." + ) + language: Union[str, None] = Field( + description="The programming language used in the assignment." ) + deadline: Union[datetime, None] = Field( + description="The time at which the assignment is due." + ) + classroom: SimpleClassroom = Field( + title="Simple Classroom", description="A GitHub Classroom classroom" + ) + + +class SimpleClassroom(GitHubModel): + """Simple Classroom + + A GitHub Classroom classroom + """ + + id: int = Field(description="Unique identifier of the classroom.") + name: str = Field(description="The name of the classroom.") + archived: bool = Field(description="Returns whether classroom is archived or not.") + url: str = Field(description="The url of the classroom on GitHub Classroom.") -model_rebuild(ClassroomAssignmentGrade) +model_rebuild(ClassroomAcceptedAssignment) +model_rebuild(SimpleClassroomUser) +model_rebuild(SimpleClassroomAssignment) +model_rebuild(SimpleClassroom) -__all__ = ("ClassroomAssignmentGrade",) +__all__ = ( + "ClassroomAcceptedAssignment", + "SimpleClassroom", + "SimpleClassroomAssignment", + "SimpleClassroomUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0027.py b/githubkit/versions/ghec_v2022_11_28/models/group_0027.py index 737a2b99f..5af18ec3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0027.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0027.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,269 +16,38 @@ from githubkit.utils import UNSET -class ServerStatisticsItems(GitHubModel): - """ServerStatisticsItems""" - - server_id: Missing[str] = Field(default=UNSET) - collection_date: Missing[str] = Field(default=UNSET) - schema_version: Missing[str] = Field(default=UNSET) - ghes_version: Missing[str] = Field(default=UNSET) - host_name: Missing[str] = Field(default=UNSET) - github_connect: Missing[ServerStatisticsItemsPropGithubConnect] = Field( - default=UNSET - ) - ghe_stats: Missing[ServerStatisticsItemsPropGheStats] = Field(default=UNSET) - dormant_users: Missing[ServerStatisticsItemsPropDormantUsers] = Field(default=UNSET) - actions_stats: Missing[ServerStatisticsActions] = Field( - default=UNSET, - description="Actions metrics that are included in the Server Statistics payload/export from GHES", - ) - packages_stats: Missing[ServerStatisticsPackages] = Field( - default=UNSET, - description="Packages metrics that are included in the Server Statistics payload/export from GHES", - ) - - -class ServerStatisticsActions(GitHubModel): - """ServerStatisticsActions - - Actions metrics that are included in the Server Statistics payload/export from - GHES - """ - - number_of_repos_using_actions: Missing[int] = Field( - default=UNSET, - description="The total number of repositories in a GHES installation that have Actions enabled", - ) - percentage_of_repos_using_actions: Missing[str] = Field( - default=UNSET, - description="The percentage of repositories in a GHES installation that have Actions enabled", - ) - - -class ServerStatisticsItemsPropGithubConnect(GitHubModel): - """ServerStatisticsItemsPropGithubConnect""" - - features_enabled: Missing[list[str]] = Field(default=UNSET) - - -class ServerStatisticsItemsPropDormantUsers(GitHubModel): - """ServerStatisticsItemsPropDormantUsers""" +class ClassroomAssignmentGrade(GitHubModel): + """Classroom Assignment Grade - total_dormant_users: Missing[int] = Field(default=UNSET) - dormancy_threshold: Missing[str] = Field(default=UNSET) - - -class ServerStatisticsPackages(GitHubModel): - """ServerStatisticsPackages - - Packages metrics that are included in the Server Statistics payload/export from - GHES + Grade for a student or groups GitHub Classroom assignment """ - registry_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether GitHub Packages is enabled globally in a GHES installation", + assignment_name: str = Field(description="Name of the assignment") + assignment_url: str = Field(description="URL of the assignment") + starter_code_url: str = Field( + description="URL of the starter code for the assignment" ) - registry_v2_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a beta registry is enabled in a GHES installation", + github_username: str = Field(description="GitHub username of the student") + roster_identifier: str = Field(description="Roster identifier of the student") + student_repository_name: str = Field( + description="Name of the student's assignment repository" ) - ecosystems: Missing[list[ServerStatisticsPackagesPropEcosystemsItems]] = Field( - default=UNSET, - description="The details of the package ecosystems that are enabled in a GHES installation", + student_repository_url: str = Field( + description="URL of the student's assignment repository" ) - - -class ServerStatisticsPackagesPropEcosystemsItems(GitHubModel): - """ServerStatisticsPackagesPropEcosystemsItems""" - - name: Missing[ - Literal["npm", "maven", "docker", "nuget", "rubygems", "containers"] - ] = Field(default=UNSET, description="The name of the package ecosystem") - enabled: Missing[Literal["TRUE", "FALSE", "READONLY"]] = Field( - default=UNSET, - description="Shows if a package system is enabled, disabled, or read-only in a GHES installation", + submission_timestamp: str = Field( + description="Timestamp of the student's assignment submission" ) - published_packages_count: Missing[int] = Field( - default=UNSET, - description="The total number of published packages in a package ecosystem in a GHES installation", - ) - private_packages_count: Missing[int] = Field( - default=UNSET, - description="The total number of private packages in a package ecosystem in a GHES installation", - ) - public_packages_count: Missing[int] = Field( - default=UNSET, - description="The total number of public packages in a package ecosystem in a GHES installation", - ) - internal_packages_count: Missing[int] = Field( - default=UNSET, - description="The total number of internal packages in a package ecosystem in a GHES installation", - ) - user_packages_count: Missing[int] = Field( - default=UNSET, - description="The total number of user packages in a package ecosystem in a GHES installation", - ) - organization_packages_count: Missing[int] = Field( - default=UNSET, - description="The total number of organization packages in a package ecosystem in a GHES installation", + points_awarded: int = Field(description="Number of points awarded to the student") + points_available: int = Field( + description="Number of points available for the assignment" ) - daily_download_count: Missing[int] = Field( + group_name: Missing[str] = Field( default=UNSET, - description="The total number of packages in an ecosystem that have been downloaded in the 24 hours prior to `collection_date` for a GHES installation", + description="If a group assignment, name of the group the student is in", ) - daily_update_count: Missing[int] = Field( - default=UNSET, - description="The total number of packages in an ecosystem that have been updated in the 24 hours prior to `collection_date` for a GHES installation", - ) - daily_delete_count: Missing[int] = Field( - default=UNSET, - description="The total number of packages in an ecosystem that have been deleted in the 24 hours prior to `collection_date` for a GHES installation", - ) - daily_create_count: Missing[int] = Field( - default=UNSET, - description="The total number of packages in an ecosystem that have been created in the 24 hours prior to `collection_date` for a GHES installation", - ) - - -class ServerStatisticsItemsPropGheStats(GitHubModel): - """ServerStatisticsItemsPropGheStats""" - - comments: Missing[ServerStatisticsItemsPropGheStatsPropComments] = Field( - default=UNSET - ) - gists: Missing[ServerStatisticsItemsPropGheStatsPropGists] = Field(default=UNSET) - hooks: Missing[ServerStatisticsItemsPropGheStatsPropHooks] = Field(default=UNSET) - issues: Missing[ServerStatisticsItemsPropGheStatsPropIssues] = Field(default=UNSET) - milestones: Missing[ServerStatisticsItemsPropGheStatsPropMilestones] = Field( - default=UNSET - ) - orgs: Missing[ServerStatisticsItemsPropGheStatsPropOrgs] = Field(default=UNSET) - pages: Missing[ServerStatisticsItemsPropGheStatsPropPages] = Field(default=UNSET) - pulls: Missing[ServerStatisticsItemsPropGheStatsPropPulls] = Field(default=UNSET) - repos: Missing[ServerStatisticsItemsPropGheStatsPropRepos] = Field(default=UNSET) - users: Missing[ServerStatisticsItemsPropGheStatsPropUsers] = Field(default=UNSET) - - -class ServerStatisticsItemsPropGheStatsPropComments(GitHubModel): - """ServerStatisticsItemsPropGheStatsPropComments""" - - total_commit_comments: Missing[int] = Field(default=UNSET) - total_gist_comments: Missing[int] = Field(default=UNSET) - total_issue_comments: Missing[int] = Field(default=UNSET) - total_pull_request_comments: Missing[int] = Field(default=UNSET) - - -class ServerStatisticsItemsPropGheStatsPropGists(GitHubModel): - """ServerStatisticsItemsPropGheStatsPropGists""" - - total_gists: Missing[int] = Field(default=UNSET) - private_gists: Missing[int] = Field(default=UNSET) - public_gists: Missing[int] = Field(default=UNSET) - - -class ServerStatisticsItemsPropGheStatsPropHooks(GitHubModel): - """ServerStatisticsItemsPropGheStatsPropHooks""" - - total_hooks: Missing[int] = Field(default=UNSET) - active_hooks: Missing[int] = Field(default=UNSET) - inactive_hooks: Missing[int] = Field(default=UNSET) - - -class ServerStatisticsItemsPropGheStatsPropIssues(GitHubModel): - """ServerStatisticsItemsPropGheStatsPropIssues""" - - total_issues: Missing[int] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - closed_issues: Missing[int] = Field(default=UNSET) - - -class ServerStatisticsItemsPropGheStatsPropMilestones(GitHubModel): - """ServerStatisticsItemsPropGheStatsPropMilestones""" - - total_milestones: Missing[int] = Field(default=UNSET) - open_milestones: Missing[int] = Field(default=UNSET) - closed_milestones: Missing[int] = Field(default=UNSET) - - -class ServerStatisticsItemsPropGheStatsPropOrgs(GitHubModel): - """ServerStatisticsItemsPropGheStatsPropOrgs""" - - total_orgs: Missing[int] = Field(default=UNSET) - disabled_orgs: Missing[int] = Field(default=UNSET) - total_teams: Missing[int] = Field(default=UNSET) - total_team_members: Missing[int] = Field(default=UNSET) - - -class ServerStatisticsItemsPropGheStatsPropPages(GitHubModel): - """ServerStatisticsItemsPropGheStatsPropPages""" - - total_pages: Missing[int] = Field(default=UNSET) - - -class ServerStatisticsItemsPropGheStatsPropPulls(GitHubModel): - """ServerStatisticsItemsPropGheStatsPropPulls""" - - total_pulls: Missing[int] = Field(default=UNSET) - merged_pulls: Missing[int] = Field(default=UNSET) - mergeable_pulls: Missing[int] = Field(default=UNSET) - unmergeable_pulls: Missing[int] = Field(default=UNSET) - - -class ServerStatisticsItemsPropGheStatsPropRepos(GitHubModel): - """ServerStatisticsItemsPropGheStatsPropRepos""" - - total_repos: Missing[int] = Field(default=UNSET) - root_repos: Missing[int] = Field(default=UNSET) - fork_repos: Missing[int] = Field(default=UNSET) - org_repos: Missing[int] = Field(default=UNSET) - total_pushes: Missing[int] = Field(default=UNSET) - total_wikis: Missing[int] = Field(default=UNSET) - - -class ServerStatisticsItemsPropGheStatsPropUsers(GitHubModel): - """ServerStatisticsItemsPropGheStatsPropUsers""" - - total_users: Missing[int] = Field(default=UNSET) - admin_users: Missing[int] = Field(default=UNSET) - suspended_users: Missing[int] = Field(default=UNSET) -model_rebuild(ServerStatisticsItems) -model_rebuild(ServerStatisticsActions) -model_rebuild(ServerStatisticsItemsPropGithubConnect) -model_rebuild(ServerStatisticsItemsPropDormantUsers) -model_rebuild(ServerStatisticsPackages) -model_rebuild(ServerStatisticsPackagesPropEcosystemsItems) -model_rebuild(ServerStatisticsItemsPropGheStats) -model_rebuild(ServerStatisticsItemsPropGheStatsPropComments) -model_rebuild(ServerStatisticsItemsPropGheStatsPropGists) -model_rebuild(ServerStatisticsItemsPropGheStatsPropHooks) -model_rebuild(ServerStatisticsItemsPropGheStatsPropIssues) -model_rebuild(ServerStatisticsItemsPropGheStatsPropMilestones) -model_rebuild(ServerStatisticsItemsPropGheStatsPropOrgs) -model_rebuild(ServerStatisticsItemsPropGheStatsPropPages) -model_rebuild(ServerStatisticsItemsPropGheStatsPropPulls) -model_rebuild(ServerStatisticsItemsPropGheStatsPropRepos) -model_rebuild(ServerStatisticsItemsPropGheStatsPropUsers) +model_rebuild(ClassroomAssignmentGrade) -__all__ = ( - "ServerStatisticsActions", - "ServerStatisticsItems", - "ServerStatisticsItemsPropDormantUsers", - "ServerStatisticsItemsPropGheStats", - "ServerStatisticsItemsPropGheStatsPropComments", - "ServerStatisticsItemsPropGheStatsPropGists", - "ServerStatisticsItemsPropGheStatsPropHooks", - "ServerStatisticsItemsPropGheStatsPropIssues", - "ServerStatisticsItemsPropGheStatsPropMilestones", - "ServerStatisticsItemsPropGheStatsPropOrgs", - "ServerStatisticsItemsPropGheStatsPropPages", - "ServerStatisticsItemsPropGheStatsPropPulls", - "ServerStatisticsItemsPropGheStatsPropRepos", - "ServerStatisticsItemsPropGheStatsPropUsers", - "ServerStatisticsItemsPropGithubConnect", - "ServerStatisticsPackages", - "ServerStatisticsPackagesPropEcosystemsItems", -) +__all__ = ("ClassroomAssignmentGrade",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0028.py b/githubkit/versions/ghec_v2022_11_28/models/group_0028.py index 0faeb8276..737a2b99f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0028.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0028.py @@ -9,22 +9,278 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ServerStatisticsItems(GitHubModel): + """ServerStatisticsItems""" + + server_id: Missing[str] = Field(default=UNSET) + collection_date: Missing[str] = Field(default=UNSET) + schema_version: Missing[str] = Field(default=UNSET) + ghes_version: Missing[str] = Field(default=UNSET) + host_name: Missing[str] = Field(default=UNSET) + github_connect: Missing[ServerStatisticsItemsPropGithubConnect] = Field( + default=UNSET + ) + ghe_stats: Missing[ServerStatisticsItemsPropGheStats] = Field(default=UNSET) + dormant_users: Missing[ServerStatisticsItemsPropDormantUsers] = Field(default=UNSET) + actions_stats: Missing[ServerStatisticsActions] = Field( + default=UNSET, + description="Actions metrics that are included in the Server Statistics payload/export from GHES", + ) + packages_stats: Missing[ServerStatisticsPackages] = Field( + default=UNSET, + description="Packages metrics that are included in the Server Statistics payload/export from GHES", + ) + + +class ServerStatisticsActions(GitHubModel): + """ServerStatisticsActions + + Actions metrics that are included in the Server Statistics payload/export from + GHES + """ + + number_of_repos_using_actions: Missing[int] = Field( + default=UNSET, + description="The total number of repositories in a GHES installation that have Actions enabled", + ) + percentage_of_repos_using_actions: Missing[str] = Field( + default=UNSET, + description="The percentage of repositories in a GHES installation that have Actions enabled", + ) + + +class ServerStatisticsItemsPropGithubConnect(GitHubModel): + """ServerStatisticsItemsPropGithubConnect""" + + features_enabled: Missing[list[str]] = Field(default=UNSET) + + +class ServerStatisticsItemsPropDormantUsers(GitHubModel): + """ServerStatisticsItemsPropDormantUsers""" + + total_dormant_users: Missing[int] = Field(default=UNSET) + dormancy_threshold: Missing[str] = Field(default=UNSET) + + +class ServerStatisticsPackages(GitHubModel): + """ServerStatisticsPackages + + Packages metrics that are included in the Server Statistics payload/export from + GHES + """ + + registry_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether GitHub Packages is enabled globally in a GHES installation", + ) + registry_v2_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether a beta registry is enabled in a GHES installation", + ) + ecosystems: Missing[list[ServerStatisticsPackagesPropEcosystemsItems]] = Field( + default=UNSET, + description="The details of the package ecosystems that are enabled in a GHES installation", + ) + + +class ServerStatisticsPackagesPropEcosystemsItems(GitHubModel): + """ServerStatisticsPackagesPropEcosystemsItems""" + + name: Missing[ + Literal["npm", "maven", "docker", "nuget", "rubygems", "containers"] + ] = Field(default=UNSET, description="The name of the package ecosystem") + enabled: Missing[Literal["TRUE", "FALSE", "READONLY"]] = Field( + default=UNSET, + description="Shows if a package system is enabled, disabled, or read-only in a GHES installation", + ) + published_packages_count: Missing[int] = Field( + default=UNSET, + description="The total number of published packages in a package ecosystem in a GHES installation", + ) + private_packages_count: Missing[int] = Field( + default=UNSET, + description="The total number of private packages in a package ecosystem in a GHES installation", + ) + public_packages_count: Missing[int] = Field( + default=UNSET, + description="The total number of public packages in a package ecosystem in a GHES installation", + ) + internal_packages_count: Missing[int] = Field( + default=UNSET, + description="The total number of internal packages in a package ecosystem in a GHES installation", + ) + user_packages_count: Missing[int] = Field( + default=UNSET, + description="The total number of user packages in a package ecosystem in a GHES installation", + ) + organization_packages_count: Missing[int] = Field( + default=UNSET, + description="The total number of organization packages in a package ecosystem in a GHES installation", + ) + daily_download_count: Missing[int] = Field( + default=UNSET, + description="The total number of packages in an ecosystem that have been downloaded in the 24 hours prior to `collection_date` for a GHES installation", + ) + daily_update_count: Missing[int] = Field( + default=UNSET, + description="The total number of packages in an ecosystem that have been updated in the 24 hours prior to `collection_date` for a GHES installation", + ) + daily_delete_count: Missing[int] = Field( + default=UNSET, + description="The total number of packages in an ecosystem that have been deleted in the 24 hours prior to `collection_date` for a GHES installation", + ) + daily_create_count: Missing[int] = Field( + default=UNSET, + description="The total number of packages in an ecosystem that have been created in the 24 hours prior to `collection_date` for a GHES installation", + ) -class ActionsCacheUsageOrgEnterprise(GitHubModel): - """ActionsCacheUsageOrgEnterprise""" +class ServerStatisticsItemsPropGheStats(GitHubModel): + """ServerStatisticsItemsPropGheStats""" - total_active_caches_count: int = Field( - description="The count of active caches across all repositories of an enterprise or an organization." + comments: Missing[ServerStatisticsItemsPropGheStatsPropComments] = Field( + default=UNSET ) - total_active_caches_size_in_bytes: int = Field( - description="The total size in bytes of all active cache items across all repositories of an enterprise or an organization." + gists: Missing[ServerStatisticsItemsPropGheStatsPropGists] = Field(default=UNSET) + hooks: Missing[ServerStatisticsItemsPropGheStatsPropHooks] = Field(default=UNSET) + issues: Missing[ServerStatisticsItemsPropGheStatsPropIssues] = Field(default=UNSET) + milestones: Missing[ServerStatisticsItemsPropGheStatsPropMilestones] = Field( + default=UNSET ) + orgs: Missing[ServerStatisticsItemsPropGheStatsPropOrgs] = Field(default=UNSET) + pages: Missing[ServerStatisticsItemsPropGheStatsPropPages] = Field(default=UNSET) + pulls: Missing[ServerStatisticsItemsPropGheStatsPropPulls] = Field(default=UNSET) + repos: Missing[ServerStatisticsItemsPropGheStatsPropRepos] = Field(default=UNSET) + users: Missing[ServerStatisticsItemsPropGheStatsPropUsers] = Field(default=UNSET) + + +class ServerStatisticsItemsPropGheStatsPropComments(GitHubModel): + """ServerStatisticsItemsPropGheStatsPropComments""" + + total_commit_comments: Missing[int] = Field(default=UNSET) + total_gist_comments: Missing[int] = Field(default=UNSET) + total_issue_comments: Missing[int] = Field(default=UNSET) + total_pull_request_comments: Missing[int] = Field(default=UNSET) + + +class ServerStatisticsItemsPropGheStatsPropGists(GitHubModel): + """ServerStatisticsItemsPropGheStatsPropGists""" + + total_gists: Missing[int] = Field(default=UNSET) + private_gists: Missing[int] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + + +class ServerStatisticsItemsPropGheStatsPropHooks(GitHubModel): + """ServerStatisticsItemsPropGheStatsPropHooks""" + + total_hooks: Missing[int] = Field(default=UNSET) + active_hooks: Missing[int] = Field(default=UNSET) + inactive_hooks: Missing[int] = Field(default=UNSET) + + +class ServerStatisticsItemsPropGheStatsPropIssues(GitHubModel): + """ServerStatisticsItemsPropGheStatsPropIssues""" + + total_issues: Missing[int] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + closed_issues: Missing[int] = Field(default=UNSET) + + +class ServerStatisticsItemsPropGheStatsPropMilestones(GitHubModel): + """ServerStatisticsItemsPropGheStatsPropMilestones""" + + total_milestones: Missing[int] = Field(default=UNSET) + open_milestones: Missing[int] = Field(default=UNSET) + closed_milestones: Missing[int] = Field(default=UNSET) + + +class ServerStatisticsItemsPropGheStatsPropOrgs(GitHubModel): + """ServerStatisticsItemsPropGheStatsPropOrgs""" + + total_orgs: Missing[int] = Field(default=UNSET) + disabled_orgs: Missing[int] = Field(default=UNSET) + total_teams: Missing[int] = Field(default=UNSET) + total_team_members: Missing[int] = Field(default=UNSET) + + +class ServerStatisticsItemsPropGheStatsPropPages(GitHubModel): + """ServerStatisticsItemsPropGheStatsPropPages""" + + total_pages: Missing[int] = Field(default=UNSET) + + +class ServerStatisticsItemsPropGheStatsPropPulls(GitHubModel): + """ServerStatisticsItemsPropGheStatsPropPulls""" + + total_pulls: Missing[int] = Field(default=UNSET) + merged_pulls: Missing[int] = Field(default=UNSET) + mergeable_pulls: Missing[int] = Field(default=UNSET) + unmergeable_pulls: Missing[int] = Field(default=UNSET) + + +class ServerStatisticsItemsPropGheStatsPropRepos(GitHubModel): + """ServerStatisticsItemsPropGheStatsPropRepos""" + + total_repos: Missing[int] = Field(default=UNSET) + root_repos: Missing[int] = Field(default=UNSET) + fork_repos: Missing[int] = Field(default=UNSET) + org_repos: Missing[int] = Field(default=UNSET) + total_pushes: Missing[int] = Field(default=UNSET) + total_wikis: Missing[int] = Field(default=UNSET) + + +class ServerStatisticsItemsPropGheStatsPropUsers(GitHubModel): + """ServerStatisticsItemsPropGheStatsPropUsers""" + + total_users: Missing[int] = Field(default=UNSET) + admin_users: Missing[int] = Field(default=UNSET) + suspended_users: Missing[int] = Field(default=UNSET) -model_rebuild(ActionsCacheUsageOrgEnterprise) +model_rebuild(ServerStatisticsItems) +model_rebuild(ServerStatisticsActions) +model_rebuild(ServerStatisticsItemsPropGithubConnect) +model_rebuild(ServerStatisticsItemsPropDormantUsers) +model_rebuild(ServerStatisticsPackages) +model_rebuild(ServerStatisticsPackagesPropEcosystemsItems) +model_rebuild(ServerStatisticsItemsPropGheStats) +model_rebuild(ServerStatisticsItemsPropGheStatsPropComments) +model_rebuild(ServerStatisticsItemsPropGheStatsPropGists) +model_rebuild(ServerStatisticsItemsPropGheStatsPropHooks) +model_rebuild(ServerStatisticsItemsPropGheStatsPropIssues) +model_rebuild(ServerStatisticsItemsPropGheStatsPropMilestones) +model_rebuild(ServerStatisticsItemsPropGheStatsPropOrgs) +model_rebuild(ServerStatisticsItemsPropGheStatsPropPages) +model_rebuild(ServerStatisticsItemsPropGheStatsPropPulls) +model_rebuild(ServerStatisticsItemsPropGheStatsPropRepos) +model_rebuild(ServerStatisticsItemsPropGheStatsPropUsers) -__all__ = ("ActionsCacheUsageOrgEnterprise",) +__all__ = ( + "ServerStatisticsActions", + "ServerStatisticsItems", + "ServerStatisticsItemsPropDormantUsers", + "ServerStatisticsItemsPropGheStats", + "ServerStatisticsItemsPropGheStatsPropComments", + "ServerStatisticsItemsPropGheStatsPropGists", + "ServerStatisticsItemsPropGheStatsPropHooks", + "ServerStatisticsItemsPropGheStatsPropIssues", + "ServerStatisticsItemsPropGheStatsPropMilestones", + "ServerStatisticsItemsPropGheStatsPropOrgs", + "ServerStatisticsItemsPropGheStatsPropPages", + "ServerStatisticsItemsPropGheStatsPropPulls", + "ServerStatisticsItemsPropGheStatsPropRepos", + "ServerStatisticsItemsPropGheStatsPropUsers", + "ServerStatisticsItemsPropGithubConnect", + "ServerStatisticsPackages", + "ServerStatisticsPackagesPropEcosystemsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0029.py b/githubkit/versions/ghec_v2022_11_28/models/group_0029.py index d3d2ad25c..0faeb8276 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0029.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0029.py @@ -12,19 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ActionsOidcCustomIssuerPolicyForEnterprise(GitHubModel): - """ActionsOidcCustomIssuerPolicyForEnterprise""" +class ActionsCacheUsageOrgEnterprise(GitHubModel): + """ActionsCacheUsageOrgEnterprise""" - include_enterprise_slug: Missing[bool] = Field( - default=UNSET, - description="Whether the enterprise customer requested a custom issuer URL.", + total_active_caches_count: int = Field( + description="The count of active caches across all repositories of an enterprise or an organization." + ) + total_active_caches_size_in_bytes: int = Field( + description="The total size in bytes of all active cache items across all repositories of an enterprise or an organization." ) -model_rebuild(ActionsOidcCustomIssuerPolicyForEnterprise) +model_rebuild(ActionsCacheUsageOrgEnterprise) -__all__ = ("ActionsOidcCustomIssuerPolicyForEnterprise",) +__all__ = ("ActionsCacheUsageOrgEnterprise",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0030.py b/githubkit/versions/ghec_v2022_11_28/models/group_0030.py index 023be58d2..76b6d2db7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0030.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0030.py @@ -9,35 +9,27 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ActionsEnterprisePermissions(GitHubModel): - """ActionsEnterprisePermissions""" +class ActionsHostedRunnerMachineSpec(GitHubModel): + """Github-owned VM details. - enabled_organizations: Literal["all", "none", "selected"] = Field( - description="The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions." - ) - selected_organizations_url: Missing[str] = Field( - default=UNSET, - description="The API URL to use to get or set the selected organizations that are allowed to run GitHub Actions, when `enabled_organizations` is set to `selected`.", - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + Provides details of a particular machine spec. + """ + + id: str = Field( + description="The ID used for the `size` parameter when creating a new runner." ) - selected_actions_url: Missing[str] = Field( - default=UNSET, - description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", + cpu_cores: int = Field(description="The number of cores.") + memory_gb: int = Field(description="The available RAM for the machine spec.") + storage_gb: int = Field( + description="The available SSD storage for the machine spec." ) -model_rebuild(ActionsEnterprisePermissions) +model_rebuild(ActionsHostedRunnerMachineSpec) -__all__ = ("ActionsEnterprisePermissions",) +__all__ = ("ActionsHostedRunnerMachineSpec",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0031.py b/githubkit/versions/ghec_v2022_11_28/models/group_0031.py index d86ab3170..559e72c04 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0031.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0031.py @@ -9,33 +9,96 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0030 import ActionsHostedRunnerMachineSpec -class OrganizationSimple(GitHubModel): - """Organization Simple - A GitHub organization. +class ActionsHostedRunner(GitHubModel): + """GitHub-hosted hosted runner + + A Github-hosted hosted runner. + """ + + id: int = Field(description="The unique identifier of the hosted runner.") + name: str = Field(description="The name of the hosted runner.") + runner_group_id: Missing[int] = Field( + default=UNSET, + description="The unique identifier of the group that the hosted runner belongs to.", + ) + image_details: Union[None, ActionsHostedRunnerPoolImage] = Field() + machine_size_details: ActionsHostedRunnerMachineSpec = Field( + title="Github-owned VM details.", + description="Provides details of a particular machine spec.", + ) + status: Literal["Ready", "Provisioning", "Shutdown", "Deleting", "Stuck"] = Field( + description="The status of the runner." + ) + platform: str = Field(description="The operating system of the image.") + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost.", + ) + public_ip_enabled: bool = Field( + description="Whether public IP is enabled for the hosted runners." + ) + public_ips: Missing[list[PublicIp]] = Field( + default=UNSET, + description="The public IP ranges when public IP is enabled for the hosted runners.", + ) + last_active_on: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time at which the runner was last used, in ISO 8601 format.", + ) + + +class ActionsHostedRunnerPoolImage(GitHubModel): + """GitHub-hosted runner image details. + + Provides details of a hosted runner image + """ + + id: str = Field( + description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner." + ) + size_gb: int = Field(description="Image size in GB.") + display_name: str = Field(description="Display name for this image.") + source: Literal["github", "partner", "custom"] = Field( + description="The image provider." + ) + version: str = Field(description="The image version of the hosted runner pool.") + + +class PublicIp(GitHubModel): + """Public IP for a GitHub-hosted larger runners. + + Provides details of Public IP for a GitHub-hosted larger runners """ - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() + enabled: Missing[bool] = Field( + default=UNSET, description="Whether public IP is enabled." + ) + prefix: Missing[str] = Field( + default=UNSET, description="The prefix for the public IP." + ) + length: Missing[int] = Field( + default=UNSET, description="The length of the IP prefix." + ) -model_rebuild(OrganizationSimple) +model_rebuild(ActionsHostedRunner) +model_rebuild(ActionsHostedRunnerPoolImage) +model_rebuild(PublicIp) -__all__ = ("OrganizationSimple",) +__all__ = ( + "ActionsHostedRunner", + "ActionsHostedRunnerPoolImage", + "PublicIp", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0032.py b/githubkit/versions/ghec_v2022_11_28/models/group_0032.py index 9ec6f5864..c1d2acd07 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0032.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0032.py @@ -9,30 +9,30 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class SelectedActions(GitHubModel): - """SelectedActions""" +class ActionsHostedRunnerImage(GitHubModel): + """GitHub-hosted runner image details. - github_owned_allowed: Missing[bool] = Field( - default=UNSET, - description="Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.", - ) - verified_allowed: Missing[bool] = Field( - default=UNSET, - description="Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.", + Provides details of a hosted runner image + """ + + id: str = Field( + description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner." ) - patterns_allowed: Missing[list[str]] = Field( - default=UNSET, - description="Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.", + platform: str = Field(description="The operating system of the image.") + size_gb: int = Field(description="Image size in GB.") + display_name: str = Field(description="Display name for this image.") + source: Literal["github", "partner", "custom"] = Field( + description="The image provider." ) -model_rebuild(SelectedActions) +model_rebuild(ActionsHostedRunnerImage) -__all__ = ("SelectedActions",) +__all__ = ("ActionsHostedRunnerImage",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0033.py b/githubkit/versions/ghec_v2022_11_28/models/group_0033.py index 0ec430210..423e6714f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0033.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0033.py @@ -9,24 +9,38 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ActionsGetDefaultWorkflowPermissions(GitHubModel): - """ActionsGetDefaultWorkflowPermissions""" +class ActionsHostedRunnerLimits(GitHubModel): + """ActionsHostedRunnerLimits""" + + public_ips: ActionsHostedRunnerLimitsPropPublicIps = Field( + title="Static public IP Limits for GitHub-hosted Hosted Runners.", + description="Provides details of static public IP limits for GitHub-hosted Hosted Runners", + ) + + +class ActionsHostedRunnerLimitsPropPublicIps(GitHubModel): + """Static public IP Limits for GitHub-hosted Hosted Runners. + + Provides details of static public IP limits for GitHub-hosted Hosted Runners + """ - default_workflow_permissions: Literal["read", "write"] = Field( - description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows." + maximum: int = Field( + description="The maximum number of static public IP addresses that can be used for Hosted Runners." ) - can_approve_pull_request_reviews: bool = Field( - description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk." + current_usage: int = Field( + description="The current number of static public IP addresses in use by Hosted Runners." ) -model_rebuild(ActionsGetDefaultWorkflowPermissions) +model_rebuild(ActionsHostedRunnerLimits) +model_rebuild(ActionsHostedRunnerLimitsPropPublicIps) -__all__ = ("ActionsGetDefaultWorkflowPermissions",) +__all__ = ( + "ActionsHostedRunnerLimits", + "ActionsHostedRunnerLimitsPropPublicIps", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0034.py b/githubkit/versions/ghec_v2022_11_28/models/group_0034.py index b91f2faf0..d3d2ad25c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0034.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0034.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,19 +16,15 @@ from githubkit.utils import UNSET -class ActionsSetDefaultWorkflowPermissions(GitHubModel): - """ActionsSetDefaultWorkflowPermissions""" +class ActionsOidcCustomIssuerPolicyForEnterprise(GitHubModel): + """ActionsOidcCustomIssuerPolicyForEnterprise""" - default_workflow_permissions: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows.", - ) - can_approve_pull_request_reviews: Missing[bool] = Field( + include_enterprise_slug: Missing[bool] = Field( default=UNSET, - description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.", + description="Whether the enterprise customer requested a custom issuer URL.", ) -model_rebuild(ActionsSetDefaultWorkflowPermissions) +model_rebuild(ActionsOidcCustomIssuerPolicyForEnterprise) -__all__ = ("ActionsSetDefaultWorkflowPermissions",) +__all__ = ("ActionsOidcCustomIssuerPolicyForEnterprise",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0035.py b/githubkit/versions/ghec_v2022_11_28/models/group_0035.py index 305c99aaa..023be58d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0035.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0035.py @@ -18,22 +18,26 @@ from githubkit.utils import UNSET -class RunnerLabel(GitHubModel): - """Self hosted runner label +class ActionsEnterprisePermissions(GitHubModel): + """ActionsEnterprisePermissions""" - A label for a self hosted runner - """ - - id: Missing[int] = Field( - default=UNSET, description="Unique identifier of the label." + enabled_organizations: Literal["all", "none", "selected"] = Field( + description="The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions." + ) + selected_organizations_url: Missing[str] = Field( + default=UNSET, + description="The API URL to use to get or set the selected organizations that are allowed to run GitHub Actions, when `enabled_organizations` is set to `selected`.", + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - name: str = Field(description="Name of the label.") - type: Missing[Literal["read-only", "custom"]] = Field( + selected_actions_url: Missing[str] = Field( default=UNSET, - description="The type of label. Read-only labels are applied automatically when the runner is configured.", + description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", ) -model_rebuild(RunnerLabel) +model_rebuild(ActionsEnterprisePermissions) -__all__ = ("RunnerLabel",) +__all__ = ("ActionsEnterprisePermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0036.py b/githubkit/versions/ghec_v2022_11_28/models/group_0036.py index 3d3ee64af..d86ab3170 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0036.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0036.py @@ -9,32 +9,33 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0035 import RunnerLabel -class Runner(GitHubModel): - """Self hosted runners +class OrganizationSimple(GitHubModel): + """Organization Simple - A self hosted runner + A GitHub organization. """ - id: int = Field(description="The id of the runner.") - runner_group_id: Missing[int] = Field( - default=UNSET, description="The id of the runner group." - ) - name: str = Field(description="The name of the runner.") - os: str = Field(description="The Operating System of the runner.") - status: str = Field(description="The status of the runner.") - busy: bool = Field() - labels: list[RunnerLabel] = Field() + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() -model_rebuild(Runner) +model_rebuild(OrganizationSimple) -__all__ = ("Runner",) +__all__ = ("OrganizationSimple",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0037.py b/githubkit/versions/ghec_v2022_11_28/models/group_0037.py index c4eff90af..9ec6f5864 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0037.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0037.py @@ -16,23 +16,23 @@ from githubkit.utils import UNSET -class RunnerApplication(GitHubModel): - """Runner Application +class SelectedActions(GitHubModel): + """SelectedActions""" - Runner Application - """ - - os: str = Field() - architecture: str = Field() - download_url: str = Field() - filename: str = Field() - temp_download_token: Missing[str] = Field( + github_owned_allowed: Missing[bool] = Field( + default=UNSET, + description="Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.", + ) + verified_allowed: Missing[bool] = Field( + default=UNSET, + description="Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.", + ) + patterns_allowed: Missing[list[str]] = Field( default=UNSET, - description="A short lived bearer token used to download the runner, if needed.", + description="Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.", ) - sha256_checksum: Missing[str] = Field(default=UNSET) -model_rebuild(RunnerApplication) +model_rebuild(SelectedActions) -__all__ = ("RunnerApplication",) +__all__ = ("SelectedActions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0038.py b/githubkit/versions/ghec_v2022_11_28/models/group_0038.py index d559f3196..0ec430210 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0038.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0038.py @@ -9,49 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0019 import Repository +class ActionsGetDefaultWorkflowPermissions(GitHubModel): + """ActionsGetDefaultWorkflowPermissions""" -class AuthenticationToken(GitHubModel): - """Authentication Token - - Authentication Token - """ - - token: str = Field(description="The token used for authentication") - expires_at: datetime = Field(description="The time this token expires") - permissions: Missing[AuthenticationTokenPropPermissions] = Field(default=UNSET) - repositories: Missing[list[Repository]] = Field( - default=UNSET, description="The repositories this token has access to" + default_workflow_permissions: Literal["read", "write"] = Field( + description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows." ) - single_file: Missing[Union[str, None]] = Field(default=UNSET) - repository_selection: Missing[Literal["all", "selected"]] = Field( - default=UNSET, - description="Describe whether all repositories have been selected or there's a selection involved", + can_approve_pull_request_reviews: bool = Field( + description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk." ) -class AuthenticationTokenPropPermissions(GitHubModel): - """AuthenticationTokenPropPermissions - - Examples: - {'issues': 'read', 'deployments': 'write'} - """ - - -model_rebuild(AuthenticationToken) -model_rebuild(AuthenticationTokenPropPermissions) +model_rebuild(ActionsGetDefaultWorkflowPermissions) -__all__ = ( - "AuthenticationToken", - "AuthenticationTokenPropPermissions", -) +__all__ = ("ActionsGetDefaultWorkflowPermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0039.py b/githubkit/versions/ghec_v2022_11_28/models/group_0039.py index 301211f99..b91f2faf0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0039.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0039.py @@ -9,32 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class AnnouncementBanner(GitHubModel): - """Announcement Banner +class ActionsSetDefaultWorkflowPermissions(GitHubModel): + """ActionsSetDefaultWorkflowPermissions""" - Announcement at either the repository, organization, or enterprise level - """ - - announcement: Union[str, None] = Field( - description='The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see "[Basic writing and formatting syntax](https://docs.github.com/enterprise-cloud@latest//github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)."' - ) - expires_at: Union[datetime, None] = Field( - description="The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string." + default_workflow_permissions: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows.", ) - user_dismissible: Union[bool, None] = Field( - default=False, - description="Whether an announcement can be dismissed by the user.", + can_approve_pull_request_reviews: Missing[bool] = Field( + default=UNSET, + description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.", ) -model_rebuild(AnnouncementBanner) +model_rebuild(ActionsSetDefaultWorkflowPermissions) -__all__ = ("AnnouncementBanner",) +__all__ = ("ActionsSetDefaultWorkflowPermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0040.py b/githubkit/versions/ghec_v2022_11_28/models/group_0040.py index 6b74c986b..305c99aaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0040.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0040.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -19,21 +18,22 @@ from githubkit.utils import UNSET -class Announcement(GitHubModel): - """Enterprise Announcement +class RunnerLabel(GitHubModel): + """Self hosted runner label - Enterprise global announcement + A label for a self hosted runner """ - announcement: Union[str, None] = Field( - description='The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see "[Basic writing and formatting syntax](https://docs.github.com/enterprise-cloud@latest//github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)."' + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the label." ) - expires_at: Missing[Union[datetime, None]] = Field( + name: str = Field(description="Name of the label.") + type: Missing[Literal["read-only", "custom"]] = Field( default=UNSET, - description="The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string.", + description="The type of label. Read-only labels are applied automatically when the runner is configured.", ) -model_rebuild(Announcement) +model_rebuild(RunnerLabel) -__all__ = ("Announcement",) +__all__ = ("RunnerLabel",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0041.py b/githubkit/versions/ghec_v2022_11_28/models/group_0041.py index dbb0cd130..676a6ac7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0041.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0041.py @@ -11,133 +11,30 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0040 import RunnerLabel -class AuditLogEvent(GitHubModel): - """AuditLogEvent""" - timestamp: Missing[int] = Field( - default=UNSET, - alias="@timestamp", - description="The time the audit log event occurred, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).", - ) - action: Missing[str] = Field( - default=UNSET, - description="The name of the action that was performed, for example `user.login` or `repo.create`.", - ) - active: Missing[bool] = Field(default=UNSET) - active_was: Missing[bool] = Field(default=UNSET) - actor: Missing[str] = Field( - default=UNSET, description="The actor who performed the action." - ) - actor_id: Missing[int] = Field( - default=UNSET, description="The id of the actor who performed the action." - ) - actor_location: Missing[AuditLogEventPropActorLocation] = Field(default=UNSET) - data: Missing[AuditLogEventPropData] = Field(default=UNSET) - org_id: Missing[int] = Field(default=UNSET) - user_id: Missing[int] = Field(default=UNSET) - business_id: Missing[int] = Field(default=UNSET) - blocked_user: Missing[str] = Field( - default=UNSET, description="The username of the account being blocked." - ) - business: Missing[str] = Field(default=UNSET) - config: Missing[list[AuditLogEventPropConfigItems]] = Field(default=UNSET) - config_was: Missing[list[AuditLogEventPropConfigWasItems]] = Field(default=UNSET) - content_type: Missing[str] = Field(default=UNSET) - operation_type: Missing[str] = Field(default=UNSET) - created_at: Missing[int] = Field( - default=UNSET, - description="The time the audit log event was recorded, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).", - ) - deploy_key_fingerprint: Missing[str] = Field(default=UNSET) - document_id: Missing[str] = Field( - default=UNSET, - alias="_document_id", - description="A unique identifier for an audit event.", - ) - emoji: Missing[str] = Field(default=UNSET) - events: Missing[list[AuditLogEventPropEventsItems]] = Field(default=UNSET) - events_were: Missing[list[AuditLogEventPropEventsWereItems]] = Field(default=UNSET) - explanation: Missing[str] = Field(default=UNSET) - fingerprint: Missing[str] = Field(default=UNSET) - hook_id: Missing[int] = Field(default=UNSET) - limited_availability: Missing[bool] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - old_user: Missing[str] = Field(default=UNSET) - openssh_public_key: Missing[str] = Field(default=UNSET) - org: Missing[str] = Field(default=UNSET) - previous_visibility: Missing[str] = Field(default=UNSET) - read_only: Missing[bool] = Field(default=UNSET) - repo: Missing[str] = Field(default=UNSET, description="The name of the repository.") - repository: Missing[str] = Field( - default=UNSET, description="The name of the repository." - ) - repository_public: Missing[bool] = Field(default=UNSET) - target_login: Missing[str] = Field(default=UNSET) - team: Missing[str] = Field(default=UNSET) - transport_protocol: Missing[int] = Field( - default=UNSET, - description="The type of protocol (for example, HTTP or SSH) used to transfer Git data.", - ) - transport_protocol_name: Missing[str] = Field( - default=UNSET, - description="A human readable name for the protocol (for example, HTTP or SSH) used to transfer Git data.", - ) - user: Missing[str] = Field( - default=UNSET, - description="The user that was affected by the action performed (if available).", - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility, for example `public` or `private`.", - ) +class Runner(GitHubModel): + """Self hosted runners + A self hosted runner + """ -class AuditLogEventPropActorLocation(GitHubModel): - """AuditLogEventPropActorLocation""" - - country_name: Missing[str] = Field(default=UNSET) - - -class AuditLogEventPropData(ExtraGitHubModel): - """AuditLogEventPropData""" - - -class AuditLogEventPropConfigItems(GitHubModel): - """AuditLogEventPropConfigItems""" - - -class AuditLogEventPropConfigWasItems(GitHubModel): - """AuditLogEventPropConfigWasItems""" - - -class AuditLogEventPropEventsItems(GitHubModel): - """AuditLogEventPropEventsItems""" - - -class AuditLogEventPropEventsWereItems(GitHubModel): - """AuditLogEventPropEventsWereItems""" + id: int = Field(description="The id of the runner.") + runner_group_id: Missing[int] = Field( + default=UNSET, description="The id of the runner group." + ) + name: str = Field(description="The name of the runner.") + os: str = Field(description="The Operating System of the runner.") + status: str = Field(description="The status of the runner.") + busy: bool = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(AuditLogEvent) -model_rebuild(AuditLogEventPropActorLocation) -model_rebuild(AuditLogEventPropData) -model_rebuild(AuditLogEventPropConfigItems) -model_rebuild(AuditLogEventPropConfigWasItems) -model_rebuild(AuditLogEventPropEventsItems) -model_rebuild(AuditLogEventPropEventsWereItems) +model_rebuild(Runner) -__all__ = ( - "AuditLogEvent", - "AuditLogEventPropActorLocation", - "AuditLogEventPropConfigItems", - "AuditLogEventPropConfigWasItems", - "AuditLogEventPropData", - "AuditLogEventPropEventsItems", - "AuditLogEventPropEventsWereItems", -) +__all__ = ("Runner",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0042.py b/githubkit/versions/ghec_v2022_11_28/models/group_0042.py index 7ceab1479..c4eff90af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0042.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0042.py @@ -12,18 +12,27 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class AuditLogStreamKey(GitHubModel): - """stream-key +class RunnerApplication(GitHubModel): + """Runner Application - Audit Log Streaming Public Key + Runner Application """ - key_id: str = Field() - key: str = Field() + os: str = Field() + architecture: str = Field() + download_url: str = Field() + filename: str = Field() + temp_download_token: Missing[str] = Field( + default=UNSET, + description="A short lived bearer token used to download the runner, if needed.", + ) + sha256_checksum: Missing[str] = Field(default=UNSET) -model_rebuild(AuditLogStreamKey) +model_rebuild(RunnerApplication) -__all__ = ("AuditLogStreamKey",) +__all__ = ("RunnerApplication",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0043.py b/githubkit/versions/ghec_v2022_11_28/models/group_0043.py index 3bc55a567..bb8ab2b85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0043.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0043.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,19 +18,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0020 import Repository -class GetAuditLogStreamConfigsItems(GitHubModel): - """GetAuditLogStreamConfigsItems""" - id: Missing[int] = Field(default=UNSET) - stream_type: Missing[str] = Field(default=UNSET) - stream_details: Missing[str] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - paused_at: Missing[Union[datetime, None]] = Field(default=UNSET) +class AuthenticationToken(GitHubModel): + """Authentication Token + Authentication Token + """ -model_rebuild(GetAuditLogStreamConfigsItems) + token: str = Field(description="The token used for authentication") + expires_at: datetime = Field(description="The time this token expires") + permissions: Missing[AuthenticationTokenPropPermissions] = Field(default=UNSET) + repositories: Missing[list[Repository]] = Field( + default=UNSET, description="The repositories this token has access to" + ) + single_file: Missing[Union[str, None]] = Field(default=UNSET) + repository_selection: Missing[Literal["all", "selected"]] = Field( + default=UNSET, + description="Describe whether all repositories have been selected or there's a selection involved", + ) -__all__ = ("GetAuditLogStreamConfigsItems",) + +class AuthenticationTokenPropPermissions(GitHubModel): + """AuthenticationTokenPropPermissions + + Examples: + {'issues': 'read', 'deployments': 'write'} + """ + + +model_rebuild(AuthenticationToken) +model_rebuild(AuthenticationTokenPropPermissions) + +__all__ = ( + "AuthenticationToken", + "AuthenticationTokenPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0044.py b/githubkit/versions/ghec_v2022_11_28/models/group_0044.py index 0be1ea8f1..301211f99 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0044.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0044.py @@ -9,79 +9,32 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class AzureBlobConfig(GitHubModel): - """AzureBlobConfig +class AnnouncementBanner(GitHubModel): + """Announcement Banner - Azure Blob Config for audit log streaming configuration. + Announcement at either the repository, organization, or enterprise level """ - key_id: str = Field( - description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." + announcement: Union[str, None] = Field( + description='The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see "[Basic writing and formatting syntax](https://docs.github.com/enterprise-cloud@latest//github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)."' ) - encrypted_sas_url: str = Field() - - -class AzureHubConfig(GitHubModel): - """AzureHubConfig - - Azure Event Hubs Config for audit log streaming configuration. - """ - - name: str = Field(description="Instance name of Azure Event Hubs") - encrypted_connstring: str = Field( - description="Encrypted Connection String for Azure Event Hubs" - ) - key_id: str = Field( - description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." - ) - - -class AmazonS3AccessKeysConfig(GitHubModel): - """AmazonS3AccessKeysConfig - - Amazon S3 Access Keys Config for audit log streaming configuration. - """ - - bucket: str = Field(description="Amazon S3 Bucket Name.") - region: str = Field(description="Amazon S3 Bucket Name.") - key_id: str = Field( - description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." + expires_at: Union[datetime, None] = Field( + description="The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string." ) - authentication_type: Literal["access_keys"] = Field( - description="Authentication Type for Amazon S3." - ) - encrypted_secret_key: str = Field(description="Encrypted AWS Secret Key.") - encrypted_access_key_id: str = Field(description="Encrypted AWS Access Key ID.") - - -class GoogleCloudConfig(GitHubModel): - """GoogleCloudConfig - - Google Cloud Config for audit log streaming configuration. - """ - - bucket: str = Field(description="Google Cloud Bucket Name") - key_id: str = Field( - description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." + user_dismissible: Union[bool, None] = Field( + default=False, + description="Whether an announcement can be dismissed by the user.", ) - encrypted_json_credentials: str = Field() -model_rebuild(AzureBlobConfig) -model_rebuild(AzureHubConfig) -model_rebuild(AmazonS3AccessKeysConfig) -model_rebuild(GoogleCloudConfig) +model_rebuild(AnnouncementBanner) -__all__ = ( - "AmazonS3AccessKeysConfig", - "AzureBlobConfig", - "AzureHubConfig", - "GoogleCloudConfig", -) +__all__ = ("AnnouncementBanner",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0045.py b/githubkit/versions/ghec_v2022_11_28/models/group_0045.py index 36c0ed064..6b74c986b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0045.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0045.py @@ -9,51 +9,31 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class AmazonS3OidcConfig(GitHubModel): - """AmazonS3OIDCConfig +class Announcement(GitHubModel): + """Enterprise Announcement - Amazon S3 OIDC Config for audit log streaming configuration. + Enterprise global announcement """ - bucket: str = Field(description="Amazon S3 Bucket Name.") - region: str = Field(description="AWS S3 Bucket Region.") - key_id: str = Field( - description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." + announcement: Union[str, None] = Field( + description='The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see "[Basic writing and formatting syntax](https://docs.github.com/enterprise-cloud@latest//github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)."' ) - authentication_type: Literal["oidc"] = Field( - description="Authentication Type for Amazon S3." + expires_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time at which the announcement expires. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. To set an announcement that never expires, omit this parameter, set it to `null`, or set it to an empty string.", ) - arn_role: str = Field() -class SplunkConfig(GitHubModel): - """SplunkConfig +model_rebuild(Announcement) - Splunk Config for Audit Log Stream Configuration - """ - - domain: str = Field(description="Domain of Splunk instance.") - port: int = Field(description="The port number for connecting to Splunk.") - key_id: str = Field( - description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." - ) - encrypted_token: str = Field(description="Encrypted Token.") - ssl_verify: bool = Field( - description="SSL verification helps ensure your events are sent to your Splunk endpoint securely." - ) - - -model_rebuild(AmazonS3OidcConfig) -model_rebuild(SplunkConfig) - -__all__ = ( - "AmazonS3OidcConfig", - "SplunkConfig", -) +__all__ = ("Announcement",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0046.py b/githubkit/versions/ghec_v2022_11_28/models/group_0046.py index 6993a7f9d..dbb0cd130 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0046.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0046.py @@ -9,28 +9,135 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild - +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class DatadogConfig(GitHubModel): - """DatadogConfig - Datadog Config for audit log streaming configuration. - """ +class AuditLogEvent(GitHubModel): + """AuditLogEvent""" - encrypted_token: str = Field(description="Encrypted Splunk token.") - site: Literal["US", "US3", "US5", "EU1", "US1-FED", "AP1"] = Field( - description="Datadog Site to use." + timestamp: Missing[int] = Field( + default=UNSET, + alias="@timestamp", + description="The time the audit log event occurred, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).", + ) + action: Missing[str] = Field( + default=UNSET, + description="The name of the action that was performed, for example `user.login` or `repo.create`.", + ) + active: Missing[bool] = Field(default=UNSET) + active_was: Missing[bool] = Field(default=UNSET) + actor: Missing[str] = Field( + default=UNSET, description="The actor who performed the action." + ) + actor_id: Missing[int] = Field( + default=UNSET, description="The id of the actor who performed the action." + ) + actor_location: Missing[AuditLogEventPropActorLocation] = Field(default=UNSET) + data: Missing[AuditLogEventPropData] = Field(default=UNSET) + org_id: Missing[int] = Field(default=UNSET) + user_id: Missing[int] = Field(default=UNSET) + business_id: Missing[int] = Field(default=UNSET) + blocked_user: Missing[str] = Field( + default=UNSET, description="The username of the account being blocked." + ) + business: Missing[str] = Field(default=UNSET) + config: Missing[list[AuditLogEventPropConfigItems]] = Field(default=UNSET) + config_was: Missing[list[AuditLogEventPropConfigWasItems]] = Field(default=UNSET) + content_type: Missing[str] = Field(default=UNSET) + operation_type: Missing[str] = Field(default=UNSET) + created_at: Missing[int] = Field( + default=UNSET, + description="The time the audit log event was recorded, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).", ) - key_id: str = Field( - description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." + deploy_key_fingerprint: Missing[str] = Field(default=UNSET) + document_id: Missing[str] = Field( + default=UNSET, + alias="_document_id", + description="A unique identifier for an audit event.", ) + emoji: Missing[str] = Field(default=UNSET) + events: Missing[list[AuditLogEventPropEventsItems]] = Field(default=UNSET) + events_were: Missing[list[AuditLogEventPropEventsWereItems]] = Field(default=UNSET) + explanation: Missing[str] = Field(default=UNSET) + fingerprint: Missing[str] = Field(default=UNSET) + hook_id: Missing[int] = Field(default=UNSET) + limited_availability: Missing[bool] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + old_user: Missing[str] = Field(default=UNSET) + openssh_public_key: Missing[str] = Field(default=UNSET) + org: Missing[str] = Field(default=UNSET) + previous_visibility: Missing[str] = Field(default=UNSET) + read_only: Missing[bool] = Field(default=UNSET) + repo: Missing[str] = Field(default=UNSET, description="The name of the repository.") + repository: Missing[str] = Field( + default=UNSET, description="The name of the repository." + ) + repository_public: Missing[bool] = Field(default=UNSET) + target_login: Missing[str] = Field(default=UNSET) + team: Missing[str] = Field(default=UNSET) + transport_protocol: Missing[int] = Field( + default=UNSET, + description="The type of protocol (for example, HTTP or SSH) used to transfer Git data.", + ) + transport_protocol_name: Missing[str] = Field( + default=UNSET, + description="A human readable name for the protocol (for example, HTTP or SSH) used to transfer Git data.", + ) + user: Missing[str] = Field( + default=UNSET, + description="The user that was affected by the action performed (if available).", + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility, for example `public` or `private`.", + ) + + +class AuditLogEventPropActorLocation(GitHubModel): + """AuditLogEventPropActorLocation""" + + country_name: Missing[str] = Field(default=UNSET) + + +class AuditLogEventPropData(ExtraGitHubModel): + """AuditLogEventPropData""" + + +class AuditLogEventPropConfigItems(GitHubModel): + """AuditLogEventPropConfigItems""" + + +class AuditLogEventPropConfigWasItems(GitHubModel): + """AuditLogEventPropConfigWasItems""" + + +class AuditLogEventPropEventsItems(GitHubModel): + """AuditLogEventPropEventsItems""" + + +class AuditLogEventPropEventsWereItems(GitHubModel): + """AuditLogEventPropEventsWereItems""" -model_rebuild(DatadogConfig) +model_rebuild(AuditLogEvent) +model_rebuild(AuditLogEventPropActorLocation) +model_rebuild(AuditLogEventPropData) +model_rebuild(AuditLogEventPropConfigItems) +model_rebuild(AuditLogEventPropConfigWasItems) +model_rebuild(AuditLogEventPropEventsItems) +model_rebuild(AuditLogEventPropEventsWereItems) -__all__ = ("DatadogConfig",) +__all__ = ( + "AuditLogEvent", + "AuditLogEventPropActorLocation", + "AuditLogEventPropConfigItems", + "AuditLogEventPropConfigWasItems", + "AuditLogEventPropData", + "AuditLogEventPropEventsItems", + "AuditLogEventPropEventsWereItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0047.py b/githubkit/versions/ghec_v2022_11_28/models/group_0047.py index a9e129395..7ceab1479 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0047.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0047.py @@ -9,31 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class GetAuditLogStreamConfig(GitHubModel): - """Get an audit log streaming configuration +class AuditLogStreamKey(GitHubModel): + """stream-key - Get an audit log streaming configuration for an enterprise. + Audit Log Streaming Public Key """ - id: int = Field() - stream_type: str = Field() - stream_details: str = Field() - enabled: bool = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - paused_at: Missing[Union[datetime, None]] = Field(default=UNSET) + key_id: str = Field() + key: str = Field() -model_rebuild(GetAuditLogStreamConfig) +model_rebuild(AuditLogStreamKey) -__all__ = ("GetAuditLogStreamConfig",) +__all__ = ("AuditLogStreamKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0048.py b/githubkit/versions/ghec_v2022_11_28/models/group_0048.py index 7aa158d05..3bc55a567 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0048.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0048.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -18,43 +19,18 @@ from githubkit.utils import UNSET -class CodeScanningAlertRuleSummary(GitHubModel): - """CodeScanningAlertRuleSummary""" - - id: Missing[Union[str, None]] = Field( - default=UNSET, - description="A unique identifier for the rule used to detect the alert.", - ) - name: Missing[str] = Field( - default=UNSET, description="The name of the rule used to detect the alert." - ) - severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( - default=UNSET, description="The severity of the alert." - ) - security_severity_level: Missing[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] = Field(default=UNSET, description="The security severity of the alert.") - description: Missing[str] = Field( - default=UNSET, - description="A short description of the rule used to detect the alert.", - ) - full_description: Missing[str] = Field( - default=UNSET, description="A description of the rule used to detect the alert." - ) - tags: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A set of tags applicable for the rule." - ) - help_: Missing[Union[str, None]] = Field( - default=UNSET, - alias="help", - description="Detailed documentation for the rule as GitHub Flavored Markdown.", - ) - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - - -model_rebuild(CodeScanningAlertRuleSummary) - -__all__ = ("CodeScanningAlertRuleSummary",) +class GetAuditLogStreamConfigsItems(GitHubModel): + """GetAuditLogStreamConfigsItems""" + + id: Missing[int] = Field(default=UNSET) + stream_type: Missing[str] = Field(default=UNSET) + stream_details: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + paused_at: Missing[Union[datetime, None]] = Field(default=UNSET) + + +model_rebuild(GetAuditLogStreamConfigsItems) + +__all__ = ("GetAuditLogStreamConfigsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0049.py b/githubkit/versions/ghec_v2022_11_28/models/group_0049.py index f49c4a62a..0be1ea8f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0049.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0049.py @@ -9,32 +9,79 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class CodeScanningAnalysisTool(GitHubModel): - """CodeScanningAnalysisTool""" +class AzureBlobConfig(GitHubModel): + """AzureBlobConfig - name: Missing[str] = Field( - default=UNSET, - description="The name of the tool used to generate the code scanning analysis.", + Azure Blob Config for audit log streaming configuration. + """ + + key_id: str = Field( + description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." + ) + encrypted_sas_url: str = Field() + + +class AzureHubConfig(GitHubModel): + """AzureHubConfig + + Azure Event Hubs Config for audit log streaming configuration. + """ + + name: str = Field(description="Instance name of Azure Event Hubs") + encrypted_connstring: str = Field( + description="Encrypted Connection String for Azure Event Hubs" + ) + key_id: str = Field( + description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." + ) + + +class AmazonS3AccessKeysConfig(GitHubModel): + """AmazonS3AccessKeysConfig + + Amazon S3 Access Keys Config for audit log streaming configuration. + """ + + bucket: str = Field(description="Amazon S3 Bucket Name.") + region: str = Field(description="Amazon S3 Bucket Name.") + key_id: str = Field( + description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." ) - version: Missing[Union[str, None]] = Field( - default=UNSET, - description="The version of the tool used to generate the code scanning analysis.", + authentication_type: Literal["access_keys"] = Field( + description="Authentication Type for Amazon S3." ) - guid: Missing[Union[str, None]] = Field( - default=UNSET, - description="The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data.", + encrypted_secret_key: str = Field(description="Encrypted AWS Secret Key.") + encrypted_access_key_id: str = Field(description="Encrypted AWS Access Key ID.") + + +class GoogleCloudConfig(GitHubModel): + """GoogleCloudConfig + + Google Cloud Config for audit log streaming configuration. + """ + + bucket: str = Field(description="Google Cloud Bucket Name") + key_id: str = Field( + description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." ) + encrypted_json_credentials: str = Field() -model_rebuild(CodeScanningAnalysisTool) +model_rebuild(AzureBlobConfig) +model_rebuild(AzureHubConfig) +model_rebuild(AmazonS3AccessKeysConfig) +model_rebuild(GoogleCloudConfig) -__all__ = ("CodeScanningAnalysisTool",) +__all__ = ( + "AmazonS3AccessKeysConfig", + "AzureBlobConfig", + "AzureHubConfig", + "GoogleCloudConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0050.py b/githubkit/versions/ghec_v2022_11_28/models/group_0050.py index 96f2e8baa..36c0ed064 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0050.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0050.py @@ -9,76 +9,51 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class CodeScanningAlertInstance(GitHubModel): - """CodeScanningAlertInstance""" +class AmazonS3OidcConfig(GitHubModel): + """AmazonS3OIDCConfig - ref: Missing[str] = Field( - default=UNSET, - description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``.", - ) - analysis_key: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed.", - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", - ) - state: Missing[Union[None, Literal["open", "dismissed", "fixed"]]] = Field( - default=UNSET, description="State of a code scanning alert." - ) - commit_sha: Missing[str] = Field(default=UNSET) - message: Missing[CodeScanningAlertInstancePropMessage] = Field(default=UNSET) - location: Missing[CodeScanningAlertLocation] = Field( - default=UNSET, description="Describe a region within a file for the alert." + Amazon S3 OIDC Config for audit log streaming configuration. + """ + + bucket: str = Field(description="Amazon S3 Bucket Name.") + region: str = Field(description="AWS S3 Bucket Region.") + key_id: str = Field( + description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." ) - html_url: Missing[str] = Field(default=UNSET) - classifications: Missing[ - list[Union[None, Literal["source", "generated", "test", "library"]]] - ] = Field( - default=UNSET, - description="Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file.", + authentication_type: Literal["oidc"] = Field( + description="Authentication Type for Amazon S3." ) + arn_role: str = Field() -class CodeScanningAlertLocation(GitHubModel): - """CodeScanningAlertLocation +class SplunkConfig(GitHubModel): + """SplunkConfig - Describe a region within a file for the alert. + Splunk Config for Audit Log Stream Configuration """ - path: Missing[str] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - end_column: Missing[int] = Field(default=UNSET) - - -class CodeScanningAlertInstancePropMessage(GitHubModel): - """CodeScanningAlertInstancePropMessage""" - - text: Missing[str] = Field(default=UNSET) + domain: str = Field(description="Domain of Splunk instance.") + port: int = Field(description="The port number for connecting to Splunk.") + key_id: str = Field( + description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." + ) + encrypted_token: str = Field(description="Encrypted Token.") + ssl_verify: bool = Field( + description="SSL verification helps ensure your events are sent to your Splunk endpoint securely." + ) -model_rebuild(CodeScanningAlertInstance) -model_rebuild(CodeScanningAlertLocation) -model_rebuild(CodeScanningAlertInstancePropMessage) +model_rebuild(AmazonS3OidcConfig) +model_rebuild(SplunkConfig) __all__ = ( - "CodeScanningAlertInstance", - "CodeScanningAlertInstancePropMessage", - "CodeScanningAlertLocation", + "AmazonS3OidcConfig", + "SplunkConfig", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0051.py b/githubkit/versions/ghec_v2022_11_28/models/group_0051.py index 6bd40aa61..6993a7f9d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0051.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0051.py @@ -9,145 +9,28 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser +class DatadogConfig(GitHubModel): + """DatadogConfig -class SimpleRepository(GitHubModel): - """Simple Repository - - A GitHub repository. + Datadog Config for audit log streaming configuration. """ - id: int = Field(description="A unique identifier of the repository.") - node_id: str = Field(description="The GraphQL identifier of the repository.") - name: str = Field(description="The name of the repository.") - full_name: str = Field( - description="The full, globally unique, name of the repository." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field(description="Whether the repository is private.") - html_url: str = Field(description="The URL to view the repository on GitHub.com.") - description: Union[str, None] = Field(description="The repository description.") - fork: bool = Field(description="Whether the repository is a fork.") - url: str = Field( - description="The URL to get more information about the repository from the GitHub API." - ) - archive_url: str = Field( - description="A template for the API URL to download the repository as an archive." - ) - assignees_url: str = Field( - description="A template for the API URL to list the available assignees for issues in the repository." - ) - blobs_url: str = Field( - description="A template for the API URL to create or retrieve a raw Git blob in the repository." - ) - branches_url: str = Field( - description="A template for the API URL to get information about branches in the repository." - ) - collaborators_url: str = Field( - description="A template for the API URL to get information about collaborators of the repository." - ) - comments_url: str = Field( - description="A template for the API URL to get information about comments on the repository." - ) - commits_url: str = Field( - description="A template for the API URL to get information about commits on the repository." - ) - compare_url: str = Field( - description="A template for the API URL to compare two commits or refs." - ) - contents_url: str = Field( - description="A template for the API URL to get the contents of the repository." - ) - contributors_url: str = Field( - description="A template for the API URL to list the contributors to the repository." - ) - deployments_url: str = Field( - description="The API URL to list the deployments of the repository." - ) - downloads_url: str = Field( - description="The API URL to list the downloads on the repository." - ) - events_url: str = Field( - description="The API URL to list the events of the repository." - ) - forks_url: str = Field( - description="The API URL to list the forks of the repository." - ) - git_commits_url: str = Field( - description="A template for the API URL to get information about Git commits of the repository." - ) - git_refs_url: str = Field( - description="A template for the API URL to get information about Git refs of the repository." - ) - git_tags_url: str = Field( - description="A template for the API URL to get information about Git tags of the repository." - ) - issue_comment_url: str = Field( - description="A template for the API URL to get information about issue comments on the repository." - ) - issue_events_url: str = Field( - description="A template for the API URL to get information about issue events on the repository." - ) - issues_url: str = Field( - description="A template for the API URL to get information about issues on the repository." - ) - keys_url: str = Field( - description="A template for the API URL to get information about deploy keys on the repository." - ) - labels_url: str = Field( - description="A template for the API URL to get information about labels of the repository." - ) - languages_url: str = Field( - description="The API URL to get information about the languages of the repository." - ) - merges_url: str = Field( - description="The API URL to merge branches in the repository." - ) - milestones_url: str = Field( - description="A template for the API URL to get information about milestones of the repository." - ) - notifications_url: str = Field( - description="A template for the API URL to get information about notifications on the repository." - ) - pulls_url: str = Field( - description="A template for the API URL to get information about pull requests on the repository." - ) - releases_url: str = Field( - description="A template for the API URL to get information about releases on the repository." - ) - stargazers_url: str = Field( - description="The API URL to list the stargazers on the repository." - ) - statuses_url: str = Field( - description="A template for the API URL to get information about statuses of a commit." - ) - subscribers_url: str = Field( - description="The API URL to list the subscribers on the repository." - ) - subscription_url: str = Field( - description="The API URL to subscribe to notifications for this repository." - ) - tags_url: str = Field( - description="The API URL to get information about tags on the repository." - ) - teams_url: str = Field( - description="The API URL to list the teams on the repository." - ) - trees_url: str = Field( - description="A template for the API URL to create or retrieve a raw Git tree of the repository." + encrypted_token: str = Field(description="Encrypted Splunk token.") + site: Literal["US", "US3", "US5", "EU1", "US1-FED", "AP1"] = Field( + description="Datadog Site to use." ) - hooks_url: str = Field( - description="The API URL to list the hooks on the repository." + key_id: str = Field( + description="Key ID obtained from the audit log stream key endpoint used to encrypt secrets." ) -model_rebuild(SimpleRepository) +model_rebuild(DatadogConfig) -__all__ = ("SimpleRepository",) +__all__ = ("DatadogConfig",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0052.py b/githubkit/versions/ghec_v2022_11_28/models/group_0052.py index 70f8f110c..a9e129395 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0052.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0052.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Union from pydantic import Field @@ -18,59 +18,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0048 import CodeScanningAlertRuleSummary -from .group_0049 import CodeScanningAnalysisTool -from .group_0050 import CodeScanningAlertInstance -from .group_0051 import SimpleRepository +class GetAuditLogStreamConfig(GitHubModel): + """Get an audit log streaming configuration -class CodeScanningOrganizationAlertItems(GitHubModel): - """CodeScanningOrganizationAlertItems""" + Get an audit log streaming configuration for an enterprise. + """ - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." - ) - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert." - ) - fixed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - rule: CodeScanningAlertRuleSummary = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." - ) + id: int = Field() + stream_type: str = Field() + stream_details: str = Field() + enabled: bool = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + paused_at: Missing[Union[datetime, None]] = Field(default=UNSET) -model_rebuild(CodeScanningOrganizationAlertItems) +model_rebuild(GetAuditLogStreamConfig) -__all__ = ("CodeScanningOrganizationAlertItems",) +__all__ = ("GetAuditLogStreamConfig",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0053.py b/githubkit/versions/ghec_v2022_11_28/models/group_0053.py index 4dca29397..7aa158d05 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0053.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0053.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,185 +18,43 @@ from githubkit.utils import UNSET -class CodeSecurityConfiguration(GitHubModel): - """CodeSecurityConfiguration +class CodeScanningAlertRuleSummary(GitHubModel): + """CodeScanningAlertRuleSummary""" - A code security configuration - """ - - id: Missing[int] = Field( - default=UNSET, description="The ID of the code security configuration" + id: Missing[Union[str, None]] = Field( + default=UNSET, + description="A unique identifier for the rule used to detect the alert.", ) name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique within the organization.", + default=UNSET, description="The name of the rule used to detect the alert." ) - target_type: Missing[Literal["global", "organization", "enterprise"]] = Field( - default=UNSET, description="The type of the code security configuration." + severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( + default=UNSET, description="The severity of the alert." ) + security_severity_level: Missing[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] = Field(default=UNSET, description="The security severity of the alert.") description: Missing[str] = Field( - default=UNSET, description="A 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" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for 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_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( default=UNSET, - description="The enablement status of secret scanning non-provider patterns", + description="A short description of the rule used to detect the alert.", ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - 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" + full_description: Missing[str] = Field( + default=UNSET, description="A description of the rule used to detect the alert." ) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - - -class CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions(GitHubModel): - """CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) - - -class CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions(GitHubModel): - """CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions - - Feature options for code scanning default setup - """ - - runner_type: Missing[Union[None, Literal["standard", "labeled", "not_set"]]] = ( - Field( - default=UNSET, - description="Whether to use labeled runners or standard GitHub runners.", - ) + tags: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A set of tags applicable for the rule." ) - runner_label: Missing[Union[str, None]] = Field( + help_: Missing[Union[str, None]] = Field( default=UNSET, - description="The label of the runner to use for code scanning when runner_type is 'labeled'.", + alias="help", + description="Detailed documentation for the rule as GitHub Flavored Markdown.", ) - - -class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions(GitHubModel): - """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: Missing[ - list[ - CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems - ] - ] = Field( + help_uri: Missing[Union[str, None]] = Field( default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) - - -class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersIt - ems - """ - - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" + description="A link to the documentation for the rule used to detect the alert.", ) -model_rebuild(CodeSecurityConfiguration) -model_rebuild(CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions) -model_rebuild(CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions) -model_rebuild(CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions) -model_rebuild( - CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(CodeScanningAlertRuleSummary) -__all__ = ( - "CodeSecurityConfiguration", - "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions", - "CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions", - "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions", - "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("CodeScanningAlertRuleSummary",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0054.py b/githubkit/versions/ghec_v2022_11_28/models/group_0054.py index a49412509..f49c4a62a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0054.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0054.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,22 +18,23 @@ from githubkit.utils import UNSET -class CodeScanningDefaultSetupOptions(GitHubModel): - """CodeScanningDefaultSetupOptions +class CodeScanningAnalysisTool(GitHubModel): + """CodeScanningAnalysisTool""" - Feature options for code scanning default setup - """ - - runner_type: Missing[Literal["standard", "labeled", "not_set"]] = Field( + name: Missing[str] = Field( + default=UNSET, + description="The name of the tool used to generate the code scanning analysis.", + ) + version: Missing[Union[str, None]] = Field( default=UNSET, - description="Whether to use labeled runners or standard GitHub runners.", + description="The version of the tool used to generate the code scanning analysis.", ) - runner_label: Missing[Union[str, None]] = Field( + guid: Missing[Union[str, None]] = Field( default=UNSET, - description="The label of the runner to use for code scanning default setup when runner_type is 'labeled'.", + description="The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data.", ) -model_rebuild(CodeScanningDefaultSetupOptions) +model_rebuild(CodeScanningAnalysisTool) -__all__ = ("CodeScanningDefaultSetupOptions",) +__all__ = ("CodeScanningAnalysisTool",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0055.py b/githubkit/versions/ghec_v2022_11_28/models/group_0055.py index d542c0015..96f2e8baa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0055.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0055.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,23 +17,68 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0053 import CodeSecurityConfiguration +class CodeScanningAlertInstance(GitHubModel): + """CodeScanningAlertInstance""" -class CodeSecurityDefaultConfigurationsItems(GitHubModel): - """CodeSecurityDefaultConfigurationsItems""" - - default_for_new_repos: Missing[Literal["public", "private_and_internal", "all"]] = ( - Field( - default=UNSET, - description="The visibility of newly created repositories for which the code security configuration will be applied to by default", - ) + ref: Missing[str] = Field( + default=UNSET, + description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``.", + ) + analysis_key: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.", + ) + environment: Missing[str] = Field( + default=UNSET, + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed.", + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + state: Missing[Union[None, Literal["open", "dismissed", "fixed"]]] = Field( + default=UNSET, description="State of a code scanning alert." ) + commit_sha: Missing[str] = Field(default=UNSET) + message: Missing[CodeScanningAlertInstancePropMessage] = Field(default=UNSET) + location: Missing[CodeScanningAlertLocation] = Field( + default=UNSET, description="Describe a region within a file for the alert." + ) + html_url: Missing[str] = Field(default=UNSET) + classifications: Missing[ + list[Union[None, Literal["source", "generated", "test", "library"]]] + ] = Field( + default=UNSET, + description="Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file.", + ) + + +class CodeScanningAlertLocation(GitHubModel): + """CodeScanningAlertLocation + + Describe a region within a file for the alert. + """ + + path: Missing[str] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + end_column: Missing[int] = Field(default=UNSET) + + +class CodeScanningAlertInstancePropMessage(GitHubModel): + """CodeScanningAlertInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) -model_rebuild(CodeSecurityDefaultConfigurationsItems) +model_rebuild(CodeScanningAlertInstance) +model_rebuild(CodeScanningAlertLocation) +model_rebuild(CodeScanningAlertInstancePropMessage) -__all__ = ("CodeSecurityDefaultConfigurationsItems",) +__all__ = ( + "CodeScanningAlertInstance", + "CodeScanningAlertInstancePropMessage", + "CodeScanningAlertLocation", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0056.py b/githubkit/versions/ghec_v2022_11_28/models/group_0056.py index a6179cb88..919d352a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0056.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0056.py @@ -9,43 +9,145 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0051 import SimpleRepository +from .group_0003 import SimpleUser -class CodeSecurityConfigurationRepositories(GitHubModel): - """CodeSecurityConfigurationRepositories +class SimpleRepository(GitHubModel): + """Simple Repository - Repositories associated with a code security configuration and attachment status + A GitHub repository. """ - status: Missing[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] = Field( - default=UNSET, - description="The attachment status of the code security configuration on the repository.", + id: int = Field(description="A unique identifier of the repository.") + node_id: str = Field(description="The GraphQL identifier of the repository.") + name: str = Field(description="The name of the repository.") + full_name: str = Field( + description="The full, globally unique, name of the repository." ) - repository: Missing[SimpleRepository] = Field( - default=UNSET, title="Simple Repository", description="A GitHub repository." + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field(description="Whether the repository is private.") + html_url: str = Field(description="The URL to view the repository on GitHub.com.") + description: Union[str, None] = Field(description="The repository description.") + fork: bool = Field(description="Whether the repository is a fork.") + url: str = Field( + description="The URL to get more information about the repository from the GitHub API." + ) + archive_url: str = Field( + description="A template for the API URL to download the repository as an archive." + ) + assignees_url: str = Field( + description="A template for the API URL to list the available assignees for issues in the repository." + ) + blobs_url: str = Field( + description="A template for the API URL to create or retrieve a raw Git blob in the repository." + ) + branches_url: str = Field( + description="A template for the API URL to get information about branches in the repository." + ) + collaborators_url: str = Field( + description="A template for the API URL to get information about collaborators of the repository." + ) + comments_url: str = Field( + description="A template for the API URL to get information about comments on the repository." + ) + commits_url: str = Field( + description="A template for the API URL to get information about commits on the repository." + ) + compare_url: str = Field( + description="A template for the API URL to compare two commits or refs." + ) + contents_url: str = Field( + description="A template for the API URL to get the contents of the repository." + ) + contributors_url: str = Field( + description="A template for the API URL to list the contributors to the repository." + ) + deployments_url: str = Field( + description="The API URL to list the deployments of the repository." + ) + downloads_url: str = Field( + description="The API URL to list the downloads on the repository." + ) + events_url: str = Field( + description="The API URL to list the events of the repository." + ) + forks_url: str = Field( + description="The API URL to list the forks of the repository." + ) + git_commits_url: str = Field( + description="A template for the API URL to get information about Git commits of the repository." + ) + git_refs_url: str = Field( + description="A template for the API URL to get information about Git refs of the repository." + ) + git_tags_url: str = Field( + description="A template for the API URL to get information about Git tags of the repository." + ) + issue_comment_url: str = Field( + description="A template for the API URL to get information about issue comments on the repository." + ) + issue_events_url: str = Field( + description="A template for the API URL to get information about issue events on the repository." + ) + issues_url: str = Field( + description="A template for the API URL to get information about issues on the repository." + ) + keys_url: str = Field( + description="A template for the API URL to get information about deploy keys on the repository." + ) + labels_url: str = Field( + description="A template for the API URL to get information about labels of the repository." + ) + languages_url: str = Field( + description="The API URL to get information about the languages of the repository." + ) + merges_url: str = Field( + description="The API URL to merge branches in the repository." + ) + milestones_url: str = Field( + description="A template for the API URL to get information about milestones of the repository." + ) + notifications_url: str = Field( + description="A template for the API URL to get information about notifications on the repository." + ) + pulls_url: str = Field( + description="A template for the API URL to get information about pull requests on the repository." + ) + releases_url: str = Field( + description="A template for the API URL to get information about releases on the repository." + ) + stargazers_url: str = Field( + description="The API URL to list the stargazers on the repository." + ) + statuses_url: str = Field( + description="A template for the API URL to get information about statuses of a commit." + ) + subscribers_url: str = Field( + description="The API URL to list the subscribers on the repository." + ) + subscription_url: str = Field( + description="The API URL to subscribe to notifications for this repository." + ) + tags_url: str = Field( + description="The API URL to get information about tags on the repository." + ) + teams_url: str = Field( + description="The API URL to list the teams on the repository." + ) + trees_url: str = Field( + description="A template for the API URL to create or retrieve a raw Git tree of the repository." + ) + hooks_url: str = Field( + description="The API URL to list the hooks on the repository." ) -model_rebuild(CodeSecurityConfigurationRepositories) +model_rebuild(SimpleRepository) -__all__ = ("CodeSecurityConfigurationRepositories",) +__all__ = ("SimpleRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0057.py b/githubkit/versions/ghec_v2022_11_28/models/group_0057.py index c8c7be2a0..6b7d483a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0057.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0057.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,44 +18,59 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0053 import CodeScanningAlertRuleSummary +from .group_0054 import CodeScanningAnalysisTool +from .group_0055 import CodeScanningAlertInstance +from .group_0056 import SimpleRepository -class EnterpriseSecurityAnalysisSettings(GitHubModel): - """Enterprise Security Analysis Settings""" - advanced_security_enabled_for_new_repositories: bool = Field( - description="Whether GitHub advanced security is automatically enabled for new repositories and repositories transferred to\nthis enterprise." - ) - advanced_security_enabled_for_new_user_namespace_repositories: Missing[bool] = ( - Field( - default=UNSET, - description="Whether GitHub Advanced Security is automatically enabled for new user namespace repositories.", - ) +class CodeScanningOrganizationAlertItems(GitHubModel): + """CodeScanningOrganizationAlertItems""" + + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - dependabot_alerts_enabled_for_new_repositories: bool = Field( - description="Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this\nenterprise." + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - secret_scanning_enabled_for_new_repositories: bool = Field( - description="Whether secret scanning is automatically enabled for new repositories and repositories transferred to this\nenterprise." + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." ) - secret_scanning_push_protection_enabled_for_new_repositories: bool = Field( - description="Whether secret scanning push protection is automatically enabled for new repositories and repositories\ntransferred to this enterprise." + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." ) - secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( + fixed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="An optional URL string to display to contributors who are blocked from pushing a secret.", + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - secret_scanning_non_provider_patterns_enabled_for_new_repositories: Missing[ - bool + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] ] = Field( - default=UNSET, - description="Whether secret scanning of non-provider patterns is enabled for new repositories under this enterprise.", + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." ) - 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 enterprise.", + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." ) -model_rebuild(EnterpriseSecurityAnalysisSettings) +model_rebuild(CodeScanningOrganizationAlertItems) -__all__ = ("EnterpriseSecurityAnalysisSettings",) +__all__ = ("CodeScanningOrganizationAlertItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0058.py b/githubkit/versions/ghec_v2022_11_28/models/group_0058.py index bb791ce22..4dca29397 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0058.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0058.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,46 +19,185 @@ from githubkit.utils import UNSET -class GetConsumedLicenses(GitHubModel): - """Enterprise Consumed Licenses +class CodeSecurityConfiguration(GitHubModel): + """CodeSecurityConfiguration - A breakdown of the licenses consumed by an enterprise. + A code security configuration """ - total_seats_consumed: Missing[int] = Field(default=UNSET) - total_seats_purchased: Missing[int] = Field(default=UNSET) - users: Missing[list[GetConsumedLicensesPropUsersItems]] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="The ID of the code security configuration" + ) + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique within the organization.", + ) + target_type: Missing[Literal["global", "organization", "enterprise"]] = Field( + default=UNSET, description="The type of the code security configuration." + ) + description: Missing[str] = Field( + 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" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for 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_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated bypass", + ) + secret_scanning_delegated_bypass_options: Missing[ + CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions + ] = Field( + default=UNSET, + description="Feature options for secret scanning delegated bypass", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non-provider patterns", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + 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" + ) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) -class GetConsumedLicensesPropUsersItems(GitHubModel): - """GetConsumedLicensesPropUsersItems""" +class CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions(GitHubModel): + """CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions - github_com_login: Missing[str] = Field(default=UNSET) - github_com_name: Missing[Union[str, None]] = Field(default=UNSET) - enterprise_server_user_ids: Missing[list[str]] = Field(default=UNSET) - github_com_user: Missing[bool] = Field(default=UNSET) - enterprise_server_user: Missing[Union[bool, None]] = Field(default=UNSET) - visual_studio_subscription_user: Missing[bool] = Field(default=UNSET) - license_type: Missing[str] = Field(default=UNSET) - github_com_profile: Missing[Union[str, None]] = Field(default=UNSET) - github_com_member_roles: Missing[list[str]] = Field(default=UNSET) - github_com_enterprise_roles: Missing[list[str]] = Field( - default=UNSET, description="All enterprise roles for a user." + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", ) - github_com_verified_domain_emails: Missing[list[str]] = Field(default=UNSET) - github_com_saml_name_id: Missing[Union[str, None]] = Field(default=UNSET) - github_com_orgs_with_pending_invites: Missing[list[str]] = Field(default=UNSET) - github_com_two_factor_auth: Missing[Union[bool, None]] = Field(default=UNSET) - enterprise_server_emails: Missing[list[str]] = Field(default=UNSET) - visual_studio_license_status: Missing[Union[str, None]] = Field(default=UNSET) - visual_studio_subscription_email: Missing[Union[str, None]] = Field(default=UNSET) - total_user_accounts: Missing[int] = Field(default=UNSET) -model_rebuild(GetConsumedLicenses) -model_rebuild(GetConsumedLicensesPropUsersItems) +class CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions(GitHubModel): + """CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions + + Feature options for code scanning default setup + """ + + runner_type: Missing[Union[None, Literal["standard", "labeled", "not_set"]]] = ( + Field( + default=UNSET, + description="Whether to use labeled runners or standard GitHub runners.", + ) + ) + runner_label: Missing[Union[str, None]] = Field( + default=UNSET, + description="The label of the runner to use for code scanning when runner_type is 'labeled'.", + ) + + +class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions(GitHubModel): + """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: Missing[ + list[ + CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems + ] + ] = Field( + default=UNSET, + description="The bypass reviewers for secret scanning delegated bypass", + ) + + +class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems( + GitHubModel +): + """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersIt + ems + """ + + reviewer_id: int = Field( + description="The ID of the team or role selected as a bypass reviewer" + ) + reviewer_type: Literal["TEAM", "ROLE"] = Field( + description="The type of the bypass reviewer" + ) + + +model_rebuild(CodeSecurityConfiguration) +model_rebuild(CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions) +model_rebuild(CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions) +model_rebuild(CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions) +model_rebuild( + CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) __all__ = ( - "GetConsumedLicenses", - "GetConsumedLicensesPropUsersItems", + "CodeSecurityConfiguration", + "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions", + "CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions", + "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions", + "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0059.py b/githubkit/versions/ghec_v2022_11_28/models/group_0059.py index 51fd6a419..a49412509 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0059.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0059.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,36 +18,22 @@ from githubkit.utils import UNSET -class TeamSimple(GitHubModel): - """Team Simple +class CodeScanningDefaultSetupOptions(GitHubModel): + """CodeScanningDefaultSetupOptions - Groups of organization members that gives permissions on specified repositories. + Feature options for code scanning default setup """ - id: int = Field(description="Unique identifier of the team") - node_id: str = Field() - url: str = Field(description="URL for the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - description: Union[str, None] = Field(description="Description of the team") - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Missing[str] = Field( - default=UNSET, description="The level of privacy this team should have" - ) - notification_setting: Missing[str] = Field( - default=UNSET, description="The notification setting the team has set" + runner_type: Missing[Literal["standard", "labeled", "not_set"]] = Field( + default=UNSET, + description="Whether to use labeled runners or standard GitHub runners.", ) - html_url: str = Field() - repositories_url: str = Field() - slug: str = Field() - ldap_dn: Missing[str] = Field( + runner_label: Missing[Union[str, None]] = Field( default=UNSET, - description="Distinguished Name (DN) that team maps to within LDAP environment", + description="The label of the runner to use for code scanning default setup when runner_type is 'labeled'.", ) -model_rebuild(TeamSimple) +model_rebuild(CodeScanningDefaultSetupOptions) -__all__ = ("TeamSimple",) +__all__ = ("CodeScanningDefaultSetupOptions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0060.py b/githubkit/versions/ghec_v2022_11_28/models/group_0060.py index 6731ec53b..ec21214ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0060.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0060.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,45 +17,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0059 import TeamSimple +from .group_0058 import CodeSecurityConfiguration -class Team(GitHubModel): - """Team +class CodeSecurityDefaultConfigurationsItems(GitHubModel): + """CodeSecurityDefaultConfigurationsItems""" - Groups of organization members that gives permissions on specified repositories. - """ + default_for_new_repos: Missing[Literal["public", "private_and_internal", "all"]] = ( + Field( + default=UNSET, + description="The visibility of newly created repositories for which the code security configuration will be applied to by default", + ) + ) + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" + ) - id: int = Field() - node_id: str = Field() - name: str = Field() - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[str] = Field(default=UNSET) - notification_setting: Missing[str] = Field(default=UNSET) - permission: str = Field() - permissions: Missing[TeamPropPermissions] = Field(default=UNSET) - url: str = Field() - html_url: str = Field() - members_url: str = Field() - repositories_url: str = Field() - parent: Union[None, TeamSimple] = Field() +model_rebuild(CodeSecurityDefaultConfigurationsItems) -class TeamPropPermissions(GitHubModel): - """TeamPropPermissions""" - - pull: bool = Field() - triage: bool = Field() - push: bool = Field() - maintain: bool = Field() - admin: bool = Field() - - -model_rebuild(Team) -model_rebuild(TeamPropPermissions) - -__all__ = ( - "Team", - "TeamPropPermissions", -) +__all__ = ("CodeSecurityDefaultConfigurationsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0061.py b/githubkit/versions/ghec_v2022_11_28/models/group_0061.py index 13a82bb6f..e78c37701 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0061.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0061.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,72 +17,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0031 import OrganizationSimple -from .group_0060 import Team +from .group_0056 import SimpleRepository -class CopilotSeatDetails(GitHubModel): - """Copilot Business Seat Detail +class CodeSecurityConfigurationRepositories(GitHubModel): + """CodeSecurityConfigurationRepositories - Information about a Copilot Business seat assignment for a user, team, or - organization. + Repositories associated with a code security configuration and attachment status """ - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - organization: Missing[Union[None, OrganizationSimple]] = Field(default=UNSET) - assigning_team: Missing[Union[Team, EnterpriseTeam, None]] = Field( + status: Missing[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] + ] = Field( default=UNSET, - description="The team through which the assignee is granted access to GitHub Copilot, if applicable.", + description="The attachment status of the code security configuration on the repository.", ) - pending_cancellation_date: Missing[Union[date, None]] = Field( - default=UNSET, - description="The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.", - ) - last_activity_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.", - ) - last_activity_editor: Missing[Union[str, None]] = Field( - default=UNSET, - description="Last editor that was used by the user for a GitHub Copilot completion.", - ) - created_at: datetime = Field( - description="Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="**Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", + repository: Missing[SimpleRepository] = Field( + default=UNSET, title="Simple Repository", description="A GitHub repository." ) - plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( - default=UNSET, - description="The Copilot plan of the organization, or the parent enterprise, when applicable.", - ) - - -class EnterpriseTeam(GitHubModel): - """Enterprise Team - - Group of enterprise owners and/or members - """ - - id: int = Field() - name: str = Field() - slug: str = Field() - url: str = Field() - sync_to_organizations: str = Field() - group_id: Missing[Union[str, None]] = Field(default=UNSET) - group_name: Missing[Union[str, None]] = Field(default=UNSET) - html_url: str = Field() - members_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() -model_rebuild(CopilotSeatDetails) -model_rebuild(EnterpriseTeam) +model_rebuild(CodeSecurityConfigurationRepositories) -__all__ = ( - "CopilotSeatDetails", - "EnterpriseTeam", -) +__all__ = ("CodeSecurityConfigurationRepositories",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0062.py b/githubkit/versions/ghec_v2022_11_28/models/group_0062.py index b4aadfbe1..c8c7be2a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0062.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0062.py @@ -9,350 +9,52 @@ from __future__ import annotations -from datetime import date from typing import Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class CopilotUsageMetricsDay(ExtraGitHubModel): - """Copilot Usage Metrics +class EnterpriseSecurityAnalysisSettings(GitHubModel): + """Enterprise Security Analysis Settings""" - Copilot usage metrics for a given day. - """ - - date: date = Field( - description="The date for which the usage metrics are aggregated, in `YYYY-MM-DD` format." - ) - total_active_users: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot users with activity belonging to any Copilot feature, globally, for the given day. Includes passive activity such as receiving a code suggestion, as well as engagement activity such as accepting a code suggestion or prompting chat. Does not include authentication events. Is not limited to the individual features detailed on the endpoint.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot users who engaged with any Copilot feature, for the given day. Examples include but are not limited to accepting a code suggestion, prompting Copilot chat, or triggering a PR Summary. Does not include authentication events. Is not limited to the individual features detailed on the endpoint.", - ) - copilot_ide_code_completions: Missing[Union[CopilotIdeCodeCompletions, None]] = ( - Field( - default=UNSET, - description="Usage metrics for Copilot editor code completions in the IDE.", - ) - ) - copilot_ide_chat: Missing[Union[CopilotIdeChat, None]] = Field( - default=UNSET, description="Usage metrics for Copilot Chat in the IDE." - ) - copilot_dotcom_chat: Missing[Union[CopilotDotcomChat, None]] = Field( - default=UNSET, description="Usage metrics for Copilot Chat in github.com" - ) - copilot_dotcom_pull_requests: Missing[Union[CopilotDotcomPullRequests, None]] = ( - Field(default=UNSET, description="Usage metrics for Copilot for pull requests.") - ) - - -class CopilotDotcomChat(ExtraGitHubModel): - """CopilotDotcomChat - - Usage metrics for Copilot Chat in github.com - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Total number of users who prompted Copilot Chat on github.com at least once.", - ) - models: Missing[list[CopilotDotcomChatPropModelsItems]] = Field( - default=UNSET, - description="List of model metrics for a custom models and the default model.", - ) - - -class CopilotDotcomChatPropModelsItems(GitHubModel): - """CopilotDotcomChatPropModelsItems""" - - name: Missing[str] = Field( - default=UNSET, - description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, - description="The training date for the custom model (if applicable).", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Total number of users who prompted Copilot Chat on github.com at least once for each model.", - ) - total_chats: Missing[int] = Field( - default=UNSET, - description="Total number of chats initiated by users on github.com.", - ) - - -class CopilotIdeChat(ExtraGitHubModel): - """CopilotIdeChat - - Usage metrics for Copilot Chat in the IDE. - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Total number of users who prompted Copilot Chat in the IDE.", - ) - editors: Missing[list[CopilotIdeChatPropEditorsItems]] = Field(default=UNSET) - - -class CopilotIdeChatPropEditorsItems(GitHubModel): - """CopilotIdeChatPropEditorsItems - - Copilot Chat metrics, for active editors. - """ - - name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who prompted Copilot Chat in the specified editor.", - ) - models: Missing[list[CopilotIdeChatPropEditorsItemsPropModelsItems]] = Field( - default=UNSET, - description="List of model metrics for custom models and the default model.", - ) - - -class CopilotIdeChatPropEditorsItemsPropModelsItems(GitHubModel): - """CopilotIdeChatPropEditorsItemsPropModelsItems""" - - name: Missing[str] = Field( - default=UNSET, - description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who prompted Copilot Chat in the given editor and model.", - ) - total_chats: Missing[int] = Field( - default=UNSET, - description="The total number of chats initiated by users in the given editor and model.", - ) - total_chat_insertion_events: Missing[int] = Field( - default=UNSET, - description="The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor.", - ) - total_chat_copy_events: Missing[int] = Field( - default=UNSET, - description="The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor.", - ) - - -class CopilotDotcomPullRequests(ExtraGitHubModel): - """CopilotDotcomPullRequests - - Usage metrics for Copilot for pull requests. - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once.", - ) - repositories: Missing[list[CopilotDotcomPullRequestsPropRepositoriesItems]] = Field( - default=UNSET, - description="Repositories in which users used Copilot for Pull Requests to generate pull request summaries", - ) - - -class CopilotDotcomPullRequestsPropRepositoriesItems(GitHubModel): - """CopilotDotcomPullRequestsPropRepositoriesItems""" - - name: Missing[str] = Field(default=UNSET, description="Repository name") - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository.", - ) - models: Missing[ - list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems] - ] = Field( - default=UNSET, - description="List of model metrics for custom models and the default model.", - ) - - -class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems(GitHubModel): - """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" - - name: Missing[str] = Field( - default=UNSET, - description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." - ) - total_pr_summaries_created: Missing[int] = Field( - default=UNSET, - description="The number of pull request summaries generated using Copilot for Pull Requests in the given repository.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model.", - ) - - -class CopilotIdeCodeCompletions(ExtraGitHubModel): - """CopilotIdeCodeCompletions - - Usage metrics for Copilot editor code completions in the IDE. - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances.", - ) - languages: Missing[list[CopilotIdeCodeCompletionsPropLanguagesItems]] = Field( - default=UNSET, description="Code completion metrics for active languages." - ) - editors: Missing[list[CopilotIdeCodeCompletionsPropEditorsItems]] = Field( - default=UNSET + advanced_security_enabled_for_new_repositories: bool = Field( + description="Whether GitHub advanced security is automatically enabled for new repositories and repositories transferred to\nthis enterprise." ) - - -class CopilotIdeCodeCompletionsPropLanguagesItems(GitHubModel): - """CopilotIdeCodeCompletionsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. - """ - - name: Missing[str] = Field( - default=UNSET, - description="Name of the language used for Copilot code completion suggestions.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances.", - ) - - -class CopilotIdeCodeCompletionsPropEditorsItems(ExtraGitHubModel): - """CopilotIdeCodeCompletionsPropEditorsItems - - Copilot code completion metrics for active editors. - """ - - name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given editor. Includes both full and partial acceptances.", - ) - models: Missing[list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems]] = ( + advanced_security_enabled_for_new_user_namespace_repositories: Missing[bool] = ( Field( default=UNSET, - description="List of model metrics for custom models and the default model.", + description="Whether GitHub Advanced Security is automatically enabled for new user namespace repositories.", ) ) - - -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems(GitHubModel): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" - - name: Missing[str] = Field( - default=UNSET, - description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", + dependabot_alerts_enabled_for_new_repositories: bool = Field( + description="Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this\nenterprise." ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." + secret_scanning_enabled_for_new_repositories: bool = Field( + description="Whether secret scanning is automatically enabled for new repositories and repositories transferred to this\nenterprise." ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." + secret_scanning_push_protection_enabled_for_new_repositories: bool = Field( + description="Whether secret scanning push protection is automatically enabled for new repositories and repositories\ntransferred to this enterprise." ) - total_engaged_users: Missing[int] = Field( + secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language and model. Includes both full and partial acceptances.", + description="An optional URL string to display to contributors who are blocked from pushing a secret.", ) - languages: Missing[ - list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems] + secret_scanning_non_provider_patterns_enabled_for_new_repositories: Missing[ + bool ] = Field( default=UNSET, - description="Code completion metrics for active languages, for the given editor.", - ) - - -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems( - GitHubModel -): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. - """ - - name: Missing[str] = Field( - default=UNSET, - description="Name of the language used for Copilot code completion suggestions, for the given editor.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language. Includes both full and partial acceptances.", - ) - total_code_suggestions: Missing[int] = Field( - default=UNSET, - description="The number of Copilot code suggestions generated for the given editor, for the given language.", - ) - total_code_acceptances: Missing[int] = Field( - default=UNSET, - description="The number of Copilot code suggestions accepted for the given editor, for the given language. Includes both full and partial acceptances.", - ) - total_code_lines_suggested: Missing[int] = Field( - default=UNSET, - description="The number of lines of code suggested by Copilot code completions for the given editor, for the given language.", + description="Whether secret scanning of non-provider patterns is enabled for new repositories under this enterprise.", ) - total_code_lines_accepted: Missing[int] = Field( + secret_scanning_validity_checks_enabled: Missing[bool] = Field( default=UNSET, - description="The number of lines of code accepted from Copilot code suggestions for the given editor, for the given language.", + description="Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this enterprise.", ) -model_rebuild(CopilotUsageMetricsDay) -model_rebuild(CopilotDotcomChat) -model_rebuild(CopilotDotcomChatPropModelsItems) -model_rebuild(CopilotIdeChat) -model_rebuild(CopilotIdeChatPropEditorsItems) -model_rebuild(CopilotIdeChatPropEditorsItemsPropModelsItems) -model_rebuild(CopilotDotcomPullRequests) -model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItems) -model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems) -model_rebuild(CopilotIdeCodeCompletions) -model_rebuild(CopilotIdeCodeCompletionsPropLanguagesItems) -model_rebuild(CopilotIdeCodeCompletionsPropEditorsItems) -model_rebuild(CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems) -model_rebuild( - CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems -) +model_rebuild(EnterpriseSecurityAnalysisSettings) -__all__ = ( - "CopilotDotcomChat", - "CopilotDotcomChatPropModelsItems", - "CopilotDotcomPullRequests", - "CopilotDotcomPullRequestsPropRepositoriesItems", - "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems", - "CopilotIdeChat", - "CopilotIdeChatPropEditorsItems", - "CopilotIdeChatPropEditorsItemsPropModelsItems", - "CopilotIdeCodeCompletions", - "CopilotIdeCodeCompletionsPropEditorsItems", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", - "CopilotIdeCodeCompletionsPropLanguagesItems", - "CopilotUsageMetricsDay", -) +__all__ = ("EnterpriseSecurityAnalysisSettings",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0063.py b/githubkit/versions/ghec_v2022_11_28/models/group_0063.py index cdfccad9a..bb791ce22 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0063.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0063.py @@ -9,102 +9,55 @@ from __future__ import annotations -from datetime import date from typing import Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class CopilotUsageMetrics(GitHubModel): - """Copilot Usage Metrics +class GetConsumedLicenses(GitHubModel): + """Enterprise Consumed Licenses - Summary of Copilot usage. + A breakdown of the licenses consumed by an enterprise. """ - day: date = Field( - description="The date for which the usage metrics are reported, in `YYYY-MM-DD` format." - ) - total_suggestions_count: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot code completion suggestions shown to users.", - ) - total_acceptances_count: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot code completion suggestions accepted by users.", - ) - total_lines_suggested: Missing[int] = Field( - default=UNSET, - description="The total number of lines of code completions suggested by Copilot.", - ) - total_lines_accepted: Missing[int] = Field( - default=UNSET, - description="The total number of lines of code completions accepted by users.", - ) - total_active_users: Missing[int] = Field( - default=UNSET, - description="The total number of users who were shown Copilot code completion suggestions during the day specified.", - ) - total_chat_acceptances: Missing[int] = Field( - default=UNSET, - description="The total instances of users who accepted code suggested by Copilot Chat in the IDE (panel and inline).", - ) - total_chat_turns: Missing[int] = Field( - default=UNSET, - description="The total number of chat turns (prompt and response pairs) sent between users and Copilot Chat in the IDE.", - ) - total_active_chat_users: Missing[int] = Field( - default=UNSET, - description="The total number of users who interacted with Copilot Chat in the IDE during the day specified.", - ) - breakdown: Union[list[CopilotUsageMetricsPropBreakdownItems], None] = Field( - description="Breakdown of Copilot code completions usage by language and editor" - ) - + total_seats_consumed: Missing[int] = Field(default=UNSET) + total_seats_purchased: Missing[int] = Field(default=UNSET) + users: Missing[list[GetConsumedLicensesPropUsersItems]] = Field(default=UNSET) -class CopilotUsageMetricsPropBreakdownItems(ExtraGitHubModel): - """CopilotUsageMetricsPropBreakdownItems - Breakdown of Copilot usage by editor for this language - """ +class GetConsumedLicensesPropUsersItems(GitHubModel): + """GetConsumedLicensesPropUsersItems""" - language: Missing[str] = Field( - default=UNSET, - description="The language in which Copilot suggestions were shown to users in the specified editor.", - ) - editor: Missing[str] = Field( - default=UNSET, - description="The editor in which Copilot suggestions were shown to users for the specified language.", - ) - suggestions_count: Missing[int] = Field( - default=UNSET, - description="The number of Copilot suggestions shown to users in the editor specified during the day specified.", - ) - acceptances_count: Missing[int] = Field( - default=UNSET, - description="The number of Copilot suggestions accepted by users in the editor specified during the day specified.", - ) - lines_suggested: Missing[int] = Field( - default=UNSET, - description="The number of lines of code suggested by Copilot in the editor specified during the day specified.", - ) - lines_accepted: Missing[int] = Field( - default=UNSET, - description="The number of lines of code accepted by users in the editor specified during the day specified.", - ) - active_users: Missing[int] = Field( - default=UNSET, - description="The number of users who were shown Copilot completion suggestions in the editor specified during the day specified.", + github_com_login: Missing[str] = Field(default=UNSET) + github_com_name: Missing[Union[str, None]] = Field(default=UNSET) + enterprise_server_user_ids: Missing[list[str]] = Field(default=UNSET) + github_com_user: Missing[bool] = Field(default=UNSET) + enterprise_server_user: Missing[Union[bool, None]] = Field(default=UNSET) + visual_studio_subscription_user: Missing[bool] = Field(default=UNSET) + license_type: Missing[str] = Field(default=UNSET) + github_com_profile: Missing[Union[str, None]] = Field(default=UNSET) + github_com_member_roles: Missing[list[str]] = Field(default=UNSET) + github_com_enterprise_roles: Missing[list[str]] = Field( + default=UNSET, description="All enterprise roles for a user." ) + github_com_verified_domain_emails: Missing[list[str]] = Field(default=UNSET) + github_com_saml_name_id: Missing[Union[str, None]] = Field(default=UNSET) + github_com_orgs_with_pending_invites: Missing[list[str]] = Field(default=UNSET) + github_com_two_factor_auth: Missing[Union[bool, None]] = Field(default=UNSET) + enterprise_server_emails: Missing[list[str]] = Field(default=UNSET) + visual_studio_license_status: Missing[Union[str, None]] = Field(default=UNSET) + visual_studio_subscription_email: Missing[Union[str, None]] = Field(default=UNSET) + total_user_accounts: Missing[int] = Field(default=UNSET) -model_rebuild(CopilotUsageMetrics) -model_rebuild(CopilotUsageMetricsPropBreakdownItems) +model_rebuild(GetConsumedLicenses) +model_rebuild(GetConsumedLicensesPropUsersItems) __all__ = ( - "CopilotUsageMetrics", - "CopilotUsageMetricsPropBreakdownItems", + "GetConsumedLicenses", + "GetConsumedLicensesPropUsersItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0064.py b/githubkit/versions/ghec_v2022_11_28/models/group_0064.py index ff820726e..51fd6a419 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0064.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0064.py @@ -9,23 +9,45 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class DependabotAlertPackage(GitHubModel): - """DependabotAlertPackage +class TeamSimple(GitHubModel): + """Team Simple - Details for the vulnerable package. + Groups of organization members that gives permissions on specified repositories. """ - ecosystem: str = Field( - description="The package's language or package management ecosystem." + id: int = Field(description="Unique identifier of the team") + node_id: str = Field() + url: str = Field(description="URL for the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + description: Union[str, None] = Field(description="Description of the team") + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Missing[str] = Field( + default=UNSET, description="The level of privacy this team should have" + ) + notification_setting: Missing[str] = Field( + default=UNSET, description="The notification setting the team has set" + ) + html_url: str = Field() + repositories_url: str = Field() + slug: str = Field() + ldap_dn: Missing[str] = Field( + default=UNSET, + description="Distinguished Name (DN) that team maps to within LDAP environment", ) - name: str = Field(description="The unique package name within its ecosystem.") -model_rebuild(DependabotAlertPackage) +model_rebuild(TeamSimple) -__all__ = ("DependabotAlertPackage",) +__all__ = ("TeamSimple",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0065.py b/githubkit/versions/ghec_v2022_11_28/models/group_0065.py index 4518b6a4e..abee7efb7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0065.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0065.py @@ -9,52 +9,53 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0064 import DependabotAlertPackage +from .group_0064 import TeamSimple -class DependabotAlertSecurityVulnerability(GitHubModel): - """DependabotAlertSecurityVulnerability +class Team(GitHubModel): + """Team - Details pertaining to one vulnerable version range for the advisory. + Groups of organization members that gives permissions on specified repositories. """ - package: DependabotAlertPackage = Field( - description="Details for the vulnerable package." - ) - severity: Literal["low", "medium", "high", "critical"] = Field( - description="The severity of the vulnerability." - ) - vulnerable_version_range: str = Field( - description="Conditions that identify vulnerable versions of this vulnerability's package." - ) - first_patched_version: Union[ - DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, None - ] = Field( - description="Details pertaining to the package version that patches this vulnerability." - ) - - -class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion(GitHubModel): - """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion - - Details pertaining to the package version that patches this vulnerability. - """ + id: int = Field() + node_id: str = Field() + name: str = Field() + slug: str = Field() + description: Union[str, None] = Field() + privacy: Missing[str] = Field(default=UNSET) + notification_setting: Missing[str] = Field(default=UNSET) + permission: str = Field() + permissions: Missing[TeamPropPermissions] = Field(default=UNSET) + url: str = Field() + html_url: str = Field() + members_url: str = Field() + repositories_url: str = Field() + parent: Union[None, TeamSimple] = Field() + + +class TeamPropPermissions(GitHubModel): + """TeamPropPermissions""" - identifier: str = Field( - description="The package version that patches this vulnerability." - ) + pull: bool = Field() + triage: bool = Field() + push: bool = Field() + maintain: bool = Field() + admin: bool = Field() -model_rebuild(DependabotAlertSecurityVulnerability) -model_rebuild(DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion) +model_rebuild(Team) +model_rebuild(TeamPropPermissions) __all__ = ( - "DependabotAlertSecurityVulnerability", - "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", + "Team", + "TeamPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0066.py b/githubkit/versions/ghec_v2022_11_28/models/group_0066.py index 7a326dc71..aaeaa82fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0066.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0066.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from datetime import date, datetime from typing import Literal, Union from pydantic import Field @@ -18,109 +18,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities -from .group_0065 import DependabotAlertSecurityVulnerability +from .group_0003 import SimpleUser +from .group_0036 import OrganizationSimple +from .group_0065 import Team -class DependabotAlertSecurityAdvisory(GitHubModel): - """DependabotAlertSecurityAdvisory +class CopilotSeatDetails(GitHubModel): + """Copilot Business Seat Detail - Details for the GitHub Security Advisory. + Information about a Copilot Business seat assignment for a user, team, or + organization. """ - ghsa_id: str = Field( - description="The unique GitHub Security Advisory ID assigned to the advisory." + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + organization: Missing[Union[None, OrganizationSimple]] = Field(default=UNSET) + assigning_team: Missing[Union[Team, EnterpriseTeam, None]] = Field( + default=UNSET, + description="The team through which the assignee is granted access to GitHub Copilot, if applicable.", ) - cve_id: Union[str, None] = Field( - description="The unique CVE ID assigned to the advisory." + pending_cancellation_date: Missing[Union[date, None]] = Field( + default=UNSET, + description="The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.", ) - summary: str = Field( - max_length=1024, description="A short, plain text summary of the advisory." + last_activity_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.", ) - description: str = Field( - description="A long-form Markdown-supported description of the advisory." + last_activity_editor: Missing[Union[str, None]] = Field( + default=UNSET, + description="Last editor that was used by the user for a GitHub Copilot completion.", ) - vulnerabilities: list[DependabotAlertSecurityVulnerability] = Field( - description="Vulnerable version range information for the advisory." + created_at: datetime = Field( + description="Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format." ) - severity: Literal["low", "medium", "high", "critical"] = Field( - description="The severity of the advisory." + updated_at: Missing[datetime] = Field( + default=UNSET, + description="**Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", ) - cvss: DependabotAlertSecurityAdvisoryPropCvss = Field( - description="Details for the advisory pertaining to the Common Vulnerability Scoring System." + plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( + default=UNSET, + description="The Copilot plan of the organization, or the parent enterprise, when applicable.", ) - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[DependabotAlertSecurityAdvisoryPropCwesItems] = Field( - description="Details for the advisory pertaining to Common Weakness Enumeration." - ) - identifiers: list[DependabotAlertSecurityAdvisoryPropIdentifiersItems] = Field( - description="Values that identify this advisory among security information sources." - ) - references: list[DependabotAlertSecurityAdvisoryPropReferencesItems] = Field( - description="Links to additional advisory information." - ) - published_at: datetime = Field( - description="The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: datetime = Field( - description="The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - withdrawn_at: Union[datetime, None] = Field( - description="The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - - -class DependabotAlertSecurityAdvisoryPropCvss(GitHubModel): - """DependabotAlertSecurityAdvisoryPropCvss - - Details for the advisory pertaining to the Common Vulnerability Scoring System. - """ - - score: float = Field(le=10.0, description="The overall CVSS score of the advisory.") - vector_string: Union[str, None] = Field( - description="The full CVSS vector string for the advisory." - ) - - -class DependabotAlertSecurityAdvisoryPropCwesItems(GitHubModel): - """DependabotAlertSecurityAdvisoryPropCwesItems - - A CWE weakness assigned to the advisory. - """ - - cwe_id: str = Field(description="The unique CWE ID.") - name: str = Field(description="The short, plain text name of the CWE.") - - -class DependabotAlertSecurityAdvisoryPropIdentifiersItems(GitHubModel): - """DependabotAlertSecurityAdvisoryPropIdentifiersItems - - An advisory identifier. - """ - - type: Literal["CVE", "GHSA"] = Field(description="The type of advisory identifier.") - value: str = Field(description="The value of the advisory identifer.") -class DependabotAlertSecurityAdvisoryPropReferencesItems(GitHubModel): - """DependabotAlertSecurityAdvisoryPropReferencesItems +class EnterpriseTeam(GitHubModel): + """Enterprise Team - A link to additional advisory information. + Group of enterprise owners and/or members """ - url: str = Field(description="The URL of the reference.") + id: int = Field() + name: str = Field() + slug: str = Field() + url: str = Field() + sync_to_organizations: str = Field() + group_id: Missing[Union[str, None]] = Field(default=UNSET) + group_name: Missing[Union[str, None]] = Field(default=UNSET) + html_url: str = Field() + members_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(DependabotAlertSecurityAdvisory) -model_rebuild(DependabotAlertSecurityAdvisoryPropCvss) -model_rebuild(DependabotAlertSecurityAdvisoryPropCwesItems) -model_rebuild(DependabotAlertSecurityAdvisoryPropIdentifiersItems) -model_rebuild(DependabotAlertSecurityAdvisoryPropReferencesItems) +model_rebuild(CopilotSeatDetails) +model_rebuild(EnterpriseTeam) __all__ = ( - "DependabotAlertSecurityAdvisory", - "DependabotAlertSecurityAdvisoryPropCvss", - "DependabotAlertSecurityAdvisoryPropCwesItems", - "DependabotAlertSecurityAdvisoryPropIdentifiersItems", - "DependabotAlertSecurityAdvisoryPropReferencesItems", + "CopilotSeatDetails", + "EnterpriseTeam", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0067.py b/githubkit/versions/ghec_v2022_11_28/models/group_0067.py index 6d81eef3c..3afdf11cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0067.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0067.py @@ -9,74 +9,350 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from datetime import date +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0051 import SimpleRepository -from .group_0065 import DependabotAlertSecurityVulnerability -from .group_0066 import DependabotAlertSecurityAdvisory -from .group_0068 import DependabotAlertWithRepositoryPropDependency +class CopilotUsageMetricsDay(ExtraGitHubModel): + """Copilot Usage Metrics -class DependabotAlertWithRepository(GitHubModel): - """DependabotAlertWithRepository + Copilot usage metrics for a given day. + """ - A Dependabot alert. + date: date = Field( + description="The date for which the usage metrics are aggregated, in `YYYY-MM-DD` format." + ) + total_active_users: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot users with activity belonging to any Copilot feature, globally, for the given day. Includes passive activity such as receiving a code suggestion, as well as engagement activity such as accepting a code suggestion or prompting chat. Does not include authentication events. Is not limited to the individual features detailed on the endpoint.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot users who engaged with any Copilot feature, for the given day. Examples include but are not limited to accepting a code suggestion, prompting Copilot chat, or triggering a PR Summary. Does not include authentication events. Is not limited to the individual features detailed on the endpoint.", + ) + copilot_ide_code_completions: Missing[Union[CopilotIdeCodeCompletions, None]] = ( + Field( + default=UNSET, + description="Usage metrics for Copilot editor code completions in the IDE.", + ) + ) + copilot_ide_chat: Missing[Union[CopilotIdeChat, None]] = Field( + default=UNSET, description="Usage metrics for Copilot Chat in the IDE." + ) + copilot_dotcom_chat: Missing[Union[CopilotDotcomChat, None]] = Field( + default=UNSET, description="Usage metrics for Copilot Chat in GitHub.com" + ) + copilot_dotcom_pull_requests: Missing[Union[CopilotDotcomPullRequests, None]] = ( + Field(default=UNSET, description="Usage metrics for Copilot for pull requests.") + ) + + +class CopilotDotcomChat(ExtraGitHubModel): + """CopilotDotcomChat + + Usage metrics for Copilot Chat in GitHub.com """ - number: int = Field(description="The security alert number.") - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( - description="The state of the Dependabot alert." + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat on github.com at least once.", ) - dependency: DependabotAlertWithRepositoryPropDependency = Field( - description="Details for the vulnerable dependency." + models: Missing[list[CopilotDotcomChatPropModelsItems]] = Field( + default=UNSET, + description="List of model metrics for a custom models and the default model.", ) - security_advisory: DependabotAlertSecurityAdvisory = Field( - description="Details for the GitHub Security Advisory." + + +class CopilotDotcomChatPropModelsItems(GitHubModel): + """CopilotDotcomChatPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", ) - security_vulnerability: DependabotAlertSecurityVulnerability = Field( - description="Details pertaining to one vulnerable version range for the advisory." + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, + description="The training date for the custom model (if applicable).", ) - updated_at: datetime = Field( - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat on github.com at least once for each model.", ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + total_chats: Missing[int] = Field( + default=UNSET, + description="Total number of chats initiated by users on github.com.", ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] = Field(description="The reason that the alert was dismissed.") - dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( - description="An optional comment associated with the alert's dismissal." + + +class CopilotIdeChat(ExtraGitHubModel): + """CopilotIdeChat + + Usage metrics for Copilot Chat in the IDE. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat in the IDE.", ) - fixed_at: Union[datetime, None] = Field( - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + editors: Missing[list[CopilotIdeChatPropEditorsItems]] = Field(default=UNSET) + + +class CopilotIdeChatPropEditorsItems(GitHubModel): + """CopilotIdeChatPropEditorsItems + + Copilot Chat metrics, for active editors. + """ + + name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who prompted Copilot Chat in the specified editor.", + ) + models: Missing[list[CopilotIdeChatPropEditorsItemsPropModelsItems]] = Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) + + +class CopilotIdeChatPropEditorsItemsPropModelsItems(GitHubModel): + """CopilotIdeChatPropEditorsItemsPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who prompted Copilot Chat in the given editor and model.", + ) + total_chats: Missing[int] = Field( + default=UNSET, + description="The total number of chats initiated by users in the given editor and model.", + ) + total_chat_insertion_events: Missing[int] = Field( + default=UNSET, + description="The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor.", + ) + total_chat_copy_events: Missing[int] = Field( + default=UNSET, + description="The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor.", + ) + + +class CopilotDotcomPullRequests(ExtraGitHubModel): + """CopilotDotcomPullRequests + + Usage metrics for Copilot for pull requests. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once.", + ) + repositories: Missing[list[CopilotDotcomPullRequestsPropRepositoriesItems]] = Field( + default=UNSET, + description="Repositories in which users used Copilot for Pull Requests to generate pull request summaries", + ) + + +class CopilotDotcomPullRequestsPropRepositoriesItems(GitHubModel): + """CopilotDotcomPullRequestsPropRepositoriesItems""" + + name: Missing[str] = Field(default=UNSET, description="Repository name") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository.", ) - auto_dismissed_at: Missing[Union[datetime, None]] = Field( + models: Missing[ + list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems] + ] = Field( default=UNSET, - description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="List of model metrics for custom models and the default model.", ) - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." + + +class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems(GitHubModel): + """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_pr_summaries_created: Missing[int] = Field( + default=UNSET, + description="The number of pull request summaries generated using Copilot for Pull Requests in the given repository.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model.", + ) + + +class CopilotIdeCodeCompletions(ExtraGitHubModel): + """CopilotIdeCodeCompletions + + Usage metrics for Copilot editor code completions in the IDE. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances.", + ) + languages: Missing[list[CopilotIdeCodeCompletionsPropLanguagesItems]] = Field( + default=UNSET, description="Code completion metrics for active languages." + ) + editors: Missing[list[CopilotIdeCodeCompletionsPropEditorsItems]] = Field( + default=UNSET + ) + + +class CopilotIdeCodeCompletionsPropLanguagesItems(GitHubModel): + """CopilotIdeCodeCompletionsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: Missing[str] = Field( + default=UNSET, + description="Name of the language used for Copilot code completion suggestions.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances.", + ) + + +class CopilotIdeCodeCompletionsPropEditorsItems(ExtraGitHubModel): + """CopilotIdeCodeCompletionsPropEditorsItems + + Copilot code completion metrics for active editors. + """ + + name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given editor. Includes both full and partial acceptances.", + ) + models: Missing[list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems]] = ( + Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) + ) + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems(GitHubModel): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language and model. Includes both full and partial acceptances.", + ) + languages: Missing[ + list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems] + ] = Field( + default=UNSET, + description="Code completion metrics for active languages, for the given editor.", + ) + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems( + GitHubModel +): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: Missing[str] = Field( + default=UNSET, + description="Name of the language used for Copilot code completion suggestions, for the given editor.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language. Includes both full and partial acceptances.", + ) + total_code_suggestions: Missing[int] = Field( + default=UNSET, + description="The number of Copilot code suggestions generated for the given editor, for the given language.", + ) + total_code_acceptances: Missing[int] = Field( + default=UNSET, + description="The number of Copilot code suggestions accepted for the given editor, for the given language. Includes both full and partial acceptances.", + ) + total_code_lines_suggested: Missing[int] = Field( + default=UNSET, + description="The number of lines of code suggested by Copilot code completions for the given editor, for the given language.", + ) + total_code_lines_accepted: Missing[int] = Field( + default=UNSET, + description="The number of lines of code accepted from Copilot code suggestions for the given editor, for the given language.", ) -model_rebuild(DependabotAlertWithRepository) +model_rebuild(CopilotUsageMetricsDay) +model_rebuild(CopilotDotcomChat) +model_rebuild(CopilotDotcomChatPropModelsItems) +model_rebuild(CopilotIdeChat) +model_rebuild(CopilotIdeChatPropEditorsItems) +model_rebuild(CopilotIdeChatPropEditorsItemsPropModelsItems) +model_rebuild(CopilotDotcomPullRequests) +model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItems) +model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems) +model_rebuild(CopilotIdeCodeCompletions) +model_rebuild(CopilotIdeCodeCompletionsPropLanguagesItems) +model_rebuild(CopilotIdeCodeCompletionsPropEditorsItems) +model_rebuild(CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems) +model_rebuild( + CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems +) -__all__ = ("DependabotAlertWithRepository",) +__all__ = ( + "CopilotDotcomChat", + "CopilotDotcomChatPropModelsItems", + "CopilotDotcomPullRequests", + "CopilotDotcomPullRequestsPropRepositoriesItems", + "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems", + "CopilotIdeChat", + "CopilotIdeChatPropEditorsItems", + "CopilotIdeChatPropEditorsItemsPropModelsItems", + "CopilotIdeCodeCompletions", + "CopilotIdeCodeCompletionsPropEditorsItems", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", + "CopilotIdeCodeCompletionsPropLanguagesItems", + "CopilotUsageMetricsDay", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0068.py b/githubkit/versions/ghec_v2022_11_28/models/group_0068.py index a88c9c1b5..cdfccad9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0068.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0068.py @@ -9,35 +9,102 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import date +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0064 import DependabotAlertPackage +class CopilotUsageMetrics(GitHubModel): + """Copilot Usage Metrics -class DependabotAlertWithRepositoryPropDependency(GitHubModel): - """DependabotAlertWithRepositoryPropDependency + Summary of Copilot usage. + """ + + day: date = Field( + description="The date for which the usage metrics are reported, in `YYYY-MM-DD` format." + ) + total_suggestions_count: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot code completion suggestions shown to users.", + ) + total_acceptances_count: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot code completion suggestions accepted by users.", + ) + total_lines_suggested: Missing[int] = Field( + default=UNSET, + description="The total number of lines of code completions suggested by Copilot.", + ) + total_lines_accepted: Missing[int] = Field( + default=UNSET, + description="The total number of lines of code completions accepted by users.", + ) + total_active_users: Missing[int] = Field( + default=UNSET, + description="The total number of users who were shown Copilot code completion suggestions during the day specified.", + ) + total_chat_acceptances: Missing[int] = Field( + default=UNSET, + description="The total instances of users who accepted code suggested by Copilot Chat in the IDE (panel and inline).", + ) + total_chat_turns: Missing[int] = Field( + default=UNSET, + description="The total number of chat turns (prompt and response pairs) sent between users and Copilot Chat in the IDE.", + ) + total_active_chat_users: Missing[int] = Field( + default=UNSET, + description="The total number of users who interacted with Copilot Chat in the IDE during the day specified.", + ) + breakdown: Union[list[CopilotUsageMetricsPropBreakdownItems], None] = Field( + description="Breakdown of Copilot code completions usage by language and editor" + ) - Details for the vulnerable dependency. + +class CopilotUsageMetricsPropBreakdownItems(ExtraGitHubModel): + """CopilotUsageMetricsPropBreakdownItems + + Breakdown of Copilot usage by editor for this language """ - package: Missing[DependabotAlertPackage] = Field( - default=UNSET, description="Details for the vulnerable package." + language: Missing[str] = Field( + default=UNSET, + description="The language in which Copilot suggestions were shown to users in the specified editor.", + ) + editor: Missing[str] = Field( + default=UNSET, + description="The editor in which Copilot suggestions were shown to users for the specified language.", + ) + suggestions_count: Missing[int] = Field( + default=UNSET, + description="The number of Copilot suggestions shown to users in the editor specified during the day specified.", + ) + acceptances_count: Missing[int] = Field( + default=UNSET, + description="The number of Copilot suggestions accepted by users in the editor specified during the day specified.", + ) + lines_suggested: Missing[int] = Field( + default=UNSET, + description="The number of lines of code suggested by Copilot in the editor specified during the day specified.", ) - manifest_path: Missing[str] = Field( + lines_accepted: Missing[int] = Field( default=UNSET, - description="The full path to the dependency manifest file, relative to the root of the repository.", + description="The number of lines of code accepted by users in the editor specified during the day specified.", ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." + active_users: Missing[int] = Field( + default=UNSET, + description="The number of users who were shown Copilot completion suggestions in the editor specified during the day specified.", ) -model_rebuild(DependabotAlertWithRepositoryPropDependency) +model_rebuild(CopilotUsageMetrics) +model_rebuild(CopilotUsageMetricsPropBreakdownItems) -__all__ = ("DependabotAlertWithRepositoryPropDependency",) +__all__ = ( + "CopilotUsageMetrics", + "CopilotUsageMetricsPropBreakdownItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0069.py b/githubkit/versions/ghec_v2022_11_28/models/group_0069.py index caa4389c7..ff820726e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0069.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0069.py @@ -12,45 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class GetLicenseSyncStatus(GitHubModel): - """License Sync Status +class DependabotAlertPackage(GitHubModel): + """DependabotAlertPackage - Information about the status of a license sync job for an enterprise. + Details for the vulnerable package. """ - server_instances: Missing[list[GetLicenseSyncStatusPropServerInstancesItems]] = ( - Field(default=UNSET) + ecosystem: str = Field( + description="The package's language or package management ecosystem." ) + name: str = Field(description="The unique package name within its ecosystem.") -class GetLicenseSyncStatusPropServerInstancesItems(GitHubModel): - """GetLicenseSyncStatusPropServerInstancesItems""" +model_rebuild(DependabotAlertPackage) - server_id: Missing[str] = Field(default=UNSET) - hostname: Missing[str] = Field(default=UNSET) - last_sync: Missing[GetLicenseSyncStatusPropServerInstancesItemsPropLastSync] = ( - Field(default=UNSET) - ) - - -class GetLicenseSyncStatusPropServerInstancesItemsPropLastSync(GitHubModel): - """GetLicenseSyncStatusPropServerInstancesItemsPropLastSync""" - - date: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - error: Missing[str] = Field(default=UNSET) - - -model_rebuild(GetLicenseSyncStatus) -model_rebuild(GetLicenseSyncStatusPropServerInstancesItems) -model_rebuild(GetLicenseSyncStatusPropServerInstancesItemsPropLastSync) - -__all__ = ( - "GetLicenseSyncStatus", - "GetLicenseSyncStatusPropServerInstancesItems", - "GetLicenseSyncStatusPropServerInstancesItemsPropLastSync", -) +__all__ = ("DependabotAlertPackage",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0070.py b/githubkit/versions/ghec_v2022_11_28/models/group_0070.py index e7f7856d5..cd597e339 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0070.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0070.py @@ -9,58 +9,52 @@ from __future__ import annotations -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild +from .group_0069 import DependabotAlertPackage -class CustomProperty(GitHubModel): - """Organization Custom Property - Custom property defined on an organization +class DependabotAlertSecurityVulnerability(GitHubModel): + """DependabotAlertSecurityVulnerability + + Details pertaining to one vulnerable version range for the advisory. """ - property_name: str = Field(description="The name of the property") - url: Missing[str] = Field( - default=UNSET, - description="The URL that can be used to fetch, update, or delete info about this property via the API.", - ) - source_type: Missing[Literal["organization", "enterprise"]] = Field( - default=UNSET, description="The source type of the property" - ) - value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( - Field(description="The type of the value for the property") + package: DependabotAlertPackage = Field( + description="Details for the vulnerable package." ) - required: Missing[bool] = Field( - default=UNSET, description="Whether the property is required." + severity: Literal["low", "medium", "high", "critical"] = Field( + description="The severity of the vulnerability." ) - default_value: Missing[Union[str, list[str], None]] = Field( - default=UNSET, description="Default value of the property" + vulnerable_version_range: str = Field( + description="Conditions that identify vulnerable versions of this vulnerability's package." ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" - ) - allowed_values: Missing[ - Union[ - Annotated[ - list[Annotated[str, Field(max_length=75)]], - Field(max_length=200 if PYDANTIC_V2 else None), - ], - None, - ] + first_patched_version: Union[ + DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, None ] = Field( - default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + description="Details pertaining to the package version that patches this vulnerability." + ) + + +class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion(GitHubModel): + """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion + + Details pertaining to the package version that patches this vulnerability. + """ + + identifier: str = Field( + description="The package version that patches this vulnerability." ) - values_editable_by: Missing[ - Union[None, Literal["org_actors", "org_and_repo_actors"]] - ] = Field(default=UNSET, description="Who can edit the values of the property") -model_rebuild(CustomProperty) +model_rebuild(DependabotAlertSecurityVulnerability) +model_rebuild(DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion) -__all__ = ("CustomProperty",) +__all__ = ( + "DependabotAlertSecurityVulnerability", + "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0071.py b/githubkit/versions/ghec_v2022_11_28/models/group_0071.py index 2df8226aa..8b0131050 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0071.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0071.py @@ -9,47 +9,123 @@ from __future__ import annotations -from typing import Annotated, Literal, Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0001 import CvssSeverities +from .group_0002 import SecurityAdvisoryEpss +from .group_0070 import DependabotAlertSecurityVulnerability -class CustomPropertySetPayload(GitHubModel): - """Custom Property Set Payload - Custom property set payload +class DependabotAlertSecurityAdvisory(GitHubModel): + """DependabotAlertSecurityAdvisory + + Details for the GitHub Security Advisory. """ - value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( - Field(description="The type of the value for the property") + ghsa_id: str = Field( + description="The unique GitHub Security Advisory ID assigned to the advisory." + ) + cve_id: Union[str, None] = Field( + description="The unique CVE ID assigned to the advisory." + ) + summary: str = Field( + max_length=1024, description="A short, plain text summary of the advisory." + ) + description: str = Field( + description="A long-form Markdown-supported description of the advisory." ) - required: Missing[bool] = Field( - default=UNSET, description="Whether the property is required." + vulnerabilities: list[DependabotAlertSecurityVulnerability] = Field( + description="Vulnerable version range information for the advisory." ) - default_value: Missing[Union[str, list[str], None]] = Field( - default=UNSET, description="Default value of the property" + severity: Literal["low", "medium", "high", "critical"] = Field( + description="The severity of the advisory." ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" + cvss: DependabotAlertSecurityAdvisoryPropCvss = Field( + description="Details for the advisory pertaining to the Common Vulnerability Scoring System." ) - allowed_values: Missing[ - Union[ - Annotated[ - list[Annotated[str, Field(max_length=75)]], - Field(max_length=200 if PYDANTIC_V2 else None), - ], - None, - ] - ] = Field( + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + epss: Missing[Union[SecurityAdvisoryEpss, None]] = Field( default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + description="The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + ) + cwes: list[DependabotAlertSecurityAdvisoryPropCwesItems] = Field( + description="Details for the advisory pertaining to Common Weakness Enumeration." + ) + identifiers: list[DependabotAlertSecurityAdvisoryPropIdentifiersItems] = Field( + description="Values that identify this advisory among security information sources." + ) + references: list[DependabotAlertSecurityAdvisoryPropReferencesItems] = Field( + description="Links to additional advisory information." + ) + published_at: datetime = Field( + description="The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: datetime = Field( + description="The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + withdrawn_at: Union[datetime, None] = Field( + description="The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + + +class DependabotAlertSecurityAdvisoryPropCvss(GitHubModel): + """DependabotAlertSecurityAdvisoryPropCvss + + Details for the advisory pertaining to the Common Vulnerability Scoring System. + """ + + score: float = Field(le=10.0, description="The overall CVSS score of the advisory.") + vector_string: Union[str, None] = Field( + description="The full CVSS vector string for the advisory." ) -model_rebuild(CustomPropertySetPayload) +class DependabotAlertSecurityAdvisoryPropCwesItems(GitHubModel): + """DependabotAlertSecurityAdvisoryPropCwesItems + + A CWE weakness assigned to the advisory. + """ + + cwe_id: str = Field(description="The unique CWE ID.") + name: str = Field(description="The short, plain text name of the CWE.") + + +class DependabotAlertSecurityAdvisoryPropIdentifiersItems(GitHubModel): + """DependabotAlertSecurityAdvisoryPropIdentifiersItems + + An advisory identifier. + """ + + type: Literal["CVE", "GHSA"] = Field(description="The type of advisory identifier.") + value: str = Field(description="The value of the advisory identifer.") + + +class DependabotAlertSecurityAdvisoryPropReferencesItems(GitHubModel): + """DependabotAlertSecurityAdvisoryPropReferencesItems + + A link to additional advisory information. + """ + + url: str = Field(description="The URL of the reference.") + + +model_rebuild(DependabotAlertSecurityAdvisory) +model_rebuild(DependabotAlertSecurityAdvisoryPropCvss) +model_rebuild(DependabotAlertSecurityAdvisoryPropCwesItems) +model_rebuild(DependabotAlertSecurityAdvisoryPropIdentifiersItems) +model_rebuild(DependabotAlertSecurityAdvisoryPropReferencesItems) -__all__ = ("CustomPropertySetPayload",) +__all__ = ( + "DependabotAlertSecurityAdvisory", + "DependabotAlertSecurityAdvisoryPropCvss", + "DependabotAlertSecurityAdvisoryPropCwesItems", + "DependabotAlertSecurityAdvisoryPropIdentifiersItems", + "DependabotAlertSecurityAdvisoryPropReferencesItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0072.py b/githubkit/versions/ghec_v2022_11_28/models/group_0072.py index 880232183..5370ac31f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0072.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0072.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,31 +18,65 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0056 import SimpleRepository +from .group_0070 import DependabotAlertSecurityVulnerability +from .group_0071 import DependabotAlertSecurityAdvisory +from .group_0073 import DependabotAlertWithRepositoryPropDependency -class RepositoryRulesetBypassActor(GitHubModel): - """Repository Ruleset Bypass Actor - An actor that can bypass rules in a ruleset +class DependabotAlertWithRepository(GitHubModel): + """DependabotAlertWithRepository + + A Dependabot alert. """ - actor_id: Missing[Union[int, None]] = Field( - default=UNSET, - description="The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories.", - ) - actor_type: Literal[ - "Integration", - "OrganizationAdmin", - "RepositoryRole", - "Team", - "DeployKey", - "EnterpriseOwner", - ] = Field(description="The type of actor that can bypass a ruleset") - bypass_mode: Missing[Literal["always", "pull_request"]] = Field( + number: int = Field(description="The security alert number.") + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( + description="The state of the Dependabot alert." + ) + dependency: DependabotAlertWithRepositoryPropDependency = Field( + description="Details for the vulnerable dependency." + ) + security_advisory: DependabotAlertSecurityAdvisory = Field( + description="Details for the GitHub Security Advisory." + ) + security_vulnerability: DependabotAlertSecurityVulnerability = Field( + description="Details pertaining to one vulnerable version range for the advisory." + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: datetime = Field( + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] = Field(description="The reason that the alert was dismissed.") + dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( + description="An optional comment associated with the alert's dismissal." + ) + fixed_at: Union[datetime, None] = Field( + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + auto_dismissed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." ) -model_rebuild(RepositoryRulesetBypassActor) +model_rebuild(DependabotAlertWithRepository) -__all__ = ("RepositoryRulesetBypassActor",) +__all__ = ("DependabotAlertWithRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0073.py b/githubkit/versions/ghec_v2022_11_28/models/group_0073.py index 160078596..702d22f40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0073.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0073.py @@ -9,24 +9,35 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0074 import ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, -) +from .group_0069 import DependabotAlertPackage -class EnterpriseRulesetConditionsOrganizationNameTarget(GitHubModel): - """Repository ruleset conditions for organization names +class DependabotAlertWithRepositoryPropDependency(GitHubModel): + """DependabotAlertWithRepositoryPropDependency - Parameters for an organization name condition + Details for the vulnerable dependency. """ - organization_name: EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName = Field() + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." + ) + manifest_path: Missing[str] = Field( + default=UNSET, + description="The full path to the dependency manifest file, relative to the root of the repository.", + ) + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." + ) -model_rebuild(EnterpriseRulesetConditionsOrganizationNameTarget) +model_rebuild(DependabotAlertWithRepositoryPropDependency) -__all__ = ("EnterpriseRulesetConditionsOrganizationNameTarget",) +__all__ = ("DependabotAlertWithRepositoryPropDependency",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0074.py b/githubkit/versions/ghec_v2022_11_28/models/group_0074.py index 383e2cb2c..caa4389c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0074.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0074.py @@ -16,21 +16,41 @@ from githubkit.utils import UNSET -class EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName( - GitHubModel -): - """EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName""" - - include: Missing[list[str]] = Field( - default=UNSET, - description="Array of organization names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all organizations and ~EMUS to target all enterprise managed user accounts.", +class GetLicenseSyncStatus(GitHubModel): + """License Sync Status + + Information about the status of a license sync job for an enterprise. + """ + + server_instances: Missing[list[GetLicenseSyncStatusPropServerInstancesItems]] = ( + Field(default=UNSET) ) - exclude: Missing[list[str]] = Field( - default=UNSET, - description="Array of organization names or patterns to exclude. The condition will not pass if any of these patterns match.", + + +class GetLicenseSyncStatusPropServerInstancesItems(GitHubModel): + """GetLicenseSyncStatusPropServerInstancesItems""" + + server_id: Missing[str] = Field(default=UNSET) + hostname: Missing[str] = Field(default=UNSET) + last_sync: Missing[GetLicenseSyncStatusPropServerInstancesItemsPropLastSync] = ( + Field(default=UNSET) ) -model_rebuild(EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName) +class GetLicenseSyncStatusPropServerInstancesItemsPropLastSync(GitHubModel): + """GetLicenseSyncStatusPropServerInstancesItemsPropLastSync""" + + date: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + error: Missing[str] = Field(default=UNSET) + + +model_rebuild(GetLicenseSyncStatus) +model_rebuild(GetLicenseSyncStatusPropServerInstancesItems) +model_rebuild(GetLicenseSyncStatusPropServerInstancesItemsPropLastSync) -__all__ = ("EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName",) +__all__ = ( + "GetLicenseSyncStatus", + "GetLicenseSyncStatusPropServerInstancesItems", + "GetLicenseSyncStatusPropServerInstancesItemsPropLastSync", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0075.py b/githubkit/versions/ghec_v2022_11_28/models/group_0075.py index 5457ce8e9..2310c882f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0075.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0075.py @@ -9,24 +9,37 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0076 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): - """Repository ruleset conditions for repository names +class NetworkConfiguration(GitHubModel): + """Hosted compute network configuration - Parameters for a repository name condition + A hosted compute network configuration. """ - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + id: str = Field(description="The unique identifier of the network configuration.") + name: str = Field(description="The name of the network configuration.") + compute_service: Missing[Literal["none", "actions", "codespaces"]] = Field( + default=UNSET, + description="The hosted compute service the network configuration supports.", + ) + network_settings_ids: Missing[list[str]] = Field( + default=UNSET, + description="The unique identifier of each network settings in the configuration.", + ) + created_on: Union[datetime, None] = Field( + description="The time at which the network configuration was created, in ISO 8601 format." + ) -model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) +model_rebuild(NetworkConfiguration) -__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) +__all__ = ("NetworkConfiguration",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0076.py b/githubkit/versions/ghec_v2022_11_28/models/group_0076.py index 45d8e8310..cd1bede75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0076.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0076.py @@ -16,23 +16,28 @@ from githubkit.utils import UNSET -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" +class NetworkSettings(GitHubModel): + """Hosted compute network settings resource - include: Missing[list[str]] = Field( - default=UNSET, - description="Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.", + A hosted compute network settings resource. + """ + + id: str = Field( + description="The unique identifier of the network settings resource." ) - exclude: Missing[list[str]] = Field( + network_configuration_id: Missing[str] = Field( default=UNSET, - description="Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.", + description="The identifier of the network configuration that is using this settings resource.", ) - protected: Missing[bool] = Field( - default=UNSET, - description="Whether renaming of target repositories is prevented.", + name: str = Field(description="The name of the network settings resource.") + subnet_id: str = Field( + description="The subnet this network settings resource is configured for." + ) + region: str = Field( + description="The location of the subnet this network settings resource is configured for." ) -model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) +model_rebuild(NetworkSettings) -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) +__all__ = ("NetworkSettings",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0077.py b/githubkit/versions/ghec_v2022_11_28/models/group_0077.py index 2d78058d2..e7f7856d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0077.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0077.py @@ -9,24 +9,58 @@ from __future__ import annotations +from typing import Annotated, Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0078 import RepositoryRulesetConditionsPropRefName - -class RepositoryRulesetConditions(GitHubModel): - """Repository ruleset conditions for ref names +class CustomProperty(GitHubModel): + """Organization Custom Property - Parameters for a repository ruleset ref name condition + Custom property defined on an organization """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + property_name: str = Field(description="The name of the property") + url: Missing[str] = Field( + default=UNSET, + description="The URL that can be used to fetch, update, or delete info about this property via the API.", + ) + source_type: Missing[Literal["organization", "enterprise"]] = Field( + default=UNSET, description="The source type of the property" + ) + value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( + Field(description="The type of the value for the property") + ) + required: Missing[bool] = Field( + default=UNSET, description="Whether the property is required." + ) + default_value: Missing[Union[str, list[str], None]] = Field( + default=UNSET, description="Default value of the property" + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the property" + ) + allowed_values: Missing[ + Union[ + Annotated[ + list[Annotated[str, Field(max_length=75)]], + Field(max_length=200 if PYDANTIC_V2 else None), + ], + None, + ] + ] = Field( + default=UNSET, + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + ) + values_editable_by: Missing[ + Union[None, Literal["org_actors", "org_and_repo_actors"]] + ] = Field(default=UNSET, description="Who can edit the values of the property") -model_rebuild(RepositoryRulesetConditions) +model_rebuild(CustomProperty) -__all__ = ("RepositoryRulesetConditions",) +__all__ = ("CustomProperty",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0078.py b/githubkit/versions/ghec_v2022_11_28/models/group_0078.py index 1ca843cd5..2df8226aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0078.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0078.py @@ -9,26 +9,47 @@ from __future__ import annotations +from typing import Annotated, Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class RepositoryRulesetConditionsPropRefName(GitHubModel): - """RepositoryRulesetConditionsPropRefName""" +class CustomPropertySetPayload(GitHubModel): + """Custom Property Set Payload - include: Missing[list[str]] = Field( - default=UNSET, - description="Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.", + Custom property set payload + """ + + 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" ) - exclude: Missing[list[str]] = Field( + allowed_values: Missing[ + Union[ + Annotated[ + list[Annotated[str, Field(max_length=75)]], + Field(max_length=200 if PYDANTIC_V2 else None), + ], + None, + ] + ] = Field( default=UNSET, - description="Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.", + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", ) -model_rebuild(RepositoryRulesetConditionsPropRefName) +model_rebuild(CustomPropertySetPayload) -__all__ = ("RepositoryRulesetConditionsPropRefName",) +__all__ = ("CustomPropertySetPayload",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0079.py b/githubkit/versions/ghec_v2022_11_28/models/group_0079.py index 26216fd66..880232183 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0079.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0079.py @@ -9,24 +9,39 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0080 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, -) +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): - """Repository ruleset conditions for repository properties +class RepositoryRulesetBypassActor(GitHubModel): + """Repository Ruleset Bypass Actor - Parameters for a repository property condition + An actor that can bypass rules in a ruleset """ - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() - - -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) - -__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) + actor_id: Missing[Union[int, None]] = Field( + default=UNSET, + description="The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories.", + ) + actor_type: Literal[ + "Integration", + "OrganizationAdmin", + "RepositoryRole", + "Team", + "DeployKey", + "EnterpriseOwner", + ] = Field(description="The type of actor that can bypass a ruleset") + bypass_mode: Missing[Literal["always", "pull_request"]] = Field( + default=UNSET, + description="When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + ) + + +model_rebuild(RepositoryRulesetBypassActor) + +__all__ = ("RepositoryRulesetBypassActor",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0080.py b/githubkit/versions/ghec_v2022_11_28/models/group_0080.py index de1e60e46..7ad80097c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0080.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0080.py @@ -9,50 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty( - GitHubModel -): - """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" - include: Missing[list[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( - default=UNSET, - description="The repository properties and values to include. All of these properties must match for the condition to pass.", - ) - exclude: Missing[list[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( - default=UNSET, - description="The repository properties and values to exclude. The condition will not pass if any of these properties match.", - ) +from .group_0081 import ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, +) -class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): - """Repository ruleset property targeting definition +class EnterpriseRulesetConditionsOrganizationNameTarget(GitHubModel): + """Repository ruleset conditions for organization names - Parameters for a targeting a repository property + Parameters for an organization name condition """ - name: str = Field(description="The name of the repository property to target") - property_values: list[str] = Field( - description="The values to match for the repository property" - ) - source: Missing[Literal["custom", "system"]] = Field( - default=UNSET, - description="The source of the repository property. Defaults to 'custom' if not specified.", - ) + organization_name: EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName = Field() -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) -model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) +model_rebuild(EnterpriseRulesetConditionsOrganizationNameTarget) -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertySpec", - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", -) +__all__ = ("EnterpriseRulesetConditionsOrganizationNameTarget",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0081.py b/githubkit/versions/ghec_v2022_11_28/models/group_0081.py index d02c7fd04..383e2cb2c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0081.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0081.py @@ -12,21 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0082 import ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, -) +class EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName( + GitHubModel +): + """EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName""" -class EnterpriseRulesetConditionsOrganizationIdTarget(GitHubModel): - """Repository ruleset conditions for organization IDs + include: Missing[list[str]] = Field( + default=UNSET, + description="Array of organization names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all organizations and ~EMUS to target all enterprise managed user accounts.", + ) + exclude: Missing[list[str]] = Field( + default=UNSET, + description="Array of organization names or patterns to exclude. The condition will not pass if any of these patterns match.", + ) - Parameters for an organization ID condition - """ - organization_id: EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId = Field() +model_rebuild(EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName) - -model_rebuild(EnterpriseRulesetConditionsOrganizationIdTarget) - -__all__ = ("EnterpriseRulesetConditionsOrganizationIdTarget",) +__all__ = ("EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0082.py b/githubkit/versions/ghec_v2022_11_28/models/group_0082.py index 188401d9a..ce6a9c8d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0082.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0082.py @@ -12,19 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0083 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) -class EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId(GitHubModel): - """EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId""" - organization_ids: Missing[list[int]] = Field( - default=UNSET, - description="The organization IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", - ) +class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): + """Repository ruleset conditions for repository names + Parameters for a repository name condition + """ -model_rebuild(EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId) + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -__all__ = ("EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId",) + +model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) + +__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0083.py b/githubkit/versions/ghec_v2022_11_28/models/group_0083.py index bee9540c0..45d8e8310 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0083.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0083.py @@ -15,26 +15,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0074 import ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, -) -from .group_0076 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) -from .group_0078 import RepositoryRulesetConditionsPropRefName +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" -class EnterpriseRulesetConditionsOneof0(GitHubModel): - """organization_name_and_repository_name + include: Missing[list[str]] = Field( + default=UNSET, + description="Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.", + ) + exclude: Missing[list[str]] = Field( + default=UNSET, + description="Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.", + ) + protected: Missing[bool] = Field( + default=UNSET, + description="Whether renaming of target repositories is prevented.", + ) - Conditions to target organizations by name and all repositories - """ - organization_name: EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName = Field() - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) +model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) - -model_rebuild(EnterpriseRulesetConditionsOneof0) - -__all__ = ("EnterpriseRulesetConditionsOneof0",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0084.py b/githubkit/versions/ghec_v2022_11_28/models/group_0084.py index c5fe74640..c9b1be5eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0084.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0084.py @@ -15,26 +15,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0074 import ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, -) -from .group_0078 import RepositoryRulesetConditionsPropRefName -from .group_0080 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, -) +from .group_0085 import RepositoryRulesetConditionsPropRefName -class EnterpriseRulesetConditionsOneof1(GitHubModel): - """organization_name_and_repository_property +class RepositoryRulesetConditions(GitHubModel): + """Repository ruleset conditions for ref names - Conditions to target organizations by name and repositories by property + Parameters for a repository ruleset ref name condition """ - organization_name: EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName = Field() - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -model_rebuild(EnterpriseRulesetConditionsOneof1) +model_rebuild(RepositoryRulesetConditions) -__all__ = ("EnterpriseRulesetConditionsOneof1",) +__all__ = ("RepositoryRulesetConditions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0085.py b/githubkit/versions/ghec_v2022_11_28/models/group_0085.py index 1f8b18b84..1ca843cd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0085.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0085.py @@ -15,26 +15,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0076 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) -from .group_0078 import RepositoryRulesetConditionsPropRefName -from .group_0082 import ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, -) +class RepositoryRulesetConditionsPropRefName(GitHubModel): + """RepositoryRulesetConditionsPropRefName""" -class EnterpriseRulesetConditionsOneof2(GitHubModel): - """organization_id_and_repository_name + include: Missing[list[str]] = Field( + default=UNSET, + description="Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.", + ) + exclude: Missing[list[str]] = Field( + default=UNSET, + description="Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.", + ) - Conditions to target organizations by id and all repositories - """ - organization_id: EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId = Field() - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) +model_rebuild(RepositoryRulesetConditionsPropRefName) - -model_rebuild(EnterpriseRulesetConditionsOneof2) - -__all__ = ("EnterpriseRulesetConditionsOneof2",) +__all__ = ("RepositoryRulesetConditionsPropRefName",) 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 39d09fa49..e52517294 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0086.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0086.py @@ -12,29 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0078 import RepositoryRulesetConditionsPropRefName -from .group_0080 import ( +from .group_0087 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) -from .group_0082 import ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, -) -class EnterpriseRulesetConditionsOneof3(GitHubModel): - """organization_id_and_repository_property +class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): + """Repository ruleset conditions for repository properties - Conditions to target organization by id and repositories by property + Parameters for a repository property condition """ - organization_id: EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId = Field() repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -model_rebuild(EnterpriseRulesetConditionsOneof3) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) -__all__ = ("EnterpriseRulesetConditionsOneof3",) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0087.py b/githubkit/versions/ghec_v2022_11_28/models/group_0087.py index 34a8b6a51..de1e60e46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0087.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0087.py @@ -18,96 +18,41 @@ from githubkit.utils import UNSET -class RepositoryRuleCreation(GitHubModel): - """creation - - Only allow users with bypass permission to create matching refs. - """ - - type: Literal["creation"] = Field() - - -class RepositoryRuleDeletion(GitHubModel): - """deletion - - Only allow users with bypass permissions to delete matching refs. - """ - - type: Literal["deletion"] = Field() - - -class RepositoryRuleRequiredSignatures(GitHubModel): - """required_signatures - - Commits pushed to matching refs must have verified signatures. - """ - - type: Literal["required_signatures"] = Field() - - -class RepositoryRuleNonFastForward(GitHubModel): - """non_fast_forward - - Prevent users with push access from force pushing to refs. - """ - - type: Literal["non_fast_forward"] = Field() - - -class RepositoryRuleOneof15(GitHubModel): - """file_path_restriction - - Prevent commits that include changes in specified file paths from being pushed - to the commit graph. - """ - - type: Literal["file_path_restriction"] = Field() - parameters: Missing[RepositoryRuleOneof15PropParameters] = Field(default=UNSET) - - -class RepositoryRuleOneof15PropParameters(GitHubModel): - """RepositoryRuleOneof15PropParameters""" - - restricted_file_paths: list[str] = Field( - description="The file paths that are restricted from being pushed to the commit graph." +class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty( + GitHubModel +): + """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" + + include: Missing[list[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + default=UNSET, + description="The repository properties and values to include. All of these properties must match for the condition to pass.", + ) + exclude: Missing[list[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + default=UNSET, + description="The repository properties and values to exclude. The condition will not pass if any of these properties match.", ) -class RepositoryRuleOneof17(GitHubModel): - """file_extension_restriction +class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): + """Repository ruleset property targeting definition - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. + Parameters for a targeting a repository property """ - type: Literal["file_extension_restriction"] = Field() - parameters: Missing[RepositoryRuleOneof17PropParameters] = Field(default=UNSET) - - -class RepositoryRuleOneof17PropParameters(GitHubModel): - """RepositoryRuleOneof17PropParameters""" - - restricted_file_extensions: list[str] = Field( - description="The file extensions that are restricted from being pushed to the commit graph." + name: str = Field(description="The name of the repository property to target") + property_values: list[str] = Field( + description="The values to match for the repository property" + ) + source: Missing[Literal["custom", "system"]] = Field( + default=UNSET, + description="The source of the repository property. Defaults to 'custom' if not specified.", ) -model_rebuild(RepositoryRuleCreation) -model_rebuild(RepositoryRuleDeletion) -model_rebuild(RepositoryRuleRequiredSignatures) -model_rebuild(RepositoryRuleNonFastForward) -model_rebuild(RepositoryRuleOneof15) -model_rebuild(RepositoryRuleOneof15PropParameters) -model_rebuild(RepositoryRuleOneof17) -model_rebuild(RepositoryRuleOneof17PropParameters) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) __all__ = ( - "RepositoryRuleCreation", - "RepositoryRuleDeletion", - "RepositoryRuleNonFastForward", - "RepositoryRuleOneof15", - "RepositoryRuleOneof15PropParameters", - "RepositoryRuleOneof17", - "RepositoryRuleOneof17PropParameters", - "RepositoryRuleRequiredSignatures", + "RepositoryRulesetConditionsRepositoryPropertySpec", + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0088.py b/githubkit/versions/ghec_v2022_11_28/models/group_0088.py index 7ef6bfe79..614b89ba2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0088.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0088.py @@ -9,27 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0089 import RepositoryRuleUpdatePropParameters +from .group_0089 import ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, +) -class RepositoryRuleUpdate(GitHubModel): - """update +class EnterpriseRulesetConditionsOrganizationIdTarget(GitHubModel): + """Repository ruleset conditions for organization IDs - Only allow users with bypass permission to update matching refs. + Parameters for an organization ID condition """ - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) + organization_id: EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId = Field() -model_rebuild(RepositoryRuleUpdate) +model_rebuild(EnterpriseRulesetConditionsOrganizationIdTarget) -__all__ = ("RepositoryRuleUpdate",) +__all__ = ("EnterpriseRulesetConditionsOrganizationIdTarget",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0089.py b/githubkit/versions/ghec_v2022_11_28/models/group_0089.py index 24be869ac..188401d9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0089.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0089.py @@ -12,16 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRuleUpdatePropParameters(GitHubModel): - """RepositoryRuleUpdatePropParameters""" +class EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId(GitHubModel): + """EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId""" - update_allows_fetch_and_merge: bool = Field( - description="Branch can pull changes from its upstream repository" + organization_ids: Missing[list[int]] = Field( + default=UNSET, + description="The organization IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", ) -model_rebuild(RepositoryRuleUpdatePropParameters) +model_rebuild(EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId) -__all__ = ("RepositoryRuleUpdatePropParameters",) +__all__ = ("EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId",) 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 081a8320b..e962dfd7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0090.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0090.py @@ -9,51 +9,32 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class RepositoryRuleRequiredLinearHistory(GitHubModel): - """required_linear_history - - Prevent merge commits from being pushed to matching refs. - """ - - type: Literal["required_linear_history"] = Field() +from .group_0081 import ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, +) +from .group_0083 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) +from .group_0085 import RepositoryRulesetConditionsPropRefName -class RepositoryRuleOneof16(GitHubModel): - """max_file_path_length +class EnterpriseRulesetConditionsOneof0(GitHubModel): + """organization_name_and_repository_name - Prevent commits that include file paths that exceed a specified character limit - from being pushed to the commit graph. + Conditions to target organizations by name and all repositories """ - type: Literal["max_file_path_length"] = Field() - parameters: Missing[RepositoryRuleOneof16PropParameters] = Field(default=UNSET) - - -class RepositoryRuleOneof16PropParameters(GitHubModel): - """RepositoryRuleOneof16PropParameters""" + organization_name: EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName = Field() + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - max_file_path_length: int = Field( - le=256.0, - ge=1.0, - description="The maximum amount of characters allowed in file paths", - ) +model_rebuild(EnterpriseRulesetConditionsOneof0) -model_rebuild(RepositoryRuleRequiredLinearHistory) -model_rebuild(RepositoryRuleOneof16) -model_rebuild(RepositoryRuleOneof16PropParameters) - -__all__ = ( - "RepositoryRuleOneof16", - "RepositoryRuleOneof16PropParameters", - "RepositoryRuleRequiredLinearHistory", -) +__all__ = ("EnterpriseRulesetConditionsOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0091.py b/githubkit/versions/ghec_v2022_11_28/models/group_0091.py index 62decf1c6..9edbd887a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0091.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0091.py @@ -9,27 +9,32 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0092 import RepositoryRuleMergeQueuePropParameters +from .group_0081 import ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName, +) +from .group_0085 import RepositoryRulesetConditionsPropRefName +from .group_0087 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) -class RepositoryRuleMergeQueue(GitHubModel): - """merge_queue +class EnterpriseRulesetConditionsOneof1(GitHubModel): + """organization_name_and_repository_property - Merges must be performed via a merge queue. + Conditions to target organizations by name and repositories by property """ - type: Literal["merge_queue"] = Field() - parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) + organization_name: EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName = Field() + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -model_rebuild(RepositoryRuleMergeQueue) +model_rebuild(EnterpriseRulesetConditionsOneof1) -__all__ = ("RepositoryRuleMergeQueue",) +__all__ = ("EnterpriseRulesetConditionsOneof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0092.py b/githubkit/versions/ghec_v2022_11_28/models/group_0092.py index 152d1eb45..b77d12d03 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0092.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0092.py @@ -9,45 +9,32 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0083 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) +from .group_0085 import RepositoryRulesetConditionsPropRefName +from .group_0089 import ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, +) + + +class EnterpriseRulesetConditionsOneof2(GitHubModel): + """organization_id_and_repository_name + + Conditions to target organizations by id and all repositories + """ + + organization_id: EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId = Field() + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + +model_rebuild(EnterpriseRulesetConditionsOneof2) -class RepositoryRuleMergeQueuePropParameters(GitHubModel): - """RepositoryRuleMergeQueuePropParameters""" - - check_response_timeout_minutes: int = Field( - le=360.0, - ge=1.0, - description="Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed", - ) - grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] = Field( - description="When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." - ) - max_entries_to_build: int = Field( - le=100.0, - description="Limit the number of queued pull requests requesting checks and workflow runs at the same time.", - ) - max_entries_to_merge: int = Field( - le=100.0, - description="The maximum number of PRs that will be merged together in a group.", - ) - merge_method: Literal["MERGE", "SQUASH", "REBASE"] = Field( - description="Method to use when merging changes from queued pull requests." - ) - min_entries_to_merge: int = Field( - le=100.0, - description="The minimum number of PRs that will be merged together in a group.", - ) - min_entries_to_merge_wait_minutes: int = Field( - le=360.0, - description="The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.", - ) - - -model_rebuild(RepositoryRuleMergeQueuePropParameters) - -__all__ = ("RepositoryRuleMergeQueuePropParameters",) +__all__ = ("EnterpriseRulesetConditionsOneof2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0093.py b/githubkit/versions/ghec_v2022_11_28/models/group_0093.py index 21e3e24f6..bb9f453a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0093.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0093.py @@ -9,30 +9,32 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0094 import RepositoryRuleRequiredDeploymentsPropParameters +from .group_0085 import RepositoryRulesetConditionsPropRefName +from .group_0087 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) +from .group_0089 import ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId, +) -class RepositoryRuleRequiredDeployments(GitHubModel): - """required_deployments +class EnterpriseRulesetConditionsOneof3(GitHubModel): + """organization_id_and_repository_property - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. + Conditions to target organization by id and repositories by property """ - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET - ) + organization_id: EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId = Field() + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -model_rebuild(RepositoryRuleRequiredDeployments) +model_rebuild(EnterpriseRulesetConditionsOneof3) -__all__ = ("RepositoryRuleRequiredDeployments",) +__all__ = ("EnterpriseRulesetConditionsOneof3",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0094.py b/githubkit/versions/ghec_v2022_11_28/models/group_0094.py index d174bdf82..34a8b6a51 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0094.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0094.py @@ -9,19 +9,105 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class RepositoryRuleCreation(GitHubModel): + """creation + + Only allow users with bypass permission to create matching refs. + """ + + type: Literal["creation"] = Field() + + +class RepositoryRuleDeletion(GitHubModel): + """deletion + + Only allow users with bypass permissions to delete matching refs. + """ + + type: Literal["deletion"] = Field() + + +class RepositoryRuleRequiredSignatures(GitHubModel): + """required_signatures + + Commits pushed to matching refs must have verified signatures. + """ + + type: Literal["required_signatures"] = Field() + + +class RepositoryRuleNonFastForward(GitHubModel): + """non_fast_forward + + Prevent users with push access from force pushing to refs. + """ + + type: Literal["non_fast_forward"] = Field() + + +class RepositoryRuleOneof15(GitHubModel): + """file_path_restriction + + Prevent commits that include changes in specified file paths from being pushed + to the commit graph. + """ + + type: Literal["file_path_restriction"] = Field() + parameters: Missing[RepositoryRuleOneof15PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof15PropParameters(GitHubModel): + """RepositoryRuleOneof15PropParameters""" + + restricted_file_paths: list[str] = Field( + description="The file paths that are restricted from being pushed to the commit graph." + ) + + +class RepositoryRuleOneof17(GitHubModel): + """file_extension_restriction + + Prevent commits that include files with specified file extensions from being + pushed to the commit graph. + """ + + type: Literal["file_extension_restriction"] = Field() + parameters: Missing[RepositoryRuleOneof17PropParameters] = Field(default=UNSET) -class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): - """RepositoryRuleRequiredDeploymentsPropParameters""" +class RepositoryRuleOneof17PropParameters(GitHubModel): + """RepositoryRuleOneof17PropParameters""" - required_deployment_environments: list[str] = Field( - description="The environments that must be successfully deployed to before branches can be merged." + restricted_file_extensions: list[str] = Field( + description="The file extensions that are restricted from being pushed to the commit graph." ) -model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) +model_rebuild(RepositoryRuleCreation) +model_rebuild(RepositoryRuleDeletion) +model_rebuild(RepositoryRuleRequiredSignatures) +model_rebuild(RepositoryRuleNonFastForward) +model_rebuild(RepositoryRuleOneof15) +model_rebuild(RepositoryRuleOneof15PropParameters) +model_rebuild(RepositoryRuleOneof17) +model_rebuild(RepositoryRuleOneof17PropParameters) -__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) +__all__ = ( + "RepositoryRuleCreation", + "RepositoryRuleDeletion", + "RepositoryRuleNonFastForward", + "RepositoryRuleOneof15", + "RepositoryRuleOneof15PropParameters", + "RepositoryRuleOneof17", + "RepositoryRuleOneof17PropParameters", + "RepositoryRuleRequiredSignatures", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0095.py b/githubkit/versions/ghec_v2022_11_28/models/group_0095.py index 1d219c7c5..11c16c5cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0095.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0095.py @@ -9,29 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0096 import RepositoryRuleUpdatePropParameters -class RepositoryRuleParamsRequiredReviewerConfiguration(GitHubModel): - """RequiredReviewerConfiguration +class RepositoryRuleUpdate(GitHubModel): + """update - A reviewing team, and file patterns describing which files they must approve - changes to. + Only allow users with bypass permission to update matching refs. """ - file_patterns: list[str] = Field( - description="Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use the same syntax as `.gitignore` files." - ) - minimum_approvals: int = Field( - description="Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional." - ) - reviewer_id: str = Field( - description="Node ID of the team which must review changes to matching files." - ) + type: Literal["update"] = Field() + parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleParamsRequiredReviewerConfiguration) +model_rebuild(RepositoryRuleUpdate) -__all__ = ("RepositoryRuleParamsRequiredReviewerConfiguration",) +__all__ = ("RepositoryRuleUpdate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0096.py b/githubkit/versions/ghec_v2022_11_28/models/group_0096.py index 781c84322..24be869ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0096.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0096.py @@ -9,28 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0097 import RepositoryRulePullRequestPropParameters - -class RepositoryRulePullRequest(GitHubModel): - """pull_request - Require all commits be made to a non-target branch and submitted via a pull - request before they can be merged. - """ +class RepositoryRuleUpdatePropParameters(GitHubModel): + """RepositoryRuleUpdatePropParameters""" - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) + update_allows_fetch_and_merge: bool = Field( + description="Branch can pull changes from its upstream repository" + ) -model_rebuild(RepositoryRulePullRequest) +model_rebuild(RepositoryRuleUpdatePropParameters) -__all__ = ("RepositoryRulePullRequest",) +__all__ = ("RepositoryRuleUpdatePropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0097.py b/githubkit/versions/ghec_v2022_11_28/models/group_0097.py index f8d05002a..081a8320b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0097.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0097.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,31 +18,42 @@ from githubkit.utils import UNSET -class RepositoryRulePullRequestPropParameters(GitHubModel): - """RepositoryRulePullRequestPropParameters""" +class RepositoryRuleRequiredLinearHistory(GitHubModel): + """required_linear_history - allowed_merge_methods: Missing[list[str]] = Field( - default=UNSET, - description="When merging pull requests, you can allow any combination of merge commits, squashing, or rebasing. At least one option must be enabled.", - ) - dismiss_stale_reviews_on_push: bool = Field( - description="New, reviewable commits pushed will dismiss previous pull request review approvals." - ) - require_code_owner_review: bool = Field( - description="Require an approving review in pull requests that modify files that have a designated code owner." - ) - require_last_push_approval: bool = Field( - description="Whether the most recent reviewable push must be approved by someone other than the person who pushed it." - ) - required_approving_review_count: int = Field( - le=10.0, - description="The number of approving reviews that are required before a pull request can be merged.", - ) - required_review_thread_resolution: bool = Field( - description="All conversations on code must be resolved before a pull request can be merged." + Prevent merge commits from being pushed to matching refs. + """ + + type: Literal["required_linear_history"] = Field() + + +class RepositoryRuleOneof16(GitHubModel): + """max_file_path_length + + Prevent commits that include file paths that exceed a specified character limit + from being pushed to the commit graph. + """ + + type: Literal["max_file_path_length"] = Field() + parameters: Missing[RepositoryRuleOneof16PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof16PropParameters(GitHubModel): + """RepositoryRuleOneof16PropParameters""" + + max_file_path_length: int = Field( + le=256.0, + ge=1.0, + description="The maximum amount of characters allowed in file paths", ) -model_rebuild(RepositoryRulePullRequestPropParameters) +model_rebuild(RepositoryRuleRequiredLinearHistory) +model_rebuild(RepositoryRuleOneof16) +model_rebuild(RepositoryRuleOneof16PropParameters) -__all__ = ("RepositoryRulePullRequestPropParameters",) +__all__ = ( + "RepositoryRuleOneof16", + "RepositoryRuleOneof16PropParameters", + "RepositoryRuleRequiredLinearHistory", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0098.py b/githubkit/versions/ghec_v2022_11_28/models/group_0098.py index ad2a18b4f..84b2c14bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0098.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0098.py @@ -17,22 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0099 import RepositoryRuleRequiredStatusChecksPropParameters +from .group_0099 import RepositoryRuleMergeQueuePropParameters -class RepositoryRuleRequiredStatusChecks(GitHubModel): - """required_status_checks +class RepositoryRuleMergeQueue(GitHubModel): + """merge_queue - Choose which status checks must pass before the ref is updated. When enabled, - commits must first be pushed to another ref where the checks pass. + Merges must be performed via a merge queue. """ - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( - default=UNSET - ) + type: Literal["merge_queue"] = Field() + parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleRequiredStatusChecks) +model_rebuild(RepositoryRuleMergeQueue) -__all__ = ("RepositoryRuleRequiredStatusChecks",) +__all__ = ("RepositoryRuleMergeQueue",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0099.py b/githubkit/versions/ghec_v2022_11_28/models/group_0099.py index 83288089b..152d1eb45 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0099.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0099.py @@ -9,47 +9,45 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): - """RepositoryRuleRequiredStatusChecksPropParameters""" +class RepositoryRuleMergeQueuePropParameters(GitHubModel): + """RepositoryRuleMergeQueuePropParameters""" - do_not_enforce_on_create: Missing[bool] = Field( - default=UNSET, - description="Allow repositories and branches to be created if a check would otherwise prohibit it.", + check_response_timeout_minutes: int = Field( + le=360.0, + ge=1.0, + description="Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed", ) - required_status_checks: list[RepositoryRuleParamsStatusCheckConfiguration] = Field( - description="Status checks that are required." + grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] = Field( + description="When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." ) - strict_required_status_checks_policy: bool = Field( - description="Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled." + max_entries_to_build: int = Field( + le=100.0, + description="Limit the number of queued pull requests requesting checks and workflow runs at the same time.", ) - - -class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): - """StatusCheckConfiguration - - Required status check - """ - - context: str = Field( - description="The status check context name that must be present on the commit." + max_entries_to_merge: int = Field( + le=100.0, + description="The maximum number of PRs that will be merged together in a group.", + ) + merge_method: Literal["MERGE", "SQUASH", "REBASE"] = Field( + description="Method to use when merging changes from queued pull requests." + ) + min_entries_to_merge: int = Field( + le=100.0, + description="The minimum number of PRs that will be merged together in a group.", ) - integration_id: Missing[int] = Field( - default=UNSET, - description="The optional integration ID that this status check must originate from.", + min_entries_to_merge_wait_minutes: int = Field( + le=360.0, + description="The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.", ) -model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) -model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) +model_rebuild(RepositoryRuleMergeQueuePropParameters) -__all__ = ( - "RepositoryRuleParamsStatusCheckConfiguration", - "RepositoryRuleRequiredStatusChecksPropParameters", -) +__all__ = ("RepositoryRuleMergeQueuePropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0100.py b/githubkit/versions/ghec_v2022_11_28/models/group_0100.py index 0955abe27..728af8c72 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0100.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0100.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0101 import RepositoryRuleCommitMessagePatternPropParameters +from .group_0101 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleCommitMessagePattern(GitHubModel): - """commit_message_pattern +class RepositoryRuleRequiredDeployments(GitHubModel): + """required_deployments - Parameters to be used for the commit_message_pattern rule + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. """ - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( + type: Literal["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleCommitMessagePattern) +model_rebuild(RepositoryRuleRequiredDeployments) -__all__ = ("RepositoryRuleCommitMessagePattern",) +__all__ = ("RepositoryRuleRequiredDeployments",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0101.py b/githubkit/versions/ghec_v2022_11_28/models/group_0101.py index 982c7c60e..d174bdf82 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0101.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0101.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): - """RepositoryRuleCommitMessagePatternPropParameters""" +class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): + """RepositoryRuleRequiredDeploymentsPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." + required_deployment_environments: list[str] = Field( + description="The environments that must be successfully deployed to before branches can be merged." ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) +model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) -__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0102.py b/githubkit/versions/ghec_v2022_11_28/models/group_0102.py index 8441a6257..1d219c7c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0102.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0102.py @@ -9,29 +9,29 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0103 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleCommitAuthorEmailPattern(GitHubModel): - """commit_author_email_pattern +class RepositoryRuleParamsRequiredReviewerConfiguration(GitHubModel): + """RequiredReviewerConfiguration - Parameters to be used for the commit_author_email_pattern rule + A reviewing team, and file patterns describing which files they must approve + changes to. """ - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( - default=UNSET + file_patterns: list[str] = Field( + description="Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use the same syntax as `.gitignore` files." + ) + minimum_approvals: int = Field( + description="Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional." + ) + reviewer_id: str = Field( + description="Node ID of the team which must review changes to matching files." ) -model_rebuild(RepositoryRuleCommitAuthorEmailPattern) +model_rebuild(RepositoryRuleParamsRequiredReviewerConfiguration) -__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) +__all__ = ("RepositoryRuleParamsRequiredReviewerConfiguration",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0103.py b/githubkit/versions/ghec_v2022_11_28/models/group_0103.py index a402d7764..94f7c10a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0103.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0103.py @@ -17,22 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0104 import RepositoryRulePullRequestPropParameters -class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." - ) - pattern: str = Field(description="The pattern to match with.") +class RepositoryRulePullRequest(GitHubModel): + """pull_request + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. + """ -model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) + +model_rebuild(RepositoryRulePullRequest) + +__all__ = ("RepositoryRulePullRequest",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0104.py b/githubkit/versions/ghec_v2022_11_28/models/group_0104.py index fdfd91ff6..f8d05002a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0104.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0104.py @@ -9,29 +9,38 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0105 import RepositoryRuleCommitterEmailPatternPropParameters - -class RepositoryRuleCommitterEmailPattern(GitHubModel): - """committer_email_pattern +class RepositoryRulePullRequestPropParameters(GitHubModel): + """RepositoryRulePullRequestPropParameters""" - Parameters to be used for the committer_email_pattern rule - """ - - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( - default=UNSET + allowed_merge_methods: Missing[list[str]] = Field( + default=UNSET, + description="When merging pull requests, you can allow any combination of merge commits, squashing, or rebasing. At least one option must be enabled.", + ) + dismiss_stale_reviews_on_push: bool = Field( + description="New, reviewable commits pushed will dismiss previous pull request review approvals." + ) + require_code_owner_review: bool = Field( + description="Require an approving review in pull requests that modify files that have a designated code owner." + ) + require_last_push_approval: bool = Field( + description="Whether the most recent reviewable push must be approved by someone other than the person who pushed it." + ) + required_approving_review_count: int = Field( + le=10.0, + description="The number of approving reviews that are required before a pull request can be merged.", + ) + required_review_thread_resolution: bool = Field( + description="All conversations on code must be resolved before a pull request can be merged." ) -model_rebuild(RepositoryRuleCommitterEmailPattern) +model_rebuild(RepositoryRulePullRequestPropParameters) -__all__ = ("RepositoryRuleCommitterEmailPattern",) +__all__ = ("RepositoryRulePullRequestPropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0105.py b/githubkit/versions/ghec_v2022_11_28/models/group_0105.py index 7652318a1..616207b5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0105.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0105.py @@ -17,22 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0106 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): - """RepositoryRuleCommitterEmailPatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." +class RepositoryRuleRequiredStatusChecks(GitHubModel): + """required_status_checks + + Choose which status checks must pass before the ref is updated. When enabled, + commits must first be pushed to another ref where the checks pass. + """ + + type: Literal["required_status_checks"] = Field() + parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( + default=UNSET ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) +model_rebuild(RepositoryRuleRequiredStatusChecks) -__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) +__all__ = ("RepositoryRuleRequiredStatusChecks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0106.py b/githubkit/versions/ghec_v2022_11_28/models/group_0106.py index 150055b59..83288089b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0106.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0106.py @@ -9,29 +9,47 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0107 import RepositoryRuleBranchNamePatternPropParameters +class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): + """RepositoryRuleRequiredStatusChecksPropParameters""" -class RepositoryRuleBranchNamePattern(GitHubModel): - """branch_name_pattern + do_not_enforce_on_create: Missing[bool] = Field( + default=UNSET, + description="Allow repositories and branches to be created if a check would otherwise prohibit it.", + ) + required_status_checks: list[RepositoryRuleParamsStatusCheckConfiguration] = Field( + description="Status checks that are required." + ) + strict_required_status_checks_policy: bool = Field( + description="Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled." + ) - Parameters to be used for the branch_name_pattern rule + +class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): + """StatusCheckConfiguration + + Required status check """ - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( - default=UNSET + context: str = Field( + description="The status check context name that must be present on the commit." + ) + integration_id: Missing[int] = Field( + default=UNSET, + description="The optional integration ID that this status check must originate from.", ) -model_rebuild(RepositoryRuleBranchNamePattern) +model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) +model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) -__all__ = ("RepositoryRuleBranchNamePattern",) +__all__ = ( + "RepositoryRuleParamsStatusCheckConfiguration", + "RepositoryRuleRequiredStatusChecksPropParameters", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0107.py b/githubkit/versions/ghec_v2022_11_28/models/group_0107.py index b85419b00..a72d4d8d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0107.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0107.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0108 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): - """RepositoryRuleBranchNamePatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." +class RepositoryRuleCommitMessagePattern(GitHubModel): + """commit_message_pattern + + Parameters to be used for the commit_message_pattern rule + """ + + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( + default=UNSET ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleBranchNamePatternPropParameters) +model_rebuild(RepositoryRuleCommitMessagePattern) -__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) +__all__ = ("RepositoryRuleCommitMessagePattern",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0108.py b/githubkit/versions/ghec_v2022_11_28/models/group_0108.py index 7054ab78a..982c7c60e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0108.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0108.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0109 import RepositoryRuleTagNamePatternPropParameters +class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): + """RepositoryRuleCommitMessagePatternPropParameters""" -class RepositoryRuleTagNamePattern(GitHubModel): - """tag_name_pattern - - Parameters to be used for the tag_name_pattern rule - """ - - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( - default=UNSET + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." + ) + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." + ) + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleTagNamePattern) +model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) -__all__ = ("RepositoryRuleTagNamePattern",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0109.py b/githubkit/versions/ghec_v2022_11_28/models/group_0109.py index c8e4fb0a0..c56cbd8d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0109.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0109.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0110 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleTagNamePatternPropParameters(GitHubModel): - """RepositoryRuleTagNamePatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." +class RepositoryRuleCommitAuthorEmailPattern(GitHubModel): + """commit_author_email_pattern + + Parameters to be used for the commit_author_email_pattern rule + """ + + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( + default=UNSET ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleTagNamePatternPropParameters) +model_rebuild(RepositoryRuleCommitAuthorEmailPattern) -__all__ = ("RepositoryRuleTagNamePatternPropParameters",) +__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0110.py b/githubkit/versions/ghec_v2022_11_28/models/group_0110.py index 2482237a7..a402d7764 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0110.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0110.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,16 +18,21 @@ from githubkit.utils import UNSET -class RepositoryRuleParamsRestrictedCommits(GitHubModel): - """RestrictedCommits - - Restricted commit - """ +class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" - oid: str = Field(description="Full or abbreviated commit hash to reject") - reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." + ) + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." + ) + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." + ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleParamsRestrictedCommits) +model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) -__all__ = ("RepositoryRuleParamsRestrictedCommits",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0111.py b/githubkit/versions/ghec_v2022_11_28/models/group_0111.py index 3804770b4..7aee7ae58 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0111.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0111.py @@ -17,20 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0112 import RepositoryRuleWorkflowsPropParameters +from .group_0112 import RepositoryRuleCommitterEmailPatternPropParameters -class RepositoryRuleWorkflows(GitHubModel): - """workflows +class RepositoryRuleCommitterEmailPattern(GitHubModel): + """committer_email_pattern - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. + Parameters to be used for the committer_email_pattern rule """ - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + default=UNSET + ) -model_rebuild(RepositoryRuleWorkflows) +model_rebuild(RepositoryRuleCommitterEmailPattern) -__all__ = ("RepositoryRuleWorkflows",) +__all__ = ("RepositoryRuleCommitterEmailPattern",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0112.py b/githubkit/versions/ghec_v2022_11_28/models/group_0112.py index 56d86ff5b..7652318a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0112.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0112.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,40 +18,21 @@ from githubkit.utils import UNSET -class RepositoryRuleWorkflowsPropParameters(GitHubModel): - """RepositoryRuleWorkflowsPropParameters""" - - do_not_enforce_on_create: Missing[bool] = Field( - default=UNSET, - description="Allow repositories and branches to be created if a check would otherwise prohibit it.", - ) - workflows: list[RepositoryRuleParamsWorkflowFileReference] = Field( - description="Workflows that must pass for this rule to pass." - ) - - -class RepositoryRuleParamsWorkflowFileReference(GitHubModel): - """WorkflowFileReference - - A workflow that must run for this rule to pass - """ +class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitterEmailPatternPropParameters""" - path: str = Field(description="The path to the workflow file") - ref: Missing[str] = Field( - default=UNSET, description="The ref (branch or tag) of the workflow file to use" + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." ) - repository_id: int = Field( - description="The ID of the repository where the workflow is defined" + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." ) - sha: Missing[str] = Field( - default=UNSET, description="The commit SHA of the workflow file to use" + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleWorkflowsPropParameters) -model_rebuild(RepositoryRuleParamsWorkflowFileReference) +model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) -__all__ = ( - "RepositoryRuleParamsWorkflowFileReference", - "RepositoryRuleWorkflowsPropParameters", -) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0113.py b/githubkit/versions/ghec_v2022_11_28/models/group_0113.py index 9f3893da3..52d27602e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0113.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0113.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0114 import RepositoryRuleCodeScanningPropParameters +from .group_0114 import RepositoryRuleBranchNamePatternPropParameters -class RepositoryRuleCodeScanning(GitHubModel): - """code_scanning +class RepositoryRuleBranchNamePattern(GitHubModel): + """branch_name_pattern - Choose which tools must provide code scanning results before the reference is - updated. When configured, code scanning must be enabled and have results for - both the commit and the reference being updated. + Parameters to be used for the branch_name_pattern rule """ - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + default=UNSET + ) -model_rebuild(RepositoryRuleCodeScanning) +model_rebuild(RepositoryRuleBranchNamePattern) -__all__ = ("RepositoryRuleCodeScanning",) +__all__ = ("RepositoryRuleBranchNamePattern",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0114.py b/githubkit/versions/ghec_v2022_11_28/models/group_0114.py index 140bbe07a..b85419b00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0114.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0114.py @@ -14,37 +14,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRuleCodeScanningPropParameters(GitHubModel): - """RepositoryRuleCodeScanningPropParameters""" +class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): + """RepositoryRuleBranchNamePatternPropParameters""" - code_scanning_tools: list[RepositoryRuleParamsCodeScanningTool] = Field( - description="Tools that must provide code scanning results for this rule to pass." + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." ) - - -class RepositoryRuleParamsCodeScanningTool(GitHubModel): - """CodeScanningTool - - A tool that must provide code scanning results for this rule to pass. - """ - - alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] = Field( - description='The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." ) - security_alerts_threshold: Literal[ - "none", "critical", "high_or_higher", "medium_or_higher", "all" - ] = Field( - description='The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) - tool: str = Field(description="The name of a code scanning tool") + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCodeScanningPropParameters) -model_rebuild(RepositoryRuleParamsCodeScanningTool) +model_rebuild(RepositoryRuleBranchNamePatternPropParameters) -__all__ = ( - "RepositoryRuleCodeScanningPropParameters", - "RepositoryRuleParamsCodeScanningTool", -) +__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0115.py b/githubkit/versions/ghec_v2022_11_28/models/group_0115.py index b69749297..eb8843897 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0115.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0115.py @@ -17,32 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0116 import RepositoryRuleTagNamePatternPropParameters -class RepositoryRuleOneof18(GitHubModel): - """max_file_size - Prevent commits that exceed a specified file size limit from being pushed to the - commit. - """ - - type: Literal["max_file_size"] = Field() - parameters: Missing[RepositoryRuleOneof18PropParameters] = Field(default=UNSET) +class RepositoryRuleTagNamePattern(GitHubModel): + """tag_name_pattern + Parameters to be used for the tag_name_pattern rule + """ -class RepositoryRuleOneof18PropParameters(GitHubModel): - """RepositoryRuleOneof18PropParameters""" - - max_file_size: int = Field( - le=100.0, - ge=1.0, - description="The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).", + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + default=UNSET ) -model_rebuild(RepositoryRuleOneof18) -model_rebuild(RepositoryRuleOneof18PropParameters) +model_rebuild(RepositoryRuleTagNamePattern) -__all__ = ( - "RepositoryRuleOneof18", - "RepositoryRuleOneof18PropParameters", -) +__all__ = ("RepositoryRuleTagNamePattern",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0116.py b/githubkit/versions/ghec_v2022_11_28/models/group_0116.py index 9d7035357..c8e4fb0a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0116.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0116.py @@ -9,24 +9,30 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0117 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId - - -class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): - """Repository ruleset conditions for repository IDs - Parameters for a repository ID condition - """ +class RepositoryRuleTagNamePatternPropParameters(GitHubModel): + """RepositoryRuleTagNamePatternPropParameters""" - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( - Field() + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." + ) + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." + ) + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) +model_rebuild(RepositoryRuleTagNamePatternPropParameters) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) +__all__ = ("RepositoryRuleTagNamePatternPropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0117.py b/githubkit/versions/ghec_v2022_11_28/models/group_0117.py index fd9df3d90..2482237a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0117.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0117.py @@ -16,15 +16,16 @@ from githubkit.utils import UNSET -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" +class RepositoryRuleParamsRestrictedCommits(GitHubModel): + """RestrictedCommits - repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", - ) + Restricted commit + """ + oid: str = Field(description="Full or abbreviated commit hash to reject") + reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") -model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) +model_rebuild(RepositoryRuleParamsRestrictedCommits) + +__all__ = ("RepositoryRuleParamsRestrictedCommits",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0118.py b/githubkit/versions/ghec_v2022_11_28/models/group_0118.py index 90cd3395f..01c0f23b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0118.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0118.py @@ -9,28 +9,28 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0076 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) -from .group_0078 import RepositoryRulesetConditionsPropRefName +from .group_0119 import RepositoryRuleWorkflowsPropParameters -class OrgRulesetConditionsOneof0(GitHubModel): - """repository_name_and_ref_name +class RepositoryRuleWorkflows(GitHubModel): + """workflows - Conditions to target repositories by name and refs by name + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) -model_rebuild(OrgRulesetConditionsOneof0) +model_rebuild(RepositoryRuleWorkflows) -__all__ = ("OrgRulesetConditionsOneof0",) +__all__ = ("RepositoryRuleWorkflows",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0119.py b/githubkit/versions/ghec_v2022_11_28/models/group_0119.py index 57327ec9e..56d86ff5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0119.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0119.py @@ -15,22 +15,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0078 import RepositoryRulesetConditionsPropRefName -from .group_0117 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId +class RepositoryRuleWorkflowsPropParameters(GitHubModel): + """RepositoryRuleWorkflowsPropParameters""" + + do_not_enforce_on_create: Missing[bool] = Field( + default=UNSET, + description="Allow repositories and branches to be created if a check would otherwise prohibit it.", + ) + workflows: list[RepositoryRuleParamsWorkflowFileReference] = Field( + description="Workflows that must pass for this rule to pass." + ) -class OrgRulesetConditionsOneof1(GitHubModel): - """repository_id_and_ref_name - Conditions to target repositories by id and refs by name +class RepositoryRuleParamsWorkflowFileReference(GitHubModel): + """WorkflowFileReference + + A workflow that must run for this rule to pass """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( - Field() + path: str = Field(description="The path to the workflow file") + ref: Missing[str] = Field( + default=UNSET, description="The ref (branch or tag) of the workflow file to use" + ) + repository_id: int = Field( + description="The ID of the repository where the workflow is defined" + ) + sha: Missing[str] = Field( + default=UNSET, description="The commit SHA of the workflow file to use" ) -model_rebuild(OrgRulesetConditionsOneof1) +model_rebuild(RepositoryRuleWorkflowsPropParameters) +model_rebuild(RepositoryRuleParamsWorkflowFileReference) -__all__ = ("OrgRulesetConditionsOneof1",) +__all__ = ( + "RepositoryRuleParamsWorkflowFileReference", + "RepositoryRuleWorkflowsPropParameters", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0120.py b/githubkit/versions/ghec_v2022_11_28/models/group_0120.py index ea8c1e4bb..cd4b3b9ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0120.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0120.py @@ -9,28 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0078 import RepositoryRulesetConditionsPropRefName -from .group_0080 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, -) +from .group_0121 import RepositoryRuleCodeScanningPropParameters -class OrgRulesetConditionsOneof2(GitHubModel): - """repository_property_and_ref_name +class RepositoryRuleCodeScanning(GitHubModel): + """code_scanning - Conditions to target repositories by property and refs by name + Choose which tools must provide code scanning results before the reference is + updated. When configured, code scanning must be enabled and have results for + both the commit and the reference being updated. """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) -model_rebuild(OrgRulesetConditionsOneof2) +model_rebuild(RepositoryRuleCodeScanning) -__all__ = ("OrgRulesetConditionsOneof2",) +__all__ = ("RepositoryRuleCodeScanning",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0121.py b/githubkit/versions/ghec_v2022_11_28/models/group_0121.py index 0a6ca274e..140bbe07a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0121.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0121.py @@ -9,145 +9,42 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0072 import RepositoryRulesetBypassActor -from .group_0077 import RepositoryRulesetConditions -from .group_0087 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0088 import RepositoryRuleUpdate -from .group_0090 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0091 import RepositoryRuleMergeQueue -from .group_0093 import RepositoryRuleRequiredDeployments -from .group_0096 import RepositoryRulePullRequest -from .group_0098 import RepositoryRuleRequiredStatusChecks -from .group_0100 import RepositoryRuleCommitMessagePattern -from .group_0102 import RepositoryRuleCommitAuthorEmailPattern -from .group_0104 import RepositoryRuleCommitterEmailPattern -from .group_0106 import RepositoryRuleBranchNamePattern -from .group_0108 import RepositoryRuleTagNamePattern -from .group_0111 import RepositoryRuleWorkflows -from .group_0113 import RepositoryRuleCodeScanning -from .group_0115 import RepositoryRuleOneof18 -from .group_0118 import OrgRulesetConditionsOneof0 -from .group_0119 import OrgRulesetConditionsOneof1 -from .group_0120 import OrgRulesetConditionsOneof2 - - -class RepositoryRuleset(GitHubModel): - """Repository ruleset - - A set of rules to apply when specified conditions are met. - """ - id: int = Field(description="The ID of the ruleset") - name: str = Field(description="The name of the ruleset") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - source_type: Missing[Literal["Repository", "Organization", "Enterprise"]] = Field( - default=UNSET, description="The type of the source of the ruleset" - ) - source: str = Field(description="The name of the source") - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - current_user_can_bypass: Missing[ - Literal["always", "pull_requests_only", "never"] - ] = Field( - default=UNSET, - description="The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.", - ) - node_id: Missing[str] = Field(default=UNSET) - links: Missing[RepositoryRulesetPropLinks] = Field(default=UNSET, alias="_links") - conditions: Missing[ - Union[ - RepositoryRulesetConditions, - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - None, - ] - ] = Field(default=UNSET) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - - -class RepositoryRulesetPropLinks(GitHubModel): - """RepositoryRulesetPropLinks""" - - self_: Missing[RepositoryRulesetPropLinksPropSelf] = Field( - default=UNSET, alias="self" - ) - html: Missing[Union[RepositoryRulesetPropLinksPropHtml, None]] = Field( - default=UNSET - ) +class RepositoryRuleCodeScanningPropParameters(GitHubModel): + """RepositoryRuleCodeScanningPropParameters""" -class RepositoryRulesetPropLinksPropSelf(GitHubModel): - """RepositoryRulesetPropLinksPropSelf""" + code_scanning_tools: list[RepositoryRuleParamsCodeScanningTool] = Field( + description="Tools that must provide code scanning results for this rule to pass." + ) - href: Missing[str] = Field(default=UNSET, description="The URL of the ruleset") +class RepositoryRuleParamsCodeScanningTool(GitHubModel): + """CodeScanningTool -class RepositoryRulesetPropLinksPropHtml(GitHubModel): - """RepositoryRulesetPropLinksPropHtml""" + A tool that must provide code scanning results for this rule to pass. + """ - href: Missing[str] = Field(default=UNSET, description="The html URL of the ruleset") + alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] = Field( + description='The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + ) + security_alerts_threshold: Literal[ + "none", "critical", "high_or_higher", "medium_or_higher", "all" + ] = Field( + description='The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + ) + tool: str = Field(description="The name of a code scanning tool") -model_rebuild(RepositoryRuleset) -model_rebuild(RepositoryRulesetPropLinks) -model_rebuild(RepositoryRulesetPropLinksPropSelf) -model_rebuild(RepositoryRulesetPropLinksPropHtml) +model_rebuild(RepositoryRuleCodeScanningPropParameters) +model_rebuild(RepositoryRuleParamsCodeScanningTool) __all__ = ( - "RepositoryRuleset", - "RepositoryRulesetPropLinks", - "RepositoryRulesetPropLinksPropHtml", - "RepositoryRulesetPropLinksPropSelf", + "RepositoryRuleCodeScanningPropParameters", + "RepositoryRuleParamsCodeScanningTool", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0122.py b/githubkit/versions/ghec_v2022_11_28/models/group_0122.py index 17ff26f33..b69749297 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0122.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0122.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,98 +17,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0051 import SimpleRepository +class RepositoryRuleOneof18(GitHubModel): + """max_file_size -class OrganizationSecretScanningAlert(GitHubModel): - """OrganizationSecretScanningAlert""" + Prevent commits that exceed a specified file size limit from being pushed to the + commit. + """ - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - secret: Missing[str] = Field( - default=UNSET, description="The secret that was detected." - ) - repository: Missing[SimpleRepository] = Field( - default=UNSET, title="Simple Repository", description="A GitHub repository." - ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", - ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( - default=UNSET - ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when reviewing a push protection bypass.", - ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when requesting a push protection bypass.", - ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." - ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment that was optionally added when this alert was closed", - ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." - ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the secret was publicly leaked." - ) - multi_repo: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.", + type: Literal["max_file_size"] = Field() + parameters: Missing[RepositoryRuleOneof18PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof18PropParameters(GitHubModel): + """RepositoryRuleOneof18PropParameters""" + + max_file_size: int = Field( + le=100.0, + ge=1.0, + description="The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).", ) -model_rebuild(OrganizationSecretScanningAlert) +model_rebuild(RepositoryRuleOneof18) +model_rebuild(RepositoryRuleOneof18PropParameters) -__all__ = ("OrganizationSecretScanningAlert",) +__all__ = ( + "RepositoryRuleOneof18", + "RepositoryRuleOneof18PropParameters", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0123.py b/githubkit/versions/ghec_v2022_11_28/models/group_0123.py index 6546dd05e..93fe18531 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0123.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0123.py @@ -12,96 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0124 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class ActionsBillingUsage(GitHubModel): - """ActionsBillingUsage""" - total_minutes_used: int = Field( - description="The sum of the free and paid GitHub Actions minutes used." - ) - total_paid_minutes_used: int = Field( - description="The total paid GitHub Actions minutes used." - ) - included_minutes: int = Field( - description="The amount of free GitHub Actions minutes available." - ) - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() +class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): + """Repository ruleset conditions for repository IDs + Parameters for a repository ID condition + """ -class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): - """ActionsBillingUsagePropMinutesUsedBreakdown""" - - ubuntu: Missing[int] = Field( - default=UNSET, - alias="UBUNTU", - description="Total minutes used on Ubuntu runner machines.", - ) - macos: Missing[int] = Field( - default=UNSET, - alias="MACOS", - description="Total minutes used on macOS runner machines.", - ) - windows: Missing[int] = Field( - default=UNSET, - alias="WINDOWS", - description="Total minutes used on Windows runner machines.", - ) - ubuntu_4_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 4 core runner machines.", - ) - ubuntu_8_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 8 core runner machines.", - ) - ubuntu_16_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 16 core runner machines.", - ) - ubuntu_32_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 32 core runner machines.", - ) - ubuntu_64_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 64 core runner machines.", - ) - windows_4_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 4 core runner machines.", - ) - windows_8_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 8 core runner machines.", - ) - windows_16_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 16 core runner machines.", - ) - windows_32_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 32 core runner machines.", - ) - windows_64_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 64 core runner machines.", - ) - macos_12_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on macOS 12 core runner machines.", - ) - total: Missing[int] = Field( - default=UNSET, description="Total minutes used on all runner machines." + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( + Field() ) -model_rebuild(ActionsBillingUsage) -model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) -__all__ = ( - "ActionsBillingUsage", - "ActionsBillingUsagePropMinutesUsedBreakdown", -) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0124.py b/githubkit/versions/ghec_v2022_11_28/models/group_0124.py index d579b5f48..fd9df3d90 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0124.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0124.py @@ -16,46 +16,15 @@ from githubkit.utils import UNSET -class AdvancedSecurityActiveCommitters(GitHubModel): - """AdvancedSecurityActiveCommitters""" +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" - total_advanced_security_committers: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - maximum_advanced_security_committers: Missing[int] = Field( + repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The total number of GitHub Advanced Security licences required if all repositories were to enable GitHub Advanced Security", + description="The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", ) - purchased_advanced_security_committers: Missing[int] = Field( - default=UNSET, - description="The total number of GitHub Advanced Security licences purchased", - ) - repositories: list[AdvancedSecurityActiveCommittersRepository] = Field() - - -class AdvancedSecurityActiveCommittersRepository(GitHubModel): - """AdvancedSecurityActiveCommittersRepository""" - - name: str = Field() - advanced_security_committers: int = Field() - advanced_security_committers_breakdown: list[ - AdvancedSecurityActiveCommittersUser - ] = Field() - - -class AdvancedSecurityActiveCommittersUser(GitHubModel): - """AdvancedSecurityActiveCommittersUser""" - - user_login: str = Field() - last_pushed_date: str = Field() - last_pushed_email: str = Field() -model_rebuild(AdvancedSecurityActiveCommitters) -model_rebuild(AdvancedSecurityActiveCommittersRepository) -model_rebuild(AdvancedSecurityActiveCommittersUser) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) -__all__ = ( - "AdvancedSecurityActiveCommitters", - "AdvancedSecurityActiveCommittersRepository", - "AdvancedSecurityActiveCommittersUser", -) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0125.py b/githubkit/versions/ghec_v2022_11_28/models/group_0125.py index 085b1d2ec..de4e7071e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0125.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0125.py @@ -15,36 +15,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0083 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) +from .group_0085 import RepositoryRulesetConditionsPropRefName -class GetAllCostCenters(GitHubModel): - """GetAllCostCenters""" - - cost_centers: Missing[list[GetAllCostCentersPropCostCentersItems]] = Field( - default=UNSET, alias="costCenters" - ) - - -class GetAllCostCentersPropCostCentersItems(GitHubModel): - """GetAllCostCentersPropCostCentersItems""" - - id: str = Field(description="ID of the cost center.") - name: str = Field(description="Name of the cost center.") - resources: list[GetAllCostCentersPropCostCentersItemsPropResourcesItems] = Field() +class OrgRulesetConditionsOneof0(GitHubModel): + """repository_name_and_ref_name -class GetAllCostCentersPropCostCentersItemsPropResourcesItems(GitHubModel): - """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" + Conditions to target repositories by name and refs by name + """ - type: str = Field(description="Type of the resource.") - name: str = Field(description="Name of the resource.") + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -model_rebuild(GetAllCostCenters) -model_rebuild(GetAllCostCentersPropCostCentersItems) -model_rebuild(GetAllCostCentersPropCostCentersItemsPropResourcesItems) +model_rebuild(OrgRulesetConditionsOneof0) -__all__ = ( - "GetAllCostCenters", - "GetAllCostCentersPropCostCentersItems", - "GetAllCostCentersPropCostCentersItemsPropResourcesItems", -) +__all__ = ("OrgRulesetConditionsOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0126.py b/githubkit/versions/ghec_v2022_11_28/models/group_0126.py index b7be403af..876fc067c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0126.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0126.py @@ -12,22 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0085 import RepositoryRulesetConditionsPropRefName +from .group_0124 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class PackagesBillingUsage(GitHubModel): - """PackagesBillingUsage""" - total_gigabytes_bandwidth_used: int = Field( - description="Sum of the free and paid storage space (GB) for GitHuub Packages." - ) - total_paid_gigabytes_bandwidth_used: int = Field( - description="Total paid storage space (GB) for GitHuub Packages." - ) - included_gigabytes_bandwidth: int = Field( - description="Free storage space (GB) for GitHub Packages." +class OrgRulesetConditionsOneof1(GitHubModel): + """repository_id_and_ref_name + + Conditions to target repositories by id and refs by name + """ + + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( + Field() ) -model_rebuild(PackagesBillingUsage) +model_rebuild(OrgRulesetConditionsOneof1) -__all__ = ("PackagesBillingUsage",) +__all__ = ("OrgRulesetConditionsOneof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0127.py b/githubkit/versions/ghec_v2022_11_28/models/group_0127.py index 7f2b2b444..7cf05db8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0127.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0127.py @@ -12,22 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0085 import RepositoryRulesetConditionsPropRefName +from .group_0087 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) -class CombinedBillingUsage(GitHubModel): - """CombinedBillingUsage""" - days_left_in_billing_cycle: int = Field( - description="Numbers of days left in billing cycle." - ) - estimated_paid_storage_for_month: int = Field( - description="Estimated storage space (GB) used in billing cycle." - ) - estimated_storage_for_month: int = Field( - description="Estimated sum of free and paid storage space (GB) used in billing cycle." - ) +class OrgRulesetConditionsOneof2(GitHubModel): + """repository_property_and_ref_name + Conditions to target repositories by property and refs by name + """ -model_rebuild(CombinedBillingUsage) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() -__all__ = ("CombinedBillingUsage",) + +model_rebuild(OrgRulesetConditionsOneof2) + +__all__ = ("OrgRulesetConditionsOneof2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0128.py b/githubkit/versions/ghec_v2022_11_28/models/group_0128.py index 856ee3686..e57df3a58 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0128.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0128.py @@ -9,55 +9,145 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0079 import RepositoryRulesetBypassActor +from .group_0084 import RepositoryRulesetConditions +from .group_0094 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0095 import RepositoryRuleUpdate +from .group_0097 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0098 import RepositoryRuleMergeQueue +from .group_0100 import RepositoryRuleRequiredDeployments +from .group_0103 import RepositoryRulePullRequest +from .group_0105 import RepositoryRuleRequiredStatusChecks +from .group_0107 import RepositoryRuleCommitMessagePattern +from .group_0109 import RepositoryRuleCommitAuthorEmailPattern +from .group_0111 import RepositoryRuleCommitterEmailPattern +from .group_0113 import RepositoryRuleBranchNamePattern +from .group_0115 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRuleCodeScanning +from .group_0122 import RepositoryRuleOneof18 +from .group_0125 import OrgRulesetConditionsOneof0 +from .group_0126 import OrgRulesetConditionsOneof1 +from .group_0127 import OrgRulesetConditionsOneof2 -class BillingUsageReport(GitHubModel): - """BillingUsageReport""" - - usage_items: Missing[list[BillingUsageReportPropUsageItemsItems]] = Field( - default=UNSET, alias="usageItems" - ) +class RepositoryRuleset(GitHubModel): + """Repository ruleset -class BillingUsageReportPropUsageItemsItems(GitHubModel): - """BillingUsageReportPropUsageItemsItems""" + A set of rules to apply when specified conditions are met. + """ - date: str = Field(description="Date of the usage line item.") - product: str = Field(description="Product name.") - sku: str = Field(description="SKU name.") - quantity: int = Field(description="Quantity of the usage line item.") - unit_type: str = Field( - alias="unitType", description="Unit type of the usage line item." + id: int = Field(description="The ID of the ruleset") + name: str = Field(description="The name of the ruleset") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" ) - price_per_unit: float = Field( - alias="pricePerUnit", description="Price per unit of the usage line item." + source_type: Missing[Literal["Repository", "Organization", "Enterprise"]] = Field( + default=UNSET, description="The type of the source of the ruleset" ) - gross_amount: float = Field( - alias="grossAmount", description="Gross amount of the usage line item." + source: str = Field(description="The name of the source") + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." ) - discount_amount: float = Field( - alias="discountAmount", description="Discount amount of the usage line item." + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", ) - net_amount: float = Field( - alias="netAmount", description="Net amount of the usage line item." + current_user_can_bypass: Missing[ + Literal["always", "pull_requests_only", "never"] + ] = Field( + default=UNSET, + description="The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.", ) - organization_name: str = Field( - alias="organizationName", description="Name of the organization." + node_id: Missing[str] = Field(default=UNSET) + links: Missing[RepositoryRulesetPropLinks] = Field(default=UNSET, alias="_links") + conditions: Missing[ + Union[ + RepositoryRulesetConditions, + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + None, + ] + ] = Field(default=UNSET) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + + +class RepositoryRulesetPropLinks(GitHubModel): + """RepositoryRulesetPropLinks""" + + self_: Missing[RepositoryRulesetPropLinksPropSelf] = Field( + default=UNSET, alias="self" ) - repository_name: Missing[str] = Field( - default=UNSET, alias="repositoryName", description="Name of the repository." + html: Missing[Union[RepositoryRulesetPropLinksPropHtml, None]] = Field( + default=UNSET ) -model_rebuild(BillingUsageReport) -model_rebuild(BillingUsageReportPropUsageItemsItems) +class RepositoryRulesetPropLinksPropSelf(GitHubModel): + """RepositoryRulesetPropLinksPropSelf""" + + href: Missing[str] = Field(default=UNSET, description="The URL of the ruleset") + + +class RepositoryRulesetPropLinksPropHtml(GitHubModel): + """RepositoryRulesetPropLinksPropHtml""" + + href: Missing[str] = Field(default=UNSET, description="The html URL of the ruleset") + + +model_rebuild(RepositoryRuleset) +model_rebuild(RepositoryRulesetPropLinks) +model_rebuild(RepositoryRulesetPropLinksPropSelf) +model_rebuild(RepositoryRulesetPropLinksPropHtml) __all__ = ( - "BillingUsageReport", - "BillingUsageReportPropUsageItemsItems", + "RepositoryRuleset", + "RepositoryRulesetPropLinks", + "RepositoryRulesetPropLinksPropHtml", + "RepositoryRulesetPropLinksPropSelf", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0129.py b/githubkit/versions/ghec_v2022_11_28/models/group_0129.py index ad32b90b7..bfa63e4d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0129.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0129.py @@ -15,36 +15,101 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0056 import SimpleRepository -class Milestone(GitHubModel): - """Milestone +class OrganizationSecretScanningAlert(GitHubModel): + """OrganizationSecretScanningAlert""" - A collection of related issues and pull requests. - """ - - url: str = Field() - html_url: str = Field() - labels_url: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - state: Literal["open", "closed"] = Field( - default="open", description="The state of the milestone." + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", + ) + state: Missing[Literal["open", "resolved"]] = Field( + default=UNSET, + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + ) + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( + default=UNSET, + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + secret: Missing[str] = Field( + default=UNSET, description="The secret that was detected." + ) + repository: Missing[SimpleRepository] = Field( + default=UNSET, title="Simple Repository", description="A GitHub repository." + ) + push_protection_bypassed: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether push protection was bypassed for the detected secret.", + ) + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + default=UNSET + ) + push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when reviewing a push protection bypass.", + ) + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when requesting a push protection bypass.", + ) + push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The URL to a push protection bypass request." + ) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment that was optionally added when this alert was closed", + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) + publicly_leaked: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether the secret was publicly leaked." + ) + multi_repo: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.", ) - title: str = Field(description="The title of the milestone.") - description: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() - open_issues: int = Field() - closed_issues: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - due_on: Union[datetime, None] = Field() -model_rebuild(Milestone) +model_rebuild(OrganizationSecretScanningAlert) -__all__ = ("Milestone",) +__all__ = ("OrganizationSecretScanningAlert",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0130.py b/githubkit/versions/ghec_v2022_11_28/models/group_0130.py index fd85f1373..6546dd05e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0130.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0130.py @@ -12,23 +12,96 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReactionRollup(GitHubModel): - """Reaction Rollup""" +class ActionsBillingUsage(GitHubModel): + """ActionsBillingUsage""" - url: str = Field() - total_count: int = Field() - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - laugh: int = Field() - confused: int = Field() - heart: int = Field() - hooray: int = Field() - eyes: int = Field() - rocket: int = Field() + total_minutes_used: int = Field( + description="The sum of the free and paid GitHub Actions minutes used." + ) + total_paid_minutes_used: int = Field( + description="The total paid GitHub Actions minutes used." + ) + included_minutes: int = Field( + description="The amount of free GitHub Actions minutes available." + ) + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() -model_rebuild(ReactionRollup) +class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): + """ActionsBillingUsagePropMinutesUsedBreakdown""" -__all__ = ("ReactionRollup",) + ubuntu: Missing[int] = Field( + default=UNSET, + alias="UBUNTU", + description="Total minutes used on Ubuntu runner machines.", + ) + macos: Missing[int] = Field( + default=UNSET, + alias="MACOS", + description="Total minutes used on macOS runner machines.", + ) + windows: Missing[int] = Field( + default=UNSET, + alias="WINDOWS", + description="Total minutes used on Windows runner machines.", + ) + ubuntu_4_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 4 core runner machines.", + ) + ubuntu_8_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 8 core runner machines.", + ) + ubuntu_16_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 16 core runner machines.", + ) + ubuntu_32_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 32 core runner machines.", + ) + ubuntu_64_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 64 core runner machines.", + ) + windows_4_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 4 core runner machines.", + ) + windows_8_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 8 core runner machines.", + ) + windows_16_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 16 core runner machines.", + ) + windows_32_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 32 core runner machines.", + ) + windows_64_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 64 core runner machines.", + ) + macos_12_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on macOS 12 core runner machines.", + ) + total: Missing[int] = Field( + default=UNSET, description="Total minutes used on all runner machines." + ) + + +model_rebuild(ActionsBillingUsage) +model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) + +__all__ = ( + "ActionsBillingUsage", + "ActionsBillingUsagePropMinutesUsedBreakdown", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0131.py b/githubkit/versions/ghec_v2022_11_28/models/group_0131.py index 97638e8da..d579b5f48 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0131.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0131.py @@ -9,130 +9,53 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0019 import Repository -from .group_0129 import Milestone -from .group_0130 import ReactionRollup - - -class Issue(GitHubModel): - """Issue - - Issues are a great way to keep track of tasks, enhancements, and bugs for your - projects. - """ - - id: int = Field() - node_id: str = Field() - url: str = Field(description="URL for the issue") - repository_url: str = Field() - labels_url: str = Field() - comments_url: str = Field() - events_url: str = Field() - html_url: str = Field() - number: int = Field( - description="Number uniquely identifying the issue within its repository" - ) - state: str = Field(description="State of the issue; either 'open' or 'closed'") - state_reason: Missing[ - Union[None, Literal["completed", "reopened", "not_planned"]] - ] = Field(default=UNSET, description="The reason for the current state") - title: str = Field(description="Title of the issue") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Contents of the issue" - ) - user: Union[None, SimpleUser] = Field() - labels: list[Union[str, IssuePropLabelsItemsOneof1]] = Field( - description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" - ) - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - milestone: Union[None, Milestone] = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - comments: int = Field() - pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - sub_issues_summary: Missing[SubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - -class SubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class AdvancedSecurityActiveCommitters(GitHubModel): + """AdvancedSecurityActiveCommitters""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + total_advanced_security_committers: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + maximum_advanced_security_committers: Missing[int] = Field( + default=UNSET, + description="The total number of GitHub Advanced Security licences required if all repositories were to enable GitHub Advanced Security", + ) + purchased_advanced_security_committers: Missing[int] = Field( + default=UNSET, + description="The total number of GitHub Advanced Security licences purchased", + ) + repositories: list[AdvancedSecurityActiveCommittersRepository] = Field() -class IssuePropLabelsItemsOneof1(GitHubModel): - """IssuePropLabelsItemsOneof1""" +class AdvancedSecurityActiveCommittersRepository(GitHubModel): + """AdvancedSecurityActiveCommittersRepository""" - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - default: Missing[bool] = Field(default=UNSET) + name: str = Field() + advanced_security_committers: int = Field() + advanced_security_committers_breakdown: list[ + AdvancedSecurityActiveCommittersUser + ] = Field() -class IssuePropPullRequest(GitHubModel): - """IssuePropPullRequest""" +class AdvancedSecurityActiveCommittersUser(GitHubModel): + """AdvancedSecurityActiveCommittersUser""" - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - diff_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - patch_url: Union[str, None] = Field() - url: Union[str, None] = Field() + user_login: str = Field() + last_pushed_date: str = Field() + last_pushed_email: str = Field() -model_rebuild(Issue) -model_rebuild(SubIssuesSummary) -model_rebuild(IssuePropLabelsItemsOneof1) -model_rebuild(IssuePropPullRequest) +model_rebuild(AdvancedSecurityActiveCommitters) +model_rebuild(AdvancedSecurityActiveCommittersRepository) +model_rebuild(AdvancedSecurityActiveCommittersUser) __all__ = ( - "Issue", - "IssuePropLabelsItemsOneof1", - "IssuePropPullRequest", - "SubIssuesSummary", + "AdvancedSecurityActiveCommitters", + "AdvancedSecurityActiveCommittersRepository", + "AdvancedSecurityActiveCommittersUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0132.py b/githubkit/versions/ghec_v2022_11_28/models/group_0132.py index 2b0460b83..085b1d2ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0132.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0132.py @@ -9,58 +9,42 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0130 import ReactionRollup +class GetAllCostCenters(GitHubModel): + """GetAllCostCenters""" -class IssueComment(GitHubModel): - """Issue Comment + cost_centers: Missing[list[GetAllCostCentersPropCostCentersItems]] = Field( + default=UNSET, alias="costCenters" + ) - Comments provide a way for people to collaborate on an issue. - """ - id: int = Field(description="Unique identifier of the issue comment") - node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" - ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - html_url: str = Field() - user: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - issue_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") +class GetAllCostCentersPropCostCentersItems(GitHubModel): + """GetAllCostCentersPropCostCentersItems""" + + id: str = Field(description="ID of the cost center.") + name: str = Field(description="Name of the cost center.") + resources: list[GetAllCostCentersPropCostCentersItemsPropResourcesItems] = Field() + + +class GetAllCostCentersPropCostCentersItemsPropResourcesItems(GitHubModel): + """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" + + type: str = Field(description="Type of the resource.") + name: str = Field(description="Name of the resource.") -model_rebuild(IssueComment) +model_rebuild(GetAllCostCenters) +model_rebuild(GetAllCostCentersPropCostCentersItems) +model_rebuild(GetAllCostCentersPropCostCentersItemsPropResourcesItems) -__all__ = ("IssueComment",) +__all__ = ( + "GetAllCostCenters", + "GetAllCostCentersPropCostCentersItems", + "GetAllCostCentersPropCostCentersItemsPropResourcesItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0133.py b/githubkit/versions/ghec_v2022_11_28/models/group_0133.py index 2a0d0ac66..b7be403af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0133.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0133.py @@ -9,95 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0131 import Issue -from .group_0132 import IssueComment -class EventPropPayload(GitHubModel): - """EventPropPayload""" +class PackagesBillingUsage(GitHubModel): + """PackagesBillingUsage""" - action: Missing[str] = Field(default=UNSET) - issue: Missing[Issue] = Field( - default=UNSET, - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + total_gigabytes_bandwidth_used: int = Field( + description="Sum of the free and paid storage space (GB) for GitHuub Packages." ) - comment: Missing[IssueComment] = Field( - default=UNSET, - title="Issue Comment", - description="Comments provide a way for people to collaborate on an issue.", + total_paid_gigabytes_bandwidth_used: int = Field( + description="Total paid storage space (GB) for GitHuub Packages." + ) + included_gigabytes_bandwidth: int = Field( + description="Free storage space (GB) for GitHub Packages." ) - pages: Missing[list[EventPropPayloadPropPagesItems]] = Field(default=UNSET) - - -class EventPropPayloadPropPagesItems(GitHubModel): - """EventPropPayloadPropPagesItems""" - - page_name: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - summary: Missing[Union[str, None]] = Field(default=UNSET) - action: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - - -class Event(GitHubModel): - """Event - - Event - """ - - id: str = Field() - type: Union[str, None] = Field() - actor: Actor = Field(title="Actor", description="Actor") - repo: EventPropRepo = Field() - org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") - payload: EventPropPayload = Field() - public: bool = Field() - created_at: Union[datetime, None] = Field() - - -class Actor(GitHubModel): - """Actor - - Actor - """ - - id: int = Field() - login: str = Field() - display_login: Missing[str] = Field(default=UNSET) - gravatar_id: Union[str, None] = Field() - url: str = Field() - avatar_url: str = Field() - - -class EventPropRepo(GitHubModel): - """EventPropRepo""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(EventPropPayload) -model_rebuild(EventPropPayloadPropPagesItems) -model_rebuild(Event) -model_rebuild(Actor) -model_rebuild(EventPropRepo) +model_rebuild(PackagesBillingUsage) -__all__ = ( - "Actor", - "Event", - "EventPropPayload", - "EventPropPayloadPropPagesItems", - "EventPropRepo", -) +__all__ = ("PackagesBillingUsage",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0134.py b/githubkit/versions/ghec_v2022_11_28/models/group_0134.py index a40a69c97..7f2b2b444 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0134.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0134.py @@ -12,83 +12,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class Feed(GitHubModel): - """Feed +class CombinedBillingUsage(GitHubModel): + """CombinedBillingUsage""" - Feed - """ - - timeline_url: str = Field() - user_url: str = Field() - current_user_public_url: Missing[str] = Field(default=UNSET) - current_user_url: Missing[str] = Field(default=UNSET) - current_user_actor_url: Missing[str] = Field(default=UNSET) - current_user_organization_url: Missing[str] = Field(default=UNSET) - current_user_organization_urls: Missing[list[str]] = Field(default=UNSET) - security_advisories_url: Missing[str] = Field(default=UNSET) - repository_discussions_url: Missing[str] = Field( - default=UNSET, description="A feed of discussions for a given repository." - ) - repository_discussions_category_url: Missing[str] = Field( - default=UNSET, - description="A feed of discussions for a given repository and category.", - ) - links: FeedPropLinks = Field(alias="_links") - - -class FeedPropLinks(GitHubModel): - """FeedPropLinks""" - - timeline: LinkWithType = Field( - title="Link With Type", description="Hypermedia Link with Type" - ) - user: LinkWithType = Field( - title="Link With Type", description="Hypermedia Link with Type" - ) - security_advisories: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + days_left_in_billing_cycle: int = Field( + description="Numbers of days left in billing cycle." ) - current_user: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + estimated_paid_storage_for_month: int = Field( + description="Estimated storage space (GB) used in billing cycle." ) - current_user_public: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + estimated_storage_for_month: int = Field( + description="Estimated sum of free and paid storage space (GB) used in billing cycle." ) - current_user_actor: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - current_user_organization: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - current_user_organizations: Missing[list[LinkWithType]] = Field(default=UNSET) - repository_discussions: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - repository_discussions_category: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - - -class LinkWithType(GitHubModel): - """Link With Type - - Hypermedia Link with Type - """ - - href: str = Field() - type: str = Field() -model_rebuild(Feed) -model_rebuild(FeedPropLinks) -model_rebuild(LinkWithType) +model_rebuild(CombinedBillingUsage) -__all__ = ( - "Feed", - "FeedPropLinks", - "LinkWithType", -) +__all__ = ("CombinedBillingUsage",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0135.py b/githubkit/versions/ghec_v2022_11_28/models/group_0135.py index 96d916fe9..856ee3686 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0135.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0135.py @@ -9,57 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser - - -class BaseGist(GitHubModel): - """Base Gist - Base Gist - """ +class BillingUsageReport(GitHubModel): + """BillingUsageReport""" - url: str = Field() - forks_url: str = Field() - commits_url: str = Field() - id: str = Field() - node_id: str = Field() - git_pull_url: str = Field() - git_push_url: str = Field() - html_url: str = Field() - files: BaseGistPropFiles = Field() - public: bool = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + usage_items: Missing[list[BillingUsageReportPropUsageItemsItems]] = Field( + default=UNSET, alias="usageItems" ) - truncated: Missing[bool] = Field(default=UNSET) - forks: Missing[list[Any]] = Field(default=UNSET) - history: Missing[list[Any]] = Field(default=UNSET) -class BaseGistPropFiles(ExtraGitHubModel): - """BaseGistPropFiles""" +class BillingUsageReportPropUsageItemsItems(GitHubModel): + """BillingUsageReportPropUsageItemsItems""" + + date: str = Field(description="Date of the usage line item.") + product: str = Field(description="Product name.") + sku: str = Field(description="SKU name.") + quantity: int = Field(description="Quantity of the usage line item.") + unit_type: str = Field( + alias="unitType", description="Unit type of the usage line item." + ) + price_per_unit: float = Field( + alias="pricePerUnit", description="Price per unit of the usage line item." + ) + gross_amount: float = Field( + alias="grossAmount", description="Gross amount of the usage line item." + ) + discount_amount: float = Field( + alias="discountAmount", description="Discount amount of the usage line item." + ) + net_amount: float = Field( + alias="netAmount", description="Net amount of the usage line item." + ) + organization_name: str = Field( + alias="organizationName", description="Name of the organization." + ) + repository_name: Missing[str] = Field( + default=UNSET, alias="repositoryName", description="Name of the repository." + ) -model_rebuild(BaseGist) -model_rebuild(BaseGistPropFiles) +model_rebuild(BillingUsageReport) +model_rebuild(BillingUsageReportPropUsageItemsItems) __all__ = ( - "BaseGist", - "BaseGistPropFiles", + "BillingUsageReport", + "BillingUsageReportPropUsageItemsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0136.py b/githubkit/versions/ghec_v2022_11_28/models/group_0136.py index d863ee760..5c7ac6985 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0136.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0136.py @@ -10,79 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser -class GistHistory(GitHubModel): - """Gist History +class Milestone(GitHubModel): + """Milestone - Gist History - """ - - user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - committed_at: Missing[datetime] = Field(default=UNSET) - change_status: Missing[GistHistoryPropChangeStatus] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class GistHistoryPropChangeStatus(GitHubModel): - """GistHistoryPropChangeStatus""" - - total: Missing[int] = Field(default=UNSET) - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) - - -class GistSimplePropForkOf(GitHubModel): - """Gist - - Gist + A collection of related issues and pull requests. """ url: str = Field() - forks_url: str = Field() - commits_url: str = Field() - id: str = Field() - node_id: str = Field() - git_pull_url: str = Field() - git_push_url: str = Field() html_url: str = Field() - files: GistSimplePropForkOfPropFiles = Field() - public: bool = Field() + labels_url: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + state: Literal["open", "closed"] = Field( + default="open", description="The state of the milestone." + ) + title: str = Field(description="The title of the milestone.") + description: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + open_issues: int = Field() + closed_issues: int = Field() created_at: datetime = Field() updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - truncated: Missing[bool] = Field(default=UNSET) - forks: Missing[list[Any]] = Field(default=UNSET) - history: Missing[list[Any]] = Field(default=UNSET) - - -class GistSimplePropForkOfPropFiles(ExtraGitHubModel): - """GistSimplePropForkOfPropFiles""" + closed_at: Union[datetime, None] = Field() + due_on: Union[datetime, None] = Field() -model_rebuild(GistHistory) -model_rebuild(GistHistoryPropChangeStatus) -model_rebuild(GistSimplePropForkOf) -model_rebuild(GistSimplePropForkOfPropFiles) +model_rebuild(Milestone) -__all__ = ( - "GistHistory", - "GistHistoryPropChangeStatus", - "GistSimplePropForkOf", - "GistSimplePropForkOfPropFiles", -) +__all__ = ("Milestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0137.py b/githubkit/versions/ghec_v2022_11_28/models/group_0137.py index 8a57fe909..fd85f1373 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0137.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0137.py @@ -9,136 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0136 import GistHistory, GistSimplePropForkOf - - -class GistSimple(GitHubModel): - """Gist Simple - - Gist Simple - """ - - forks: Missing[Union[list[GistSimplePropForksItems], None]] = Field(default=UNSET) - history: Missing[Union[list[GistHistory], None]] = Field(default=UNSET) - fork_of: Missing[Union[GistSimplePropForkOf, None]] = Field( - default=UNSET, title="Gist", description="Gist" - ) - url: Missing[str] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - git_pull_url: Missing[str] = Field(default=UNSET) - git_push_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - files: Missing[GistSimplePropFiles] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Missing[Union[str, None]] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - truncated: Missing[bool] = Field(default=UNSET) - - -class GistSimplePropFiles(ExtraGitHubModel): - """GistSimplePropFiles""" +from githubkit.compat import GitHubModel, model_rebuild -class GistSimplePropForksItems(GitHubModel): - """GistSimplePropForksItems""" +class ReactionRollup(GitHubModel): + """Reaction Rollup""" - id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[PublicUser] = Field( - default=UNSET, title="Public User", description="Public User" - ) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - - -class PublicUser(GitHubModel): - """Public User - - Public User - """ - - login: str = Field() - id: int = Field() - user_view_type: Missing[str] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - name: Union[str, None] = Field() - company: Union[str, None] = Field() - blog: Union[str, None] = Field() - location: Union[str, None] = Field() - email: Union[str, None] = Field() - notification_email: Missing[Union[str, None]] = Field(default=UNSET) - hireable: Union[bool, None] = Field() - bio: Union[str, None] = Field() - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - plan: Missing[PublicUserPropPlan] = Field(default=UNSET) - private_gists: Missing[int] = Field(default=UNSET) - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - disk_usage: Missing[int] = Field(default=UNSET) - collaborators: Missing[int] = Field(default=UNSET) - - -class PublicUserPropPlan(GitHubModel): - """PublicUserPropPlan""" - - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() + total_count: int = Field() + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + laugh: int = Field() + confused: int = Field() + heart: int = Field() + hooray: int = Field() + eyes: int = Field() + rocket: int = Field() -model_rebuild(GistSimple) -model_rebuild(GistSimplePropFiles) -model_rebuild(GistSimplePropForksItems) -model_rebuild(PublicUser) -model_rebuild(PublicUserPropPlan) +model_rebuild(ReactionRollup) -__all__ = ( - "GistSimple", - "GistSimplePropFiles", - "GistSimplePropForksItems", - "PublicUser", - "PublicUserPropPlan", -) +__all__ = ("ReactionRollup",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0138.py b/githubkit/versions/ghec_v2022_11_28/models/group_0138.py index 567155e3e..c9531435e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0138.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0138.py @@ -15,23 +15,67 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0020 import Repository +from .group_0136 import Milestone +from .group_0137 import ReactionRollup -class GistComment(GitHubModel): - """Gist Comment +class Issue(GitHubModel): + """Issue - A comment made to a gist. + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ id: int = Field() node_id: str = Field() - url: str = Field() - body: str = Field(max_length=65535, description="The comment text.") + url: str = Field(description="URL for the issue") + repository_url: str = Field() + labels_url: str = Field() + comments_url: str = Field() + events_url: str = Field() + html_url: str = Field() + number: int = Field( + description="Number uniquely identifying the issue within its repository" + ) + state: str = Field(description="State of the issue; either 'open' or 'closed'") + state_reason: Missing[ + Union[None, Literal["completed", "reopened", "not_planned"]] + ] = Field(default=UNSET, description="The reason for the current state") + title: str = Field(description="Title of the issue") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Contents of the issue" + ) user: Union[None, SimpleUser] = Field() + labels: list[Union[str, IssuePropLabelsItemsOneof1]] = Field( + description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" + ) + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + milestone: Union[None, Milestone] = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + comments: int = Field() + pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() created_at: datetime = Field() updated_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -45,8 +89,50 @@ class GistComment(GitHubModel): title="author_association", description="How the author is associated with the repository.", ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + + +class SubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class IssuePropLabelsItemsOneof1(GitHubModel): + """IssuePropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) + default: Missing[bool] = Field(default=UNSET) + + +class IssuePropPullRequest(GitHubModel): + """IssuePropPullRequest""" + + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() -model_rebuild(GistComment) +model_rebuild(Issue) +model_rebuild(SubIssuesSummary) +model_rebuild(IssuePropLabelsItemsOneof1) +model_rebuild(IssuePropPullRequest) -__all__ = ("GistComment",) +__all__ = ( + "Issue", + "IssuePropLabelsItemsOneof1", + "IssuePropPullRequest", + "SubIssuesSummary", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0139.py b/githubkit/versions/ghec_v2022_11_28/models/group_0139.py index 4ffb411e9..eccc82f3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0139.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0139.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,34 +18,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0137 import ReactionRollup -class GistCommit(GitHubModel): - """Gist Commit +class IssueComment(GitHubModel): + """Issue Comment - Gist Commit + Comments provide a way for people to collaborate on an issue. """ - url: str = Field() - version: str = Field() + id: int = Field(description="Unique identifier of the issue comment") + node_id: str = Field() + url: str = Field(description="URL for the issue comment") + body: Missing[str] = Field( + default=UNSET, description="Contents of the issue comment" + ) + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + html_url: str = Field() user: Union[None, SimpleUser] = Field() - change_status: GistCommitPropChangeStatus = Field() - committed_at: datetime = Field() - - -class GistCommitPropChangeStatus(GitHubModel): - """GistCommitPropChangeStatus""" - - total: Missing[int] = Field(default=UNSET) - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) - - -model_rebuild(GistCommit) -model_rebuild(GistCommitPropChangeStatus) - -__all__ = ( - "GistCommit", - "GistCommitPropChangeStatus", -) + created_at: datetime = Field() + updated_at: datetime = Field() + issue_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +model_rebuild(IssueComment) + +__all__ = ("IssueComment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0140.py b/githubkit/versions/ghec_v2022_11_28/models/group_0140.py index 68fca7a2b..7540403c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0140.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0140.py @@ -9,21 +9,95 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0138 import Issue +from .group_0139 import IssueComment + + +class EventPropPayload(GitHubModel): + """EventPropPayload""" + + action: Missing[str] = Field(default=UNSET) + issue: Missing[Issue] = Field( + default=UNSET, + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + comment: Missing[IssueComment] = Field( + default=UNSET, + title="Issue Comment", + description="Comments provide a way for people to collaborate on an issue.", + ) + pages: Missing[list[EventPropPayloadPropPagesItems]] = Field(default=UNSET) + + +class EventPropPayloadPropPagesItems(GitHubModel): + """EventPropPayloadPropPagesItems""" + + page_name: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + summary: Missing[Union[str, None]] = Field(default=UNSET) + action: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) -class GitignoreTemplate(GitHubModel): - """Gitignore Template +class Event(GitHubModel): + """Event - Gitignore Template + Event """ + id: str = Field() + type: Union[str, None] = Field() + actor: Actor = Field(title="Actor", description="Actor") + repo: EventPropRepo = Field() + org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") + payload: EventPropPayload = Field() + public: bool = Field() + created_at: Union[datetime, None] = Field() + + +class Actor(GitHubModel): + """Actor + + Actor + """ + + id: int = Field() + login: str = Field() + display_login: Missing[str] = Field(default=UNSET) + gravatar_id: Union[str, None] = Field() + url: str = Field() + avatar_url: str = Field() + + +class EventPropRepo(GitHubModel): + """EventPropRepo""" + + id: int = Field() name: str = Field() - source: str = Field() + url: str = Field() -model_rebuild(GitignoreTemplate) +model_rebuild(EventPropPayload) +model_rebuild(EventPropPayloadPropPagesItems) +model_rebuild(Event) +model_rebuild(Actor) +model_rebuild(EventPropRepo) -__all__ = ("GitignoreTemplate",) +__all__ = ( + "Actor", + "Event", + "EventPropPayload", + "EventPropPayloadPropPagesItems", + "EventPropRepo", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0141.py b/githubkit/versions/ghec_v2022_11_28/models/group_0141.py index 783d62fbc..a40a69c97 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0141.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0141.py @@ -9,34 +9,86 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class Feed(GitHubModel): + """Feed + + Feed + """ + + timeline_url: str = Field() + user_url: str = Field() + current_user_public_url: Missing[str] = Field(default=UNSET) + current_user_url: Missing[str] = Field(default=UNSET) + current_user_actor_url: Missing[str] = Field(default=UNSET) + current_user_organization_url: Missing[str] = Field(default=UNSET) + current_user_organization_urls: Missing[list[str]] = Field(default=UNSET) + security_advisories_url: Missing[str] = Field(default=UNSET) + repository_discussions_url: Missing[str] = Field( + default=UNSET, description="A feed of discussions for a given repository." + ) + repository_discussions_category_url: Missing[str] = Field( + default=UNSET, + description="A feed of discussions for a given repository and category.", + ) + links: FeedPropLinks = Field(alias="_links") + + +class FeedPropLinks(GitHubModel): + """FeedPropLinks""" + + timeline: LinkWithType = Field( + title="Link With Type", description="Hypermedia Link with Type" + ) + user: LinkWithType = Field( + title="Link With Type", description="Hypermedia Link with Type" + ) + security_advisories: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_public: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_actor: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_organization: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_organizations: Missing[list[LinkWithType]] = Field(default=UNSET) + repository_discussions: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + repository_discussions_category: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) -class License(GitHubModel): - """License +class LinkWithType(GitHubModel): + """Link With Type - License + Hypermedia Link with Type """ - key: str = Field() - name: str = Field() - spdx_id: Union[str, None] = Field() - url: Union[str, None] = Field() - node_id: str = Field() - html_url: str = Field() - description: str = Field() - implementation: str = Field() - permissions: list[str] = Field() - conditions: list[str] = Field() - limitations: list[str] = Field() - body: str = Field() - featured: bool = Field() + href: str = Field() + type: str = Field() -model_rebuild(License) +model_rebuild(Feed) +model_rebuild(FeedPropLinks) +model_rebuild(LinkWithType) -__all__ = ("License",) +__all__ = ( + "Feed", + "FeedPropLinks", + "LinkWithType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0142.py b/githubkit/versions/ghec_v2022_11_28/models/group_0142.py index f13661e40..f2be178a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0142.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0142.py @@ -9,34 +9,57 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Any, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class MarketplaceListingPlan(GitHubModel): - """Marketplace Listing Plan - Marketplace Listing Plan +class BaseGist(GitHubModel): + """Base Gist + + Base Gist """ url: str = Field() - accounts_url: str = Field() - id: int = Field() - number: int = Field() - name: str = Field() - description: str = Field() - monthly_price_in_cents: int = Field() - yearly_price_in_cents: int = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - has_free_trial: bool = Field() - unit_name: Union[str, None] = Field() - state: str = Field() - bullets: list[str] = Field() - - -model_rebuild(MarketplaceListingPlan) - -__all__ = ("MarketplaceListingPlan",) + forks_url: str = Field() + commits_url: str = Field() + id: str = Field() + node_id: str = Field() + git_pull_url: str = Field() + git_push_url: str = Field() + html_url: str = Field() + files: BaseGistPropFiles = Field() + public: bool = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + description: Union[str, None] = Field() + comments: int = Field() + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + comments_url: str = Field() + owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + truncated: Missing[bool] = Field(default=UNSET) + forks: Missing[list[Any]] = Field(default=UNSET) + history: Missing[list[Any]] = Field(default=UNSET) + + +class BaseGistPropFiles(ExtraGitHubModel): + """BaseGistPropFiles""" + + +model_rebuild(BaseGist) +model_rebuild(BaseGistPropFiles) + +__all__ = ( + "BaseGist", + "BaseGistPropFiles", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0143.py b/githubkit/versions/ghec_v2022_11_28/models/group_0143.py index 0267546e0..825cce14c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0143.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0143.py @@ -9,38 +9,80 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Any, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0144 import ( - MarketplacePurchasePropMarketplacePendingChange, - MarketplacePurchasePropMarketplacePurchase, -) +from .group_0003 import SimpleUser + + +class GistHistory(GitHubModel): + """Gist History + + Gist History + """ + + user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + committed_at: Missing[datetime] = Field(default=UNSET) + change_status: Missing[GistHistoryPropChangeStatus] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class MarketplacePurchase(GitHubModel): - """Marketplace Purchase +class GistHistoryPropChangeStatus(GitHubModel): + """GistHistoryPropChangeStatus""" - Marketplace Purchase + total: Missing[int] = Field(default=UNSET) + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) + + +class GistSimplePropForkOf(GitHubModel): + """Gist + + Gist """ url: str = Field() - type: str = Field() - id: int = Field() - login: str = Field() - organization_billing_email: Missing[str] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - marketplace_pending_change: Missing[ - Union[MarketplacePurchasePropMarketplacePendingChange, None] - ] = Field(default=UNSET) - marketplace_purchase: MarketplacePurchasePropMarketplacePurchase = Field() + forks_url: str = Field() + commits_url: str = Field() + id: str = Field() + node_id: str = Field() + git_pull_url: str = Field() + git_push_url: str = Field() + html_url: str = Field() + files: GistSimplePropForkOfPropFiles = Field() + public: bool = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + description: Union[str, None] = Field() + comments: int = Field() + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + comments_url: str = Field() + owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + truncated: Missing[bool] = Field(default=UNSET) + forks: Missing[list[Any]] = Field(default=UNSET) + history: Missing[list[Any]] = Field(default=UNSET) -model_rebuild(MarketplacePurchase) +class GistSimplePropForkOfPropFiles(ExtraGitHubModel): + """GistSimplePropForkOfPropFiles""" -__all__ = ("MarketplacePurchase",) + +model_rebuild(GistHistory) +model_rebuild(GistHistoryPropChangeStatus) +model_rebuild(GistSimplePropForkOf) +model_rebuild(GistSimplePropForkOfPropFiles) + +__all__ = ( + "GistHistory", + "GistHistoryPropChangeStatus", + "GistSimplePropForkOf", + "GistSimplePropForkOfPropFiles", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0144.py b/githubkit/versions/ghec_v2022_11_28/models/group_0144.py index d4bba6be6..acafeb4eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0144.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0144.py @@ -9,52 +9,136 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0142 import MarketplaceListingPlan +from .group_0003 import SimpleUser +from .group_0143 import GistHistory, GistSimplePropForkOf -class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): - """MarketplacePurchasePropMarketplacePendingChange""" +class GistSimple(GitHubModel): + """Gist Simple - is_installed: Missing[bool] = Field(default=UNSET) - effective_date: Missing[str] = Field(default=UNSET) - unit_count: Missing[Union[int, None]] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - plan: Missing[MarketplaceListingPlan] = Field( - default=UNSET, - title="Marketplace Listing Plan", - description="Marketplace Listing Plan", + Gist Simple + """ + + forks: Missing[Union[list[GistSimplePropForksItems], None]] = Field(default=UNSET) + history: Missing[Union[list[GistHistory], None]] = Field(default=UNSET) + fork_of: Missing[Union[GistSimplePropForkOf, None]] = Field( + default=UNSET, title="Gist", description="Gist" + ) + url: Missing[str] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + git_pull_url: Missing[str] = Field(default=UNSET) + git_push_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + files: Missing[GistSimplePropFiles] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Missing[Union[str, None]] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) + truncated: Missing[bool] = Field(default=UNSET) -class MarketplacePurchasePropMarketplacePurchase(GitHubModel): - """MarketplacePurchasePropMarketplacePurchase""" +class GistSimplePropFiles(ExtraGitHubModel): + """GistSimplePropFiles""" - billing_cycle: Missing[str] = Field(default=UNSET) - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - is_installed: Missing[bool] = Field(default=UNSET) - unit_count: Missing[Union[int, None]] = Field(default=UNSET) - on_free_trial: Missing[bool] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - plan: Missing[MarketplaceListingPlan] = Field( - default=UNSET, - title="Marketplace Listing Plan", - description="Marketplace Listing Plan", - ) +class GistSimplePropForksItems(GitHubModel): + """GistSimplePropForksItems""" -model_rebuild(MarketplacePurchasePropMarketplacePendingChange) -model_rebuild(MarketplacePurchasePropMarketplacePurchase) + id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[PublicUser] = Field( + default=UNSET, title="Public User", description="Public User" + ) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + + +class PublicUser(GitHubModel): + """Public User + + Public User + """ + + login: str = Field() + id: int = Field() + user_view_type: Missing[str] = Field(default=UNSET) + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + name: Union[str, None] = Field() + company: Union[str, None] = Field() + blog: Union[str, None] = Field() + location: Union[str, None] = Field() + email: Union[str, None] = Field() + notification_email: Missing[Union[str, None]] = Field(default=UNSET) + hireable: Union[bool, None] = Field() + bio: Union[str, None] = Field() + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + plan: Missing[PublicUserPropPlan] = Field(default=UNSET) + private_gists: Missing[int] = Field(default=UNSET) + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + disk_usage: Missing[int] = Field(default=UNSET) + collaborators: Missing[int] = Field(default=UNSET) + + +class PublicUserPropPlan(GitHubModel): + """PublicUserPropPlan""" + + collaborators: int = Field() + name: str = Field() + space: int = Field() + private_repos: int = Field() + + +model_rebuild(GistSimple) +model_rebuild(GistSimplePropFiles) +model_rebuild(GistSimplePropForksItems) +model_rebuild(PublicUser) +model_rebuild(PublicUserPropPlan) __all__ = ( - "MarketplacePurchasePropMarketplacePendingChange", - "MarketplacePurchasePropMarketplacePurchase", + "GistSimple", + "GistSimplePropFiles", + "GistSimplePropForksItems", + "PublicUser", + "PublicUserPropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0145.py b/githubkit/versions/ghec_v2022_11_28/models/group_0145.py index b8030b113..429704889 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0145.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0145.py @@ -9,89 +9,44 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ApiOverview(GitHubModel): - """Api Overview - - Api Overview - """ - - verifiable_password_authentication: bool = Field() - ssh_key_fingerprints: Missing[ApiOverviewPropSshKeyFingerprints] = Field( - default=UNSET - ) - ssh_keys: Missing[list[str]] = Field(default=UNSET) - hooks: Missing[list[str]] = Field(default=UNSET) - github_enterprise_importer: Missing[list[str]] = Field(default=UNSET) - web: Missing[list[str]] = Field(default=UNSET) - api: Missing[list[str]] = Field(default=UNSET) - git: Missing[list[str]] = Field(default=UNSET) - packages: Missing[list[str]] = Field(default=UNSET) - pages: Missing[list[str]] = Field(default=UNSET) - importer: Missing[list[str]] = Field(default=UNSET) - actions: Missing[list[str]] = Field(default=UNSET) - actions_macos: Missing[list[str]] = Field(default=UNSET) - codespaces: Missing[list[str]] = Field(default=UNSET) - dependabot: Missing[list[str]] = Field(default=UNSET) - copilot: Missing[list[str]] = Field(default=UNSET) - domains: Missing[ApiOverviewPropDomains] = Field(default=UNSET) - -class ApiOverviewPropSshKeyFingerprints(GitHubModel): - """ApiOverviewPropSshKeyFingerprints""" +from .group_0003 import SimpleUser - sha256_rsa: Missing[str] = Field(default=UNSET, alias="SHA256_RSA") - sha256_dsa: Missing[str] = Field(default=UNSET, alias="SHA256_DSA") - sha256_ecdsa: Missing[str] = Field(default=UNSET, alias="SHA256_ECDSA") - sha256_ed25519: Missing[str] = Field(default=UNSET, alias="SHA256_ED25519") +class GistComment(GitHubModel): + """Gist Comment -class ApiOverviewPropDomains(GitHubModel): - """ApiOverviewPropDomains""" + A comment made to a gist. + """ - website: Missing[list[str]] = Field(default=UNSET) - codespaces: Missing[list[str]] = Field(default=UNSET) - copilot: Missing[list[str]] = Field(default=UNSET) - packages: Missing[list[str]] = Field(default=UNSET) - actions: Missing[list[str]] = Field(default=UNSET) - actions_inbound: Missing[ApiOverviewPropDomainsPropActionsInbound] = Field( - default=UNSET - ) - artifact_attestations: Missing[ApiOverviewPropDomainsPropArtifactAttestations] = ( - Field(default=UNSET) + id: int = Field() + node_id: str = Field() + url: str = Field() + body: str = Field(max_length=65535, description="The comment text.") + user: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", ) -class ApiOverviewPropDomainsPropActionsInbound(GitHubModel): - """ApiOverviewPropDomainsPropActionsInbound""" - - full_domains: Missing[list[str]] = Field(default=UNSET) - wildcard_domains: Missing[list[str]] = Field(default=UNSET) - - -class ApiOverviewPropDomainsPropArtifactAttestations(GitHubModel): - """ApiOverviewPropDomainsPropArtifactAttestations""" - - trust_domain: Missing[str] = Field(default=UNSET) - services: Missing[list[str]] = Field(default=UNSET) - - -model_rebuild(ApiOverview) -model_rebuild(ApiOverviewPropSshKeyFingerprints) -model_rebuild(ApiOverviewPropDomains) -model_rebuild(ApiOverviewPropDomainsPropActionsInbound) -model_rebuild(ApiOverviewPropDomainsPropArtifactAttestations) +model_rebuild(GistComment) -__all__ = ( - "ApiOverview", - "ApiOverviewPropDomains", - "ApiOverviewPropDomainsPropActionsInbound", - "ApiOverviewPropDomainsPropArtifactAttestations", - "ApiOverviewPropSshKeyFingerprints", -) +__all__ = ("GistComment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0146.py b/githubkit/versions/ghec_v2022_11_28/models/group_0146.py index cac9d2948..d417526bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0146.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0146.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,100 +18,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class SecurityAndAnalysis(GitHubModel): - """SecurityAndAnalysis""" - - advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( - default=UNSET - ) - dependabot_security_updates: Missing[ - SecurityAndAnalysisPropDependabotSecurityUpdates - ] = Field( - default=UNSET, - description="Enable or disable Dependabot security updates for the repository.", - ) - secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( - default=UNSET - ) - secret_scanning_push_protection: Missing[ - SecurityAndAnalysisPropSecretScanningPushProtection - ] = Field(default=UNSET) - secret_scanning_non_provider_patterns: Missing[ - SecurityAndAnalysisPropSecretScanningNonProviderPatterns - ] = Field(default=UNSET) - secret_scanning_ai_detection: Missing[ - SecurityAndAnalysisPropSecretScanningAiDetection - ] = Field(default=UNSET) - secret_scanning_validity_checks: Missing[ - SecurityAndAnalysisPropSecretScanningValidityChecks - ] = Field(default=UNSET) - - -class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): - """SecurityAndAnalysisPropDependabotSecurityUpdates - - Enable or disable Dependabot security updates for the repository. - """ - - status: Missing[Literal["enabled", "disabled"]] = Field( - default=UNSET, - description="The enablement status of Dependabot security updates for the repository.", - ) - - -class SecurityAndAnalysisPropSecretScanning(GitHubModel): - """SecurityAndAnalysisPropSecretScanning""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) +from .group_0003 import SimpleUser -class SecurityAndAnalysisPropSecretScanningPushProtection(GitHubModel): - """SecurityAndAnalysisPropSecretScanningPushProtection""" +class GistCommit(GitHubModel): + """Gist Commit - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningNonProviderPatterns(GitHubModel): - """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningAiDetection(GitHubModel): - """SecurityAndAnalysisPropSecretScanningAiDetection""" + Gist Commit + """ - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + url: str = Field() + version: str = Field() + user: Union[None, SimpleUser] = Field() + change_status: GistCommitPropChangeStatus = Field() + committed_at: datetime = Field() -class SecurityAndAnalysisPropSecretScanningValidityChecks(GitHubModel): - """SecurityAndAnalysisPropSecretScanningValidityChecks""" +class GistCommitPropChangeStatus(GitHubModel): + """GistCommitPropChangeStatus""" - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + total: Missing[int] = Field(default=UNSET) + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) -model_rebuild(SecurityAndAnalysis) -model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) -model_rebuild(SecurityAndAnalysisPropSecretScanning) -model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) -model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) -model_rebuild(SecurityAndAnalysisPropSecretScanningAiDetection) -model_rebuild(SecurityAndAnalysisPropSecretScanningValidityChecks) +model_rebuild(GistCommit) +model_rebuild(GistCommitPropChangeStatus) __all__ = ( - "SecurityAndAnalysis", - "SecurityAndAnalysisPropAdvancedSecurity", - "SecurityAndAnalysisPropDependabotSecurityUpdates", - "SecurityAndAnalysisPropSecretScanning", - "SecurityAndAnalysisPropSecretScanningAiDetection", - "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "SecurityAndAnalysisPropSecretScanningPushProtection", - "SecurityAndAnalysisPropSecretScanningValidityChecks", + "GistCommit", + "GistCommitPropChangeStatus", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0147.py b/githubkit/versions/ghec_v2022_11_28/models/group_0147.py index adc16b6c9..68fca7a2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0147.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0147.py @@ -9,164 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0146 import SecurityAndAnalysis - - -class MinimalRepository(GitHubModel): - """Minimal Repository - - Minimal Repository - """ - - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: str = Field() - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field( - default=UNSET, - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", - ) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[Union[datetime, None]] = Field(default=UNSET) - created_at: Missing[Union[datetime, None]] = Field(default=UNSET) - updated_at: Missing[Union[datetime, None]] = Field(default=UNSET) - permissions: Missing[MinimalRepositoryPropPermissions] = Field(default=UNSET) - role_name: Missing[str] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - code_of_conduct: Missing[CodeOfConduct] = Field( - default=UNSET, title="Code Of Conduct", description="Code Of Conduct" - ) - license_: Missing[Union[MinimalRepositoryPropLicense, None]] = Field( - default=UNSET, alias="license" - ) - forks: Missing[int] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET - ) -class CodeOfConduct(GitHubModel): - """Code Of Conduct +class GitignoreTemplate(GitHubModel): + """Gitignore Template - Code Of Conduct + Gitignore Template """ - key: str = Field() name: str = Field() - url: str = Field() - body: Missing[str] = Field(default=UNSET) - html_url: Union[str, None] = Field() - - -class MinimalRepositoryPropPermissions(GitHubModel): - """MinimalRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) - - -class MinimalRepositoryPropLicense(GitHubModel): - """MinimalRepositoryPropLicense""" - - key: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - spdx_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) + source: str = Field() -model_rebuild(MinimalRepository) -model_rebuild(CodeOfConduct) -model_rebuild(MinimalRepositoryPropPermissions) -model_rebuild(MinimalRepositoryPropLicense) +model_rebuild(GitignoreTemplate) -__all__ = ( - "CodeOfConduct", - "MinimalRepository", - "MinimalRepositoryPropLicense", - "MinimalRepositoryPropPermissions", -) +__all__ = ("GitignoreTemplate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0148.py b/githubkit/versions/ghec_v2022_11_28/models/group_0148.py index 8bc224d8a..783d62fbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0148.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0148.py @@ -15,41 +15,28 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0147 import MinimalRepository +class License(GitHubModel): + """License -class Thread(GitHubModel): - """Thread - - Thread + License """ - id: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - subject: ThreadPropSubject = Field() - reason: str = Field() - unread: bool = Field() - updated_at: str = Field() - last_read_at: Union[str, None] = Field() - url: str = Field() - subscription_url: str = Field() - - -class ThreadPropSubject(GitHubModel): - """ThreadPropSubject""" - - title: str = Field() - url: str = Field() - latest_comment_url: str = Field() - type: str = Field() + key: str = Field() + name: str = Field() + spdx_id: Union[str, None] = Field() + url: Union[str, None] = Field() + node_id: str = Field() + html_url: str = Field() + description: str = Field() + implementation: str = Field() + permissions: list[str] = Field() + conditions: list[str] = Field() + limitations: list[str] = Field() + body: str = Field() + featured: bool = Field() -model_rebuild(Thread) -model_rebuild(ThreadPropSubject) +model_rebuild(License) -__all__ = ( - "Thread", - "ThreadPropSubject", -) +__all__ = ("License",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0149.py b/githubkit/versions/ghec_v2022_11_28/models/group_0149.py index 3f78547c4..f13661e40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0149.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0149.py @@ -9,31 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ThreadSubscription(GitHubModel): - """Thread Subscription +class MarketplaceListingPlan(GitHubModel): + """Marketplace Listing Plan - Thread Subscription + Marketplace Listing Plan """ - subscribed: bool = Field() - ignored: bool = Field() - reason: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() url: str = Field() - thread_url: Missing[str] = Field(default=UNSET) - repository_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ThreadSubscription) - -__all__ = ("ThreadSubscription",) + accounts_url: str = Field() + id: int = Field() + number: int = Field() + name: str = Field() + description: str = Field() + monthly_price_in_cents: int = Field() + yearly_price_in_cents: int = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + has_free_trial: bool = Field() + unit_name: Union[str, None] = Field() + state: str = Field() + bullets: list[str] = Field() + + +model_rebuild(MarketplaceListingPlan) + +__all__ = ("MarketplaceListingPlan",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0150.py b/githubkit/versions/ghec_v2022_11_28/models/group_0150.py index f68dce6a0..f2f800a1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0150.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0150.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,32 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0151 import ( + MarketplacePurchasePropMarketplacePendingChange, + MarketplacePurchasePropMarketplacePurchase, +) -class OrganizationCustomRepositoryRole(GitHubModel): - """Organization Custom Repository Role +class MarketplacePurchase(GitHubModel): + """Marketplace Purchase - Custom repository roles created by organization owners + Marketplace Purchase """ - id: int = Field(description="The unique identifier of the custom role.") - name: str = Field(description="The name of the custom role.") - description: Missing[Union[str, None]] = Field( - default=UNSET, - description="A short description about who this role is for or what permissions it grants.", - ) - base_role: Literal["read", "triage", "write", "maintain"] = Field( - description="The system role from which this role inherits permissions." - ) - permissions: list[str] = Field( - description="A list of additional permissions included in this role." - ) - organization: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: datetime = Field() - updated_at: datetime = Field() - - -model_rebuild(OrganizationCustomRepositoryRole) - -__all__ = ("OrganizationCustomRepositoryRole",) + url: str = Field() + type: str = Field() + id: int = Field() + login: str = Field() + organization_billing_email: Missing[str] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + marketplace_pending_change: Missing[ + Union[MarketplacePurchasePropMarketplacePendingChange, None] + ] = Field(default=UNSET) + marketplace_purchase: MarketplacePurchasePropMarketplacePurchase = Field() + + +model_rebuild(MarketplacePurchase) + +__all__ = ("MarketplacePurchase",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0151.py b/githubkit/versions/ghec_v2022_11_28/models/group_0151.py index ac65c20d8..0b433dfb4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0151.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0151.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,131 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0149 import MarketplaceListingPlan -class OrganizationFull(GitHubModel): - """Organization Full - - Prevents users in the organization from using insecure methods of two-factor - authentication to fulfill a two-factor requirement. - Removes non-compliant outside collaborators from the organization and its - repositories. - - GitHub currently defines SMS as an insecure method of two-factor authentication. - - If your users are managed by the enterprise this policy will not affect them. - The first admin account of the enterprise will still be affected. - """ - - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - blog: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - is_verified: Missing[bool] = Field(default=UNSET) - has_organization_projects: bool = Field() - has_repository_projects: bool = Field() - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - html_url: str = Field() - type: str = Field() - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - private_gists: Missing[Union[int, None]] = Field(default=UNSET) - disk_usage: Missing[Union[int, None]] = Field(default=UNSET) - collaborators: Missing[Union[int, None]] = Field( - default=UNSET, - description="The number of collaborators on private repositories.\n\nThis field may be null if the number of private repositories is over 50,000.", - ) - billing_email: Missing[Union[str, None]] = Field(default=UNSET) - plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) - default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( - default=UNSET - ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", - ) - secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional URL string to display to contributors who are blocked from pushing a secret.", - ) - secret_scanning_validity_checks_enabled: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", - ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() - deploy_keys_enabled_for_repositories: Missing[bool] = Field( + +class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): + """MarketplacePurchasePropMarketplacePendingChange""" + + is_installed: Missing[bool] = Field(default=UNSET) + effective_date: Missing[str] = Field(default=UNSET) + unit_count: Missing[Union[int, None]] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + plan: Missing[MarketplaceListingPlan] = Field( default=UNSET, - description="Controls whether or not deploy keys may be added and used for repositories in the organization.", + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", ) -class OrganizationFullPropPlan(GitHubModel): - """OrganizationFullPropPlan""" +class MarketplacePurchasePropMarketplacePurchase(GitHubModel): + """MarketplacePurchasePropMarketplacePurchase""" - name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) + billing_cycle: Missing[str] = Field(default=UNSET) + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + is_installed: Missing[bool] = Field(default=UNSET) + unit_count: Missing[Union[int, None]] = Field(default=UNSET) + on_free_trial: Missing[bool] = Field(default=UNSET) + free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + plan: Missing[MarketplaceListingPlan] = Field( + default=UNSET, + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", + ) -model_rebuild(OrganizationFull) -model_rebuild(OrganizationFullPropPlan) +model_rebuild(MarketplacePurchasePropMarketplacePendingChange) +model_rebuild(MarketplacePurchasePropMarketplacePurchase) __all__ = ( - "OrganizationFull", - "OrganizationFullPropPlan", + "MarketplacePurchasePropMarketplacePendingChange", + "MarketplacePurchasePropMarketplacePurchase", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0152.py b/githubkit/versions/ghec_v2022_11_28/models/group_0152.py index e3255a143..b8030b113 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0152.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0152.py @@ -12,19 +12,86 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OidcCustomSub(GitHubModel): - """Actions OIDC Subject customization +class ApiOverview(GitHubModel): + """Api Overview - Actions OIDC Subject customization + Api Overview """ - include_claim_keys: list[str] = Field( - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." + verifiable_password_authentication: bool = Field() + ssh_key_fingerprints: Missing[ApiOverviewPropSshKeyFingerprints] = Field( + default=UNSET ) + ssh_keys: Missing[list[str]] = Field(default=UNSET) + hooks: Missing[list[str]] = Field(default=UNSET) + github_enterprise_importer: Missing[list[str]] = Field(default=UNSET) + web: Missing[list[str]] = Field(default=UNSET) + api: Missing[list[str]] = Field(default=UNSET) + git: Missing[list[str]] = Field(default=UNSET) + packages: Missing[list[str]] = Field(default=UNSET) + pages: Missing[list[str]] = Field(default=UNSET) + importer: Missing[list[str]] = Field(default=UNSET) + actions: Missing[list[str]] = Field(default=UNSET) + actions_macos: Missing[list[str]] = Field(default=UNSET) + codespaces: Missing[list[str]] = Field(default=UNSET) + dependabot: Missing[list[str]] = Field(default=UNSET) + copilot: Missing[list[str]] = Field(default=UNSET) + domains: Missing[ApiOverviewPropDomains] = Field(default=UNSET) -model_rebuild(OidcCustomSub) +class ApiOverviewPropSshKeyFingerprints(GitHubModel): + """ApiOverviewPropSshKeyFingerprints""" -__all__ = ("OidcCustomSub",) + sha256_rsa: Missing[str] = Field(default=UNSET, alias="SHA256_RSA") + sha256_dsa: Missing[str] = Field(default=UNSET, alias="SHA256_DSA") + sha256_ecdsa: Missing[str] = Field(default=UNSET, alias="SHA256_ECDSA") + sha256_ed25519: Missing[str] = Field(default=UNSET, alias="SHA256_ED25519") + + +class ApiOverviewPropDomains(GitHubModel): + """ApiOverviewPropDomains""" + + website: Missing[list[str]] = Field(default=UNSET) + codespaces: Missing[list[str]] = Field(default=UNSET) + copilot: Missing[list[str]] = Field(default=UNSET) + packages: Missing[list[str]] = Field(default=UNSET) + actions: Missing[list[str]] = Field(default=UNSET) + actions_inbound: Missing[ApiOverviewPropDomainsPropActionsInbound] = Field( + default=UNSET + ) + artifact_attestations: Missing[ApiOverviewPropDomainsPropArtifactAttestations] = ( + Field(default=UNSET) + ) + + +class ApiOverviewPropDomainsPropActionsInbound(GitHubModel): + """ApiOverviewPropDomainsPropActionsInbound""" + + full_domains: Missing[list[str]] = Field(default=UNSET) + wildcard_domains: Missing[list[str]] = Field(default=UNSET) + + +class ApiOverviewPropDomainsPropArtifactAttestations(GitHubModel): + """ApiOverviewPropDomainsPropArtifactAttestations""" + + trust_domain: Missing[str] = Field(default=UNSET) + services: Missing[list[str]] = Field(default=UNSET) + + +model_rebuild(ApiOverview) +model_rebuild(ApiOverviewPropSshKeyFingerprints) +model_rebuild(ApiOverviewPropDomains) +model_rebuild(ApiOverviewPropDomainsPropActionsInbound) +model_rebuild(ApiOverviewPropDomainsPropArtifactAttestations) + +__all__ = ( + "ApiOverview", + "ApiOverviewPropDomains", + "ApiOverviewPropDomainsPropActionsInbound", + "ApiOverviewPropDomainsPropArtifactAttestations", + "ApiOverviewPropSshKeyFingerprints", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0153.py b/githubkit/versions/ghec_v2022_11_28/models/group_0153.py index 3efa01ac1..cac9d2948 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0153.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0153.py @@ -18,26 +18,99 @@ from githubkit.utils import UNSET -class ActionsOrganizationPermissions(GitHubModel): - """ActionsOrganizationPermissions""" +class SecurityAndAnalysis(GitHubModel): + """SecurityAndAnalysis""" - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." + advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( + default=UNSET ) - selected_repositories_url: Missing[str] = Field( + dependabot_security_updates: Missing[ + SecurityAndAnalysisPropDependabotSecurityUpdates + ] = Field( default=UNSET, - description="The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`.", + description="Enable or disable Dependabot security updates for 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.", + secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( + default=UNSET ) - selected_actions_url: Missing[str] = Field( + secret_scanning_push_protection: Missing[ + SecurityAndAnalysisPropSecretScanningPushProtection + ] = Field(default=UNSET) + secret_scanning_non_provider_patterns: Missing[ + SecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field(default=UNSET) + secret_scanning_ai_detection: Missing[ + SecurityAndAnalysisPropSecretScanningAiDetection + ] = Field(default=UNSET) + secret_scanning_validity_checks: Missing[ + SecurityAndAnalysisPropSecretScanningValidityChecks + ] = Field(default=UNSET) + + +class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """SecurityAndAnalysisPropAdvancedSecurity""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. + """ + + status: Missing[Literal["enabled", "disabled"]] = Field( default=UNSET, - description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", + description="The enablement status of Dependabot security updates for the repository.", ) -model_rebuild(ActionsOrganizationPermissions) +class SecurityAndAnalysisPropSecretScanning(GitHubModel): + """SecurityAndAnalysisPropSecretScanning""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningPushProtection(GitHubModel): + """SecurityAndAnalysisPropSecretScanningPushProtection""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningNonProviderPatterns(GitHubModel): + """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningAiDetection(GitHubModel): + """SecurityAndAnalysisPropSecretScanningAiDetection""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningValidityChecks(GitHubModel): + """SecurityAndAnalysisPropSecretScanningValidityChecks""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +model_rebuild(SecurityAndAnalysis) +model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) +model_rebuild(SecurityAndAnalysisPropSecretScanning) +model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) +model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) +model_rebuild(SecurityAndAnalysisPropSecretScanningAiDetection) +model_rebuild(SecurityAndAnalysisPropSecretScanningValidityChecks) -__all__ = ("ActionsOrganizationPermissions",) +__all__ = ( + "SecurityAndAnalysis", + "SecurityAndAnalysisPropAdvancedSecurity", + "SecurityAndAnalysisPropDependabotSecurityUpdates", + "SecurityAndAnalysisPropSecretScanning", + "SecurityAndAnalysisPropSecretScanningAiDetection", + "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "SecurityAndAnalysisPropSecretScanningPushProtection", + "SecurityAndAnalysisPropSecretScanningValidityChecks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0154.py b/githubkit/versions/ghec_v2022_11_28/models/group_0154.py index 9d8938959..0ca7bd5f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0154.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0154.py @@ -9,27 +9,164 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0153 import SecurityAndAnalysis + + +class MinimalRepository(GitHubModel): + """Minimal Repository + + Minimal Repository + """ + + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: Missing[str] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: str = Field() + svn_url: Missing[str] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + size: Missing[int] = Field( + default=UNSET, + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", + ) + default_branch: Missing[str] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_discussions: Missing[bool] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + pushed_at: Missing[Union[datetime, None]] = Field(default=UNSET) + created_at: Missing[Union[datetime, None]] = Field(default=UNSET) + updated_at: Missing[Union[datetime, None]] = Field(default=UNSET) + permissions: Missing[MinimalRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + code_of_conduct: Missing[CodeOfConduct] = Field( + default=UNSET, title="Code Of Conduct", description="Code Of Conduct" + ) + license_: Missing[Union[MinimalRepositoryPropLicense, None]] = Field( + default=UNSET, alias="license" + ) + forks: Missing[int] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET + ) + -class ActionsPublicKey(GitHubModel): - """ActionsPublicKey +class CodeOfConduct(GitHubModel): + """Code Of Conduct - The public key used for setting Actions Secrets. + Code Of Conduct """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - id: Missing[int] = Field(default=UNSET) + key: str = Field() + name: str = Field() + url: str = Field() + body: Missing[str] = Field(default=UNSET) + html_url: Union[str, None] = Field() + + +class MinimalRepositoryPropPermissions(GitHubModel): + """MinimalRepositoryPropPermissions""" + + admin: Missing[bool] = Field(default=UNSET) + maintain: Missing[bool] = Field(default=UNSET) + push: Missing[bool] = Field(default=UNSET) + triage: Missing[bool] = Field(default=UNSET) + pull: Missing[bool] = Field(default=UNSET) + + +class MinimalRepositoryPropLicense(GitHubModel): + """MinimalRepositoryPropLicense""" + + key: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + spdx_id: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) -model_rebuild(ActionsPublicKey) +model_rebuild(MinimalRepository) +model_rebuild(CodeOfConduct) +model_rebuild(MinimalRepositoryPropPermissions) +model_rebuild(MinimalRepositoryPropLicense) -__all__ = ("ActionsPublicKey",) +__all__ = ( + "CodeOfConduct", + "MinimalRepository", + "MinimalRepositoryPropLicense", + "MinimalRepositoryPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0155.py b/githubkit/versions/ghec_v2022_11_28/models/group_0155.py index b35d7ed71..7abb24c28 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0155.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0155.py @@ -9,193 +9,47 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0154 import MinimalRepository -class PushRuleBypassRequest(GitHubModel): - """Push rule bypass request - A bypass request made by a user asking to be exempted from a push rule in this - repository. - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the bypass request." - ) - number: Missing[int] = Field( - default=UNSET, - description="The number uniquely identifying the bypass request within its repository.", - ) - repository: Missing[PushRuleBypassRequestPropRepository] = Field( - default=UNSET, description="The repository the bypass request is for." - ) - organization: Missing[PushRuleBypassRequestPropOrganization] = Field( - default=UNSET, - description="The organization associated with the repository the bypass request is for.", - ) - requester: Missing[PushRuleBypassRequestPropRequester] = Field( - default=UNSET, description="The user who requested the bypass." - ) - request_type: Missing[str] = Field( - default=UNSET, description="The type of request." - ) - data: Missing[Union[list[PushRuleBypassRequestPropDataItems], None]] = Field( - default=UNSET, - description="Data describing the push rules that are being requested to be bypassed.", - ) - resource_identifier: Missing[str] = Field( - default=UNSET, - description="The unique identifier for the request type of the bypass request. For example, a commit SHA.", - ) - status: Missing[ - Literal[ - "pending", "denied", "approved", "cancelled", "completed", "expired", "open" - ] - ] = Field(default=UNSET, description="The status of the bypass request.") - requester_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment the requester provided when creating the bypass request.", - ) - expires_at: Missing[datetime] = Field( - default=UNSET, description="The date and time the bypass request will expire." - ) - created_at: Missing[datetime] = Field( - default=UNSET, description="The date and time the bypass request was created." - ) - responses: Missing[Union[list[BypassResponse], None]] = Field( - default=UNSET, description="The responses to the bypass request." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field( - default=UNSET, description="The URL to view the bypass request in a browser." - ) - - -class PushRuleBypassRequestPropRepository(GitHubModel): - """PushRuleBypassRequestPropRepository - - The repository the bypass request is for. - """ - - id: Missing[int] = Field( - default=UNSET, description="The ID of the repository the bypass request is for." - ) - name: Missing[str] = Field( - default=UNSET, - description="The name of the repository the bypass request is for.", - ) - full_name: Missing[str] = Field( - default=UNSET, - description="The full name of the repository the bypass request is for.", - ) - - -class PushRuleBypassRequestPropOrganization(GitHubModel): - """PushRuleBypassRequestPropOrganization - - The organization associated with the repository the bypass request is for. - """ - - id: Missing[int] = Field(default=UNSET, description="The ID of the organization.") - name: Missing[str] = Field( - default=UNSET, description="The name of the organization." - ) - - -class PushRuleBypassRequestPropRequester(GitHubModel): - """PushRuleBypassRequestPropRequester - - The user who requested the bypass. - """ - - actor_id: Missing[int] = Field( - default=UNSET, description="The ID of the GitHub user who requested the bypass." - ) - actor_name: Missing[str] = Field( - default=UNSET, - description="The name of the GitHub user who requested the bypass.", - ) - - -class PushRuleBypassRequestPropDataItems(GitHubModel): - """PushRuleBypassRequestPropDataItems""" - - ruleset_id: Missing[int] = Field( - default=UNSET, - description="The ID of the ruleset for the rules that were violated.", - ) - ruleset_name: Missing[str] = Field( - default=UNSET, - description="The name of the ruleset for the rules that were violated.", - ) - total_violations: Missing[int] = Field( - default=UNSET, - description="The number of rule violations generated from the push associated with this request.", - ) - rule_type: Missing[str] = Field( - default=UNSET, description="The type of rule that was violated." - ) +class Thread(GitHubModel): + """Thread - -class BypassResponse(GitHubModel): - """Bypass response - - A response made by a delegated bypasser to a bypass request. + Thread """ - id: Missing[int] = Field( - default=UNSET, description="The ID of the response to the bypass request." - ) - reviewer: Missing[BypassResponsePropReviewer] = Field( - default=UNSET, description="The user who reviewed the bypass request." + id: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - status: Missing[Literal["approved", "denied", "dismissed"]] = Field( - default=UNSET, - description="The response status to the bypass request until dismissed.", - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the response to the bypass request was created.", - ) - + subject: ThreadPropSubject = Field() + reason: str = Field() + unread: bool = Field() + updated_at: str = Field() + last_read_at: Union[str, None] = Field() + url: str = Field() + subscription_url: str = Field() -class BypassResponsePropReviewer(GitHubModel): - """BypassResponsePropReviewer - The user who reviewed the bypass request. - """ +class ThreadPropSubject(GitHubModel): + """ThreadPropSubject""" - actor_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub user who reviewed the bypass request.", - ) - actor_name: Missing[str] = Field( - default=UNSET, - description="The name of the GitHub user who reviewed the bypass request.", - ) + title: str = Field() + url: str = Field() + latest_comment_url: str = Field() + type: str = Field() -model_rebuild(PushRuleBypassRequest) -model_rebuild(PushRuleBypassRequestPropRepository) -model_rebuild(PushRuleBypassRequestPropOrganization) -model_rebuild(PushRuleBypassRequestPropRequester) -model_rebuild(PushRuleBypassRequestPropDataItems) -model_rebuild(BypassResponse) -model_rebuild(BypassResponsePropReviewer) +model_rebuild(Thread) +model_rebuild(ThreadPropSubject) __all__ = ( - "BypassResponse", - "BypassResponsePropReviewer", - "PushRuleBypassRequest", - "PushRuleBypassRequestPropDataItems", - "PushRuleBypassRequestPropOrganization", - "PushRuleBypassRequestPropRepository", - "PushRuleBypassRequestPropRequester", + "Thread", + "ThreadPropSubject", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0156.py b/githubkit/versions/ghec_v2022_11_28/models/group_0156.py index db250979c..3f78547c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0156.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0156.py @@ -9,36 +9,31 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodespaceMachine(GitHubModel): - """Codespace machine +class ThreadSubscription(GitHubModel): + """Thread Subscription - A description of the machine powering a codespace. + Thread Subscription """ - name: str = Field(description="The name of the machine.") - display_name: str = Field( - description="The display name of the machine includes cores, memory, and storage." - ) - operating_system: str = Field(description="The operating system of the machine.") - storage_in_bytes: int = Field( - description="How much storage is available to the codespace." - ) - memory_in_bytes: int = Field( - description="How much memory is available to the codespace." - ) - cpus: int = Field(description="How many cores are available to the codespace.") - prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field( - description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' - ) - - -model_rebuild(CodespaceMachine) - -__all__ = ("CodespaceMachine",) + subscribed: bool = Field() + ignored: bool = Field() + reason: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + url: str = Field() + thread_url: Missing[str] = Field(default=UNSET) + repository_url: Missing[str] = Field(default=UNSET) + + +model_rebuild(ThreadSubscription) + +__all__ = ("ThreadSubscription",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0157.py b/githubkit/versions/ghec_v2022_11_28/models/group_0157.py index 3a24a1273..15376e3fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0157.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0157.py @@ -18,157 +18,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0147 import MinimalRepository -from .group_0156 import CodespaceMachine +from .group_0003 import SimpleUser -class Codespace(GitHubModel): - """Codespace +class OrganizationCustomRepositoryRole(GitHubModel): + """Organization Custom Repository Role - A codespace. + Custom repository roles created by organization owners """ - id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( + id: int = Field(description="The unique identifier of the custom role.") + name: str = Field(description="The name of the custom role.") + description: Missing[Union[str, None]] = Field( default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", + description="A short description about who this role is for or what permissions it grants.", + ) + base_role: Literal["read", "triage", "write", "maintain"] = Field( + description="The system role from which this role inherits permissions." ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." + permissions: list[str] = Field( + description="A list of additional permissions included in this role." ) + organization: SimpleUser = Field(title="Simple User", description="A GitHub user.") created_at: datetime = Field() updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespacePropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." - ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." - ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." - ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="API URL to publish this codespace to a new repository.", - ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: list[str] = Field() - runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", - ) - idle_timeout_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", - ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - retention_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', - ) - last_known_stop_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="The text to display to a user when a codespace has been stopped for a potentially actionable reason.", - ) - - -class CodespacePropGitStatus(GitHubModel): - """CodespacePropGitStatus - - Details about the codespace's git repository. - """ - - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", - ) - - -class CodespacePropRuntimeConstraints(GitHubModel): - """CodespacePropRuntimeConstraints""" - - allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="The privacy settings a user can select from when forwarding a port.", - ) -model_rebuild(Codespace) -model_rebuild(CodespacePropGitStatus) -model_rebuild(CodespacePropRuntimeConstraints) +model_rebuild(OrganizationCustomRepositoryRole) -__all__ = ( - "Codespace", - "CodespacePropGitStatus", - "CodespacePropRuntimeConstraints", -) +__all__ = ("OrganizationCustomRepositoryRole",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0158.py b/githubkit/versions/ghec_v2022_11_28/models/group_0158.py index 1a40b558a..ac65c20d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0158.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0158.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,20 +19,130 @@ from githubkit.utils import UNSET -class CodespacesPublicKey(GitHubModel): - """CodespacesPublicKey +class OrganizationFull(GitHubModel): + """Organization Full + + Prevents users in the organization from using insecure methods of two-factor + authentication to fulfill a two-factor requirement. + Removes non-compliant outside collaborators from the organization and its + repositories. + + GitHub currently defines SMS as an insecure method of two-factor authentication. - The public key used for setting Codespaces secrets. + If your users are managed by the enterprise this policy will not affect them. + The first admin account of the enterprise will still be affected. """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - id: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + blog: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + is_verified: Missing[bool] = Field(default=UNSET) + has_organization_projects: bool = Field() + has_repository_projects: bool = Field() + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + html_url: str = Field() + type: str = Field() + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + private_gists: Missing[Union[int, None]] = Field(default=UNSET) + disk_usage: Missing[Union[int, None]] = Field(default=UNSET) + collaborators: Missing[Union[int, None]] = Field( + default=UNSET, + description="The number of collaborators on private repositories.\n\nThis field may be null if the number of private repositories is over 50,000.", + ) + billing_email: Missing[Union[str, None]] = Field(default=UNSET) + plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) + default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET + ) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", + ) + secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional URL string to display to contributors who are blocked from pushing a secret.", + ) + secret_scanning_validity_checks_enabled: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", + ) + created_at: datetime = Field() + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() + deploy_keys_enabled_for_repositories: Missing[bool] = Field( + default=UNSET, + description="Controls whether or not deploy keys may be added and used for repositories in the organization.", + ) + + +class OrganizationFullPropPlan(GitHubModel): + """OrganizationFullPropPlan""" + + name: str = Field() + space: int = Field() + private_repos: int = Field() + filled_seats: Missing[int] = Field(default=UNSET) + seats: Missing[int] = Field(default=UNSET) -model_rebuild(CodespacesPublicKey) +model_rebuild(OrganizationFull) +model_rebuild(OrganizationFullPropPlan) -__all__ = ("CodespacesPublicKey",) +__all__ = ( + "OrganizationFull", + "OrganizationFullPropPlan", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0159.py b/githubkit/versions/ghec_v2022_11_28/models/group_0159.py index 063a394c8..e3255a143 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0159.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0159.py @@ -9,87 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class CopilotOrganizationDetails(ExtraGitHubModel): - """Copilot Organization Details +class OidcCustomSub(GitHubModel): + """Actions OIDC Subject customization - Information about the seat breakdown and policies set for an organization with a - Copilot Business or Copilot Enterprise subscription. + Actions OIDC Subject customization """ - seat_breakdown: CopilotSeatBreakdown = Field( - title="Copilot Business Seat Breakdown", - description="The breakdown of Copilot Business seats for the organization.", - ) - public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] = ( - Field( - description="The organization policy for allowing or disallowing Copilot to make suggestions that match public code." - ) - ) - ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( - default=UNSET, - description="The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.", - ) - platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( - default=UNSET, - description="The organization policy for allowing or disallowing organization members to use Copilot features within github.com.", - ) - cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( - default=UNSET, - description="The organization policy for allowing or disallowing organization members to use Copilot within their CLI.", - ) - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" - ] = Field(description="The mode of assigning new seats.") - plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( - default=UNSET, - description="The Copilot plan of the organization, or the parent enterprise, when applicable.", - ) - - -class CopilotSeatBreakdown(GitHubModel): - """Copilot Business Seat Breakdown - - The breakdown of Copilot Business seats for the organization. - """ - - total: Missing[int] = Field( - default=UNSET, - description="The total number of seats being billed for the organization as of the current billing cycle.", - ) - added_this_cycle: Missing[int] = Field( - default=UNSET, description="Seats added during the current billing cycle." - ) - pending_cancellation: Missing[int] = Field( - default=UNSET, - description="The number of seats that are pending cancellation at the end of the current billing cycle.", - ) - pending_invitation: Missing[int] = Field( - default=UNSET, - description="The number of seats that have been assigned to users that have not yet accepted an invitation to this organization.", - ) - active_this_cycle: Missing[int] = Field( - default=UNSET, - description="The number of seats that have used Copilot during the current billing cycle.", - ) - inactive_this_cycle: Missing[int] = Field( - default=UNSET, - description="The number of seats that have not used Copilot during the current billing cycle.", + include_claim_keys: list[str] = Field( + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." ) -model_rebuild(CopilotOrganizationDetails) -model_rebuild(CopilotSeatBreakdown) +model_rebuild(OidcCustomSub) -__all__ = ( - "CopilotOrganizationDetails", - "CopilotSeatBreakdown", -) +__all__ = ("OidcCustomSub",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0160.py b/githubkit/versions/ghec_v2022_11_28/models/group_0160.py index 18c7fd8c8..3efa01ac1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0160.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0160.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -19,53 +18,26 @@ from githubkit.utils import UNSET -class CredentialAuthorization(GitHubModel): - """Credential Authorization +class ActionsOrganizationPermissions(GitHubModel): + """ActionsOrganizationPermissions""" - Credential Authorization - """ - - login: str = Field(description="User login that owns the underlying credential.") - credential_id: int = Field( - description="Unique identifier for the authorization of the credential. Use this to revoke authorization of the underlying token or key." - ) - credential_type: str = Field( - description="Human-readable description of the credential type." - ) - token_last_eight: Missing[str] = Field( - default=UNSET, - description="Last eight characters of the credential. Only included in responses with credential_type of personal access token.", - ) - credential_authorized_at: datetime = Field( - description="Date when the credential was authorized for use." - ) - scopes: Missing[list[str]] = Field( - default=UNSET, description="List of oauth scopes the token has been granted." - ) - fingerprint: Missing[str] = Field( - default=UNSET, - description="Unique string to distinguish the credential. Only included in responses with credential_type of SSH Key.", - ) - credential_accessed_at: Union[datetime, None] = Field( - description="Date when the credential was last accessed. May be null if it was never accessed" - ) - authorized_credential_id: Union[int, None] = Field( - description="The ID of the underlying token that was authorized by the user. This will remain unchanged across authorizations of the token." + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." ) - authorized_credential_title: Missing[Union[str, None]] = Field( + selected_repositories_url: Missing[str] = Field( default=UNSET, - description="The title given to the ssh key. This will only be present when the credential is an ssh key.", + description="The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`.", ) - authorized_credential_note: Missing[Union[str, None]] = Field( + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( default=UNSET, - description="The note given to the token. This will only be present when the credential is a token.", + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - authorized_credential_expires_at: Missing[Union[datetime, None]] = Field( + selected_actions_url: Missing[str] = Field( default=UNSET, - description="The expiry for the token. This will only be present when the credential is a token.", + description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", ) -model_rebuild(CredentialAuthorization) +model_rebuild(ActionsOrganizationPermissions) -__all__ = ("CredentialAuthorization",) +__all__ = ("ActionsOrganizationPermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0161.py b/githubkit/versions/ghec_v2022_11_28/models/group_0161.py index 239aec0c5..9d8938959 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0161.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0161.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,22 +16,20 @@ from githubkit.utils import UNSET -class OrganizationCustomRepositoryRoleCreateSchema(GitHubModel): - """OrganizationCustomRepositoryRoleCreateSchema""" +class ActionsPublicKey(GitHubModel): + """ActionsPublicKey + + The public key used for setting Actions Secrets. + """ - name: str = Field(description="The name of the custom role.") - description: Missing[Union[str, None]] = Field( - default=UNSET, - description="A short description about who this role is for or what permissions it grants.", - ) - base_role: Literal["read", "triage", "write", "maintain"] = Field( - description="The system role from which this role inherits permissions." - ) - permissions: list[str] = Field( - description="A list of additional permissions included in this role." - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") + id: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) -model_rebuild(OrganizationCustomRepositoryRoleCreateSchema) +model_rebuild(ActionsPublicKey) -__all__ = ("OrganizationCustomRepositoryRoleCreateSchema",) +__all__ = ("ActionsPublicKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0162.py b/githubkit/versions/ghec_v2022_11_28/models/group_0162.py index e195d09e0..b35d7ed71 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0162.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0162.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,26 +19,183 @@ from githubkit.utils import UNSET -class OrganizationCustomRepositoryRoleUpdateSchema(GitHubModel): - """OrganizationCustomRepositoryRoleUpdateSchema""" +class PushRuleBypassRequest(GitHubModel): + """Push rule bypass request + A bypass request made by a user asking to be exempted from a push rule in this + repository. + """ + + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the bypass request." + ) + number: Missing[int] = Field( + default=UNSET, + description="The number uniquely identifying the bypass request within its repository.", + ) + repository: Missing[PushRuleBypassRequestPropRepository] = Field( + default=UNSET, description="The repository the bypass request is for." + ) + organization: Missing[PushRuleBypassRequestPropOrganization] = Field( + default=UNSET, + description="The organization associated with the repository the bypass request is for.", + ) + requester: Missing[PushRuleBypassRequestPropRequester] = Field( + default=UNSET, description="The user who requested the bypass." + ) + request_type: Missing[str] = Field( + default=UNSET, description="The type of request." + ) + data: Missing[Union[list[PushRuleBypassRequestPropDataItems], None]] = Field( + default=UNSET, + description="Data describing the push rules that are being requested to be bypassed.", + ) + resource_identifier: Missing[str] = Field( + default=UNSET, + description="The unique identifier for the request type of the bypass request. For example, a commit SHA.", + ) + status: Missing[ + Literal[ + "pending", "denied", "approved", "cancelled", "completed", "expired", "open" + ] + ] = Field(default=UNSET, description="The status of the bypass request.") + requester_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment the requester provided when creating the bypass request.", + ) + expires_at: Missing[datetime] = Field( + default=UNSET, description="The date and time the bypass request will expire." + ) + created_at: Missing[datetime] = Field( + default=UNSET, description="The date and time the bypass request was created." + ) + responses: Missing[Union[list[BypassResponse], None]] = Field( + default=UNSET, description="The responses to the bypass request." + ) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field( + default=UNSET, description="The URL to view the bypass request in a browser." + ) + + +class PushRuleBypassRequestPropRepository(GitHubModel): + """PushRuleBypassRequestPropRepository + + The repository the bypass request is for. + """ + + id: Missing[int] = Field( + default=UNSET, description="The ID of the repository the bypass request is for." + ) + name: Missing[str] = Field( + default=UNSET, + description="The name of the repository the bypass request is for.", + ) + full_name: Missing[str] = Field( + default=UNSET, + description="The full name of the repository the bypass request is for.", + ) + + +class PushRuleBypassRequestPropOrganization(GitHubModel): + """PushRuleBypassRequestPropOrganization + + The organization associated with the repository the bypass request is for. + """ + + id: Missing[int] = Field(default=UNSET, description="The ID of the organization.") name: Missing[str] = Field( - default=UNSET, description="The name of the custom role." + default=UNSET, description="The name of the organization." + ) + + +class PushRuleBypassRequestPropRequester(GitHubModel): + """PushRuleBypassRequestPropRequester + + The user who requested the bypass. + """ + + actor_id: Missing[int] = Field( + default=UNSET, description="The ID of the GitHub user who requested the bypass." + ) + actor_name: Missing[str] = Field( + default=UNSET, + description="The name of the GitHub user who requested the bypass.", + ) + + +class PushRuleBypassRequestPropDataItems(GitHubModel): + """PushRuleBypassRequestPropDataItems""" + + ruleset_id: Missing[int] = Field( + default=UNSET, + description="The ID of the ruleset for the rules that were violated.", + ) + ruleset_name: Missing[str] = Field( + default=UNSET, + description="The name of the ruleset for the rules that were violated.", ) - description: Missing[Union[str, None]] = Field( + total_violations: Missing[int] = Field( default=UNSET, - description="A short description about who this role is for or what permissions it grants.", + description="The number of rule violations generated from the push associated with this request.", ) - base_role: Missing[Literal["read", "triage", "write", "maintain"]] = Field( + rule_type: Missing[str] = Field( + default=UNSET, description="The type of rule that was violated." + ) + + +class BypassResponse(GitHubModel): + """Bypass response + + A response made by a delegated bypasser to a bypass request. + """ + + id: Missing[int] = Field( + default=UNSET, description="The ID of the response to the bypass request." + ) + reviewer: Missing[BypassResponsePropReviewer] = Field( + default=UNSET, description="The user who reviewed the bypass request." + ) + status: Missing[Literal["approved", "denied", "dismissed"]] = Field( + default=UNSET, + description="The response status to the bypass request until dismissed.", + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the response to the bypass request was created.", + ) + + +class BypassResponsePropReviewer(GitHubModel): + """BypassResponsePropReviewer + + The user who reviewed the bypass request. + """ + + actor_id: Missing[int] = Field( default=UNSET, - description="The system role from which this role inherits permissions.", + description="The ID of the GitHub user who reviewed the bypass request.", ) - permissions: Missing[list[str]] = Field( + actor_name: Missing[str] = Field( default=UNSET, - description="A list of additional permissions included in this role.", + description="The name of the GitHub user who reviewed the bypass request.", ) -model_rebuild(OrganizationCustomRepositoryRoleUpdateSchema) +model_rebuild(PushRuleBypassRequest) +model_rebuild(PushRuleBypassRequestPropRepository) +model_rebuild(PushRuleBypassRequestPropOrganization) +model_rebuild(PushRuleBypassRequestPropRequester) +model_rebuild(PushRuleBypassRequestPropDataItems) +model_rebuild(BypassResponse) +model_rebuild(BypassResponsePropReviewer) -__all__ = ("OrganizationCustomRepositoryRoleUpdateSchema",) +__all__ = ( + "BypassResponse", + "BypassResponsePropReviewer", + "PushRuleBypassRequest", + "PushRuleBypassRequestPropDataItems", + "PushRuleBypassRequestPropOrganization", + "PushRuleBypassRequestPropRepository", + "PushRuleBypassRequestPropRequester", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0163.py b/githubkit/versions/ghec_v2022_11_28/models/group_0163.py index a7dfe2e7d..db250979c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0163.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0163.py @@ -9,21 +9,36 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class DependabotPublicKey(GitHubModel): - """DependabotPublicKey +class CodespaceMachine(GitHubModel): + """Codespace machine - The public key used for setting Dependabot Secrets. + A description of the machine powering a codespace. """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - - -model_rebuild(DependabotPublicKey) - -__all__ = ("DependabotPublicKey",) + name: str = Field(description="The name of the machine.") + display_name: str = Field( + description="The display name of the machine includes cores, memory, and storage." + ) + operating_system: str = Field(description="The operating system of the machine.") + storage_in_bytes: int = Field( + description="How much storage is available to the codespace." + ) + memory_in_bytes: int = Field( + description="How much memory is available to the codespace." + ) + cpus: int = Field(description="How many cores are available to the codespace.") + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field( + description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' + ) + + +model_rebuild(CodespaceMachine) + +__all__ = ("CodespaceMachine",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0164.py b/githubkit/versions/ghec_v2022_11_28/models/group_0164.py index 739c41580..62915b5b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0164.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0164.py @@ -18,31 +18,157 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0147 import MinimalRepository +from .group_0003 import SimpleUser +from .group_0154 import MinimalRepository +from .group_0163 import CodespaceMachine -class Package(GitHubModel): - """Package +class Codespace(GitHubModel): + """Codespace - A software package + A codespace. """ - id: int = Field(description="Unique identifier of the package.") - name: str = Field(description="The name of the package.") - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() - url: str = Field() - html_url: str = Field() - version_count: int = Field(description="The number of versions of the package.") - visibility: Literal["private", "public"] = Field() - owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - repository: Missing[Union[None, MinimalRepository]] = Field(default=UNSET) + id: int = Field() + name: str = Field(description="Automatically generated name of this codespace.") + display_name: Missing[Union[str, None]] = Field( + default=UNSET, description="Display name for this codespace." + ) + environment_id: Union[str, None] = Field( + description="UUID identifying this codespace's environment." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + billable_owner: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + machine: Union[None, CodespaceMachine] = Field() + devcontainer_path: Missing[Union[str, None]] = Field( + default=UNSET, + description="Path to devcontainer.json from repo root used to create Codespace.", + ) + prebuild: Union[bool, None] = Field( + description="Whether the codespace was created from a prebuild." + ) created_at: datetime = Field() updated_at: datetime = Field() + last_used_at: datetime = Field( + description="Last known time this codespace was started." + ) + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] = Field(description="State of this codespace.") + url: str = Field(description="API URL for this codespace.") + git_status: CodespacePropGitStatus = Field( + description="Details about the codespace's git repository." + ) + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( + description="The initally assigned location of a new codespace." + ) + idle_timeout_minutes: Union[int, None] = Field( + description="The number of minutes of inactivity after which this codespace will be automatically stopped." + ) + web_url: str = Field(description="URL to access this codespace on the web.") + machines_url: str = Field( + description="API URL to access available alternate machine types for this codespace." + ) + start_url: str = Field(description="API URL to start this codespace.") + stop_url: str = Field(description="API URL to stop this codespace.") + publish_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="API URL to publish this codespace to a new repository.", + ) + pulls_url: Union[str, None] = Field( + description="API URL for the Pull Request associated with this codespace, if any." + ) + recent_folders: list[str] = Field() + runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) + pending_operation: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", + ) + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace is disabled by a pending operation", + ) + idle_timeout_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + ) + retention_period_minutes: Missing[Union[int, None]] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) + retention_expires_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', + ) + last_known_stop_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="The text to display to a user when a codespace has been stopped for a potentially actionable reason.", + ) -model_rebuild(Package) +class CodespacePropGitStatus(GitHubModel): + """CodespacePropGitStatus -__all__ = ("Package",) + Details about the codespace's git repository. + """ + + ahead: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is ahead of the remote.", + ) + behind: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is behind the remote.", + ) + has_unpushed_changes: Missing[bool] = Field( + default=UNSET, description="Whether the local repository has unpushed changes." + ) + has_uncommitted_changes: Missing[bool] = Field( + default=UNSET, + description="Whether the local repository has uncommitted changes.", + ) + ref: Missing[str] = Field( + default=UNSET, + description="The current branch (or SHA if in detached HEAD state) of the local repository.", + ) + + +class CodespacePropRuntimeConstraints(GitHubModel): + """CodespacePropRuntimeConstraints""" + + allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="The privacy settings a user can select from when forwarding a port.", + ) + + +model_rebuild(Codespace) +model_rebuild(CodespacePropGitStatus) +model_rebuild(CodespacePropRuntimeConstraints) + +__all__ = ( + "Codespace", + "CodespacePropGitStatus", + "CodespacePropRuntimeConstraints", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0165.py b/githubkit/versions/ghec_v2022_11_28/models/group_0165.py index da221fb55..1a40b558a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0165.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0165.py @@ -16,47 +16,20 @@ from githubkit.utils import UNSET -class ExternalGroup(GitHubModel): - """ExternalGroup +class CodespacesPublicKey(GitHubModel): + """CodespacesPublicKey - Information about an external group's usage and its members + The public key used for setting Codespaces secrets. """ - group_id: int = Field(description="The internal ID of the group") - group_name: str = Field(description="The display name for the group") - updated_at: Missing[str] = Field( - default=UNSET, description="The date when the group was last updated_at" - ) - teams: list[ExternalGroupPropTeamsItems] = Field( - description="An array of teams linked to this group" - ) - members: list[ExternalGroupPropMembersItems] = Field( - description="An array of external members linked to this group" - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") + id: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) -class ExternalGroupPropTeamsItems(GitHubModel): - """ExternalGroupPropTeamsItems""" +model_rebuild(CodespacesPublicKey) - team_id: int = Field(description="The id for a team") - team_name: str = Field(description="The name of the team") - - -class ExternalGroupPropMembersItems(GitHubModel): - """ExternalGroupPropMembersItems""" - - member_id: int = Field(description="The internal user ID of the identity") - member_login: str = Field(description="The handle/login for the user") - member_name: str = Field(description="The user display name/profile name") - member_email: str = Field(description="An email attached to a user") - - -model_rebuild(ExternalGroup) -model_rebuild(ExternalGroupPropTeamsItems) -model_rebuild(ExternalGroupPropMembersItems) - -__all__ = ( - "ExternalGroup", - "ExternalGroupPropMembersItems", - "ExternalGroupPropTeamsItems", -) +__all__ = ("CodespacesPublicKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0166.py b/githubkit/versions/ghec_v2022_11_28/models/group_0166.py index 0ecffcf17..063a394c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0166.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0166.py @@ -9,37 +9,87 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ExternalGroups(GitHubModel): - """ExternalGroups +class CopilotOrganizationDetails(ExtraGitHubModel): + """Copilot Organization Details - A list of external groups available to be connected to a team + Information about the seat breakdown and policies set for an organization with a + Copilot Business or Copilot Enterprise subscription. """ - groups: Missing[list[ExternalGroupsPropGroupsItems]] = Field( + seat_breakdown: CopilotSeatBreakdown = Field( + title="Copilot Business Seat Breakdown", + description="The breakdown of Copilot Business seats for the organization.", + ) + public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] = ( + Field( + description="The organization policy for allowing or disallowing Copilot to make suggestions that match public code." + ) + ) + ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( default=UNSET, - description="An array of external groups available to be mapped to a team", + description="The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.", + ) + platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing organization members to use Copilot features within github.com.", + ) + cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing organization members to use Copilot within their CLI.", + ) + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] = Field(description="The mode of assigning new seats.") + plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( + default=UNSET, + description="The Copilot plan of the organization, or the parent enterprise, when applicable.", ) -class ExternalGroupsPropGroupsItems(GitHubModel): - """ExternalGroupsPropGroupsItems""" +class CopilotSeatBreakdown(GitHubModel): + """Copilot Business Seat Breakdown + + The breakdown of Copilot Business seats for the organization. + """ - group_id: int = Field(description="The internal ID of the group") - group_name: str = Field(description="The display name of the group") - updated_at: str = Field(description="The time of the last update for this group") + total: Missing[int] = Field( + default=UNSET, + description="The total number of seats being billed for the organization as of the current billing cycle.", + ) + added_this_cycle: Missing[int] = Field( + default=UNSET, description="Seats added during the current billing cycle." + ) + pending_cancellation: Missing[int] = Field( + default=UNSET, + description="The number of seats that are pending cancellation at the end of the current billing cycle.", + ) + pending_invitation: Missing[int] = Field( + default=UNSET, + description="The number of seats that have been assigned to users that have not yet accepted an invitation to this organization.", + ) + active_this_cycle: Missing[int] = Field( + default=UNSET, + description="The number of seats that have used Copilot during the current billing cycle.", + ) + inactive_this_cycle: Missing[int] = Field( + default=UNSET, + description="The number of seats that have not used Copilot during the current billing cycle.", + ) -model_rebuild(ExternalGroups) -model_rebuild(ExternalGroupsPropGroupsItems) +model_rebuild(CopilotOrganizationDetails) +model_rebuild(CopilotSeatBreakdown) __all__ = ( - "ExternalGroups", - "ExternalGroupsPropGroupsItems", + "CopilotOrganizationDetails", + "CopilotSeatBreakdown", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0167.py b/githubkit/versions/ghec_v2022_11_28/models/group_0167.py index e545907ba..18c7fd8c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0167.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0167.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -17,29 +18,54 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class CredentialAuthorization(GitHubModel): + """Credential Authorization -class OrganizationInvitation(GitHubModel): - """Organization Invitation - - Organization Invitation + Credential Authorization """ - id: int = Field() - login: Union[str, None] = Field() - email: Union[str, None] = Field() - role: str = Field() - created_at: str = Field() - failed_at: Missing[Union[str, None]] = Field(default=UNSET) - failed_reason: Missing[Union[str, None]] = Field(default=UNSET) - inviter: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team_count: int = Field() - node_id: str = Field() - invitation_teams_url: str = Field() - invitation_source: Missing[str] = Field(default=UNSET) + login: str = Field(description="User login that owns the underlying credential.") + credential_id: int = Field( + description="Unique identifier for the authorization of the credential. Use this to revoke authorization of the underlying token or key." + ) + credential_type: str = Field( + description="Human-readable description of the credential type." + ) + token_last_eight: Missing[str] = Field( + default=UNSET, + description="Last eight characters of the credential. Only included in responses with credential_type of personal access token.", + ) + credential_authorized_at: datetime = Field( + description="Date when the credential was authorized for use." + ) + scopes: Missing[list[str]] = Field( + default=UNSET, description="List of oauth scopes the token has been granted." + ) + fingerprint: Missing[str] = Field( + default=UNSET, + description="Unique string to distinguish the credential. Only included in responses with credential_type of SSH Key.", + ) + credential_accessed_at: Union[datetime, None] = Field( + description="Date when the credential was last accessed. May be null if it was never accessed" + ) + authorized_credential_id: Union[int, None] = Field( + description="The ID of the underlying token that was authorized by the user. This will remain unchanged across authorizations of the token." + ) + authorized_credential_title: Missing[Union[str, None]] = Field( + default=UNSET, + description="The title given to the ssh key. This will only be present when the credential is an ssh key.", + ) + authorized_credential_note: Missing[Union[str, None]] = Field( + default=UNSET, + description="The note given to the token. This will only be present when the credential is a token.", + ) + authorized_credential_expires_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The expiry for the token. This will only be present when the credential is a token.", + ) -model_rebuild(OrganizationInvitation) +model_rebuild(CredentialAuthorization) -__all__ = ("OrganizationInvitation",) +__all__ = ("CredentialAuthorization",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0168.py b/githubkit/versions/ghec_v2022_11_28/models/group_0168.py index 467053545..239aec0c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0168.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0168.py @@ -9,21 +9,31 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryFineGrainedPermission(GitHubModel): - """Repository Fine-Grained Permission - - A fine-grained permission that protects repository resources. - """ +class OrganizationCustomRepositoryRoleCreateSchema(GitHubModel): + """OrganizationCustomRepositoryRoleCreateSchema""" - name: str = Field() - description: str = Field() + name: str = Field(description="The name of the custom role.") + description: Missing[Union[str, None]] = Field( + default=UNSET, + description="A short description about who this role is for or what permissions it grants.", + ) + base_role: Literal["read", "triage", "write", "maintain"] = Field( + description="The system role from which this role inherits permissions." + ) + permissions: list[str] = Field( + description="A list of additional permissions included in this role." + ) -model_rebuild(RepositoryFineGrainedPermission) +model_rebuild(OrganizationCustomRepositoryRoleCreateSchema) -__all__ = ("RepositoryFineGrainedPermission",) +__all__ = ("OrganizationCustomRepositoryRoleCreateSchema",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0169.py b/githubkit/versions/ghec_v2022_11_28/models/group_0169.py index c07e88da1..e195d09e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0169.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0169.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,38 +18,26 @@ from githubkit.utils import UNSET -class OrgHook(GitHubModel): - """Org Hook +class OrganizationCustomRepositoryRoleUpdateSchema(GitHubModel): + """OrganizationCustomRepositoryRoleUpdateSchema""" - Org Hook - """ + name: Missing[str] = Field( + default=UNSET, description="The name of the custom role." + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, + description="A short description about who this role is for or what permissions it grants.", + ) + base_role: Missing[Literal["read", "triage", "write", "maintain"]] = Field( + default=UNSET, + description="The system role from which this role inherits permissions.", + ) + permissions: Missing[list[str]] = Field( + default=UNSET, + description="A list of additional permissions included in this role.", + ) - id: int = Field() - url: str = Field() - ping_url: str = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - name: str = Field() - events: list[str] = Field() - active: bool = Field() - config: OrgHookPropConfig = Field() - updated_at: datetime = Field() - created_at: datetime = Field() - type: str = Field() +model_rebuild(OrganizationCustomRepositoryRoleUpdateSchema) -class OrgHookPropConfig(GitHubModel): - """OrgHookPropConfig""" - - url: Missing[str] = Field(default=UNSET) - insecure_ssl: Missing[str] = Field(default=UNSET) - content_type: Missing[str] = Field(default=UNSET) - secret: Missing[str] = Field(default=UNSET) - - -model_rebuild(OrgHook) -model_rebuild(OrgHookPropConfig) - -__all__ = ( - "OrgHook", - "OrgHookPropConfig", -) +__all__ = ("OrganizationCustomRepositoryRoleUpdateSchema",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0170.py b/githubkit/versions/ghec_v2022_11_28/models/group_0170.py index 0a96c6c73..a7dfe2e7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0170.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0170.py @@ -9,34 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ApiInsightsRouteStatsItems(GitHubModel): - """ApiInsightsRouteStatsItems""" +class DependabotPublicKey(GitHubModel): + """DependabotPublicKey + + The public key used for setting Dependabot Secrets. + """ - http_method: Missing[str] = Field(default=UNSET, description="The HTTP method") - api_route: Missing[str] = Field( - default=UNSET, description="The API path's route template" - ) - total_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests within the queried time period", - ) - rate_limited_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests that were rate limited within the queried time period", - ) - last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) - last_request_timestamp: Missing[str] = Field(default=UNSET) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(ApiInsightsRouteStatsItems) +model_rebuild(DependabotPublicKey) -__all__ = ("ApiInsightsRouteStatsItems",) +__all__ = ("DependabotPublicKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0171.py b/githubkit/versions/ghec_v2022_11_28/models/group_0171.py index 4d268bc1d..5b8eec1cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0171.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0171.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,19 +18,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0154 import MinimalRepository -class ApiInsightsSubjectStatsItems(GitHubModel): - """ApiInsightsSubjectStatsItems""" - subject_type: Missing[str] = Field(default=UNSET) - subject_name: Missing[str] = Field(default=UNSET) - subject_id: Missing[int] = Field(default=UNSET) - total_request_count: Missing[int] = Field(default=UNSET) - rate_limited_request_count: Missing[int] = Field(default=UNSET) - last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) - last_request_timestamp: Missing[str] = Field(default=UNSET) +class Package(GitHubModel): + """Package + A software package + """ -model_rebuild(ApiInsightsSubjectStatsItems) + id: int = Field(description="Unique identifier of the package.") + name: str = Field(description="The name of the package.") + package_type: Literal[ + "npm", "maven", "rubygems", "docker", "nuget", "container" + ] = Field() + url: str = Field() + html_url: str = Field() + version_count: int = Field(description="The number of versions of the package.") + visibility: Literal["private", "public"] = Field() + owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + repository: Missing[Union[None, MinimalRepository]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() -__all__ = ("ApiInsightsSubjectStatsItems",) + +model_rebuild(Package) + +__all__ = ("Package",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0172.py b/githubkit/versions/ghec_v2022_11_28/models/group_0172.py index 43562dec3..da221fb55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0172.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0172.py @@ -16,22 +16,47 @@ from githubkit.utils import UNSET -class ApiInsightsSummaryStats(GitHubModel): - """Summary Stats +class ExternalGroup(GitHubModel): + """ExternalGroup - API Insights usage summary stats for an organization + Information about an external group's usage and its members """ - total_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests within the queried time period", + group_id: int = Field(description="The internal ID of the group") + group_name: str = Field(description="The display name for the group") + updated_at: Missing[str] = Field( + default=UNSET, description="The date when the group was last updated_at" ) - rate_limited_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests that were rate limited within the queried time period", + teams: list[ExternalGroupPropTeamsItems] = Field( + description="An array of teams linked to this group" ) + members: list[ExternalGroupPropMembersItems] = Field( + description="An array of external members linked to this group" + ) + + +class ExternalGroupPropTeamsItems(GitHubModel): + """ExternalGroupPropTeamsItems""" + + team_id: int = Field(description="The id for a team") + team_name: str = Field(description="The name of the team") + + +class ExternalGroupPropMembersItems(GitHubModel): + """ExternalGroupPropMembersItems""" + + member_id: int = Field(description="The internal user ID of the identity") + member_login: str = Field(description="The handle/login for the user") + member_name: str = Field(description="The user display name/profile name") + member_email: str = Field(description="An email attached to a user") -model_rebuild(ApiInsightsSummaryStats) +model_rebuild(ExternalGroup) +model_rebuild(ExternalGroupPropTeamsItems) +model_rebuild(ExternalGroupPropMembersItems) -__all__ = ("ApiInsightsSummaryStats",) +__all__ = ( + "ExternalGroup", + "ExternalGroupPropMembersItems", + "ExternalGroupPropTeamsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0173.py b/githubkit/versions/ghec_v2022_11_28/models/group_0173.py index 1e53263ef..0ecffcf17 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0173.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0173.py @@ -16,14 +16,30 @@ from githubkit.utils import UNSET -class ApiInsightsTimeStatsItems(GitHubModel): - """ApiInsightsTimeStatsItems""" +class ExternalGroups(GitHubModel): + """ExternalGroups - timestamp: Missing[str] = Field(default=UNSET) - total_request_count: Missing[int] = Field(default=UNSET) - rate_limited_request_count: Missing[int] = Field(default=UNSET) + A list of external groups available to be connected to a team + """ + groups: Missing[list[ExternalGroupsPropGroupsItems]] = Field( + default=UNSET, + description="An array of external groups available to be mapped to a team", + ) -model_rebuild(ApiInsightsTimeStatsItems) -__all__ = ("ApiInsightsTimeStatsItems",) +class ExternalGroupsPropGroupsItems(GitHubModel): + """ExternalGroupsPropGroupsItems""" + + group_id: int = Field(description="The internal ID of the group") + group_name: str = Field(description="The display name of the group") + updated_at: str = Field(description="The time of the last update for this group") + + +model_rebuild(ExternalGroups) +model_rebuild(ExternalGroupsPropGroupsItems) + +__all__ = ( + "ExternalGroups", + "ExternalGroupsPropGroupsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0174.py b/githubkit/versions/ghec_v2022_11_28/models/group_0174.py index 3b86770cc..a7a2456e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0174.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0174.py @@ -17,21 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class ApiInsightsUserStatsItems(GitHubModel): - """ApiInsightsUserStatsItems""" - actor_type: Missing[str] = Field(default=UNSET) - actor_name: Missing[str] = Field(default=UNSET) - actor_id: Missing[int] = Field(default=UNSET) - integration_id: Missing[Union[int, None]] = Field(default=UNSET) - oauth_application_id: Missing[Union[int, None]] = Field(default=UNSET) - total_request_count: Missing[int] = Field(default=UNSET) - rate_limited_request_count: Missing[int] = Field(default=UNSET) - last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) - last_request_timestamp: Missing[str] = Field(default=UNSET) +class OrganizationInvitation(GitHubModel): + """Organization Invitation + Organization Invitation + """ -model_rebuild(ApiInsightsUserStatsItems) + id: int = Field() + login: Union[str, None] = Field() + email: Union[str, None] = Field() + role: str = Field() + created_at: str = Field() + failed_at: Missing[Union[str, None]] = Field(default=UNSET) + failed_reason: Missing[Union[str, None]] = Field(default=UNSET) + inviter: SimpleUser = Field(title="Simple User", description="A GitHub user.") + team_count: int = Field() + node_id: str = Field() + invitation_teams_url: str = Field() + invitation_source: Missing[str] = Field(default=UNSET) -__all__ = ("ApiInsightsUserStatsItems",) + +model_rebuild(OrganizationInvitation) + +__all__ = ("OrganizationInvitation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0175.py b/githubkit/versions/ghec_v2022_11_28/models/group_0175.py index 1f7c3f84d..467053545 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0175.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0175.py @@ -9,27 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class InteractionLimitResponse(GitHubModel): - """Interaction Limits +class RepositoryFineGrainedPermission(GitHubModel): + """Repository Fine-Grained Permission - Interaction limit settings. + A fine-grained permission that protects repository resources. """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( - description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." - ) - origin: str = Field() - expires_at: datetime = Field() + name: str = Field() + description: str = Field() -model_rebuild(InteractionLimitResponse) +model_rebuild(RepositoryFineGrainedPermission) -__all__ = ("InteractionLimitResponse",) +__all__ = ("RepositoryFineGrainedPermission",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0176.py b/githubkit/versions/ghec_v2022_11_28/models/group_0176.py index 341c1cb09..c07e88da1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0176.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0176.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,23 +18,38 @@ from githubkit.utils import UNSET -class InteractionLimit(GitHubModel): - """Interaction Restrictions +class OrgHook(GitHubModel): + """Org Hook - Limit interactions to a specific type of user for a specified duration + Org Hook """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( - description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." - ) - expiry: Missing[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] = Field( - default=UNSET, - description="The duration of the interaction restriction. Default: `one_day`.", - ) + id: int = Field() + url: str = Field() + ping_url: str = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + name: str = Field() + events: list[str] = Field() + active: bool = Field() + config: OrgHookPropConfig = Field() + updated_at: datetime = Field() + created_at: datetime = Field() + type: str = Field() -model_rebuild(InteractionLimit) +class OrgHookPropConfig(GitHubModel): + """OrgHookPropConfig""" -__all__ = ("InteractionLimit",) + url: Missing[str] = Field(default=UNSET) + insecure_ssl: Missing[str] = Field(default=UNSET) + content_type: Missing[str] = Field(default=UNSET) + secret: Missing[str] = Field(default=UNSET) + + +model_rebuild(OrgHook) +model_rebuild(OrgHookPropConfig) + +__all__ = ( + "OrgHook", + "OrgHookPropConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0177.py b/githubkit/versions/ghec_v2022_11_28/models/group_0177.py index 38bd496ca..0a96c6c73 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0177.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0177.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,41 +17,26 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0031 import OrganizationSimple +class ApiInsightsRouteStatsItems(GitHubModel): + """ApiInsightsRouteStatsItems""" -class OrgMembership(GitHubModel): - """Org Membership - - Org Membership - """ - - url: str = Field() - state: Literal["active", "pending"] = Field( - description="The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation." + http_method: Missing[str] = Field(default=UNSET, description="The HTTP method") + api_route: Missing[str] = Field( + default=UNSET, description="The API path's route template" ) - role: Literal["admin", "member", "billing_manager"] = Field( - description="The user's membership type in the organization." + total_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests within the queried time period", ) - organization_url: str = Field() - organization: OrganizationSimple = Field( - title="Organization Simple", description="A GitHub organization." + rate_limited_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests that were rate limited within the queried time period", ) - user: Union[None, SimpleUser] = Field() - permissions: Missing[OrgMembershipPropPermissions] = Field(default=UNSET) - - -class OrgMembershipPropPermissions(GitHubModel): - """OrgMembershipPropPermissions""" - - can_create_repository: bool = Field() + last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) + last_request_timestamp: Missing[str] = Field(default=UNSET) -model_rebuild(OrgMembership) -model_rebuild(OrgMembershipPropPermissions) +model_rebuild(ApiInsightsRouteStatsItems) -__all__ = ( - "OrgMembership", - "OrgMembershipPropPermissions", -) +__all__ = ("ApiInsightsRouteStatsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0178.py b/githubkit/versions/ghec_v2022_11_28/models/group_0178.py index 57198dca2..4d268bc1d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0178.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0178.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,41 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0019 import Repository - - -class Migration(GitHubModel): - """Migration - - A migration. - """ - - id: int = Field() - owner: Union[None, SimpleUser] = Field() - guid: str = Field() - state: str = Field() - lock_repositories: bool = Field() - exclude_metadata: bool = Field() - exclude_git_data: bool = Field() - exclude_attachments: bool = Field() - exclude_releases: bool = Field() - exclude_owner_projects: bool = Field() - org_metadata_only: bool = Field() - repositories: list[Repository] = Field( - description="The repositories included in the migration. Only returned for export migrations." - ) - url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - node_id: str = Field() - archive_url: Missing[str] = Field(default=UNSET) - exclude: Missing[list[str]] = Field( - default=UNSET, - description='Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.', - ) - - -model_rebuild(Migration) - -__all__ = ("Migration",) + +class ApiInsightsSubjectStatsItems(GitHubModel): + """ApiInsightsSubjectStatsItems""" + + subject_type: Missing[str] = Field(default=UNSET) + subject_name: Missing[str] = Field(default=UNSET) + subject_id: Missing[int] = Field(default=UNSET) + total_request_count: Missing[int] = Field(default=UNSET) + rate_limited_request_count: Missing[int] = Field(default=UNSET) + last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) + last_request_timestamp: Missing[str] = Field(default=UNSET) + + +model_rebuild(ApiInsightsSubjectStatsItems) + +__all__ = ("ApiInsightsSubjectStatsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0179.py b/githubkit/versions/ghec_v2022_11_28/models/group_0179.py index d92a39bb6..43562dec3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0179.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0179.py @@ -12,18 +12,26 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrganizationFineGrainedPermission(GitHubModel): - """Organization Fine-Grained Permission +class ApiInsightsSummaryStats(GitHubModel): + """Summary Stats - A fine-grained permission that protects organization resources. + API Insights usage summary stats for an organization """ - name: str = Field() - description: str = Field() + total_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests within the queried time period", + ) + rate_limited_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests that were rate limited within the queried time period", + ) -model_rebuild(OrganizationFineGrainedPermission) +model_rebuild(ApiInsightsSummaryStats) -__all__ = ("OrganizationFineGrainedPermission",) +__all__ = ("ApiInsightsSummaryStats",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0180.py b/githubkit/versions/ghec_v2022_11_28/models/group_0180.py index 9a6087f0e..1e53263ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0180.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0180.py @@ -9,69 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser - - -class OrganizationRole(GitHubModel): - """Organization Role - - Organization roles - """ - - id: int = Field(description="The unique identifier of the role.") - name: str = Field(description="The name of the role.") - description: Missing[Union[str, None]] = Field( - default=UNSET, - description="A short description about who this role is for or what permissions it grants.", - ) - base_role: Missing[ - Union[None, Literal["read", "triage", "write", "maintain", "admin"]] - ] = Field( - default=UNSET, - description="The system role from which this role inherits permissions.", - ) - source: Missing[ - Union[None, Literal["Organization", "Enterprise", "Predefined"]] - ] = Field( - default=UNSET, - description='Source answers the question, "where did this role come from?"', - ) - permissions: list[str] = Field( - description="A list of permissions included in this role." - ) - organization: Union[None, SimpleUser] = Field() - created_at: datetime = Field(description="The date and time the role was created.") - updated_at: datetime = Field( - description="The date and time the role was last updated." - ) - -class OrgsOrgOrganizationRolesGetResponse200(GitHubModel): - """OrgsOrgOrganizationRolesGetResponse200""" +class ApiInsightsTimeStatsItems(GitHubModel): + """ApiInsightsTimeStatsItems""" - total_count: Missing[int] = Field( - default=UNSET, - description="The total number of organization roles available to the organization.", - ) - roles: Missing[list[OrganizationRole]] = Field( - default=UNSET, - description="The list of organization roles available to the organization.", - ) + timestamp: Missing[str] = Field(default=UNSET) + total_request_count: Missing[int] = Field(default=UNSET) + rate_limited_request_count: Missing[int] = Field(default=UNSET) -model_rebuild(OrganizationRole) -model_rebuild(OrgsOrgOrganizationRolesGetResponse200) +model_rebuild(ApiInsightsTimeStatsItems) -__all__ = ( - "OrganizationRole", - "OrgsOrgOrganizationRolesGetResponse200", -) +__all__ = ("ApiInsightsTimeStatsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0181.py b/githubkit/versions/ghec_v2022_11_28/models/group_0181.py index 84e1c371f..3b86770cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0181.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0181.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,23 +18,20 @@ from githubkit.utils import UNSET -class OrganizationCustomOrganizationRoleCreateSchema(GitHubModel): - """OrganizationCustomOrganizationRoleCreateSchema""" +class ApiInsightsUserStatsItems(GitHubModel): + """ApiInsightsUserStatsItems""" - 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: list[str] = Field( - description="A list of additional permissions included in this role." - ) - base_role: Missing[Literal["read", "triage", "write", "maintain", "admin"]] = Field( - default=UNSET, - description="The system role from which this role can inherit permissions.", - ) + actor_type: Missing[str] = Field(default=UNSET) + actor_name: Missing[str] = Field(default=UNSET) + actor_id: Missing[int] = Field(default=UNSET) + integration_id: Missing[Union[int, None]] = Field(default=UNSET) + oauth_application_id: Missing[Union[int, None]] = Field(default=UNSET) + total_request_count: Missing[int] = Field(default=UNSET) + rate_limited_request_count: Missing[int] = Field(default=UNSET) + last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) + last_request_timestamp: Missing[str] = Field(default=UNSET) -model_rebuild(OrganizationCustomOrganizationRoleCreateSchema) +model_rebuild(ApiInsightsUserStatsItems) -__all__ = ("OrganizationCustomOrganizationRoleCreateSchema",) +__all__ = ("ApiInsightsUserStatsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0182.py b/githubkit/versions/ghec_v2022_11_28/models/group_0182.py index c849e4005..1f7c3f84d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0182.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0182.py @@ -9,37 +9,27 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrganizationCustomOrganizationRoleUpdateSchema(GitHubModel): - """OrganizationCustomOrganizationRoleUpdateSchema""" +class InteractionLimitResponse(GitHubModel): + """Interaction Limits - name: Missing[str] = Field( - default=UNSET, description="The name of the custom role." - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description about the intended use of this role or the permissions it grants.", - ) - permissions: Missing[list[str]] = Field( - default=UNSET, - description="A list of additional permissions included in this role.", - ) - base_role: Missing[ - Literal["none", "read", "triage", "write", "maintain", "admin"] - ] = Field( - default=UNSET, - description="The system role from which this role can inherit permissions.", + Interaction limit settings. + """ + + limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( + description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." ) + origin: str = Field() + expires_at: datetime = Field() -model_rebuild(OrganizationCustomOrganizationRoleUpdateSchema) +model_rebuild(InteractionLimitResponse) -__all__ = ("OrganizationCustomOrganizationRoleUpdateSchema",) +__all__ = ("InteractionLimitResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0183.py b/githubkit/versions/ghec_v2022_11_28/models/group_0183.py index f978ef1a5..341c1cb09 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0183.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0183.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,49 +17,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0059 import TeamSimple +class InteractionLimit(GitHubModel): + """Interaction Restrictions -class TeamRoleAssignment(GitHubModel): - """A Role Assignment for a Team - - The Relationship a Team has with a role. + Limit interactions to a specific type of user for a specified duration """ - assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( + description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." + ) + expiry: Missing[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] + ] = Field( default=UNSET, - description="Determines if the team has a direct, indirect, or mixed relationship to a role", + description="The duration of the interaction restriction. Default: `one_day`.", ) - id: int = Field() - node_id: str = Field() - name: str = Field() - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[str] = Field(default=UNSET) - notification_setting: Missing[str] = Field(default=UNSET) - permission: str = Field() - permissions: Missing[TeamRoleAssignmentPropPermissions] = Field(default=UNSET) - url: str = Field() - html_url: str = Field() - members_url: str = Field() - repositories_url: str = Field() - parent: Union[None, TeamSimple] = Field() - - -class TeamRoleAssignmentPropPermissions(GitHubModel): - """TeamRoleAssignmentPropPermissions""" - - pull: bool = Field() - triage: bool = Field() - push: bool = Field() - maintain: bool = Field() - admin: bool = Field() -model_rebuild(TeamRoleAssignment) -model_rebuild(TeamRoleAssignmentPropPermissions) +model_rebuild(InteractionLimit) -__all__ = ( - "TeamRoleAssignment", - "TeamRoleAssignmentPropPermissions", -) +__all__ = ("InteractionLimit",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0184.py b/githubkit/versions/ghec_v2022_11_28/models/group_0184.py index 92d80f7b7..930db64ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0184.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0184.py @@ -17,46 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0059 import TeamSimple +from .group_0003 import SimpleUser +from .group_0036 import OrganizationSimple -class UserRoleAssignment(GitHubModel): - """A Role Assignment for a User +class OrgMembership(GitHubModel): + """Org Membership - The Relationship a User has with a role. + Org Membership """ - assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( - default=UNSET, - description="Determines if the user has a direct, indirect, or mixed relationship to a role", + url: str = Field() + state: Literal["active", "pending"] = Field( + description="The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation." ) - inherited_from: Missing[list[TeamSimple]] = Field( - default=UNSET, description="Team the user has gotten the role through" + role: Literal["admin", "member", "billing_manager"] = Field( + description="The user's membership type in the organization." ) - name: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - starred_at: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(UserRoleAssignment) - -__all__ = ("UserRoleAssignment",) + organization_url: str = Field() + organization: OrganizationSimple = Field( + title="Organization Simple", description="A GitHub organization." + ) + user: Union[None, SimpleUser] = Field() + permissions: Missing[OrgMembershipPropPermissions] = Field(default=UNSET) + + +class OrgMembershipPropPermissions(GitHubModel): + """OrgMembershipPropPermissions""" + + can_create_repository: bool = Field() + + +model_rebuild(OrgMembership) +model_rebuild(OrgMembershipPropPermissions) + +__all__ = ( + "OrgMembership", + "OrgMembershipPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0185.py b/githubkit/versions/ghec_v2022_11_28/models/group_0185.py index fe0d0f426..64aae139a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0185.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0185.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal +from typing import Union from pydantic import Field @@ -18,62 +18,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0020 import Repository -class PackageVersion(GitHubModel): - """Package Version - A version of a software package +class Migration(GitHubModel): + """Migration + + A migration. """ - id: int = Field(description="Unique identifier of the package version.") - name: str = Field(description="The name of the package version.") + id: int = Field() + owner: Union[None, SimpleUser] = Field() + guid: str = Field() + state: str = Field() + lock_repositories: bool = Field() + exclude_metadata: bool = Field() + exclude_git_data: bool = Field() + exclude_attachments: bool = Field() + exclude_releases: bool = Field() + exclude_owner_projects: bool = Field() + org_metadata_only: bool = Field() + repositories: list[Repository] = Field( + description="The repositories included in the migration. Only returned for export migrations." + ) url: str = Field() - package_html_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - description: Missing[str] = Field(default=UNSET) created_at: datetime = Field() updated_at: datetime = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) - metadata: Missing[PackageVersionPropMetadata] = Field( - default=UNSET, title="Package Version Metadata" - ) - - -class PackageVersionPropMetadata(GitHubModel): - """Package Version Metadata""" - - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() - container: Missing[PackageVersionPropMetadataPropContainer] = Field( - default=UNSET, title="Container Metadata" - ) - docker: Missing[PackageVersionPropMetadataPropDocker] = Field( - default=UNSET, title="Docker Metadata" + node_id: str = Field() + archive_url: Missing[str] = Field(default=UNSET) + exclude: Missing[list[str]] = Field( + default=UNSET, + description='Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.', ) -class PackageVersionPropMetadataPropContainer(GitHubModel): - """Container Metadata""" - - tags: list[str] = Field() - - -class PackageVersionPropMetadataPropDocker(GitHubModel): - """Docker Metadata""" - - tag: Missing[list[str]] = Field(default=UNSET) - - -model_rebuild(PackageVersion) -model_rebuild(PackageVersionPropMetadata) -model_rebuild(PackageVersionPropMetadataPropContainer) -model_rebuild(PackageVersionPropMetadataPropDocker) +model_rebuild(Migration) -__all__ = ( - "PackageVersion", - "PackageVersionPropMetadata", - "PackageVersionPropMetadataPropContainer", - "PackageVersionPropMetadataPropDocker", -) +__all__ = ("Migration",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0186.py b/githubkit/versions/ghec_v2022_11_28/models/group_0186.py index a43aee224..d92a39bb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0186.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0186.py @@ -9,103 +9,21 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser - - -class OrganizationProgrammaticAccessGrantRequest(GitHubModel): - """Simple Organization Programmatic Access Grant Request - - Minimal representation of an organization programmatic access grant request for - enumerations - """ - - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests." - ) - reason: Union[str, None] = Field(description="Reason for requesting access.") - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repositories_url: str = Field( - description="URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`." - ) - permissions: OrganizationProgrammaticAccessGrantRequestPropPermissions = Field( - description="Permissions requested, categorized by type of permission." - ) - created_at: str = Field( - description="Date and time when the request for access was created." - ) - token_id: int = Field( - description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." - ) - token_name: str = Field( - description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) +from githubkit.compat import GitHubModel, model_rebuild -class OrganizationProgrammaticAccessGrantRequestPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantRequestPropPermissions +class OrganizationFineGrainedPermission(GitHubModel): + """Organization Fine-Grained Permission - Permissions requested, categorized by type of permission. + A fine-grained permission that protects organization resources. """ - organization: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository - ] = Field(default=UNSET) - other: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther - ] = Field(default=UNSET) - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" + name: str = Field() + description: str = Field() -model_rebuild(OrganizationProgrammaticAccessGrantRequest) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) +model_rebuild(OrganizationFineGrainedPermission) -__all__ = ( - "OrganizationProgrammaticAccessGrantRequest", - "OrganizationProgrammaticAccessGrantRequestPropPermissions", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", -) +__all__ = ("OrganizationFineGrainedPermission",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0187.py b/githubkit/versions/ghec_v2022_11_28/models/group_0187.py index f6b0e4ae0..c78f983ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0187.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0187.py @@ -9,100 +9,69 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser -class OrganizationProgrammaticAccessGrant(GitHubModel): - """Organization Programmatic Access Grant +class OrganizationRole(GitHubModel): + """Organization Role - Minimal representation of an organization programmatic access grant for - enumerations + Organization roles """ - id: int = Field( - description="Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token." + id: int = Field(description="The unique identifier of the role.") + name: str = Field(description="The name of the role.") + description: Missing[Union[str, None]] = Field( + default=UNSET, + description="A short description about who this role is for or what permissions it grants.", ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." + base_role: Missing[ + Union[None, Literal["read", "triage", "write", "maintain", "admin"]] + ] = Field( + default=UNSET, + description="The system role from which this role inherits permissions.", ) - repositories_url: str = Field( - description="URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`." + source: Missing[ + Union[None, Literal["Organization", "Enterprise", "Predefined"]] + ] = Field( + default=UNSET, + description='Source answers the question, "where did this role come from?"', ) - permissions: OrganizationProgrammaticAccessGrantPropPermissions = Field( - description="Permissions requested, categorized by type of permission." + permissions: list[str] = Field( + description="A list of permissions included in this role." ) - access_granted_at: str = Field( - description="Date and time when the fine-grained personal access token was approved to access the organization." + organization: Union[None, SimpleUser] = Field() + created_at: datetime = Field(description="The date and time the role was created.") + updated_at: datetime = Field( + description="The date and time the role was last updated." ) - token_id: int = Field( - description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." - ) - token_name: str = Field( - description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - -class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissions - Permissions requested, categorized by type of permission. - """ +class OrgsOrgOrganizationRolesGetResponse200(GitHubModel): + """OrgsOrgOrganizationRolesGetResponse200""" - organization: Missing[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepository - ] = Field(default=UNSET) - other: Missing[OrganizationProgrammaticAccessGrantPropPermissionsPropOther] = Field( - default=UNSET + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of organization roles available to the organization.", + ) + roles: Missing[list[OrganizationRole]] = Field( + default=UNSET, + description="The list of organization roles available to the organization.", ) -class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" - - -model_rebuild(OrganizationProgrammaticAccessGrant) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) +model_rebuild(OrganizationRole) +model_rebuild(OrgsOrgOrganizationRolesGetResponse200) __all__ = ( - "OrganizationProgrammaticAccessGrant", - "OrganizationProgrammaticAccessGrantPropPermissions", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", + "OrganizationRole", + "OrgsOrgOrganizationRolesGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0188.py b/githubkit/versions/ghec_v2022_11_28/models/group_0188.py index e458bf37e..84e1c371f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0188.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0188.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,29 +18,23 @@ from githubkit.utils import UNSET -class OrgPrivateRegistryConfigurationWithSelectedRepositories(GitHubModel): - """Organization private registry +class OrganizationCustomOrganizationRoleCreateSchema(GitHubModel): + """OrganizationCustomOrganizationRoleCreateSchema""" - Private registry configuration for an organization - """ - - name: str = Field(description="The name of the private registry configuration.") - registry_type: Literal["maven_repository"] = Field(description="The registry type.") - username: Missing[str] = Field( + name: str = Field(description="The name of the custom role.") + description: Missing[str] = Field( default=UNSET, - description="The username to use when authenticating with the private registry.", + description="A short description about the intended usage of this role or what permissions it grants.", ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." + permissions: list[str] = Field( + description="A list of additional permissions included in this role." ) - selected_repository_ids: Missing[list[int]] = Field( + base_role: Missing[Literal["read", "triage", "write", "maintain", "admin"]] = Field( default=UNSET, - description="An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`.", + description="The system role from which this role can inherit permissions.", ) - created_at: datetime = Field() - updated_at: datetime = Field() -model_rebuild(OrgPrivateRegistryConfigurationWithSelectedRepositories) +model_rebuild(OrganizationCustomOrganizationRoleCreateSchema) -__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositories",) +__all__ = ("OrganizationCustomOrganizationRoleCreateSchema",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0189.py b/githubkit/versions/ghec_v2022_11_28/models/group_0189.py index ff2a11ce4..c849e4005 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0189.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0189.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,38 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser - - -class Project(GitHubModel): - """Project - - Projects are a way to organize columns and cards of work. - """ - - owner_url: str = Field() - url: str = Field() - html_url: str = Field() - columns_url: str = Field() - id: int = Field() - node_id: str = Field() - name: str = Field(description="Name of the project") - body: Union[str, None] = Field(description="Body of the project") - number: int = Field() - state: str = Field(description="State of the project; either 'open' or 'closed'") - creator: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + +class OrganizationCustomOrganizationRoleUpdateSchema(GitHubModel): + """OrganizationCustomOrganizationRoleUpdateSchema""" + + name: Missing[str] = Field( + default=UNSET, description="The name of the custom role." + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description about the intended use of this role or the permissions it grants.", + ) + permissions: Missing[list[str]] = Field( default=UNSET, - description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", + description="A list of additional permissions included in this role.", ) - private: Missing[bool] = Field( + base_role: Missing[ + Literal["none", "read", "triage", "write", "maintain", "admin"] + ] = Field( default=UNSET, - description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", + description="The system role from which this role can inherit permissions.", ) -model_rebuild(Project) +model_rebuild(OrganizationCustomOrganizationRoleUpdateSchema) -__all__ = ("Project",) +__all__ = ("OrganizationCustomOrganizationRoleUpdateSchema",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0190.py b/githubkit/versions/ghec_v2022_11_28/models/group_0190.py index 323c1ba32..3d5d8802c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0190.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0190.py @@ -9,25 +9,57 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0064 import TeamSimple -class CustomPropertyValue(GitHubModel): - """Custom Property Value - Custom property name and associated value +class TeamRoleAssignment(GitHubModel): + """A Role Assignment for a Team + + The Relationship a Team has with a role. """ - property_name: str = Field(description="The name of the property") - value: Union[str, list[str], None] = Field( - description="The value assigned to the property" + assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + default=UNSET, + description="Determines if the team has a direct, indirect, or mixed relationship to a role", ) + id: int = Field() + node_id: str = Field() + name: str = Field() + slug: str = Field() + description: Union[str, None] = Field() + privacy: Missing[str] = Field(default=UNSET) + notification_setting: Missing[str] = Field(default=UNSET) + permission: str = Field() + permissions: Missing[TeamRoleAssignmentPropPermissions] = Field(default=UNSET) + url: str = Field() + html_url: str = Field() + members_url: str = Field() + repositories_url: str = Field() + parent: Union[None, TeamSimple] = Field() + + +class TeamRoleAssignmentPropPermissions(GitHubModel): + """TeamRoleAssignmentPropPermissions""" + + pull: bool = Field() + triage: bool = Field() + push: bool = Field() + maintain: bool = Field() + admin: bool = Field() -model_rebuild(CustomPropertyValue) +model_rebuild(TeamRoleAssignment) +model_rebuild(TeamRoleAssignmentPropPermissions) -__all__ = ("CustomPropertyValue",) +__all__ = ( + "TeamRoleAssignment", + "TeamRoleAssignmentPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0191.py b/githubkit/versions/ghec_v2022_11_28/models/group_0191.py index 123fd76c7..c71986017 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0191.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0191.py @@ -9,27 +9,54 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0190 import CustomPropertyValue +from .group_0064 import TeamSimple -class OrgRepoCustomPropertyValues(GitHubModel): - """Organization Repository Custom Property Values +class UserRoleAssignment(GitHubModel): + """A Role Assignment for a User - List of custom property values for a repository + The Relationship a User has with a role. """ - repository_id: int = Field() - repository_name: str = Field() - repository_full_name: str = Field() - properties: list[CustomPropertyValue] = Field( - description="List of custom property names and associated values" + assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + default=UNSET, + description="Determines if the user has a direct, indirect, or mixed relationship to a role", ) - - -model_rebuild(OrgRepoCustomPropertyValues) - -__all__ = ("OrgRepoCustomPropertyValues",) + inherited_from: Missing[list[TeamSimple]] = Field( + default=UNSET, description="Team the user has gotten the role through" + ) + name: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + login: str = Field() + id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + starred_at: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(UserRoleAssignment) + +__all__ = ("UserRoleAssignment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0192.py b/githubkit/versions/ghec_v2022_11_28/models/group_0192.py index 35b60a16d..fe0d0f426 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0192.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0192.py @@ -9,25 +9,71 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodeOfConductSimple(GitHubModel): - """Code Of Conduct Simple +class PackageVersion(GitHubModel): + """Package Version - Code of Conduct Simple + A version of a software package """ + id: int = Field(description="Unique identifier of the package version.") + name: str = Field(description="The name of the package version.") url: str = Field() - key: str = Field() - name: str = Field() - html_url: Union[str, None] = Field() + package_html_url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + description: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + deleted_at: Missing[datetime] = Field(default=UNSET) + metadata: Missing[PackageVersionPropMetadata] = Field( + default=UNSET, title="Package Version Metadata" + ) -model_rebuild(CodeOfConductSimple) +class PackageVersionPropMetadata(GitHubModel): + """Package Version Metadata""" -__all__ = ("CodeOfConductSimple",) + package_type: Literal[ + "npm", "maven", "rubygems", "docker", "nuget", "container" + ] = Field() + container: Missing[PackageVersionPropMetadataPropContainer] = Field( + default=UNSET, title="Container Metadata" + ) + docker: Missing[PackageVersionPropMetadataPropDocker] = Field( + default=UNSET, title="Docker Metadata" + ) + + +class PackageVersionPropMetadataPropContainer(GitHubModel): + """Container Metadata""" + + tags: list[str] = Field() + + +class PackageVersionPropMetadataPropDocker(GitHubModel): + """Docker Metadata""" + + tag: Missing[list[str]] = Field(default=UNSET) + + +model_rebuild(PackageVersion) +model_rebuild(PackageVersionPropMetadata) +model_rebuild(PackageVersionPropMetadataPropContainer) +model_rebuild(PackageVersionPropMetadataPropDocker) + +__all__ = ( + "PackageVersion", + "PackageVersionPropMetadata", + "PackageVersionPropMetadataPropContainer", + "PackageVersionPropMetadataPropDocker", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0193.py b/githubkit/versions/ghec_v2022_11_28/models/group_0193.py index 04b3f3fed..c7a2781c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0193.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0193.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,187 +17,95 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0018 import LicenseSimple -from .group_0019 import Repository -from .group_0146 import SecurityAndAnalysis -from .group_0192 import CodeOfConductSimple +from .group_0003 import SimpleUser -class FullRepository(GitHubModel): - """Full Repository +class OrganizationProgrammaticAccessGrantRequest(GitHubModel): + """Simple Organization Programmatic Access Grant Request - Full Repository + Minimal representation of an organization programmatic access grant request for + enumerations """ - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field() - open_issues_count: int = Field() - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: bool = Field() - has_projects: bool = Field() - has_wiki: bool = Field() - has_pages: bool = Field() - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: bool = Field() - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests." ) - pushed_at: datetime = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + reason: Union[str, None] = Field(description="Reason for requesting access.") + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." ) - 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).", + repositories_url: str = Field( + description="URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`." ) - 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.", + permissions: OrganizationProgrammaticAccessGrantRequestPropPermissions = Field( + description="Permissions requested, categorized by type of permission." ) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - subscribers_count: int = Field() - network_count: int = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - parent: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." + created_at: str = Field( + description="Date and time when the request for access was created." ) - source: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." ) - forks: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, description="Whether anonymous git access is allowed." + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." ) - code_of_conduct: Missing[CodeOfConductSimple] = Field( - default=UNSET, - title="Code Of Conduct Simple", - description="Code of Conduct Simple", + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." ) - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." ) - custom_properties: Missing[FullRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." ) -class FullRepositoryPropPermissions(GitHubModel): - """FullRepositoryPropPermissions""" +class OrganizationProgrammaticAccessGrantRequestPropPermissions(GitHubModel): + """OrganizationProgrammaticAccessGrantRequestPropPermissions - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() + Permissions requested, categorized by type of permission. + """ + organization: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository + ] = Field(default=UNSET) + other: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther + ] = Field(default=UNSET) -class FullRepositoryPropCustomProperties(ExtraGitHubModel): - """FullRepositoryPropCustomProperties - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" -model_rebuild(FullRepository) -model_rebuild(FullRepositoryPropPermissions) -model_rebuild(FullRepositoryPropCustomProperties) +model_rebuild(OrganizationProgrammaticAccessGrantRequest) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) __all__ = ( - "FullRepository", - "FullRepositoryPropCustomProperties", - "FullRepositoryPropPermissions", + "OrganizationProgrammaticAccessGrantRequest", + "OrganizationProgrammaticAccessGrantRequestPropPermissions", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0194.py b/githubkit/versions/ghec_v2022_11_28/models/group_0194.py index a9156b530..9cc3f78de 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0194.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0194.py @@ -9,56 +9,100 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class RuleSuitesItems(GitHubModel): - """RuleSuitesItems""" - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." +class OrganizationProgrammaticAccessGrant(GitHubModel): + """Organization Programmatic Access Grant + + Minimal representation of an organization programmatic access grant for + enumerations + """ + + id: int = Field( + description="Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token." ) - actor_id: Missing[int] = Field( - default=UNSET, description="The number that identifies the user." + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." ) - actor_name: Missing[str] = Field( - default=UNSET, description="The handle for the GitHub user account." + repositories_url: str = Field( + description="URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`." ) - before_sha: Missing[str] = Field( - default=UNSET, description="The first commit sha before the push evaluation." + permissions: OrganizationProgrammaticAccessGrantPropPermissions = Field( + description="Permissions requested, categorized by type of permission." ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." + access_granted_at: str = Field( + description="Date and time when the fine-grained personal access token was approved to access the organization." ) - ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository associated with the rule evaluation.", + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." ) - repository_name: Missing[str] = Field( - default=UNSET, - description="The name of the repository without the `.git` extension.", + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." ) - pushed_at: Missing[datetime] = Field(default=UNSET) - result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` enforcement status.", + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." ) - evaluation_result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): + """OrganizationProgrammaticAccessGrantPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: Missing[ + OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + OrganizationProgrammaticAccessGrantPropPermissionsPropRepository + ] = Field(default=UNSET) + other: Missing[OrganizationProgrammaticAccessGrantPropPermissionsPropOther] = Field( + default=UNSET ) -model_rebuild(RuleSuitesItems) +class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" + + +model_rebuild(OrganizationProgrammaticAccessGrant) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) -__all__ = ("RuleSuitesItems",) +__all__ = ( + "OrganizationProgrammaticAccessGrant", + "OrganizationProgrammaticAccessGrantPropPermissions", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0195.py b/githubkit/versions/ghec_v2022_11_28/models/group_0195.py index 41bb0279e..e458bf37e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0195.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0195.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,90 +19,29 @@ from githubkit.utils import UNSET -class RuleSuite(GitHubModel): - """Rule Suite +class OrgPrivateRegistryConfigurationWithSelectedRepositories(GitHubModel): + """Organization private registry - Response + Private registry configuration for an organization """ - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." - ) - actor_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The number that identifies the user." - ) - actor_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The handle for the GitHub user account." - ) - before_sha: Missing[str] = Field( - default=UNSET, description="The first commit sha before the push evaluation." - ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." - ) - ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository associated with the rule evaluation.", - ) - repository_name: Missing[str] = Field( - default=UNSET, - description="The name of the repository without the `.git` extension.", - ) - pushed_at: Missing[datetime] = Field(default=UNSET) - result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` enforcement status.", - ) - evaluation_result: Missing[Union[None, Literal["pass", "fail", "bypass"]]] = Field( + name: str = Field(description="The name of the private registry configuration.") + registry_type: Literal["maven_repository"] = Field(description="The registry type.") + username: Missing[str] = Field( default=UNSET, - description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run.", + description="The username to use when authenticating with the private registry.", ) - rule_evaluations: Missing[list[RuleSuitePropRuleEvaluationsItems]] = Field( - default=UNSET, description="Details on the evaluated rules." + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." ) - - -class RuleSuitePropRuleEvaluationsItems(GitHubModel): - """RuleSuitePropRuleEvaluationsItems""" - - rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( - default=UNSET - ) - enforcement: Missing[Literal["active", "evaluate", "deleted ruleset"]] = Field( - default=UNSET, description="The enforcement level of this rule source." - ) - result: Missing[Literal["pass", "fail"]] = Field( - default=UNSET, - description="The result of the evaluation of the individual rule.", - ) - rule_type: Missing[str] = Field(default=UNSET, description="The type of rule.") - details: Missing[Union[str, None]] = Field( + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The detailed failure message for the rule. Null if the rule passed.", - ) - - -class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" - - type: Missing[str] = Field(default=UNSET, description="The type of rule source.") - id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of the rule source." - ) - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the rule source." + description="An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`.", ) + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(RuleSuite) -model_rebuild(RuleSuitePropRuleEvaluationsItems) -model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) +model_rebuild(OrgPrivateRegistryConfigurationWithSelectedRepositories) -__all__ = ( - "RuleSuite", - "RuleSuitePropRuleEvaluationsItems", - "RuleSuitePropRuleEvaluationsItemsPropRuleSource", -) +__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositories",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0196.py b/githubkit/versions/ghec_v2022_11_28/models/group_0196.py index 15db65155..a7a52f64e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0196.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0196.py @@ -9,39 +9,47 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser -class RepositoryAdvisoryCredit(GitHubModel): - """RepositoryAdvisoryCredit +class Project(GitHubModel): + """Project - A credit given to a user for a repository security advisory. + Projects are a way to organize columns and cards of work. """ - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - state: Literal["accepted", "declined", "pending"] = Field( - description="The state of the user's acceptance of the credit." + owner_url: str = Field() + url: str = Field() + html_url: str = Field() + columns_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="Name of the project") + body: Union[str, None] = Field(description="Body of the project") + number: int = Field() + state: str = Field(description="State of the project; either 'open' or 'closed'") + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + default=UNSET, + description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", ) -model_rebuild(RepositoryAdvisoryCredit) +model_rebuild(Project) -__all__ = ("RepositoryAdvisoryCredit",) +__all__ = ("Project",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0197.py b/githubkit/versions/ghec_v2022_11_28/models/group_0197.py index 358a7dcd6..323c1ba32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0197.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0197.py @@ -9,200 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0001 import CvssSeverities -from .group_0002 import SimpleUser -from .group_0060 import Team -from .group_0196 import RepositoryAdvisoryCredit +class CustomPropertyValue(GitHubModel): + """Custom Property Value -class RepositoryAdvisory(GitHubModel): - """RepositoryAdvisory - - A repository security advisory. - """ - - ghsa_id: str = Field(description="The GitHub Security Advisory ID.") - cve_id: Union[str, None] = Field( - description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - url: str = Field(description="The API URL for the advisory.") - html_url: str = Field(description="The URL for the advisory.") - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: Union[Annotated[str, Field(max_length=65535)], None] = Field( - description="A detailed description of what the advisory entails." - ) - severity: Union[None, Literal["critical", "high", "medium", "low"]] = Field( - description="The severity of the advisory." - ) - author: None = Field(description="The author of the advisory.") - publisher: None = Field(description="The publisher of the advisory.") - identifiers: list[RepositoryAdvisoryPropIdentifiersItems] = Field() - state: Literal["published", "closed", "withdrawn", "draft", "triage"] = Field( - description="The state of the advisory." - ) - created_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was created, in ISO 8601 format." - ) - updated_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was last updated, in ISO 8601 format." - ) - published_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was published, in ISO 8601 format." - ) - closed_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was closed, in ISO 8601 format." - ) - withdrawn_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was withdrawn, in ISO 8601 format." - ) - submission: Union[RepositoryAdvisoryPropSubmission, None] = Field() - vulnerabilities: Union[list[RepositoryAdvisoryVulnerability], None] = Field() - cvss: Union[RepositoryAdvisoryPropCvss, None] = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: Union[list[RepositoryAdvisoryPropCwesItems], None] = Field() - cwe_ids: Union[list[str], None] = Field(description="A list of only the CWE IDs.") - credits_: Union[list[RepositoryAdvisoryPropCreditsItems], None] = Field( - alias="credits" - ) - credits_detailed: Union[list[RepositoryAdvisoryCredit], None] = Field() - collaborating_users: Union[list[SimpleUser], None] = Field( - description="A list of users that collaborate on the advisory." - ) - collaborating_teams: Union[list[Team], None] = Field( - description="A list of teams that collaborate on the advisory." - ) - private_fork: None = Field( - description="A temporary private fork of the advisory's repository for collaborating on a fix." - ) - - -class RepositoryAdvisoryPropIdentifiersItems(GitHubModel): - """RepositoryAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") - value: str = Field(description="The identifier value.") - - -class RepositoryAdvisoryPropSubmission(GitHubModel): - """RepositoryAdvisoryPropSubmission""" - - accepted: bool = Field( - description="Whether a private vulnerability report was accepted by the repository's administrators." - ) - - -class RepositoryAdvisoryPropCvss(GitHubModel): - """RepositoryAdvisoryPropCvss""" - - vector_string: Union[str, None] = Field(description="The CVSS vector.") - score: Union[Annotated[float, Field(le=10.0)], None] = Field( - description="The CVSS score." - ) - - -class RepositoryAdvisoryPropCwesItems(GitHubModel): - """RepositoryAdvisoryPropCwesItems""" - - cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") - name: str = Field(description="The name of the CWE.") - - -class RepositoryAdvisoryPropCreditsItems(GitHubModel): - """RepositoryAdvisoryPropCreditsItems""" - - login: Missing[str] = Field( - default=UNSET, description="The username of the user credited." - ) - type: Missing[ - Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - ] = Field(default=UNSET, description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryVulnerability(GitHubModel): - """RepositoryAdvisoryVulnerability - - A product affected by the vulnerability detailed in a repository security - advisory. - """ - - package: Union[RepositoryAdvisoryVulnerabilityPropPackage, None] = Field( - description="The name of the package affected by the vulnerability." - ) - vulnerable_version_range: Union[str, None] = Field( - description="The range of the package versions affected by the vulnerability." - ) - patched_versions: Union[str, None] = Field( - description="The package version(s) that resolve the vulnerability." - ) - vulnerable_functions: Union[list[str], None] = Field( - description="The functions in the package that are affected." - ) - - -class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): - """RepositoryAdvisoryVulnerabilityPropPackage - - The name of the package affected by the vulnerability. + Custom property name and associated value """ - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Union[str, None] = Field( - description="The unique package name within its ecosystem." + property_name: str = Field(description="The name of the property") + value: Union[str, list[str], None] = Field( + description="The value assigned to the property" ) -model_rebuild(RepositoryAdvisory) -model_rebuild(RepositoryAdvisoryPropIdentifiersItems) -model_rebuild(RepositoryAdvisoryPropSubmission) -model_rebuild(RepositoryAdvisoryPropCvss) -model_rebuild(RepositoryAdvisoryPropCwesItems) -model_rebuild(RepositoryAdvisoryPropCreditsItems) -model_rebuild(RepositoryAdvisoryVulnerability) -model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) +model_rebuild(CustomPropertyValue) -__all__ = ( - "RepositoryAdvisory", - "RepositoryAdvisoryPropCreditsItems", - "RepositoryAdvisoryPropCvss", - "RepositoryAdvisoryPropCwesItems", - "RepositoryAdvisoryPropIdentifiersItems", - "RepositoryAdvisoryPropSubmission", - "RepositoryAdvisoryVulnerability", - "RepositoryAdvisoryVulnerabilityPropPackage", -) +__all__ = ("CustomPropertyValue",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0198.py b/githubkit/versions/ghec_v2022_11_28/models/group_0198.py index 0e812920b..bfc5e180f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0198.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0198.py @@ -9,44 +9,27 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class GroupMapping(GitHubModel): - """GroupMapping +from .group_0197 import CustomPropertyValue - External Groups to be mapped to a team for membership - """ - groups: Missing[list[GroupMappingPropGroupsItems]] = Field( - default=UNSET, description="Array of groups to be mapped to this team" - ) +class OrgRepoCustomPropertyValues(GitHubModel): + """Organization Repository Custom Property Values + List of custom property values for a repository + """ -class GroupMappingPropGroupsItems(GitHubModel): - """GroupMappingPropGroupsItems""" - - group_id: str = Field(description="The ID of the group") - group_name: str = Field(description="The name of the group") - group_description: str = Field(description="a description of the group") - status: Missing[str] = Field( - default=UNSET, description="synchronization status for this group mapping" - ) - synced_at: Missing[Union[str, None]] = Field( - default=UNSET, description="the time of the last sync for this group-mapping" + repository_id: int = Field() + repository_name: str = Field() + repository_full_name: str = Field() + properties: list[CustomPropertyValue] = Field( + description="List of custom property names and associated values" ) -model_rebuild(GroupMapping) -model_rebuild(GroupMappingPropGroupsItems) +model_rebuild(OrgRepoCustomPropertyValues) -__all__ = ( - "GroupMapping", - "GroupMappingPropGroupsItems", -) +__all__ = ("OrgRepoCustomPropertyValues",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0199.py b/githubkit/versions/ghec_v2022_11_28/models/group_0199.py index 6c8f82eb7..35b60a16d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0199.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0199.py @@ -9,131 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0059 import TeamSimple +class CodeOfConductSimple(GitHubModel): + """Code Of Conduct Simple -class TeamFull(GitHubModel): - """Full Team - - Groups of organization members that gives permissions on specified repositories. + Code of Conduct Simple """ - id: int = Field(description="Unique identifier of the team") - node_id: str = Field() - url: str = Field(description="URL for the team") - html_url: str = Field() - name: str = Field(description="Name of the team") - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[Literal["closed", "secret"]] = Field( - default=UNSET, description="The level of privacy this team should have" - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET, description="The notification setting the team has set") - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - members_url: str = Field() - repositories_url: str = Field() - parent: Missing[Union[None, TeamSimple]] = Field(default=UNSET) - members_count: int = Field() - repos_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - organization: TeamOrganization = Field( - title="Team Organization", description="Team Organization" - ) - ldap_dn: Missing[str] = Field( - default=UNSET, - description="Distinguished Name (DN) that team maps to within LDAP environment", - ) - - -class TeamOrganization(GitHubModel): - """Team Organization - - Team Organization - """ - - login: str = Field() - id: int = Field() - node_id: str = Field() url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - blog: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - is_verified: Missing[bool] = Field(default=UNSET) - has_organization_projects: bool = Field() - has_repository_projects: bool = Field() - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - html_url: str = Field() - created_at: datetime = Field() - type: str = Field() - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - private_gists: Missing[Union[int, None]] = Field(default=UNSET) - disk_usage: Missing[Union[int, None]] = Field(default=UNSET) - collaborators: Missing[Union[int, None]] = Field(default=UNSET) - billing_email: Missing[Union[str, None]] = Field(default=UNSET) - plan: Missing[TeamOrganizationPropPlan] = Field(default=UNSET) - default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( - default=UNSET - ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() - - -class TeamOrganizationPropPlan(GitHubModel): - """TeamOrganizationPropPlan""" - + key: str = Field() name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) + html_url: Union[str, None] = Field() -model_rebuild(TeamFull) -model_rebuild(TeamOrganization) -model_rebuild(TeamOrganizationPropPlan) +model_rebuild(CodeOfConductSimple) -__all__ = ( - "TeamFull", - "TeamOrganization", - "TeamOrganizationPropPlan", -) +__all__ = ("CodeOfConductSimple",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0200.py b/githubkit/versions/ghec_v2022_11_28/models/group_0200.py index 2a4b6afdb..2dec6ef19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0200.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0200.py @@ -10,51 +10,195 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0130 import ReactionRollup +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple +from .group_0020 import Repository +from .group_0153 import SecurityAndAnalysis +from .group_0199 import CodeOfConductSimple -class TeamDiscussion(GitHubModel): - """Team Discussion +class FullRepository(GitHubModel): + """Full Repository - A team discussion is a persistent record of a free-form conversation within a - team. + Full Repository """ - author: Union[None, SimpleUser] = Field() - body: str = Field(description="The main text of the discussion.") - body_html: str = Field() - body_version: str = Field( - description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." - ) - comments_count: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - last_edited_at: Union[datetime, None] = Field() - html_url: str = Field() + id: int = Field() node_id: str = Field() - number: int = Field(description="The unique sequence number of a team discussion.") - pinned: bool = Field( - description="Whether or not this discussion should be pinned for easy retrieval." + name: str = Field() + full_name: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field( + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." ) - private: bool = Field( - description="Whether or not this discussion should be restricted to team members and organization owners." + default_branch: str = Field() + open_issues_count: int = Field() + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field() + has_projects: bool = Field() + has_wiki: bool = Field() + has_pages: bool = Field() + has_downloads: Missing[bool] = Field(default=UNSET) + has_discussions: bool = Field() + archived: bool = Field() + disabled: bool = Field( + description="Returns whether or not this repository disabled." ) - team_url: str = Field() - title: str = Field(description="The title of the discussion.") + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: datetime = Field() + created_at: datetime = Field() updated_at: datetime = Field() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + allow_update_branch: Missing[bool] = Field(default=UNSET) + use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + subscribers_count: int = Field() + network_count: int = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + parent: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + source: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + forks: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, description="Whether anonymous git access is allowed." + ) + code_of_conduct: Missing[CodeOfConductSimple] = Field( + default=UNSET, + title="Code Of Conduct Simple", + description="Code of Conduct Simple", + ) + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET + ) + custom_properties: Missing[FullRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class FullRepositoryPropPermissions(GitHubModel): + """FullRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + + +class FullRepositoryPropCustomProperties(ExtraGitHubModel): + """FullRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -model_rebuild(TeamDiscussion) +model_rebuild(FullRepository) +model_rebuild(FullRepositoryPropPermissions) +model_rebuild(FullRepositoryPropCustomProperties) -__all__ = ("TeamDiscussion",) +__all__ = ( + "FullRepository", + "FullRepositoryPropCustomProperties", + "FullRepositoryPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0201.py b/githubkit/versions/ghec_v2022_11_28/models/group_0201.py index faa320f87..a9156b530 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0201.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0201.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,35 +18,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0130 import ReactionRollup +class RuleSuitesItems(GitHubModel): + """RuleSuitesItems""" -class TeamDiscussionComment(GitHubModel): - """Team Discussion Comment - - A reply to a discussion within a team. - """ - - author: Union[None, SimpleUser] = Field() - body: str = Field(description="The main text of the comment.") - body_html: str = Field() - body_version: str = Field( - description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." + ) + actor_id: Missing[int] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[str] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", + ) + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", ) - created_at: datetime = Field() - last_edited_at: Union[datetime, None] = Field() - discussion_url: str = Field() - html_url: str = Field() - node_id: str = Field() - number: int = Field( - description="The unique sequence number of a team discussion comment." + evaluation_result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", ) - updated_at: datetime = Field() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamDiscussionComment) +model_rebuild(RuleSuitesItems) -__all__ = ("TeamDiscussionComment",) +__all__ = ("RuleSuitesItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0202.py b/githubkit/versions/ghec_v2022_11_28/models/group_0202.py index 694480c6d..41bb0279e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0202.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0202.py @@ -15,26 +15,94 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class RuleSuite(GitHubModel): + """Rule Suite -class Reaction(GitHubModel): - """Reaction - - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. + Response """ - id: int = Field() - node_id: str = Field() - user: Union[None, SimpleUser] = Field() - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field(description="The reaction to use") - created_at: datetime = Field() + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." + ) + actor_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", + ) + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", + ) + evaluation_result: Missing[Union[None, Literal["pass", "fail", "bypass"]]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run.", + ) + rule_evaluations: Missing[list[RuleSuitePropRuleEvaluationsItems]] = Field( + default=UNSET, description="Details on the evaluated rules." + ) + + +class RuleSuitePropRuleEvaluationsItems(GitHubModel): + """RuleSuitePropRuleEvaluationsItems""" + + rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( + default=UNSET + ) + enforcement: Missing[Literal["active", "evaluate", "deleted ruleset"]] = Field( + default=UNSET, description="The enforcement level of this rule source." + ) + result: Missing[Literal["pass", "fail"]] = Field( + default=UNSET, + description="The result of the evaluation of the individual rule.", + ) + rule_type: Missing[str] = Field(default=UNSET, description="The type of rule.") + details: Missing[Union[str, None]] = Field( + default=UNSET, + description="The detailed failure message for the rule. Null if the rule passed.", + ) + + +class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + + type: Missing[str] = Field(default=UNSET, description="The type of rule source.") + id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of the rule source." + ) + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the rule source." + ) -model_rebuild(Reaction) +model_rebuild(RuleSuite) +model_rebuild(RuleSuitePropRuleEvaluationsItems) +model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) -__all__ = ("Reaction",) +__all__ = ( + "RuleSuite", + "RuleSuitePropRuleEvaluationsItems", + "RuleSuitePropRuleEvaluationsItemsPropRuleSource", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0203.py b/githubkit/versions/ghec_v2022_11_28/models/group_0203.py index bf5d392cb..6eb920317 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0203.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0203.py @@ -15,22 +15,33 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser -class TeamMembership(GitHubModel): - """Team Membership - Team Membership +class RepositoryAdvisoryCredit(GitHubModel): + """RepositoryAdvisoryCredit + + A credit given to a user for a repository security advisory. """ - url: str = Field() - role: Literal["member", "maintainer"] = Field( - default="member", description="The role of the user in the team." - ) - state: Literal["active", "pending"] = Field( - description="The state of the user's membership in the team." + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + state: Literal["accepted", "declined", "pending"] = Field( + description="The state of the user's acceptance of the credit." ) -model_rebuild(TeamMembership) +model_rebuild(RepositoryAdvisoryCredit) -__all__ = ("TeamMembership",) +__all__ = ("RepositoryAdvisoryCredit",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0204.py b/githubkit/versions/ghec_v2022_11_28/models/group_0204.py index fb58fa012..b7657af70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0204.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0204.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,51 +18,191 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0001 import CvssSeverities +from .group_0003 import SimpleUser +from .group_0065 import Team +from .group_0203 import RepositoryAdvisoryCredit -class TeamProject(GitHubModel): - """Team Project +class RepositoryAdvisory(GitHubModel): + """RepositoryAdvisory - A team's access to a project. + A repository security advisory. """ - owner_url: str = Field() - url: str = Field() - html_url: str = Field() - columns_url: str = Field() - id: int = Field() - node_id: str = Field() - name: str = Field() - body: Union[str, None] = Field() - number: int = Field() - state: str = Field() - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: str = Field() - updated_at: str = Field() - organization_permission: Missing[str] = Field( - default=UNSET, - description="The organization permission for this project. Only present when owner is an organization.", + ghsa_id: str = Field(description="The GitHub Security Advisory ID.") + cve_id: Union[str, None] = Field( + description="The Common Vulnerabilities and Exposures (CVE) ID." ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether the project is private or not. Only present when owner is an organization.", + url: str = Field(description="The API URL for the advisory.") + html_url: str = Field(description="The URL for the advisory.") + summary: str = Field( + max_length=1024, description="A short summary of the advisory." ) - permissions: TeamProjectPropPermissions = Field() + description: Union[Annotated[str, Field(max_length=65535)], None] = Field( + description="A detailed description of what the advisory entails." + ) + severity: Union[None, Literal["critical", "high", "medium", "low"]] = Field( + description="The severity of the advisory." + ) + author: None = Field(description="The author of the advisory.") + publisher: None = Field(description="The publisher of the advisory.") + identifiers: list[RepositoryAdvisoryPropIdentifiersItems] = Field() + state: Literal["published", "closed", "withdrawn", "draft", "triage"] = Field( + description="The state of the advisory." + ) + created_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was created, in ISO 8601 format." + ) + updated_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was last updated, in ISO 8601 format." + ) + published_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was published, in ISO 8601 format." + ) + closed_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was closed, in ISO 8601 format." + ) + withdrawn_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was withdrawn, in ISO 8601 format." + ) + submission: Union[RepositoryAdvisoryPropSubmission, None] = Field() + vulnerabilities: Union[list[RepositoryAdvisoryVulnerability], None] = Field() + cvss: Union[RepositoryAdvisoryPropCvss, None] = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + cwes: Union[list[RepositoryAdvisoryPropCwesItems], None] = Field() + cwe_ids: Union[list[str], None] = Field(description="A list of only the CWE IDs.") + credits_: Union[list[RepositoryAdvisoryPropCreditsItems], None] = Field( + alias="credits" + ) + credits_detailed: Union[list[RepositoryAdvisoryCredit], None] = Field() + collaborating_users: Union[list[SimpleUser], None] = Field( + description="A list of users that collaborate on the advisory." + ) + collaborating_teams: Union[list[Team], None] = Field( + description="A list of teams that collaborate on the advisory." + ) + private_fork: None = Field( + description="A temporary private fork of the advisory's repository for collaborating on a fix." + ) + + +class RepositoryAdvisoryPropIdentifiersItems(GitHubModel): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") + value: str = Field(description="The identifier value.") -class TeamProjectPropPermissions(GitHubModel): - """TeamProjectPropPermissions""" +class RepositoryAdvisoryPropSubmission(GitHubModel): + """RepositoryAdvisoryPropSubmission""" - read: bool = Field() - write: bool = Field() - admin: bool = Field() + accepted: bool = Field( + description="Whether a private vulnerability report was accepted by the repository's administrators." + ) + + +class RepositoryAdvisoryPropCvss(GitHubModel): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] = Field(description="The CVSS vector.") + score: Union[Annotated[float, Field(le=10.0)], None] = Field( + description="The CVSS score." + ) + + +class RepositoryAdvisoryPropCwesItems(GitHubModel): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") + name: str = Field(description="The name of the CWE.") + + +class RepositoryAdvisoryPropCreditsItems(GitHubModel): + """RepositoryAdvisoryPropCreditsItems""" + + login: Missing[str] = Field( + default=UNSET, description="The username of the user credited." + ) + type: Missing[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] = Field(default=UNSET, description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryVulnerability(GitHubModel): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackage, None] = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Union[str, None] = Field( + description="The range of the package versions affected by the vulnerability." + ) + patched_versions: Union[str, None] = Field( + description="The package version(s) that resolve the vulnerability." + ) + vulnerable_functions: Union[list[str], None] = Field( + description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Union[str, None] = Field( + description="The unique package name within its ecosystem." + ) -model_rebuild(TeamProject) -model_rebuild(TeamProjectPropPermissions) +model_rebuild(RepositoryAdvisory) +model_rebuild(RepositoryAdvisoryPropIdentifiersItems) +model_rebuild(RepositoryAdvisoryPropSubmission) +model_rebuild(RepositoryAdvisoryPropCvss) +model_rebuild(RepositoryAdvisoryPropCwesItems) +model_rebuild(RepositoryAdvisoryPropCreditsItems) +model_rebuild(RepositoryAdvisoryVulnerability) +model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) __all__ = ( - "TeamProject", - "TeamProjectPropPermissions", + "RepositoryAdvisory", + "RepositoryAdvisoryPropCreditsItems", + "RepositoryAdvisoryPropCvss", + "RepositoryAdvisoryPropCwesItems", + "RepositoryAdvisoryPropIdentifiersItems", + "RepositoryAdvisoryPropSubmission", + "RepositoryAdvisoryVulnerability", + "RepositoryAdvisoryVulnerabilityPropPackage", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0205.py b/githubkit/versions/ghec_v2022_11_28/models/group_0205.py index 3a0036823..0e812920b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0205.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0205.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,154 +17,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0018 import LicenseSimple +class GroupMapping(GitHubModel): + """GroupMapping -class TeamRepository(GitHubModel): - """Team Repository - - A team's access to a repository. + External Groups to be mapped to a team for membership """ - id: int = Field(description="Unique identifier of the repository") - node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - forks: int = Field() - permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) - role_name: Missing[str] = Field(default=UNSET) - owner: Union[None, SimpleUser] = Field() - private: bool = Field( - default=False, description="Whether the repository is private or public." - ) - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field() - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." + groups: Missing[list[GroupMappingPropGroupsItems]] = Field( + default=UNSET, description="Array of groups to be mapped to this team" ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) -class TeamRepositoryPropPermissions(GitHubModel): - """TeamRepositoryPropPermissions""" +class GroupMappingPropGroupsItems(GitHubModel): + """GroupMappingPropGroupsItems""" - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) + group_id: str = Field(description="The ID of the group") + group_name: str = Field(description="The name of the group") + group_description: str = Field(description="a description of the group") + status: Missing[str] = Field( + default=UNSET, description="synchronization status for this group mapping" + ) + synced_at: Missing[Union[str, None]] = Field( + default=UNSET, description="the time of the last sync for this group-mapping" + ) -model_rebuild(TeamRepository) -model_rebuild(TeamRepositoryPropPermissions) +model_rebuild(GroupMapping) +model_rebuild(GroupMappingPropGroupsItems) __all__ = ( - "TeamRepository", - "TeamRepositoryPropPermissions", + "GroupMapping", + "GroupMappingPropGroupsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0206.py b/githubkit/versions/ghec_v2022_11_28/models/group_0206.py index 664ab555c..afafd3c61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0206.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0206.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,32 +18,122 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0064 import TeamSimple -class ProjectCard(GitHubModel): - """Project Card +class TeamFull(GitHubModel): + """Full Team - Project cards represent a scope of work. + Groups of organization members that gives permissions on specified repositories. """ - url: str = Field() - id: int = Field(description="The project card's ID") + id: int = Field(description="Unique identifier of the team") node_id: str = Field() - note: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() + url: str = Field(description="URL for the team") + html_url: str = Field() + name: str = Field(description="Name of the team") + slug: str = Field() + description: Union[str, None] = Field() + privacy: Missing[Literal["closed", "secret"]] = Field( + default=UNSET, description="The level of privacy this team should have" + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET, description="The notification setting the team has set") + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + members_url: str = Field() + repositories_url: str = Field() + parent: Missing[Union[None, TeamSimple]] = Field(default=UNSET) + members_count: int = Field() + repos_count: int = Field() created_at: datetime = Field() updated_at: datetime = Field() - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" + organization: TeamOrganization = Field( + title="Team Organization", description="Team Organization" ) - column_name: Missing[str] = Field(default=UNSET) - project_id: Missing[str] = Field(default=UNSET) - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - project_url: str = Field() + ldap_dn: Missing[str] = Field( + default=UNSET, + description="Distinguished Name (DN) that team maps to within LDAP environment", + ) + + +class TeamOrganization(GitHubModel): + """Team Organization + + Team Organization + """ + + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + blog: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + is_verified: Missing[bool] = Field(default=UNSET) + has_organization_projects: bool = Field() + has_repository_projects: bool = Field() + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + html_url: str = Field() + created_at: datetime = Field() + type: str = Field() + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + private_gists: Missing[Union[int, None]] = Field(default=UNSET) + disk_usage: Missing[Union[int, None]] = Field(default=UNSET) + collaborators: Missing[Union[int, None]] = Field(default=UNSET) + billing_email: Missing[Union[str, None]] = Field(default=UNSET) + plan: Missing[TeamOrganizationPropPlan] = Field(default=UNSET) + default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET + ) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() + + +class TeamOrganizationPropPlan(GitHubModel): + """TeamOrganizationPropPlan""" + + name: str = Field() + space: int = Field() + private_repos: int = Field() + filled_seats: Missing[int] = Field(default=UNSET) + seats: Missing[int] = Field(default=UNSET) -model_rebuild(ProjectCard) +model_rebuild(TeamFull) +model_rebuild(TeamOrganization) +model_rebuild(TeamOrganizationPropPlan) -__all__ = ("ProjectCard",) +__all__ = ( + "TeamFull", + "TeamOrganization", + "TeamOrganizationPropPlan", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0207.py b/githubkit/versions/ghec_v2022_11_28/models/group_0207.py index 08e6fd84f..295c25183 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0207.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0207.py @@ -10,28 +10,51 @@ from __future__ import annotations from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0137 import ReactionRollup -class ProjectColumn(GitHubModel): - """Project Column - Project columns contain cards of work. +class TeamDiscussion(GitHubModel): + """Team Discussion + + A team discussion is a persistent record of a free-form conversation within a + team. """ - url: str = Field() - project_url: str = Field() - cards_url: str = Field() - id: int = Field(description="The unique identifier of the project column") - node_id: str = Field() - name: str = Field(description="Name of the project column") + author: Union[None, SimpleUser] = Field() + body: str = Field(description="The main text of the discussion.") + body_html: str = Field() + body_version: str = Field( + description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ) + comments_count: int = Field() + comments_url: str = Field() created_at: datetime = Field() + last_edited_at: Union[datetime, None] = Field() + html_url: str = Field() + node_id: str = Field() + number: int = Field(description="The unique sequence number of a team discussion.") + pinned: bool = Field( + description="Whether or not this discussion should be pinned for easy retrieval." + ) + private: bool = Field( + description="Whether or not this discussion should be restricted to team members and organization owners." + ) + team_url: str = Field() + title: str = Field(description="The title of the discussion.") updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(ProjectColumn) +model_rebuild(TeamDiscussion) -__all__ = ("ProjectColumn",) +__all__ = ("TeamDiscussion",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0208.py b/githubkit/versions/ghec_v2022_11_28/models/group_0208.py index ac1506dc3..2b625ecb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0208.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0208.py @@ -9,25 +9,44 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0137 import ReactionRollup -class ProjectCollaboratorPermission(GitHubModel): - """Project Collaborator Permission +class TeamDiscussionComment(GitHubModel): + """Team Discussion Comment - Project Collaborator Permission + A reply to a discussion within a team. """ - permission: str = Field() - user: Union[None, SimpleUser] = Field() - - -model_rebuild(ProjectCollaboratorPermission) - -__all__ = ("ProjectCollaboratorPermission",) + author: Union[None, SimpleUser] = Field() + body: str = Field(description="The main text of the comment.") + body_html: str = Field() + body_version: str = Field( + description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ) + created_at: datetime = Field() + last_edited_at: Union[datetime, None] = Field() + discussion_url: str = Field() + html_url: str = Field() + node_id: str = Field() + number: int = Field( + description="The unique sequence number of a team discussion comment." + ) + updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +model_rebuild(TeamDiscussionComment) + +__all__ = ("TeamDiscussionComment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0209.py b/githubkit/versions/ghec_v2022_11_28/models/group_0209.py index 335b1a1b9..b14e4e21d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0209.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0209.py @@ -9,20 +9,32 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser + + +class Reaction(GitHubModel): + """Reaction -class RateLimit(GitHubModel): - """Rate Limit""" + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. + """ - limit: int = Field() - remaining: int = Field() - reset: int = Field() - used: int = Field() + id: int = Field() + node_id: str = Field() + user: Union[None, SimpleUser] = Field() + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field(description="The reaction to use") + created_at: datetime = Field() -model_rebuild(RateLimit) +model_rebuild(Reaction) -__all__ = ("RateLimit",) +__all__ = ("Reaction",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0210.py b/githubkit/versions/ghec_v2022_11_28/models/group_0210.py index cd8bdca72..bf5d392cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0210.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0210.py @@ -9,24 +9,28 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0209 import RateLimit -from .group_0211 import RateLimitOverviewPropResources - -class RateLimitOverview(GitHubModel): - """Rate Limit Overview +class TeamMembership(GitHubModel): + """Team Membership - Rate Limit Overview + Team Membership """ - resources: RateLimitOverviewPropResources = Field() - rate: RateLimit = Field(title="Rate Limit") + url: str = Field() + role: Literal["member", "maintainer"] = Field( + default="member", description="The role of the user in the team." + ) + state: Literal["active", "pending"] = Field( + description="The state of the user's membership in the team." + ) -model_rebuild(RateLimitOverview) +model_rebuild(TeamMembership) -__all__ = ("RateLimitOverview",) +__all__ = ("TeamMembership",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0211.py b/githubkit/versions/ghec_v2022_11_28/models/group_0211.py index 2866efe11..0c9701f5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0211.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0211.py @@ -9,33 +9,59 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0209 import RateLimit +from .group_0003 import SimpleUser + +class TeamProject(GitHubModel): + """Team Project -class RateLimitOverviewPropResources(GitHubModel): - """RateLimitOverviewPropResources""" + A team's access to a project. + """ - core: RateLimit = Field(title="Rate Limit") - graphql: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - search: RateLimit = Field(title="Rate Limit") - code_search: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - source_import: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - integration_manifest: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - code_scanning_upload: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - actions_runner_registration: Missing[RateLimit] = Field( - default=UNSET, title="Rate Limit" + owner_url: str = Field() + url: str = Field() + html_url: str = Field() + columns_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field() + body: Union[str, None] = Field() + number: int = Field() + state: str = Field() + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: str = Field() + updated_at: str = Field() + organization_permission: Missing[str] = Field( + default=UNSET, + description="The organization permission for this project. Only present when owner is an organization.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether the project is private or not. Only present when owner is an organization.", ) - scim: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - dependency_snapshots: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - code_scanning_autofix: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + permissions: TeamProjectPropPermissions = Field() + + +class TeamProjectPropPermissions(GitHubModel): + """TeamProjectPropPermissions""" + + read: bool = Field() + write: bool = Field() + admin: bool = Field() -model_rebuild(RateLimitOverviewPropResources) +model_rebuild(TeamProject) +model_rebuild(TeamProjectPropPermissions) -__all__ = ("RateLimitOverviewPropResources",) +__all__ = ( + "TeamProject", + "TeamProjectPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0212.py b/githubkit/versions/ghec_v2022_11_28/models/group_0212.py index b73f0a010..640d1e96a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0212.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0212.py @@ -18,40 +18,154 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple -class Artifact(GitHubModel): - """Artifact - An artifact +class TeamRepository(GitHubModel): + """Team Repository + + A team's access to a repository. """ - id: int = Field() + id: int = Field(description="Unique identifier of the repository") node_id: str = Field() - name: str = Field(description="The name of the artifact.") - size_in_bytes: int = Field(description="The size in bytes of the artifact.") + name: str = Field(description="The name of the repository.") + full_name: str = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + forks: int = Field() + permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + owner: Union[None, SimpleUser] = Field() + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() url: str = Field() - archive_download_url: str = Field() - expired: bool = Field(description="Whether or not the artifact has expired.") + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field() + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: Union[datetime, None] = Field() created_at: Union[datetime, None] = Field() - expires_at: Union[datetime, None] = Field() updated_at: Union[datetime, None] = Field() - workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) - - -class ArtifactPropWorkflowRun(GitHubModel): - """ArtifactPropWorkflowRun""" - - id: Missing[int] = Field(default=UNSET) - repository_id: Missing[int] = Field(default=UNSET) - head_repository_id: Missing[int] = Field(default=UNSET) - head_branch: Missing[str] = Field(default=UNSET) - head_sha: Missing[str] = Field(default=UNSET) - - -model_rebuild(Artifact) -model_rebuild(ArtifactPropWorkflowRun) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + + +class TeamRepositoryPropPermissions(GitHubModel): + """TeamRepositoryPropPermissions""" + + admin: bool = Field() + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + + +model_rebuild(TeamRepository) +model_rebuild(TeamRepositoryPropPermissions) __all__ = ( - "Artifact", - "ArtifactPropWorkflowRun", + "TeamRepository", + "TeamRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0213.py b/githubkit/versions/ghec_v2022_11_28/models/group_0213.py index e8023d141..8cdb479b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0213.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0213.py @@ -10,6 +10,7 @@ from __future__ import annotations from datetime import datetime +from typing import Union from pydantic import Field @@ -17,35 +18,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class ActionsCacheList(GitHubModel): - """Repository actions caches - Repository actions caches +class ProjectCard(GitHubModel): + """Project Card + + Project cards represent a scope of work. """ - total_count: int = Field(description="Total number of caches") - actions_caches: list[ActionsCacheListPropActionsCachesItems] = Field( - description="Array of caches" + url: str = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" ) + column_name: Missing[str] = Field(default=UNSET) + project_id: Missing[str] = Field(default=UNSET) + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + project_url: str = Field() -class ActionsCacheListPropActionsCachesItems(GitHubModel): - """ActionsCacheListPropActionsCachesItems""" - - id: Missing[int] = Field(default=UNSET) - ref: Missing[str] = Field(default=UNSET) - key: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - last_accessed_at: Missing[datetime] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - size_in_bytes: Missing[int] = Field(default=UNSET) - - -model_rebuild(ActionsCacheList) -model_rebuild(ActionsCacheListPropActionsCachesItems) +model_rebuild(ProjectCard) -__all__ = ( - "ActionsCacheList", - "ActionsCacheListPropActionsCachesItems", -) +__all__ = ("ProjectCard",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0214.py b/githubkit/versions/ghec_v2022_11_28/models/group_0214.py index 2a7eb2be6..08e6fd84f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0214.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0214.py @@ -10,101 +10,28 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class Job(GitHubModel): - """Job +class ProjectColumn(GitHubModel): + """Project Column - Information of a job execution in a workflow run + Project columns contain cards of work. """ - id: int = Field(description="The id of the job.") - run_id: int = Field(description="The id of the associated workflow run.") - run_url: str = Field() - run_attempt: Missing[int] = Field( - default=UNSET, - description="Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.", - ) - node_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being run.") url: str = Field() - html_url: Union[str, None] = Field() - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] = Field(description="The phase of the lifecycle that the job is currently in.") - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field(description="The outcome of the job.") - created_at: datetime = Field( - description="The time that the job created, in ISO 8601 format." - ) - started_at: datetime = Field( - description="The time that the job started, in ISO 8601 format." - ) - completed_at: Union[datetime, None] = Field( - description="The time that the job finished, in ISO 8601 format." - ) - name: str = Field(description="The name of the job.") - steps: Missing[list[JobPropStepsItems]] = Field( - default=UNSET, description="Steps in this job." - ) - check_run_url: str = Field() - labels: list[str] = Field( - description='Labels for the workflow job. Specified by the "runs_on" attribute in the action\'s workflow file.' - ) - runner_id: Union[int, None] = Field( - description="The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_name: Union[str, None] = Field( - description="The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - head_branch: Union[str, None] = Field(description="The name of the current branch.") - - -class JobPropStepsItems(GitHubModel): - """JobPropStepsItems""" - - status: Literal["queued", "in_progress", "completed"] = Field( - description="The phase of the lifecycle that the job is currently in." - ) - conclusion: Union[str, None] = Field(description="The outcome of the job.") - name: str = Field(description="The name of the job.") - number: int = Field() - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="The time that the step started, in ISO 8601 format." - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="The time that the job finished, in ISO 8601 format." - ) + project_url: str = Field() + cards_url: str = Field() + id: int = Field(description="The unique identifier of the project column") + node_id: str = Field() + name: str = Field(description="Name of the project column") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(Job) -model_rebuild(JobPropStepsItems) +model_rebuild(ProjectColumn) -__all__ = ( - "Job", - "JobPropStepsItems", -) +__all__ = ("ProjectColumn",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0215.py b/githubkit/versions/ghec_v2022_11_28/models/group_0215.py index cceb6bb55..8665206a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0215.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0215.py @@ -9,28 +9,25 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0003 import SimpleUser -class OidcCustomSubRepo(GitHubModel): - """Actions OIDC subject customization for a repository +class ProjectCollaboratorPermission(GitHubModel): + """Project Collaborator Permission - Actions OIDC subject customization for a repository + Project Collaborator Permission """ - 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.", - ) + permission: str = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(OidcCustomSubRepo) +model_rebuild(ProjectCollaboratorPermission) -__all__ = ("OidcCustomSubRepo",) +__all__ = ("ProjectCollaboratorPermission",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0216.py b/githubkit/versions/ghec_v2022_11_28/models/group_0216.py index 4e5c3a572..335b1a1b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0216.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0216.py @@ -9,24 +9,20 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ActionsSecret(GitHubModel): - """Actions Secret - - Set secrets for GitHub Actions. - """ +class RateLimit(GitHubModel): + """Rate Limit""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + limit: int = Field() + remaining: int = Field() + reset: int = Field() + used: int = Field() -model_rebuild(ActionsSecret) +model_rebuild(RateLimit) -__all__ = ("ActionsSecret",) +__all__ = ("RateLimit",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0217.py b/githubkit/versions/ghec_v2022_11_28/models/group_0217.py index cb0c0f09c..41314e47d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0217.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0217.py @@ -9,26 +9,24 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0216 import RateLimit +from .group_0218 import RateLimitOverviewPropResources + + +class RateLimitOverview(GitHubModel): + """Rate Limit Overview -class ActionsVariable(GitHubModel): - """Actions Variable""" + Rate Limit Overview + """ - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) + resources: RateLimitOverviewPropResources = Field() + rate: RateLimit = Field(title="Rate Limit") -model_rebuild(ActionsVariable) +model_rebuild(RateLimitOverview) -__all__ = ("ActionsVariable",) +__all__ = ("RateLimitOverview",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0218.py b/githubkit/versions/ghec_v2022_11_28/models/group_0218.py index 5079bcff0..44839d451 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0218.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0218.py @@ -9,31 +9,33 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0216 import RateLimit -class ActionsRepositoryPermissions(GitHubModel): - """ActionsRepositoryPermissions""" - 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.", - ) - selected_actions_url: Missing[str] = Field( - default=UNSET, - description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", +class RateLimitOverviewPropResources(GitHubModel): + """RateLimitOverviewPropResources""" + + core: RateLimit = Field(title="Rate Limit") + graphql: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + search: RateLimit = Field(title="Rate Limit") + code_search: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + source_import: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + integration_manifest: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + code_scanning_upload: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + actions_runner_registration: Missing[RateLimit] = Field( + default=UNSET, title="Rate Limit" ) + scim: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + dependency_snapshots: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + code_scanning_autofix: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") -model_rebuild(ActionsRepositoryPermissions) +model_rebuild(RateLimitOverviewPropResources) -__all__ = ("ActionsRepositoryPermissions",) +__all__ = ("RateLimitOverviewPropResources",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0219.py b/githubkit/versions/ghec_v2022_11_28/models/group_0219.py index dbc0521ec..b73f0a010 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0219.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0219.py @@ -9,21 +9,49 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ActionsWorkflowAccessToRepository(GitHubModel): - """ActionsWorkflowAccessToRepository""" +class Artifact(GitHubModel): + """Artifact - access_level: Literal["none", "user", "organization", "enterprise"] = Field( - description="Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization. `enterprise` level access allows sharing across the enterprise." - ) + An artifact + """ + id: int = Field() + node_id: str = Field() + name: str = Field(description="The name of the artifact.") + size_in_bytes: int = Field(description="The size in bytes of the artifact.") + url: str = Field() + archive_download_url: str = Field() + expired: bool = Field(description="Whether or not the artifact has expired.") + created_at: Union[datetime, None] = Field() + expires_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) -model_rebuild(ActionsWorkflowAccessToRepository) -__all__ = ("ActionsWorkflowAccessToRepository",) +class ArtifactPropWorkflowRun(GitHubModel): + """ArtifactPropWorkflowRun""" + + id: Missing[int] = Field(default=UNSET) + repository_id: Missing[int] = Field(default=UNSET) + head_repository_id: Missing[int] = Field(default=UNSET) + head_branch: Missing[str] = Field(default=UNSET) + head_sha: Missing[str] = Field(default=UNSET) + + +model_rebuild(Artifact) +model_rebuild(ArtifactPropWorkflowRun) + +__all__ = ( + "Artifact", + "ArtifactPropWorkflowRun", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0220.py b/githubkit/versions/ghec_v2022_11_28/models/group_0220.py index 7ce075884..e8023d141 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0220.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0220.py @@ -9,63 +9,43 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PullRequestMinimal(GitHubModel): - """Pull Request Minimal""" - - id: int = Field() - number: int = Field() - url: str = Field() - head: PullRequestMinimalPropHead = Field() - base: PullRequestMinimalPropBase = Field() - - -class PullRequestMinimalPropHead(GitHubModel): - """PullRequestMinimalPropHead""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropHeadPropRepo = Field() - - -class PullRequestMinimalPropHeadPropRepo(GitHubModel): - """PullRequestMinimalPropHeadPropRepo""" - - id: int = Field() - url: str = Field() - name: str = Field() - +class ActionsCacheList(GitHubModel): + """Repository actions caches -class PullRequestMinimalPropBase(GitHubModel): - """PullRequestMinimalPropBase""" + Repository actions caches + """ - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropBasePropRepo = Field() + total_count: int = Field(description="Total number of caches") + actions_caches: list[ActionsCacheListPropActionsCachesItems] = Field( + description="Array of caches" + ) -class PullRequestMinimalPropBasePropRepo(GitHubModel): - """PullRequestMinimalPropBasePropRepo""" +class ActionsCacheListPropActionsCachesItems(GitHubModel): + """ActionsCacheListPropActionsCachesItems""" - id: int = Field() - url: str = Field() - name: str = Field() + id: Missing[int] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET) + key: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + last_accessed_at: Missing[datetime] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + size_in_bytes: Missing[int] = Field(default=UNSET) -model_rebuild(PullRequestMinimal) -model_rebuild(PullRequestMinimalPropHead) -model_rebuild(PullRequestMinimalPropHeadPropRepo) -model_rebuild(PullRequestMinimalPropBase) -model_rebuild(PullRequestMinimalPropBasePropRepo) +model_rebuild(ActionsCacheList) +model_rebuild(ActionsCacheListPropActionsCachesItems) __all__ = ( - "PullRequestMinimal", - "PullRequestMinimalPropBase", - "PullRequestMinimalPropBasePropRepo", - "PullRequestMinimalPropHead", - "PullRequestMinimalPropHeadPropRepo", + "ActionsCacheList", + "ActionsCacheListPropActionsCachesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0221.py b/githubkit/versions/ghec_v2022_11_28/models/group_0221.py index 29f15097a..2a7eb2be6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0221.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0221.py @@ -10,57 +10,101 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class SimpleCommit(GitHubModel): - """Simple Commit +class Job(GitHubModel): + """Job - A commit. + Information of a job execution in a workflow run """ - id: str = Field(description="SHA for the commit") - tree_id: str = Field(description="SHA for the commit's tree") - message: str = Field(description="Message describing the purpose of the commit") - timestamp: datetime = Field(description="Timestamp of the commit") - author: Union[SimpleCommitPropAuthor, None] = Field( - description="Information about the Git author" + id: int = Field(description="The id of the job.") + run_id: int = Field(description="The id of the associated workflow run.") + run_url: str = Field() + run_attempt: Missing[int] = Field( + default=UNSET, + description="Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.", ) - committer: Union[SimpleCommitPropCommitter, None] = Field( - description="Information about the Git committer" + node_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being run.") + url: str = Field() + html_url: Union[str, None] = Field() + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] = Field(description="The phase of the lifecycle that the job is currently in.") + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field(description="The outcome of the job.") + created_at: datetime = Field( + description="The time that the job created, in ISO 8601 format." ) + started_at: datetime = Field( + description="The time that the job started, in ISO 8601 format." + ) + completed_at: Union[datetime, None] = Field( + description="The time that the job finished, in ISO 8601 format." + ) + name: str = Field(description="The name of the job.") + steps: Missing[list[JobPropStepsItems]] = Field( + default=UNSET, description="Steps in this job." + ) + check_run_url: str = Field() + labels: list[str] = Field( + description='Labels for the workflow job. Specified by the "runs_on" attribute in the action\'s workflow file.' + ) + runner_id: Union[int, None] = Field( + description="The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_name: Union[str, None] = Field( + description="The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + head_branch: Union[str, None] = Field(description="The name of the current branch.") -class SimpleCommitPropAuthor(GitHubModel): - """SimpleCommitPropAuthor - - Information about the Git author - """ - - name: str = Field(description="Name of the commit's author") - email: str = Field(description="Git email address of the commit's author") - - -class SimpleCommitPropCommitter(GitHubModel): - """SimpleCommitPropCommitter - - Information about the Git committer - """ +class JobPropStepsItems(GitHubModel): + """JobPropStepsItems""" - name: str = Field(description="Name of the commit's committer") - email: str = Field(description="Git email address of the commit's committer") + status: Literal["queued", "in_progress", "completed"] = Field( + description="The phase of the lifecycle that the job is currently in." + ) + conclusion: Union[str, None] = Field(description="The outcome of the job.") + name: str = Field(description="The name of the job.") + number: int = Field() + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="The time that the step started, in ISO 8601 format." + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="The time that the job finished, in ISO 8601 format." + ) -model_rebuild(SimpleCommit) -model_rebuild(SimpleCommitPropAuthor) -model_rebuild(SimpleCommitPropCommitter) +model_rebuild(Job) +model_rebuild(JobPropStepsItems) __all__ = ( - "SimpleCommit", - "SimpleCommitPropAuthor", - "SimpleCommitPropCommitter", + "Job", + "JobPropStepsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0222.py b/githubkit/versions/ghec_v2022_11_28/models/group_0222.py index 03f7b0989..cceb6bb55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0222.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0222.py @@ -9,116 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0147 import MinimalRepository -from .group_0220 import PullRequestMinimal -from .group_0221 import SimpleCommit - -class WorkflowRun(GitHubModel): - """Workflow Run +class OidcCustomSubRepo(GitHubModel): + """Actions OIDC subject customization for a repository - An invocation of a workflow + Actions OIDC subject customization for a repository """ - id: int = Field(description="The ID of the workflow run.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow run." - ) - node_id: str = Field() - check_suite_id: Missing[int] = Field( - default=UNSET, description="The ID of the associated check suite." - ) - check_suite_node_id: Missing[str] = Field( - default=UNSET, description="The node ID of the associated check suite." - ) - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that points to the version of the workflow being run." - ) - path: str = Field(description="The full path of the workflow") - run_number: int = Field( - description="The auto incrementing run number for the workflow run." + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." ) - run_attempt: Missing[int] = Field( + include_claim_keys: Missing[list[str]] = Field( default=UNSET, - description="Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.", - ) - referenced_workflows: Missing[Union[list[ReferencedWorkflow], None]] = Field( - default=UNSET - ) - event: str = Field() - status: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - workflow_id: int = Field(description="The ID of the parent workflow.") - url: str = Field(description="The URL to the workflow run.") - html_url: str = Field() - pull_requests: Union[list[PullRequestMinimal], None] = Field( - description="Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - triggering_actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - run_started_at: Missing[datetime] = Field( - default=UNSET, description="The start time of the latest run. Resets on re-run." - ) - jobs_url: str = Field(description="The URL to the jobs for the workflow run.") - logs_url: str = Field( - description="The URL to download the logs for the workflow run." + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", ) - check_suite_url: str = Field(description="The URL to the associated check suite.") - artifacts_url: str = Field( - description="The URL to the artifacts for the workflow run." - ) - cancel_url: str = Field(description="The URL to cancel the workflow run.") - rerun_url: str = Field(description="The URL to rerun the workflow run.") - previous_attempt_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="The URL to the previous attempted run of this workflow, if one exists.", - ) - workflow_url: str = Field(description="The URL to the workflow.") - head_commit: Union[None, SimpleCommit] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - head_repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - head_repository_id: Missing[int] = Field(default=UNSET) - display_title: str = Field( - description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow." - ) - - -class ReferencedWorkflow(GitHubModel): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str = Field() - sha: str = Field() - ref: Missing[str] = Field(default=UNSET) -model_rebuild(WorkflowRun) -model_rebuild(ReferencedWorkflow) +model_rebuild(OidcCustomSubRepo) -__all__ = ( - "ReferencedWorkflow", - "WorkflowRun", -) +__all__ = ("OidcCustomSubRepo",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0223.py b/githubkit/versions/ghec_v2022_11_28/models/group_0223.py index e5d5dd672..4e5c3a572 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0223.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0223.py @@ -10,57 +10,23 @@ from __future__ import annotations from datetime import datetime -from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class ActionsSecret(GitHubModel): + """Actions Secret -class EnvironmentApprovals(GitHubModel): - """Environment Approval - - An entry in the reviews log for environment deployments + Set secrets for GitHub Actions. """ - environments: list[EnvironmentApprovalsPropEnvironmentsItems] = Field( - description="The list of environments that were approved or rejected" - ) - state: Literal["approved", "rejected", "pending"] = Field( - description="Whether deployment to the environment(s) was approved or rejected or pending (with comments)" - ) - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - comment: str = Field(description="The comment submitted with the deployment review") - - -class EnvironmentApprovalsPropEnvironmentsItems(GitHubModel): - """EnvironmentApprovalsPropEnvironmentsItems""" - - id: Missing[int] = Field(default=UNSET, description="The id of the environment.") - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, description="The name of the environment." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the environment was created, in ISO 8601 format.", - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the environment was last updated, in ISO 8601 format.", - ) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(EnvironmentApprovals) -model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) +model_rebuild(ActionsSecret) -__all__ = ( - "EnvironmentApprovals", - "EnvironmentApprovalsPropEnvironmentsItems", -) +__all__ = ("ActionsSecret",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0224.py b/githubkit/versions/ghec_v2022_11_28/models/group_0224.py index 831ca354e..cb0c0f09c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0224.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0224.py @@ -9,22 +9,26 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReviewCustomGatesCommentRequired(GitHubModel): - """ReviewCustomGatesCommentRequired""" +class ActionsVariable(GitHubModel): + """Actions Variable""" - environment_name: str = Field( - description="The name of the environment to approve or reject." + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + created_at: datetime = Field( + description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - comment: str = Field( - description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" + updated_at: datetime = Field( + description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) -model_rebuild(ReviewCustomGatesCommentRequired) +model_rebuild(ActionsVariable) -__all__ = ("ReviewCustomGatesCommentRequired",) +__all__ = ("ActionsVariable",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0225.py b/githubkit/versions/ghec_v2022_11_28/models/group_0225.py index 382e4485a..5079bcff0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0225.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0225.py @@ -18,20 +18,22 @@ from githubkit.utils import UNSET -class ReviewCustomGatesStateRequired(GitHubModel): - """ReviewCustomGatesStateRequired""" +class ActionsRepositoryPermissions(GitHubModel): + """ActionsRepositoryPermissions""" - environment_name: str = Field( - description="The name of the environment to approve or reject." + enabled: bool = Field( + description="Whether GitHub Actions is enabled on the repository." ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - comment: Missing[str] = Field( - default=UNSET, description="Optional comment to include with the review." + selected_actions_url: Missing[str] = Field( + default=UNSET, + description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", ) -model_rebuild(ReviewCustomGatesStateRequired) +model_rebuild(ActionsRepositoryPermissions) -__all__ = ("ReviewCustomGatesStateRequired",) +__all__ = ("ActionsRepositoryPermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0226.py b/githubkit/versions/ghec_v2022_11_28/models/group_0226.py index 1f2589bce..dbc0521ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0226.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0226.py @@ -9,65 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0060 import Team +class ActionsWorkflowAccessToRepository(GitHubModel): + """ActionsWorkflowAccessToRepository""" -class PendingDeploymentPropReviewersItems(GitHubModel): - """PendingDeploymentPropReviewersItems""" - - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." - ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) - - -class PendingDeployment(GitHubModel): - """Pending Deployment - - Details of a deployment that is waiting for protection rules to pass - """ - - environment: PendingDeploymentPropEnvironment = Field() - wait_timer: int = Field(description="The set duration of the wait timer") - wait_timer_started_at: Union[datetime, None] = Field( - description="The time that the wait timer began." - ) - current_user_can_approve: bool = Field( - description="Whether the currently authenticated user can approve the deployment" - ) - reviewers: list[PendingDeploymentPropReviewersItems] = Field( - description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed." - ) - - -class PendingDeploymentPropEnvironment(GitHubModel): - """PendingDeploymentPropEnvironment""" - - id: Missing[int] = Field(default=UNSET, description="The id of the environment.") - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, description="The name of the environment." + access_level: Literal["none", "user", "organization", "enterprise"] = Field( + description="Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization. `enterprise` level access allows sharing across the enterprise." ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) -model_rebuild(PendingDeploymentPropReviewersItems) -model_rebuild(PendingDeployment) -model_rebuild(PendingDeploymentPropEnvironment) +model_rebuild(ActionsWorkflowAccessToRepository) -__all__ = ( - "PendingDeployment", - "PendingDeploymentPropEnvironment", - "PendingDeploymentPropReviewersItems", -) +__all__ = ("ActionsWorkflowAccessToRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0227.py b/githubkit/versions/ghec_v2022_11_28/models/group_0227.py index 9e8156e8c..7ce075884 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0227.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0227.py @@ -9,63 +9,63 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild + + +class PullRequestMinimal(GitHubModel): + """Pull Request Minimal""" + + id: int = Field() + number: int = Field() + url: str = Field() + head: PullRequestMinimalPropHead = Field() + base: PullRequestMinimalPropBase = Field() + -from .group_0002 import SimpleUser -from .group_0008 import Integration +class PullRequestMinimalPropHead(GitHubModel): + """PullRequestMinimalPropHead""" + ref: str = Field() + sha: str = Field() + repo: PullRequestMinimalPropHeadPropRepo = Field() -class Deployment(GitHubModel): - """Deployment - A request for a specific ref(branch,sha,tag) to be deployed - """ +class PullRequestMinimalPropHeadPropRepo(GitHubModel): + """PullRequestMinimalPropHeadPropRepo""" + id: int = Field() url: str = Field() - id: int = Field(description="Unique identifier of the deployment") - node_id: str = Field() + name: str = Field() + + +class PullRequestMinimalPropBase(GitHubModel): + """PullRequestMinimalPropBase""" + + ref: str = Field() sha: str = Field() - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or sha." - ) - task: str = Field(description="Parameter to specify a task to execute") - payload: Union[DeploymentPropPayloadOneof0, str] = Field() - original_environment: Missing[str] = Field(default=UNSET) - environment: str = Field(description="Name for the target deployment environment.") - description: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - statuses_url: str = Field() - repository_url: str = Field() - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: false.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - - -class DeploymentPropPayloadOneof0(ExtraGitHubModel): - """DeploymentPropPayloadOneof0""" - - -model_rebuild(Deployment) -model_rebuild(DeploymentPropPayloadOneof0) + repo: PullRequestMinimalPropBasePropRepo = Field() + + +class PullRequestMinimalPropBasePropRepo(GitHubModel): + """PullRequestMinimalPropBasePropRepo""" + + id: int = Field() + url: str = Field() + name: str = Field() + + +model_rebuild(PullRequestMinimal) +model_rebuild(PullRequestMinimalPropHead) +model_rebuild(PullRequestMinimalPropHeadPropRepo) +model_rebuild(PullRequestMinimalPropBase) +model_rebuild(PullRequestMinimalPropBasePropRepo) __all__ = ( - "Deployment", - "DeploymentPropPayloadOneof0", + "PullRequestMinimal", + "PullRequestMinimalPropBase", + "PullRequestMinimalPropBasePropRepo", + "PullRequestMinimalPropHead", + "PullRequestMinimalPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0228.py b/githubkit/versions/ghec_v2022_11_28/models/group_0228.py index c81b4fcb7..29f15097a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0228.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0228.py @@ -9,104 +9,58 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WorkflowRunUsage(GitHubModel): - """Workflow Run Usage +class SimpleCommit(GitHubModel): + """Simple Commit - Workflow Run Usage + A commit. """ - billable: WorkflowRunUsagePropBillable = Field() - run_duration_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowRunUsagePropBillable(GitHubModel): - """WorkflowRunUsagePropBillable""" - - ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" - ) - macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" - ) - windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" - ) - - -class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntu""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( - Field(default=UNSET) + id: str = Field(description="SHA for the commit") + tree_id: str = Field(description="SHA for the commit's tree") + message: str = Field(description="Message describing the purpose of the commit") + timestamp: datetime = Field(description="Timestamp of the commit") + author: Union[SimpleCommitPropAuthor, None] = Field( + description="Information about the Git author" ) - - -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -class WorkflowRunUsagePropBillablePropMacos(GitHubModel): - """WorkflowRunUsagePropBillablePropMacos""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( - Field(default=UNSET) + committer: Union[SimpleCommitPropCommitter, None] = Field( + description="Information about the Git committer" ) -class WorkflowRunUsagePropBillablePropMacosPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" +class SimpleCommitPropAuthor(GitHubModel): + """SimpleCommitPropAuthor - job_id: int = Field() - duration_ms: int = Field() + Information about the Git author + """ + name: str = Field(description="Name of the commit's author") + email: str = Field(description="Git email address of the commit's author") -class WorkflowRunUsagePropBillablePropWindows(GitHubModel): - """WorkflowRunUsagePropBillablePropWindows""" - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems]] = ( - Field(default=UNSET) - ) +class SimpleCommitPropCommitter(GitHubModel): + """SimpleCommitPropCommitter + Information about the Git committer + """ -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() + name: str = Field(description="Name of the commit's committer") + email: str = Field(description="Git email address of the commit's committer") -model_rebuild(WorkflowRunUsage) -model_rebuild(WorkflowRunUsagePropBillable) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropMacos) -model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropWindows) -model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) +model_rebuild(SimpleCommit) +model_rebuild(SimpleCommitPropAuthor) +model_rebuild(SimpleCommitPropCommitter) __all__ = ( - "WorkflowRunUsage", - "WorkflowRunUsagePropBillable", - "WorkflowRunUsagePropBillablePropMacos", - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", - "WorkflowRunUsagePropBillablePropUbuntu", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", - "WorkflowRunUsagePropBillablePropWindows", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", + "SimpleCommit", + "SimpleCommitPropAuthor", + "SimpleCommitPropCommitter", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0229.py b/githubkit/versions/ghec_v2022_11_28/models/group_0229.py index f5831c47a..f728ec9d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0229.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0229.py @@ -9,64 +9,116 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0154 import MinimalRepository +from .group_0227 import PullRequestMinimal +from .group_0228 import SimpleCommit -class WorkflowUsage(GitHubModel): - """Workflow Usage - - Workflow Usage - """ - - billable: WorkflowUsagePropBillable = Field() +class WorkflowRun(GitHubModel): + """Workflow Run -class WorkflowUsagePropBillable(GitHubModel): - """WorkflowUsagePropBillable""" + An invocation of a workflow + """ - ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" + id: int = Field(description="The ID of the workflow run.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow run." ) - macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" + node_id: str = Field() + check_suite_id: Missing[int] = Field( + default=UNSET, description="The ID of the associated check suite." ) - windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" + check_suite_node_id: Missing[str] = Field( + default=UNSET, description="The node ID of the associated check suite." + ) + head_branch: Union[str, None] = Field() + head_sha: str = Field( + description="The SHA of the head commit that points to the version of the workflow being run." + ) + path: str = Field(description="The full path of the workflow") + run_number: int = Field( + description="The auto incrementing run number for the workflow run." + ) + run_attempt: Missing[int] = Field( + default=UNSET, + description="Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.", + ) + referenced_workflows: Missing[Union[list[ReferencedWorkflow], None]] = Field( + default=UNSET + ) + event: str = Field() + status: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + workflow_id: int = Field(description="The ID of the parent workflow.") + url: str = Field(description="The URL to the workflow run.") + html_url: str = Field() + pull_requests: Union[list[PullRequestMinimal], None] = Field( + description="Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + triggering_actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + run_started_at: Missing[datetime] = Field( + default=UNSET, description="The start time of the latest run. Resets on re-run." + ) + jobs_url: str = Field(description="The URL to the jobs for the workflow run.") + logs_url: str = Field( + description="The URL to download the logs for the workflow run." + ) + check_suite_url: str = Field(description="The URL to the associated check suite.") + artifacts_url: str = Field( + description="The URL to the artifacts for the workflow run." + ) + cancel_url: str = Field(description="The URL to cancel the workflow run.") + rerun_url: str = Field(description="The URL to rerun the workflow run.") + previous_attempt_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The URL to the previous attempted run of this workflow, if one exists.", + ) + workflow_url: str = Field(description="The URL to the workflow.") + head_commit: Union[None, SimpleCommit] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + head_repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + head_repository_id: Missing[int] = Field(default=UNSET) + display_title: str = Field( + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow." ) -class WorkflowUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowUsagePropBillablePropUbuntu""" - - total_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowUsagePropBillablePropMacos(GitHubModel): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: Missing[int] = Field(default=UNSET) - +class ReferencedWorkflow(GitHubModel): + """Referenced workflow -class WorkflowUsagePropBillablePropWindows(GitHubModel): - """WorkflowUsagePropBillablePropWindows""" + A workflow referenced/reused by the initial caller workflow + """ - total_ms: Missing[int] = Field(default=UNSET) + path: str = Field() + sha: str = Field() + ref: Missing[str] = Field(default=UNSET) -model_rebuild(WorkflowUsage) -model_rebuild(WorkflowUsagePropBillable) -model_rebuild(WorkflowUsagePropBillablePropUbuntu) -model_rebuild(WorkflowUsagePropBillablePropMacos) -model_rebuild(WorkflowUsagePropBillablePropWindows) +model_rebuild(WorkflowRun) +model_rebuild(ReferencedWorkflow) __all__ = ( - "WorkflowUsage", - "WorkflowUsagePropBillable", - "WorkflowUsagePropBillablePropMacos", - "WorkflowUsagePropBillablePropUbuntu", - "WorkflowUsagePropBillablePropWindows", + "ReferencedWorkflow", + "WorkflowRun", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0230.py b/githubkit/versions/ghec_v2022_11_28/models/group_0230.py index cbeafcc6d..f9c274d60 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0230.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0230.py @@ -10,40 +10,57 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser -class Activity(GitHubModel): - """Activity +class EnvironmentApprovals(GitHubModel): + """Environment Approval - Activity + An entry in the reviews log for environment deployments """ - id: int = Field() - node_id: str = Field() - before: str = Field(description="The SHA of the commit before the activity.") - after: str = Field(description="The SHA of the commit after the activity.") - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + environments: list[EnvironmentApprovalsPropEnvironmentsItems] = Field( + description="The list of environments that were approved or rejected" + ) + state: Literal["approved", "rejected", "pending"] = Field( + description="Whether deployment to the environment(s) was approved or rejected or pending (with comments)" + ) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + comment: str = Field(description="The comment submitted with the deployment review") + + +class EnvironmentApprovalsPropEnvironmentsItems(GitHubModel): + """EnvironmentApprovalsPropEnvironmentsItems""" + + id: Missing[int] = Field(default=UNSET, description="The id of the environment.") + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, description="The name of the environment." + ) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the environment was created, in ISO 8601 format.", + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the environment was last updated, in ISO 8601 format.", ) - timestamp: datetime = Field(description="The time when the activity occurred.") - activity_type: Literal[ - "push", - "force_push", - "branch_deletion", - "branch_creation", - "pr_merge", - "merge_queue_merge", - ] = Field(description="The type of the activity that was performed.") - actor: Union[None, SimpleUser] = Field() -model_rebuild(Activity) +model_rebuild(EnvironmentApprovals) +model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) -__all__ = ("Activity",) +__all__ = ( + "EnvironmentApprovals", + "EnvironmentApprovalsPropEnvironmentsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0231.py b/githubkit/versions/ghec_v2022_11_28/models/group_0231.py index 245d14611..831ca354e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0231.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0231.py @@ -14,22 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class Autolink(GitHubModel): - """Autolink reference +class ReviewCustomGatesCommentRequired(GitHubModel): + """ReviewCustomGatesCommentRequired""" - An autolink reference. - """ - - id: int = Field() - key_prefix: str = Field(description="The prefix of a key that is linkified.") - url_template: str = Field( - description="A template for the target URL that is generated if a key was found." + environment_name: str = Field( + description="The name of the environment to approve or reject." ) - is_alphanumeric: bool = Field( - description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." + comment: str = Field( + description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" ) -model_rebuild(Autolink) +model_rebuild(ReviewCustomGatesCommentRequired) -__all__ = ("Autolink",) +__all__ = ("ReviewCustomGatesCommentRequired",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0232.py b/githubkit/versions/ghec_v2022_11_28/models/group_0232.py index 481ac164d..382e4485a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0232.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0232.py @@ -9,25 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CheckAutomatedSecurityFixes(GitHubModel): - """Check Dependabot security updates - - Check Dependabot security updates - """ +class ReviewCustomGatesStateRequired(GitHubModel): + """ReviewCustomGatesStateRequired""" - enabled: bool = Field( - description="Whether Dependabot security updates are enabled for the repository." + environment_name: str = Field( + description="The name of the environment to approve or reject." + ) + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." ) - paused: bool = Field( - description="Whether Dependabot security updates are paused for the repository." + comment: Missing[str] = Field( + default=UNSET, description="Optional comment to include with the review." ) -model_rebuild(CheckAutomatedSecurityFixes) +model_rebuild(ReviewCustomGatesStateRequired) -__all__ = ("CheckAutomatedSecurityFixes",) +__all__ = ("ReviewCustomGatesStateRequired",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0233.py b/githubkit/versions/ghec_v2022_11_28/models/group_0233.py index 3d3cb8b7f..0ab7f05be 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0233.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0233.py @@ -9,43 +9,65 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0234 import ( - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, - ProtectedBranchPullRequestReviewPropDismissalRestrictions, -) +from .group_0003 import SimpleUser +from .group_0065 import Team -class ProtectedBranchPullRequestReview(GitHubModel): - """Protected Branch Pull Request Review +class PendingDeploymentPropReviewersItems(GitHubModel): + """PendingDeploymentPropReviewersItems""" + + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." + ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) - Protected Branch Pull Request Review + +class PendingDeployment(GitHubModel): + """Pending Deployment + + Details of a deployment that is waiting for protection rules to pass """ - url: Missing[str] = Field(default=UNSET) - dismissal_restrictions: Missing[ - ProtectedBranchPullRequestReviewPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", + environment: PendingDeploymentPropEnvironment = Field() + wait_timer: int = Field(description="The set duration of the wait timer") + wait_timer_started_at: Union[datetime, None] = Field( + description="The time that the wait timer began." ) - dismiss_stale_reviews: bool = Field() - require_code_owner_reviews: bool = Field() - required_approving_review_count: Missing[int] = Field(le=6.0, default=UNSET) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it.", + current_user_can_approve: bool = Field( + description="Whether the currently authenticated user can approve the deployment" ) + reviewers: list[PendingDeploymentPropReviewersItems] = Field( + description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed." + ) + +class PendingDeploymentPropEnvironment(GitHubModel): + """PendingDeploymentPropEnvironment""" -model_rebuild(ProtectedBranchPullRequestReview) + id: Missing[int] = Field(default=UNSET, description="The id of the environment.") + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, description="The name of the environment." + ) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) -__all__ = ("ProtectedBranchPullRequestReview",) + +model_rebuild(PendingDeploymentPropReviewersItems) +model_rebuild(PendingDeployment) +model_rebuild(PendingDeploymentPropEnvironment) + +__all__ = ( + "PendingDeployment", + "PendingDeploymentPropEnvironment", + "PendingDeploymentPropReviewersItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0234.py b/githubkit/versions/ghec_v2022_11_28/models/group_0234.py index 9c6d92ac1..37c49059f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0234.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0234.py @@ -9,60 +9,63 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0060 import Team +from .group_0003 import SimpleUser +from .group_0010 import Integration -class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" +class Deployment(GitHubModel): + """Deployment - users: Missing[list[SimpleUser]] = Field( - default=UNSET, description="The list of users with review dismissal access." - ) - teams: Missing[list[Team]] = Field( - default=UNSET, description="The list of teams with review dismissal access." - ) - apps: Missing[list[Union[Integration, None]]] = Field( - default=UNSET, description="The list of apps with review dismissal access." - ) - url: Missing[str] = Field(default=UNSET) - users_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - - -class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances(GitHubModel): - """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. + A request for a specific ref(branch,sha,tag) to be deployed """ - users: Missing[list[SimpleUser]] = Field( - default=UNSET, - description="The list of users allowed to bypass pull request requirements.", + url: str = Field() + id: int = Field(description="Unique identifier of the deployment") + node_id: str = Field() + sha: str = Field() + ref: str = Field( + description="The ref to deploy. This can be a branch, tag, or sha." ) - teams: Missing[list[Team]] = Field( + task: str = Field(description="Parameter to specify a task to execute") + payload: Union[DeploymentPropPayloadOneof0, str] = Field() + original_environment: Missing[str] = Field(default=UNSET) + environment: str = Field(description="Name for the target deployment environment.") + description: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + statuses_url: str = Field() + repository_url: str = Field() + transient_environment: Missing[bool] = Field( default=UNSET, - description="The list of teams allowed to bypass pull request requirements.", + description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", ) - apps: Missing[list[Union[Integration, None]]] = Field( + production_environment: Missing[bool] = Field( default=UNSET, - description="The list of apps allowed to bypass pull request requirements.", + description="Specifies if the given environment is one that end-users directly interact with. Default: false.", + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) -model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) -model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) +class DeploymentPropPayloadOneof0(ExtraGitHubModel): + """DeploymentPropPayloadOneof0""" + + +model_rebuild(Deployment) +model_rebuild(DeploymentPropPayloadOneof0) __all__ = ( - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", - "ProtectedBranchPullRequestReviewPropDismissalRestrictions", + "Deployment", + "DeploymentPropPayloadOneof0", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0235.py b/githubkit/versions/ghec_v2022_11_28/models/group_0235.py index b02082cc4..c81b4fcb7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0235.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0235.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,133 +16,97 @@ from githubkit.utils import UNSET -class BranchRestrictionPolicy(GitHubModel): - """Branch Restriction Policy +class WorkflowRunUsage(GitHubModel): + """Workflow Run Usage - Branch Restriction Policy + Workflow Run Usage """ - url: str = Field() - users_url: str = Field() - teams_url: str = Field() - apps_url: str = Field() - users: list[BranchRestrictionPolicyPropUsersItems] = Field() - teams: list[BranchRestrictionPolicyPropTeamsItems] = Field() - apps: list[BranchRestrictionPolicyPropAppsItems] = Field() - - -class BranchRestrictionPolicyPropUsersItems(GitHubModel): - """BranchRestrictionPolicyPropUsersItems""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropTeamsItems(GitHubModel): - """BranchRestrictionPolicyPropTeamsItems""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - privacy: Missing[str] = Field(default=UNSET) - notification_setting: Missing[str] = Field(default=UNSET) - permission: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - parent: Missing[Union[str, None]] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItems(GitHubModel): - """BranchRestrictionPolicyPropAppsItems""" - - id: Missing[int] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - owner: Missing[BranchRestrictionPolicyPropAppsItemsPropOwner] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - client_id: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - external_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[BranchRestrictionPolicyPropAppsItemsPropPermissions] = Field( - default=UNSET + billable: WorkflowRunUsagePropBillable = Field() + run_duration_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowRunUsagePropBillable(GitHubModel): + """WorkflowRunUsagePropBillable""" + + ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" ) - events: Missing[list[str]] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropOwner(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: Missing[str] = Field(default=UNSET) - contents: Missing[str] = Field(default=UNSET) - issues: Missing[str] = Field(default=UNSET) - single_file: Missing[str] = Field(default=UNSET) - - -model_rebuild(BranchRestrictionPolicy) -model_rebuild(BranchRestrictionPolicyPropUsersItems) -model_rebuild(BranchRestrictionPolicyPropTeamsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) + macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" + ) + windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" + ) + + +class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntu""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropMacos(GitHubModel): + """WorkflowRunUsagePropBillablePropMacos""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropMacosPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropWindows(GitHubModel): + """WorkflowRunUsagePropBillablePropWindows""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +model_rebuild(WorkflowRunUsage) +model_rebuild(WorkflowRunUsagePropBillable) +model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) +model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) +model_rebuild(WorkflowRunUsagePropBillablePropMacos) +model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) +model_rebuild(WorkflowRunUsagePropBillablePropWindows) +model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) __all__ = ( - "BranchRestrictionPolicy", - "BranchRestrictionPolicyPropAppsItems", - "BranchRestrictionPolicyPropAppsItemsPropOwner", - "BranchRestrictionPolicyPropAppsItemsPropPermissions", - "BranchRestrictionPolicyPropTeamsItems", - "BranchRestrictionPolicyPropUsersItems", + "WorkflowRunUsage", + "WorkflowRunUsagePropBillable", + "WorkflowRunUsagePropBillablePropMacos", + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", + "WorkflowRunUsagePropBillablePropUbuntu", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", + "WorkflowRunUsagePropBillablePropWindows", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0236.py b/githubkit/versions/ghec_v2022_11_28/models/group_0236.py index 3a5dd1c7c..f5831c47a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0236.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0236.py @@ -9,184 +9,64 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0233 import ProtectedBranchPullRequestReview -from .group_0235 import BranchRestrictionPolicy - - -class BranchProtection(GitHubModel): - """Branch Protection - - Branch Protection - """ - - url: Missing[str] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) - required_status_checks: Missing[ProtectedBranchRequiredStatusCheck] = Field( - default=UNSET, - title="Protected Branch Required Status Check", - description="Protected Branch Required Status Check", - ) - enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( - default=UNSET, - title="Protected Branch Admin Enforced", - description="Protected Branch Admin Enforced", - ) - required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( - default=UNSET, - title="Protected Branch Pull Request Review", - description="Protected Branch Pull Request Review", - ) - restrictions: Missing[BranchRestrictionPolicy] = Field( - default=UNSET, - title="Branch Restriction Policy", - description="Branch Restriction Policy", - ) - required_linear_history: Missing[BranchProtectionPropRequiredLinearHistory] = Field( - default=UNSET - ) - allow_force_pushes: Missing[BranchProtectionPropAllowForcePushes] = Field( - default=UNSET - ) - allow_deletions: Missing[BranchProtectionPropAllowDeletions] = Field(default=UNSET) - block_creations: Missing[BranchProtectionPropBlockCreations] = Field(default=UNSET) - required_conversation_resolution: Missing[ - BranchProtectionPropRequiredConversationResolution - ] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - protection_url: Missing[str] = Field(default=UNSET) - required_signatures: Missing[BranchProtectionPropRequiredSignatures] = Field( - default=UNSET - ) - lock_branch: Missing[BranchProtectionPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - -class ProtectedBranchAdminEnforced(GitHubModel): - """Protected Branch Admin Enforced +class WorkflowUsage(GitHubModel): + """Workflow Usage - Protected Branch Admin Enforced + Workflow Usage """ - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropRequiredLinearHistory(GitHubModel): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForcePushes(GitHubModel): - """BranchProtectionPropAllowForcePushes""" - - enabled: Missing[bool] = Field(default=UNSET) + billable: WorkflowUsagePropBillable = Field() -class BranchProtectionPropAllowDeletions(GitHubModel): - """BranchProtectionPropAllowDeletions""" +class WorkflowUsagePropBillable(GitHubModel): + """WorkflowUsagePropBillable""" - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropBlockCreations(GitHubModel): - """BranchProtectionPropBlockCreations""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredConversationResolution(GitHubModel): - """BranchProtectionPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredSignatures(GitHubModel): - """BranchProtectionPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropLockBranch(GitHubModel): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForkSyncing(GitHubModel): - """BranchProtectionPropAllowForkSyncing + ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" + ) + macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" + ) + windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" + ) - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - enabled: Missing[bool] = Field(default=UNSET) +class WorkflowUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowUsagePropBillablePropUbuntu""" + total_ms: Missing[int] = Field(default=UNSET) -class ProtectedBranchRequiredStatusCheck(GitHubModel): - """Protected Branch Required Status Check - Protected Branch Required Status Check - """ +class WorkflowUsagePropBillablePropMacos(GitHubModel): + """WorkflowUsagePropBillablePropMacos""" - url: Missing[str] = Field(default=UNSET) - enforcement_level: Missing[str] = Field(default=UNSET) - contexts: list[str] = Field() - checks: list[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() - contexts_url: Missing[str] = Field(default=UNSET) - strict: Missing[bool] = Field(default=UNSET) + total_ms: Missing[int] = Field(default=UNSET) -class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" +class WorkflowUsagePropBillablePropWindows(GitHubModel): + """WorkflowUsagePropBillablePropWindows""" - context: str = Field() - app_id: Union[int, None] = Field() + total_ms: Missing[int] = Field(default=UNSET) -model_rebuild(BranchProtection) -model_rebuild(ProtectedBranchAdminEnforced) -model_rebuild(BranchProtectionPropRequiredLinearHistory) -model_rebuild(BranchProtectionPropAllowForcePushes) -model_rebuild(BranchProtectionPropAllowDeletions) -model_rebuild(BranchProtectionPropBlockCreations) -model_rebuild(BranchProtectionPropRequiredConversationResolution) -model_rebuild(BranchProtectionPropRequiredSignatures) -model_rebuild(BranchProtectionPropLockBranch) -model_rebuild(BranchProtectionPropAllowForkSyncing) -model_rebuild(ProtectedBranchRequiredStatusCheck) -model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) +model_rebuild(WorkflowUsage) +model_rebuild(WorkflowUsagePropBillable) +model_rebuild(WorkflowUsagePropBillablePropUbuntu) +model_rebuild(WorkflowUsagePropBillablePropMacos) +model_rebuild(WorkflowUsagePropBillablePropWindows) __all__ = ( - "BranchProtection", - "BranchProtectionPropAllowDeletions", - "BranchProtectionPropAllowForcePushes", - "BranchProtectionPropAllowForkSyncing", - "BranchProtectionPropBlockCreations", - "BranchProtectionPropLockBranch", - "BranchProtectionPropRequiredConversationResolution", - "BranchProtectionPropRequiredLinearHistory", - "BranchProtectionPropRequiredSignatures", - "ProtectedBranchAdminEnforced", - "ProtectedBranchRequiredStatusCheck", - "ProtectedBranchRequiredStatusCheckPropChecksItems", + "WorkflowUsage", + "WorkflowUsagePropBillable", + "WorkflowUsagePropBillablePropMacos", + "WorkflowUsagePropBillablePropUbuntu", + "WorkflowUsagePropBillablePropWindows", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0237.py b/githubkit/versions/ghec_v2022_11_28/models/group_0237.py index c47535884..49966c29c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0237.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0237.py @@ -9,41 +9,41 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0236 import BranchProtection +from .group_0003 import SimpleUser -class ShortBranch(GitHubModel): - """Short Branch +class Activity(GitHubModel): + """Activity - Short Branch + Activity """ - name: str = Field() - commit: ShortBranchPropCommit = Field() - protected: bool = Field() - protection: Missing[BranchProtection] = Field( - default=UNSET, title="Branch Protection", description="Branch Protection" + id: int = Field() + node_id: str = Field() + before: str = Field(description="The SHA of the commit before the activity.") + after: str = Field(description="The SHA of the commit after the activity.") + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." ) - protection_url: Missing[str] = Field(default=UNSET) - - -class ShortBranchPropCommit(GitHubModel): - """ShortBranchPropCommit""" - - sha: str = Field() - url: str = Field() + timestamp: datetime = Field(description="The time when the activity occurred.") + activity_type: Literal[ + "push", + "force_push", + "branch_deletion", + "branch_creation", + "pr_merge", + "merge_queue_merge", + ] = Field(description="The type of the activity that was performed.") + actor: Union[None, SimpleUser] = Field() -model_rebuild(ShortBranch) -model_rebuild(ShortBranchPropCommit) +model_rebuild(Activity) -__all__ = ( - "ShortBranch", - "ShortBranchPropCommit", -) +__all__ = ("Activity",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0238.py b/githubkit/versions/ghec_v2022_11_28/models/group_0238.py index ef77ee3a3..245d14611 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0238.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0238.py @@ -12,21 +12,24 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class GitUser(GitHubModel): - """Git User +class Autolink(GitHubModel): + """Autolink reference - Metaproperties for Git author/committer information. + An autolink reference. """ - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - date: Missing[str] = Field(default=UNSET) + id: int = Field() + key_prefix: str = Field(description="The prefix of a key that is linkified.") + url_template: str = Field( + description="A template for the target URL that is generated if a key was found." + ) + is_alphanumeric: bool = Field( + description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." + ) -model_rebuild(GitUser) +model_rebuild(Autolink) -__all__ = ("GitUser",) +__all__ = ("Autolink",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0239.py b/githubkit/versions/ghec_v2022_11_28/models/group_0239.py index b177fcee6..481ac164d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0239.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0239.py @@ -9,25 +9,25 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class Verification(GitHubModel): - """Verification""" +class CheckAutomatedSecurityFixes(GitHubModel): + """Check Dependabot security updates + + Check Dependabot security updates + """ - verified: bool = Field() - reason: str = Field() - payload: Union[str, None] = Field() - signature: Union[str, None] = Field() - verified_at: Missing[Union[str, None]] = Field(default=UNSET) + enabled: bool = Field( + description="Whether Dependabot security updates are enabled for the repository." + ) + paused: bool = Field( + description="Whether Dependabot security updates are paused for the repository." + ) -model_rebuild(Verification) +model_rebuild(CheckAutomatedSecurityFixes) -__all__ = ("Verification",) +__all__ = ("CheckAutomatedSecurityFixes",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0240.py b/githubkit/versions/ghec_v2022_11_28/models/group_0240.py index 45bf64eea..dfff161e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0240.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0240.py @@ -9,36 +9,43 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0241 import ( + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, + ProtectedBranchPullRequestReviewPropDismissalRestrictions, +) -class DiffEntry(GitHubModel): - """Diff Entry - - Diff Entry - """ - sha: str = Field() - filename: str = Field() - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" - ] = Field() - additions: int = Field() - deletions: int = Field() - changes: int = Field() - blob_url: Union[str, None] = Field() - raw_url: Union[str, None] = Field() - contents_url: str = Field() - patch: Missing[str] = Field(default=UNSET) - previous_filename: Missing[str] = Field(default=UNSET) +class ProtectedBranchPullRequestReview(GitHubModel): + """Protected Branch Pull Request Review + Protected Branch Pull Request Review + """ -model_rebuild(DiffEntry) - -__all__ = ("DiffEntry",) + url: Missing[str] = Field(default=UNSET) + dismissal_restrictions: Missing[ + ProtectedBranchPullRequestReviewPropDismissalRestrictions + ] = Field(default=UNSET) + bypass_pull_request_allowances: Missing[ + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + dismiss_stale_reviews: bool = Field() + require_code_owner_reviews: bool = Field() + required_approving_review_count: Missing[int] = Field(le=6.0, default=UNSET) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it.", + ) + + +model_rebuild(ProtectedBranchPullRequestReview) + +__all__ = ("ProtectedBranchPullRequestReview",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0241.py b/githubkit/versions/ghec_v2022_11_28/models/group_0241.py index c8b12ec46..5392b5b4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0241.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0241.py @@ -17,61 +17,52 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0240 import DiffEntry -from .group_0242 import CommitPropCommit +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0065 import Team -class Commit(GitHubModel): - """Commit +class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" - Commit - """ - - url: str = Field() - sha: str = Field() - node_id: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitPropCommit = Field() - author: Union[SimpleUser, EmptyObject, None] = Field() - committer: Union[SimpleUser, EmptyObject, None] = Field() - parents: list[CommitPropParentsItems] = Field() - stats: Missing[CommitPropStats] = Field(default=UNSET) - files: Missing[list[DiffEntry]] = Field(default=UNSET) + users: Missing[list[SimpleUser]] = Field( + default=UNSET, description="The list of users with review dismissal access." + ) + teams: Missing[list[Team]] = Field( + default=UNSET, description="The list of teams with review dismissal access." + ) + apps: Missing[list[Union[Integration, None]]] = Field( + default=UNSET, description="The list of apps with review dismissal access." + ) + url: Missing[str] = Field(default=UNSET) + users_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) -class EmptyObject(GitHubModel): - """Empty Object +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances(GitHubModel): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - An object without any properties. + Allow specific users, teams, or apps to bypass pull request requirements. """ - -class CommitPropParentsItems(GitHubModel): - """CommitPropParentsItems""" - - sha: str = Field() - url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - - -class CommitPropStats(GitHubModel): - """CommitPropStats""" - - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) - total: Missing[int] = Field(default=UNSET) + users: Missing[list[SimpleUser]] = Field( + default=UNSET, + description="The list of users allowed to bypass pull request requirements.", + ) + teams: Missing[list[Team]] = Field( + default=UNSET, + description="The list of teams allowed to bypass pull request requirements.", + ) + apps: Missing[list[Union[Integration, None]]] = Field( + default=UNSET, + description="The list of apps allowed to bypass pull request requirements.", + ) -model_rebuild(Commit) -model_rebuild(EmptyObject) -model_rebuild(CommitPropParentsItems) -model_rebuild(CommitPropStats) +model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) +model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) __all__ = ( - "Commit", - "CommitPropParentsItems", - "CommitPropStats", - "EmptyObject", + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", + "ProtectedBranchPullRequestReviewPropDismissalRestrictions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0242.py b/githubkit/versions/ghec_v2022_11_28/models/group_0242.py index 4641bed15..b02082cc4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0242.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0242.py @@ -17,33 +17,134 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0238 import GitUser -from .group_0239 import Verification +class BranchRestrictionPolicy(GitHubModel): + """Branch Restriction Policy -class CommitPropCommit(GitHubModel): - """CommitPropCommit""" + Branch Restriction Policy + """ url: str = Field() - author: Union[None, GitUser] = Field() - committer: Union[None, GitUser] = Field() - message: str = Field() - comment_count: int = Field() - tree: CommitPropCommitPropTree = Field() - verification: Missing[Verification] = Field(default=UNSET, title="Verification") - - -class CommitPropCommitPropTree(GitHubModel): - """CommitPropCommitPropTree""" - - sha: str = Field() - url: str = Field() - - -model_rebuild(CommitPropCommit) -model_rebuild(CommitPropCommitPropTree) + users_url: str = Field() + teams_url: str = Field() + apps_url: str = Field() + users: list[BranchRestrictionPolicyPropUsersItems] = Field() + teams: list[BranchRestrictionPolicyPropTeamsItems] = Field() + apps: list[BranchRestrictionPolicyPropAppsItems] = Field() + + +class BranchRestrictionPolicyPropUsersItems(GitHubModel): + """BranchRestrictionPolicyPropUsersItems""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropTeamsItems(GitHubModel): + """BranchRestrictionPolicyPropTeamsItems""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + privacy: Missing[str] = Field(default=UNSET) + notification_setting: Missing[str] = Field(default=UNSET) + permission: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + parent: Missing[Union[str, None]] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropAppsItems(GitHubModel): + """BranchRestrictionPolicyPropAppsItems""" + + id: Missing[int] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + owner: Missing[BranchRestrictionPolicyPropAppsItemsPropOwner] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + client_id: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + external_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + permissions: Missing[BranchRestrictionPolicyPropAppsItemsPropPermissions] = Field( + default=UNSET + ) + events: Missing[list[str]] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropAppsItemsPropOwner(GitHubModel): + """BranchRestrictionPolicyPropAppsItemsPropOwner""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) + public_members_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): + """BranchRestrictionPolicyPropAppsItemsPropPermissions""" + + metadata: Missing[str] = Field(default=UNSET) + contents: Missing[str] = Field(default=UNSET) + issues: Missing[str] = Field(default=UNSET) + single_file: Missing[str] = Field(default=UNSET) + + +model_rebuild(BranchRestrictionPolicy) +model_rebuild(BranchRestrictionPolicyPropUsersItems) +model_rebuild(BranchRestrictionPolicyPropTeamsItems) +model_rebuild(BranchRestrictionPolicyPropAppsItems) +model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) +model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) __all__ = ( - "CommitPropCommit", - "CommitPropCommitPropTree", + "BranchRestrictionPolicy", + "BranchRestrictionPolicyPropAppsItems", + "BranchRestrictionPolicyPropAppsItemsPropOwner", + "BranchRestrictionPolicyPropAppsItemsPropPermissions", + "BranchRestrictionPolicyPropTeamsItems", + "BranchRestrictionPolicyPropUsersItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0243.py b/githubkit/versions/ghec_v2022_11_28/models/group_0243.py index 9adb98d6d..ff0359d75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0243.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0243.py @@ -9,45 +9,184 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0236 import BranchProtection -from .group_0241 import Commit +from .group_0240 import ProtectedBranchPullRequestReview +from .group_0242 import BranchRestrictionPolicy -class BranchWithProtection(GitHubModel): - """Branch With Protection +class BranchProtection(GitHubModel): + """Branch Protection - Branch With Protection + Branch Protection """ - name: str = Field() - commit: Commit = Field(title="Commit", description="Commit") - links: BranchWithProtectionPropLinks = Field(alias="_links") - protected: bool = Field() - protection: BranchProtection = Field( - title="Branch Protection", description="Branch Protection" + url: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + required_status_checks: Missing[ProtectedBranchRequiredStatusCheck] = Field( + default=UNSET, + title="Protected Branch Required Status Check", + description="Protected Branch Required Status Check", + ) + enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( + default=UNSET, + title="Protected Branch Admin Enforced", + description="Protected Branch Admin Enforced", + ) + required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( + default=UNSET, + title="Protected Branch Pull Request Review", + description="Protected Branch Pull Request Review", + ) + restrictions: Missing[BranchRestrictionPolicy] = Field( + default=UNSET, + title="Branch Restriction Policy", + description="Branch Restriction Policy", + ) + required_linear_history: Missing[BranchProtectionPropRequiredLinearHistory] = Field( + default=UNSET + ) + allow_force_pushes: Missing[BranchProtectionPropAllowForcePushes] = Field( + default=UNSET ) - protection_url: str = Field() - pattern: Missing[str] = Field(default=UNSET) - required_approving_review_count: Missing[int] = Field(default=UNSET) + allow_deletions: Missing[BranchProtectionPropAllowDeletions] = Field(default=UNSET) + block_creations: Missing[BranchProtectionPropBlockCreations] = Field(default=UNSET) + required_conversation_resolution: Missing[ + BranchProtectionPropRequiredConversationResolution + ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + protection_url: Missing[str] = Field(default=UNSET) + required_signatures: Missing[BranchProtectionPropRequiredSignatures] = Field( + default=UNSET + ) + lock_branch: Missing[BranchProtectionPropLockBranch] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", + ) + allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", + ) + + +class ProtectedBranchAdminEnforced(GitHubModel): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced + """ + + url: str = Field() + enabled: bool = Field() + + +class BranchProtectionPropRequiredLinearHistory(GitHubModel): + """BranchProtectionPropRequiredLinearHistory""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowForcePushes(GitHubModel): + """BranchProtectionPropAllowForcePushes""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowDeletions(GitHubModel): + """BranchProtectionPropAllowDeletions""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropBlockCreations(GitHubModel): + """BranchProtectionPropBlockCreations""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropRequiredConversationResolution(GitHubModel): + """BranchProtectionPropRequiredConversationResolution""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropRequiredSignatures(GitHubModel): + """BranchProtectionPropRequiredSignatures""" + + url: str = Field() + enabled: bool = Field() + + +class BranchProtectionPropLockBranch(GitHubModel): + """BranchProtectionPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowForkSyncing(GitHubModel): + """BranchProtectionPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchRequiredStatusCheck(GitHubModel): + """Protected Branch Required Status Check + + Protected Branch Required Status Check + """ + + url: Missing[str] = Field(default=UNSET) + enforcement_level: Missing[str] = Field(default=UNSET) + contexts: list[str] = Field() + checks: list[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() + contexts_url: Missing[str] = Field(default=UNSET) + strict: Missing[bool] = Field(default=UNSET) -class BranchWithProtectionPropLinks(GitHubModel): - """BranchWithProtectionPropLinks""" +class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" - html: str = Field() - self_: str = Field(alias="self") + context: str = Field() + app_id: Union[int, None] = Field() -model_rebuild(BranchWithProtection) -model_rebuild(BranchWithProtectionPropLinks) +model_rebuild(BranchProtection) +model_rebuild(ProtectedBranchAdminEnforced) +model_rebuild(BranchProtectionPropRequiredLinearHistory) +model_rebuild(BranchProtectionPropAllowForcePushes) +model_rebuild(BranchProtectionPropAllowDeletions) +model_rebuild(BranchProtectionPropBlockCreations) +model_rebuild(BranchProtectionPropRequiredConversationResolution) +model_rebuild(BranchProtectionPropRequiredSignatures) +model_rebuild(BranchProtectionPropLockBranch) +model_rebuild(BranchProtectionPropAllowForkSyncing) +model_rebuild(ProtectedBranchRequiredStatusCheck) +model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) __all__ = ( - "BranchWithProtection", - "BranchWithProtectionPropLinks", + "BranchProtection", + "BranchProtectionPropAllowDeletions", + "BranchProtectionPropAllowForcePushes", + "BranchProtectionPropAllowForkSyncing", + "BranchProtectionPropBlockCreations", + "BranchProtectionPropLockBranch", + "BranchProtectionPropRequiredConversationResolution", + "BranchProtectionPropRequiredLinearHistory", + "BranchProtectionPropRequiredSignatures", + "ProtectedBranchAdminEnforced", + "ProtectedBranchRequiredStatusCheck", + "ProtectedBranchRequiredStatusCheckPropChecksItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0244.py b/githubkit/versions/ghec_v2022_11_28/models/group_0244.py index 0effd86ec..a2ddcee5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0244.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0244.py @@ -9,169 +9,41 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0235 import BranchRestrictionPolicy -from .group_0245 import ProtectedBranchPropRequiredPullRequestReviews +from .group_0243 import BranchProtection -class ProtectedBranch(GitHubModel): - """Protected Branch +class ShortBranch(GitHubModel): + """Short Branch - Branch protections protect branches + Short Branch """ - url: str = Field() - required_status_checks: Missing[StatusCheckPolicy] = Field( - default=UNSET, title="Status Check Policy", description="Status Check Policy" - ) - required_pull_request_reviews: Missing[ - ProtectedBranchPropRequiredPullRequestReviews - ] = Field(default=UNSET) - required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( - default=UNSET - ) - enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) - required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( - default=UNSET - ) - allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( - default=UNSET - ) - allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) - restrictions: Missing[BranchRestrictionPolicy] = Field( - default=UNSET, - title="Branch Restriction Policy", - description="Branch Restriction Policy", + name: str = Field() + commit: ShortBranchPropCommit = Field() + protected: bool = Field() + protection: Missing[BranchProtection] = Field( + default=UNSET, title="Branch Protection", description="Branch Protection" ) - required_conversation_resolution: Missing[ - ProtectedBranchPropRequiredConversationResolution - ] = Field(default=UNSET) - block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) - lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - - -class ProtectedBranchPropRequiredSignatures(GitHubModel): - """ProtectedBranchPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class ProtectedBranchPropEnforceAdmins(GitHubModel): - """ProtectedBranchPropEnforceAdmins""" - - url: str = Field() - enabled: bool = Field() - - -class ProtectedBranchPropRequiredLinearHistory(GitHubModel): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool = Field() - - -class ProtectedBranchPropAllowForcePushes(GitHubModel): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool = Field() - + protection_url: Missing[str] = Field(default=UNSET) -class ProtectedBranchPropAllowDeletions(GitHubModel): - """ProtectedBranchPropAllowDeletions""" - enabled: bool = Field() - - -class ProtectedBranchPropRequiredConversationResolution(GitHubModel): - """ProtectedBranchPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchPropBlockCreations(GitHubModel): - """ProtectedBranchPropBlockCreations""" - - enabled: bool = Field() - - -class ProtectedBranchPropLockBranch(GitHubModel): - """ProtectedBranchPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchPropAllowForkSyncing(GitHubModel): - """ProtectedBranchPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class StatusCheckPolicy(GitHubModel): - """Status Check Policy - - Status Check Policy - """ +class ShortBranchPropCommit(GitHubModel): + """ShortBranchPropCommit""" + sha: str = Field() url: str = Field() - strict: bool = Field() - contexts: list[str] = Field() - checks: list[StatusCheckPolicyPropChecksItems] = Field() - contexts_url: str = Field() - - -class StatusCheckPolicyPropChecksItems(GitHubModel): - """StatusCheckPolicyPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() -model_rebuild(ProtectedBranch) -model_rebuild(ProtectedBranchPropRequiredSignatures) -model_rebuild(ProtectedBranchPropEnforceAdmins) -model_rebuild(ProtectedBranchPropRequiredLinearHistory) -model_rebuild(ProtectedBranchPropAllowForcePushes) -model_rebuild(ProtectedBranchPropAllowDeletions) -model_rebuild(ProtectedBranchPropRequiredConversationResolution) -model_rebuild(ProtectedBranchPropBlockCreations) -model_rebuild(ProtectedBranchPropLockBranch) -model_rebuild(ProtectedBranchPropAllowForkSyncing) -model_rebuild(StatusCheckPolicy) -model_rebuild(StatusCheckPolicyPropChecksItems) +model_rebuild(ShortBranch) +model_rebuild(ShortBranchPropCommit) __all__ = ( - "ProtectedBranch", - "ProtectedBranchPropAllowDeletions", - "ProtectedBranchPropAllowForcePushes", - "ProtectedBranchPropAllowForkSyncing", - "ProtectedBranchPropBlockCreations", - "ProtectedBranchPropEnforceAdmins", - "ProtectedBranchPropLockBranch", - "ProtectedBranchPropRequiredConversationResolution", - "ProtectedBranchPropRequiredLinearHistory", - "ProtectedBranchPropRequiredSignatures", - "StatusCheckPolicy", - "StatusCheckPolicyPropChecksItems", + "ShortBranch", + "ShortBranchPropCommit", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0245.py b/githubkit/versions/ghec_v2022_11_28/models/group_0245.py index 0846f1ad5..ef77ee3a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0245.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0245.py @@ -15,31 +15,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0246 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, -) - - -class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): - """ProtectedBranchPropRequiredPullRequestReviews""" - - url: str = Field() - dismiss_stale_reviews: Missing[bool] = Field(default=UNSET) - require_code_owner_reviews: Missing[bool] = Field(default=UNSET) - required_approving_review_count: Missing[int] = Field(default=UNSET) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it.", - ) - dismissal_restrictions: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field(default=UNSET) - - -model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) - -__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) + +class GitUser(GitHubModel): + """Git User + + Metaproperties for Git author/committer information. + """ + + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + date: Missing[str] = Field(default=UNSET) + + +model_rebuild(GitUser) + +__all__ = ("GitUser",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0246.py b/githubkit/versions/ghec_v2022_11_28/models/group_0246.py index a194308f6..1c8f9d7fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0246.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0246.py @@ -14,43 +14,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0060 import Team +class Verification(GitHubModel): + """Verification""" -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" + verified: bool = Field() + reason: str = Field() + payload: Union[str, None] = Field() + signature: Union[str, None] = Field() + verified_at: Union[str, None] = Field() - url: str = Field() - users_url: str = Field() - teams_url: str = Field() - users: list[SimpleUser] = Field() - teams: list[Team] = Field() - apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) +model_rebuild(Verification) -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" - - users: list[SimpleUser] = Field() - teams: list[Team] = Field() - apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) - - -model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) -model_rebuild( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) - -__all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", -) +__all__ = ("Verification",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0247.py b/githubkit/versions/ghec_v2022_11_28/models/group_0247.py index 440a13d1b..45bf64eea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0247.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0247.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,40 +17,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0008 import Integration +class DiffEntry(GitHubModel): + """Diff Entry -class DeploymentSimple(GitHubModel): - """Deployment - - A deployment created as the result of an Actions check run from a workflow that - references an environment + Diff Entry """ - url: str = Field() - id: int = Field(description="Unique identifier of the deployment") - node_id: str = Field() - task: str = Field(description="Parameter to specify a task to execute") - original_environment: Missing[str] = Field(default=UNSET) - environment: str = Field(description="Name for the target deployment environment.") - description: Union[str, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - statuses_url: str = Field() - repository_url: str = Field() - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: false.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - - -model_rebuild(DeploymentSimple) - -__all__ = ("DeploymentSimple",) + sha: str = Field() + filename: str = Field() + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + ] = Field() + additions: int = Field() + deletions: int = Field() + changes: int = Field() + blob_url: Union[str, None] = Field() + raw_url: Union[str, None] = Field() + contents_url: str = Field() + patch: Missing[str] = Field(default=UNSET) + previous_filename: Missing[str] = Field(default=UNSET) + + +model_rebuild(DiffEntry) + +__all__ = ("DiffEntry",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0248.py b/githubkit/versions/ghec_v2022_11_28/models/group_0248.py index 4dd66d3b5..a9311cc17 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0248.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0248.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,79 +17,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0008 import Integration -from .group_0220 import PullRequestMinimal -from .group_0247 import DeploymentSimple +from .group_0003 import SimpleUser +from .group_0247 import DiffEntry +from .group_0249 import CommitPropCommit -class CheckRun(GitHubModel): - """CheckRun +class Commit(GitHubModel): + """Commit - A check performed on the code of a given code change + Commit """ - id: int = Field(description="The id of the check.") - head_sha: str = Field(description="The SHA of the commit that is being checked.") + url: str = Field() + sha: str = Field() node_id: str = Field() - external_id: Union[str, None] = Field() + html_url: str = Field() + comments_url: str = Field() + commit: CommitPropCommit = Field() + author: Union[SimpleUser, EmptyObject, None] = Field() + committer: Union[SimpleUser, EmptyObject, None] = Field() + parents: list[CommitPropParentsItems] = Field() + stats: Missing[CommitPropStats] = Field(default=UNSET) + files: Missing[list[DiffEntry]] = Field(default=UNSET) + + +class EmptyObject(GitHubModel): + """Empty Object + + An object without any properties. + """ + + +class CommitPropParentsItems(GitHubModel): + """CommitPropParentsItems""" + + sha: str = Field() url: str = Field() - html_url: Union[str, None] = Field() - details_url: Union[str, None] = Field() - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] = Field( - description="The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs." - ) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - started_at: Union[datetime, None] = Field() - completed_at: Union[datetime, None] = Field() - output: CheckRunPropOutput = Field() - name: str = Field(description="The name of the check.") - check_suite: Union[CheckRunPropCheckSuite, None] = Field() - app: Union[None, Integration, None] = Field() - pull_requests: list[PullRequestMinimal] = Field( - description="Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check." - ) - deployment: Missing[DeploymentSimple] = Field( - default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", - ) - - -class CheckRunPropOutput(GitHubModel): - """CheckRunPropOutput""" - - title: Union[str, None] = Field() - summary: Union[str, None] = Field() - text: Union[str, None] = Field() - annotations_count: int = Field() - annotations_url: str = Field() - - -class CheckRunPropCheckSuite(GitHubModel): - """CheckRunPropCheckSuite""" - - id: int = Field() - - -model_rebuild(CheckRun) -model_rebuild(CheckRunPropOutput) -model_rebuild(CheckRunPropCheckSuite) + html_url: Missing[str] = Field(default=UNSET) + + +class CommitPropStats(GitHubModel): + """CommitPropStats""" + + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) + total: Missing[int] = Field(default=UNSET) + + +model_rebuild(Commit) +model_rebuild(EmptyObject) +model_rebuild(CommitPropParentsItems) +model_rebuild(CommitPropStats) __all__ = ( - "CheckRun", - "CheckRunPropCheckSuite", - "CheckRunPropOutput", + "Commit", + "CommitPropParentsItems", + "CommitPropStats", + "EmptyObject", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0249.py b/githubkit/versions/ghec_v2022_11_28/models/group_0249.py index 2dfb0cd0e..13c88d354 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0249.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0249.py @@ -14,26 +14,36 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0245 import GitUser +from .group_0246 import Verification -class CheckAnnotation(GitHubModel): - """Check Annotation - Check Annotation - """ +class CommitPropCommit(GitHubModel): + """CommitPropCommit""" - path: str = Field() - start_line: int = Field() - end_line: int = Field() - start_column: Union[int, None] = Field() - end_column: Union[int, None] = Field() - annotation_level: Union[str, None] = Field() - title: Union[str, None] = Field() - message: Union[str, None] = Field() - raw_details: Union[str, None] = Field() - blob_href: str = Field() + url: str = Field() + author: Union[None, GitUser] = Field() + committer: Union[None, GitUser] = Field() + message: str = Field() + comment_count: int = Field() + tree: CommitPropCommitPropTree = Field() + verification: Missing[Verification] = Field(default=UNSET, title="Verification") -model_rebuild(CheckAnnotation) +class CommitPropCommitPropTree(GitHubModel): + """CommitPropCommitPropTree""" -__all__ = ("CheckAnnotation",) + sha: str = Field() + url: str = Field() + + +model_rebuild(CommitPropCommit) +model_rebuild(CommitPropCommitPropTree) + +__all__ = ( + "CommitPropCommit", + "CommitPropCommitPropTree", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0250.py b/githubkit/versions/ghec_v2022_11_28/models/group_0250.py index 26602ea90..00245bcfb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0250.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0250.py @@ -9,83 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0008 import Integration -from .group_0147 import MinimalRepository -from .group_0220 import PullRequestMinimal -from .group_0221 import SimpleCommit +from .group_0243 import BranchProtection +from .group_0248 import Commit -class CheckSuite(GitHubModel): - """CheckSuite +class BranchWithProtection(GitHubModel): + """Branch With Protection - A suite of checks performed on the code of a given code change + Branch With Protection """ - id: int = Field() - node_id: str = Field() - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], - ] = Field( - description="The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." - ) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "startup_failure", - "stale", - ], - ] = Field() - url: Union[str, None] = Field() - before: Union[str, None] = Field() - after: Union[str, None] = Field() - pull_requests: Union[list[PullRequestMinimal], None] = Field() - app: Union[None, Integration, None] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + name: str = Field() + commit: Commit = Field(title="Commit", description="Commit") + links: BranchWithProtectionPropLinks = Field(alias="_links") + protected: bool = Field() + protection: BranchProtection = Field( + title="Branch Protection", description="Branch Protection" ) - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") - latest_check_runs_count: int = Field() - check_runs_url: str = Field() - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) + protection_url: str = Field() + pattern: Missing[str] = Field(default=UNSET) + required_approving_review_count: Missing[int] = Field(default=UNSET) -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" +class BranchWithProtectionPropLinks(GitHubModel): + """BranchWithProtectionPropLinks""" - total_count: int = Field() - check_suites: list[CheckSuite] = Field() + html: str = Field() + self_: str = Field(alias="self") -model_rebuild(CheckSuite) -model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) +model_rebuild(BranchWithProtection) +model_rebuild(BranchWithProtectionPropLinks) __all__ = ( - "CheckSuite", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", + "BranchWithProtection", + "BranchWithProtectionPropLinks", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0251.py b/githubkit/versions/ghec_v2022_11_28/models/group_0251.py index 82311283c..02c6243b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0251.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0251.py @@ -9,48 +9,169 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0147 import MinimalRepository +from .group_0242 import BranchRestrictionPolicy +from .group_0252 import ProtectedBranchPropRequiredPullRequestReviews -class CheckSuitePreference(GitHubModel): - """Check Suite Preference +class ProtectedBranch(GitHubModel): + """Protected Branch - Check suite configuration preferences for a repository. + Branch protections protect branches """ - preferences: CheckSuitePreferencePropPreferences = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + url: str = Field() + required_status_checks: Missing[StatusCheckPolicy] = Field( + default=UNSET, title="Status Check Policy", description="Status Check Policy" + ) + required_pull_request_reviews: Missing[ + ProtectedBranchPropRequiredPullRequestReviews + ] = Field(default=UNSET) + required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( + default=UNSET + ) + enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) + required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( + default=UNSET + ) + allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( + default=UNSET + ) + allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) + restrictions: Missing[BranchRestrictionPolicy] = Field( + default=UNSET, + title="Branch Restriction Policy", + description="Branch Restriction Policy", + ) + required_conversation_resolution: Missing[ + ProtectedBranchPropRequiredConversationResolution + ] = Field(default=UNSET) + block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) + lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", + ) + allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", ) -class CheckSuitePreferencePropPreferences(GitHubModel): - """CheckSuitePreferencePropPreferences""" +class ProtectedBranchPropRequiredSignatures(GitHubModel): + """ProtectedBranchPropRequiredSignatures""" - auto_trigger_checks: Missing[ - list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] - ] = Field(default=UNSET) + url: str = Field() + enabled: bool = Field() + + +class ProtectedBranchPropEnforceAdmins(GitHubModel): + """ProtectedBranchPropEnforceAdmins""" + + url: str = Field() + enabled: bool = Field() + + +class ProtectedBranchPropRequiredLinearHistory(GitHubModel): + """ProtectedBranchPropRequiredLinearHistory""" + + enabled: bool = Field() + + +class ProtectedBranchPropAllowForcePushes(GitHubModel): + """ProtectedBranchPropAllowForcePushes""" + + enabled: bool = Field() + + +class ProtectedBranchPropAllowDeletions(GitHubModel): + """ProtectedBranchPropAllowDeletions""" + + enabled: bool = Field() + + +class ProtectedBranchPropRequiredConversationResolution(GitHubModel): + """ProtectedBranchPropRequiredConversationResolution""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchPropBlockCreations(GitHubModel): + """ProtectedBranchPropBlockCreations""" + + enabled: bool = Field() + + +class ProtectedBranchPropLockBranch(GitHubModel): + """ProtectedBranchPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchPropAllowForkSyncing(GitHubModel): + """ProtectedBranchPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class StatusCheckPolicy(GitHubModel): + """Status Check Policy + + Status Check Policy + """ + + url: str = Field() + strict: bool = Field() + contexts: list[str] = Field() + checks: list[StatusCheckPolicyPropChecksItems] = Field() + contexts_url: str = Field() -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" +class StatusCheckPolicyPropChecksItems(GitHubModel): + """StatusCheckPolicyPropChecksItems""" - app_id: int = Field() - setting: bool = Field() + context: str = Field() + app_id: Union[int, None] = Field() -model_rebuild(CheckSuitePreference) -model_rebuild(CheckSuitePreferencePropPreferences) -model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) +model_rebuild(ProtectedBranch) +model_rebuild(ProtectedBranchPropRequiredSignatures) +model_rebuild(ProtectedBranchPropEnforceAdmins) +model_rebuild(ProtectedBranchPropRequiredLinearHistory) +model_rebuild(ProtectedBranchPropAllowForcePushes) +model_rebuild(ProtectedBranchPropAllowDeletions) +model_rebuild(ProtectedBranchPropRequiredConversationResolution) +model_rebuild(ProtectedBranchPropBlockCreations) +model_rebuild(ProtectedBranchPropLockBranch) +model_rebuild(ProtectedBranchPropAllowForkSyncing) +model_rebuild(StatusCheckPolicy) +model_rebuild(StatusCheckPolicyPropChecksItems) __all__ = ( - "CheckSuitePreference", - "CheckSuitePreferencePropPreferences", - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", + "ProtectedBranch", + "ProtectedBranchPropAllowDeletions", + "ProtectedBranchPropAllowForcePushes", + "ProtectedBranchPropAllowForkSyncing", + "ProtectedBranchPropBlockCreations", + "ProtectedBranchPropEnforceAdmins", + "ProtectedBranchPropLockBranch", + "ProtectedBranchPropRequiredConversationResolution", + "ProtectedBranchPropRequiredLinearHistory", + "ProtectedBranchPropRequiredSignatures", + "StatusCheckPolicy", + "StatusCheckPolicyPropChecksItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0252.py b/githubkit/versions/ghec_v2022_11_28/models/group_0252.py index 7bd7e8c39..1d64bccab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0252.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0252.py @@ -9,64 +9,37 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0048 import CodeScanningAlertRuleSummary -from .group_0049 import CodeScanningAnalysisTool -from .group_0050 import CodeScanningAlertInstance +from .group_0253 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, +) -class CodeScanningAlertItems(GitHubModel): - """CodeScanningAlertItems""" +class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): + """ProtectedBranchPropRequiredPullRequestReviews""" - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( + url: str = Field() + dismiss_stale_reviews: Missing[bool] = Field(default=UNSET) + require_code_owner_reviews: Missing[bool] = Field(default=UNSET) + required_approving_review_count: Missing[int] = Field(default=UNSET) + require_last_push_approval: Missing[bool] = Field( default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." - ) - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert." - ) - fixed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) + description="Whether the most recent push must be approved by someone other than the person who pushed it.", ) - rule: CodeScanningAlertRuleSummary = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() + dismissal_restrictions: Missing[ + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field(default=UNSET) + bypass_pull_request_allowances: Missing[ + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ] = Field(default=UNSET) -model_rebuild(CodeScanningAlertItems) +model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) -__all__ = ("CodeScanningAlertItems",) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0253.py b/githubkit/versions/ghec_v2022_11_28/models/group_0253.py index a4b6534d4..5adb24aaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0253.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0253.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Union from pydantic import Field @@ -18,95 +17,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0049 import CodeScanningAnalysisTool -from .group_0050 import CodeScanningAlertInstance - - -class CodeScanningAlert(GitHubModel): - """CodeScanningAlert""" - - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." - ) - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert." - ) - fixed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - rule: CodeScanningAlertRule = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - - -class CodeScanningAlertRule(GitHubModel): - """CodeScanningAlertRule""" - - id: Missing[Union[str, None]] = Field( - default=UNSET, - description="A unique identifier for the rule used to detect the alert.", - ) - name: Missing[str] = Field( - default=UNSET, description="The name of the rule used to detect the alert." - ) - severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( - default=UNSET, description="The severity of the alert." - ) - security_severity_level: Missing[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] = Field(default=UNSET, description="The security severity of the alert.") - description: Missing[str] = Field( - default=UNSET, - description="A short description of the rule used to detect the alert.", - ) - full_description: Missing[str] = Field( - default=UNSET, description="A description of the rule used to detect the alert." - ) - tags: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A set of tags applicable for the rule." - ) - help_: Missing[Union[str, None]] = Field( - default=UNSET, - alias="help", - description="Detailed documentation for the rule as GitHub Flavored Markdown.", - ) - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - - -model_rebuild(CodeScanningAlert) -model_rebuild(CodeScanningAlertRule) +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0065 import Team + + +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" + + url: str = Field() + users_url: str = Field() + teams_url: str = Field() + users: list[SimpleUser] = Field() + teams: list[Team] = Field() + apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + + +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" + + users: list[SimpleUser] = Field() + teams: list[Team] = Field() + apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + + +model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) +model_rebuild( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) __all__ = ( - "CodeScanningAlert", - "CodeScanningAlertRule", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0254.py b/githubkit/versions/ghec_v2022_11_28/models/group_0254.py index 9ae48ea96..7a0f9e876 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0254.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0254.py @@ -10,25 +10,48 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class CodeScanningAutofix(GitHubModel): - """CodeScanningAutofix""" - - status: Literal["pending", "error", "success", "outdated"] = Field( - description="The status of an autofix." +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0010 import Integration + + +class DeploymentSimple(GitHubModel): + """Deployment + + A deployment created as the result of an Actions check run from a workflow that + references an environment + """ + + url: str = Field() + id: int = Field(description="Unique identifier of the deployment") + node_id: str = Field() + task: str = Field(description="Parameter to specify a task to execute") + original_environment: Missing[str] = Field(default=UNSET) + environment: str = Field(description="Name for the target deployment environment.") + description: Union[str, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + statuses_url: str = Field() + repository_url: str = Field() + transient_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", + ) + production_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is one that end-users directly interact with. Default: false.", ) - description: Union[str, None] = Field(description="The description of an autofix.") - started_at: datetime = Field( - description="The start time of an autofix in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) -model_rebuild(CodeScanningAutofix) +model_rebuild(DeploymentSimple) -__all__ = ("CodeScanningAutofix",) +__all__ = ("DeploymentSimple",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0255.py b/githubkit/versions/ghec_v2022_11_28/models/group_0255.py index c0777bd5b..b25c79f86 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0255.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0255.py @@ -9,28 +9,88 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0227 import PullRequestMinimal +from .group_0254 import DeploymentSimple + -class CodeScanningAutofixCommits(GitHubModel): - """CodeScanningAutofixCommits +class CheckRun(GitHubModel): + """CheckRun - Commit an autofix for a code scanning alert + A check performed on the code of a given code change """ - target_ref: Missing[str] = Field( - default=UNSET, - description='The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', + id: int = Field(description="The id of the check.") + head_sha: str = Field(description="The SHA of the commit that is being checked.") + node_id: str = Field() + external_id: Union[str, None] = Field() + url: str = Field() + html_url: Union[str, None] = Field() + details_url: Union[str, None] = Field() + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] = Field( + description="The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs." ) - message: Missing[str] = Field( - default=UNSET, description="Commit message to be used." + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + started_at: Union[datetime, None] = Field() + completed_at: Union[datetime, None] = Field() + output: CheckRunPropOutput = Field() + name: str = Field(description="The name of the check.") + check_suite: Union[CheckRunPropCheckSuite, None] = Field() + app: Union[None, Integration, None] = Field() + pull_requests: list[PullRequestMinimal] = Field( + description="Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check." ) + deployment: Missing[DeploymentSimple] = Field( + default=UNSET, + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", + ) + + +class CheckRunPropOutput(GitHubModel): + """CheckRunPropOutput""" + + title: Union[str, None] = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + annotations_count: int = Field() + annotations_url: str = Field() + + +class CheckRunPropCheckSuite(GitHubModel): + """CheckRunPropCheckSuite""" + + id: int = Field() -model_rebuild(CodeScanningAutofixCommits) +model_rebuild(CheckRun) +model_rebuild(CheckRunPropOutput) +model_rebuild(CheckRunPropCheckSuite) -__all__ = ("CodeScanningAutofixCommits",) +__all__ = ( + "CheckRun", + "CheckRunPropCheckSuite", + "CheckRunPropOutput", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0256.py b/githubkit/versions/ghec_v2022_11_28/models/group_0256.py index 02e796aba..2dfb0cd0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0256.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0256.py @@ -9,23 +9,31 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class CodeScanningAutofixCommitsResponse(GitHubModel): - """CodeScanningAutofixCommitsResponse""" +class CheckAnnotation(GitHubModel): + """Check Annotation + + Check Annotation + """ - target_ref: Missing[str] = Field( - default=UNSET, - description='The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', - ) - sha: Missing[str] = Field(default=UNSET, description="SHA of commit with autofix.") + path: str = Field() + start_line: int = Field() + end_line: int = Field() + start_column: Union[int, None] = Field() + end_column: Union[int, None] = Field() + annotation_level: Union[str, None] = Field() + title: Union[str, None] = Field() + message: Union[str, None] = Field() + raw_details: Union[str, None] = Field() + blob_href: str = Field() -model_rebuild(CodeScanningAutofixCommitsResponse) +model_rebuild(CheckAnnotation) -__all__ = ("CodeScanningAutofixCommitsResponse",) +__all__ = ("CheckAnnotation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0257.py b/githubkit/versions/ghec_v2022_11_28/models/group_0257.py index c91f73bdf..a6f57194c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0257.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0257.py @@ -10,6 +10,7 @@ from __future__ import annotations from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,49 +18,74 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0049 import CodeScanningAnalysisTool +from .group_0010 import Integration +from .group_0154 import MinimalRepository +from .group_0227 import PullRequestMinimal +from .group_0228 import SimpleCommit -class CodeScanningAnalysis(GitHubModel): - """CodeScanningAnalysis""" +class CheckSuite(GitHubModel): + """CheckSuite - ref: str = Field( - description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." - ) - commit_sha: str = Field( - min_length=40, - max_length=40, - pattern="^[0-9a-fA-F]+$", - description="The SHA of the commit to which the analysis you are uploading relates.", - ) - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - environment: str = Field( - description="Identifies the variable values associated with the environment in which this analysis was performed." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", - ) - error: str = Field() - created_at: datetime = Field( - description="The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + A suite of checks performed on the code of a given code change + """ + + id: int = Field() + node_id: str = Field() + head_branch: Union[str, None] = Field() + head_sha: str = Field( + description="The SHA of the head commit that is being checked." ) - results_count: int = Field( - description="The total number of results in the analysis." + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], + ] = Field( + description="The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." ) - rules_count: int = Field( - description="The total number of rules used in the analysis." + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "startup_failure", + "stale", + ], + ] = Field() + url: Union[str, None] = Field() + before: Union[str, None] = Field() + after: Union[str, None] = Field() + pull_requests: Union[list[PullRequestMinimal], None] = Field() + app: Union[None, Integration, None] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - id: int = Field(description="Unique identifier for this analysis.") - url: str = Field(description="The REST API URL of the analysis resource.") - sarif_id: str = Field(description="An identifier for the upload.") - tool: CodeScanningAnalysisTool = Field() - deletable: bool = Field() - warning: str = Field(description="Warning generated when processing the analysis") + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + latest_check_runs_count: int = Field() + check_runs_url: str = Field() + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int = Field() + check_suites: list[CheckSuite] = Field() -model_rebuild(CodeScanningAnalysis) +model_rebuild(CheckSuite) +model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) -__all__ = ("CodeScanningAnalysis",) +__all__ = ( + "CheckSuite", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0258.py b/githubkit/versions/ghec_v2022_11_28/models/group_0258.py index d589823d8..2bd59853b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0258.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0258.py @@ -9,27 +9,48 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0154 import MinimalRepository -class CodeScanningAnalysisDeletion(GitHubModel): - """Analysis deletion +class CheckSuitePreference(GitHubModel): + """Check Suite Preference - Successful deletion of a code scanning analysis + Check suite configuration preferences for a repository. """ - next_analysis_url: Union[str, None] = Field( - description="Next deletable analysis in chain, without last analysis deletion confirmation" - ) - confirm_delete_url: Union[str, None] = Field( - description="Next deletable analysis in chain, with last analysis deletion confirmation" + preferences: CheckSuitePreferencePropPreferences = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) -model_rebuild(CodeScanningAnalysisDeletion) +class CheckSuitePreferencePropPreferences(GitHubModel): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: Missing[ + list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] + ] = Field(default=UNSET) + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int = Field() + setting: bool = Field() + + +model_rebuild(CheckSuitePreference) +model_rebuild(CheckSuitePreferencePropPreferences) +model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) -__all__ = ("CodeScanningAnalysisDeletion",) +__all__ = ( + "CheckSuitePreference", + "CheckSuitePreferencePropPreferences", + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0259.py b/githubkit/versions/ghec_v2022_11_28/models/group_0259.py index 09f2e7d66..051378133 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0259.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0259.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,36 +18,55 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0053 import CodeScanningAlertRuleSummary +from .group_0054 import CodeScanningAnalysisTool +from .group_0055 import CodeScanningAlertInstance -class CodeScanningCodeqlDatabase(GitHubModel): - """CodeQL Database +class CodeScanningAlertItems(GitHubModel): + """CodeScanningAlertItems""" - A CodeQL database. - """ - - id: int = Field(description="The ID of the CodeQL database.") - name: str = Field(description="The name of the CodeQL database.") - language: str = Field(description="The language of the CodeQL database.") - uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") - content_type: str = Field(description="The MIME type of the CodeQL database file.") - size: int = Field(description="The size of the CodeQL database file in bytes.") + number: int = Field(description="The security alert number.") created_at: datetime = Field( - description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - updated_at: datetime = Field( - description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." ) - url: str = Field( - description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." ) - commit_oid: Missing[Union[str, None]] = Field( + fixed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The commit SHA of the repository at the time the CodeQL database was created.", + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) ) + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() -model_rebuild(CodeScanningCodeqlDatabase) +model_rebuild(CodeScanningAlertItems) -__all__ = ("CodeScanningCodeqlDatabase",) +__all__ = ("CodeScanningAlertItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0260.py b/githubkit/versions/ghec_v2022_11_28/models/group_0260.py index 4561ffbb1..8b1b2fa87 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0260.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0260.py @@ -10,29 +10,103 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Annotated, Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0054 import CodeScanningAnalysisTool +from .group_0055 import CodeScanningAlertInstance -class CodeScanningVariantAnalysisRepository(GitHubModel): - """Repository Identifier - Repository Identifier - """ +class CodeScanningAlert(GitHubModel): + """CodeScanningAlert""" - id: int = Field(description="A unique identifier of the repository.") - name: str = Field(description="The name of the repository.") - full_name: str = Field( - description="The full, globally unique, name of the repository." + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." + ) + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." + ) + fixed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + rule: CodeScanningAlertRule = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + + +class CodeScanningAlertRule(GitHubModel): + """CodeScanningAlertRule""" + + id: Missing[Union[str, None]] = Field( + default=UNSET, + description="A unique identifier for the rule used to detect the alert.", + ) + name: Missing[str] = Field( + default=UNSET, description="The name of the rule used to detect the alert." + ) + severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( + default=UNSET, description="The severity of the alert." + ) + security_severity_level: Missing[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] = Field(default=UNSET, description="The security severity of the alert.") + description: Missing[str] = Field( + default=UNSET, + description="A short description of the rule used to detect the alert.", + ) + full_description: Missing[str] = Field( + default=UNSET, description="A description of the rule used to detect the alert." + ) + tags: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A set of tags applicable for the rule." + ) + help_: Missing[Union[str, None]] = Field( + default=UNSET, + alias="help", + description="Detailed documentation for the rule as GitHub Flavored Markdown.", + ) + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", ) - private: bool = Field(description="Whether the repository is private.") - stargazers_count: int = Field() - updated_at: Union[datetime, None] = Field() -model_rebuild(CodeScanningVariantAnalysisRepository) +model_rebuild(CodeScanningAlert) +model_rebuild(CodeScanningAlertRule) -__all__ = ("CodeScanningVariantAnalysisRepository",) +__all__ = ( + "CodeScanningAlert", + "CodeScanningAlertRule", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0261.py b/githubkit/versions/ghec_v2022_11_28/models/group_0261.py index 71a518fca..9ae48ea96 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0261.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0261.py @@ -9,24 +9,26 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0260 import CodeScanningVariantAnalysisRepository - -class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): - """CodeScanningVariantAnalysisSkippedRepoGroup""" +class CodeScanningAutofix(GitHubModel): + """CodeScanningAutofix""" - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." + status: Literal["pending", "error", "success", "outdated"] = Field( + description="The status of an autofix." ) - repositories: list[CodeScanningVariantAnalysisRepository] = Field( - description="A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it." + description: Union[str, None] = Field(description="The description of an autofix.") + started_at: datetime = Field( + description="The start time of an autofix in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) -model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) +model_rebuild(CodeScanningAutofix) -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) +__all__ = ("CodeScanningAutofix",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0262.py b/githubkit/versions/ghec_v2022_11_28/models/group_0262.py index bb09e9f67..c0777bd5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0262.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0262.py @@ -9,70 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0051 import SimpleRepository -from .group_0263 import CodeScanningVariantAnalysisPropScannedRepositoriesItems -from .group_0264 import CodeScanningVariantAnalysisPropSkippedRepositories - -class CodeScanningVariantAnalysis(GitHubModel): - """Variant Analysis +class CodeScanningAutofixCommits(GitHubModel): + """CodeScanningAutofixCommits - A run of a CodeQL query against one or more repositories. + Commit an autofix for a code scanning alert """ - id: int = Field(description="The ID of the variant analysis.") - controller_repo: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." - ) - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack_url: str = Field(description="The download url for the query pack.") - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", - ) - status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() - actions_workflow_run_id: Missing[int] = Field( + target_ref: Missing[str] = Field( default=UNSET, - description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", + description='The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', ) - failure_reason: Missing[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] = Field( - default=UNSET, - description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", - ) - scanned_repositories: Missing[ - list[CodeScanningVariantAnalysisPropScannedRepositoriesItems] - ] = Field(default=UNSET) - skipped_repositories: Missing[ - CodeScanningVariantAnalysisPropSkippedRepositories - ] = Field( - default=UNSET, - description="Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis.", + message: Missing[str] = Field( + default=UNSET, description="Commit message to be used." ) -model_rebuild(CodeScanningVariantAnalysis) +model_rebuild(CodeScanningAutofixCommits) -__all__ = ("CodeScanningVariantAnalysis",) +__all__ = ("CodeScanningAutofixCommits",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0263.py b/githubkit/versions/ghec_v2022_11_28/models/group_0263.py index 1d14f8335..02e796aba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0263.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0263.py @@ -9,42 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0260 import CodeScanningVariantAnalysisRepository - -class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningAutofixCommitsResponse(GitHubModel): + """CodeScanningAutofixCommitsResponse""" - repository: CodeScanningVariantAnalysisRepository = Field( - title="Repository Identifier", description="Repository Identifier" - ) - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] = Field( - description="The new status of the CodeQL variant analysis repository task." - ) - result_count: Missing[int] = Field( - default=UNSET, - description="The number of results in the case of a successful analysis. This is only available for successful analyses.", - ) - artifact_size_in_bytes: Missing[int] = Field( - default=UNSET, - description="The size of the artifact. This is only available for successful analyses.", - ) - failure_message: Missing[str] = Field( + target_ref: Missing[str] = Field( default=UNSET, - description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + description='The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', ) + sha: Missing[str] = Field(default=UNSET, description="SHA of commit with autofix.") -model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) +model_rebuild(CodeScanningAutofixCommitsResponse) -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) +__all__ = ("CodeScanningAutofixCommitsResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0264.py b/githubkit/versions/ghec_v2022_11_28/models/group_0264.py index cdfc88ebe..0458a0834 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0264.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0264.py @@ -9,41 +9,57 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0261 import CodeScanningVariantAnalysisSkippedRepoGroup - - -class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositories +from .group_0054 import CodeScanningAnalysisTool - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. - """ - access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - not_found_repos: CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos = Field() - no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() +class CodeScanningAnalysis(GitHubModel): + """CodeScanningAnalysis""" - -class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" - - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." + ref: str = Field( + description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." + ) + commit_sha: str = Field( + min_length=40, + max_length=40, + pattern="^[0-9a-fA-F]+$", + description="The SHA of the commit to which the analysis you are uploading relates.", + ) + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + environment: str = Field( + description="Identifies the variable values associated with the environment in which this analysis was performed." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", + ) + error: str = Field() + created_at: datetime = Field( + description="The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + results_count: int = Field( + description="The total number of results in the analysis." ) - repository_full_names: list[str] = Field( - description="A list of full repository names that were skipped. This list may not include all repositories that were skipped." + rules_count: int = Field( + description="The total number of rules used in the analysis." ) + id: int = Field(description="Unique identifier for this analysis.") + url: str = Field(description="The REST API URL of the analysis resource.") + sarif_id: str = Field(description="An identifier for the upload.") + tool: CodeScanningAnalysisTool = Field() + deletable: bool = Field() + warning: str = Field(description="Warning generated when processing the analysis") -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) +model_rebuild(CodeScanningAnalysis) -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositories", - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", -) +__all__ = ("CodeScanningAnalysis",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0265.py b/githubkit/versions/ghec_v2022_11_28/models/group_0265.py index a68936f4f..d589823d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0265.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0265.py @@ -9,54 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0051 import SimpleRepository +class CodeScanningAnalysisDeletion(GitHubModel): + """Analysis deletion -class CodeScanningVariantAnalysisRepoTask(GitHubModel): - """CodeScanningVariantAnalysisRepoTask""" + Successful deletion of a code scanning analysis + """ - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." + next_analysis_url: Union[str, None] = Field( + description="Next deletable analysis in chain, without last analysis deletion confirmation" ) - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] = Field( - description="The new status of the CodeQL variant analysis repository task." - ) - artifact_size_in_bytes: Missing[int] = Field( - default=UNSET, - description="The size of the artifact. This is only available for successful analyses.", - ) - result_count: Missing[int] = Field( - default=UNSET, - description="The number of results in the case of a successful analysis. This is only available for successful analyses.", - ) - failure_message: Missing[str] = Field( - default=UNSET, - description="The reason of the failure of this repo task. This is only available if the repository task has failed.", - ) - database_commit_sha: Missing[str] = Field( - default=UNSET, - description="The SHA of the commit the CodeQL database was built against. This is only available for successful analyses.", - ) - source_location_prefix: Missing[str] = Field( - default=UNSET, - description="The source location prefix to use. This is only available for successful analyses.", - ) - artifact_url: Missing[str] = Field( - default=UNSET, - description="The URL of the artifact. This is only available for successful analyses.", + confirm_delete_url: Union[str, None] = Field( + description="Next deletable analysis in chain, with last analysis deletion confirmation" ) -model_rebuild(CodeScanningVariantAnalysisRepoTask) +model_rebuild(CodeScanningAnalysisDeletion) -__all__ = ("CodeScanningVariantAnalysisRepoTask",) +__all__ = ("CodeScanningAnalysisDeletion",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0266.py b/githubkit/versions/ghec_v2022_11_28/models/group_0266.py index db0cf7ba2..03bb03a35 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0266.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0266.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,52 +18,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class CodeScanningDefaultSetup(GitHubModel): - """CodeScanningDefaultSetup - Configuration for code scanning default setup. +class CodeScanningCodeqlDatabase(GitHubModel): + """CodeQL Database + + A CodeQL database. """ - state: Missing[Literal["configured", "not-configured"]] = Field( - default=UNSET, - description="Code scanning default setup has been configured or not.", - ) - languages: Missing[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] - ] = Field(default=UNSET, description="Languages to be analyzed.") - runner_type: Missing[Union[None, Literal["standard", "labeled"]]] = Field( - default=UNSET, description="Runner type to be used." + id: int = Field(description="The ID of the CodeQL database.") + name: str = Field(description="The name of the CodeQL database.") + language: str = Field(description="The language of the CodeQL database.") + uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") + content_type: str = Field(description="The MIME type of the CodeQL database file.") + size: int = Field(description="The size of the CodeQL database file in bytes.") + created_at: datetime = Field( + description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - runner_label: Missing[Union[str, None]] = Field( - default=UNSET, - description="Runner label to be used if the runner type is labeled.", - ) - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." + updated_at: datetime = Field( + description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - updated_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Timestamp of latest configuration update." + url: str = Field( + description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." ) - schedule: Missing[Union[None, Literal["weekly"]]] = Field( - default=UNSET, description="The frequency of the periodic analysis." + commit_oid: Missing[Union[str, None]] = Field( + default=UNSET, + description="The commit SHA of the repository at the time the CodeQL database was created.", ) -model_rebuild(CodeScanningDefaultSetup) +model_rebuild(CodeScanningCodeqlDatabase) -__all__ = ("CodeScanningDefaultSetup",) +__all__ = ("CodeScanningCodeqlDatabase",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0267.py b/githubkit/versions/ghec_v2022_11_28/models/group_0267.py index 089b0befc..4561ffbb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0267.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0267.py @@ -9,51 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class CodeScanningDefaultSetupUpdate(GitHubModel): - """CodeScanningDefaultSetupUpdate +class CodeScanningVariantAnalysisRepository(GitHubModel): + """Repository Identifier - Configuration for code scanning default setup. + Repository Identifier """ - state: Missing[Literal["configured", "not-configured"]] = Field( - default=UNSET, description="The desired state of code scanning default setup." + id: int = Field(description="A unique identifier of the repository.") + name: str = Field(description="The name of the repository.") + full_name: str = Field( + description="The full, globally unique, name of the repository." ) - runner_type: Missing[Literal["standard", "labeled"]] = Field( - default=UNSET, description="Runner type to be used." - ) - runner_label: Missing[Union[str, None]] = Field( - default=UNSET, - description="Runner label to be used if the runner type is labeled.", - ) - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." - ) - languages: Missing[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] - ] = Field(default=UNSET, description="CodeQL languages to be analyzed.") - - -model_rebuild(CodeScanningDefaultSetupUpdate) - -__all__ = ("CodeScanningDefaultSetupUpdate",) + private: bool = Field(description="Whether the repository is private.") + stargazers_count: int = Field() + updated_at: Union[datetime, None] = Field() + + +model_rebuild(CodeScanningVariantAnalysisRepository) + +__all__ = ("CodeScanningVariantAnalysisRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0268.py b/githubkit/versions/ghec_v2022_11_28/models/group_0268.py index 4bb252bf7..2c5681619 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0268.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0268.py @@ -12,26 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0267 import CodeScanningVariantAnalysisRepository -class CodeScanningDefaultSetupUpdateResponse(GitHubModel): - """CodeScanningDefaultSetupUpdateResponse - You can use `run_url` to track the status of the run. This includes a property - status and conclusion. - You should not rely on this always being an actions workflow run object. - """ +class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - run_id: Missing[int] = Field( - default=UNSET, description="ID of the corresponding run." + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - run_url: Missing[str] = Field( - default=UNSET, description="URL of the corresponding run." + repositories: list[CodeScanningVariantAnalysisRepository] = Field( + description="A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it." ) -model_rebuild(CodeScanningDefaultSetupUpdateResponse) +model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) -__all__ = ("CodeScanningDefaultSetupUpdateResponse",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0269.py b/githubkit/versions/ghec_v2022_11_28/models/group_0269.py index a7508c529..d21b37d8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0269.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0269.py @@ -9,23 +9,70 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0056 import SimpleRepository +from .group_0270 import CodeScanningVariantAnalysisPropScannedRepositoriesItems +from .group_0271 import CodeScanningVariantAnalysisPropSkippedRepositories + -class CodeScanningSarifsReceipt(GitHubModel): - """CodeScanningSarifsReceipt""" +class CodeScanningVariantAnalysis(GitHubModel): + """Variant Analysis - id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") - url: Missing[str] = Field( + A run of a CodeQL query against one or more repositories. + """ + + id: int = Field(description="The ID of the variant analysis.") + controller_repo: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack_url: str = Field(description="The download url for the query pack.") + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", + ) + status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() + actions_workflow_run_id: Missing[int] = Field( + default=UNSET, + description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", + ) + failure_reason: Missing[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] = Field( + default=UNSET, + description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", + ) + scanned_repositories: Missing[ + list[CodeScanningVariantAnalysisPropScannedRepositoriesItems] + ] = Field(default=UNSET) + skipped_repositories: Missing[ + CodeScanningVariantAnalysisPropSkippedRepositories + ] = Field( default=UNSET, - description="The REST API URL for checking the status of the upload.", + description="Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis.", ) -model_rebuild(CodeScanningSarifsReceipt) +model_rebuild(CodeScanningVariantAnalysis) -__all__ = ("CodeScanningSarifsReceipt",) +__all__ = ("CodeScanningVariantAnalysis",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0270.py b/githubkit/versions/ghec_v2022_11_28/models/group_0270.py index 525bd5e50..6acc6f312 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0270.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0270.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,24 +17,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0267 import CodeScanningVariantAnalysisRepository -class CodeScanningSarifsStatus(GitHubModel): - """CodeScanningSarifsStatus""" - processing_status: Missing[Literal["pending", "complete", "failed"]] = Field( +class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" + + repository: CodeScanningVariantAnalysisRepository = Field( + title="Repository Identifier", description="Repository Identifier" + ) + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] = Field( + description="The new status of the CodeQL variant analysis repository task." + ) + result_count: Missing[int] = Field( default=UNSET, - description="`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.", + description="The number of results in the case of a successful analysis. This is only available for successful analyses.", ) - analyses_url: Missing[Union[str, None]] = Field( + artifact_size_in_bytes: Missing[int] = Field( default=UNSET, - description="The REST API URL for getting the analyses associated with the upload.", + description="The size of the artifact. This is only available for successful analyses.", ) - errors: Missing[Union[list[str], None]] = Field( + failure_message: Missing[str] = Field( default=UNSET, - description="Any errors that ocurred during processing of the delivery.", + description="The reason of the failure of this repo task. This is only available if the repository task has failed.", ) -model_rebuild(CodeScanningSarifsStatus) +model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) -__all__ = ("CodeScanningSarifsStatus",) +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0271.py b/githubkit/versions/ghec_v2022_11_28/models/group_0271.py index 4b782d498..ae64ba3fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0271.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0271.py @@ -9,43 +9,41 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0053 import CodeSecurityConfiguration +from .group_0268 import CodeScanningVariantAnalysisSkippedRepoGroup -class CodeSecurityConfigurationForRepository(GitHubModel): - """CodeSecurityConfigurationForRepository +class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositories - Code security configuration associated with a repository and attachment status + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. """ - status: Missing[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] = Field( - default=UNSET, - description="The attachment status of the code security configuration on the repository.", + access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + not_found_repos: CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos = Field() + no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + + +class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" + + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + repository_full_names: list[str] = Field( + description="A list of full repository names that were skipped. This list may not include all repositories that were skipped." ) -model_rebuild(CodeSecurityConfigurationForRepository) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) -__all__ = ("CodeSecurityConfigurationForRepository",) +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositories", + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0272.py b/githubkit/versions/ghec_v2022_11_28/models/group_0272.py index b356aafc8..cf80fadcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0272.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0272.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,39 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0056 import SimpleRepository -class CodeownersErrors(GitHubModel): - """CODEOWNERS errors - A list of errors found in a repo's CODEOWNERS file - """ +class CodeScanningVariantAnalysisRepoTask(GitHubModel): + """CodeScanningVariantAnalysisRepoTask""" - errors: list[CodeownersErrorsPropErrorsItems] = Field() - - -class CodeownersErrorsPropErrorsItems(GitHubModel): - """CodeownersErrorsPropErrorsItems""" - - line: int = Field(description="The line number where this errors occurs.") - column: int = Field(description="The column number where this errors occurs.") - source: Missing[str] = Field( - default=UNSET, description="The contents of the line where the error occurs." + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] = Field( + description="The new status of the CodeQL variant analysis repository task." ) - kind: str = Field(description="The type of error.") - suggestion: Missing[Union[str, None]] = Field( + artifact_size_in_bytes: Missing[int] = Field( default=UNSET, - description="Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.", + description="The size of the artifact. This is only available for successful analyses.", ) - message: str = Field( - description="A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting)." + result_count: Missing[int] = Field( + default=UNSET, + description="The number of results in the case of a successful analysis. This is only available for successful analyses.", + ) + failure_message: Missing[str] = Field( + default=UNSET, + description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + ) + database_commit_sha: Missing[str] = Field( + default=UNSET, + description="The SHA of the commit the CodeQL database was built against. This is only available for successful analyses.", + ) + source_location_prefix: Missing[str] = Field( + default=UNSET, + description="The source location prefix to use. This is only available for successful analyses.", + ) + artifact_url: Missing[str] = Field( + default=UNSET, + description="The URL of the artifact. This is only available for successful analyses.", ) - path: str = Field(description="The path of the file where the error occured.") -model_rebuild(CodeownersErrors) -model_rebuild(CodeownersErrorsPropErrorsItems) +model_rebuild(CodeScanningVariantAnalysisRepoTask) -__all__ = ( - "CodeownersErrors", - "CodeownersErrorsPropErrorsItems", -) +__all__ = ("CodeScanningVariantAnalysisRepoTask",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0273.py b/githubkit/versions/ghec_v2022_11_28/models/group_0273.py index de6f0cf08..db0cf7ba2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0273.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0273.py @@ -9,22 +9,61 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodespacesPermissionsCheckForDevcontainer(GitHubModel): - """Codespaces Permissions Check +class CodeScanningDefaultSetup(GitHubModel): + """CodeScanningDefaultSetup - Permission check result for a given devcontainer config. + Configuration for code scanning default setup. """ - accepted: bool = Field( - description="Whether the user has accepted the permissions defined by the devcontainer config" + state: Missing[Literal["configured", "not-configured"]] = Field( + default=UNSET, + description="Code scanning default setup has been configured or not.", + ) + languages: Missing[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] = Field(default=UNSET, description="Languages to be analyzed.") + runner_type: Missing[Union[None, Literal["standard", "labeled"]]] = Field( + default=UNSET, description="Runner type to be used." + ) + runner_label: Missing[Union[str, None]] = Field( + default=UNSET, + description="Runner label to be used if the runner type is labeled.", + ) + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." + ) + updated_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Timestamp of latest configuration update." + ) + schedule: Missing[Union[None, Literal["weekly"]]] = Field( + default=UNSET, description="The frequency of the periodic analysis." ) -model_rebuild(CodespacesPermissionsCheckForDevcontainer) +model_rebuild(CodeScanningDefaultSetup) -__all__ = ("CodespacesPermissionsCheckForDevcontainer",) +__all__ = ("CodeScanningDefaultSetup",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0274.py b/githubkit/versions/ghec_v2022_11_28/models/group_0274.py index 3d4945d95..089b0befc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0274.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0274.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,34 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0147 import MinimalRepository +class CodeScanningDefaultSetupUpdate(GitHubModel): + """CodeScanningDefaultSetupUpdate -class RepositoryInvitation(GitHubModel): - """Repository Invitation - - Repository invitations let you manage who you collaborate with. + Configuration for code scanning default setup. """ - id: int = Field(description="Unique identifier of the repository invitation.") - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + state: Missing[Literal["configured", "not-configured"]] = Field( + default=UNSET, description="The desired state of code scanning default setup." ) - invitee: Union[None, SimpleUser] = Field() - inviter: Union[None, SimpleUser] = Field() - permissions: Literal["read", "write", "admin", "triage", "maintain"] = Field( - description="The permission associated with the invitation." + runner_type: Missing[Literal["standard", "labeled"]] = Field( + default=UNSET, description="Runner type to be used." ) - created_at: datetime = Field() - expired: Missing[bool] = Field( - default=UNSET, description="Whether or not the invitation has expired" + runner_label: Missing[Union[str, None]] = Field( + default=UNSET, + description="Runner label to be used if the runner type is labeled.", ) - url: str = Field(description="URL for the repository invitation") - html_url: str = Field() - node_id: str = Field() - - -model_rebuild(RepositoryInvitation) - -__all__ = ("RepositoryInvitation",) + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." + ) + languages: Missing[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "python", + "ruby", + "swift", + ] + ] + ] = Field(default=UNSET, description="CodeQL languages to be analyzed.") + + +model_rebuild(CodeScanningDefaultSetupUpdate) + +__all__ = ("CodeScanningDefaultSetupUpdate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0275.py b/githubkit/versions/ghec_v2022_11_28/models/group_0275.py index ba71473fc..4bb252bf7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0275.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0275.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,64 +16,22 @@ from githubkit.utils import UNSET -class RepositoryCollaboratorPermission(GitHubModel): - """Repository Collaborator Permission +class CodeScanningDefaultSetupUpdateResponse(GitHubModel): + """CodeScanningDefaultSetupUpdateResponse - Repository Collaborator Permission + You can use `run_url` to track the status of the run. This includes a property + status and conclusion. + You should not rely on this always being an actions workflow run object. """ - permission: str = Field() - role_name: str = Field() - user: Union[None, Collaborator] = Field() - - -class Collaborator(GitHubModel): - """Collaborator - - Collaborator - """ - - login: str = Field() - id: int = Field() - email: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - permissions: Missing[CollaboratorPropPermissions] = Field(default=UNSET) - role_name: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -class CollaboratorPropPermissions(GitHubModel): - """CollaboratorPropPermissions""" - - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - admin: bool = Field() + run_id: Missing[int] = Field( + default=UNSET, description="ID of the corresponding run." + ) + run_url: Missing[str] = Field( + default=UNSET, description="URL of the corresponding run." + ) -model_rebuild(RepositoryCollaboratorPermission) -model_rebuild(Collaborator) -model_rebuild(CollaboratorPropPermissions) +model_rebuild(CodeScanningDefaultSetupUpdateResponse) -__all__ = ( - "Collaborator", - "CollaboratorPropPermissions", - "RepositoryCollaboratorPermission", -) +__all__ = ("CodeScanningDefaultSetupUpdateResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0276.py b/githubkit/versions/ghec_v2022_11_28/models/group_0276.py index 8023b864a..a7508c529 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0276.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0276.py @@ -9,69 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0130 import ReactionRollup - -class CommitComment(GitHubModel): - """Commit Comment +class CodeScanningSarifsReceipt(GitHubModel): + """CodeScanningSarifsReceipt""" - Commit Comment - """ - - html_url: str = Field() - url: str = Field() - id: int = Field() - node_id: str = Field() - body: str = Field() - path: Union[str, None] = Field() - position: Union[int, None] = Field() - line: Union[int, None] = Field() - commit_id: str = Field() - user: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") + url: Missing[str] = Field( + default=UNSET, + description="The REST API URL for checking the status of the upload.", ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - - -class TimelineCommitCommentedEvent(GitHubModel): - """Timeline Commit Commented Event - - Timeline Commit Commented Event - """ - - event: Missing[Literal["commit_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - commit_id: Missing[str] = Field(default=UNSET) - comments: Missing[list[CommitComment]] = Field(default=UNSET) -model_rebuild(CommitComment) -model_rebuild(TimelineCommitCommentedEvent) +model_rebuild(CodeScanningSarifsReceipt) -__all__ = ( - "CommitComment", - "TimelineCommitCommentedEvent", -) +__all__ = ("CodeScanningSarifsReceipt",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0277.py b/githubkit/versions/ghec_v2022_11_28/models/group_0277.py index 1899117e7..525bd5e50 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0277.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0277.py @@ -9,33 +9,32 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class BranchShort(GitHubModel): - """Branch Short - - Branch Short - """ - - name: str = Field() - commit: BranchShortPropCommit = Field() - protected: bool = Field() - - -class BranchShortPropCommit(GitHubModel): - """BranchShortPropCommit""" +class CodeScanningSarifsStatus(GitHubModel): + """CodeScanningSarifsStatus""" - sha: str = Field() - url: str = Field() + processing_status: Missing[Literal["pending", "complete", "failed"]] = Field( + default=UNSET, + description="`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.", + ) + analyses_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The REST API URL for getting the analyses associated with the upload.", + ) + errors: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="Any errors that ocurred during processing of the delivery.", + ) -model_rebuild(BranchShort) -model_rebuild(BranchShortPropCommit) +model_rebuild(CodeScanningSarifsStatus) -__all__ = ( - "BranchShort", - "BranchShortPropCommit", -) +__all__ = ("CodeScanningSarifsStatus",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0278.py b/githubkit/versions/ghec_v2022_11_28/models/group_0278.py index b537858f8..024ea8be4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0278.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0278.py @@ -9,20 +9,43 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0058 import CodeSecurityConfiguration -class Link(GitHubModel): - """Link - - Hypermedia Link - """ - href: str = Field() +class CodeSecurityConfigurationForRepository(GitHubModel): + """CodeSecurityConfigurationForRepository + Code security configuration associated with a repository and attachment status + """ -model_rebuild(Link) - -__all__ = ("Link",) + status: Missing[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] + ] = Field( + default=UNSET, + description="The attachment status of the code security configuration on the repository.", + ) + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" + ) + + +model_rebuild(CodeSecurityConfigurationForRepository) + +__all__ = ("CodeSecurityConfigurationForRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0279.py b/githubkit/versions/ghec_v2022_11_28/models/group_0279.py index 264fa15ca..b356aafc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0279.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0279.py @@ -9,33 +9,47 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class CodeownersErrors(GitHubModel): + """CODEOWNERS errors -class AutoMerge(GitHubModel): - """Auto merge - - The status of auto merging a pull request. + A list of errors found in a repo's CODEOWNERS file """ - enabled_by: SimpleUser = Field(title="Simple User", description="A GitHub user.") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." + errors: list[CodeownersErrorsPropErrorsItems] = Field() + + +class CodeownersErrorsPropErrorsItems(GitHubModel): + """CodeownersErrorsPropErrorsItems""" + + line: int = Field(description="The line number where this errors occurs.") + column: int = Field(description="The column number where this errors occurs.") + source: Missing[str] = Field( + default=UNSET, description="The contents of the line where the error occurs." ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." + kind: str = Field(description="The type of error.") + suggestion: Missing[Union[str, None]] = Field( + default=UNSET, + description="Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.", ) - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." + message: str = Field( + description="A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting)." ) + path: str = Field(description="The path of the file where the error occured.") -model_rebuild(AutoMerge) +model_rebuild(CodeownersErrors) +model_rebuild(CodeownersErrorsPropErrorsItems) -__all__ = ("AutoMerge",) +__all__ = ( + "CodeownersErrors", + "CodeownersErrorsPropErrorsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0280.py b/githubkit/versions/ghec_v2022_11_28/models/group_0280.py index b97a9a3fc..de6f0cf08 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0280.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0280.py @@ -9,100 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0060 import Team -from .group_0129 import Milestone -from .group_0279 import AutoMerge -from .group_0281 import PullRequestSimplePropBase, PullRequestSimplePropHead -from .group_0282 import PullRequestSimplePropLinks -class PullRequestSimple(GitHubModel): - """Pull Request Simple +class CodespacesPermissionsCheckForDevcontainer(GitHubModel): + """Codespaces Permissions Check - Pull Request Simple + Permission check result for a given devcontainer config. """ - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field() - state: str = Field() - locked: bool = Field() - title: str = Field() - user: Union[None, SimpleUser] = Field() - body: Union[str, None] = Field() - labels: list[PullRequestSimplePropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[list[Team], None]] = Field(default=UNSET) - head: PullRequestSimplePropHead = Field() - base: PullRequestSimplePropBase = Field() - links: PullRequestSimplePropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", + accepted: bool = Field( + description="Whether the user has accepted the permissions defined by the devcontainer config" ) -class PullRequestSimplePropLabelsItems(GitHubModel): - """PullRequestSimplePropLabelsItems""" - - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() - - -model_rebuild(PullRequestSimple) -model_rebuild(PullRequestSimplePropLabelsItems) +model_rebuild(CodespacesPermissionsCheckForDevcontainer) -__all__ = ( - "PullRequestSimple", - "PullRequestSimplePropLabelsItems", -) +__all__ = ("CodespacesPermissionsCheckForDevcontainer",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0281.py b/githubkit/versions/ghec_v2022_11_28/models/group_0281.py index 6941ced32..8f7c501c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0281.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0281.py @@ -9,40 +9,43 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0019 import Repository +from .group_0003 import SimpleUser +from .group_0154 import MinimalRepository -class PullRequestSimplePropHead(GitHubModel): - """PullRequestSimplePropHead""" +class RepositoryInvitation(GitHubModel): + """Repository Invitation - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[None, Repository] = Field() - sha: str = Field() - user: Union[None, SimpleUser] = Field() + Repository invitations let you manage who you collaborate with. + """ + id: int = Field(description="Unique identifier of the repository invitation.") + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + invitee: Union[None, SimpleUser] = Field() + inviter: Union[None, SimpleUser] = Field() + permissions: Literal["read", "write", "admin", "triage", "maintain"] = Field( + description="The permission associated with the invitation." + ) + created_at: datetime = Field() + expired: Missing[bool] = Field( + default=UNSET, description="Whether or not the invitation has expired" + ) + url: str = Field(description="URL for the repository invitation") + html_url: str = Field() + node_id: str = Field() -class PullRequestSimplePropBase(GitHubModel): - """PullRequestSimplePropBase""" - label: str = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") - sha: str = Field() - user: Union[None, SimpleUser] = Field() +model_rebuild(RepositoryInvitation) - -model_rebuild(PullRequestSimplePropHead) -model_rebuild(PullRequestSimplePropBase) - -__all__ = ( - "PullRequestSimplePropBase", - "PullRequestSimplePropHead", -) +__all__ = ("RepositoryInvitation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0282.py b/githubkit/versions/ghec_v2022_11_28/models/group_0282.py index d763e24d5..ba71473fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0282.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0282.py @@ -9,26 +9,73 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class RepositoryCollaboratorPermission(GitHubModel): + """Repository Collaborator Permission + + Repository Collaborator Permission + """ + + permission: str = Field() + role_name: str = Field() + user: Union[None, Collaborator] = Field() + + +class Collaborator(GitHubModel): + """Collaborator + + Collaborator + """ -from .group_0278 import Link + login: str = Field() + id: int = Field() + email: Missing[Union[str, None]] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + permissions: Missing[CollaboratorPropPermissions] = Field(default=UNSET) + role_name: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) -class PullRequestSimplePropLinks(GitHubModel): - """PullRequestSimplePropLinks""" +class CollaboratorPropPermissions(GitHubModel): + """CollaboratorPropPermissions""" - comments: Link = Field(title="Link", description="Hypermedia Link") - commits: Link = Field(title="Link", description="Hypermedia Link") - statuses: Link = Field(title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - issue: Link = Field(title="Link", description="Hypermedia Link") - review_comments: Link = Field(title="Link", description="Hypermedia Link") - review_comment: Link = Field(title="Link", description="Hypermedia Link") - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + admin: bool = Field() -model_rebuild(PullRequestSimplePropLinks) +model_rebuild(RepositoryCollaboratorPermission) +model_rebuild(Collaborator) +model_rebuild(CollaboratorPropPermissions) -__all__ = ("PullRequestSimplePropLinks",) +__all__ = ( + "Collaborator", + "CollaboratorPropPermissions", + "RepositoryCollaboratorPermission", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0283.py b/githubkit/versions/ghec_v2022_11_28/models/group_0283.py index ecab709fc..dc192f748 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0283.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0283.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,46 +18,60 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0147 import MinimalRepository +from .group_0003 import SimpleUser +from .group_0137 import ReactionRollup -class CombinedCommitStatus(GitHubModel): - """Combined Commit Status +class CommitComment(GitHubModel): + """Commit Comment - Combined Commit Status + Commit Comment """ - state: str = Field() - statuses: list[SimpleCommitStatus] = Field() - sha: str = Field() - total_count: int = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - commit_url: str = Field() + html_url: str = Field() url: str = Field() - - -class SimpleCommitStatus(GitHubModel): - """Simple Commit Status""" - - description: Union[str, None] = Field() id: int = Field() node_id: str = Field() - state: str = Field() - context: str = Field() - target_url: Union[str, None] = Field() - required: Missing[Union[bool, None]] = Field(default=UNSET) - avatar_url: Union[str, None] = Field() - url: str = Field() + body: str = Field() + path: Union[str, None] = Field() + position: Union[int, None] = Field() + line: Union[int, None] = Field() + commit_id: str = Field() + user: Union[None, SimpleUser] = Field() created_at: datetime = Field() updated_at: datetime = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +class TimelineCommitCommentedEvent(GitHubModel): + """Timeline Commit Commented Event + + Timeline Commit Commented Event + """ + + event: Missing[Literal["commit_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + commit_id: Missing[str] = Field(default=UNSET) + comments: Missing[list[CommitComment]] = Field(default=UNSET) -model_rebuild(CombinedCommitStatus) -model_rebuild(SimpleCommitStatus) +model_rebuild(CommitComment) +model_rebuild(TimelineCommitCommentedEvent) __all__ = ( - "CombinedCommitStatus", - "SimpleCommitStatus", + "CommitComment", + "TimelineCommitCommentedEvent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0284.py b/githubkit/versions/ghec_v2022_11_28/models/group_0284.py index 90acabe2a..1899117e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0284.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0284.py @@ -9,34 +9,33 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser - -class Status(GitHubModel): - """Status +class BranchShort(GitHubModel): + """Branch Short - The status of a commit. + Branch Short """ + name: str = Field() + commit: BranchShortPropCommit = Field() + protected: bool = Field() + + +class BranchShortPropCommit(GitHubModel): + """BranchShortPropCommit""" + + sha: str = Field() url: str = Field() - avatar_url: Union[str, None] = Field() - id: int = Field() - node_id: str = Field() - state: str = Field() - description: Union[str, None] = Field() - target_url: Union[str, None] = Field() - context: str = Field() - created_at: str = Field() - updated_at: str = Field() - creator: Union[None, SimpleUser] = Field() -model_rebuild(Status) +model_rebuild(BranchShort) +model_rebuild(BranchShortPropCommit) -__all__ = ("Status",) +__all__ = ( + "BranchShort", + "BranchShortPropCommit", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0285.py b/githubkit/versions/ghec_v2022_11_28/models/group_0285.py index 619b88950..b537858f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0285.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0285.py @@ -9,58 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0018 import LicenseSimple -from .group_0192 import CodeOfConductSimple - - -class CommunityProfilePropFiles(GitHubModel): - """CommunityProfilePropFiles""" - - code_of_conduct: Union[None, CodeOfConductSimple] = Field() - code_of_conduct_file: Union[None, CommunityHealthFile] = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - contributing: Union[None, CommunityHealthFile] = Field() - readme: Union[None, CommunityHealthFile] = Field() - issue_template: Union[None, CommunityHealthFile] = Field() - pull_request_template: Union[None, CommunityHealthFile] = Field() - - -class CommunityHealthFile(GitHubModel): - """Community Health File""" - - url: str = Field() - html_url: str = Field() -class CommunityProfile(GitHubModel): - """Community Profile +class Link(GitHubModel): + """Link - Community Profile + Hypermedia Link """ - health_percentage: int = Field() - description: Union[str, None] = Field() - documentation: Union[str, None] = Field() - files: CommunityProfilePropFiles = Field() - updated_at: Union[datetime, None] = Field() - content_reports_enabled: Missing[bool] = Field(default=UNSET) + href: str = Field() -model_rebuild(CommunityProfilePropFiles) -model_rebuild(CommunityHealthFile) -model_rebuild(CommunityProfile) +model_rebuild(Link) -__all__ = ( - "CommunityHealthFile", - "CommunityProfile", - "CommunityProfilePropFiles", -) +__all__ = ("Link",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0286.py b/githubkit/versions/ghec_v2022_11_28/models/group_0286.py index 7aeb0fca4..48491e4bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0286.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0286.py @@ -9,39 +9,33 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0240 import DiffEntry -from .group_0241 import Commit +from .group_0003 import SimpleUser -class CommitComparison(GitHubModel): - """Commit Comparison +class AutoMerge(GitHubModel): + """Auto merge - Commit Comparison + The status of auto merging a pull request. """ - url: str = Field() - html_url: str = Field() - permalink_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - base_commit: Commit = Field(title="Commit", description="Commit") - merge_base_commit: Commit = Field(title="Commit", description="Commit") - status: Literal["diverged", "ahead", "behind", "identical"] = Field() - ahead_by: int = Field() - behind_by: int = Field() - total_commits: int = Field() - commits: list[Commit] = Field() - files: Missing[list[DiffEntry]] = Field(default=UNSET) + enabled_by: SimpleUser = Field(title="Simple User", description="A GitHub user.") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) -model_rebuild(CommitComparison) +model_rebuild(AutoMerge) -__all__ = ("CommitComparison",) +__all__ = ("AutoMerge",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0287.py b/githubkit/versions/ghec_v2022_11_28/models/group_0287.py index 445f68e5f..88d678611 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0287.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0287.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,66 +18,91 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0065 import Team +from .group_0136 import Milestone +from .group_0286 import AutoMerge +from .group_0288 import PullRequestSimplePropBase, PullRequestSimplePropHead +from .group_0289 import PullRequestSimplePropLinks -class ContentTree(GitHubModel): - """Content Tree - Content Tree +class PullRequestSimple(GitHubModel): + """Pull Request Simple + + Pull Request Simple """ - type: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - sha: str = Field() - content: Missing[str] = Field(default=UNSET) url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - entries: Missing[list[ContentTreePropEntriesItems]] = Field(default=UNSET) - links: ContentTreePropLinks = Field(alias="_links") - - -class ContentTreePropLinks(GitHubModel): - """ContentTreePropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") - - -class ContentTreePropEntriesItems(GitHubModel): - """ContentTreePropEntriesItems""" - - type: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - sha: str = Field() + id: int = Field() + node_id: str = Field() + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field() + state: str = Field() + locked: bool = Field() + title: str = Field() + user: Union[None, SimpleUser] = Field() + body: Union[str, None] = Field() + labels: list[PullRequestSimplePropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[list[Team], None]] = Field(default=UNSET) + head: PullRequestSimplePropHead = Field() + base: PullRequestSimplePropBase = Field() + links: PullRequestSimplePropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) + + +class PullRequestSimplePropLabelsItems(GitHubModel): + """PullRequestSimplePropLabelsItems""" + + id: int = Field() + node_id: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentTreePropEntriesItemsPropLinks = Field(alias="_links") - - -class ContentTreePropEntriesItemsPropLinks(GitHubModel): - """ContentTreePropEntriesItemsPropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + name: str = Field() + description: Union[str, None] = Field() + color: str = Field() + default: bool = Field() -model_rebuild(ContentTree) -model_rebuild(ContentTreePropLinks) -model_rebuild(ContentTreePropEntriesItems) -model_rebuild(ContentTreePropEntriesItemsPropLinks) +model_rebuild(PullRequestSimple) +model_rebuild(PullRequestSimplePropLabelsItems) __all__ = ( - "ContentTree", - "ContentTreePropEntriesItems", - "ContentTreePropEntriesItemsPropLinks", - "ContentTreePropLinks", + "PullRequestSimple", + "PullRequestSimplePropLabelsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0288.py b/githubkit/versions/ghec_v2022_11_28/models/group_0288.py index b3b3e9366..f7a7c23e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0288.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0288.py @@ -9,43 +9,40 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0020 import Repository -class ContentDirectoryItems(GitHubModel): - """ContentDirectoryItems""" - type: Literal["dir", "file", "submodule", "symlink"] = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: Missing[str] = Field(default=UNSET) +class PullRequestSimplePropHead(GitHubModel): + """PullRequestSimplePropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[None, Repository] = Field() sha: str = Field() - url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentDirectoryItemsPropLinks = Field(alias="_links") + user: Union[None, SimpleUser] = Field() -class ContentDirectoryItemsPropLinks(GitHubModel): - """ContentDirectoryItemsPropLinks""" +class PullRequestSimplePropBase(GitHubModel): + """PullRequestSimplePropBase""" - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + label: str = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") + sha: str = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(ContentDirectoryItems) -model_rebuild(ContentDirectoryItemsPropLinks) +model_rebuild(PullRequestSimplePropHead) +model_rebuild(PullRequestSimplePropBase) __all__ = ( - "ContentDirectoryItems", - "ContentDirectoryItemsPropLinks", + "PullRequestSimplePropBase", + "PullRequestSimplePropHead", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0289.py b/githubkit/versions/ghec_v2022_11_28/models/group_0289.py index 15cd134fc..6b0ecca1d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0289.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0289.py @@ -9,49 +9,26 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ContentFile(GitHubModel): - """Content File - - Content File - """ - type: Literal["file"] = Field() - encoding: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: str = Field() - sha: str = Field() - url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentFilePropLinks = Field(alias="_links") - target: Missing[str] = Field(default=UNSET) - submodule_git_url: Missing[str] = Field(default=UNSET) +from .group_0285 import Link -class ContentFilePropLinks(GitHubModel): - """ContentFilePropLinks""" +class PullRequestSimplePropLinks(GitHubModel): + """PullRequestSimplePropLinks""" - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + comments: Link = Field(title="Link", description="Hypermedia Link") + commits: Link = Field(title="Link", description="Hypermedia Link") + statuses: Link = Field(title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + issue: Link = Field(title="Link", description="Hypermedia Link") + review_comments: Link = Field(title="Link", description="Hypermedia Link") + review_comment: Link = Field(title="Link", description="Hypermedia Link") + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") -model_rebuild(ContentFile) -model_rebuild(ContentFilePropLinks) +model_rebuild(PullRequestSimplePropLinks) -__all__ = ( - "ContentFile", - "ContentFilePropLinks", -) +__all__ = ("PullRequestSimplePropLinks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0290.py b/githubkit/versions/ghec_v2022_11_28/models/group_0290.py index bc90348f6..a54e09364 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0290.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0290.py @@ -9,44 +9,55 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0154 import MinimalRepository -class ContentSymlink(GitHubModel): - """Symlink Content - An object describing a symlink +class CombinedCommitStatus(GitHubModel): + """Combined Commit Status + + Combined Commit Status """ - type: Literal["symlink"] = Field() - target: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() + state: str = Field() + statuses: list[SimpleCommitStatus] = Field() sha: str = Field() + total_count: int = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + commit_url: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentSymlinkPropLinks = Field(alias="_links") -class ContentSymlinkPropLinks(GitHubModel): - """ContentSymlinkPropLinks""" +class SimpleCommitStatus(GitHubModel): + """Simple Commit Status""" - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + description: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + state: str = Field() + context: str = Field() + target_url: Union[str, None] = Field() + required: Missing[Union[bool, None]] = Field(default=UNSET) + avatar_url: Union[str, None] = Field() + url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ContentSymlink) -model_rebuild(ContentSymlinkPropLinks) +model_rebuild(CombinedCommitStatus) +model_rebuild(SimpleCommitStatus) __all__ = ( - "ContentSymlink", - "ContentSymlinkPropLinks", + "CombinedCommitStatus", + "SimpleCommitStatus", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0291.py b/githubkit/versions/ghec_v2022_11_28/models/group_0291.py index 99580ae80..d233ecff0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0291.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0291.py @@ -9,44 +9,34 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser -class ContentSubmodule(GitHubModel): - """Submodule Content - An object describing a submodule +class Status(GitHubModel): + """Status + + The status of a commit. """ - type: Literal["submodule"] = Field() - submodule_git_url: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - sha: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentSubmodulePropLinks = Field(alias="_links") - - -class ContentSubmodulePropLinks(GitHubModel): - """ContentSubmodulePropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + avatar_url: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + state: str = Field() + description: Union[str, None] = Field() + target_url: Union[str, None] = Field() + context: str = Field() + created_at: str = Field() + updated_at: str = Field() + creator: Union[None, SimpleUser] = Field() -model_rebuild(ContentSubmodule) -model_rebuild(ContentSubmodulePropLinks) +model_rebuild(Status) -__all__ = ( - "ContentSubmodule", - "ContentSubmodulePropLinks", -) +__all__ = ("Status",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0292.py b/githubkit/versions/ghec_v2022_11_28/models/group_0292.py index 446b6612c..efc0dfb6e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0292.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0292.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -17,116 +18,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0019 import LicenseSimple +from .group_0199 import CodeOfConductSimple -class FileCommit(GitHubModel): - """File Commit - File Commit - """ - - content: Union[FileCommitPropContent, None] = Field() - commit: FileCommitPropCommit = Field() - - -class FileCommitPropContent(GitHubModel): - """FileCommitPropContent""" - - name: Missing[str] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - links: Missing[FileCommitPropContentPropLinks] = Field( - default=UNSET, alias="_links" - ) - - -class FileCommitPropContentPropLinks(GitHubModel): - """FileCommitPropContentPropLinks""" - - self_: Missing[str] = Field(default=UNSET, alias="self") - git: Missing[str] = Field(default=UNSET) - html: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommit(GitHubModel): - """FileCommitPropCommit""" +class CommunityProfilePropFiles(GitHubModel): + """CommunityProfilePropFiles""" - sha: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - author: Missing[FileCommitPropCommitPropAuthor] = Field(default=UNSET) - committer: Missing[FileCommitPropCommitPropCommitter] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - tree: Missing[FileCommitPropCommitPropTree] = Field(default=UNSET) - parents: Missing[list[FileCommitPropCommitPropParentsItems]] = Field(default=UNSET) - verification: Missing[FileCommitPropCommitPropVerification] = Field(default=UNSET) + code_of_conduct: Union[None, CodeOfConductSimple] = Field() + code_of_conduct_file: Union[None, CommunityHealthFile] = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + contributing: Union[None, CommunityHealthFile] = Field() + readme: Union[None, CommunityHealthFile] = Field() + issue_template: Union[None, CommunityHealthFile] = Field() + pull_request_template: Union[None, CommunityHealthFile] = Field() -class FileCommitPropCommitPropAuthor(GitHubModel): - """FileCommitPropCommitPropAuthor""" +class CommunityHealthFile(GitHubModel): + """Community Health File""" - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) + url: str = Field() + html_url: str = Field() -class FileCommitPropCommitPropCommitter(GitHubModel): - """FileCommitPropCommitPropCommitter""" +class CommunityProfile(GitHubModel): + """Community Profile - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropTree(GitHubModel): - """FileCommitPropCommitPropTree""" - - url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropParentsItems(GitHubModel): - """FileCommitPropCommitPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropVerification(GitHubModel): - """FileCommitPropCommitPropVerification""" + Community Profile + """ - verified: Missing[bool] = Field(default=UNSET) - reason: Missing[str] = Field(default=UNSET) - signature: Missing[Union[str, None]] = Field(default=UNSET) - payload: Missing[Union[str, None]] = Field(default=UNSET) - verified_at: Missing[Union[str, None]] = Field(default=UNSET) + health_percentage: int = Field() + description: Union[str, None] = Field() + documentation: Union[str, None] = Field() + files: CommunityProfilePropFiles = Field() + updated_at: Union[datetime, None] = Field() + content_reports_enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(FileCommit) -model_rebuild(FileCommitPropContent) -model_rebuild(FileCommitPropContentPropLinks) -model_rebuild(FileCommitPropCommit) -model_rebuild(FileCommitPropCommitPropAuthor) -model_rebuild(FileCommitPropCommitPropCommitter) -model_rebuild(FileCommitPropCommitPropTree) -model_rebuild(FileCommitPropCommitPropParentsItems) -model_rebuild(FileCommitPropCommitPropVerification) +model_rebuild(CommunityProfilePropFiles) +model_rebuild(CommunityHealthFile) +model_rebuild(CommunityProfile) __all__ = ( - "FileCommit", - "FileCommitPropCommit", - "FileCommitPropCommitPropAuthor", - "FileCommitPropCommitPropCommitter", - "FileCommitPropCommitPropParentsItems", - "FileCommitPropCommitPropTree", - "FileCommitPropCommitPropVerification", - "FileCommitPropContent", - "FileCommitPropContentPropLinks", + "CommunityHealthFile", + "CommunityProfile", + "CommunityProfilePropFiles", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0293.py b/githubkit/versions/ghec_v2022_11_28/models/group_0293.py index 97c97b542..0b4325834 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0293.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0293.py @@ -9,67 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0247 import DiffEntry +from .group_0248 import Commit -class RepositoryRuleViolationError(GitHubModel): - """RepositoryRuleViolationError - - Repository rule violation was detected - """ - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - metadata: Missing[RepositoryRuleViolationErrorPropMetadata] = Field(default=UNSET) - - -class RepositoryRuleViolationErrorPropMetadata(GitHubModel): - """RepositoryRuleViolationErrorPropMetadata""" - - secret_scanning: Missing[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanning - ] = Field(default=UNSET) - - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanning(GitHubModel): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" - - bypass_placeholders: Missing[ - list[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems - ] - ] = Field(default=UNSET) +class CommitComparison(GitHubModel): + """Commit Comparison -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems( - GitHubModel -): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders - Items + Commit Comparison """ - placeholder_id: Missing[str] = Field( - default=UNSET, - description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes.", - ) - token_type: Missing[str] = Field(default=UNSET) + url: str = Field() + html_url: str = Field() + permalink_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + base_commit: Commit = Field(title="Commit", description="Commit") + merge_base_commit: Commit = Field(title="Commit", description="Commit") + status: Literal["diverged", "ahead", "behind", "identical"] = Field() + ahead_by: int = Field() + behind_by: int = Field() + total_commits: int = Field() + commits: list[Commit] = Field() + files: Missing[list[DiffEntry]] = Field(default=UNSET) -model_rebuild(RepositoryRuleViolationError) -model_rebuild(RepositoryRuleViolationErrorPropMetadata) -model_rebuild(RepositoryRuleViolationErrorPropMetadataPropSecretScanning) -model_rebuild( - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems -) +model_rebuild(CommitComparison) -__all__ = ( - "RepositoryRuleViolationError", - "RepositoryRuleViolationErrorPropMetadata", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", -) +__all__ = ("CommitComparison",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0294.py b/githubkit/versions/ghec_v2022_11_28/models/group_0294.py index fcc5e341f..445f68e5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0294.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0294.py @@ -18,36 +18,65 @@ from githubkit.utils import UNSET -class Contributor(GitHubModel): - """Contributor +class ContentTree(GitHubModel): + """Content Tree - Contributor + Content Tree """ - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[Union[str, None]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) type: str = Field() - site_admin: Missing[bool] = Field(default=UNSET) - contributions: int = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + content: Missing[str] = Field(default=UNSET) + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + entries: Missing[list[ContentTreePropEntriesItems]] = Field(default=UNSET) + links: ContentTreePropLinks = Field(alias="_links") -model_rebuild(Contributor) +class ContentTreePropLinks(GitHubModel): + """ContentTreePropLinks""" -__all__ = ("Contributor",) + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +class ContentTreePropEntriesItems(GitHubModel): + """ContentTreePropEntriesItems""" + + type: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentTreePropEntriesItemsPropLinks = Field(alias="_links") + + +class ContentTreePropEntriesItemsPropLinks(GitHubModel): + """ContentTreePropEntriesItemsPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentTree) +model_rebuild(ContentTreePropLinks) +model_rebuild(ContentTreePropEntriesItems) +model_rebuild(ContentTreePropEntriesItemsPropLinks) + +__all__ = ( + "ContentTree", + "ContentTreePropEntriesItems", + "ContentTreePropEntriesItemsPropLinks", + "ContentTreePropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0295.py b/githubkit/versions/ghec_v2022_11_28/models/group_0295.py index 80a607378..b3b3e9366 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0295.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0295.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,61 +17,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0065 import DependabotAlertSecurityVulnerability -from .group_0066 import DependabotAlertSecurityAdvisory -from .group_0296 import DependabotAlertPropDependency - - -class DependabotAlert(GitHubModel): - """DependabotAlert - - A Dependabot alert. - """ - - number: int = Field(description="The security alert number.") - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( - description="The state of the Dependabot alert." - ) - dependency: DependabotAlertPropDependency = Field( - description="Details for the vulnerable dependency." - ) - security_advisory: DependabotAlertSecurityAdvisory = Field( - description="Details for the GitHub Security Advisory." - ) - security_vulnerability: DependabotAlertSecurityVulnerability = Field( - description="Details pertaining to one vulnerable version range for the advisory." - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: datetime = Field( - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] = Field(description="The reason that the alert was dismissed.") - dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( - description="An optional comment associated with the alert's dismissal." - ) - fixed_at: Union[datetime, None] = Field( - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - auto_dismissed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -model_rebuild(DependabotAlert) - -__all__ = ("DependabotAlert",) + +class ContentDirectoryItems(GitHubModel): + """ContentDirectoryItems""" + + type: Literal["dir", "file", "submodule", "symlink"] = Field() + size: int = Field() + name: str = Field() + path: str = Field() + content: Missing[str] = Field(default=UNSET) + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentDirectoryItemsPropLinks = Field(alias="_links") + + +class ContentDirectoryItemsPropLinks(GitHubModel): + """ContentDirectoryItemsPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentDirectoryItems) +model_rebuild(ContentDirectoryItemsPropLinks) + +__all__ = ( + "ContentDirectoryItems", + "ContentDirectoryItemsPropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0296.py b/githubkit/versions/ghec_v2022_11_28/models/group_0296.py index a908b8c22..15cd134fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0296.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0296.py @@ -17,27 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0064 import DependabotAlertPackage +class ContentFile(GitHubModel): + """Content File -class DependabotAlertPropDependency(GitHubModel): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + Content File """ - package: Missing[DependabotAlertPackage] = Field( - default=UNSET, description="Details for the vulnerable package." - ) - manifest_path: Missing[str] = Field( - default=UNSET, - description="The full path to the dependency manifest file, relative to the root of the repository.", - ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." - ) - - -model_rebuild(DependabotAlertPropDependency) - -__all__ = ("DependabotAlertPropDependency",) + type: Literal["file"] = Field() + encoding: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + content: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentFilePropLinks = Field(alias="_links") + target: Missing[str] = Field(default=UNSET) + submodule_git_url: Missing[str] = Field(default=UNSET) + + +class ContentFilePropLinks(GitHubModel): + """ContentFilePropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentFile) +model_rebuild(ContentFilePropLinks) + +__all__ = ( + "ContentFile", + "ContentFilePropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0297.py b/githubkit/versions/ghec_v2022_11_28/models/group_0297.py index 9f05df69c..bc90348f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0297.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0297.py @@ -16,36 +16,37 @@ from githubkit.compat import GitHubModel, model_rebuild -class DependencyGraphDiffItems(GitHubModel): - """DependencyGraphDiffItems""" +class ContentSymlink(GitHubModel): + """Symlink Content - change_type: Literal["added", "removed"] = Field() - manifest: str = Field() - ecosystem: str = Field() + An object describing a symlink + """ + + type: Literal["symlink"] = Field() + target: str = Field() + size: int = Field() name: str = Field() - version: str = Field() - package_url: Union[str, None] = Field() - license_: Union[str, None] = Field(alias="license") - source_repository_url: Union[str, None] = Field() - vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItems] = Field() - scope: Literal["unknown", "runtime", "development"] = Field( - description="Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment." - ) + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentSymlinkPropLinks = Field(alias="_links") -class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" +class ContentSymlinkPropLinks(GitHubModel): + """ContentSymlinkPropLinks""" - severity: str = Field() - advisory_ghsa_id: str = Field() - advisory_summary: str = Field() - advisory_url: str = Field() + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -model_rebuild(DependencyGraphDiffItems) -model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) +model_rebuild(ContentSymlink) +model_rebuild(ContentSymlinkPropLinks) __all__ = ( - "DependencyGraphDiffItems", - "DependencyGraphDiffItemsPropVulnerabilitiesItems", + "ContentSymlink", + "ContentSymlinkPropLinks", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0298.py b/githubkit/versions/ghec_v2022_11_28/models/group_0298.py index b7506354d..99580ae80 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0298.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0298.py @@ -9,160 +9,44 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class DependencyGraphSpdxSbom(GitHubModel): - """Dependency Graph SPDX SBOM +class ContentSubmodule(GitHubModel): + """Submodule Content - A schema for the SPDX JSON format returned by the Dependency Graph. + An object describing a submodule """ - sbom: DependencyGraphSpdxSbomPropSbom = Field() - - -class DependencyGraphSpdxSbomPropSbom(GitHubModel): - """DependencyGraphSpdxSbomPropSbom""" - - spdxid: str = Field( - alias="SPDXID", description="The SPDX identifier for the SPDX document." - ) - spdx_version: str = Field( - alias="spdxVersion", - description="The version of the SPDX specification that this document conforms to.", - ) - comment: Missing[str] = Field( - default=UNSET, description="An optional comment about the SPDX document." - ) - creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfo = Field( - alias="creationInfo" - ) - name: str = Field(description="The name of the SPDX document.") - data_license: str = Field( - alias="dataLicense", - description="The license under which the SPDX document is licensed.", - ) - document_namespace: str = Field( - alias="documentNamespace", description="The namespace for the SPDX document." - ) - packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItems] = Field() - relationships: Missing[ - list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItems] - ] = Field(default=UNSET) - - -class DependencyGraphSpdxSbomPropSbomPropCreationInfo(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - - created: str = Field(description="The date and time the SPDX document was created.") - creators: list[str] = Field( - description="The tools that were used to generate the SPDX document." - ) - - -class DependencyGraphSpdxSbomPropSbomPropRelationshipsItems(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" - - relationship_type: Missing[str] = Field( - default=UNSET, - alias="relationshipType", - description="The type of relationship between the two SPDX elements.", - ) - spdx_element_id: Missing[str] = Field( - default=UNSET, - alias="spdxElementId", - description="The SPDX identifier of the package that is the source of the relationship.", - ) - related_spdx_element: Missing[str] = Field( - default=UNSET, - alias="relatedSpdxElement", - description="The SPDX identifier of the package that is the target of the relationship.", - ) - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" - - spdxid: Missing[str] = Field( - default=UNSET, - alias="SPDXID", - description="A unique SPDX identifier for the package.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the package.") - version_info: Missing[str] = Field( - default=UNSET, - alias="versionInfo", - description="The version of the package. If the package does not have an exact version specified,\na version range is given.", - ) - download_location: Missing[str] = Field( - default=UNSET, - alias="downloadLocation", - description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", - ) - files_analyzed: Missing[bool] = Field( - default=UNSET, - alias="filesAnalyzed", - description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", - ) - license_concluded: Missing[str] = Field( - default=UNSET, - alias="licenseConcluded", - description="The license of the package as determined while creating the SPDX document.", - ) - license_declared: Missing[str] = Field( - default=UNSET, - alias="licenseDeclared", - description="The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created.", - ) - supplier: Missing[str] = Field( - default=UNSET, - description="The distribution source of this package, or NOASSERTION if this was not determined.", - ) - copyright_text: Missing[str] = Field( - default=UNSET, - alias="copyrightText", - description="The copyright holders of the package, and any dates present with those notices, if available.", - ) - external_refs: Missing[ - list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems] - ] = Field(default=UNSET, alias="externalRefs") - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems( - GitHubModel -): - """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" - - reference_category: str = Field( - alias="referenceCategory", - description="The category of reference to an external resource this reference refers to.", - ) - reference_locator: str = Field( - alias="referenceLocator", - description="A locator for the particular external resource this reference refers to.", - ) - reference_type: str = Field( - alias="referenceType", - description="The category of reference to an external resource this reference refers to.", - ) - - -model_rebuild(DependencyGraphSpdxSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropRelationshipsItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) + type: Literal["submodule"] = Field() + submodule_git_url: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentSubmodulePropLinks = Field(alias="_links") + + +class ContentSubmodulePropLinks(GitHubModel): + """ContentSubmodulePropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentSubmodule) +model_rebuild(ContentSubmodulePropLinks) __all__ = ( - "DependencyGraphSpdxSbom", - "DependencyGraphSpdxSbomPropSbom", - "DependencyGraphSpdxSbomPropSbomPropCreationInfo", - "DependencyGraphSpdxSbomPropSbomPropPackagesItems", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", - "DependencyGraphSpdxSbomPropSbomPropRelationshipsItems", + "ContentSubmodule", + "ContentSubmodulePropLinks", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0299.py b/githubkit/versions/ghec_v2022_11_28/models/group_0299.py index ffac1fb50..446b6612c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0299.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0299.py @@ -9,17 +9,124 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import Union +from pydantic import Field -class Metadata(ExtraGitHubModel): - """metadata +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. + +class FileCommit(GitHubModel): + """File Commit + + File Commit """ + content: Union[FileCommitPropContent, None] = Field() + commit: FileCommitPropCommit = Field() + + +class FileCommitPropContent(GitHubModel): + """FileCommitPropContent""" + + name: Missing[str] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + download_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + links: Missing[FileCommitPropContentPropLinks] = Field( + default=UNSET, alias="_links" + ) + + +class FileCommitPropContentPropLinks(GitHubModel): + """FileCommitPropContentPropLinks""" + + self_: Missing[str] = Field(default=UNSET, alias="self") + git: Missing[str] = Field(default=UNSET) + html: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommit(GitHubModel): + """FileCommitPropCommit""" + + sha: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + author: Missing[FileCommitPropCommitPropAuthor] = Field(default=UNSET) + committer: Missing[FileCommitPropCommitPropCommitter] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + tree: Missing[FileCommitPropCommitPropTree] = Field(default=UNSET) + parents: Missing[list[FileCommitPropCommitPropParentsItems]] = Field(default=UNSET) + verification: Missing[FileCommitPropCommitPropVerification] = Field(default=UNSET) + + +class FileCommitPropCommitPropAuthor(GitHubModel): + """FileCommitPropCommitPropAuthor""" + + date: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropCommitter(GitHubModel): + """FileCommitPropCommitPropCommitter""" + + date: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropTree(GitHubModel): + """FileCommitPropCommitPropTree""" + + url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropParentsItems(GitHubModel): + """FileCommitPropCommitPropParentsItems""" + + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropVerification(GitHubModel): + """FileCommitPropCommitPropVerification""" + + verified: Missing[bool] = Field(default=UNSET) + reason: Missing[str] = Field(default=UNSET) + signature: Missing[Union[str, None]] = Field(default=UNSET) + payload: Missing[Union[str, None]] = Field(default=UNSET) + verified_at: Missing[Union[str, None]] = Field(default=UNSET) + -model_rebuild(Metadata) +model_rebuild(FileCommit) +model_rebuild(FileCommitPropContent) +model_rebuild(FileCommitPropContentPropLinks) +model_rebuild(FileCommitPropCommit) +model_rebuild(FileCommitPropCommitPropAuthor) +model_rebuild(FileCommitPropCommitPropCommitter) +model_rebuild(FileCommitPropCommitPropTree) +model_rebuild(FileCommitPropCommitPropParentsItems) +model_rebuild(FileCommitPropCommitPropVerification) -__all__ = ("Metadata",) +__all__ = ( + "FileCommit", + "FileCommitPropCommit", + "FileCommitPropCommitPropAuthor", + "FileCommitPropCommitPropCommitter", + "FileCommitPropCommitPropParentsItems", + "FileCommitPropCommitPropTree", + "FileCommitPropCommitPropVerification", + "FileCommitPropContent", + "FileCommitPropContentPropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0300.py b/githubkit/versions/ghec_v2022_11_28/models/group_0300.py index 778146738..97c97b542 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0300.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0300.py @@ -9,44 +9,67 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0299 import Metadata +class RepositoryRuleViolationError(GitHubModel): + """RepositoryRuleViolationError -class Dependency(GitHubModel): - """Dependency""" + Repository rule violation was detected + """ - package_url: Missing[str] = Field( - pattern="^pkg", - default=UNSET, - description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.", - ) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", - ) - relationship: Missing[Literal["direct", "indirect"]] = Field( - default=UNSET, - description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", - ) - scope: Missing[Literal["runtime", "development"]] = Field( - default=UNSET, - description="A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes.", - ) - dependencies: Missing[list[str]] = Field( + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + metadata: Missing[RepositoryRuleViolationErrorPropMetadata] = Field(default=UNSET) + + +class RepositoryRuleViolationErrorPropMetadata(GitHubModel): + """RepositoryRuleViolationErrorPropMetadata""" + + secret_scanning: Missing[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanning + ] = Field(default=UNSET) + + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanning(GitHubModel): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" + + bypass_placeholders: Missing[ + list[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems + ] + ] = Field(default=UNSET) + + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems( + GitHubModel +): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders + Items + """ + + placeholder_id: Missing[str] = Field( default=UNSET, - description="Array of package-url (PURLs) of direct child dependencies.", + description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes.", ) + token_type: Missing[str] = Field(default=UNSET) -model_rebuild(Dependency) +model_rebuild(RepositoryRuleViolationError) +model_rebuild(RepositoryRuleViolationErrorPropMetadata) +model_rebuild(RepositoryRuleViolationErrorPropMetadataPropSecretScanning) +model_rebuild( + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems +) -__all__ = ("Dependency",) +__all__ = ( + "RepositoryRuleViolationError", + "RepositoryRuleViolationErrorPropMetadata", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0301.py b/githubkit/versions/ghec_v2022_11_28/models/group_0301.py index 40c9bd9cd..fcc5e341f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0301.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0301.py @@ -9,52 +9,45 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0299 import Metadata - - -class Manifest(GitHubModel): - """Manifest""" - - name: str = Field(description="The name of the manifest.") - file: Missing[ManifestPropFile] = Field(default=UNSET) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", - ) - resolved: Missing[ManifestPropResolved] = Field( - default=UNSET, description="A collection of resolved package dependencies." - ) - -class ManifestPropFile(GitHubModel): - """ManifestPropFile""" +class Contributor(GitHubModel): + """Contributor - source_location: Missing[str] = Field( - default=UNSET, - description="The path of the manifest file relative to the root of the Git repository.", - ) - - -class ManifestPropResolved(ExtraGitHubModel): - """ManifestPropResolved - - A collection of resolved package dependencies. + Contributor """ - -model_rebuild(Manifest) -model_rebuild(ManifestPropFile) -model_rebuild(ManifestPropResolved) - -__all__ = ( - "Manifest", - "ManifestPropFile", - "ManifestPropResolved", -) + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[Union[str, None]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: str = Field() + site_admin: Missing[bool] = Field(default=UNSET) + contributions: int = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(Contributor) + +__all__ = ("Contributor",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0302.py b/githubkit/versions/ghec_v2022_11_28/models/group_0302.py index aee1ad6d3..0b5d3a90d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0302.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0302.py @@ -10,87 +10,69 @@ from __future__ import annotations from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0299 import Metadata +from .group_0003 import SimpleUser +from .group_0070 import DependabotAlertSecurityVulnerability +from .group_0071 import DependabotAlertSecurityAdvisory +from .group_0303 import DependabotAlertPropDependency -class Snapshot(GitHubModel): - """snapshot +class DependabotAlert(GitHubModel): + """DependabotAlert - Create a new snapshot of a repository's dependencies. + A Dependabot alert. """ - version: int = Field( - description="The version of the repository snapshot submission." + number: int = Field(description="The security alert number.") + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( + description="The state of the Dependabot alert." ) - job: SnapshotPropJob = Field() - sha: str = Field( - min_length=40, - max_length=40, - description="The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.", + dependency: DependabotAlertPropDependency = Field( + description="Details for the vulnerable dependency." ) - ref: str = Field( - pattern="^refs/", - description="The repository branch that triggered this snapshot.", + security_advisory: DependabotAlertSecurityAdvisory = Field( + description="Details for the GitHub Security Advisory." ) - detector: SnapshotPropDetector = Field( - description="A description of the detector used." + security_vulnerability: DependabotAlertSecurityVulnerability = Field( + description="Details pertaining to one vulnerable version range for the advisory." ) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - manifests: Missing[SnapshotPropManifests] = Field( - default=UNSET, - description="A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.", + updated_at: datetime = Field( + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - scanned: datetime = Field(description="The time at which the snapshot was scanned.") - - -class SnapshotPropJob(GitHubModel): - """SnapshotPropJob""" - - id: str = Field(description="The external ID of the job.") - correlator: str = Field( - description="Correlator provides a key that is used to group snapshots submitted over time. Only the \"latest\" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given \"wave\" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation." + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] = Field(description="The reason that the alert was dismissed.") + dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( + description="An optional comment associated with the alert's dismissal." + ) + fixed_at: Union[datetime, None] = Field( + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + auto_dismissed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - html_url: Missing[str] = Field(default=UNSET, description="The url for the job.") - - -class SnapshotPropDetector(GitHubModel): - """SnapshotPropDetector - - A description of the detector used. - """ - - name: str = Field(description="The name of the detector used.") - version: str = Field(description="The version of the detector used.") - url: str = Field(description="The url of the detector used.") - - -class SnapshotPropManifests(ExtraGitHubModel): - """SnapshotPropManifests - - A collection of package manifests, which are a collection of related - dependencies declared in a file or representing a logical group of dependencies. - """ -model_rebuild(Snapshot) -model_rebuild(SnapshotPropJob) -model_rebuild(SnapshotPropDetector) -model_rebuild(SnapshotPropManifests) +model_rebuild(DependabotAlert) -__all__ = ( - "Snapshot", - "SnapshotPropDetector", - "SnapshotPropJob", - "SnapshotPropManifests", -) +__all__ = ("DependabotAlert",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0303.py b/githubkit/versions/ghec_v2022_11_28/models/group_0303.py index 4a7ddcef0..5f91578ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0303.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0303.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,49 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0069 import DependabotAlertPackage -class DeploymentStatus(GitHubModel): - """Deployment Status +class DependabotAlertPropDependency(GitHubModel): + """DependabotAlertPropDependency - The status of a deployment. + Details for the vulnerable dependency. """ - url: str = Field() - id: int = Field() - node_id: str = Field() - state: Literal[ - "error", "failure", "inactive", "pending", "success", "queued", "in_progress" - ] = Field(description="The state of the status.") - creator: Union[None, SimpleUser] = Field() - description: str = Field( - max_length=140, default="", description="A short description of the status." + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." ) - environment: Missing[str] = Field( + manifest_path: Missing[str] = Field( default=UNSET, - description="The environment of the deployment that the status is for.", + description="The full path to the dependency manifest file, relative to the root of the repository.", ) - target_url: str = Field( - default="", - description="Closing down notice: the URL to associate with this status.", - ) - created_at: datetime = Field() - updated_at: datetime = Field() - deployment_url: str = Field() - repository_url: str = Field() - environment_url: Missing[str] = Field( - default=UNSET, description="The URL for accessing your environment." - ) - log_url: Missing[str] = Field( - default=UNSET, description="The URL to associate with this status." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." ) -model_rebuild(DeploymentStatus) +model_rebuild(DependabotAlertPropDependency) -__all__ = ("DeploymentStatus",) +__all__ = ("DependabotAlertPropDependency",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0304.py b/githubkit/versions/ghec_v2022_11_28/models/group_0304.py index 2969bea8b..9f05df69c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0304.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0304.py @@ -9,26 +9,43 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class DeploymentBranchPolicySettings(GitHubModel): - """DeploymentBranchPolicySettings +class DependencyGraphDiffItems(GitHubModel): + """DependencyGraphDiffItems""" + + change_type: Literal["added", "removed"] = Field() + manifest: str = Field() + ecosystem: str = Field() + name: str = Field() + version: str = Field() + package_url: Union[str, None] = Field() + license_: Union[str, None] = Field(alias="license") + source_repository_url: Union[str, None] = Field() + vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItems] = Field() + scope: Literal["unknown", "runtime", "development"] = Field( + description="Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment." + ) - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. - """ - protected_branches: bool = Field( - description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." - ) - custom_branch_policies: bool = Field( - description="Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`." - ) +class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" + + severity: str = Field() + advisory_ghsa_id: str = Field() + advisory_summary: str = Field() + advisory_url: str = Field() -model_rebuild(DeploymentBranchPolicySettings) +model_rebuild(DependencyGraphDiffItems) +model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) -__all__ = ("DeploymentBranchPolicySettings",) +__all__ = ( + "DependencyGraphDiffItems", + "DependencyGraphDiffItemsPropVulnerabilitiesItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0305.py b/githubkit/versions/ghec_v2022_11_28/models/group_0305.py index ba9be2f52..b7506354d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0305.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0305.py @@ -9,93 +9,160 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0304 import DeploymentBranchPolicySettings -from .group_0306 import EnvironmentPropProtectionRulesItemsAnyof1 - -class Environment(GitHubModel): - """Environment +class DependencyGraphSpdxSbom(GitHubModel): + """Dependency Graph SPDX SBOM - Details of a deployment environment + A schema for the SPDX JSON format returned by the Dependency Graph. """ - id: int = Field(description="The id of the environment.") - node_id: str = Field() - name: str = Field(description="The name of the environment.") - url: str = Field() - html_url: str = Field() - created_at: datetime = Field( - description="The time that the environment was created, in ISO 8601 format." - ) - updated_at: datetime = Field( - description="The time that the environment was last updated, in ISO 8601 format." - ) - protection_rules: Missing[ - list[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0, - EnvironmentPropProtectionRulesItemsAnyof1, - EnvironmentPropProtectionRulesItemsAnyof2, - ] - ] - ] = Field( - default=UNSET, - description="Built-in deployment protection rules for the environment.", + sbom: DependencyGraphSpdxSbomPropSbom = Field() + + +class DependencyGraphSpdxSbomPropSbom(GitHubModel): + """DependencyGraphSpdxSbomPropSbom""" + + spdxid: str = Field( + alias="SPDXID", description="The SPDX identifier for the SPDX document." + ) + spdx_version: str = Field( + alias="spdxVersion", + description="The version of the SPDX specification that this document conforms to.", + ) + comment: Missing[str] = Field( + default=UNSET, description="An optional comment about the SPDX document." + ) + creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfo = Field( + alias="creationInfo" ) - 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`.", - ) + name: str = Field(description="The name of the SPDX document.") + data_license: str = Field( + alias="dataLicense", + description="The license under which the SPDX document is licensed.", + ) + document_namespace: str = Field( + alias="documentNamespace", description="The namespace for the SPDX document." + ) + packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItems] = Field() + relationships: Missing[ + list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItems] + ] = Field(default=UNSET) + + +class DependencyGraphSpdxSbomPropSbomPropCreationInfo(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" + + created: str = Field(description="The date and time the SPDX document was created.") + creators: list[str] = Field( + description="The tools that were used to generate the SPDX document." ) -class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof0""" +class DependencyGraphSpdxSbomPropSbomPropRelationshipsItems(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" - id: int = Field() - node_id: str = Field() - type: str = Field() - wait_timer: Missing[int] = Field( + relationship_type: Missing[str] = Field( + default=UNSET, + alias="relationshipType", + description="The type of relationship between the two SPDX elements.", + ) + spdx_element_id: Missing[str] = Field( + default=UNSET, + alias="spdxElementId", + description="The SPDX identifier of the package that is the source of the relationship.", + ) + related_spdx_element: Missing[str] = Field( default=UNSET, - 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).", + alias="relatedSpdxElement", + description="The SPDX identifier of the package that is the target of the relationship.", ) -class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof2""" +class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" - id: int = Field() - node_id: str = Field() - type: str = Field() + spdxid: Missing[str] = Field( + default=UNSET, + alias="SPDXID", + description="A unique SPDX identifier for the package.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the package.") + version_info: Missing[str] = Field( + default=UNSET, + alias="versionInfo", + description="The version of the package. If the package does not have an exact version specified,\na version range is given.", + ) + download_location: Missing[str] = Field( + default=UNSET, + alias="downloadLocation", + description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", + ) + files_analyzed: Missing[bool] = Field( + default=UNSET, + alias="filesAnalyzed", + description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", + ) + license_concluded: Missing[str] = Field( + default=UNSET, + alias="licenseConcluded", + description="The license of the package as determined while creating the SPDX document.", + ) + license_declared: Missing[str] = Field( + default=UNSET, + alias="licenseDeclared", + description="The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created.", + ) + supplier: Missing[str] = Field( + default=UNSET, + description="The distribution source of this package, or NOASSERTION if this was not determined.", + ) + copyright_text: Missing[str] = Field( + default=UNSET, + alias="copyrightText", + description="The copyright holders of the package, and any dates present with those notices, if available.", + ) + external_refs: Missing[ + list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems] + ] = Field(default=UNSET, alias="externalRefs") -class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsGetResponse200""" +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems( + GitHubModel +): + """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" - total_count: Missing[int] = Field( - default=UNSET, description="The number of environments in this repository" + reference_category: str = Field( + alias="referenceCategory", + description="The category of reference to an external resource this reference refers to.", + ) + reference_locator: str = Field( + alias="referenceLocator", + description="A locator for the particular external resource this reference refers to.", + ) + reference_type: str = Field( + alias="referenceType", + description="The category of reference to an external resource this reference refers to.", ) - environments: Missing[list[Environment]] = Field(default=UNSET) -model_rebuild(Environment) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) -model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) +model_rebuild(DependencyGraphSpdxSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropRelationshipsItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) __all__ = ( - "Environment", - "EnvironmentPropProtectionRulesItemsAnyof0", - "EnvironmentPropProtectionRulesItemsAnyof2", - "ReposOwnerRepoEnvironmentsGetResponse200", + "DependencyGraphSpdxSbom", + "DependencyGraphSpdxSbomPropSbom", + "DependencyGraphSpdxSbomPropSbomPropCreationInfo", + "DependencyGraphSpdxSbomPropSbomPropPackagesItems", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", + "DependencyGraphSpdxSbomPropSbomPropRelationshipsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0306.py b/githubkit/versions/ghec_v2022_11_28/models/group_0306.py index 7f0cb4ab0..ffac1fb50 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0306.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0306.py @@ -9,33 +9,17 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import ExtraGitHubModel, model_rebuild -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0307 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems +class Metadata(ExtraGitHubModel): + """metadata + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ -class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1""" - id: int = Field() - node_id: str = Field() - prevent_self_review: Missing[bool] = Field( - default=UNSET, - description="Whether deployments to this environment can be approved by the user who created the deployment.", - ) - type: str = Field() - reviewers: Missing[ - list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems] - ] = Field( - default=UNSET, - description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", - ) +model_rebuild(Metadata) - -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) - -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) +__all__ = ("Metadata",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0307.py b/githubkit/versions/ghec_v2022_11_28/models/group_0307.py index 01b82d182..d6a1aa00b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0307.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0307.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,19 +17,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0060 import Team +from .group_0306 import Metadata -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class Dependency(GitHubModel): + """Dependency""" - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." + package_url: Missing[str] = Field( + pattern="^pkg", + default=UNSET, + description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.", + ) + metadata: Missing[Metadata] = Field( + default=UNSET, + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + ) + relationship: Missing[Literal["direct", "indirect"]] = Field( + default=UNSET, + description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", + ) + scope: Missing[Literal["runtime", "development"]] = Field( + default=UNSET, + description="A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes.", + ) + dependencies: Missing[list[str]] = Field( + default=UNSET, + description="Array of package-url (PURLs) of direct child dependencies.", ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) +model_rebuild(Dependency) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) +__all__ = ("Dependency",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0308.py b/githubkit/versions/ghec_v2022_11_28/models/group_0308.py index 2e5fcc0db..dccfca39a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0308.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0308.py @@ -9,26 +9,52 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0306 import Metadata + -class DeploymentBranchPolicyNamePatternWithType(GitHubModel): - """Deployment branch and tag policy name pattern""" +class Manifest(GitHubModel): + """Manifest""" - name: str = Field( - description="The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + name: str = Field(description="The name of the manifest.") + file: Missing[ManifestPropFile] = Field(default=UNSET) + metadata: Missing[Metadata] = Field( + default=UNSET, + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag" + resolved: Missing[ManifestPropResolved] = Field( + default=UNSET, description="A collection of resolved package dependencies." ) -model_rebuild(DeploymentBranchPolicyNamePatternWithType) +class ManifestPropFile(GitHubModel): + """ManifestPropFile""" + + source_location: Missing[str] = Field( + default=UNSET, + description="The path of the manifest file relative to the root of the Git repository.", + ) + + +class ManifestPropResolved(ExtraGitHubModel): + """ManifestPropResolved + + A collection of resolved package dependencies. + """ + + +model_rebuild(Manifest) +model_rebuild(ManifestPropFile) +model_rebuild(ManifestPropResolved) -__all__ = ("DeploymentBranchPolicyNamePatternWithType",) +__all__ = ( + "Manifest", + "ManifestPropFile", + "ManifestPropResolved", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0309.py b/githubkit/versions/ghec_v2022_11_28/models/group_0309.py index 11e46307f..c0e226fb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0309.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0309.py @@ -9,19 +9,88 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0306 import Metadata + +class Snapshot(GitHubModel): + """snapshot -class DeploymentBranchPolicyNamePattern(GitHubModel): - """Deployment branch policy name pattern""" + Create a new snapshot of a repository's dependencies. + """ - name: str = Field( - description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + version: int = Field( + description="The version of the repository snapshot submission." + ) + job: SnapshotPropJob = Field() + sha: str = Field( + min_length=40, + max_length=40, + description="The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.", + ) + ref: str = Field( + pattern="^refs/", + description="The repository branch that triggered this snapshot.", ) + detector: SnapshotPropDetector = Field( + description="A description of the detector used." + ) + metadata: Missing[Metadata] = Field( + default=UNSET, + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + ) + manifests: Missing[SnapshotPropManifests] = Field( + default=UNSET, + description="A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.", + ) + scanned: datetime = Field(description="The time at which the snapshot was scanned.") + + +class SnapshotPropJob(GitHubModel): + """SnapshotPropJob""" + + id: str = Field(description="The external ID of the job.") + correlator: str = Field( + description="Correlator provides a key that is used to group snapshots submitted over time. Only the \"latest\" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given \"wave\" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation." + ) + html_url: Missing[str] = Field(default=UNSET, description="The url for the job.") + + +class SnapshotPropDetector(GitHubModel): + """SnapshotPropDetector + + A description of the detector used. + """ + + name: str = Field(description="The name of the detector used.") + version: str = Field(description="The version of the detector used.") + url: str = Field(description="The url of the detector used.") + + +class SnapshotPropManifests(ExtraGitHubModel): + """SnapshotPropManifests + + A collection of package manifests, which are a collection of related + dependencies declared in a file or representing a logical group of dependencies. + """ -model_rebuild(DeploymentBranchPolicyNamePattern) +model_rebuild(Snapshot) +model_rebuild(SnapshotPropJob) +model_rebuild(SnapshotPropDetector) +model_rebuild(SnapshotPropManifests) -__all__ = ("DeploymentBranchPolicyNamePattern",) +__all__ = ( + "Snapshot", + "SnapshotPropDetector", + "SnapshotPropJob", + "SnapshotPropManifests", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0310.py b/githubkit/versions/ghec_v2022_11_28/models/group_0310.py index ec57f6950..38a74a74a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0310.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0310.py @@ -9,31 +9,58 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0010 import Integration -class CustomDeploymentRuleApp(GitHubModel): - """Custom deployment protection rule app +class DeploymentStatus(GitHubModel): + """Deployment Status - A GitHub App that is providing a custom deployment protection rule. + The status of a deployment. """ - id: int = Field( - description="The unique identifier of the deployment protection rule integration." + url: str = Field() + id: int = Field() + node_id: str = Field() + state: Literal[ + "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + ] = Field(description="The state of the status.") + creator: Union[None, SimpleUser] = Field() + description: str = Field( + max_length=140, default="", description="A short description of the status." + ) + environment: Missing[str] = Field( + default=UNSET, + description="The environment of the deployment that the status is for.", + ) + target_url: str = Field( + default="", + description="Closing down notice: the URL to associate with this status.", ) - slug: str = Field( - description="The slugified name of the deployment protection rule integration." + created_at: datetime = Field() + updated_at: datetime = Field() + deployment_url: str = Field() + repository_url: str = Field() + environment_url: Missing[str] = Field( + default=UNSET, description="The URL for accessing your environment." ) - integration_url: str = Field( - description="The URL for the endpoint to get details about the app." + log_url: Missing[str] = Field( + default=UNSET, description="The URL to associate with this status." ) - node_id: str = Field( - description="The node ID for the deployment protection rule integration." + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) -model_rebuild(CustomDeploymentRuleApp) +model_rebuild(DeploymentStatus) -__all__ = ("CustomDeploymentRuleApp",) +__all__ = ("DeploymentStatus",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0311.py b/githubkit/versions/ghec_v2022_11_28/models/group_0311.py index b8a9dd886..2969bea8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0311.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0311.py @@ -12,55 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0310 import CustomDeploymentRuleApp +class DeploymentBranchPolicySettings(GitHubModel): + """DeploymentBranchPolicySettings -class DeploymentProtectionRule(GitHubModel): - """Deployment protection rule - - Deployment protection rule - """ - - id: int = Field( - description="The unique identifier for the deployment protection rule." - ) - node_id: str = Field(description="The node ID for the deployment protection rule.") - enabled: bool = Field( - description="Whether the deployment protection rule is enabled for the environment." - ) - app: CustomDeploymentRuleApp = Field( - title="Custom deployment protection rule app", - description="A GitHub App that is providing a custom deployment protection rule.", - ) - - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 - - Examples: - {'$ref': '#/components/examples/deployment-protection-rules'} + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. """ - total_count: Missing[int] = Field( - default=UNSET, - description="The number of enabled custom deployment protection rules for this environment", + protected_branches: bool = Field( + description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." ) - custom_deployment_protection_rules: Missing[list[DeploymentProtectionRule]] = Field( - default=UNSET + custom_branch_policies: bool = Field( + description="Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`." ) -model_rebuild(DeploymentProtectionRule) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -) +model_rebuild(DeploymentBranchPolicySettings) -__all__ = ( - "DeploymentProtectionRule", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", -) +__all__ = ("DeploymentBranchPolicySettings",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0312.py b/githubkit/versions/ghec_v2022_11_28/models/group_0312.py index 23227f8fe..26ab385c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0312.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0312.py @@ -9,21 +9,93 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0311 import DeploymentBranchPolicySettings +from .group_0313 import EnvironmentPropProtectionRulesItemsAnyof1 -class ShortBlob(GitHubModel): - """Short Blob +class Environment(GitHubModel): + """Environment - Short Blob + Details of a deployment environment """ + id: int = Field(description="The id of the environment.") + node_id: str = Field() + name: str = Field(description="The name of the environment.") url: str = Field() - sha: str = Field() + html_url: str = Field() + created_at: datetime = Field( + description="The time that the environment was created, in ISO 8601 format." + ) + updated_at: datetime = Field( + description="The time that the environment was last updated, in ISO 8601 format." + ) + protection_rules: Missing[ + list[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0, + EnvironmentPropProtectionRulesItemsAnyof1, + EnvironmentPropProtectionRulesItemsAnyof2, + ] + ] + ] = Field( + default=UNSET, + description="Built-in deployment protection rules for the environment.", + ) + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + + +class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof0""" + + id: int = Field() + node_id: str = Field() + type: str = Field() + wait_timer: Missing[int] = Field( + default=UNSET, + description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + ) + + +class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int = Field() + node_id: str = Field() + type: str = Field() + + +class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsGetResponse200""" + + total_count: Missing[int] = Field( + default=UNSET, description="The number of environments in this repository" + ) + environments: Missing[list[Environment]] = Field(default=UNSET) -model_rebuild(ShortBlob) +model_rebuild(Environment) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) +model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) -__all__ = ("ShortBlob",) +__all__ = ( + "Environment", + "EnvironmentPropProtectionRulesItemsAnyof0", + "EnvironmentPropProtectionRulesItemsAnyof2", + "ReposOwnerRepoEnvironmentsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0313.py b/githubkit/versions/ghec_v2022_11_28/models/group_0313.py index 048d8d3ff..97b58d240 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0313.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0313.py @@ -9,30 +9,33 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0314 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems -class Blob(GitHubModel): - """Blob - Blob - """ +class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1""" - content: str = Field() - encoding: str = Field() - url: str = Field() - sha: str = Field() - size: Union[int, None] = Field() + id: int = Field() node_id: str = Field() - highlighted_content: Missing[str] = Field(default=UNSET) - - -model_rebuild(Blob) - -__all__ = ("Blob",) + prevent_self_review: Missing[bool] = Field( + default=UNSET, + description="Whether deployments to this environment can be approved by the user who created the deployment.", + ) + type: str = Field() + reviewers: Missing[ + list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems] + ] = Field( + default=UNSET, + description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + ) + + +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) + +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0314.py b/githubkit/versions/ghec_v2022_11_28/models/group_0314.py index 5bdb8d149..82f50e968 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0314.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0314.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,88 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0065 import Team -class GitCommit(GitHubModel): - """Git Commit - Low-level Git commit operations within a repository - """ +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - sha: str = Field(description="SHA for the commit") - node_id: str = Field() - url: str = Field() - author: GitCommitPropAuthor = Field( - description="Identifying information for the git-user" + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) - committer: GitCommitPropCommitter = Field( - description="Identifying information for the git-user" - ) - message: str = Field(description="Message describing the purpose of the commit") - tree: GitCommitPropTree = Field() - parents: list[GitCommitPropParentsItems] = Field() - verification: GitCommitPropVerification = Field() - html_url: str = Field() - - -class GitCommitPropAuthor(GitHubModel): - """GitCommitPropAuthor - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class GitCommitPropCommitter(GitHubModel): - """GitCommitPropCommitter - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class GitCommitPropTree(GitHubModel): - """GitCommitPropTree""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - - -class GitCommitPropParentsItems(GitHubModel): - """GitCommitPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class GitCommitPropVerification(GitHubModel): - """GitCommitPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() - verified_at: Missing[Union[str, None]] = Field(default=UNSET) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(GitCommit) -model_rebuild(GitCommitPropAuthor) -model_rebuild(GitCommitPropCommitter) -model_rebuild(GitCommitPropTree) -model_rebuild(GitCommitPropParentsItems) -model_rebuild(GitCommitPropVerification) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) -__all__ = ( - "GitCommit", - "GitCommitPropAuthor", - "GitCommitPropCommitter", - "GitCommitPropParentsItems", - "GitCommitPropTree", - "GitCommitPropVerification", -) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0315.py b/githubkit/versions/ghec_v2022_11_28/models/group_0315.py index ee31507d1..2e5fcc0db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0315.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0315.py @@ -9,35 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class GitRef(GitHubModel): - """Git Reference - - Git references within a repository - """ - - ref: str = Field() - node_id: str = Field() - url: str = Field() - object_: GitRefPropObject = Field(alias="object") - - -class GitRefPropObject(GitHubModel): - """GitRefPropObject""" +class DeploymentBranchPolicyNamePatternWithType(GitHubModel): + """Deployment branch and tag policy name pattern""" - type: str = Field() - sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") - url: str = Field() + name: str = Field( + description="The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + ) + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag" + ) -model_rebuild(GitRef) -model_rebuild(GitRefPropObject) +model_rebuild(DeploymentBranchPolicyNamePatternWithType) -__all__ = ( - "GitRef", - "GitRefPropObject", -) +__all__ = ("DeploymentBranchPolicyNamePatternWithType",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0316.py b/githubkit/versions/ghec_v2022_11_28/models/group_0316.py index a7b13bd4b..11e46307f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0316.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0316.py @@ -12,50 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0239 import Verification +class DeploymentBranchPolicyNamePattern(GitHubModel): + """Deployment branch policy name pattern""" -class GitTag(GitHubModel): - """Git Tag + name: str = Field( + description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + ) - Metadata for a Git tag - """ - node_id: str = Field() - tag: str = Field(description="Name of the tag") - sha: str = Field() - url: str = Field(description="URL for the tag") - message: str = Field(description="Message describing the purpose of the tag") - tagger: GitTagPropTagger = Field() - object_: GitTagPropObject = Field(alias="object") - verification: Missing[Verification] = Field(default=UNSET, title="Verification") +model_rebuild(DeploymentBranchPolicyNamePattern) - -class GitTagPropTagger(GitHubModel): - """GitTagPropTagger""" - - date: str = Field() - email: str = Field() - name: str = Field() - - -class GitTagPropObject(GitHubModel): - """GitTagPropObject""" - - sha: str = Field() - type: str = Field() - url: str = Field() - - -model_rebuild(GitTag) -model_rebuild(GitTagPropTagger) -model_rebuild(GitTagPropObject) - -__all__ = ( - "GitTag", - "GitTagPropObject", - "GitTagPropTagger", -) +__all__ = ("DeploymentBranchPolicyNamePattern",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0317.py b/githubkit/versions/ghec_v2022_11_28/models/group_0317.py index be970677c..ec57f6950 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0317.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0317.py @@ -12,39 +12,28 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class GitTree(GitHubModel): - """Git Tree +class CustomDeploymentRuleApp(GitHubModel): + """Custom deployment protection rule app - The hierarchy between files in a Git repository. + A GitHub App that is providing a custom deployment protection rule. """ - sha: str = Field() - url: str = Field() - truncated: bool = Field() - tree: list[GitTreePropTreeItems] = Field( - description="Objects specifying a tree structure" + id: int = Field( + description="The unique identifier of the deployment protection rule integration." + ) + slug: str = Field( + description="The slugified name of the deployment protection rule integration." + ) + integration_url: str = Field( + description="The URL for the endpoint to get details about the app." + ) + node_id: str = Field( + description="The node ID for the deployment protection rule integration." ) -class GitTreePropTreeItems(GitHubModel): - """GitTreePropTreeItems""" - - path: Missing[str] = Field(default=UNSET) - mode: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(GitTree) -model_rebuild(GitTreePropTreeItems) +model_rebuild(CustomDeploymentRuleApp) -__all__ = ( - "GitTree", - "GitTreePropTreeItems", -) +__all__ = ("CustomDeploymentRuleApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0318.py b/githubkit/versions/ghec_v2022_11_28/models/group_0318.py index 544751a06..092c226d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0318.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0318.py @@ -9,21 +9,58 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0317 import CustomDeploymentRuleApp + + +class DeploymentProtectionRule(GitHubModel): + """Deployment protection rule + + Deployment protection rule + """ + + id: int = Field( + description="The unique identifier for the deployment protection rule." + ) + node_id: str = Field(description="The node ID for the deployment protection rule.") + enabled: bool = Field( + description="Whether the deployment protection rule is enabled for the environment." + ) + app: CustomDeploymentRuleApp = Field( + title="Custom deployment protection rule app", + description="A GitHub App that is providing a custom deployment protection rule.", + ) + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -class HookResponse(GitHubModel): - """Hook Response""" + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} + """ - code: Union[int, None] = Field() - status: Union[str, None] = Field() - message: Union[str, None] = Field() + total_count: Missing[int] = Field( + default=UNSET, + description="The number of enabled custom deployment protection rules for this environment", + ) + custom_deployment_protection_rules: Missing[list[DeploymentProtectionRule]] = Field( + default=UNSET + ) -model_rebuild(HookResponse) +model_rebuild(DeploymentProtectionRule) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 +) -__all__ = ("HookResponse",) +__all__ = ( + "DeploymentProtectionRule", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0319.py b/githubkit/versions/ghec_v2022_11_28/models/group_0319.py index 87fb28f56..23227f8fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0319.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0319.py @@ -9,47 +9,21 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0009 import WebhookConfig -from .group_0318 import HookResponse -class Hook(GitHubModel): - """Webhook +class ShortBlob(GitHubModel): + """Short Blob - Webhooks for repositories. + Short Blob """ - type: str = Field() - id: int = Field(description="Unique identifier of the webhook.") - name: str = Field( - description="The name of a valid service, use 'web' for a webhook." - ) - active: bool = Field( - description="Determines whether the hook is actually triggered on pushes." - ) - events: list[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." - ) - config: WebhookConfig = Field( - title="Webhook Configuration", description="Configuration object of the webhook" - ) - updated_at: datetime = Field() - created_at: datetime = Field() url: str = Field() - test_url: str = Field() - ping_url: str = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - last_response: HookResponse = Field(title="Hook Response") + sha: str = Field() -model_rebuild(Hook) +model_rebuild(ShortBlob) -__all__ = ("Hook",) +__all__ = ("ShortBlob",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0320.py b/githubkit/versions/ghec_v2022_11_28/models/group_0320.py index dc0d94e75..048d8d3ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0320.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0320.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,66 +18,21 @@ from githubkit.utils import UNSET -class Import(GitHubModel): - """Import +class Blob(GitHubModel): + """Blob - A repository import from an external source. + Blob """ - vcs: Union[str, None] = Field() - use_lfs: Missing[bool] = Field(default=UNSET) - vcs_url: str = Field(description="The URL of the originating repository.") - svc_root: Missing[str] = Field(default=UNSET) - tfvc_project: Missing[str] = Field(default=UNSET) - status: Literal[ - "auth", - "error", - "none", - "detecting", - "choose", - "auth_failed", - "importing", - "mapping", - "waiting_to_push", - "pushing", - "complete", - "setup", - "unknown", - "detection_found_multiple", - "detection_found_nothing", - "detection_needs_auth", - ] = Field() - status_text: Missing[Union[str, None]] = Field(default=UNSET) - failed_step: Missing[Union[str, None]] = Field(default=UNSET) - error_message: Missing[Union[str, None]] = Field(default=UNSET) - import_percent: Missing[Union[int, None]] = Field(default=UNSET) - commit_count: Missing[Union[int, None]] = Field(default=UNSET) - push_percent: Missing[Union[int, None]] = Field(default=UNSET) - has_large_files: Missing[bool] = Field(default=UNSET) - large_files_size: Missing[int] = Field(default=UNSET) - large_files_count: Missing[int] = Field(default=UNSET) - project_choices: Missing[list[ImportPropProjectChoicesItems]] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - authors_count: Missing[Union[int, None]] = Field(default=UNSET) + content: str = Field() + encoding: str = Field() url: str = Field() - html_url: str = Field() - authors_url: str = Field() - repository_url: str = Field() - svn_root: Missing[str] = Field(default=UNSET) + sha: str = Field() + size: Union[int, None] = Field() + node_id: str = Field() + highlighted_content: Missing[str] = Field(default=UNSET) -class ImportPropProjectChoicesItems(GitHubModel): - """ImportPropProjectChoicesItems""" +model_rebuild(Blob) - vcs: Missing[str] = Field(default=UNSET) - tfvc_project: Missing[str] = Field(default=UNSET) - human_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(Import) -model_rebuild(ImportPropProjectChoicesItems) - -__all__ = ( - "Import", - "ImportPropProjectChoicesItems", -) +__all__ = ("Blob",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0321.py b/githubkit/versions/ghec_v2022_11_28/models/group_0321.py index 7ed1d272d..36b9120b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0321.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0321.py @@ -9,26 +9,95 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class PorterAuthor(GitHubModel): - """Porter Author +class GitCommit(GitHubModel): + """Git Commit + + Low-level Git commit operations within a repository + """ + + sha: str = Field(description="SHA for the commit") + node_id: str = Field() + url: str = Field() + author: GitCommitPropAuthor = Field( + description="Identifying information for the git-user" + ) + committer: GitCommitPropCommitter = Field( + description="Identifying information for the git-user" + ) + message: str = Field(description="Message describing the purpose of the commit") + tree: GitCommitPropTree = Field() + parents: list[GitCommitPropParentsItems] = Field() + verification: GitCommitPropVerification = Field() + html_url: str = Field() + + +class GitCommitPropAuthor(GitHubModel): + """GitCommitPropAuthor + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + - Porter Author +class GitCommitPropCommitter(GitHubModel): + """GitCommitPropCommitter + + Identifying information for the git-user """ - id: int = Field() - remote_id: str = Field() - remote_name: str = Field() - email: str = Field() - name: str = Field() + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class GitCommitPropTree(GitHubModel): + """GitCommitPropTree""" + + sha: str = Field(description="SHA for the commit") url: str = Field() - import_url: str = Field() -model_rebuild(PorterAuthor) +class GitCommitPropParentsItems(GitHubModel): + """GitCommitPropParentsItems""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() + + +class GitCommitPropVerification(GitHubModel): + """GitCommitPropVerification""" + + verified: bool = Field() + reason: str = Field() + signature: Union[str, None] = Field() + payload: Union[str, None] = Field() + verified_at: Union[str, None] = Field() + + +model_rebuild(GitCommit) +model_rebuild(GitCommitPropAuthor) +model_rebuild(GitCommitPropCommitter) +model_rebuild(GitCommitPropTree) +model_rebuild(GitCommitPropParentsItems) +model_rebuild(GitCommitPropVerification) -__all__ = ("PorterAuthor",) +__all__ = ( + "GitCommit", + "GitCommitPropAuthor", + "GitCommitPropCommitter", + "GitCommitPropParentsItems", + "GitCommitPropTree", + "GitCommitPropVerification", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0322.py b/githubkit/versions/ghec_v2022_11_28/models/group_0322.py index c54f24120..ee31507d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0322.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0322.py @@ -14,18 +14,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class PorterLargeFile(GitHubModel): - """Porter Large File +class GitRef(GitHubModel): + """Git Reference - Porter Large File + Git references within a repository """ - ref_name: str = Field() - path: str = Field() - oid: str = Field() - size: int = Field() + ref: str = Field() + node_id: str = Field() + url: str = Field() + object_: GitRefPropObject = Field(alias="object") -model_rebuild(PorterLargeFile) +class GitRefPropObject(GitHubModel): + """GitRefPropObject""" -__all__ = ("PorterLargeFile",) + type: str = Field() + sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") + url: str = Field() + + +model_rebuild(GitRef) +model_rebuild(GitRefPropObject) + +__all__ = ( + "GitRef", + "GitRefPropObject", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0323.py b/githubkit/versions/ghec_v2022_11_28/models/group_0323.py index 03315e3eb..ac92dee64 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0323.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0323.py @@ -9,150 +9,53 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0060 import Team -from .group_0131 import Issue +from .group_0246 import Verification -class IssueEvent(GitHubModel): - """Issue Event +class GitTag(GitHubModel): + """Git Tag - Issue Event + Metadata for a Git tag """ - id: int = Field() node_id: str = Field() - url: str = Field() - actor: Union[None, SimpleUser] = Field() - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: datetime = Field() - issue: Missing[Union[None, Issue]] = Field(default=UNSET) - label: Missing[IssueEventLabel] = Field( - default=UNSET, title="Issue Event Label", description="Issue Event Label" - ) - assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - assigner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - review_requester: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - requested_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - dismissed_review: Missing[IssueEventDismissedReview] = Field( - default=UNSET, title="Issue Event Dismissed Review" - ) - milestone: Missing[IssueEventMilestone] = Field( - default=UNSET, - title="Issue Event Milestone", - description="Issue Event Milestone", - ) - project_card: Missing[IssueEventProjectCard] = Field( - default=UNSET, - title="Issue Event Project Card", - description="Issue Event Project Card", - ) - rename: Missing[IssueEventRename] = Field( - default=UNSET, title="Issue Event Rename", description="Issue Event Rename" - ) - author_association: Missing[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] = Field( - default=UNSET, - title="author_association", - description="How the author is associated with the repository.", - ) - lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - - -class IssueEventLabel(GitHubModel): - """Issue Event Label - - Issue Event Label - """ - - name: Union[str, None] = Field() - color: Union[str, None] = Field() - - -class IssueEventDismissedReview(GitHubModel): - """Issue Event Dismissed Review""" - - state: str = Field() - review_id: int = Field() - dismissal_message: Union[str, None] = Field() - dismissal_commit_id: Missing[Union[str, None]] = Field(default=UNSET) - + tag: str = Field(description="Name of the tag") + sha: str = Field() + url: str = Field(description="URL for the tag") + message: str = Field(description="Message describing the purpose of the tag") + tagger: GitTagPropTagger = Field() + object_: GitTagPropObject = Field(alias="object") + verification: Missing[Verification] = Field(default=UNSET, title="Verification") -class IssueEventMilestone(GitHubModel): - """Issue Event Milestone - Issue Event Milestone - """ - - title: str = Field() +class GitTagPropTagger(GitHubModel): + """GitTagPropTagger""" + date: str = Field() + email: str = Field() + name: str = Field() -class IssueEventProjectCard(GitHubModel): - """Issue Event Project Card - Issue Event Project Card - """ +class GitTagPropObject(GitHubModel): + """GitTagPropObject""" + sha: str = Field() + type: str = Field() url: str = Field() - id: int = Field() - project_url: str = Field() - project_id: int = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -class IssueEventRename(GitHubModel): - """Issue Event Rename - - Issue Event Rename - """ - - from_: str = Field(alias="from") - to: str = Field() -model_rebuild(IssueEvent) -model_rebuild(IssueEventLabel) -model_rebuild(IssueEventDismissedReview) -model_rebuild(IssueEventMilestone) -model_rebuild(IssueEventProjectCard) -model_rebuild(IssueEventRename) +model_rebuild(GitTag) +model_rebuild(GitTagPropTagger) +model_rebuild(GitTagPropObject) __all__ = ( - "IssueEvent", - "IssueEventDismissedReview", - "IssueEventLabel", - "IssueEventMilestone", - "IssueEventProjectCard", - "IssueEventRename", + "GitTag", + "GitTagPropObject", + "GitTagPropTagger", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0324.py b/githubkit/versions/ghec_v2022_11_28/models/group_0324.py index ad04fd4c6..be970677c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0324.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0324.py @@ -9,45 +9,42 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0002 import SimpleUser -from .group_0008 import Integration +from githubkit.typing import Missing +from githubkit.utils import UNSET -class LabeledIssueEvent(GitHubModel): - """Labeled Issue Event +class GitTree(GitHubModel): + """Git Tree - Labeled Issue Event + The hierarchy between files in a Git repository. """ - id: int = Field() - node_id: str = Field() + sha: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["labeled"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - label: LabeledIssueEventPropLabel = Field() + truncated: bool = Field() + tree: list[GitTreePropTreeItems] = Field( + description="Objects specifying a tree structure" + ) -class LabeledIssueEventPropLabel(GitHubModel): - """LabeledIssueEventPropLabel""" +class GitTreePropTreeItems(GitHubModel): + """GitTreePropTreeItems""" - name: str = Field() - color: str = Field() + path: Missing[str] = Field(default=UNSET) + mode: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(LabeledIssueEvent) -model_rebuild(LabeledIssueEventPropLabel) +model_rebuild(GitTree) +model_rebuild(GitTreePropTreeItems) __all__ = ( - "LabeledIssueEvent", - "LabeledIssueEventPropLabel", + "GitTree", + "GitTreePropTreeItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0325.py b/githubkit/versions/ghec_v2022_11_28/models/group_0325.py index 6fbb85cdb..544751a06 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0325.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0325.py @@ -9,45 +9,21 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0008 import Integration +class HookResponse(GitHubModel): + """Hook Response""" -class UnlabeledIssueEvent(GitHubModel): - """Unlabeled Issue Event + code: Union[int, None] = Field() + status: Union[str, None] = Field() + message: Union[str, None] = Field() - Unlabeled Issue Event - """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["unlabeled"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - label: UnlabeledIssueEventPropLabel = Field() +model_rebuild(HookResponse) - -class UnlabeledIssueEventPropLabel(GitHubModel): - """UnlabeledIssueEventPropLabel""" - - name: str = Field() - color: str = Field() - - -model_rebuild(UnlabeledIssueEvent) -model_rebuild(UnlabeledIssueEventPropLabel) - -__all__ = ( - "UnlabeledIssueEvent", - "UnlabeledIssueEventPropLabel", -) +__all__ = ("HookResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0326.py b/githubkit/versions/ghec_v2022_11_28/models/group_0326.py index 399a86d8a..3820df193 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0326.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0326.py @@ -9,38 +9,47 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0011 import WebhookConfig +from .group_0325 import HookResponse -class AssignedIssueEvent(GitHubModel): - """Assigned Issue Event +class Hook(GitHubModel): + """Webhook - Assigned Issue Event + Webhooks for repositories. """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + type: str = Field() + id: int = Field(description="Unique identifier of the webhook.") + name: str = Field( + description="The name of a valid service, use 'web' for a webhook." + ) + active: bool = Field( + description="Determines whether the hook is actually triggered on pushes." + ) + events: list[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." ) - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + config: WebhookConfig = Field( + title="Webhook Configuration", description="Configuration object of the webhook" + ) + updated_at: datetime = Field() + created_at: datetime = Field() + url: str = Field() + test_url: str = Field() + ping_url: str = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + last_response: HookResponse = Field(title="Hook Response") -model_rebuild(AssignedIssueEvent) +model_rebuild(Hook) -__all__ = ("AssignedIssueEvent",) +__all__ = ("Hook",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0327.py b/githubkit/versions/ghec_v2022_11_28/models/group_0327.py index 519eb1642..dc0d94e75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0327.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0327.py @@ -9,35 +9,75 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +class Import(GitHubModel): + """Import -class UnassignedIssueEvent(GitHubModel): - """Unassigned Issue Event - - Unassigned Issue Event + A repository import from an external source. """ - id: int = Field() - node_id: str = Field() + vcs: Union[str, None] = Field() + use_lfs: Missing[bool] = Field(default=UNSET) + vcs_url: str = Field(description="The URL of the originating repository.") + svc_root: Missing[str] = Field(default=UNSET) + tfvc_project: Missing[str] = Field(default=UNSET) + status: Literal[ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth", + ] = Field() + status_text: Missing[Union[str, None]] = Field(default=UNSET) + failed_step: Missing[Union[str, None]] = Field(default=UNSET) + error_message: Missing[Union[str, None]] = Field(default=UNSET) + import_percent: Missing[Union[int, None]] = Field(default=UNSET) + commit_count: Missing[Union[int, None]] = Field(default=UNSET) + push_percent: Missing[Union[int, None]] = Field(default=UNSET) + has_large_files: Missing[bool] = Field(default=UNSET) + large_files_size: Missing[int] = Field(default=UNSET) + large_files_count: Missing[int] = Field(default=UNSET) + project_choices: Missing[list[ImportPropProjectChoicesItems]] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + authors_count: Missing[Union[int, None]] = Field(default=UNSET) url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + html_url: str = Field() + authors_url: str = Field() + repository_url: str = Field() + svn_root: Missing[str] = Field(default=UNSET) + + +class ImportPropProjectChoicesItems(GitHubModel): + """ImportPropProjectChoicesItems""" + + vcs: Missing[str] = Field(default=UNSET) + tfvc_project: Missing[str] = Field(default=UNSET) + human_name: Missing[str] = Field(default=UNSET) -model_rebuild(UnassignedIssueEvent) +model_rebuild(Import) +model_rebuild(ImportPropProjectChoicesItems) -__all__ = ("UnassignedIssueEvent",) +__all__ = ( + "Import", + "ImportPropProjectChoicesItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0328.py b/githubkit/versions/ghec_v2022_11_28/models/group_0328.py index 18e6066a2..7ed1d272d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0328.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0328.py @@ -9,44 +9,26 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0008 import Integration - -class MilestonedIssueEvent(GitHubModel): - """Milestoned Issue Event +class PorterAuthor(GitHubModel): + """Porter Author - Milestoned Issue Event + Porter Author """ id: int = Field() - node_id: str = Field() + remote_id: str = Field() + remote_name: str = Field() + email: str = Field() + name: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["milestoned"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - milestone: MilestonedIssueEventPropMilestone = Field() - - -class MilestonedIssueEventPropMilestone(GitHubModel): - """MilestonedIssueEventPropMilestone""" - - title: str = Field() + import_url: str = Field() -model_rebuild(MilestonedIssueEvent) -model_rebuild(MilestonedIssueEventPropMilestone) +model_rebuild(PorterAuthor) -__all__ = ( - "MilestonedIssueEvent", - "MilestonedIssueEventPropMilestone", -) +__all__ = ("PorterAuthor",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0329.py b/githubkit/versions/ghec_v2022_11_28/models/group_0329.py index 4eedce907..c54f24120 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0329.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0329.py @@ -9,44 +9,23 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0008 import Integration - -class DemilestonedIssueEvent(GitHubModel): - """Demilestoned Issue Event +class PorterLargeFile(GitHubModel): + """Porter Large File - Demilestoned Issue Event + Porter Large File """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["demilestoned"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - milestone: DemilestonedIssueEventPropMilestone = Field() - - -class DemilestonedIssueEventPropMilestone(GitHubModel): - """DemilestonedIssueEventPropMilestone""" - - title: str = Field() + ref_name: str = Field() + path: str = Field() + oid: str = Field() + size: int = Field() -model_rebuild(DemilestonedIssueEvent) -model_rebuild(DemilestonedIssueEventPropMilestone) +model_rebuild(PorterLargeFile) -__all__ = ( - "DemilestonedIssueEvent", - "DemilestonedIssueEventPropMilestone", -) +__all__ = ("PorterLargeFile",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0330.py b/githubkit/versions/ghec_v2022_11_28/models/group_0330.py index 9c56bf2bf..96265c5f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0330.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0330.py @@ -9,45 +9,150 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0065 import Team +from .group_0138 import Issue -class RenamedIssueEvent(GitHubModel): - """Renamed Issue Event +class IssueEvent(GitHubModel): + """Issue Event - Renamed Issue Event + Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["renamed"] = Field() + actor: Union[None, SimpleUser] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - rename: RenamedIssueEventPropRename = Field() + created_at: datetime = Field() + issue: Missing[Union[None, Issue]] = Field(default=UNSET) + label: Missing[IssueEventLabel] = Field( + default=UNSET, title="Issue Event Label", description="Issue Event Label" + ) + assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + assigner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + review_requester: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + requested_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + dismissed_review: Missing[IssueEventDismissedReview] = Field( + default=UNSET, title="Issue Event Dismissed Review" + ) + milestone: Missing[IssueEventMilestone] = Field( + default=UNSET, + title="Issue Event Milestone", + description="Issue Event Milestone", + ) + project_card: Missing[IssueEventProjectCard] = Field( + default=UNSET, + title="Issue Event Project Card", + description="Issue Event Project Card", + ) + rename: Missing[IssueEventRename] = Field( + default=UNSET, title="Issue Event Rename", description="Issue Event Rename" + ) + author_association: Missing[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] = Field( + default=UNSET, + title="author_association", + description="How the author is associated with the repository.", + ) + lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + + +class IssueEventLabel(GitHubModel): + """Issue Event Label + + Issue Event Label + """ + + name: Union[str, None] = Field() + color: Union[str, None] = Field() + + +class IssueEventDismissedReview(GitHubModel): + """Issue Event Dismissed Review""" + + state: str = Field() + review_id: int = Field() + dismissal_message: Union[str, None] = Field() + dismissal_commit_id: Missing[Union[str, None]] = Field(default=UNSET) + + +class IssueEventMilestone(GitHubModel): + """Issue Event Milestone + + Issue Event Milestone + """ + + title: str = Field() -class RenamedIssueEventPropRename(GitHubModel): - """RenamedIssueEventPropRename""" +class IssueEventProjectCard(GitHubModel): + """Issue Event Project Card + + Issue Event Project Card + """ + + url: str = Field() + id: int = Field() + project_url: str = Field() + project_id: int = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +class IssueEventRename(GitHubModel): + """Issue Event Rename + + Issue Event Rename + """ from_: str = Field(alias="from") to: str = Field() -model_rebuild(RenamedIssueEvent) -model_rebuild(RenamedIssueEventPropRename) +model_rebuild(IssueEvent) +model_rebuild(IssueEventLabel) +model_rebuild(IssueEventDismissedReview) +model_rebuild(IssueEventMilestone) +model_rebuild(IssueEventProjectCard) +model_rebuild(IssueEventRename) __all__ = ( - "RenamedIssueEvent", - "RenamedIssueEventPropRename", + "IssueEvent", + "IssueEventDismissedReview", + "IssueEventLabel", + "IssueEventMilestone", + "IssueEventProjectCard", + "IssueEventRename", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0331.py b/githubkit/versions/ghec_v2022_11_28/models/group_0331.py index 9fb3b563a..3ec22fb63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0331.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0331.py @@ -14,42 +14,40 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0060 import Team +from .group_0003 import SimpleUser +from .group_0010 import Integration -class ReviewRequestedIssueEvent(GitHubModel): - """Review Requested Issue Event +class LabeledIssueEvent(GitHubModel): + """Labeled Issue Event - Review Requested Issue Event + Labeled Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_requested"] = Field() + event: Literal["labeled"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - review_requester: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - requested_reviewer: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(ReviewRequestedIssueEvent) - -__all__ = ("ReviewRequestedIssueEvent",) + label: LabeledIssueEventPropLabel = Field() + + +class LabeledIssueEventPropLabel(GitHubModel): + """LabeledIssueEventPropLabel""" + + name: str = Field() + color: str = Field() + + +model_rebuild(LabeledIssueEvent) +model_rebuild(LabeledIssueEventPropLabel) + +__all__ = ( + "LabeledIssueEvent", + "LabeledIssueEventPropLabel", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0332.py b/githubkit/versions/ghec_v2022_11_28/models/group_0332.py index 70b693cfe..695ea4a4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0332.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0332.py @@ -14,42 +14,40 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0060 import Team +from .group_0003 import SimpleUser +from .group_0010 import Integration -class ReviewRequestRemovedIssueEvent(GitHubModel): - """Review Request Removed Issue Event +class UnlabeledIssueEvent(GitHubModel): + """Unlabeled Issue Event - Review Request Removed Issue Event + Unlabeled Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_request_removed"] = Field() + event: Literal["unlabeled"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - review_requester: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - requested_reviewer: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(ReviewRequestRemovedIssueEvent) - -__all__ = ("ReviewRequestRemovedIssueEvent",) + label: UnlabeledIssueEventPropLabel = Field() + + +class UnlabeledIssueEventPropLabel(GitHubModel): + """UnlabeledIssueEventPropLabel""" + + name: str = Field() + color: str = Field() + + +model_rebuild(UnlabeledIssueEvent) +model_rebuild(UnlabeledIssueEventPropLabel) + +__all__ = ( + "UnlabeledIssueEvent", + "UnlabeledIssueEventPropLabel", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0333.py b/githubkit/versions/ghec_v2022_11_28/models/group_0333.py index 4dea4a8f3..34f35669c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0333.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0333.py @@ -9,49 +9,38 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration -class ReviewDismissedIssueEvent(GitHubModel): - """Review Dismissed Issue Event +class AssignedIssueEvent(GitHubModel): + """Assigned Issue Event - Review Dismissed Issue Event + Assigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_dismissed"] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): - """ReviewDismissedIssueEventPropDismissedReview""" +model_rebuild(AssignedIssueEvent) - state: str = Field() - review_id: int = Field() - dismissal_message: Union[str, None] = Field() - dismissal_commit_id: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReviewDismissedIssueEvent) -model_rebuild(ReviewDismissedIssueEventPropDismissedReview) - -__all__ = ( - "ReviewDismissedIssueEvent", - "ReviewDismissedIssueEventPropDismissedReview", -) +__all__ = ("AssignedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0334.py b/githubkit/versions/ghec_v2022_11_28/models/group_0334.py index 4cb21fe2e..d36e83286 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0334.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0334.py @@ -9,34 +9,35 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration -class LockedIssueEvent(GitHubModel): - """Locked Issue Event +class UnassignedIssueEvent(GitHubModel): + """Unassigned Issue Event - Locked Issue Event + Unassigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["locked"] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - lock_reason: Union[str, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(LockedIssueEvent) +model_rebuild(UnassignedIssueEvent) -__all__ = ("LockedIssueEvent",) +__all__ = ("UnassignedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0335.py b/githubkit/versions/ghec_v2022_11_28/models/group_0335.py index 30d0e4da1..734796d8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0335.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0335.py @@ -14,48 +14,39 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration -class AddedToProjectIssueEvent(GitHubModel): - """Added to Project Issue Event +class MilestonedIssueEvent(GitHubModel): + """Milestoned Issue Event - Added to Project Issue Event + Milestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["added_to_project"] = Field() + event: Literal["milestoned"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + milestone: MilestonedIssueEventPropMilestone = Field() -class AddedToProjectIssueEventPropProjectCard(GitHubModel): - """AddedToProjectIssueEventPropProjectCard""" +class MilestonedIssueEventPropMilestone(GitHubModel): + """MilestonedIssueEventPropMilestone""" - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) + title: str = Field() -model_rebuild(AddedToProjectIssueEvent) -model_rebuild(AddedToProjectIssueEventPropProjectCard) +model_rebuild(MilestonedIssueEvent) +model_rebuild(MilestonedIssueEventPropMilestone) __all__ = ( - "AddedToProjectIssueEvent", - "AddedToProjectIssueEventPropProjectCard", + "MilestonedIssueEvent", + "MilestonedIssueEventPropMilestone", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0336.py b/githubkit/versions/ghec_v2022_11_28/models/group_0336.py index 28fe20c0c..1b03cd99a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0336.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0336.py @@ -14,48 +14,39 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration -class MovedColumnInProjectIssueEvent(GitHubModel): - """Moved Column in Project Issue Event +class DemilestonedIssueEvent(GitHubModel): + """Demilestoned Issue Event - Moved Column in Project Issue Event + Demilestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["moved_columns_in_project"] = Field() + event: Literal["demilestoned"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + milestone: DemilestonedIssueEventPropMilestone = Field() -class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): - """MovedColumnInProjectIssueEventPropProjectCard""" +class DemilestonedIssueEventPropMilestone(GitHubModel): + """DemilestonedIssueEventPropMilestone""" - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) + title: str = Field() -model_rebuild(MovedColumnInProjectIssueEvent) -model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) +model_rebuild(DemilestonedIssueEvent) +model_rebuild(DemilestonedIssueEventPropMilestone) __all__ = ( - "MovedColumnInProjectIssueEvent", - "MovedColumnInProjectIssueEventPropProjectCard", + "DemilestonedIssueEvent", + "DemilestonedIssueEventPropMilestone", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0337.py b/githubkit/versions/ghec_v2022_11_28/models/group_0337.py index b138bfd32..234895caf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0337.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0337.py @@ -14,48 +14,40 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration -class RemovedFromProjectIssueEvent(GitHubModel): - """Removed from Project Issue Event +class RenamedIssueEvent(GitHubModel): + """Renamed Issue Event - Removed from Project Issue Event + Renamed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["removed_from_project"] = Field() + event: Literal["renamed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[RemovedFromProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + rename: RenamedIssueEventPropRename = Field() -class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): - """RemovedFromProjectIssueEventPropProjectCard""" +class RenamedIssueEventPropRename(GitHubModel): + """RenamedIssueEventPropRename""" - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) + from_: str = Field(alias="from") + to: str = Field() -model_rebuild(RemovedFromProjectIssueEvent) -model_rebuild(RemovedFromProjectIssueEventPropProjectCard) +model_rebuild(RenamedIssueEvent) +model_rebuild(RenamedIssueEventPropRename) __all__ = ( - "RemovedFromProjectIssueEvent", - "RemovedFromProjectIssueEventPropProjectCard", + "RenamedIssueEvent", + "RenamedIssueEventPropRename", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0338.py b/githubkit/versions/ghec_v2022_11_28/models/group_0338.py index 72954e807..979c5edc9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0338.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0338.py @@ -17,48 +17,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0065 import Team -class ConvertedNoteToIssueIssueEvent(GitHubModel): - """Converted Note to Issue Issue Event +class ReviewRequestedIssueEvent(GitHubModel): + """Review Requested Issue Event - Converted Note to Issue Issue Event + Review Requested Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["converted_note_to_issue"] = Field() + event: Literal["review_requested"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + performed_via_github_app: Union[None, Integration, None] = Field() + review_requester: SimpleUser = Field( + title="Simple User", description="A GitHub user." ) - project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( - default=UNSET + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + requested_reviewer: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): - """ConvertedNoteToIssueIssueEventPropProjectCard""" - - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(ConvertedNoteToIssueIssueEvent) -model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) +model_rebuild(ReviewRequestedIssueEvent) -__all__ = ( - "ConvertedNoteToIssueIssueEvent", - "ConvertedNoteToIssueIssueEventPropProjectCard", -) +__all__ = ("ReviewRequestedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0339.py b/githubkit/versions/ghec_v2022_11_28/models/group_0339.py index 5cf347c42..d4964130c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0339.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0339.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,51 +17,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0130 import ReactionRollup +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0065 import Team -class TimelineCommentEvent(GitHubModel): - """Timeline Comment Event +class ReviewRequestRemovedIssueEvent(GitHubModel): + """Review Request Removed Issue Event - Timeline Comment Event + Review Request Removed Issue Event """ - event: Literal["commented"] = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - id: int = Field(description="Unique identifier of the issue comment") + id: int = Field() node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["review_request_removed"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + review_requester: SimpleUser = Field( + title="Simple User", description="A GitHub user." ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - html_url: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: datetime = Field() - updated_at: datetime = Field() - issue_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + requested_reviewer: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TimelineCommentEvent) +model_rebuild(ReviewRequestRemovedIssueEvent) -__all__ = ("TimelineCommentEvent",) +__all__ = ("ReviewRequestRemovedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0340.py b/githubkit/versions/ghec_v2022_11_28/models/group_0340.py index 7b833331f..bc686e09d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0340.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0340.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,25 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0341 import TimelineCrossReferencedEventPropSource +from .group_0003 import SimpleUser +from .group_0010 import Integration -class TimelineCrossReferencedEvent(GitHubModel): - """Timeline Cross Referenced Event +class ReviewDismissedIssueEvent(GitHubModel): + """Review Dismissed Issue Event - Timeline Cross Referenced Event + Review Dismissed Issue Event """ - event: Literal["cross-referenced"] = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - source: TimelineCrossReferencedEventPropSource = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["review_dismissed"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() -model_rebuild(TimelineCrossReferencedEvent) +class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): + """ReviewDismissedIssueEventPropDismissedReview""" -__all__ = ("TimelineCrossReferencedEvent",) + state: str = Field() + review_id: int = Field() + dismissal_message: Union[str, None] = Field() + dismissal_commit_id: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReviewDismissedIssueEvent) +model_rebuild(ReviewDismissedIssueEventPropDismissedReview) + +__all__ = ( + "ReviewDismissedIssueEvent", + "ReviewDismissedIssueEventPropDismissedReview", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0341.py b/githubkit/versions/ghec_v2022_11_28/models/group_0341.py index c3beca43b..e0130f152 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0341.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0341.py @@ -9,26 +9,34 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0131 import Issue +from .group_0003 import SimpleUser +from .group_0010 import Integration + +class LockedIssueEvent(GitHubModel): + """Locked Issue Event -class TimelineCrossReferencedEventPropSource(GitHubModel): - """TimelineCrossReferencedEventPropSource""" + Locked Issue Event + """ - type: Missing[str] = Field(default=UNSET) - issue: Missing[Issue] = Field( - default=UNSET, - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["locked"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + lock_reason: Union[str, None] = Field() -model_rebuild(TimelineCrossReferencedEventPropSource) +model_rebuild(LockedIssueEvent) -__all__ = ("TimelineCrossReferencedEventPropSource",) +__all__ = ("LockedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0342.py b/githubkit/versions/ghec_v2022_11_28/models/group_0342.py index 2adea8706..cf2b6b5f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0342.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0342.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,89 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration -class TimelineCommittedEvent(GitHubModel): - """Timeline Committed Event - Timeline Committed Event +class AddedToProjectIssueEvent(GitHubModel): + """Added to Project Issue Event + + Added to Project Issue Event """ - event: Missing[Literal["committed"]] = Field(default=UNSET) - sha: str = Field(description="SHA for the commit") + id: int = Field() node_id: str = Field() url: str = Field() - author: TimelineCommittedEventPropAuthor = Field( - description="Identifying information for the git-user" - ) - committer: TimelineCommittedEventPropCommitter = Field( - description="Identifying information for the git-user" + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["added_to_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( + default=UNSET ) - message: str = Field(description="Message describing the purpose of the commit") - tree: TimelineCommittedEventPropTree = Field() - parents: list[TimelineCommittedEventPropParentsItems] = Field() - verification: TimelineCommittedEventPropVerification = Field() - html_url: str = Field() - - -class TimelineCommittedEventPropAuthor(GitHubModel): - """TimelineCommittedEventPropAuthor - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - -class TimelineCommittedEventPropCommitter(GitHubModel): - """TimelineCommittedEventPropCommitter - - Identifying information for the git-user - """ - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") +class AddedToProjectIssueEventPropProjectCard(GitHubModel): + """AddedToProjectIssueEventPropProjectCard""" - -class TimelineCommittedEventPropTree(GitHubModel): - """TimelineCommittedEventPropTree""" - - sha: str = Field(description="SHA for the commit") + id: int = Field() url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) -class TimelineCommittedEventPropParentsItems(GitHubModel): - """TimelineCommittedEventPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class TimelineCommittedEventPropVerification(GitHubModel): - """TimelineCommittedEventPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() - verified_at: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(TimelineCommittedEvent) -model_rebuild(TimelineCommittedEventPropAuthor) -model_rebuild(TimelineCommittedEventPropCommitter) -model_rebuild(TimelineCommittedEventPropTree) -model_rebuild(TimelineCommittedEventPropParentsItems) -model_rebuild(TimelineCommittedEventPropVerification) +model_rebuild(AddedToProjectIssueEvent) +model_rebuild(AddedToProjectIssueEventPropProjectCard) __all__ = ( - "TimelineCommittedEvent", - "TimelineCommittedEventPropAuthor", - "TimelineCommittedEventPropCommitter", - "TimelineCommittedEventPropParentsItems", - "TimelineCommittedEventPropTree", - "TimelineCommittedEventPropVerification", + "AddedToProjectIssueEvent", + "AddedToProjectIssueEventPropProjectCard", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0343.py b/githubkit/versions/ghec_v2022_11_28/models/group_0343.py index 1801a16a7..5d2b15f17 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0343.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0343.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,70 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0010 import Integration -class TimelineReviewedEvent(GitHubModel): - """Timeline Reviewed Event +class MovedColumnInProjectIssueEvent(GitHubModel): + """Moved Column in Project Issue Event - Timeline Reviewed Event + Moved Column in Project Issue Event """ - event: Literal["reviewed"] = Field() - id: int = Field(description="Unique identifier of the review") + id: int = Field() node_id: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field(description="The text of the review.") - state: str = Field() - html_url: str = Field() - pull_request_url: str = Field() - links: TimelineReviewedEventPropLinks = Field(alias="_links") - submitted_at: Missing[datetime] = Field(default=UNSET) - commit_id: str = Field(description="A commit SHA for the review.") - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["moved_columns_in_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( + default=UNSET ) -class TimelineReviewedEventPropLinks(GitHubModel): - """TimelineReviewedEventPropLinks""" +class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): + """MovedColumnInProjectIssueEventPropProjectCard""" - html: TimelineReviewedEventPropLinksPropHtml = Field() - pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) -class TimelineReviewedEventPropLinksPropHtml(GitHubModel): - """TimelineReviewedEventPropLinksPropHtml""" - - href: str = Field() - - -class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): - """TimelineReviewedEventPropLinksPropPullRequest""" - - href: str = Field() - - -model_rebuild(TimelineReviewedEvent) -model_rebuild(TimelineReviewedEventPropLinks) -model_rebuild(TimelineReviewedEventPropLinksPropHtml) -model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) +model_rebuild(MovedColumnInProjectIssueEvent) +model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) __all__ = ( - "TimelineReviewedEvent", - "TimelineReviewedEventPropLinks", - "TimelineReviewedEventPropLinksPropHtml", - "TimelineReviewedEventPropLinksPropPullRequest", + "MovedColumnInProjectIssueEvent", + "MovedColumnInProjectIssueEventPropProjectCard", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0344.py b/githubkit/versions/ghec_v2022_11_28/models/group_0344.py index fbe1a5d0d..3bd6fbf40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0344.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0344.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,150 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0130 import ReactionRollup +from .group_0003 import SimpleUser +from .group_0010 import Integration -class PullRequestReviewComment(GitHubModel): - """Pull Request Review Comment +class RemovedFromProjectIssueEvent(GitHubModel): + """Removed from Project Issue Event - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Removed from Project Issue Event """ - url: str = Field(description="URL for the pull request review comment") - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["removed_from_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[RemovedFromProjectIssueEventPropProjectCard] = Field( + default=UNSET ) - id: int = Field(description="The ID of the pull request review comment.") - node_id: str = Field(description="The node ID of the pull request review comment.") - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Missing[int] = Field( - default=UNSET, - description="The line index in the diff to which the comment applies. This field is closing down; use `line` instead.", - ) - original_position: Missing[int] = Field( - default=UNSET, - description="The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.", - ) - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: str = Field(description="The text of the comment.") - created_at: datetime = Field() - updated_at: datetime = Field() - html_url: str = Field(description="HTML URL for the pull request review comment.") - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - links: PullRequestReviewCommentPropLinks = Field(alias="_links") - start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - original_start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - original_line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description="The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - - -class PullRequestReviewCommentPropLinks(GitHubModel): - """PullRequestReviewCommentPropLinks""" - - self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") - html: PullRequestReviewCommentPropLinksPropHtml = Field() - pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() - - -class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): - """PullRequestReviewCommentPropLinksPropSelf""" - - href: str = Field() - -class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): - """PullRequestReviewCommentPropLinksPropHtml""" - href: str = Field() - - -class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewCommentPropLinksPropPullRequest""" - - href: str = Field() - - -class TimelineLineCommentedEvent(GitHubModel): - """Timeline Line Commented Event - - Timeline Line Commented Event - """ +class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): + """RemovedFromProjectIssueEventPropProjectCard""" - event: Missing[Literal["line_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - comments: Missing[list[PullRequestReviewComment]] = Field(default=UNSET) + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) -model_rebuild(PullRequestReviewComment) -model_rebuild(PullRequestReviewCommentPropLinks) -model_rebuild(PullRequestReviewCommentPropLinksPropSelf) -model_rebuild(PullRequestReviewCommentPropLinksPropHtml) -model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) -model_rebuild(TimelineLineCommentedEvent) +model_rebuild(RemovedFromProjectIssueEvent) +model_rebuild(RemovedFromProjectIssueEventPropProjectCard) __all__ = ( - "PullRequestReviewComment", - "PullRequestReviewCommentPropLinks", - "PullRequestReviewCommentPropLinksPropHtml", - "PullRequestReviewCommentPropLinksPropPullRequest", - "PullRequestReviewCommentPropLinksPropSelf", - "TimelineLineCommentedEvent", + "RemovedFromProjectIssueEvent", + "RemovedFromProjectIssueEventPropProjectCard", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0345.py b/githubkit/versions/ghec_v2022_11_28/models/group_0345.py index 8f48b820e..d4894ad61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0345.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0345.py @@ -14,29 +14,51 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration -class TimelineAssignedIssueEvent(GitHubModel): - """Timeline Assigned Issue Event +class ConvertedNoteToIssueIssueEvent(GitHubModel): + """Converted Note to Issue Issue Event - Timeline Assigned Issue Event + Converted Note to Issue Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["assigned"] = Field() + event: Literal["converted_note_to_issue"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( + default=UNSET + ) -model_rebuild(TimelineAssignedIssueEvent) +class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): + """ConvertedNoteToIssueIssueEventPropProjectCard""" -__all__ = ("TimelineAssignedIssueEvent",) + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(ConvertedNoteToIssueIssueEvent) +model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) + +__all__ = ( + "ConvertedNoteToIssueIssueEvent", + "ConvertedNoteToIssueIssueEventPropProjectCard", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0346.py b/githubkit/versions/ghec_v2022_11_28/models/group_0346.py index 42ac45389..ed48aaff6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0346.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0346.py @@ -9,34 +9,60 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0137 import ReactionRollup -class TimelineUnassignedIssueEvent(GitHubModel): - """Timeline Unassigned Issue Event +class TimelineCommentEvent(GitHubModel): + """Timeline Comment Event - Timeline Unassigned Issue Event + Timeline Comment Event """ - id: int = Field() - node_id: str = Field() - url: str = Field() + event: Literal["commented"] = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["unassigned"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + id: int = Field(description="Unique identifier of the issue comment") + node_id: str = Field() + url: str = Field(description="URL for the issue comment") + body: Missing[str] = Field( + default=UNSET, description="Contents of the issue comment" + ) + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + html_url: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: datetime = Field() + updated_at: datetime = Field() + issue_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TimelineUnassignedIssueEvent) +model_rebuild(TimelineCommentEvent) -__all__ = ("TimelineUnassignedIssueEvent",) +__all__ = ("TimelineCommentEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0347.py b/githubkit/versions/ghec_v2022_11_28/models/group_0347.py index 856edc75b..6295842c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0347.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0347.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from pydantic import Field @@ -17,28 +18,25 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0348 import TimelineCrossReferencedEventPropSource -class StateChangeIssueEvent(GitHubModel): - """State Change Issue Event +class TimelineCrossReferencedEvent(GitHubModel): + """Timeline Cross Referenced Event - State Change Issue Event + Timeline Cross Referenced Event """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) + event: Literal["cross-referenced"] = Field() + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + source: TimelineCrossReferencedEventPropSource = Field() -model_rebuild(StateChangeIssueEvent) +model_rebuild(TimelineCrossReferencedEvent) -__all__ = ("StateChangeIssueEvent",) +__all__ = ("TimelineCrossReferencedEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0348.py b/githubkit/versions/ghec_v2022_11_28/models/group_0348.py index 25f7eb3a3..304e59b83 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0348.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0348.py @@ -9,33 +9,26 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0138 import Issue -class DeployKey(GitHubModel): - """Deploy Key - An SSH key granting access to a single repository. - """ +class TimelineCrossReferencedEventPropSource(GitHubModel): + """TimelineCrossReferencedEventPropSource""" - id: int = Field() - key: str = Field() - url: str = Field() - title: str = Field() - verified: bool = Field() - created_at: str = Field() - read_only: bool = Field() - added_by: Missing[Union[str, None]] = Field(default=UNSET) - last_used: Missing[Union[str, None]] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + issue: Missing[Issue] = Field( + default=UNSET, + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) -model_rebuild(DeployKey) +model_rebuild(TimelineCrossReferencedEventPropSource) -__all__ = ("DeployKey",) +__all__ = ("TimelineCrossReferencedEventPropSource",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0349.py b/githubkit/versions/ghec_v2022_11_28/models/group_0349.py index 58247c327..3333d74a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0349.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0349.py @@ -9,16 +9,98 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from datetime import datetime +from typing import Literal, Union +from pydantic import Field -class Language(ExtraGitHubModel): - """Language +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET - Language + +class TimelineCommittedEvent(GitHubModel): + """Timeline Committed Event + + Timeline Committed Event + """ + + event: Missing[Literal["committed"]] = Field(default=UNSET) + sha: str = Field(description="SHA for the commit") + node_id: str = Field() + url: str = Field() + author: TimelineCommittedEventPropAuthor = Field( + description="Identifying information for the git-user" + ) + committer: TimelineCommittedEventPropCommitter = Field( + description="Identifying information for the git-user" + ) + message: str = Field(description="Message describing the purpose of the commit") + tree: TimelineCommittedEventPropTree = Field() + parents: list[TimelineCommittedEventPropParentsItems] = Field() + verification: TimelineCommittedEventPropVerification = Field() + html_url: str = Field() + + +class TimelineCommittedEventPropAuthor(GitHubModel): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class TimelineCommittedEventPropCommitter(GitHubModel): + """TimelineCommittedEventPropCommitter + + Identifying information for the git-user """ + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class TimelineCommittedEventPropTree(GitHubModel): + """TimelineCommittedEventPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + + +class TimelineCommittedEventPropParentsItems(GitHubModel): + """TimelineCommittedEventPropParentsItems""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() + + +class TimelineCommittedEventPropVerification(GitHubModel): + """TimelineCommittedEventPropVerification""" + + verified: bool = Field() + reason: str = Field() + signature: Union[str, None] = Field() + payload: Union[str, None] = Field() + verified_at: Union[str, None] = Field() + -model_rebuild(Language) +model_rebuild(TimelineCommittedEvent) +model_rebuild(TimelineCommittedEventPropAuthor) +model_rebuild(TimelineCommittedEventPropCommitter) +model_rebuild(TimelineCommittedEventPropTree) +model_rebuild(TimelineCommittedEventPropParentsItems) +model_rebuild(TimelineCommittedEventPropVerification) -__all__ = ("Language",) +__all__ = ( + "TimelineCommittedEvent", + "TimelineCommittedEventPropAuthor", + "TimelineCommittedEventPropCommitter", + "TimelineCommittedEventPropParentsItems", + "TimelineCommittedEventPropTree", + "TimelineCommittedEventPropVerification", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0350.py b/githubkit/versions/ghec_v2022_11_28/models/group_0350.py index 58f0ec9f2..a6060bb80 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0350.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0350.py @@ -9,48 +9,79 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0018 import LicenseSimple +from .group_0003 import SimpleUser -class LicenseContent(GitHubModel): - """License Content +class TimelineReviewedEvent(GitHubModel): + """Timeline Reviewed Event - License Content + Timeline Reviewed Event """ - name: str = Field() - path: str = Field() - sha: str = Field() - size: int = Field() - url: str = Field() - html_url: Union[str, None] = Field() - git_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - type: str = Field() - content: str = Field() - encoding: str = Field() - links: LicenseContentPropLinks = Field(alias="_links") - license_: Union[None, LicenseSimple] = Field(alias="license") + event: Literal["reviewed"] = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: TimelineReviewedEventPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: str = Field(description="A commit SHA for the review.") + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) -class LicenseContentPropLinks(GitHubModel): - """LicenseContentPropLinks""" +class TimelineReviewedEventPropLinks(GitHubModel): + """TimelineReviewedEventPropLinks""" - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + html: TimelineReviewedEventPropLinksPropHtml = Field() + pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() -model_rebuild(LicenseContent) -model_rebuild(LicenseContentPropLinks) +class TimelineReviewedEventPropLinksPropHtml(GitHubModel): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str = Field() + + +class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str = Field() + + +model_rebuild(TimelineReviewedEvent) +model_rebuild(TimelineReviewedEventPropLinks) +model_rebuild(TimelineReviewedEventPropLinksPropHtml) +model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) __all__ = ( - "LicenseContent", - "LicenseContentPropLinks", + "TimelineReviewedEvent", + "TimelineReviewedEventPropLinks", + "TimelineReviewedEventPropLinksPropHtml", + "TimelineReviewedEventPropLinksPropPullRequest", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0351.py b/githubkit/versions/ghec_v2022_11_28/models/group_0351.py index 21374a5f3..5433a0cac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0351.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0351.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,150 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0137 import ReactionRollup -class MergedUpstream(GitHubModel): - """Merged upstream - Results of a successful merge upstream request +class PullRequestReviewComment(GitHubModel): + """Pull Request Review Comment + + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. + """ + + url: str = Field(description="URL for the pull request review comment") + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + id: int = Field(description="The ID of the pull request review comment.") + node_id: str = Field(description="The node ID of the pull request review comment.") + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Missing[int] = Field( + default=UNSET, + description="The line index in the diff to which the comment applies. This field is closing down; use `line` instead.", + ) + original_position: Missing[int] = Field( + default=UNSET, + description="The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.", + ) + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: str = Field(description="The text of the comment.") + created_at: datetime = Field() + updated_at: datetime = Field() + html_url: str = Field(description="HTML URL for the pull request review comment.") + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + links: PullRequestReviewCommentPropLinks = Field(alias="_links") + start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + original_start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + original_line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description="The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + + +class PullRequestReviewCommentPropLinks(GitHubModel): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") + html: PullRequestReviewCommentPropLinksPropHtml = Field() + pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() + + +class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str = Field() + + +class TimelineLineCommentedEvent(GitHubModel): + """Timeline Line Commented Event + + Timeline Line Commented Event """ - message: Missing[str] = Field(default=UNSET) - merge_type: Missing[Literal["merge", "fast-forward", "none"]] = Field(default=UNSET) - base_branch: Missing[str] = Field(default=UNSET) + event: Missing[Literal["line_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + comments: Missing[list[PullRequestReviewComment]] = Field(default=UNSET) -model_rebuild(MergedUpstream) +model_rebuild(PullRequestReviewComment) +model_rebuild(PullRequestReviewCommentPropLinks) +model_rebuild(PullRequestReviewCommentPropLinksPropSelf) +model_rebuild(PullRequestReviewCommentPropLinksPropHtml) +model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) +model_rebuild(TimelineLineCommentedEvent) -__all__ = ("MergedUpstream",) +__all__ = ( + "PullRequestReviewComment", + "PullRequestReviewCommentPropLinks", + "PullRequestReviewCommentPropLinksPropHtml", + "PullRequestReviewCommentPropLinksPropPullRequest", + "PullRequestReviewCommentPropLinksPropSelf", + "TimelineLineCommentedEvent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0352.py b/githubkit/versions/ghec_v2022_11_28/models/group_0352.py index 771963487..c45a39f8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0352.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0352.py @@ -9,92 +9,34 @@ from __future__ import annotations -from datetime import date, datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration -class Page(GitHubModel): - """GitHub Pages - The configuration for GitHub Pages for a repository. - """ - - url: str = Field(description="The API address for accessing this Page resource.") - status: Union[None, Literal["built", "building", "errored"]] = Field( - description="The status of the most recent build of the Page." - ) - cname: Union[str, None] = Field(description="The Pages site's custom domain") - protected_domain_state: Missing[ - Union[None, Literal["pending", "verified", "unverified"]] - ] = Field(default=UNSET, description="The state if the domain is verified") - pending_domain_unverified_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The timestamp when a pending domain becomes unverified.", - ) - custom_404: bool = Field( - default=False, description="Whether the Page has a custom 404 page." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The web address the Page can be accessed from." - ) - build_type: Missing[Union[None, Literal["legacy", "workflow"]]] = Field( - default=UNSET, description="The process in which the Page will be built." - ) - source: Missing[PagesSourceHash] = Field(default=UNSET, title="Pages Source Hash") - public: bool = Field( - description="Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site." - ) - https_certificate: Missing[PagesHttpsCertificate] = Field( - default=UNSET, title="Pages Https Certificate" - ) - https_enforced: Missing[bool] = Field( - default=UNSET, description="Whether https is enabled on the domain" - ) - - -class PagesSourceHash(GitHubModel): - """Pages Source Hash""" +class TimelineAssignedIssueEvent(GitHubModel): + """Timeline Assigned Issue Event - branch: str = Field() - path: str = Field() - - -class PagesHttpsCertificate(GitHubModel): - """Pages Https Certificate""" + Timeline Assigned Issue Event + """ - state: Literal[ - "new", - "authorization_created", - "authorization_pending", - "authorized", - "authorization_revoked", - "issued", - "uploaded", - "approved", - "errored", - "bad_authz", - "destroy_pending", - "dns_changed", - ] = Field() - description: str = Field() - domains: list[str] = Field( - description="Array of the domain set and its alternate name (if it is configured)" - ) - expires_at: Missing[date] = Field(default=UNSET) + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["assigned"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(Page) -model_rebuild(PagesSourceHash) -model_rebuild(PagesHttpsCertificate) +model_rebuild(TimelineAssignedIssueEvent) -__all__ = ( - "Page", - "PagesHttpsCertificate", - "PagesSourceHash", -) +__all__ = ("TimelineAssignedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0353.py b/githubkit/versions/ghec_v2022_11_28/models/group_0353.py index 4be66a8fd..420f91c26 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0353.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0353.py @@ -9,42 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0010 import Integration -class PageBuild(GitHubModel): - """Page Build +class TimelineUnassignedIssueEvent(GitHubModel): + """Timeline Unassigned Issue Event - Page Build + Timeline Unassigned Issue Event """ + id: int = Field() + node_id: str = Field() url: str = Field() - status: str = Field() - error: PageBuildPropError = Field() - pusher: Union[None, SimpleUser] = Field() - commit: str = Field() - duration: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["unassigned"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class PageBuildPropError(GitHubModel): - """PageBuildPropError""" +model_rebuild(TimelineUnassignedIssueEvent) - message: Union[str, None] = Field() - - -model_rebuild(PageBuild) -model_rebuild(PageBuildPropError) - -__all__ = ( - "PageBuild", - "PageBuildPropError", -) +__all__ = ("TimelineUnassignedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0354.py b/githubkit/versions/ghec_v2022_11_28/models/group_0354.py index 4b54230bc..799278e56 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0354.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0354.py @@ -9,21 +9,36 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0010 import Integration -class PageBuildStatus(GitHubModel): - """Page Build Status +class StateChangeIssueEvent(GitHubModel): + """State Change Issue Event - Page Build Status + State Change Issue Event """ + id: int = Field() + node_id: str = Field() url: str = Field() - status: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: str = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + state_reason: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(PageBuildStatus) +model_rebuild(StateChangeIssueEvent) -__all__ = ("PageBuildStatus",) +__all__ = ("StateChangeIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0355.py b/githubkit/versions/ghec_v2022_11_28/models/group_0355.py index c3d88e76b..25f7eb3a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0355.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0355.py @@ -18,24 +18,24 @@ from githubkit.utils import UNSET -class PageDeployment(GitHubModel): - """GitHub Pages +class DeployKey(GitHubModel): + """Deploy Key - The GitHub Pages deployment status. + An SSH key granting access to a single repository. """ - id: Union[int, str] = Field( - description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." - ) - status_url: str = Field( - description="The URI to monitor GitHub Pages deployment status." - ) - page_url: str = Field(description="The URI to the deployed GitHub Pages.") - preview_url: Missing[str] = Field( - default=UNSET, description="The URI to the deployed GitHub Pages preview." - ) + id: int = Field() + key: str = Field() + url: str = Field() + title: str = Field() + verified: bool = Field() + created_at: str = Field() + read_only: bool = Field() + added_by: Missing[Union[str, None]] = Field(default=UNSET) + last_used: Missing[Union[str, None]] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(PageDeployment) +model_rebuild(DeployKey) -__all__ = ("PageDeployment",) +__all__ = ("DeployKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0356.py b/githubkit/versions/ghec_v2022_11_28/models/group_0356.py index f79d28414..58247c327 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0356.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0356.py @@ -9,35 +9,16 @@ from __future__ import annotations -from typing import Literal +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +class Language(ExtraGitHubModel): + """Language + Language + """ -class PagesDeploymentStatus(GitHubModel): - """GitHub Pages deployment status""" - status: Missing[ - Literal[ - "deployment_in_progress", - "syncing_files", - "finished_file_sync", - "updating_pages", - "purging_cdn", - "deployment_cancelled", - "deployment_failed", - "deployment_content_failed", - "deployment_attempt_error", - "deployment_lost", - "succeed", - ] - ] = Field(default=UNSET, description="The current status of the deployment.") +model_rebuild(Language) - -model_rebuild(PagesDeploymentStatus) - -__all__ = ("PagesDeploymentStatus",) +__all__ = ("Language",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0357.py b/githubkit/versions/ghec_v2022_11_28/models/group_0357.py index b7d3c727b..5f83fdf69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0357.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0357.py @@ -14,98 +14,43 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0019 import LicenseSimple -class PagesHealthCheck(GitHubModel): - """Pages Health Check Status - Pages Health Check Status +class LicenseContent(GitHubModel): + """License Content + + License Content """ - domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) - alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( - default=UNSET - ) - - -class PagesHealthCheckPropDomain(GitHubModel): - """PagesHealthCheckPropDomain""" - - host: Missing[str] = Field(default=UNSET) - uri: Missing[str] = Field(default=UNSET) - nameservers: Missing[str] = Field(default=UNSET) - dns_resolves: Missing[bool] = Field(default=UNSET) - is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) - is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) - is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid_domain: Missing[bool] = Field(default=UNSET) - is_apex_domain: Missing[bool] = Field(default=UNSET) - should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( - default=UNSET - ) - is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) - is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_pages_domain: Missing[bool] = Field(default=UNSET) - is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid: Missing[bool] = Field(default=UNSET) - reason: Missing[Union[str, None]] = Field(default=UNSET) - responds_to_https: Missing[bool] = Field(default=UNSET) - enforces_https: Missing[bool] = Field(default=UNSET) - https_error: Missing[Union[str, None]] = Field(default=UNSET) - is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) - caa_error: Missing[Union[str, None]] = Field(default=UNSET) - - -class PagesHealthCheckPropAltDomain(GitHubModel): - """PagesHealthCheckPropAltDomain""" - - host: Missing[str] = Field(default=UNSET) - uri: Missing[str] = Field(default=UNSET) - nameservers: Missing[str] = Field(default=UNSET) - dns_resolves: Missing[bool] = Field(default=UNSET) - is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) - is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) - is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid_domain: Missing[bool] = Field(default=UNSET) - is_apex_domain: Missing[bool] = Field(default=UNSET) - should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( - default=UNSET - ) - is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) - is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_pages_domain: Missing[bool] = Field(default=UNSET) - is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid: Missing[bool] = Field(default=UNSET) - reason: Missing[Union[str, None]] = Field(default=UNSET) - responds_to_https: Missing[bool] = Field(default=UNSET) - enforces_https: Missing[bool] = Field(default=UNSET) - https_error: Missing[Union[str, None]] = Field(default=UNSET) - is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) - caa_error: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(PagesHealthCheck) -model_rebuild(PagesHealthCheckPropDomain) -model_rebuild(PagesHealthCheckPropAltDomain) + name: str = Field() + path: str = Field() + sha: str = Field() + size: int = Field() + url: str = Field() + html_url: Union[str, None] = Field() + git_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + type: str = Field() + content: str = Field() + encoding: str = Field() + links: LicenseContentPropLinks = Field(alias="_links") + license_: Union[None, LicenseSimple] = Field(alias="license") + + +class LicenseContentPropLinks(GitHubModel): + """LicenseContentPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(LicenseContent) +model_rebuild(LicenseContentPropLinks) __all__ = ( - "PagesHealthCheck", - "PagesHealthCheckPropAltDomain", - "PagesHealthCheckPropDomain", + "LicenseContent", + "LicenseContentPropLinks", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0358.py b/githubkit/versions/ghec_v2022_11_28/models/group_0358.py index 0c535cbe3..21374a5f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0358.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0358.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,97 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0059 import TeamSimple -from .group_0129 import Milestone -from .group_0279 import AutoMerge -from .group_0359 import PullRequestPropLabelsItems -from .group_0360 import PullRequestPropBase, PullRequestPropHead -from .group_0361 import PullRequestPropLinks +class MergedUpstream(GitHubModel): + """Merged upstream -class PullRequest(GitHubModel): - """Pull Request - - Pull requests let you tell others about changes you've pushed to a repository on - GitHub. Once a pull request is sent, interested parties can review the set of - changes, discuss potential modifications, and even push follow-up commits if - necessary. + Results of a successful merge upstream request """ - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: list[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() + message: Missing[str] = Field(default=UNSET) + merge_type: Missing[Literal["merge", "fast-forward", "none"]] = Field(default=UNSET) + base_branch: Missing[str] = Field(default=UNSET) -model_rebuild(PullRequest) +model_rebuild(MergedUpstream) -__all__ = ("PullRequest",) +__all__ = ("MergedUpstream",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0359.py b/githubkit/versions/ghec_v2022_11_28/models/group_0359.py index cf1d160e5..771963487 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0359.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0359.py @@ -9,25 +9,92 @@ from __future__ import annotations -from typing import Union +from datetime import date, datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PullRequestPropLabelsItems(GitHubModel): - """PullRequestPropLabelsItems""" +class Page(GitHubModel): + """GitHub Pages - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() + The configuration for GitHub Pages for a repository. + """ + url: str = Field(description="The API address for accessing this Page resource.") + status: Union[None, Literal["built", "building", "errored"]] = Field( + description="The status of the most recent build of the Page." + ) + cname: Union[str, None] = Field(description="The Pages site's custom domain") + protected_domain_state: Missing[ + Union[None, Literal["pending", "verified", "unverified"]] + ] = Field(default=UNSET, description="The state if the domain is verified") + pending_domain_unverified_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The timestamp when a pending domain becomes unverified.", + ) + custom_404: bool = Field( + default=False, description="Whether the Page has a custom 404 page." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The web address the Page can be accessed from." + ) + build_type: Missing[Union[None, Literal["legacy", "workflow"]]] = Field( + default=UNSET, description="The process in which the Page will be built." + ) + source: Missing[PagesSourceHash] = Field(default=UNSET, title="Pages Source Hash") + public: bool = Field( + description="Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site." + ) + https_certificate: Missing[PagesHttpsCertificate] = Field( + default=UNSET, title="Pages Https Certificate" + ) + https_enforced: Missing[bool] = Field( + default=UNSET, description="Whether https is enabled on the domain" + ) -model_rebuild(PullRequestPropLabelsItems) -__all__ = ("PullRequestPropLabelsItems",) +class PagesSourceHash(GitHubModel): + """Pages Source Hash""" + + branch: str = Field() + path: str = Field() + + +class PagesHttpsCertificate(GitHubModel): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", + ] = Field() + description: str = Field() + domains: list[str] = Field( + description="Array of the domain set and its alternate name (if it is configured)" + ) + expires_at: Missing[date] = Field(default=UNSET) + + +model_rebuild(Page) +model_rebuild(PagesSourceHash) +model_rebuild(PagesHttpsCertificate) + +__all__ = ( + "Page", + "PagesHttpsCertificate", + "PagesSourceHash", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0360.py b/githubkit/versions/ghec_v2022_11_28/models/group_0360.py index affc4f394..c05e5b837 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0360.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0360.py @@ -9,40 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0019 import Repository +from .group_0003 import SimpleUser -class PullRequestPropHead(GitHubModel): - """PullRequestPropHead""" +class PageBuild(GitHubModel): + """Page Build - label: Union[str, None] = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") - sha: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + Page Build + """ + url: str = Field() + status: str = Field() + error: PageBuildPropError = Field() + pusher: Union[None, SimpleUser] = Field() + commit: str = Field() + duration: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() -class PullRequestPropBase(GitHubModel): - """PullRequestPropBase""" - label: str = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") - sha: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") +class PageBuildPropError(GitHubModel): + """PageBuildPropError""" + message: Union[str, None] = Field() -model_rebuild(PullRequestPropHead) -model_rebuild(PullRequestPropBase) + +model_rebuild(PageBuild) +model_rebuild(PageBuildPropError) __all__ = ( - "PullRequestPropBase", - "PullRequestPropHead", + "PageBuild", + "PageBuildPropError", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0361.py b/githubkit/versions/ghec_v2022_11_28/models/group_0361.py index 762ada337..4b54230bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0361.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0361.py @@ -13,22 +13,17 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0278 import Link +class PageBuildStatus(GitHubModel): + """Page Build Status -class PullRequestPropLinks(GitHubModel): - """PullRequestPropLinks""" + Page Build Status + """ - comments: Link = Field(title="Link", description="Hypermedia Link") - commits: Link = Field(title="Link", description="Hypermedia Link") - statuses: Link = Field(title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - issue: Link = Field(title="Link", description="Hypermedia Link") - review_comments: Link = Field(title="Link", description="Hypermedia Link") - review_comment: Link = Field(title="Link", description="Hypermedia Link") - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + url: str = Field() + status: str = Field() -model_rebuild(PullRequestPropLinks) +model_rebuild(PageBuildStatus) -__all__ = ("PullRequestPropLinks",) +__all__ = ("PageBuildStatus",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0362.py b/githubkit/versions/ghec_v2022_11_28/models/group_0362.py index da433b3b8..c3d88e76b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0362.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0362.py @@ -9,22 +9,33 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PullRequestMergeResult(GitHubModel): - """Pull Request Merge Result +class PageDeployment(GitHubModel): + """GitHub Pages - Pull Request Merge Result + The GitHub Pages deployment status. """ - sha: str = Field() - merged: bool = Field() - message: str = Field() + id: Union[int, str] = Field( + description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." + ) + status_url: str = Field( + description="The URI to monitor GitHub Pages deployment status." + ) + page_url: str = Field(description="The URI to the deployed GitHub Pages.") + preview_url: Missing[str] = Field( + default=UNSET, description="The URI to the deployed GitHub Pages preview." + ) -model_rebuild(PullRequestMergeResult) +model_rebuild(PageDeployment) -__all__ = ("PullRequestMergeResult",) +__all__ = ("PageDeployment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0363.py b/githubkit/versions/ghec_v2022_11_28/models/group_0363.py index e0a90c845..f79d28414 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0363.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0363.py @@ -9,24 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0060 import Team - - -class PullRequestReviewRequest(GitHubModel): - """Pull Request Review Request - Pull Request Review Request - """ +class PagesDeploymentStatus(GitHubModel): + """GitHub Pages deployment status""" - users: list[SimpleUser] = Field() - teams: list[Team] = Field() + status: Missing[ + Literal[ + "deployment_in_progress", + "syncing_files", + "finished_file_sync", + "updating_pages", + "purging_cdn", + "deployment_cancelled", + "deployment_failed", + "deployment_content_failed", + "deployment_attempt_error", + "deployment_lost", + "succeed", + ] + ] = Field(default=UNSET, description="The current status of the deployment.") -model_rebuild(PullRequestReviewRequest) +model_rebuild(PagesDeploymentStatus) -__all__ = ("PullRequestReviewRequest",) +__all__ = ("PagesDeploymentStatus",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0364.py b/githubkit/versions/ghec_v2022_11_28/models/group_0364.py index 5efad26e4..b7d3c727b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0364.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0364.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,71 +17,95 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class PagesHealthCheck(GitHubModel): + """Pages Health Check Status -class PullRequestReview(GitHubModel): - """Pull Request Review - - Pull Request Reviews are reviews on pull requests. + Pages Health Check Status """ - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - user: Union[None, SimpleUser] = Field() - body: str = Field(description="The text of the review.") - state: str = Field() - html_url: str = Field() - pull_request_url: str = Field() - links: PullRequestReviewPropLinks = Field(alias="_links") - submitted_at: Missing[datetime] = Field(default=UNSET) - commit_id: Union[str, None] = Field( - description="A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`." - ) - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) + alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( + default=UNSET ) -class PullRequestReviewPropLinks(GitHubModel): - """PullRequestReviewPropLinks""" - - html: PullRequestReviewPropLinksPropHtml = Field() - pull_request: PullRequestReviewPropLinksPropPullRequest = Field() - - -class PullRequestReviewPropLinksPropHtml(GitHubModel): - """PullRequestReviewPropLinksPropHtml""" - - href: str = Field() - - -class PullRequestReviewPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewPropLinksPropPullRequest""" - - href: str = Field() - - -model_rebuild(PullRequestReview) -model_rebuild(PullRequestReviewPropLinks) -model_rebuild(PullRequestReviewPropLinksPropHtml) -model_rebuild(PullRequestReviewPropLinksPropPullRequest) +class PagesHealthCheckPropDomain(GitHubModel): + """PagesHealthCheckPropDomain""" + + host: Missing[str] = Field(default=UNSET) + uri: Missing[str] = Field(default=UNSET) + nameservers: Missing[str] = Field(default=UNSET) + dns_resolves: Missing[bool] = Field(default=UNSET) + is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) + is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) + is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid_domain: Missing[bool] = Field(default=UNSET) + is_apex_domain: Missing[bool] = Field(default=UNSET) + should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( + default=UNSET + ) + is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) + is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_pages_domain: Missing[bool] = Field(default=UNSET) + is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid: Missing[bool] = Field(default=UNSET) + reason: Missing[Union[str, None]] = Field(default=UNSET) + responds_to_https: Missing[bool] = Field(default=UNSET) + enforces_https: Missing[bool] = Field(default=UNSET) + https_error: Missing[Union[str, None]] = Field(default=UNSET) + is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) + caa_error: Missing[Union[str, None]] = Field(default=UNSET) + + +class PagesHealthCheckPropAltDomain(GitHubModel): + """PagesHealthCheckPropAltDomain""" + + host: Missing[str] = Field(default=UNSET) + uri: Missing[str] = Field(default=UNSET) + nameservers: Missing[str] = Field(default=UNSET) + dns_resolves: Missing[bool] = Field(default=UNSET) + is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) + is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) + is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid_domain: Missing[bool] = Field(default=UNSET) + is_apex_domain: Missing[bool] = Field(default=UNSET) + should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( + default=UNSET + ) + is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) + is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_pages_domain: Missing[bool] = Field(default=UNSET) + is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid: Missing[bool] = Field(default=UNSET) + reason: Missing[Union[str, None]] = Field(default=UNSET) + responds_to_https: Missing[bool] = Field(default=UNSET) + enforces_https: Missing[bool] = Field(default=UNSET) + https_error: Missing[Union[str, None]] = Field(default=UNSET) + is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) + caa_error: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(PagesHealthCheck) +model_rebuild(PagesHealthCheckPropDomain) +model_rebuild(PagesHealthCheckPropAltDomain) __all__ = ( - "PullRequestReview", - "PullRequestReviewPropLinks", - "PullRequestReviewPropLinksPropHtml", - "PullRequestReviewPropLinksPropPullRequest", + "PagesHealthCheck", + "PagesHealthCheckPropAltDomain", + "PagesHealthCheckPropDomain", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0365.py b/githubkit/versions/ghec_v2022_11_28/models/group_0365.py index a9025bec2..04ddcbc2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0365.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0365.py @@ -18,34 +18,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0130 import ReactionRollup -from .group_0366 import ReviewCommentPropLinks +from .group_0003 import SimpleUser +from .group_0064 import TeamSimple +from .group_0136 import Milestone +from .group_0286 import AutoMerge +from .group_0366 import PullRequestPropLabelsItems +from .group_0367 import PullRequestPropBase, PullRequestPropHead +from .group_0368 import PullRequestPropLinks -class ReviewComment(GitHubModel): - """Legacy Review Comment +class PullRequest(GitHubModel): + """Pull Request - Legacy Review Comment + Pull requests let you tell others about changes you've pushed to a repository on + GitHub. Once a pull request is sent, interested parties can review the set of + changes, discuss potential modifications, and even push follow-up commits if + necessary. """ url: str = Field() - pull_request_review_id: Union[int, None] = Field() id: int = Field() node_id: str = Field() - diff_hunk: str = Field() - path: str = Field() - position: Union[int, None] = Field() - original_position: int = Field() - commit_id: str = Field() - original_commit_id: str = Field() - in_reply_to_id: Missing[int] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - body: str = Field() + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: list[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) created_at: datetime = Field() updated_at: datetime = Field() - html_url: str = Field() - pull_request_url: str = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -59,36 +86,29 @@ class ReviewComment(GitHubModel): title="author_association", description="How the author is associated with the repository.", ) - links: ReviewCommentPropLinks = Field(alias="_links") - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." ) - original_line: Missing[int] = Field( + draft: Missing[bool] = Field( default=UNSET, - description="The original line of the blob to which the comment applies. The last line of the range for a multi-line comment", + description="Indicates whether or not the pull request is a draft.", ) - start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - original_start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The original first line of the range for a multi-line comment.", + merged: bool = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() -model_rebuild(ReviewComment) +model_rebuild(PullRequest) -__all__ = ("ReviewComment",) +__all__ = ("PullRequest",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0366.py b/githubkit/versions/ghec_v2022_11_28/models/group_0366.py index c33ad5f30..cf1d160e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0366.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0366.py @@ -9,21 +9,25 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0278 import Link - -class ReviewCommentPropLinks(GitHubModel): - """ReviewCommentPropLinks""" +class PullRequestPropLabelsItems(GitHubModel): + """PullRequestPropLabelsItems""" - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - pull_request: Link = Field(title="Link", description="Hypermedia Link") + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() + description: Union[str, None] = Field() + color: str = Field() + default: bool = Field() -model_rebuild(ReviewCommentPropLinks) +model_rebuild(PullRequestPropLabelsItems) -__all__ = ("ReviewCommentPropLinks",) +__all__ = ("PullRequestPropLabelsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0367.py b/githubkit/versions/ghec_v2022_11_28/models/group_0367.py index 0b599e467..33f91d783 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0367.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0367.py @@ -9,39 +9,40 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0020 import Repository -class ReleaseAsset(GitHubModel): - """Release Asset +class PullRequestPropHead(GitHubModel): + """PullRequestPropHead""" - Data related to a release. - """ - - url: str = Field() - browser_download_url: str = Field() - id: int = Field() - node_id: str = Field() - name: str = Field(description="The file name of the asset.") label: Union[str, None] = Field() - state: Literal["uploaded", "open"] = Field( - description="State of the release asset." - ) - content_type: str = Field() - size: int = Field() - download_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - uploader: Union[None, SimpleUser] = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") + sha: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class PullRequestPropBase(GitHubModel): + """PullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") + sha: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(ReleaseAsset) +model_rebuild(PullRequestPropHead) +model_rebuild(PullRequestPropBase) -__all__ = ("ReleaseAsset",) +__all__ = ( + "PullRequestPropBase", + "PullRequestPropHead", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0368.py b/githubkit/versions/ghec_v2022_11_28/models/group_0368.py index 094f3f626..ae170fd41 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0368.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0368.py @@ -9,59 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0130 import ReactionRollup -from .group_0367 import ReleaseAsset +from .group_0285 import Link -class Release(GitHubModel): - """Release - A release. - """ +class PullRequestPropLinks(GitHubModel): + """PullRequestPropLinks""" - url: str = Field() - html_url: str = Field() - assets_url: str = Field() - upload_url: str = Field() - tarball_url: Union[str, None] = Field() - zipball_url: Union[str, None] = Field() - id: int = Field() - node_id: str = Field() - tag_name: str = Field(description="The name of the tag.") - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - name: Union[str, None] = Field() - body: Missing[Union[str, None]] = Field(default=UNSET) - draft: bool = Field( - description="true to create a draft (unpublished) release, false to create a published one." - ) - prerelease: bool = Field( - description="Whether to identify the release as a prerelease or a full release." - ) - created_at: datetime = Field() - published_at: Union[datetime, None] = Field() - author: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assets: list[ReleaseAsset] = Field() - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - mentions_count: Missing[int] = Field(default=UNSET) - discussion_url: Missing[str] = Field( - default=UNSET, description="The URL of the release discussion." - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + comments: Link = Field(title="Link", description="Hypermedia Link") + commits: Link = Field(title="Link", description="Hypermedia Link") + statuses: Link = Field(title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + issue: Link = Field(title="Link", description="Hypermedia Link") + review_comments: Link = Field(title="Link", description="Hypermedia Link") + review_comment: Link = Field(title="Link", description="Hypermedia Link") + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") -model_rebuild(Release) +model_rebuild(PullRequestPropLinks) -__all__ = ("Release",) +__all__ = ("PullRequestPropLinks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0369.py b/githubkit/versions/ghec_v2022_11_28/models/group_0369.py index e30bd3be3..da433b3b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0369.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0369.py @@ -14,18 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReleaseNotesContent(GitHubModel): - """Generated Release Notes Content +class PullRequestMergeResult(GitHubModel): + """Pull Request Merge Result - Generated name and body describing a release + Pull Request Merge Result """ - name: str = Field(description="The generated name of the release") - body: str = Field( - description="The generated body describing the contents of the release supporting markdown formatting" - ) + sha: str = Field() + merged: bool = Field() + message: str = Field() -model_rebuild(ReleaseNotesContent) +model_rebuild(PullRequestMergeResult) -__all__ = ("ReleaseNotesContent",) +__all__ = ("PullRequestMergeResult",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0370.py b/githubkit/versions/ghec_v2022_11_28/models/group_0370.py index 0e31221c5..97beda9f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0370.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0370.py @@ -9,35 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0065 import Team -class RepositoryRuleRulesetInfo(GitHubModel): - """repository ruleset data for rule +class PullRequestReviewRequest(GitHubModel): + """Pull Request Review Request - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. + Pull Request Review Request """ - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." - ) + users: list[SimpleUser] = Field() + teams: list[Team] = Field() -model_rebuild(RepositoryRuleRulesetInfo) +model_rebuild(PullRequestReviewRequest) -__all__ = ("RepositoryRuleRulesetInfo",) +__all__ = ("PullRequestReviewRequest",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0371.py b/githubkit/versions/ghec_v2022_11_28/models/group_0371.py index 7929bea32..d7938b075 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0371.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0371.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,24 +18,71 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class RepositoryRuleDetailedOneof0(GitHubModel): - """RepositoryRuleDetailedOneof0""" - type: Literal["creation"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", +class PullRequestReview(GitHubModel): + """Pull Request Review + + Pull Request Reviews are reviews on pull requests. + """ + + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + user: Union[None, SimpleUser] = Field() + body: str = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: PullRequestReviewPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: Union[str, None] = Field( + description="A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`." ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", ) -model_rebuild(RepositoryRuleDetailedOneof0) +class PullRequestReviewPropLinks(GitHubModel): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtml = Field() + pull_request: PullRequestReviewPropLinksPropPullRequest = Field() + + +class PullRequestReviewPropLinksPropHtml(GitHubModel): + """PullRequestReviewPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str = Field() + + +model_rebuild(PullRequestReview) +model_rebuild(PullRequestReviewPropLinks) +model_rebuild(PullRequestReviewPropLinksPropHtml) +model_rebuild(PullRequestReviewPropLinksPropPullRequest) -__all__ = ("RepositoryRuleDetailedOneof0",) +__all__ = ( + "PullRequestReview", + "PullRequestReviewPropLinks", + "PullRequestReviewPropLinksPropHtml", + "PullRequestReviewPropLinksPropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0372.py b/githubkit/versions/ghec_v2022_11_28/models/group_0372.py index f624cc50f..49c589f0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0372.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0372.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,27 +18,77 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0089 import RepositoryRuleUpdatePropParameters +from .group_0003 import SimpleUser +from .group_0137 import ReactionRollup +from .group_0373 import ReviewCommentPropLinks -class RepositoryRuleDetailedOneof1(GitHubModel): - """RepositoryRuleDetailedOneof1""" +class ReviewComment(GitHubModel): + """Legacy Review Comment - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( + Legacy Review Comment + """ + + url: str = Field() + pull_request_review_id: Union[int, None] = Field() + id: int = Field() + node_id: str = Field() + diff_hunk: str = Field() + path: str = Field() + position: Union[int, None] = Field() + original_position: int = Field() + commit_id: str = Field() + original_commit_id: str = Field() + in_reply_to_id: Missing[int] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + body: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + html_url: str = Field() + pull_request_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + links: ReviewCommentPropLinks = Field(alias="_links") + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + side: Missing[Literal["LEFT", "RIGHT"]] = Field( default=UNSET, - description="The type of source for the ruleset that includes this rule.", + description="The side of the first line of the range for a multi-line comment.", ) - ruleset_source: Missing[str] = Field( + start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( default=UNSET, - description="The name of the source of the ruleset that includes this rule.", + description="The side of the first line of the range for a multi-line comment.", ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + original_line: Missing[int] = Field( + default=UNSET, + description="The original line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + original_start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The original first line of the range for a multi-line comment.", ) -model_rebuild(RepositoryRuleDetailedOneof1) +model_rebuild(ReviewComment) -__all__ = ("RepositoryRuleDetailedOneof1",) +__all__ = ("ReviewComment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0373.py b/githubkit/versions/ghec_v2022_11_28/models/group_0373.py index ff93ecfb1..bfe6c0ff3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0373.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0373.py @@ -9,32 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0285 import Link -class RepositoryRuleDetailedOneof2(GitHubModel): - """RepositoryRuleDetailedOneof2""" +class ReviewCommentPropLinks(GitHubModel): + """ReviewCommentPropLinks""" - type: Literal["deletion"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." - ) + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + pull_request: Link = Field(title="Link", description="Hypermedia Link") -model_rebuild(RepositoryRuleDetailedOneof2) +model_rebuild(ReviewCommentPropLinks) -__all__ = ("RepositoryRuleDetailedOneof2",) +__all__ = ("ReviewCommentPropLinks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0374.py b/githubkit/versions/ghec_v2022_11_28/models/group_0374.py index 7db86577f..276401f0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0374.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0374.py @@ -9,32 +9,39 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class RepositoryRuleDetailedOneof3(GitHubModel): - """RepositoryRuleDetailedOneof3""" - type: Literal["required_linear_history"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." +class ReleaseAsset(GitHubModel): + """Release Asset + + Data related to a release. + """ + + url: str = Field() + browser_download_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="The file name of the asset.") + label: Union[str, None] = Field() + state: Literal["uploaded", "open"] = Field( + description="State of the release asset." ) + content_type: str = Field() + size: int = Field() + download_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + uploader: Union[None, SimpleUser] = Field() -model_rebuild(RepositoryRuleDetailedOneof3) +model_rebuild(ReleaseAsset) -__all__ = ("RepositoryRuleDetailedOneof3",) +__all__ = ("ReleaseAsset",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0375.py b/githubkit/versions/ghec_v2022_11_28/models/group_0375.py index 61b0fd4fa..086a56606 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0375.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0375.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,27 +18,50 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0092 import RepositoryRuleMergeQueuePropParameters +from .group_0003 import SimpleUser +from .group_0137 import ReactionRollup +from .group_0374 import ReleaseAsset -class RepositoryRuleDetailedOneof4(GitHubModel): - """RepositoryRuleDetailedOneof4""" +class Release(GitHubModel): + """Release - type: Literal["merge_queue"] = Field() - parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", + A release. + """ + + url: str = Field() + html_url: str = Field() + assets_url: str = Field() + upload_url: str = Field() + tarball_url: Union[str, None] = Field() + zipball_url: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + tag_name: str = Field(description="The name of the tag.") + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + name: Union[str, None] = Field() + body: Missing[Union[str, None]] = Field(default=UNSET) + draft: bool = Field( + description="true to create a draft (unpublished) release, false to create a published one." ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", + prerelease: bool = Field( + description="Whether to identify the release as a prerelease or a full release." ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + created_at: datetime = Field() + published_at: Union[datetime, None] = Field() + author: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assets: list[ReleaseAsset] = Field() + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + mentions_count: Missing[int] = Field(default=UNSET) + discussion_url: Missing[str] = Field( + default=UNSET, description="The URL of the release discussion." ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(RepositoryRuleDetailedOneof4) +model_rebuild(Release) -__all__ = ("RepositoryRuleDetailedOneof4",) +__all__ = ("Release",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0376.py b/githubkit/versions/ghec_v2022_11_28/models/group_0376.py index a9767c596..e30bd3be3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0376.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0376.py @@ -9,37 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0094 import RepositoryRuleRequiredDeploymentsPropParameters +class ReleaseNotesContent(GitHubModel): + """Generated Release Notes Content -class RepositoryRuleDetailedOneof5(GitHubModel): - """RepositoryRuleDetailedOneof5""" + Generated name and body describing a release + """ - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET - ) - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + name: str = Field(description="The generated name of the release") + body: str = Field( + description="The generated body describing the contents of the release supporting markdown formatting" ) -model_rebuild(RepositoryRuleDetailedOneof5) +model_rebuild(ReleaseNotesContent) -__all__ = ("RepositoryRuleDetailedOneof5",) +__all__ = ("ReleaseNotesContent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0377.py b/githubkit/versions/ghec_v2022_11_28/models/group_0377.py index e9b15495d..0e31221c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0377.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0377.py @@ -18,10 +18,13 @@ from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof6(GitHubModel): - """RepositoryRuleDetailedOneof6""" +class RepositoryRuleRulesetInfo(GitHubModel): + """repository ruleset data for rule + + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["required_signatures"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +38,6 @@ class RepositoryRuleDetailedOneof6(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof6) +model_rebuild(RepositoryRuleRulesetInfo) -__all__ = ("RepositoryRuleDetailedOneof6",) +__all__ = ("RepositoryRuleRulesetInfo",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0378.py b/githubkit/versions/ghec_v2022_11_28/models/group_0378.py index db0481fbf..7929bea32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0378.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0378.py @@ -17,14 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0097 import RepositoryRulePullRequestPropParameters +class RepositoryRuleDetailedOneof0(GitHubModel): + """RepositoryRuleDetailedOneof0""" -class RepositoryRuleDetailedOneof7(GitHubModel): - """RepositoryRuleDetailedOneof7""" - - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) + type: Literal["creation"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +35,6 @@ class RepositoryRuleDetailedOneof7(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof7) +model_rebuild(RepositoryRuleDetailedOneof0) -__all__ = ("RepositoryRuleDetailedOneof7",) +__all__ = ("RepositoryRuleDetailedOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0379.py b/githubkit/versions/ghec_v2022_11_28/models/group_0379.py index 1dd3400a6..1a39f4ec7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0379.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0379.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0099 import RepositoryRuleRequiredStatusChecksPropParameters +from .group_0096 import RepositoryRuleUpdatePropParameters -class RepositoryRuleDetailedOneof8(GitHubModel): - """RepositoryRuleDetailedOneof8""" +class RepositoryRuleDetailedOneof1(GitHubModel): + """RepositoryRuleDetailedOneof1""" - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( - default=UNSET - ) + type: Literal["update"] = Field() + parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof8(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof8) +model_rebuild(RepositoryRuleDetailedOneof1) -__all__ = ("RepositoryRuleDetailedOneof8",) +__all__ = ("RepositoryRuleDetailedOneof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0380.py b/githubkit/versions/ghec_v2022_11_28/models/group_0380.py index 3f83e7bc3..ff93ecfb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0380.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0380.py @@ -18,10 +18,10 @@ from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof9(GitHubModel): - """RepositoryRuleDetailedOneof9""" +class RepositoryRuleDetailedOneof2(GitHubModel): + """RepositoryRuleDetailedOneof2""" - type: Literal["non_fast_forward"] = Field() + type: Literal["deletion"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +35,6 @@ class RepositoryRuleDetailedOneof9(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof9) +model_rebuild(RepositoryRuleDetailedOneof2) -__all__ = ("RepositoryRuleDetailedOneof9",) +__all__ = ("RepositoryRuleDetailedOneof2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0381.py b/githubkit/versions/ghec_v2022_11_28/models/group_0381.py index bcb0bed7a..7db86577f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0381.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0381.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0101 import RepositoryRuleCommitMessagePatternPropParameters +class RepositoryRuleDetailedOneof3(GitHubModel): + """RepositoryRuleDetailedOneof3""" -class RepositoryRuleDetailedOneof10(GitHubModel): - """RepositoryRuleDetailedOneof10""" - - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["required_linear_history"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof10(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof10) +model_rebuild(RepositoryRuleDetailedOneof3) -__all__ = ("RepositoryRuleDetailedOneof10",) +__all__ = ("RepositoryRuleDetailedOneof3",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0382.py b/githubkit/versions/ghec_v2022_11_28/models/group_0382.py index c6098ff12..36bc18d9b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0382.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0382.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0103 import RepositoryRuleCommitAuthorEmailPatternPropParameters +from .group_0099 import RepositoryRuleMergeQueuePropParameters -class RepositoryRuleDetailedOneof11(GitHubModel): - """RepositoryRuleDetailedOneof11""" +class RepositoryRuleDetailedOneof4(GitHubModel): + """RepositoryRuleDetailedOneof4""" - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( - default=UNSET - ) + type: Literal["merge_queue"] = Field() + parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof11(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof11) +model_rebuild(RepositoryRuleDetailedOneof4) -__all__ = ("RepositoryRuleDetailedOneof11",) +__all__ = ("RepositoryRuleDetailedOneof4",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0383.py b/githubkit/versions/ghec_v2022_11_28/models/group_0383.py index 09a49d092..6faa83b67 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0383.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0383.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0105 import RepositoryRuleCommitterEmailPatternPropParameters +from .group_0101 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleDetailedOneof12(GitHubModel): - """RepositoryRuleDetailedOneof12""" +class RepositoryRuleDetailedOneof5(GitHubModel): + """RepositoryRuleDetailedOneof5""" - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + type: Literal["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof12(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof12) +model_rebuild(RepositoryRuleDetailedOneof5) -__all__ = ("RepositoryRuleDetailedOneof12",) +__all__ = ("RepositoryRuleDetailedOneof5",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0384.py b/githubkit/versions/ghec_v2022_11_28/models/group_0384.py index e225b370f..e9b15495d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0384.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0384.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0107 import RepositoryRuleBranchNamePatternPropParameters +class RepositoryRuleDetailedOneof6(GitHubModel): + """RepositoryRuleDetailedOneof6""" -class RepositoryRuleDetailedOneof13(GitHubModel): - """RepositoryRuleDetailedOneof13""" - - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["required_signatures"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof13(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof13) +model_rebuild(RepositoryRuleDetailedOneof6) -__all__ = ("RepositoryRuleDetailedOneof13",) +__all__ = ("RepositoryRuleDetailedOneof6",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0385.py b/githubkit/versions/ghec_v2022_11_28/models/group_0385.py index 6a9be723b..30dcd0c46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0385.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0385.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0109 import RepositoryRuleTagNamePatternPropParameters +from .group_0104 import RepositoryRulePullRequestPropParameters -class RepositoryRuleDetailedOneof14(GitHubModel): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof7(GitHubModel): + """RepositoryRuleDetailedOneof7""" - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof14(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof14) +model_rebuild(RepositoryRuleDetailedOneof7) -__all__ = ("RepositoryRuleDetailedOneof14",) +__all__ = ("RepositoryRuleDetailedOneof7",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0386.py b/githubkit/versions/ghec_v2022_11_28/models/group_0386.py index 58ac4b3c1..0e17bcc6c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0386.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0386.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0112 import RepositoryRuleWorkflowsPropParameters +from .group_0106 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleDetailedOneof15(GitHubModel): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof8(GitHubModel): + """RepositoryRuleDetailedOneof8""" - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + type: Literal["required_status_checks"] = Field() + parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof15(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof15) +model_rebuild(RepositoryRuleDetailedOneof8) -__all__ = ("RepositoryRuleDetailedOneof15",) +__all__ = ("RepositoryRuleDetailedOneof8",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0387.py b/githubkit/versions/ghec_v2022_11_28/models/group_0387.py index 5d2680d96..3f83e7bc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0387.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0387.py @@ -17,14 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0114 import RepositoryRuleCodeScanningPropParameters +class RepositoryRuleDetailedOneof9(GitHubModel): + """RepositoryRuleDetailedOneof9""" -class RepositoryRuleDetailedOneof16(GitHubModel): - """RepositoryRuleDetailedOneof16""" - - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + type: Literal["non_fast_forward"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +35,6 @@ class RepositoryRuleDetailedOneof16(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof16) +model_rebuild(RepositoryRuleDetailedOneof9) -__all__ = ("RepositoryRuleDetailedOneof16",) +__all__ = ("RepositoryRuleDetailedOneof9",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0388.py b/githubkit/versions/ghec_v2022_11_28/models/group_0388.py index 0d282ed49..e890fafe1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0388.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0388.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,93 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0108 import RepositoryRuleCommitMessagePatternPropParameters -class SecretScanningAlert(GitHubModel): - """SecretScanningAlert""" +class RepositoryRuleDetailedOneof10(GitHubModel): + """RepositoryRuleDetailedOneof10""" - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." - ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - secret: Missing[str] = Field( - default=UNSET, description="The secret that was detected." - ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", - ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( default=UNSET ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="An optional comment when reviewing a push protection bypass.", + description="The type of source for the ruleset that includes this rule.", ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="An optional comment when requesting a push protection bypass.", - ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." + description="The name of the source of the ruleset that includes this rule.", ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." - ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the detected secret was publicly leaked." - ) - multi_repo: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether the detected secret was found in multiple repositories under the same organization or enterprise.", + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningAlert) +model_rebuild(RepositoryRuleDetailedOneof10) -__all__ = ("SecretScanningAlert",) +__all__ = ("RepositoryRuleDetailedOneof10",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0389.py b/githubkit/versions/ghec_v2022_11_28/models/group_0389.py index fa37297f6..1d2a32cea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0389.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0389.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,22 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0110 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class SecretScanningPushProtectionBypass(GitHubModel): - """SecretScanningPushProtectionBypass""" - reason: Missing[Literal["false_positive", "used_in_tests", "will_fix_later"]] = ( - Field(default=UNSET, description="The reason for bypassing push protection.") +class RepositoryRuleDetailedOneof11(GitHubModel): + """RepositoryRuleDetailedOneof11""" + + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( + default=UNSET + ) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( + default=UNSET, + description="The type of source for the ruleset that includes this rule.", ) - expire_at: Missing[Union[datetime, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The name of the source of the ruleset that includes this rule.", ) - token_type: Missing[str] = Field( - default=UNSET, description="The token type this bypass is for." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningPushProtectionBypass) +model_rebuild(RepositoryRuleDetailedOneof11) -__all__ = ("SecretScanningPushProtectionBypass",) +__all__ = ("RepositoryRuleDetailedOneof11",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0390.py b/githubkit/versions/ghec_v2022_11_28/models/group_0390.py index 11ebab9e4..41cfc2489 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0390.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0390.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,70 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0112 import RepositoryRuleCommitterEmailPatternPropParameters -class SecretScanningScanHistory(GitHubModel): - """SecretScanningScanHistory""" - incremental_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) - pattern_update_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) - backfill_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) - custom_pattern_backfill_scans: Missing[ - list[SecretScanningScanHistoryPropCustomPatternBackfillScansItems] - ] = Field(default=UNSET) +class RepositoryRuleDetailedOneof12(GitHubModel): + """RepositoryRuleDetailedOneof12""" - -class SecretScanningScan(GitHubModel): - """SecretScanningScan - - Information on a single scan performed by secret scanning on the repository - """ - - type: Missing[str] = Field(default=UNSET, description="The type of scan") - status: Missing[str] = Field( - default=UNSET, - description='The state of the scan. Either "completed", "running", or "pending"', + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + default=UNSET ) - completed_at: Missing[Union[datetime, None]] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The time that the scan was completed. Empty if the scan is running", + description="The type of source for the ruleset that includes this rule.", ) - started_at: Missing[Union[datetime, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The time that the scan was started. Empty if the scan is pending", + description="The name of the source of the ruleset that includes this rule.", ) - - -class SecretScanningScanHistoryPropCustomPatternBackfillScansItems(GitHubModel): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - - type: Missing[str] = Field(default=UNSET, description="The type of scan") - status: Missing[str] = Field( - default=UNSET, - description='The state of the scan. Either "completed", "running", or "pending"', - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was completed. Empty if the scan is running", - ) - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was started. Empty if the scan is pending", - ) - pattern_name: Missing[str] = Field( - default=UNSET, description="Name of the custom pattern for custom pattern scans" - ) - pattern_scope: Missing[str] = Field( - default=UNSET, - description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningScanHistory) -model_rebuild(SecretScanningScan) -model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItems) +model_rebuild(RepositoryRuleDetailedOneof12) -__all__ = ( - "SecretScanningScan", - "SecretScanningScanHistory", - "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", -) +__all__ = ("RepositoryRuleDetailedOneof12",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0391.py b/githubkit/versions/ghec_v2022_11_28/models/group_0391.py index 947f5d932..72e173866 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0391.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0391.py @@ -9,25 +9,37 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0114 import RepositoryRuleBranchNamePatternPropParameters + -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1(GitHubModel): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" +class RepositoryRuleDetailedOneof13(GitHubModel): + """RepositoryRuleDetailedOneof13""" - pattern_name: Missing[str] = Field( - default=UNSET, description="Name of the custom pattern for custom pattern scans" + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + default=UNSET ) - pattern_scope: Missing[str] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + description="The type of source for the ruleset that includes this rule.", + ) + ruleset_source: Missing[str] = Field( + default=UNSET, + description="The name of the source of the ruleset that includes this rule.", + ) + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1) +model_rebuild(RepositoryRuleDetailedOneof13) -__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1",) +__all__ = ("RepositoryRuleDetailedOneof13",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0392.py b/githubkit/versions/ghec_v2022_11_28/models/group_0392.py index b09ea6fff..7f009b8b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0392.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0392.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,120 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0116 import RepositoryRuleTagNamePatternPropParameters -class RepositoryAdvisoryCreate(GitHubModel): - """RepositoryAdvisoryCreate""" - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: str = Field( - max_length=65535, - description="A detailed description of what the advisory impacts.", - ) - cve_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItems] = Field( - description="A product affected by the vulnerability detailed in a repository security advisory." - ) - cwe_ids: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - credits_: Missing[Union[list[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( - Field( - default=UNSET, - alias="credits", - description="A list of users receiving credit for their participation in the security advisory.", - ) - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - start_private_fork: Missing[bool] = Field( - default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", - ) +class RepositoryRuleDetailedOneof14(GitHubModel): + """RepositoryRuleDetailedOneof14""" - -class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryCreatePropCreditsItems""" - - login: str = Field(description="The username of the user credited.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + default=UNSET ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The type of source for the ruleset that includes this rule.", ) - patched_versions: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", + description="The name of the source of the ruleset that includes this rule.", ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." - ) - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(RepositoryAdvisoryCreate) -model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryRuleDetailedOneof14) -__all__ = ( - "RepositoryAdvisoryCreate", - "RepositoryAdvisoryCreatePropCreditsItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("RepositoryRuleDetailedOneof14",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0393.py b/githubkit/versions/ghec_v2022_11_28/models/group_0393.py index db0858ff6..a6529f0e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0393.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0393.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,93 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0119 import RepositoryRuleWorkflowsPropParameters -class PrivateVulnerabilityReportCreate(GitHubModel): - """PrivateVulnerabilityReportCreate""" - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: str = Field( - max_length=65535, - description="A detailed description of what the advisory impacts.", - ) - vulnerabilities: Missing[ - Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItems], None] - ] = Field( - default=UNSET, - description="An array of products affected by the vulnerability detailed in a repository security advisory.", - ) - cwe_ids: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - start_private_fork: Missing[bool] = Field( - default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", - ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItems(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" +class RepositoryRuleDetailedOneof15(GitHubModel): + """RepositoryRuleDetailedOneof15""" - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( - Field(description="The name of the package affected by the vulnerability.") - ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The type of source for the ruleset that includes this rule.", ) - patched_versions: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." + description="The name of the source of the ruleset that includes this rule.", ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(PrivateVulnerabilityReportCreate) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryRuleDetailedOneof15) -__all__ = ( - "PrivateVulnerabilityReportCreate", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("RepositoryRuleDetailedOneof15",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0394.py b/githubkit/versions/ghec_v2022_11_28/models/group_0394.py index b379d895d..d02ecb83b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0394.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0394.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,131 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0121 import RepositoryRuleCodeScanningPropParameters -class RepositoryAdvisoryUpdate(GitHubModel): - """RepositoryAdvisoryUpdate""" - summary: Missing[str] = Field( - max_length=1024, default=UNSET, description="A short summary of the advisory." - ) - description: Missing[str] = Field( - max_length=65535, - default=UNSET, - description="A detailed description of what the advisory impacts.", - ) - cve_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - vulnerabilities: Missing[list[RepositoryAdvisoryUpdatePropVulnerabilitiesItems]] = ( - Field( - default=UNSET, - description="A product affected by the vulnerability detailed in a repository security advisory.", - ) - ) - cwe_ids: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - credits_: Missing[Union[list[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( - Field( - default=UNSET, - alias="credits", - description="A list of users receiving credit for their participation in the security advisory.", - ) - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - state: Missing[Literal["published", "closed", "draft"]] = Field( - default=UNSET, description="The state of the advisory." - ) - collaborating_users: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="A list of usernames who have been granted write access to the advisory.", - ) - collaborating_teams: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="A list of team slugs which have been granted write access to the advisory.", - ) - - -class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryUpdatePropCreditsItems""" - - login: str = Field(description="The username of the user credited.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" +class RepositoryRuleDetailedOneof16(GitHubModel): + """RepositoryRuleDetailedOneof16""" - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." - ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The type of source for the ruleset that includes this rule.", ) - patched_versions: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." + description="The name of the source of the ruleset that includes this rule.", ) - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(RepositoryAdvisoryUpdate) -model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryRuleDetailedOneof16) -__all__ = ( - "RepositoryAdvisoryUpdate", - "RepositoryAdvisoryUpdatePropCreditsItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("RepositoryRuleDetailedOneof16",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0395.py b/githubkit/versions/ghec_v2022_11_28/models/group_0395.py index c3f111958..90f4de752 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0395.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0395.py @@ -10,25 +10,101 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser -class Stargazer(GitHubModel): - """Stargazer +class SecretScanningAlert(GitHubModel): + """SecretScanningAlert""" - Stargazer - """ + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", + ) + state: Missing[Literal["open", "resolved"]] = Field( + default=UNSET, + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + ) + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." + ) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( + default=UNSET, + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + secret: Missing[str] = Field( + default=UNSET, description="The secret that was detected." + ) + push_protection_bypassed: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether push protection was bypassed for the detected secret.", + ) + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + default=UNSET + ) + push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when reviewing a push protection bypass.", + ) + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when requesting a push protection bypass.", + ) + push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The URL to a push protection bypass request." + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) + publicly_leaked: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether the detected secret was publicly leaked." + ) + multi_repo: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether the detected secret was found in multiple repositories under the same organization or enterprise.", + ) - starred_at: datetime = Field() - user: Union[None, SimpleUser] = Field() +model_rebuild(SecretScanningAlert) -model_rebuild(Stargazer) - -__all__ = ("Stargazer",) +__all__ = ("SecretScanningAlert",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0396.py b/githubkit/versions/ghec_v2022_11_28/models/group_0396.py index 9fc28af36..fa37297f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0396.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0396.py @@ -9,22 +9,31 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CommitActivity(GitHubModel): - """Commit Activity - - Commit Activity - """ +class SecretScanningPushProtectionBypass(GitHubModel): + """SecretScanningPushProtectionBypass""" - days: list[int] = Field() - total: int = Field() - week: int = Field() + reason: Missing[Literal["false_positive", "used_in_tests", "will_fix_later"]] = ( + Field(default=UNSET, description="The reason for bypassing push protection.") + ) + expire_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + token_type: Missing[str] = Field( + default=UNSET, description="The token type this bypass is for." + ) -model_rebuild(CommitActivity) +model_rebuild(SecretScanningPushProtectionBypass) -__all__ = ("CommitActivity",) +__all__ = ("SecretScanningPushProtectionBypass",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0397.py b/githubkit/versions/ghec_v2022_11_28/models/group_0397.py index 5e19dff98..11ebab9e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0397.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0397.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -17,33 +18,70 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class SecretScanningScanHistory(GitHubModel): + """SecretScanningScanHistory""" -class ContributorActivity(GitHubModel): - """Contributor Activity - - Contributor Activity - """ - - author: Union[None, SimpleUser] = Field() - total: int = Field() - weeks: list[ContributorActivityPropWeeksItems] = Field() + incremental_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) + pattern_update_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) + backfill_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) + custom_pattern_backfill_scans: Missing[ + list[SecretScanningScanHistoryPropCustomPatternBackfillScansItems] + ] = Field(default=UNSET) -class ContributorActivityPropWeeksItems(GitHubModel): - """ContributorActivityPropWeeksItems""" - - w: Missing[int] = Field(default=UNSET) - a: Missing[int] = Field(default=UNSET) - d: Missing[int] = Field(default=UNSET) - c: Missing[int] = Field(default=UNSET) +class SecretScanningScan(GitHubModel): + """SecretScanningScan + Information on a single scan performed by secret scanning on the repository + """ -model_rebuild(ContributorActivity) -model_rebuild(ContributorActivityPropWeeksItems) + type: Missing[str] = Field(default=UNSET, description="The type of scan") + status: Missing[str] = Field( + default=UNSET, + description='The state of the scan. Either "completed", "running", or "pending"', + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was completed. Empty if the scan is running", + ) + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was started. Empty if the scan is pending", + ) + + +class SecretScanningScanHistoryPropCustomPatternBackfillScansItems(GitHubModel): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" + + type: Missing[str] = Field(default=UNSET, description="The type of scan") + status: Missing[str] = Field( + default=UNSET, + description='The state of the scan. Either "completed", "running", or "pending"', + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was completed. Empty if the scan is running", + ) + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was started. Empty if the scan is pending", + ) + pattern_name: Missing[str] = Field( + default=UNSET, description="Name of the custom pattern for custom pattern scans" + ) + pattern_scope: Missing[str] = Field( + default=UNSET, + description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + ) + + +model_rebuild(SecretScanningScanHistory) +model_rebuild(SecretScanningScan) +model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItems) __all__ = ( - "ContributorActivity", - "ContributorActivityPropWeeksItems", + "SecretScanningScan", + "SecretScanningScanHistory", + "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0398.py b/githubkit/versions/ghec_v2022_11_28/models/group_0398.py index 43efe1baa..947f5d932 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0398.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0398.py @@ -12,15 +12,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ParticipationStats(GitHubModel): - """Participation Stats""" +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1(GitHubModel): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - all_: list[int] = Field(alias="all") - owner: list[int] = Field() + pattern_name: Missing[str] = Field( + default=UNSET, description="Name of the custom pattern for custom pattern scans" + ) + pattern_scope: Missing[str] = Field( + default=UNSET, + description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + ) -model_rebuild(ParticipationStats) +model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1) -__all__ = ("ParticipationStats",) +__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0399.py b/githubkit/versions/ghec_v2022_11_28/models/group_0399.py index 146a849ce..b09ea6fff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0399.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0399.py @@ -9,32 +9,128 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositorySubscription(GitHubModel): - """Repository Invitation +class RepositoryAdvisoryCreate(GitHubModel): + """RepositoryAdvisoryCreate""" - Repository invitations let you manage who you collaborate with. - """ + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: str = Field( + max_length=65535, + description="A detailed description of what the advisory impacts.", + ) + cve_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItems] = Field( + description="A product affected by the vulnerability detailed in a repository security advisory." + ) + cwe_ids: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + credits_: Missing[Union[list[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( + Field( + default=UNSET, + alias="credits", + description="A list of users receiving credit for their participation in the security advisory.", + ) + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + start_private_fork: Missing[bool] = Field( + default=UNSET, + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + ) + + +class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryCreatePropCreditsItems""" - subscribed: bool = Field( - description="Determines if notifications should be received from this repository." + login: str = Field(description="The username of the user credited.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[list[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." ) - ignored: bool = Field( - description="Determines if all notifications should be blocked from this repository." + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." ) - reason: Union[str, None] = Field() - created_at: datetime = Field() - url: str = Field() - repository_url: str = Field() -model_rebuild(RepositorySubscription) +model_rebuild(RepositoryAdvisoryCreate) +model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) -__all__ = ("RepositorySubscription",) +__all__ = ( + "RepositoryAdvisoryCreate", + "RepositoryAdvisoryCreatePropCreditsItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0400.py b/githubkit/versions/ghec_v2022_11_28/models/group_0400.py index c5f394186..db0858ff6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0400.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0400.py @@ -9,35 +9,101 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class Tag(GitHubModel): - """Tag - - Tag +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class PrivateVulnerabilityReportCreate(GitHubModel): + """PrivateVulnerabilityReportCreate""" + + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: str = Field( + max_length=65535, + description="A detailed description of what the advisory impacts.", + ) + vulnerabilities: Missing[ + Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItems], None] + ] = Field( + default=UNSET, + description="An array of products affected by the vulnerability detailed in a repository security advisory.", + ) + cwe_ids: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + start_private_fork: Missing[bool] = Field( + default=UNSET, + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + ) + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItems(GitHubModel): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" + + package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( + Field(description="The name of the package affected by the vulnerability.") + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[list[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - name: str = Field() - commit: TagPropCommit = Field() - zipball_url: str = Field() - tarball_url: str = Field() - node_id: str = Field() - - -class TagPropCommit(GitHubModel): - """TagPropCommit""" - - sha: str = Field() - url: str = Field() - - -model_rebuild(Tag) -model_rebuild(TagPropCommit) + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." + ) + + +model_rebuild(PrivateVulnerabilityReportCreate) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) __all__ = ( - "Tag", - "TagPropCommit", + "PrivateVulnerabilityReportCreate", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0401.py b/githubkit/versions/ghec_v2022_11_28/models/group_0401.py index 527c8ec3d..b379d895d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0401.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0401.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,19 +18,130 @@ from githubkit.utils import UNSET -class TagProtection(GitHubModel): - """Tag protection +class RepositoryAdvisoryUpdate(GitHubModel): + """RepositoryAdvisoryUpdate""" + + summary: Missing[str] = Field( + max_length=1024, default=UNSET, description="A short summary of the advisory." + ) + description: Missing[str] = Field( + max_length=65535, + default=UNSET, + description="A detailed description of what the advisory impacts.", + ) + cve_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + vulnerabilities: Missing[list[RepositoryAdvisoryUpdatePropVulnerabilitiesItems]] = ( + Field( + default=UNSET, + description="A product affected by the vulnerability detailed in a repository security advisory.", + ) + ) + cwe_ids: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + credits_: Missing[Union[list[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( + Field( + default=UNSET, + alias="credits", + description="A list of users receiving credit for their participation in the security advisory.", + ) + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + state: Missing[Literal["published", "closed", "draft"]] = Field( + default=UNSET, description="The state of the advisory." + ) + collaborating_users: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="A list of usernames who have been granted write access to the advisory.", + ) + collaborating_teams: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="A list of team slugs which have been granted write access to the advisory.", + ) + + +class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryUpdatePropCreditsItems""" + + login: str = Field(description="The username of the user credited.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[list[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - Tag protection + The name of the package affected by the vulnerability. """ - id: Missing[int] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) - pattern: str = Field() + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." + ) -model_rebuild(TagProtection) +model_rebuild(RepositoryAdvisoryUpdate) +model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) -__all__ = ("TagProtection",) +__all__ = ( + "RepositoryAdvisoryUpdate", + "RepositoryAdvisoryUpdatePropCreditsItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0402.py b/githubkit/versions/ghec_v2022_11_28/models/group_0402.py index 72e23363a..e8f958a86 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0402.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0402.py @@ -9,20 +9,26 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser + -class Topic(GitHubModel): - """Topic +class Stargazer(GitHubModel): + """Stargazer - A topic aggregates entities that are related to a subject. + Stargazer """ - names: list[str] = Field() + starred_at: datetime = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(Topic) +model_rebuild(Stargazer) -__all__ = ("Topic",) +__all__ = ("Stargazer",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0403.py b/githubkit/versions/ghec_v2022_11_28/models/group_0403.py index 8f9d3f9f8..9fc28af36 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0403.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0403.py @@ -9,21 +9,22 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Traffic(GitHubModel): - """Traffic""" +class CommitActivity(GitHubModel): + """Commit Activity + + Commit Activity + """ - timestamp: datetime = Field() - uniques: int = Field() - count: int = Field() + days: list[int] = Field() + total: int = Field() + week: int = Field() -model_rebuild(Traffic) +model_rebuild(CommitActivity) -__all__ = ("Traffic",) +__all__ = ("CommitActivity",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0404.py b/githubkit/versions/ghec_v2022_11_28/models/group_0404.py index bbf51a0cb..60311444a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0404.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0404.py @@ -9,24 +9,41 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0403 import Traffic +from .group_0003 import SimpleUser -class CloneTraffic(GitHubModel): - """Clone Traffic +class ContributorActivity(GitHubModel): + """Contributor Activity - Clone Traffic + Contributor Activity """ - count: int = Field() - uniques: int = Field() - clones: list[Traffic] = Field() + author: Union[None, SimpleUser] = Field() + total: int = Field() + weeks: list[ContributorActivityPropWeeksItems] = Field() + + +class ContributorActivityPropWeeksItems(GitHubModel): + """ContributorActivityPropWeeksItems""" + + w: Missing[int] = Field(default=UNSET) + a: Missing[int] = Field(default=UNSET) + d: Missing[int] = Field(default=UNSET) + c: Missing[int] = Field(default=UNSET) -model_rebuild(CloneTraffic) +model_rebuild(ContributorActivity) +model_rebuild(ContributorActivityPropWeeksItems) -__all__ = ("CloneTraffic",) +__all__ = ( + "ContributorActivity", + "ContributorActivityPropWeeksItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0405.py b/githubkit/versions/ghec_v2022_11_28/models/group_0405.py index 97ab65074..43efe1baa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0405.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0405.py @@ -14,18 +14,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ContentTraffic(GitHubModel): - """Content Traffic +class ParticipationStats(GitHubModel): + """Participation Stats""" - Content Traffic - """ + all_: list[int] = Field(alias="all") + owner: list[int] = Field() - path: str = Field() - title: str = Field() - count: int = Field() - uniques: int = Field() +model_rebuild(ParticipationStats) -model_rebuild(ContentTraffic) - -__all__ = ("ContentTraffic",) +__all__ = ("ParticipationStats",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0406.py b/githubkit/versions/ghec_v2022_11_28/models/group_0406.py index 7ced93dd8..146a849ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0406.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0406.py @@ -9,22 +9,32 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReferrerTraffic(GitHubModel): - """Referrer Traffic +class RepositorySubscription(GitHubModel): + """Repository Invitation - Referrer Traffic + Repository invitations let you manage who you collaborate with. """ - referrer: str = Field() - count: int = Field() - uniques: int = Field() + subscribed: bool = Field( + description="Determines if notifications should be received from this repository." + ) + ignored: bool = Field( + description="Determines if all notifications should be blocked from this repository." + ) + reason: Union[str, None] = Field() + created_at: datetime = Field() + url: str = Field() + repository_url: str = Field() -model_rebuild(ReferrerTraffic) +model_rebuild(RepositorySubscription) -__all__ = ("ReferrerTraffic",) +__all__ = ("RepositorySubscription",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0407.py b/githubkit/versions/ghec_v2022_11_28/models/group_0407.py index 4bce0ce24..c5f394186 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0407.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0407.py @@ -13,20 +13,31 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0403 import Traffic +class Tag(GitHubModel): + """Tag -class ViewTraffic(GitHubModel): - """View Traffic - - View Traffic + Tag """ - count: int = Field() - uniques: int = Field() - views: list[Traffic] = Field() + name: str = Field() + commit: TagPropCommit = Field() + zipball_url: str = Field() + tarball_url: str = Field() + node_id: str = Field() + + +class TagPropCommit(GitHubModel): + """TagPropCommit""" + + sha: str = Field() + url: str = Field() -model_rebuild(ViewTraffic) +model_rebuild(Tag) +model_rebuild(TagPropCommit) -__all__ = ("ViewTraffic",) +__all__ = ( + "Tag", + "TagPropCommit", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0408.py b/githubkit/versions/ghec_v2022_11_28/models/group_0408.py index 69adf9345..527c8ec3d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0408.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0408.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,46 +16,19 @@ from githubkit.utils import UNSET -class GroupResponse(GitHubModel): - """GroupResponse""" - - schemas: list[ - Literal[ - "urn:ietf:params:scim:schemas:core:2.0:Group", - "urn:ietf:params:scim:api:messages:2.0:ListResponse", - ] - ] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." - ) - external_id: Missing[Union[str, None]] = Field( - default=UNSET, - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", - ) - display_name: Missing[Union[str, None]] = Field( - default=UNSET, - alias="displayName", - description="A human-readable name for a security group.", - ) - members: Missing[list[GroupResponsePropMembersItems]] = Field( - default=UNSET, description="The group members." - ) - - -class GroupResponsePropMembersItems(GitHubModel): - """GroupResponsePropMembersItems""" - - value: str = Field(description="The local unique identifier for the member") - ref: str = Field(alias="$ref") - display: Missing[str] = Field( - default=UNSET, description="The display name associated with the member" - ) - - -model_rebuild(GroupResponse) -model_rebuild(GroupResponsePropMembersItems) - -__all__ = ( - "GroupResponse", - "GroupResponsePropMembersItems", -) +class TagProtection(GitHubModel): + """Tag protection + + Tag protection + """ + + id: Missing[int] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + pattern: str = Field() + + +model_rebuild(TagProtection) + +__all__ = ("TagProtection",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0409.py b/githubkit/versions/ghec_v2022_11_28/models/group_0409.py index 2d5800d81..72e23363a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0409.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0409.py @@ -9,37 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class Meta(GitHubModel): - """Meta +class Topic(GitHubModel): + """Topic - The metadata associated with the creation/updates to the user. + A topic aggregates entities that are related to a subject. """ - resource_type: Literal["User", "Group"] = Field( - alias="resourceType", description="A type of a resource" - ) - created: Missing[str] = Field( - default=UNSET, description="A date and time when the user was created." - ) - last_modified: Missing[str] = Field( - default=UNSET, - alias="lastModified", - description="A data and time when the user was last modified.", - ) - location: Missing[str] = Field( - default=UNSET, description="A URL location of an object" - ) - - -model_rebuild(Meta) - -__all__ = ("Meta",) + names: list[str] = Field() + + +model_rebuild(Topic) + +__all__ = ("Topic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0410.py b/githubkit/versions/ghec_v2022_11_28/models/group_0410.py index 20c5fe47e..8f9d3f9f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0410.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0410.py @@ -9,88 +9,21 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0409 import Meta +class Traffic(GitHubModel): + """Traffic""" -class ScimEnterpriseGroupResponse(GitHubModel): - """ScimEnterpriseGroupResponse""" + timestamp: datetime = Field() + uniques: int = Field() + count: int = Field() - schemas: list[ - Literal[ - "urn:ietf:params:scim:schemas:core:2.0:Group", - "urn:ietf:params:scim:api:messages:2.0:ListResponse", - ] - ] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." - ) - external_id: Missing[Union[str, None]] = Field( - default=UNSET, - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", - ) - display_name: Missing[Union[str, None]] = Field( - default=UNSET, - alias="displayName", - description="A human-readable name for a security group.", - ) - members: Missing[list[ScimEnterpriseGroupResponseMergedMembers]] = Field( - default=UNSET, description="The group members." - ) - id: Missing[str] = Field( - default=UNSET, description="The internally generated id for the group object." - ) - meta: Missing[Meta] = Field( - default=UNSET, - description="The metadata associated with the creation/updates to the user.", - ) +model_rebuild(Traffic) -class ScimEnterpriseGroupResponseMergedMembers(GitHubModel): - """ScimEnterpriseGroupResponseMergedMembers""" - - value: str = Field(description="The local unique identifier for the member") - ref: str = Field(alias="$ref") - display: Missing[str] = Field( - default=UNSET, description="The display name associated with the member" - ) - - -class ScimEnterpriseGroupList(GitHubModel): - """ScimEnterpriseGroupList""" - - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] = ( - Field( - description="The URIs that are used to indicate the namespaces of the list SCIM schemas." - ) - ) - total_results: int = Field( - alias="totalResults", description="Number of results found" - ) - resources: list[ScimEnterpriseGroupResponse] = Field( - alias="Resources", description="Information about each provisioned group." - ) - start_index: int = Field( - alias="startIndex", description="A starting index for the returned page" - ) - items_per_page: int = Field( - alias="itemsPerPage", description="Number of objects per page" - ) - - -model_rebuild(ScimEnterpriseGroupResponse) -model_rebuild(ScimEnterpriseGroupResponseMergedMembers) -model_rebuild(ScimEnterpriseGroupList) - -__all__ = ( - "ScimEnterpriseGroupList", - "ScimEnterpriseGroupResponse", - "ScimEnterpriseGroupResponseMergedMembers", -) +__all__ = ("Traffic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0411.py b/githubkit/versions/ghec_v2022_11_28/models/group_0411.py index acfee212a..b68a94715 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0411.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0411.py @@ -12,39 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0409 import Meta +from .group_0410 import Traffic -class ScimEnterpriseGroupResponseAllof1(GitHubModel): - """ScimEnterpriseGroupResponseAllof1""" +class CloneTraffic(GitHubModel): + """Clone Traffic - id: Missing[str] = Field( - default=UNSET, description="The internally generated id for the group object." - ) - members: Missing[list[ScimEnterpriseGroupResponseAllof1PropMembersItems]] = Field( - default=UNSET, description="The security group members." - ) - meta: Missing[Meta] = Field( - default=UNSET, - description="The metadata associated with the creation/updates to the user.", - ) + Clone Traffic + """ + count: int = Field() + uniques: int = Field() + clones: list[Traffic] = Field() -class ScimEnterpriseGroupResponseAllof1PropMembersItems(GitHubModel): - """ScimEnterpriseGroupResponseAllof1PropMembersItems""" - value: Missing[str] = Field(default=UNSET) - ref: Missing[str] = Field(default=UNSET, alias="$ref") - display: Missing[str] = Field(default=UNSET) +model_rebuild(CloneTraffic) - -model_rebuild(ScimEnterpriseGroupResponseAllof1) -model_rebuild(ScimEnterpriseGroupResponseAllof1PropMembersItems) - -__all__ = ( - "ScimEnterpriseGroupResponseAllof1", - "ScimEnterpriseGroupResponseAllof1PropMembersItems", -) +__all__ = ("CloneTraffic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0412.py b/githubkit/versions/ghec_v2022_11_28/models/group_0412.py index a07936c10..97ab65074 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0412.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0412.py @@ -9,42 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Group(GitHubModel): - """Group""" - - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." - ) - external_id: str = Field( - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", - ) - display_name: str = Field( - alias="displayName", description="A human-readable name for a security group." - ) - members: list[GroupPropMembersItems] = Field(description="The group members.") - +class ContentTraffic(GitHubModel): + """Content Traffic -class GroupPropMembersItems(GitHubModel): - """GroupPropMembersItems""" + Content Traffic + """ - value: str = Field(description="The local unique identifier for the member") - display_name: str = Field( - alias="displayName", description="The display name associated with the member" - ) + path: str = Field() + title: str = Field() + count: int = Field() + uniques: int = Field() -model_rebuild(Group) -model_rebuild(GroupPropMembersItems) +model_rebuild(ContentTraffic) -__all__ = ( - "Group", - "GroupPropMembersItems", -) +__all__ = ("ContentTraffic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0413.py b/githubkit/versions/ghec_v2022_11_28/models/group_0413.py index b355bee00..7ced93dd8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0413.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0413.py @@ -9,39 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class PatchSchema(GitHubModel): - """PatchSchema""" - operations: list[PatchSchemaPropOperationsItems] = Field( - alias="Operations", description="patch operations list" - ) - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] = Field() +class ReferrerTraffic(GitHubModel): + """Referrer Traffic -class PatchSchemaPropOperationsItems(GitHubModel): - """PatchSchemaPropOperationsItems""" + Referrer Traffic + """ - op: Literal["add", "replace", "remove"] = Field() - path: Missing[str] = Field(default=UNSET) - value: Missing[str] = Field( - default=UNSET, - description="Corresponding 'value' of that field specified by 'path'", - ) + referrer: str = Field() + count: int = Field() + uniques: int = Field() -model_rebuild(PatchSchema) -model_rebuild(PatchSchemaPropOperationsItems) +model_rebuild(ReferrerTraffic) -__all__ = ( - "PatchSchema", - "PatchSchemaPropOperationsItems", -) +__all__ = ("ReferrerTraffic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0414.py b/githubkit/versions/ghec_v2022_11_28/models/group_0414.py index 97cce8b53..7dc17e514 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0414.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0414.py @@ -12,42 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0410 import Traffic -class UserNameResponse(GitHubModel): - """UserNameResponse""" - formatted: Missing[str] = Field( - default=UNSET, - description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", - ) - family_name: Missing[str] = Field( - default=UNSET, alias="familyName", description="The family name of the user." - ) - given_name: Missing[str] = Field( - default=UNSET, alias="givenName", description="The given name of the user." - ) - middle_name: Missing[str] = Field( - default=UNSET, alias="middleName", description="The middle name(s) of the user." - ) +class ViewTraffic(GitHubModel): + """View Traffic + View Traffic + """ -class UserEmailsResponseItems(GitHubModel): - """UserEmailsResponseItems""" + count: int = Field() + uniques: int = Field() + views: list[Traffic] = Field() - value: str = Field(description="The email address.") - type: Missing[str] = Field(default=UNSET, description="The type of email address.") - primary: Missing[bool] = Field( - default=UNSET, description="Whether this email address is the primary address." - ) +model_rebuild(ViewTraffic) -model_rebuild(UserNameResponse) -model_rebuild(UserEmailsResponseItems) - -__all__ = ( - "UserEmailsResponseItems", - "UserNameResponse", -) +__all__ = ("ViewTraffic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0415.py b/githubkit/versions/ghec_v2022_11_28/models/group_0415.py index f1b1e3988..69adf9345 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0415.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0415.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,28 +18,46 @@ from githubkit.utils import UNSET -class UserRoleItems(GitHubModel): - """UserRoleItems""" - - display: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - value: Literal[ - "user", - "27d9891d-2c17-4f45-a262-781a0e55c80a", - "guest_collaborator", - "1ebc4a02-e56c-43a6-92a5-02ee09b90824", - "enterprise_owner", - "981df190-8801-4618-a08a-d91f6206c954", - "ba4987ab-a1c3-412a-b58c-360fc407cb10", - "billing_manager", - "0e338b8c-cc7f-498a-928d-ea3470d7e7e3", - "e6be2762-e4ad-4108-b72d-1bbe884a0f91", - ] = Field(description="The role value representing a user role in GitHub.") - primary: Missing[bool] = Field( - default=UNSET, description="Is the role a primary role for the user." +class GroupResponse(GitHubModel): + """GroupResponse""" + + schemas: list[ + Literal[ + "urn:ietf:params:scim:schemas:core:2.0:Group", + "urn:ietf:params:scim:api:messages:2.0:ListResponse", + ] + ] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." + ) + external_id: Missing[Union[str, None]] = Field( + default=UNSET, + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", + ) + display_name: Missing[Union[str, None]] = Field( + default=UNSET, + alias="displayName", + description="A human-readable name for a security group.", + ) + members: Missing[list[GroupResponsePropMembersItems]] = Field( + default=UNSET, description="The group members." + ) + + +class GroupResponsePropMembersItems(GitHubModel): + """GroupResponsePropMembersItems""" + + value: str = Field(description="The local unique identifier for the member") + ref: str = Field(alias="$ref") + display: Missing[str] = Field( + default=UNSET, description="The display name associated with the member" ) -model_rebuild(UserRoleItems) +model_rebuild(GroupResponse) +model_rebuild(GroupResponsePropMembersItems) -__all__ = ("UserRoleItems",) +__all__ = ( + "GroupResponse", + "GroupResponsePropMembersItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0416.py b/githubkit/versions/ghec_v2022_11_28/models/group_0416.py index 6a6a9aaad..2d5800d81 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0416.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0416.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,39 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0414 import UserEmailsResponseItems, UserNameResponse -from .group_0415 import UserRoleItems +class Meta(GitHubModel): + """Meta -class UserResponse(GitHubModel): - """UserResponse""" + The metadata associated with the creation/updates to the user. + """ - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." + resource_type: Literal["User", "Group"] = Field( + alias="resourceType", description="A type of a resource" ) - external_id: Missing[Union[str, None]] = Field( - default=UNSET, - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", - ) - active: bool = Field(description="Whether the user active in the IdP.") - user_name: Missing[str] = Field( - default=UNSET, alias="userName", description="The username for the user." + created: Missing[str] = Field( + default=UNSET, description="A date and time when the user was created." ) - name: Missing[UserNameResponse] = Field(default=UNSET) - display_name: Missing[Union[str, None]] = Field( + last_modified: Missing[str] = Field( default=UNSET, - alias="displayName", - description="A human-readable name for the user.", - ) - emails: list[UserEmailsResponseItems] = Field( - description="The emails for the user." + alias="lastModified", + description="A data and time when the user was last modified.", ) - roles: Missing[list[UserRoleItems]] = Field( - default=UNSET, description="The roles assigned to the user." + location: Missing[str] = Field( + default=UNSET, description="A URL location of an object" ) -model_rebuild(UserResponse) +model_rebuild(Meta) -__all__ = ("UserResponse",) +__all__ = ("Meta",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0417.py b/githubkit/versions/ghec_v2022_11_28/models/group_0417.py index 715468441..5750da582 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0417.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0417.py @@ -17,16 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0409 import Meta -from .group_0414 import UserEmailsResponseItems, UserNameResponse -from .group_0415 import UserRoleItems -from .group_0419 import ScimEnterpriseUserResponseAllof1PropGroupsItems +from .group_0416 import Meta -class ScimEnterpriseUserResponse(GitHubModel): - """ScimEnterpriseUserResponse""" +class ScimEnterpriseGroupResponse(GitHubModel): + """ScimEnterpriseGroupResponse""" - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( + schemas: list[ + Literal[ + "urn:ietf:params:scim:schemas:core:2.0:Group", + "urn:ietf:params:scim:api:messages:2.0:ListResponse", + ] + ] = Field( description="The URIs that are used to indicate the namespaces of the SCIM schemas." ) external_id: Missing[Union[str, None]] = Field( @@ -34,34 +36,35 @@ class ScimEnterpriseUserResponse(GitHubModel): alias="externalId", description="A unique identifier for the resource as defined by the provisioning client.", ) - active: bool = Field(description="Whether the user active in the IdP.") - user_name: Missing[str] = Field( - default=UNSET, alias="userName", description="The username for the user." - ) - name: Missing[UserNameResponse] = Field(default=UNSET) display_name: Missing[Union[str, None]] = Field( default=UNSET, alias="displayName", - description="A human-readable name for the user.", + description="A human-readable name for a security group.", ) - emails: list[UserEmailsResponseItems] = Field( - description="The emails for the user." + members: Missing[list[ScimEnterpriseGroupResponseMergedMembers]] = Field( + default=UNSET, description="The group members." ) - roles: Missing[list[UserRoleItems]] = Field( - default=UNSET, description="The roles assigned to the user." + id: Missing[str] = Field( + default=UNSET, description="The internally generated id for the group object." ) - id: str = Field(description="The internally generated id for the user object.") - groups: Missing[list[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( + meta: Missing[Meta] = Field( default=UNSET, - description="Provisioned SCIM groups that the user is a member of.", + description="The metadata associated with the creation/updates to the user.", ) - meta: Meta = Field( - description="The metadata associated with the creation/updates to the user." + + +class ScimEnterpriseGroupResponseMergedMembers(GitHubModel): + """ScimEnterpriseGroupResponseMergedMembers""" + + value: str = Field(description="The local unique identifier for the member") + ref: str = Field(alias="$ref") + display: Missing[str] = Field( + default=UNSET, description="The display name associated with the member" ) -class ScimEnterpriseUserList(GitHubModel): - """ScimEnterpriseUserList""" +class ScimEnterpriseGroupList(GitHubModel): + """ScimEnterpriseGroupList""" schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] = ( Field( @@ -71,8 +74,8 @@ class ScimEnterpriseUserList(GitHubModel): total_results: int = Field( alias="totalResults", description="Number of results found" ) - resources: list[ScimEnterpriseUserResponse] = Field( - alias="Resources", description="Information about each provisioned account." + resources: list[ScimEnterpriseGroupResponse] = Field( + alias="Resources", description="Information about each provisioned group." ) start_index: int = Field( alias="startIndex", description="A starting index for the returned page" @@ -82,10 +85,12 @@ class ScimEnterpriseUserList(GitHubModel): ) -model_rebuild(ScimEnterpriseUserResponse) -model_rebuild(ScimEnterpriseUserList) +model_rebuild(ScimEnterpriseGroupResponse) +model_rebuild(ScimEnterpriseGroupResponseMergedMembers) +model_rebuild(ScimEnterpriseGroupList) __all__ = ( - "ScimEnterpriseUserList", - "ScimEnterpriseUserResponse", + "ScimEnterpriseGroupList", + "ScimEnterpriseGroupResponse", + "ScimEnterpriseGroupResponseMergedMembers", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0418.py b/githubkit/versions/ghec_v2022_11_28/models/group_0418.py index b6fbe30d1..192878f27 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0418.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0418.py @@ -15,23 +15,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0409 import Meta -from .group_0419 import ScimEnterpriseUserResponseAllof1PropGroupsItems +from .group_0416 import Meta -class ScimEnterpriseUserResponseAllof1(GitHubModel): - """ScimEnterpriseUserResponseAllof1""" +class ScimEnterpriseGroupResponseAllof1(GitHubModel): + """ScimEnterpriseGroupResponseAllof1""" - id: str = Field(description="The internally generated id for the user object.") - groups: Missing[list[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( - default=UNSET, - description="Provisioned SCIM groups that the user is a member of.", + id: Missing[str] = Field( + default=UNSET, description="The internally generated id for the group object." + ) + members: Missing[list[ScimEnterpriseGroupResponseAllof1PropMembersItems]] = Field( + default=UNSET, description="The security group members." ) - meta: Meta = Field( - description="The metadata associated with the creation/updates to the user." + meta: Missing[Meta] = Field( + default=UNSET, + description="The metadata associated with the creation/updates to the user.", ) -model_rebuild(ScimEnterpriseUserResponseAllof1) +class ScimEnterpriseGroupResponseAllof1PropMembersItems(GitHubModel): + """ScimEnterpriseGroupResponseAllof1PropMembersItems""" + + value: Missing[str] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET, alias="$ref") + display: Missing[str] = Field(default=UNSET) + + +model_rebuild(ScimEnterpriseGroupResponseAllof1) +model_rebuild(ScimEnterpriseGroupResponseAllof1PropMembersItems) -__all__ = ("ScimEnterpriseUserResponseAllof1",) +__all__ = ( + "ScimEnterpriseGroupResponseAllof1", + "ScimEnterpriseGroupResponseAllof1PropMembersItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0419.py b/githubkit/versions/ghec_v2022_11_28/models/group_0419.py index 2e84d7213..a07936c10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0419.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0419.py @@ -9,21 +9,42 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ScimEnterpriseUserResponseAllof1PropGroupsItems(GitHubModel): - """ScimEnterpriseUserResponseAllof1PropGroupsItems""" +class Group(GitHubModel): + """Group""" + + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." + ) + external_id: str = Field( + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", + ) + display_name: str = Field( + alias="displayName", description="A human-readable name for a security group." + ) + members: list[GroupPropMembersItems] = Field(description="The group members.") + + +class GroupPropMembersItems(GitHubModel): + """GroupPropMembersItems""" - value: Missing[str] = Field(default=UNSET) - ref: Missing[str] = Field(default=UNSET, alias="$ref") - display: Missing[str] = Field(default=UNSET) + value: str = Field(description="The local unique identifier for the member") + display_name: str = Field( + alias="displayName", description="The display name associated with the member" + ) -model_rebuild(ScimEnterpriseUserResponseAllof1PropGroupsItems) +model_rebuild(Group) +model_rebuild(GroupPropMembersItems) -__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItems",) +__all__ = ( + "Group", + "GroupPropMembersItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0420.py b/githubkit/versions/ghec_v2022_11_28/models/group_0420.py index d16d6d4b6..b355bee00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0420.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0420.py @@ -17,65 +17,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0415 import UserRoleItems +class PatchSchema(GitHubModel): + """PatchSchema""" -class User(GitHubModel): - """User""" - - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." - ) - external_id: str = Field( - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", - ) - active: bool = Field(description="Whether the user active in the IdP.") - user_name: str = Field(alias="userName", description="The username for the user.") - name: Missing[UserName] = Field(default=UNSET) - display_name: str = Field( - alias="displayName", description="A human-readable name for the user." - ) - emails: list[UserEmailsItems] = Field(description="The emails for the user.") - roles: Missing[list[UserRoleItems]] = Field( - default=UNSET, description="The roles assigned to the user." + operations: list[PatchSchemaPropOperationsItems] = Field( + alias="Operations", description="patch operations list" ) + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] = Field() -class UserName(GitHubModel): - """UserName""" +class PatchSchemaPropOperationsItems(GitHubModel): + """PatchSchemaPropOperationsItems""" - formatted: Missing[str] = Field( + op: Literal["add", "replace", "remove"] = Field() + path: Missing[str] = Field(default=UNSET) + value: Missing[str] = Field( default=UNSET, - description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", - ) - family_name: str = Field( - alias="familyName", description="The family name of the user." - ) - given_name: str = Field( - alias="givenName", description="The given name of the user." - ) - middle_name: Missing[str] = Field( - default=UNSET, alias="middleName", description="The middle name(s) of the user." - ) - - -class UserEmailsItems(GitHubModel): - """UserEmailsItems""" - - value: str = Field(description="The email address.") - type: str = Field(description="The type of email address.") - primary: bool = Field( - description="Whether this email address is the primary address." + description="Corresponding 'value' of that field specified by 'path'", ) -model_rebuild(User) -model_rebuild(UserName) -model_rebuild(UserEmailsItems) +model_rebuild(PatchSchema) +model_rebuild(PatchSchemaPropOperationsItems) __all__ = ( - "User", - "UserEmailsItems", - "UserName", + "PatchSchema", + "PatchSchemaPropOperationsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0421.py b/githubkit/versions/ghec_v2022_11_28/models/group_0421.py index 17bf8b83c..97cce8b53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0421.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0421.py @@ -9,149 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ScimUserList(GitHubModel): - """SCIM User List - - SCIM User List - """ - - schemas: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, description="SCIM schema used." - ) - total_results: int = Field(alias="totalResults") - items_per_page: int = Field(alias="itemsPerPage") - start_index: int = Field(alias="startIndex") - resources: list[ScimUser] = Field(alias="Resources") - - -class ScimUser(GitHubModel): - """SCIM /Users +class UserNameResponse(GitHubModel): + """UserNameResponse""" - SCIM /Users provisioning endpoints - """ - - schemas: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, description="SCIM schema used." - ) - id: str = Field(description="Unique identifier of an external identity") - external_id: Missing[Union[str, None]] = Field( - default=UNSET, alias="externalId", description="The ID of the User." - ) - user_name: Missing[Union[str, None]] = Field( - default=UNSET, - alias="userName", - description="Configured by the admin. Could be an email, login, or username", - ) - display_name: Missing[Union[str, None]] = Field( + formatted: Missing[str] = Field( default=UNSET, - alias="displayName", - description="The name of the user, suitable for display to end-users", + description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", ) - name: Missing[ScimUserPropName] = Field(default=UNSET) - emails: list[ScimUserPropEmailsItems] = Field(description="user emails") - active: bool = Field(description="The active status of the User.") - meta: ScimUserPropMeta = Field() - organization_id: Missing[int] = Field( - default=UNSET, description="The ID of the organization." + family_name: Missing[str] = Field( + default=UNSET, alias="familyName", description="The family name of the user." ) - operations: Missing[list[ScimUserPropOperationsItems]] = Field( - min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="Set of operations to be performed", + given_name: Missing[str] = Field( + default=UNSET, alias="givenName", description="The given name of the user." ) - groups: Missing[list[ScimUserPropGroupsItems]] = Field( - default=UNSET, description="associated groups" + middle_name: Missing[str] = Field( + default=UNSET, alias="middleName", description="The middle name(s) of the user." ) - roles: Missing[list[ScimUserPropRolesItems]] = Field(default=UNSET) - - -class ScimUserPropName(GitHubModel): - """ScimUserPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") - family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") - formatted: Missing[Union[str, None]] = Field(default=UNSET) -class ScimUserPropEmailsItems(GitHubModel): - """ScimUserPropEmailsItems""" +class UserEmailsResponseItems(GitHubModel): + """UserEmailsResponseItems""" - value: str = Field() - primary: Missing[bool] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class ScimUserPropMeta(GitHubModel): - """ScimUserPropMeta""" - - resource_type: Missing[str] = Field(default=UNSET, alias="resourceType") - created: Missing[datetime] = Field(default=UNSET) - last_modified: Missing[datetime] = Field(default=UNSET, alias="lastModified") - location: Missing[str] = Field(default=UNSET) - - -class ScimUserPropGroupsItems(GitHubModel): - """ScimUserPropGroupsItems""" - - value: Missing[str] = Field(default=UNSET) - display: Missing[str] = Field(default=UNSET) - - -class ScimUserPropRolesItems(GitHubModel): - """ScimUserPropRolesItems""" - - value: Missing[str] = Field(default=UNSET) - primary: Missing[bool] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - display: Missing[str] = Field(default=UNSET) - - -class ScimUserPropOperationsItems(GitHubModel): - """ScimUserPropOperationsItems""" - - op: Literal["add", "remove", "replace"] = Field() - path: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[str, ScimUserPropOperationsItemsPropValueOneof1, list[Any]] - ] = Field(default=UNSET) - - -class ScimUserPropOperationsItemsPropValueOneof1(GitHubModel): - """ScimUserPropOperationsItemsPropValueOneof1""" + value: str = Field(description="The email address.") + type: Missing[str] = Field(default=UNSET, description="The type of email address.") + primary: Missing[bool] = Field( + default=UNSET, description="Whether this email address is the primary address." + ) -model_rebuild(ScimUserList) -model_rebuild(ScimUser) -model_rebuild(ScimUserPropName) -model_rebuild(ScimUserPropEmailsItems) -model_rebuild(ScimUserPropMeta) -model_rebuild(ScimUserPropGroupsItems) -model_rebuild(ScimUserPropRolesItems) -model_rebuild(ScimUserPropOperationsItems) -model_rebuild(ScimUserPropOperationsItemsPropValueOneof1) +model_rebuild(UserNameResponse) +model_rebuild(UserEmailsResponseItems) __all__ = ( - "ScimUser", - "ScimUserList", - "ScimUserPropEmailsItems", - "ScimUserPropGroupsItems", - "ScimUserPropMeta", - "ScimUserPropName", - "ScimUserPropOperationsItems", - "ScimUserPropOperationsItemsPropValueOneof1", - "ScimUserPropRolesItems", + "UserEmailsResponseItems", + "UserNameResponse", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0422.py b/githubkit/versions/ghec_v2022_11_28/models/group_0422.py index 46d30061f..f1b1e3988 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0422.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0422.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,29 +18,28 @@ from githubkit.utils import UNSET -class SearchResultTextMatchesItems(GitHubModel): - """SearchResultTextMatchesItems""" - - object_url: Missing[str] = Field(default=UNSET) - object_type: Missing[Union[str, None]] = Field(default=UNSET) - property_: Missing[str] = Field(default=UNSET, alias="property") - fragment: Missing[str] = Field(default=UNSET) - matches: Missing[list[SearchResultTextMatchesItemsPropMatchesItems]] = Field( - default=UNSET +class UserRoleItems(GitHubModel): + """UserRoleItems""" + + display: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + value: Literal[ + "user", + "27d9891d-2c17-4f45-a262-781a0e55c80a", + "guest_collaborator", + "1ebc4a02-e56c-43a6-92a5-02ee09b90824", + "enterprise_owner", + "981df190-8801-4618-a08a-d91f6206c954", + "ba4987ab-a1c3-412a-b58c-360fc407cb10", + "billing_manager", + "0e338b8c-cc7f-498a-928d-ea3470d7e7e3", + "e6be2762-e4ad-4108-b72d-1bbe884a0f91", + ] = Field(description="The role value representing a user role in GitHub.") + primary: Missing[bool] = Field( + default=UNSET, description="Is the role a primary role for the user." ) -class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): - """SearchResultTextMatchesItemsPropMatchesItems""" - - text: Missing[str] = Field(default=UNSET) - indices: Missing[list[int]] = Field(default=UNSET) - - -model_rebuild(SearchResultTextMatchesItems) -model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) +model_rebuild(UserRoleItems) -__all__ = ( - "SearchResultTextMatchesItems", - "SearchResultTextMatchesItemsPropMatchesItems", -) +__all__ = ("UserRoleItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0423.py b/githubkit/versions/ghec_v2022_11_28/models/group_0423.py index 62543337e..161fb4628 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0423.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0423.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,47 +17,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0147 import MinimalRepository -from .group_0422 import SearchResultTextMatchesItems +from .group_0421 import UserEmailsResponseItems, UserNameResponse +from .group_0422 import UserRoleItems -class CodeSearchResultItem(GitHubModel): - """Code Search Result Item +class UserResponse(GitHubModel): + """UserResponse""" - Code Search Result Item - """ - - name: str = Field() - path: str = Field() - sha: str = Field() - url: str = Field() - git_url: str = Field() - html_url: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." ) - score: float = Field() - file_size: Missing[int] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - last_modified_at: Missing[datetime] = Field(default=UNSET) - line_numbers: Missing[list[str]] = Field(default=UNSET) - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" + external_id: Missing[Union[str, None]] = Field( + default=UNSET, + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", + ) + active: bool = Field(description="Whether the user active in the IdP.") + user_name: Missing[str] = Field( + default=UNSET, alias="userName", description="The username for the user." + ) + name: Missing[UserNameResponse] = Field(default=UNSET) + display_name: Missing[Union[str, None]] = Field( + default=UNSET, + alias="displayName", + description="A human-readable name for the user.", + ) + emails: list[UserEmailsResponseItems] = Field( + description="The emails for the user." + ) + roles: Missing[list[UserRoleItems]] = Field( + default=UNSET, description="The roles assigned to the user." ) -class SearchCodeGetResponse200(GitHubModel): - """SearchCodeGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: list[CodeSearchResultItem] = Field() - - -model_rebuild(CodeSearchResultItem) -model_rebuild(SearchCodeGetResponse200) +model_rebuild(UserResponse) -__all__ = ( - "CodeSearchResultItem", - "SearchCodeGetResponse200", -) +__all__ = ("UserResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0424.py b/githubkit/versions/ghec_v2022_11_28/models/group_0424.py index ae41cfa17..2142dd1ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0424.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0424.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,59 +17,75 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0147 import MinimalRepository -from .group_0238 import GitUser -from .group_0422 import SearchResultTextMatchesItems -from .group_0425 import CommitSearchResultItemPropCommit - - -class CommitSearchResultItem(GitHubModel): - """Commit Search Result Item - - Commit Search Result Item - """ - - url: str = Field() - sha: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitSearchResultItemPropCommit = Field() - author: Union[None, SimpleUser] = Field() - committer: Union[None, GitUser] = Field() - parents: list[CommitSearchResultItemPropParentsItems] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - score: float = Field() - node_id: str = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) +from .group_0416 import Meta +from .group_0421 import UserEmailsResponseItems, UserNameResponse +from .group_0422 import UserRoleItems +from .group_0426 import ScimEnterpriseUserResponseAllof1PropGroupsItems -class CommitSearchResultItemPropParentsItems(GitHubModel): - """CommitSearchResultItemPropParentsItems""" +class ScimEnterpriseUserResponse(GitHubModel): + """ScimEnterpriseUserResponse""" - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." + ) + external_id: Missing[Union[str, None]] = Field( + default=UNSET, + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", + ) + active: bool = Field(description="Whether the user active in the IdP.") + user_name: Missing[str] = Field( + default=UNSET, alias="userName", description="The username for the user." + ) + name: Missing[UserNameResponse] = Field(default=UNSET) + display_name: Missing[Union[str, None]] = Field( + default=UNSET, + alias="displayName", + description="A human-readable name for the user.", + ) + emails: list[UserEmailsResponseItems] = Field( + description="The emails for the user." + ) + roles: Missing[list[UserRoleItems]] = Field( + default=UNSET, description="The roles assigned to the user." + ) + id: str = Field(description="The internally generated id for the user object.") + groups: Missing[list[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( + default=UNSET, + description="Provisioned SCIM groups that the user is a member of.", + ) + meta: Meta = Field( + description="The metadata associated with the creation/updates to the user." + ) -class SearchCommitsGetResponse200(GitHubModel): - """SearchCommitsGetResponse200""" +class ScimEnterpriseUserList(GitHubModel): + """ScimEnterpriseUserList""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[CommitSearchResultItem] = Field() + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] = ( + Field( + description="The URIs that are used to indicate the namespaces of the list SCIM schemas." + ) + ) + total_results: int = Field( + alias="totalResults", description="Number of results found" + ) + resources: list[ScimEnterpriseUserResponse] = Field( + alias="Resources", description="Information about each provisioned account." + ) + start_index: int = Field( + alias="startIndex", description="A starting index for the returned page" + ) + items_per_page: int = Field( + alias="itemsPerPage", description="Number of objects per page" + ) -model_rebuild(CommitSearchResultItem) -model_rebuild(CommitSearchResultItemPropParentsItems) -model_rebuild(SearchCommitsGetResponse200) +model_rebuild(ScimEnterpriseUserResponse) +model_rebuild(ScimEnterpriseUserList) __all__ = ( - "CommitSearchResultItem", - "CommitSearchResultItemPropParentsItems", - "SearchCommitsGetResponse200", + "ScimEnterpriseUserList", + "ScimEnterpriseUserResponse", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0425.py b/githubkit/versions/ghec_v2022_11_28/models/group_0425.py index fb20f4852..634c9b8c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0425.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0425.py @@ -9,52 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0238 import GitUser -from .group_0239 import Verification - - -class CommitSearchResultItemPropCommit(GitHubModel): - """CommitSearchResultItemPropCommit""" - - author: CommitSearchResultItemPropCommitPropAuthor = Field() - committer: Union[None, GitUser] = Field() - comment_count: int = Field() - message: str = Field() - tree: CommitSearchResultItemPropCommitPropTree = Field() - url: str = Field() - verification: Missing[Verification] = Field(default=UNSET, title="Verification") - - -class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): - """CommitSearchResultItemPropCommitPropAuthor""" - - name: str = Field() - email: str = Field() - date: datetime = Field() +from .group_0416 import Meta +from .group_0426 import ScimEnterpriseUserResponseAllof1PropGroupsItems -class CommitSearchResultItemPropCommitPropTree(GitHubModel): - """CommitSearchResultItemPropCommitPropTree""" +class ScimEnterpriseUserResponseAllof1(GitHubModel): + """ScimEnterpriseUserResponseAllof1""" - sha: str = Field() - url: str = Field() + id: str = Field(description="The internally generated id for the user object.") + groups: Missing[list[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( + default=UNSET, + description="Provisioned SCIM groups that the user is a member of.", + ) + meta: Meta = Field( + description="The metadata associated with the creation/updates to the user." + ) -model_rebuild(CommitSearchResultItemPropCommit) -model_rebuild(CommitSearchResultItemPropCommitPropAuthor) -model_rebuild(CommitSearchResultItemPropCommitPropTree) +model_rebuild(ScimEnterpriseUserResponseAllof1) -__all__ = ( - "CommitSearchResultItemPropCommit", - "CommitSearchResultItemPropCommitPropAuthor", - "CommitSearchResultItemPropCommitPropTree", -) +__all__ = ("ScimEnterpriseUserResponseAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0426.py b/githubkit/versions/ghec_v2022_11_28/models/group_0426.py index fec68afe2..2e84d7213 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0426.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0426.py @@ -9,135 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0019 import Repository -from .group_0129 import Milestone -from .group_0130 import ReactionRollup -from .group_0422 import SearchResultTextMatchesItems - - -class IssueSearchResultItem(GitHubModel): - """Issue Search Result Item - - Issue Search Result Item - """ - - url: str = Field() - repository_url: str = Field() - labels_url: str = Field() - comments_url: str = Field() - events_url: str = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - title: str = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - labels: list[IssueSearchResultItemPropLabelsItems] = Field() - sub_issues_summary: Missing[IssueSearchResultItemPropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: str = Field() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[None, SimpleUser] = Field() - milestone: Union[None, Milestone] = Field() - comments: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) - body: Missing[str] = Field(default=UNSET) - score: float = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - draft: Missing[bool] = Field(default=UNSET) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - - -class IssueSearchResultItemPropLabelsItems(GitHubModel): - """IssueSearchResultItemPropLabelsItems""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - color: Missing[str] = Field(default=UNSET) - default: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - - -class IssueSearchResultItemPropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class IssueSearchResultItemPropPullRequest(GitHubModel): - """IssueSearchResultItemPropPullRequest""" - - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - diff_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - patch_url: Union[str, None] = Field() - url: Union[str, None] = Field() - -class SearchIssuesGetResponse200(GitHubModel): - """SearchIssuesGetResponse200""" +class ScimEnterpriseUserResponseAllof1PropGroupsItems(GitHubModel): + """ScimEnterpriseUserResponseAllof1PropGroupsItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[IssueSearchResultItem] = Field() + value: Missing[str] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET, alias="$ref") + display: Missing[str] = Field(default=UNSET) -model_rebuild(IssueSearchResultItem) -model_rebuild(IssueSearchResultItemPropLabelsItems) -model_rebuild(IssueSearchResultItemPropSubIssuesSummary) -model_rebuild(IssueSearchResultItemPropPullRequest) -model_rebuild(SearchIssuesGetResponse200) +model_rebuild(ScimEnterpriseUserResponseAllof1PropGroupsItems) -__all__ = ( - "IssueSearchResultItem", - "IssueSearchResultItemPropLabelsItems", - "IssueSearchResultItemPropPullRequest", - "IssueSearchResultItemPropSubIssuesSummary", - "SearchIssuesGetResponse200", -) +__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0427.py b/githubkit/versions/ghec_v2022_11_28/models/group_0427.py index c2bcbbecb..ad7d9d005 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0427.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0427.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,40 +17,65 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0422 import SearchResultTextMatchesItems +from .group_0422 import UserRoleItems -class LabelSearchResultItem(GitHubModel): - """Label Search Result Item +class User(GitHubModel): + """User""" + + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." + ) + external_id: str = Field( + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", + ) + active: bool = Field(description="Whether the user active in the IdP.") + user_name: str = Field(alias="userName", description="The username for the user.") + name: Missing[UserName] = Field(default=UNSET) + display_name: str = Field( + alias="displayName", description="A human-readable name for the user." + ) + emails: list[UserEmailsItems] = Field(description="The emails for the user.") + roles: Missing[list[UserRoleItems]] = Field( + default=UNSET, description="The roles assigned to the user." + ) - Label Search Result Item - """ - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - color: str = Field() - default: bool = Field() - description: Union[str, None] = Field() - score: float = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" +class UserName(GitHubModel): + """UserName""" + + formatted: Missing[str] = Field( + default=UNSET, + description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", + ) + family_name: str = Field( + alias="familyName", description="The family name of the user." + ) + given_name: str = Field( + alias="givenName", description="The given name of the user." + ) + middle_name: Missing[str] = Field( + default=UNSET, alias="middleName", description="The middle name(s) of the user." ) -class SearchLabelsGetResponse200(GitHubModel): - """SearchLabelsGetResponse200""" +class UserEmailsItems(GitHubModel): + """UserEmailsItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[LabelSearchResultItem] = Field() + value: str = Field(description="The email address.") + type: str = Field(description="The type of email address.") + primary: bool = Field( + description="Whether this email address is the primary address." + ) -model_rebuild(LabelSearchResultItem) -model_rebuild(SearchLabelsGetResponse200) +model_rebuild(User) +model_rebuild(UserName) +model_rebuild(UserEmailsItems) __all__ = ( - "LabelSearchResultItem", - "SearchLabelsGetResponse200", + "User", + "UserEmailsItems", + "UserName", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0428.py b/githubkit/versions/ghec_v2022_11_28/models/group_0428.py index a704c55e3..17bf8b83c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0428.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0428.py @@ -10,147 +10,148 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Any, Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0018 import LicenseSimple -from .group_0422 import SearchResultTextMatchesItems +class ScimUserList(GitHubModel): + """SCIM User List + + SCIM User List + """ + + schemas: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, description="SCIM schema used." + ) + total_results: int = Field(alias="totalResults") + items_per_page: int = Field(alias="itemsPerPage") + start_index: int = Field(alias="startIndex") + resources: list[ScimUser] = Field(alias="Resources") -class RepoSearchResultItem(GitHubModel): - """Repo Search Result Item - Repo Search Result Item +class ScimUser(GitHubModel): + """SCIM /Users + + SCIM /Users provisioning endpoints """ - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: Union[None, SimpleUser] = Field() - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - pushed_at: datetime = Field() - homepage: Union[str, None] = Field() - size: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - open_issues_count: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - default_branch: str = Field() - score: float = Field() - forks_url: str = Field() - keys_url: str = Field() - collaborators_url: str = Field() - teams_url: str = Field() - hooks_url: str = Field() - issue_events_url: str = Field() - events_url: str = Field() - assignees_url: str = Field() - branches_url: str = Field() - tags_url: str = Field() - blobs_url: str = Field() - git_tags_url: str = Field() - git_refs_url: str = Field() - trees_url: str = Field() - statuses_url: str = Field() - languages_url: str = Field() - stargazers_url: str = Field() - contributors_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - commits_url: str = Field() - git_commits_url: str = Field() - comments_url: str = Field() - issue_comment_url: str = Field() - contents_url: str = Field() - compare_url: str = Field() - merges_url: str = Field() - archive_url: str = Field() - downloads_url: str = Field() - issues_url: str = Field() - pulls_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - labels_url: str = Field() - releases_url: str = Field() - deployments_url: str = Field() - git_url: str = Field() - ssh_url: str = Field() - clone_url: str = Field() - svn_url: str = Field() - forks: int = Field() - open_issues: int = Field() - watchers: int = Field() - topics: Missing[list[str]] = Field(default=UNSET) - mirror_url: Union[str, None] = Field() - has_issues: bool = Field() - has_projects: bool = Field() - has_pages: bool = Field() - has_wiki: bool = Field() - has_downloads: bool = Field() - has_discussions: Missing[bool] = Field(default=UNSET) - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." + schemas: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, description="SCIM schema used." + ) + id: str = Field(description="Unique identifier of an external identity") + external_id: Missing[Union[str, None]] = Field( + default=UNSET, alias="externalId", description="The ID of the User." + ) + user_name: Missing[Union[str, None]] = Field( + default=UNSET, + alias="userName", + description="Configured by the admin. Could be an email, login, or username", + ) + display_name: Missing[Union[str, None]] = Field( + default=UNSET, + alias="displayName", + description="The name of the user, suitable for display to end-users", + ) + name: Missing[ScimUserPropName] = Field(default=UNSET) + emails: list[ScimUserPropEmailsItems] = Field(description="user emails") + active: bool = Field(description="The active status of the User.") + meta: ScimUserPropMeta = Field() + organization_id: Missing[int] = Field( + default=UNSET, description="The ID of the organization." ) - visibility: Missing[str] = Field( + operations: Missing[list[ScimUserPropOperationsItems]] = Field( + min_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="The repository visibility: public, private, or internal.", + description="Set of operations to be performed", ) - license_: Union[None, LicenseSimple] = Field(alias="license") - permissions: Missing[RepoSearchResultItemPropPermissions] = Field(default=UNSET) - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" + groups: Missing[list[ScimUserPropGroupsItems]] = Field( + default=UNSET, description="associated groups" ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_forking: Missing[bool] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + roles: Missing[list[ScimUserPropRolesItems]] = Field(default=UNSET) + + +class ScimUserPropName(GitHubModel): + """ScimUserPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") + family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") + formatted: Missing[Union[str, None]] = Field(default=UNSET) + + +class ScimUserPropEmailsItems(GitHubModel): + """ScimUserPropEmailsItems""" + + value: str = Field() + primary: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class ScimUserPropMeta(GitHubModel): + """ScimUserPropMeta""" + + resource_type: Missing[str] = Field(default=UNSET, alias="resourceType") + created: Missing[datetime] = Field(default=UNSET) + last_modified: Missing[datetime] = Field(default=UNSET, alias="lastModified") + location: Missing[str] = Field(default=UNSET) + + +class ScimUserPropGroupsItems(GitHubModel): + """ScimUserPropGroupsItems""" + + value: Missing[str] = Field(default=UNSET) + display: Missing[str] = Field(default=UNSET) + + +class ScimUserPropRolesItems(GitHubModel): + """ScimUserPropRolesItems""" + value: Missing[str] = Field(default=UNSET) + primary: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + display: Missing[str] = Field(default=UNSET) -class RepoSearchResultItemPropPermissions(GitHubModel): - """RepoSearchResultItemPropPermissions""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() +class ScimUserPropOperationsItems(GitHubModel): + """ScimUserPropOperationsItems""" + op: Literal["add", "remove", "replace"] = Field() + path: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[str, ScimUserPropOperationsItemsPropValueOneof1, list[Any]] + ] = Field(default=UNSET) -class SearchRepositoriesGetResponse200(GitHubModel): - """SearchRepositoriesGetResponse200""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[RepoSearchResultItem] = Field() +class ScimUserPropOperationsItemsPropValueOneof1(GitHubModel): + """ScimUserPropOperationsItemsPropValueOneof1""" -model_rebuild(RepoSearchResultItem) -model_rebuild(RepoSearchResultItemPropPermissions) -model_rebuild(SearchRepositoriesGetResponse200) +model_rebuild(ScimUserList) +model_rebuild(ScimUser) +model_rebuild(ScimUserPropName) +model_rebuild(ScimUserPropEmailsItems) +model_rebuild(ScimUserPropMeta) +model_rebuild(ScimUserPropGroupsItems) +model_rebuild(ScimUserPropRolesItems) +model_rebuild(ScimUserPropOperationsItems) +model_rebuild(ScimUserPropOperationsItemsPropValueOneof1) __all__ = ( - "RepoSearchResultItem", - "RepoSearchResultItemPropPermissions", - "SearchRepositoriesGetResponse200", + "ScimUser", + "ScimUserList", + "ScimUserPropEmailsItems", + "ScimUserPropGroupsItems", + "ScimUserPropMeta", + "ScimUserPropName", + "ScimUserPropOperationsItems", + "ScimUserPropOperationsItemsPropValueOneof1", + "ScimUserPropRolesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0429.py b/githubkit/versions/ghec_v2022_11_28/models/group_0429.py index 3833bc4b7..46d30061f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0429.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0429.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,93 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0422 import SearchResultTextMatchesItems - - -class TopicSearchResultItem(GitHubModel): - """Topic Search Result Item - - Topic Search Result Item - """ - - name: str = Field() - display_name: Union[str, None] = Field() - short_description: Union[str, None] = Field() - description: Union[str, None] = Field() - created_by: Union[str, None] = Field() - released: Union[str, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - featured: bool = Field() - curated: bool = Field() - score: float = Field() - repository_count: Missing[Union[int, None]] = Field(default=UNSET) - logo_url: Missing[Union[str, None]] = Field(default=UNSET) - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - related: Missing[Union[list[TopicSearchResultItemPropRelatedItems], None]] = Field( - default=UNSET - ) - aliases: Missing[Union[list[TopicSearchResultItemPropAliasesItems], None]] = Field( - default=UNSET - ) - - -class TopicSearchResultItemPropRelatedItems(GitHubModel): - """TopicSearchResultItemPropRelatedItems""" - - topic_relation: Missing[TopicSearchResultItemPropRelatedItemsPropTopicRelation] = ( - Field(default=UNSET) - ) +class SearchResultTextMatchesItems(GitHubModel): + """SearchResultTextMatchesItems""" -class TopicSearchResultItemPropRelatedItemsPropTopicRelation(GitHubModel): - """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - topic_id: Missing[int] = Field(default=UNSET) - relation_type: Missing[str] = Field(default=UNSET) - - -class TopicSearchResultItemPropAliasesItems(GitHubModel): - """TopicSearchResultItemPropAliasesItems""" - - topic_relation: Missing[TopicSearchResultItemPropAliasesItemsPropTopicRelation] = ( - Field(default=UNSET) + object_url: Missing[str] = Field(default=UNSET) + object_type: Missing[Union[str, None]] = Field(default=UNSET) + property_: Missing[str] = Field(default=UNSET, alias="property") + fragment: Missing[str] = Field(default=UNSET) + matches: Missing[list[SearchResultTextMatchesItemsPropMatchesItems]] = Field( + default=UNSET ) -class TopicSearchResultItemPropAliasesItemsPropTopicRelation(GitHubModel): - """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - topic_id: Missing[int] = Field(default=UNSET) - relation_type: Missing[str] = Field(default=UNSET) - - -class SearchTopicsGetResponse200(GitHubModel): - """SearchTopicsGetResponse200""" +class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): + """SearchResultTextMatchesItemsPropMatchesItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[TopicSearchResultItem] = Field() + text: Missing[str] = Field(default=UNSET) + indices: Missing[list[int]] = Field(default=UNSET) -model_rebuild(TopicSearchResultItem) -model_rebuild(TopicSearchResultItemPropRelatedItems) -model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) -model_rebuild(TopicSearchResultItemPropAliasesItems) -model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) -model_rebuild(SearchTopicsGetResponse200) +model_rebuild(SearchResultTextMatchesItems) +model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) __all__ = ( - "SearchTopicsGetResponse200", - "TopicSearchResultItem", - "TopicSearchResultItemPropAliasesItems", - "TopicSearchResultItemPropAliasesItemsPropTopicRelation", - "TopicSearchResultItemPropRelatedItems", - "TopicSearchResultItemPropRelatedItemsPropTopicRelation", + "SearchResultTextMatchesItems", + "SearchResultTextMatchesItemsPropMatchesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0430.py b/githubkit/versions/ghec_v2022_11_28/models/group_0430.py index 40c1ed6ee..7f87833c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0430.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0430.py @@ -18,66 +18,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0422 import SearchResultTextMatchesItems +from .group_0154 import MinimalRepository +from .group_0429 import SearchResultTextMatchesItems -class UserSearchResultItem(GitHubModel): - """User Search Result Item +class CodeSearchResultItem(GitHubModel): + """Code Search Result Item - User Search Result Item + Code Search Result Item """ - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() + name: str = Field() + path: str = Field() + sha: str = Field() url: str = Field() + git_url: str = Field() html_url: str = Field() - followers_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - received_events_url: str = Field() - type: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) score: float = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - events_url: str = Field() - public_repos: Missing[int] = Field(default=UNSET) - public_gists: Missing[int] = Field(default=UNSET) - followers: Missing[int] = Field(default=UNSET) - following: Missing[int] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - bio: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - site_admin: bool = Field() - hireable: Missing[Union[bool, None]] = Field(default=UNSET) + file_size: Missing[int] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + last_modified_at: Missing[datetime] = Field(default=UNSET) + line_numbers: Missing[list[str]] = Field(default=UNSET) text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - blog: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class SearchUsersGetResponse200(GitHubModel): - """SearchUsersGetResponse200""" +class SearchCodeGetResponse200(GitHubModel): + """SearchCodeGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[UserSearchResultItem] = Field() + items: list[CodeSearchResultItem] = Field() -model_rebuild(UserSearchResultItem) -model_rebuild(SearchUsersGetResponse200) +model_rebuild(CodeSearchResultItem) +model_rebuild(SearchCodeGetResponse200) __all__ = ( - "SearchUsersGetResponse200", - "UserSearchResultItem", + "CodeSearchResultItem", + "SearchCodeGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0431.py b/githubkit/versions/ghec_v2022_11_28/models/group_0431.py index c4b785265..2b2593ffe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0431.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0431.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,71 +17,59 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0154 import MinimalRepository +from .group_0245 import GitUser +from .group_0429 import SearchResultTextMatchesItems +from .group_0432 import CommitSearchResultItemPropCommit -class PrivateUser(GitHubModel): - """Private User - Private User +class CommitSearchResultItem(GitHubModel): + """Commit Search Result Item + + Commit Search Result Item """ - login: str = Field() - id: int = Field() - user_view_type: Missing[str] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() url: str = Field() + sha: str = Field() html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - name: Union[str, None] = Field() - company: Union[str, None] = Field() - blog: Union[str, None] = Field() - location: Union[str, None] = Field() - email: Union[str, None] = Field() - notification_email: Missing[Union[str, None]] = Field(default=UNSET) - hireable: Union[bool, None] = Field() - bio: Union[str, None] = Field() - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - private_gists: int = Field() - total_private_repos: int = Field() - owned_private_repos: int = Field() - disk_usage: int = Field() - collaborators: int = Field() - two_factor_authentication: bool = Field() - plan: Missing[PrivateUserPropPlan] = Field(default=UNSET) - business_plus: Missing[bool] = Field(default=UNSET) - ldap_dn: Missing[str] = Field(default=UNSET) - - -class PrivateUserPropPlan(GitHubModel): - """PrivateUserPropPlan""" - - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() - - -model_rebuild(PrivateUser) -model_rebuild(PrivateUserPropPlan) + comments_url: str = Field() + commit: CommitSearchResultItemPropCommit = Field() + author: Union[None, SimpleUser] = Field() + committer: Union[None, GitUser] = Field() + parents: list[CommitSearchResultItemPropParentsItems] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + score: float = Field() + node_id: str = Field() + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + + +class CommitSearchResultItemPropParentsItems(GitHubModel): + """CommitSearchResultItemPropParentsItems""" + + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + + +class SearchCommitsGetResponse200(GitHubModel): + """SearchCommitsGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[CommitSearchResultItem] = Field() + + +model_rebuild(CommitSearchResultItem) +model_rebuild(CommitSearchResultItemPropParentsItems) +model_rebuild(SearchCommitsGetResponse200) __all__ = ( - "PrivateUser", - "PrivateUserPropPlan", + "CommitSearchResultItem", + "CommitSearchResultItemPropParentsItems", + "SearchCommitsGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0432.py b/githubkit/versions/ghec_v2022_11_28/models/group_0432.py index f6bee6e63..db9bd0aea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0432.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0432.py @@ -9,21 +9,52 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0245 import GitUser +from .group_0246 import Verification + + +class CommitSearchResultItemPropCommit(GitHubModel): + """CommitSearchResultItemPropCommit""" + + author: CommitSearchResultItemPropCommitPropAuthor = Field() + committer: Union[None, GitUser] = Field() + comment_count: int = Field() + message: str = Field() + tree: CommitSearchResultItemPropCommitPropTree = Field() + url: str = Field() + verification: Missing[Verification] = Field(default=UNSET, title="Verification") + + +class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): + """CommitSearchResultItemPropCommitPropAuthor""" + name: str = Field() + email: str = Field() + date: datetime = Field() -class CodespacesUserPublicKey(GitHubModel): - """CodespacesUserPublicKey - The public key used for setting user Codespaces' Secrets. - """ +class CommitSearchResultItemPropCommitPropTree(GitHubModel): + """CommitSearchResultItemPropCommitPropTree""" - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + sha: str = Field() + url: str = Field() -model_rebuild(CodespacesUserPublicKey) +model_rebuild(CommitSearchResultItemPropCommit) +model_rebuild(CommitSearchResultItemPropCommitPropAuthor) +model_rebuild(CommitSearchResultItemPropCommitPropTree) -__all__ = ("CodespacesUserPublicKey",) +__all__ = ( + "CommitSearchResultItemPropCommit", + "CommitSearchResultItemPropCommitPropAuthor", + "CommitSearchResultItemPropCommitPropTree", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0433.py b/githubkit/versions/ghec_v2022_11_28/models/group_0433.py index 48a2ada39..e4ad11d4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0433.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0433.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,35 +18,126 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0020 import Repository +from .group_0136 import Milestone +from .group_0137 import ReactionRollup +from .group_0429 import SearchResultTextMatchesItems -class CodespaceExportDetails(GitHubModel): - """Fetches information about an export of a codespace. - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest +class IssueSearchResultItem(GitHubModel): + """Issue Search Result Item + + Issue Search Result Item """ - state: Missing[Union[str, None]] = Field( - default=UNSET, description="State of the latest export" - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Completion time of the last export operation" + url: str = Field() + repository_url: str = Field() + labels_url: str = Field() + comments_url: str = Field() + events_url: str = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + title: str = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + labels: list[IssueSearchResultItemPropLabelsItems] = Field() + sub_issues_summary: Missing[IssueSearchResultItemPropSubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" ) - branch: Missing[Union[str, None]] = Field( - default=UNSET, description="Name of the exported branch" + state: str = Field() + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[None, SimpleUser] = Field() + milestone: Union[None, Milestone] = Field() + comments: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" ) - sha: Missing[Union[str, None]] = Field( - default=UNSET, description="Git commit SHA of the exported branch" + pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) + body: Missing[str] = Field(default=UNSET) + score: float = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", ) - id: Missing[str] = Field(default=UNSET, description="Id for the export details") - export_url: Missing[str] = Field( - default=UNSET, description="Url for fetching export details" + draft: Missing[bool] = Field(default=UNSET) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." ) - html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="Web url for the exported branch" + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +class IssueSearchResultItemPropLabelsItems(GitHubModel): + """IssueSearchResultItemPropLabelsItems""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + color: Missing[str] = Field(default=UNSET) + default: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + + +class IssueSearchResultItemPropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class IssueSearchResultItemPropPullRequest(GitHubModel): + """IssueSearchResultItemPropPullRequest""" + + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() + + +class SearchIssuesGetResponse200(GitHubModel): + """SearchIssuesGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[IssueSearchResultItem] = Field() -model_rebuild(CodespaceExportDetails) +model_rebuild(IssueSearchResultItem) +model_rebuild(IssueSearchResultItemPropLabelsItems) +model_rebuild(IssueSearchResultItemPropSubIssuesSummary) +model_rebuild(IssueSearchResultItemPropPullRequest) +model_rebuild(SearchIssuesGetResponse200) -__all__ = ("CodespaceExportDetails",) +__all__ = ( + "IssueSearchResultItem", + "IssueSearchResultItemPropLabelsItems", + "IssueSearchResultItemPropPullRequest", + "IssueSearchResultItemPropSubIssuesSummary", + "SearchIssuesGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0434.py b/githubkit/versions/ghec_v2022_11_28/models/group_0434.py index 0bbb1be0c..4cd6094dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0434.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0434.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,155 +17,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0156 import CodespaceMachine -from .group_0193 import FullRepository +from .group_0429 import SearchResultTextMatchesItems -class CodespaceWithFullRepository(GitHubModel): - """Codespace +class LabelSearchResultItem(GitHubModel): + """Label Search Result Item - A codespace. + Label Search Result Item """ id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( - default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", - ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespaceWithFullRepositoryPropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." - ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." - ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." - ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="API URL to publish this codespace to a new repository.", - ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: list[str] = Field() - runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( - Field(default=UNSET) - ) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", - ) - idle_timeout_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", - ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - retention_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', - ) - - -class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): - """CodespaceWithFullRepositoryPropGitStatus - - Details about the codespace's git repository. - """ - - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", + node_id: str = Field() + url: str = Field() + name: str = Field() + color: str = Field() + default: bool = Field() + description: Union[str, None] = Field() + score: float = Field() + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" ) -class CodespaceWithFullRepositoryPropRuntimeConstraints(GitHubModel): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" +class SearchLabelsGetResponse200(GitHubModel): + """SearchLabelsGetResponse200""" - allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="The privacy settings a user can select from when forwarding a port.", - ) + total_count: int = Field() + incomplete_results: bool = Field() + items: list[LabelSearchResultItem] = Field() -model_rebuild(CodespaceWithFullRepository) -model_rebuild(CodespaceWithFullRepositoryPropGitStatus) -model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) +model_rebuild(LabelSearchResultItem) +model_rebuild(SearchLabelsGetResponse200) __all__ = ( - "CodespaceWithFullRepository", - "CodespaceWithFullRepositoryPropGitStatus", - "CodespaceWithFullRepositoryPropRuntimeConstraints", + "LabelSearchResultItem", + "SearchLabelsGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0435.py b/githubkit/versions/ghec_v2022_11_28/models/group_0435.py index 1fb1f3941..956115821 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0435.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0435.py @@ -9,25 +9,148 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple +from .group_0429 import SearchResultTextMatchesItems -class Email(GitHubModel): - """Email - Email +class RepoSearchResultItem(GitHubModel): + """Repo Search Result Item + + Repo Search Result Item """ - email: str = Field() - primary: bool = Field() - verified: bool = Field() - visibility: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: Union[None, SimpleUser] = Field() + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + pushed_at: datetime = Field() + homepage: Union[str, None] = Field() + size: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + open_issues_count: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + default_branch: str = Field() + score: float = Field() + forks_url: str = Field() + keys_url: str = Field() + collaborators_url: str = Field() + teams_url: str = Field() + hooks_url: str = Field() + issue_events_url: str = Field() + events_url: str = Field() + assignees_url: str = Field() + branches_url: str = Field() + tags_url: str = Field() + blobs_url: str = Field() + git_tags_url: str = Field() + git_refs_url: str = Field() + trees_url: str = Field() + statuses_url: str = Field() + languages_url: str = Field() + stargazers_url: str = Field() + contributors_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + commits_url: str = Field() + git_commits_url: str = Field() + comments_url: str = Field() + issue_comment_url: str = Field() + contents_url: str = Field() + compare_url: str = Field() + merges_url: str = Field() + archive_url: str = Field() + downloads_url: str = Field() + issues_url: str = Field() + pulls_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + labels_url: str = Field() + releases_url: str = Field() + deployments_url: str = Field() + git_url: str = Field() + ssh_url: str = Field() + clone_url: str = Field() + svn_url: str = Field() + forks: int = Field() + open_issues: int = Field() + watchers: int = Field() + topics: Missing[list[str]] = Field(default=UNSET) + mirror_url: Union[str, None] = Field() + has_issues: bool = Field() + has_projects: bool = Field() + has_pages: bool = Field() + has_wiki: bool = Field() + has_downloads: bool = Field() + has_discussions: Missing[bool] = Field(default=UNSET) + archived: bool = Field() + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + license_: Union[None, LicenseSimple] = Field(alias="license") + permissions: Missing[RepoSearchResultItemPropPermissions] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_forking: Missing[bool] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + + +class RepoSearchResultItemPropPermissions(GitHubModel): + """RepoSearchResultItemPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + + +class SearchRepositoriesGetResponse200(GitHubModel): + """SearchRepositoriesGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[RepoSearchResultItem] = Field() -model_rebuild(Email) +model_rebuild(RepoSearchResultItem) +model_rebuild(RepoSearchResultItemPropPermissions) +model_rebuild(SearchRepositoriesGetResponse200) -__all__ = ("Email",) +__all__ = ( + "RepoSearchResultItem", + "RepoSearchResultItemPropPermissions", + "SearchRepositoriesGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0436.py b/githubkit/versions/ghec_v2022_11_28/models/group_0436.py index f58661fe1..fdf18ee47 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0436.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0436.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Union from pydantic import Field @@ -18,71 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0429 import SearchResultTextMatchesItems -class GpgKey(GitHubModel): - """GPG Key - A unique encryption key +class TopicSearchResultItem(GitHubModel): + """Topic Search Result Item + + Topic Search Result Item """ - id: int = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - primary_key_id: Union[int, None] = Field() - key_id: str = Field() - public_key: str = Field() - emails: list[GpgKeyPropEmailsItems] = Field() - subkeys: list[GpgKeyPropSubkeysItems] = Field() - can_sign: bool = Field() - can_encrypt_comms: bool = Field() - can_encrypt_storage: bool = Field() - can_certify: bool = Field() + name: str = Field() + display_name: Union[str, None] = Field() + short_description: Union[str, None] = Field() + description: Union[str, None] = Field() + created_by: Union[str, None] = Field() + released: Union[str, None] = Field() created_at: datetime = Field() - expires_at: Union[datetime, None] = Field() - revoked: bool = Field() - raw_key: Union[str, None] = Field() + updated_at: datetime = Field() + featured: bool = Field() + curated: bool = Field() + score: float = Field() + repository_count: Missing[Union[int, None]] = Field(default=UNSET) + logo_url: Missing[Union[str, None]] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + related: Missing[Union[list[TopicSearchResultItemPropRelatedItems], None]] = Field( + default=UNSET + ) + aliases: Missing[Union[list[TopicSearchResultItemPropAliasesItems], None]] = Field( + default=UNSET + ) + + +class TopicSearchResultItemPropRelatedItems(GitHubModel): + """TopicSearchResultItemPropRelatedItems""" + + topic_relation: Missing[TopicSearchResultItemPropRelatedItemsPropTopicRelation] = ( + Field(default=UNSET) + ) + + +class TopicSearchResultItemPropRelatedItemsPropTopicRelation(GitHubModel): + """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + topic_id: Missing[int] = Field(default=UNSET) + relation_type: Missing[str] = Field(default=UNSET) -class GpgKeyPropEmailsItems(GitHubModel): - """GpgKeyPropEmailsItems""" +class TopicSearchResultItemPropAliasesItems(GitHubModel): + """TopicSearchResultItemPropAliasesItems""" - email: Missing[str] = Field(default=UNSET) - verified: Missing[bool] = Field(default=UNSET) + topic_relation: Missing[TopicSearchResultItemPropAliasesItemsPropTopicRelation] = ( + Field(default=UNSET) + ) -class GpgKeyPropSubkeysItems(GitHubModel): - """GpgKeyPropSubkeysItems""" +class TopicSearchResultItemPropAliasesItemsPropTopicRelation(GitHubModel): + """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" id: Missing[int] = Field(default=UNSET) - primary_key_id: Missing[int] = Field(default=UNSET) - key_id: Missing[str] = Field(default=UNSET) - public_key: Missing[str] = Field(default=UNSET) - emails: Missing[list[GpgKeyPropSubkeysItemsPropEmailsItems]] = Field(default=UNSET) - subkeys: Missing[list[Any]] = Field(default=UNSET) - can_sign: Missing[bool] = Field(default=UNSET) - can_encrypt_comms: Missing[bool] = Field(default=UNSET) - can_encrypt_storage: Missing[bool] = Field(default=UNSET) - can_certify: Missing[bool] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - expires_at: Missing[Union[str, None]] = Field(default=UNSET) - raw_key: Missing[Union[str, None]] = Field(default=UNSET) - revoked: Missing[bool] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + topic_id: Missing[int] = Field(default=UNSET) + relation_type: Missing[str] = Field(default=UNSET) -class GpgKeyPropSubkeysItemsPropEmailsItems(GitHubModel): - """GpgKeyPropSubkeysItemsPropEmailsItems""" +class SearchTopicsGetResponse200(GitHubModel): + """SearchTopicsGetResponse200""" - email: Missing[str] = Field(default=UNSET) - verified: Missing[bool] = Field(default=UNSET) + total_count: int = Field() + incomplete_results: bool = Field() + items: list[TopicSearchResultItem] = Field() -model_rebuild(GpgKey) -model_rebuild(GpgKeyPropEmailsItems) -model_rebuild(GpgKeyPropSubkeysItems) -model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) +model_rebuild(TopicSearchResultItem) +model_rebuild(TopicSearchResultItemPropRelatedItems) +model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) +model_rebuild(TopicSearchResultItemPropAliasesItems) +model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) +model_rebuild(SearchTopicsGetResponse200) __all__ = ( - "GpgKey", - "GpgKeyPropEmailsItems", - "GpgKeyPropSubkeysItems", - "GpgKeyPropSubkeysItemsPropEmailsItems", + "SearchTopicsGetResponse200", + "TopicSearchResultItem", + "TopicSearchResultItemPropAliasesItems", + "TopicSearchResultItemPropAliasesItemsPropTopicRelation", + "TopicSearchResultItemPropRelatedItems", + "TopicSearchResultItemPropRelatedItemsPropTopicRelation", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0437.py b/githubkit/versions/ghec_v2022_11_28/models/group_0437.py index f75f4e54d..a36462f25 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0437.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0437.py @@ -10,27 +10,74 @@ from __future__ import annotations from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0429 import SearchResultTextMatchesItems -class Key(GitHubModel): - """Key - Key +class UserSearchResultItem(GitHubModel): + """User Search Result Item + + User Search Result Item """ - key: str = Field() + login: str = Field() id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() url: str = Field() - title: str = Field() - created_at: datetime = Field() - verified: bool = Field() - read_only: bool = Field() + html_url: str = Field() + followers_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + received_events_url: str = Field() + type: str = Field() + score: float = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + events_url: str = Field() + public_repos: Missing[int] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + bio: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + site_admin: bool = Field() + hireable: Missing[Union[bool, None]] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + blog: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class SearchUsersGetResponse200(GitHubModel): + """SearchUsersGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[UserSearchResultItem] = Field() -model_rebuild(Key) +model_rebuild(UserSearchResultItem) +model_rebuild(SearchUsersGetResponse200) -__all__ = ("Key",) +__all__ = ( + "SearchUsersGetResponse200", + "UserSearchResultItem", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0438.py b/githubkit/versions/ghec_v2022_11_28/models/group_0438.py index b4128b62b..c4b785265 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0438.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0438.py @@ -18,43 +18,71 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0142 import MarketplaceListingPlan +class PrivateUser(GitHubModel): + """Private User -class UserMarketplacePurchase(GitHubModel): - """User Marketplace Purchase - - User Marketplace Purchase + Private User """ - billing_cycle: str = Field() - next_billing_date: Union[datetime, None] = Field() - unit_count: Union[int, None] = Field() - on_free_trial: bool = Field() - free_trial_ends_on: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - account: MarketplaceAccount = Field(title="Marketplace Account") - plan: MarketplaceListingPlan = Field( - title="Marketplace Listing Plan", description="Marketplace Listing Plan" - ) - - -class MarketplaceAccount(GitHubModel): - """Marketplace Account""" - - url: str = Field() + login: str = Field() id: int = Field() + user_view_type: Missing[str] = Field(default=UNSET) + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() type: str = Field() - node_id: Missing[str] = Field(default=UNSET) - login: str = Field() - email: Missing[Union[str, None]] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(UserMarketplacePurchase) -model_rebuild(MarketplaceAccount) + site_admin: bool = Field() + name: Union[str, None] = Field() + company: Union[str, None] = Field() + blog: Union[str, None] = Field() + location: Union[str, None] = Field() + email: Union[str, None] = Field() + notification_email: Missing[Union[str, None]] = Field(default=UNSET) + hireable: Union[bool, None] = Field() + bio: Union[str, None] = Field() + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + private_gists: int = Field() + total_private_repos: int = Field() + owned_private_repos: int = Field() + disk_usage: int = Field() + collaborators: int = Field() + two_factor_authentication: bool = Field() + plan: Missing[PrivateUserPropPlan] = Field(default=UNSET) + business_plus: Missing[bool] = Field(default=UNSET) + ldap_dn: Missing[str] = Field(default=UNSET) + + +class PrivateUserPropPlan(GitHubModel): + """PrivateUserPropPlan""" + + collaborators: int = Field() + name: str = Field() + space: int = Field() + private_repos: int = Field() + + +model_rebuild(PrivateUser) +model_rebuild(PrivateUserPropPlan) __all__ = ( - "MarketplaceAccount", - "UserMarketplacePurchase", + "PrivateUser", + "PrivateUserPropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0439.py b/githubkit/versions/ghec_v2022_11_28/models/group_0439.py index cae25bb86..f6bee6e63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0439.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0439.py @@ -14,16 +14,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class SocialAccount(GitHubModel): - """Social account +class CodespacesUserPublicKey(GitHubModel): + """CodespacesUserPublicKey - Social media account + The public key used for setting user Codespaces' Secrets. """ - provider: str = Field() - url: str = Field() + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(SocialAccount) +model_rebuild(CodespacesUserPublicKey) -__all__ = ("SocialAccount",) +__all__ = ("CodespacesUserPublicKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0440.py b/githubkit/versions/ghec_v2022_11_28/models/group_0440.py index e6313b836..48a2ada39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0440.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0440.py @@ -10,24 +10,43 @@ from __future__ import annotations from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class SshSigningKey(GitHubModel): - """SSH Signing Key +class CodespaceExportDetails(GitHubModel): + """Fetches information about an export of a codespace. - A public SSH key used to sign Git commits + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - key: str = Field() - id: int = Field() - title: str = Field() - created_at: datetime = Field() - - -model_rebuild(SshSigningKey) - -__all__ = ("SshSigningKey",) + state: Missing[Union[str, None]] = Field( + default=UNSET, description="State of the latest export" + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Completion time of the last export operation" + ) + branch: Missing[Union[str, None]] = Field( + default=UNSET, description="Name of the exported branch" + ) + sha: Missing[Union[str, None]] = Field( + default=UNSET, description="Git commit SHA of the exported branch" + ) + id: Missing[str] = Field(default=UNSET, description="Id for the export details") + export_url: Missing[str] = Field( + default=UNSET, description="Url for fetching export details" + ) + html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="Web url for the exported branch" + ) + + +model_rebuild(CodespaceExportDetails) + +__all__ = ("CodespaceExportDetails",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0441.py b/githubkit/versions/ghec_v2022_11_28/models/group_0441.py index 5a93a9886..1ce1f0bb3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0441.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0441.py @@ -10,24 +10,163 @@ from __future__ import annotations from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0019 import Repository +from .group_0003 import SimpleUser +from .group_0163 import CodespaceMachine +from .group_0200 import FullRepository -class StarredRepository(GitHubModel): - """Starred Repository +class CodespaceWithFullRepository(GitHubModel): + """Codespace - Starred Repository + A codespace. """ - starred_at: datetime = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") + id: int = Field() + name: str = Field(description="Automatically generated name of this codespace.") + display_name: Missing[Union[str, None]] = Field( + default=UNSET, description="Display name for this codespace." + ) + environment_id: Union[str, None] = Field( + description="UUID identifying this codespace's environment." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + billable_owner: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" + ) + machine: Union[None, CodespaceMachine] = Field() + devcontainer_path: Missing[Union[str, None]] = Field( + default=UNSET, + description="Path to devcontainer.json from repo root used to create Codespace.", + ) + prebuild: Union[bool, None] = Field( + description="Whether the codespace was created from a prebuild." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + last_used_at: datetime = Field( + description="Last known time this codespace was started." + ) + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] = Field(description="State of this codespace.") + url: str = Field(description="API URL for this codespace.") + git_status: CodespaceWithFullRepositoryPropGitStatus = Field( + description="Details about the codespace's git repository." + ) + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( + description="The initally assigned location of a new codespace." + ) + idle_timeout_minutes: Union[int, None] = Field( + description="The number of minutes of inactivity after which this codespace will be automatically stopped." + ) + web_url: str = Field(description="URL to access this codespace on the web.") + machines_url: str = Field( + description="API URL to access available alternate machine types for this codespace." + ) + start_url: str = Field(description="API URL to start this codespace.") + stop_url: str = Field(description="API URL to stop this codespace.") + publish_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="API URL to publish this codespace to a new repository.", + ) + pulls_url: Union[str, None] = Field( + description="API URL for the Pull Request associated with this codespace, if any." + ) + recent_folders: list[str] = Field() + runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( + Field(default=UNSET) + ) + pending_operation: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", + ) + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace is disabled by a pending operation", + ) + idle_timeout_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + ) + retention_period_minutes: Missing[Union[int, None]] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) + retention_expires_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', + ) -model_rebuild(StarredRepository) +class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): + """CodespaceWithFullRepositoryPropGitStatus -__all__ = ("StarredRepository",) + Details about the codespace's git repository. + """ + + ahead: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is ahead of the remote.", + ) + behind: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is behind the remote.", + ) + has_unpushed_changes: Missing[bool] = Field( + default=UNSET, description="Whether the local repository has unpushed changes." + ) + has_uncommitted_changes: Missing[bool] = Field( + default=UNSET, + description="Whether the local repository has uncommitted changes.", + ) + ref: Missing[str] = Field( + default=UNSET, + description="The current branch (or SHA if in detached HEAD state) of the local repository.", + ) + + +class CodespaceWithFullRepositoryPropRuntimeConstraints(GitHubModel): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" + + allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="The privacy settings a user can select from when forwarding a port.", + ) + + +model_rebuild(CodespaceWithFullRepository) +model_rebuild(CodespaceWithFullRepositoryPropGitStatus) +model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) + +__all__ = ( + "CodespaceWithFullRepository", + "CodespaceWithFullRepositoryPropGitStatus", + "CodespaceWithFullRepositoryPropRuntimeConstraints", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0442.py b/githubkit/versions/ghec_v2022_11_28/models/group_0442.py index 2258e2d95..1fb1f3941 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0442.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0442.py @@ -9,31 +9,25 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Hovercard(GitHubModel): - """Hovercard +class Email(GitHubModel): + """Email - Hovercard + Email """ - contexts: list[HovercardPropContextsItems] = Field() - - -class HovercardPropContextsItems(GitHubModel): - """HovercardPropContextsItems""" - - message: str = Field() - octicon: str = Field() + email: str = Field() + primary: bool = Field() + verified: bool = Field() + visibility: Union[str, None] = Field() -model_rebuild(Hovercard) -model_rebuild(HovercardPropContextsItems) +model_rebuild(Email) -__all__ = ( - "Hovercard", - "HovercardPropContextsItems", -) +__all__ = ("Email",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0443.py b/githubkit/versions/ghec_v2022_11_28/models/group_0443.py index fd0411072..f58661fe1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0443.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0443.py @@ -9,21 +9,80 @@ from __future__ import annotations +from datetime import datetime +from typing import Any, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class KeySimple(GitHubModel): - """Key Simple +class GpgKey(GitHubModel): + """GPG Key - Key Simple + A unique encryption key """ id: int = Field() - key: str = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + primary_key_id: Union[int, None] = Field() + key_id: str = Field() + public_key: str = Field() + emails: list[GpgKeyPropEmailsItems] = Field() + subkeys: list[GpgKeyPropSubkeysItems] = Field() + can_sign: bool = Field() + can_encrypt_comms: bool = Field() + can_encrypt_storage: bool = Field() + can_certify: bool = Field() + created_at: datetime = Field() + expires_at: Union[datetime, None] = Field() + revoked: bool = Field() + raw_key: Union[str, None] = Field() + + +class GpgKeyPropEmailsItems(GitHubModel): + """GpgKeyPropEmailsItems""" + + email: Missing[str] = Field(default=UNSET) + verified: Missing[bool] = Field(default=UNSET) + + +class GpgKeyPropSubkeysItems(GitHubModel): + """GpgKeyPropSubkeysItems""" + + id: Missing[int] = Field(default=UNSET) + primary_key_id: Missing[int] = Field(default=UNSET) + key_id: Missing[str] = Field(default=UNSET) + public_key: Missing[str] = Field(default=UNSET) + emails: Missing[list[GpgKeyPropSubkeysItemsPropEmailsItems]] = Field(default=UNSET) + subkeys: Missing[list[Any]] = Field(default=UNSET) + can_sign: Missing[bool] = Field(default=UNSET) + can_encrypt_comms: Missing[bool] = Field(default=UNSET) + can_encrypt_storage: Missing[bool] = Field(default=UNSET) + can_certify: Missing[bool] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + expires_at: Missing[Union[str, None]] = Field(default=UNSET) + raw_key: Missing[Union[str, None]] = Field(default=UNSET) + revoked: Missing[bool] = Field(default=UNSET) + + +class GpgKeyPropSubkeysItemsPropEmailsItems(GitHubModel): + """GpgKeyPropSubkeysItemsPropEmailsItems""" + + email: Missing[str] = Field(default=UNSET) + verified: Missing[bool] = Field(default=UNSET) -model_rebuild(KeySimple) +model_rebuild(GpgKey) +model_rebuild(GpgKeyPropEmailsItems) +model_rebuild(GpgKeyPropSubkeysItems) +model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) -__all__ = ("KeySimple",) +__all__ = ( + "GpgKey", + "GpgKeyPropEmailsItems", + "GpgKeyPropSubkeysItems", + "GpgKeyPropSubkeysItemsPropEmailsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0444.py b/githubkit/versions/ghec_v2022_11_28/models/group_0444.py index 83a049f94..f75f4e54d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0444.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0444.py @@ -10,42 +10,27 @@ from __future__ import annotations from datetime import datetime -from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class EnterpriseWebhooks(GitHubModel): - """Enterprise +class Key(GitHubModel): + """Key - An enterprise on GitHub. Webhook payloads contain the `enterprise` property when - the webhook is configured - on an enterprise account or an organization that's part of an enterprise - account. For more information, - see "[About enterprise accounts](https://docs.github.com/enterprise- - cloud@latest//admin/overview/about-enterprise-accounts)." + Key """ - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the enterprise." - ) - html_url: str = Field() - website_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The enterprise's website URL." - ) - id: int = Field(description="Unique identifier of the enterprise") - node_id: str = Field() - name: str = Field(description="The name of the enterprise.") - slug: str = Field(description="The slug url identifier for the enterprise.") - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - avatar_url: str = Field() - - -model_rebuild(EnterpriseWebhooks) - -__all__ = ("EnterpriseWebhooks",) + key: str = Field() + id: int = Field() + url: str = Field() + title: str = Field() + created_at: datetime = Field() + verified: bool = Field() + read_only: bool = Field() + + +model_rebuild(Key) + +__all__ = ("Key",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0445.py b/githubkit/versions/ghec_v2022_11_28/models/group_0445.py index b18d5d9e7..699f489b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0445.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0445.py @@ -9,26 +9,52 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0149 import MarketplaceListingPlan -class SimpleInstallation(GitHubModel): - """Simple Installation - - The GitHub App installation. Webhook payloads contain the `installation` - property when the event is configured - for and sent to a GitHub App. For more information, - see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise- - cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks- - with-github-apps)." - """ - id: int = Field(description="The ID of the installation.") - node_id: str = Field(description="The global node ID of the installation.") +class UserMarketplacePurchase(GitHubModel): + """User Marketplace Purchase + User Marketplace Purchase + """ -model_rebuild(SimpleInstallation) - -__all__ = ("SimpleInstallation",) + billing_cycle: str = Field() + next_billing_date: Union[datetime, None] = Field() + unit_count: Union[int, None] = Field() + on_free_trial: bool = Field() + free_trial_ends_on: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + account: MarketplaceAccount = Field(title="Marketplace Account") + plan: MarketplaceListingPlan = Field( + title="Marketplace Listing Plan", description="Marketplace Listing Plan" + ) + + +class MarketplaceAccount(GitHubModel): + """Marketplace Account""" + + url: str = Field() + id: int = Field() + type: str = Field() + node_id: Missing[str] = Field(default=UNSET) + login: str = Field() + email: Missing[Union[str, None]] = Field(default=UNSET) + organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(UserMarketplacePurchase) +model_rebuild(MarketplaceAccount) + +__all__ = ( + "MarketplaceAccount", + "UserMarketplacePurchase", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0446.py b/githubkit/versions/ghec_v2022_11_28/models/group_0446.py index 29be5dd8a..cae25bb86 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0446.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0446.py @@ -9,36 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrganizationSimpleWebhooks(GitHubModel): - """Organization Simple +class SocialAccount(GitHubModel): + """Social account - A GitHub organization. Webhook payloads contain the `organization` property when - the webhook is configured for an - organization, or when the event occurs from activity in a repository owned by an - organization. + Social media account """ - login: str = Field() - id: int = Field() - node_id: str = Field() + provider: str = Field() url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() -model_rebuild(OrganizationSimpleWebhooks) +model_rebuild(SocialAccount) -__all__ = ("OrganizationSimpleWebhooks",) +__all__ = ("SocialAccount",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0447.py b/githubkit/versions/ghec_v2022_11_28/models/group_0447.py index f0b50da78..e6313b836 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0447.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0447.py @@ -10,371 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0018 import LicenseSimple +class SshSigningKey(GitHubModel): + """SSH Signing Key -class RepositoryWebhooks(GitHubModel): - """Repository - - The repository on GitHub where the event occurred. Webhook payloads contain the - `repository` property - when the event occurs from activity in a repository. - """ - - id: int = Field(description="Unique identifier of the repository") - node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - forks: int = Field() - permissions: Missing[RepositoryWebhooksPropPermissions] = Field(default=UNSET) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field( - default=False, description="Whether the repository is private or public." - ) - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[list[str]] = Field(default=UNSET) - custom_properties: Missing[RepositoryWebhooksPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - template_repository: Missing[ - Union[RepositoryWebhooksPropTemplateRepository, None] - ] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - starred_at: Missing[str] = Field(default=UNSET) - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether anonymous git access is enabled for this repository", - ) - - -class RepositoryWebhooksPropPermissions(GitHubModel): - """RepositoryWebhooksPropPermissions""" - - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - - -class RepositoryWebhooksPropCustomProperties(ExtraGitHubModel): - """RepositoryWebhooksPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. + A public SSH key used to sign Git commits """ - -class RepositoryWebhooksPropTemplateRepository(GitHubModel): - """RepositoryWebhooksPropTemplateRepository""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( - default=UNSET - ) - private: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - language: Missing[str] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[RepositoryWebhooksPropTemplateRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) + key: str = Field() + id: int = Field() + title: str = Field() + created_at: datetime = Field() -model_rebuild(RepositoryWebhooks) -model_rebuild(RepositoryWebhooksPropPermissions) -model_rebuild(RepositoryWebhooksPropCustomProperties) -model_rebuild(RepositoryWebhooksPropTemplateRepository) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) +model_rebuild(SshSigningKey) -__all__ = ( - "RepositoryWebhooks", - "RepositoryWebhooksPropCustomProperties", - "RepositoryWebhooksPropPermissions", - "RepositoryWebhooksPropTemplateRepository", - "RepositoryWebhooksPropTemplateRepositoryPropOwner", - "RepositoryWebhooksPropTemplateRepositoryPropPermissions", -) +__all__ = ("SshSigningKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0448.py b/githubkit/versions/ghec_v2022_11_28/models/group_0448.py index 2d428cd2e..3c3baecb3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0448.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0448.py @@ -10,80 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0020 import Repository -class WebhooksRule(GitHubModel): - """branch protection rule - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/enterprise-cloud@latest//github/administering- - a-repository/defining-the-mergeability-of-pull-requests/about-protected- - branches#about-branch-protection-settings) applied to branches that match the - name. Binary settings are boolean. Multi-level configurations are one of `off`, - `non_admins`, or `everyone`. Actor and build lists are arrays of strings. +class StarredRepository(GitHubModel): + """Starred Repository + + Starred Repository """ - admin_enforced: bool = Field() - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - authorized_actor_names: list[str] = Field() - authorized_actors_only: bool = Field() - authorized_dismissal_actors_only: bool = Field() - create_protected: Missing[bool] = Field(default=UNSET) - created_at: datetime = Field() - dismiss_stale_reviews_on_push: bool = Field() - id: int = Field() - ignore_approvals_from_contributors: bool = Field() - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] = Field( - description="The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone." - ) - lock_allows_fork_sync: Missing[bool] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow users to pull changes from upstream when the branch is locked. This setting is only applicable for forks.", - ) - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() - name: str = Field() - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - repository_id: int = Field() - require_code_owner_review: bool = Field() - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it", - ) - required_approving_review_count: int = Field() - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_status_checks: list[str] = Field() - required_status_checks_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - signature_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - strict_required_status_checks_policy: bool = Field() - updated_at: datetime = Field() + starred_at: datetime = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") -model_rebuild(WebhooksRule) +model_rebuild(StarredRepository) -__all__ = ("WebhooksRule",) +__all__ = ("StarredRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0449.py b/githubkit/versions/ghec_v2022_11_28/models/group_0449.py index ed0d2ff55..2258e2d95 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0449.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0449.py @@ -9,46 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ExemptionResponse(GitHubModel): - """Exemption response +class Hovercard(GitHubModel): + """Hovercard - A response to an exemption request by a delegated bypasser. + Hovercard """ - id: Missing[int] = Field( - default=UNSET, description="The ID of the exemption response." - ) - reviewer_id: Missing[int] = Field( - default=UNSET, - description="The ID of the user who reviewed the exemption request.", - ) - reviewer_login: Missing[str] = Field( - default=UNSET, - description="The login of the user who reviewed the exemption request.", - ) - status: Missing[Literal["approved", "rejected", "dismissed"]] = Field( - default=UNSET, description="The status of the exemption response." - ) - reviewer_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment the reviewer provided when responding to the exemption request.", - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the exemption request was created.", - ) - - -model_rebuild(ExemptionResponse) - -__all__ = ("ExemptionResponse",) + contexts: list[HovercardPropContextsItems] = Field() + + +class HovercardPropContextsItems(GitHubModel): + """HovercardPropContextsItems""" + + message: str = Field() + octicon: str = Field() + + +model_rebuild(Hovercard) +model_rebuild(HovercardPropContextsItems) + +__all__ = ( + "Hovercard", + "HovercardPropContextsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0450.py b/githubkit/versions/ghec_v2022_11_28/models/group_0450.py index 479c0dd4a..fd0411072 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0450.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0450.py @@ -9,181 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0449 import ExemptionResponse - - -class ExemptionRequest(GitHubModel): - """Exemption Request - - A request from a user to be exempted from a set of rules. - """ - - id: Missing[int] = Field( - default=UNSET, description="The ID of the exemption request." - ) - number: Missing[int] = Field( - default=UNSET, - description="The number uniquely identifying the exemption request within it's repository.", - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository the exemption request is for.", - ) - requester_id: Missing[int] = Field( - default=UNSET, description="The ID of the user who requested the exemption." - ) - requester_login: Missing[str] = Field( - default=UNSET, description="The login of the user who requested the exemption." - ) - request_type: Missing[Literal["push_ruleset_bypass", "secret_scanning"]] = Field( - default=UNSET, description="The type of request." - ) - exemption_request_data: Missing[ - Union[ExemptionRequestPushRulesetBypass, ExemptionRequestSecretScanning] - ] = Field(default=UNSET) - resource_identifier: Missing[str] = Field( - default=UNSET, - description="The unique identifier for the request type of the exemption request. For example, a commit SHA.", - ) - status: Missing[Literal["pending", "rejected", "cancelled", "completed"]] = Field( - default=UNSET, description="The status of the exemption request." - ) - requester_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment the requester provided when creating the exemption request.", - ) - metadata: Missing[Union[ExemptionRequestSecretScanningMetadata, None]] = Field( - default=UNSET, description="Metadata about the exemption request." - ) - expires_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the exemption request will expire.", - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the exemption request was created.", - ) - responses: Missing[Union[list[ExemptionResponse], None]] = Field( - default=UNSET, description="The responses to the exemption request." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The URL to view the exemption request in a browser." - ) - - -class ExemptionRequestSecretScanningMetadata(GitHubModel): - """Secret Scanning Push Protection Exemption Request Metadata - - Metadata for a secret scanning push protection exemption request. - """ - - label: Missing[str] = Field( - default=UNSET, description="The label for the secret type" - ) - reason: Missing[Literal["fixed_later", "false_positive", "tests"]] = Field( - default=UNSET, description="The reason for the exemption request" - ) - -class ExemptionRequestPushRulesetBypass(GitHubModel): - """Push ruleset bypass exemption request data - Push rules that are being requested to be bypassed. - """ - - type: Missing[Literal["push_ruleset_bypass"]] = Field( - default=UNSET, description="The type of request" - ) - data: Missing[list[ExemptionRequestPushRulesetBypassPropDataItems]] = Field( - default=UNSET, - description="The data pertaining to the push rules that are being requested to be bypassed.", - ) - - -class ExemptionRequestPushRulesetBypassPropDataItems(GitHubModel): - """ExemptionRequestPushRulesetBypassPropDataItems""" - - ruleset_id: Missing[int] = Field( - default=UNSET, - description="The ID of the ruleset for the rules that were violated", - ) - ruleset_name: Missing[str] = Field( - default=UNSET, - description="The name of the ruleset for the rules that were violated", - ) - total_violations: Missing[int] = Field( - default=UNSET, description="The number of violations" - ) - rule_type: Missing[str] = Field( - default=UNSET, description="The type of rule that was violated" - ) - - -class ExemptionRequestSecretScanning(GitHubModel): - """Secret scanning push protection exemption request data +class KeySimple(GitHubModel): + """Key Simple - Secret scanning push protections that are being requested to be bypassed. + Key Simple """ - type: Missing[Literal["secret_scanning"]] = Field( - default=UNSET, description="The type of request" - ) - data: Missing[list[ExemptionRequestSecretScanningPropDataItems]] = Field( - default=UNSET, - description="The data pertaining to the secret scanning push protections that are being requested to be bypassed.", - ) - - -class ExemptionRequestSecretScanningPropDataItems(GitHubModel): - """ExemptionRequestSecretScanningPropDataItems""" - - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that was detected" - ) - locations: Missing[ - list[ExemptionRequestSecretScanningPropDataItemsPropLocationsItems] - ] = Field( - default=UNSET, description="The location data of the secret that was detected" - ) - - -class ExemptionRequestSecretScanningPropDataItemsPropLocationsItems(GitHubModel): - """ExemptionRequestSecretScanningPropDataItemsPropLocationsItems""" - - commit: Missing[str] = Field( - default=UNSET, description="The commit SHA where the secret was detected" - ) - branch: Missing[str] = Field( - default=UNSET, description="The branch where the secret was detected" - ) - path: Missing[str] = Field( - default=UNSET, description="The path of the file where the secret was detected" - ) + id: int = Field() + key: str = Field() -model_rebuild(ExemptionRequest) -model_rebuild(ExemptionRequestSecretScanningMetadata) -model_rebuild(ExemptionRequestPushRulesetBypass) -model_rebuild(ExemptionRequestPushRulesetBypassPropDataItems) -model_rebuild(ExemptionRequestSecretScanning) -model_rebuild(ExemptionRequestSecretScanningPropDataItems) -model_rebuild(ExemptionRequestSecretScanningPropDataItemsPropLocationsItems) +model_rebuild(KeySimple) -__all__ = ( - "ExemptionRequest", - "ExemptionRequestPushRulesetBypass", - "ExemptionRequestPushRulesetBypassPropDataItems", - "ExemptionRequestSecretScanning", - "ExemptionRequestSecretScanningMetadata", - "ExemptionRequestSecretScanningPropDataItems", - "ExemptionRequestSecretScanningPropDataItemsPropLocationsItems", -) +__all__ = ("KeySimple",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0451.py b/githubkit/versions/ghec_v2022_11_28/models/group_0451.py index 4eb37b762..83a049f94 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0451.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0451.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,58 +18,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0008 import Integration -from .group_0147 import MinimalRepository -from .group_0220 import PullRequestMinimal +class EnterpriseWebhooks(GitHubModel): + """Enterprise -class SimpleCheckSuite(GitHubModel): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + An enterprise on GitHub. Webhook payloads contain the `enterprise` property when + the webhook is configured + on an enterprise account or an organization that's part of an enterprise + account. For more information, + see "[About enterprise accounts](https://docs.github.com/enterprise- + cloud@latest//admin/overview/about-enterprise-accounts)." """ - after: Missing[Union[str, None]] = Field(default=UNSET) - app: Missing[Union[Integration, None]] = Field( - default=UNSET, - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field(default=UNSET) - head_sha: Missing[str] = Field( - default=UNSET, description="The SHA of the head commit that is being checked." + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the enterprise." ) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - pull_requests: Missing[list[PullRequestMinimal]] = Field(default=UNSET) - repository: Missing[MinimalRepository] = Field( - default=UNSET, title="Minimal Repository", description="Minimal Repository" + html_url: str = Field() + website_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The enterprise's website URL." ) - status: Missing[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the enterprise") + node_id: str = Field() + name: str = Field(description="The name of the enterprise.") + slug: str = Field(description="The slug url identifier for the enterprise.") + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + avatar_url: str = Field() -model_rebuild(SimpleCheckSuite) +model_rebuild(EnterpriseWebhooks) -__all__ = ("SimpleCheckSuite",) +__all__ = ("EnterpriseWebhooks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0452.py b/githubkit/versions/ghec_v2022_11_28/models/group_0452.py index 1757b599e..b18d5d9e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0452.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0452.py @@ -9,83 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0008 import Integration -from .group_0220 import PullRequestMinimal -from .group_0247 import DeploymentSimple -from .group_0451 import SimpleCheckSuite -class CheckRunWithSimpleCheckSuite(GitHubModel): - """CheckRun +class SimpleInstallation(GitHubModel): + """Simple Installation - A check performed on the code of a given code change + The GitHub App installation. Webhook payloads contain the `installation` + property when the event is configured + for and sent to a GitHub App. For more information, + see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise- + cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks- + with-github-apps)." """ - app: Union[None, Integration, None] = Field() - check_suite: SimpleCheckSuite = Field( - description="A suite of checks performed on the code of a given code change" - ) - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - deployment: Missing[DeploymentSimple] = Field( - default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", - ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check.") - node_id: str = Field() - output: CheckRunWithSimpleCheckSuitePropOutput = Field() - pull_requests: list[PullRequestMinimal] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "pending"] = Field( - description="The phase of the lifecycle that the check is currently in." - ) - url: str = Field() - - -class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): - """CheckRunWithSimpleCheckSuitePropOutput""" - - annotations_count: int = Field() - annotations_url: str = Field() - summary: Union[str, None] = Field() - text: Union[str, None] = Field() - title: Union[str, None] = Field() + id: int = Field(description="The ID of the installation.") + node_id: str = Field(description="The global node ID of the installation.") -model_rebuild(CheckRunWithSimpleCheckSuite) -model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) +model_rebuild(SimpleInstallation) -__all__ = ( - "CheckRunWithSimpleCheckSuite", - "CheckRunWithSimpleCheckSuitePropOutput", -) +__all__ = ("SimpleInstallation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0453.py b/githubkit/versions/ghec_v2022_11_28/models/group_0453.py index 6b4e7d161..29be5dd8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0453.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0453.py @@ -14,29 +14,31 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksDeployKey(GitHubModel): - """WebhooksDeployKey +class OrganizationSimpleWebhooks(GitHubModel): + """Organization Simple - The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- - keys/deploy-keys#get-a-deploy-key) resource. + A GitHub organization. Webhook payloads contain the `organization` property when + the webhook is configured for an + organization, or when the event occurs from activity in a repository owned by an + organization. """ - added_by: Missing[Union[str, None]] = Field(default=UNSET) - created_at: str = Field() + login: str = Field() id: int = Field() - key: str = Field() - last_used: Missing[Union[str, None]] = Field(default=UNSET) - read_only: bool = Field() - title: str = Field() + node_id: str = Field() url: str = Field() - verified: bool = Field() - enabled: Missing[bool] = Field(default=UNSET) + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() -model_rebuild(WebhooksDeployKey) +model_rebuild(OrganizationSimpleWebhooks) -__all__ = ("WebhooksDeployKey",) +__all__ = ("OrganizationSimpleWebhooks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0454.py b/githubkit/versions/ghec_v2022_11_28/models/group_0454.py index 8e1eed602..e9224aa34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0454.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0454.py @@ -10,27 +10,371 @@ from __future__ import annotations from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple -class WebhooksWorkflow(GitHubModel): - """Workflow""" - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() +class RepositoryWebhooks(GitHubModel): + """Repository + + The repository on GitHub where the event occurred. Webhook payloads contain the + `repository` property + when the event occurs from activity in a repository. + """ + + id: int = Field(description="Unique identifier of the repository") node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() + name: str = Field(description="The name of the repository.") + full_name: str = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + forks: int = Field() + permissions: Missing[RepositoryWebhooksPropPermissions] = Field(default=UNSET) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field( + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + ) + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[list[str]] = Field(default=UNSET) + custom_properties: Missing[RepositoryWebhooksPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + template_repository: Missing[ + Union[RepositoryWebhooksPropTemplateRepository, None] + ] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + starred_at: Missing[str] = Field(default=UNSET) + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether anonymous git access is enabled for this repository", + ) + + +class RepositoryWebhooksPropPermissions(GitHubModel): + """RepositoryWebhooksPropPermissions""" + + admin: bool = Field() + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + + +class RepositoryWebhooksPropCustomProperties(ExtraGitHubModel): + """RepositoryWebhooksPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class RepositoryWebhooksPropTemplateRepository(GitHubModel): + """RepositoryWebhooksPropTemplateRepository""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( + default=UNSET + ) + private: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + language: Missing[str] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + permissions: Missing[RepositoryWebhooksPropTemplateRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_update_branch: Missing[bool] = Field(default=UNSET) + use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + + +class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): + """RepositoryWebhooksPropTemplateRepositoryPropOwner""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + + +class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): + """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" + + admin: Missing[bool] = Field(default=UNSET) + maintain: Missing[bool] = Field(default=UNSET) + push: Missing[bool] = Field(default=UNSET) + triage: Missing[bool] = Field(default=UNSET) + pull: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhooksWorkflow) +model_rebuild(RepositoryWebhooks) +model_rebuild(RepositoryWebhooksPropPermissions) +model_rebuild(RepositoryWebhooksPropCustomProperties) +model_rebuild(RepositoryWebhooksPropTemplateRepository) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) -__all__ = ("WebhooksWorkflow",) +__all__ = ( + "RepositoryWebhooks", + "RepositoryWebhooksPropCustomProperties", + "RepositoryWebhooksPropPermissions", + "RepositoryWebhooksPropTemplateRepository", + "RepositoryWebhooksPropTemplateRepositoryPropOwner", + "RepositoryWebhooksPropTemplateRepositoryPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0455.py b/githubkit/versions/ghec_v2022_11_28/models/group_0455.py index a9b088555..2d428cd2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0455.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0455.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from pydantic import Field @@ -18,71 +19,71 @@ from githubkit.utils import UNSET -class WebhooksApprover(GitHubModel): - """WebhooksApprover""" +class WebhooksRule(GitHubModel): + """branch protection rule - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/enterprise-cloud@latest//github/administering- + a-repository/defining-the-mergeability-of-pull-requests/about-protected- + branches#about-branch-protection-settings) applied to branches that match the + name. Binary settings are boolean. Multi-level configurations are one of `off`, + `non_admins`, or `everyone`. Actor and build lists are arrays of strings. + """ - -class WebhooksReviewersItems(GitHubModel): - """WebhooksReviewersItems""" - - reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( - default=UNSET, title="User" + admin_enforced: bool = Field() + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() ) - type: Missing[Literal["User"]] = Field(default=UNSET) - - -class WebhooksReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + authorized_actor_names: list[str] = Field() + authorized_actors_only: bool = Field() + authorized_dismissal_actors_only: bool = Field() + create_protected: Missing[bool] = Field(default=UNSET) + created_at: datetime = Field() + dismiss_stale_reviews_on_push: bool = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + ignore_approvals_from_contributors: bool = Field() + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] = Field( + description="The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone." + ) + lock_allows_fork_sync: Missing[bool] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow users to pull changes from upstream when the branch is locked. This setting is only applicable for forks.", + ) + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() + name: str = Field() + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + repository_id: int = Field() + require_code_owner_review: bool = Field() + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it", + ) + required_approving_review_count: int = Field() + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + required_status_checks: list[str] = Field() + required_status_checks_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + signature_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + strict_required_status_checks_policy: bool = Field() + updated_at: datetime = Field() -model_rebuild(WebhooksApprover) -model_rebuild(WebhooksReviewersItems) -model_rebuild(WebhooksReviewersItemsPropReviewer) +model_rebuild(WebhooksRule) -__all__ = ( - "WebhooksApprover", - "WebhooksReviewersItems", - "WebhooksReviewersItemsPropReviewer", -) +__all__ = ("WebhooksRule",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0456.py b/githubkit/versions/ghec_v2022_11_28/models/group_0456.py index 291bcddcd..ed0d2ff55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0456.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0456.py @@ -9,24 +9,46 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class WebhooksWorkflowJobRun(GitHubModel): - """WebhooksWorkflowJobRun""" - - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() - html_url: str = Field() - id: int = Field() - name: None = Field() - status: str = Field() - updated_at: str = Field() - - -model_rebuild(WebhooksWorkflowJobRun) - -__all__ = ("WebhooksWorkflowJobRun",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ExemptionResponse(GitHubModel): + """Exemption response + + A response to an exemption request by a delegated bypasser. + """ + + id: Missing[int] = Field( + default=UNSET, description="The ID of the exemption response." + ) + reviewer_id: Missing[int] = Field( + default=UNSET, + description="The ID of the user who reviewed the exemption request.", + ) + reviewer_login: Missing[str] = Field( + default=UNSET, + description="The login of the user who reviewed the exemption request.", + ) + status: Missing[Literal["approved", "rejected", "dismissed"]] = Field( + default=UNSET, description="The status of the exemption response." + ) + reviewer_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment the reviewer provided when responding to the exemption request.", + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the exemption request was created.", + ) + + +model_rebuild(ExemptionResponse) + +__all__ = ("ExemptionResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0457.py b/githubkit/versions/ghec_v2022_11_28/models/group_0457.py index 13da347fc..8b4f2a053 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0457.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0457.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,34 +18,172 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0456 import ExemptionResponse -class WebhooksUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksUser) - -__all__ = ("WebhooksUser",) + +class ExemptionRequest(GitHubModel): + """Exemption Request + + A request from a user to be exempted from a set of rules. + """ + + id: Missing[int] = Field( + default=UNSET, description="The ID of the exemption request." + ) + number: Missing[int] = Field( + default=UNSET, + description="The number uniquely identifying the exemption request within it's repository.", + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository the exemption request is for.", + ) + requester_id: Missing[int] = Field( + default=UNSET, description="The ID of the user who requested the exemption." + ) + requester_login: Missing[str] = Field( + default=UNSET, description="The login of the user who requested the exemption." + ) + request_type: Missing[Literal["push_ruleset_bypass", "secret_scanning"]] = Field( + default=UNSET, description="The type of request." + ) + exemption_request_data: Missing[ + Union[ExemptionRequestPushRulesetBypass, ExemptionRequestSecretScanning] + ] = Field(default=UNSET) + resource_identifier: Missing[str] = Field( + default=UNSET, + description="The unique identifier for the request type of the exemption request. For example, a commit SHA.", + ) + status: Missing[Literal["pending", "rejected", "cancelled", "completed"]] = Field( + default=UNSET, description="The status of the exemption request." + ) + requester_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment the requester provided when creating the exemption request.", + ) + metadata: Missing[Union[ExemptionRequestSecretScanningMetadata, None]] = Field( + default=UNSET, description="Metadata about the exemption request." + ) + expires_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the exemption request will expire.", + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the exemption request was created.", + ) + responses: Missing[Union[list[ExemptionResponse], None]] = Field( + default=UNSET, description="The responses to the exemption request." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The URL to view the exemption request in a browser." + ) + + +class ExemptionRequestSecretScanningMetadata(GitHubModel): + """Secret Scanning Push Protection Exemption Request Metadata + + Metadata for a secret scanning push protection exemption request. + """ + + label: Missing[str] = Field( + default=UNSET, description="The label for the secret type" + ) + reason: Missing[Literal["fixed_later", "false_positive", "tests"]] = Field( + default=UNSET, description="The reason for the exemption request" + ) + + +class ExemptionRequestPushRulesetBypass(GitHubModel): + """Push ruleset bypass exemption request data + + Push rules that are being requested to be bypassed. + """ + + type: Missing[Literal["push_ruleset_bypass"]] = Field( + default=UNSET, description="The type of request" + ) + data: Missing[list[ExemptionRequestPushRulesetBypassPropDataItems]] = Field( + default=UNSET, + description="The data pertaining to the push rules that are being requested to be bypassed.", + ) + + +class ExemptionRequestPushRulesetBypassPropDataItems(GitHubModel): + """ExemptionRequestPushRulesetBypassPropDataItems""" + + ruleset_id: Missing[int] = Field( + default=UNSET, + description="The ID of the ruleset for the rules that were violated", + ) + ruleset_name: Missing[str] = Field( + default=UNSET, + description="The name of the ruleset for the rules that were violated", + ) + total_violations: Missing[int] = Field( + default=UNSET, description="The number of violations" + ) + rule_type: Missing[str] = Field( + default=UNSET, description="The type of rule that was violated" + ) + + +class ExemptionRequestSecretScanning(GitHubModel): + """Secret scanning push protection exemption request data + + Secret scanning push protections that are being requested to be bypassed. + """ + + type: Missing[Literal["secret_scanning"]] = Field( + default=UNSET, description="The type of request" + ) + data: Missing[list[ExemptionRequestSecretScanningPropDataItems]] = Field( + default=UNSET, + description="The data pertaining to the secret scanning push protections that are being requested to be bypassed.", + ) + + +class ExemptionRequestSecretScanningPropDataItems(GitHubModel): + """ExemptionRequestSecretScanningPropDataItems""" + + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that was detected" + ) + locations: Missing[ + list[ExemptionRequestSecretScanningPropDataItemsPropLocationsItems] + ] = Field( + default=UNSET, description="The location data of the secret that was detected" + ) + + +class ExemptionRequestSecretScanningPropDataItemsPropLocationsItems(GitHubModel): + """ExemptionRequestSecretScanningPropDataItemsPropLocationsItems""" + + commit: Missing[str] = Field( + default=UNSET, description="The commit SHA where the secret was detected" + ) + branch: Missing[str] = Field( + default=UNSET, description="The branch where the secret was detected" + ) + path: Missing[str] = Field( + default=UNSET, description="The path of the file where the secret was detected" + ) + + +model_rebuild(ExemptionRequest) +model_rebuild(ExemptionRequestSecretScanningMetadata) +model_rebuild(ExemptionRequestPushRulesetBypass) +model_rebuild(ExemptionRequestPushRulesetBypassPropDataItems) +model_rebuild(ExemptionRequestSecretScanning) +model_rebuild(ExemptionRequestSecretScanningPropDataItems) +model_rebuild(ExemptionRequestSecretScanningPropDataItemsPropLocationsItems) + +__all__ = ( + "ExemptionRequest", + "ExemptionRequestPushRulesetBypass", + "ExemptionRequestPushRulesetBypassPropDataItems", + "ExemptionRequestSecretScanning", + "ExemptionRequestSecretScanningMetadata", + "ExemptionRequestSecretScanningPropDataItems", + "ExemptionRequestSecretScanningPropDataItemsPropLocationsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0458.py b/githubkit/versions/ghec_v2022_11_28/models/group_0458.py index ff2aa46c5..e37e21539 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0458.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0458.py @@ -18,87 +18,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0154 import MinimalRepository +from .group_0227 import PullRequestMinimal -class WebhooksAnswer(GitHubModel): - """WebhooksAnswer""" - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() - created_at: datetime = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: None = Field() - reactions: Missing[WebhooksAnswerPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() - updated_at: datetime = Field() - user: Union[WebhooksAnswerPropUser, None] = Field(title="User") - - -class WebhooksAnswerPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class SimpleCheckSuite(GitHubModel): + """SimpleCheckSuite + A suite of checks performed on the code of a given code change + """ -class WebhooksAnswerPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + after: Missing[Union[str, None]] = Field(default=UNSET) + app: Missing[Union[Integration, None]] = Field( + default=UNSET, + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field(default=UNSET) + head_sha: Missing[str] = Field( + default=UNSET, description="The SHA of the head commit that is being checked." + ) + id: Missing[int] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + pull_requests: Missing[list[PullRequestMinimal]] = Field(default=UNSET) + repository: Missing[MinimalRepository] = Field( + default=UNSET, title="Minimal Repository", description="Minimal Repository" + ) + status: Missing[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksAnswer) -model_rebuild(WebhooksAnswerPropReactions) -model_rebuild(WebhooksAnswerPropUser) +model_rebuild(SimpleCheckSuite) -__all__ = ( - "WebhooksAnswer", - "WebhooksAnswerPropReactions", - "WebhooksAnswerPropUser", -) +__all__ = ("SimpleCheckSuite",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0459.py b/githubkit/versions/ghec_v2022_11_28/models/group_0459.py index 3c0d2a361..7767f3099 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0459.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0459.py @@ -18,174 +18,74 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0227 import PullRequestMinimal +from .group_0254 import DeploymentSimple +from .group_0458 import SimpleCheckSuite -class Discussion(GitHubModel): - """Discussion - A Discussion in a repository. +class CheckRunWithSimpleCheckSuite(GitHubModel): + """CheckRun + + A check performed on the code of a given code change """ - active_lock_reason: Union[str, None] = Field() - answer_chosen_at: Union[str, None] = Field() - answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") - answer_html_url: Union[str, None] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + app: Union[None, Integration, None] = Field() + check_suite: SimpleCheckSuite = Field( + description="A suite of checks performed on the code of a given code change" + ) + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + deployment: Missing[DeploymentSimple] = Field( + default=UNSET, + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", ) - body: str = Field() - category: DiscussionPropCategory = Field() - comments: int = Field() - created_at: datetime = Field() + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") html_url: str = Field() - id: int = Field() - locked: bool = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check.") node_id: str = Field() - number: int = Field() - reactions: Missing[DiscussionPropReactions] = Field( - default=UNSET, title="Reactions" + output: CheckRunWithSimpleCheckSuitePropOutput = Field() + pull_requests: list[PullRequestMinimal] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "pending"] = Field( + description="The phase of the lifecycle that the check is currently in." ) - repository_url: str = Field() - state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( - description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." - ) - state_reason: Union[ - None, Literal["resolved", "outdated", "duplicate", "reopened"] - ] = Field(description="The reason for the current state") - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field() - updated_at: datetime = Field() - user: Union[DiscussionPropUser, None] = Field(title="User") - labels: Missing[list[Label]] = Field(default=UNSET) - - -class Label(GitHubModel): - """Label - - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). - """ + url: str = Field() - id: int = Field(description="Unique identifier for the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - name: str = Field(description="The name of the label.") - description: Union[str, None] = Field( - description="Optional description of the label, such as its purpose." - ) - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field( - description="Whether this label comes by default in a new repository." - ) +class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): + """CheckRunWithSimpleCheckSuitePropOutput""" -class DiscussionPropAnswerChosenBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class DiscussionPropCategory(GitHubModel): - """DiscussionPropCategory""" - - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() - id: int = Field() - is_answerable: bool = Field() - name: str = Field() - node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() - - -class DiscussionPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + annotations_count: int = Field() + annotations_url: str = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + title: Union[str, None] = Field() -class DiscussionPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(Discussion) -model_rebuild(Label) -model_rebuild(DiscussionPropAnswerChosenBy) -model_rebuild(DiscussionPropCategory) -model_rebuild(DiscussionPropReactions) -model_rebuild(DiscussionPropUser) +model_rebuild(CheckRunWithSimpleCheckSuite) +model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) __all__ = ( - "Discussion", - "DiscussionPropAnswerChosenBy", - "DiscussionPropCategory", - "DiscussionPropReactions", - "DiscussionPropUser", - "Label", + "CheckRunWithSimpleCheckSuite", + "CheckRunWithSimpleCheckSuitePropOutput", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0460.py b/githubkit/versions/ghec_v2022_11_28/models/group_0460.py index 2e01fc5dd..6b4e7d161 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0460.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0460.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,84 +18,25 @@ from githubkit.utils import UNSET -class WebhooksComment(GitHubModel): - """WebhooksComment""" +class WebhooksDeployKey(GitHubModel): + """WebhooksDeployKey - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() + The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- + keys/deploy-keys#get-a-deploy-key) resource. + """ + + added_by: Missing[Union[str, None]] = Field(default=UNSET) created_at: str = Field() - discussion_id: int = Field() - html_url: str = Field() id: int = Field() - node_id: str = Field() - parent_id: Union[int, None] = Field() - reactions: WebhooksCommentPropReactions = Field(title="Reactions") - repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhooksCommentPropUser, None] = Field(title="User") - - -class WebhooksCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + key: str = Field() + last_used: Missing[Union[str, None]] = Field(default=UNSET) + read_only: bool = Field() + title: str = Field() url: str = Field() + verified: bool = Field() + enabled: Missing[bool] = Field(default=UNSET) -class WebhooksCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksComment) -model_rebuild(WebhooksCommentPropReactions) -model_rebuild(WebhooksCommentPropUser) +model_rebuild(WebhooksDeployKey) -__all__ = ( - "WebhooksComment", - "WebhooksCommentPropReactions", - "WebhooksCommentPropUser", -) +__all__ = ("WebhooksDeployKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0461.py b/githubkit/versions/ghec_v2022_11_28/models/group_0461.py index 6e6effd19..8e1eed602 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0461.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0461.py @@ -9,27 +9,28 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class WebhooksLabel(GitHubModel): - """Label""" +class WebhooksWorkflow(GitHubModel): + """Workflow""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() + badge_url: str = Field() + created_at: datetime = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + name: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") + path: str = Field() + state: str = Field() + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhooksLabel) +model_rebuild(WebhooksWorkflow) -__all__ = ("WebhooksLabel",) +__all__ = ("WebhooksWorkflow",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0462.py b/githubkit/versions/ghec_v2022_11_28/models/group_0462.py index ba770b6b0..a9b088555 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0462.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0462.py @@ -9,21 +9,80 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhooksApprover(GitHubModel): + """WebhooksApprover""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewersItems(GitHubModel): + """WebhooksReviewersItems""" + + reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( + default=UNSET, title="User" + ) + type: Missing[Literal["User"]] = Field(default=UNSET) -class WebhooksRepositoriesItems(GitHubModel): - """WebhooksRepositoriesItems""" +class WebhooksReviewersItemsPropReviewer(GitHubModel): + """User""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksRepositoriesItems) +model_rebuild(WebhooksApprover) +model_rebuild(WebhooksReviewersItems) +model_rebuild(WebhooksReviewersItemsPropReviewer) -__all__ = ("WebhooksRepositoriesItems",) +__all__ = ( + "WebhooksApprover", + "WebhooksReviewersItems", + "WebhooksReviewersItemsPropReviewer", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0463.py b/githubkit/versions/ghec_v2022_11_28/models/group_0463.py index f17279ee4..291bcddcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0463.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0463.py @@ -14,16 +14,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksRepositoriesAddedItems(GitHubModel): - """WebhooksRepositoriesAddedItems""" +class WebhooksWorkflowJobRun(GitHubModel): + """WebhooksWorkflowJobRun""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() + id: int = Field() + name: None = Field() + status: str = Field() + updated_at: str = Field() -model_rebuild(WebhooksRepositoriesAddedItems) +model_rebuild(WebhooksWorkflowJobRun) -__all__ = ("WebhooksRepositoriesAddedItems",) +__all__ = ("WebhooksWorkflowJobRun",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0464.py b/githubkit/versions/ghec_v2022_11_28/models/group_0464.py index 6fdb499ed..13da347fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0464.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0464.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,61 +17,8 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0008 import Integration - -class WebhooksIssueComment(GitHubModel): - """issue comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhooksIssueCommentPropUser, None] = Field(title="User") - - -class WebhooksIssueCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksIssueCommentPropUser(GitHubModel): +class WebhooksUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -94,19 +40,11 @@ class WebhooksIssueCommentPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksIssueComment) -model_rebuild(WebhooksIssueCommentPropReactions) -model_rebuild(WebhooksIssueCommentPropUser) +model_rebuild(WebhooksUser) -__all__ = ( - "WebhooksIssueComment", - "WebhooksIssueCommentPropReactions", - "WebhooksIssueCommentPropUser", -) +__all__ = ("WebhooksUser",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0465.py b/githubkit/versions/ghec_v2022_11_28/models/group_0465.py index 9e7b45276..ff2aa46c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0465.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0465.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,25 +19,86 @@ from githubkit.utils import UNSET -class WebhooksChanges(GitHubModel): - """WebhooksChanges - - The changes to the comment. - """ - - body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) - - -class WebhooksChangesPropBody(GitHubModel): - """WebhooksChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -model_rebuild(WebhooksChanges) -model_rebuild(WebhooksChangesPropBody) +class WebhooksAnswer(GitHubModel): + """WebhooksAnswer""" + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + child_comment_count: int = Field() + created_at: datetime = Field() + discussion_id: int = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + parent_id: None = Field() + reactions: Missing[WebhooksAnswerPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + updated_at: datetime = Field() + user: Union[WebhooksAnswerPropUser, None] = Field(title="User") + + +class WebhooksAnswerPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksAnswerPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksAnswer) +model_rebuild(WebhooksAnswerPropReactions) +model_rebuild(WebhooksAnswerPropUser) __all__ = ( - "WebhooksChanges", - "WebhooksChangesPropBody", + "WebhooksAnswer", + "WebhooksAnswerPropReactions", + "WebhooksAnswerPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0466.py b/githubkit/versions/ghec_v2022_11_28/models/group_0466.py index 6c2f95a78..3c0d2a361 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0466.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0466.py @@ -19,20 +19,16 @@ from githubkit.utils import UNSET -class WebhooksIssue(GitHubModel): - """Issue +class Discussion(GitHubModel): + """Discussion - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + A Discussion in a repository. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhooksIssuePropAssigneesItems, None]] = Field() + active_lock_reason: Union[str, None] = Field() + answer_chosen_at: Union[str, None] = Field() + answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") + answer_html_url: Union[str, None] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -46,205 +42,55 @@ class WebhooksIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() + body: str = Field() + category: DiscussionPropCategory = Field() comments: int = Field() - comments_url: str = Field() created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[list[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + locked: bool = Field() node_id: str = Field() number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + reactions: Missing[DiscussionPropReactions] = Field( + default=UNSET, title="Reactions" ) - pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - sub_issues_summary: Missing[WebhooksIssuePropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( + description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) + state_reason: Union[ + None, Literal["resolved", "outdated", "duplicate", "reopened"] + ] = Field(description="The reason for the current state") timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") + title: str = Field() updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssuePropUser, None] = Field(title="User") - - -class WebhooksIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + user: Union[DiscussionPropUser, None] = Field(title="User") + labels: Missing[list[Label]] = Field(default=UNSET) -class WebhooksIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") +class Label(GitHubModel): + """Label - -class WebhooksIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. + Color-coded labels help you categorize and filter your issues (just like labels + in Gmail). """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() + id: int = Field(description="Unique identifier for the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwner, None] = Field( - title="User" + url: str = Field(description="URL for the label") + name: str = Field(description="The name of the label.") + description: Union[str, None] = Field( + description="Optional description of the label, such as its purpose." ) - permissions: Missing[WebhooksIssuePropPerformedViaGithubAppPropPermissions] = Field( - default=UNSET, description="The set of permissions for the GitHub app" + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + default: bool = Field( + description="Whether this label comes by default in a new repository." ) - updated_at: Union[datetime, None] = Field() -class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class DiscussionPropAnswerChosenBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -271,66 +117,22 @@ class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhooksIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ +class DiscussionPropCategory(GitHubModel): + """DiscussionPropCategory""" - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhooksIssuePropPullRequest(GitHubModel): - """WebhooksIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() -class WebhooksIssuePropReactions(GitHubModel): +class DiscussionPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -345,15 +147,7 @@ class WebhooksIssuePropReactions(GitHubModel): url: str = Field() -class WebhooksIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhooksIssuePropUser(GitHubModel): +class DiscussionPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -375,39 +169,23 @@ class WebhooksIssuePropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksIssue) -model_rebuild(WebhooksIssuePropAssignee) -model_rebuild(WebhooksIssuePropAssigneesItems) -model_rebuild(WebhooksIssuePropLabelsItems) -model_rebuild(WebhooksIssuePropMilestone) -model_rebuild(WebhooksIssuePropMilestonePropCreator) -model_rebuild(WebhooksIssuePropPerformedViaGithubApp) -model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhooksIssuePropPullRequest) -model_rebuild(WebhooksIssuePropReactions) -model_rebuild(WebhooksIssuePropSubIssuesSummary) -model_rebuild(WebhooksIssuePropUser) +model_rebuild(Discussion) +model_rebuild(Label) +model_rebuild(DiscussionPropAnswerChosenBy) +model_rebuild(DiscussionPropCategory) +model_rebuild(DiscussionPropReactions) +model_rebuild(DiscussionPropUser) __all__ = ( - "WebhooksIssue", - "WebhooksIssuePropAssignee", - "WebhooksIssuePropAssigneesItems", - "WebhooksIssuePropLabelsItems", - "WebhooksIssuePropMilestone", - "WebhooksIssuePropMilestonePropCreator", - "WebhooksIssuePropPerformedViaGithubApp", - "WebhooksIssuePropPerformedViaGithubAppPropOwner", - "WebhooksIssuePropPerformedViaGithubAppPropPermissions", - "WebhooksIssuePropPullRequest", - "WebhooksIssuePropReactions", - "WebhooksIssuePropSubIssuesSummary", - "WebhooksIssuePropUser", + "Discussion", + "DiscussionPropAnswerChosenBy", + "DiscussionPropCategory", + "DiscussionPropReactions", + "DiscussionPropUser", + "Label", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0467.py b/githubkit/versions/ghec_v2022_11_28/models/group_0467.py index c66b591f6..2e01fc5dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0467.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0467.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,31 +18,52 @@ from githubkit.utils import UNSET -class WebhooksMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() +class WebhooksComment(GitHubModel): + """WebhooksComment""" + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() html_url: str = Field() id: int = Field() - labels_url: str = Field() node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() + parent_id: Union[int, None] = Field() + reactions: WebhooksCommentPropReactions = Field(title="Reactions") + repository_url: str = Field() + updated_at: str = Field() + user: Union[WebhooksCommentPropUser, None] = Field(title="User") + + +class WebhooksCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() url: str = Field() -class WebhooksMilestonePropCreator(GitHubModel): +class WebhooksCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -65,17 +85,17 @@ class WebhooksMilestonePropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksMilestone) -model_rebuild(WebhooksMilestonePropCreator) +model_rebuild(WebhooksComment) +model_rebuild(WebhooksCommentPropReactions) +model_rebuild(WebhooksCommentPropUser) __all__ = ( - "WebhooksMilestone", - "WebhooksMilestonePropCreator", + "WebhooksComment", + "WebhooksCommentPropReactions", + "WebhooksCommentPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0468.py b/githubkit/versions/ghec_v2022_11_28/models/group_0468.py index 26463c5d5..6e6effd19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0468.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0468.py @@ -9,140 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksIssue2(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhooksIssue2PropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhooksIssue2PropLabelsItems]] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssue2PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssue2PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhooksIssue2PropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssue2PropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhooksIssue2PropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssue2PropUser, None] = Field(title="User") - - -class WebhooksIssue2PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropLabelsItems(GitHubModel): +class WebhooksLabel(GitHubModel): """Label""" color: str = Field( @@ -156,248 +30,6 @@ class WebhooksIssue2PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhooksIssue2PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksIssue2PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksIssue2PropPerformedViaGithubAppPropPermissions] = ( - Field(default=UNSET, description="The set of permissions for the GitHub app") - ) - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhooksIssue2PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhooksIssue2PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhooksIssue2PropPullRequest(GitHubModel): - """WebhooksIssue2PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksIssue2PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhooksIssue2PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksIssue2) -model_rebuild(WebhooksIssue2PropAssignee) -model_rebuild(WebhooksIssue2PropAssigneesItems) -model_rebuild(WebhooksIssue2PropLabelsItems) -model_rebuild(WebhooksIssue2PropMilestone) -model_rebuild(WebhooksIssue2PropMilestonePropCreator) -model_rebuild(WebhooksIssue2PropPerformedViaGithubApp) -model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropOwner) -model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhooksIssue2PropPullRequest) -model_rebuild(WebhooksIssue2PropReactions) -model_rebuild(WebhooksIssue2PropSubIssuesSummary) -model_rebuild(WebhooksIssue2PropUser) +model_rebuild(WebhooksLabel) -__all__ = ( - "WebhooksIssue2", - "WebhooksIssue2PropAssignee", - "WebhooksIssue2PropAssigneesItems", - "WebhooksIssue2PropLabelsItems", - "WebhooksIssue2PropMilestone", - "WebhooksIssue2PropMilestonePropCreator", - "WebhooksIssue2PropPerformedViaGithubApp", - "WebhooksIssue2PropPerformedViaGithubAppPropOwner", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", - "WebhooksIssue2PropPullRequest", - "WebhooksIssue2PropReactions", - "WebhooksIssue2PropSubIssuesSummary", - "WebhooksIssue2PropUser", -) +__all__ = ("WebhooksLabel",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0469.py b/githubkit/versions/ghec_v2022_11_28/models/group_0469.py index 6db58fe17..ba770b6b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0469.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0469.py @@ -9,44 +9,21 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class WebhooksUserMannequin(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksUserMannequin) - -__all__ = ("WebhooksUserMannequin",) + + +class WebhooksRepositoriesItems(GitHubModel): + """WebhooksRepositoriesItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") + + +model_rebuild(WebhooksRepositoriesItems) + +__all__ = ("WebhooksRepositoriesItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0470.py b/githubkit/versions/ghec_v2022_11_28/models/group_0470.py index f78d27107..f17279ee4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0470.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0470.py @@ -9,55 +9,21 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class WebhooksMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhooksMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Union[str, None] = Field() - on_free_trial: bool = Field() - plan: WebhooksMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhooksMarketplacePurchasePropAccount(GitHubModel): - """WebhooksMarketplacePurchasePropAccount""" +class WebhooksRepositoriesAddedItems(GitHubModel): + """WebhooksRepositoriesAddedItems""" - id: int = Field() - login: str = Field() + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhooksMarketplacePurchasePropPlan(GitHubModel): - """WebhooksMarketplacePurchasePropPlan""" - - bullets: list[Union[str, None]] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhooksMarketplacePurchase) -model_rebuild(WebhooksMarketplacePurchasePropAccount) -model_rebuild(WebhooksMarketplacePurchasePropPlan) +model_rebuild(WebhooksRepositoriesAddedItems) -__all__ = ( - "WebhooksMarketplacePurchase", - "WebhooksMarketplacePurchasePropAccount", - "WebhooksMarketplacePurchasePropPlan", -) +__all__ = ("WebhooksRepositoriesAddedItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0471.py b/githubkit/versions/ghec_v2022_11_28/models/group_0471.py index 94a837d69..cd727b745 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0471.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0471.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,49 +18,95 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhooksPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhooksPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhooksPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): - """WebhooksPreviousMarketplacePurchasePropAccount""" - - id: int = Field() - login: str = Field() +from .group_0010 import Integration + + +class WebhooksIssueComment(GitHubModel): + """issue comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="Contents of the issue comment") + created_at: datetime = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): - """WebhooksPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhooksIssueCommentPropUser, None] = Field(title="User") + + +class WebhooksIssueCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssueCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhooksPreviousMarketplacePurchase) -model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) -model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksIssueComment) +model_rebuild(WebhooksIssueCommentPropReactions) +model_rebuild(WebhooksIssueCommentPropUser) __all__ = ( - "WebhooksPreviousMarketplacePurchase", - "WebhooksPreviousMarketplacePurchasePropAccount", - "WebhooksPreviousMarketplacePurchasePropPlan", + "WebhooksIssueComment", + "WebhooksIssueCommentPropReactions", + "WebhooksIssueCommentPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0472.py b/githubkit/versions/ghec_v2022_11_28/models/group_0472.py index 7c9805f89..9e7b45276 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0472.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0472.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,62 +16,25 @@ from githubkit.utils import UNSET -class WebhooksTeam(GitHubModel): - """Team +class WebhooksChanges(GitHubModel): + """WebhooksChanges - Groups of organization members that gives permissions on specified repositories. + The changes to the comment. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksTeamPropParent(GitHubModel): - """WebhooksTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhooksTeam) -model_rebuild(WebhooksTeamPropParent) + body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) + + +class WebhooksChangesPropBody(GitHubModel): + """WebhooksChangesPropBody""" + + from_: str = Field(alias="from", description="The previous version of the body.") + + +model_rebuild(WebhooksChanges) +model_rebuild(WebhooksChangesPropBody) __all__ = ( - "WebhooksTeam", - "WebhooksTeamPropParent", + "WebhooksChanges", + "WebhooksChangesPropBody", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0473.py b/githubkit/versions/ghec_v2022_11_28/models/group_0473.py index e7abd0673..6c2f95a78 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0473.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0473.py @@ -9,28 +9,405 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhooksIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhooksIssuePropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhooksIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhooksIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhooksIssuePropSubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssuePropUser, None] = Field(title="User") + + +class WebhooksIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + -from .group_0221 import SimpleCommit +class WebhooksIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class MergeGroup(GitHubModel): - """Merge Group +class WebhooksIssuePropMilestone(GitHubModel): + """Milestone - A group of pull requests that the merge queue has grouped together to be merged. + A collection of related issues and pull requests. """ - head_sha: str = Field(description="The SHA of the merge group.") - head_ref: str = Field(description="The full ref of the merge group.") - base_sha: str = Field(description="The SHA of the merge group's parent commit.") - base_ref: str = Field( - description="The full ref of the branch the merge group will be merged into." + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhooksIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksIssuePropPerformedViaGithubAppPropPermissions] = Field( + default=UNSET, description="The set of permissions for the GitHub app" + ) + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhooksIssuePropPullRequest(GitHubModel): + """WebhooksIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhooksIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(MergeGroup) +model_rebuild(WebhooksIssue) +model_rebuild(WebhooksIssuePropAssignee) +model_rebuild(WebhooksIssuePropAssigneesItems) +model_rebuild(WebhooksIssuePropLabelsItems) +model_rebuild(WebhooksIssuePropMilestone) +model_rebuild(WebhooksIssuePropMilestonePropCreator) +model_rebuild(WebhooksIssuePropPerformedViaGithubApp) +model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhooksIssuePropPullRequest) +model_rebuild(WebhooksIssuePropReactions) +model_rebuild(WebhooksIssuePropSubIssuesSummary) +model_rebuild(WebhooksIssuePropUser) -__all__ = ("MergeGroup",) +__all__ = ( + "WebhooksIssue", + "WebhooksIssuePropAssignee", + "WebhooksIssuePropAssigneesItems", + "WebhooksIssuePropLabelsItems", + "WebhooksIssuePropMilestone", + "WebhooksIssuePropMilestonePropCreator", + "WebhooksIssuePropPerformedViaGithubApp", + "WebhooksIssuePropPerformedViaGithubAppPropOwner", + "WebhooksIssuePropPerformedViaGithubAppPropPermissions", + "WebhooksIssuePropPullRequest", + "WebhooksIssuePropReactions", + "WebhooksIssuePropSubIssuesSummary", + "WebhooksIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0474.py b/githubkit/versions/ghec_v2022_11_28/models/group_0474.py index 39a630595..c66b591f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0474.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0474.py @@ -19,7 +19,7 @@ from githubkit.utils import UNSET -class WebhooksMilestone3(GitHubModel): +class WebhooksMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -28,7 +28,7 @@ class WebhooksMilestone3(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhooksMilestone3PropCreator, None] = Field(title="User") + creator: Union[WebhooksMilestonePropCreator, None] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -43,7 +43,7 @@ class WebhooksMilestone3(GitHubModel): url: str = Field() -class WebhooksMilestone3PropCreator(GitHubModel): +class WebhooksMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -65,15 +65,17 @@ class WebhooksMilestone3PropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksMilestone3) -model_rebuild(WebhooksMilestone3PropCreator) +model_rebuild(WebhooksMilestone) +model_rebuild(WebhooksMilestonePropCreator) __all__ = ( - "WebhooksMilestone3", - "WebhooksMilestone3PropCreator", + "WebhooksMilestone", + "WebhooksMilestonePropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0475.py b/githubkit/versions/ghec_v2022_11_28/models/group_0475.py index 7099fbbc2..26463c5d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0475.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0475.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,21 +19,333 @@ from githubkit.utils import UNSET -class WebhooksMembership(GitHubModel): - """Membership +class WebhooksIssue2(GitHubModel): + """Issue - The membership between the user and the organization. Not present when the - action is `member_invited`. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - organization_url: str = Field() - role: str = Field() - state: str = Field() + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhooksIssue2PropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhooksIssue2PropLabelsItems]] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhooksIssue2PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhooksIssue2PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhooksIssue2PropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssue2PropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhooksIssue2PropSubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssue2PropUser, None] = Field(title="User") + + +class WebhooksIssue2PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksIssue2PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhooksMembershipPropUser, None] = Field(title="User") -class WebhooksMembershipPropUser(GitHubModel): +class WebhooksIssue2PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksIssue2PropPerformedViaGithubAppPropPermissions] = ( + Field(default=UNSET, description="The set of permissions for the GitHub app") + ) + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhooksIssue2PropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhooksIssue2PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhooksIssue2PropPullRequest(GitHubModel): + """WebhooksIssue2PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssue2PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhooksIssue2PropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -59,10 +372,32 @@ class WebhooksMembershipPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksMembership) -model_rebuild(WebhooksMembershipPropUser) +model_rebuild(WebhooksIssue2) +model_rebuild(WebhooksIssue2PropAssignee) +model_rebuild(WebhooksIssue2PropAssigneesItems) +model_rebuild(WebhooksIssue2PropLabelsItems) +model_rebuild(WebhooksIssue2PropMilestone) +model_rebuild(WebhooksIssue2PropMilestonePropCreator) +model_rebuild(WebhooksIssue2PropPerformedViaGithubApp) +model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropOwner) +model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhooksIssue2PropPullRequest) +model_rebuild(WebhooksIssue2PropReactions) +model_rebuild(WebhooksIssue2PropSubIssuesSummary) +model_rebuild(WebhooksIssue2PropUser) __all__ = ( - "WebhooksMembership", - "WebhooksMembershipPropUser", + "WebhooksIssue2", + "WebhooksIssue2PropAssignee", + "WebhooksIssue2PropAssigneesItems", + "WebhooksIssue2PropLabelsItems", + "WebhooksIssue2PropMilestone", + "WebhooksIssue2PropMilestonePropCreator", + "WebhooksIssue2PropPerformedViaGithubApp", + "WebhooksIssue2PropPerformedViaGithubAppPropOwner", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", + "WebhooksIssue2PropPullRequest", + "WebhooksIssue2PropReactions", + "WebhooksIssue2PropSubIssuesSummary", + "WebhooksIssue2PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0476.py b/githubkit/versions/ghec_v2022_11_28/models/group_0476.py index a3f8eb39b..6db58fe17 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0476.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0476.py @@ -13,192 +13,40 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser - -class PersonalAccessTokenRequest(GitHubModel): - """Personal Access Token Request - - Details of a Personal Access Token Request. - """ - - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( - description="New requested permissions, categorized by type of permission." - ) - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( - description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." - ) - permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( - description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." - ) - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repository_count: Union[int, None] = Field( - description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( - Field( - description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - ) - created_at: str = Field( - description="Date and time when the request for access was created." - ) - token_id: int = Field( - description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." - ) - token_name: str = Field( - description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - - -class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( +class WebhooksUserMannequin(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" - - -class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgraded - - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( - ExtraGitHubModel -): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" - - -class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsResult - - Permissions requested, categorized by type of permission. This field - incorporates `permissions_added` and `permissions_upgraded`. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsResultPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsResultPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOther""" - - -model_rebuild(PersonalAccessTokenRequest) -model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) +model_rebuild(WebhooksUserMannequin) -__all__ = ( - "PersonalAccessTokenRequest", - "PersonalAccessTokenRequestPropPermissionsAdded", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsAddedPropOther", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", - "PersonalAccessTokenRequestPropPermissionsResult", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", - "PersonalAccessTokenRequestPropPermissionsResultPropOther", - "PersonalAccessTokenRequestPropPermissionsResultPropRepository", - "PersonalAccessTokenRequestPropPermissionsUpgraded", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", - "PersonalAccessTokenRequestPropRepositoriesItems", -) +__all__ = ("WebhooksUserMannequin",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0477.py b/githubkit/versions/ghec_v2022_11_28/models/group_0477.py index 39eabd49e..f78d27107 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0477.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0477.py @@ -9,65 +9,55 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksProjectCard(GitHubModel): - """Project Card""" +class WebhooksMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhooksMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhooksMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhooksMarketplacePurchasePropAccount(GitHubModel): + """WebhooksMarketplacePurchasePropAccount""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksProjectCardPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksProjectCard) -model_rebuild(WebhooksProjectCardPropCreator) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhooksMarketplacePurchasePropPlan(GitHubModel): + """WebhooksMarketplacePurchasePropPlan""" + + bullets: list[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhooksMarketplacePurchase) +model_rebuild(WebhooksMarketplacePurchasePropAccount) +model_rebuild(WebhooksMarketplacePurchasePropPlan) __all__ = ( - "WebhooksProjectCard", - "WebhooksProjectCardPropCreator", + "WebhooksMarketplacePurchase", + "WebhooksMarketplacePurchasePropAccount", + "WebhooksMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0478.py b/githubkit/versions/ghec_v2022_11_28/models/group_0478.py index d39e38c67..94a837d69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0478.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0478.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,57 +18,48 @@ from githubkit.utils import UNSET -class WebhooksProject(GitHubModel): - """Project""" +class WebhooksPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhooksPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhooksPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropAccount""" - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhooksProjectPropCreator, None] = Field(title="User") - html_url: str = Field() id: int = Field() - name: str = Field(description="Name of the project") + login: str = Field() node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" - ) - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksProjectPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksProject) -model_rebuild(WebhooksProjectPropCreator) + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhooksPreviousMarketplacePurchase) +model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) +model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) __all__ = ( - "WebhooksProject", - "WebhooksProjectPropCreator", + "WebhooksPreviousMarketplacePurchase", + "WebhooksPreviousMarketplacePurchasePropAccount", + "WebhooksPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0479.py b/githubkit/versions/ghec_v2022_11_28/models/group_0479.py index be718a05d..7c9805f89 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0479.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0479.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,20 +18,62 @@ from githubkit.utils import UNSET -class WebhooksProjectColumn(GitHubModel): - """Project Column""" +class WebhooksTeam(GitHubModel): + """Team - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() - created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeamPropParent(GitHubModel): + """WebhooksTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") node_id: str = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhooksProjectColumn) +model_rebuild(WebhooksTeam) +model_rebuild(WebhooksTeamPropParent) -__all__ = ("WebhooksProjectColumn",) +__all__ = ( + "WebhooksTeam", + "WebhooksTeamPropParent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0480.py b/githubkit/versions/ghec_v2022_11_28/models/group_0480.py index 02dddab21..ca34ba80c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0480.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0480.py @@ -9,38 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser +from .group_0228 import SimpleCommit -class ProjectsV2(GitHubModel): - """Projects v2 Project +class MergeGroup(GitHubModel): + """Merge Group - A projects v2 project + A group of pull requests that the merge queue has grouped together to be merged. """ - id: float = Field() - node_id: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - title: str = Field() - description: Union[str, None] = Field() - public: bool = Field() - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - number: int = Field() - short_description: Union[str, None] = Field() - deleted_at: Union[datetime, None] = Field() - deleted_by: Union[None, SimpleUser] = Field() - - -model_rebuild(ProjectsV2) - -__all__ = ("ProjectsV2",) + head_sha: str = Field(description="The SHA of the merge group.") + head_ref: str = Field(description="The full ref of the merge group.") + base_sha: str = Field(description="The SHA of the merge group's parent commit.") + base_ref: str = Field( + description="The full ref of the branch the merge group will be merged into." + ) + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + + +model_rebuild(MergeGroup) + +__all__ = ("MergeGroup",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0481.py b/githubkit/versions/ghec_v2022_11_28/models/group_0481.py index 7daaba6aa..39a630595 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0481.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0481.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,23 +19,61 @@ from githubkit.utils import UNSET -class WebhooksProjectChanges(GitHubModel): - """WebhooksProjectChanges""" - - archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) - - -class WebhooksProjectChangesPropArchivedAt(GitHubModel): - """WebhooksProjectChangesPropArchivedAt""" - - from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[datetime, None]] = Field(default=UNSET) - - -model_rebuild(WebhooksProjectChanges) -model_rebuild(WebhooksProjectChangesPropArchivedAt) +class WebhooksMilestone3(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksMilestone3PropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhooksMilestone3PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksMilestone3) +model_rebuild(WebhooksMilestone3PropCreator) __all__ = ( - "WebhooksProjectChanges", - "WebhooksProjectChangesPropArchivedAt", + "WebhooksMilestone3", + "WebhooksMilestone3PropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0482.py b/githubkit/versions/ghec_v2022_11_28/models/group_0482.py index 8a90d228e..7099fbbc2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0482.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0482.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,31 +17,52 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class WebhooksMembership(GitHubModel): + """Membership -class ProjectsV2Item(GitHubModel): - """Projects v2 Item - - An item belonging to a project + The membership between the user and the organization. Not present when the + action is `member_invited`. """ - id: float = Field() + organization_url: str = Field() + role: str = Field() + state: str = Field() + url: str = Field() + user: Union[WebhooksMembershipPropUser, None] = Field(title="User") + + +class WebhooksMembershipPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - project_node_id: Missing[str] = Field(default=UNSET) - content_node_id: str = Field() - content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( - title="Projects v2 Item Content Type", - description="The type of content tracked in a project item", - ) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() - - -model_rebuild(ProjectsV2Item) - -__all__ = ("ProjectsV2Item",) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksMembership) +model_rebuild(WebhooksMembershipPropUser) + +__all__ = ( + "WebhooksMembership", + "WebhooksMembershipPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0483.py b/githubkit/versions/ghec_v2022_11_28/models/group_0483.py index d63883575..37f106c1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0483.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0483.py @@ -9,42 +9,196 @@ from __future__ import annotations -from datetime import date, datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser -class ProjectsV2StatusUpdate(GitHubModel): - """Projects v2 Status Update +class PersonalAccessTokenRequest(GitHubModel): + """Personal Access Token Request - An status update belonging to a project + Details of a Personal Access Token Request. """ - id: float = Field() + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( + description="New requested permissions, categorized by type of permission." + ) + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( + description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." + ) + permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( + description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." + ) + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repository_count: Union[int, None] = Field( + description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( + Field( + description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + ) + created_at: str = Field( + description="Date and time when the request for access was created." + ) + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." + ) + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." + ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") node_id: str = Field() - project_node_id: Missing[str] = Field(default=UNSET) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - status: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + private: bool = Field(description="Whether the repository is private or public.") + + +class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( + ExtraGitHubModel +): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsResult + + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganization ] = Field(default=UNSET) - start_date: Missing[date] = Field(default=UNSET) - target_date: Missing[date] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the status update" + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( + default=UNSET ) -model_rebuild(ProjectsV2StatusUpdate) +class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + + +model_rebuild(PersonalAccessTokenRequest) +model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) -__all__ = ("ProjectsV2StatusUpdate",) +__all__ = ( + "PersonalAccessTokenRequest", + "PersonalAccessTokenRequestPropPermissionsAdded", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsAddedPropOther", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", + "PersonalAccessTokenRequestPropPermissionsResult", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", + "PersonalAccessTokenRequestPropPermissionsResultPropOther", + "PersonalAccessTokenRequestPropPermissionsResultPropRepository", + "PersonalAccessTokenRequestPropPermissionsUpgraded", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", + "PersonalAccessTokenRequestPropRepositoriesItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0484.py b/githubkit/versions/ghec_v2022_11_28/models/group_0484.py index 754096a05..39eabd49e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0484.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0484.py @@ -18,126 +18,56 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0059 import TeamSimple -from .group_0129 import Milestone -from .group_0279 import AutoMerge -from .group_0359 import PullRequestPropLabelsItems -from .group_0360 import PullRequestPropBase, PullRequestPropHead -from .group_0361 import PullRequestPropLinks +class WebhooksProjectCard(GitHubModel): + """Project Card""" -class PullRequestWebhook(GitHubModel): - """PullRequestWebhook""" - - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: list[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) created_at: datetime = Field() + creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", - ) - - -model_rebuild(PullRequestWebhook) - -__all__ = ("PullRequestWebhook",) + url: str = Field() + + +class WebhooksProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksProjectCard) +model_rebuild(WebhooksProjectCardPropCreator) + +__all__ = ( + "WebhooksProjectCard", + "WebhooksProjectCardPropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0485.py b/githubkit/versions/ghec_v2022_11_28/models/group_0485.py index 9e409ec85..d39e38c67 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0485.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0485.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,46 +19,57 @@ from githubkit.utils import UNSET -class PullRequestWebhookAllof1(GitHubModel): - """PullRequestWebhookAllof1""" +class WebhooksProject(GitHubModel): + """Project""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhooksProjectPropCreator, None] = Field(title="User") + html_url: str = Field() + id: int = Field() + name: str = Field(description="Name of the project") + node_id: str = Field() + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" ) + updated_at: datetime = Field() + url: str = Field() + + +class WebhooksProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(PullRequestWebhookAllof1) +model_rebuild(WebhooksProject) +model_rebuild(WebhooksProjectPropCreator) -__all__ = ("PullRequestWebhookAllof1",) +__all__ = ( + "WebhooksProject", + "WebhooksProjectPropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0486.py b/githubkit/versions/ghec_v2022_11_28/models/group_0486.py index 3c34b7ef5..be718a05d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0486.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0486.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,1062 +19,20 @@ from githubkit.utils import UNSET -class WebhooksPullRequest5(GitHubModel): - """Pull Request""" +class WebhooksProjectColumn(GitHubModel): + """Project Column""" - links: WebhooksPullRequest5PropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhooksPullRequest5PropAssignee, None] = Field(title="User") - assignees: list[Union[WebhooksPullRequest5PropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhooksPullRequest5PropAutoMerge, None] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhooksPullRequest5PropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhooksPullRequest5PropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhooksPullRequest5PropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[Union[WebhooksPullRequest5PropMergedBy, None]] = Field( - default=UNSET, title="User" - ) - milestone: Union[WebhooksPullRequest5PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItems] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") + project_url: str = Field() updated_at: datetime = Field() url: str = Field() - user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") -class WebhooksPullRequest5PropAssignee(GitHubModel): - """User""" +model_rebuild(WebhooksProjectColumn) - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledBy, None] = Field( - title="User" - ) - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhooksPullRequest5PropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksPullRequest5PropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksPullRequest5PropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksPullRequest5PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof0(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropLinks(GitHubModel): - """WebhooksPullRequest5PropLinks""" - - comments: WebhooksPullRequest5PropLinksPropComments = Field(title="Link") - commits: WebhooksPullRequest5PropLinksPropCommits = Field(title="Link") - html: WebhooksPullRequest5PropLinksPropHtml = Field(title="Link") - issue: WebhooksPullRequest5PropLinksPropIssue = Field(title="Link") - review_comment: WebhooksPullRequest5PropLinksPropReviewComment = Field(title="Link") - review_comments: WebhooksPullRequest5PropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhooksPullRequest5PropLinksPropSelf = Field(alias="self", title="Link") - statuses: WebhooksPullRequest5PropLinksPropStatuses = Field(title="Link") - - -class WebhooksPullRequest5PropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropBase(GitHubModel): - """WebhooksPullRequest5PropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhooksPullRequest5PropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhooksPullRequest5PropBasePropUser, None] = Field(title="User") - - -class WebhooksPullRequest5PropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksPullRequest5PropBasePropRepoPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhooksPullRequest5PropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhooksPullRequest5PropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropBasePropRepoPropPermissions(GitHubModel): - """WebhooksPullRequest5PropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhooksPullRequest5PropHead(GitHubModel): - """WebhooksPullRequest5PropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhooksPullRequest5PropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhooksPullRequest5PropHeadPropUser, None] = Field(title="User") - - -class WebhooksPullRequest5PropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksPullRequest5PropHeadPropRepoPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhooksPullRequest5PropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhooksPullRequest5PropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropHeadPropRepoPropPermissions(GitHubModel): - """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent(GitHubModel): - """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhooksPullRequest5PropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksPullRequest5PropRequestedTeamsItemsPropParent(GitHubModel): - """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhooksPullRequest5) -model_rebuild(WebhooksPullRequest5PropAssignee) -model_rebuild(WebhooksPullRequest5PropAssigneesItems) -model_rebuild(WebhooksPullRequest5PropAutoMerge) -model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) -model_rebuild(WebhooksPullRequest5PropLabelsItems) -model_rebuild(WebhooksPullRequest5PropMergedBy) -model_rebuild(WebhooksPullRequest5PropMilestone) -model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) -model_rebuild(WebhooksPullRequest5PropUser) -model_rebuild(WebhooksPullRequest5PropLinks) -model_rebuild(WebhooksPullRequest5PropLinksPropComments) -model_rebuild(WebhooksPullRequest5PropLinksPropCommits) -model_rebuild(WebhooksPullRequest5PropLinksPropHtml) -model_rebuild(WebhooksPullRequest5PropLinksPropIssue) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) -model_rebuild(WebhooksPullRequest5PropLinksPropSelf) -model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) -model_rebuild(WebhooksPullRequest5PropBase) -model_rebuild(WebhooksPullRequest5PropBasePropUser) -model_rebuild(WebhooksPullRequest5PropBasePropRepo) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropHead) -model_rebuild(WebhooksPullRequest5PropHeadPropUser) -model_rebuild(WebhooksPullRequest5PropHeadPropRepo) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) - -__all__ = ( - "WebhooksPullRequest5", - "WebhooksPullRequest5PropAssignee", - "WebhooksPullRequest5PropAssigneesItems", - "WebhooksPullRequest5PropAutoMerge", - "WebhooksPullRequest5PropAutoMergePropEnabledBy", - "WebhooksPullRequest5PropBase", - "WebhooksPullRequest5PropBasePropRepo", - "WebhooksPullRequest5PropBasePropRepoPropLicense", - "WebhooksPullRequest5PropBasePropRepoPropOwner", - "WebhooksPullRequest5PropBasePropRepoPropPermissions", - "WebhooksPullRequest5PropBasePropUser", - "WebhooksPullRequest5PropHead", - "WebhooksPullRequest5PropHeadPropRepo", - "WebhooksPullRequest5PropHeadPropRepoPropLicense", - "WebhooksPullRequest5PropHeadPropRepoPropOwner", - "WebhooksPullRequest5PropHeadPropRepoPropPermissions", - "WebhooksPullRequest5PropHeadPropUser", - "WebhooksPullRequest5PropLabelsItems", - "WebhooksPullRequest5PropLinks", - "WebhooksPullRequest5PropLinksPropComments", - "WebhooksPullRequest5PropLinksPropCommits", - "WebhooksPullRequest5PropLinksPropHtml", - "WebhooksPullRequest5PropLinksPropIssue", - "WebhooksPullRequest5PropLinksPropReviewComment", - "WebhooksPullRequest5PropLinksPropReviewComments", - "WebhooksPullRequest5PropLinksPropSelf", - "WebhooksPullRequest5PropLinksPropStatuses", - "WebhooksPullRequest5PropMergedBy", - "WebhooksPullRequest5PropMilestone", - "WebhooksPullRequest5PropMilestonePropCreator", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof0", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent", - "WebhooksPullRequest5PropRequestedTeamsItems", - "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", - "WebhooksPullRequest5PropUser", -) +__all__ = ("WebhooksProjectColumn",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0487.py b/githubkit/versions/ghec_v2022_11_28/models/group_0487.py index ebbb97f9e..46e0ef291 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0487.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0487.py @@ -10,180 +10,37 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class WebhooksReviewComment(GitHubModel): - """Pull Request Review Comment - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. +class ProjectsV2(GitHubModel): + """Projects v2 Project + + A projects v2 project """ - links: WebhooksReviewCommentPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) + id: float = Field() + node_id: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + title: str = Field() + description: Union[str, None] = Field() + public: bool = Field() + closed_at: Union[datetime, None] = Field() created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhooksReviewCommentPropReactions = Field(title="Reactions") - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhooksReviewCommentPropUser, None] = Field(title="User") - - -class WebhooksReviewCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksReviewCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewCommentPropLinks(GitHubModel): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewCommentPropLinksPropPullRequest = Field(title="Link") - self_: WebhooksReviewCommentPropLinksPropSelf = Field(alias="self", title="Link") - - -class WebhooksReviewCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewCommentPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() + number: int = Field() + short_description: Union[str, None] = Field() + deleted_at: Union[datetime, None] = Field() + deleted_by: Union[None, SimpleUser] = Field() -model_rebuild(WebhooksReviewComment) -model_rebuild(WebhooksReviewCommentPropReactions) -model_rebuild(WebhooksReviewCommentPropUser) -model_rebuild(WebhooksReviewCommentPropLinks) -model_rebuild(WebhooksReviewCommentPropLinksPropHtml) -model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) -model_rebuild(WebhooksReviewCommentPropLinksPropSelf) +model_rebuild(ProjectsV2) -__all__ = ( - "WebhooksReviewComment", - "WebhooksReviewCommentPropLinks", - "WebhooksReviewCommentPropLinksPropHtml", - "WebhooksReviewCommentPropLinksPropPullRequest", - "WebhooksReviewCommentPropLinksPropSelf", - "WebhooksReviewCommentPropReactions", - "WebhooksReviewCommentPropUser", -) +__all__ = ("ProjectsV2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0488.py b/githubkit/versions/ghec_v2022_11_28/models/group_0488.py index 1c451c68e..7daaba6aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0488.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0488.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,93 +19,23 @@ from githubkit.utils import UNSET -class WebhooksReview(GitHubModel): - """WebhooksReview - - The review that was affected. - """ - - links: WebhooksReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: str = Field() - submitted_at: Union[datetime, None] = Field() - user: Union[WebhooksReviewPropUser, None] = Field(title="User") - - -class WebhooksReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewPropLinks(GitHubModel): - """WebhooksReviewPropLinks""" - - html: WebhooksReviewPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") - - -class WebhooksReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -model_rebuild(WebhooksReview) -model_rebuild(WebhooksReviewPropUser) -model_rebuild(WebhooksReviewPropLinks) -model_rebuild(WebhooksReviewPropLinksPropHtml) -model_rebuild(WebhooksReviewPropLinksPropPullRequest) +class WebhooksProjectChanges(GitHubModel): + """WebhooksProjectChanges""" + + archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) + + +class WebhooksProjectChangesPropArchivedAt(GitHubModel): + """WebhooksProjectChangesPropArchivedAt""" + + from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[datetime, None]] = Field(default=UNSET) + + +model_rebuild(WebhooksProjectChanges) +model_rebuild(WebhooksProjectChangesPropArchivedAt) __all__ = ( - "WebhooksReview", - "WebhooksReviewPropLinks", - "WebhooksReviewPropLinksPropHtml", - "WebhooksReviewPropLinksPropPullRequest", - "WebhooksReviewPropUser", + "WebhooksProjectChanges", + "WebhooksProjectChangesPropArchivedAt", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0489.py b/githubkit/versions/ghec_v2022_11_28/models/group_0489.py index 1f0d1f221..02415cbc5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0489.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0489.py @@ -18,143 +18,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class WebhooksRelease(GitHubModel): - """Release - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. +class ProjectsV2Item(GitHubModel): + """Projects v2 Item + + An item belonging to a project """ - assets: list[WebhooksReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhooksReleasePropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksReleasePropReactions] = Field( - default=UNSET, title="Reactions" + id: float = Field() + node_id: Missing[str] = Field(default=UNSET) + project_node_id: Missing[str] = Field(default=UNSET) + content_node_id: str = Field() + content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( + title="Projects v2 Item Content Type", + description="The type of content tracked in a project item", ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhooksReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() - uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" - ) - url: str = Field() - - -class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + archived_at: Union[datetime, None] = Field() -model_rebuild(WebhooksRelease) -model_rebuild(WebhooksReleasePropAuthor) -model_rebuild(WebhooksReleasePropReactions) -model_rebuild(WebhooksReleasePropAssetsItems) -model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) +model_rebuild(ProjectsV2Item) -__all__ = ( - "WebhooksRelease", - "WebhooksReleasePropAssetsItems", - "WebhooksReleasePropAssetsItemsPropUploader", - "WebhooksReleasePropAuthor", - "WebhooksReleasePropReactions", -) +__all__ = ("ProjectsV2Item",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0490.py b/githubkit/versions/ghec_v2022_11_28/models/group_0490.py index 90f8d031d..da927dd7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0490.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0490.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from datetime import date, datetime from typing import Literal, Union from pydantic import Field @@ -18,143 +18,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class WebhooksRelease1(GitHubModel): - """Release - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. +class ProjectsV2StatusUpdate(GitHubModel): + """Projects v2 Status Update + + An status update belonging to a project """ - assets: list[Union[WebhooksRelease1PropAssetsItems, None]] = Field() - assets_url: str = Field() - author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() + id: float = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksRelease1PropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + project_node_id: Missing[str] = Field(default=UNSET) + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhooksRelease1PropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() - uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" + status: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET) + start_date: Missing[date] = Field(default=UNSET) + target_date: Missing[date] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the status update" ) - url: str = Field() - - -class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksRelease1PropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksRelease1PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -model_rebuild(WebhooksRelease1) -model_rebuild(WebhooksRelease1PropAssetsItems) -model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) -model_rebuild(WebhooksRelease1PropAuthor) -model_rebuild(WebhooksRelease1PropReactions) +model_rebuild(ProjectsV2StatusUpdate) -__all__ = ( - "WebhooksRelease1", - "WebhooksRelease1PropAssetsItems", - "WebhooksRelease1PropAssetsItemsPropUploader", - "WebhooksRelease1PropAuthor", - "WebhooksRelease1PropReactions", -) +__all__ = ("ProjectsV2StatusUpdate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0491.py b/githubkit/versions/ghec_v2022_11_28/models/group_0491.py index 25a628f6d..2e1e7ca7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0491.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0491.py @@ -18,64 +18,126 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0064 import TeamSimple +from .group_0136 import Milestone +from .group_0286 import AutoMerge +from .group_0366 import PullRequestPropLabelsItems +from .group_0367 import PullRequestPropBase, PullRequestPropHead +from .group_0368 import PullRequestPropLinks -class WebhooksAlert(GitHubModel): - """Repository Vulnerability Alert Alert - The security alert of the vulnerable dependency. - """ +class PullRequestWebhook(GitHubModel): + """PullRequestWebhook""" - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[Union[WebhooksAlertPropDismisser, None]] = Field( - default=UNSET, title="User" - ) - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() + url: str = Field() id: int = Field() node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open"] = Field() - - -class WebhooksAlertPropDismisser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: list[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) + merged: bool = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." + ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", + ) -model_rebuild(WebhooksAlert) -model_rebuild(WebhooksAlertPropDismisser) +model_rebuild(PullRequestWebhook) -__all__ = ( - "WebhooksAlert", - "WebhooksAlertPropDismisser", -) +__all__ = ("PullRequestWebhook",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0492.py b/githubkit/versions/ghec_v2022_11_28/models/group_0492.py index 6e330d326..9e409ec85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0492.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0492.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,93 +17,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class PullRequestWebhookAllof1(GitHubModel): + """PullRequestWebhookAllof1""" -class SecretScanningAlertWebhook(GitHubModel): - """SecretScanningAlertWebhook""" - - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - resolution: Missing[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] - ] = Field(default=UNSET, description="The reason for resolving the alert.") - resolved_at: Missing[Union[datetime, None]] = Field( + allow_update_branch: Missing[bool] = Field( default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="Whether to allow updating the pull request's branch.", ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." - ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - secret_type_display_name: Missing[str] = Field( + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + description="Whether to delete head branches when pull requests are merged.", ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." - ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( - default=UNSET + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( default=UNSET, - description="An optional comment when reviewing a push protection bypass.", - ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when requesting a push protection bypass.", - ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the detected secret was publicly leaked." + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) ) - multi_repo: Missing[Union[bool, None]] = Field( + use_squash_pr_title_as_default: Missing[bool] = Field( default=UNSET, - description="Whether the detected secret was found in multiple repositories in the same organization or business.", + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", ) -model_rebuild(SecretScanningAlertWebhook) +model_rebuild(PullRequestWebhookAllof1) -__all__ = ("SecretScanningAlertWebhook",) +__all__ = ("PullRequestWebhookAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0493.py b/githubkit/versions/ghec_v2022_11_28/models/group_0493.py index 70a0fad38..3c34b7ef5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0493.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0493.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,100 +18,1063 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities +class WebhooksPullRequest5(GitHubModel): + """Pull Request""" + + links: WebhooksPullRequest5PropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhooksPullRequest5PropAssignee, None] = Field(title="User") + assignees: list[Union[WebhooksPullRequest5PropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhooksPullRequest5PropAutoMerge, None] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhooksPullRequest5PropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhooksPullRequest5PropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhooksPullRequest5PropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[Union[WebhooksPullRequest5PropMergedBy, None]] = Field( + default=UNSET, title="User" + ) + milestone: Union[WebhooksPullRequest5PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhooksPullRequest5PropRequestedReviewersItemsOneof0, + None, + WebhooksPullRequest5PropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItems] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksSecurityAdvisory(GitHubModel): - """WebhooksSecurityAdvisory - The details of the security advisory, including summary, description, and - severity. +class WebhooksPullRequest5PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - cvss: WebhooksSecurityAdvisoryPropCvss = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[WebhooksSecurityAdvisoryPropCwesItems] = Field() - description: str = Field() - ghsa_id: str = Field() - identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() - published_at: str = Field() - references: list[WebhooksSecurityAdvisoryPropReferencesItems] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItems] = Field() - withdrawn_at: Union[str, None] = Field() + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledBy, None] = Field( + title="User" + ) + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) -class WebhooksSecurityAdvisoryPropCvss(GitHubModel): - """WebhooksSecurityAdvisoryPropCvss""" +class WebhooksPullRequest5PropAutoMergePropEnabledBy(GitHubModel): + """User""" - score: float = Field() - vector_string: Union[str, None] = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropCwesItems""" +class WebhooksPullRequest5PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") - cwe_id: str = Field() - name: str = Field() +class WebhooksPullRequest5PropMergedBy(GitHubModel): + """User""" -class WebhooksSecurityAdvisoryPropIdentifiersItems(GitHubModel): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - type: str = Field() - value: str = Field() +class WebhooksPullRequest5PropMilestone(GitHubModel): + """Milestone -class WebhooksSecurityAdvisoryPropReferencesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropReferencesItems""" + A collection of related issues and pull requests. + """ + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksPullRequest5PropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() url: str = Field() -class WebhooksSecurityAdvisoryPropVulnerabilitiesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" +class WebhooksPullRequest5PropMilestonePropCreator(GitHubModel): + """User""" - first_patched_version: Union[ - WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, None - ] = Field() - package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof0(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropLinks(GitHubModel): + """WebhooksPullRequest5PropLinks""" + + comments: WebhooksPullRequest5PropLinksPropComments = Field(title="Link") + commits: WebhooksPullRequest5PropLinksPropCommits = Field(title="Link") + html: WebhooksPullRequest5PropLinksPropHtml = Field(title="Link") + issue: WebhooksPullRequest5PropLinksPropIssue = Field(title="Link") + review_comment: WebhooksPullRequest5PropLinksPropReviewComment = Field(title="Link") + review_comments: WebhooksPullRequest5PropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhooksPullRequest5PropLinksPropSelf = Field(alias="self", title="Link") + statuses: WebhooksPullRequest5PropLinksPropStatuses = Field(title="Link") + + +class WebhooksPullRequest5PropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropBase(GitHubModel): + """WebhooksPullRequest5PropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhooksPullRequest5PropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhooksPullRequest5PropBasePropUser, None] = Field(title="User") -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" +class WebhooksPullRequest5PropBasePropUser(GitHubModel): + """User""" - identifier: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" +class WebhooksPullRequest5PropBasePropRepo(GitHubModel): + """Repository - ecosystem: str = Field() + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksPullRequest5PropBasePropRepoPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhooksPullRequest5PropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhooksPullRequest5PropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropBasePropRepoPropPermissions(GitHubModel): + """WebhooksPullRequest5PropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhooksPullRequest5PropHead(GitHubModel): + """WebhooksPullRequest5PropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhooksPullRequest5PropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhooksPullRequest5PropHeadPropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksPullRequest5PropHeadPropRepoPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhooksPullRequest5PropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhooksPullRequest5PropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropHeadPropRepoPropPermissions(GitHubModel): + """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent(GitHubModel): + """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhooksPullRequest5PropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksPullRequest5PropRequestedTeamsItemsPropParent(GitHubModel): + """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhooksSecurityAdvisory) -model_rebuild(WebhooksSecurityAdvisoryPropCvss) -model_rebuild(WebhooksSecurityAdvisoryPropCwesItems) -model_rebuild(WebhooksSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhooksSecurityAdvisoryPropReferencesItems) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItems) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage) +model_rebuild(WebhooksPullRequest5) +model_rebuild(WebhooksPullRequest5PropAssignee) +model_rebuild(WebhooksPullRequest5PropAssigneesItems) +model_rebuild(WebhooksPullRequest5PropAutoMerge) +model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) +model_rebuild(WebhooksPullRequest5PropLabelsItems) +model_rebuild(WebhooksPullRequest5PropMergedBy) +model_rebuild(WebhooksPullRequest5PropMilestone) +model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) +model_rebuild(WebhooksPullRequest5PropUser) +model_rebuild(WebhooksPullRequest5PropLinks) +model_rebuild(WebhooksPullRequest5PropLinksPropComments) +model_rebuild(WebhooksPullRequest5PropLinksPropCommits) +model_rebuild(WebhooksPullRequest5PropLinksPropHtml) +model_rebuild(WebhooksPullRequest5PropLinksPropIssue) +model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) +model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) +model_rebuild(WebhooksPullRequest5PropLinksPropSelf) +model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) +model_rebuild(WebhooksPullRequest5PropBase) +model_rebuild(WebhooksPullRequest5PropBasePropUser) +model_rebuild(WebhooksPullRequest5PropBasePropRepo) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) +model_rebuild(WebhooksPullRequest5PropHead) +model_rebuild(WebhooksPullRequest5PropHeadPropUser) +model_rebuild(WebhooksPullRequest5PropHeadPropRepo) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) +model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) +model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) __all__ = ( - "WebhooksSecurityAdvisory", - "WebhooksSecurityAdvisoryPropCvss", - "WebhooksSecurityAdvisoryPropCwesItems", - "WebhooksSecurityAdvisoryPropIdentifiersItems", - "WebhooksSecurityAdvisoryPropReferencesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", + "WebhooksPullRequest5", + "WebhooksPullRequest5PropAssignee", + "WebhooksPullRequest5PropAssigneesItems", + "WebhooksPullRequest5PropAutoMerge", + "WebhooksPullRequest5PropAutoMergePropEnabledBy", + "WebhooksPullRequest5PropBase", + "WebhooksPullRequest5PropBasePropRepo", + "WebhooksPullRequest5PropBasePropRepoPropLicense", + "WebhooksPullRequest5PropBasePropRepoPropOwner", + "WebhooksPullRequest5PropBasePropRepoPropPermissions", + "WebhooksPullRequest5PropBasePropUser", + "WebhooksPullRequest5PropHead", + "WebhooksPullRequest5PropHeadPropRepo", + "WebhooksPullRequest5PropHeadPropRepoPropLicense", + "WebhooksPullRequest5PropHeadPropRepoPropOwner", + "WebhooksPullRequest5PropHeadPropRepoPropPermissions", + "WebhooksPullRequest5PropHeadPropUser", + "WebhooksPullRequest5PropLabelsItems", + "WebhooksPullRequest5PropLinks", + "WebhooksPullRequest5PropLinksPropComments", + "WebhooksPullRequest5PropLinksPropCommits", + "WebhooksPullRequest5PropLinksPropHtml", + "WebhooksPullRequest5PropLinksPropIssue", + "WebhooksPullRequest5PropLinksPropReviewComment", + "WebhooksPullRequest5PropLinksPropReviewComments", + "WebhooksPullRequest5PropLinksPropSelf", + "WebhooksPullRequest5PropLinksPropStatuses", + "WebhooksPullRequest5PropMergedBy", + "WebhooksPullRequest5PropMilestone", + "WebhooksPullRequest5PropMilestonePropCreator", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof0", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent", + "WebhooksPullRequest5PropRequestedTeamsItems", + "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", + "WebhooksPullRequest5PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0494.py b/githubkit/versions/ghec_v2022_11_28/models/group_0494.py index 86866d0b1..ebbb97f9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0494.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0494.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,46 +19,105 @@ from githubkit.utils import UNSET -class WebhooksSponsorship(GitHubModel): - """WebhooksSponsorship""" +class WebhooksReviewComment(GitHubModel): + """Pull Request Review Comment - created_at: str = Field() - maintainer: Missing[WebhooksSponsorshipPropMaintainer] = Field(default=UNSET) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhooksSponsorshipPropSponsor, None] = Field(title="User") - sponsorable: Union[WebhooksSponsorshipPropSponsorable, None] = Field(title="User") - tier: WebhooksSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhooksReviewCommentPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhooksReviewCommentPropReactions = Field(title="Reactions") + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhooksReviewCommentPropUser, None] = Field(title="User") -class WebhooksSponsorshipPropMaintainer(GitHubModel): - """WebhooksSponsorshipPropMaintainer""" +class WebhooksReviewCommentPropReactions(GitHubModel): + """Reactions""" - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhooksSponsorshipPropSponsor(GitHubModel): +class WebhooksReviewCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -84,62 +144,46 @@ class WebhooksSponsorshipPropSponsor(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksSponsorshipPropSponsorable(GitHubModel): - """User""" +class WebhooksReviewCommentPropLinks(GitHubModel): + """WebhooksReviewCommentPropLinks""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + html: WebhooksReviewCommentPropLinksPropHtml = Field(title="Link") + pull_request: WebhooksReviewCommentPropLinksPropPullRequest = Field(title="Link") + self_: WebhooksReviewCommentPropLinksPropSelf = Field(alias="self", title="Link") -class WebhooksSponsorshipPropTier(GitHubModel): - """Sponsorship Tier +class WebhooksReviewCommentPropLinksPropHtml(GitHubModel): + """Link""" - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ + href: str = Field() + + +class WebhooksReviewCommentPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksReviewCommentPropLinksPropSelf(GitHubModel): + """Link""" - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() + href: str = Field() -model_rebuild(WebhooksSponsorship) -model_rebuild(WebhooksSponsorshipPropMaintainer) -model_rebuild(WebhooksSponsorshipPropSponsor) -model_rebuild(WebhooksSponsorshipPropSponsorable) -model_rebuild(WebhooksSponsorshipPropTier) +model_rebuild(WebhooksReviewComment) +model_rebuild(WebhooksReviewCommentPropReactions) +model_rebuild(WebhooksReviewCommentPropUser) +model_rebuild(WebhooksReviewCommentPropLinks) +model_rebuild(WebhooksReviewCommentPropLinksPropHtml) +model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) +model_rebuild(WebhooksReviewCommentPropLinksPropSelf) __all__ = ( - "WebhooksSponsorship", - "WebhooksSponsorshipPropMaintainer", - "WebhooksSponsorshipPropSponsor", - "WebhooksSponsorshipPropSponsorable", - "WebhooksSponsorshipPropTier", + "WebhooksReviewComment", + "WebhooksReviewCommentPropLinks", + "WebhooksReviewCommentPropLinksPropHtml", + "WebhooksReviewCommentPropLinksPropPullRequest", + "WebhooksReviewCommentPropLinksPropSelf", + "WebhooksReviewCommentPropReactions", + "WebhooksReviewCommentPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0495.py b/githubkit/versions/ghec_v2022_11_28/models/group_0495.py index d4236992a..1c451c68e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0495.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0495.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,47 +19,93 @@ from githubkit.utils import UNSET -class WebhooksChanges8(GitHubModel): - """WebhooksChanges8""" +class WebhooksReview(GitHubModel): + """WebhooksReview - tier: WebhooksChanges8PropTier = Field() + The review that was affected. + """ + links: WebhooksReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: str = Field() + submitted_at: Union[datetime, None] = Field() + user: Union[WebhooksReviewPropUser, None] = Field(title="User") -class WebhooksChanges8PropTier(GitHubModel): - """WebhooksChanges8PropTier""" - from_: WebhooksChanges8PropTierPropFrom = Field( - alias="from", - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", - ) +class WebhooksReviewPropUser(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksChanges8PropTierPropFrom(GitHubModel): - """Sponsorship Tier - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ +class WebhooksReviewPropLinks(GitHubModel): + """WebhooksReviewPropLinks""" - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() + html: WebhooksReviewPropLinksPropHtml = Field(title="Link") + pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") + + +class WebhooksReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() -model_rebuild(WebhooksChanges8) -model_rebuild(WebhooksChanges8PropTier) -model_rebuild(WebhooksChanges8PropTierPropFrom) +model_rebuild(WebhooksReview) +model_rebuild(WebhooksReviewPropUser) +model_rebuild(WebhooksReviewPropLinks) +model_rebuild(WebhooksReviewPropLinksPropHtml) +model_rebuild(WebhooksReviewPropLinksPropPullRequest) __all__ = ( - "WebhooksChanges8", - "WebhooksChanges8PropTier", - "WebhooksChanges8PropTierPropFrom", + "WebhooksReview", + "WebhooksReviewPropLinks", + "WebhooksReviewPropLinksPropHtml", + "WebhooksReviewPropLinksPropPullRequest", + "WebhooksReviewPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0496.py b/githubkit/versions/ghec_v2022_11_28/models/group_0496.py index b1c86817a..1f0d1f221 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0496.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0496.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,65 +19,142 @@ from githubkit.utils import UNSET -class WebhooksTeam1(GitHubModel): - """Team +class WebhooksRelease(GitHubModel): + """Release - Groups of organization members that gives permissions on specified repositories. + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" + assets: list[WebhooksReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhooksReleasePropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhooksTeam1PropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksReleasePropReactions] = Field( + default=UNSET, title="Reactions" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() -class WebhooksTeam1PropParent(GitHubModel): - """WebhooksTeam1PropParent""" +class WebhooksReleasePropAuthor(GitHubModel): + """User""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + url: str = Field() -model_rebuild(WebhooksTeam1) -model_rebuild(WebhooksTeam1PropParent) +class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksRelease) +model_rebuild(WebhooksReleasePropAuthor) +model_rebuild(WebhooksReleasePropReactions) +model_rebuild(WebhooksReleasePropAssetsItems) +model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhooksTeam1", - "WebhooksTeam1PropParent", + "WebhooksRelease", + "WebhooksReleasePropAssetsItems", + "WebhooksReleasePropAssetsItemsPropUploader", + "WebhooksReleasePropAuthor", + "WebhooksReleasePropReactions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0497.py b/githubkit/versions/ghec_v2022_11_28/models/group_0497.py index 25d6985a2..90f8d031d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0497.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0497.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,39 +18,143 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +class WebhooksRelease1(GitHubModel): + """Release -class WebhookBranchProtectionConfigurationDisabled(GitHubModel): - """branch protection configuration disabled event""" + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ - action: Literal["disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + assets: list[Union[WebhooksRelease1PropAssetsItems, None]] = Field() + assets_url: str = Field() + author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksRelease1PropReactions] = Field( + default=UNSET, title="Reactions" ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhooksRelease1PropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: str = Field() + + +class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -model_rebuild(WebhookBranchProtectionConfigurationDisabled) +model_rebuild(WebhooksRelease1) +model_rebuild(WebhooksRelease1PropAssetsItems) +model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) +model_rebuild(WebhooksRelease1PropAuthor) +model_rebuild(WebhooksRelease1PropReactions) -__all__ = ("WebhookBranchProtectionConfigurationDisabled",) +__all__ = ( + "WebhooksRelease1", + "WebhooksRelease1PropAssetsItems", + "WebhooksRelease1PropAssetsItemsPropUploader", + "WebhooksRelease1PropAuthor", + "WebhooksRelease1PropReactions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0498.py b/githubkit/versions/ghec_v2022_11_28/models/group_0498.py index 8da991ef9..25a628f6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0498.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0498.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,39 +18,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +class WebhooksAlert(GitHubModel): + """Repository Vulnerability Alert Alert -class WebhookBranchProtectionConfigurationEnabled(GitHubModel): - """branch protection configuration enabled event""" + The security alert of the vulnerable dependency. + """ - action: Literal["enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[Union[WebhooksAlertPropDismisser, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["open"] = Field() + + +class WebhooksAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookBranchProtectionConfigurationEnabled) +model_rebuild(WebhooksAlert) +model_rebuild(WebhooksAlertPropDismisser) -__all__ = ("WebhookBranchProtectionConfigurationEnabled",) +__all__ = ( + "WebhooksAlert", + "WebhooksAlertPropDismisser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0499.py b/githubkit/versions/ghec_v2022_11_28/models/group_0499.py index 1dc70fd21..aeab68287 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0499.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0499.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,44 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0448 import WebhooksRule +from .group_0003 import SimpleUser -class WebhookBranchProtectionRuleCreated(GitHubModel): - """branch protection rule created event""" +class SecretScanningAlertWebhook(GitHubModel): + """SecretScanningAlertWebhook""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + description="The REST API URL of the code locations for this alert.", ) - installation: Missing[SimpleInstallation] = Field( + resolution: Missing[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] = Field(default=UNSET, description="The reason for resolving the alert.") + resolved_at: Missing[Union[datetime, None]] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." + ) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + push_protection_bypassed: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether push protection was bypassed for the detected secret.", + ) + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + default=UNSET + ) + push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when reviewing a push protection bypass.", + ) + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when requesting a push protection bypass.", + ) + push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The URL to a push protection bypass request." + ) + publicly_leaked: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether the detected secret was publicly leaked." + ) + multi_repo: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether the detected secret was found in multiple repositories in the same organization or business.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookBranchProtectionRuleCreated) +model_rebuild(SecretScanningAlertWebhook) -__all__ = ("WebhookBranchProtectionRuleCreated",) +__all__ = ("SecretScanningAlertWebhook",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0500.py b/githubkit/versions/ghec_v2022_11_28/models/group_0500.py index bf3ef97bb..70a0fad38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0500.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0500.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,44 +17,100 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0448 import WebhooksRule - - -class WebhookBranchProtectionRuleDeleted(GitHubModel): - """branch protection rule deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookBranchProtectionRuleDeleted) - -__all__ = ("WebhookBranchProtectionRuleDeleted",) +from .group_0001 import CvssSeverities + + +class WebhooksSecurityAdvisory(GitHubModel): + """WebhooksSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhooksSecurityAdvisoryPropCvss = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + cwes: list[WebhooksSecurityAdvisoryPropCwesItems] = Field() + description: str = Field() + ghsa_id: str = Field() + identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() + published_at: str = Field() + references: list[WebhooksSecurityAdvisoryPropReferencesItems] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItems] = Field() + withdrawn_at: Union[str, None] = Field() + + +class WebhooksSecurityAdvisoryPropCvss(GitHubModel): + """WebhooksSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhooksSecurityAdvisoryPropIdentifiersItems(GitHubModel): + """WebhooksSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhooksSecurityAdvisoryPropReferencesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, None + ] = Field() + package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" + + identifier: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + + ecosystem: str = Field() + name: str = Field() + + +model_rebuild(WebhooksSecurityAdvisory) +model_rebuild(WebhooksSecurityAdvisoryPropCvss) +model_rebuild(WebhooksSecurityAdvisoryPropCwesItems) +model_rebuild(WebhooksSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhooksSecurityAdvisoryPropReferencesItems) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItems) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage) + +__all__ = ( + "WebhooksSecurityAdvisory", + "WebhooksSecurityAdvisoryPropCvss", + "WebhooksSecurityAdvisoryPropCwesItems", + "WebhooksSecurityAdvisoryPropIdentifiersItems", + "WebhooksSecurityAdvisoryPropReferencesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0501.py b/githubkit/versions/ghec_v2022_11_28/models/group_0501.py index f09785658..86866d0b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0501.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0501.py @@ -17,209 +17,129 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0448 import WebhooksRule - -class WebhookBranchProtectionRuleEdited(GitHubModel): - """branch protection rule edited event""" - - action: Literal["edited"] = Field() - changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( - default=UNSET, - description="If the action was `edited`, the changes to the rule.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", +class WebhooksSponsorship(GitHubModel): + """WebhooksSponsorship""" + + created_at: str = Field() + maintainer: Missing[WebhooksSponsorshipPropMaintainer] = Field(default=UNSET) + node_id: str = Field() + privacy_level: str = Field() + sponsor: Union[WebhooksSponsorshipPropSponsor, None] = Field(title="User") + sponsorable: Union[WebhooksSponsorshipPropSponsorable, None] = Field(title="User") + tier: WebhooksSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChanges - If the action was `edited`, the changes to the rule. - """ - admin_enforced: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced - ] = Field(default=UNSET) - authorized_actor_names: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames - ] = Field(default=UNSET) - authorized_actors_only: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly - ] = Field(default=UNSET) - authorized_dismissal_actors_only: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly - ] = Field(default=UNSET) - linear_history_requirement_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel - ] = Field(default=UNSET) - lock_branch_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel - ] = Field(default=UNSET) - lock_allows_fork_sync: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync - ] = Field(default=UNSET) - pull_request_reviews_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel - ] = Field(default=UNSET) - require_last_push_approval: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval - ] = Field(default=UNSET) - required_status_checks: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks - ] = Field(default=UNSET) - required_status_checks_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel - ] = Field(default=UNSET) - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" - - from_: list[str] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem - entLevel +class WebhooksSponsorshipPropMaintainer(GitHubModel): + """WebhooksSponsorshipPropMaintainer""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksSponsorshipPropSponsor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksSponsorshipPropSponsorable(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksSponsorshipPropTier(GitHubModel): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() + name: str = Field() + node_id: str = Field() -class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev - el - """ - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: list[str] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -model_rebuild(WebhookBranchProtectionRuleEdited) -model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly -) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel -) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel -) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel -) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel -) +model_rebuild(WebhooksSponsorship) +model_rebuild(WebhooksSponsorshipPropMaintainer) +model_rebuild(WebhooksSponsorshipPropSponsor) +model_rebuild(WebhooksSponsorshipPropSponsorable) +model_rebuild(WebhooksSponsorshipPropTier) __all__ = ( - "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropChanges", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", - "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", + "WebhooksSponsorship", + "WebhooksSponsorshipPropMaintainer", + "WebhooksSponsorshipPropSponsor", + "WebhooksSponsorshipPropSponsorable", + "WebhooksSponsorshipPropTier", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0502.py b/githubkit/versions/ghec_v2022_11_28/models/group_0502.py index 304865581..d4236992a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0502.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0502.py @@ -9,53 +9,54 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0450 import ExemptionRequest +class WebhooksChanges8(GitHubModel): + """WebhooksChanges8""" -class WebhookExemptionRequestCancelled(GitHubModel): - """Exemption request cancellation event""" + tier: WebhooksChanges8PropTier = Field() - action: Literal["cancelled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", + +class WebhooksChanges8PropTier(GitHubModel): + """WebhooksChanges8PropTier""" + + from_: WebhooksChanges8PropTierPropFrom = Field( + alias="from", + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookExemptionRequestCancelled) +class WebhooksChanges8PropTierPropFrom(GitHubModel): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() + name: str = Field() + node_id: str = Field() + + +model_rebuild(WebhooksChanges8) +model_rebuild(WebhooksChanges8PropTier) +model_rebuild(WebhooksChanges8PropTierPropFrom) -__all__ = ("WebhookExemptionRequestCancelled",) +__all__ = ( + "WebhooksChanges8", + "WebhooksChanges8PropTier", + "WebhooksChanges8PropTierPropFrom", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0503.py b/githubkit/versions/ghec_v2022_11_28/models/group_0503.py index 225fbe574..b1c86817a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0503.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0503.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,45 +17,66 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0450 import ExemptionRequest +class WebhooksTeam1(GitHubModel): + """Team -class WebhookExemptionRequestCompleted(GitHubModel): - """Exemption request completed event""" + Groups of organization members that gives permissions on specified repositories. + """ - action: Literal["completed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" ) - installation: Missing[SimpleInstallation] = Field( + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhooksTeam1PropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Permission that the team will have for its repositories", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Whether team members will receive notifications when their team is @mentioned", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeam1PropParent(GitHubModel): + """WebhooksTeam1PropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookExemptionRequestCompleted) +model_rebuild(WebhooksTeam1) +model_rebuild(WebhooksTeam1PropParent) -__all__ = ("WebhookExemptionRequestCompleted",) +__all__ = ( + "WebhooksTeam1", + "WebhooksTeam1PropParent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0504.py b/githubkit/versions/ghec_v2022_11_28/models/group_0504.py index 936add7e3..d08c5c9d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0504.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0504.py @@ -17,18 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0450 import ExemptionRequest +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookExemptionRequestCreated(GitHubModel): - """Exemption request created event""" +class WebhookBranchProtectionConfigurationDisabled(GitHubModel): + """branch protection configuration disabled event""" - action: Literal["created"] = Field() + action: Literal["disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +43,13 @@ class WebhookExemptionRequestCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookExemptionRequestCreated) +model_rebuild(WebhookBranchProtectionConfigurationDisabled) -__all__ = ("WebhookExemptionRequestCreated",) +__all__ = ("WebhookBranchProtectionConfigurationDisabled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0505.py b/githubkit/versions/ghec_v2022_11_28/models/group_0505.py index 8064d4089..0b8142f0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0505.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0505.py @@ -17,19 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0449 import ExemptionResponse -from .group_0450 import ExemptionRequest +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookExemptionRequestResponseDismissed(GitHubModel): - """Exemption response dismissed event""" +class WebhookBranchProtectionConfigurationEnabled(GitHubModel): + """branch protection configuration enabled event""" - action: Literal["response_dismissed"] = Field() + action: Literal["enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,22 +43,13 @@ class WebhookExemptionRequestResponseDismissed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", - ) - exemption_response: ExemptionResponse = Field( - title="Exemption response", - description="A response to an exemption request by a delegated bypasser.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookExemptionRequestResponseDismissed) +model_rebuild(WebhookBranchProtectionConfigurationEnabled) -__all__ = ("WebhookExemptionRequestResponseDismissed",) +__all__ = ("WebhookBranchProtectionConfigurationEnabled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0506.py b/githubkit/versions/ghec_v2022_11_28/models/group_0506.py index 6aab557eb..7c63503b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0506.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0506.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0449 import ExemptionResponse -from .group_0450 import ExemptionRequest +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0455 import WebhooksRule -class WebhookExemptionRequestResponseSubmitted(GitHubModel): - """Exemption response submitted event""" +class WebhookBranchProtectionRuleCreated(GitHubModel): + """branch protection rule created event""" - action: Literal["response_submitted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,22 +44,17 @@ class WebhookExemptionRequestResponseSubmitted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", - ) - exemption_response: ExemptionResponse = Field( - title="Exemption response", - description="A response to an exemption request by a delegated bypasser.", + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookExemptionRequestResponseSubmitted) +model_rebuild(WebhookBranchProtectionRuleCreated) -__all__ = ("WebhookExemptionRequestResponseSubmitted",) +__all__ = ("WebhookBranchProtectionRuleCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0507.py b/githubkit/versions/ghec_v2022_11_28/models/group_0507.py index a99991b47..aaa6bb750 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0507.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0507.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0452 import CheckRunWithSimpleCheckSuite +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0455 import WebhooksRule -class WebhookCheckRunCompleted(GitHubModel): - """Check Run Completed Event""" +class WebhookBranchProtectionRuleDeleted(GitHubModel): + """branch protection rule deleted event""" - action: Literal["completed"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -46,9 +48,13 @@ class WebhookCheckRunCompleted(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCompleted) +model_rebuild(WebhookBranchProtectionRuleDeleted) -__all__ = ("WebhookCheckRunCompleted",) +__all__ = ("WebhookBranchProtectionRuleDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0508.py b/githubkit/versions/ghec_v2022_11_28/models/group_0508.py index 15f0118a0..3fef2d739 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0508.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0508.py @@ -9,22 +9,217 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0455 import WebhooksRule -class WebhookCheckRunCompletedFormEncoded(GitHubModel): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleEdited(GitHubModel): + """branch protection rule edited event""" - payload: str = Field( - description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." + action: Literal["edited"] = Field() + changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( + default=UNSET, + description="If the action was `edited`, the changes to the rule.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced + ] = Field(default=UNSET) + authorized_actor_names: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames + ] = Field(default=UNSET) + authorized_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly + ] = Field(default=UNSET) + authorized_dismissal_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly + ] = Field(default=UNSET) + linear_history_requirement_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel + ] = Field(default=UNSET) + lock_branch_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel + ] = Field(default=UNSET) + lock_allows_fork_sync: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync + ] = Field(default=UNSET) + pull_request_reviews_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel + ] = Field(default=UNSET) + require_last_push_approval: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval + ] = Field(default=UNSET) + required_status_checks: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks + ] = Field(default=UNSET) + required_status_checks_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel + ] = Field(default=UNSET) + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: list[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: list[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") -model_rebuild(WebhookCheckRunCompletedFormEncoded) +model_rebuild(WebhookBranchProtectionRuleEdited) +model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel +) -__all__ = ("WebhookCheckRunCompletedFormEncoded",) +__all__ = ( + "WebhookBranchProtectionRuleEdited", + "WebhookBranchProtectionRuleEditedPropChanges", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0509.py b/githubkit/versions/ghec_v2022_11_28/models/group_0509.py index a7646a15c..e456d433e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0509.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0509.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0452 import CheckRunWithSimpleCheckSuite +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0457 import ExemptionRequest -class WebhookCheckRunCreated(GitHubModel): - """Check Run Created Event""" +class WebhookExemptionRequestCancelled(GitHubModel): + """Exemption request cancellation event""" - action: Literal["created"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["cancelled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -42,13 +44,18 @@ class WebhookCheckRunCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCreated) +model_rebuild(WebhookExemptionRequestCancelled) -__all__ = ("WebhookCheckRunCreated",) +__all__ = ("WebhookExemptionRequestCancelled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0510.py b/githubkit/versions/ghec_v2022_11_28/models/group_0510.py index 2a3f094c3..db2f748a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0510.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0510.py @@ -9,22 +9,53 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0457 import ExemptionRequest -class WebhookCheckRunCreatedFormEncoded(GitHubModel): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookExemptionRequestCompleted(GitHubModel): + """Exemption request completed event""" - payload: str = Field( - description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCreatedFormEncoded) +model_rebuild(WebhookExemptionRequestCompleted) -__all__ = ("WebhookCheckRunCreatedFormEncoded",) +__all__ = ("WebhookExemptionRequestCompleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0511.py b/githubkit/versions/ghec_v2022_11_28/models/group_0511.py index 087017ef3..6358239bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0511.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0511.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0452 import CheckRunWithSimpleCheckSuite +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0457 import ExemptionRequest -class WebhookCheckRunRequestedAction(GitHubModel): - """Check Run Requested Action Event""" +class WebhookExemptionRequestCreated(GitHubModel): + """Exemption request created event""" - action: Literal["requested_action"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -42,32 +44,18 @@ class WebhookCheckRunRequestedAction(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( - Field(default=UNSET, description="The action requested by the user.") + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. - """ - - identifier: Missing[str] = Field( - default=UNSET, - description="The integrator reference of the action requested by the user.", - ) - - -model_rebuild(WebhookCheckRunRequestedAction) -model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) +model_rebuild(WebhookExemptionRequestCreated) -__all__ = ( - "WebhookCheckRunRequestedAction", - "WebhookCheckRunRequestedActionPropRequestedAction", -) +__all__ = ("WebhookExemptionRequestCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0512.py b/githubkit/versions/ghec_v2022_11_28/models/group_0512.py index ccf1a4c5f..f188f57e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0512.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0512.py @@ -9,22 +9,58 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0456 import ExemptionResponse +from .group_0457 import ExemptionRequest -class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookExemptionRequestResponseDismissed(GitHubModel): + """Exemption response dismissed event""" - payload: str = Field( - description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." + action: Literal["response_dismissed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", + ) + exemption_response: ExemptionResponse = Field( + title="Exemption response", + description="A response to an exemption request by a delegated bypasser.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRequestedActionFormEncoded) +model_rebuild(WebhookExemptionRequestResponseDismissed) -__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) +__all__ = ("WebhookExemptionRequestResponseDismissed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0513.py b/githubkit/versions/ghec_v2022_11_28/models/group_0513.py index 2cd244489..80963a94e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0513.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0513.py @@ -17,20 +17,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0452 import CheckRunWithSimpleCheckSuite +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0456 import ExemptionResponse +from .group_0457 import ExemptionRequest -class WebhookCheckRunRerequested(GitHubModel): - """Check Run Re-Requested Event""" +class WebhookExemptionRequestResponseSubmitted(GitHubModel): + """Exemption response submitted event""" - action: Literal["rerequested"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["response_submitted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -42,13 +45,22 @@ class WebhookCheckRunRerequested(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", + ) + exemption_response: ExemptionResponse = Field( + title="Exemption response", + description="A response to an exemption request by a delegated bypasser.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRerequested) +model_rebuild(WebhookExemptionRequestResponseSubmitted) -__all__ = ("WebhookCheckRunRerequested",) +__all__ = ("WebhookExemptionRequestResponseSubmitted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0514.py b/githubkit/versions/ghec_v2022_11_28/models/group_0514.py index a44f5cc13..8d3238f81 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0514.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0514.py @@ -9,22 +9,46 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0459 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRerequestedFormEncoded(GitHubModel): - """Check Run Re-Requested Event - The check_run.rerequested webhook encoded with URL encoding - """ +class WebhookCheckRunCompleted(GitHubModel): + """Check Run Completed Event""" - payload: str = Field( - description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." + action: Literal["completed"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRerequestedFormEncoded) +model_rebuild(WebhookCheckRunCompleted) -__all__ = ("WebhookCheckRunRerequestedFormEncoded",) +__all__ = ("WebhookCheckRunCompleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0515.py b/githubkit/versions/ghec_v2022_11_28/models/group_0515.py index 404896782..15f0118a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0515.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0515.py @@ -9,353 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks - - -class WebhookCheckSuiteCompleted(GitHubModel): - """check_suite completed event""" - - action: Literal["completed"] = Field() - check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: list[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] = Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - client_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The client ID of the GitHub app" - ) - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookCheckRunCompletedFormEncoded(GitHubModel): + """Check Run Completed Event - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app + The check_run.completed webhook encoded with URL encoding """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteCompleted) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunCompletedFormEncoded) -__all__ = ( - "WebhookCheckSuiteCompleted", - "WebhookCheckSuiteCompletedPropCheckSuite", - "WebhookCheckSuiteCompletedPropCheckSuitePropApp", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunCompletedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0516.py b/githubkit/versions/ghec_v2022_11_28/models/group_0516.py index e3215e3b9..bcad8e8d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0516.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0516.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,24 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0459 import CheckRunWithSimpleCheckSuite -class WebhookCheckSuiteRequested(GitHubModel): - """check_suite requested event""" +class WebhookCheckRunCreated(GitHubModel): + """Check Run Created Event""" - action: Literal["requested"] = Field() - check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["created"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -54,307 +49,6 @@ class WebhookCheckSuiteRequested(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: list[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - client_id: Missing[Union[str, None]] = Field( - default=UNSET, description="Client ID of the GitHub app" - ) - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookCheckSuiteRequested) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunCreated) -__all__ = ( - "WebhookCheckSuiteRequested", - "WebhookCheckSuiteRequestedPropCheckSuite", - "WebhookCheckSuiteRequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0517.py b/githubkit/versions/ghec_v2022_11_28/models/group_0517.py index 3b29b49a9..2a3f094c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0517.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0517.py @@ -9,353 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks - - -class WebhookCheckSuiteRerequested(GitHubModel): - """check_suite rerequested event""" - - action: Literal["rerequested"] = Field() - check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: list[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - client_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Client ID for the GitHub app" - ) - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookCheckRunCreatedFormEncoded(GitHubModel): + """Check Run Created Event - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app + The check_run.created webhook encoded with URL encoding """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteRerequested) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunCreatedFormEncoded) -__all__ = ( - "WebhookCheckSuiteRerequested", - "WebhookCheckSuiteRerequestedPropCheckSuite", - "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunCreatedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0518.py b/githubkit/versions/ghec_v2022_11_28/models/group_0518.py index 90fa943f9..bc12bae42 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0518.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0518.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal from pydantic import Field @@ -18,27 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0459 import CheckRunWithSimpleCheckSuite -class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckRunRequestedAction(GitHubModel): + """Check Run Requested Action Event""" - action: Literal["appeared_in_branch"] = Field() - alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["requested_action"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -50,187 +42,32 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( + Field(default=UNSET, description="The action requested by the user.") + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlert +class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): + """WebhookCheckRunRequestedActionPropRequestedAction - The code scanning alert involved in the event. + The action requested by the user. """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, - None, - ] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() - url: str = Field() - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( + identifier: Missing[str] = Field( default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." + description="The integrator reference of the action requested by the user.", ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) - - -model_rebuild(WebhookCodeScanningAlertAppearedInBranch) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) +model_rebuild(WebhookCheckRunRequestedAction) +model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) __all__ = ( - "WebhookCodeScanningAlertAppearedInBranch", - "WebhookCodeScanningAlertAppearedInBranchPropAlert", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", + "WebhookCheckRunRequestedAction", + "WebhookCheckRunRequestedActionPropRequestedAction", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0519.py b/githubkit/versions/ghec_v2022_11_28/models/group_0519.py index 4b06566fe..ccf1a4c5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0519.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0519.py @@ -9,228 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks - - -class WebhookCodeScanningAlertClosedByUser(GitHubModel): - """code_scanning_alert closed_by_user event""" - - action: Literal["closed_by_user"] = Field() - alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlert +class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): + """Check Run Requested Action Event - The code scanning alert involved in the event. + The check_run.requested_action webhook encoded with URL encoding """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: datetime = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() - state: Literal["dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() - url: str = Field() - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" - - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + payload: str = Field( + description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCodeScanningAlertClosedByUser) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) +model_rebuild(WebhookCheckRunRequestedActionFormEncoded) -__all__ = ( - "WebhookCodeScanningAlertClosedByUser", - "WebhookCodeScanningAlertClosedByUserPropAlert", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", - "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0520.py b/githubkit/versions/ghec_v2022_11_28/models/group_0520.py index e097bbdde..1bedaf224 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0520.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0520.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal from pydantic import Field @@ -18,27 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0459 import CheckRunWithSimpleCheckSuite -class WebhookCodeScanningAlertCreated(GitHubModel): - """code_scanning_alert created event""" +class WebhookCheckRunRerequested(GitHubModel): + """Check Run Re-Requested Event""" - action: Literal["created"] = Field() - alert: WebhookCodeScanningAlertCreatedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["rerequested"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -50,9 +42,6 @@ class WebhookCodeScanningAlertCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,146 +49,6 @@ class WebhookCodeScanningAlertCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlert - - The code scanning alert involved in the event. - """ - - created_at: Union[datetime, None] = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: None = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: None = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() - state: Union[None, Literal["open", "dismissed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() - updated_at: Missing[Union[str, None]] = Field(default=UNSET) - url: str = Field() - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) - - -class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" - - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) - - -model_rebuild(WebhookCodeScanningAlertCreated) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation -) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) +model_rebuild(WebhookCheckRunRerequested) -__all__ = ( - "WebhookCodeScanningAlertCreated", - "WebhookCodeScanningAlertCreatedPropAlert", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertCreatedPropAlertPropRule", - "WebhookCodeScanningAlertCreatedPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRerequested",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0521.py b/githubkit/versions/ghec_v2022_11_28/models/group_0521.py index e9870750c..a44f5cc13 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0521.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0521.py @@ -9,225 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks - - -class WebhookCodeScanningAlertFixed(GitHubModel): - """code_scanning_alert fixed event""" - - action: Literal["fixed"] = Field() - alert: WebhookCodeScanningAlertFixedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCheckRunRerequestedFormEncoded(GitHubModel): + """Check Run Re-Requested Event - The code scanning alert involved in the event. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( - Field(title="User") - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() - state: Union[None, Literal["fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() - url: str = Field() - - -class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) - - -class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" - - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + payload: str = Field( + description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCodeScanningAlertFixed) -model_rebuild(WebhookCodeScanningAlertFixedPropAlert) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) +model_rebuild(WebhookCheckRunRerequestedFormEncoded) -__all__ = ( - "WebhookCodeScanningAlertFixed", - "WebhookCodeScanningAlertFixedPropAlert", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertFixedPropAlertPropRule", - "WebhookCodeScanningAlertFixedPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRerequestedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0522.py b/githubkit/versions/ghec_v2022_11_28/models/group_0522.py index f78838d45..9319dd6b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0522.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0522.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,22 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookCodeScanningAlertReopened(GitHubModel): - """code_scanning_alert reopened event""" +class WebhookCheckSuiteCompleted(GitHubModel): + """check_suite completed event""" - action: Literal["reopened"] = Field() - alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: Union[str, None] = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["completed"] = Field() + check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: Union[str, None] = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,154 +54,308 @@ class WebhookCodeScanningAlertReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - dismissed_at: Union[str, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." ) - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None - ] = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - dismissed_reason: Union[str, None] = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field() - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() - url: str = Field() + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] + ] = Field( + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." + ) + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" +class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): + """App + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + client_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The client ID of the GitHub app" + ) + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - location: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) + sha: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertReopened) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteCompleted) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopened", - "WebhookCodeScanningAlertReopenedPropAlert", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedPropAlertPropRule", - "WebhookCodeScanningAlertReopenedPropAlertPropTool", + "WebhookCheckSuiteCompleted", + "WebhookCheckSuiteCompletedPropCheckSuite", + "WebhookCheckSuiteCompletedPropCheckSuitePropApp", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0523.py b/githubkit/versions/ghec_v2022_11_28/models/group_0523.py index b1fd8c32d..f96247f48 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0523.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0523.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,22 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookCodeScanningAlertReopenedByUser(GitHubModel): - """code_scanning_alert reopened_by_user event""" +class WebhookCheckSuiteRequested(GitHubModel): + """check_suite requested event""" - action: Literal["reopened_by_user"] = Field() - alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["requested"] = Field() + check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,143 +54,307 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - dismissed_at: None = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - dismissed_by: None = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None - ] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() - state: Union[None, Literal["open", "fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() - url: str = Field() + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" +class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + client_id: Missing[Union[str, None]] = Field( + default=UNSET, description="Client ID of the GitHub app" + ) + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. """ - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer - text: Missing[str] = Field(default=UNSET) + Metaproperties for Git author/committer information. + """ + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + sha: str = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertReopenedByUser) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteRequested) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopenedByUser", - "WebhookCodeScanningAlertReopenedByUserPropAlert", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", + "WebhookCheckSuiteRequested", + "WebhookCheckSuiteRequestedPropCheckSuite", + "WebhookCheckSuiteRequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0524.py b/githubkit/versions/ghec_v2022_11_28/models/group_0524.py index 52dce49b1..b8ced612a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0524.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0524.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,21 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookCommitCommentCreated(GitHubModel): - """commit_comment created event""" +class WebhookCheckSuiteRerequested(GitHubModel): + """check_suite rerequested event""" - action: Literal["created"] = Field( - description="The action performed. Can be `created`." - ) - comment: WebhookCommitCommentCreatedPropComment = Field( - description="The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource." + action: Literal["rerequested"] = Field() + check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -55,70 +54,98 @@ class WebhookCommitCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCommitCommentCreatedPropComment(GitHubModel): - """WebhookCommitCommentCreatedPropComment +class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuite - The [commit - comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- - comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + after: Union[str, None] = Field() + app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - created_at: str = Field() - html_url: str = Field() - id: int = Field(description="The ID of the commit comment.") - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - node_id: str = Field(description="The node ID of the commit comment.") - path: Union[str, None] = Field( - description="The relative path of the file to which the comment applies." + head_sha: str = Field( + description="The SHA of the head commit that is being checked." ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( - default=UNSET, title="Reactions" + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." ) - updated_at: str = Field() - url: str = Field() - user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( - title="User" + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( + Field( + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." + ) ) + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): + """App - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + client_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Client ID for the GitHub app" + ) + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -145,14 +172,190 @@ class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookCommitCommentCreated) -model_rebuild(WebhookCommitCommentCreatedPropComment) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookCheckSuiteRerequested) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) +model_rebuild( + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) +model_rebuild( + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookCommitCommentCreated", - "WebhookCommitCommentCreatedPropComment", - "WebhookCommitCommentCreatedPropCommentPropReactions", - "WebhookCommitCommentCreatedPropCommentPropUser", + "WebhookCheckSuiteRerequested", + "WebhookCheckSuiteRerequestedPropCheckSuite", + "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0525.py b/githubkit/versions/ghec_v2022_11_28/models/group_0525.py index 886e9f66a..cb8ec0477 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0525.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0525.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,18 +18,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookCreate(GitHubModel): - """create event""" +class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): + """code_scanning_alert appeared_in_branch event""" - description: Union[str, None] = Field( - description="The repository's current description." + action: Literal["appeared_in_branch"] = Field() + alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -40,22 +45,13 @@ class WebhookCreate(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - master_branch: str = Field( - description="The name of the repository's default branch (usually `main`)." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) ref: str = Field( - description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object created in the repository." + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -64,6 +60,177 @@ class WebhookCreate(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCreate) +class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None + ] = Field(title="User") + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, + None, + ] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( + GitHubModel +): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" + + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertAppearedInBranch) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) -__all__ = ("WebhookCreate",) +__all__ = ( + "WebhookCodeScanningAlertAppearedInBranch", + "WebhookCodeScanningAlertAppearedInBranchPropAlert", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0526.py b/githubkit/versions/ghec_v2022_11_28/models/group_0526.py index fa55cc778..37a41413c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0526.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0526.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,20 +18,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0070 import CustomProperty -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookCustomPropertyCreated(GitHubModel): - """custom property created event""" +class WebhookCodeScanningAlertClosedByUser(GitHubModel): + """code_scanning_alert closed_by_user event""" - action: Literal["created"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["closed_by_user"] = Field() + alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -47,11 +50,187 @@ class WebhookCustomPropertyCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: datetime = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None + ] = Field(title="User") + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() + state: Literal["dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." ) -model_rebuild(WebhookCustomPropertyCreated) +model_rebuild(WebhookCodeScanningAlertClosedByUser) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) -__all__ = ("WebhookCustomPropertyCreated",) +__all__ = ( + "WebhookCodeScanningAlertClosedByUser", + "WebhookCodeScanningAlertClosedByUserPropAlert", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", + "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0527.py b/githubkit/versions/ghec_v2022_11_28/models/group_0527.py index 4afa90386..3e620f5dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0527.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0527.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,17 +18,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookCustomPropertyDeleted(GitHubModel): - """custom property deleted event""" +class WebhookCodeScanningAlertCreated(GitHubModel): + """code_scanning_alert created event""" - action: Literal["deleted"] = Field() - definition: WebhookCustomPropertyDeletedPropDefinition = Field() + action: Literal["created"] = Field() + alert: WebhookCodeScanningAlertCreatedPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,21 +50,156 @@ class WebhookCustomPropertyDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: Union[datetime, None] = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: None = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: None = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: None = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() + state: Union[None, Literal["open", "dismissed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() + updated_at: Missing[Union[str, None]] = Field(default=UNSET) + url: str = Field() + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) -class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" - property_name: str = Field(description="The name of the property that was deleted.") + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) -model_rebuild(WebhookCustomPropertyDeleted) -model_rebuild(WebhookCustomPropertyDeletedPropDefinition) +model_rebuild(WebhookCodeScanningAlertCreated) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) __all__ = ( - "WebhookCustomPropertyDeleted", - "WebhookCustomPropertyDeletedPropDefinition", + "WebhookCodeScanningAlertCreated", + "WebhookCodeScanningAlertCreatedPropAlert", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertCreatedPropAlertPropRule", + "WebhookCodeScanningAlertCreatedPropAlertPropTool", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0528.py b/githubkit/versions/ghec_v2022_11_28/models/group_0528.py index 69d29aa57..7393475b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0528.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0528.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,20 +18,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0070 import CustomProperty -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookCustomPropertyUpdated(GitHubModel): - """custom property updated event""" +class WebhookCodeScanningAlertFixed(GitHubModel): + """code_scanning_alert fixed event""" - action: Literal["updated"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["fixed"] = Field() + alert: WebhookCodeScanningAlertFixedPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -47,11 +50,184 @@ class WebhookCustomPropertyUpdated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( + Field(title="User") + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() + state: Union[None, Literal["fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." ) -model_rebuild(WebhookCustomPropertyUpdated) +model_rebuild(WebhookCodeScanningAlertFixed) +model_rebuild(WebhookCodeScanningAlertFixedPropAlert) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) -__all__ = ("WebhookCustomPropertyUpdated",) +__all__ = ( + "WebhookCodeScanningAlertFixed", + "WebhookCodeScanningAlertFixedPropAlert", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertFixedPropAlertPropRule", + "WebhookCodeScanningAlertFixedPropAlertPropTool", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0529.py b/githubkit/versions/ghec_v2022_11_28/models/group_0529.py index e18c23979..a3998a905 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0529.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0529.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,18 +18,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0190 import CustomPropertyValue -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookCustomPropertyValuesUpdated(GitHubModel): - """Custom property values updated event""" +class WebhookCodeScanningAlertReopened(GitHubModel): + """code_scanning_alert reopened event""" - action: Literal["updated"] = Field() + action: Literal["reopened"] = Field() + alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: Union[str, None] = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,25 +45,169 @@ class WebhookCustomPropertyValuesUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + ref: Union[str, None] = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[str, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None + ] = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[str, None] = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field() + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." ) - new_property_values: list[CustomPropertyValue] = Field( - description="The new custom property values for the repository." + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." ) - old_property_values: list[CustomPropertyValue] = Field( - description="The old custom property values for the repository." + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." ) -model_rebuild(WebhookCustomPropertyValuesUpdated) +model_rebuild(WebhookCodeScanningAlertReopened) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) -__all__ = ("WebhookCustomPropertyValuesUpdated",) +__all__ = ( + "WebhookCodeScanningAlertReopened", + "WebhookCodeScanningAlertReopenedPropAlert", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedPropAlertPropRule", + "WebhookCodeScanningAlertReopenedPropAlertPropTool", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0530.py b/githubkit/versions/ghec_v2022_11_28/models/group_0530.py index 89be42ec3..3fbd3273f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0530.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0530.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,16 +18,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDelete(GitHubModel): - """delete event""" +class WebhookCodeScanningAlertReopenedByUser(GitHubModel): + """code_scanning_alert reopened_by_user event""" + action: Literal["reopened_by_user"] = Field() + alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,14 +50,8 @@ class WebhookDelete(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) ref: str = Field( - description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object deleted in the repository." + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -58,6 +60,143 @@ class WebhookDelete(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDelete) +class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: None = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: None = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: None = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None + ] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() + state: Union[None, Literal["open", "fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( + GitHubModel +): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio + n + """ + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" + + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertReopenedByUser) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) -__all__ = ("WebhookDelete",) +__all__ = ( + "WebhookCodeScanningAlertReopenedByUser", + "WebhookCodeScanningAlertReopenedByUserPropAlert", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0531.py b/githubkit/versions/ghec_v2022_11_28/models/group_0531.py index f5c16c0a2..70dbffd8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0531.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0531.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,19 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0295 import DependabotAlert -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDependabotAlertAutoDismissed(GitHubModel): - """Dependabot alert auto-dismissed event""" +class WebhookCommitCommentCreated(GitHubModel): + """commit_comment created event""" - action: Literal["auto_dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["created"] = Field( + description="The action performed. Can be `created`." + ) + comment: WebhookCommitCommentCreatedPropComment = Field( + description="The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,11 +48,6 @@ class WebhookDependabotAlertAutoDismissed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -52,6 +55,104 @@ class WebhookDependabotAlertAutoDismissed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertAutoDismissed) +class WebhookCommitCommentCreatedPropComment(GitHubModel): + """WebhookCommitCommentCreatedPropComment + + The [commit + comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- + comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: str = Field() + html_url: str = Field() + id: int = Field(description="The ID of the commit comment.") + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the commit comment.") + path: Union[str, None] = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( + default=UNSET, title="Reactions" + ) + updated_at: str = Field() + url: str = Field() + user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookCommitCommentCreated) +model_rebuild(WebhookCommitCommentCreatedPropComment) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) -__all__ = ("WebhookDependabotAlertAutoDismissed",) +__all__ = ( + "WebhookCommitCommentCreated", + "WebhookCommitCommentCreatedPropComment", + "WebhookCommitCommentCreatedPropCommentPropReactions", + "WebhookCommitCommentCreatedPropCommentPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0532.py b/githubkit/versions/ghec_v2022_11_28/models/group_0532.py index 197934906..7e59724ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0532.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0532.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,33 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0295 import DependabotAlert -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDependabotAlertAutoReopened(GitHubModel): - """Dependabot alert auto-reopened event""" +class WebhookCreate(GitHubModel): + """create event""" - action: Literal["auto_reopened"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + description: Union[str, None] = Field( + description="The repository's current description." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + master_branch: str = Field( + description="The name of the repository's default branch (usually `main`)." + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." + ) + ref: str = Field( + description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." + ) + ref_type: Literal["tag", "branch"] = Field( + description="The type of Git ref object created in the repository." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -52,6 +64,6 @@ class WebhookDependabotAlertAutoReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertAutoReopened) +model_rebuild(WebhookCreate) -__all__ = ("WebhookDependabotAlertAutoReopened",) +__all__ = ("WebhookCreate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0533.py b/githubkit/versions/ghec_v2022_11_28/models/group_0533.py index 8c934ea93..fe4ab794e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0533.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0533.py @@ -17,19 +17,26 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0295 import DependabotAlert -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0077 import CustomProperty +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks -class WebhookDependabotAlertCreated(GitHubModel): - """Dependabot alert created event""" +class WebhookCustomPropertyCreated(GitHubModel): + """custom property created event""" action: Literal["created"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + definition: CustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,18 +47,11 @@ class WebhookDependabotAlertCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertCreated) +model_rebuild(WebhookCustomPropertyCreated) -__all__ = ("WebhookDependabotAlertCreated",) +__all__ = ("WebhookCustomPropertyCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0534.py b/githubkit/versions/ghec_v2022_11_28/models/group_0534.py index 6d4c065a0..6ee4e28f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0534.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0534.py @@ -17,19 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0295 import DependabotAlert -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks -class WebhookDependabotAlertDismissed(GitHubModel): - """Dependabot alert dismissed event""" +class WebhookCustomPropertyDeleted(GitHubModel): + """custom property deleted event""" - action: Literal["dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["deleted"] = Field() + definition: WebhookCustomPropertyDeletedPropDefinition = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,18 +43,21 @@ class WebhookDependabotAlertDismissed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertDismissed) +class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str = Field(description="The name of the property that was deleted.") + + +model_rebuild(WebhookCustomPropertyDeleted) +model_rebuild(WebhookCustomPropertyDeletedPropDefinition) -__all__ = ("WebhookDependabotAlertDismissed",) +__all__ = ( + "WebhookCustomPropertyDeleted", + "WebhookCustomPropertyDeletedPropDefinition", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0535.py b/githubkit/versions/ghec_v2022_11_28/models/group_0535.py index 12c5fd0a8..d49c0ccd3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0535.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0535.py @@ -17,19 +17,26 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0295 import DependabotAlert -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0077 import CustomProperty +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks -class WebhookDependabotAlertFixed(GitHubModel): - """Dependabot alert fixed event""" +class WebhookCustomPropertyUpdated(GitHubModel): + """custom property updated event""" - action: Literal["fixed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + definition: CustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,18 +47,11 @@ class WebhookDependabotAlertFixed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertFixed) +model_rebuild(WebhookCustomPropertyUpdated) -__all__ = ("WebhookDependabotAlertFixed",) +__all__ = ("WebhookCustomPropertyUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0536.py b/githubkit/versions/ghec_v2022_11_28/models/group_0536.py index 78bc385eb..587ffb563 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0536.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0536.py @@ -17,41 +17,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0295 import DependabotAlert -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0197 import CustomPropertyValue +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDependabotAlertReintroduced(GitHubModel): - """Dependabot alert reintroduced event""" +class WebhookCustomPropertyValuesUpdated(GitHubModel): + """Custom property values updated event""" - action: Literal["reintroduced"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + new_property_values: list[CustomPropertyValue] = Field( + description="The new custom property values for the repository." + ) + old_property_values: list[CustomPropertyValue] = Field( + description="The old custom property values for the repository." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertReintroduced) +model_rebuild(WebhookCustomPropertyValuesUpdated) -__all__ = ("WebhookDependabotAlertReintroduced",) +__all__ = ("WebhookCustomPropertyValuesUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0537.py b/githubkit/versions/ghec_v2022_11_28/models/group_0537.py index 6b1fa9a68..f8bf7fd71 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0537.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0537.py @@ -17,19 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0295 import DependabotAlert -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDependabotAlertReopened(GitHubModel): - """Dependabot alert reopened event""" +class WebhookDelete(GitHubModel): + """delete event""" - action: Literal["reopened"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,10 +42,14 @@ class WebhookDependabotAlertReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." + ) + ref: str = Field( + description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." + ) + ref_type: Literal["tag", "branch"] = Field( + description="The type of Git ref object deleted in the repository." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -52,6 +58,6 @@ class WebhookDependabotAlertReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertReopened) +model_rebuild(WebhookDelete) -__all__ = ("WebhookDependabotAlertReopened",) +__all__ = ("WebhookDelete",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0538.py b/githubkit/versions/ghec_v2022_11_28/models/group_0538.py index 9e889d8e4..d2665c41f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0538.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0538.py @@ -17,36 +17,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0453 import WebhooksDeployKey +from .group_0003 import SimpleUser +from .group_0302 import DependabotAlert +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDeployKeyCreated(GitHubModel): - """deploy_key created event""" +class WebhookDependabotAlertAutoDismissed(GitHubModel): + """Dependabot alert auto-dismissed event""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["auto_dismissed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhooksDeployKey = Field( - description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -54,6 +52,6 @@ class WebhookDeployKeyCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDeployKeyCreated) +model_rebuild(WebhookDependabotAlertAutoDismissed) -__all__ = ("WebhookDeployKeyCreated",) +__all__ = ("WebhookDependabotAlertAutoDismissed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0539.py b/githubkit/versions/ghec_v2022_11_28/models/group_0539.py index e514bf0bf..c10655005 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0539.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0539.py @@ -17,36 +17,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0453 import WebhooksDeployKey +from .group_0003 import SimpleUser +from .group_0302 import DependabotAlert +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDeployKeyDeleted(GitHubModel): - """deploy_key deleted event""" +class WebhookDependabotAlertAutoReopened(GitHubModel): + """Dependabot alert auto-reopened event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["auto_reopened"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhooksDeployKey = Field( - description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -54,6 +52,6 @@ class WebhookDeployKeyDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDeployKeyDeleted) +model_rebuild(WebhookDependabotAlertAutoReopened) -__all__ = ("WebhookDeployKeyDeleted",) +__all__ = ("WebhookDependabotAlertAutoReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0540.py b/githubkit/versions/ghec_v2022_11_28/models/group_0540.py index 1bb502faa..870abf967 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0540.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0540.py @@ -9,36 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0454 import WebhooksWorkflow +from .group_0003 import SimpleUser +from .group_0302 import DependabotAlert +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDeploymentCreated(GitHubModel): - """deployment created event""" +class WebhookDependabotAlertCreated(GitHubModel): + """Dependabot alert created event""" action: Literal["created"] = Field() - deployment: WebhookDeploymentCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -49,572 +40,18 @@ class WebhookDeploymentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentCreatedPropDeployment(GitHubModel): - """Deployment - - The [deployment](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/deployments#list-deployments). - """ - - created_at: str = Field() - creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - environment: str = Field() - id: int = Field() - node_id: str = Field() - original_environment: str = Field() - payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1] = ( - Field() - ) - performed_via_github_app: Missing[ - Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - production_environment: Missing[bool] = Field(default=UNSET) - ref: str = Field() - repository_url: str = Field() - sha: str = Field() - statuses_url: str = Field() - task: str = Field() - transient_environment: Missing[bool] = Field(default=UNSET) - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): - """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1""" - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[None] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], - None, - ] - ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( - default=UNSET - ) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Missing[ - Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] - ] = Field(default=UNSET, title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( - Field(default=UNSET) - ) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentCreated) -model_rebuild(WebhookDeploymentCreatedPropDeployment) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertCreated) -__all__ = ( - "WebhookDeploymentCreated", - "WebhookDeploymentCreatedPropDeployment", - "WebhookDeploymentCreatedPropDeploymentPropCreator", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentCreatedPropWorkflowRun", - "WebhookDeploymentCreatedPropWorkflowRunPropActor", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDependabotAlertCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0541.py b/githubkit/versions/ghec_v2022_11_28/models/group_0541.py index 6d1feba44..9e7f4a479 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0541.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0541.py @@ -17,55 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0227 import Deployment -from .group_0358 import PullRequest -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0302 import DependabotAlert +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDeploymentProtectionRuleRequested(GitHubModel): - """deployment protection rule requested event""" +class WebhookDependabotAlertDismissed(GitHubModel): + """Dependabot alert dismissed event""" - action: Literal["requested"] = Field() - environment: Missing[str] = Field( - default=UNSET, - description="The name of the environment that has the deployment protection rule.", - ) - event: Missing[str] = Field( - default=UNSET, - description="The event that triggered the deployment protection rule.", - ) - deployment_callback_url: Missing[str] = Field( - default=UNSET, description="The URL to review the deployment protection rule." - ) - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - pull_requests: Missing[list[PullRequest]] = Field(default=UNSET) - repository: Missing[RepositoryWebhooks] = Field( + action: Literal["dismissed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - installation: Missing[SimpleInstallation] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDeploymentProtectionRuleRequested) +model_rebuild(WebhookDependabotAlertDismissed) -__all__ = ("WebhookDeploymentProtectionRuleRequested",) +__all__ = ("WebhookDependabotAlertDismissed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0542.py b/githubkit/versions/ghec_v2022_11_28/models/group_0542.py index 25271e135..8a51385c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0542.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0542.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,458 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0455 import WebhooksApprover, WebhooksReviewersItems -from .group_0456 import WebhooksWorkflowJobRun +from .group_0003 import SimpleUser +from .group_0302 import DependabotAlert +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDeploymentReviewApproved(GitHubModel): - """WebhookDeploymentReviewApproved""" +class WebhookDependabotAlertFixed(GitHubModel): + """Dependabot alert fixed event""" - action: Literal["approved"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["fixed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - since: str = Field() - workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) - workflow_job_runs: Missing[ - list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: Missing[None] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewApproved) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertFixed) -__all__ = ( - "WebhookDeploymentReviewApproved", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRun", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDependabotAlertFixed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0543.py b/githubkit/versions/ghec_v2022_11_28/models/group_0543.py index 7e0c0b054..1cf4b1850 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0543.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0543.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,458 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0455 import WebhooksApprover, WebhooksReviewersItems -from .group_0456 import WebhooksWorkflowJobRun +from .group_0003 import SimpleUser +from .group_0302 import DependabotAlert +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDeploymentReviewRejected(GitHubModel): - """WebhookDeploymentReviewRejected""" +class WebhookDependabotAlertReintroduced(GitHubModel): + """Dependabot alert reintroduced event""" - action: Literal["rejected"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["reintroduced"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - since: str = Field() - workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) - workflow_job_runs: Missing[ - list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( - Field() - ) - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRejected) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertReintroduced) -__all__ = ( - "WebhookDeploymentReviewRejected", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRun", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDependabotAlertReintroduced",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0544.py b/githubkit/versions/ghec_v2022_11_28/models/group_0544.py index 06c114d42..7435c3ca0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0544.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0544.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,496 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0302 import DependabotAlert +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDeploymentReviewRequested(GitHubModel): - """WebhookDeploymentReviewRequested""" +class WebhookDependabotAlertReopened(GitHubModel): + """Dependabot alert reopened event""" - action: Literal["requested"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - environment: str = Field() + action: Literal["reopened"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requestor: Union[WebhooksUser, None] = Field(title="User") - reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - since: str = Field() - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewRequestedPropWorkflowJobRun(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - status: str = Field() - updated_at: str = Field() - - -class WebhookDeploymentReviewRequestedPropReviewersItems(GitHubModel): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: Missing[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, None] - ] = Field(default=UNSET, title="User") - type: Missing[Literal["User", "Team"]] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( - Field(title="User") - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRequested) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertReopened) -__all__ = ( - "WebhookDeploymentReviewRequested", - "WebhookDeploymentReviewRequestedPropReviewersItems", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewRequestedPropWorkflowJobRun", - "WebhookDeploymentReviewRequestedPropWorkflowRun", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDependabotAlertReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0545.py b/githubkit/versions/ghec_v2022_11_28/models/group_0545.py index af2c9f600..762336822 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0545.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0545.py @@ -9,37 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0454 import WebhooksWorkflow +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0460 import WebhooksDeployKey -class WebhookDeploymentStatusCreated(GitHubModel): - """deployment_status created event""" +class WebhookDeployKeyCreated(GitHubModel): + """deploy_key created event""" action: Literal["created"] = Field() - check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( - default=UNSET - ) - deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", - ) - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( - description="The [deployment status](https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#list-deployment-statuses)." - ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +39,9 @@ class WebhookDeploymentStatusCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + key: WebhooksDeployKey = Field( + description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -60,826 +52,8 @@ class WebhookDeploymentStatusCreated(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Missing[Union[WebhooksWorkflow, None]] = Field( - default=UNSET, title="Workflow" - ) - workflow_run: Missing[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] - ] = Field(default=UNSET, title="Deployment Workflow Run") - - -class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The result of the completed check run. This value will be `null` until the check run has completed." - ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check run.") - node_id: str = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( - description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." - ) - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): - """Deployment - - The [deployment](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/deployments#list-deployments). - """ - - created_at: str = Field() - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - environment: str = Field() - id: int = Field() - node_id: str = Field() - original_environment: str = Field() - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None - ] = Field() - performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None - ] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - production_environment: Missing[bool] = Field(default=UNSET) - ref: str = Field() - repository_url: str = Field() - sha: str = Field() - statuses_url: str = Field() - task: str = Field() - transient_environment: Missing[bool] = Field(default=UNSET) - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( - GitHubModel -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss - ions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatus(GitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentStatus - - The [deployment status](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/statuses#list-deployment-statuses). - """ - - created_at: str = Field() - creator: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, None - ] = Field(title="User") - deployment_url: str = Field() - description: str = Field( - description="The optional human-readable description added to the status." - ) - environment: str = Field() - environment_url: Missing[str] = Field(default=UNSET) - id: int = Field() - log_url: Missing[str] = Field(default=UNSET) - node_id: str = Field() - performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, - None, - ] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - repository_url: str = Field() - state: str = Field( - description="The new state. Can be `pending`, `success`, `failure`, or `error`." - ) - target_url: str = Field(description="The optional link added to the status.") - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp( - GitHubModel -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[None] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( - Field(default=UNSET) - ) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentStatusCreated) -model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) -model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyCreated) -__all__ = ( - "WebhookDeploymentStatusCreated", - "WebhookDeploymentStatusCreatedPropCheckRun", - "WebhookDeploymentStatusCreatedPropDeployment", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropDeploymentStatus", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropWorkflowRun", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDeployKeyCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0546.py b/githubkit/versions/ghec_v2022_11_28/models/group_0546.py index e3ca26313..f72b1433a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0546.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0546.py @@ -17,23 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0458 import WebhooksAnswer -from .group_0459 import Discussion - - -class WebhookDiscussionAnswered(GitHubModel): - """discussion answered event""" - - action: Literal["answered"] = Field() - answer: WebhooksAnswer = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0460 import WebhooksDeployKey + + +class WebhookDeployKeyDeleted(GitHubModel): + """deploy_key deleted event""" + + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,6 +39,9 @@ class WebhookDiscussionAnswered(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + key: WebhooksDeployKey = Field( + description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,6 +54,6 @@ class WebhookDiscussionAnswered(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionAnswered) +model_rebuild(WebhookDeployKeyDeleted) -__all__ = ("WebhookDiscussionAnswered",) +__all__ = ("WebhookDeployKeyDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0547.py b/githubkit/versions/ghec_v2022_11_28/models/group_0547.py index 39bf437f3..8a692bb23 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0547.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0547.py @@ -10,29 +10,29 @@ from __future__ import annotations from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0461 import WebhooksWorkflow -class WebhookDiscussionCategoryChanged(GitHubModel): - """discussion category changed event""" +class WebhookDeploymentCreated(GitHubModel): + """deployment created event""" - action: Literal["category_changed"] = Field() - changes: WebhookDiscussionCategoryChangedPropChanges = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["created"] = Field() + deployment: WebhookDeploymentCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,45 +54,567 @@ class WebhookDiscussionCategoryChanged(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentCreatedPropDeployment(GitHubModel): + """Deployment + + The [deployment](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/deployments#list-deployments). + """ + + created_at: str = Field() + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + environment: str = Field() + id: int = Field() + node_id: str = Field() + original_environment: str = Field() + payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1] = ( + Field() + ) + performed_via_github_app: Missing[ + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + production_environment: Missing[bool] = Field(default=UNSET) + ref: str = Field() + repository_url: str = Field() + sha: str = Field() + statuses_url: str = Field() + task: str = Field() + transient_environment: Missing[bool] = Field(default=UNSET) + updated_at: str = Field() + url: str = Field() -class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): - """WebhookDiscussionCategoryChangedPropChanges""" +class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() +class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): + """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1""" -class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( - alias="from" +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() created_at: datetime = Field() - description: str = Field() - emoji: str = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[None] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() id: int = Field() - is_answerable: bool = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[None] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], + None, + ] + ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( + default=UNSET + ) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Missing[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] + ] = Field(default=UNSET, title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookDiscussionCategoryChanged) -model_rebuild(WebhookDiscussionCategoryChangedPropChanges) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( + Field(default=UNSET) + ) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookDeploymentCreated) +model_rebuild(WebhookDeploymentCreatedPropDeployment) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookDiscussionCategoryChanged", - "WebhookDiscussionCategoryChangedPropChanges", - "WebhookDiscussionCategoryChangedPropChangesPropCategory", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", + "WebhookDeploymentCreated", + "WebhookDeploymentCreatedPropDeployment", + "WebhookDeploymentCreatedPropDeploymentPropCreator", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentCreatedPropWorkflowRun", + "WebhookDeploymentCreatedPropWorkflowRunPropActor", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0548.py b/githubkit/versions/ghec_v2022_11_28/models/group_0548.py index d18040755..aae4a1571 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0548.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0548.py @@ -17,43 +17,55 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion +from .group_0003 import SimpleUser +from .group_0234 import Deployment +from .group_0365 import PullRequest +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookDiscussionClosed(GitHubModel): - """discussion closed event""" +class WebhookDeploymentProtectionRuleRequested(GitHubModel): + """deployment protection rule requested event""" - action: Literal["closed"] = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["requested"] = Field() + environment: Missing[str] = Field( + default=UNSET, + description="The name of the environment that has the deployment protection rule.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + event: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + description="The event that triggered the deployment protection rule.", ) - installation: Missing[SimpleInstallation] = Field( + deployment_callback_url: Missing[str] = Field( + default=UNSET, description="The URL to review the deployment protection rule." + ) + deployment: Missing[Deployment] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + pull_requests: Missing[list[PullRequest]] = Field(default=UNSET) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionClosed) +model_rebuild(WebhookDeploymentProtectionRuleRequested) -__all__ = ("WebhookDiscussionClosed",) +__all__ = ("WebhookDeploymentProtectionRuleRequested",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0549.py b/githubkit/versions/ghec_v2022_11_28/models/group_0549.py index f350b6a68..f7323af8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0549.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0549.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,23 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion -from .group_0460 import WebhooksComment +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0462 import WebhooksApprover, WebhooksReviewersItems +from .group_0463 import WebhooksWorkflowJobRun -class WebhookDiscussionCommentCreated(GitHubModel): - """discussion_comment created event""" +class WebhookDeploymentReviewApproved(GitHubModel): + """WebhookDeploymentReviewApproved""" - action: Literal["created"] = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["approved"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,8 +43,7 @@ class WebhookDiscussionCommentCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,9 +51,425 @@ class WebhookDiscussionCommentCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + since: str = Field() + workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) + workflow_job_runs: Missing[ + list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" + + conclusion: Missing[None] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCommentCreated) +model_rebuild(WebhookDeploymentReviewApproved) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCommentCreated",) +__all__ = ( + "WebhookDeploymentReviewApproved", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRun", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0550.py b/githubkit/versions/ghec_v2022_11_28/models/group_0550.py index 4f6729654..753899f69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0550.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0550.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,23 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion -from .group_0460 import WebhooksComment +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0462 import WebhooksApprover, WebhooksReviewersItems +from .group_0463 import WebhooksWorkflowJobRun -class WebhookDiscussionCommentDeleted(GitHubModel): - """discussion_comment deleted event""" +class WebhookDeploymentReviewRejected(GitHubModel): + """WebhookDeploymentReviewRejected""" - action: Literal["deleted"] = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["rejected"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,8 +43,7 @@ class WebhookDiscussionCommentDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,9 +51,425 @@ class WebhookDiscussionCommentDeleted(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + since: str = Field() + workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) + workflow_job_runs: Missing[ + list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( + Field() + ) + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCommentDeleted) +model_rebuild(WebhookDeploymentReviewRejected) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCommentDeleted",) +__all__ = ( + "WebhookDeploymentReviewRejected", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRun", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0551.py b/githubkit/versions/ghec_v2022_11_28/models/group_0551.py index c0e177d9e..189bd7ce4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0551.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0551.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,36 +18,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion -from .group_0460 import WebhooksComment +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser -class WebhookDiscussionCommentEdited(GitHubModel): - """discussion_comment edited event""" +class WebhookDeploymentReviewRequested(GitHubModel): + """WebhookDeploymentReviewRequested""" - action: Literal["edited"] = Field() - changes: WebhookDiscussionCommentEditedPropChanges = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) + environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -54,27 +49,465 @@ class WebhookDiscussionCommentEdited(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requestor: Union[WebhooksUser, None] = Field(title="User") + reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + since: str = Field() + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewRequestedPropWorkflowJobRun(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" + + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + status: str = Field() + updated_at: str = Field() + + +class WebhookDeploymentReviewRequestedPropReviewersItems(GitHubModel): + """WebhookDeploymentReviewRequestedPropReviewersItems""" + + reviewer: Missing[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, None] + ] = Field(default=UNSET, title="User") + type: Missing[Literal["User", "Team"]] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( + Field(title="User") + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" -class WebhookDiscussionCommentEditedPropChanges(GitHubModel): - """WebhookDiscussionCommentEditedPropChanges""" + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) - body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" -class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionCommentEditedPropChangesPropBody""" + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - from_: str = Field(alias="from") +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" -model_rebuild(WebhookDiscussionCommentEdited) -model_rebuild(WebhookDiscussionCommentEditedPropChanges) -model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookDeploymentReviewRequested) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookDiscussionCommentEdited", - "WebhookDiscussionCommentEditedPropChanges", - "WebhookDiscussionCommentEditedPropChangesPropBody", + "WebhookDeploymentReviewRequested", + "WebhookDeploymentReviewRequestedPropReviewersItems", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewRequestedPropWorkflowJobRun", + "WebhookDeploymentReviewRequestedPropWorkflowRun", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0552.py b/githubkit/versions/ghec_v2022_11_28/models/group_0552.py index 43bfc4bbf..5d21aacd4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0552.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0552.py @@ -9,28 +9,36 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0461 import WebhooksWorkflow -class WebhookDiscussionCreated(GitHubModel): - """discussion created event""" +class WebhookDeploymentStatusCreated(GitHubModel): + """deployment_status created event""" action: Literal["created"] = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( + default=UNSET + ) + deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", + ) + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( + description="The [deployment status](https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#list-deployment-statuses)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -52,8 +60,826 @@ class WebhookDiscussionCreated(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Missing[Union[WebhooksWorkflow, None]] = Field( + default=UNSET, title="Workflow" + ) + workflow_run: Missing[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] + ] = Field(default=UNSET, title="Deployment Workflow Run") + + +class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): + """WebhookDeploymentStatusCreatedPropCheckRun""" + + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The result of the completed check run. This value will be `null` until the check run has completed." + ) + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") + html_url: str = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check run.") + node_id: str = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( + description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." + ) + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): + """Deployment + + The [deployment](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/deployments#list-deployments). + """ + + created_at: str = Field() + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + environment: str = Field() + id: int = Field() + node_id: str = Field() + original_environment: str = Field() + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None + ] = Field() + performed_via_github_app: Missing[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None + ] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + production_environment: Missing[bool] = Field(default=UNSET) + ref: str = Field() + repository_url: str = Field() + sha: str = Field() + statuses_url: str = Field() + task: str = Field() + transient_environment: Missing[bool] = Field(default=UNSET) + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): + """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( + GitHubModel +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss + ions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatus(GitHubModel): + """WebhookDeploymentStatusCreatedPropDeploymentStatus + + The [deployment status](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/statuses#list-deployment-statuses). + """ + + created_at: str = Field() + creator: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, None + ] = Field(title="User") + deployment_url: str = Field() + description: str = Field( + description="The optional human-readable description added to the status." + ) + environment: str = Field() + environment_url: Missing[str] = Field(default=UNSET) + id: int = Field() + log_url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + performed_via_github_app: Missing[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, + None, + ] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + repository_url: str = Field() + state: str = Field( + description="The new state. Can be `pending`, `success`, `failure`, or `error`." + ) + target_url: str = Field(description="The optional link added to the status.") + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp( + GitHubModel +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[None] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[None] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( + Field(default=UNSET) + ) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCreated) +model_rebuild(WebhookDeploymentStatusCreated) +model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) +model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCreated",) +__all__ = ( + "WebhookDeploymentStatusCreated", + "WebhookDeploymentStatusCreatedPropCheckRun", + "WebhookDeploymentStatusCreatedPropDeployment", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropDeploymentStatus", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropWorkflowRun", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0553.py b/githubkit/versions/ghec_v2022_11_28/models/group_0553.py index 1856e8e4c..844cf4ceb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0553.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0553.py @@ -17,18 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0465 import WebhooksAnswer +from .group_0466 import Discussion -class WebhookDiscussionDeleted(GitHubModel): - """discussion deleted event""" +class WebhookDiscussionAnswered(GitHubModel): + """discussion answered event""" - action: Literal["deleted"] = Field() + action: Literal["answered"] = Field() + answer: WebhooksAnswer = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +56,6 @@ class WebhookDiscussionDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionDeleted) +model_rebuild(WebhookDiscussionAnswered) -__all__ = ("WebhookDiscussionDeleted",) +__all__ = ("WebhookDiscussionAnswered",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0554.py b/githubkit/versions/ghec_v2022_11_28/models/group_0554.py index 617020d56..94006b228 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0554.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0554.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -17,19 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion -class WebhookDiscussionEdited(GitHubModel): - """discussion edited event""" +class WebhookDiscussionCategoryChanged(GitHubModel): + """discussion category changed event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) + action: Literal["category_changed"] = Field() + changes: WebhookDiscussionCategoryChangedPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -55,33 +56,43 @@ class WebhookDiscussionEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookDiscussionEditedPropChanges(GitHubModel): - """WebhookDiscussionEditedPropChanges""" +class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): + """WebhookDiscussionCategoryChangedPropChanges""" - body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) + category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() -class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionEditedPropChangesPropBody""" +class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" - from_: str = Field(alias="from") + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( + alias="from" + ) -class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): - """WebhookDiscussionEditedPropChangesPropTitle""" +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" - from_: str = Field(alias="from") + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() -model_rebuild(WebhookDiscussionEdited) -model_rebuild(WebhookDiscussionEditedPropChanges) -model_rebuild(WebhookDiscussionEditedPropChangesPropBody) -model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) +model_rebuild(WebhookDiscussionCategoryChanged) +model_rebuild(WebhookDiscussionCategoryChangedPropChanges) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) __all__ = ( - "WebhookDiscussionEdited", - "WebhookDiscussionEditedPropChanges", - "WebhookDiscussionEditedPropChangesPropBody", - "WebhookDiscussionEditedPropChangesPropTitle", + "WebhookDiscussionCategoryChanged", + "WebhookDiscussionCategoryChangedPropChanges", + "WebhookDiscussionCategoryChangedPropChangesPropCategory", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0555.py b/githubkit/versions/ghec_v2022_11_28/models/group_0555.py index 6e9333cba..6c22215a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0555.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0555.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion -from .group_0461 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion -class WebhookDiscussionLabeled(GitHubModel): - """discussion labeled event""" +class WebhookDiscussionClosed(GitHubModel): + """discussion closed event""" - action: Literal["labeled"] = Field() + action: Literal["closed"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -43,7 +42,6 @@ class WebhookDiscussionLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,6 +54,6 @@ class WebhookDiscussionLabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionLabeled) +model_rebuild(WebhookDiscussionClosed) -__all__ = ("WebhookDiscussionLabeled",) +__all__ = ("WebhookDiscussionClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0556.py b/githubkit/versions/ghec_v2022_11_28/models/group_0556.py index 5d1b27c17..ff877e438 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0556.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0556.py @@ -17,18 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion +from .group_0467 import WebhooksComment -class WebhookDiscussionLocked(GitHubModel): - """discussion locked event""" +class WebhookDiscussionCommentCreated(GitHubModel): + """discussion_comment created event""" - action: Literal["locked"] = Field() + action: Literal["created"] = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +56,6 @@ class WebhookDiscussionLocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionLocked) +model_rebuild(WebhookDiscussionCommentCreated) -__all__ = ("WebhookDiscussionLocked",) +__all__ = ("WebhookDiscussionCommentCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0557.py b/githubkit/versions/ghec_v2022_11_28/models/group_0557.py index 3a26af7da..52ed9b1a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0557.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0557.py @@ -17,18 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion +from .group_0467 import WebhooksComment -class WebhookDiscussionPinned(GitHubModel): - """discussion pinned event""" +class WebhookDiscussionCommentDeleted(GitHubModel): + """discussion_comment deleted event""" - action: Literal["pinned"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +56,6 @@ class WebhookDiscussionPinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionPinned) +model_rebuild(WebhookDiscussionCommentDeleted) -__all__ = ("WebhookDiscussionPinned",) +__all__ = ("WebhookDiscussionCommentDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0558.py b/githubkit/versions/ghec_v2022_11_28/models/group_0558.py index 9b6ee32c0..6118b42b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0558.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0558.py @@ -17,18 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion +from .group_0467 import WebhooksComment -class WebhookDiscussionReopened(GitHubModel): - """discussion reopened event""" +class WebhookDiscussionCommentEdited(GitHubModel): + """discussion_comment edited event""" - action: Literal["reopened"] = Field() + action: Literal["edited"] = Field() + changes: WebhookDiscussionCommentEditedPropChanges = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +57,24 @@ class WebhookDiscussionReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionReopened) +class WebhookDiscussionCommentEditedPropChanges(GitHubModel): + """WebhookDiscussionCommentEditedPropChanges""" -__all__ = ("WebhookDiscussionReopened",) + body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() + + +class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookDiscussionCommentEdited) +model_rebuild(WebhookDiscussionCommentEditedPropChanges) +model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) + +__all__ = ( + "WebhookDiscussionCommentEdited", + "WebhookDiscussionCommentEditedPropChanges", + "WebhookDiscussionCommentEditedPropChangesPropBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0559.py b/githubkit/versions/ghec_v2022_11_28/models/group_0559.py index f7ae1e867..6db34dd18 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0559.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0559.py @@ -17,20 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion -from .group_0560 import WebhookDiscussionTransferredPropChanges +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion -class WebhookDiscussionTransferred(GitHubModel): - """discussion transferred event""" +class WebhookDiscussionCreated(GitHubModel): + """discussion created event""" - action: Literal["transferred"] = Field() - changes: WebhookDiscussionTransferredPropChanges = Field() + action: Literal["created"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -56,6 +54,6 @@ class WebhookDiscussionTransferred(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionTransferred) +model_rebuild(WebhookDiscussionCreated) -__all__ = ("WebhookDiscussionTransferred",) +__all__ = ("WebhookDiscussionCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0560.py b/githubkit/versions/ghec_v2022_11_28/models/group_0560.py index 8b4080ecd..d94aff211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0560.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0560.py @@ -9,26 +9,51 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion -class WebhookDiscussionTransferredPropChanges(GitHubModel): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionDeleted(GitHubModel): + """discussion deleted event""" - new_discussion: Discussion = Field( + action: Literal["deleted"] = Field() + discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - new_repository: RepositoryWebhooks = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionTransferredPropChanges) +model_rebuild(WebhookDiscussionDeleted) -__all__ = ("WebhookDiscussionTransferredPropChanges",) +__all__ = ("WebhookDiscussionDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0561.py b/githubkit/versions/ghec_v2022_11_28/models/group_0561.py index 7a8b0ed1e..d48d5723d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0561.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0561.py @@ -17,21 +17,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0458 import WebhooksAnswer -from .group_0459 import Discussion +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion -class WebhookDiscussionUnanswered(GitHubModel): - """discussion unanswered event""" +class WebhookDiscussionEdited(GitHubModel): + """discussion edited event""" - action: Literal["unanswered"] = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - old_answer: WebhooksAnswer = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -41,11 +52,36 @@ class WebhookDiscussionUnanswered(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookDiscussionEditedPropChanges(GitHubModel): + """WebhookDiscussionEditedPropChanges""" + + body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str = Field(alias="from") -model_rebuild(WebhookDiscussionUnanswered) +model_rebuild(WebhookDiscussionEdited) +model_rebuild(WebhookDiscussionEditedPropChanges) +model_rebuild(WebhookDiscussionEditedPropChangesPropBody) +model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) -__all__ = ("WebhookDiscussionUnanswered",) +__all__ = ( + "WebhookDiscussionEdited", + "WebhookDiscussionEditedPropChanges", + "WebhookDiscussionEditedPropChangesPropBody", + "WebhookDiscussionEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0562.py b/githubkit/versions/ghec_v2022_11_28/models/group_0562.py index 1642df2b9..e48af78db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0562.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0562.py @@ -17,19 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion -from .group_0461 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion +from .group_0468 import WebhooksLabel -class WebhookDiscussionUnlabeled(GitHubModel): - """discussion unlabeled event""" +class WebhookDiscussionLabeled(GitHubModel): + """discussion labeled event""" - action: Literal["unlabeled"] = Field() + action: Literal["labeled"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -56,6 +56,6 @@ class WebhookDiscussionUnlabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnlabeled) +model_rebuild(WebhookDiscussionLabeled) -__all__ = ("WebhookDiscussionUnlabeled",) +__all__ = ("WebhookDiscussionLabeled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0563.py b/githubkit/versions/ghec_v2022_11_28/models/group_0563.py index 305cc58d0..66a5e920c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0563.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0563.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion -class WebhookDiscussionUnlocked(GitHubModel): - """discussion unlocked event""" +class WebhookDiscussionLocked(GitHubModel): + """discussion locked event""" - action: Literal["unlocked"] = Field() + action: Literal["locked"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionUnlocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnlocked) +model_rebuild(WebhookDiscussionLocked) -__all__ = ("WebhookDiscussionUnlocked",) +__all__ = ("WebhookDiscussionLocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0564.py b/githubkit/versions/ghec_v2022_11_28/models/group_0564.py index b62a02ec9..1386c3200 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0564.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0564.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0459 import Discussion +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion -class WebhookDiscussionUnpinned(GitHubModel): - """discussion unpinned event""" +class WebhookDiscussionPinned(GitHubModel): + """discussion pinned event""" - action: Literal["unpinned"] = Field() + action: Literal["pinned"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionUnpinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnpinned) +model_rebuild(WebhookDiscussionPinned) -__all__ = ("WebhookDiscussionUnpinned",) +__all__ = ("WebhookDiscussionPinned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0565.py b/githubkit/versions/ghec_v2022_11_28/models/group_0565.py index e4272d0ed..00603141c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0565.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0565.py @@ -9,34 +9,34 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0566 import WebhookForkPropForkee - +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion -class WebhookFork(GitHubModel): - """fork event - A user forks a repository. - """ +class WebhookDiscussionReopened(GitHubModel): + """discussion reopened event""" + action: Literal["reopened"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - forkee: WebhookForkPropForkee = Field( - description="The created [`repository`](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) resource." - ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -54,6 +54,6 @@ class WebhookFork(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookFork) +model_rebuild(WebhookDiscussionReopened) -__all__ = ("WebhookFork",) +__all__ = ("WebhookDiscussionReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0566.py b/githubkit/versions/ghec_v2022_11_28/models/group_0566.py index 7884faa58..fdfa29db7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0566.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0566.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,177 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0568 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion +from .group_0567 import WebhookDiscussionTransferredPropChanges -class WebhookForkPropForkee(GitHubModel): - """WebhookForkPropForkee +class WebhookDiscussionTransferred(GitHubModel): + """discussion transferred event""" - The created [`repository`](https://docs.github.com/enterprise- - cloud@latest//rest/repos/repos#get-a-repository) resource. - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + action: Literal["transferred"] = Field() + changes: WebhookDiscussionTransferredPropChanges = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: datetime = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: Literal[True] = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[Union[str, None], None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[None, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[None, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: WebhookForkPropForkeeMergedOwner = Field() - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: datetime = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookForkPropForkeeMergedLicense(GitHubModel): - """WebhookForkPropForkeeMergedLicense""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeMergedOwner(GitHubModel): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookForkPropForkee) -model_rebuild(WebhookForkPropForkeeMergedLicense) -model_rebuild(WebhookForkPropForkeeMergedOwner) +model_rebuild(WebhookDiscussionTransferred) -__all__ = ( - "WebhookForkPropForkee", - "WebhookForkPropForkeeMergedLicense", - "WebhookForkPropForkeeMergedOwner", -) +__all__ = ("WebhookDiscussionTransferred",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0567.py b/githubkit/versions/ghec_v2022_11_28/models/group_0567.py index bc55a3d2c..7f00be2a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0567.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0567.py @@ -9,187 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0568 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion -class WebhookForkPropForkeeAllof0(GitHubModel): - """Repository - A git repository - """ +class WebhookDiscussionTransferredPropChanges(GitHubModel): + """WebhookDiscussionTransferredPropChanges""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + new_discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + new_repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkeeAllof0) -model_rebuild(WebhookForkPropForkeeAllof0PropLicense) -model_rebuild(WebhookForkPropForkeeAllof0PropOwner) +model_rebuild(WebhookDiscussionTransferredPropChanges) -__all__ = ( - "WebhookForkPropForkeeAllof0", - "WebhookForkPropForkeeAllof0PropLicense", - "WebhookForkPropForkeeAllof0PropOwner", -) +__all__ = ("WebhookDiscussionTransferredPropChanges",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0568.py b/githubkit/versions/ghec_v2022_11_28/models/group_0568.py index f8d13642f..db06854db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0568.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0568.py @@ -9,23 +9,43 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): - """WebhookForkPropForkeeAllof0PropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) - -__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) +from .group_0003 import SimpleUser +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0465 import WebhooksAnswer +from .group_0466 import Discussion + + +class WebhookDiscussionUnanswered(GitHubModel): + """discussion unanswered event""" + + action: Literal["unanswered"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + old_answer: WebhooksAnswer = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +model_rebuild(WebhookDiscussionUnanswered) + +__all__ = ("WebhookDiscussionUnanswered",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0569.py b/githubkit/versions/ghec_v2022_11_28/models/group_0569.py index 18554f9e3..46f12e089 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0569.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0569.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,125 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion +from .group_0468 import WebhooksLabel -class WebhookForkPropForkeeAllof1(GitHubModel): - """WebhookForkPropForkeeAllof1""" - allow_forking: Missing[bool] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[Literal[True]] = Field(default=UNSET) - forks: Missing[int] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - language: Missing[None] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( - default=UNSET, alias="license" - ) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[None] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - topics: Missing[list[Union[str, None]]] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - - -class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): - """WebhookForkPropForkeeAllof1PropLicense""" - - -class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): - """WebhookForkPropForkeeAllof1PropOwner""" +class WebhookDiscussionUnlabeled(GitHubModel): + """discussion unlabeled event""" - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + action: Literal["unlabeled"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: WebhooksLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookForkPropForkeeAllof1) -model_rebuild(WebhookForkPropForkeeAllof1PropLicense) -model_rebuild(WebhookForkPropForkeeAllof1PropOwner) +model_rebuild(WebhookDiscussionUnlabeled) -__all__ = ( - "WebhookForkPropForkeeAllof1", - "WebhookForkPropForkeeAllof1PropLicense", - "WebhookForkPropForkeeAllof1PropOwner", -) +__all__ = ("WebhookDiscussionUnlabeled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0570.py b/githubkit/versions/ghec_v2022_11_28/models/group_0570.py index 6a802002e..60e739fd3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0570.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0570.py @@ -14,17 +14,46 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0002 import SimpleUser - - -class WebhookGithubAppAuthorizationRevoked(GitHubModel): - """github_app_authorization revoked event""" - - action: Literal["revoked"] = Field() +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion + + +class WebhookDiscussionUnlocked(GitHubModel): + """discussion unlocked event""" + + action: Literal["unlocked"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookGithubAppAuthorizationRevoked) +model_rebuild(WebhookDiscussionUnlocked) -__all__ = ("WebhookGithubAppAuthorizationRevoked",) +__all__ = ("WebhookDiscussionUnlocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0571.py b/githubkit/versions/ghec_v2022_11_28/models/group_0571.py index c14832a35..a8a98c1f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0571.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0571.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,16 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0466 import Discussion -class WebhookGollum(GitHubModel): - """gollum event""" +class WebhookDiscussionUnpinned(GitHubModel): + """discussion unpinned event""" + action: Literal["unpinned"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,9 +47,6 @@ class WebhookGollum(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pages: list[WebhookGollumPropPagesItems] = Field( - description="The pages that were updated." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -52,23 +54,6 @@ class WebhookGollum(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookGollumPropPagesItems(GitHubModel): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] = Field( - description="The action that was performed on the page. Can be `created` or `edited`." - ) - html_url: str = Field(description="Points to the HTML wiki page.") - page_name: str = Field(description="The name of the page.") - sha: str = Field(description="The latest commit SHA of the page.") - summary: Union[str, None] = Field() - title: str = Field(description="The current page title.") - - -model_rebuild(WebhookGollum) -model_rebuild(WebhookGollumPropPagesItems) +model_rebuild(WebhookDiscussionUnpinned) -__all__ = ( - "WebhookGollum", - "WebhookGollumPropPagesItems", -) +__all__ = ("WebhookDiscussionUnpinned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0572.py b/githubkit/versions/ghec_v2022_11_28/models/group_0572.py index 6b8808904..f36aed86e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0572.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0572.py @@ -9,51 +9,51 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0444 import EnterpriseWebhooks -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser -from .group_0462 import WebhooksRepositoriesItems +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0573 import WebhookForkPropForkee + +class WebhookFork(GitHubModel): + """fork event -class WebhookInstallationCreated(GitHubModel): - """installation created event""" + A user forks a repository. + """ - action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Installation = Field(title="Installation", description="Installation") + forkee: WebhookForkPropForkee = Field( + description="The created [`repository`](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) resource." + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationCreated) +model_rebuild(WebhookFork) -__all__ = ("WebhookInstallationCreated",) +__all__ = ("WebhookFork",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0573.py b/githubkit/versions/ghec_v2022_11_28/models/group_0573.py index c3c65655c..8c15dac7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0573.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0573.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,42 +18,177 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0444 import EnterpriseWebhooks -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0462 import WebhooksRepositoriesItems +from .group_0575 import WebhookForkPropForkeeAllof0PropPermissions -class WebhookInstallationDeleted(GitHubModel): - """installation deleted event""" +class WebhookForkPropForkee(GitHubModel): + """WebhookForkPropForkee - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + The created [`repository`](https://docs.github.com/enterprise- + cloud@latest//rest/repos/repos#get-a-repository) resource. + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: datetime = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - description="An array of repository objects that the installation can access.", + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[Union[str, None], None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: Literal[True] = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - repository: Missing[RepositoryWebhooks] = Field( + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[Union[str, None], None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[None, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[None, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: WebhookForkPropForkeeMergedOwner = Field() + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: datetime = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="Whether to require contributors to sign off on web-based commits", ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationDeleted) +class WebhookForkPropForkeeMergedLicense(GitHubModel): + """WebhookForkPropForkeeMergedLicense""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookForkPropForkeeMergedOwner(GitHubModel): + """WebhookForkPropForkeeMergedOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkee) +model_rebuild(WebhookForkPropForkeeMergedLicense) +model_rebuild(WebhookForkPropForkeeMergedOwner) -__all__ = ("WebhookInstallationDeleted",) +__all__ = ( + "WebhookForkPropForkee", + "WebhookForkPropForkeeMergedLicense", + "WebhookForkPropForkeeMergedOwner", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0574.py b/githubkit/versions/ghec_v2022_11_28/models/group_0574.py index fb5f54f80..bd5e5a2d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0574.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0574.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,42 +18,178 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0444 import EnterpriseWebhooks -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0462 import WebhooksRepositoriesItems +from .group_0575 import WebhookForkPropForkeeAllof0PropPermissions -class WebhookInstallationNewPermissionsAccepted(GitHubModel): - """installation new_permissions_accepted event""" +class WebhookForkPropForkeeAllof0(GitHubModel): + """Repository - action: Literal["new_permissions_accepted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - description="An array of repository objects that the installation can access.", + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - repository: Missing[RepositoryWebhooks] = Field( + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="Whether to require contributors to sign off on web-based commits", ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationNewPermissionsAccepted) +class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkeeAllof0) +model_rebuild(WebhookForkPropForkeeAllof0PropLicense) +model_rebuild(WebhookForkPropForkeeAllof0PropOwner) -__all__ = ("WebhookInstallationNewPermissionsAccepted",) +__all__ = ( + "WebhookForkPropForkeeAllof0", + "WebhookForkPropForkeeAllof0PropLicense", + "WebhookForkPropForkeeAllof0PropOwner", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0575.py b/githubkit/versions/ghec_v2022_11_28/models/group_0575.py index 2ba1d819b..f8d13642f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0575.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0575.py @@ -9,76 +9,23 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0444 import EnterpriseWebhooks -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser -from .group_0463 import WebhooksRepositoriesAddedItems - - -class WebhookInstallationRepositoriesAdded(GitHubModel): - """installation_repositories added event""" - - action: Literal["added"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories_added: list[WebhooksRepositoriesAddedItems] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: list[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhooksUser, None] = Field(title="User") - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" +class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): + """WebhookForkPropForkeeAllof0PropPermissions""" - full_name: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field( - default=UNSET, description="Unique identifier of the repository" - ) - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - node_id: Missing[str] = Field(default=UNSET) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private or public." - ) + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookInstallationRepositoriesAdded) -model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) +model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) -__all__ = ( - "WebhookInstallationRepositoriesAdded", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", -) +__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0576.py b/githubkit/versions/ghec_v2022_11_28/models/group_0576.py index 92f2ea03d..18554f9e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0576.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0576.py @@ -17,64 +17,125 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0444 import EnterpriseWebhooks -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser -from .group_0463 import WebhooksRepositoriesAddedItems - - -class WebhookInstallationRepositoriesRemoved(GitHubModel): - """installation_repositories removed event""" - - action: Literal["removed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories_added: list[WebhooksRepositoriesAddedItems] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: list[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhooksUser, None] = Field(title="User") - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -model_rebuild(WebhookInstallationRepositoriesRemoved) -model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) +class WebhookForkPropForkeeAllof1(GitHubModel): + """WebhookForkPropForkeeAllof1""" + + allow_forking: Missing[bool] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[Literal[True]] = Field(default=UNSET) + forks: Missing[int] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + language: Missing[None] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( + default=UNSET, alias="license" + ) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[None] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + topics: Missing[list[Union[str, None]]] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + + +class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): + """WebhookForkPropForkeeAllof1PropLicense""" + + +class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkeeAllof1) +model_rebuild(WebhookForkPropForkeeAllof1PropLicense) +model_rebuild(WebhookForkPropForkeeAllof1PropOwner) __all__ = ( - "WebhookInstallationRepositoriesRemoved", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", + "WebhookForkPropForkeeAllof1", + "WebhookForkPropForkeeAllof1PropLicense", + "WebhookForkPropForkeeAllof1PropOwner", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0577.py b/githubkit/versions/ghec_v2022_11_28/models/group_0577.py index 5346b5ed9..2a852bdcc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0577.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0577.py @@ -14,45 +14,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0444 import EnterpriseWebhooks -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0462 import WebhooksRepositoriesItems - - -class WebhookInstallationSuspend(GitHubModel): - """installation suspend event""" - - action: Literal["suspend"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - requester: Missing[None] = Field(default=UNSET) + +from .group_0003 import SimpleUser + + +class WebhookGithubAppAuthorizationRevoked(GitHubModel): + """github_app_authorization revoked event""" + + action: Literal["revoked"] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationSuspend) +model_rebuild(WebhookGithubAppAuthorizationRevoked) -__all__ = ("WebhookInstallationSuspend",) +__all__ = ("WebhookGithubAppAuthorizationRevoked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0578.py b/githubkit/versions/ghec_v2022_11_28/models/group_0578.py index 99295ea7b..28b48ec2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0578.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0578.py @@ -17,25 +17,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookInstallationTargetRenamed(GitHubModel): - """WebhookInstallationTargetRenamed""" +class WebhookGollum(GitHubModel): + """gollum event""" - account: WebhookInstallationTargetRenamedPropAccount = Field() - action: Literal["renamed"] = Field() - changes: WebhookInstallationTargetRenamedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: SimpleInstallation = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) @@ -44,92 +42,33 @@ class WebhookInstallationTargetRenamed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pages: list[WebhookGollumPropPagesItems] = Field( + description="The pages that were updated." + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - target_type: str = Field() - - -class WebhookInstallationTargetRenamedPropAccount(GitHubModel): - """WebhookInstallationTargetRenamedPropAccount""" - - archived_at: Missing[Union[str, None]] = Field(default=UNSET) - avatar_url: str = Field() - created_at: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers: Missing[int] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following: Missing[int] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - has_organization_projects: Missing[bool] = Field(default=UNSET) - has_repository_projects: Missing[bool] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - is_verified: Missing[bool] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: str = Field() - organizations_url: Missing[str] = Field(default=UNSET) - public_gists: Missing[int] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - public_repos: Missing[int] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - website_url: Missing[None] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookInstallationTargetRenamedPropChanges(GitHubModel): - """WebhookInstallationTargetRenamedPropChanges""" - - login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( - default=UNSET - ) - - -class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - from_: str = Field(alias="from") +class WebhookGollumPropPagesItems(GitHubModel): + """WebhookGollumPropPagesItems""" -class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str = Field(alias="from") + action: Literal["created", "edited"] = Field( + description="The action that was performed on the page. Can be `created` or `edited`." + ) + html_url: str = Field(description="Points to the HTML wiki page.") + page_name: str = Field(description="The name of the page.") + sha: str = Field(description="The latest commit SHA of the page.") + summary: Union[str, None] = Field() + title: str = Field(description="The current page title.") -model_rebuild(WebhookInstallationTargetRenamed) -model_rebuild(WebhookInstallationTargetRenamedPropAccount) -model_rebuild(WebhookInstallationTargetRenamedPropChanges) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) +model_rebuild(WebhookGollum) +model_rebuild(WebhookGollumPropPagesItems) __all__ = ( - "WebhookInstallationTargetRenamed", - "WebhookInstallationTargetRenamedPropAccount", - "WebhookInstallationTargetRenamedPropChanges", - "WebhookInstallationTargetRenamedPropChangesPropLogin", - "WebhookInstallationTargetRenamedPropChangesPropSlug", + "WebhookGollum", + "WebhookGollumPropPagesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0579.py b/githubkit/versions/ghec_v2022_11_28/models/group_0579.py index 7e8732d0b..362baed78 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0579.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0579.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0444 import EnterpriseWebhooks -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0462 import WebhooksRepositoriesItems +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0451 import EnterpriseWebhooks +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser +from .group_0469 import WebhooksRepositoriesItems -class WebhookInstallationUnsuspend(GitHubModel): - """installation unsuspend event""" +class WebhookInstallationCreated(GitHubModel): + """installation created event""" - action: Literal["unsuspend"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,10 +50,10 @@ class WebhookInstallationUnsuspend(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[None] = Field(default=UNSET) + requester: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationUnsuspend) +model_rebuild(WebhookInstallationCreated) -__all__ = ("WebhookInstallationUnsuspend",) +__all__ = ("WebhookInstallationCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0580.py b/githubkit/versions/ghec_v2022_11_28/models/group_0580.py index 6346b6ebf..99a834a4c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0580.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0580.py @@ -17,48 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0581 import WebhookIssueCommentCreatedPropComment -from .group_0582 import WebhookIssueCommentCreatedPropIssue +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0451 import EnterpriseWebhooks +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0469 import WebhooksRepositoriesItems -class WebhookIssueCommentCreated(GitHubModel): - """issue_comment created event""" +class WebhookInstallationDeleted(GitHubModel): + """installation deleted event""" - action: Literal["created"] = Field() - comment: WebhookIssueCommentCreatedPropComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", - ) + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentCreatedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requester: Missing[None] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreated) +model_rebuild(WebhookInstallationDeleted) -__all__ = ("WebhookIssueCommentCreated",) +__all__ = ("WebhookInstallationDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0581.py b/githubkit/versions/ghec_v2022_11_28/models/group_0581.py index 03496c75f..a6ce23df3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0581.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0581.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,94 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0451 import EnterpriseWebhooks +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0469 import WebhooksRepositoriesItems -class WebhookIssueCommentCreatedPropComment(GitHubModel): - """issue comment +class WebhookInstallationNewPermissionsAccepted(GitHubModel): + """installation new_permissions_accepted event""" - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + action: Literal["new_permissions_accepted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( - title="Reactions" + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( - title="User" + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentCreatedPropComment) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) +model_rebuild(WebhookInstallationNewPermissionsAccepted) -__all__ = ( - "WebhookIssueCommentCreatedPropComment", - "WebhookIssueCommentCreatedPropCommentPropReactions", - "WebhookIssueCommentCreatedPropCommentPropUser", -) +__all__ = ("WebhookInstallationNewPermissionsAccepted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0582.py b/githubkit/versions/ghec_v2022_11_28/models/group_0582.py index 61b9a4de8..64a720f50 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0582.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0582.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,161 +17,68 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0584 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) -from .group_0589 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary -from .group_0591 import WebhookIssueCommentCreatedPropIssueMergedMilestone -from .group_0592 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp - - -class WebhookIssueCommentCreatedPropIssue(GitHubModel): - """WebhookIssueCommentCreatedPropIssue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0451 import EnterpriseWebhooks +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser +from .group_0470 import WebhooksRepositoriesAddedItems + + +class WebhookInstallationRepositoriesAdded(GitHubModel): + """installation_repositories added event""" + + action: Literal["added"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories_added: list[WebhooksRepositoriesAddedItems] = Field( + description="An array of repository objects, which were added to the installation." + ) + repositories_removed: list[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + description="An array of repository objects, which were removed from the installation." ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + requester: Union[WebhooksUser, None] = Field(title="User") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" + + full_name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the repository" ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private or public." ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssue) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) +model_rebuild(WebhookInstallationRepositoriesAdded) +model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) __all__ = ( - "WebhookIssueCommentCreatedPropIssue", - "WebhookIssueCommentCreatedPropIssueMergedAssignees", - "WebhookIssueCommentCreatedPropIssueMergedReactions", - "WebhookIssueCommentCreatedPropIssueMergedUser", + "WebhookInstallationRepositoriesAdded", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0583.py b/githubkit/versions/ghec_v2022_11_28/models/group_0583.py index fc989b6a3..8d173433c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0583.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0583.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,180 +17,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0584 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) -from .group_0586 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone -from .group_0588 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0589 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - - -class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0451 import EnterpriseWebhooks +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser +from .group_0470 import WebhooksRepositoriesAddedItems + + +class WebhookInstallationRepositoriesRemoved(GitHubModel): + """installation_repositories removed event""" + + action: Literal["removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + repositories_added: list[WebhooksRepositoriesAddedItems] = Field( + description="An array of repository objects, which were added to the installation." ) - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( - title="Reactions" + repositories_removed: list[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems + ] = Field( + description="An array of repository objects, which were removed from the installation." ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( - title="User" + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" ) + requester: Union[WebhooksUser, None] = Field(title="User") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) +model_rebuild(WebhookInstallationRepositoriesRemoved) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof0PropUser", + "WebhookInstallationRepositoriesRemoved", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0584.py b/githubkit/versions/ghec_v2022_11_28/models/group_0584.py index fda7ebaae..dc06ee0c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0584.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0584.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,66 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0451 import EnterpriseWebhooks +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0469 import WebhooksRepositoriesItems -class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookInstallationSuspend(GitHubModel): + """installation suspend event""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + action: Literal["suspend"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookInstallationSuspend) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", -) +__all__ = ("WebhookInstallationSuspend",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0585.py b/githubkit/versions/ghec_v2022_11_28/models/group_0585.py index 3775a89ee..e85e99ef8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0585.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0585.py @@ -17,36 +17,119 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) +class WebhookInstallationTargetRenamed(GitHubModel): + """WebhookInstallationTargetRenamed""" + + account: WebhookInstallationTargetRenamedPropAccount = Field() + action: Literal["renamed"] = Field() + changes: WebhookInstallationTargetRenamedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + target_type: str = Field() + + +class WebhookInstallationTargetRenamedPropAccount(GitHubModel): + """WebhookInstallationTargetRenamedPropAccount""" + + archived_at: Missing[Union[str, None]] = Field(default=UNSET) + avatar_url: str = Field() + created_at: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + has_organization_projects: Missing[bool] = Field(default=UNSET) + has_repository_projects: Missing[bool] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() id: int = Field() - login: str = Field() + is_verified: Missing[bool] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() organizations_url: Missing[str] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + public_members_url: Missing[str] = Field(default=UNSET) + public_repos: Missing[int] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) repos_url: Missing[str] = Field(default=UNSET) site_admin: Missing[bool] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + website_url: Missing[None] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) +class WebhookInstallationTargetRenamedPropChanges(GitHubModel): + """WebhookInstallationTargetRenamedPropChanges""" + + login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( + default=UNSET + ) + + +class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" + + from_: str = Field(alias="from") + + +class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookInstallationTargetRenamed) +model_rebuild(WebhookInstallationTargetRenamedPropAccount) +model_rebuild(WebhookInstallationTargetRenamedPropChanges) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookInstallationTargetRenamed", + "WebhookInstallationTargetRenamedPropAccount", + "WebhookInstallationTargetRenamedPropChanges", + "WebhookInstallationTargetRenamedPropChangesPropLogin", + "WebhookInstallationTargetRenamedPropChangesPropSlug", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0586.py b/githubkit/versions/ghec_v2022_11_28/models/group_0586.py index a09b8d0ec..1af19d8bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0586.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0586.py @@ -9,44 +9,50 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0585 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) - - -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0451 import EnterpriseWebhooks +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0469 import WebhooksRepositoriesItems + + +class WebhookInstallationUnsuspend(GitHubModel): + """installation unsuspend event""" + + action: Literal["unsuspend"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookInstallationUnsuspend) + +__all__ = ("WebhookInstallationUnsuspend",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0587.py b/githubkit/versions/ghec_v2022_11_28/models/group_0587.py index 9a58db044..5f805ada4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0587.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0587.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,98 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0588 import WebhookIssueCommentCreatedPropComment +from .group_0589 import WebhookIssueCommentCreatedPropIssue -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentCreated(GitHubModel): + """issue_comment created event""" - -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + action: Literal["created"] = Field() + comment: WebhookIssueCommentCreatedPropComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + issue: WebhookIssueCommentCreatedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentCreated) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0588.py b/githubkit/versions/ghec_v2022_11_28/models/group_0588.py index e97b6b15c..a9859cc27 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0588.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0588.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,44 +18,94 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0587 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0010 import Integration -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentCreatedPropComment(GitHubModel): + """issue comment - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - external_url: Union[str, None] = Field() + body: str = Field(description="Contents of the issue comment") + created_at: datetime = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + performed_via_github_app: Union[None, Integration, None] = Field() + reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( + title="User" ) - updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) +class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): + """User""" -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropComment) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) + +__all__ = ( + "WebhookIssueCommentCreatedPropComment", + "WebhookIssueCommentCreatedPropCommentPropReactions", + "WebhookIssueCommentCreatedPropCommentPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0589.py b/githubkit/versions/ghec_v2022_11_28/models/group_0589.py index bdfcb7cc4..5703917da 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0589.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0589.py @@ -9,19 +9,170 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0591 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) +from .group_0596 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary +from .group_0598 import WebhookIssueCommentCreatedPropIssueMergedMilestone +from .group_0599 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp + + +class WebhookIssueCommentCreatedPropIssue(GitHubModel): + """WebhookIssueCommentCreatedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() + + +class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedUser""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssueCommentCreatedPropIssue) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssue", + "WebhookIssueCommentCreatedPropIssueMergedAssignees", + "WebhookIssueCommentCreatedPropIssueMergedReactions", + "WebhookIssueCommentCreatedPropIssueMergedUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0590.py b/githubkit/versions/ghec_v2022_11_28/models/group_0590.py index 7371c113a..ba85a7141 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0590.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0590.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,54 +18,100 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") +from .group_0591 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) +from .group_0593 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone +from .group_0595 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0596 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary + + +class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - assignees: Missing[ - list[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( - default=UNSET + Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( + title="Reactions" ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( - default=UNSET + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( + title="User" ) -class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -93,59 +140,36 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - +class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" +class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -153,26 +177,21 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof1PropUser", + "WebhookIssueCommentCreatedPropIssueAllof0", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0591.py b/githubkit/versions/ghec_v2022_11_28/models/group_0591.py index b2902ea05..fda7ebaae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0591.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0591.py @@ -15,35 +15,69 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0585 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0592.py b/githubkit/versions/ghec_v2022_11_28/models/group_0592.py index 7a5a73fa7..3775a89ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0592.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0592.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,38 +17,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0587 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) - -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0593.py b/githubkit/versions/ghec_v2022_11_28/models/group_0593.py index b8f2fca64..6c041a421 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0593.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0593.py @@ -9,56 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0464 import WebhooksIssueComment -from .group_0594 import WebhookIssueCommentDeletedPropIssue +from .group_0592 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentDeleted(GitHubModel): - """issue_comment deleted event""" +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - action: Literal["deleted"] = Field() - comment: WebhooksIssueComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentDeletedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + A collection of related issues and pull requests. + """ + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentDeleted) -__all__ = ("WebhookIssueCommentDeleted",) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0594.py b/githubkit/versions/ghec_v2022_11_28/models/group_0594.py index c0ce4ddb9..9a58db044 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0594.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0594.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,82 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0596 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, -) -from .group_0601 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary -from .group_0603 import WebhookIssueCommentDeletedPropIssueMergedMilestone -from .group_0604 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp - - -class WebhookIssueCommentDeletedPropIssue(GitHubModel): - """WebhookIssueCommentDeletedPropIssue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() - -class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -114,65 +42,73 @@ class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedUser""" + The set of permissions for the GitHub app + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentDeletedPropIssue) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) __all__ = ( - "WebhookIssueCommentDeletedPropIssue", - "WebhookIssueCommentDeletedPropIssueMergedAssignees", - "WebhookIssueCommentDeletedPropIssueMergedReactions", - "WebhookIssueCommentDeletedPropIssueMergedUser", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0595.py b/githubkit/versions/ghec_v2022_11_28/models/group_0595.py index f0c50fde6..60f782559 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0595.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0595.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,180 +18,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0596 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +from .group_0594 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) -from .group_0598 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone -from .group_0600 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0601 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary -class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( - title="Reactions" + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( - title="User" - ) - + updated_at: Union[datetime, None] = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) -class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof0PropUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0596.py b/githubkit/versions/ghec_v2022_11_28/models/group_0596.py index 79014e43a..bdfcb7cc4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0596.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0596.py @@ -9,75 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + total: int = Field() + completed: int = Field() + percent_completed: int = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0597.py b/githubkit/versions/ghec_v2022_11_28/models/group_0597.py index 132940878..7371c113a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0597.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0597.py @@ -18,7 +18,53 @@ from githubkit.utils import UNSET -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") + ) + assignees: Missing[ + list[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( + default=UNSET + ) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,6 +93,86 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof1", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0598.py b/githubkit/versions/ghec_v2022_11_28/models/group_0598.py index 79f74eb30..1301295d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0598.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0598.py @@ -16,22 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0597 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +from .group_0592 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -47,6 +44,6 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): url: str = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0599.py b/githubkit/versions/ghec_v2022_11_28/models/group_0599.py index c6044c9aa..b30b3c840 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0599.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0599.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,94 +18,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0594 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - The set of permissions for the GitHub app - """ +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0600.py b/githubkit/versions/ghec_v2022_11_28/models/group_0600.py index d7747d298..862f7e270 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0600.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0600.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,44 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0599 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0471 import WebhooksIssueComment +from .group_0601 import WebhookIssueCommentDeletedPropIssue -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentDeleted(GitHubModel): + """issue_comment deleted event""" - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + action: Literal["deleted"] = Field() + comment: WebhooksIssueComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentDeletedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: Union[datetime, None] = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeleted) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0601.py b/githubkit/versions/ghec_v2022_11_28/models/group_0601.py index f0a05c54f..e028f5759 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0601.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0601.py @@ -9,19 +9,170 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0603 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +) +from .group_0608 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary +from .group_0610 import WebhookIssueCommentDeletedPropIssueMergedMilestone +from .group_0611 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp + + +class WebhookIssueCommentDeletedPropIssue(GitHubModel): + """WebhookIssueCommentDeletedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() + + +class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedUser""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssueCommentDeletedPropIssue) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssue", + "WebhookIssueCommentDeletedPropIssueMergedAssignees", + "WebhookIssueCommentDeletedPropIssueMergedReactions", + "WebhookIssueCommentDeletedPropIssueMergedUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0602.py b/githubkit/versions/ghec_v2022_11_28/models/group_0602.py index 10129f694..d19eade75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0602.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0602.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,54 +18,100 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") +from .group_0603 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +) +from .group_0605 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone +from .group_0607 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0608 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary + + +class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - assignees: Missing[ - list[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( - default=UNSET + Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( + title="Reactions" ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( - default=UNSET + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( + title="User" ) -class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -93,59 +140,36 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" +class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -153,27 +177,21 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof1PropUser", + "WebhookIssueCommentDeletedPropIssueAllof0", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0603.py b/githubkit/versions/ghec_v2022_11_28/models/group_0603.py index 2a81fa437..79014e43a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0603.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0603.py @@ -15,35 +15,69 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0597 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0604.py b/githubkit/versions/ghec_v2022_11_28/models/group_0604.py index 0b6d3b615..132940878 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0604.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0604.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,38 +17,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0599 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) - -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0605.py b/githubkit/versions/ghec_v2022_11_28/models/group_0605.py index e97f76624..6e6416a84 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0605.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0605.py @@ -9,58 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0464 import WebhooksIssueComment -from .group_0465 import WebhooksChanges -from .group_0606 import WebhookIssueCommentEditedPropIssue +from .group_0604 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentEdited(GitHubModel): - """issue_comment edited event""" +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - action: Literal["edited"] = Field() - changes: WebhooksChanges = Field(description="The changes to the comment.") - comment: WebhooksIssueComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentEditedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + A collection of related issues and pull requests. + """ + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentEdited) -__all__ = ("WebhookIssueCommentEdited",) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0606.py b/githubkit/versions/ghec_v2022_11_28/models/group_0606.py index eb6a6cd2b..c6044c9aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0606.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0606.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,82 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0608 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, -) -from .group_0613 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary -from .group_0615 import WebhookIssueCommentEditedPropIssueMergedMilestone -from .group_0616 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp - - -class WebhookIssueCommentEditedPropIssue(GitHubModel): - """WebhookIssueCommentEditedPropIssue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentEditedPropIssueMergedUser = Field() - -class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -114,65 +42,69 @@ class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + The set of permissions for the GitHub app + """ -class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentEditedPropIssue) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) __all__ = ( - "WebhookIssueCommentEditedPropIssue", - "WebhookIssueCommentEditedPropIssueMergedAssignees", - "WebhookIssueCommentEditedPropIssueMergedReactions", - "WebhookIssueCommentEditedPropIssueMergedUser", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0607.py b/githubkit/versions/ghec_v2022_11_28/models/group_0607.py index f1cbb7b89..d93d81aeb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0607.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0607.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,180 +18,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0608 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +from .group_0606 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) -from .group_0610 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone -from .group_0612 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0613 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary -class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( - title="Reactions" + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( - title="User" - ) - + updated_at: Union[datetime, None] = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) -class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0", - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof0PropReactions", - "WebhookIssueCommentEditedPropIssueAllof0PropUser", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0608.py b/githubkit/versions/ghec_v2022_11_28/models/group_0608.py index 1550c9c19..f0a05c54f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0608.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0608.py @@ -9,75 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + total: int = Field() + completed: int = Field() + percent_completed: int = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0609.py b/githubkit/versions/ghec_v2022_11_28/models/group_0609.py index b0370744c..10129f694 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0609.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0609.py @@ -18,7 +18,53 @@ from githubkit.utils import UNSET -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") + ) + assignees: Missing[ + list[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( + default=UNSET + ) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,6 +93,87 @@ class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof1", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0610.py b/githubkit/versions/ghec_v2022_11_28/models/group_0610.py index 4ebe62bf2..6004fe540 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0610.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0610.py @@ -16,20 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0609 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +from .group_0604 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -45,6 +44,6 @@ class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): url: str = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0611.py b/githubkit/versions/ghec_v2022_11_28/models/group_0611.py index 4a8bc3224..b682e94b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0611.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0611.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,95 +18,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0606 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - The set of permissions for the GitHub app - """ +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0612.py b/githubkit/versions/ghec_v2022_11_28/models/group_0612.py index 35e79e275..599d2b961 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0612.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0612.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,43 +17,50 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0611 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0471 import WebhooksIssueComment +from .group_0472 import WebhooksChanges +from .group_0613 import WebhookIssueCommentEditedPropIssue -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentEdited(GitHubModel): + """issue_comment edited event""" - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + action: Literal["edited"] = Field() + changes: WebhooksChanges = Field(description="The changes to the comment.") + comment: WebhooksIssueComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentEditedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: Union[datetime, None] = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEdited) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentEdited",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0613.py b/githubkit/versions/ghec_v2022_11_28/models/group_0613.py index 2d17d8ee7..56b4ce3cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0613.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0613.py @@ -9,19 +9,170 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0615 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +) +from .group_0620 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary +from .group_0622 import WebhookIssueCommentEditedPropIssueMergedMilestone +from .group_0623 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp + + +class WebhookIssueCommentEditedPropIssue(GitHubModel): + """WebhookIssueCommentEditedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentEditedPropIssueMergedUser = Field() + + +class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedReactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedUser""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssueCommentEditedPropIssue) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentEditedPropIssue", + "WebhookIssueCommentEditedPropIssueMergedAssignees", + "WebhookIssueCommentEditedPropIssueMergedReactions", + "WebhookIssueCommentEditedPropIssueMergedUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0614.py b/githubkit/versions/ghec_v2022_11_28/models/group_0614.py index 7d03e33d0..33f5e2a18 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0614.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0614.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,54 +18,100 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( - title="User" +from .group_0615 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +) +from .group_0617 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone +from .group_0619 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0620 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary + + +class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - assignees: Missing[ - list[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( - default=UNSET + Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( + title="Reactions" ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( - default=UNSET + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( + title="User" ) -class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -93,59 +140,36 @@ class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" +class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" +class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -153,26 +177,21 @@ class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1", - "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentEditedPropIssueAllof1PropReactions", - "WebhookIssueCommentEditedPropIssueAllof1PropUser", + "WebhookIssueCommentEditedPropIssueAllof0", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof0PropReactions", + "WebhookIssueCommentEditedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0615.py b/githubkit/versions/ghec_v2022_11_28/models/group_0615.py index b5ac4b294..1550c9c19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0615.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0615.py @@ -15,33 +15,69 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0609 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): + """User""" -class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0616.py b/githubkit/versions/ghec_v2022_11_28/models/group_0616.py index 0a5abebe1..b0370744c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0616.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0616.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,37 +17,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0611 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) - -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0617.py b/githubkit/versions/ghec_v2022_11_28/models/group_0617.py index ee18105e0..70124d88d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0617.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0617.py @@ -9,54 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser -from .group_0466 import WebhooksIssue - - -class WebhookIssuesAssigned(GitHubModel): - """issues assigned event""" - - action: Literal["assigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhooksIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookIssuesAssigned) - -__all__ = ("WebhookIssuesAssigned",) + +from .group_0616 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator + + +class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0618.py b/githubkit/versions/ghec_v2022_11_28/models/group_0618.py index 164690ce7..4a8bc3224 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0618.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0618.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,43 +17,95 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0619 import WebhookIssuesClosedPropIssue +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" -class WebhookIssuesClosed(GitHubModel): - """issues closed event""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - action: Literal["closed"] = Field(description="The action that was performed.") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesClosedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself." + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosed) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssuesClosed",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0619.py b/githubkit/versions/ghec_v2022_11_28/models/group_0619.py index a85574a29..e3299208f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0619.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0619.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,208 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0625 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequest, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, +from .group_0618 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) -from .group_0627 import WebhookIssuesClosedPropIssueMergedMilestone -from .group_0628 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp -class WebhookIssuesClosedPropIssue(GitHubModel): - """WebhookIssuesClosedPropIssue +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( - default=UNSET - ) - assignees: list[WebhookIssuesClosedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesClosedPropIssueMergedLabels]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesClosedPropIssueMergedUser = Field() - - -class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignee""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesClosedPropIssueMergedLabels""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesClosedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): - """WebhookIssuesClosedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesClosedPropIssue) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) -model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) -model_rebuild(WebhookIssuesClosedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssuesClosedPropIssue", - "WebhookIssuesClosedPropIssueMergedAssignee", - "WebhookIssuesClosedPropIssueMergedAssignees", - "WebhookIssuesClosedPropIssueMergedLabels", - "WebhookIssuesClosedPropIssueMergedReactions", - "WebhookIssuesClosedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0620.py b/githubkit/versions/ghec_v2022_11_28/models/group_0620.py index b164d0cd8..2d17d8ee7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0620.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0620.py @@ -9,228 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0622 import WebhookIssuesClosedPropIssueAllof0PropMilestone -from .group_0624 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp -from .group_0625 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequest, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, -) - - -class WebhookIssuesClosedPropIssueAllof0(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") - - -class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + total: int = Field() + completed: int = Field() + percent_completed: int = Field() -model_rebuild(WebhookIssuesClosedPropIssueAllof0) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0", - "WebhookIssuesClosedPropIssueAllof0PropAssignee", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof0PropReactions", - "WebhookIssuesClosedPropIssueAllof0PropUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0621.py b/githubkit/versions/ghec_v2022_11_28/models/group_0621.py index 038d97dfc..7d03e33d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0621.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0621.py @@ -18,7 +18,53 @@ from githubkit.utils import UNSET -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( + title="User" + ) + assignees: Missing[ + list[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( + default=UNSET + ) + + +class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,6 +93,86 @@ class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof1", + "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentEditedPropIssueAllof1PropReactions", + "WebhookIssueCommentEditedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0622.py b/githubkit/versions/ghec_v2022_11_28/models/group_0622.py index 6cf7c9e52..3279367e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0622.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0622.py @@ -16,21 +16,18 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0621 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +from .group_0616 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") - ) + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -45,6 +42,6 @@ class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): url: str = Field() -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0623.py b/githubkit/versions/ghec_v2022_11_28/models/group_0623.py index 52dd00063..35b7c331a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0623.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0623.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,91 +18,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0618 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - The set of permissions for the GitHub app - """ +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0624.py b/githubkit/versions/ghec_v2022_11_28/models/group_0624.py index 2e8f638ec..42f1afaca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0624.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0624.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,43 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0623 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser +from .group_0473 import WebhooksIssue -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssuesAssigned(GitHubModel): + """issues assigned event""" - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + action: Literal["assigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: Union[datetime, None] = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesAssigned) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ("WebhookIssuesAssigned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0625.py b/githubkit/versions/ghec_v2022_11_28/models/group_0625.py index ada7003bc..967fffd8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0625.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0625.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,29 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary) - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequest", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", -) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0626 import WebhookIssuesClosedPropIssue + + +class WebhookIssuesClosed(GitHubModel): + """issues closed event""" + + action: Literal["closed"] = Field(description="The action that was performed.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesClosedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookIssuesClosed) + +__all__ = ("WebhookIssuesClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0626.py b/githubkit/versions/ghec_v2022_11_28/models/group_0626.py index abefecf23..4f39d6216 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0626.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0626.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,98 +18,182 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0632 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequest, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, +) +from .group_0634 import WebhookIssuesClosedPropIssueMergedMilestone +from .group_0635 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp + -class WebhookIssuesClosedPropIssueAllof1(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1""" +class WebhookIssuesClosedPropIssue(GitHubModel): + """WebhookIssuesClosedPropIssue - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( + default=UNSET ) - assignees: Missing[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Union[str, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( - Field(default=UNSET) + assignees: list[WebhookIssuesClosedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesClosedPropIssueMergedLabels]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( default=UNSET ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["closed", "open"] = Field() + reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) - + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssuesClosedPropIssueMergedUser = Field() -class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" +class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignee""" -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" +class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignees""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" +class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): + """WebhookIssuesClosedPropIssueMergedLabels""" -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" +class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): + """WebhookIssuesClosedPropIssueMergedReactions""" - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropUser""" +class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): + """WebhookIssuesClosedPropIssueMergedUser""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -116,27 +201,25 @@ class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof1) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) +model_rebuild(WebhookIssuesClosedPropIssue) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) +model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) +model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) +model_rebuild(WebhookIssuesClosedPropIssueMergedUser) __all__ = ( - "WebhookIssuesClosedPropIssueAllof1", - "WebhookIssuesClosedPropIssueAllof1PropAssignee", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof1PropMilestone", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesClosedPropIssueAllof1PropReactions", - "WebhookIssuesClosedPropIssueAllof1PropUser", + "WebhookIssuesClosedPropIssue", + "WebhookIssuesClosedPropIssueMergedAssignee", + "WebhookIssuesClosedPropIssueMergedAssignees", + "WebhookIssuesClosedPropIssueMergedLabels", + "WebhookIssuesClosedPropIssueMergedReactions", + "WebhookIssuesClosedPropIssueMergedUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0627.py b/githubkit/versions/ghec_v2022_11_28/models/group_0627.py index d49e8d211..8b5446efb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0627.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0627.py @@ -15,33 +15,222 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0621 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +from .group_0629 import WebhookIssuesClosedPropIssueAllof0PropMilestone +from .group_0631 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp +from .group_0632 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequest, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, +) -class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueMergedMilestone""" +class WebhookIssuesClosedPropIssueAllof0(GitHubModel): + """Issue + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: list[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() + comments: int = Field() + comments_url: str = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() id: int = Field() + labels: Missing[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( + default=UNSET + ) labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") + + +class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() url: str = Field() -model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) +class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesClosedPropIssueAllof0) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0", + "WebhookIssuesClosedPropIssueAllof0PropAssignee", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof0PropReactions", + "WebhookIssuesClosedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0628.py b/githubkit/versions/ghec_v2022_11_28/models/group_0628.py index efe2cd521..038d97dfc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0628.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0628.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,37 +17,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0623 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) - -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0629.py b/githubkit/versions/ghec_v2022_11_28/models/group_0629.py index 2a47430e0..9c80cfa58 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0629.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0629.py @@ -15,189 +15,11 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0628 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesDeleted(GitHubModel): - """issues deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDeletedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesDeletedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesDeletedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -206,8 +28,8 @@ class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( - title="User" + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -223,228 +45,6 @@ class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesDeleted) -model_rebuild(WebhookIssuesDeletedPropIssue) -model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) -model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) -model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) -model_rebuild(WebhookIssuesDeletedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesDeletedPropIssuePropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) -__all__ = ( - "WebhookIssuesDeleted", - "WebhookIssuesDeletedPropIssue", - "WebhookIssuesDeletedPropIssuePropAssignee", - "WebhookIssuesDeletedPropIssuePropAssigneesItems", - "WebhookIssuesDeletedPropIssuePropLabelsItems", - "WebhookIssuesDeletedPropIssuePropMilestone", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDeletedPropIssuePropPullRequest", - "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", - "WebhookIssuesDeletedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0630.py b/githubkit/versions/ghec_v2022_11_28/models/group_0630.py index 1ee8e74ad..52dd00063 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0630.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0630.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,283 +17,8 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0467 import WebhooksMilestone - -class WebhookIssuesDemilestoned(GitHubModel): - """issues demilestoned event""" - - action: Literal["demilestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDemilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - milestone: Missing[WebhooksMilestone] = Field( - default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesDemilestonedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -321,10 +45,10 @@ class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -372,98 +96,12 @@ class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDemilestonedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesDemilestoned) -model_rebuild(WebhookIssuesDemilestonedPropIssue) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssignee) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestone) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) model_rebuild( - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions ) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) __all__ = ( - "WebhookIssuesDemilestoned", - "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssuePropAssignee", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", - "WebhookIssuesDemilestonedPropIssuePropLabelsItems", - "WebhookIssuesDemilestonedPropIssuePropMilestone", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDemilestonedPropIssuePropPullRequest", - "WebhookIssuesDemilestonedPropIssuePropReactions", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", - "WebhookIssuesDemilestonedPropIssuePropUser", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0631.py b/githubkit/versions/ghec_v2022_11_28/models/group_0631.py index d8d2bb635..a20cd50ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0631.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0631.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,272 +18,13 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0461 import WebhooksLabel - - -class WebhookIssuesEdited(GitHubModel): - """issues edited event""" - - action: Literal["edited"] = Field() - changes: WebhookIssuesEditedPropChanges = Field( - description="The changes to the issue." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesEditedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesEditedPropChanges(GitHubModel): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookIssuesEditedPropChangesPropBody(GitHubModel): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str = Field(alias="from", description="The previous version of the title.") - - -class WebhookIssuesEditedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesEditedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +from .group_0630 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -303,10 +44,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -314,178 +55,6 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesEditedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesEditedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesEditedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesEdited) -model_rebuild(WebhookIssuesEditedPropChanges) -model_rebuild(WebhookIssuesEditedPropChangesPropBody) -model_rebuild(WebhookIssuesEditedPropChangesPropTitle) -model_rebuild(WebhookIssuesEditedPropIssue) -model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) -model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesEditedPropIssuePropReactions) -model_rebuild(WebhookIssuesEditedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesEditedPropIssuePropUser) - -__all__ = ( - "WebhookIssuesEdited", - "WebhookIssuesEditedPropChanges", - "WebhookIssuesEditedPropChangesPropBody", - "WebhookIssuesEditedPropChangesPropTitle", - "WebhookIssuesEditedPropIssue", - "WebhookIssuesEditedPropIssuePropAssignee", - "WebhookIssuesEditedPropIssuePropAssigneesItems", - "WebhookIssuesEditedPropIssuePropLabelsItems", - "WebhookIssuesEditedPropIssuePropMilestone", - "WebhookIssuesEditedPropIssuePropMilestonePropCreator", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesEditedPropIssuePropPullRequest", - "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropSubIssuesSummary", - "WebhookIssuesEditedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0632.py b/githubkit/versions/ghec_v2022_11_28/models/group_0632.py index 467c3c5e3..ada7003bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0632.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0632.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,357 +18,9 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0461 import WebhooksLabel - -class WebhookIssuesLabeled(GitHubModel): - """issues labeled event""" - - action: Literal["labeled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesLabeledPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesLabeledPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesLabeledPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLabeledPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -377,22 +29,7 @@ class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -400,63 +37,10 @@ class WebhookIssuesLabeledPropIssuePropSubIssuesSummary(GitHubModel): percent_completed: int = Field() -class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesLabeled) -model_rebuild(WebhookIssuesLabeledPropIssue) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) -model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) -model_rebuild(WebhookIssuesLabeledPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesLabeledPropIssuePropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary) __all__ = ( - "WebhookIssuesLabeled", - "WebhookIssuesLabeledPropIssue", - "WebhookIssuesLabeledPropIssuePropAssignee", - "WebhookIssuesLabeledPropIssuePropAssigneesItems", - "WebhookIssuesLabeledPropIssuePropLabelsItems", - "WebhookIssuesLabeledPropIssuePropMilestone", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLabeledPropIssuePropPullRequest", - "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", - "WebhookIssuesLabeledPropIssuePropUser", + "WebhookIssuesClosedPropIssueAllof0PropPullRequest", + "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0633.py b/githubkit/versions/ghec_v2022_11_28/models/group_0633.py index d003cb9d7..abefecf23 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0633.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0633.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,392 +17,98 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +class WebhookIssuesClosedPropIssueAllof1(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesLocked(GitHubModel): - """issues locked event""" - - action: Literal["locked"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesLockedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesLockedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( Field(default=UNSET) ) - labels_url: str = Field() - locked: Literal[True] = Field() - milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + assignees: Missing[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Union[str, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( + Field(default=UNSET) ) - node_id: str = Field() - number: int = Field() + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( default=UNSET ) - reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesLockedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["closed", "open"] = Field() timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) -class WebhookIssuesLockedPropIssuePropAssigneesItems(GitHubModel): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" -class WebhookIssuesLockedPropIssuePropLabelsItems(GitHubModel): - """Label""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") +class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" -class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): - """Milestone +class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - A collection of related issues and pull requests. - """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesLockedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLockedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesLockedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() -class WebhookIssuesLockedPropIssuePropUser(GitHubModel): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -411,39 +116,27 @@ class WebhookIssuesLockedPropIssuePropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLocked) -model_rebuild(WebhookIssuesLockedPropIssue) -model_rebuild(WebhookIssuesLockedPropIssuePropAssignee) -model_rebuild(WebhookIssuesLockedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesLockedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesLockedPropIssuePropMilestone) -model_rebuild(WebhookIssuesLockedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesLockedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesLockedPropIssuePropReactions) -model_rebuild(WebhookIssuesLockedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesLockedPropIssuePropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof1) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssuesLocked", - "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssuePropAssignee", - "WebhookIssuesLockedPropIssuePropAssigneesItems", - "WebhookIssuesLockedPropIssuePropLabelsItems", - "WebhookIssuesLockedPropIssuePropMilestone", - "WebhookIssuesLockedPropIssuePropMilestonePropCreator", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLockedPropIssuePropPullRequest", - "WebhookIssuesLockedPropIssuePropReactions", - "WebhookIssuesLockedPropIssuePropSubIssuesSummary", - "WebhookIssuesLockedPropIssuePropUser", + "WebhookIssuesClosedPropIssueAllof1", + "WebhookIssuesClosedPropIssueAllof1PropAssignee", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof1PropMilestone", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssuesClosedPropIssueAllof1PropReactions", + "WebhookIssuesClosedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0634.py b/githubkit/versions/ghec_v2022_11_28/models/group_0634.py index 2dd39278b..f0bb6ec53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0634.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0634.py @@ -15,202 +15,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0467 import WebhooksMilestone +from .group_0628 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesMilestoned(GitHubModel): - """issues milestoned event""" - - action: Literal["milestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesMilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesMilestonedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesMilestonedPropIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueMergedMilestone""" closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( Field(title="User") ) description: Union[str, None] = Field() @@ -227,232 +42,6 @@ class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesMilestoned) -model_rebuild(WebhookIssuesMilestonedPropIssue) -model_rebuild(WebhookIssuesMilestonedPropIssuePropAssignee) -model_rebuild(WebhookIssuesMilestonedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesMilestonedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestone) -model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesMilestonedPropIssuePropReactions) -model_rebuild(WebhookIssuesMilestonedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesMilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) -__all__ = ( - "WebhookIssuesMilestoned", - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssuePropAssignee", - "WebhookIssuesMilestonedPropIssuePropAssigneesItems", - "WebhookIssuesMilestonedPropIssuePropLabelsItems", - "WebhookIssuesMilestonedPropIssuePropMilestone", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesMilestonedPropIssuePropPullRequest", - "WebhookIssuesMilestonedPropIssuePropReactions", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", - "WebhookIssuesMilestonedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0635.py b/githubkit/versions/ghec_v2022_11_28/models/group_0635.py index 1446ce5c9..4e80f4e56 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0635.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0635.py @@ -10,639 +10,22 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks - - -class WebhookIssuesOpened(GitHubModel): - """issues opened event""" - - action: Literal["opened"] = Field() - changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesOpenedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesOpenedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesOpenedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChanges(GitHubModel): - """WebhookIssuesOpenedPropChanges""" - - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None] = Field( - title="User" - ) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - +from .group_0630 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): - """App - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() @@ -655,11 +38,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, - None, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -667,409 +49,6 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - +model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether the repository has discussions enabled." - ) - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, description="Whether to require commit signoff." - ) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesOpened) -model_rebuild(WebhookIssuesOpenedPropIssue) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesOpenedPropIssuePropUser) -model_rebuild(WebhookIssuesOpenedPropChanges) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) - -__all__ = ( - "WebhookIssuesOpened", - "WebhookIssuesOpenedPropChanges", - "WebhookIssuesOpenedPropChangesPropOldIssue", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", - "WebhookIssuesOpenedPropChangesPropOldRepository", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", - "WebhookIssuesOpenedPropIssue", - "WebhookIssuesOpenedPropIssuePropAssignee", - "WebhookIssuesOpenedPropIssuePropAssigneesItems", - "WebhookIssuesOpenedPropIssuePropLabelsItems", - "WebhookIssuesOpenedPropIssuePropMilestone", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropIssuePropPullRequest", - "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", - "WebhookIssuesOpenedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0636.py b/githubkit/versions/ghec_v2022_11_28/models/group_0636.py index 894c8b20f..a399fd502 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0636.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0636.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0468 import WebhooksIssue2 +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookIssuesPinned(GitHubModel): - """issues pinned event""" +class WebhookIssuesDeleted(GitHubModel): + """issues deleted event""" - action: Literal["pinned"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,7 @@ class WebhookIssuesPinned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhookIssuesDeletedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) @@ -55,6 +55,396 @@ class WebhookIssuesPinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesPinned) +class WebhookIssuesDeletedPropIssue(GitHubModel): + """Issue -__all__ = ("WebhookIssuesPinned",) + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesDeletedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDeletedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesDeletedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesDeleted) +model_rebuild(WebhookIssuesDeletedPropIssue) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) +model_rebuild(WebhookIssuesDeletedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesDeletedPropIssuePropUser) + +__all__ = ( + "WebhookIssuesDeleted", + "WebhookIssuesDeletedPropIssue", + "WebhookIssuesDeletedPropIssuePropAssignee", + "WebhookIssuesDeletedPropIssuePropAssigneesItems", + "WebhookIssuesDeletedPropIssuePropLabelsItems", + "WebhookIssuesDeletedPropIssuePropMilestone", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDeletedPropIssuePropPullRequest", + "WebhookIssuesDeletedPropIssuePropReactions", + "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", + "WebhookIssuesDeletedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0637.py b/githubkit/versions/ghec_v2022_11_28/models/group_0637.py index 42b4b3cb4..61cf46e75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0637.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0637.py @@ -18,17 +18,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0474 import WebhooksMilestone -class WebhookIssuesReopened(GitHubModel): - """issues reopened event""" +class WebhookIssuesDemilestoned(GitHubModel): + """issues demilestoned event""" - action: Literal["reopened"] = Field() + action: Literal["demilestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +40,15 @@ class WebhookIssuesReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesReopenedPropIssue = Field( + issue: WebhookIssuesDemilestonedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) + milestone: Missing[WebhooksMilestone] = Field( + default=UNSET, + title="Milestone", + description="A collection of related issues and pull requests.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,7 +61,7 @@ class WebhookIssuesReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssuesReopenedPropIssue(GitHubModel): +class WebhookIssuesDemilestonedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -65,12 +71,12 @@ class WebhookIssuesReopenedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( - Field() + assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") ) + assignees: list[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] + ] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -94,43 +100,45 @@ class WebhookIssuesReopenedPropIssue(GitHubModel): html_url: str = Field() id: int = Field() labels: Missing[ - list[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] + list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] ] = Field(default=UNSET) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesReopenedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") + reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( + title="Reactions" ) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -152,11 +160,13 @@ class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -184,7 +194,7 @@ class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -198,7 +208,7 @@ class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -207,7 +217,7 @@ class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( Field(title="User") ) description: Union[str, None] = Field() @@ -224,7 +234,7 @@ class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -253,7 +263,7 @@ class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -273,10 +283,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -284,7 +294,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -311,10 +321,10 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -350,9 +360,7 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( pages: Missing[Literal["read", "write"]] = Field(default=UNSET) pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) @@ -364,8 +372,8 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesReopenedPropIssuePropPullRequest""" +class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -374,7 +382,7 @@ class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -389,7 +397,7 @@ class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesReopenedPropIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -397,7 +405,7 @@ class WebhookIssuesReopenedPropIssuePropSubIssuesSummary(GitHubModel): percent_completed: int = Field() -class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -426,34 +434,36 @@ class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopened) -model_rebuild(WebhookIssuesReopenedPropIssue) -model_rebuild(WebhookIssuesReopenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesReopenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesReopenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesReopenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesReopenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesReopenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesReopenedPropIssuePropReactions) -model_rebuild(WebhookIssuesReopenedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesReopenedPropIssuePropUser) +model_rebuild(WebhookIssuesDemilestoned) +model_rebuild(WebhookIssuesDemilestonedPropIssue) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) __all__ = ( - "WebhookIssuesReopened", - "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssuePropAssignee", - "WebhookIssuesReopenedPropIssuePropAssigneesItems", - "WebhookIssuesReopenedPropIssuePropLabelsItems", - "WebhookIssuesReopenedPropIssuePropMilestone", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesReopenedPropIssuePropPullRequest", - "WebhookIssuesReopenedPropIssuePropReactions", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", - "WebhookIssuesReopenedPropIssuePropUser", + "WebhookIssuesDemilestoned", + "WebhookIssuesDemilestonedPropIssue", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", + "WebhookIssuesDemilestonedPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0638.py b/githubkit/versions/ghec_v2022_11_28/models/group_0638.py index dbb5c2c7c..e5a8d3d8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0638.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0638.py @@ -14,23 +14,25 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0468 import WebhooksIssue2 +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0468 import WebhooksLabel -class WebhookIssuesTransferred(GitHubModel): - """issues transferred event""" +class WebhookIssuesEdited(GitHubModel): + """issues edited event""" - action: Literal["transferred"] = Field() - changes: WebhookIssuesTransferredPropChanges = Field() + action: Literal["edited"] = Field() + changes: WebhookIssuesEditedPropChanges = Field( + description="The changes to the issue." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,10 +43,11 @@ class WebhookIssuesTransferred(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhookIssuesEditedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -57,19 +60,29 @@ class WebhookIssuesTransferred(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssuesTransferredPropChanges(GitHubModel): - """WebhookIssuesTransferredPropChanges""" +class WebhookIssuesEditedPropChanges(GitHubModel): + """WebhookIssuesEditedPropChanges - new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( - title="Repository", description="A git repository" - ) + The changes to the issue. + """ + + body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): +class WebhookIssuesEditedPropChangesPropBody(GitHubModel): + """WebhookIssuesEditedPropChangesPropBody""" + + from_: str = Field(alias="from", description="The previous version of the body.") + + +class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): + """WebhookIssuesEditedPropChangesPropTitle""" + + from_: str = Field(alias="from", description="The previous version of the title.") + + +class WebhookIssuesEditedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -79,12 +92,12 @@ class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] - ] = Field() + assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( + Field() + ) author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -107,39 +120,32 @@ class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[ - list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] - ] = Field(default=UNSET) + labels: Missing[list[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None - ] = Field( + milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, - None, - ] + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest - ] = Field(default=UNSET) - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( - title="Reactions" + pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( + default=UNSET ) + reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") + sub_issues_summary: Missing[WebhookIssuesEditedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" ) @@ -148,12 +154,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( - title="User" - ) + user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): +class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -175,12 +179,14 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -202,12 +208,13 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): +class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -221,7 +228,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel url: str = Field(description="URL for the label") -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): +class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -230,9 +237,9 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None - ] = Field(title="User") + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -247,9 +254,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( - GitHubModel -): +class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -271,14 +276,14 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( - GitHubModel -): +class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -298,11 +303,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, - None, + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -310,9 +314,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -339,11 +341,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -367,7 +366,9 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( default=UNSET @@ -389,8 +390,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" +class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesEditedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -399,7 +400,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): +class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -414,7 +415,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesEditedPropIssuePropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -422,7 +423,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary(GitHub percent_completed: int = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): +class WebhookIssuesEditedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -444,250 +445,47 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesTransferred) -model_rebuild(WebhookIssuesTransferredPropChanges) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) +model_rebuild(WebhookIssuesEdited) +model_rebuild(WebhookIssuesEditedPropChanges) +model_rebuild(WebhookIssuesEditedPropChangesPropBody) +model_rebuild(WebhookIssuesEditedPropChangesPropTitle) +model_rebuild(WebhookIssuesEditedPropIssue) +model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) +model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) +model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesEditedPropIssuePropReactions) +model_rebuild(WebhookIssuesEditedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesEditedPropIssuePropUser) __all__ = ( - "WebhookIssuesTransferred", - "WebhookIssuesTransferredPropChanges", - "WebhookIssuesTransferredPropChangesPropNewIssue", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", - "WebhookIssuesTransferredPropChangesPropNewRepository", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", + "WebhookIssuesEdited", + "WebhookIssuesEditedPropChanges", + "WebhookIssuesEditedPropChangesPropBody", + "WebhookIssuesEditedPropChangesPropTitle", + "WebhookIssuesEditedPropIssue", + "WebhookIssuesEditedPropIssuePropAssignee", + "WebhookIssuesEditedPropIssuePropAssigneesItems", + "WebhookIssuesEditedPropIssuePropLabelsItems", + "WebhookIssuesEditedPropIssuePropMilestone", + "WebhookIssuesEditedPropIssuePropMilestonePropCreator", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesEditedPropIssuePropPullRequest", + "WebhookIssuesEditedPropIssuePropReactions", + "WebhookIssuesEditedPropIssuePropSubIssuesSummary", + "WebhookIssuesEditedPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0639.py b/githubkit/versions/ghec_v2022_11_28/models/group_0639.py index d4cbb69f8..47b24ac38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0639.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0639.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,22 +18,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0466 import WebhooksIssue -from .group_0469 import WebhooksUserMannequin +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0468 import WebhooksLabel -class WebhookIssuesUnassigned(GitHubModel): - """issues unassigned event""" +class WebhookIssuesLabeled(GitHubModel): + """issues labeled event""" - action: Literal["unassigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["labeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,10 +40,11 @@ class WebhookIssuesUnassigned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue = Field( + issue: WebhookIssuesLabeledPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,6 +57,406 @@ class WebhookIssuesUnassigned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnassigned) +class WebhookIssuesLabeledPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesLabeledPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLabeledPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesLabeledPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesLabeled) +model_rebuild(WebhookIssuesLabeledPropIssue) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) +model_rebuild(WebhookIssuesLabeledPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesLabeledPropIssuePropUser) -__all__ = ("WebhookIssuesUnassigned",) +__all__ = ( + "WebhookIssuesLabeled", + "WebhookIssuesLabeledPropIssue", + "WebhookIssuesLabeledPropIssuePropAssignee", + "WebhookIssuesLabeledPropIssuePropAssigneesItems", + "WebhookIssuesLabeledPropIssuePropLabelsItems", + "WebhookIssuesLabeledPropIssuePropMilestone", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLabeledPropIssuePropPullRequest", + "WebhookIssuesLabeledPropIssuePropReactions", + "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", + "WebhookIssuesLabeledPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0640.py b/githubkit/versions/ghec_v2022_11_28/models/group_0640.py index 580f89707..8ac1121b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0640.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0640.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,19 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0461 import WebhooksLabel -from .group_0466 import WebhooksIssue +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookIssuesUnlabeled(GitHubModel): - """issues unlabeled event""" +class WebhookIssuesLocked(GitHubModel): + """issues locked event""" - action: Literal["unlabeled"] = Field() + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +39,10 @@ class WebhookIssuesUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue = Field( + issue: WebhookIssuesLockedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -57,6 +55,395 @@ class WebhookIssuesUnlabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnlabeled) +class WebhookIssuesLockedPropIssue(GitHubModel): + """Issue -__all__ = ("WebhookIssuesUnlabeled",) + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Literal[True] = Field() + milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesLockedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesLockedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLockedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesLockedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesLockedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesLocked) +model_rebuild(WebhookIssuesLockedPropIssue) +model_rebuild(WebhookIssuesLockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesLockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesLockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLockedPropIssuePropReactions) +model_rebuild(WebhookIssuesLockedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesLockedPropIssuePropUser) + +__all__ = ( + "WebhookIssuesLocked", + "WebhookIssuesLockedPropIssue", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropSubIssuesSummary", + "WebhookIssuesLockedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0641.py b/githubkit/versions/ghec_v2022_11_28/models/group_0641.py index bb21392b0..c5380d250 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0641.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0641.py @@ -18,17 +18,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0474 import WebhooksMilestone -class WebhookIssuesUnlocked(GitHubModel): - """issues unlocked event""" +class WebhookIssuesMilestoned(GitHubModel): + """issues milestoned event""" - action: Literal["unlocked"] = Field() + action: Literal["milestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +40,14 @@ class WebhookIssuesUnlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesUnlockedPropIssue = Field( + issue: WebhookIssuesMilestonedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,7 +60,7 @@ class WebhookIssuesUnlocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssuesUnlockedPropIssue(GitHubModel): +class WebhookIssuesMilestonedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -65,10 +70,10 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" + assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( + assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( Field() ) author_association: Literal[ @@ -94,31 +99,31 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): html_url: str = Field() id: int = Field() labels: Missing[ - list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] + list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] ] = Field(default=UNSET) labels_url: str = Field() - locked: Literal[False] = Field() - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") + reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesUnlockedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) + sub_issues_summary: Missing[ + WebhookIssuesMilestonedPropIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" ) @@ -127,10 +132,10 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -154,10 +159,9 @@ class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -181,10 +185,9 @@ class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -198,7 +201,7 @@ class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -207,7 +210,7 @@ class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, None] = ( + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( Field(title="User") ) description: Union[str, None] = Field() @@ -224,7 +227,7 @@ class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -246,12 +249,14 @@ class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -271,10 +276,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -282,7 +287,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -309,10 +314,10 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -336,7 +341,9 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( default=UNSET @@ -358,8 +365,8 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" +class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesMilestonedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -368,7 +375,7 @@ class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): +class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -383,7 +390,7 @@ class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesMilestonedPropIssuePropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -391,7 +398,7 @@ class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): percent_completed: int = Field() -class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): +class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -418,34 +425,34 @@ class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlocked) -model_rebuild(WebhookIssuesUnlockedPropIssue) -model_rebuild(WebhookIssuesUnlockedPropIssuePropAssignee) -model_rebuild(WebhookIssuesUnlockedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesUnlockedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestone) -model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesUnlockedPropIssuePropReactions) -model_rebuild(WebhookIssuesUnlockedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesUnlockedPropIssuePropUser) +model_rebuild(WebhookIssuesMilestoned) +model_rebuild(WebhookIssuesMilestonedPropIssue) +model_rebuild(WebhookIssuesMilestonedPropIssuePropAssignee) +model_rebuild(WebhookIssuesMilestonedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesMilestonedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestone) +model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesMilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesMilestonedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesMilestonedPropIssuePropUser) __all__ = ( - "WebhookIssuesUnlocked", - "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssuePropAssignee", - "WebhookIssuesUnlockedPropIssuePropAssigneesItems", - "WebhookIssuesUnlockedPropIssuePropLabelsItems", - "WebhookIssuesUnlockedPropIssuePropMilestone", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssuePropPullRequest", - "WebhookIssuesUnlockedPropIssuePropReactions", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", - "WebhookIssuesUnlockedPropIssuePropUser", + "WebhookIssuesMilestoned", + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", + "WebhookIssuesMilestonedPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0642.py b/githubkit/versions/ghec_v2022_11_28/models/group_0642.py index 5999fe3cb..795016ba4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0642.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0642.py @@ -9,26 +9,27 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0468 import WebhooksIssue2 +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookIssuesUnpinned(GitHubModel): - """issues unpinned event""" +class WebhookIssuesOpened(GitHubModel): + """issues opened event""" - action: Literal["unpinned"] = Field() + action: Literal["opened"] = Field() + changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +40,7 @@ class WebhookIssuesUnpinned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhookIssuesOpenedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) @@ -55,6 +56,1020 @@ class WebhookIssuesUnpinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnpinned) +class WebhookIssuesOpenedPropIssue(GitHubModel): + """Issue -__all__ = ("WebhookIssuesUnpinned",) + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesOpenedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChanges(GitHubModel): + """WebhookIssuesOpenedPropChanges""" + + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None] = Field( + title="User" + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether the repository has discussions enabled." + ) + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, description="Whether to require commit signoff." + ) + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesOpened) +model_rebuild(WebhookIssuesOpenedPropIssue) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesOpenedPropIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChanges) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) + +__all__ = ( + "WebhookIssuesOpened", + "WebhookIssuesOpenedPropChanges", + "WebhookIssuesOpenedPropChangesPropOldIssue", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", + "WebhookIssuesOpenedPropChangesPropOldRepository", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", + "WebhookIssuesOpenedPropIssue", + "WebhookIssuesOpenedPropIssuePropAssignee", + "WebhookIssuesOpenedPropIssuePropAssigneesItems", + "WebhookIssuesOpenedPropIssuePropLabelsItems", + "WebhookIssuesOpenedPropIssuePropMilestone", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropIssuePropPullRequest", + "WebhookIssuesOpenedPropIssuePropReactions", + "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", + "WebhookIssuesOpenedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0643.py b/githubkit/versions/ghec_v2022_11_28/models/group_0643.py index fae5583aa..23a5464d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0643.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0643.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0461 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0475 import WebhooksIssue2 -class WebhookLabelCreated(GitHubModel): - """label created event""" +class WebhookIssuesPinned(GitHubModel): + """issues pinned event""" - action: Literal["created"] = Field() + action: Literal["pinned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,10 @@ class WebhookLabelCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -49,11 +52,9 @@ class WebhookLabelCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookLabelCreated) +model_rebuild(WebhookIssuesPinned) -__all__ = ("WebhookLabelCreated",) +__all__ = ("WebhookIssuesPinned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0644.py b/githubkit/versions/ghec_v2022_11_28/models/group_0644.py index 4969605c8..1bb44319f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0644.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0644.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0461 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookLabelDeleted(GitHubModel): - """label deleted event""" +class WebhookIssuesReopened(GitHubModel): + """issues reopened event""" - action: Literal["deleted"] = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,10 @@ class WebhookLabelDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhookIssuesReopenedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -52,6 +55,405 @@ class WebhookLabelDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookLabelDeleted) +class WebhookIssuesReopenedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesReopenedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesReopenedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesReopenedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesReopened) +model_rebuild(WebhookIssuesReopenedPropIssue) +model_rebuild(WebhookIssuesReopenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesReopenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesReopenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesReopenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesReopenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesReopenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesReopenedPropIssuePropReactions) +model_rebuild(WebhookIssuesReopenedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesReopenedPropIssuePropUser) -__all__ = ("WebhookLabelDeleted",) +__all__ = ( + "WebhookIssuesReopened", + "WebhookIssuesReopenedPropIssue", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", + "WebhookIssuesReopenedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0645.py b/githubkit/versions/ghec_v2022_11_28/models/group_0645.py index d46b501e1..9ddbb4ca6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0645.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0645.py @@ -9,30 +9,28 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0461 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0475 import WebhooksIssue2 -class WebhookLabelEdited(GitHubModel): - """label edited event""" +class WebhookIssuesTransferred(GitHubModel): + """issues transferred event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookLabelEditedPropChanges] = Field( - default=UNSET, - description="The changes to the label if the action was `edited`.", - ) + action: Literal["transferred"] = Field() + changes: WebhookIssuesTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,7 +41,10 @@ class WebhookLabelEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,56 +57,637 @@ class WebhookLabelEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookLabelEditedPropChanges(GitHubModel): - """WebhookLabelEditedPropChanges +class WebhookIssuesTransferredPropChanges(GitHubModel): + """WebhookIssuesTransferredPropChanges""" + + new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( + title="Repository", description="A git repository" + ) - The changes to the label if the action was `edited`. + +class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) - description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( - default=UNSET + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, + None, + ] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest + ] = Field(default=UNSET) + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( + title="User" + ) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookLabelEditedPropChangesPropColor(GitHubModel): - """WebhookLabelEditedPropChangesPropColor""" +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( + GitHubModel +): + """App - from_: str = Field( - alias="from", - description="The previous version of the color if the action was `edited`.", + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookLabelEditedPropChangesPropDescription(GitHubModel): - """WebhookLabelEditedPropChangesPropDescription""" +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookLabelEditedPropChangesPropName(GitHubModel): - """WebhookLabelEditedPropChangesPropName""" +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -model_rebuild(WebhookLabelEdited) -model_rebuild(WebhookLabelEditedPropChanges) -model_rebuild(WebhookLabelEditedPropChangesPropColor) -model_rebuild(WebhookLabelEditedPropChangesPropDescription) -model_rebuild(WebhookLabelEditedPropChangesPropName) +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesTransferred) +model_rebuild(WebhookIssuesTransferredPropChanges) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) __all__ = ( - "WebhookLabelEdited", - "WebhookLabelEditedPropChanges", - "WebhookLabelEditedPropChangesPropColor", - "WebhookLabelEditedPropChangesPropDescription", - "WebhookLabelEditedPropChangesPropName", + "WebhookIssuesTransferred", + "WebhookIssuesTransferredPropChanges", + "WebhookIssuesTransferredPropChangesPropNewIssue", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", + "WebhookIssuesTransferredPropChangesPropNewRepository", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0646.py b/githubkit/versions/ghec_v2022_11_28/models/group_0646.py index 92c3e8da2..d2e26f02e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0646.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0646.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0470 import WebhooksMarketplacePurchase -from .group_0471 import WebhooksPreviousMarketplacePurchase +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0473 import WebhooksIssue +from .group_0476 import WebhooksUserMannequin -class WebhookMarketplacePurchaseCancelled(GitHubModel): - """marketplace_purchase cancelled event""" +class WebhookIssuesUnassigned(GitHubModel): + """issues unassigned event""" - action: Literal["cancelled"] = Field() - effective_date: str = Field() + action: Literal["unassigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,25 +43,22 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMarketplacePurchaseCancelled) +model_rebuild(WebhookIssuesUnassigned) -__all__ = ("WebhookMarketplacePurchaseCancelled",) +__all__ = ("WebhookIssuesUnassigned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0647.py b/githubkit/versions/ghec_v2022_11_28/models/group_0647.py index eeef82653..e2d993f69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0647.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0647.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,19 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0470 import WebhooksMarketplacePurchase +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0468 import WebhooksLabel +from .group_0473 import WebhooksIssue -class WebhookMarketplacePurchaseChanged(GitHubModel): - """marketplace_purchase changed event""" +class WebhookIssuesUnlabeled(GitHubModel): + """issues unlabeled event""" - action: Literal["changed"] = Field() - effective_date: str = Field() + action: Literal["unlabeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,77 +40,23 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: Union[bool, None] = Field() - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( - Field() - ) - unit_count: int = Field() - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchaseChanged) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount -) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) +model_rebuild(WebhookIssuesUnlabeled) -__all__ = ( - "WebhookMarketplacePurchaseChanged", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", -) +__all__ = ("WebhookIssuesUnlabeled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0648.py b/githubkit/versions/ghec_v2022_11_28/models/group_0648.py index 6785ebdaf..049d98132 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0648.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0648.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,19 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0470 import WebhooksMarketplacePurchase +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookMarketplacePurchasePendingChange(GitHubModel): - """marketplace_purchase pending_change event""" +class WebhookIssuesUnlocked(GitHubModel): + """issues unlocked event""" - action: Literal["pending_change"] = Field() - effective_date: str = Field() + action: Literal["unlocked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,81 +39,413 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhookIssuesUnlockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" +class WebhookIssuesUnlockedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Literal[False] = Field() + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesUnlockedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t +class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. """ + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): + """Reactions""" - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMarketplacePurchasePendingChange) -model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan -) +model_rebuild(WebhookIssuesUnlocked) +model_rebuild(WebhookIssuesUnlockedPropIssue) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnlockedPropIssuePropReactions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesUnlockedPropIssuePropUser) __all__ = ( - "WebhookMarketplacePurchasePendingChange", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", + "WebhookIssuesUnlocked", + "WebhookIssuesUnlockedPropIssue", + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", + "WebhookIssuesUnlockedPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0649.py b/githubkit/versions/ghec_v2022_11_28/models/group_0649.py index b90fc435f..19ea450f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0649.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0649.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0471 import WebhooksPreviousMarketplacePurchase +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0475 import WebhooksIssue2 -class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): - """marketplace_purchase pending_change_cancelled event""" +class WebhookIssuesUnpinned(GitHubModel): + """issues unpinned event""" - action: Literal["pending_change_cancelled"] = Field() - effective_date: str = Field() + action: Literal["unpinned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,81 +39,22 @@ class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Union[str, None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou - nt - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" - - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan -) +model_rebuild(WebhookIssuesUnpinned) -__all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelled", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", -) +__all__ = ("WebhookIssuesUnpinned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0650.py b/githubkit/versions/ghec_v2022_11_28/models/group_0650.py index fb6e87739..493fb7857 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0650.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0650.py @@ -17,20 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0470 import WebhooksMarketplacePurchase -from .group_0471 import WebhooksPreviousMarketplacePurchase +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0468 import WebhooksLabel -class WebhookMarketplacePurchasePurchased(GitHubModel): - """marketplace_purchase purchased event""" +class WebhookLabelCreated(GitHubModel): + """label created event""" - action: Literal["purchased"] = Field() - effective_date: str = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,25 +39,21 @@ class WebhookMarketplacePurchasePurchased(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookMarketplacePurchasePurchased) +model_rebuild(WebhookLabelCreated) -__all__ = ("WebhookMarketplacePurchasePurchased",) +__all__ = ("WebhookLabelCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0651.py b/githubkit/versions/ghec_v2022_11_28/models/group_0651.py index d9bf7cbef..fb4a6d2e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0651.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0651.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0468 import WebhooksLabel -class WebhookMemberAdded(GitHubModel): - """member added event""" +class WebhookLabelDeleted(GitHubModel): + """label deleted event""" - action: Literal["added"] = Field() - changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,7 +39,7 @@ class WebhookMemberAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -53,50 +52,6 @@ class WebhookMemberAdded(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMemberAddedPropChanges(GitHubModel): - """WebhookMemberAddedPropChanges""" +model_rebuild(WebhookLabelDeleted) - permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( - default=UNSET, - description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", - ) - role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( - default=UNSET, description="The role assigned to the collaborator." - ) - - -class WebhookMemberAddedPropChangesPropPermission(GitHubModel): - """WebhookMemberAddedPropChangesPropPermission - - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - - to: Literal["write", "admin", "read"] = Field() - - -class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): - """WebhookMemberAddedPropChangesPropRoleName - - The role assigned to the collaborator. - """ - - to: str = Field() - - -model_rebuild(WebhookMemberAdded) -model_rebuild(WebhookMemberAddedPropChanges) -model_rebuild(WebhookMemberAddedPropChangesPropPermission) -model_rebuild(WebhookMemberAddedPropChangesPropRoleName) - -__all__ = ( - "WebhookMemberAdded", - "WebhookMemberAddedPropChanges", - "WebhookMemberAddedPropChangesPropPermission", - "WebhookMemberAddedPropChangesPropRoleName", -) +__all__ = ("WebhookLabelDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0652.py b/githubkit/versions/ghec_v2022_11_28/models/group_0652.py index 4e45cf985..b1f2194f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0652.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0652.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,20 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0468 import WebhooksLabel -class WebhookMemberEdited(GitHubModel): - """member edited event""" +class WebhookLabelEdited(GitHubModel): + """label edited event""" action: Literal["edited"] = Field() - changes: WebhookMemberEditedPropChanges = Field( - description="The changes to the collaborator permissions" + changes: Missing[WebhookLabelEditedPropChanges] = Field( + default=UNSET, + description="The changes to the label if the action was `edited`.", ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -42,7 +43,7 @@ class WebhookMemberEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,44 +56,56 @@ class WebhookMemberEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMemberEditedPropChanges(GitHubModel): - """WebhookMemberEditedPropChanges +class WebhookLabelEditedPropChanges(GitHubModel): + """WebhookLabelEditedPropChanges - The changes to the collaborator permissions + The changes to the label if the action was `edited`. """ - old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( + color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) + description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( default=UNSET ) - permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( - default=UNSET + name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookLabelEditedPropChangesPropColor(GitHubModel): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str = Field( + alias="from", + description="The previous version of the color if the action was `edited`.", ) -class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropOldPermission""" +class WebhookLabelEditedPropChangesPropDescription(GitHubModel): + """WebhookLabelEditedPropChangesPropDescription""" from_: str = Field( alias="from", - description="The previous permissions of the collaborator if the action was edited.", + description="The previous version of the description if the action was `edited`.", ) -class WebhookMemberEditedPropChangesPropPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropPermission""" +class WebhookLabelEditedPropChangesPropName(GitHubModel): + """WebhookLabelEditedPropChangesPropName""" - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) -model_rebuild(WebhookMemberEdited) -model_rebuild(WebhookMemberEditedPropChanges) -model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) -model_rebuild(WebhookMemberEditedPropChangesPropPermission) +model_rebuild(WebhookLabelEdited) +model_rebuild(WebhookLabelEditedPropChanges) +model_rebuild(WebhookLabelEditedPropChangesPropColor) +model_rebuild(WebhookLabelEditedPropChangesPropDescription) +model_rebuild(WebhookLabelEditedPropChangesPropName) __all__ = ( - "WebhookMemberEdited", - "WebhookMemberEditedPropChanges", - "WebhookMemberEditedPropChangesPropOldPermission", - "WebhookMemberEditedPropChangesPropPermission", + "WebhookLabelEdited", + "WebhookLabelEditedPropChanges", + "WebhookLabelEditedPropChangesPropColor", + "WebhookLabelEditedPropChangesPropDescription", + "WebhookLabelEditedPropChangesPropName", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0653.py b/githubkit/versions/ghec_v2022_11_28/models/group_0653.py index a9531ee0f..eb3f8ac2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0653.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0653.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,18 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0477 import WebhooksMarketplacePurchase +from .group_0478 import WebhooksPreviousMarketplacePurchase -class WebhookMemberRemoved(GitHubModel): - """member removed event""" +class WebhookMarketplacePurchaseCancelled(GitHubModel): + """marketplace_purchase cancelled event""" - action: Literal["removed"] = Field() + action: Literal["cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,19 +41,25 @@ class WebhookMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMemberRemoved) +model_rebuild(WebhookMarketplacePurchaseCancelled) -__all__ = ("WebhookMemberRemoved",) +__all__ = ("WebhookMarketplacePurchaseCancelled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0654.py b/githubkit/versions/ghec_v2022_11_28/models/group_0654.py index aad0dbb27..3aae63a0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0654.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0654.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser -from .group_0472 import WebhooksTeam +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0477 import WebhooksMarketplacePurchase -class WebhookMembershipAdded(GitHubModel): - """membership added event""" +class WebhookMarketplacePurchaseChanged(GitHubModel): + """marketplace_purchase changed event""" - action: Literal["added"] = Field() + action: Literal["changed"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,57 +40,77 @@ class WebhookMembershipAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - organization: OrganizationSimpleWebhooks = Field( + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - scope: Literal["team"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") - team: WebhooksTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: Union[bool, None] = Field() + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( + Field() ) + unit_count: int = Field() -class WebhookMembershipAddedPropSender(GitHubModel): - """User""" +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookMembershipAdded) -model_rebuild(WebhookMembershipAddedPropSender) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchaseChanged) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount +) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) __all__ = ( - "WebhookMembershipAdded", - "WebhookMembershipAddedPropSender", + "WebhookMarketplacePurchaseChanged", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0655.py b/githubkit/versions/ghec_v2022_11_28/models/group_0655.py index efc5743f5..740cc9ae7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0655.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0655.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser -from .group_0472 import WebhooksTeam +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0477 import WebhooksMarketplacePurchase -class WebhookMembershipRemoved(GitHubModel): - """membership removed event""" +class WebhookMarketplacePurchasePendingChange(GitHubModel): + """marketplace_purchase pending_change event""" - action: Literal["removed"] = Field() + action: Literal["pending_change"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,57 +40,81 @@ class WebhookMembershipRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - organization: OrganizationSimpleWebhooks = Field( + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - scope: Literal["team", "organization"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") - team: WebhooksTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMembershipRemovedPropSender(GitHubModel): - """User""" +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookMembershipRemoved) -model_rebuild(WebhookMembershipRemovedPropSender) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChange) +model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan +) __all__ = ( - "WebhookMembershipRemoved", - "WebhookMembershipRemovedPropSender", + "WebhookMarketplacePurchasePendingChange", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0656.py b/githubkit/versions/ghec_v2022_11_28/models/group_0656.py index da8bbfb0b..a5f1783f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0656.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0656.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,41 +17,104 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0473 import MergeGroup +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0478 import WebhooksPreviousMarketplacePurchase -class WebhookMergeGroupChecksRequested(GitHubModel): - """WebhookMergeGroupChecksRequested""" +class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["checks_requested"] = Field() + action: Literal["pending_change_cancelled"] = Field() + effective_date: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_group: MergeGroup = Field( - title="Merge Group", - description="A group of pull requests that the merge queue has grouped together to be merged.", + marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( + title="Marketplace Purchase" ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(WebhookMergeGroupChecksRequested) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan +) -__all__ = ("WebhookMergeGroupChecksRequested",) +__all__ = ( + "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0657.py b/githubkit/versions/ghec_v2022_11_28/models/group_0657.py index 7165701d4..9be86bf1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0657.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0657.py @@ -17,45 +17,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0473 import MergeGroup +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0477 import WebhooksMarketplacePurchase +from .group_0478 import WebhooksPreviousMarketplacePurchase -class WebhookMergeGroupDestroyed(GitHubModel): - """WebhookMergeGroupDestroyed""" +class WebhookMarketplacePurchasePurchased(GitHubModel): + """marketplace_purchase purchased event""" - action: Literal["destroyed"] = Field() - reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( + action: Literal["purchased"] = Field() + effective_date: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_group: MergeGroup = Field( - title="Merge Group", - description="A group of pull requests that the merge queue has grouped together to be merged.", + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMergeGroupDestroyed) +model_rebuild(WebhookMarketplacePurchasePurchased) -__all__ = ("WebhookMergeGroupDestroyed",) +__all__ = ("WebhookMarketplacePurchasePurchased",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0658.py b/githubkit/versions/ghec_v2022_11_28/models/group_0658.py index 1c2e5befc..f68c0875f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0658.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0658.py @@ -17,74 +17,86 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser -class WebhookMetaDeleted(GitHubModel): - """meta deleted event""" +class WebhookMemberAdded(GitHubModel): + """member added event""" - action: Literal["deleted"] = Field() + action: Literal["added"] = Field() + changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - hook: WebhookMetaDeletedPropHook = Field( - description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." - ) - hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + +class WebhookMemberAddedPropChanges(GitHubModel): + """WebhookMemberAddedPropChanges""" -class WebhookMetaDeletedPropHook(GitHubModel): - """WebhookMetaDeletedPropHook + permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( + default=UNSET, + description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", + ) + role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( + default=UNSET, description="The role assigned to the collaborator." + ) - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. + +class WebhookMemberAddedPropChangesPropPermission(GitHubModel): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. """ - active: bool = Field() - config: WebhookMetaDeletedPropHookPropConfig = Field() - created_at: str = Field() - events: list[str] = Field() - id: int = Field() - name: str = Field() - type: str = Field() - updated_at: str = Field() + to: Literal["write", "admin", "read"] = Field() -class WebhookMetaDeletedPropHookPropConfig(GitHubModel): - """WebhookMetaDeletedPropHookPropConfig""" +class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ - content_type: Literal["json", "form"] = Field() - insecure_ssl: str = Field() - secret: Missing[str] = Field(default=UNSET) - url: str = Field() + to: str = Field() -model_rebuild(WebhookMetaDeleted) -model_rebuild(WebhookMetaDeletedPropHook) -model_rebuild(WebhookMetaDeletedPropHookPropConfig) +model_rebuild(WebhookMemberAdded) +model_rebuild(WebhookMemberAddedPropChanges) +model_rebuild(WebhookMemberAddedPropChangesPropPermission) +model_rebuild(WebhookMemberAddedPropChangesPropRoleName) __all__ = ( - "WebhookMetaDeleted", - "WebhookMetaDeletedPropHook", - "WebhookMetaDeletedPropHookPropConfig", + "WebhookMemberAdded", + "WebhookMemberAddedPropChanges", + "WebhookMemberAddedPropChangesPropPermission", + "WebhookMemberAddedPropChangesPropRoleName", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0659.py b/githubkit/versions/ghec_v2022_11_28/models/group_0659.py index d495c1517..2e276f8db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0659.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0659.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0467 import WebhooksMilestone +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser -class WebhookMilestoneClosed(GitHubModel): - """milestone closed event""" +class WebhookMemberEdited(GitHubModel): + """member edited event""" - action: Literal["closed"] = Field() + action: Literal["edited"] = Field() + changes: WebhookMemberEditedPropChanges = Field( + description="The changes to the collaborator permissions" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +42,7 @@ class WebhookMilestoneClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +55,44 @@ class WebhookMilestoneClosed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMilestoneClosed) +class WebhookMemberEditedPropChanges(GitHubModel): + """WebhookMemberEditedPropChanges + + The changes to the collaborator permissions + """ + + old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( + default=UNSET + ) + permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( + default=UNSET + ) + + +class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropOldPermission""" + + from_: str = Field( + alias="from", + description="The previous permissions of the collaborator if the action was edited.", + ) + + +class WebhookMemberEditedPropChangesPropPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropPermission""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookMemberEdited) +model_rebuild(WebhookMemberEditedPropChanges) +model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) +model_rebuild(WebhookMemberEditedPropChangesPropPermission) -__all__ = ("WebhookMilestoneClosed",) +__all__ = ( + "WebhookMemberEdited", + "WebhookMemberEditedPropChanges", + "WebhookMemberEditedPropChangesPropOldPermission", + "WebhookMemberEditedPropChangesPropPermission", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0660.py b/githubkit/versions/ghec_v2022_11_28/models/group_0660.py index 7a6b2cc04..5d04050f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0660.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0660.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0474 import WebhooksMilestone3 +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser -class WebhookMilestoneCreated(GitHubModel): - """milestone created event""" +class WebhookMemberRemoved(GitHubModel): + """member removed event""" - action: Literal["created"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +39,7 @@ class WebhookMilestoneCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +52,6 @@ class WebhookMilestoneCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMilestoneCreated) +model_rebuild(WebhookMemberRemoved) -__all__ = ("WebhookMilestoneCreated",) +__all__ = ("WebhookMemberRemoved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0661.py b/githubkit/versions/ghec_v2022_11_28/models/group_0661.py index 1cc517665..1c7c3f87f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0661.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0661.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0467 import WebhooksMilestone +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser +from .group_0479 import WebhooksTeam -class WebhookMilestoneDeleted(GitHubModel): - """milestone deleted event""" +class WebhookMembershipAdded(GitHubModel): + """membership added event""" - action: Literal["deleted"] = Field() + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +39,57 @@ class WebhookMilestoneDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + member: Union[WebhooksUser, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + scope: Literal["team"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") + team: WebhooksTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookMembershipAddedPropSender(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneDeleted) +model_rebuild(WebhookMembershipAdded) +model_rebuild(WebhookMembershipAddedPropSender) -__all__ = ("WebhookMilestoneDeleted",) +__all__ = ( + "WebhookMembershipAdded", + "WebhookMembershipAddedPropSender", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0662.py b/githubkit/versions/ghec_v2022_11_28/models/group_0662.py index 97314c3c9..1b80493ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0662.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0662.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,21 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0467 import WebhooksMilestone +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser +from .group_0479 import WebhooksTeam -class WebhookMilestoneEdited(GitHubModel): - """milestone edited event""" +class WebhookMembershipRemoved(GitHubModel): + """membership removed event""" - action: Literal["edited"] = Field() - changes: WebhookMilestoneEditedPropChanges = Field( - description="The changes to the milestone if the action was `edited`." - ) + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,72 +39,57 @@ class WebhookMilestoneEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + member: Union[WebhooksUser, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookMilestoneEditedPropChanges(GitHubModel): - """WebhookMilestoneEditedPropChanges - - The changes to the milestone if the action was `edited`. - """ - - description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( - default=UNSET + scope: Literal["team", "organization"] = Field( + description="The scope of the membership. Currently, can only be `team`." ) - due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) - title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): - """WebhookMilestoneEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): - """WebhookMilestoneEditedPropChangesPropDueOn""" - - from_: str = Field( - alias="from", - description="The previous version of the due date if the action was `edited`.", - ) - - -class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): - """WebhookMilestoneEditedPropChangesPropTitle""" - - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", + sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") + team: WebhooksTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) -model_rebuild(WebhookMilestoneEdited) -model_rebuild(WebhookMilestoneEditedPropChanges) -model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) -model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) -model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) +class WebhookMembershipRemovedPropSender(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookMembershipRemoved) +model_rebuild(WebhookMembershipRemovedPropSender) __all__ = ( - "WebhookMilestoneEdited", - "WebhookMilestoneEditedPropChanges", - "WebhookMilestoneEditedPropChangesPropDescription", - "WebhookMilestoneEditedPropChangesPropDueOn", - "WebhookMilestoneEditedPropChangesPropTitle", + "WebhookMembershipRemoved", + "WebhookMembershipRemovedPropSender", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0663.py b/githubkit/versions/ghec_v2022_11_28/models/group_0663.py index 73a89e414..3edf47df1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0663.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0663.py @@ -17,44 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0474 import WebhooksMilestone3 +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0480 import MergeGroup -class WebhookMilestoneOpened(GitHubModel): - """milestone opened event""" +class WebhookMergeGroupChecksRequested(GitHubModel): + """WebhookMergeGroupChecksRequested""" - action: Literal["opened"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["checks_requested"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookMilestoneOpened) +model_rebuild(WebhookMergeGroupChecksRequested) -__all__ = ("WebhookMilestoneOpened",) +__all__ = ("WebhookMergeGroupChecksRequested",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0664.py b/githubkit/versions/ghec_v2022_11_28/models/group_0664.py index 79507fc85..0db652b70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0664.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0664.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,30 +17,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0480 import MergeGroup -class WebhookOrgBlockBlocked(GitHubModel): - """org_block blocked event""" +class WebhookMergeGroupDestroyed(GitHubModel): + """WebhookMergeGroupDestroyed""" - action: Literal["blocked"] = Field() - blocked_user: Union[WebhooksUser, None] = Field(title="User") - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["destroyed"] = Field() + reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -49,9 +51,11 @@ class WebhookOrgBlockBlocked(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookOrgBlockBlocked) +model_rebuild(WebhookMergeGroupDestroyed) -__all__ = ("WebhookOrgBlockBlocked",) +__all__ = ("WebhookMergeGroupDestroyed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0665.py b/githubkit/versions/ghec_v2022_11_28/models/group_0665.py index 055aaa37a..d0a924195 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0665.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0665.py @@ -17,41 +17,74 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookOrgBlockUnblocked(GitHubModel): - """org_block unblocked event""" +class WebhookMetaDeleted(GitHubModel): + """meta deleted event""" - action: Literal["unblocked"] = Field() - blocked_user: Union[WebhooksUser, None] = Field(title="User") + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) + hook: WebhookMetaDeletedPropHook = Field( + description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." + ) + hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrgBlockUnblocked) +class WebhookMetaDeletedPropHook(GitHubModel): + """WebhookMetaDeletedPropHook + + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ + + active: bool = Field() + config: WebhookMetaDeletedPropHookPropConfig = Field() + created_at: str = Field() + events: list[str] = Field() + id: int = Field() + name: str = Field() + type: str = Field() + updated_at: str = Field() + + +class WebhookMetaDeletedPropHookPropConfig(GitHubModel): + """WebhookMetaDeletedPropHookPropConfig""" + + content_type: Literal["json", "form"] = Field() + insecure_ssl: str = Field() + secret: Missing[str] = Field(default=UNSET) + url: str = Field() + + +model_rebuild(WebhookMetaDeleted) +model_rebuild(WebhookMetaDeletedPropHook) +model_rebuild(WebhookMetaDeletedPropHookPropConfig) -__all__ = ("WebhookOrgBlockUnblocked",) +__all__ = ( + "WebhookMetaDeleted", + "WebhookMetaDeletedPropHook", + "WebhookMetaDeletedPropHookPropConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0666.py b/githubkit/versions/ghec_v2022_11_28/models/group_0666.py index 8bd483145..37282b995 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0666.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0666.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0475 import WebhooksMembership +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0474 import WebhooksMilestone -class WebhookOrganizationDeleted(GitHubModel): - """organization deleted event""" +class WebhookMilestoneClosed(GitHubModel): + """milestone closed event""" - action: Literal["deleted"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +39,22 @@ class WebhookOrganizationDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhooksMembership] = Field( - default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationDeleted) +model_rebuild(WebhookMilestoneClosed) -__all__ = ("WebhookOrganizationDeleted",) +__all__ = ("WebhookMilestoneClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0667.py b/githubkit/versions/ghec_v2022_11_28/models/group_0667.py index 431d612fa..f7cc2df5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0667.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0667.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0475 import WebhooksMembership +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0481 import WebhooksMilestone3 -class WebhookOrganizationMemberAdded(GitHubModel): - """organization member_added event""" +class WebhookMilestoneCreated(GitHubModel): + """milestone created event""" - action: Literal["member_added"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +39,22 @@ class WebhookOrganizationMemberAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhooksMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone3 = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationMemberAdded) +model_rebuild(WebhookMilestoneCreated) -__all__ = ("WebhookOrganizationMemberAdded",) +__all__ = ("WebhookMilestoneCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0668.py b/githubkit/versions/ghec_v2022_11_28/models/group_0668.py index 430835f09..b298b49f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0668.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0668.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0474 import WebhooksMilestone -class WebhookOrganizationMemberInvited(GitHubModel): - """organization member_invited event""" +class WebhookMilestoneDeleted(GitHubModel): + """milestone deleted event""" - action: Literal["member_invited"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,77 +39,22 @@ class WebhookOrganizationMemberInvited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( - description="The invitation for the user or email if the action is `member_invited`." + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - - -class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): - """WebhookOrganizationMemberInvitedPropInvitation - - The invitation for the user or email if the action is `member_invited`. - """ - - created_at: datetime = Field() - email: Union[str, None] = Field() - failed_at: Union[datetime, None] = Field() - failed_reason: Union[str, None] = Field() - id: float = Field() - invitation_teams_url: str = Field() - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( - Field(title="User") - ) - login: Union[str, None] = Field() - node_id: str = Field() - role: str = Field() - team_count: float = Field() - invitation_source: Missing[str] = Field(default=UNSET) - - -class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookOrganizationMemberInvited) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) +model_rebuild(WebhookMilestoneDeleted) -__all__ = ( - "WebhookOrganizationMemberInvited", - "WebhookOrganizationMemberInvitedPropInvitation", - "WebhookOrganizationMemberInvitedPropInvitationPropInviter", -) +__all__ = ("WebhookMilestoneDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0669.py b/githubkit/versions/ghec_v2022_11_28/models/group_0669.py index 5ae8c4ea9..f6f3bcabf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0669.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0669.py @@ -17,18 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0475 import WebhooksMembership +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0474 import WebhooksMilestone -class WebhookOrganizationMemberRemoved(GitHubModel): - """organization member_removed event""" +class WebhookMilestoneEdited(GitHubModel): + """milestone edited event""" - action: Literal["member_removed"] = Field() + action: Literal["edited"] = Field() + changes: WebhookMilestoneEditedPropChanges = Field( + description="The changes to the milestone if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +42,72 @@ class WebhookOrganizationMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhooksMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationMemberRemoved) +class WebhookMilestoneEditedPropChanges(GitHubModel): + """WebhookMilestoneEditedPropChanges + + The changes to the milestone if the action was `edited`. + """ + + description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( + default=UNSET + ) + due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) + title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDueOn""" + + from_: str = Field( + alias="from", + description="The previous version of the due date if the action was `edited`.", + ) + + +class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", + ) + + +model_rebuild(WebhookMilestoneEdited) +model_rebuild(WebhookMilestoneEditedPropChanges) +model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) +model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) +model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) -__all__ = ("WebhookOrganizationMemberRemoved",) +__all__ = ( + "WebhookMilestoneEdited", + "WebhookMilestoneEditedPropChanges", + "WebhookMilestoneEditedPropChangesPropDescription", + "WebhookMilestoneEditedPropChangesPropDueOn", + "WebhookMilestoneEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0670.py b/githubkit/versions/ghec_v2022_11_28/models/group_0670.py index effbb8218..2ba12cfa0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0670.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0670.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0475 import WebhooksMembership +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0481 import WebhooksMilestone3 -class WebhookOrganizationRenamed(GitHubModel): - """organization renamed event""" +class WebhookMilestoneOpened(GitHubModel): + """milestone opened event""" - action: Literal["renamed"] = Field() - changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,43 +39,22 @@ class WebhookOrganizationRenamed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhooksMembership] = Field( - default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone3 = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookOrganizationRenamedPropChanges(GitHubModel): - """WebhookOrganizationRenamedPropChanges""" - - login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - - -class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): - """WebhookOrganizationRenamedPropChangesPropLogin""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookOrganizationRenamed) -model_rebuild(WebhookOrganizationRenamedPropChanges) -model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) +model_rebuild(WebhookMilestoneOpened) -__all__ = ( - "WebhookOrganizationRenamed", - "WebhookOrganizationRenamedPropChanges", - "WebhookOrganizationRenamedPropChangesPropLogin", -) +__all__ = ("WebhookMilestoneOpened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0671.py b/githubkit/versions/ghec_v2022_11_28/models/group_0671.py index 2c926e7e7..b2a939e17 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0671.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0671.py @@ -9,52 +9,49 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser -class WebhookRubygemsMetadata(GitHubModel): - """Ruby Gems metadata""" - - name: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) - platform: Missing[str] = Field(default=UNSET) - metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) - repo: Missing[str] = Field(default=UNSET) - dependencies: Missing[list[WebhookRubygemsMetadataPropDependenciesItems]] = Field( - default=UNSET - ) - commit_oid: Missing[str] = Field(default=UNSET) - - -class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): - """WebhookRubygemsMetadataPropVersionInfo""" - - version: Missing[str] = Field(default=UNSET) +class WebhookOrgBlockBlocked(GitHubModel): + """org_block blocked event""" -class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): - """WebhookRubygemsMetadataPropMetadata""" - - -class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): - """WebhookRubygemsMetadataPropDependenciesItems""" + action: Literal["blocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRubygemsMetadata) -model_rebuild(WebhookRubygemsMetadataPropVersionInfo) -model_rebuild(WebhookRubygemsMetadataPropMetadata) -model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) +model_rebuild(WebhookOrgBlockBlocked) -__all__ = ( - "WebhookRubygemsMetadata", - "WebhookRubygemsMetadataPropDependenciesItems", - "WebhookRubygemsMetadataPropMetadata", - "WebhookRubygemsMetadataPropVersionInfo", -) +__all__ = ("WebhookOrgBlockBlocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0672.py b/githubkit/versions/ghec_v2022_11_28/models/group_0672.py index 91f640781..5f2f25381 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0672.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0672.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0673 import WebhookPackagePublishedPropPackage +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser -class WebhookPackagePublished(GitHubModel): - """package published event""" +class WebhookOrgBlockUnblocked(GitHubModel): + """org_block unblocked event""" - action: Literal["published"] = Field() + action: Literal["unblocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,14 +40,10 @@ class WebhookPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackagePublishedPropPackage = Field( - description="Information about the package." - ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -55,6 +52,6 @@ class WebhookPackagePublished(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPackagePublished) +model_rebuild(WebhookOrgBlockUnblocked) -__all__ = ("WebhookPackagePublished",) +__all__ = ("WebhookOrgBlockUnblocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0673.py b/githubkit/versions/ghec_v2022_11_28/models/group_0673.py index d148380a4..da9011eca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0673.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0673.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,76 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0674 import WebhookPackagePublishedPropPackagePropPackageVersion +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0482 import WebhooksMembership -class WebhookPackagePublishedPropPackage(GitHubModel): - """WebhookPackagePublishedPropPackage +class WebhookOrganizationDeleted(GitHubModel): + """organization deleted event""" - Information about the package. - """ - - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( - title="User" + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - package_type: str = Field() - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersion, None - ] = Field() - registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() - updated_at: Union[str, None] = Field() - - -class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): - """WebhookPackagePublishedPropPackagePropRegistry""" - - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: Missing[WebhooksMembership] = Field( + default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPackagePublishedPropPackage) -model_rebuild(WebhookPackagePublishedPropPackagePropOwner) -model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) +model_rebuild(WebhookOrganizationDeleted) -__all__ = ( - "WebhookPackagePublishedPropPackage", - "WebhookPackagePublishedPropPackagePropOwner", - "WebhookPackagePublishedPropPackagePropRegistry", -) +__all__ = ("WebhookOrganizationDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0674.py b/githubkit/versions/ghec_v2022_11_28/models/group_0674.py index c86e0ebc9..2589d771f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0674.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0674.py @@ -9,564 +9,52 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0671 import WebhookRubygemsMetadata - - -class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersion""" - - author: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] - ] = Field(default=UNSET, title="User") - body: Missing[ - Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, - None, - ] - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] - ] = Field(default=UNSET) - nuget_metadata: Missing[ - Union[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems - ], - None, - ] - ] = Field(default=UNSET) - package_files: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems - ] - ] = Field(default=UNSET) - contributors: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems - ] - ] = Field(default=UNSET) - engines: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[list[str]] = Field(default=UNSET) - files: Missing[list[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, - None, - ] - ] = Field(default=UNSET) - os: Missing[list[str]] = Field(default=UNSET) - cpu: Missing[list[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: Missing[Union[int, str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) - -__all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersion", - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", -) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0482 import WebhooksMembership + + +class WebhookOrganizationMemberAdded(GitHubModel): + """organization member_added event""" + + action: Literal["member_added"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: WebhooksMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookOrganizationMemberAdded) + +__all__ = ("WebhookOrganizationMemberAdded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0675.py b/githubkit/versions/ghec_v2022_11_28/models/group_0675.py index 38264338c..f3d6de52c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0675.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0675.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0676 import WebhookPackageUpdatedPropPackage +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser -class WebhookPackageUpdated(GitHubModel): - """package updated event""" +class WebhookOrganizationMemberInvited(GitHubModel): + """organization member_invited event""" - action: Literal["updated"] = Field() + action: Literal["member_invited"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,21 +40,77 @@ class WebhookPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( + description="The invitation for the user or email if the action is `member_invited`." + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackageUpdatedPropPackage = Field( - description="Information about the package." - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + + +class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. + """ + + created_at: datetime = Field() + email: Union[str, None] = Field() + failed_at: Union[datetime, None] = Field() + failed_reason: Union[str, None] = Field() + id: float = Field() + invitation_teams_url: str = Field() + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( + Field(title="User") + ) + login: Union[str, None] = Field() + node_id: str = Field() + role: str = Field() + team_count: float = Field() + invitation_source: Missing[str] = Field(default=UNSET) + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPackageUpdated) +model_rebuild(WebhookOrganizationMemberInvited) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) -__all__ = ("WebhookPackageUpdated",) +__all__ = ( + "WebhookOrganizationMemberInvited", + "WebhookOrganizationMemberInvitedPropInvitation", + "WebhookOrganizationMemberInvitedPropInvitationPropInviter", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0676.py b/githubkit/versions/ghec_v2022_11_28/models/group_0676.py index db8d7b60c..ab7da2dc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0676.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0676.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,72 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0677 import WebhookPackageUpdatedPropPackagePropPackageVersion - - -class WebhookPackageUpdatedPropPackage(GitHubModel): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ - - created_at: str = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") - package_type: str = Field() - package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() - registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = Field() - updated_at: str = Field() - - -class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): - """WebhookPackageUpdatedPropPackagePropRegistry""" - - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() - - -model_rebuild(WebhookPackageUpdatedPropPackage) -model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) -model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) - -__all__ = ( - "WebhookPackageUpdatedPropPackage", - "WebhookPackageUpdatedPropPackagePropOwner", - "WebhookPackageUpdatedPropPackagePropRegistry", -) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0482 import WebhooksMembership + + +class WebhookOrganizationMemberRemoved(GitHubModel): + """organization member_removed event""" + + action: Literal["member_removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: WebhooksMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookOrganizationMemberRemoved) + +__all__ = ("WebhookOrganizationMemberRemoved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0677.py b/githubkit/versions/ghec_v2022_11_28/models/group_0677.py index 7f2603f99..14fea9db4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0677.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0677.py @@ -9,177 +9,74 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0671 import WebhookRubygemsMetadata - - -class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None - ] = Field(title="User") - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - list[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( - Field(default=UNSET) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0482 import WebhooksMembership + + +class WebhookOrganizationRenamed(GitHubModel): + """organization renamed event""" + + action: Literal["renamed"] = Field() + changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: Missing[WebhooksMembership] = Field( + default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookOrganizationRenamedPropChanges(GitHubModel): + """WebhookOrganizationRenamedPropChanges""" + + login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( + default=UNSET ) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: str = Field() - size: int = Field() - state: str = Field() - updated_at: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) + + +class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookOrganizationRenamed) +model_rebuild(WebhookOrganizationRenamedPropChanges) +model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersion", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", + "WebhookOrganizationRenamed", + "WebhookOrganizationRenamedPropChanges", + "WebhookOrganizationRenamedPropChangesPropLogin", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0678.py b/githubkit/versions/ghec_v2022_11_28/models/group_0678.py index 62c28014a..2c926e7e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0678.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0678.py @@ -9,108 +9,52 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks - -class WebhookPageBuild(GitHubModel): - """page_build event""" +class WebhookRubygemsMetadata(GitHubModel): + """Ruby Gems metadata""" - build: WebhookPageBuildPropBuild = Field( - description="The [List GitHub Pages builds](https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#list-github-pages-builds) itself." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - id: int = Field() - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + name: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) + platform: Missing[str] = Field(default=UNSET) + metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) + repo: Missing[str] = Field(default=UNSET) + dependencies: Missing[list[WebhookRubygemsMetadataPropDependenciesItems]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + commit_oid: Missing[str] = Field(default=UNSET) -class WebhookPageBuildPropBuild(GitHubModel): - """WebhookPageBuildPropBuild +class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): + """WebhookRubygemsMetadataPropVersionInfo""" - The [List GitHub Pages builds](https://docs.github.com/enterprise- - cloud@latest//rest/pages/pages#list-github-pages-builds) itself. - """ + version: Missing[str] = Field(default=UNSET) - commit: Union[str, None] = Field() - created_at: str = Field() - duration: int = Field() - error: WebhookPageBuildPropBuildPropError = Field() - pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") - status: str = Field() - updated_at: str = Field() - url: str = Field() +class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): + """WebhookRubygemsMetadataPropMetadata""" -class WebhookPageBuildPropBuildPropError(GitHubModel): - """WebhookPageBuildPropBuildPropError""" - message: Union[str, None] = Field() +class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): + """WebhookRubygemsMetadataPropDependenciesItems""" -class WebhookPageBuildPropBuildPropPusher(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookPageBuild) -model_rebuild(WebhookPageBuildPropBuild) -model_rebuild(WebhookPageBuildPropBuildPropError) -model_rebuild(WebhookPageBuildPropBuildPropPusher) +model_rebuild(WebhookRubygemsMetadata) +model_rebuild(WebhookRubygemsMetadataPropVersionInfo) +model_rebuild(WebhookRubygemsMetadataPropMetadata) +model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) __all__ = ( - "WebhookPageBuild", - "WebhookPageBuildPropBuild", - "WebhookPageBuildPropBuildPropError", - "WebhookPageBuildPropBuildPropPusher", + "WebhookRubygemsMetadata", + "WebhookRubygemsMetadataPropDependenciesItems", + "WebhookRubygemsMetadataPropMetadata", + "WebhookRubygemsMetadataPropVersionInfo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0679.py b/githubkit/versions/ghec_v2022_11_28/models/group_0679.py index 8b5e4f903..ee5f46c35 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0679.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0679.py @@ -17,37 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0476 import PersonalAccessTokenRequest +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0680 import WebhookPackagePublishedPropPackage -class WebhookPersonalAccessTokenRequestApproved(GitHubModel): - """personal_access_token_request approved event""" +class WebhookPackagePublished(GitHubModel): + """package published event""" - action: Literal["approved"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - organization: OrganizationSimpleWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + package: WebhookPackagePublishedPropPackage = Field( + description="Information about the package." ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPersonalAccessTokenRequestApproved) +model_rebuild(WebhookPackagePublished) -__all__ = ("WebhookPersonalAccessTokenRequestApproved",) +__all__ = ("WebhookPackagePublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0680.py b/githubkit/versions/ghec_v2022_11_28/models/group_0680.py index e9248949f..e2851395d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0680.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0680.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,37 +17,76 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0476 import PersonalAccessTokenRequest +from .group_0681 import WebhookPackagePublishedPropPackagePropPackageVersion -class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): - """personal_access_token_request cancelled event""" +class WebhookPackagePublishedPropPackage(GitHubModel): + """WebhookPackagePublishedPropPackage - action: Literal["cancelled"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + Information about the package. + """ + + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( + title="User" ) + package_type: str = Field() + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersion, None + ] = Field() + registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() + updated_at: Union[str, None] = Field() + + +class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): + """WebhookPackagePublishedPropPackagePropRegistry""" + + about_url: str = Field() + name: str = Field() + type: str = Field() + url: str = Field() + vendor: str = Field() -model_rebuild(WebhookPersonalAccessTokenRequestCancelled) +model_rebuild(WebhookPackagePublishedPropPackage) +model_rebuild(WebhookPackagePublishedPropPackagePropOwner) +model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) -__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) +__all__ = ( + "WebhookPackagePublishedPropPackage", + "WebhookPackagePublishedPropPackagePropOwner", + "WebhookPackagePublishedPropPackagePropRegistry", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0681.py b/githubkit/versions/ghec_v2022_11_28/models/group_0681.py index eeb796e71..277e38acf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0681.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0681.py @@ -9,46 +9,564 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0476 import PersonalAccessTokenRequest - - -class WebhookPersonalAccessTokenRequestCreated(GitHubModel): - """personal_access_token_request created event""" - - action: Literal["created"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - - -model_rebuild(WebhookPersonalAccessTokenRequestCreated) - -__all__ = ("WebhookPersonalAccessTokenRequestCreated",) +from .group_0678 import WebhookRubygemsMetadata + + +class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersion""" + + author: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] + ] = Field(default=UNSET, title="User") + body: Missing[ + Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] + ] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + container_metadata: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, + None, + ] + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + description: str = Field() + docker_metadata: Missing[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + npm_metadata: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + target_oid: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + version: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" + + labels: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, + None, + ] + ] = Field(default=UNSET) + manifest: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, + None, + ] + ] = Field(default=UNSET) + tag: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag + ] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab + els + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan + ifest + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" + + digest: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" + + name: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + npm_user: Missing[str] = Field(default=UNSET) + author: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, + None, + ] + ] = Field(default=UNSET) + bugs: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, + None, + ] + ] = Field(default=UNSET) + dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies + ] = Field(default=UNSET) + dev_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies + ] = Field(default=UNSET) + peer_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + ] = Field(default=UNSET) + optional_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + ] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + dist: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, + None, + ] + ] = Field(default=UNSET) + git_head: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + main: Missing[str] = Field(default=UNSET) + repository: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, + None, + ] + ] = Field(default=UNSET) + scripts: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts + ] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_version: Missing[str] = Field(default=UNSET) + npm_version: Missing[str] = Field(default=UNSET) + has_shrinkwrap: Missing[bool] = Field(default=UNSET) + maintainers: Missing[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems + ] + ] = Field(default=UNSET) + contributors: Missing[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems + ] + ] = Field(default=UNSET) + engines: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines + ] = Field(default=UNSET) + keywords: Missing[list[str]] = Field(default=UNSET) + files: Missing[list[str]] = Field(default=UNSET) + bin_: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin + ] = Field(default=UNSET, alias="bin") + man: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan + ] = Field(default=UNSET) + directories: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, + None, + ] + ] = Field(default=UNSET) + os: Missing[list[str]] = Field(default=UNSET) + cpu: Missing[list[str]] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + installation_command: Missing[str] = Field(default=UNSET) + release_id: Missing[int] = Field(default=UNSET) + commit_oid: Missing[str] = Field(default=UNSET) + published_via_actions: Missing[bool] = Field(default=UNSET) + deleted_by_id: Missing[int] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc + ies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend + encies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen + dencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD + ependencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor + y + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine + rsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut + orsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori + es + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: Union[str, None] = Field() + size: int = Field() + state: Union[str, None] = Field() + updated_at: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" + + id: Missing[Union[int, str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + bool, + str, + int, + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, + ] + ] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa + lueOneof3 + """ + + url: Missing[str] = Field(default=UNSET) + branch: Missing[str] = Field(default=UNSET) + commit: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) + +__all__ = ( + "WebhookPackagePublishedPropPackagePropPackageVersion", + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0682.py b/githubkit/versions/ghec_v2022_11_28/models/group_0682.py index fa0547926..8356d3aef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0682.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0682.py @@ -17,37 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0476 import PersonalAccessTokenRequest +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0683 import WebhookPackageUpdatedPropPackage -class WebhookPersonalAccessTokenRequestDenied(GitHubModel): - """personal_access_token_request denied event""" +class WebhookPackageUpdated(GitHubModel): + """package updated event""" - action: Literal["denied"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: SimpleInstallation = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + package: WebhookPackageUpdatedPropPackage = Field( + description="Information about the package." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPersonalAccessTokenRequestDenied) +model_rebuild(WebhookPackageUpdated) -__all__ = ("WebhookPersonalAccessTokenRequestDenied",) +__all__ = ("WebhookPackageUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0683.py b/githubkit/versions/ghec_v2022_11_28/models/group_0683.py index 6c613015e..0952f0492 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0683.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0683.py @@ -9,43 +9,80 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0684 import WebhookPingPropHook - - -class WebhookPing(GitHubModel): - """WebhookPing""" - - hook: Missing[WebhookPingPropHook] = Field( - default=UNSET, title="Webhook", description="The webhook that is being pinged" - ) - hook_id: Missing[int] = Field( - default=UNSET, description="The ID of the webhook that triggered the ping." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") - - -model_rebuild(WebhookPing) - -__all__ = ("WebhookPing",) +from .group_0684 import WebhookPackageUpdatedPropPackagePropPackageVersion + + +class WebhookPackageUpdatedPropPackage(GitHubModel): + """WebhookPackageUpdatedPropPackage + + Information about the package. + """ + + created_at: str = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") + package_type: str = Field() + package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() + registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = Field() + updated_at: str = Field() + + +class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): + """WebhookPackageUpdatedPropPackagePropRegistry""" + + about_url: str = Field() + name: str = Field() + type: str = Field() + url: str = Field() + vendor: str = Field() + + +model_rebuild(WebhookPackageUpdatedPropPackage) +model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) +model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) + +__all__ = ( + "WebhookPackageUpdatedPropPackage", + "WebhookPackageUpdatedPropPackagePropOwner", + "WebhookPackageUpdatedPropPackagePropRegistry", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0684.py b/githubkit/versions/ghec_v2022_11_28/models/group_0684.py index 066dc20a0..877075b3d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0684.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0684.py @@ -9,70 +9,177 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0318 import HookResponse - - -class WebhookPingPropHook(GitHubModel): - """Webhook - - The webhook that is being pinged - """ - - active: bool = Field( - description="Determines whether the hook is actually triggered for the events it subscribes to." - ) - app_id: Missing[int] = Field( - default=UNSET, - description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", - ) - config: WebhookPingPropHookPropConfig = Field() - created_at: datetime = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - events: list[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." - ) - id: int = Field(description="Unique identifier of the webhook.") - last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") - name: Literal["web"] = Field( - description="The type of webhook. The only valid value is 'web'." +from .group_0678 import WebhookRubygemsMetadata + + +class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None + ] = Field(title="User") + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + list[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( + Field(default=UNSET) ) - ping_url: Missing[str] = Field(default=UNSET) - test_url: Missing[str] = Field(default=UNSET) - type: str = Field() - updated_at: datetime = Field() + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: str = Field() + size: int = Field() + state: str = Field() + updated_at: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPingPropHookPropConfig(GitHubModel): - """WebhookPingPropHookPropConfig""" - - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - - -model_rebuild(WebhookPingPropHook) -model_rebuild(WebhookPingPropHookPropConfig) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) __all__ = ( - "WebhookPingPropHook", - "WebhookPingPropHookPropConfig", + "WebhookPackageUpdatedPropPackagePropPackageVersion", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0685.py b/githubkit/versions/ghec_v2022_11_28/models/group_0685.py index fac71cc70..0e66ac9d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0685.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0685.py @@ -9,22 +9,108 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPingFormEncoded(GitHubModel): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookPageBuild(GitHubModel): + """page_build event""" - payload: str = Field( - description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." + build: WebhookPageBuildPropBuild = Field( + description="The [List GitHub Pages builds](https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#list-github-pages-builds) itself." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + id: int = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPageBuildPropBuild(GitHubModel): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/enterprise- + cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + """ + + commit: Union[str, None] = Field() + created_at: str = Field() + duration: int = Field() + error: WebhookPageBuildPropBuildPropError = Field() + pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") + status: str = Field() + updated_at: str = Field() + url: str = Field() + + +class WebhookPageBuildPropBuildPropError(GitHubModel): + """WebhookPageBuildPropBuildPropError""" + + message: Union[str, None] = Field() + + +class WebhookPageBuildPropBuildPropPusher(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPingFormEncoded) +model_rebuild(WebhookPageBuild) +model_rebuild(WebhookPageBuildPropBuild) +model_rebuild(WebhookPageBuildPropBuildPropError) +model_rebuild(WebhookPageBuildPropBuildPropPusher) -__all__ = ("WebhookPingFormEncoded",) +__all__ = ( + "WebhookPageBuild", + "WebhookPageBuildPropBuild", + "WebhookPageBuildPropBuildPropError", + "WebhookPageBuildPropBuildPropPusher", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0686.py b/githubkit/versions/ghec_v2022_11_28/models/group_0686.py index 7cd716342..b381f7fca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0686.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0686.py @@ -17,61 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0477 import WebhooksProjectCard +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0483 import PersonalAccessTokenRequest -class WebhookProjectCardConverted(GitHubModel): - """project_card converted event""" +class WebhookPersonalAccessTokenRequestApproved(GitHubModel): + """personal_access_token_request approved event""" - action: Literal["converted"] = Field() - changes: WebhookProjectCardConvertedPropChanges = Field() + action: Literal["approved"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) -class WebhookProjectCardConvertedPropChanges(GitHubModel): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNote = Field() - - -class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookProjectCardConverted) -model_rebuild(WebhookProjectCardConvertedPropChanges) -model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) +model_rebuild(WebhookPersonalAccessTokenRequestApproved) -__all__ = ( - "WebhookProjectCardConverted", - "WebhookProjectCardConvertedPropChanges", - "WebhookProjectCardConvertedPropChangesPropNote", -) +__all__ = ("WebhookPersonalAccessTokenRequestApproved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0687.py b/githubkit/versions/ghec_v2022_11_28/models/group_0687.py index fc339de58..868fab6e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0687.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0687.py @@ -17,42 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0477 import WebhooksProjectCard +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0483 import PersonalAccessTokenRequest -class WebhookProjectCardCreated(GitHubModel): - """project_card created event""" +class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): + """personal_access_token_request cancelled event""" - action: Literal["created"] = Field() + action: Literal["cancelled"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) -model_rebuild(WebhookProjectCardCreated) +model_rebuild(WebhookPersonalAccessTokenRequestCancelled) -__all__ = ("WebhookProjectCardCreated",) +__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0688.py b/githubkit/versions/ghec_v2022_11_28/models/group_0688.py index 0320d4158..5e7f2df8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0688.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0688.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,92 +17,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0483 import PersonalAccessTokenRequest -class WebhookProjectCardDeleted(GitHubModel): - """project_card deleted event""" +class WebhookPersonalAccessTokenRequestCreated(GitHubModel): + """personal_access_token_request created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardDeletedPropProjectCard(GitHubModel): - """Project Card""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: Union[int, None] = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( - title="User" - ) - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardDeleted) -model_rebuild(WebhookProjectCardDeletedPropProjectCard) -model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) +model_rebuild(WebhookPersonalAccessTokenRequestCreated) -__all__ = ( - "WebhookProjectCardDeleted", - "WebhookProjectCardDeletedPropProjectCard", - "WebhookProjectCardDeletedPropProjectCardPropCreator", -) +__all__ = ("WebhookPersonalAccessTokenRequestCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0689.py b/githubkit/versions/ghec_v2022_11_28/models/group_0689.py index b4ab3d85e..be1440c16 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0689.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0689.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,61 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0477 import WebhooksProjectCard +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0483 import PersonalAccessTokenRequest -class WebhookProjectCardEdited(GitHubModel): - """project_card edited event""" +class WebhookPersonalAccessTokenRequestDenied(GitHubModel): + """personal_access_token_request denied event""" - action: Literal["edited"] = Field() - changes: WebhookProjectCardEditedPropChanges = Field() + action: Literal["denied"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: SimpleInstallation = Field( title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardEditedPropChanges(GitHubModel): - """WebhookProjectCardEditedPropChanges""" - - note: WebhookProjectCardEditedPropChangesPropNote = Field() - - -class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): - """WebhookProjectCardEditedPropChangesPropNote""" - - from_: Union[str, None] = Field(alias="from") -model_rebuild(WebhookProjectCardEdited) -model_rebuild(WebhookProjectCardEditedPropChanges) -model_rebuild(WebhookProjectCardEditedPropChangesPropNote) +model_rebuild(WebhookPersonalAccessTokenRequestDenied) -__all__ = ( - "WebhookProjectCardEdited", - "WebhookProjectCardEditedPropChanges", - "WebhookProjectCardEditedPropChangesPropNote", -) +__all__ = ("WebhookPersonalAccessTokenRequestDenied",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0690.py b/githubkit/versions/ghec_v2022_11_28/models/group_0690.py index b68c6975e..aeeb4dac1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0690.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0690.py @@ -9,120 +9,43 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0691 import WebhookPingPropHook -class WebhookProjectCardMoved(GitHubModel): - """project_card moved event""" +class WebhookPing(GitHubModel): + """WebhookPing""" - action: Literal["moved"] = Field() - changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + hook: Missing[WebhookPingPropHook] = Field( + default=UNSET, title="Webhook", description="The webhook that is being pinged" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + hook_id: Missing[int] = Field( + default=UNSET, description="The ID of the webhook that triggered the ping." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardMovedPropProjectCard = Field() repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardMovedPropChanges(GitHubModel): - """WebhookProjectCardMovedPropChanges""" - - column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() - - -class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int = Field(alias="from") - - -class WebhookProjectCardMovedPropProjectCard(GitHubModel): - """WebhookProjectCardMovedPropProjectCard""" - - after_id: Union[Union[int, None], None] = Field() - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[Union[str, None], None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -model_rebuild(WebhookProjectCardMoved) -model_rebuild(WebhookProjectCardMovedPropChanges) -model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) -model_rebuild(WebhookProjectCardMovedPropProjectCard) -model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) +model_rebuild(WebhookPing) -__all__ = ( - "WebhookProjectCardMoved", - "WebhookProjectCardMovedPropChanges", - "WebhookProjectCardMovedPropChangesPropColumnId", - "WebhookProjectCardMovedPropProjectCard", - "WebhookProjectCardMovedPropProjectCardMergedCreator", -) +__all__ = ("WebhookPing",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0691.py b/githubkit/versions/ghec_v2022_11_28/models/group_0691.py index 698d7933a..76b48df6b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0691.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0691.py @@ -18,60 +18,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0325 import HookResponse -class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): - """Project Card""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) +class WebhookPingPropHook(GitHubModel): + """Webhook + + The webhook that is being pinged + """ + + active: bool = Field( + description="Determines whether the hook is actually triggered for the events it subscribes to." + ) + app_id: Missing[int] = Field( + default=UNSET, + description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", + ) + config: WebhookPingPropHookPropConfig = Field() created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( - Field(title="User") + deliveries_url: Missing[str] = Field(default=UNSET) + events: list[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." ) - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + id: int = Field(description="Unique identifier of the webhook.") + last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") + name: Literal["web"] = Field( + description="The type of webhook. The only valid value is 'web'." ) + ping_url: Missing[str] = Field(default=UNSET) + test_url: Missing[str] = Field(default=UNSET) + type: str = Field() + updated_at: datetime = Field() url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) +class WebhookPingPropHookPropConfig(GitHubModel): + """WebhookPingPropHookPropConfig""" + + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + + +model_rebuild(WebhookPingPropHook) +model_rebuild(WebhookPingPropHookPropConfig) __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", + "WebhookPingPropHook", + "WebhookPingPropHookPropConfig", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0692.py b/githubkit/versions/ghec_v2022_11_28/models/group_0692.py index 0afeec58f..fac71cc70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0692.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0692.py @@ -9,61 +9,22 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1""" - after_id: Union[int, None] = Field() - archived: Missing[bool] = Field(default=UNSET) - column_id: Missing[int] = Field(default=UNSET) - column_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - creator: Missing[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] - ] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - note: Missing[Union[str, None]] = Field(default=UNSET) - project_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookPingFormEncoded(GitHubModel): + """WebhookPingFormEncoded -class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + The webhooks ping payload encoded with URL encoding. + """ - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + payload: str = Field( + description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." + ) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) +model_rebuild(WebhookPingFormEncoded) -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", -) +__all__ = ("WebhookPingFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0693.py b/githubkit/versions/ghec_v2022_11_28/models/group_0693.py index 436a66b78..03e615124 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0693.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0693.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0478 import WebhooksProject +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0484 import WebhooksProjectCard -class WebhookProjectClosed(GitHubModel): - """project closed event""" +class WebhookProjectCardConverted(GitHubModel): + """project_card converted event""" - action: Literal["closed"] = Field() + action: Literal["converted"] = Field() + changes: WebhookProjectCardConvertedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +45,7 @@ class WebhookProjectClosed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") + project_card: WebhooksProjectCard = Field(title="Project Card") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -53,6 +54,24 @@ class WebhookProjectClosed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectClosed) +class WebhookProjectCardConvertedPropChanges(GitHubModel): + """WebhookProjectCardConvertedPropChanges""" -__all__ = ("WebhookProjectClosed",) + note: WebhookProjectCardConvertedPropChangesPropNote = Field() + + +class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookProjectCardConverted) +model_rebuild(WebhookProjectCardConvertedPropChanges) +model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) + +__all__ = ( + "WebhookProjectCardConverted", + "WebhookProjectCardConvertedPropChanges", + "WebhookProjectCardConvertedPropChangesPropNote", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0694.py b/githubkit/versions/ghec_v2022_11_28/models/group_0694.py index 02611a998..cde5dd1f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0694.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0694.py @@ -17,16 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0479 import WebhooksProjectColumn +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0484 import WebhooksProjectCard -class WebhookProjectColumnCreated(GitHubModel): - """project_column created event""" +class WebhookProjectCardCreated(GitHubModel): + """project_card created event""" action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -44,17 +44,15 @@ class WebhookProjectColumnCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") + project_card: WebhooksProjectCard = Field(title="Project Card") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectColumnCreated) +model_rebuild(WebhookProjectCardCreated) -__all__ = ("WebhookProjectColumnCreated",) +__all__ = ("WebhookProjectCardCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0695.py b/githubkit/versions/ghec_v2022_11_28/models/group_0695.py index 2fcfef4cc..bf8b77098 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0695.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0695.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,16 +18,15 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0479 import WebhooksProjectColumn +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookProjectColumnDeleted(GitHubModel): - """project_column deleted event""" +class WebhookProjectCardDeleted(GitHubModel): + """project_card deleted event""" action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -44,13 +44,66 @@ class WebhookProjectColumnDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") + project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookProjectCardDeletedPropProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: Union[int, None] = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( + title="User" + ) + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectColumnDeleted) +model_rebuild(WebhookProjectCardDeleted) +model_rebuild(WebhookProjectCardDeletedPropProjectCard) +model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) -__all__ = ("WebhookProjectColumnDeleted",) +__all__ = ( + "WebhookProjectCardDeleted", + "WebhookProjectCardDeletedPropProjectCard", + "WebhookProjectCardDeletedPropProjectCardPropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0696.py b/githubkit/versions/ghec_v2022_11_28/models/group_0696.py index 5fa9cc4b7..2f7b18d39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0696.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0696.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,19 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0479 import WebhooksProjectColumn +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0484 import WebhooksProjectCard -class WebhookProjectColumnEdited(GitHubModel): - """project_column edited event""" +class WebhookProjectCardEdited(GitHubModel): + """project_card edited event""" action: Literal["edited"] = Field() - changes: WebhookProjectColumnEditedPropChanges = Field() + changes: WebhookProjectCardEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,35 +45,33 @@ class WebhookProjectColumnEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") + project_card: WebhooksProjectCard = Field(title="Project Card") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectColumnEditedPropChanges(GitHubModel): - """WebhookProjectColumnEditedPropChanges""" +class WebhookProjectCardEditedPropChanges(GitHubModel): + """WebhookProjectCardEditedPropChanges""" - name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) + note: WebhookProjectCardEditedPropChangesPropNote = Field() -class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): - """WebhookProjectColumnEditedPropChangesPropName""" +class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): + """WebhookProjectCardEditedPropChangesPropNote""" - from_: str = Field(alias="from") + from_: Union[str, None] = Field(alias="from") -model_rebuild(WebhookProjectColumnEdited) -model_rebuild(WebhookProjectColumnEditedPropChanges) -model_rebuild(WebhookProjectColumnEditedPropChangesPropName) +model_rebuild(WebhookProjectCardEdited) +model_rebuild(WebhookProjectCardEditedPropChanges) +model_rebuild(WebhookProjectCardEditedPropChangesPropNote) __all__ = ( - "WebhookProjectColumnEdited", - "WebhookProjectColumnEditedPropChanges", - "WebhookProjectColumnEditedPropChangesPropName", + "WebhookProjectCardEdited", + "WebhookProjectCardEditedPropChanges", + "WebhookProjectCardEditedPropChangesPropNote", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0697.py b/githubkit/versions/ghec_v2022_11_28/models/group_0697.py index 7bef95f34..36d0150db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0697.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0697.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0479 import WebhooksProjectColumn +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookProjectColumnMoved(GitHubModel): - """project_column moved event""" +class WebhookProjectCardMoved(GitHubModel): + """project_card moved event""" action: Literal["moved"] = Field() + changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +45,7 @@ class WebhookProjectColumnMoved(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") + project_card: WebhookProjectCardMovedPropProjectCard = Field() repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -53,6 +54,75 @@ class WebhookProjectColumnMoved(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectColumnMoved) +class WebhookProjectCardMovedPropChanges(GitHubModel): + """WebhookProjectCardMovedPropChanges""" -__all__ = ("WebhookProjectColumnMoved",) + column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() + + +class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): + """WebhookProjectCardMovedPropChangesPropColumnId""" + + from_: int = Field(alias="from") + + +class WebhookProjectCardMovedPropProjectCard(GitHubModel): + """WebhookProjectCardMovedPropProjectCard""" + + after_id: Union[Union[int, None], None] = Field() + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[Union[str, None], None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardMoved) +model_rebuild(WebhookProjectCardMovedPropChanges) +model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) +model_rebuild(WebhookProjectCardMovedPropProjectCard) +model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) + +__all__ = ( + "WebhookProjectCardMoved", + "WebhookProjectCardMovedPropChanges", + "WebhookProjectCardMovedPropChangesPropColumnId", + "WebhookProjectCardMovedPropProjectCard", + "WebhookProjectCardMovedPropProjectCardMergedCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0698.py b/githubkit/versions/ghec_v2022_11_28/models/group_0698.py index 28a37a44b..698d7933a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0698.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0698.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,42 +18,60 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0478 import WebhooksProject +class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): + """Project Card""" -class WebhookProjectCreated(GitHubModel): - """project created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( + Field(title="User") ) - project: WebhooksProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCreated) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) -__all__ = ("WebhookProjectCreated",) +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof0", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0699.py b/githubkit/versions/ghec_v2022_11_28/models/group_0699.py index cfb6a22cd..0afeec58f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0699.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0699.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,40 +17,53 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0478 import WebhooksProject - - -class WebhookProjectDeleted(GitHubModel): - """project deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project: WebhooksProject = Field(title="Project") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(WebhookProjectDeleted) - -__all__ = ("WebhookProjectDeleted",) + +class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1""" + + after_id: Union[int, None] = Field() + archived: Missing[bool] = Field(default=UNSET) + column_id: Missing[int] = Field(default=UNSET) + column_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + creator: Missing[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] + ] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + note: Missing[Union[str, None]] = Field(default=UNSET) + project_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof1", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0700.py b/githubkit/versions/ghec_v2022_11_28/models/group_0700.py index 4c8cc1718..dca7290d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0700.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0700.py @@ -17,22 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0478 import WebhooksProject +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0485 import WebhooksProject -class WebhookProjectEdited(GitHubModel): - """project edited event""" +class WebhookProjectClosed(GitHubModel): + """project closed event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectEditedPropChanges] = Field( - default=UNSET, - description="The changes to the project if the action was `edited`.", - ) + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -54,47 +50,9 @@ class WebhookProjectEdited(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookProjectEditedPropChanges(GitHubModel): - """WebhookProjectEditedPropChanges - - The changes to the project if the action was `edited`. - """ - - body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectEditedPropChangesPropBody(GitHubModel): - """WebhookProjectEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookProjectEditedPropChangesPropName(GitHubModel): - """WebhookProjectEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The changes to the project if the action was `edited`.", - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectEdited) -model_rebuild(WebhookProjectEditedPropChanges) -model_rebuild(WebhookProjectEditedPropChangesPropBody) -model_rebuild(WebhookProjectEditedPropChangesPropName) +model_rebuild(WebhookProjectClosed) -__all__ = ( - "WebhookProjectEdited", - "WebhookProjectEditedPropChanges", - "WebhookProjectEditedPropChangesPropBody", - "WebhookProjectEditedPropChangesPropName", -) +__all__ = ("WebhookProjectClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0701.py b/githubkit/versions/ghec_v2022_11_28/models/group_0701.py index fd0ec1b7e..057a7fe06 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0701.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0701.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0478 import WebhooksProject +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0486 import WebhooksProjectColumn -class WebhookProjectReopened(GitHubModel): - """project reopened event""" +class WebhookProjectColumnCreated(GitHubModel): + """project_column created event""" - action: Literal["reopened"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,15 +44,17 @@ class WebhookProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") + project_column: WebhooksProjectColumn = Field(title="Project Column") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookProjectReopened) +model_rebuild(WebhookProjectColumnCreated) -__all__ = ("WebhookProjectReopened",) +__all__ = ("WebhookProjectColumnCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0702.py b/githubkit/versions/ghec_v2022_11_28/models/group_0702.py index b756b3023..c2bb0f41d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0702.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0702.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,31 +17,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0480 import ProjectsV2 +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0486 import WebhooksProjectColumn -class WebhookProjectsV2ProjectClosed(GitHubModel): - """Projects v2 Project Closed Event""" +class WebhookProjectColumnDeleted(GitHubModel): + """project_column deleted event""" - action: Literal["closed"] = Field() + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectClosed) +model_rebuild(WebhookProjectColumnDeleted) -__all__ = ("WebhookProjectsV2ProjectClosed",) +__all__ = ("WebhookProjectColumnDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0703.py b/githubkit/versions/ghec_v2022_11_28/models/group_0703.py index 7bacd800f..257016a35 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0703.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0703.py @@ -17,34 +17,63 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0480 import ProjectsV2 +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0486 import WebhooksProjectColumn -class WebhookProjectsV2ProjectCreated(GitHubModel): - """WebhookProjectsV2ProjectCreated +class WebhookProjectColumnEdited(GitHubModel): + """project_column edited event""" - A project was created - """ - - action: Literal["created"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectColumnEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectCreated) +class WebhookProjectColumnEditedPropChanges(GitHubModel): + """WebhookProjectColumnEditedPropChanges""" + + name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookProjectColumnEdited) +model_rebuild(WebhookProjectColumnEditedPropChanges) +model_rebuild(WebhookProjectColumnEditedPropChangesPropName) -__all__ = ("WebhookProjectsV2ProjectCreated",) +__all__ = ( + "WebhookProjectColumnEdited", + "WebhookProjectColumnEditedPropChanges", + "WebhookProjectColumnEditedPropChangesPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0704.py b/githubkit/versions/ghec_v2022_11_28/models/group_0704.py index ae94a60fe..835635419 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0704.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0704.py @@ -17,31 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0480 import ProjectsV2 +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0486 import WebhooksProjectColumn -class WebhookProjectsV2ProjectDeleted(GitHubModel): - """Projects v2 Project Deleted Event""" +class WebhookProjectColumnMoved(GitHubModel): + """project_column moved event""" - action: Literal["deleted"] = Field() + action: Literal["moved"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectDeleted) +model_rebuild(WebhookProjectColumnMoved) -__all__ = ("WebhookProjectsV2ProjectDeleted",) +__all__ = ("WebhookProjectColumnMoved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0705.py b/githubkit/versions/ghec_v2022_11_28/models/group_0705.py index 37efacea8..934beea10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0705.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0705.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,89 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0480 import ProjectsV2 +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0485 import WebhooksProject -class WebhookProjectsV2ProjectEdited(GitHubModel): - """Projects v2 Project Edited Event""" +class WebhookProjectCreated(GitHubModel): + """project created event""" - action: Literal["edited"] = Field() - changes: WebhookProjectsV2ProjectEditedPropChanges = Field() + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChanges""" - - description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( - Field(default=UNSET) - ) - public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( - default=UNSET - ) - short_description: Missing[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescription - ] = Field(default=UNSET) - title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( - default=UNSET - ) - - -class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - - from_: Missing[bool] = Field(default=UNSET, alias="from") - to: Missing[bool] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ProjectEdited) -model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) +model_rebuild(WebhookProjectCreated) -__all__ = ( - "WebhookProjectsV2ProjectEdited", - "WebhookProjectsV2ProjectEditedPropChanges", - "WebhookProjectsV2ProjectEditedPropChangesPropDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropPublic", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropTitle", -) +__all__ = ("WebhookProjectCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0706.py b/githubkit/versions/ghec_v2022_11_28/models/group_0706.py index b84db566d..111940eff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0706.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0706.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,33 +17,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0481 import WebhooksProjectChanges -from .group_0482 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0485 import WebhooksProject -class WebhookProjectsV2ItemArchived(GitHubModel): - """Projects v2 Item Archived Event""" +class WebhookProjectDeleted(GitHubModel): + """project deleted event""" - action: Literal["archived"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + project: WebhooksProject = Field(title="Project") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemArchived) +model_rebuild(WebhookProjectDeleted) -__all__ = ("WebhookProjectsV2ItemArchived",) +__all__ = ("WebhookProjectDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0707.py b/githubkit/versions/ghec_v2022_11_28/models/group_0707.py index 1cf88096c..1eb1a51a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0707.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0707.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,53 +17,84 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0482 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0485 import WebhooksProject -class WebhookProjectsV2ItemConverted(GitHubModel): - """Projects v2 Item Converted Event""" +class WebhookProjectEdited(GitHubModel): + """project edited event""" - action: Literal["converted"] = Field() - changes: WebhookProjectsV2ItemConvertedPropChanges = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookProjectEditedPropChanges] = Field( + default=UNSET, + description="The changes to the project if the action was `edited`.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChanges""" +class WebhookProjectEditedPropChanges(GitHubModel): + """WebhookProjectEditedPropChanges + + The changes to the project if the action was `edited`. + """ + + body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) - content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( - Field(default=UNSET) + +class WebhookProjectEditedPropChangesPropBody(GitHubModel): + """WebhookProjectEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", ) -class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" +class WebhookProjectEditedPropChangesPropName(GitHubModel): + """WebhookProjectEditedPropChangesPropName""" - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) + from_: str = Field( + alias="from", + description="The changes to the project if the action was `edited`.", + ) -model_rebuild(WebhookProjectsV2ItemConverted) -model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) -model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) +model_rebuild(WebhookProjectEdited) +model_rebuild(WebhookProjectEditedPropChanges) +model_rebuild(WebhookProjectEditedPropChangesPropBody) +model_rebuild(WebhookProjectEditedPropChangesPropName) __all__ = ( - "WebhookProjectsV2ItemConverted", - "WebhookProjectsV2ItemConvertedPropChanges", - "WebhookProjectsV2ItemConvertedPropChangesPropContentType", + "WebhookProjectEdited", + "WebhookProjectEditedPropChanges", + "WebhookProjectEditedPropChangesPropBody", + "WebhookProjectEditedPropChangesPropName", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0708.py b/githubkit/versions/ghec_v2022_11_28/models/group_0708.py index 91d96216f..cbcb337c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0708.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0708.py @@ -17,31 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0482 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0485 import WebhooksProject -class WebhookProjectsV2ItemCreated(GitHubModel): - """Projects v2 Item Created Event""" +class WebhookProjectReopened(GitHubModel): + """project reopened event""" - action: Literal["created"] = Field() + action: Literal["reopened"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemCreated) +model_rebuild(WebhookProjectReopened) -__all__ = ("WebhookProjectsV2ItemCreated",) +__all__ = ("WebhookProjectReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0709.py b/githubkit/versions/ghec_v2022_11_28/models/group_0709.py index 0c0376d99..1e14b1a29 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0709.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0709.py @@ -17,16 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0482 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0487 import ProjectsV2 -class WebhookProjectsV2ItemDeleted(GitHubModel): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ProjectClosed(GitHubModel): + """Projects v2 Project Closed Event""" - action: Literal["deleted"] = Field() + action: Literal["closed"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,12 +36,12 @@ class WebhookProjectsV2ItemDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemDeleted) +model_rebuild(WebhookProjectsV2ProjectClosed) -__all__ = ("WebhookProjectsV2ItemDeleted",) +__all__ = ("WebhookProjectsV2ProjectClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0710.py b/githubkit/versions/ghec_v2022_11_28/models/group_0710.py index 6f0fb1f10..e190f717a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0710.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0710.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,25 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0482 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0487 import ProjectsV2 -class WebhookProjectsV2ItemEdited(GitHubModel): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ProjectCreated(GitHubModel): + """WebhookProjectsV2ProjectCreated - action: Literal["edited"] = Field() - changes: Missing[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0, - WebhookProjectsV2ItemEditedPropChangesOneof1, - ] - ] = Field( - default=UNSET, - description="The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field.", - ) + A project was created + """ + + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -45,84 +39,12 @@ class WebhookProjectsV2ItemEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() - - -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: Missing[str] = Field(default=UNSET) - field_type: Missing[str] = Field(default=UNSET) - field_name: Missing[str] = Field(default=UNSET) - project_number: Missing[int] = Field(default=UNSET) - from_: Missing[ - Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] - ] = Field(default=UNSET, alias="from") - to: Missing[ - Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] - ] = Field(default=UNSET) - - -class ProjectsV2SingleSelectOption(GitHubModel): - """Projects v2 Single Select Option - - An option for a single select field - """ - - id: str = Field() - name: str = Field() - color: Missing[Union[str, None]] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - - -class ProjectsV2IterationSetting(GitHubModel): - """Projects v2 Iteration Setting - - An iteration setting for an iteration field - """ - - id: str = Field() - title: str = Field() - duration: Missing[Union[float, None]] = Field(default=UNSET) - start_date: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" - - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() - - -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemEdited) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) -model_rebuild(ProjectsV2SingleSelectOption) -model_rebuild(ProjectsV2IterationSetting) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) +model_rebuild(WebhookProjectsV2ProjectCreated) -__all__ = ( - "ProjectsV2IterationSetting", - "ProjectsV2SingleSelectOption", - "WebhookProjectsV2ItemEdited", - "WebhookProjectsV2ItemEditedPropChangesOneof0", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", - "WebhookProjectsV2ItemEditedPropChangesOneof1", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", -) +__all__ = ("WebhookProjectsV2ProjectCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0711.py b/githubkit/versions/ghec_v2022_11_28/models/group_0711.py index af9d64b45..b93402474 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0711.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0711.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,17 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0482 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0487 import ProjectsV2 -class WebhookProjectsV2ItemReordered(GitHubModel): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ProjectDeleted(GitHubModel): + """Projects v2 Project Deleted Event""" - action: Literal["reordered"] = Field() - changes: WebhookProjectsV2ItemReorderedPropChanges = Field() + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -37,35 +36,12 @@ class WebhookProjectsV2ItemReordered(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): - """WebhookProjectsV2ItemReorderedPropChanges""" +model_rebuild(WebhookProjectsV2ProjectDeleted) - previous_projects_v2_item_node_id: Missing[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId - ] = Field(default=UNSET) - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( - GitHubModel -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemReordered) -model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) -model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) - -__all__ = ( - "WebhookProjectsV2ItemReordered", - "WebhookProjectsV2ItemReorderedPropChanges", - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", -) +__all__ = ("WebhookProjectsV2ProjectDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0712.py b/githubkit/versions/ghec_v2022_11_28/models/group_0712.py index 1eac3dc45..da290cdd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0712.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0712.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0481 import WebhooksProjectChanges -from .group_0482 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0487 import ProjectsV2 -class WebhookProjectsV2ItemRestored(GitHubModel): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ProjectEdited(GitHubModel): + """Projects v2 Project Edited Event""" - action: Literal["restored"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectsV2ProjectEditedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -38,12 +37,69 @@ class WebhookProjectsV2ItemRestored(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemRestored) +class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChanges""" -__all__ = ("WebhookProjectsV2ItemRestored",) + description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( + Field(default=UNSET) + ) + public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( + default=UNSET + ) + short_description: Missing[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescription + ] = Field(default=UNSET) + title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( + default=UNSET + ) + + +class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" + + from_: Missing[bool] = Field(default=UNSET, alias="from") + to: Missing[bool] = Field(default=UNSET) + + +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ProjectEdited) +model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) + +__all__ = ( + "WebhookProjectsV2ProjectEdited", + "WebhookProjectsV2ProjectEditedPropChanges", + "WebhookProjectsV2ProjectEditedPropChangesPropDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropPublic", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0713.py b/githubkit/versions/ghec_v2022_11_28/models/group_0713.py index 2d09c2cfa..ccb51bc4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0713.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0713.py @@ -17,16 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0480 import ProjectsV2 +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0488 import WebhooksProjectChanges +from .group_0489 import ProjectsV2Item -class WebhookProjectsV2ProjectReopened(GitHubModel): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2ItemArchived(GitHubModel): + """Projects v2 Item Archived Event""" - action: Literal["reopened"] = Field() + action: Literal["archived"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,12 +38,12 @@ class WebhookProjectsV2ProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectReopened) +model_rebuild(WebhookProjectsV2ItemArchived) -__all__ = ("WebhookProjectsV2ProjectReopened",) +__all__ = ("WebhookProjectsV2ItemArchived",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0714.py b/githubkit/versions/ghec_v2022_11_28/models/group_0714.py index ec33c5343..47f3e8809 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0714.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0714.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,16 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0483 import ProjectsV2StatusUpdate +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0489 import ProjectsV2Item -class WebhookProjectsV2StatusUpdateCreated(GitHubModel): - """Projects v2 Status Update Created Event""" +class WebhookProjectsV2ItemConverted(GitHubModel): + """Projects v2 Item Converted Event""" - action: Literal["created"] = Field() + action: Literal["converted"] = Field() + changes: WebhookProjectsV2ItemConvertedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,13 +37,33 @@ class WebhookProjectsV2StatusUpdateCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2StatusUpdateCreated) +class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChanges""" -__all__ = ("WebhookProjectsV2StatusUpdateCreated",) + content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( + Field(default=UNSET) + ) + + +class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemConverted) +model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) +model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) + +__all__ = ( + "WebhookProjectsV2ItemConverted", + "WebhookProjectsV2ItemConvertedPropChanges", + "WebhookProjectsV2ItemConvertedPropChangesPropContentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0715.py b/githubkit/versions/ghec_v2022_11_28/models/group_0715.py index d99acb495..25f1f5d39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0715.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0715.py @@ -17,16 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0483 import ProjectsV2StatusUpdate +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0489 import ProjectsV2Item -class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): - """Projects v2 Status Update Deleted Event""" +class WebhookProjectsV2ItemCreated(GitHubModel): + """Projects v2 Item Created Event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,13 +36,12 @@ class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2StatusUpdateDeleted) +model_rebuild(WebhookProjectsV2ItemCreated) -__all__ = ("WebhookProjectsV2StatusUpdateDeleted",) +__all__ = ("WebhookProjectsV2ItemCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0716.py b/githubkit/versions/ghec_v2022_11_28/models/group_0716.py index 7ee67f8b1..ec0576923 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0716.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0716.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import date -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,19 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0483 import ProjectsV2StatusUpdate +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0489 import ProjectsV2Item -class WebhookProjectsV2StatusUpdateEdited(GitHubModel): - """Projects v2 Status Update Edited Event""" +class WebhookProjectsV2ItemDeleted(GitHubModel): + """Projects v2 Item Deleted Event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( - default=UNSET - ) + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,74 +36,12 @@ class WebhookProjectsV2StatusUpdateEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2StatusUpdateEditedPropChanges(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChanges""" - - body: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropBody] = Field( - default=UNSET - ) - status: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus] = Field( - default=UNSET - ) - start_date: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate] = ( - Field(default=UNSET) - ) - target_date: Missing[ - WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate - ] = Field(default=UNSET) - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropBody(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" - - from_: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] = Field(default=UNSET, alias="from") - to: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] = Field(default=UNSET) - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" - - from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[date, None]] = Field(default=UNSET) - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" - - from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[date, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2StatusUpdateEdited) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChanges) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropBody) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate) +model_rebuild(WebhookProjectsV2ItemDeleted) -__all__ = ( - "WebhookProjectsV2StatusUpdateEdited", - "WebhookProjectsV2StatusUpdateEditedPropChanges", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", -) +__all__ = ("WebhookProjectsV2ItemDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0717.py b/githubkit/versions/ghec_v2022_11_28/models/group_0717.py index 4cde76d64..4efb9f9d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0717.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0717.py @@ -9,44 +9,120 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0489 import ProjectsV2Item -class WebhookPublic(GitHubModel): - """public event""" +class WebhookProjectsV2ItemEdited(GitHubModel): + """Projects v2 Item Edited Event""" - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["edited"] = Field() + changes: Missing[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0, + WebhookProjectsV2ItemEditedPropChangesOneof1, + ] + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + description="The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPublic) +class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() + + +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" + + field_node_id: Missing[str] = Field(default=UNSET) + field_type: Missing[str] = Field(default=UNSET) + field_name: Missing[str] = Field(default=UNSET) + project_number: Missing[int] = Field(default=UNSET) + from_: Missing[ + Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] + ] = Field(default=UNSET, alias="from") + to: Missing[ + Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] + ] = Field(default=UNSET) + + +class ProjectsV2SingleSelectOption(GitHubModel): + """Projects v2 Single Select Option + + An option for a single select field + """ + + id: str = Field() + name: str = Field() + color: Missing[Union[str, None]] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + + +class ProjectsV2IterationSetting(GitHubModel): + """Projects v2 Iteration Setting + + An iteration setting for an iteration field + """ + + id: str = Field() + title: str = Field() + duration: Missing[Union[float, None]] = Field(default=UNSET) + start_date: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" + + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() + + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemEdited) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) +model_rebuild(ProjectsV2SingleSelectOption) +model_rebuild(ProjectsV2IterationSetting) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) -__all__ = ("WebhookPublic",) +__all__ = ( + "ProjectsV2IterationSetting", + "ProjectsV2SingleSelectOption", + "WebhookProjectsV2ItemEdited", + "WebhookProjectsV2ItemEditedPropChangesOneof0", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "WebhookProjectsV2ItemEditedPropChangesOneof1", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0718.py b/githubkit/versions/ghec_v2022_11_28/models/group_0718.py index a655b8b86..cfac5c95b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0718.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0718.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,1160 +17,55 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0457 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0489 import ProjectsV2Item -class WebhookPullRequestAssigned(GitHubModel): - """pull_request assigned event""" +class WebhookProjectsV2ItemReordered(GitHubModel): + """Projects v2 Item Reordered Event""" - action: Literal["assigned"] = Field() - assignee: Union[WebhooksUser, None] = Field(title="User") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["reordered"] = Field() + changes: WebhookProjectsV2ItemReorderedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAssignedPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAssignedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: list[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" +class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): + """WebhookProjectsV2ItemReorderedPropChanges""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] + previous_projects_v2_item_node_id: Missing[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( GitHubModel ): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookPullRequestAssigned) -model_rebuild(WebhookPullRequestAssignedPropPullRequest) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2ItemReordered) +model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) +model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) __all__ = ( - "WebhookPullRequestAssigned", - "WebhookPullRequestAssignedPropPullRequest", - "WebhookPullRequestAssignedPropPullRequestPropAssignee", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAssignedPropPullRequestPropBase", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", - "WebhookPullRequestAssignedPropPullRequestPropHead", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", - "WebhookPullRequestAssignedPropPullRequestPropLinks", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAssignedPropPullRequestPropMergedBy", - "WebhookPullRequestAssignedPropPullRequestPropMilestone", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestAssignedPropPullRequestPropUser", + "WebhookProjectsV2ItemReordered", + "WebhookProjectsV2ItemReorderedPropChanges", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0719.py b/githubkit/versions/ghec_v2022_11_28/models/group_0719.py index ce3a2cc32..6c937eda3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0719.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0719.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,1213 +17,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0488 import WebhooksProjectChanges +from .group_0489 import ProjectsV2Item -class WebhookPullRequestAutoMergeDisabled(GitHubModel): - """pull_request auto_merge_disabled event""" +class WebhookProjectsV2ItemRestored(GitHubModel): + """Projects v2 Item Restored Event""" - action: Literal["auto_merge_disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["restored"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( - title="Pull Request" - ) - reason: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAutoMergeDisabled) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2ItemRestored) -__all__ = ( - "WebhookPullRequestAutoMergeDisabled", - "WebhookPullRequestAutoMergeDisabledPropPullRequest", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", -) +__all__ = ("WebhookProjectsV2ItemRestored",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0720.py b/githubkit/versions/ghec_v2022_11_28/models/group_0720.py index 7b07fef81..d41d86c28 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0720.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0720.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,1205 +17,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0487 import ProjectsV2 -class WebhookPullRequestAutoMergeEnabled(GitHubModel): - """pull_request auto_merge_enabled event""" +class WebhookProjectsV2ProjectReopened(GitHubModel): + """Projects v2 Project Reopened Event""" - action: Literal["auto_merge_enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["reopened"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( - title="Pull Request" - ) - reason: Missing[str] = Field(default=UNSET) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAutoMergeEnabled) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2ProjectReopened) -__all__ = ( - "WebhookPullRequestAutoMergeEnabled", - "WebhookPullRequestAutoMergeEnabledPropPullRequest", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", -) +__all__ = ("WebhookProjectsV2ProjectReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0721.py b/githubkit/versions/ghec_v2022_11_28/models/group_0721.py index 89ec878c1..0c5b196d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0721.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0721.py @@ -17,42 +17,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0484 import PullRequestWebhook +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0490 import ProjectsV2StatusUpdate -class WebhookPullRequestClosed(GitHubModel): - """pull_request closed event""" +class WebhookProjectsV2StatusUpdateCreated(GitHubModel): + """Projects v2 Status Update Created Event""" - action: Literal["closed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestClosed) +model_rebuild(WebhookProjectsV2StatusUpdateCreated) -__all__ = ("WebhookPullRequestClosed",) +__all__ = ("WebhookProjectsV2StatusUpdateCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0722.py b/githubkit/versions/ghec_v2022_11_28/models/group_0722.py index 9a375f88f..ce65e70d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0722.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0722.py @@ -17,42 +17,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0484 import PullRequestWebhook +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0490 import ProjectsV2StatusUpdate -class WebhookPullRequestConvertedToDraft(GitHubModel): - """pull_request converted_to_draft event""" +class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): + """Projects v2 Status Update Deleted Event""" - action: Literal["converted_to_draft"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestConvertedToDraft) +model_rebuild(WebhookProjectsV2StatusUpdateDeleted) -__all__ = ("WebhookPullRequestConvertedToDraft",) +__all__ = ("WebhookProjectsV2StatusUpdateDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0723.py b/githubkit/versions/ghec_v2022_11_28/models/group_0723.py index 1cc9747ee..858fa2799 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0723.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0723.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Literal, Union from pydantic import Field @@ -17,44 +18,96 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0129 import Milestone -from .group_0444 import EnterpriseWebhooks -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0486 import WebhooksPullRequest5 +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0490 import ProjectsV2StatusUpdate -class WebhookPullRequestDemilestoned(GitHubModel): - """pull_request demilestoned event""" +class WebhookProjectsV2StatusUpdateEdited(GitHubModel): + """Projects v2 Status Update Edited Event""" - action: Literal["demilestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["edited"] = Field() + changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( + default=UNSET ) - milestone: Missing[Milestone] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhooksPullRequest5 = Field(title="Pull Request") - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookProjectsV2StatusUpdateEditedPropChanges(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChanges""" + + body: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropBody] = Field( + default=UNSET + ) + status: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus] = Field( + default=UNSET ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + start_date: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate] = ( + Field(default=UNSET) ) + target_date: Missing[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate + ] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropBody(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" + + from_: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET, alias="from") + to: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" + + from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[date, None]] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" + + from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[date, None]] = Field(default=UNSET) -model_rebuild(WebhookPullRequestDemilestoned) +model_rebuild(WebhookProjectsV2StatusUpdateEdited) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChanges) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropBody) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate) -__all__ = ("WebhookPullRequestDemilestoned",) +__all__ = ( + "WebhookProjectsV2StatusUpdateEdited", + "WebhookProjectsV2StatusUpdateEditedPropChanges", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0724.py b/githubkit/versions/ghec_v2022_11_28/models/group_0724.py index 400db5d57..4b9852aca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0724.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0724.py @@ -9,26 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPullRequestDequeued(GitHubModel): - """pull_request dequeued event""" +class WebhookPublic(GitHubModel): + """public event""" - action: Literal["dequeued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,29 +35,11 @@ class WebhookPullRequestDequeued(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( - title="Pull Request" - ) - reason: Literal[ - "UNKNOWN_REMOVAL_REASON", - "MANUAL", - "MERGE", - "MERGE_CONFLICT", - "CI_FAILURE", - "CI_TIMEOUT", - "ALREADY_MERGED", - "QUEUE_CLEARED", - "ROLL_BACK", - "BRANCH_PROTECTIONS", - "GIT_TREE_INVALID", - "INVALID_MERGE_COMMIT", - ] = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -69,1117 +47,6 @@ class WebhookPullRequestDequeued(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: list[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestDequeued) -model_rebuild(WebhookPullRequestDequeuedPropPullRequest) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPublic) -__all__ = ( - "WebhookPullRequestDequeued", - "WebhookPullRequestDequeuedPropPullRequest", - "WebhookPullRequestDequeuedPropPullRequestPropAssignee", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestDequeuedPropPullRequestPropBase", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", - "WebhookPullRequestDequeuedPropPullRequestPropHead", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", - "WebhookPullRequestDequeuedPropPullRequestPropLinks", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", - "WebhookPullRequestDequeuedPropPullRequestPropMilestone", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestDequeuedPropPullRequestPropUser", -) +__all__ = ("WebhookPublic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0725.py b/githubkit/versions/ghec_v2022_11_28/models/group_0725.py index 483e910ec..04fd61385 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0725.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0725.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,21 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0484 import PullRequestWebhook +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0464 import WebhooksUser -class WebhookPullRequestEdited(GitHubModel): - """pull_request edited event""" +class WebhookPullRequestAssigned(GitHubModel): + """pull_request assigned event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestEditedPropChanges = Field( - description="The changes to the comment if the action was `edited`." - ) + action: Literal["assigned"] = Field() + assignee: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,78 +47,1131 @@ class WebhookPullRequestEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhookPullRequestAssignedPropPullRequest = Field( + title="Pull Request" + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestAssignedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEditedPropChanges(GitHubModel): - """WebhookPullRequestEditedPropChanges +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" - The changes to the comment if the action was `edited`. + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) - body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBody""" +class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): + """User""" - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): - """WebhookPullRequestEditedPropChangesPropTitle""" +class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" ) + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" -class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBase""" + href: str = Field() - ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() - sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" -class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" + href: str = Field() - from_: str = Field(alias="from") +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" -class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" + href: str = Field() - from_: str = Field(alias="from") +class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropBase""" -model_rebuild(WebhookPullRequestEdited) -model_rebuild(WebhookPullRequestEditedPropChanges) -model_rebuild(WebhookPullRequestEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) -model_rebuild(WebhookPullRequestEditedPropChangesPropBase) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestAssigned) +model_rebuild(WebhookPullRequestAssignedPropPullRequest) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPullRequestEdited", - "WebhookPullRequestEditedPropChanges", - "WebhookPullRequestEditedPropChangesPropBase", - "WebhookPullRequestEditedPropChangesPropBasePropRef", - "WebhookPullRequestEditedPropChangesPropBasePropSha", - "WebhookPullRequestEditedPropChangesPropBody", - "WebhookPullRequestEditedPropChangesPropTitle", + "WebhookPullRequestAssigned", + "WebhookPullRequestAssignedPropPullRequest", + "WebhookPullRequestAssignedPropPullRequestPropAssignee", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAssignedPropPullRequestPropBase", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", + "WebhookPullRequestAssignedPropPullRequestPropHead", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", + "WebhookPullRequestAssignedPropPullRequestPropLinks", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAssignedPropPullRequestPropMergedBy", + "WebhookPullRequestAssignedPropPullRequestPropMilestone", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAssignedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0726.py b/githubkit/versions/ghec_v2022_11_28/models/group_0726.py index b39b22cf7..a250eb93f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0726.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0726.py @@ -18,17 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPullRequestEnqueued(GitHubModel): - """pull_request enqueued event""" +class WebhookPullRequestAutoMergeDisabled(GitHubModel): + """pull_request auto_merge_disabled event""" - action: Literal["enqueued"] = Field() + action: Literal["auto_merge_disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,9 +45,10 @@ class WebhookPullRequestEnqueued(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( title="Pull Request" ) + reason: str = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,19 +56,23 @@ class WebhookPullRequestEnqueued(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -82,13 +87,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -102,11 +107,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -118,13 +125,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -134,13 +141,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -152,12 +159,12 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -184,7 +191,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -210,7 +217,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -223,14 +230,17 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -257,7 +267,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -271,7 +281,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -298,7 +308,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -308,7 +318,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -324,7 +334,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -346,14 +358,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -377,12 +387,14 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -411,98 +423,108 @@ class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -529,7 +551,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -591,14 +613,14 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): default=True, description="Whether downloads are enabled." ) has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) has_pages: bool = Field() has_projects: bool = Field( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -612,7 +634,8 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -633,10 +656,11 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -684,7 +708,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -694,7 +720,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -721,10 +749,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -733,21 +763,21 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -774,7 +804,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -857,7 +887,8 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -878,10 +909,11 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -929,7 +961,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -939,7 +973,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -966,10 +1002,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -978,7 +1016,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -987,35 +1025,32 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1033,7 +1068,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1050,7 +1087,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1064,10 +1101,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1084,88 +1123,108 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestEnqueued) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestAutoMergeDisabled) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner +) model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestEnqueued", - "WebhookPullRequestEnqueuedPropPullRequest", - "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestEnqueuedPropPullRequestPropBase", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropHead", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropLinks", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestEnqueuedPropPullRequestPropUser", + "WebhookPullRequestAutoMergeDisabled", + "WebhookPullRequestAutoMergeDisabledPropPullRequest", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0727.py b/githubkit/versions/ghec_v2022_11_28/models/group_0727.py index caa791f41..e5cf50669 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0727.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0727.py @@ -18,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0461 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPullRequestLabeled(GitHubModel): - """pull_request labeled event""" +class WebhookPullRequestAutoMergeEnabled(GitHubModel): + """pull_request auto_merge_enabled event""" - action: Literal["labeled"] = Field() + action: Literal["auto_merge_enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,14 +39,16 @@ class WebhookPullRequestLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( + title="Pull Request" + ) + reason: Missing[str] = Field(default=UNSET) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,19 +56,21 @@ class WebhookPullRequestLabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestLabeledPropPullRequest(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( - title="User" - ) + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -82,13 +85,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -102,11 +105,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -118,13 +123,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -134,13 +139,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -152,12 +157,12 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -179,14 +184,12 @@ class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -208,13 +211,11 @@ class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -227,14 +228,17 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -261,7 +265,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -275,7 +279,7 @@ class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -297,14 +301,12 @@ class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -314,7 +316,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +332,9 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -359,7 +363,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -390,7 +394,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -419,98 +423,108 @@ class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -537,7 +551,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -620,7 +634,8 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -641,10 +656,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -692,7 +707,9 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -702,7 +719,9 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHub url: Union[str, None] = Field() -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -729,10 +748,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -741,21 +760,48 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -838,7 +884,8 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -859,10 +906,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -910,7 +957,9 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -920,7 +969,9 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHub url: Union[str, None] = Field() -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -947,10 +998,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -959,34 +1010,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1003,7 +1027,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1016,11 +1040,11 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( url: str = Field(description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1038,7 +1062,9 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1P url: str = Field(description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1055,7 +1081,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubMode node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1069,10 +1095,12 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubMode url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1089,82 +1117,106 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestLabeled) -model_rebuild(WebhookPullRequestLabeledPropPullRequest) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1) +model_rebuild(WebhookPullRequestAutoMergeEnabled) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent ) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestLabeled", - "WebhookPullRequestLabeledPropPullRequest", - "WebhookPullRequestLabeledPropPullRequestPropAssignee", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLabeledPropPullRequestPropBase", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestLabeledPropPullRequestPropHead", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestLabeledPropPullRequestPropLinks", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLabeledPropPullRequestPropMergedBy", - "WebhookPullRequestLabeledPropPullRequestPropMilestone", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestLabeledPropPullRequestPropUser", + "WebhookPullRequestAutoMergeEnabled", + "WebhookPullRequestAutoMergeEnabledPropPullRequest", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0728.py b/githubkit/versions/ghec_v2022_11_28/models/group_0728.py index 0eedfd253..b26f8dd16 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0728.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0728.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0491 import PullRequestWebhook -class WebhookPullRequestLocked(GitHubModel): - """pull_request locked event""" +class WebhookPullRequestClosed(GitHubModel): + """pull_request closed event""" - action: Literal["locked"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,7 +45,7 @@ class WebhookPullRequestLocked(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,1110 +53,6 @@ class WebhookPullRequestLocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestLockedPropPullRequest(GitHubModel): - """Pull Request""" +model_rebuild(WebhookPullRequestClosed) - links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: list[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLockedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLockedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestLocked) -model_rebuild(WebhookPullRequestLockedPropPullRequest) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) - -__all__ = ( - "WebhookPullRequestLocked", - "WebhookPullRequestLockedPropPullRequest", - "WebhookPullRequestLockedPropPullRequestPropAssignee", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestLockedPropPullRequestPropAutoMerge", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLockedPropPullRequestPropBase", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropBasePropUser", - "WebhookPullRequestLockedPropPullRequestPropHead", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestLockedPropPullRequestPropLabelsItems", - "WebhookPullRequestLockedPropPullRequestPropLinks", - "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLockedPropPullRequestPropMergedBy", - "WebhookPullRequestLockedPropPullRequestPropMilestone", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestLockedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0729.py b/githubkit/versions/ghec_v2022_11_28/models/group_0729.py index ba6f65857..0f3139354 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0729.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0729.py @@ -17,27 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0129 import Milestone -from .group_0444 import EnterpriseWebhooks -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0486 import WebhooksPullRequest5 +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0491 import PullRequestWebhook -class WebhookPullRequestMilestoned(GitHubModel): - """pull_request milestoned event""" +class WebhookPullRequestConvertedToDraft(GitHubModel): + """pull_request converted_to_draft event""" - action: Literal["milestoned"] = Field() + action: Literal["converted_to_draft"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - milestone: Missing[Milestone] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -45,16 +45,14 @@ class WebhookPullRequestMilestoned(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhooksPullRequest5 = Field(title="Pull Request") + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestMilestoned) +model_rebuild(WebhookPullRequestConvertedToDraft) -__all__ = ("WebhookPullRequestMilestoned",) +__all__ = ("WebhookPullRequestConvertedToDraft",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0730.py b/githubkit/versions/ghec_v2022_11_28/models/group_0730.py index d5a8b34e8..e230fb10e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0730.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0730.py @@ -17,27 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0484 import PullRequestWebhook +from .group_0003 import SimpleUser +from .group_0136 import Milestone +from .group_0451 import EnterpriseWebhooks +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0493 import WebhooksPullRequest5 -class WebhookPullRequestOpened(GitHubModel): - """pull_request opened event""" +class WebhookPullRequestDemilestoned(GitHubModel): + """pull_request demilestoned event""" - action: Literal["opened"] = Field() + action: Literal["demilestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( + milestone: Missing[Milestone] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Milestone", + description="A collection of related issues and pull requests.", ) number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -45,14 +45,16 @@ class WebhookPullRequestOpened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhooksPullRequest5 = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookPullRequestOpened) +model_rebuild(WebhookPullRequestDemilestoned) -__all__ = ("WebhookPullRequestOpened",) +__all__ = ("WebhookPullRequestDemilestoned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0731.py b/githubkit/versions/ghec_v2022_11_28/models/group_0731.py index d0f1e4b83..f6f5c23c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0731.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0731.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0484 import PullRequestWebhook +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPullRequestReadyForReview(GitHubModel): - """pull_request ready_for_review event""" +class WebhookPullRequestDequeued(GitHubModel): + """pull_request dequeued event""" - action: Literal["ready_for_review"] = Field() + action: Literal["dequeued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +39,29 @@ class WebhookPullRequestReadyForReview(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( + title="Pull Request" + ) + reason: Literal[ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT", + ] = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,6 +69,1117 @@ class WebhookPullRequestReadyForReview(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestReadyForReview) +class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestDequeued) +model_rebuild(WebhookPullRequestDequeuedPropPullRequest) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPullRequestReadyForReview",) +__all__ = ( + "WebhookPullRequestDequeued", + "WebhookPullRequestDequeuedPropPullRequest", + "WebhookPullRequestDequeuedPropPullRequestPropAssignee", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestDequeuedPropPullRequestPropBase", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", + "WebhookPullRequestDequeuedPropPullRequestPropHead", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", + "WebhookPullRequestDequeuedPropPullRequestPropLinks", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", + "WebhookPullRequestDequeuedPropPullRequestPropMilestone", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestDequeuedPropPullRequestPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0732.py b/githubkit/versions/ghec_v2022_11_28/models/group_0732.py index 623c880eb..77786e427 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0732.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0732.py @@ -17,18 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0484 import PullRequestWebhook +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0491 import PullRequestWebhook -class WebhookPullRequestReopened(GitHubModel): - """pull_request reopened event""" +class WebhookPullRequestEdited(GitHubModel): + """pull_request edited event""" - action: Literal["reopened"] = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestEditedPropChanges = Field( + description="The changes to the comment if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,9 +53,73 @@ class WebhookPullRequestReopened(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookPullRequestEditedPropChanges(GitHubModel): + """WebhookPullRequestEditedPropChanges + + The changes to the comment if the action was `edited`. + """ + + base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) + body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): + """WebhookPullRequestEditedPropChangesPropTitle""" + + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", + ) + + +class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBase""" + + ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() + sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() + + +class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + + from_: str = Field(alias="from") + + +class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" + + from_: str = Field(alias="from") -model_rebuild(WebhookPullRequestReopened) +model_rebuild(WebhookPullRequestEdited) +model_rebuild(WebhookPullRequestEditedPropChanges) +model_rebuild(WebhookPullRequestEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) +model_rebuild(WebhookPullRequestEditedPropChangesPropBase) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) -__all__ = ("WebhookPullRequestReopened",) +__all__ = ( + "WebhookPullRequestEdited", + "WebhookPullRequestEditedPropChanges", + "WebhookPullRequestEditedPropChangesPropBase", + "WebhookPullRequestEditedPropChangesPropBasePropRef", + "WebhookPullRequestEditedPropChangesPropBasePropSha", + "WebhookPullRequestEditedPropChangesPropBody", + "WebhookPullRequestEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0733.py b/githubkit/versions/ghec_v2022_11_28/models/group_0733.py index 6edb4e331..0a5bb687a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0733.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0733.py @@ -18,21 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPullRequestReviewCommentCreated(GitHubModel): - """pull_request_review_comment created event""" +class WebhookPullRequestEnqueued(GitHubModel): + """pull_request enqueued event""" - action: Literal["created"] = Field() - comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["enqueued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,12 +39,15 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() + pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( + title="Pull Request" + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,188 +55,19 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" +class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) assignees: list[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -252,63 +82,82 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() + base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems - ] = Field() + labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -330,16 +179,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -361,13 +206,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -380,17 +223,14 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -417,7 +257,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -431,7 +271,34 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -441,8 +308,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -458,9 +324,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -489,7 +353,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -513,14 +377,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -549,116 +411,98 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -685,9 +529,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -770,8 +612,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -792,11 +633,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -844,9 +684,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -856,9 +694,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -885,12 +721,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -899,23 +733,48 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -982,8 +841,8 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." ) homepage: Union[str, None] = Field() hooks_url: str = Field() @@ -998,8 +857,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -1020,11 +878,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1072,9 +929,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -1084,9 +939,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1113,12 +966,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1127,36 +978,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1165,32 +987,35 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] = Field(description="Description of the team") @@ -1208,9 +1033,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1227,7 +1050,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1241,12 +1064,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1263,126 +1084,88 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentCreated) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestEnqueued) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewCommentCreated", - "WebhookPullRequestReviewCommentCreatedPropComment", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", + "WebhookPullRequestEnqueued", + "WebhookPullRequestEnqueuedPropPullRequest", + "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestEnqueuedPropPullRequestPropBase", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropHead", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropLinks", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestEnqueuedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0734.py b/githubkit/versions/ghec_v2022_11_28/models/group_0734.py index 07b9540d6..182888d47 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0734.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0734.py @@ -18,22 +18,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0487 import WebhooksReviewComment +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0468 import WebhooksLabel -class WebhookPullRequestReviewCommentDeleted(GitHubModel): - """pull_request_review_comment deleted event""" +class WebhookPullRequestLabeled(GitHubModel): + """pull_request labeled event""" - action: Literal["deleted"] = Field() - comment: WebhooksReviewComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["labeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,12 +40,14 @@ class WebhookPullRequestReviewCommentDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() + pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -57,23 +55,19 @@ class WebhookPullRequestReviewCommentDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" +class WebhookPullRequestLabeledPropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( + title="User" + ) assignees: list[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -88,63 +82,82 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() + base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems - ] = Field() + labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -166,14 +179,14 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -195,11 +208,13 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -212,17 +227,14 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -249,7 +261,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -263,7 +275,36 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -273,8 +314,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -290,9 +330,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -314,12 +352,14 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCrea site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -343,12 +383,14 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -377,116 +419,98 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" +class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" +class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -513,9 +537,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -598,8 +620,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -620,11 +641,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -672,9 +692,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -684,9 +702,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -713,12 +729,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -727,23 +741,21 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" +class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -826,8 +838,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -848,11 +859,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -900,9 +910,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -912,9 +920,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -941,12 +947,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -955,9 +959,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -984,7 +986,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -993,35 +995,32 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent """ description: Union[str, None] = Field(description="Description of the team") @@ -1039,9 +1038,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1058,7 +1055,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1072,12 +1069,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1094,112 +1089,82 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentDeleted) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems -) +model_rebuild(WebhookPullRequestLabeled) +model_rebuild(WebhookPullRequestLabeledPropPullRequest) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestReviewCommentDeleted", - "WebhookPullRequestReviewCommentDeletedPropPullRequest", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", + "WebhookPullRequestLabeled", + "WebhookPullRequestLabeledPropPullRequest", + "WebhookPullRequestLabeledPropPullRequestPropAssignee", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLabeledPropPullRequestPropBase", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestLabeledPropPullRequestPropHead", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestLabeledPropPullRequestPropLinks", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLabeledPropPullRequestPropMergedBy", + "WebhookPullRequestLabeledPropPullRequestPropMilestone", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestLabeledPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0735.py b/githubkit/versions/ghec_v2022_11_28/models/group_0735.py index d1dec196e..67cba66aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0735.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0735.py @@ -18,24 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0465 import WebhooksChanges -from .group_0487 import WebhooksReviewComment +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPullRequestReviewCommentEdited(GitHubModel): - """pull_request_review_comment edited event""" +class WebhookPullRequestLocked(GitHubModel): + """pull_request locked event""" - action: Literal["edited"] = Field() - changes: WebhooksChanges = Field(description="The changes to the comment.") - comment: WebhooksReviewComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -46,12 +39,13 @@ class WebhookPullRequestReviewCommentEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() + pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,22 +53,19 @@ class WebhookPullRequestReviewCommentEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" +class WebhookPullRequestLockedPropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( + title="User" + ) assignees: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None - ] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -89,63 +80,82 @@ class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() + base: WebhookPullRequestLockedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLockedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems - ] = Field() + labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -172,9 +182,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -196,12 +204,13 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -214,17 +223,14 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubMo description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -251,7 +257,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabl user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -265,7 +271,36 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHub url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -275,8 +310,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubMo closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -292,9 +326,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubMo url: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -316,14 +348,12 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreat site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -347,12 +377,14 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -377,118 +409,100 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - user_view_type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -515,7 +529,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -598,8 +612,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -620,11 +633,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -672,9 +684,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -684,9 +694,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLi url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -713,12 +721,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOw user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -727,21 +733,21 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPe triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -824,8 +830,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -846,11 +851,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -898,9 +902,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -910,9 +912,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLi url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -939,12 +939,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOw user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -953,7 +951,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPe triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -980,7 +978,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -989,35 +987,32 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] = Field(description="Description of the team") @@ -1035,9 +1030,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1054,7 +1047,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1068,12 +1061,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1090,108 +1081,82 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentEdited) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems -) +model_rebuild(WebhookPullRequestLocked) +model_rebuild(WebhookPullRequestLockedPropPullRequest) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestReviewCommentEdited", - "WebhookPullRequestReviewCommentEditedPropPullRequest", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", + "WebhookPullRequestLocked", + "WebhookPullRequestLockedPropPullRequest", + "WebhookPullRequestLockedPropPullRequestPropAssignee", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestLockedPropPullRequestPropAutoMerge", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLockedPropPullRequestPropBase", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropBasePropUser", + "WebhookPullRequestLockedPropPullRequestPropHead", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestLockedPropPullRequestPropLabelsItems", + "WebhookPullRequestLockedPropPullRequestPropLinks", + "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLockedPropPullRequestPropMergedBy", + "WebhookPullRequestLockedPropPullRequestPropMilestone", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestLockedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0736.py b/githubkit/versions/ghec_v2022_11_28/models/group_0736.py index 3697efca2..140993fa7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0736.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0736.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,1244 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0136 import Milestone +from .group_0451 import EnterpriseWebhooks +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0493 import WebhooksPullRequest5 -class WebhookPullRequestReviewDismissed(GitHubModel): - """pull_request_review dismissed event""" +class WebhookPullRequestMilestoned(GitHubModel): + """pull_request milestoned event""" - action: Literal["dismissed"] = Field() + action: Literal["milestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( + milestone: Missing[Milestone] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Milestone", + description="A collection of related issues and pull requests.", ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: WebhooksPullRequest5 = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhookPullRequestReviewDismissedPropReview = Field( - description="The review that was affected." - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookPullRequestReviewDismissedPropReview(GitHubModel): - """WebhookPullRequestReviewDismissedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: Literal["dismissed", "approved", "changes_requested"] = Field() - submitted_at: datetime = Field() - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( - title="Link" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewDismissed) -model_rebuild(WebhookPullRequestReviewDismissedPropReview) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinks) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequest) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestMilestoned) -__all__ = ( - "WebhookPullRequestReviewDismissed", - "WebhookPullRequestReviewDismissedPropPullRequest", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewDismissedPropPullRequestPropBase", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropHead", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewDismissedPropPullRequestPropUser", - "WebhookPullRequestReviewDismissedPropReview", - "WebhookPullRequestReviewDismissedPropReviewPropLinks", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", - "WebhookPullRequestReviewDismissedPropReviewPropUser", -) +__all__ = ("WebhookPullRequestMilestoned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0737.py b/githubkit/versions/ghec_v2022_11_28/models/group_0737.py index 482ee6437..c8dac3e2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0737.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0737.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0488 import WebhooksReview +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0491 import PullRequestWebhook -class WebhookPullRequestReviewEdited(GitHubModel): - """pull_request_review edited event""" +class WebhookPullRequestOpened(GitHubModel): + """pull_request opened event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestReviewEditedPropChanges = Field() + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,1065 +39,20 @@ class WebhookPullRequestReviewEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewEditedPropChanges(GitHubModel): - """WebhookPullRequestReviewEditedPropChanges""" - - body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( - default=UNSET - ) - - -class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: list[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewEdited) -model_rebuild(WebhookPullRequestReviewEditedPropChanges) -model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestOpened) -__all__ = ( - "WebhookPullRequestReviewEdited", - "WebhookPullRequestReviewEditedPropChanges", - "WebhookPullRequestReviewEditedPropChangesPropBody", - "WebhookPullRequestReviewEditedPropPullRequest", - "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewEditedPropPullRequestPropBase", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropHead", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewEditedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestOpened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0738.py b/githubkit/versions/ghec_v2022_11_28/models/group_0738.py index 446535a0a..3fdc89144 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0738.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0738.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0491 import PullRequestWebhook -class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestReadyForReview(GitHubModel): + """pull_request ready_for_review event""" - action: Literal["review_request_removed"] = Field() + action: Literal["ready_for_review"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,1270 +45,14 @@ class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( - title="Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( - GitHubModel -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( - GitHubModel -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title.", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestReadyForReview) -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", -) +__all__ = ("WebhookPullRequestReadyForReview",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0739.py b/githubkit/versions/ghec_v2022_11_28/models/group_0739.py index e513244eb..5da951cdb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0739.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0739.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0491 import PullRequestWebhook -class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReopened(GitHubModel): + """pull_request reopened event""" - action: Literal["review_request_removed"] = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,1294 +45,14 @@ class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( - title="Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( - GitHubModel -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( - GitHubModel -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestReopened) -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", -) +__all__ = ("WebhookPullRequestReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0740.py b/githubkit/versions/ghec_v2022_11_28/models/group_0740.py index 57caf45e4..86a07f5fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0740.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0740.py @@ -18,17 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPullRequestReviewRequestedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReviewCommentCreated(GitHubModel): + """pull_request_review_comment created event""" - action: Literal["review_requested"] = Field() + action: Literal["created"] = Field() + comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,26 +43,124 @@ class WebhookPullRequestReviewRequestedOneof0(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( - title="Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -80,29 +182,60 @@ class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -119,84 +252,63 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -225,7 +337,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -253,10 +365,9 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( default=UNSET ) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -269,7 +380,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -277,7 +388,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHub ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -306,9 +417,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -322,34 +431,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -359,7 +441,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -376,7 +458,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -407,7 +489,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCre user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -431,12 +513,14 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -465,36 +549,36 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -502,7 +586,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -510,7 +594,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -518,7 +602,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -526,7 +610,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -534,7 +618,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -542,7 +626,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -550,7 +634,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -558,21 +642,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -601,7 +685,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -686,7 +770,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -708,11 +792,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -760,7 +844,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -772,7 +856,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -801,11 +885,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool = Field() @@ -815,50 +899,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -927,8 +982,8 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." ) homepage: Union[str, None] = Field() hooks_url: str = Field() @@ -943,7 +998,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -965,11 +1020,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1017,7 +1072,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1029,7 +1084,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1058,11 +1113,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool = Field() @@ -1072,7 +1127,36 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1089,7 +1173,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1102,11 +1186,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1124,7 +1208,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1143,7 +1227,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1157,11 +1241,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1179,118 +1263,126 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestedOneof0) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewCommentCreated) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestedOneof0", - "WebhookPullRequestReviewRequestedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewCommentCreated", + "WebhookPullRequestReviewCommentCreatedPropComment", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0741.py b/githubkit/versions/ghec_v2022_11_28/models/group_0741.py index 986178991..0164ba8cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0741.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0741.py @@ -18,17 +18,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0494 import WebhooksReviewComment -class WebhookPullRequestReviewRequestedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewCommentDeleted(GitHubModel): + """pull_request_review_comment deleted event""" - action: Literal["review_requested"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksReviewComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,88 +44,34 @@ class WebhookPullRequestReviewRequestedOneof1(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( - title="Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" +class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -137,84 +88,63 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -236,14 +166,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubM site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -267,14 +195,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -287,7 +212,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -295,7 +220,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHub ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -324,9 +249,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -340,34 +263,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -377,7 +273,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -394,7 +290,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -418,14 +314,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -454,7 +348,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -483,36 +377,36 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -520,7 +414,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -528,7 +422,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -536,7 +430,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -544,7 +438,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -552,7 +446,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -560,7 +454,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -568,7 +462,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -576,21 +470,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -619,7 +513,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -704,7 +598,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -726,11 +620,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -778,7 +672,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -790,7 +684,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -819,11 +713,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool = Field() @@ -833,50 +727,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -961,7 +826,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -983,11 +848,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1035,7 +900,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1047,7 +912,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1076,11 +941,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool = Field() @@ -1090,7 +955,36 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1109,7 +1003,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1123,11 +1017,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1145,7 +1039,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1164,7 +1058,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1178,11 +1072,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1200,120 +1094,112 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestedOneof1) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewCommentDeleted) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestedOneof1", - "WebhookPullRequestReviewRequestedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewCommentDeleted", + "WebhookPullRequestReviewCommentDeletedPropPullRequest", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0742.py b/githubkit/versions/ghec_v2022_11_28/models/group_0742.py index 07d487289..655689eda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0742.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0742.py @@ -18,18 +18,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0488 import WebhooksReview +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0472 import WebhooksChanges +from .group_0494 import WebhooksReviewComment -class WebhookPullRequestReviewSubmitted(GitHubModel): - """pull_request_review submitted event""" +class WebhookPullRequestReviewCommentEdited(GitHubModel): + """pull_request_review_comment edited event""" - action: Literal["submitted"] = Field() + action: Literal["edited"] = Field() + changes: WebhooksChanges = Field(description="The changes to the comment.") + comment: WebhooksReviewComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,31 +51,30 @@ class WebhookPullRequestReviewSubmitted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -84,32 +89,33 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() commits_url: str = Field() created_at: str = Field() diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( - Field() - ) + labels: list[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -119,13 +125,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -134,12 +140,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -161,14 +167,14 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -190,13 +196,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubM site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -209,14 +214,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel) description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -245,7 +251,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -259,7 +265,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubMode url: str = Field(description="URL for the label") -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -269,7 +275,8 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -285,7 +292,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) url: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -316,7 +323,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -340,14 +347,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -372,40 +377,40 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") + comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( + title="Link" ) - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") + statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( + title="Link" ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -413,25 +418,31 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -439,7 +450,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -447,13 +458,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -461,21 +474,21 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -502,7 +515,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -585,7 +598,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -607,10 +620,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -658,7 +672,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -670,7 +684,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -699,10 +713,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -711,21 +727,21 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -808,7 +824,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -830,10 +846,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -881,7 +898,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -893,7 +910,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -922,10 +939,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -934,7 +953,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -961,7 +980,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -970,32 +989,35 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1013,7 +1035,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1032,7 +1054,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1046,11 +1068,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] = Field(description="Description of the team") @@ -1068,100 +1090,108 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewSubmitted) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewCommentEdited) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment +) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewSubmitted", - "WebhookPullRequestReviewSubmittedPropPullRequest", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentEdited", + "WebhookPullRequestReviewCommentEditedPropPullRequest", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0743.py b/githubkit/versions/ghec_v2022_11_28/models/group_0743.py index ccb63296c..9466e02c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0743.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0743.py @@ -18,17 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPullRequestReviewThreadResolved(GitHubModel): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewDismissed(GitHubModel): + """pull_request_review dismissed event""" - action: Literal["resolved"] = Field() + action: Literal["dismissed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,36 +44,118 @@ class WebhookPullRequestReviewThreadResolved(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + review: WebhookPullRequestReviewDismissedPropReview = Field( + description="The review that was affected." ) - thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewDismissedPropReview(GitHubModel): + """WebhookPullRequestReviewDismissedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: Literal["dismissed", "approved", "changes_requested"] = Field() + submitted_at: datetime = Field() + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" + + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( + title="Link" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -89,12 +171,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -102,18 +184,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems - ] = Field() + labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -123,13 +205,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -138,12 +220,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -165,14 +247,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -194,11 +276,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -211,15 +295,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -248,7 +331,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -262,7 +345,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -272,8 +355,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -289,7 +371,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -318,7 +400,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -349,7 +431,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -378,36 +460,36 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( Field(title="Link") ) - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" ) - statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -415,31 +497,25 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -447,7 +523,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -455,15 +531,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -471,23 +545,21 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -514,9 +586,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -599,10 +669,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -613,11 +691,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -626,6 +703,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -640,6 +729,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -649,7 +742,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -661,7 +754,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -690,12 +783,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -704,23 +795,21 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -803,10 +892,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -817,11 +914,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -830,6 +926,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -844,6 +952,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -853,7 +965,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -865,7 +977,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -894,12 +1006,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -908,9 +1018,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -937,7 +1045,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -954,7 +1062,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -967,11 +1075,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -989,7 +1097,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1008,7 +1116,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1022,11 +1130,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] = Field(description="Description of the team") @@ -1044,324 +1152,110 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems - ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -model_rebuild(WebhookPullRequestReviewThreadResolved) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense -) +model_rebuild(WebhookPullRequestReviewDismissed) +model_rebuild(WebhookPullRequestReviewDismissedPropReview) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequest) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewThreadResolved", - "WebhookPullRequestReviewThreadResolvedPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadResolvedPropThread", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewDismissed", + "WebhookPullRequestReviewDismissedPropPullRequest", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewDismissedPropPullRequestPropBase", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropHead", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewDismissedPropPullRequestPropUser", + "WebhookPullRequestReviewDismissedPropReview", + "WebhookPullRequestReviewDismissedPropReviewPropLinks", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", + "WebhookPullRequestReviewDismissedPropReviewPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0744.py b/githubkit/versions/ghec_v2022_11_28/models/group_0744.py index ba2d3f6c7..31559e5aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0744.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0744.py @@ -18,17 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0495 import WebhooksReview -class WebhookPullRequestReviewThreadUnresolved(GitHubModel): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestReviewEdited(GitHubModel): + """pull_request_review edited event""" - action: Literal["unresolved"] = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestReviewEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,36 +46,48 @@ class WebhookPullRequestReviewThreadUnresolved(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + review: WebhooksReview = Field(description="The review that was affected.") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestReviewEditedPropChanges(GitHubModel): + """WebhookPullRequestReviewEditedPropChanges""" + + body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( + default=UNSET + ) + + +class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", ) - thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None - ] = Field(title="User") + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) assignees: list[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -89,12 +103,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -102,18 +116,16 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems - ] = Field() + labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -123,13 +135,13 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -138,12 +150,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -165,14 +177,14 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHub site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -194,11 +206,13 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -207,17 +221,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHu commit_message: Union[str, None] = Field( description="Commit message for the merge commit." ) - commit_title: str = Field(description="Title for the merge commit message.") + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -246,9 +261,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -262,7 +275,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -272,8 +285,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -289,7 +301,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu url: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -313,12 +325,14 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCr site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -342,12 +356,14 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -369,73 +385,67 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubMode site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -443,7 +453,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -451,39 +461,33 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -510,9 +514,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -579,9 +581,6 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -595,8 +594,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() @@ -609,11 +607,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -639,13 +636,9 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -657,7 +650,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -686,12 +679,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions - """ + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -700,52 +691,21 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -812,9 +772,6 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -828,8 +785,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() @@ -842,11 +798,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -872,13 +827,9 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -890,7 +841,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -919,12 +870,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions - """ + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -933,7 +882,34 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -942,35 +918,32 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] = Field(description="Description of the team") @@ -988,9 +961,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1007,7 +978,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1021,12 +992,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent - """ + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1043,327 +1012,94 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems - ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -model_rebuild(WebhookPullRequestReviewThreadUnresolved) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent -) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) +model_rebuild(WebhookPullRequestReviewEdited) +model_rebuild(WebhookPullRequestReviewEditedPropChanges) +model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewThreadUnresolved", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropThread", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewEdited", + "WebhookPullRequestReviewEditedPropChanges", + "WebhookPullRequestReviewEditedPropChangesPropBody", + "WebhookPullRequestReviewEditedPropPullRequest", + "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewEditedPropPullRequestPropBase", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropHead", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewEditedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0745.py b/githubkit/versions/ghec_v2022_11_28/models/group_0745.py index ee648972b..7ac77c547 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0745.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0745.py @@ -18,19 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPullRequestSynchronize(GitHubModel): - """pull_request synchronize event""" +class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["synchronize"] = Field() - after: str = Field() - before: str = Field() + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,29 +45,64 @@ class WebhookPullRequestSynchronize(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None + ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,12 +118,12 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -104,11 +137,13 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -120,10 +155,13 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, + None, + ] ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -136,13 +174,13 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -154,12 +192,14 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -181,14 +221,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -210,13 +250,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -229,14 +270,15 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -265,7 +307,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -279,7 +323,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -306,7 +352,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( + GitHubModel +): """Milestone A collection of related issues and pull requests. @@ -316,7 +364,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -332,7 +381,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -354,14 +405,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHu site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -385,14 +434,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -414,67 +461,73 @@ class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -482,7 +535,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -490,33 +543,40 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -543,7 +603,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -626,7 +688,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -647,10 +710,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -663,12 +727,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): 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.", + description="The default value for a squash merge commit message.", ) squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( Field( default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + description="The default value for a squash merge commit title.", ) ) ssh_url: str = Field() @@ -698,7 +762,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -710,7 +774,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -739,10 +803,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -751,21 +817,24 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -792,7 +861,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -875,14 +946,17 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) merges_url: str = Field() milestones_url: str = Field() @@ -894,10 +968,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -945,7 +1020,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -957,7 +1032,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -986,10 +1061,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -998,7 +1075,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1015,7 +1092,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1028,11 +1105,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1050,41 +1127,42 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1101,92 +1179,136 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropPar url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestSynchronize) -model_rebuild(WebhookPullRequestSynchronizePropPullRequest) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense +) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestSynchronize", - "WebhookPullRequestSynchronizePropPullRequest", - "WebhookPullRequestSynchronizePropPullRequestPropAssignee", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestSynchronizePropPullRequestPropBase", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", - "WebhookPullRequestSynchronizePropPullRequestPropHead", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", - "WebhookPullRequestSynchronizePropPullRequestPropLinks", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", - "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", - "WebhookPullRequestSynchronizePropPullRequestPropMilestone", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestSynchronizePropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0746.py b/githubkit/versions/ghec_v2022_11_28/models/group_0746.py index 6e15bd06a..2c648d5a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0746.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0746.py @@ -18,21 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0469 import WebhooksUserMannequin +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPullRequestUnassigned(GitHubModel): - """pull_request unassigned event""" +class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1""" - action: Literal["unassigned"] = Field() - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,31 +45,86 @@ class WebhookPullRequestUnassigned(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -89,12 +140,12 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -108,11 +159,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -124,13 +177,16 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, + None, + ] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -140,13 +196,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -158,12 +214,14 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -185,14 +243,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -214,13 +272,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel) site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -233,14 +292,15 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -269,7 +329,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -283,7 +345,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -305,14 +369,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( + GitHubModel +): """Milestone A collection of related issues and pull requests. @@ -322,7 +386,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -338,7 +403,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -360,14 +427,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHub site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -391,14 +456,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -420,67 +483,73 @@ class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -488,7 +557,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -496,33 +565,40 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -549,7 +625,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -632,7 +710,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -653,10 +732,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -704,7 +784,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -716,7 +796,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -743,10 +825,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -755,21 +839,53 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -852,7 +968,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -873,10 +990,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -924,7 +1042,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -936,7 +1054,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -963,10 +1083,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -975,34 +1097,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1019,7 +1114,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1032,11 +1127,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1054,41 +1149,42 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1105,92 +1201,138 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropPare url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnassigned) -model_rebuild(WebhookPullRequestUnassignedPropPullRequest) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense +) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnassigned", - "WebhookPullRequestUnassignedPropPullRequest", - "WebhookPullRequestUnassignedPropPullRequestPropAssignee", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnassignedPropPullRequestPropBase", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnassignedPropPullRequestPropHead", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnassignedPropPullRequestPropLinks", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", - "WebhookPullRequestUnassignedPropPullRequestPropMilestone", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestUnassignedPropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0747.py b/githubkit/versions/ghec_v2022_11_28/models/group_0747.py index 77ec89917..dc628e6ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0747.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0747.py @@ -18,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0461 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPullRequestUnlabeled(GitHubModel): - """pull_request unlabeled event""" +class WebhookPullRequestReviewRequestedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["unlabeled"] = Field() + action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,36 +39,72 @@ class WebhookPullRequestUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None + ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -84,13 +119,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -104,11 +139,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -120,13 +157,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -136,13 +173,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -154,12 +191,12 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -188,7 +225,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -214,9 +253,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): default=UNSET ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -229,14 +269,17 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -263,7 +306,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -277,7 +322,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -304,7 +349,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -314,7 +359,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +376,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -359,7 +407,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -383,14 +431,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -419,66 +465,76 @@ class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -486,33 +542,39 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -539,7 +601,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -622,7 +686,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -643,10 +708,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -694,7 +760,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -706,7 +772,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -733,10 +801,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -745,21 +815,52 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -842,14 +943,17 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) merges_url: str = Field() milestones_url: str = Field() @@ -861,10 +965,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -912,7 +1017,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -924,7 +1029,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -951,10 +1058,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -963,34 +1072,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1007,7 +1089,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1020,11 +1102,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1042,7 +1124,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1059,7 +1143,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubMo node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1073,10 +1157,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubMo url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1093,88 +1179,118 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParen url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnlabeled) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestedOneof0) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions +) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnlabeled", - "WebhookPullRequestUnlabeledPropPullRequest", - "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlabeledPropPullRequestPropBase", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropHead", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropLinks", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestUnlabeledPropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof0", + "WebhookPullRequestReviewRequestedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0748.py b/githubkit/versions/ghec_v2022_11_28/models/group_0748.py index a7cfaa890..b30712282 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0748.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0748.py @@ -18,17 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookPullRequestUnlocked(GitHubModel): - """pull_request unlocked event""" +class WebhookPullRequestReviewRequestedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1""" - action: Literal["unlocked"] = Field() + action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,29 +45,84 @@ class WebhookPullRequestUnlocked(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -82,13 +137,13 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -102,11 +157,13 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -118,13 +175,13 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -134,13 +191,13 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -152,12 +209,12 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -179,12 +236,16 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -206,11 +267,14 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -219,16 +283,21 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): commit_message: Union[str, None] = Field( description="Commit message for the merge commit." ) - commit_title: str = Field(description="Title for the merge commit message.") + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -255,7 +324,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -269,7 +340,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -296,7 +367,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -306,7 +377,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -322,7 +394,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -344,12 +418,14 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -378,7 +454,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -400,103 +476,123 @@ class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -523,7 +619,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -606,7 +704,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -627,10 +726,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -678,7 +778,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -688,7 +790,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -715,10 +819,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -727,21 +833,52 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -824,7 +961,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -845,10 +983,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -896,7 +1035,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -906,7 +1047,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -933,10 +1076,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -945,34 +1090,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -991,7 +1109,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1005,11 +1123,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1027,7 +1145,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1044,7 +1164,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1058,10 +1178,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1078,88 +1200,120 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnlocked) -model_rebuild(WebhookPullRequestUnlockedPropPullRequest) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestedOneof1) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions +) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnlocked", - "WebhookPullRequestUnlockedPropPullRequest", - "WebhookPullRequestUnlockedPropPullRequestPropAssignee", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlockedPropPullRequestPropBase", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlockedPropPullRequestPropHead", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlockedPropPullRequestPropLinks", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", - "WebhookPullRequestUnlockedPropPullRequestPropMilestone", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestUnlockedPropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof1", + "WebhookPullRequestReviewRequestedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0749.py b/githubkit/versions/ghec_v2022_11_28/models/group_0749.py index 14711a258..69e30f431 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0749.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0749.py @@ -14,41 +14,27 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0495 import WebhooksReview -class WebhookPush(GitHubModel): - """push event""" +class WebhookPullRequestReviewSubmitted(GitHubModel): + """pull_request_review submitted event""" - after: str = Field( - description="The SHA of the most recent commit on `ref` after the push." - ) - base_ref: Union[str, None] = Field() - before: str = Field( - description="The SHA of the most recent commit on `ref` before the push." - ) - commits: list[WebhookPushPropCommitsItems] = Field( - description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/enterprise-cloud@latest//rest/commits) to fetch additional commits." - ) - compare: str = Field( - description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." - ) - created: bool = Field(description="Whether this push created the `ref`.") - deleted: bool = Field(description="Whether this push deleted the `ref`.") + action: Literal["submitted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - forced: bool = Field(description="Whether this push was a force push of the `ref`.") - head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -59,145 +45,464 @@ class WebhookPush(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher: WebhookPushPropPusher = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( + title="Simple Pull Request" ) - ref: str = Field( - description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository: WebhookPushPropRepository = Field( - title="Repository", description="A git repository" + review: WebhooksReview = Field(description="The review that was affected.") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: list[ + Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPushPropHeadCommit(GitHubModel): - """Commit""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): + """User""" - added: Missing[list[str]] = Field( - default=UNSET, description="An array of files added in the commit." + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - author: WebhookPushPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - committer: WebhookPushPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[list[str]] = Field( - default=UNSET, description="An array of files modified by the commit." + enabled_by: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." ) - removed: Missing[list[str]] = Field( - default=UNSET, description="An array of files removed in the commit." + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookPushPropHeadCommitPropAuthor(GitHubModel): - """Committer +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): + """Milestone - Metaproperties for Git author/committer information. + A collection of related issues and pull requests. """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookPushPropHeadCommitPropCommitter(GitHubModel): - """Committer +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPushPropPusher(GitHubModel): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): + """User""" - date: Missing[datetime] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) email: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPushPropCommitsItems(GitHubModel): - """Commit""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - added: Missing[list[str]] = Field( - default=UNSET, - description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - author: WebhookPushPropCommitsItemsPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - committer: WebhookPushPropCommitsItemsPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[list[str]] = Field( - default=UNSET, - description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" ) - removed: Missing[list[str]] = Field( - default=UNSET, - description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") -class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): - """Committer +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" - Metaproperties for Git author/committer information. - """ + href: str = Field() - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" -class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): - """Committer + href: str = Field() - Metaproperties for Git author/committer information. - """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPushPropRepository(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -234,10 +539,6 @@ class WebhookPushPropRepository(GitHubModel): contents_url: str = Field() contributors_url: str = Field() created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) default_branch: str = Field(description="The default branch of the repository.") delete_branch_on_merge: Missing[bool] = Field( default=UNSET, @@ -283,10 +584,19 @@ class WebhookPushPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -296,10 +606,12 @@ class WebhookPushPropRepository(GitHubModel): open_issues: int = Field() open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( - default=UNSET - ) + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) pulls_url: str = Field() @@ -307,6 +619,18 @@ class WebhookPushPropRepository(GitHubModel): releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -321,6 +645,10 @@ class WebhookPushPropRepository(GitHubModel): trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -330,16 +658,232 @@ class WebhookPushPropRepository(GitHubModel): ) -class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookPushPropRepositoryPropCustomProperties +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. +class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository """ + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + -class WebhookPushPropRepositoryPropLicense(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -349,7 +893,9 @@ class WebhookPushPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookPushPropRepositoryPropOwner(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -376,8 +922,10 @@ class WebhookPushPropRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPushPropRepositoryPropPermissions(GitHubModel): - """WebhookPushPropRepositoryPropPermissions""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -386,32 +934,234 @@ class WebhookPushPropRepositoryPropPermissions(GitHubModel): triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookPush) -model_rebuild(WebhookPushPropHeadCommit) -model_rebuild(WebhookPushPropHeadCommitPropAuthor) -model_rebuild(WebhookPushPropHeadCommitPropCommitter) -model_rebuild(WebhookPushPropPusher) -model_rebuild(WebhookPushPropCommitsItems) -model_rebuild(WebhookPushPropCommitsItemsPropAuthor) -model_rebuild(WebhookPushPropCommitsItemsPropCommitter) -model_rebuild(WebhookPushPropRepository) -model_rebuild(WebhookPushPropRepositoryPropCustomProperties) -model_rebuild(WebhookPushPropRepositoryPropLicense) -model_rebuild(WebhookPushPropRepositoryPropOwner) -model_rebuild(WebhookPushPropRepositoryPropPermissions) +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewSubmitted) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPush", - "WebhookPushPropCommitsItems", - "WebhookPushPropCommitsItemsPropAuthor", - "WebhookPushPropCommitsItemsPropCommitter", - "WebhookPushPropHeadCommit", - "WebhookPushPropHeadCommitPropAuthor", - "WebhookPushPropHeadCommitPropCommitter", - "WebhookPushPropPusher", - "WebhookPushPropRepository", - "WebhookPushPropRepositoryPropCustomProperties", - "WebhookPushPropRepositoryPropLicense", - "WebhookPushPropRepositoryPropOwner", - "WebhookPushPropRepositoryPropPermissions", + "WebhookPullRequestReviewSubmitted", + "WebhookPullRequestReviewSubmittedPropPullRequest", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0750.py b/githubkit/versions/ghec_v2022_11_28/models/group_0750.py index dc1e51084..8d074c6c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0750.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0750.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0751 import WebhookRegistryPackagePublishedPropRegistryPackage +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRegistryPackagePublished(GitHubModel): - """WebhookRegistryPackagePublished""" +class WebhookPullRequestReviewThreadResolved(GitHubModel): + """pull_request_review_thread resolved event""" - action: Literal["published"] = Field() + action: Literal["resolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,15 +44,1324 @@ class WebhookRegistryPackagePublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: list[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() -model_rebuild(WebhookRegistryPackagePublished) +model_rebuild(WebhookPullRequestReviewThreadResolved) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf +) -__all__ = ("WebhookRegistryPackagePublished",) +__all__ = ( + "WebhookPullRequestReviewThreadResolved", + "WebhookPullRequestReviewThreadResolvedPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadResolvedPropThread", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0751.py b/githubkit/versions/ghec_v2022_11_28/models/group_0751.py index ef7a7e523..aeb7fffb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0751.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0751.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,72 +18,1352 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0752 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, -) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookPullRequestReviewThreadUnresolved(GitHubModel): + """pull_request_review_thread unresolved event""" - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() + action: Literal["unresolved"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + issue_url: str = Field() + labels: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems ] = Field() - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems ] = Field() - updated_at: Union[str, None] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" - avatar_url: str = Field() + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") - about_url: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - vendor: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +model_rebuild(WebhookPullRequestReviewThreadUnresolved) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf +) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackage", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", + "WebhookPullRequestReviewThreadUnresolved", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropThread", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0752.py b/githubkit/versions/ghec_v2022_11_28/models/group_0752.py index dc507a5cd..8cbdb6f79 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0752.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0752.py @@ -9,482 +9,971 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0671 import WebhookRubygemsMetadata - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor - ] = Field(default=UNSET) - body: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, - ] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks + + +class WebhookPullRequestSynchronize(GitHubModel): + """pull_request synchronize event""" + + action: Literal["synchronize"] = Field() + after: str = Field() + before: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, - None, - ] - ] = Field(default=UNSET) - nuget_metadata: Missing[ + issue_url: str = Field() + labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ Union[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems - ], + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ] - ] = Field(default=UNSET) - package_files: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() + requested_teams: list[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" +class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): + """User""" - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems - """ + """User""" - tags: Missing[list[str]] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ +class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[list[str]] = Field(default=UNSET) - contributors: Missing[list[str]] = Field(default=UNSET) - engines: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[list[str]] = Field(default=UNSET) - files: Missing[list[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, - None, - ] - ] = Field(default=UNSET) - os: Missing[list[str]] = Field(default=UNSET) - cpu: Missing[list[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 +class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. """ + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ +class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): + """User""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ +class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ + """Link""" - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ + """Link""" - labels: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ + href: str = Field() - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) +class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems - """ + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) - id: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, - int, - None, - ] - ] = Field(default=UNSET) + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - published_at: Missing[str] = Field(default=UNSET) - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -492,125 +981,212 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest -) +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestSynchronize) +model_rebuild(WebhookPullRequestSynchronizePropPullRequest) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPullRequestSynchronize", + "WebhookPullRequestSynchronizePropPullRequest", + "WebhookPullRequestSynchronizePropPullRequestPropAssignee", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestSynchronizePropPullRequestPropBase", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", + "WebhookPullRequestSynchronizePropPullRequestPropHead", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", + "WebhookPullRequestSynchronizePropPullRequestPropLinks", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", + "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", + "WebhookPullRequestSynchronizePropPullRequestPropMilestone", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestSynchronizePropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0753.py b/githubkit/versions/ghec_v2022_11_28/models/group_0753.py index 057b03682..960931f0a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0753.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0753.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0754 import WebhookRegistryPackageUpdatedPropRegistryPackage +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0476 import WebhooksUserMannequin -class WebhookRegistryPackageUpdated(GitHubModel): - """WebhookRegistryPackageUpdated""" +class WebhookPullRequestUnassigned(GitHubModel): + """pull_request unassigned event""" - action: Literal["updated"] = Field() + action: Literal["unassigned"] = Field() + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,20 +43,1154 @@ class WebhookRegistryPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookRegistryPackageUpdated) +model_rebuild(WebhookPullRequestUnassigned) +model_rebuild(WebhookPullRequestUnassignedPropPullRequest) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookRegistryPackageUpdated",) +__all__ = ( + "WebhookPullRequestUnassigned", + "WebhookPullRequestUnassignedPropPullRequest", + "WebhookPullRequestUnassignedPropPullRequestPropAssignee", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnassignedPropPullRequestPropBase", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnassignedPropPullRequestPropHead", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnassignedPropPullRequestPropLinks", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", + "WebhookPullRequestUnassignedPropPullRequestPropMilestone", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestUnassignedPropPullRequestPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0754.py b/githubkit/versions/ghec_v2022_11_28/models/group_0754.py index 5fb537e2f..590f079e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0754.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0754.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,64 +18,1163 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0755 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, -) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0468 import WebhooksLabel + + +class WebhookPullRequestUnlabeled(GitHubModel): + """pull_request unlabeled event""" + action: Literal["unlabeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" - created_at: str = Field() - description: None = Field() - ecosystem: str = Field() +class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None + issue_url: str = Field() + labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems ] = Field() - updated_at: str = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + href: str = Field() -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" - avatar_url: str = Field() +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlabeled) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackage", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", + "WebhookPullRequestUnlabeled", + "WebhookPullRequestUnlabeledPropPullRequest", + "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlabeledPropPullRequestPropBase", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropHead", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropLinks", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestUnlabeledPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0755.py b/githubkit/versions/ghec_v2022_11_28/models/group_0755.py index d9e4fa149..e6040b9cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0755.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0755.py @@ -9,195 +9,1157 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0671 import WebhookRubygemsMetadata +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" +class WebhookPullRequestUnlocked(GitHubModel): + """pull_request unlocked event""" - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - list[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, - None, - ] - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) + action: Literal["unlocked"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems + issue_url: str = Field() + labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, + ] ] = Field() - name: str = Field() - package_files: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems + requested_teams: list[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + """User""" - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository """ - tags: Missing[list[str]] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems - """ + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems + """Team + + Groups of organization members that gives permissions on specified repositories. """ - content_type: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - md5: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - sha1: Missing[Union[str, None]] = Field(default=UNSET) - sha256: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() - created_at: str = Field() - draft: bool = Field() + description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() - id: int = Field() - login: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) +model_rebuild(WebhookPullRequestUnlocked) +model_rebuild(WebhookPullRequestUnlockedPropPullRequest) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPullRequestUnlocked", + "WebhookPullRequestUnlockedPropPullRequest", + "WebhookPullRequestUnlockedPropPullRequestPropAssignee", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlockedPropPullRequestPropBase", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlockedPropPullRequestPropHead", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlockedPropPullRequestPropLinks", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", + "WebhookPullRequestUnlockedPropPullRequestPropMilestone", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestUnlockedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0756.py b/githubkit/versions/ghec_v2022_11_28/models/group_0756.py index 36049e0e8..57b5be09c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0756.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0756.py @@ -9,31 +9,46 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0489 import WebhooksRelease +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks -class WebhookReleaseCreated(GitHubModel): - """release created event""" +class WebhookPush(GitHubModel): + """push event""" - action: Literal["created"] = Field() + after: str = Field( + description="The SHA of the most recent commit on `ref` after the push." + ) + base_ref: Union[str, None] = Field() + before: str = Field( + description="The SHA of the most recent commit on `ref` before the push." + ) + commits: list[WebhookPushPropCommitsItems] = Field( + description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/enterprise-cloud@latest//rest/commits) to fetch additional commits." + ) + compare: str = Field( + description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." + ) + created: bool = Field(description="Whether this push created the `ref`.") + deleted: bool = Field(description="Whether this push deleted the `ref`.") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) + forced: bool = Field(description="Whether this push was a force push of the `ref`.") + head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -44,17 +59,359 @@ class WebhookReleaseCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + pusher: WebhookPushPropPusher = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ref: str = Field( + description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." + ) + repository: WebhookPushPropRepository = Field( + title="Repository", description="A git repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookPushPropHeadCommit(GitHubModel): + """Commit""" + + added: Missing[list[str]] = Field( + default=UNSET, description="An array of files added in the commit." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + author: WebhookPushPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + committer: WebhookPushPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[list[str]] = Field( + default=UNSET, description="An array of files modified by the commit." + ) + removed: Missing[list[str]] = Field( + default=UNSET, description="An array of files removed in the commit." + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropPusher(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropCommitsItems(GitHubModel): + """Commit""" + + added: Missing[list[str]] = Field( + default=UNSET, + description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + author: WebhookPushPropCommitsItemsPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropCommitsItemsPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[list[str]] = Field( + default=UNSET, + description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + ) + removed: Missing[list[str]] = Field( + default=UNSET, + description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookPushPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookPushPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPushPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropRepositoryPropPermissions(GitHubModel): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookReleaseCreated) +model_rebuild(WebhookPush) +model_rebuild(WebhookPushPropHeadCommit) +model_rebuild(WebhookPushPropHeadCommitPropAuthor) +model_rebuild(WebhookPushPropHeadCommitPropCommitter) +model_rebuild(WebhookPushPropPusher) +model_rebuild(WebhookPushPropCommitsItems) +model_rebuild(WebhookPushPropCommitsItemsPropAuthor) +model_rebuild(WebhookPushPropCommitsItemsPropCommitter) +model_rebuild(WebhookPushPropRepository) +model_rebuild(WebhookPushPropRepositoryPropCustomProperties) +model_rebuild(WebhookPushPropRepositoryPropLicense) +model_rebuild(WebhookPushPropRepositoryPropOwner) +model_rebuild(WebhookPushPropRepositoryPropPermissions) -__all__ = ("WebhookReleaseCreated",) +__all__ = ( + "WebhookPush", + "WebhookPushPropCommitsItems", + "WebhookPushPropCommitsItemsPropAuthor", + "WebhookPushPropCommitsItemsPropCommitter", + "WebhookPushPropHeadCommit", + "WebhookPushPropHeadCommitPropAuthor", + "WebhookPushPropHeadCommitPropCommitter", + "WebhookPushPropPusher", + "WebhookPushPropRepository", + "WebhookPushPropRepositoryPropCustomProperties", + "WebhookPushPropRepositoryPropLicense", + "WebhookPushPropRepositoryPropOwner", + "WebhookPushPropRepositoryPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0757.py b/githubkit/versions/ghec_v2022_11_28/models/group_0757.py index b48d97ae3..a2d73fca7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0757.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0757.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0489 import WebhooksRelease +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0758 import WebhookRegistryPackagePublishedPropRegistryPackage -class WebhookReleaseDeleted(GitHubModel): - """release deleted event""" +class WebhookRegistryPackagePublished(GitHubModel): + """WebhookRegistryPackagePublished""" - action: Literal["deleted"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,17 +44,15 @@ class WebhookReleaseDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( + registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleaseDeleted) +model_rebuild(WebhookRegistryPackagePublished) -__all__ = ("WebhookReleaseDeleted",) +__all__ = ("WebhookRegistryPackagePublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0758.py b/githubkit/versions/ghec_v2022_11_28/models/group_0758.py index 0db389825..0275168f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0758.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0758.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,93 +17,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0489 import WebhooksRelease - - -class WebhookReleaseEdited(GitHubModel): - """release edited event""" - - action: Literal["edited"] = Field() - changes: WebhookReleaseEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookReleaseEditedPropChanges(GitHubModel): - """WebhookReleaseEditedPropChanges""" - - body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) - make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( - default=UNSET - ) - - -class WebhookReleaseEditedPropChangesPropBody(GitHubModel): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropName(GitHubModel): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool = Field( - description="Whether this release was explicitly `edited` to be the latest." - ) - - -model_rebuild(WebhookReleaseEdited) -model_rebuild(WebhookReleaseEditedPropChanges) -model_rebuild(WebhookReleaseEditedPropChangesPropBody) -model_rebuild(WebhookReleaseEditedPropChangesPropName) -model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) +from .group_0759 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, +) + + +class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackage""" + + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + ] = Field() + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: Union[str, None] = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + vendor: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) __all__ = ( - "WebhookReleaseEdited", - "WebhookReleaseEditedPropChanges", - "WebhookReleaseEditedPropChangesPropBody", - "WebhookReleaseEditedPropChangesPropMakeLatest", - "WebhookReleaseEditedPropChangesPropName", + "WebhookRegistryPackagePublishedPropRegistryPackage", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0759.py b/githubkit/versions/ghec_v2022_11_28/models/group_0759.py index 3f256181a..fc395ef56 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0759.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0759.py @@ -9,157 +9,482 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks - - -class WebhookReleasePrereleased(GitHubModel): - """release prereleased event""" - - action: Literal["prereleased"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhookReleasePrereleasedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookReleasePrereleasedPropRelease(GitHubModel): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( - Field() - ) - assets_url: str = Field() - author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") +from .group_0678 import WebhookRubygemsMetadata + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" + + author: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor + ] = Field(default=UNSET) + body: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, + ] + ] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + container_metadata: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + description: str = Field() + docker_metadata: Missing[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + npm_metadata: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, + None, + ] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: str = Field() + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + target_oid: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + version: str = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() html_url: str = Field() id: int = Field() - name: Union[str, None] = Field() + login: str = Field() node_id: str = Field() - prerelease: Literal[True] = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() url: str = Field() - zipball_url: Union[str, None] = Field() + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): - """Release Asset +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata + Items + """ + - Data related to a release. +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + npm_user: Missing[str] = Field(default=UNSET) + author: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, + None, + ] + ] = Field(default=UNSET) + bugs: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, + None, + ] + ] = Field(default=UNSET) + dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies + ] = Field(default=UNSET) + dev_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies + ] = Field(default=UNSET) + peer_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + ] = Field(default=UNSET) + optional_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + ] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + dist: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, + None, + ] + ] = Field(default=UNSET) + git_head: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + main: Missing[str] = Field(default=UNSET) + repository: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, + None, + ] + ] = Field(default=UNSET) + scripts: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts + ] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_version: Missing[str] = Field(default=UNSET) + npm_version: Missing[str] = Field(default=UNSET) + has_shrinkwrap: Missing[bool] = Field(default=UNSET) + maintainers: Missing[list[str]] = Field(default=UNSET) + contributors: Missing[list[str]] = Field(default=UNSET) + engines: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines + ] = Field(default=UNSET) + keywords: Missing[list[str]] = Field(default=UNSET) + files: Missing[list[str]] = Field(default=UNSET) + bin_: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin + ] = Field(default=UNSET, alias="bin") + man: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan + ] = Field(default=UNSET) + directories: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, + None, + ] + ] = Field(default=UNSET) + os: Missing[list[str]] = Field(default=UNSET) + cpu: Missing[list[str]] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + installation_command: Missing[str] = Field(default=UNSET) + release_id: Missing[int] = Field(default=UNSET) + commit_oid: Missing[str] = Field(default=UNSET) + published_via_actions: Missing[bool] = Field(default=UNSET) + deleted_by_id: Missing[int] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems """ - browser_download_url: str = Field() content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() + created_at: str = Field() + download_url: str = Field() id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: Union[str, None] = Field() size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() + state: Union[str, None] = Field() + updated_at: str = Field() -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + labels: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, + None, + ] + ] = Field(default=UNSET) + manifest: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, + None, + ] + ] = Field(default=UNSET) + tag: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag + ] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, + int, + None, + ] + ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, + ] + ] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: Missing[str] = Field(default=UNSET) + branch: Missing[str] = Field(default=UNSET) + commit: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + + author: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + published_at: Missing[str] = Field(default=UNSET) + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): - """User""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -167,38 +492,125 @@ class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -model_rebuild(WebhookReleasePrereleased) -model_rebuild(WebhookReleasePrereleasedPropRelease) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) -model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) __all__ = ( - "WebhookReleasePrereleased", - "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleasePropAssetsItems", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", - "WebhookReleasePrereleasedPropReleasePropAuthor", - "WebhookReleasePrereleasedPropReleasePropReactions", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0760.py b/githubkit/versions/ghec_v2022_11_28/models/group_0760.py index 7c2e8e45e..2eb02be1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0760.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0760.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0490 import WebhooksRelease1 +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0761 import WebhookRegistryPackageUpdatedPropRegistryPackage -class WebhookReleasePublished(GitHubModel): - """release published event""" +class WebhookRegistryPackageUpdated(GitHubModel): + """WebhookRegistryPackageUpdated""" - action: Literal["published"] = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +44,15 @@ class WebhookReleasePublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease1 = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleasePublished) +model_rebuild(WebhookRegistryPackageUpdated) -__all__ = ("WebhookReleasePublished",) +__all__ = ("WebhookRegistryPackageUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0761.py b/githubkit/versions/ghec_v2022_11_28/models/group_0761.py index 0cae1c794..05b89e5dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0761.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0761.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,46 +17,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0489 import WebhooksRelease - - -class WebhookReleaseReleased(GitHubModel): - """release released event""" - - action: Literal["released"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(WebhookReleaseReleased) - -__all__ = ("WebhookReleaseReleased",) +from .group_0762 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, +) + + +class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" + + created_at: str = Field() + description: None = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() + registry: Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" + + +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackage", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0762.py b/githubkit/versions/ghec_v2022_11_28/models/group_0762.py index 8d676250d..c9d29b6ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0762.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0762.py @@ -9,54 +9,195 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0490 import WebhooksRelease1 - - -class WebhookReleaseUnpublished(GitHubModel): - """release unpublished event""" - - action: Literal["unpublished"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease1 = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(WebhookReleaseUnpublished) - -__all__ = ("WebhookReleaseUnpublished",) +from .group_0678 import WebhookRubygemsMetadata + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + list[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, + None, + ] + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: str = Field() + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt + ems + """ + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil + esItems + """ + + content_type: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + download_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + md5: Missing[Union[str, None]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + sha1: Missing[Union[str, None]] = Field(default=UNSET) + sha256: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + state: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro + pAuthor + """ + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0763.py b/githubkit/versions/ghec_v2022_11_28/models/group_0763.py index db1ac5a6f..97d7ecb19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0763.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0763.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0197 import RepositoryAdvisory -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0496 import WebhooksRelease -class WebhookRepositoryAdvisoryPublished(GitHubModel): - """Repository advisory published event""" +class WebhookReleaseCreated(GitHubModel): + """release created event""" - action: Literal["published"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,17 @@ class WebhookRepositoryAdvisoryPublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryAdvisoryPublished) +model_rebuild(WebhookReleaseCreated) -__all__ = ("WebhookRepositoryAdvisoryPublished",) +__all__ = ("WebhookReleaseCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0764.py b/githubkit/versions/ghec_v2022_11_28/models/group_0764.py index 88d9b50fc..1491becfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0764.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0764.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0197 import RepositoryAdvisory -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0496 import WebhooksRelease -class WebhookRepositoryAdvisoryReported(GitHubModel): - """Repository advisory reported event""" +class WebhookReleaseDeleted(GitHubModel): + """release deleted event""" - action: Literal["reported"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,17 @@ class WebhookRepositoryAdvisoryReported(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryAdvisoryReported) +model_rebuild(WebhookReleaseDeleted) -__all__ = ("WebhookRepositoryAdvisoryReported",) +__all__ = ("WebhookReleaseDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0765.py b/githubkit/versions/ghec_v2022_11_28/models/group_0765.py index f6c9d1628..20fe66c68 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0765.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0765.py @@ -17,17 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0496 import WebhooksRelease -class WebhookRepositoryArchived(GitHubModel): - """repository archived event""" +class WebhookReleaseEdited(GitHubModel): + """release edited event""" - action: Literal["archived"] = Field() + action: Literal["edited"] = Field() + changes: WebhookReleaseEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +45,65 @@ class WebhookRepositoryArchived(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookReleaseEditedPropChanges(GitHubModel): + """WebhookReleaseEditedPropChanges""" + + body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) + make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( + default=UNSET + ) + + +class WebhookReleaseEditedPropChangesPropBody(GitHubModel): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropName(GitHubModel): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool = Field( + description="Whether this release was explicitly `edited` to be the latest." + ) -model_rebuild(WebhookRepositoryArchived) +model_rebuild(WebhookReleaseEdited) +model_rebuild(WebhookReleaseEditedPropChanges) +model_rebuild(WebhookReleaseEditedPropChangesPropBody) +model_rebuild(WebhookReleaseEditedPropChangesPropName) +model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) -__all__ = ("WebhookRepositoryArchived",) +__all__ = ( + "WebhookReleaseEdited", + "WebhookReleaseEditedPropChanges", + "WebhookReleaseEditedPropChangesPropBody", + "WebhookReleaseEditedPropChangesPropMakeLatest", + "WebhookReleaseEditedPropChangesPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0766.py b/githubkit/versions/ghec_v2022_11_28/models/group_0766.py index e7df353ba..0f2321a69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0766.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0766.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,17 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRepositoryCreated(GitHubModel): - """repository created event""" +class WebhookReleasePrereleased(GitHubModel): + """release prereleased event""" - action: Literal["created"] = Field() + action: Literal["prereleased"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +44,161 @@ class WebhookRepositoryCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhookReleasePrereleasedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookReleasePrereleasedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( + Field() + ) + assets_url: str = Field() + author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: Literal[True] = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -model_rebuild(WebhookRepositoryCreated) +model_rebuild(WebhookReleasePrereleased) +model_rebuild(WebhookReleasePrereleasedPropRelease) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) +model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) -__all__ = ("WebhookRepositoryCreated",) +__all__ = ( + "WebhookReleasePrereleased", + "WebhookReleasePrereleasedPropRelease", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0767.py b/githubkit/versions/ghec_v2022_11_28/models/group_0767.py index ea8ac1bb0..cbe686e6c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0767.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0767.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0497 import WebhooksRelease1 -class WebhookRepositoryDeleted(GitHubModel): - """repository deleted event""" +class WebhookReleasePublished(GitHubModel): + """release published event""" - action: Literal["deleted"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +44,19 @@ class WebhookRepositoryDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease1 = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryDeleted) +model_rebuild(WebhookReleasePublished) -__all__ = ("WebhookRepositoryDeleted",) +__all__ = ("WebhookReleasePublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0768.py b/githubkit/versions/ghec_v2022_11_28/models/group_0768.py index a6cc6bc32..d53615615 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0768.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0768.py @@ -9,39 +9,33 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0496 import WebhooksRelease -class WebhookRepositoryDispatchSample(GitHubModel): - """repository_dispatch event""" +class WebhookReleaseReleased(GitHubModel): + """release released event""" - action: str = Field( - description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - branch: str = Field() - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( - Field( - description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - ) + action: Literal["released"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: SimpleInstallation = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) @@ -50,25 +44,19 @@ class WebhookRepositoryDispatchSample(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): - """WebhookRepositoryDispatchSamplePropClientPayload - - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. - """ + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryDispatchSample) -model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) +model_rebuild(WebhookReleaseReleased) -__all__ = ( - "WebhookRepositoryDispatchSample", - "WebhookRepositoryDispatchSamplePropClientPayload", -) +__all__ = ("WebhookReleaseReleased",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0769.py b/githubkit/versions/ghec_v2022_11_28/models/group_0769.py index 081306a2e..2abcd2ad9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0769.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0769.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0497 import WebhooksRelease1 -class WebhookRepositoryEdited(GitHubModel): - """repository edited event""" +class WebhookReleaseUnpublished(GitHubModel): + """release unpublished event""" - action: Literal["edited"] = Field() - changes: WebhookRepositoryEditedPropChanges = Field() + action: Literal["unpublished"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,64 +44,19 @@ class WebhookRepositoryEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease1 = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryEditedPropChanges(GitHubModel): - """WebhookRepositoryEditedPropChanges""" - - default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( - Field(default=UNSET) - ) - description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( - default=UNSET + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( - default=UNSET - ) - topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) - - -class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: Missing[Union[list[str], None]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryEdited) -model_rebuild(WebhookRepositoryEditedPropChanges) -model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) -model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) -model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) -model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) +model_rebuild(WebhookReleaseUnpublished) -__all__ = ( - "WebhookRepositoryEdited", - "WebhookRepositoryEditedPropChanges", - "WebhookRepositoryEditedPropChangesPropDefaultBranch", - "WebhookRepositoryEditedPropChangesPropDescription", - "WebhookRepositoryEditedPropChangesPropHomepage", - "WebhookRepositoryEditedPropChangesPropTopics", -) +__all__ = ("WebhookReleaseUnpublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0770.py b/githubkit/versions/ghec_v2022_11_28/models/group_0770.py index 35774dff3..8a29e8ba3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0770.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0770.py @@ -17,16 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0204 import RepositoryAdvisory +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRepositoryImport(GitHubModel): - """repository_import event""" +class WebhookRepositoryAdvisoryPublished(GitHubModel): + """Repository advisory published event""" + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -46,10 +48,14 @@ class WebhookRepositoryImport(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - status: Literal["success", "cancelled", "failure"] = Field() + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryImport) +model_rebuild(WebhookRepositoryAdvisoryPublished) -__all__ = ("WebhookRepositoryImport",) +__all__ = ("WebhookRepositoryAdvisoryPublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0771.py b/githubkit/versions/ghec_v2022_11_28/models/group_0771.py index 13c99536b..150f5a409 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0771.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0771.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0204 import RepositoryAdvisory +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRepositoryPrivatized(GitHubModel): - """repository privatized event""" +class WebhookRepositoryAdvisoryReported(GitHubModel): + """Repository advisory reported event""" - action: Literal["privatized"] = Field() + action: Literal["reported"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,9 +48,14 @@ class WebhookRepositoryPrivatized(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryPrivatized) +model_rebuild(WebhookRepositoryAdvisoryReported) -__all__ = ("WebhookRepositoryPrivatized",) +__all__ = ("WebhookRepositoryAdvisoryReported",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0772.py b/githubkit/versions/ghec_v2022_11_28/models/group_0772.py index aa71d400a..af0ef2d30 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0772.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0772.py @@ -17,17 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRepositoryPublicized(GitHubModel): - """repository publicized event""" +class WebhookRepositoryArchived(GitHubModel): + """repository archived event""" - action: Literal["publicized"] = Field() + action: Literal["archived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +50,6 @@ class WebhookRepositoryPublicized(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryPublicized) +model_rebuild(WebhookRepositoryArchived) -__all__ = ("WebhookRepositoryPublicized",) +__all__ = ("WebhookRepositoryArchived",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0773.py b/githubkit/versions/ghec_v2022_11_28/models/group_0773.py index efb01a7ca..3f7522e4c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0773.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0773.py @@ -17,18 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRepositoryRenamed(GitHubModel): - """repository renamed event""" +class WebhookRepositoryCreated(GitHubModel): + """repository created event""" - action: Literal["renamed"] = Field() - changes: WebhookRepositoryRenamedPropChanges = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,32 +50,6 @@ class WebhookRepositoryRenamed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryRenamedPropChanges(GitHubModel): - """WebhookRepositoryRenamedPropChanges""" +model_rebuild(WebhookRepositoryCreated) - repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookRepositoryRenamed) -model_rebuild(WebhookRepositoryRenamedPropChanges) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) - -__all__ = ( - "WebhookRepositoryRenamed", - "WebhookRepositoryRenamedPropChanges", - "WebhookRepositoryRenamedPropChangesPropRepository", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", -) +__all__ = ("WebhookRepositoryCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0774.py b/githubkit/versions/ghec_v2022_11_28/models/group_0774.py index d4e5a2682..8bb7a722e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0774.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0774.py @@ -17,18 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0121 import RepositoryRuleset -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRepositoryRulesetCreated(GitHubModel): - """repository ruleset created event""" +class WebhookRepositoryDeleted(GitHubModel): + """repository deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +43,13 @@ class WebhookRepositoryRulesetCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetCreated) +model_rebuild(WebhookRepositoryDeleted) -__all__ = ("WebhookRepositoryRulesetCreated",) +__all__ = ("WebhookRepositoryDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0775.py b/githubkit/versions/ghec_v2022_11_28/models/group_0775.py index 95b1cf3be..f04bcf05d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0775.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0775.py @@ -9,33 +9,39 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0121 import RepositoryRuleset -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRepositoryRulesetDeleted(GitHubModel): - """repository ruleset deleted event""" +class WebhookRepositoryDispatchSample(GitHubModel): + """repository_dispatch event""" - action: Literal["deleted"] = Field() + action: str = Field( + description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + branch: str = Field() + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( + Field( + description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, + installation: SimpleInstallation = Field( title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) @@ -44,18 +50,25 @@ class WebhookRepositoryRulesetDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetDeleted) +class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): + """WebhookRepositoryDispatchSamplePropClientPayload + + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ + + +model_rebuild(WebhookRepositoryDispatchSample) +model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) -__all__ = ("WebhookRepositoryRulesetDeleted",) +__all__ = ( + "WebhookRepositoryDispatchSample", + "WebhookRepositoryDispatchSamplePropClientPayload", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0776.py b/githubkit/versions/ghec_v2022_11_28/models/group_0776.py index d102e7c82..5834c4b82 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0776.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0776.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0121 import RepositoryRuleset -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0777 import WebhookRepositoryRulesetEditedPropChanges +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRepositoryRulesetEdited(GitHubModel): - """repository ruleset edited event""" +class WebhookRepositoryEdited(GitHubModel): + """repository edited event""" action: Literal["edited"] = Field() + changes: WebhookRepositoryEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,19 +44,64 @@ class WebhookRepositoryRulesetEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) - changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetEdited) +class WebhookRepositoryEditedPropChanges(GitHubModel): + """WebhookRepositoryEditedPropChanges""" + + default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( + Field(default=UNSET) + ) + description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( + default=UNSET + ) + homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( + default=UNSET + ) + topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) + + +class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + + from_: str = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDescription""" + + from_: Union[str, None] = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: Missing[Union[list[str], None]] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryEdited) +model_rebuild(WebhookRepositoryEditedPropChanges) +model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) +model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) +model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) +model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) -__all__ = ("WebhookRepositoryRulesetEdited",) +__all__ = ( + "WebhookRepositoryEdited", + "WebhookRepositoryEditedPropChanges", + "WebhookRepositoryEditedPropChangesPropDefaultBranch", + "WebhookRepositoryEditedPropChangesPropDescription", + "WebhookRepositoryEditedPropChangesPropHomepage", + "WebhookRepositoryEditedPropChangesPropTopics", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0777.py b/githubkit/versions/ghec_v2022_11_28/models/group_0777.py index bf1504bf6..81f76b35a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0777.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0777.py @@ -9,51 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0778 import WebhookRepositoryRulesetEditedPropChangesPropConditions -from .group_0780 import WebhookRepositoryRulesetEditedPropChangesPropRules +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryImport(GitHubModel): + """repository_import event""" - name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( - default=UNSET + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( - Field(default=UNSET) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( - Field(default=UNSET) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + status: Literal["success", "cancelled", "failure"] = Field() -class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryRulesetEditedPropChanges) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) +model_rebuild(WebhookRepositoryImport) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", - "WebhookRepositoryRulesetEditedPropChangesPropName", -) +__all__ = ("WebhookRepositoryImport",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0778.py b/githubkit/versions/ghec_v2022_11_28/models/group_0778.py index 88b38afd2..023cdf7b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0778.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0778.py @@ -9,28 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0077 import RepositoryRulesetConditions -from .group_0779 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, -) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - - added: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) - deleted: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) - updated: Missing[ - list[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] - ] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks + + +class WebhookRepositoryPrivatized(GitHubModel): + """repository privatized event""" + + action: Literal["privatized"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRepositoryPrivatized) + +__all__ = ("WebhookRepositoryPrivatized",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0779.py b/githubkit/versions/ghec_v2022_11_28/models/group_0779.py index f33aacc74..9a7759024 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0779.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0779.py @@ -9,113 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0077 import RepositoryRulesetConditions +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class WebhookRepositoryPublicized(GitHubModel): + """repository publicized event""" - condition: Missing[RepositoryRulesetConditions] = Field( + action: Literal["publicized"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType - ] = Field(default=UNSET) - target: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget - ] = Field(default=UNSET) - include: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude - ] = Field(default=UNSET) - exclude: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: Missing[list[str]] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: Missing[list[str]] = Field(default=UNSET, alias="from") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude -) +model_rebuild(WebhookRepositoryPublicized) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", -) +__all__ = ("WebhookRepositoryPublicized",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0780.py b/githubkit/versions/ghec_v2022_11_28/models/group_0780.py index e5ffa79b3..29593ee80 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0780.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0780.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,95 +17,66 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0087 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0088 import RepositoryRuleUpdate -from .group_0090 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0091 import RepositoryRuleMergeQueue -from .group_0093 import RepositoryRuleRequiredDeployments -from .group_0096 import RepositoryRulePullRequest -from .group_0098 import RepositoryRuleRequiredStatusChecks -from .group_0100 import RepositoryRuleCommitMessagePattern -from .group_0102 import RepositoryRuleCommitAuthorEmailPattern -from .group_0104 import RepositoryRuleCommitterEmailPattern -from .group_0106 import RepositoryRuleBranchNamePattern -from .group_0108 import RepositoryRuleTagNamePattern -from .group_0111 import RepositoryRuleWorkflows -from .group_0113 import RepositoryRuleCodeScanning -from .group_0115 import RepositoryRuleOneof18 -from .group_0781 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, -) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks + + +class WebhookRepositoryRenamed(GitHubModel): + """repository renamed event""" + + action: Literal["renamed"] = Field() + changes: WebhookRepositoryRenamedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookRepositoryRenamedPropChanges(GitHubModel): + """WebhookRepositoryRenamedPropChanges""" + + repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() -class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" - - added: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - deleted: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - updated: Missing[ - list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] - ] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) +class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepository""" + + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() + + +class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookRepositoryRenamed) +model_rebuild(WebhookRepositoryRenamedPropChanges) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) + +__all__ = ( + "WebhookRepositoryRenamed", + "WebhookRepositoryRenamedPropChanges", + "WebhookRepositoryRenamedPropChangesPropRepository", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0781.py b/githubkit/versions/ghec_v2022_11_28/models/group_0781.py index e23175af3..b5f616ac8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0781.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0781.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,127 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0087 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0088 import RepositoryRuleUpdate -from .group_0090 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0091 import RepositoryRuleMergeQueue -from .group_0093 import RepositoryRuleRequiredDeployments -from .group_0096 import RepositoryRulePullRequest -from .group_0098 import RepositoryRuleRequiredStatusChecks -from .group_0100 import RepositoryRuleCommitMessagePattern -from .group_0102 import RepositoryRuleCommitAuthorEmailPattern -from .group_0104 import RepositoryRuleCommitterEmailPattern -from .group_0106 import RepositoryRuleBranchNamePattern -from .group_0108 import RepositoryRuleTagNamePattern -from .group_0111 import RepositoryRuleWorkflows -from .group_0113 import RepositoryRuleCodeScanning -from .group_0115 import RepositoryRuleOneof18 - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - - rule: Missing[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration - ] = Field(default=UNSET) - rule_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType - ] = Field(default=UNSET) - pattern: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern -) - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", -) +from .group_0003 import SimpleUser +from .group_0128 import RepositoryRuleset +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks + + +class WebhookRepositoryRulesetCreated(GitHubModel): + """repository ruleset created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRepositoryRulesetCreated) + +__all__ = ("WebhookRepositoryRulesetCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0782.py b/githubkit/versions/ghec_v2022_11_28/models/group_0782.py index 7456f0d87..1c10b08d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0782.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0782.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0128 import RepositoryRuleset +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookRepositoryTransferred(GitHubModel): - """repository transferred event""" +class WebhookRepositoryRulesetDeleted(GitHubModel): + """repository ruleset deleted event""" - action: Literal["transferred"] = Field() - changes: WebhookRepositoryTransferredPropChanges = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,97 +44,18 @@ class WebhookRepositoryTransferred(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryTransferredPropChanges(GitHubModel): - """WebhookRepositoryTransferredPropChanges""" - - owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() - - -class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwner""" - - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( - alias="from" + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - - organization: Missing[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization - ] = Field(default=UNSET, title="Organization") - user: Missing[ - Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] - ] = Field(default=UNSET, title="User") - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( - GitHubModel -): - """Organization""" - - avatar_url: str = Field() - description: Union[str, None] = Field() - events_url: str = Field() - hooks_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - issues_url: str = Field() - login: str = Field() - members_url: str = Field() - node_id: str = Field() - public_members_url: str = Field() - repos_url: str = Field() - url: str = Field() - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryTransferred) -model_rebuild(WebhookRepositoryTransferredPropChanges) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) +model_rebuild(WebhookRepositoryRulesetDeleted) -__all__ = ( - "WebhookRepositoryTransferred", - "WebhookRepositoryTransferredPropChanges", - "WebhookRepositoryTransferredPropChangesPropOwner", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", -) +__all__ = ("WebhookRepositoryRulesetDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0783.py b/githubkit/versions/ghec_v2022_11_28/models/group_0783.py index 262b20d2c..c55b47791 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0783.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0783.py @@ -17,17 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0128 import RepositoryRuleset +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0784 import WebhookRepositoryRulesetEditedPropChanges -class WebhookRepositoryUnarchived(GitHubModel): - """repository unarchived event""" +class WebhookRepositoryRulesetEdited(GitHubModel): + """repository ruleset edited event""" - action: Literal["unarchived"] = Field() + action: Literal["edited"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +45,19 @@ class WebhookRepositoryUnarchived(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) + changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryUnarchived) +model_rebuild(WebhookRepositoryRulesetEdited) -__all__ = ("WebhookRepositoryUnarchived",) +__all__ = ("WebhookRepositoryRulesetEdited",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0784.py b/githubkit/versions/ghec_v2022_11_28/models/group_0784.py index 2de524681..3483dbb02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0784.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0784.py @@ -9,52 +9,51 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0491 import WebhooksAlert +from .group_0785 import WebhookRepositoryRulesetEditedPropChangesPropConditions +from .group_0787 import WebhookRepositoryRulesetEditedPropChangesPropRules -class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): - """repository_vulnerability_alert create event""" +class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["create"] = Field() - alert: WebhooksAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( + default=UNSET ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( + Field(default=UNSET) ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( + Field(default=UNSET) ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) +class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropName""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryRulesetEditedPropChanges) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) -__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", + "WebhookRepositoryRulesetEditedPropChangesPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0785.py b/githubkit/versions/ghec_v2022_11_28/models/group_0785.py index b8dc23ff9..3a232fe67 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0785.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0785.py @@ -9,113 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks - - -class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): - """repository_vulnerability_alert dismiss event""" - - action: Literal["dismiss"] = Field() - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) - dismiss_reason: str = Field() - dismissed_at: str = Field() - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None - ] = Field(title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["dismissed"] = Field() +from .group_0084 import RepositoryRulesetConditions +from .group_0786 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, +) -class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): - """User""" +class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + added: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) + deleted: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) + updated: Missing[ + list[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] + ] = Field(default=UNSET) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismiss", - "WebhookRepositoryVulnerabilityAlertDismissPropAlert", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0786.py b/githubkit/versions/ghec_v2022_11_28/models/group_0786.py index 945112554..ca0868e56 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0786.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0786.py @@ -9,52 +9,113 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0491 import WebhooksAlert +from .group_0084 import RepositoryRulesetConditions -class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): - """repository_vulnerability_alert reopen event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - action: Literal["reopen"] = Field() - alert: WebhooksAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + condition: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ + + condition_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType + ] = Field(default=UNSET) + target: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget + ] = Field(default=UNSET) + include: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude + ] = Field(default=UNSET) + exclude: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: Missing[list[str]] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: Missing[list[str]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude +) -__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0787.py b/githubkit/versions/ghec_v2022_11_28/models/group_0787.py index b0e74d4af..f38d97aa9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0787.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0787.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,102 +17,95 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks - - -class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): - """repository_vulnerability_alert resolve event""" - - action: Literal["resolve"] = Field() - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, None] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["fixed", "open"] = Field() - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - +from .group_0094 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0095 import RepositoryRuleUpdate +from .group_0097 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0098 import RepositoryRuleMergeQueue +from .group_0100 import RepositoryRuleRequiredDeployments +from .group_0103 import RepositoryRulePullRequest +from .group_0105 import RepositoryRuleRequiredStatusChecks +from .group_0107 import RepositoryRuleCommitMessagePattern +from .group_0109 import RepositoryRuleCommitAuthorEmailPattern +from .group_0111 import RepositoryRuleCommitterEmailPattern +from .group_0113 import RepositoryRuleBranchNamePattern +from .group_0115 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRuleCodeScanning +from .group_0122 import RepositoryRuleOneof18 +from .group_0788 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, +) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) -__all__ = ( - "WebhookRepositoryVulnerabilityAlertResolve", - "WebhookRepositoryVulnerabilityAlertResolvePropAlert", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", -) +class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + deleted: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + updated: Missing[ + list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] + ] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) + +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0788.py b/githubkit/versions/ghec_v2022_11_28/models/group_0788.py index cde6f859a..89882ca8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0788.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0788.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,43 +17,127 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0492 import SecretScanningAlertWebhook - - -class WebhookSecretScanningAlertCreated(GitHubModel): - """secret_scanning_alert created event""" - - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(WebhookSecretScanningAlertCreated) - -__all__ = ("WebhookSecretScanningAlertCreated",) +from .group_0094 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0095 import RepositoryRuleUpdate +from .group_0097 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0098 import RepositoryRuleMergeQueue +from .group_0100 import RepositoryRuleRequiredDeployments +from .group_0103 import RepositoryRulePullRequest +from .group_0105 import RepositoryRuleRequiredStatusChecks +from .group_0107 import RepositoryRuleCommitMessagePattern +from .group_0109 import RepositoryRuleCommitAuthorEmailPattern +from .group_0111 import RepositoryRuleCommitterEmailPattern +from .group_0113 import RepositoryRuleBranchNamePattern +from .group_0115 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRuleCodeScanning +from .group_0122 import RepositoryRuleOneof18 + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" + + rule: Missing[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration + ] = Field(default=UNSET) + rule_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType + ] = Field(default=UNSET) + pattern: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern +) + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0789.py b/githubkit/versions/ghec_v2022_11_28/models/group_0789.py index 2795e898d..9ec8f3911 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0789.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0789.py @@ -17,24 +17,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0492 import SecretScanningAlertWebhook +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookSecretScanningAlertLocationCreated(GitHubModel): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryTransferred(GitHubModel): + """repository transferred event""" - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["transferred"] = Field() + changes: WebhookRepositoryTransferredPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - location: SecretScanningLocation = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -47,267 +51,90 @@ class WebhookSecretScanningAlertLocationCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class SecretScanningLocation(GitHubModel): - """SecretScanningLocation""" - - type: Missing[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] = Field( - default=UNSET, - description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", - ) - details: Missing[ - Union[ - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, - ] - ] = Field(default=UNSET) - - -class SecretScanningLocationCommit(GitHubModel): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str = Field(description="The file path in the repository") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - blob_url: str = Field(description="The API URL to get the associated blob resource") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The API URL to get the associated commit resource" - ) - - -class SecretScanningLocationWikiCommit(GitHubModel): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str = Field(description="The file path of the wiki page") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - page_url: str = Field(description="The GitHub URL to get the associated wiki page") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The GitHub URL to get the associated wiki commit" - ) - - -class SecretScanningLocationIssueTitle(GitHubModel): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueBody(GitHubModel): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueComment(GitHubModel): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str = Field( - description="The API URL to get the issue comment where the secret was detected." - ) - - -class SecretScanningLocationDiscussionTitle(GitHubModel): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionBody(GitHubModel): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionComment(GitHubModel): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str = Field( - description="The API URL to get the discussion comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestTitle(GitHubModel): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestBody(GitHubModel): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestComment(GitHubModel): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str = Field( - description="The API URL to get the pull request comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReview(GitHubModel): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str = Field( - description="The API URL to get the pull request review where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReviewComment(GitHubModel): - """SecretScanningLocationPullRequestReviewComment - - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. - """ - - pull_request_review_comment_url: str = Field( - description="The API URL to get the pull request review comment where the secret was detected." - ) - - -model_rebuild(WebhookSecretScanningAlertLocationCreated) -model_rebuild(SecretScanningLocation) -model_rebuild(SecretScanningLocationCommit) -model_rebuild(SecretScanningLocationWikiCommit) -model_rebuild(SecretScanningLocationIssueTitle) -model_rebuild(SecretScanningLocationIssueBody) -model_rebuild(SecretScanningLocationIssueComment) -model_rebuild(SecretScanningLocationDiscussionTitle) -model_rebuild(SecretScanningLocationDiscussionBody) -model_rebuild(SecretScanningLocationDiscussionComment) -model_rebuild(SecretScanningLocationPullRequestTitle) -model_rebuild(SecretScanningLocationPullRequestBody) -model_rebuild(SecretScanningLocationPullRequestComment) -model_rebuild(SecretScanningLocationPullRequestReview) -model_rebuild(SecretScanningLocationPullRequestReviewComment) +class WebhookRepositoryTransferredPropChanges(GitHubModel): + """WebhookRepositoryTransferredPropChanges""" + + owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() + + +class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwner""" + + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( + alias="from" + ) + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + + organization: Missing[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization + ] = Field(default=UNSET, title="Organization") + user: Missing[ + Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] + ] = Field(default=UNSET, title="User") + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( + GitHubModel +): + """Organization""" + + avatar_url: str = Field() + description: Union[str, None] = Field() + events_url: str = Field() + hooks_url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + issues_url: str = Field() + login: str = Field() + members_url: str = Field() + node_id: str = Field() + public_members_url: str = Field() + repos_url: str = Field() + url: str = Field() + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryTransferred) +model_rebuild(WebhookRepositoryTransferredPropChanges) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) __all__ = ( - "SecretScanningLocation", - "SecretScanningLocationCommit", - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationIssueComment", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestComment", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationPullRequestReviewComment", - "SecretScanningLocationPullRequestTitle", - "SecretScanningLocationWikiCommit", - "WebhookSecretScanningAlertLocationCreated", + "WebhookRepositoryTransferred", + "WebhookRepositoryTransferredPropChanges", + "WebhookRepositoryTransferredPropChangesPropOwner", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0790.py b/githubkit/versions/ghec_v2022_11_28/models/group_0790.py index 875448bf5..d189498a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0790.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0790.py @@ -9,19 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryUnarchived(GitHubModel): + """repository unarchived event""" - payload: str = Field( - description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." + action: Literal["unarchived"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) +model_rebuild(WebhookRepositoryUnarchived) -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) +__all__ = ("WebhookRepositoryUnarchived",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0791.py b/githubkit/versions/ghec_v2022_11_28/models/group_0791.py index 6d3332dc6..bd0273c70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0791.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0791.py @@ -17,19 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0492 import SecretScanningAlertWebhook +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0498 import WebhooksAlert -class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): - """secret_scanning_alert publicly leaked event""" +class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): + """repository_vulnerability_alert create event""" - action: Literal["publicly_leaked"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["create"] = Field() + alert: WebhooksAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +52,9 @@ class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertPubliclyLeaked) +model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) -__all__ = ("WebhookSecretScanningAlertPubliclyLeaked",) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0792.py b/githubkit/versions/ghec_v2022_11_28/models/group_0792.py index 81c5b359c..595778c7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0792.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0792.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,19 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0492 import SecretScanningAlertWebhook +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookSecretScanningAlertReopened(GitHubModel): - """secret_scanning_alert reopened event""" +class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): + """repository_vulnerability_alert dismiss event""" - action: Literal["reopened"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["dismiss"] = Field() + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +52,70 @@ class WebhookSecretScanningAlertReopened(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) + dismiss_reason: str = Field() + dismissed_at: str = Field() + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None + ] = Field(title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["dismissed"] = Field() + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSecretScanningAlertReopened) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) -__all__ = ("WebhookSecretScanningAlertReopened",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismiss", + "WebhookRepositoryVulnerabilityAlertDismissPropAlert", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0793.py b/githubkit/versions/ghec_v2022_11_28/models/group_0793.py index 4ede0181b..acc1a73a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0793.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0793.py @@ -17,19 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0492 import SecretScanningAlertWebhook +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0498 import WebhooksAlert -class WebhookSecretScanningAlertResolved(GitHubModel): - """secret_scanning_alert resolved event""" +class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): + """repository_vulnerability_alert reopen event""" - action: Literal["resolved"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["reopen"] = Field() + alert: WebhooksAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +52,9 @@ class WebhookSecretScanningAlertResolved(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertResolved) +model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) -__all__ = ("WebhookSecretScanningAlertResolved",) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0794.py b/githubkit/versions/ghec_v2022_11_28/models/group_0794.py index 35d5d0030..bab6e9d4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0794.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0794.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,19 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0492 import SecretScanningAlertWebhook +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookSecretScanningAlertValidated(GitHubModel): - """secret_scanning_alert validated event""" +class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): + """repository_vulnerability_alert resolve event""" - action: Literal["validated"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["resolve"] = Field() + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +52,68 @@ class WebhookSecretScanningAlertValidated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[ + Union[WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, None] + ] = Field(default=UNSET, title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["fixed", "open"] = Field() + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSecretScanningAlertValidated) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) -__all__ = ("WebhookSecretScanningAlertValidated",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertResolve", + "WebhookRepositoryVulnerabilityAlertResolvePropAlert", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0795.py b/githubkit/versions/ghec_v2022_11_28/models/group_0795.py index 378f19f47..fa13bbdcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0795.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0795.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,48 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0499 import SecretScanningAlertWebhook -class WebhookSecretScanningScanCompleted(GitHubModel): - """secret_scanning_scan completed event""" +class WebhookSecretScanningAlertCreated(GitHubModel): + """secret_scanning_alert created event""" - action: Literal["completed"] = Field() - type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] = ( - Field(description="What type of scan was completed") - ) - source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] = Field( - description="What type of content was scanned" - ) - started_at: datetime = Field( - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - completed_at: datetime = Field( - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - secret_types: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="List of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates", - ) - custom_pattern_name: Missing[Union[str, None]] = Field( - default=UNSET, - description="If the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated", - ) - custom_pattern_scope: Missing[ - Union[None, Literal["repository", "organization", "enterprise"]] - ] = Field( - default=UNSET, - description="If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) + action: Literal["created"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -75,11 +45,15 @@ class WebhookSecretScanningScanCompleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecretScanningScanCompleted) +model_rebuild(WebhookSecretScanningAlertCreated) -__all__ = ("WebhookSecretScanningScanCompleted",) +__all__ = ("WebhookSecretScanningAlertCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0796.py b/githubkit/versions/ghec_v2022_11_28/models/group_0796.py index a14c3a181..5e2279856 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0796.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0796.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,46 +17,297 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0493 import WebhooksSecurityAdvisory +from .group_0003 import SimpleUser +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0499 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryPublished(GitHubModel): - """security_advisory published event""" +class WebhookSecretScanningAlertLocationCreated(GitHubModel): + """Secret Scanning Alert Location Created Event""" - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["created"] = Field() + alert: SecretScanningAlertWebhook = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + location: SecretScanningLocation = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhooksSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class SecretScanningLocation(GitHubModel): + """SecretScanningLocation""" + + type: Missing[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] + ] = Field( + default=UNSET, + description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", + ) + details: Missing[ + Union[ + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + + +class SecretScanningLocationCommit(GitHubModel): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str = Field(description="The file path in the repository") + start_line: float = Field( + description="Line number at which the secret starts in the file" + ) + end_line: float = Field( + description="Line number at which the secret ends in the file" + ) + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" + ) + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" + ) + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + blob_url: str = Field(description="The API URL to get the associated blob resource") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The API URL to get the associated commit resource" + ) + + +class SecretScanningLocationWikiCommit(GitHubModel): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str = Field(description="The file path of the wiki page") + start_line: float = Field( + description="Line number at which the secret starts in the file" + ) + end_line: float = Field( + description="Line number at which the secret ends in the file" + ) + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." + ) + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." + ) + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + page_url: str = Field(description="The GitHub URL to get the associated wiki page") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The GitHub URL to get the associated wiki commit" + ) + + +class SecretScanningLocationIssueTitle(GitHubModel): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueBody(GitHubModel): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueComment(GitHubModel): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str = Field( + description="The API URL to get the issue comment where the secret was detected." ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + + +class SecretScanningLocationDiscussionTitle(GitHubModel): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) + + +class SecretScanningLocationDiscussionBody(GitHubModel): + """SecretScanningLocationDiscussionBody + + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + + discussion_body_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) + + +class SecretScanningLocationDiscussionComment(GitHubModel): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str = Field( + description="The API URL to get the discussion comment where the secret was detected." + ) + + +class SecretScanningLocationPullRequestTitle(GitHubModel): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) + + +class SecretScanningLocationPullRequestBody(GitHubModel): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) + + +class SecretScanningLocationPullRequestComment(GitHubModel): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str = Field( + description="The API URL to get the pull request comment where the secret was detected." + ) + + +class SecretScanningLocationPullRequestReview(GitHubModel): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str = Field( + description="The API URL to get the pull request review where the secret was detected." + ) + + +class SecretScanningLocationPullRequestReviewComment(GitHubModel): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str = Field( + description="The API URL to get the pull request review comment where the secret was detected." ) -model_rebuild(WebhookSecurityAdvisoryPublished) +model_rebuild(WebhookSecretScanningAlertLocationCreated) +model_rebuild(SecretScanningLocation) +model_rebuild(SecretScanningLocationCommit) +model_rebuild(SecretScanningLocationWikiCommit) +model_rebuild(SecretScanningLocationIssueTitle) +model_rebuild(SecretScanningLocationIssueBody) +model_rebuild(SecretScanningLocationIssueComment) +model_rebuild(SecretScanningLocationDiscussionTitle) +model_rebuild(SecretScanningLocationDiscussionBody) +model_rebuild(SecretScanningLocationDiscussionComment) +model_rebuild(SecretScanningLocationPullRequestTitle) +model_rebuild(SecretScanningLocationPullRequestBody) +model_rebuild(SecretScanningLocationPullRequestComment) +model_rebuild(SecretScanningLocationPullRequestReview) +model_rebuild(SecretScanningLocationPullRequestReviewComment) -__all__ = ("WebhookSecurityAdvisoryPublished",) +__all__ = ( + "SecretScanningLocation", + "SecretScanningLocationCommit", + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationIssueBody", + "SecretScanningLocationIssueComment", + "SecretScanningLocationIssueTitle", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestComment", + "SecretScanningLocationPullRequestReview", + "SecretScanningLocationPullRequestReviewComment", + "SecretScanningLocationPullRequestTitle", + "SecretScanningLocationWikiCommit", + "WebhookSecretScanningAlertLocationCreated", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0797.py b/githubkit/versions/ghec_v2022_11_28/models/group_0797.py index 411fd6a22..875448bf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0797.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0797.py @@ -9,54 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0493 import WebhooksSecurityAdvisory -class WebhookSecurityAdvisoryUpdated(GitHubModel): - """security_advisory updated event""" +class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): + """Secret Scanning Alert Location Created Event""" - action: Literal["updated"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - security_advisory: WebhooksSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + payload: str = Field( + description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookSecurityAdvisoryUpdated) +model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) -__all__ = ("WebhookSecurityAdvisoryUpdated",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0798.py b/githubkit/versions/ghec_v2022_11_28/models/group_0798.py index ef806a5e1..c286a0c86 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0798.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0798.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0799 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0499 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryWithdrawn(GitHubModel): - """security_advisory withdrawn event""" +class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): + """secret_scanning_alert publicly leaked event""" - action: Literal["withdrawn"] = Field() + action: Literal["publicly_leaked"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +45,15 @@ class WebhookSecurityAdvisoryWithdrawn(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAdvisoryWithdrawn) +model_rebuild(WebhookSecretScanningAlertPubliclyLeaked) -__all__ = ("WebhookSecurityAdvisoryWithdrawn",) +__all__ = ("WebhookSecretScanningAlertPubliclyLeaked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0799.py b/githubkit/versions/ghec_v2022_11_28/models/group_0799.py index a20e03470..63842ad73 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0799.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0799.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,127 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0499 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +class WebhookSecretScanningAlertReopened(GitHubModel): + """secret_scanning_alert reopened event""" - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( - Field() + action: Literal["reopened"] = Field() + alert: SecretScanningAlertWebhook = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - description: str = Field() - ghsa_id: str = Field() - identifiers: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems - ] = Field() - published_at: str = Field() - references: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems - ] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems - ] = Field() - withdrawn_at: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, - None, - ] = Field() - package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str = Field() - name: str = Field() -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems -) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion -) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage -) +model_rebuild(WebhookSecretScanningAlertReopened) -__all__ = ( - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", -) +__all__ = ("WebhookSecretScanningAlertReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0800.py b/githubkit/versions/ghec_v2022_11_28/models/group_0800.py index 6e84bbeb7..034a1b3d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0800.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0800.py @@ -9,24 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0193 import FullRepository -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0801 import WebhookSecurityAndAnalysisPropChanges +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0499 import SecretScanningAlertWebhook -class WebhookSecurityAndAnalysis(GitHubModel): - """security_and_analysis event""" +class WebhookSecretScanningAlertResolved(GitHubModel): + """secret_scanning_alert resolved event""" - changes: WebhookSecurityAndAnalysisPropChanges = Field() + action: Literal["resolved"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,14 +45,15 @@ class WebhookSecurityAndAnalysis(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAndAnalysis) +model_rebuild(WebhookSecretScanningAlertResolved) -__all__ = ("WebhookSecurityAndAnalysis",) +__all__ = ("WebhookSecretScanningAlertResolved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0801.py b/githubkit/versions/ghec_v2022_11_28/models/group_0801.py index 5c17aaca1..909b686fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0801.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0801.py @@ -9,23 +9,51 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0802 import WebhookSecurityAndAnalysisPropChangesPropFrom +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0499 import SecretScanningAlertWebhook -class WebhookSecurityAndAnalysisPropChanges(GitHubModel): - """WebhookSecurityAndAnalysisPropChanges""" +class WebhookSecretScanningAlertValidated(GitHubModel): + """secret_scanning_alert validated event""" - from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( - default=UNSET, alias="from" + action: Literal["validated"] = Field() + alert: SecretScanningAlertWebhook = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAndAnalysisPropChanges) +model_rebuild(WebhookSecretScanningAlertValidated) -__all__ = ("WebhookSecurityAndAnalysisPropChanges",) +__all__ = ("WebhookSecretScanningAlertValidated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0802.py b/githubkit/versions/ghec_v2022_11_28/models/group_0802.py index 28dd4a6e0..2880281f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0802.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0802.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,17 +18,68 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0146 import SecurityAndAnalysis +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSecretScanningScanCompleted(GitHubModel): + """secret_scanning_scan completed event""" - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + action: Literal["completed"] = Field() + type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] = ( + Field(description="What type of scan was completed") + ) + source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] = Field( + description="What type of content was scanned" + ) + started_at: datetime = Field( + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + completed_at: datetime = Field( + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + secret_types: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="List of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates", + ) + custom_pattern_name: Missing[Union[str, None]] = Field( + default=UNSET, + description="If the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated", + ) + custom_pattern_scope: Missing[ + Union[None, Literal["repository", "organization", "enterprise"]] + ] = Field( + default=UNSET, + description="If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) +model_rebuild(WebhookSecretScanningScanCompleted) -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) +__all__ = ("WebhookSecretScanningScanCompleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0803.py b/githubkit/versions/ghec_v2022_11_28/models/group_0803.py index 14a10118d..ff30d2a39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0803.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0803.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0494 import WebhooksSponsorship +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0500 import WebhooksSecurityAdvisory -class WebhookSponsorshipCancelled(GitHubModel): - """sponsorship cancelled event""" +class WebhookSecurityAdvisoryPublished(GitHubModel): + """security_advisory published event""" - action: Literal["cancelled"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,10 +49,14 @@ class WebhookSponsorshipCancelled(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() + security_advisory: WebhooksSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookSponsorshipCancelled) +model_rebuild(WebhookSecurityAdvisoryPublished) -__all__ = ("WebhookSponsorshipCancelled",) +__all__ = ("WebhookSecurityAdvisoryPublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0804.py b/githubkit/versions/ghec_v2022_11_28/models/group_0804.py index 26ab09c39..9df957db3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0804.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0804.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0494 import WebhooksSponsorship +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0500 import WebhooksSecurityAdvisory -class WebhookSponsorshipCreated(GitHubModel): - """sponsorship created event""" +class WebhookSecurityAdvisoryUpdated(GitHubModel): + """security_advisory updated event""" - action: Literal["created"] = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,10 +49,14 @@ class WebhookSponsorshipCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() + security_advisory: WebhooksSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookSponsorshipCreated) +model_rebuild(WebhookSecurityAdvisoryUpdated) -__all__ = ("WebhookSponsorshipCreated",) +__all__ = ("WebhookSecurityAdvisoryUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0805.py b/githubkit/versions/ghec_v2022_11_28/models/group_0805.py index 07f7b0c1c..6d7190122 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0805.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0805.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0494 import WebhooksSponsorship +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0806 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory -class WebhookSponsorshipEdited(GitHubModel): - """sponsorship edited event""" +class WebhookSecurityAdvisoryWithdrawn(GitHubModel): + """security_advisory withdrawn event""" - action: Literal["edited"] = Field() - changes: WebhookSponsorshipEditedPropChanges = Field() + action: Literal["withdrawn"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,33 +49,14 @@ class WebhookSponsorshipEdited(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() - - -class WebhookSponsorshipEditedPropChanges(GitHubModel): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( - default=UNSET + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." ) - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str = Field( - alias="from", - description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSponsorshipEdited) -model_rebuild(WebhookSponsorshipEditedPropChanges) -model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) +model_rebuild(WebhookSecurityAdvisoryWithdrawn) -__all__ = ( - "WebhookSponsorshipEdited", - "WebhookSponsorshipEditedPropChanges", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", -) +__all__ = ("WebhookSecurityAdvisoryWithdrawn",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0806.py b/githubkit/versions/ghec_v2022_11_28/models/group_0806.py index 8a4aee0d3..a20e03470 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0806.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0806.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,46 +17,127 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0494 import WebhooksSponsorship +from .group_0001 import CvssSeverities -class WebhookSponsorshipPendingCancellation(GitHubModel): - """sponsorship pending_cancellation event""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - action: Literal["pending_cancellation"] = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( + Field() ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() + description: str = Field() + ghsa_id: str = Field() + identifiers: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems + ] = Field() + published_at: str = Field() + references: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems + ] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems + ] = Field() + withdrawn_at: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, + None, + ] = Field() + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str = Field() + name: str = Field() -model_rebuild(WebhookSponsorshipPendingCancellation) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems +) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion +) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage +) -__all__ = ("WebhookSponsorshipPendingCancellation",) +__all__ = ( + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0807.py b/githubkit/versions/ghec_v2022_11_28/models/group_0807.py index a1d00e729..817ea6e8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0807.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0807.py @@ -9,32 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0494 import WebhooksSponsorship -from .group_0495 import WebhooksChanges8 +from .group_0003 import SimpleUser +from .group_0200 import FullRepository +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0808 import WebhookSecurityAndAnalysisPropChanges -class WebhookSponsorshipPendingTierChange(GitHubModel): - """sponsorship pending_tier_change event""" +class WebhookSecurityAndAnalysis(GitHubModel): + """security_and_analysis event""" - action: Literal["pending_tier_change"] = Field() - changes: WebhooksChanges8 = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) + changes: WebhookSecurityAndAnalysisPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,15 +42,14 @@ class WebhookSponsorshipPendingTierChange(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingTierChange) +model_rebuild(WebhookSecurityAndAnalysis) -__all__ = ("WebhookSponsorshipPendingTierChange",) +__all__ = ("WebhookSecurityAndAnalysis",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0808.py b/githubkit/versions/ghec_v2022_11_28/models/group_0808.py index c96a2f994..05492a575 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0808.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0808.py @@ -9,52 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0494 import WebhooksSponsorship -from .group_0495 import WebhooksChanges8 +from .group_0809 import WebhookSecurityAndAnalysisPropChangesPropFrom -class WebhookSponsorshipTierChanged(GitHubModel): - """sponsorship tier_changed event""" +class WebhookSecurityAndAnalysisPropChanges(GitHubModel): + """WebhookSecurityAndAnalysisPropChanges""" - action: Literal["tier_changed"] = Field() - changes: WebhooksChanges8 = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( + default=UNSET, alias="from" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipTierChanged) +model_rebuild(WebhookSecurityAndAnalysisPropChanges) -__all__ = ("WebhookSponsorshipTierChanged",) +__all__ = ("WebhookSecurityAndAnalysisPropChanges",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0809.py b/githubkit/versions/ghec_v2022_11_28/models/group_0809.py index 9fd21373d..4b12f5335 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0809.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0809.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,42 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0153 import SecurityAndAnalysis -class WebhookStarCreated(GitHubModel): - """star created event""" +class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - starred_at: Union[str, None] = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET ) -model_rebuild(WebhookStarCreated) +model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) -__all__ = ("WebhookStarCreated",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0810.py b/githubkit/versions/ghec_v2022_11_28/models/group_0810.py index 9e2ccd1ca..83d32c53d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0810.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0810.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0501 import WebhooksSponsorship -class WebhookStarDeleted(GitHubModel): - """star deleted event""" +class WebhookSponsorshipCancelled(GitHubModel): + """sponsorship cancelled event""" - action: Literal["deleted"] = Field() + action: Literal["cancelled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,16 +44,15 @@ class WebhookStarDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - starred_at: None = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." - ) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStarDeleted) +model_rebuild(WebhookSponsorshipCancelled) -__all__ = ("WebhookStarDeleted",) +__all__ = ("WebhookSponsorshipCancelled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0811.py b/githubkit/versions/ghec_v2022_11_28/models/group_0811.py index 57ce4c81f..a6ce20f2c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0811.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0811.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,234 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0501 import WebhooksSponsorship -class WebhookStatus(GitHubModel): - """status event""" +class WebhookSponsorshipCreated(GitHubModel): + """sponsorship created event""" - avatar_url: Missing[Union[str, None]] = Field(default=UNSET) - branches: list[WebhookStatusPropBranchesItems] = Field( - description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." - ) - commit: WebhookStatusPropCommit = Field() - context: str = Field() - created_at: str = Field() - description: Union[str, None] = Field( - description="The optional human-readable description added to the status." - ) + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - id: int = Field(description="The unique identifier of the status.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - name: str = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sha: str = Field(description="The Commit SHA.") - state: Literal["pending", "success", "failure", "error"] = Field( - description="The new state. Can be `pending`, `success`, `failure`, or `error`." - ) - target_url: Union[str, None] = Field( - description="The optional link added to the status." - ) - updated_at: str = Field() - - -class WebhookStatusPropBranchesItems(GitHubModel): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommit = Field() - name: str = Field() - protected: bool = Field() - - -class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] = Field() - url: Union[str, None] = Field() - - -class WebhookStatusPropCommit(GitHubModel): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthor, None] = Field(title="User") - comments_url: str = Field() - commit: WebhookStatusPropCommitPropCommit = Field() - committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") - html_url: str = Field() - node_id: str = Field() - parents: list[WebhookStatusPropCommitPropParentsItems] = Field() - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitter(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropParentsItems(GitHubModel): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str = Field() - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropCommit(GitHubModel): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthor = Field() - comment_count: int = Field() - committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() - message: str = Field() - tree: WebhookStatusPropCommitPropCommitPropTree = Field() - url: str = Field() - verification: WebhookStatusPropCommitPropCommitPropVerification = Field() - - -class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime = Field() - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime = Field() - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropCommitPropVerification(GitHubModel): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] = Field() - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] = Field() - signature: Union[str, None] = Field() - verified: bool = Field() - verified_at: Missing[Union[str, None]] = Field(default=UNSET) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatus) -model_rebuild(WebhookStatusPropBranchesItems) -model_rebuild(WebhookStatusPropBranchesItemsPropCommit) -model_rebuild(WebhookStatusPropCommit) -model_rebuild(WebhookStatusPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropParentsItems) -model_rebuild(WebhookStatusPropCommitPropCommit) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropCommitPropTree) -model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) +model_rebuild(WebhookSponsorshipCreated) -__all__ = ( - "WebhookStatus", - "WebhookStatusPropBranchesItems", - "WebhookStatusPropBranchesItemsPropCommit", - "WebhookStatusPropCommit", - "WebhookStatusPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommit", - "WebhookStatusPropCommitPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitPropCommitter", - "WebhookStatusPropCommitPropCommitPropTree", - "WebhookStatusPropCommitPropCommitPropVerification", - "WebhookStatusPropCommitPropCommitter", - "WebhookStatusPropCommitPropParentsItems", -) +__all__ = ("WebhookSponsorshipCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0812.py b/githubkit/versions/ghec_v2022_11_28/models/group_0812.py index 70880c2d6..5066a7369 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0812.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0812.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,19 +17,66 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0501 import WebhooksSponsorship -class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipEdited(GitHubModel): + """sponsorship edited event""" - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + action: Literal["edited"] = Field() + changes: WebhookSponsorshipEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) +class WebhookSponsorshipEditedPropChanges(GitHubModel): + """WebhookSponsorshipEditedPropChanges""" -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) + privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( + default=UNSET + ) + + +class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" + + from_: str = Field( + alias="from", + description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", + ) + + +model_rebuild(WebhookSponsorshipEdited) +model_rebuild(WebhookSponsorshipEditedPropChanges) +model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) + +__all__ = ( + "WebhookSponsorshipEdited", + "WebhookSponsorshipEditedPropChanges", + "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0813.py b/githubkit/versions/ghec_v2022_11_28/models/group_0813.py index edd98c4e3..9220a81ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0813.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0813.py @@ -9,21 +9,54 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0501 import WebhooksSponsorship + + +class WebhookSponsorshipPendingCancellation(GitHubModel): + """sponsorship pending_cancellation event""" + + action: Literal["pending_cancellation"] = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sponsorship: WebhooksSponsorship = Field() + + +model_rebuild(WebhookSponsorshipPendingCancellation) + +__all__ = ("WebhookSponsorshipPendingCancellation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0814.py b/githubkit/versions/ghec_v2022_11_28/models/group_0814.py index 696b079fe..6513b0144 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0814.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0814.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,19 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0501 import WebhooksSponsorship +from .group_0502 import WebhooksChanges8 -class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipPendingTierChange(GitHubModel): + """sponsorship pending_tier_change event""" - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + action: Literal["pending_tier_change"] = Field() + changes: WebhooksChanges8 = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) +model_rebuild(WebhookSponsorshipPendingTierChange) -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) +__all__ = ("WebhookSponsorshipPendingTierChange",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0815.py b/githubkit/versions/ghec_v2022_11_28/models/group_0815.py index 74f78d3d5..9a155291b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0815.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0815.py @@ -9,21 +9,52 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0501 import WebhooksSponsorship +from .group_0502 import WebhooksChanges8 + + +class WebhookSponsorshipTierChanged(GitHubModel): + """sponsorship tier_changed event""" + + action: Literal["tier_changed"] = Field() + changes: WebhooksChanges8 = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sponsorship: WebhooksSponsorship = Field() + + +model_rebuild(WebhookSponsorshipTierChanged) + +__all__ = ("WebhookSponsorshipTierChanged",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0816.py b/githubkit/versions/ghec_v2022_11_28/models/group_0816.py index 100a72300..6dcbe5769 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0816.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0816.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,30 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0019 import Repository -from .group_0131 import Issue -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookSubIssuesParentIssueAdded(GitHubModel): - """parent issue added event""" +class WebhookStarCreated(GitHubModel): + """star created event""" - action: Literal["parent_issue_added"] = Field() - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - parent_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." - ) - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,16 +43,16 @@ class WebhookSubIssuesParentIssueAdded(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + starred_at: Union[str, None] = Field( + description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." ) -model_rebuild(WebhookSubIssuesParentIssueAdded) +model_rebuild(WebhookStarCreated) -__all__ = ("WebhookSubIssuesParentIssueAdded",) +__all__ = ("WebhookStarCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0817.py b/githubkit/versions/ghec_v2022_11_28/models/group_0817.py index b269550f5..60988e2e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0817.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0817.py @@ -17,30 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0019 import Repository -from .group_0131 import Issue -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookSubIssuesParentIssueRemoved(GitHubModel): - """parent issue removed event""" +class WebhookStarDeleted(GitHubModel): + """star deleted event""" - action: Literal["parent_issue_removed"] = Field() - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - parent_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." - ) - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,16 +43,16 @@ class WebhookSubIssuesParentIssueRemoved(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + starred_at: None = Field( + description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." ) -model_rebuild(WebhookSubIssuesParentIssueRemoved) +model_rebuild(WebhookStarDeleted) -__all__ = ("WebhookSubIssuesParentIssueRemoved",) +__all__ = ("WebhookStarDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0818.py b/githubkit/versions/ghec_v2022_11_28/models/group_0818.py index 4ab57670f..a9c29a2bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0818.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0818.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,51 +18,234 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0019 import Repository -from .group_0131 import Issue -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookSubIssuesSubIssueAdded(GitHubModel): - """sub-issue added event""" +class WebhookStatus(GitHubModel): + """status event""" - action: Literal["sub_issue_added"] = Field() - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + avatar_url: Missing[Union[str, None]] = Field(default=UNSET) + branches: list[WebhookStatusPropBranchesItems] = Field( + description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." ) - sub_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." + commit: WebhookStatusPropCommit = Field() + context: str = Field() + created_at: str = Field() + description: Union[str, None] = Field( + description="The optional human-readable description added to the status." ) - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) + id: int = Field(description="The unique identifier of the status.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + name: str = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sha: str = Field(description="The Commit SHA.") + state: Literal["pending", "success", "failure", "error"] = Field( + description="The new state. Can be `pending`, `success`, `failure`, or `error`." + ) + target_url: Union[str, None] = Field( + description="The optional link added to the status." ) + updated_at: str = Field() + + +class WebhookStatusPropBranchesItems(GitHubModel): + """WebhookStatusPropBranchesItems""" + + commit: WebhookStatusPropBranchesItemsPropCommit = Field() + name: str = Field() + protected: bool = Field() + + +class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): + """WebhookStatusPropBranchesItemsPropCommit""" + + sha: Union[str, None] = Field() + url: Union[str, None] = Field() + + +class WebhookStatusPropCommit(GitHubModel): + """WebhookStatusPropCommit""" + + author: Union[WebhookStatusPropCommitPropAuthor, None] = Field(title="User") + comments_url: str = Field() + commit: WebhookStatusPropCommitPropCommit = Field() + committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") + html_url: str = Field() + node_id: str = Field() + parents: list[WebhookStatusPropCommitPropParentsItems] = Field() + sha: str = Field() + url: str = Field() + + +class WebhookStatusPropCommitPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropCommitter(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropParentsItems(GitHubModel): + """WebhookStatusPropCommitPropParentsItems""" + + html_url: str = Field() + sha: str = Field() + url: str = Field() + + +class WebhookStatusPropCommitPropCommit(GitHubModel): + """WebhookStatusPropCommitPropCommit""" + + author: WebhookStatusPropCommitPropCommitPropAuthor = Field() + comment_count: int = Field() + committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() + message: str = Field() + tree: WebhookStatusPropCommitPropCommitPropTree = Field() + url: str = Field() + verification: WebhookStatusPropCommitPropCommitPropVerification = Field() + + +class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthor""" + + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitter""" + + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): + """WebhookStatusPropCommitPropCommitPropTree""" + + sha: str = Field() + url: str = Field() + + +class WebhookStatusPropCommitPropCommitPropVerification(GitHubModel): + """WebhookStatusPropCommitPropCommitPropVerification""" + + payload: Union[str, None] = Field() + reason: Literal[ + "expired_key", + "not_signing_key", + "gpgverify_error", + "gpgverify_unavailable", + "unsigned", + "unknown_signature_type", + "no_user", + "unverified_email", + "bad_email", + "unknown_key", + "malformed_signature", + "invalid", + "valid", + "bad_cert", + "ocsp_pending", + ] = Field() + signature: Union[str, None] = Field() + verified: bool = Field() + verified_at: Union[str, None] = Field() -model_rebuild(WebhookSubIssuesSubIssueAdded) +model_rebuild(WebhookStatus) +model_rebuild(WebhookStatusPropBranchesItems) +model_rebuild(WebhookStatusPropBranchesItemsPropCommit) +model_rebuild(WebhookStatusPropCommit) +model_rebuild(WebhookStatusPropCommitPropAuthor) +model_rebuild(WebhookStatusPropCommitPropCommitter) +model_rebuild(WebhookStatusPropCommitPropParentsItems) +model_rebuild(WebhookStatusPropCommitPropCommit) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) +model_rebuild(WebhookStatusPropCommitPropCommitPropTree) +model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) -__all__ = ("WebhookSubIssuesSubIssueAdded",) +__all__ = ( + "WebhookStatus", + "WebhookStatusPropBranchesItems", + "WebhookStatusPropBranchesItemsPropCommit", + "WebhookStatusPropCommit", + "WebhookStatusPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommit", + "WebhookStatusPropCommitPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitPropCommitter", + "WebhookStatusPropCommitPropCommitPropTree", + "WebhookStatusPropCommitPropCommitPropVerification", + "WebhookStatusPropCommitPropCommitter", + "WebhookStatusPropCommitPropParentsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0819.py b/githubkit/versions/ghec_v2022_11_28/models/group_0819.py index a0af16dcd..70880c2d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0819.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0819.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,51 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0019 import Repository -from .group_0131 import Issue -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): + """Committer -class WebhookSubIssuesSubIssueRemoved(GitHubModel): - """sub-issue removed event""" + Metaproperties for Git author/committer information. + """ - action: Literal["sub_issue_removed"] = Field() - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - sub_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." - ) - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSubIssuesSubIssueRemoved) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) -__all__ = ("WebhookSubIssuesSubIssueRemoved",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0820.py b/githubkit/versions/ghec_v2022_11_28/models/group_0820.py index e4a8489db..edd98c4e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0820.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0820.py @@ -15,43 +15,15 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0496 import WebhooksTeam1 - - -class WebhookTeamAdd(GitHubModel): - """team_add event""" - - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -model_rebuild(WebhookTeamAdd) - -__all__ = ("WebhookTeamAdd",) + +class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" + + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) + +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0821.py b/githubkit/versions/ghec_v2022_11_28/models/group_0821.py index 690542136..696b079fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0821.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0821.py @@ -10,249 +10,27 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0496 import WebhooksTeam1 +class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): + """Committer -class WebhookTeamAddedToRepository(GitHubModel): - """team added_to_repository event""" - - action: Literal["added_to_repository"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. + Metaproperties for Git author/committer information. """ - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookTeamAddedToRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) -__all__ = ( - "WebhookTeamAddedToRepository", - "WebhookTeamAddedToRepositoryPropRepository", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0822.py b/githubkit/versions/ghec_v2022_11_28/models/group_0822.py index d463d4924..74f78d3d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0822.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0822.py @@ -9,246 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0496 import WebhooksTeam1 - - -class WebhookTeamCreated(GitHubModel): - """team created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamCreatedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamCreatedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - -class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamCreatedPropRepositoryPropCustomProperties +class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + date: str = Field() + email: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamCreated) -model_rebuild(WebhookTeamCreatedPropRepository) -model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) -model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) -model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) -__all__ = ( - "WebhookTeamCreated", - "WebhookTeamCreatedPropRepository", - "WebhookTeamCreatedPropRepositoryPropCustomProperties", - "WebhookTeamCreatedPropRepositoryPropLicense", - "WebhookTeamCreatedPropRepositoryPropOwner", - "WebhookTeamCreatedPropRepositoryPropPermissions", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0823.py b/githubkit/versions/ghec_v2022_11_28/models/group_0823.py index 6b92aee79..86b3b2dd2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0823.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0823.py @@ -9,248 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0496 import WebhooksTeam1 +from .group_0003 import SimpleUser +from .group_0020 import Repository +from .group_0138 import Issue +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookTeamDeleted(GitHubModel): - """team deleted event""" +class WebhookSubIssuesParentIssueAdded(GitHubModel): + """parent issue added event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["parent_issue_added"] = Field() + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + parent_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamDeletedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamDeletedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamDeletedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamDeleted) -model_rebuild(WebhookTeamDeletedPropRepository) -model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) -model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) -model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) +model_rebuild(WebhookSubIssuesParentIssueAdded) -__all__ = ( - "WebhookTeamDeleted", - "WebhookTeamDeletedPropRepository", - "WebhookTeamDeletedPropRepositoryPropCustomProperties", - "WebhookTeamDeletedPropRepositoryPropLicense", - "WebhookTeamDeletedPropRepositoryPropOwner", - "WebhookTeamDeletedPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesParentIssueAdded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0824.py b/githubkit/versions/ghec_v2022_11_28/models/group_0824.py index 36982033b..15681d53f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0824.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0824.py @@ -9,351 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0496 import WebhooksTeam1 +from .group_0003 import SimpleUser +from .group_0020 import Repository +from .group_0138 import Issue +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookTeamEdited(GitHubModel): - """team edited event""" +class WebhookSubIssuesParentIssueRemoved(GitHubModel): + """parent issue removed event""" - action: Literal["edited"] = Field() - changes: WebhookTeamEditedPropChanges = Field( - description="The changes to the team if the action was `edited`." + action: Literal["parent_issue_removed"] = Field() + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + parent_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamEditedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamEditedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamEditedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamEditedPropChanges(GitHubModel): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( - default=UNSET - ) - name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) - privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) - notification_setting: Missing[ - WebhookTeamEditedPropChangesPropNotificationSetting - ] = Field(default=UNSET) - repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( - default=UNSET - ) - - -class WebhookTeamEditedPropChangesPropDescription(GitHubModel): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropName(GitHubModel): - """WebhookTeamEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str = Field( - alias="from", - description="The previous version of the team's privacy if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str = Field( - alias="from", - description="The previous version of the team's notification setting if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropRepository(GitHubModel): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( - alias="from" - ) - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", - ) - pull: Missing[bool] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - push: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookTeamEdited) -model_rebuild(WebhookTeamEditedPropRepository) -model_rebuild(WebhookTeamEditedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamEditedPropRepositoryPropLicense) -model_rebuild(WebhookTeamEditedPropRepositoryPropOwner) -model_rebuild(WebhookTeamEditedPropRepositoryPropPermissions) -model_rebuild(WebhookTeamEditedPropChanges) -model_rebuild(WebhookTeamEditedPropChangesPropDescription) -model_rebuild(WebhookTeamEditedPropChangesPropName) -model_rebuild(WebhookTeamEditedPropChangesPropPrivacy) -model_rebuild(WebhookTeamEditedPropChangesPropNotificationSetting) -model_rebuild(WebhookTeamEditedPropChangesPropRepository) -model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissions) -model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom) +model_rebuild(WebhookSubIssuesParentIssueRemoved) -__all__ = ( - "WebhookTeamEdited", - "WebhookTeamEditedPropChanges", - "WebhookTeamEditedPropChangesPropDescription", - "WebhookTeamEditedPropChangesPropName", - "WebhookTeamEditedPropChangesPropNotificationSetting", - "WebhookTeamEditedPropChangesPropPrivacy", - "WebhookTeamEditedPropChangesPropRepository", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", - "WebhookTeamEditedPropRepository", - "WebhookTeamEditedPropRepositoryPropCustomProperties", - "WebhookTeamEditedPropRepositoryPropLicense", - "WebhookTeamEditedPropRepositoryPropOwner", - "WebhookTeamEditedPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesParentIssueRemoved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0825.py b/githubkit/versions/ghec_v2022_11_28/models/group_0825.py index 30c58c553..031c23b85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0825.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0825.py @@ -9,250 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0496 import WebhooksTeam1 +from .group_0003 import SimpleUser +from .group_0020 import Repository +from .group_0138 import Issue +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookTeamRemovedFromRepository(GitHubModel): - """team removed_from_repository event""" +class WebhookSubIssuesSubIssueAdded(GitHubModel): + """sub-issue added event""" - action: Literal["removed_from_repository"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["sub_issue_added"] = Field() + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + sub_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( - title="User" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - permissions: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamRemovedFromRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookSubIssuesSubIssueAdded) -__all__ = ( - "WebhookTeamRemovedFromRepository", - "WebhookTeamRemovedFromRepositoryPropRepository", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesSubIssueAdded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0826.py b/githubkit/versions/ghec_v2022_11_28/models/group_0826.py index 9840b8336..8be9c226b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0826.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0826.py @@ -17,21 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0020 import Repository +from .group_0138 import Issue +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookWatchStarted(GitHubModel): - """watch started event""" +class WebhookSubIssuesSubIssueRemoved(GitHubModel): + """sub-issue removed event""" - action: Literal["started"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["sub_issue_removed"] = Field() + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + sub_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -43,13 +52,16 @@ class WebhookWatchStarted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookWatchStarted) +model_rebuild(WebhookSubIssuesSubIssueRemoved) -__all__ = ("WebhookWatchStarted",) +__all__ = ("WebhookSubIssuesSubIssueRemoved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0827.py b/githubkit/versions/ghec_v2022_11_28/models/group_0827.py index 77621c6ba..2db69d446 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0827.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0827.py @@ -9,30 +9,28 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0503 import WebhooksTeam1 -class WebhookWorkflowDispatch(GitHubModel): - """workflow_dispatch event""" +class WebhookTeamAdd(GitHubModel): + """team_add event""" enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,23 +41,17 @@ class WebhookWorkflowDispatch(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: str = Field() - - -class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): - """WebhookWorkflowDispatchPropInputs""" + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) -model_rebuild(WebhookWorkflowDispatch) -model_rebuild(WebhookWorkflowDispatchPropInputs) +model_rebuild(WebhookTeamAdd) -__all__ = ( - "WebhookWorkflowDispatch", - "WebhookWorkflowDispatchPropInputs", -) +__all__ = ("WebhookTeamAdd",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0828.py b/githubkit/versions/ghec_v2022_11_28/models/group_0828.py index 934eea9de..38e7e06b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0828.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0828.py @@ -9,26 +9,26 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0227 import Deployment -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0503 import WebhooksTeam1 -class WebhookWorkflowJobCompleted(GitHubModel): - """workflow_job completed event""" +class WebhookTeamAddedToRepository(GitHubModel): + """team added_to_repository event""" - action: Literal["completed"] = Field() + action: Literal["added_to_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,95 +39,220 @@ class WebhookWorkflowJobCompleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + ] = Field( default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: str = Field() - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( + title="User" ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." + permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( + Field(default=UNSET) ) - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobCompleted) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) +model_rebuild(WebhookTeamAddedToRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobCompleted", - "WebhookWorkflowJobCompletedPropWorkflowJob", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", + "WebhookTeamAddedToRepository", + "WebhookTeamAddedToRepositoryPropRepository", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0829.py b/githubkit/versions/ghec_v2022_11_28/models/group_0829.py index d743e6974..f628efc44 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0829.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0829.py @@ -9,87 +9,246 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0503 import WebhooksTeam1 -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamCreated(GitHubModel): + """team created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamCreatedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamCreatedPropRepository(GitHubModel): + """Repository + + A git repository """ - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( - Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamCreatedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() +class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): + """License""" -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookTeamCreated) +model_rebuild(WebhookTeamCreatedPropRepository) +model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) +model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) +model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", + "WebhookTeamCreated", + "WebhookTeamCreatedPropRepository", + "WebhookTeamCreatedPropRepositoryPropCustomProperties", + "WebhookTeamCreatedPropRepositoryPropLicense", + "WebhookTeamCreatedPropRepositoryPropOwner", + "WebhookTeamCreatedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0830.py b/githubkit/versions/ghec_v2022_11_28/models/group_0830.py index 13bbf03d1..7a80c1fc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0830.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0830.py @@ -9,69 +9,248 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0503 import WebhooksTeam1 -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[str] = Field(default=UNSET) - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." - ) - head_sha: Missing[str] = Field(default=UNSET) + +class WebhookTeamDeleted(GitHubModel): + """team deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamDeletedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamDeletedPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamDeletedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[list[Union[str, None]]] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." - ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." - ) - steps: Missing[ - list[ - Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] - ] - ] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamDeletedPropRepositoryPropPermissions""" -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookTeamDeleted) +model_rebuild(WebhookTeamDeletedPropRepository) +model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) +model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) +model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", + "WebhookTeamDeleted", + "WebhookTeamDeletedPropRepository", + "WebhookTeamDeletedPropRepositoryPropCustomProperties", + "WebhookTeamDeletedPropRepositoryPropLicense", + "WebhookTeamDeletedPropRepositoryPropOwner", + "WebhookTeamDeletedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0831.py b/githubkit/versions/ghec_v2022_11_28/models/group_0831.py index 8797ddde4..69b3e045c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0831.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0831.py @@ -9,26 +9,29 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0227 import Deployment -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0503 import WebhooksTeam1 -class WebhookWorkflowJobInProgress(GitHubModel): - """workflow_job in_progress event""" +class WebhookTeamEdited(GitHubModel): + """team edited event""" - action: Literal["in_progress"] = Field() + action: Literal["edited"] = Field() + changes: WebhookTeamEditedPropChanges = Field( + description="The changes to the team if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,89 +42,318 @@ class WebhookWorkflowJobInProgress(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamEditedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) -class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJob""" +class WebhookTeamEditedPropRepository(GitHubModel): + """Repository + + A git repository + """ - check_run_url: str = Field() - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( - Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamEditedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamEditedPropChanges(GitHubModel): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( + default=UNSET ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) + privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) + notification_setting: Missing[ + WebhookTeamEditedPropChangesPropNotificationSetting + ] = Field(default=UNSET) + repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( + default=UNSET ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + + +class WebhookTeamEditedPropChangesPropDescription(GitHubModel): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + + +class WebhookTeamEditedPropChangesPropName(GitHubModel): + """WebhookTeamEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + + +class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str = Field( + alias="from", + description="The previous version of the team's privacy if the action was `edited`.", ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." + + +class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str = Field( + alias="from", + description="The previous version of the team's notification setting if the action was `edited`.", ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." + + +class WebhookTeamEditedPropChangesPropRepository(GitHubModel): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( + alias="from" ) - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() - url: str = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( - Field() + admin: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", + ) + pull: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", + ) + push: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", ) - name: str = Field() - number: int = Field() - started_at: Union[Union[str, None], None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobInProgress) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) +model_rebuild(WebhookTeamEdited) +model_rebuild(WebhookTeamEditedPropRepository) +model_rebuild(WebhookTeamEditedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamEditedPropRepositoryPropLicense) +model_rebuild(WebhookTeamEditedPropRepositoryPropOwner) +model_rebuild(WebhookTeamEditedPropRepositoryPropPermissions) +model_rebuild(WebhookTeamEditedPropChanges) +model_rebuild(WebhookTeamEditedPropChangesPropDescription) +model_rebuild(WebhookTeamEditedPropChangesPropName) +model_rebuild(WebhookTeamEditedPropChangesPropPrivacy) +model_rebuild(WebhookTeamEditedPropChangesPropNotificationSetting) +model_rebuild(WebhookTeamEditedPropChangesPropRepository) +model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissions) +model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom) __all__ = ( - "WebhookWorkflowJobInProgress", - "WebhookWorkflowJobInProgressPropWorkflowJob", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", + "WebhookTeamEdited", + "WebhookTeamEditedPropChanges", + "WebhookTeamEditedPropChangesPropDescription", + "WebhookTeamEditedPropChangesPropName", + "WebhookTeamEditedPropChangesPropNotificationSetting", + "WebhookTeamEditedPropChangesPropPrivacy", + "WebhookTeamEditedPropChangesPropRepository", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", + "WebhookTeamEditedPropRepository", + "WebhookTeamEditedPropRepositoryPropCustomProperties", + "WebhookTeamEditedPropRepositoryPropLicense", + "WebhookTeamEditedPropRepositoryPropOwner", + "WebhookTeamEditedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0832.py b/githubkit/versions/ghec_v2022_11_28/models/group_0832.py index adebeded4..59d96017f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0832.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0832.py @@ -9,78 +9,250 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0503 import WebhooksTeam1 -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamRemovedFromRepository(GitHubModel): + """team removed_from_repository event""" + + action: Literal["removed_from_repository"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): + """Repository + + A git repository """ - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( - Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( - Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookTeamRemovedFromRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", + "WebhookTeamRemovedFromRepository", + "WebhookTeamRemovedFromRepositoryPropRepository", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0833.py b/githubkit/versions/ghec_v2022_11_28/models/group_0833.py index b4d62dfca..14a6f60ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0833.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0833.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,58 +17,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." +class WebhookWatchStarted(GitHubModel): + """watch started event""" + + action: Literal["started"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[list[str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Literal["in_progress", "completed", "queued"] = Field() - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( - Field() + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "pending", "queued"] = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookWatchStarted) -__all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", -) +__all__ = ("WebhookWatchStarted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0834.py b/githubkit/versions/ghec_v2022_11_28/models/group_0834.py index 00a86b9e8..3f2380a6f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0834.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0834.py @@ -9,32 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0227 import Deployment -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookWorkflowJobQueued(GitHubModel): - """workflow_job queued event""" +class WebhookWorkflowDispatch(GitHubModel): + """workflow_dispatch event""" - action: Literal["queued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) + inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -45,66 +43,23 @@ class WebhookWorkflowJobQueued(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + ref: str = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) + workflow: str = Field() -class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobQueuedPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field() - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() - url: str = Field() - - -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending"] = Field() +class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): + """WebhookWorkflowDispatchPropInputs""" -model_rebuild(WebhookWorkflowJobQueued) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWorkflowDispatch) +model_rebuild(WebhookWorkflowDispatchPropInputs) __all__ = ( - "WebhookWorkflowJobQueued", - "WebhookWorkflowJobQueuedPropWorkflowJob", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", + "WebhookWorkflowDispatch", + "WebhookWorkflowDispatchPropInputs", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0835.py b/githubkit/versions/ghec_v2022_11_28/models/group_0835.py index 8e5b9a23b..93f007f4f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0835.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0835.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0227 import Deployment -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0234 import Deployment +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookWorkflowJobWaiting(GitHubModel): - """workflow_job waiting event""" +class WebhookWorkflowJobCompleted(GitHubModel): + """workflow_job completed event""" - action: Literal["waiting"] = Field() + action: Literal["completed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,7 +49,7 @@ class WebhookWorkflowJobWaiting(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() deployment: Missing[Deployment] = Field( default=UNSET, title="Deployment", @@ -58,36 +57,60 @@ class WebhookWorkflowJobWaiting(GitHubModel): ) -class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobWaitingPropWorkflowJob""" +class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJob""" check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() + completed_at: str = Field() + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] = Field() created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - labels: list[str] = Field() + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) name: str = Field() node_id: str = Field() run_attempt: int = Field() run_id: int = Field() run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + ) + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." + ) + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" completed_at: Union[str, None] = Field() conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( @@ -96,17 +119,15 @@ class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): name: str = Field() number: int = Field() started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( - Field() - ) + status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobWaiting) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWorkflowJobCompleted) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowJobWaiting", - "WebhookWorkflowJobWaitingPropWorkflowJob", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", + "WebhookWorkflowJobCompleted", + "WebhookWorkflowJobCompletedPropWorkflowJob", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0836.py b/githubkit/versions/ghec_v2022_11_28/models/group_0836.py index 84a5636fd..d743e6974 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0836.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0836.py @@ -9,497 +9,87 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0454 import WebhooksWorkflow +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowRunCompleted(GitHubModel): - """workflow_run completed event""" - - action: Literal["completed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): - """Workflow Run""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() + check_run_url: str = Field() + completed_at: Union[str, None] = Field() conclusion: Union[ None, Literal[ - "action_required", - "cancelled", + "success", "failure", - "neutral", "skipped", - "stale", - "success", + "cancelled", + "action_required", + "neutral", "timed_out", - "startup_failure", ], ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") - ) + created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( - title="Repository Lite" + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - rerun_url: str = Field() + name: str = Field() + node_id: str = Field() run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: Missing[str] = Field( - default=UNSET, - description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() url: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowRunCompleted) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowRunCompleted", - "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0837.py b/githubkit/versions/ghec_v2022_11_28/models/group_0837.py index 0bb510a24..13bbf03d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0837.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0837.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,477 +17,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0454 import WebhooksWorkflow +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" -class WebhookWorkflowRunInProgress(GitHubModel): - """workflow_run in_progress event""" - - action: Literal["in_progress"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[str] = Field(default=UNSET) + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( - Field() - ) - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + head_sha: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + id: Missing[int] = Field(default=UNSET) + labels: Missing[list[Union[str, None]]] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: Union[str, None] = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." + ) + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." + ) + steps: Missing[ + list[ + Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] + ] + ] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" - id: int = Field() - name: str = Field() - url: str = Field() - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookWorkflowRunInProgress) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) __all__ = ( - "WebhookWorkflowRunInProgress", - "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0838.py b/githubkit/versions/ghec_v2022_11_28/models/group_0838.py index 5a121d578..4706db09d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0838.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0838.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0444 import EnterpriseWebhooks -from .group_0445 import SimpleInstallation -from .group_0446 import OrganizationSimpleWebhooks -from .group_0447 import RepositoryWebhooks -from .group_0454 import WebhooksWorkflow +from .group_0003 import SimpleUser +from .group_0234 import Deployment +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class WebhookWorkflowRunRequested(GitHubModel): - """workflow_run requested event""" +class WebhookWorkflowJobInProgress(GitHubModel): + """workflow_job in_progress event""" - action: Literal["requested"] = Field() + action: Literal["in_progress"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,453 +49,79 @@ class WebhookWorkflowRunRequested(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( - title="Workflow Run" + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", ) -class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): - """Workflow Run""" +class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJob""" - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") + check_run_url: str = Field() + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( + Field() ) + created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( - title="Repository Lite" + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - rerun_url: str = Field() + name: str = Field() + node_id: str = Field() run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." + ) + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[Union[str, None], None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowRunRequested) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobInProgress) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowRunRequested", - "WebhookWorkflowRunRequestedPropWorkflowRun", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowJobInProgress", + "WebhookWorkflowJobInProgressPropWorkflowJob", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ) 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 7a34e8c70..adebeded4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0839.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0839.py @@ -9,48 +9,78 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0007 import IntegrationPropPermissions +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class AppManifestsCodeConversionsPostResponse201(GitHubModel): - """AppManifestsCodeConversionsPostResponse201""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ - id: int = Field(description="Unique identifier of the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( + Field() ) - node_id: str = Field() - client_id: str = Field() - owner: Union[None, SimpleUser] = Field() - name: str = Field(description="The name of the GitHub app") - description: Union[str, None] = Field() - external_url: str = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() html_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: IntegrationPropPermissions = Field( - description="The set of permissions for the GitHub app" + id: int = Field() + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - events: list[str] = Field(description="The list of events for the GitHub app") - installations_count: Missing[int] = Field( - default=UNSET, - description="The number of installations associated with the GitHub app", + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + ) + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( + Field() + ) + url: str = Field() + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - client_secret: str = Field() - webhook_secret: Union[Union[str, None], None] = Field() - pem: str = Field() + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(AppManifestsCodeConversionsPostResponse201) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) -__all__ = ("AppManifestsCodeConversionsPostResponse201",) +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0840.py b/githubkit/versions/ghec_v2022_11_28/models/group_0840.py index d16ddbf37..b4d62dfca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0840.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0840.py @@ -9,22 +9,66 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): - """AppManifestsCodeConversionsPostResponse201Allof1""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[str, None] = Field() - pem: str = Field() + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." + ) + head_sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[list[str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Literal["in_progress", "completed", "queued"] = Field() + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." + ) + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." + ) + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( + Field() + ) + url: Missing[str] = Field(default=UNSET) -model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """Workflow Step""" -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "pending", "queued"] = Field() + + +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) + +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0841.py b/githubkit/versions/ghec_v2022_11_28/models/group_0841.py index 079d8ad9e..0b5e513f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0841.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0841.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,24 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0234 import Deployment +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks -class AppHookConfigPatchBody(GitHubModel): - """AppHookConfigPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." +class WebhookWorkflowJobQueued(GitHubModel): + """workflow_job queued event""" + + action: Literal["queued"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - content_type: Missing[str] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - secret: Missing[str] = Field( + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending"] = Field() -model_rebuild(AppHookConfigPatchBody) +model_rebuild(WebhookWorkflowJobQueued) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) -__all__ = ("AppHookConfigPatchBody",) +__all__ = ( + "WebhookWorkflowJobQueued", + "WebhookWorkflowJobQueuedPropWorkflowJob", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0842.py b/githubkit/versions/ghec_v2022_11_28/models/group_0842.py index 406984575..d527e38b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0842.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0842.py @@ -9,13 +9,104 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0234 import Deployment +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks + + +class WebhookWorkflowJobWaiting(GitHubModel): + """workflow_job waiting event""" + + action: Literal["waiting"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( + Field() + ) -model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) +model_rebuild(WebhookWorkflowJobWaiting) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) +__all__ = ( + "WebhookWorkflowJobWaiting", + "WebhookWorkflowJobWaitingPropWorkflowJob", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0843.py b/githubkit/versions/ghec_v2022_11_28/models/group_0843.py index c26e13949..69fb4d14d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0843.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0843.py @@ -9,33 +9,497 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0016 import AppPermissions +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0461 import WebhooksWorkflow -class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): - """AppInstallationsInstallationIdAccessTokensPostBody""" +class WebhookWorkflowRunCompleted(GitHubModel): + """workflow_run completed event""" - repositories: Missing[list[str]] = Field( + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="List of repository names that the token should have access to", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - repository_ids: Missing[list[int]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="List of repository IDs that the token should have access to", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - permissions: Missing[AppPermissions] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: list[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: Missing[str] = Field( + default=UNSET, + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) +model_rebuild(WebhookWorkflowRunCompleted) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) +__all__ = ( + "WebhookWorkflowRunCompleted", + "WebhookWorkflowRunCompletedPropWorkflowRun", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0844.py b/githubkit/versions/ghec_v2022_11_28/models/group_0844.py index 33e9e3dcc..2f715253b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0844.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0844.py @@ -9,19 +9,486 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0461 import WebhooksWorkflow + + +class WebhookWorkflowRunInProgress(GitHubModel): + """workflow_run in_progress event""" + + action: Literal["in_progress"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: list[ + Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( + Field() + ) + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class ApplicationsClientIdGrantDeleteBody(GitHubModel): - """ApplicationsClientIdGrantDeleteBody""" - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: Union[str, None] = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(ApplicationsClientIdGrantDeleteBody) +model_rebuild(WebhookWorkflowRunInProgress) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("ApplicationsClientIdGrantDeleteBody",) +__all__ = ( + "WebhookWorkflowRunInProgress", + "WebhookWorkflowRunInProgressPropWorkflowRun", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0845.py b/githubkit/versions/ghec_v2022_11_28/models/group_0845.py index 13773092a..06945ab8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0845.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0845.py @@ -9,19 +9,494 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0451 import EnterpriseWebhooks +from .group_0452 import SimpleInstallation +from .group_0453 import OrganizationSimpleWebhooks +from .group_0454 import RepositoryWebhooks +from .group_0461 import WebhooksWorkflow + + +class WebhookWorkflowRunRequested(GitHubModel): + """workflow_run requested event""" + + action: Literal["requested"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + Metaproperties for Git author/committer information. + """ -class ApplicationsClientIdTokenPostBody(GitHubModel): - """ApplicationsClientIdTokenPostBody""" + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(ApplicationsClientIdTokenPostBody) +model_rebuild(WebhookWorkflowRunRequested) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("ApplicationsClientIdTokenPostBody",) +__all__ = ( + "WebhookWorkflowRunRequested", + "WebhookWorkflowRunRequestedPropWorkflowRun", + "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0846.py b/githubkit/versions/ghec_v2022_11_28/models/group_0846.py index 585475cf4..2a022955e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0846.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0846.py @@ -9,19 +9,49 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0008 import Enterprise +from .group_0009 import IntegrationPropPermissions -class ApplicationsClientIdTokenDeleteBody(GitHubModel): - """ApplicationsClientIdTokenDeleteBody""" +class AppManifestsCodeConversionsPostResponse201(GitHubModel): + """AppManifestsCodeConversionsPostResponse201""" - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + id: int = Field(description="Unique identifier of the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + node_id: str = Field() + client_id: str = Field() + owner: Union[SimpleUser, Enterprise] = Field() + name: str = Field(description="The name of the GitHub app") + description: Union[str, None] = Field() + external_url: str = Field() + html_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: IntegrationPropPermissions = Field( + description="The set of permissions for the GitHub app" + ) + events: list[str] = Field(description="The list of events for the GitHub app") + installations_count: Missing[int] = Field( + default=UNSET, + description="The number of installations associated with the GitHub app", ) + client_secret: str = Field() + webhook_secret: Union[Union[str, None], None] = Field() + pem: str = Field() -model_rebuild(ApplicationsClientIdTokenDeleteBody) +model_rebuild(AppManifestsCodeConversionsPostResponse201) -__all__ = ("ApplicationsClientIdTokenDeleteBody",) +__all__ = ("AppManifestsCodeConversionsPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0847.py b/githubkit/versions/ghec_v2022_11_28/models/group_0847.py index a2c5766c1..d16ddbf37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0847.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0847.py @@ -9,19 +9,22 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild -class ApplicationsClientIdTokenPatchBody(GitHubModel): - """ApplicationsClientIdTokenPatchBody""" +class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): + """AppManifestsCodeConversionsPostResponse201Allof1""" - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." - ) + client_id: str = Field() + client_secret: str = Field() + webhook_secret: Union[str, None] = Field() + pem: str = Field() -model_rebuild(ApplicationsClientIdTokenPatchBody) +model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) -__all__ = ("ApplicationsClientIdTokenPatchBody",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0848.py b/githubkit/versions/ghec_v2022_11_28/models/group_0848.py index e2f1be604..079d8ad9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0848.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0848.py @@ -9,44 +9,32 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0016 import AppPermissions - -class ApplicationsClientIdTokenScopedPostBody(GitHubModel): - """ApplicationsClientIdTokenScopedPostBody""" +class AppHookConfigPatchBody(GitHubModel): + """AppHookConfigPatchBody""" - access_token: str = Field( - description="The access token used to authenticate to the GitHub API." - ) - target: Missing[str] = Field( - default=UNSET, - description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", - ) - target_id: Missing[int] = Field( - default=UNSET, - description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", - ) - repositories: Missing[list[str]] = Field( - default=UNSET, - description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - repository_ids: Missing[list[int]] = Field( + content_type: Missing[str] = Field( default=UNSET, - description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - permissions: Missing[AppPermissions] = Field( + secret: Missing[str] = Field( default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + 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(ApplicationsClientIdTokenScopedPostBody) +model_rebuild(AppHookConfigPatchBody) -__all__ = ("ApplicationsClientIdTokenScopedPostBody",) +__all__ = ("AppHookConfigPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0849.py b/githubkit/versions/ghec_v2022_11_28/models/group_0849.py index 152fcb757..406984575 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0849.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0849.py @@ -9,13 +9,13 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class EmojisGetResponse200(ExtraGitHubModel): - """EmojisGetResponse200""" +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" -model_rebuild(EmojisGetResponse200) +model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) -__all__ = ("EmojisGetResponse200",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0850.py b/githubkit/versions/ghec_v2022_11_28/models/group_0850.py index 2f0e6146f..90930f652 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0850.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0850.py @@ -9,27 +9,33 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0017 import AppPermissions + -class EnterprisesEnterpriseActionsPermissionsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsPutBody""" +class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): + """AppInstallationsInstallationIdAccessTokensPostBody""" - enabled_organizations: Literal["all", "none", "selected"] = Field( - description="The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions." + repositories: Missing[list[str]] = Field( + default=UNSET, + description="List of repository names that the token should have access to", + ) + repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="List of repository IDs that the token should have access to", ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + permissions: Missing[AppPermissions] = Field( default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + title="App Permissions", + description="The permissions granted to the user access token.", ) -model_rebuild(EnterprisesEnterpriseActionsPermissionsPutBody) +model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) -__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBody",) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0851.py b/githubkit/versions/ghec_v2022_11_28/models/group_0851.py index c6194e71d..33e9e3dcc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0851.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0851.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0031 import OrganizationSimple +class ApplicationsClientIdGrantDeleteBody(GitHubModel): + """ApplicationsClientIdGrantDeleteBody""" -class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." + ) - total_count: float = Field() - organizations: list[OrganizationSimple] = Field() +model_rebuild(ApplicationsClientIdGrantDeleteBody) -model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200",) +__all__ = ("ApplicationsClientIdGrantDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0852.py b/githubkit/versions/ghec_v2022_11_28/models/group_0852.py index 1025d71f1..13773092a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0852.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0852.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" +class ApplicationsClientIdTokenPostBody(GitHubModel): + """ApplicationsClientIdTokenPostBody""" - selected_organization_ids: list[int] = Field( - description="List of organization IDs to enable for GitHub Actions." + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody) +model_rebuild(ApplicationsClientIdTokenPostBody) -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",) +__all__ = ("ApplicationsClientIdTokenPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0853.py b/githubkit/versions/ghec_v2022_11_28/models/group_0853.py index 27d43a75b..585475cf4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0853.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0853.py @@ -12,46 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" +class ApplicationsClientIdTokenDeleteBody(GitHubModel): + """ApplicationsClientIdTokenDeleteBody""" - total_count: float = Field() - runner_groups: list[RunnerGroupsEnterprise] = Field() - - -class RunnerGroupsEnterprise(GitHubModel): - """RunnerGroupsEnterprise""" - - id: float = Field() - name: str = Field() - visibility: str = Field() - default: bool = Field() - selected_organizations_url: Missing[str] = Field(default=UNSET) - runners_url: str = Field() - hosted_runners_url: Missing[str] = Field(default=UNSET) - allows_public_repositories: bool = Field() - workflow_restrictions_read_only: Missing[bool] = Field( - default=UNSET, - description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsEnterprise) +model_rebuild(ApplicationsClientIdTokenDeleteBody) -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", - "RunnerGroupsEnterprise", -) +__all__ = ("ApplicationsClientIdTokenDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0854.py b/githubkit/versions/ghec_v2022_11_28/models/group_0854.py index aaa2e22fc..a2c5766c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0854.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0854.py @@ -9,44 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsRunnerGroupsPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" +class ApplicationsClientIdTokenPatchBody(GitHubModel): + """ApplicationsClientIdTokenPatchBody""" - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all organizations or select individual organization.", - ) - selected_organization_ids: Missing[list[int]] = Field( - default=UNSET, - description="List of organization IDs that can access the runner group.", - ) - runners: Missing[list[int]] = Field( - default=UNSET, description="List of runner IDs to add to the runner group." - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsPostBody) +model_rebuild(ApplicationsClientIdTokenPatchBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",) +__all__ = ("ApplicationsClientIdTokenPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0855.py b/githubkit/versions/ghec_v2022_11_28/models/group_0855.py index 09d561ae5..86bfc32e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0855.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0855.py @@ -9,37 +9,44 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0017 import AppPermissions + -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" +class ApplicationsClientIdTokenScopedPostBody(GitHubModel): + """ApplicationsClientIdTokenScopedPostBody""" - name: Missing[str] = Field(default=UNSET, description="Name of the runner group.") - visibility: Missing[Literal["selected", "all"]] = Field( + access_token: str = Field( + description="The access token used to authenticate to the GitHub API." + ) + target: Missing[str] = Field( + default=UNSET, + description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", + ) + target_id: Missing[int] = Field( default=UNSET, - description="Visibility of a runner group. You can select all organizations or select individual organizations.", + description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", ) - allows_public_repositories: Missing[bool] = Field( + repositories: Missing[list[str]] = Field( default=UNSET, - description="Whether the runner group can be used by `public` repositories.", + description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", ) - restricted_to_workflows: Missing[bool] = Field( + repository_ids: Missing[list[int]] = Field( default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", ) - selected_workflows: Missing[list[str]] = Field( + permissions: Missing[AppPermissions] = Field( default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + title="App Permissions", + description="The permissions granted to the user access token.", ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody) +model_rebuild(ApplicationsClientIdTokenScopedPostBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody",) +__all__ = ("ApplicationsClientIdTokenScopedPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0856.py b/githubkit/versions/ghec_v2022_11_28/models/group_0856.py index e9ec6b36f..152fcb757 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0856.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0856.py @@ -9,26 +9,13 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import ExtraGitHubModel, model_rebuild -from githubkit.compat import GitHubModel, model_rebuild -from .group_0031 import OrganizationSimple +class EmojisGetResponse200(ExtraGitHubModel): + """EmojisGetResponse200""" -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" +model_rebuild(EmojisGetResponse200) - total_count: float = Field() - organizations: list[OrganizationSimple] = Field() - - -model_rebuild( - EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 -) - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", -) +__all__ = ("EmojisGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0857.py b/githubkit/versions/ghec_v2022_11_28/models/group_0857.py index 34f034b51..5e18b232e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0857.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0857.py @@ -13,17 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0031 import ActionsHostedRunner -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" - selected_organization_ids: list[int] = Field( - description="List of organization IDs that can access the runner group." - ) +class EnterprisesEnterpriseActionsHostedRunnersGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersGetResponse200""" + total_count: int = Field() + runners: list[ActionsHostedRunner] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody",) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0858.py b/githubkit/versions/ghec_v2022_11_28/models/group_0858.py index 673a568ff..d65437a4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0858.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0858.py @@ -9,26 +9,63 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0036 import Runner +class EnterprisesEnterpriseActionsHostedRunnersPostBody(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersPostBody""" -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + name: str = Field( + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + ) + image: EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage = Field( + description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." + ) + size: str = Field( + description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" + ) + runner_group_id: int = Field( + description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) - total_count: float = Field() - runners: list[Runner] = Field() +class EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage -model_rebuild( - EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 -) + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ + + id: Missing[str] = Field( + default=UNSET, description="The unique identifier of the runner image." + ) + source: Missing[Literal["github", "partner", "custom"]] = Field( + default=UNSET, description="The source of the runner image." + ) + version: Missing[Union[str, None]] = Field( + default=UNSET, + description="The version of the runner image to deploy. This is relevant only for runners using custom images.", + ) + + +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPostBody) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage) __all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", + "EnterprisesEnterpriseActionsHostedRunnersPostBody", + "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0859.py b/githubkit/versions/ghec_v2022_11_28/models/group_0859.py index c5005fa9d..05553deae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0859.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0859.py @@ -13,15 +13,18 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0032 import ActionsHostedRunnerImage -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: list[int] = Field( - description="List of runner IDs to add to the runner group." - ) +class EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200( + GitHubModel +): + """EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200""" + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0860.py b/githubkit/versions/ghec_v2022_11_28/models/group_0860.py index 8fe004326..419602af1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0860.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0860.py @@ -12,19 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0036 import Runner +from .group_0032 import ActionsHostedRunnerImage -class EnterprisesEnterpriseActionsRunnersGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGetResponse200""" +class EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200""" - total_count: Missing[float] = Field(default=UNSET) - runners: Missing[list[Runner]] = Field(default=UNSET) + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnersGetResponse200) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200) -__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0861.py b/githubkit/versions/ghec_v2022_11_28/models/group_0861.py index 734cf9ee8..50ac5a63e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0861.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0861.py @@ -11,29 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild +from .group_0030 import ActionsHostedRunnerMachineSpec -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", - ) +class EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200""" + total_count: int = Field() + machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody",) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0862.py b/githubkit/versions/ghec_v2022_11_28/models/group_0862.py index 7a468343f..9f79be98b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0862.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0862.py @@ -13,20 +13,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0036 import Runner +class EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200""" -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" + total_count: int = Field() + platforms: list[str] = Field() - runner: Runner = Field( - title="Self hosted runners", description="A self hosted runner" - ) - encoded_jit_config: str = Field( - description="The base64 encoded runner configuration." - ) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200) -model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201) - -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0863.py b/githubkit/versions/ghec_v2022_11_28/models/group_0863.py index 7599f9b8e..7ffd52374 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0863.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0863.py @@ -9,20 +9,39 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0035 import RunnerLabel - - -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" - - total_count: int = Field() - labels: list[RunnerLabel] = Field() - - -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + ) + runner_group_id: Missing[int] = Field( + default=UNSET, description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) + image_version: Missing[Union[str, None]] = Field( + default=UNSET, + description="The version of the runner image to deploy. This is relevant only for runners using custom images.", + ) + + +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody) + +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0864.py b/githubkit/versions/ghec_v2022_11_28/models/group_0864.py index 154a08888..2f0e6146f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0864.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0864.py @@ -9,20 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" +class EnterprisesEnterpriseActionsPermissionsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsPutBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + enabled_organizations: Literal["all", "none", "selected"] = Field( + description="The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions." + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(EnterprisesEnterpriseActionsPermissionsPutBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBody",) 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 222d888ed..06a7c0feb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0865.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0865.py @@ -11,19 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0036 import OrganizationSimple -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", - ) +class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + total_count: float = Field() + organizations: list[OrganizationSimple] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",) +model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200",) 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 d4d4d7279..1025d71f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0866.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0866.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0035 import RunnerLabel +class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" + selected_organization_ids: list[int] = Field( + description="List of organization IDs to enable for GitHub Actions." + ) - total_count: int = Field() - labels: list[RunnerLabel] = Field() +model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200) - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",) 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 f236e7aa7..e550b1314 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0867.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0867.py @@ -9,48 +9,53 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0044 import ( - AmazonS3AccessKeysConfig, - AzureBlobConfig, - AzureHubConfig, - GoogleCloudConfig, -) -from .group_0045 import AmazonS3OidcConfig, SplunkConfig -from .group_0046 import DatadogConfig - - -class EnterprisesEnterpriseAuditLogStreamsPostBody(GitHubModel): - """EnterprisesEnterpriseAuditLogStreamsPostBody""" - - enabled: bool = Field(description="This setting pauses or resumes a stream.") - stream_type: Literal[ - "Azure Blob Storage", - "Azure Event Hubs", - "Amazon S3", - "Splunk", - "HTTPS Event Collector", - "Google Cloud Storage", - "Datadog", - ] = Field( - description="The audit log streaming provider. The name is case sensitive." + +class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" + + total_count: float = Field() + runner_groups: list[RunnerGroupsEnterprise] = Field() + + +class RunnerGroupsEnterprise(GitHubModel): + """RunnerGroupsEnterprise""" + + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_organizations_url: Missing[str] = Field(default=UNSET) + runners_url: str = Field() + hosted_runners_url: Missing[str] = Field(default=UNSET) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", + ) + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( + default=UNSET, + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) - vendor_specific: Union[ - AzureBlobConfig, - AzureHubConfig, - AmazonS3OidcConfig, - AmazonS3AccessKeysConfig, - SplunkConfig, - GoogleCloudConfig, - DatadogConfig, - ] = Field() -model_rebuild(EnterprisesEnterpriseAuditLogStreamsPostBody) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsEnterprise) -__all__ = ("EnterprisesEnterpriseAuditLogStreamsPostBody",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", + "RunnerGroupsEnterprise", +) 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 3489e861e..5e59c6951 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0868.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0868.py @@ -9,48 +9,48 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0044 import ( - AmazonS3AccessKeysConfig, - AzureBlobConfig, - AzureHubConfig, - GoogleCloudConfig, -) -from .group_0045 import AmazonS3OidcConfig, SplunkConfig -from .group_0046 import DatadogConfig - - -class EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody(GitHubModel): - """EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody""" - - enabled: bool = Field(description="This setting pauses or resumes a stream.") - stream_type: Literal[ - "Azure Blob Storage", - "Azure Event Hubs", - "Amazon S3", - "Splunk", - "HTTPS Event Collector", - "Google Cloud Storage", - "Datadog", - ] = Field( - description="The audit log streaming provider. The name is case sensitive." + +class EnterprisesEnterpriseActionsRunnerGroupsPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" + + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all organizations or select individual organization.", + ) + selected_organization_ids: Missing[list[int]] = Field( + default=UNSET, + description="List of organization IDs that can access the runner group.", + ) + runners: Missing[list[int]] = Field( + default=UNSET, description="List of runner IDs to add to the runner group." + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", ) - vendor_specific: Union[ - AzureBlobConfig, - AzureHubConfig, - AmazonS3OidcConfig, - AmazonS3AccessKeysConfig, - SplunkConfig, - GoogleCloudConfig, - DatadogConfig, - ] = Field() -model_rebuild(EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsPostBody) -__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",) 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 7d7c33f16..628671205 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0869.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0869.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,12 +18,32 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422(GitHubModel): - """EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422""" - - errors: Missing[list[str]] = Field(default=UNSET) - - -model_rebuild(EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422) - -__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422",) +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="Name of the runner group.") + visibility: Missing[Literal["selected", "all"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all organizations or select individual organizations.", + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + network_configuration_id: Missing[Union[str, None]] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", + ) + + +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody) + +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0870.py b/githubkit/versions/ghec_v2022_11_28/models/group_0870.py index 44749ade7..76aa728f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0870.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0870.py @@ -12,18 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0036 import OrganizationSimple -class EnterprisesEnterpriseCodeScanningAlertsGetResponse503(GitHubModel): - """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200( + GitHubModel +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + total_count: float = Field() + organizations: list[OrganizationSimple] = Field() -model_rebuild(EnterprisesEnterpriseCodeScanningAlertsGetResponse503) -__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",) +model_rebuild( + EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 +) + +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", +) 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 46ff8dbd9..34f034b51 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0871.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0871.py @@ -9,116 +9,21 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0054 import CodeScanningDefaultSetupOptions - - -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" - - name: str = Field( - description="The name of the code security configuration. Must be unique within the enterprise." - ) - description: str = Field( - max_length=255, description="A description of the code security configuration" - ) - advanced_security: Missing[Literal["enabled", "disabled"]] = 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" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non provider patterns", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody( GitHubModel ): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu - bmitActionOptions - - Feature options for Automatic dependency submission - """ + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + selected_organization_ids: list[int] = Field( + description="List of organization IDs that can access the runner group." ) -model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsPostBody) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions -) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", -) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody",) 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 c32b10528..4751b0e30 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0872.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0872.py @@ -9,122 +9,26 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0054 import CodeScanningDefaultSetupOptions +from .group_0041 import Runner -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody( +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200( GitHubModel ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique across the enterprise.", - ) - description: Missing[str] = Field( - max_length=255, - default=UNSET, - description="A description of the code security configuration", - ) - advanced_security: Missing[Literal["enabled", "disabled"]] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security. Must be set to enabled if you want to enable any GHAS settings.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen - dencyGraphAutosubmitActionOptions - - Feature options for Automatic dependency submission - """ + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) + total_count: float = Field() + runners: list[Runner] = Field() -model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody) model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 ) __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ) 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 e8fb76823..c5005fa9d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0873.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0873.py @@ -9,27 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - scope: Literal["all", "all_without_configurations"] = 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`" + runners: list[int] = Field( + description="List of runner IDs to add to the runner group." ) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody -) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", -) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) 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 d990f81b8..42ed3cde9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0874.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0874.py @@ -9,32 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0041 import Runner + -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class EnterprisesEnterpriseActionsRunnersGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGetResponse200""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( - default=UNSET, - description="Specify which types of repository this security configuration should be applied to by default.", - ) + total_count: Missing[float] = Field(default=UNSET) + runners: Missing[list[Runner]] = Field(default=UNSET) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody -) +model_rebuild(EnterprisesEnterpriseActionsRunnersGetResponse200) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200",) 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 df922b066..734cf9ee8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0875.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0875.py @@ -9,39 +9,31 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0053 import CodeSecurityConfiguration - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons - e200 - """ +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" - 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.", + 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." ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + ) + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", ) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 -) +model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody",) 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 70b92e1f5..38753538e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0876.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0876.py @@ -9,50 +9,24 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0041 import Runner -class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody(GitHubModel): - """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether GitHub Advanced Security is automatically enabled for new repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', - ) - advanced_security_enabled_new_user_namespace_repos: Missing[bool] = Field( - default=UNSET, - description='Whether GitHub Advanced Security is automatically enabled for new user namespace repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether Dependabot alerts are automatically enabled for new repositories. For more information, see "[About Dependabot alerts](https://docs.github.com/enterprise-cloud@latest//code-security/dependabot/dependabot-alerts/about-dependabot-alerts)."', - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning is automatically enabled for new repositories. For more information, see "[About secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/about-secret-scanning)."', - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning push protection is automatically enabled for new repositories. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', - ) - secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( - default=UNSET, - description='The URL that will be displayed to contributors who are blocked from pushing a secret. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."\nTo disable this functionality, set this field to `null`.', +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" + + runner: Runner = Field( + title="Self hosted runners", description="A self hosted runner" ) - secret_scanning_non_provider_patterns_enabled_for_new_repositories: Missing[ - Union[bool, None] - ] = Field( - default=UNSET, - description="Whether secret scanning of non-provider patterns is enabled for new repositories under this enterprise.", + encoded_jit_config: str = Field( + description="The base64 encoded runner configuration." ) -model_rebuild(EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody) +model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201) -__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201",) 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 2c453071b..c41f2ae70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0877.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0877.py @@ -12,22 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0061 import CopilotSeatDetails +from .group_0040 import RunnerLabel -class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200(GitHubModel): - """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" - total_seats: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot seats the enterprise is being billed for. Users with access through multiple organizations or enterprise teams are only counted once.", - ) - seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) + total_count: int = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(EnterprisesEnterpriseCopilotBillingSeatsGetResponse200) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200) -__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200",) 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 eba3965ba..154a08888 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0878.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0878.py @@ -13,19 +13,16 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0070 import CustomProperty +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" -class EnterprisesEnterprisePropertiesSchemaPatchBody(GitHubModel): - """EnterprisesEnterprisePropertiesSchemaPatchBody""" - - properties: list[CustomProperty] = Field( + labels: list[str] = Field( max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The array of custom properties to create or update.", + 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(EnterprisesEnterprisePropertiesSchemaPatchBody) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("EnterprisesEnterprisePropertiesSchemaPatchBody",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",) 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 e86240086..222d888ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0879.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0879.py @@ -9,98 +9,21 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0072 import RepositoryRulesetBypassActor -from .group_0083 import EnterpriseRulesetConditionsOneof0 -from .group_0084 import EnterpriseRulesetConditionsOneof1 -from .group_0085 import EnterpriseRulesetConditionsOneof2 -from .group_0086 import EnterpriseRulesetConditionsOneof3 -from .group_0087 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0088 import RepositoryRuleUpdate -from .group_0090 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0091 import RepositoryRuleMergeQueue -from .group_0093 import RepositoryRuleRequiredDeployments -from .group_0096 import RepositoryRulePullRequest -from .group_0098 import RepositoryRuleRequiredStatusChecks -from .group_0100 import RepositoryRuleCommitMessagePattern -from .group_0102 import RepositoryRuleCommitAuthorEmailPattern -from .group_0104 import RepositoryRuleCommitterEmailPattern -from .group_0106 import RepositoryRuleBranchNamePattern -from .group_0108 import RepositoryRuleTagNamePattern -from .group_0111 import RepositoryRuleWorkflows -from .group_0113 import RepositoryRuleCodeScanning -from .group_0115 import RepositoryRuleOneof18 +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class EnterprisesEnterpriseRulesetsPostBody(GitHubModel): - """EnterprisesEnterpriseRulesetsPostBody""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - EnterpriseRulesetConditionsOneof0, - EnterpriseRulesetConditionsOneof1, - EnterpriseRulesetConditionsOneof2, - EnterpriseRulesetConditionsOneof3, - ] - ] = Field( - default=UNSET, - title="Enterprise ruleset conditions", - description="Conditions for an enterprise ruleset. The conditions object should contain either the `organization_id` or `organization_name` property and the `repository_name` or `repository_property` property. For branch and tag rulesets, the conditions object should also contain the `ref_name` property.", + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(EnterprisesEnterpriseRulesetsPostBody) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("EnterprisesEnterpriseRulesetsPostBody",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",) 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 7da0d2a05..28ab5bcf9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0880.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0880.py @@ -9,99 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0072 import RepositoryRulesetBypassActor -from .group_0083 import EnterpriseRulesetConditionsOneof0 -from .group_0084 import EnterpriseRulesetConditionsOneof1 -from .group_0085 import EnterpriseRulesetConditionsOneof2 -from .group_0086 import EnterpriseRulesetConditionsOneof3 -from .group_0087 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0088 import RepositoryRuleUpdate -from .group_0090 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0091 import RepositoryRuleMergeQueue -from .group_0093 import RepositoryRuleRequiredDeployments -from .group_0096 import RepositoryRulePullRequest -from .group_0098 import RepositoryRuleRequiredStatusChecks -from .group_0100 import RepositoryRuleCommitMessagePattern -from .group_0102 import RepositoryRuleCommitAuthorEmailPattern -from .group_0104 import RepositoryRuleCommitterEmailPattern -from .group_0106 import RepositoryRuleBranchNamePattern -from .group_0108 import RepositoryRuleTagNamePattern -from .group_0111 import RepositoryRuleWorkflows -from .group_0113 import RepositoryRuleCodeScanning -from .group_0115 import RepositoryRuleOneof18 +from .group_0040 import RunnerLabel -class EnterprisesEnterpriseRulesetsRulesetIdPutBody(GitHubModel): - """EnterprisesEnterpriseRulesetsRulesetIdPutBody""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - EnterpriseRulesetConditionsOneof0, - EnterpriseRulesetConditionsOneof1, - EnterpriseRulesetConditionsOneof2, - EnterpriseRulesetConditionsOneof3, - ] - ] = Field( - default=UNSET, - title="Enterprise ruleset conditions", - description="Conditions for an enterprise ruleset. The conditions object should contain either the `organization_id` or `organization_name` property and the `repository_name` or `repository_property` property. For branch and tag rulesets, the conditions object should also contain the `ref_name` property.", - ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + total_count: int = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(EnterprisesEnterpriseRulesetsRulesetIdPutBody) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200) -__all__ = ("EnterprisesEnterpriseRulesetsRulesetIdPutBody",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200",) 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 51d4ed664..d84b3f14a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0881.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0881.py @@ -9,25 +9,48 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" - - users: list[str] = Field( - description="The usernames of the users to add to the cost center." +from .group_0049 import ( + AmazonS3AccessKeysConfig, + AzureBlobConfig, + AzureHubConfig, + GoogleCloudConfig, +) +from .group_0050 import AmazonS3OidcConfig, SplunkConfig +from .group_0051 import DatadogConfig + + +class EnterprisesEnterpriseAuditLogStreamsPostBody(GitHubModel): + """EnterprisesEnterpriseAuditLogStreamsPostBody""" + + enabled: bool = Field(description="This setting pauses or resumes a stream.") + stream_type: Literal[ + "Azure Blob Storage", + "Azure Event Hubs", + "Amazon S3", + "Splunk", + "HTTPS Event Collector", + "Google Cloud Storage", + "Datadog", + ] = Field( + description="The audit log streaming provider. The name is case sensitive." ) + vendor_specific: Union[ + AzureBlobConfig, + AzureHubConfig, + AmazonS3OidcConfig, + AmazonS3AccessKeysConfig, + SplunkConfig, + GoogleCloudConfig, + DatadogConfig, + ] = Field() -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody -) +model_rebuild(EnterprisesEnterpriseAuditLogStreamsPostBody) -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody", -) +__all__ = ("EnterprisesEnterpriseAuditLogStreamsPostBody",) 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 74ff17176..ed40951d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0882.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0882.py @@ -9,27 +9,48 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 - 00 - """ - - message: Missing[str] = Field(default=UNSET) - - -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 -) -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200", +from .group_0049 import ( + AmazonS3AccessKeysConfig, + AzureBlobConfig, + AzureHubConfig, + GoogleCloudConfig, ) +from .group_0050 import AmazonS3OidcConfig, SplunkConfig +from .group_0051 import DatadogConfig + + +class EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody(GitHubModel): + """EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody""" + + enabled: bool = Field(description="This setting pauses or resumes a stream.") + stream_type: Literal[ + "Azure Blob Storage", + "Azure Event Hubs", + "Amazon S3", + "Splunk", + "HTTPS Event Collector", + "Google Cloud Storage", + "Datadog", + ] = Field( + description="The audit log streaming provider. The name is case sensitive." + ) + vendor_specific: Union[ + AzureBlobConfig, + AzureHubConfig, + AmazonS3OidcConfig, + AmazonS3AccessKeysConfig, + SplunkConfig, + GoogleCloudConfig, + DatadogConfig, + ] = Field() + + +model_rebuild(EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody) + +__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody",) 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 3570c3d93..7d7c33f16 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0883.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0883.py @@ -12,22 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" +class EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422(GitHubModel): + """EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422""" - users: list[str] = Field( - description="The usernames of the users to remove from the cost center." - ) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody -) +model_rebuild(EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422) -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody", -) +__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422",) 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 064f62dd7..44749ade7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0884.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0884.py @@ -16,20 +16,14 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons - e200 - """ +class EnterprisesEnterpriseCodeScanningAlertsGetResponse503(GitHubModel): + """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" + code: Missing[str] = Field(default=UNSET) message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 -) +model_rebuild(EnterprisesEnterpriseCodeScanningAlertsGetResponse503) -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200", -) +__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",) 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 199114879..6b2cb34d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0885.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0885.py @@ -13,37 +13,112 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0059 import CodeScanningDefaultSetupOptions -class GistsPostBody(GitHubModel): - """GistsPostBody""" - description: Missing[str] = Field( - default=UNSET, description="Description of the gist" +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + + name: str = Field( + description="The name of the code security configuration. Must be unique within the enterprise." ) - files: GistsPostBodyPropFiles = Field( - description="Names and content for the files that make up the gist" + description: str = Field( + max_length=255, 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" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non provider patterns", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" ) - public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) - -class GistsPostBodyPropFiles(ExtraGitHubModel): - """GistsPostBodyPropFiles - Names and content for the files that make up the gist +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu + bmitActionOptions - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} + Feature options for Automatic dependency submission """ + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) + -model_rebuild(GistsPostBody) -model_rebuild(GistsPostBodyPropFiles) +model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsPostBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions +) __all__ = ( - "GistsPostBody", - "GistsPostBodyPropFiles", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", ) 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 3d4986472..16b4fb4b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0886.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0886.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,27 +17,114 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class GistsGistIdGetResponse403(GitHubModel): - """GistsGistIdGetResponse403""" - - block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -class GistsGistIdGetResponse403PropBlock(GitHubModel): - """GistsGistIdGetResponse403PropBlock""" - - reason: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - html_url: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(GistsGistIdGetResponse403) -model_rebuild(GistsGistIdGetResponse403PropBlock) +from .group_0059 import CodeScanningDefaultSetupOptions + + +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique across the enterprise.", + ) + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", + ) + advanced_security: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security. Must be set to enabled if you want to enable any GHAS settings.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non-provider patterns", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + + +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen + dencyGraphAutosubmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) + + +model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions +) __all__ = ( - "GistsGistIdGetResponse403", - "GistsGistIdGetResponse403PropBlock", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", ) 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 4c7da0217..e3ab1c255 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0887.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0887.py @@ -9,46 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdPatchBody(GitHubModel): - """GistsGistIdPatchBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - description: Missing[str] = Field( - default=UNSET, description="The description of the gist." - ) - files: Missing[GistsGistIdPatchBodyPropFiles] = Field( - default=UNSET, - description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.", + scope: Literal["all", "all_without_configurations"] = Field( + description="The type of repositories to attach the configuration to." ) -class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): - """GistsGistIdPatchBodyPropFiles - - The gist files to be updated, renamed, or deleted. Each `key` must match the - current filename - (including extension) of the targeted gist file. For example: `hello.py`. - - To delete a file, set the whole file to null. For example: `hello.py : null`. - The file will also be - deleted if the specified object does not contain at least one of `content` or - `filename`. - - Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} - """ - - -model_rebuild(GistsGistIdPatchBody) -model_rebuild(GistsGistIdPatchBodyPropFiles) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody +) __all__ = ( - "GistsGistIdPatchBody", - "GistsGistIdPatchBodyPropFiles", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", ) 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 4da522baf..d990f81b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0888.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0888.py @@ -9,17 +9,32 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class GistsGistIdCommentsPostBody(GitHubModel): - """GistsGistIdCommentsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - body: str = Field(max_length=65535, description="The comment text.") + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( + default=UNSET, + description="Specify which types of repository this security configuration should be applied to by default.", + ) -model_rebuild(GistsGistIdCommentsPostBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody +) -__all__ = ("GistsGistIdCommentsPostBody",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", +) 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 6b63828a9..08ee0e378 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0889.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0889.py @@ -9,17 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0058 import CodeSecurityConfiguration -class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): - """GistsGistIdCommentsCommentIdPatchBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons + e200 + """ - body: str = Field(max_length=65535, description="The comment text.") + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( + default=UNSET, + description="Specifies which types of repository this security configuration is applied to by default.", + ) + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" + ) -model_rebuild(GistsGistIdCommentsCommentIdPatchBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 +) -__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", +) 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 c642ead3b..70b92e1f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0890.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0890.py @@ -9,13 +9,50 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild - - -class GistsGistIdStarGetResponse404(GitHubModel): - """GistsGistIdStarGetResponse404""" +from typing import Union +from pydantic import Field -model_rebuild(GistsGistIdStarGetResponse404) - -__all__ = ("GistsGistIdStarGetResponse404",) +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody(GitHubModel): + """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" + + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether GitHub Advanced Security is automatically enabled for new repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', + ) + advanced_security_enabled_new_user_namespace_repos: Missing[bool] = Field( + default=UNSET, + description='Whether GitHub Advanced Security is automatically enabled for new user namespace repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether Dependabot alerts are automatically enabled for new repositories. For more information, see "[About Dependabot alerts](https://docs.github.com/enterprise-cloud@latest//code-security/dependabot/dependabot-alerts/about-dependabot-alerts)."', + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning is automatically enabled for new repositories. For more information, see "[About secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/about-secret-scanning)."', + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning push protection is automatically enabled for new repositories. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', + ) + secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( + default=UNSET, + description='The URL that will be displayed to contributors who are blocked from pushing a secret. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."\nTo disable this functionality, set this field to `null`.', + ) + secret_scanning_non_provider_patterns_enabled_for_new_repositories: Missing[ + Union[bool, None] + ] = Field( + default=UNSET, + description="Whether secret scanning of non-provider patterns is enabled for new repositories under this enterprise.", + ) + + +model_rebuild(EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody) + +__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",) 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 1011e6b4c..e4e61c540 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0891.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0891.py @@ -15,17 +15,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0019 import Repository +from .group_0066 import CopilotSeatDetails -class InstallationRepositoriesGetResponse200(GitHubModel): - """InstallationRepositoriesGetResponse200""" +class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200(GitHubModel): + """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" - total_count: int = Field() - repositories: list[Repository] = Field() - repository_selection: Missing[str] = Field(default=UNSET) + total_seats: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot seats the enterprise is being billed for. Users with access through multiple organizations or enterprise teams are only counted once.", + ) + seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(InstallationRepositoriesGetResponse200) +model_rebuild(EnterprisesEnterpriseCopilotBillingSeatsGetResponse200) -__all__ = ("InstallationRepositoriesGetResponse200",) +__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",) 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 d2f8fe721..8afab0f81 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0892.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0892.py @@ -9,28 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0075 import NetworkConfiguration -class MarkdownPostBody(GitHubModel): - """MarkdownPostBody""" +class EnterprisesEnterpriseNetworkConfigurationsGetResponse200(GitHubModel): + """EnterprisesEnterpriseNetworkConfigurationsGetResponse200""" - text: str = Field(description="The Markdown text to render in HTML.") - mode: Missing[Literal["markdown", "gfm"]] = Field( - default=UNSET, description="The rendering mode." - ) - context: Missing[str] = Field( - default=UNSET, - description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", - ) + total_count: int = Field() + network_configurations: list[NetworkConfiguration] = Field() -model_rebuild(MarkdownPostBody) +model_rebuild(EnterprisesEnterpriseNetworkConfigurationsGetResponse200) -__all__ = ("MarkdownPostBody",) +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200",) 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 a88d20422..5ea5ada2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0893.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0893.py @@ -9,27 +9,32 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class NotificationsPutBody(GitHubModel): - """NotificationsPutBody""" +class EnterprisesEnterpriseNetworkConfigurationsPostBody(GitHubModel): + """EnterprisesEnterpriseNetworkConfigurationsPostBody""" - last_read_at: Missing[datetime] = Field( + name: str = Field( + description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, `.`, `-`, and `_`." + ) + compute_service: Missing[Literal["none", "actions"]] = Field( default=UNSET, - description="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 hosted compute service to use for the network configuration.", ) - read: Missing[bool] = Field( - default=UNSET, description="Whether the notification has been read." + network_settings_ids: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", ) -model_rebuild(NotificationsPutBody) +model_rebuild(EnterprisesEnterpriseNetworkConfigurationsPostBody) -__all__ = ("NotificationsPutBody",) +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsPostBody",) 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 671e9e3a2..86c037245 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0894.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0894.py @@ -9,19 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class NotificationsPutResponse202(GitHubModel): - """NotificationsPutResponse202""" +class EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody( + GitHubModel +): + """EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody""" - message: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, + description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, `.`, `-`, and `_`.", + ) + compute_service: Missing[Literal["none", "actions"]] = Field( + default=UNSET, + description="The hosted compute service to use for the network configuration.", + ) + network_settings_ids: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", + ) -model_rebuild(NotificationsPutResponse202) +model_rebuild(EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody) -__all__ = ("NotificationsPutResponse202",) +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody",) 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 0d1f3d378..17ca998dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0895.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0895.py @@ -11,19 +11,21 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from .group_0077 import CustomProperty -class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): - """NotificationsThreadsThreadIdSubscriptionPutBody""" - ignored: Missing[bool] = Field( - default=UNSET, description="Whether to block all notifications from a thread." +class EnterprisesEnterprisePropertiesSchemaPatchBody(GitHubModel): + """EnterprisesEnterprisePropertiesSchemaPatchBody""" + + properties: list[CustomProperty] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The array of custom properties to create or update.", ) -model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) +model_rebuild(EnterprisesEnterprisePropertiesSchemaPatchBody) -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) +__all__ = ("EnterprisesEnterprisePropertiesSchemaPatchBody",) 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 2d93e34be..9c13ed833 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0896.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0896.py @@ -9,24 +9,98 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import OrganizationCustomRepositoryRole +from .group_0079 import RepositoryRulesetBypassActor +from .group_0090 import EnterpriseRulesetConditionsOneof0 +from .group_0091 import EnterpriseRulesetConditionsOneof1 +from .group_0092 import EnterpriseRulesetConditionsOneof2 +from .group_0093 import EnterpriseRulesetConditionsOneof3 +from .group_0094 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0095 import RepositoryRuleUpdate +from .group_0097 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0098 import RepositoryRuleMergeQueue +from .group_0100 import RepositoryRuleRequiredDeployments +from .group_0103 import RepositoryRulePullRequest +from .group_0105 import RepositoryRuleRequiredStatusChecks +from .group_0107 import RepositoryRuleCommitMessagePattern +from .group_0109 import RepositoryRuleCommitAuthorEmailPattern +from .group_0111 import RepositoryRuleCommitterEmailPattern +from .group_0113 import RepositoryRuleBranchNamePattern +from .group_0115 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRuleCodeScanning +from .group_0122 import RepositoryRuleOneof18 -class OrganizationsOrganizationIdCustomRolesGetResponse200(GitHubModel): - """OrganizationsOrganizationIdCustomRolesGetResponse200""" +class EnterprisesEnterpriseRulesetsPostBody(GitHubModel): + """EnterprisesEnterpriseRulesetsPostBody""" - total_count: Missing[int] = Field( - default=UNSET, description="The number of custom roles in this organization" + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + EnterpriseRulesetConditionsOneof0, + EnterpriseRulesetConditionsOneof1, + EnterpriseRulesetConditionsOneof2, + EnterpriseRulesetConditionsOneof3, + ] + ] = Field( + default=UNSET, + title="Enterprise ruleset conditions", + description="Conditions for an enterprise ruleset. The conditions object should contain either the `organization_id` or `organization_name` property and the `repository_name` or `repository_property` property. For branch and tag rulesets, the conditions object should also contain the `ref_name` property.", ) - custom_roles: Missing[list[OrganizationCustomRepositoryRole]] = Field(default=UNSET) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrganizationsOrganizationIdCustomRolesGetResponse200) +model_rebuild(EnterprisesEnterpriseRulesetsPostBody) -__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200",) +__all__ = ("EnterprisesEnterpriseRulesetsPostBody",) 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 b8e82fcda..99f934574 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0897.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0897.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,128 +17,91 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0079 import RepositoryRulesetBypassActor +from .group_0090 import EnterpriseRulesetConditionsOneof0 +from .group_0091 import EnterpriseRulesetConditionsOneof1 +from .group_0092 import EnterpriseRulesetConditionsOneof2 +from .group_0093 import EnterpriseRulesetConditionsOneof3 +from .group_0094 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0095 import RepositoryRuleUpdate +from .group_0097 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0098 import RepositoryRuleMergeQueue +from .group_0100 import RepositoryRuleRequiredDeployments +from .group_0103 import RepositoryRulePullRequest +from .group_0105 import RepositoryRuleRequiredStatusChecks +from .group_0107 import RepositoryRuleCommitMessagePattern +from .group_0109 import RepositoryRuleCommitAuthorEmailPattern +from .group_0111 import RepositoryRuleCommitterEmailPattern +from .group_0113 import RepositoryRuleBranchNamePattern +from .group_0115 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRuleCodeScanning +from .group_0122 import RepositoryRuleOneof18 -class OrgsOrgPatchBody(GitHubModel): - """OrgsOrgPatchBody""" - billing_email: Missing[str] = Field( - default=UNSET, - description="Billing email address. This address is not publicized.", - ) - company: Missing[str] = Field(default=UNSET, description="The company name.") - email: Missing[str] = Field( - default=UNSET, description="The publicly visible email address." - ) - twitter_username: Missing[str] = Field( - default=UNSET, description="The Twitter username of the company." - ) - location: Missing[str] = Field(default=UNSET, description="The location.") - name: Missing[str] = Field( - default=UNSET, description="The shorthand name of the company." - ) - description: Missing[str] = Field( - default=UNSET, - description="The description of the company. The maximum size is 160 characters.", - ) - has_organization_projects: Missing[bool] = Field( - default=UNSET, - description="Whether an organization can use organization projects.", - ) - has_repository_projects: Missing[bool] = Field( - default=UNSET, - description="Whether repositories that belong to the organization can use repository projects.", - ) - default_repository_permission: Missing[ - Literal["read", "write", "admin", "none"] - ] = Field( - default=UNSET, - description="Default permission level members have for organization repositories.", - ) - members_can_create_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", - ) - members_can_create_internal_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', +class EnterprisesEnterpriseRulesetsRulesetIdPutBody(GitHubModel): + """EnterprisesEnterpriseRulesetsRulesetIdPutBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" ) - members_can_create_private_repositories: Missing[bool] = Field( + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( default=UNSET, - description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", ) - members_can_create_public_repositories: Missing[bool] = Field( + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + description="The actors that can bypass the rules in this ruleset", ) - members_allowed_repository_creation_type: Missing[ - Literal["all", "private", "none"] + conditions: Missing[ + Union[ + EnterpriseRulesetConditionsOneof0, + EnterpriseRulesetConditionsOneof1, + EnterpriseRulesetConditionsOneof2, + EnterpriseRulesetConditionsOneof3, + ] ] = Field( default=UNSET, - description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", - ) - members_can_create_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_public_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_private_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_fork_private_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can fork private organization repositories.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", - ) - blog: Missing[str] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", - ) - secret_scanning_push_protection_custom_link: Missing[str] = Field( - default=UNSET, - description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", - ) - secret_scanning_validity_checks_enabled: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", - ) - deploy_keys_enabled_for_repositories: Missing[bool] = Field( - default=UNSET, - description="Controls whether or not deploy keys may be added and used for repositories in the organization.", - ) + title="Enterprise ruleset conditions", + description="Conditions for an enterprise ruleset. The conditions object should contain either the `organization_id` or `organization_name` property and the `repository_name` or `repository_property` property. For branch and tag rulesets, the conditions object should also contain the `ref_name` property.", + ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgPatchBody) +model_rebuild(EnterprisesEnterpriseRulesetsRulesetIdPutBody) -__all__ = ("OrgsOrgPatchBody",) +__all__ = ("EnterprisesEnterpriseRulesetsRulesetIdPutBody",) 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 83117a7e2..51d4ed664 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0898.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0898.py @@ -14,34 +14,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" - total_count: int = Field() - repository_cache_usages: list[ActionsCacheUsageByRepository] = Field() - - -class ActionsCacheUsageByRepository(GitHubModel): - """Actions Cache Usage by repository - - GitHub Actions Cache Usage by repository. - """ - - full_name: str = Field( - description="The repository owner and name for the cache usage being shown." - ) - active_caches_size_in_bytes: int = Field( - description="The sum of the size in bytes of all the active cache items in the repository." - ) - active_caches_count: int = Field( - description="The number of active caches in the repository." + users: list[str] = Field( + description="The usernames of the users to add to the cost center." ) -model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) -model_rebuild(ActionsCacheUsageByRepository) +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody +) __all__ = ( - "ActionsCacheUsageByRepository", - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody", ) 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 5069b6316..74ff17176 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0899.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0899.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,18 +16,20 @@ from githubkit.utils import UNSET -class OrgsOrgActionsPermissionsPutBody(GitHubModel): - """OrgsOrgActionsPermissionsPutBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 + 00 + """ - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) + message: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsPermissionsPutBody) +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 +) -__all__ = ("OrgsOrgActionsPermissionsPutBody",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200", +) 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 26cd8ded6..3570c3d93 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0900.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0900.py @@ -13,16 +13,21 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0019 import Repository +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" -class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + users: list[str] = Field( + description="The usernames of the users to remove from the cost center." + ) - total_count: float = Field() - repositories: list[Repository] = Field() +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody +) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody", +) 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 a77afe01a..064f62dd7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0901.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0901.py @@ -12,16 +12,24 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons + e200 + """ - selected_repository_ids: list[int] = Field( - description="List of repository IDs to enable for GitHub Actions." - ) + message: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 +) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200", +) 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 4886cc1ee..199114879 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0902.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0902.py @@ -9,54 +9,41 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsGetResponse200""" +class GistsPostBody(GitHubModel): + """GistsPostBody""" - total_count: float = Field() - runner_groups: list[RunnerGroupsOrg] = Field() + description: Missing[str] = Field( + default=UNSET, description="Description of the gist" + ) + files: GistsPostBodyPropFiles = Field( + description="Names and content for the files that make up the gist" + ) + public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) -class RunnerGroupsOrg(GitHubModel): - """RunnerGroupsOrg""" +class GistsPostBodyPropFiles(ExtraGitHubModel): + """GistsPostBodyPropFiles - id: float = Field() - name: str = Field() - visibility: str = Field() - default: bool = Field() - selected_repositories_url: Missing[str] = Field( - default=UNSET, - description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", - ) - runners_url: str = Field() - hosted_runners_url: Missing[str] = Field(default=UNSET) - inherited: bool = Field() - inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) - allows_public_repositories: bool = Field() - workflow_restrictions_read_only: Missing[bool] = Field( - default=UNSET, - description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) + Names and content for the files that make up the gist + + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ -model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsOrg) +model_rebuild(GistsPostBody) +model_rebuild(GistsPostBodyPropFiles) __all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200", - "RunnerGroupsOrg", + "GistsPostBody", + "GistsPostBodyPropFiles", ) 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 2536667a6..3d4986472 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0903.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0903.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,35 +18,26 @@ from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsPostBody""" - - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="List of repository IDs that can access the runner group.", - ) - runners: Missing[list[int]] = Field( - default=UNSET, description="List of runner IDs to add to the runner group." - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) - - -model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) - -__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) +class GistsGistIdGetResponse403(GitHubModel): + """GistsGistIdGetResponse403""" + + block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + + +class GistsGistIdGetResponse403PropBlock(GitHubModel): + """GistsGistIdGetResponse403PropBlock""" + + reason: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + html_url: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(GistsGistIdGetResponse403) +model_rebuild(GistsGistIdGetResponse403PropBlock) + +__all__ = ( + "GistsGistIdGetResponse403", + "GistsGistIdGetResponse403PropBlock", +) 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 ebcee8218..4c7da0217 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0904.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0904.py @@ -9,37 +9,46 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" +class GistsGistIdPatchBody(GitHubModel): + """GistsGistIdPatchBody""" - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.", - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + description: Missing[str] = Field( + default=UNSET, description="The description of the gist." ) - selected_workflows: Missing[list[str]] = Field( + files: Missing[GistsGistIdPatchBodyPropFiles] = Field( default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.", ) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) +class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): + """GistsGistIdPatchBodyPropFiles + + The gist files to be updated, renamed, or deleted. Each `key` must match the + current filename + (including extension) of the targeted gist file. For example: `hello.py`. + + To delete a file, set the whole file to null. For example: `hello.py : null`. + The file will also be + deleted if the specified object does not contain at least one of `content` or + `filename`. + + Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} + """ + + +model_rebuild(GistsGistIdPatchBody) +model_rebuild(GistsGistIdPatchBodyPropFiles) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) +__all__ = ( + "GistsGistIdPatchBody", + "GistsGistIdPatchBodyPropFiles", +) 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 b3d360e2f..4da522baf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0905.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0905.py @@ -13,16 +13,13 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0147 import MinimalRepository +class GistsGistIdCommentsPostBody(GitHubModel): + """GistsGistIdCommentsPostBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + body: str = Field(max_length=65535, description="The comment text.") - total_count: float = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(GistsGistIdCommentsPostBody) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) +__all__ = ("GistsGistIdCommentsPostBody",) 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 9316f516b..6b63828a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0906.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0906.py @@ -14,14 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" +class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): + """GistsGistIdCommentsCommentIdPatchBody""" - selected_repository_ids: list[int] = Field( - description="List of repository IDs that can access the runner group." - ) + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) +model_rebuild(GistsGistIdCommentsCommentIdPatchBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) 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 c51605214..c642ead3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0907.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0907.py @@ -9,20 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from .group_0036 import Runner - - -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - total_count: float = Field() - runners: list[Runner] = Field() +class GistsGistIdStarGetResponse404(GitHubModel): + """GistsGistIdStarGetResponse404""" -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) +model_rebuild(GistsGistIdStarGetResponse404) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) +__all__ = ("GistsGistIdStarGetResponse404",) 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 fdc59a741..31a724d8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0908.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0908.py @@ -12,16 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0020 import Repository -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: list[int] = Field( - description="List of runner IDs to add to the runner group." - ) +class InstallationRepositoriesGetResponse200(GitHubModel): + """InstallationRepositoriesGetResponse200""" + total_count: int = Field() + repositories: list[Repository] = Field() + repository_selection: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) +model_rebuild(InstallationRepositoriesGetResponse200) + +__all__ = ("InstallationRepositoriesGetResponse200",) 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 1dc0df49d..d2f8fe721 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0909.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0909.py @@ -9,20 +9,28 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0036 import Runner +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersGetResponse200""" +class MarkdownPostBody(GitHubModel): + """MarkdownPostBody""" - total_count: int = Field() - runners: list[Runner] = Field() + text: str = Field(description="The Markdown text to render in HTML.") + mode: Missing[Literal["markdown", "gfm"]] = Field( + default=UNSET, description="The rendering mode." + ) + context: Missing[str] = Field( + default=UNSET, + description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", + ) -model_rebuild(OrgsOrgActionsRunnersGetResponse200) +model_rebuild(MarkdownPostBody) -__all__ = ("OrgsOrgActionsRunnersGetResponse200",) +__all__ = ("MarkdownPostBody",) 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 f7baba749..a88d20422 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0910.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0910.py @@ -9,31 +9,27 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class NotificationsPutBody(GitHubModel): + """NotificationsPutBody""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( + last_read_at: Missing[datetime] = Field( default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", + description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + ) + read: Missing[bool] = Field( + default=UNSET, description="Whether the notification has been read." ) -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) +model_rebuild(NotificationsPutBody) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("NotificationsPutBody",) 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 ad2f375a8..671e9e3a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0911.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0911.py @@ -11,18 +11,17 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class NotificationsPutResponse202(GitHubModel): + """NotificationsPutResponse202""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", - ) + message: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(NotificationsPutResponse202) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("NotificationsPutResponse202",) 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 f5caa1c57..0d1f3d378 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0912.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0912.py @@ -11,19 +11,19 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" +class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): + """NotificationsThreadsThreadIdSubscriptionPutBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", + ignored: Missing[bool] = Field( + default=UNSET, description="Whether to block all notifications from a thread." ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) 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 80c1e6af7..8393a67d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0913.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0913.py @@ -9,42 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0157 import OrganizationCustomRepositoryRole -class OrgsOrgActionsSecretsGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[OrganizationActionsSecret] = Field() - - -class OrganizationActionsSecret(GitHubModel): - """Actions Secret for an Organization - Secrets for GitHub Actions for an organization. - """ +class OrganizationsOrganizationIdCustomRolesGetResponse200(GitHubModel): + """OrganizationsOrganizationIdCustomRolesGetResponse200""" - 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(OrgsOrgActionsSecretsGetResponse200) -model_rebuild(OrganizationActionsSecret) +model_rebuild(OrganizationsOrganizationIdCustomRolesGetResponse200) -__all__ = ( - "OrganizationActionsSecret", - "OrgsOrgActionsSecretsGetResponse200", -) +__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200",) 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 4a17aaba5..b8e82fcda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0914.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0914.py @@ -18,26 +18,127 @@ from githubkit.utils import UNSET -class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class OrgsOrgPatchBody(GitHubModel): + """OrgsOrgPatchBody""" - 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})$", + billing_email: Missing[str] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-organization-public-key) endpoint.", + description="Billing email address. This address is not publicized.", ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + company: Missing[str] = Field(default=UNSET, description="The company name.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address." ) - 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." + twitter_username: Missing[str] = Field( + default=UNSET, description="The Twitter username of the company." ) - selected_repository_ids: Missing[list[int]] = Field( + location: Missing[str] = Field(default=UNSET, description="The location.") + name: Missing[str] = Field( + default=UNSET, description="The shorthand name of the company." + ) + description: Missing[str] = Field( + default=UNSET, + description="The description of the company. The maximum size is 160 characters.", + ) + has_organization_projects: Missing[bool] = Field( + default=UNSET, + description="Whether an organization can use organization projects.", + ) + has_repository_projects: Missing[bool] = Field( + default=UNSET, + description="Whether repositories that belong to the organization can use repository projects.", + ) + default_repository_permission: Missing[ + Literal["read", "write", "admin", "none"] + ] = Field( + default=UNSET, + description="Default permission level members have for organization repositories.", + ) + members_can_create_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", + ) + members_can_create_internal_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_private_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_public_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_allowed_repository_creation_type: Missing[ + Literal["all", "private", "none"] + ] = Field( + default=UNSET, + description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", + ) + members_can_create_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_create_public_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_create_private_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_fork_private_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can fork private organization repositories.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", + ) + blog: Missing[str] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", + ) + secret_scanning_push_protection_custom_link: Missing[str] = Field( + default=UNSET, + description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", + ) + secret_scanning_validity_checks_enabled: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", + ) + deploy_keys_enabled_for_repositories: Missing[bool] = Field( default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + description="Controls whether or not deploy keys may be added and used for repositories in the organization.", ) -model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) +model_rebuild(OrgsOrgPatchBody) -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgPatchBody",) 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 e7c9b55c6..83117a7e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0915.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0915.py @@ -13,16 +13,35 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0147 import MinimalRepository - -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" total_count: int = Field() - repositories: list[MinimalRepository] = Field() + repository_cache_usages: list[ActionsCacheUsageByRepository] = Field() + + +class ActionsCacheUsageByRepository(GitHubModel): + """Actions Cache Usage by repository + + GitHub Actions Cache Usage by repository. + """ + + full_name: str = Field( + description="The repository owner and name for the cache usage being shown." + ) + active_caches_size_in_bytes: int = Field( + description="The sum of the size in bytes of all the active cache items in the repository." + ) + active_caches_count: int = Field( + description="The number of active caches in the repository." + ) -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) +model_rebuild(ActionsCacheUsageByRepository) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ( + "ActionsCacheUsageByRepository", + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", +) 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 6c85f7a46..0a765645b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0916.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0916.py @@ -13,15 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0031 import ActionsHostedRunner -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." - ) +class OrgsOrgActionsHostedRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersGetResponse200""" + total_count: int = Field() + runners: list[ActionsHostedRunner] = Field() -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) +model_rebuild(OrgsOrgActionsHostedRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200",) 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 77241a9f2..62a261af1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0917.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0917.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,37 +18,54 @@ from githubkit.utils import UNSET -class OrgsOrgActionsVariablesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesGetResponse200""" +class OrgsOrgActionsHostedRunnersPostBody(GitHubModel): + """OrgsOrgActionsHostedRunnersPostBody""" - total_count: int = Field() - variables: list[OrganizationActionsVariable] = Field() + name: str = Field( + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + ) + image: OrgsOrgActionsHostedRunnersPostBodyPropImage = Field( + description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." + ) + size: str = Field( + description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" + ) + runner_group_id: int = Field( + description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) -class OrganizationActionsVariable(GitHubModel): - """Actions Variable for an Organization +class OrgsOrgActionsHostedRunnersPostBodyPropImage(GitHubModel): + """OrgsOrgActionsHostedRunnersPostBodyPropImage - Organization variable for GitHub Actions. + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. """ - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + id: Missing[str] = Field( + default=UNSET, description="The unique identifier of the runner image." ) - updated_at: datetime = Field( - description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + source: Missing[Literal["github", "partner", "custom"]] = Field( + default=UNSET, description="The source of the runner image." ) - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a variable" + version: Missing[Union[str, None]] = Field( + default=UNSET, + description="The version of the runner image to deploy. This is relevant only for runners using custom images.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsVariablesGetResponse200) -model_rebuild(OrganizationActionsVariable) +model_rebuild(OrgsOrgActionsHostedRunnersPostBody) +model_rebuild(OrgsOrgActionsHostedRunnersPostBodyPropImage) __all__ = ( - "OrganizationActionsVariable", - "OrgsOrgActionsVariablesGetResponse200", + "OrgsOrgActionsHostedRunnersPostBody", + "OrgsOrgActionsHostedRunnersPostBodyPropImage", ) 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 42955f682..0a433f7b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0918.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0918.py @@ -9,29 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0032 import ActionsHostedRunnerImage -class OrgsOrgActionsVariablesPostBody(GitHubModel): - """OrgsOrgActionsVariablesPostBody""" +class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", - ) + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(OrgsOrgActionsVariablesPostBody) +model_rebuild(OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200) -__all__ = ("OrgsOrgActionsVariablesPostBody",) +__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",) 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 f229885c2..77ba74660 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0919.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0919.py @@ -9,30 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0032 import ActionsHostedRunnerImage -class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): - """OrgsOrgActionsVariablesNamePatchBody""" +class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") - visibility: Missing[Literal["all", "private", "selected"]] = Field( - default=UNSET, - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", - ) + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(OrgsOrgActionsVariablesNamePatchBody) +model_rebuild(OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200) -__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) +__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",) 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 afc860d57..6934fa162 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0920.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0920.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0147 import MinimalRepository +from .group_0030 import ActionsHostedRunnerMachineSpec -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" +class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" total_count: int = Field() - repositories: list[MinimalRepository] = Field() + machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersMachineSizesGetResponse200) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",) 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 4c5d80233..1a2bc561d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0921.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0921.py @@ -14,14 +14,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgActionsHostedRunnersPlatformsGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" - selected_repository_ids: list[int] = Field( - description="The IDs of the repositories that can access the organization variable." - ) + total_count: int = Field() + platforms: list[str] = Field() -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) +model_rebuild(OrgsOrgActionsHostedRunnersPlatformsGetResponse200) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) +__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",) 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 6f5195042..6f48450a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0922.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0922.py @@ -9,86 +9,39 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): - """OrgsOrgAttestationsSubjectDigestGetResponse200""" - - attestations: Missing[ - list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) - +class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): + """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems(GitHubModel): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: Missing[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( + name: Missing[str] = Field( default=UNSET, - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + ) + runner_group_id: Missing[int] = Field( + default=UNSET, description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) + image_version: Missing[Union[str, None]] = Field( + default=UNSET, + description="The version of the runner image to deploy. This is relevant only for runners using custom images.", ) - repository_id: Missing[int] = Field(default=UNSET) - bundle_url: Missing[str] = Field(default=UNSET) - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( - GitHubModel -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro - pVerificationMaterial - """ - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro - pDsseEnvelope - """ -model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200) -model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems) -model_rebuild( - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) +model_rebuild(OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody) -__all__ = ( - "OrgsOrgAttestationsSubjectDigestGetResponse200", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) +__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",) 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 844986c59..5069b6316 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0923.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0923.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,162 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0054 import CodeScanningDefaultSetupOptions +class OrgsOrgActionsPermissionsPutBody(GitHubModel): + """OrgsOrgActionsPermissionsPutBody""" -class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsPostBody""" - - name: str = Field( - description="The name of the code security configuration. Must be unique within the organization." - ) - description: str = Field( - max_length=255, description="A description of the code security configuration" - ) - advanced_security: Missing[Literal["enabled", "disabled"]] = 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" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( default=UNSET, - description="The enablement status of secret scanning non provider patterns", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti - ons - - Feature options for Automatic dependency submission - """ - - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - s - - Feature options for secret scanning delegated bypass - """ - - reviewers: Missing[ - list[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems - ] - ] = Field( - default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - sPropReviewersItems - """ - - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(OrgsOrgActionsPermissionsPutBody) -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsPostBody", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("OrgsOrgActionsPermissionsPutBody",) 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 4bcc6720d..422588e8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0924.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0924.py @@ -12,19 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0020 import Repository -class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs to detach from configurations.", - ) +class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + total_count: float = Field() + repositories: list[Repository] = Field() -model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) 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 08d0e0ac4..a77afe01a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0925.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0925.py @@ -9,173 +9,19 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0054 import CodeScanningDefaultSetupOptions - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique within the organization.", - ) - description: Missing[str] = Field( - max_length=255, - default=UNSET, - description="A description of the code security configuration", - ) - advanced_security: Missing[Literal["enabled", "disabled"]] = 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" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto - submitActionOptions - Feature options for Automatic dependency submission - """ - - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) +class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: Missing[ - list[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems - ] - ] = Field( - default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptionsPropReviewersItems - """ - - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" + selected_repository_ids: list[int] = Field( + description="List of repository IDs to enable for GitHub Actions." ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) 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 3e150ccc7..269bdfc1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0926.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0926.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,20 +16,51 @@ from githubkit.utils import UNSET -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsGetResponse200""" + + total_count: float = Field() + runner_groups: list[RunnerGroupsOrg] = Field() + - scope: Literal[ - "all", "all_without_configurations", "public", "private_or_internal", "selected" - ] = Field( - description="The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`" +class RunnerGroupsOrg(GitHubModel): + """RunnerGroupsOrg""" + + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", + ) + runners_url: str = Field() + hosted_runners_url: Missing[str] = Field(default=UNSET) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", + ) + inherited: bool = Field() + inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( + default=UNSET, + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", ) - selected_repository_ids: Missing[list[int]] = Field( + selected_workflows: Missing[list[str]] = 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="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) +model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsOrg) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200", + "RunnerGroupsOrg", +) 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 b47755cb5..87ecde816 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0927.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0927.py @@ -18,17 +18,39 @@ from githubkit.utils import UNSET -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsPostBody""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( default=UNSET, - description="Specify which types of repository this security configuration should be applied to by default.", + description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="List of repository IDs that can access the runner group.", + ) + runners: Missing[list[int]] = Field( + default=UNSET, description="List of runner IDs to add to the runner group." + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) +model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) 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 9ffb8a3f6..adc28b4f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0928.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0928.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,25 +17,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0053 import CodeSecurityConfiguration +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.", + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( default=UNSET, - description="Specifies which types of repository this security configuration is applied to by default.", + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + network_configuration_id: Missing[Union[str, None]] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) 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 270761692..13bdeac01 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0929.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0929.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0157 import Codespace +from .group_0031 import ActionsHostedRunner -class OrgsOrgCodespacesGetResponse200(GitHubModel): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" - total_count: int = Field() - codespaces: list[Codespace] = Field() + total_count: float = Field() + runners: list[ActionsHostedRunner] = Field() -model_rebuild(OrgsOrgCodespacesGetResponse200) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200) -__all__ = ("OrgsOrgCodespacesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200",) 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 ed7cad665..fe72e3e64 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0930.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0930.py @@ -9,33 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0154 import MinimalRepository -class OrgsOrgCodespacesAccessPutBody(GitHubModel): - """OrgsOrgCodespacesAccessPutBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] = Field( - description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." - ) - selected_usernames: Missing[list[str]] = Field( - max_length=100 if PYDANTIC_V2 else None, - default=UNSET, - description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", - ) + total_count: float = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgCodespacesAccessPutBody) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) -__all__ = ("OrgsOrgCodespacesAccessPutBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) 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 7ae93c749..9316f516b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0931.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0931.py @@ -11,18 +11,17 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - selected_usernames: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The usernames of the organization members whose codespaces be billed to the organization.", + selected_repository_ids: list[int] = Field( + description="List of repository IDs that can access the runner group." ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) 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 0c752f566..2f0ef345f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0932.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0932.py @@ -11,18 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0041 import Runner -class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - selected_usernames: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The usernames of the organization members whose codespaces should not be billed to the organization.", - ) +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: float = Field() + runners: list[Runner] = Field() -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) 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 58a07d080..fdc59a741 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0933.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0933.py @@ -9,49 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[CodespacesOrgSecret] = Field() -class CodespacesOrgSecret(GitHubModel): - """Codespaces Secret +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - 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", + runners: list[int] = Field( + description="List of runner IDs to add to the runner group." ) -model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) -model_rebuild(CodespacesOrgSecret) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ( - "CodespacesOrgSecret", - "OrgsOrgCodespacesSecretsGetResponse200", -) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) 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 e71b0039e..0248cc0dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0934.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0934.py @@ -9,35 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0041 import Runner -class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgActionsRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersGetResponse200""" - 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() + runners: list[Runner] = Field() -model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) +model_rebuild(OrgsOrgActionsRunnersGetResponse200) -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgActionsRunnersGetResponse200",) 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 211a94db8..f7baba749 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0935.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0935.py @@ -11,18 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0147 import MinimalRepository +class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + ) + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", + ) - total_count: int = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) 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 f2bac9ddd..ad2f375a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0936.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0936.py @@ -11,17 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - 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." + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) 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 05d87090d..f5caa1c57 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0937.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0937.py @@ -11,23 +11,19 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0061 import CopilotSeatDetails +class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" -class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): - """OrgsOrgCopilotBillingSeatsGetResponse200""" - - total_seats: Missing[int] = Field( - default=UNSET, - description="Total number of Copilot seats for the organization currently being billed.", + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", ) - seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) 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 f9277a829..80c1e6af7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0938.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0938.py @@ -9,20 +9,42 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgActionsSecretsGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[OrganizationActionsSecret] = Field() + +class OrganizationActionsSecret(GitHubModel): + """Actions Secret for an Organization -class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" + Secrets for GitHub Actions for an organization. + """ - selected_teams: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="List of team names within the organization to which to grant access to GitHub Copilot.", + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) +model_rebuild(OrgsOrgActionsSecretsGetResponse200) +model_rebuild(OrganizationActionsSecret) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) +__all__ = ( + "OrganizationActionsSecret", + "OrgsOrgActionsSecretsGetResponse200", +) 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 225617267..7cafea718 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0939.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0939.py @@ -9,20 +9,32 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - - The total number of seats created for members of the specified team(s). - """ +class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNamePutBody""" - seats_created: int = Field() + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-organization-public-key) endpoint.", + ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) +model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) 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 8f14a6e14..f4c41f73e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0940.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0940.py @@ -11,18 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0154 import MinimalRepository -class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - selected_teams: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="The names of teams from which to revoke access to GitHub Copilot.", - ) +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) 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 137e9507f..6c85f7a46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0941.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0941.py @@ -14,16 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - The total number of seats set to "pending cancellation" for members of the - specified team(s). - """ + selected_repository_ids: list[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." + ) - seats_cancelled: int = Field() +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) 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 6a10dd79f..77241a9f2 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,47 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgActionsVariablesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesGetResponse200""" + + total_count: int = Field() + variables: list[OrganizationActionsVariable] = Field() -class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrganizationActionsVariable(GitHubModel): + """Actions Variable for an Organization - selected_usernames: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="The usernames of the organization members to be granted access to GitHub Copilot.", + Organization variable for GitHub Actions. + """ + + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + created_at: datetime = Field( + description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a variable" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) +model_rebuild(OrgsOrgActionsVariablesGetResponse200) +model_rebuild(OrganizationActionsVariable) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) +__all__ = ( + "OrganizationActionsVariable", + "OrgsOrgActionsVariablesGetResponse200", +) 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 83f481941..42955f682 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0943.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0943.py @@ -9,20 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - - The total number of seats created for the specified user(s). - """ +class OrgsOrgActionsVariablesPostBody(GitHubModel): + """OrgsOrgActionsVariablesPostBody""" - seats_created: int = Field() + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) +model_rebuild(OrgsOrgActionsVariablesPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) +__all__ = ("OrgsOrgActionsVariablesPostBody",) 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 270057c2e..f229885c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0944.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0944.py @@ -9,20 +9,30 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): + """OrgsOrgActionsVariablesNamePatchBody""" - selected_usernames: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="The usernames of the organization members for which to revoke access to GitHub Copilot.", + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + visibility: Missing[Literal["all", "private", "selected"]] = Field( + default=UNSET, + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) +model_rebuild(OrgsOrgActionsVariablesNamePatchBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) 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 ac7addbd5..f527e249b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0945.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0945.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0154 import MinimalRepository -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seats set to "pending cancellation" for the specified users. - """ +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" - seats_cancelled: int = Field() + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) 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 f4dd2d8f5..4c5d80233 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0946.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0946.py @@ -12,21 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0150 import OrganizationCustomRepositoryRole +class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" -class OrgsOrgCustomRepositoryRolesGetResponse200(GitHubModel): - """OrgsOrgCustomRepositoryRolesGetResponse200""" - - total_count: Missing[int] = Field( - default=UNSET, description="The number of custom roles in this organization" + selected_repository_ids: list[int] = Field( + description="The IDs of the repositories that can access the organization variable." ) - custom_roles: Missing[list[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(OrgsOrgCustomRepositoryRolesGetResponse200) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) -__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) 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 a96d49f72..6f5195042 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0947.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0947.py @@ -9,42 +9,86 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsGetResponse200""" +class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" + + attestations: Missing[ + list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems(GitHubModel): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - total_count: int = Field() - secrets: list[OrganizationDependabotSecret] = Field() + bundle: Missing[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = Field( + default=UNSET, + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", + ) + repository_id: Missing[int] = Field(default=UNSET) + bundle_url: Missing[str] = Field(default=UNSET) -class OrganizationDependabotSecret(GitHubModel): - """Dependabot Secret for an Organization +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - Secrets for GitHub Dependabot for an organization. + 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. """ - 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) + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") -model_rebuild(OrgsOrgDependabotSecretsGetResponse200) -model_rebuild(OrganizationDependabotSecret) +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro + pVerificationMaterial + """ + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro + pDsseEnvelope + """ + + +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) __all__ = ( - "OrganizationDependabotSecret", - "OrgsOrgDependabotSecretsGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", ) 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 83753c512..611c38dec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0948.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0948.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,27 +17,162 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0059 import CodeScanningDefaultSetupOptions -class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNamePutBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", +class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + + name: str = Field( + description="The name of the code security configuration. Must be unique within the organization." + ) + description: str = Field( + max_length=255, description="A description of the code security configuration" + ) + advanced_security: Missing[Literal["enabled", "disabled"]] = 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" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-an-organization-public-key) endpoint.", + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" ) - 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." + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated bypass", + ) + secret_scanning_delegated_bypass_options: Missing[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions + ] = Field( + default=UNSET, + description="Feature options for secret scanning delegated bypass", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non provider patterns", ) - selected_repository_ids: Missing[list[str]] = Field( + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/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="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti + ons + + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + s + + Feature options for secret scanning delegated bypass + """ + + reviewers: Missing[ + list[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems + ] + ] = Field( + default=UNSET, + description="The bypass reviewers for secret scanning delegated bypass", + ) + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + sPropReviewersItems + """ + + reviewer_id: int = Field( + description="The ID of the team or role selected as a bypass reviewer" + ) + reviewer_type: Literal["TEAM", "ROLE"] = Field( + description="The type of the bypass reviewer" ) -model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsPostBody", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", +) 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 6b44fe124..4bcc6720d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0949.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0949.py @@ -12,17 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0147 import MinimalRepository +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs to detach from configurations.", + ) - total_count: int = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) 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 1d8e42f73..2f418ebf1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0950.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0950.py @@ -9,19 +9,173 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0059 import CodeScanningDefaultSetupOptions + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique within the organization.", + ) + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", + ) + advanced_security: Missing[Literal["enabled", "disabled"]] = 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" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated bypass", + ) + secret_scanning_delegated_bypass_options: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions + ] = Field( + default=UNSET, + description="Feature options for secret scanning delegated bypass", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non-provider patterns", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto + submitActionOptions -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) - 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 OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: Missing[ + list[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems + ] + ] = Field( + default=UNSET, + description="The bypass reviewers for secret scanning delegated bypass", + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptionsPropReviewersItems + """ + + reviewer_id: int = Field( + description="The ID of the team or role selected as a bypass reviewer" + ) + reviewer_type: Literal["TEAM", "ROLE"] = Field( + description="The type of the bypass reviewer" ) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", +) 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 f32e08d2a..3e150ccc7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0951.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0951.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,47 +18,20 @@ from githubkit.utils import UNSET -class OrgsOrgHooksPostBody(GitHubModel): - """OrgsOrgHooksPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - name: str = Field(description='Must be passed as "web".') - config: OrgsOrgHooksPostBodyPropConfig = Field( - description="Key/value pairs to provide settings for this webhook." + scope: Literal[ + "all", "all_without_configurations", "public", "private_or_internal", "selected" + ] = Field( + description="The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`" ) - events: Missing[list[str]] = Field( + selected_repository_ids: Missing[list[int]] = 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.', + 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`.", ) - 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(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) -__all__ = ( - "OrgsOrgHooksPostBody", - "OrgsOrgHooksPostBodyPropConfig", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) 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 ddab845d4..b47755cb5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0952.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0952.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,46 +18,17 @@ from githubkit.utils import UNSET -class OrgsOrgHooksHookIdPatchBody(GitHubModel): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( default=UNSET, - description="Key/value pairs to provide settings for this webhook.", + description="Specify which types of repository this security configuration should be applied to by default.", ) - events: Missing[list[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - name: Missing[str] = Field(default=UNSET) - - -class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str = Field(description="The URL to which the payloads will be delivered.") - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdPatchBody) -model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) -__all__ = ( - "OrgsOrgHooksHookIdPatchBody", - "OrgsOrgHooksHookIdPatchBodyPropConfig", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) 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 737eb45c6..8e9f6f5da 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0953.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0953.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,24 +17,25 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0058 import CodeSecurityConfiguration -class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): - """OrgsOrgHooksHookIdConfigPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" + + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="Specifies which types of repository this security configuration is applied to by default.", ) - 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).", + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) -__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) 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 707754e0e..c0aab763c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0954.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0954.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Installation +from .group_0164 import Codespace -class OrgsOrgInstallationsGetResponse200(GitHubModel): - """OrgsOrgInstallationsGetResponse200""" +class OrgsOrgCodespacesGetResponse200(GitHubModel): + """OrgsOrgCodespacesGetResponse200""" total_count: int = Field() - installations: list[Installation] = Field() + codespaces: list[Codespace] = Field() -model_rebuild(OrgsOrgInstallationsGetResponse200) +model_rebuild(OrgsOrgCodespacesGetResponse200) -__all__ = ("OrgsOrgInstallationsGetResponse200",) +__all__ = ("OrgsOrgCodespacesGetResponse200",) 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 17fac965f..ed7cad665 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0955.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0955.py @@ -9,13 +9,33 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild +from typing import Literal +from pydantic import Field -class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) +class OrgsOrgCodespacesAccessPutBody(GitHubModel): + """OrgsOrgCodespacesAccessPutBody""" -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] = Field( + description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." + ) + selected_usernames: Missing[list[str]] = Field( + max_length=100 if PYDANTIC_V2 else None, + default=UNSET, + description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", + ) + + +model_rebuild(OrgsOrgCodespacesAccessPutBody) + +__all__ = ("OrgsOrgCodespacesAccessPutBody",) 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 163abb03c..7ae93c749 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0956.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0956.py @@ -9,38 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgInvitationsPostBody(GitHubModel): - """OrgsOrgInvitationsPostBody""" +class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - 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.", + selected_usernames: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The usernames of the organization members whose codespaces be billed to the organization.", ) -model_rebuild(OrgsOrgInvitationsPostBody) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -__all__ = ("OrgsOrgInvitationsPostBody",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) 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 45d207165..0c752f566 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0957.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0957.py @@ -11,18 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0157 import Codespace +class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" -class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + selected_usernames: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The usernames of the organization members whose codespaces should not be billed to the organization.", + ) - total_count: int = Field() - codespaces: list[Codespace] = Field() +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) - -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) 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 7da7af9d3..58a07d080 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0958.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0958.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -18,15 +19,39 @@ from githubkit.utils import UNSET -class OrgsOrgMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsGetResponse200""" - role: Missing[Literal["admin", "member"]] = Field( + 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 role to give the user in the organization. Can be one of: \n * `admin` - The user will become an owner of the organization. \n * `member` - The user will become a non-owner member of the organization.", + description="The API URL at which the list of repositories this secret is visible to can be retrieved", ) -model_rebuild(OrgsOrgMembershipsUsernamePutBody) +model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) +model_rebuild(CodespacesOrgSecret) -__all__ = ("OrgsOrgMembershipsUsernamePutBody",) +__all__ = ( + "CodespacesOrgSecret", + "OrgsOrgCodespacesSecretsGetResponse200", +) 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 68c6b8f27..e71b0039e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0959.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0959.py @@ -18,46 +18,26 @@ from githubkit.utils import UNSET -class OrgsOrgMigrationsPostBody(GitHubModel): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - 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( + 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="Indicates whether metadata should be excluded and only git source should be included for the migration.", + 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.", ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, - description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." ) - 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).", + 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." ) - exclude: Missing[list[Literal["repositories"]]] = Field( + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="Exclude related items from being returned in the response in order to improve performance of the request.", + description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(OrgsOrgMigrationsPostBody) +model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) -__all__ = ("OrgsOrgMigrationsPostBody",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) 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 93499063e..e11cf38d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0960.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0960.py @@ -12,20 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0154 import MinimalRepository -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.", - ) +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) 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 dc2469b07..f2bac9ddd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0961.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0961.py @@ -9,13 +9,19 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +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." + ) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) 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 523846f85..16a1e93e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0962.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0962.py @@ -15,14 +15,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0066 import CopilotSeatDetails -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +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(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) +model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) + +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200",) 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 8f8247056..f9277a829 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0963.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0963.py @@ -9,33 +9,20 @@ from __future__ import annotations -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - pat_request_ids: Missing[list[int]] = Field( - max_length=100 if PYDANTIC_V2 else None, + selected_teams: list[str] = Field( min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", - ) - action: Literal["approve", "deny"] = Field( - description="Action to apply to the requests." - ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( - default=UNSET, - description="Reason for approving or denying the requests. Max 1024 characters.", + description="List of team names within the organization to which to grant access to GitHub Copilot.", ) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) 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 af6277ed1..225617267 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0964.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0964.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 + + The total number of seats created for members of the specified team(s). + """ - action: Literal["approve", "deny"] = Field( - description="Action to apply to the request." - ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( - default=UNSET, - description="Reason for approving or denying the request. Max 1024 characters.", - ) + seats_created: int = Field() -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) 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 2677c34ff..8f14a6e14 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0965.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0965.py @@ -9,26 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." - ) - pat_ids: list[int] = Field( - max_length=100 if PYDANTIC_V2 else None, + selected_teams: list[str] = Field( min_length=1 if PYDANTIC_V2 else None, - description="The IDs of the fine-grained personal access tokens.", + description="The names of teams from which to revoke access to GitHub Copilot.", ) -model_rebuild(OrgsOrgPersonalAccessTokensPostBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) 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 53f6146e3..137e9507f 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,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 + + The total number of seats set to "pending cancellation" for members of the + specified team(s). + """ - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." - ) + seats_cancelled: int = Field() -model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) 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 fd70d18f0..6a10dd79f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0967.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0967.py @@ -9,46 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgPrivateRegistriesGetResponse200(GitHubModel): - """OrgsOrgPrivateRegistriesGetResponse200""" +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild - total_count: int = Field() - configurations: list[OrgPrivateRegistryConfiguration] = Field() +class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" -class OrgPrivateRegistryConfiguration(GitHubModel): - """Organization private registry - - Private registry configuration for an organization - """ - - name: str = Field(description="The name of the private registry configuration.") - registry_type: Literal["maven_repository"] = Field(description="The registry type.") - username: Missing[Union[str, None]] = Field( - default=UNSET, - description="The username to use when authenticating with the private registry.", - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the private registry." + selected_usernames: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="The usernames of the organization members to be granted access to GitHub Copilot.", ) - created_at: datetime = Field() - updated_at: datetime = Field() -model_rebuild(OrgsOrgPrivateRegistriesGetResponse200) -model_rebuild(OrgPrivateRegistryConfiguration) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -__all__ = ( - "OrgPrivateRegistryConfiguration", - "OrgsOrgPrivateRegistriesGetResponse200", -) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) 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 5e270b1b4..83f481941 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0968.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0968.py @@ -9,37 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgPrivateRegistriesPostBody(GitHubModel): - """OrgsOrgPrivateRegistriesPostBody""" - - registry_type: Literal["maven_repository"] = Field(description="The registry type.") - username: Missing[Union[str, None]] = Field( - default=UNSET, - description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", - ) - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/enterprise-cloud@latest//rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", - ) - key_id: str = Field(description="The ID of the key you used to encrypt the secret.") - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/enterprise-cloud@latest//rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`.", - ) - - -model_rebuild(OrgsOrgPrivateRegistriesPostBody) - -__all__ = ("OrgsOrgPrivateRegistriesPostBody",) + + +class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 + + The total number of seats created for the specified user(s). + """ + + seats_created: int = Field() + + +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) 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 a51c170a5..270057c2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0969.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0969.py @@ -11,16 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgPrivateRegistriesPublicKeyGetResponse200(GitHubModel): - """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" +class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + selected_usernames: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="The usernames of the organization members for which to revoke access to GitHub Copilot.", + ) -model_rebuild(OrgsOrgPrivateRegistriesPublicKeyGetResponse200) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) 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 20c264ef1..ac7addbd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0970.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0970.py @@ -9,43 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgPrivateRegistriesSecretNamePatchBody(GitHubModel): - """OrgsOrgPrivateRegistriesSecretNamePatchBody""" - - registry_type: Missing[Literal["maven_repository"]] = Field( - default=UNSET, description="The registry type." - ) - username: Missing[Union[str, None]] = Field( - default=UNSET, - description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", - ) - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/enterprise-cloud@latest//rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." - ) - visibility: Missing[Literal["all", "private", "selected"]] = Field( - default=UNSET, - description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.", - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. This field should be omitted if `visibility` is set to `all` or `private`.", - ) - - -model_rebuild(OrgsOrgPrivateRegistriesSecretNamePatchBody) - -__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBody",) + + +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 + + The total number of seats set to "pending cancellation" for the specified users. + """ + + seats_cancelled: int = Field() + + +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) 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 ed09aabdb..32c3108ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0971.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0971.py @@ -15,16 +15,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0157 import OrganizationCustomRepositoryRole -class OrgsOrgProjectsPostBody(GitHubModel): - """OrgsOrgProjectsPostBody""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." +class OrgsOrgCustomRepositoryRolesGetResponse200(GitHubModel): + """OrgsOrgCustomRepositoryRolesGetResponse200""" + + total_count: Missing[int] = Field( + default=UNSET, description="The number of custom roles in this organization" ) + custom_roles: Missing[list[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(OrgsOrgProjectsPostBody) +model_rebuild(OrgsOrgCustomRepositoryRolesGetResponse200) -__all__ = ("OrgsOrgProjectsPostBody",) +__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200",) 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 aa2f54ed5..a96d49f72 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0972.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0972.py @@ -9,23 +9,42 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[OrganizationDependabotSecret] = Field() -from .group_0070 import CustomProperty +class OrganizationDependabotSecret(GitHubModel): + """Dependabot Secret for an Organization -class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): - """OrgsOrgPropertiesSchemaPatchBody""" + Secrets for GitHub Dependabot for an organization. + """ - properties: list[CustomProperty] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The array of custom properties to create or update.", + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgPropertiesSchemaPatchBody) +model_rebuild(OrgsOrgDependabotSecretsGetResponse200) +model_rebuild(OrganizationDependabotSecret) -__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) +__all__ = ( + "OrganizationDependabotSecret", + "OrgsOrgDependabotSecretsGetResponse200", +) 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 4edf8119e..83753c512 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0973.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0973.py @@ -9,26 +9,35 @@ from __future__ import annotations -from pydantic import Field +from typing import Literal -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from pydantic import Field -from .group_0190 import CustomPropertyValue +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPropertiesValuesPatchBody(GitHubModel): - """OrgsOrgPropertiesValuesPatchBody""" +class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - repository_names: list[str] = Field( - max_length=30 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of repositories that the custom property values will be applied to.", + 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." ) - properties: list[CustomPropertyValue] = Field( - description="List of custom property names and associated values to apply to the repositories." + selected_repository_ids: Missing[list[str]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(OrgsOrgPropertiesValuesPatchBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -__all__ = ("OrgsOrgPropertiesValuesPatchBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) 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 8a3c986d9..c136a2004 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0974.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0974.py @@ -9,128 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgReposPostBody(GitHubModel): - """OrgsOrgReposPostBody""" +from githubkit.compat import GitHubModel, model_rebuild - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - visibility: Missing[Literal["public", "private", "internal"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Pass `true` to create an initial commit with empty README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', - ) - license_template: Missing[str] = Field( - default=UNSET, - description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/enterprise-cloud@latest//articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( - default=UNSET, - description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) +from .group_0154 import MinimalRepository -class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): - """OrgsOrgReposPostBodyPropCustomProperties +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" - The custom properties for the new repository. The keys are the custom property - names, and the values are the corresponding custom property values. - """ + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgReposPostBody) -model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) -__all__ = ( - "OrgsOrgReposPostBody", - "OrgsOrgReposPostBodyPropCustomProperties", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) 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 88358ece2..1d8e42f73 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0975.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0975.py @@ -9,96 +9,19 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0072 import RepositoryRulesetBypassActor -from .group_0087 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0088 import RepositoryRuleUpdate -from .group_0090 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0091 import RepositoryRuleMergeQueue -from .group_0093 import RepositoryRuleRequiredDeployments -from .group_0096 import RepositoryRulePullRequest -from .group_0098 import RepositoryRuleRequiredStatusChecks -from .group_0100 import RepositoryRuleCommitMessagePattern -from .group_0102 import RepositoryRuleCommitAuthorEmailPattern -from .group_0104 import RepositoryRuleCommitterEmailPattern -from .group_0106 import RepositoryRuleBranchNamePattern -from .group_0108 import RepositoryRuleTagNamePattern -from .group_0111 import RepositoryRuleWorkflows -from .group_0113 import RepositoryRuleCodeScanning -from .group_0115 import RepositoryRuleOneof18 -from .group_0118 import OrgRulesetConditionsOneof0 -from .group_0119 import OrgRulesetConditionsOneof1 -from .group_0120 import OrgRulesetConditionsOneof2 -class OrgsOrgRulesetsPostBody(GitHubModel): - """OrgsOrgRulesetsPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( - default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", + 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." ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgRulesetsPostBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgRulesetsPostBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) 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 ea7ea0161..f32e08d2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0976.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0976.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,89 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0072 import RepositoryRulesetBypassActor -from .group_0087 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0088 import RepositoryRuleUpdate -from .group_0090 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0091 import RepositoryRuleMergeQueue -from .group_0093 import RepositoryRuleRequiredDeployments -from .group_0096 import RepositoryRulePullRequest -from .group_0098 import RepositoryRuleRequiredStatusChecks -from .group_0100 import RepositoryRuleCommitMessagePattern -from .group_0102 import RepositoryRuleCommitAuthorEmailPattern -from .group_0104 import RepositoryRuleCommitterEmailPattern -from .group_0106 import RepositoryRuleBranchNamePattern -from .group_0108 import RepositoryRuleTagNamePattern -from .group_0111 import RepositoryRuleWorkflows -from .group_0113 import RepositoryRuleCodeScanning -from .group_0115 import RepositoryRuleOneof18 -from .group_0118 import OrgRulesetConditionsOneof0 -from .group_0119 import OrgRulesetConditionsOneof1 -from .group_0120 import OrgRulesetConditionsOneof2 - - -class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): - """OrgsOrgRulesetsRulesetIdPutBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" + +class OrgsOrgHooksPostBody(GitHubModel): + """OrgsOrgHooksPostBody""" + + name: str = Field(description='Must be passed as "web".') + config: OrgsOrgHooksPostBodyPropConfig = Field( + description="Key/value pairs to provide settings for this webhook." ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + events: Missing[list[str]] = Field( default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", + 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.', ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + active: Missing[bool] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( + + +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, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") - - -model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) - -__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) + 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) + +__all__ = ( + "OrgsOrgHooksPostBody", + "OrgsOrgHooksPostBodyPropConfig", +) 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 4855af2a4..ddab845d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0977.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0977.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,40 +18,46 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsPostBody(GitHubModel): - """OrgsOrgTeamsPostBody""" +class OrgsOrgHooksHookIdPatchBody(GitHubModel): + """OrgsOrgHooksHookIdPatchBody""" - 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( + config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( default=UNSET, - description="List GitHub IDs for organization members who will become team maintainers.", + description="Key/value pairs to provide settings for this webhook.", ) - repo_names: Missing[list[str]] = Field( + events: Missing[list[str]] = Field( default=UNSET, - description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', + description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", ) - privacy: Missing[Literal["secret", "closed"]] = Field( + active: Missing[bool] = 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="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + 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 notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - permission: Missing[Literal["pull", "push"]] = Field( + secret: Missing[str] = Field( default=UNSET, - description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[int] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + description="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(OrgsOrgTeamsPostBody) +model_rebuild(OrgsOrgHooksHookIdPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) -__all__ = ("OrgsOrgTeamsPostBody",) +__all__ = ( + "OrgsOrgHooksHookIdPatchBody", + "OrgsOrgHooksHookIdPatchBodyPropConfig", +) 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 ef46562c8..737eb45c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0978.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0978.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,32 +18,23 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): + """OrgsOrgHooksHookIdConfigPatchBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - privacy: Missing[Literal["secret", "closed"]] = Field( + content_type: Missing[str] = 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 media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + secret: Missing[str] = Field( default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + 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(OrgsOrgTeamsTeamSlugPatchBody) +model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) 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 5aca60c84..cd6df6a66 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0979.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0979.py @@ -12,21 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0018 import Installation -class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( - default=UNSET, - description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", - ) +class OrgsOrgInstallationsGetResponse200(GitHubModel): + """OrgsOrgInstallationsGetResponse200""" + total_count: int = Field() + installations: list[Installation] = Field() -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) +model_rebuild(OrgsOrgInstallationsGetResponse200) + +__all__ = ("OrgsOrgInstallationsGetResponse200",) 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 155ed9640..17fac965f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0980.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0980.py @@ -9,24 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -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 OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) +model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) 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 d8f084a3e..163abb03c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0981.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0981.py @@ -9,17 +9,38 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - - body: str = Field(description="The discussion comment's body text.") - - -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) - -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +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_0982.py b/githubkit/versions/ghec_v2022_11_28/models/group_0982.py index f9ed8041d..41bec7fc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0982.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0982.py @@ -13,19 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0164 import Codespace -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - body: str = Field(description="The discussion comment's body text.") +class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody -) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", -) +model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) 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 6459343b4..7da7af9d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0983.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0983.py @@ -14,26 +14,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgMembershipsUsernamePutBody""" - 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." + 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.", ) -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("OrgsOrgMembershipsUsernamePutBody",) 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 1c2173ab7..68c6b8f27 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0984.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0984.py @@ -14,18 +14,50 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgMigrationsPostBody(GitHubModel): + """OrgsOrgMigrationsPostBody""" - 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." + repositories: list[str] = Field( + description="A list of arrays indicating which repositories should be migrated." + ) + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", + ) + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + ) + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, + description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", + ) + exclude_releases: Missing[bool] = Field( + default=UNSET, + description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", + ) + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", + ) + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + ) + exclude: Missing[list[Literal["repositories"]]] = Field( + default=UNSET, + description="Exclude related items from being returned in the response in order to improve performance of the request.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(OrgsOrgMigrationsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("OrgsOrgMigrationsPostBody",) 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 c48fb6c94..93499063e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0985.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0985.py @@ -12,14 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - group_id: int = Field(description="External Group Id") + 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(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) 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 d4ebf1d16..dc2469b07 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0986.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0986.py @@ -9,23 +9,13 @@ from __future__ import annotations -from typing import Literal - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." - ) +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) 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 db4c59000..523846f85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0987.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0987.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,15 +16,13 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - 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).\"", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) 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 b947a7fa2..8f8247056 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0988.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0988.py @@ -9,20 +9,33 @@ from __future__ import annotations +from typing import Annotated, Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + pat_request_ids: Missing[list[int]] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", + ) + action: Literal["approve", "deny"] = Field( + description="Action to apply to the requests." + ) + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + default=UNSET, + description="Reason for approving or denying the requests. Max 1024 characters.", + ) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) 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 4127c4263..af6277ed1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0989.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0989.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Annotated, Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,15 +18,18 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - permission: Missing[str] = Field( + action: Literal["approve", "deny"] = Field( + description="Action to apply to the request." + ) + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( default=UNSET, - description="The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + description="Reason for approving or denying the request. Max 1024 characters.", ) -model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) 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 412383f61..2677c34ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0990.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0990.py @@ -9,36 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" +class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPostBody""" - groups: Missing[ - list[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems] - ] = Field( - default=UNSET, - description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove.", + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." + ) + pat_ids: list[int] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The IDs of the fine-grained personal access tokens.", ) -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(OrgsOrgPersonalAccessTokensPostBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", -) +__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) 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 adc736feb..53f6146e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0991.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0991.py @@ -14,19 +14,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): - """OrgsOrgSecurityProductEnablementPostBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - 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.", + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." ) -model_rebuild(OrgsOrgSecurityProductEnablementPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) -__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) 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 8e4aacd13..fd70d18f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0992.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0992.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,14 +19,36 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class OrgsOrgPrivateRegistriesGetResponse200(GitHubModel): + """OrgsOrgPrivateRegistriesGetResponse200""" + + total_count: int = Field() + configurations: list[OrgPrivateRegistryConfiguration] = Field() + + +class OrgPrivateRegistryConfiguration(GitHubModel): + """Organization private registry + + Private registry configuration for an organization + """ - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + name: str = Field(description="The name of the private registry configuration.") + registry_type: Literal["maven_repository"] = Field(description="The registry type.") + username: Missing[Union[str, None]] = Field( + default=UNSET, + description="The username to use when authenticating with the private registry.", + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry." + ) + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) +model_rebuild(OrgsOrgPrivateRegistriesGetResponse200) +model_rebuild(OrgPrivateRegistryConfiguration) -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) +__all__ = ( + "OrgPrivateRegistryConfiguration", + "OrgsOrgPrivateRegistriesGetResponse200", +) 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 f56c2018f..5e270b1b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0993.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0993.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,28 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): - """ProjectsColumnsCardsCardIdPatchBody""" +class OrgsOrgPrivateRegistriesPostBody(GitHubModel): + """OrgsOrgPrivateRegistriesPostBody""" - note: Missing[Union[str, None]] = Field( - default=UNSET, description="The project card's note" + registry_type: Literal["maven_repository"] = Field(description="The registry type.") + username: Missing[Union[str, None]] = Field( + default=UNSET, + description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", ) - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/enterprise-cloud@latest//rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", + ) + key_id: str = Field(description="The ID of the key you used to encrypt the secret.") + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/enterprise-cloud@latest//rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`.", ) -model_rebuild(ProjectsColumnsCardsCardIdPatchBody) +model_rebuild(OrgsOrgPrivateRegistriesPostBody) -__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) +__all__ = ("OrgsOrgPrivateRegistriesPostBody",) 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 525269481..a51c170a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0994.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0994.py @@ -12,23 +12,15 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class OrgsOrgPrivateRegistriesPublicKeyGetResponse200(GitHubModel): + """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - 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", - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) +model_rebuild(OrgsOrgPrivateRegistriesPublicKeyGetResponse200) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) +__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",) 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 7d3245c63..20c264ef1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0995.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0995.py @@ -9,13 +9,43 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild - - -class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +from typing import Literal, Union +from pydantic import Field -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) - -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgPrivateRegistriesSecretNamePatchBody(GitHubModel): + """OrgsOrgPrivateRegistriesSecretNamePatchBody""" + + registry_type: Missing[Literal["maven_repository"]] = Field( + default=UNSET, description="The registry type." + ) + username: Missing[Union[str, None]] = Field( + default=UNSET, + description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", + ) + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/enterprise-cloud@latest//rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." + ) + visibility: Missing[Literal["all", "private", "selected"]] = Field( + default=UNSET, + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.", + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. This field should be omitted if `visibility` is set to `all` or `private`.", + ) + + +model_rebuild(OrgsOrgPrivateRegistriesSecretNamePatchBody) + +__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBody",) 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 4a6010387..ed09aabdb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0996.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0996.py @@ -16,29 +16,15 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class OrgsOrgProjectsPostBody(GitHubModel): + """OrgsOrgProjectsPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] - ] = Field(default=UNSET) + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." + ) -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" +model_rebuild(OrgsOrgProjectsPostBody) - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - resource: Missing[str] = Field(default=UNSET) - field: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", -) +__all__ = ("OrgsOrgProjectsPostBody",) 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 396dbfe80..d13346c76 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0997.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0997.py @@ -11,33 +11,21 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from .group_0077 import CustomProperty -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 OrgsOrgPropertiesSchemaPatchBody(GitHubModel): + """OrgsOrgPropertiesSchemaPatchBody""" + properties: list[CustomProperty] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The array of custom properties to create or update.", + ) -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) +model_rebuild(OrgsOrgPropertiesSchemaPatchBody) - -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", -) +__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) 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 e6f9395a8..c9294d376 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0998.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0998.py @@ -11,15 +11,24 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from .group_0197 import CustomPropertyValue -class ProjectsColumnsColumnIdPatchBody(GitHubModel): - """ProjectsColumnsColumnIdPatchBody""" - name: str = Field(description="Name of the project column") +class OrgsOrgPropertiesValuesPatchBody(GitHubModel): + """OrgsOrgPropertiesValuesPatchBody""" + repository_names: list[str] = Field( + max_length=30 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of repositories that the custom property values will be applied to.", + ) + properties: list[CustomPropertyValue] = Field( + description="List of custom property names and associated values to apply to the repositories." + ) -model_rebuild(ProjectsColumnsColumnIdPatchBody) -__all__ = ("ProjectsColumnsColumnIdPatchBody",) +model_rebuild(OrgsOrgPropertiesValuesPatchBody) + +__all__ = ("OrgsOrgPropertiesValuesPatchBody",) 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 17db0e859..8a3c986d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0999.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0999.py @@ -9,19 +9,128 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class OrgsOrgReposPostBody(GitHubModel): + """OrgsOrgReposPostBody""" - note: Union[str, None] = Field(description="The project card's note") + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + visibility: Missing[Literal["public", "private", "internal"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Pass `true` to create an initial commit with empty README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', + ) + license_template: Missing[str] = Field( + default=UNSET, + description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/enterprise-cloud@latest//articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( + default=UNSET, + description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) +class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): + """OrgsOrgReposPostBodyPropCustomProperties -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) + 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_1000.py b/githubkit/versions/ghec_v2022_11_28/models/group_1000.py index 78dbfee00..7da0812ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1000.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1000.py @@ -9,22 +9,96 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0079 import RepositoryRulesetBypassActor +from .group_0094 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0095 import RepositoryRuleUpdate +from .group_0097 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0098 import RepositoryRuleMergeQueue +from .group_0100 import RepositoryRuleRequiredDeployments +from .group_0103 import RepositoryRulePullRequest +from .group_0105 import RepositoryRuleRequiredStatusChecks +from .group_0107 import RepositoryRuleCommitMessagePattern +from .group_0109 import RepositoryRuleCommitAuthorEmailPattern +from .group_0111 import RepositoryRuleCommitterEmailPattern +from .group_0113 import RepositoryRuleBranchNamePattern +from .group_0115 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRuleCodeScanning +from .group_0122 import RepositoryRuleOneof18 +from .group_0125 import OrgRulesetConditionsOneof0 +from .group_0126 import OrgRulesetConditionsOneof1 +from .group_0127 import OrgRulesetConditionsOneof2 -class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class OrgsOrgRulesetsPostBody(GitHubModel): + """OrgsOrgRulesetsPostBody""" - content_id: int = Field( - description="The unique identifier of the content associated with the card" + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", ) - content_type: str = Field( - description="The piece of content associated with the card" + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] + ] = Field( + default=UNSET, + title="Organization ruleset conditions", + description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) +model_rebuild(OrgsOrgRulesetsPostBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) +__all__ = ("OrgsOrgRulesetsPostBody",) 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 cd4d5b3d2..79dc391ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1001.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1001.py @@ -9,35 +9,97 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -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) +from .group_0079 import RepositoryRulesetBypassActor +from .group_0094 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0095 import RepositoryRuleUpdate +from .group_0097 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0098 import RepositoryRuleMergeQueue +from .group_0100 import RepositoryRuleRequiredDeployments +from .group_0103 import RepositoryRulePullRequest +from .group_0105 import RepositoryRuleRequiredStatusChecks +from .group_0107 import RepositoryRuleCommitMessagePattern +from .group_0109 import RepositoryRuleCommitAuthorEmailPattern +from .group_0111 import RepositoryRuleCommitterEmailPattern +from .group_0113 import RepositoryRuleBranchNamePattern +from .group_0115 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRuleCodeScanning +from .group_0122 import RepositoryRuleOneof18 +from .group_0125 import OrgRulesetConditionsOneof0 +from .group_0126 import OrgRulesetConditionsOneof1 +from .group_0127 import OrgRulesetConditionsOneof2 -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" +class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): + """OrgsOrgRulesetsRulesetIdPutBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + default=UNSET, + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] + ] = Field( + default=UNSET, + title="Organization ruleset conditions", + description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", + ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) +model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", -) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) 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 003392298..4ecebe0b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1002.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1002.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0075 import NetworkConfiguration -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.", - ) +class OrgsOrgSettingsNetworkConfigurationsGetResponse200(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" + total_count: int = Field() + network_configurations: list[NetworkConfiguration] = Field() -model_rebuild(ProjectsColumnsColumnIdMovesPostBody) -__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsGetResponse200) + +__all__ = ("OrgsOrgSettingsNetworkConfigurationsGetResponse200",) 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 6009bdb4e..b6be61b0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1003.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1003.py @@ -9,13 +9,32 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild +from typing import Literal +from pydantic import Field -class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsColumnIdMovesPostResponse201""" +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) +class OrgsOrgSettingsNetworkConfigurationsPostBody(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsPostBody""" -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) + name: str = Field( + description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + ) + compute_service: Missing[Literal["none", "actions"]] = Field( + default=UNSET, + description="The hosted compute service to use for the network configuration.", + ) + network_settings_ids: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", + ) + + +model_rebuild(OrgsOrgSettingsNetworkConfigurationsPostBody) + +__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBody",) 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 a0ef8d52d..d68e0ab2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1004.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1004.py @@ -9,21 +9,33 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ProjectsProjectIdDeleteResponse403(GitHubModel): - """ProjectsProjectIdDeleteResponse403""" +class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" - 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 network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + ) + compute_service: Missing[Literal["none", "actions"]] = Field( + default=UNSET, + description="The hosted compute service to use for the network configuration.", + ) + network_settings_ids: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", + ) -model_rebuild(ProjectsProjectIdDeleteResponse403) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody) -__all__ = ("ProjectsProjectIdDeleteResponse403",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody",) 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 e99c686c3..4855af2a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1005.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1005.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,26 +18,40 @@ from githubkit.utils import UNSET -class ProjectsProjectIdPatchBody(GitHubModel): - """ProjectsProjectIdPatchBody""" +class OrgsOrgTeamsPostBody(GitHubModel): + """OrgsOrgTeamsPostBody""" - name: Missing[str] = Field(default=UNSET, description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." ) - state: Missing[str] = Field( - default=UNSET, description="State of the project; either 'open' or 'closed'" + 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.', ) - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + privacy: Missing[Literal["secret", "closed"]] = Field( default=UNSET, - description="The baseline permission that all organization members have on this project", + 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`", ) - private: Missing[bool] = Field( + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - description="Whether or not this project can be seen by everyone.", + description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", + ) + permission: Missing[Literal["pull", "push"]] = Field( + default=UNSET, + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[int] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(ProjectsProjectIdPatchBody) +model_rebuild(OrgsOrgTeamsPostBody) -__all__ = ("ProjectsProjectIdPatchBody",) +__all__ = ("OrgsOrgTeamsPostBody",) 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 8448c850e..ef46562c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1006.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1006.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,14 +18,32 @@ from githubkit.utils import UNSET -class ProjectsProjectIdPatchResponse403(GitHubModel): - """ProjectsProjectIdPatchResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) - - -model_rebuild(ProjectsProjectIdPatchResponse403) - -__all__ = ("ProjectsProjectIdPatchResponse403",) +class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." + ) + + +model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) + +__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1007.py b/githubkit/versions/ghec_v2022_11_28/models/group_1007.py index 4745249cd..5aca60c84 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1007.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1007.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,14 +16,17 @@ from githubkit.utils import UNSET -class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, description="The permission to grant the collaborator." + 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(ProjectsProjectIdCollaboratorsUsernamePutBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) 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 e33e0910d..155ed9640 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1008.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1008.py @@ -12,14 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsProjectIdColumnsPostBody(GitHubModel): - """ProjectsProjectIdColumnsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - name: str = Field(description="Name of the project column") + 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(ProjectsProjectIdColumnsPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) -__all__ = ("ProjectsProjectIdColumnsPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) 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 82852ecb9..d8f084a3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1009.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1009.py @@ -12,17 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoDeleteResponse403(GitHubModel): - """ReposOwnerRepoDeleteResponse403""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ReposOwnerRepoDeleteResponse403) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoDeleteResponse403",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) 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 95f838e39..f9ed8041d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1010.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1010.py @@ -9,293 +9,23 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoPatchBody(GitHubModel): - """ReposOwnerRepoPatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", - ) - visibility: Missing[Literal["public", "private", "internal"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - security_and_analysis: Missing[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] - ] = Field( - default=UNSET, - description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - default_branch: Missing[str] = Field( - default=UNSET, description="Updates the default branch for this repository." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - archived: Missing[bool] = Field( - default=UNSET, - description="Whether to archive this repository. `false` will unarchive a previously archived repository.", - ) - allow_forking: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow private forks, or `false` to prevent private forks.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/enterprise- - cloud@latest//organizations/managing-peoples-access-to-your-organization-with- - roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', - ) - secret_scanning: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', - ) - secret_scanning_push_protection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', - ) - secret_scanning_ai_detection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)."', - ) - secret_scanning_non_provider_patterns: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - secret_scanning_validity_checks: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - ] = Field( - default=UNSET, - description="Use the `status` property to enable or disable secret scanning automatic validity checks on supported partner tokens for this repository.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - - Use the `status` property to enable or disable secret scanning AI detection for - this repository. For more information, see "[Responsible detection of generic - secrets with AI](https://docs.github.com/enterprise-cloud@latest//code- - security/secret-scanning/using-advanced-secret-scanning-and-push-protection- - features/generic-secret-detection/responsible-ai-generic-secrets)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Supported secret - scanning patterns](/code-security/secret-scanning/introduction/supported-secret- - scanning-patterns#supported-secrets)." - """ - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks( +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( GitHubModel ): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - - Use the `status` property to enable or disable secret scanning automatic - validity checks on supported partner tokens for this repository. - """ + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ReposOwnerRepoPatchBody) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns -) model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody ) __all__ = ( - "ReposOwnerRepoPatchBody", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ) 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 82e12dffd..6459343b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1011.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1011.py @@ -9,20 +9,31 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0212 import Artifact - -class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsArtifactsGetResponse200""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - total_count: int = Field() - artifacts: list[Artifact] = Field() + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment." + ) -model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) 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 eabc5484e..1c2173ab7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1012.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1012.py @@ -9,21 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + 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(ReposOwnerRepoActionsJobsJobIdRerunPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) 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 4ca168cda..c48fb6c94 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1013.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1013.py @@ -12,25 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): - """Actions OIDC subject customization for a repository +class OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" - Actions OIDC subject customization for a repository - """ + group_id: int = Field(description="External Group Id") - 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(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) -model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) - -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) 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 ccda68776..d4ebf1d16 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1014.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1014.py @@ -9,20 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0216 import ActionsSecret +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - total_count: int = Field() - secrets: list[ActionsSecret] = Field() + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." + ) -model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) +model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) 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 0de7f18b6..db4c59000 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1015.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1015.py @@ -9,20 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0217 import ActionsVariable +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - total_count: int = Field() - variables: list[ActionsVariable] = Field() + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method).\"", + ) -model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) 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 b882d15a4..b947a7fa2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1016.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1016.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,18 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): - """ReposOwnerRepoActionsPermissionsPutBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - enabled: bool = Field( - description="Whether GitHub Actions is enabled on the repository." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) 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 5da481918..4127c4263 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1017.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1017.py @@ -12,17 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0036 import Runner +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" -class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunnersGetResponse200""" + 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.", + ) - total_count: int = Field() - runners: list[Runner] = Field() +model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) -model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) 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 4b74e8b7f..412383f61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1018.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1018.py @@ -11,29 +11,34 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( + groups: Missing[ + list[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems] + ] = Field( default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", + 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(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" + + group_id: str = Field(description="ID of the IdP group.") + group_name: str = Field(description="Name of the IdP group.") + group_description: str = Field(description="Description of the IdP group.") + + +model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems) -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) +__all__ = ( + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", +) 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 07ff84efb..adc736feb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1019.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1019.py @@ -9,20 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): + """OrgsOrgSecurityProductEnablementPostBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + 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(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(OrgsOrgSecurityProductEnablementPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) 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 5c0dd84b7..8e4aacd13 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1020.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1020.py @@ -11,19 +11,19 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) 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 60e9cd3d0..f56c2018f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1021.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1021.py @@ -9,20 +9,26 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0222 import WorkflowRun +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsGetResponse200""" +class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): + """ProjectsColumnsCardsCardIdPatchBody""" - total_count: int = Field() - workflow_runs: list[WorkflowRun] = Field() + note: Missing[Union[str, None]] = Field( + default=UNSET, description="The project card's note" + ) + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" + ) -model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) +model_rebuild(ProjectsColumnsCardsCardIdPatchBody) -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) 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 6f9bd07bb..525269481 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1022.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1022.py @@ -12,17 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0212 import Artifact +class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostBody""" -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + 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", + ) - total_count: int = Field() - artifacts: list[Artifact] = Field() +model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) -model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) 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 feb9789d4..7d3245c63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1023.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1023.py @@ -9,22 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from .group_0214 import Job - - -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( - GitHubModel -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - total_count: int = Field() - jobs: list[Job] = Field() +class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) 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 5df92fb1b..4a6010387 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1024.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1024.py @@ -12,17 +12,33 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0214 import Job +class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] + ] = Field(default=UNSET) - total_count: int = Field() - jobs: list[Job] = Field() +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" -model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + resource: Missing[str] = Field(default=UNSET) + field: Missing[str] = Field(default=UNSET) -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) + +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", +) 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 daa1a984d..396dbfe80 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1025.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1025.py @@ -9,25 +9,35 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +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 ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - 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") + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", +) 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 f45127160..e6f9395a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1026.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1026.py @@ -12,18 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ProjectsColumnsColumnIdPatchBody(GitHubModel): + """ProjectsColumnsColumnIdPatchBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." - ) + name: str = Field(description="Name of the project column") -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) +model_rebuild(ProjectsColumnsColumnIdPatchBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) +__all__ = ("ProjectsColumnsColumnIdPatchBody",) 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 f97011ea2..17db0e859 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1027.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1027.py @@ -9,21 +9,19 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." - ) + note: Union[str, None] = Field(description="The project card's note") -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) 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 cbc5f1b76..78dbfee00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1028.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1028.py @@ -13,16 +13,18 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0216 import ActionsSecret +class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" -class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsSecretsGetResponse200""" + 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" + ) - total_count: int = Field() - secrets: list[ActionsSecret] = Field() +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) -model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) 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 7dd7bec07..cd4d5b3d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1029.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1029.py @@ -16,19 +16,28 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503""" - 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." - ) + 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) -model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + + +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", +) 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 e169004a8..003392298 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1030.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1030.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0217 import ActionsVariable +class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): + """ProjectsColumnsColumnIdMovesPostBody""" -class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsVariablesGetResponse200""" + position: str = Field( + pattern="^(?:first|last|after:\\d+)$", + description="The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.", + ) - total_count: int = Field() - variables: list[ActionsVariable] = Field() +model_rebuild(ProjectsColumnsColumnIdMovesPostBody) -model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) 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 bf9209ee5..6009bdb4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1031.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1031.py @@ -9,18 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): - """ReposOwnerRepoActionsVariablesPostBody""" - - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") +class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsColumnIdMovesPostResponse201""" -model_rebuild(ReposOwnerRepoActionsVariablesPostBody) +model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) -__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) 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 2a4d3aeda..a0ef8d52d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1032.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1032.py @@ -16,13 +16,14 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ProjectsProjectIdDeleteResponse403(GitHubModel): + """ProjectsProjectIdDeleteResponse403""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) +model_rebuild(ProjectsProjectIdDeleteResponse403) -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) +__all__ = ("ProjectsProjectIdDeleteResponse403",) 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 3c3259aed..e99c686c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1033.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1033.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,38 +18,26 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" +class ProjectsProjectIdPatchBody(GitHubModel): + """ProjectsProjectIdPatchBody""" - total_count: int = Field() - workflows: list[Workflow] = Field() + name: Missing[str] = Field(default=UNSET, description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + state: Missing[str] = Field( + default=UNSET, description="State of the project; either 'open' or 'closed'" + ) + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + default=UNSET, + description="The baseline permission that all organization members have on this project", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone.", + ) -class Workflow(GitHubModel): - """Workflow +model_rebuild(ProjectsProjectIdPatchBody) - 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(ReposOwnerRepoActionsWorkflowsGetResponse200) -model_rebuild(Workflow) - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200", - "Workflow", -) +__all__ = ("ProjectsProjectIdPatchBody",) 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 437f66baa..8448c850e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1034.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1034.py @@ -11,40 +11,19 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ProjectsProjectIdPatchResponse403(GitHubModel): + """ProjectsProjectIdPatchResponse403""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( - ExtraGitHubModel -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs +model_rebuild(ProjectsProjectIdPatchResponse403) - Input keys and values configured in the workflow file. The maximum number of - properties is 10. Any default properties configured in the workflow file will be - used when `inputs` are omitted. - """ - - -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", -) +__all__ = ("ProjectsProjectIdPatchResponse403",) 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 d3095a52c..4745249cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1035.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1035.py @@ -9,20 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0222 import WorkflowRun +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" +class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - total_count: int = Field() - workflow_runs: list[WorkflowRun] = Field() + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, description="The permission to grant the collaborator." + ) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) +model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) 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 1559b8643..e33e0910d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1036.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1036.py @@ -11,55 +11,15 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoAttestationsPostBody(GitHubModel): - """ReposOwnerRepoAttestationsPostBody""" +class ProjectsProjectIdColumnsPostBody(GitHubModel): + """ProjectsProjectIdColumnsPostBody""" - 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." - ) + name: str = Field(description="Name of the project column") -class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundle +model_rebuild(ProjectsProjectIdColumnsPostBody) - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" - - -model_rebuild(ReposOwnerRepoAttestationsPostBody) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) - -__all__ = ( - "ReposOwnerRepoAttestationsPostBody", - "ReposOwnerRepoAttestationsPostBodyPropBundle", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", -) +__all__ = ("ProjectsProjectIdColumnsPostBody",) 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 e78d24aec..82852ecb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1037.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1037.py @@ -16,12 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoDeleteResponse403(GitHubModel): + """ReposOwnerRepoDeleteResponse403""" - id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoAttestationsPostResponse201) +model_rebuild(ReposOwnerRepoDeleteResponse403) -__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) +__all__ = ("ReposOwnerRepoDeleteResponse403",) 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 a764a785c..95f838e39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1038.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1038.py @@ -9,91 +9,293 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" +class ReposOwnerRepoPatchBody(GitHubModel): + """ReposOwnerRepoPatchBody""" - attestations: Missing[ - list[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", + ) + visibility: Missing[Literal["public", "private", "internal"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + security_and_analysis: Missing[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] + ] = Field( + default=UNSET, + description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + default_branch: Missing[str] = Field( + default=UNSET, description="Updates the default branch for this repository." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + archived: Missing[bool] = Field( + default=UNSET, + description="Whether to archive this repository. `false` will unarchive a previously archived repository.", + ) + allow_forking: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow private forks, or `false` to prevent private forks.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", + ) -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( - GitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. - bundle: Missing[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + 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_ai_detection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)."', + ) + secret_scanning_non_provider_patterns: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + secret_scanning_validity_checks: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks ] = Field( default=UNSET, - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", + description="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`." ) - repository_id: Missing[int] = Field(default=UNSET) - bundle_url: Missing[str] = Field(default=UNSET) -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection( GitHubModel ): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndle + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - 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. + Use the `status` property to enable or disable secret scanning AI detection for + this repository. For more information, see "[Responsible detection of generic + secrets with AI](https://docs.github.com/enterprise-cloud@latest//code- + security/secret-scanning/using-advanced-secret-scanning-and-push-protection- + features/generic-secret-detection/responsible-ai-generic-secrets)." """ - 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") + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( + GitHubModel ): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropVerificationMaterial + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Supported secret + scanning patterns](/code-security/secret-scanning/introduction/supported-secret- + scanning-patterns#supported-secrets)." """ + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks( + GitHubModel ): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropDsseEnvelope + """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(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) +model_rebuild(ReposOwnerRepoPatchBody) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection ) model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection ) model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns ) model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks ) __all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "ReposOwnerRepoPatchBody", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", ) 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 e795956c5..1689f7e52 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1039.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1039.py @@ -12,25 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0219 import Artifact -class ReposOwnerRepoAutolinksPostBody(GitHubModel): - """ReposOwnerRepoAutolinksPostBody""" - key_prefix: str = Field( - description="This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit." - ) - url_template: str = Field( - description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." - ) - is_alphanumeric: Missing[bool] = Field( - default=UNSET, - description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", - ) +class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsArtifactsGetResponse200""" + total_count: int = Field() + artifacts: list[Artifact] = Field() -model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ("ReposOwnerRepoAutolinksPostBody",) +model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) 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 3416b1207..eabc5484e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1040.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1040.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,218 +16,14 @@ from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" - - required_status_checks: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None - ] = Field( - description="Require status checks to pass before merging. Set to `null` to disable." - ) - enforce_admins: Union[bool, None] = Field( - description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." - ) - required_pull_request_reviews: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, - None, - ] = Field( - description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." - ) - restrictions: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None - ] = Field( - description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." - ) - required_linear_history: Missing[bool] = Field( - default=UNSET, - description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', - ) - allow_force_pushes: Missing[Union[bool, None]] = Field( - default=UNSET, - description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', - ) - allow_deletions: Missing[bool] = Field( - default=UNSET, - description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', - ) - block_creations: Missing[bool] = Field( - default=UNSET, - description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", - ) - required_conversation_resolution: Missing[bool] = Field( - default=UNSET, - description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", - ) - lock_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", - ) - allow_fork_syncing: Missing[bool] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool = Field( - description="Require branches to be up to date before merging." - ) - contexts: list[str] = Field( - description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control." - ) - checks: Missing[ - list[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) review them.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: Missing[list[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[list[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[list[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[list[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[list[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ +class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - 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" + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) +model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBody", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", -) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) 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 37470089c..4ca168cda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1041.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1041.py @@ -16,97 +16,21 @@ from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" +class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): + """Actions OIDC subject customization for a repository - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) have reviewed.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. + Actions OIDC subject customization for a repository """ - users: Missing[list[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[list[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[list[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[list[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." ) - apps: Missing[list[str]] = Field( + include_claim_keys: Missing[list[str]] = Field( default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances -) +model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", -) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) 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 199aa5468..142a17cb0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1042.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1042.py @@ -12,50 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - - strict: Missing[bool] = Field( - default=UNSET, description="Require branches to be up to date before merging." - ) - contexts: Missing[list[str]] = Field( - default=UNSET, - description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.", - ) - checks: Missing[ - list[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", - ) - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", -) + +from .group_0223 import ActionsSecret + + +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[ActionsSecret] = Field() + + +model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) 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 c92d11192..9cc412be1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1043.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1043.py @@ -13,23 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0224 import ActionsVariable -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" - contexts: list[str] = Field(description="The name of the status checks") + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) 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 736a856c2..b882d15a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1044.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1044.py @@ -9,27 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): + """ReposOwnerRepoActionsPermissionsPutBody""" - contexts: list[str] = Field(description="The name of the status checks") + enabled: bool = Field( + description="Whether GitHub Actions is enabled on the repository." + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + ) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) 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 6e14562a0..748b3db37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1045.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1045.py @@ -13,24 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0041 import Runner -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunnersGetResponse200""" - contexts: list[str] = Field(description="The name of the status checks") + total_count: int = Field() + runners: list[Runner] = Field() -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) 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 705f549eb..4b74e8b7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1046.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1046.py @@ -11,21 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - Examples: - {'apps': ['my-app']} - """ - - apps: list[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + ) + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody) +model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) 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 60a283330..07ff84efb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1047.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1047.py @@ -11,21 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - Examples: - {'apps': ['my-app']} - """ - - apps: list[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) 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 ce2d7c174..5c0dd84b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1048.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1048.py @@ -11,21 +11,19 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - Examples: - {'apps': ['my-app']} - """ - - apps: list[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) 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 84ad571cb..e63b837d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1049.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1049.py @@ -13,17 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0229 import WorkflowRun -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - Examples: - {'teams': ['justice-league']} - """ +class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsGetResponse200""" - teams: list[str] = Field(description="The slug values for teams") + total_count: int = Field() + workflow_runs: list[WorkflowRun] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) +model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) 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 958afae89..97a92ae18 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1050.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1050.py @@ -13,19 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0219 import Artifact -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 - Examples: - {'teams': ['my-team']} - """ +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" - teams: list[str] = Field(description="The slug values for teams") + total_count: int = Field() + artifacts: list[Artifact] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) +model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) 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 19a5a7072..f4dbb0652 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1051.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1051.py @@ -13,19 +13,18 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0221 import Job -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( + +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 - - Examples: - {'teams': ['my-team']} - """ + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - teams: list[str] = Field(description="The slug values for teams") + total_count: int = Field() + jobs: list[Job] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) 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 bf770df8d..90b5a02e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1052.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1052.py @@ -13,17 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0221 import Job -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody - Examples: - {'users': ['mona']} - """ +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" - users: list[str] = Field(description="The username for users") + total_count: int = Field() + jobs: list[Job] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) 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 047d05a26..daa1a984d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1053.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1053.py @@ -9,21 +9,25 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody - - Examples: - {'users': ['mona']} - """ +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - users: list[str] = Field(description="The username for users") + 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(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) 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 181ab0f55..f45127160 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1054.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1054.py @@ -12,18 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody +class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - Examples: - {'users': ['mona']} - """ + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) - users: list[str] = Field(description="The username for users") +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) 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 5fcd45c02..f97011ea2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1055.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1055.py @@ -12,14 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - new_name: str = Field(description="The new name of the branch.") + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) -model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) 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 599652b03..f6a5bf1e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1056.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1056.py @@ -9,117 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class 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 if PYDANTIC_V2 else None, - default=UNSET, - description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)".', - ) - images: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( - Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." - ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( - default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", - ) - end_column: Missing[int] = Field( - default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." - ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." - ) - title: Missing[str] = Field( - default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", - ) - raw_details: Missing[str] = Field( - default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" +from githubkit.compat import GitHubModel, model_rebuild - 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." - ) +from .group_0223 import ActionsSecret -class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" +class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsSecretsGetResponse200""" - 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.", - ) + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) +model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutput", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", -) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) 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 2a2b725ad..58d527265 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1057.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1057.py @@ -9,67 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_1056 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, - ReposOwnerRepoCheckRunsPostBodyPropOutput, -) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" +class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - status: Literal["completed"] = Field() - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-a-repository-public-key) endpoint.", ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) +model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) 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 f85011344..69340b0a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1058.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1058.py @@ -9,72 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_1056 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, - ReposOwnerRepoCheckRunsPostBodyPropOutput, -) +from .group_0224 import ActionsVariable -class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" +class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsVariablesGetResponse200""" - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - status: Missing[ - Literal["queued", "in_progress", "waiting", "requested", "pending"] - ] = Field(default=UNSET) - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] = Field( - default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', - ) + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) +model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) 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 642ef6696..bf9209ee5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1059.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1059.py @@ -9,114 +9,18 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ - - title: Missing[str] = Field(default=UNSET, description="**Required**.") - summary: str = Field(max_length=65535, description="Can contain Markdown.") - text: Missing[str] = Field( - max_length=65535, default=UNSET, description="Can contain Markdown." - ) - annotations: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50 if PYDANTIC_V2 else None, - default=UNSET, - description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)\".", - ) - images: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] - ] = Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( - GitHubModel -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" - - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." - ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( - default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", - ) - end_column: Missing[int] = Field( - default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." - ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." - ) - title: Missing[str] = Field( - default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", - ) - raw_details: Missing[str] = Field( - default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" +class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): + """ReposOwnerRepoActionsVariablesPostBody""" - 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.", - ) + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) +model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", -) +__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) 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 5f0c08e27..2a4d3aeda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1060.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1060.py @@ -9,69 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1059 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, -) - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" +class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - name: Missing[str] = Field( - default=UNSET, - description='The name of the check. For example, "code-coverage".', - ) - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - status: Missing[Literal["completed"]] = Field(default=UNSET) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', - ) + 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(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) +model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) 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 4316b0a56..3c3259aed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1061.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1061.py @@ -14,67 +14,43 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1059 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, -) +class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" + + total_count: int = Field() + workflows: list[Workflow] = Field() + + +class Workflow(GitHubModel): + """Workflow + + A GitHub Actions workflow + """ -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - - name: Missing[str] = Field( - default=UNSET, - description='The name of the check. For example, "code-coverage".', - ) - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] = Field( - default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', - ) - - -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) - -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) + 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(ReposOwnerRepoActionsWorkflowsGetResponse200) +model_rebuild(Workflow) + +__all__ = ( + "ReposOwnerRepoActionsWorkflowsGetResponse200", + "Workflow", +) 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 2a8e7cd54..437f66baa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1062.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1062.py @@ -11,15 +11,40 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - head_sha: str = Field(description="The sha of the head commit.") + 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.", + ) -model_rebuild(ReposOwnerRepoCheckSuitesPostBody) +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( + ExtraGitHubModel +): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs -__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) + Input keys and values configured in the workflow file. The maximum number of + properties is 10. Any default properties configured in the workflow file will be + used when `inputs` are omitted. + """ + + +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) + +__all__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", +) 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 c56809f38..6da289864 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1063.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1063.py @@ -12,37 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0229 import WorkflowRun -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 ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int = Field() + workflow_runs: list[WorkflowRun] = Field() -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( - GitHubModel -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - app_id: int = Field(description="The `id` of the GitHub App.") - setting: bool = Field( - default=True, - description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", - ) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) - -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBody", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) 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 aa5ae1fe5..1559b8643 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1064.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1064.py @@ -11,18 +11,55 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0248 import CheckRun +class ReposOwnerRepoAttestationsPostBody(GitHubModel): + """ReposOwnerRepoAttestationsPostBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + 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." + ) - total_count: int = Field() - check_runs: list[CheckRun] = Field() +class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundle -model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) + 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. + """ -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" + + +model_rebuild(ReposOwnerRepoAttestationsPostBody) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) + +__all__ = ( + "ReposOwnerRepoAttestationsPostBody", + "ReposOwnerRepoAttestationsPostBodyPropBundle", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", +) 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 a6809c655..e78d24aec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1065.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1065.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,26 +16,12 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): + """ReposOwnerRepoAttestationsPostResponse201""" - 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.", - ) - ) + id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") -model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoAttestationsPostResponse201) -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) 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 61ff3b30c..a764a785c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1066.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1066.py @@ -9,39 +9,91 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - 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" - ) - repositories: list[str] = Field( - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required." - ) - repository_lists: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_owners: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + attestations: Missing[ + list[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = Field( default=UNSET, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", ) + repository_id: Missing[int] = Field(default=UNSET) + bundle_url: Missing[str] = Field(default=UNSET) + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropVerificationMaterial + """ + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropDsseEnvelope + """ -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) +model_rebuild(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) 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 d8a14d5fb..e795956c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1067.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1067.py @@ -9,39 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoAutolinksPostBody(GitHubModel): + """ReposOwnerRepoAutolinksPostBody""" - 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" - ) - 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.", + 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." ) - repository_lists: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + url_template: str = Field( + description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." ) - repository_owners: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + is_alphanumeric: Missing[bool] = Field( default=UNSET, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="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(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) +model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) +__all__ = ("ReposOwnerRepoAutolinksPostBody",) 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 3c9a891a4..3416b1207 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1068.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1068.py @@ -9,39 +9,227 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" - 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" + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None + ] = Field( + description="Require status checks to pass before merging. Set to `null` to disable." ) - repositories: Missing[list[str]] = Field( + enforce_admins: Union[bool, None] = Field( + description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." + ) + required_pull_request_reviews: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, + None, + ] = Field( + description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." + ) + restrictions: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None + ] = Field( + description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." + ) + required_linear_history: Missing[bool] = Field( + default=UNSET, + description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', + ) + allow_force_pushes: Missing[Union[bool, None]] = Field( + default=UNSET, + description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', + ) + allow_deletions: Missing[bool] = Field( + default=UNSET, + description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', + ) + block_creations: Missing[bool] = Field( + default=UNSET, + description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", + ) + required_conversation_resolution: Missing[bool] = Field( + default=UNSET, + description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", + ) + lock_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", + ) + allow_fork_syncing: Missing[bool] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks + + Require status checks to pass before merging. Set to `null` to disable. + """ + + strict: bool = Field( + description="Require branches to be up to date before merging." + ) + contexts: list[str] = Field( + description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control." + ) + checks: Missing[ + list[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( default=UNSET, - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="The 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.", ) - repository_lists: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field( default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + 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.", ) - repository_owners: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + dismiss_stale_reviews: Missing[bool] = Field( + default=UNSET, + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + ) + require_code_owner_reviews: Missing[bool] = Field( + default=UNSET, + description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) review them.", + ) + required_approving_review_count: Missing[int] = Field( + default=UNSET, + description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + ) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", + ) + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[list[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" + ) + teams: Missing[list[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" + ) + apps: Missing[list[str]] = Field( + default=UNSET, description="The list of app `slug`s with dismissal access" + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: Missing[list[str]] = Field( + default=UNSET, + description="The list of user `login`s allowed to bypass pull request requirements.", + ) + teams: Missing[list[str]] = Field( + default=UNSET, + description="The list of team `slug`s allowed to bypass pull request requirements.", + ) + apps: Missing[list[str]] = Field( + default=UNSET, + description="The list of app `slug`s allowed to bypass pull request requirements.", + ) + + +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(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBody", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", +) 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 75eecf30a..37470089c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1069.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1069.py @@ -9,8 +9,6 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,41 +16,97 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - 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.", + 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.", ) - 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`.", + 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.", ) - 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)."' + 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`", ) - checkout_uri: Missing[str] = Field( + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances + ] = 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="Allow specific users, teams, or apps to bypass pull request requirements.", ) - started_at: Missing[datetime] = Field( + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[list[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" + ) + teams: Missing[list[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" + ) + apps: Missing[list[str]] = Field( + default=UNSET, description="The list of app `slug`s with dismissal access" + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: Missing[list[str]] = Field( default=UNSET, - description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The list of user `login`s allowed to bypass pull request requirements.", ) - tool_name: Missing[str] = Field( + teams: Missing[list[str]] = Field( default=UNSET, - description='The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.', + description="The list of team `slug`s allowed to bypass pull request requirements.", ) - validate_: Missing[bool] = Field( + apps: Missing[list[str]] = Field( default=UNSET, - alias="validate", - description="Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.", + description="The list of app `slug`s allowed to bypass pull request requirements.", ) -model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances +) -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", +) 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 137b32989..199aa5468 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1070.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1070.py @@ -12,17 +12,50 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0157 import Codespace - - -class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesGetResponse200""" - - total_count: int = Field() - codespaces: list[Codespace] = Field() - - -model_rebuild(ReposOwnerRepoCodespacesGetResponse200) - -__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" + + strict: Missing[bool] = Field( + default=UNSET, description="Require branches to be up to date before merging." + ) + contexts: Missing[list[str]] = Field( + default=UNSET, + description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.", + ) + checks: Missing[ + list[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms + """ + + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + ) + + +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems +) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", +) 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 9d9c2bbbd..c92d11192 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1071.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1071.py @@ -9,61 +9,27 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesPostBody(GitHubModel): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + + Examples: + {'contexts': ['contexts']} + """ - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoCodespacesPostBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +) -__all__ = ("ReposOwnerRepoCodespacesPostBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", +) 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 262d6c72c..736a856c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1072.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1072.py @@ -12,33 +12,24 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - - total_count: int = Field() - devcontainers: list[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems - ] = Field() - - -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( GitHubModel ): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - path: str = Field() - name: Missing[str] = Field(default=UNSET) - display_name: Missing[str] = Field(default=UNSET) + Examples: + {'contexts': ['contexts']} + """ + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) + +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +) __all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ) 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 1eea29892..6e14562a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1073.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1073.py @@ -13,16 +13,24 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0156 import CodespaceMachine +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 -class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" + Examples: + {'contexts': ['contexts']} + """ - total_count: int = Field() - machines: list[CodespaceMachine] = Field() + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 +) -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", +) 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 cdb579f90..705f549eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1074.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1074.py @@ -9,39 +9,23 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody -class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200""" + Examples: + {'apps': ['my-app']} + """ - billable_owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( - default=UNSET + apps: list[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str = Field() - devcontainer_path: Union[str, None] = Field() - - -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody) -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",) 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 ea29eb2ed..60a283330 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1075.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1075.py @@ -9,35 +9,23 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[RepoCodespacesSecret] = Field() - - -class RepoCodespacesSecret(GitHubModel): - """Codespaces Secret +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody - Set repository secrets for GitHub Codespaces. + Examples: + {'apps': ['my-app']} """ - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + 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(ReposOwnerRepoCodespacesSecretsGetResponse200) -model_rebuild(RepoCodespacesSecret) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody) -__all__ = ( - "RepoCodespacesSecret", - "ReposOwnerRepoCodespacesSecretsGetResponse200", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",) 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 9ae26cc4d..ce2d7c174 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1076.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1076.py @@ -12,23 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody - 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." + Examples: + {'apps': ['my-app']} + """ + + apps: list[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody) -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",) 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 637f9ed63..84ad571cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1077.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1077.py @@ -12,19 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - 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.", - ) + Examples: + {'teams': ['justice-league']} + """ + teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) 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 75effd211..958afae89 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1078.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1078.py @@ -14,12 +14,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 - body: str = Field(description="The contents of the comment") + Examples: + {'teams': ['my-team']} + """ + teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) 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 a64b1dfaa..19a5a7072 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1079.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1079.py @@ -9,23 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 + + Examples: + {'teams': ['my-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 commit comment." - ) + teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) 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 757d9d282..bf770df8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1080.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1080.py @@ -12,26 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody - body: str = Field(description="The contents of the comment.") - path: Missing[str] = Field( - default=UNSET, description="Relative path of the file to comment on." - ) - position: Missing[int] = Field( - default=UNSET, description="Line index in the diff to comment on." - ) - line: Missing[int] = Field( - default=UNSET, - description="**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.", - ) + Examples: + {'users': ['mona']} + """ + users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",) 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 5f111aaaf..047d05a26 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1081.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1081.py @@ -13,16 +13,17 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0248 import CheckRun +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + Examples: + {'users': ['mona']} + """ - total_count: int = Field() - check_runs: list[CheckRun] = Field() + users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody) -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",) 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 06ebae173..181ab0f55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1082.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1082.py @@ -12,70 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoContentsPathPutBody(GitHubModel): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody - 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`. + Examples: + {'users': ['mona']} """ - 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) + users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoContentsPathPutBody) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody) -__all__ = ( - "ReposOwnerRepoContentsPathPutBody", - "ReposOwnerRepoContentsPathPutBodyPropAuthor", - "ReposOwnerRepoContentsPathPutBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",) 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 b246a17c2..5fcd45c02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1083.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1083.py @@ -12,63 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBody""" +class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - 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." - ) + new_name: str = Field(description="The new name of the branch.") -class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter +model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) - object containing information about the committer. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) - - -model_rebuild(ReposOwnerRepoContentsPathDeleteBody) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) - -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBody", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) 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 98b4b8e85..599652b03 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1084.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1084.py @@ -13,32 +13,113 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutput - state: Literal["dismissed", "open"] = Field( - description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: str = Field(description="The title of the check run.") + summary: str = Field( + max_length=65535, + description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + ) + text: Missing[str] = Field( + max_length=65535, + default=UNSET, + description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", ) - dismissed_reason: Missing[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] + annotations: Missing[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] ] = Field( + max_length=50 if PYDANTIC_V2 else None, + default=UNSET, + description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)".', + ) + images: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( + Field( + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", + ) + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( default=UNSET, - description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", + 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.", ) - dismissed_comment: Missing[str] = Field( - max_length=280, + end_column: Missing[int] = Field( default=UNSET, - description="An optional comment associated with dismissing the alert.", + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( + default=UNSET, + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str = Field( + max_length=20, + description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + ) + description: str = Field( + max_length=40, + description="A short explanation of what this action would do. The maximum size is 40 characters.", + ) + identifier: str = Field( + max_length=20, + description="A reference for the action on the integrator's system. The maximum size is 20 characters.", ) -model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutput", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", +) 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 22c7a2b35..044c936a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1085.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1085.py @@ -10,34 +10,66 @@ from __future__ import annotations from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoDependabotSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[DependabotSecret] = Field() - - -class DependabotSecret(GitHubModel): - """Dependabot Secret - - Set secrets for Dependabot. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_1084 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, + ReposOwnerRepoCheckRunsPostBodyPropOutput, +) -model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) -model_rebuild(DependabotSecret) -__all__ = ( - "DependabotSecret", - "ReposOwnerRepoDependabotSecretsGetResponse200", -) +class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" + + name: str = Field( + description='The name of the check. For example, "code-coverage".' + ) + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + status: Literal["completed"] = Field() + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3 if PYDANTIC_V2 else None, + default=UNSET, + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + ) + + +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) 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 795166023..b528aa87e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1086.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1086.py @@ -9,26 +9,72 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1084 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, + ReposOwnerRepoCheckRunsPostBodyPropOutput, +) + -class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" - 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})$", + name: str = Field( + description='The name of the check. For example, "code-coverage".' + ) + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-a-repository-public-key) endpoint.", + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + status: Missing[ + Literal["queued", "in_progress", "waiting", "requested", "pending"] + ] = Field(default=UNSET) + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3 if PYDANTIC_V2 else None, + default=UNSET, + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) 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 d8abaeb32..642ef6696 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1087.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1087.py @@ -9,24 +9,114 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput + + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: Missing[str] = Field(default=UNSET, description="**Required**.") + summary: str = Field(max_length=65535, description="Can contain Markdown.") + text: Missing[str] = Field( + max_length=65535, default=UNSET, description="Can contain Markdown." + ) + annotations: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50 if PYDANTIC_V2 else None, + default=UNSET, + description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)\".", + ) + images: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + ] = Field( + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", + ) -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( + GitHubModel +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" - 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.' + 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 message providing further details about the result, such as why the dependencies were not updated." + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( + default=UNSET, + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str = Field( + max_length=20, + description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + ) + description: str = Field( + max_length=40, + description="A short explanation of what this action would do. The maximum size is 40 characters.", + ) + 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(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", +) 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 93e1d173a..214f639a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1088.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1088.py @@ -9,61 +9,69 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1087 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, +) -class ReposOwnerRepoDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsPostBody""" - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or SHA." - ) - task: Missing[str] = Field( +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + + name: Missing[str] = Field( default=UNSET, - description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", + description='The name of the check. For example, "code-coverage".', ) - auto_merge: Missing[bool] = Field( + details_url: Missing[str] = Field( default=UNSET, - description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", + 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." ) - required_contexts: Missing[list[str]] = Field( + started_at: Missing[datetime] = 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.", + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( - Field(default=UNSET) + 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." ) - environment: Missing[str] = Field( + completed_at: Missing[datetime] = Field( default=UNSET, - description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", + 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: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the deployment." - ) - transient_environment: Missing[bool] = Field( + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = 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`", + 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.", ) - production_environment: Missing[bool] = Field( + actions: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3 if PYDANTIC_V2 else None, 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.", + 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)."', ) -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" - +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) -model_rebuild(ReposOwnerRepoDeploymentsPostBody) -model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBody", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", -) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) 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 87a3629c8..b142b2c4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1089.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1089.py @@ -9,19 +9,72 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1087 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, +) + -class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - message: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', + ) + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3 if PYDANTIC_V2 else None, + default=UNSET, + description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + ) -model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) 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 fbbf01aa8..2a8e7cd54 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1090.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1090.py @@ -9,49 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] = Field( - description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." - ) - target_url: Missing[str] = Field( - default=UNSET, - description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment.\n\n> [!NOTE]\n> It's recommended to use the `log_url` parameter, which replaces `target_url`.", - ) - log_url: Missing[str] = Field( - default=UNSET, - description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the status. The maximum description length is 140 characters.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", - ) - environment_url: Missing[str] = Field( - default=UNSET, - description='Sets the URL for accessing your environment. Default: `""`', - ) - auto_inactive: Missing[bool] = Field( - default=UNSET, - description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", - ) - - -model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) - -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) + + +class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPostBody""" + + head_sha: str = Field(description="The sha of the head commit.") + + +model_rebuild(ReposOwnerRepoCheckSuitesPostBody) + +__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) 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 7a5ec1511..c56809f38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1091.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1091.py @@ -11,38 +11,38 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoDispatchesPostBody(GitHubModel): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - event_type: str = Field( - min_length=1, - max_length=100, - description="A custom webhook event name. Must be 100 characters or fewer.", - ) - client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( + auto_trigger_checks: Missing[ + list[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] + ] = Field( default=UNSET, - description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.", + description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", ) -class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( + GitHubModel +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - JSON payload with extra information about the webhook event that your action or - workflow may use. The maximum number of top-level properties is 10. The total - size of the JSON payload must be less than 64KB. - """ + app_id: int = Field(description="The `id` of the GitHub App.") + setting: bool = Field( + default=True, + description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", + ) -model_rebuild(ReposOwnerRepoDispatchesPostBody) -model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) __all__ = ( - "ReposOwnerRepoDispatchesPostBody", - "ReposOwnerRepoDispatchesPostBodyPropClientPayload", + "ReposOwnerRepoCheckSuitesPreferencesPatchBody", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ) 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 fdb2680fb..31978d07c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1092.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1092.py @@ -9,61 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0304 import DeploymentBranchPolicySettings - - -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`.", - ) - ) +from .group_0255 import CheckRun -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" - 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", - ) + total_count: int = Field() + check_runs: list[CheckRun] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) +model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", -) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) 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 e8d56e3db..a6809c655 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1093.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1093.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,42 +18,26 @@ from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - total_count: int = Field( - description="The number of deployment branch policies for the environment." + 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`." ) - branch_policies: list[DeploymentBranchPolicy] = Field() - - -class DeploymentBranchPolicy(GitHubModel): - """Deployment branch policy - - Details of a deployment branch or tag policy. - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the branch or tag policy." - ) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( + dismissed_reason: Missing[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] = Field( default=UNSET, - description="The name pattern that branches or tags must match in order to deploy to the environment.", + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag." + 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( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 -) -model_rebuild(DeploymentBranchPolicy) +model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) -__all__ = ( - "DeploymentBranchPolicy", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", -) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) 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 b5d03989b..61ff3b30c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1094.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1094.py @@ -9,28 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - integration_id: Missing[int] = Field( + 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" + ) + repositories: list[str] = Field( + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required." + ) + repository_lists: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_owners: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="The ID of the custom app that will be enabled on the environment.", + 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( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody -) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", -) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) 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 65d547973..d8a14d5fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1095.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1095.py @@ -9,35 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0310 import CustomDeploymentRuleApp - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - total_count: Missing[int] = Field( + 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" + ) + repositories: Missing[list[str]] = Field( + default=UNSET, + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_lists: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_owners: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="The total number of custom deployment protection rule integrations available for this environment.", + 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.", ) - available_custom_deployment_protection_rule_integrations: Missing[ - list[CustomDeploymentRuleApp] - ] = Field(default=UNSET) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 -) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", -) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) 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 4150aa662..3c9a891a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1096.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1096.py @@ -9,20 +9,39 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0216 import ActionsSecret - +from typing import Literal -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[ActionsSecret] = Field() - - -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) +from pydantic import Field -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" + + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: Missing[list[str]] = Field( + default=UNSET, + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_lists: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_owners: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + + +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) + +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1097.py b/githubkit/versions/ghec_v2022_11_28/models/group_1097.py index 60d9411b7..75eecf30a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1097.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1097.py @@ -9,21 +9,50 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - 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.", + 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.", ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) 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 099fa8217..934ff08ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1098.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1098.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0217 import ActionsVariable +from .group_0164 import Codespace -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" +class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesGetResponse200""" total_count: int = Field() - variables: list[ActionsVariable] = Field() + codespaces: list[Codespace] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesGetResponse200) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) 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 376060834..9d9c2bbbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1099.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1099.py @@ -9,18 +9,61 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoCodespacesPostBody(GitHubModel): + """ReposOwnerRepoCodespacesPostBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) +model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) +__all__ = ("ReposOwnerRepoCodespacesPostBody",) 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 6a0d6de99..262d6c72c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1100.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1100.py @@ -16,13 +16,29 @@ from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + total_count: int = Field() + devcontainers: list[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems + ] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( + GitHubModel +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) + 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", +) 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 abc9b3749..751f0b714 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1101.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1101.py @@ -12,27 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0163 import CodespaceMachine -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.", - ) +class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + total_count: int = Field() + machines: list[CodespaceMachine] = Field() -model_rebuild(ReposOwnerRepoForksPostBody) -__all__ = ("ReposOwnerRepoForksPostBody",) +model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) + +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) 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 f4b8ca964..14c58fd19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1102.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1102.py @@ -9,23 +9,39 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser + -class ReposOwnerRepoGitBlobsPostBody(GitHubModel): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200""" - content: str = Field(description="The new blob's content.") - encoding: Missing[str] = Field( - default=UNSET, - description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', + billable_owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( + default=UNSET ) -model_rebuild(ReposOwnerRepoGitBlobsPostBody) +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + + location: str = Field() + devcontainer_path: Union[str, None] = Field() + + +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) -__all__ = ("ReposOwnerRepoGitBlobsPostBody",) +__all__ = ( + "ReposOwnerRepoCodespacesNewGetResponse200", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", +) 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 111a9d4a5..ea29eb2ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1103.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1103.py @@ -14,78 +14,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoGitCommitsPostBody(GitHubModel): - """ReposOwnerRepoGitCommitsPostBody""" - - message: str = Field(description="The commit message") - tree: str = Field(description="The SHA of the tree object this commit points to") - parents: Missing[list[str]] = Field( - default=UNSET, - description="The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", - ) - author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( - default=UNSET, - description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", - ) - committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( - default=UNSET, - description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", - ) - signature: Missing[str] = Field( - default=UNSET, - description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", - ) - - -class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor - - 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 ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[RepoCodespacesSecret] = Field() -class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropCommitter +class RepoCodespacesSecret(GitHubModel): + """Codespaces Secret - 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. + Set repository secrets for GitHub Codespaces. """ - 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`.", - ) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ReposOwnerRepoGitCommitsPostBody) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) +model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) +model_rebuild(RepoCodespacesSecret) __all__ = ( - "ReposOwnerRepoGitCommitsPostBody", - "ReposOwnerRepoGitCommitsPostBodyPropAuthor", - "ReposOwnerRepoGitCommitsPostBodyPropCommitter", + "RepoCodespacesSecret", + "ReposOwnerRepoCodespacesSecretsGetResponse200", ) 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 e02988ad3..9ae26cc4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1104.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1104.py @@ -12,17 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoGitRefsPostBody(GitHubModel): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - 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." + 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." ) - sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(ReposOwnerRepoGitRefsPostBody) +model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoGitRefsPostBody",) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) 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 dc680ffcd..637f9ed63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1105.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1105.py @@ -16,16 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - sha: str = Field(description="The SHA1 value to set this reference to") - force: Missing[bool] = Field( + permission: Missing[str] = Field( default=UNSET, - description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", + description="The 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(ReposOwnerRepoGitRefsRefPatchBody) +model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) 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 2366c3d87..75effd211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1106.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1106.py @@ -9,53 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoGitTagsPostBody(GitHubModel): - """ReposOwnerRepoGitTagsPostBody""" - - tag: str = Field( - description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' - ) - message: str = Field(description="The tag message.") - object_: str = Field( - alias="object", description="The SHA of the git object this is tagging." - ) - type: Literal["commit", "tree", "blob"] = Field( - description="The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`." - ) - tagger: Missing[ReposOwnerRepoGitTagsPostBodyPropTagger] = Field( - default=UNSET, - description="An object with information about the individual creating the tag.", - ) - - -class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str = Field(description="The name of the author of the tag") - email: str = Field(description="The email of the author of the tag") - date: Missing[datetime] = Field( - default=UNSET, - description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -model_rebuild(ReposOwnerRepoGitTagsPostBody) -model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) - -__all__ = ( - "ReposOwnerRepoGitTagsPostBody", - "ReposOwnerRepoGitTagsPostBodyPropTagger", -) + + +class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdPatchBody""" + + body: str = Field(description="The contents of the comment") + + +model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) + +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) 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 1d6bd8e59..a64b1dfaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1107.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1107.py @@ -9,54 +9,23 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoGitTreesPostBody(GitHubModel): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( - description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." - ) - base_tree: Missing[str] = Field( - default=UNSET, - description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.", - ) - - -class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: Missing[str] = Field( - default=UNSET, description="The file referenced in the tree." - ) - mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( - default=UNSET, - description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", - ) - type: Missing[Literal["blob", "tree", "commit"]] = Field( - default=UNSET, description="Either `blob`, `tree`, or `commit`." - ) - sha: Missing[Union[str, None]] = Field( - default=UNSET, - description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", - ) - content: Missing[str] = Field( - default=UNSET, - description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + 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(ReposOwnerRepoGitTreesPostBody) -model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) +model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) -__all__ = ( - "ReposOwnerRepoGitTreesPostBody", - "ReposOwnerRepoGitTreesPostBodyPropTreeItems", -) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) 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 0a8c270bb..757d9d282 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1108.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1108.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,51 +16,22 @@ from githubkit.utils import UNSET -class ReposOwnerRepoHooksPostBody(GitHubModel): - """ReposOwnerRepoHooksPostBody""" - - name: Missing[str] = Field( - default=UNSET, - description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", - ) - config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", - ) - events: Missing[list[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - - -class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): - """ReposOwnerRepoHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ +class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + body: str = Field(description="The contents of the comment.") + path: Missing[str] = Field( + default=UNSET, description="Relative path of the file to comment on." ) - 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`.", + position: Missing[int] = Field( + default=UNSET, description="Line index in the diff to comment on." ) - secret: Missing[str] = Field( + line: Missing[int] = 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="**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksPostBody) -model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) +model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ( - "ReposOwnerRepoHooksPostBody", - "ReposOwnerRepoHooksPostBodyPropConfig", -) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) 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 91e977f4f..5d7c96a02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1109.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1109.py @@ -12,38 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0009 import WebhookConfig - - -class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdPatchBody""" - - config: Missing[WebhookConfig] = Field( - default=UNSET, - title="Webhook Configuration", - description="Configuration object of the webhook", - ) - events: Missing[list[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", - ) - add_events: Missing[list[str]] = Field( - default=UNSET, - description="Determines a list of events to be added to the list of events that the Hook triggers for.", - ) - remove_events: Missing[list[str]] = Field( - default=UNSET, - description="Determines a list of events to be removed from the list of events that the Hook triggers for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - - -model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) - -__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) + +from .group_0255 import CheckRun + + +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + + total_count: int = Field() + check_runs: list[CheckRun] = Field() + + +model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1110.py b/githubkit/versions/ghec_v2022_11_28/models/group_1110.py index 150aaa1f2..06ebae173 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1110.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1110.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,23 +16,66 @@ from githubkit.utils import UNSET -class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoContentsPathPutBody(GitHubModel): + """ReposOwnerRepoContentsPathPutBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + 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.", ) - content_type: Missing[str] = Field( + committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="The person that committed the file. Default: the authenticated user.", ) - secret: Missing[str] = Field( + author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = 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 author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + ) + + +class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropCommitter + + The person that committed the file. Default: the authenticated user. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) + + +class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + date: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) +model_rebuild(ReposOwnerRepoContentsPathPutBody) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) +__all__ = ( + "ReposOwnerRepoContentsPathPutBody", + "ReposOwnerRepoContentsPathPutBodyPropAuthor", + "ReposOwnerRepoContentsPathPutBodyPropCommitter", +) 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 4e11d0489..b246a17c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1111.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1111.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,28 +16,59 @@ from githubkit.utils import UNSET -class ReposOwnerRepoImportPutBody(GitHubModel): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBody""" - vcs_url: str = Field(description="The URL of the originating repository.") - vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( + message: str = Field(description="The commit message.") + sha: str = Field(description="The blob SHA of the file being deleted.") + branch: Missing[str] = Field( default=UNSET, - description="The 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.", + description="The branch name. Default: the repository’s default branch", ) - vcs_username: Missing[str] = Field( - default=UNSET, - description="If authentication is required, the username to provide to `vcs_url`.", + committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( + default=UNSET, description="object containing information about the committer." ) - vcs_password: Missing[str] = Field( + author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( + default=UNSET, description="object containing information about the author." + ) + + +class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter + + object containing information about the committer. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( default=UNSET, - description="If authentication is required, the password to provide to `vcs_url`.", + 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" ) - tfvc_project: Missing[str] = Field( + email: Missing[str] = Field( default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + description="The email of the author (or committer) of the commit", ) -model_rebuild(ReposOwnerRepoImportPutBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) -__all__ = ("ReposOwnerRepoImportPutBody",) +__all__ = ( + "ReposOwnerRepoContentsPathDeleteBody", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", +) 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 73c9a3a1e..98b4b8e85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1112.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1112.py @@ -18,27 +18,27 @@ from githubkit.utils import UNSET -class ReposOwnerRepoImportPatchBody(GitHubModel): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - 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.", + state: Literal["dismissed", "open"] = Field( + description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." ) - vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( + dismissed_reason: Missing[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] = Field( default=UNSET, - description="The type of version control system you are migrating from.", + description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", ) - tfvc_project: Missing[str] = Field( + dismissed_comment: Missing[str] = Field( + max_length=280, default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + description="An optional comment associated with dismissing the alert.", ) -model_rebuild(ReposOwnerRepoImportPatchBody) +model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoImportPatchBody",) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) 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 bac05d75f..22c7a2b35 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1113.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1113.py @@ -9,20 +9,35 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[DependabotSecret] = Field() + + +class DependabotSecret(GitHubModel): + """Dependabot Secret + + Set secrets for Dependabot. + """ - email: Missing[str] = Field(default=UNSET, description="The new Git author email.") - name: Missing[str] = Field(default=UNSET, description="The new Git author name.") + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) +model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) +model_rebuild(DependabotSecret) -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) +__all__ = ( + "DependabotSecret", + "ReposOwnerRepoDependabotSecretsGetResponse200", +) 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 7727d20f6..795166023 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1114.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1114.py @@ -9,21 +9,26 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoImportLfsPatchBody(GitHubModel): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - 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." + 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." ) -model_rebuild(ReposOwnerRepoImportLfsPatchBody) +model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoImportLfsPatchBody",) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) 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 759975570..d8abaeb32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1115.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1115.py @@ -9,13 +9,24 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" + + id: int = Field(description="ID of the created snapshot.") + created_at: str = Field(description="The time at which the snapshot was created.") + result: str = Field( + description='Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository\'s dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository\'s dependencies were not updated. "INVALID" indicates that the snapshot was malformed.' + ) + message: str = Field( + description="A message providing further details about the result, such as why the dependencies were not updated." + ) -model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) +model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) 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 3569862c6..93e1d173a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1116.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1116.py @@ -9,26 +9,61 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsPostBody""" - 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`.", - ) + 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 ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" -model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) +__all__ = ( + "ReposOwnerRepoDeploymentsPostBody", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", +) 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 d22e53ed3..87a3629c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1117.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1117.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,41 +16,12 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesPostBody""" - - title: Union[str, int] = Field(description="The title of the issue.") - body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", - ) - assignees: Missing[list[str]] = Field( - default=UNSET, - description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", - ) - - -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", -) +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_1118.py b/githubkit/versions/ghec_v2022_11_28/models/group_1118.py index 2e91230e7..fbbf01aa8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1118.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1118.py @@ -9,17 +9,49 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - - body: str = Field(description="The contents of the comment.") - - -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) - -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" + + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] = Field( + description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." + ) + target_url: Missing[str] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment.\n\n> [!NOTE]\n> It's recommended to use the `log_url` parameter, which replaces `target_url`.", + ) + log_url: Missing[str] = Field( + default=UNSET, + description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the status. The maximum description length is 140 characters.", + ) + environment: Missing[str] = Field( + default=UNSET, + description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", + ) + environment_url: Missing[str] = Field( + default=UNSET, + description='Sets the URL for accessing your environment. Default: `""`', + ) + auto_inactive: Missing[bool] = Field( + default=UNSET, + description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", + ) + + +model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) + +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1119.py b/githubkit/versions/ghec_v2022_11_28/models/group_1119.py index e13da8a38..7a5ec1511 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1119.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1119.py @@ -9,23 +9,40 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoDispatchesPostBody(GitHubModel): + """ReposOwnerRepoDispatchesPostBody""" - 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." + event_type: str = Field( + min_length=1, + max_length=100, + description="A custom webhook event name. Must be 100 characters or fewer.", + ) + client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( + default=UNSET, + description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.", ) -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) +class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload + + JSON payload with extra information about the webhook event that your action or + workflow may use. The maximum number of top-level properties is 10. The total + size of the JSON payload must be less than 64KB. + """ + + +model_rebuild(ReposOwnerRepoDispatchesPostBody) +model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) +__all__ = ( + "ReposOwnerRepoDispatchesPostBody", + "ReposOwnerRepoDispatchesPostBodyPropClientPayload", +) 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 2094ba5bb..0459b3653 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1120.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1120.py @@ -17,55 +17,53 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0311 import DeploymentBranchPolicySettings -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( +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + + wait_timer: Missing[int] = Field( default=UNSET, - description="Username to assign to this issue. **This field is closing down.**", + description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", ) - state: 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( + prevent_self_review: Missing[bool] = Field( default=UNSET, - description="The reason for the state change. Ignored unless `state` is changed.", + description="Whether or not a user who created the job is prevented from approving their own job.", ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - list[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] + reviewers: Missing[ + Union[ + list[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], + None, + ] ] = Field( default=UNSET, - description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", + description="The 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.", ) - 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.", + 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 ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - 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) + 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", + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) __all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBody", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ) 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 5b60a1932..e8d56e3db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1121.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1121.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,15 +18,42 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" + + total_count: int = Field( + description="The number of deployment branch policies for the environment." + ) + branch_policies: list[DeploymentBranchPolicy] = Field() + + +class DeploymentBranchPolicy(GitHubModel): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ - assignees: Missing[list[str]] = Field( + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the branch or tag policy." + ) + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( default=UNSET, - description="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="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(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 +) +model_rebuild(DeploymentBranchPolicy) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) +__all__ = ( + "DeploymentBranchPolicy", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", +) 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 1c74a1195..b5d03989b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1122.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1122.py @@ -16,15 +16,21 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - assignees: Missing[list[str]] = Field( + integration_id: Missing[int] = 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="The ID of the custom app that will be enabled on the environment.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody +) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", +) 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 49a6d6da0..2f221a895 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1123.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1123.py @@ -12,14 +12,32 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0317 import CustomDeploymentRuleApp -class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - body: str = Field(description="The contents of the comment.") +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of custom deployment protection rule integrations available for this environment.", + ) + available_custom_deployment_protection_rule_integrations: Missing[ + list[CustomDeploymentRuleApp] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 +) + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", +) 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 761aba5f8..5b7658c8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1124.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1124.py @@ -11,21 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild +from .group_0223 import ActionsSecret -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - labels: Missing[list[str]] = Field( - min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#add-labels-to-an-issue)."', - ) +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) 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 ed2c2a834..60d9411b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1125.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1125.py @@ -11,29 +11,19 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - labels: Missing[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] - ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) + 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.") -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) 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 d59513ace..6a2b49a6e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1126.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1126.py @@ -13,13 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0224 import ActionsVariable -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - name: str = Field() +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) 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 ebaf1ae29..376060834 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1127.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1127.py @@ -11,21 +11,16 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - labels: Missing[list[str]] = Field( - min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)."', - ) + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) 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 f67daaa62..6a0d6de99 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1128.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1128.py @@ -11,29 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - labels: Missing[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] - ] = Field(min_length=1 if PYDANTIC_V2 else None, 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.") -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) 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 dfb903bb9..abc9b3749 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1129.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1129.py @@ -12,14 +12,27 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoForksPostBody(GitHubModel): + """ReposOwnerRepoForksPostBody""" - name: str = Field() + 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(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) +model_rebuild(ReposOwnerRepoForksPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) +__all__ = ("ReposOwnerRepoForksPostBody",) 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 485b30e7e..f4b8ca964 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1130.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1130.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,17 +16,16 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoGitBlobsPostBody(GitHubModel): + """ReposOwnerRepoGitBlobsPostBody""" - 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`", - ) + content: str = Field(description="The new blob's content.") + encoding: Missing[str] = Field( + default=UNSET, + description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) +model_rebuild(ReposOwnerRepoGitBlobsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) +__all__ = ("ReposOwnerRepoGitBlobsPostBody",) 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 42295dd52..111a9d4a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1131.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1131.py @@ -9,23 +9,83 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoGitCommitsPostBody(GitHubModel): + """ReposOwnerRepoGitCommitsPostBody""" - 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." + message: str = Field(description="The commit message") + tree: str = Field(description="The SHA of the tree object this commit points to") + parents: Missing[list[str]] = Field( + default=UNSET, + description="The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", + ) + author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( + default=UNSET, + description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", + ) + committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( + default=UNSET, + description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", + ) + signature: Missing[str] = Field( + default=UNSET, + description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str = Field(description="The name of the author (or committer) of the commit") + email: str = Field( + description="The email of the author (or committer) of the commit" + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) +__all__ = ( + "ReposOwnerRepoGitCommitsPostBody", + "ReposOwnerRepoGitCommitsPostBodyPropAuthor", + "ReposOwnerRepoGitCommitsPostBodyPropCommitter", +) 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 784c4e080..e02988ad3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1132.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1132.py @@ -14,12 +14,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" +class ReposOwnerRepoGitRefsPostBody(GitHubModel): + """ReposOwnerRepoGitRefsPostBody""" - sub_issue_id: int = Field(description="The sub-issue to remove") + 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(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) +model_rebuild(ReposOwnerRepoGitRefsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) +__all__ = ("ReposOwnerRepoGitRefsPostBody",) 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 58e0fba0b..dc680ffcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1133.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1133.py @@ -16,16 +16,16 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" +class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): + """ReposOwnerRepoGitRefsRefPatchBody""" - sub_issue_id: int = Field(description="The sub-issue to add") - replace_parent: Missing[bool] = Field( + sha: str = Field(description="The SHA1 value to set this reference to") + force: Missing[bool] = Field( default=UNSET, - description="Option that, when true, instructs the operation to replace the sub-issues current parent issue", + 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(ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody) +model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) 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 f3aab1e81..2366c3d87 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1134.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1134.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,20 +19,43 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" +class ReposOwnerRepoGitTagsPostBody(GitHubModel): + """ReposOwnerRepoGitTagsPostBody""" - sub_issue_id: int = Field(description="The id of the sub-issue to reprioritize") - after_id: Missing[int] = Field( + 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="The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).", + description="An object with information about the individual creating the tag.", ) - before_id: Missing[int] = Field( + + +class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ + + name: str = Field(description="The name of the author of the tag") + email: str = Field(description="The email of the author of the tag") + date: Missing[datetime] = Field( default=UNSET, - description="The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).", + 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(ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody) +model_rebuild(ReposOwnerRepoGitTagsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",) +__all__ = ( + "ReposOwnerRepoGitTagsPostBody", + "ReposOwnerRepoGitTagsPostBodyPropTagger", +) 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 c1416622e..1d6bd8e59 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1135.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1135.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +18,45 @@ from githubkit.utils import UNSET -class ReposOwnerRepoKeysPostBody(GitHubModel): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoGitTreesPostBody(GitHubModel): + """ReposOwnerRepoGitTreesPostBody""" + + tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( + description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + ) + base_tree: Missing[str] = Field( + default=UNSET, + description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.", + ) + + +class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - 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( + path: Missing[str] = Field( + default=UNSET, description="The file referenced in the tree." + ) + mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( + default=UNSET, + description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", + ) + type: Missing[Literal["blob", "tree", "commit"]] = Field( + default=UNSET, description="Either `blob`, `tree`, or `commit`." + ) + sha: Missing[Union[str, None]] = Field( + default=UNSET, + description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + ) + content: Missing[str] = Field( default=UNSET, - description='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/)."', + description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", ) -model_rebuild(ReposOwnerRepoKeysPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) -__all__ = ("ReposOwnerRepoKeysPostBody",) +__all__ = ( + "ReposOwnerRepoGitTreesPostBody", + "ReposOwnerRepoGitTreesPostBodyPropTreeItems", +) 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 27dc128b3..0a8c270bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1136.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1136.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,22 +18,51 @@ from githubkit.utils import UNSET -class ReposOwnerRepoLabelsPostBody(GitHubModel): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoHooksPostBody(GitHubModel): + """ReposOwnerRepoHooksPostBody""" + + name: Missing[str] = Field( + default=UNSET, + description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", + ) + config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", + ) + events: Missing[list[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): + """ReposOwnerRepoHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ - 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)."' + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - color: Missing[str] = Field( + content_type: Missing[str] = Field( default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - description: Missing[str] = Field( + secret: Missing[str] = Field( default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", + 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(ReposOwnerRepoLabelsPostBody) +model_rebuild(ReposOwnerRepoHooksPostBody) +model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) -__all__ = ("ReposOwnerRepoLabelsPostBody",) +__all__ = ( + "ReposOwnerRepoHooksPostBody", + "ReposOwnerRepoHooksPostBodyPropConfig", +) 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 810ac1cad..aead6592d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1137.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1137.py @@ -15,24 +15,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0011 import WebhookConfig -class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): - """ReposOwnerRepoLabelsNamePatchBody""" - new_name: Missing[str] = Field( +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='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)."', + description="Determines a list of events to be added to the list of events that the Hook triggers for.", ) - color: Missing[str] = Field( + remove_events: Missing[list[str]] = Field( default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", + description="Determines a list of events to be removed from the list of events that the Hook triggers for.", ) - description: Missing[str] = Field( + active: Missing[bool] = Field( default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) -model_rebuild(ReposOwnerRepoLabelsNamePatchBody) +model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) -__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) +__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) 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 7be32859a..150aaa1f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1138.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1138.py @@ -9,19 +9,32 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - branch: str = Field( - description="The name of the branch which should be updated to match upstream." + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) +model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) -__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) 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 8d864c09c..4e11d0489 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.compat import GitHubModel, model_rebuild @@ -16,21 +18,28 @@ from githubkit.utils import UNSET -class ReposOwnerRepoMergesPostBody(GitHubModel): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoImportPutBody(GitHubModel): + """ReposOwnerRepoImportPutBody""" - base: str = Field( - description="The name of the base branch that the head will be merged into." + 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.", ) - head: str = Field( - description="The head to merge. This can be a branch name or a commit SHA1." + vcs_username: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the username to provide to `vcs_url`.", + ) + vcs_password: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the password to provide to `vcs_url`.", ) - commit_message: Missing[str] = Field( + tfvc_project: Missing[str] = Field( default=UNSET, - description="Commit message to use for the merge commit. If omitted, a default message will be used.", + description="For a tfvc import, the name of the project that is being imported.", ) -model_rebuild(ReposOwnerRepoMergesPostBody) +model_rebuild(ReposOwnerRepoImportPutBody) -__all__ = ("ReposOwnerRepoMergesPostBody",) +__all__ = ("ReposOwnerRepoImportPutBody",) 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 4c86e4385..73c9a3a1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1140.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1140.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,23 +18,27 @@ from githubkit.utils import UNSET -class ReposOwnerRepoMilestonesPostBody(GitHubModel): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoImportPatchBody(GitHubModel): + """ReposOwnerRepoImportPatchBody""" - title: str = Field(description="The title of the milestone.") - state: Missing[Literal["open", "closed"]] = Field( + vcs_username: Missing[str] = Field( default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", + description="The username to provide to the originating repository.", ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." + 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.", ) - due_on: Missing[datetime] = Field( + tfvc_project: 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="For a tfvc import, the name of the project that is being imported.", ) -model_rebuild(ReposOwnerRepoMilestonesPostBody) +model_rebuild(ReposOwnerRepoImportPatchBody) -__all__ = ("ReposOwnerRepoMilestonesPostBody",) +__all__ = ("ReposOwnerRepoImportPatchBody",) 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 c674f9121..bac05d75f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1141.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1141.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,25 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - title: Missing[str] = Field( - default=UNSET, description="The title of the milestone." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) + 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(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) +model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) 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 7a766cc33..7727d20f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1142.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1142.py @@ -9,24 +9,21 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoNotificationsPutBody(GitHubModel): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoImportLfsPatchBody(GitHubModel): + """ReposOwnerRepoImportLfsPatchBody""" - 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.", + 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(ReposOwnerRepoNotificationsPutBody) +model_rebuild(ReposOwnerRepoImportLfsPatchBody) -__all__ = ("ReposOwnerRepoNotificationsPutBody",) +__all__ = ("ReposOwnerRepoImportLfsPatchBody",) 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 41ae3801e..759975570 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1143.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1143.py @@ -9,20 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): - """ReposOwnerRepoNotificationsPutResponse202""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" -model_rebuild(ReposOwnerRepoNotificationsPutResponse202) +model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) -__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) 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 aaa502a31..3569862c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1144.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1144.py @@ -14,22 +14,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - Update the source for the repository. Must include the branch name and path. - """ - - 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`." + permissions: Missing[Literal["read", "write", "maintain", "triage", "admin"]] = ( + Field( + default=UNSET, + description="The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.", + ) ) -model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) +model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) 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 43c6cef09..d22e53ed3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1145.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1145.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,35 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1144 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof0""" - - cname: Missing[Union[str, None]] = Field( + 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='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)."', + description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_", ) - https_enforced: Missing[bool] = Field( + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] + ] = 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." + description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: Missing[bool] = Field( + assignees: Missing[list[str]] = Field( default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", + description="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._", ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) +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__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) +__all__ = ( + "ReposOwnerRepoIssuesPostBody", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", +) 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 be485d84f..2e91230e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1146.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1146.py @@ -9,42 +9,17 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_1144 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof1""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] = Field() - public: Missing[bool] = Field( - default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", - ) - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) + + +class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" + + body: str = Field(description="The contents of the comment.") + + +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) + +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) 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 e2e00faf3..e13da8a38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1147.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1147.py @@ -9,43 +9,23 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_1144 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof2""" - - cname: Union[str, None] = Field( - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."' - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: 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.", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue comment." ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) 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 5f05c7622..2094ba5bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1148.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1148.py @@ -17,35 +17,55 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1144 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" -class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof3""" - - cname: Missing[Union[str, None]] = Field( + 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='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)."', + description="Username to assign to this issue. **This field is closing down.**", + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="The open or closed state of the issue." ) - https_enforced: Missing[bool] = Field( + state_reason: Missing[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] = Field( default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", + description="The reason for the state change. Ignored unless `state` is changed.", ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + list[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] + ] = Field( default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + description="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.", ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: bool = Field( - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility." + 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.", ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) +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__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBody", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", +) 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 4733fa672..5b60a1932 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1149.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1149.py @@ -9,43 +9,22 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1144 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - -class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof4""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: bool = Field( - description="Specify whether HTTPS should be enforced for the repository." - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: Missing[bool] = Field( + assignees: Missing[list[str]] = Field( default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", + description="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(ReposOwnerRepoPagesPutBodyAnyof4) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) 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 693572351..1c74a1195 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1150.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1150.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,21 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): - """ReposOwnerRepoPagesPostBodyPropSource - - The source branch and directory used to publish your Pages site. - """ +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - branch: str = Field( - description="The repository branch used to publish your site's source files." - ) - path: Missing[Literal["/", "/docs"]] = Field( + assignees: Missing[list[str]] = Field( default=UNSET, - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", + 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(ReposOwnerRepoPagesPostBodyPropSource) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) -__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) 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 e801224cb..49a6d6da0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1151.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1151.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_1150 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof0""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - 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"`.', - ) - source: ReposOwnerRepoPagesPostBodyPropSource = Field( - description="The source branch and directory used to publish your Pages site." - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) +model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) 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 6472b0932..761aba5f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1152.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1152.py @@ -9,29 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1150 import ReposOwnerRepoPagesPostBodyPropSource - -class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof1""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - 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( + labels: Missing[list[str]] = Field( + min_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="The source branch and directory used to publish your Pages site.", + description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#add-labels-to-an-issue)."', ) -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) 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 d9c520300..ed2c2a834 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1153.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1153.py @@ -11,38 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoPagesDeploymentsPostBody - - The object used to create GitHub Pages deployment - """ - - artifact_id: Missing[float] = Field( - default=UNSET, - description="The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", - ) - artifact_url: Missing[str] = Field( - default=UNSET, - description="The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="The target environment for this GitHub Pages deployment.", - ) - pages_build_version: str = Field( - default="GITHUB_SHA", - description="A unique string that represents the version of the build for this deployment.", - ) - oidc_token: str = Field( - description="The OIDC token issued by GitHub Actions certifying the origin of the deployment." - ) - - -model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) - -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" + + labels: Missing[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] + ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) + + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", +) 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 c70eda7b0..d59513ace 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1154.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1154.py @@ -14,14 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - enabled: bool = Field( - description="Whether or not private vulnerability reporting is enabled for the repository." - ) + name: str = Field() -model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) 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 a5aa6012f..ebaf1ae29 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1155.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1155.py @@ -11,20 +11,21 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoProjectsPostBody(GitHubModel): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." + labels: Missing[list[str]] = Field( + min_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)."', ) -model_rebuild(ReposOwnerRepoProjectsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) -__all__ = ("ReposOwnerRepoProjectsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) 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 ccdd33f6a..f67daaa62 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1156.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1156.py @@ -11,19 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0190 import CustomPropertyValue +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" -class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): - """ReposOwnerRepoPropertiesValuesPatchBody""" + labels: Missing[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] + ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) - properties: list[CustomPropertyValue] = Field( - description="A list of custom property names and associated values to apply to the repositories." - ) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" -model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) + name: str = Field() -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", +) 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 fc07eac19..dfb903bb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1157.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1157.py @@ -12,44 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -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",) + + +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" + + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) + +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) 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 b48ea50a0..485b30e7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1158.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1158.py @@ -9,17 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - body: str = Field(description="The text of the reply to the review comment.") + 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(ReposOwnerRepoPullsCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) 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 7206cc70c..42295dd52 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1159.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1159.py @@ -16,16 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" 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." + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue." ) -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) 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 b3df1fc05..f813db6bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1160.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1160.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberPatchBody""" - - title: Missing[str] = Field( - default=UNSET, description="The title of the pull request." - ) - body: Missing[str] = Field( - default=UNSET, description="The contents of the pull request." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="State of this Pull Request. Either `open` or `closed`.", - ) - base: Missing[str] = Field( - 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.", - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) + + +class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" + + sub_issue_id: int = Field(description="The id of the sub-issue to remove") + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) + +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) 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 3bd074c1a..718757090 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1161.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1161.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,48 +16,18 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" + sub_issue_id: int = Field( + description="The id of the sub-issue to add. The sub-issue must belong to the same repository as the parent issue" ) - retention_period_minutes: Missing[int] = Field( + replace_parent: 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="Option that, when true, instructs the operation to replace the sub-issues current parent issue", ) -model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",) 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 9c11e4401..f3aab1e81 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1162.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1162.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,45 +16,20 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" - body: str = Field(description="The text of the review comment.") - commit_id: str = Field( - description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." - ) - path: str = Field( - description="The relative path to the file that necessitates a comment." - ) - position: Missing[int] = Field( - default=UNSET, - description='**This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/enterprise-cloud@latest//articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', - ) - line: Missing[int] = Field( - default=UNSET, - description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", - ) - start_line: Missing[int] = Field( + sub_issue_id: int = Field(description="The id of the sub-issue to reprioritize") + after_id: 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.', + description="The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).", ) - start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( + before_id: Missing[int] = 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." + description="The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).", ) -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",) 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 19ce96346..c1416622e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1163.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1163.py @@ -12,14 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoKeysPostBody(GitHubModel): + """ReposOwnerRepoKeysPostBody""" - body: str = Field(description="The text of the review comment.") + 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/)."', + ) -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) +model_rebuild(ReposOwnerRepoKeysPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) +__all__ = ("ReposOwnerRepoKeysPostBody",) 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 ea6df3d24..27dc128b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1164.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1164.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,24 +16,22 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoLabelsPostBody(GitHubModel): + """ReposOwnerRepoLabelsPostBody""" - 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." + 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)."' ) - sha: Missing[str] = Field( + color: Missing[str] = Field( default=UNSET, - description="SHA that pull request head must match to allow merge.", + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", ) - merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( - default=UNSET, description="The merge method to use." + description: Missing[str] = Field( + default=UNSET, + description="A short description of the label. Must be 100 characters or fewer.", ) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) +model_rebuild(ReposOwnerRepoLabelsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) +__all__ = ("ReposOwnerRepoLabelsPostBody",) 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 d66d3bdba..810ac1cad 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1165.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1165.py @@ -16,13 +16,23 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) +class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): + """ReposOwnerRepoLabelsNamePatchBody""" + + 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(ReposOwnerRepoLabelsNamePatchBody) + +__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) 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 bd6450076..7be32859a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1166.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1166.py @@ -12,17 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): + """ReposOwnerRepoMergeUpstreamPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + branch: str = Field( + description="The name of the branch which should be updated to match upstream." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) +model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) 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 902cd85dd..8d864c09c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1167.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1167.py @@ -16,17 +16,21 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoMergesPostBody(GitHubModel): + """ReposOwnerRepoMergesPostBody""" - reviewers: list[str] = Field( - description="An array of user `login`s that will be requested." + base: str = Field( + description="The name of the base branch that the head will be merged into." ) - team_reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be requested." + 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.", ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) +model_rebuild(ReposOwnerRepoMergesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoMergesPostBody",) 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 a68a64ae9..4c86e4385 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1168.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1168.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +19,23 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoMilestonesPostBody(GitHubModel): + """ReposOwnerRepoMilestonesPostBody""" - reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of user `login`s that will be requested." + title: str = Field(description="The title of the milestone.") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, + description="The state of the milestone. Either `open` or `closed`.", + ) + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." ) - team_reviewers: list[str] = Field( - description="An array of team `slug`s that will be requested." + due_on: Missing[datetime] = Field( + default=UNSET, + description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) +model_rebuild(ReposOwnerRepoMilestonesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoMilestonesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1169.py b/githubkit/versions/ghec_v2022_11_28/models/group_1169.py index 80abd70e6..c674f9121 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1169.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1169.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +19,25 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - reviewers: list[str] = Field( - description="An array of user `login`s that will be removed." + title: Missing[str] = Field( + default=UNSET, description="The title of the 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." ) - team_reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be removed." + due_on: Missing[datetime] = Field( + default=UNSET, + description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) +model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1170.py b/githubkit/versions/ghec_v2022_11_28/models/group_1170.py index 3da9be3cf..7a766cc33 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1170.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1170.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,50 +18,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoNotificationsPutBody(GitHubModel): + """ReposOwnerRepoNotificationsPutBody""" - commit_id: Missing[str] = Field( + last_read_at: Missing[datetime] = Field( default=UNSET, - description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", + description="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.", ) - body: Missing[str] = Field( - default=UNSET, - description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", - ) - event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( - default=UNSET, - description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", - ) - comments: Missing[ - list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] - ] = Field( - default=UNSET, - description="Use the following table to specify the location, destination, and contents of the draft review comment.", - ) - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str = Field( - description="The relative path to the file that necessitates a review comment." - ) - position: Missing[int] = Field( - default=UNSET, - description='The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - body: str = Field(description="Text of the review comment.") - line: Missing[int] = Field(default=UNSET) - side: Missing[str] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - start_side: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) +model_rebuild(ReposOwnerRepoNotificationsPutBody) -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBody", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", -) +__all__ = ("ReposOwnerRepoNotificationsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1171.py b/githubkit/versions/ghec_v2022_11_28/models/group_1171.py index 60600e7a7..41ae3801e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1171.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1171.py @@ -12,14 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): + """ReposOwnerRepoNotificationsPutResponse202""" - body: str = Field(description="The body text of the pull request review.") + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) +model_rebuild(ReposOwnerRepoNotificationsPutResponse202) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1172.py b/githubkit/versions/ghec_v2022_11_28/models/group_1172.py index 0c8535339..aaa502a31 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1172.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1172.py @@ -14,19 +14,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - message: str = Field( - description="The message for the pull request review dismissal" + Update the source for the repository. Must include the branch name and path. + """ + + 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`." ) - event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) +model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1173.py b/githubkit/versions/ghec_v2022_11_28/models/group_1173.py index 6298e6dda..da4360cc6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1173.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1173.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1172 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - body: Missing[str] = Field( - default=UNSET, description="The body text of the pull request review" +class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof0""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Literal["legacy", "workflow"] = Field( + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." ) - 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." + 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(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1174.py b/githubkit/versions/ghec_v2022_11_28/models/group_1174.py index 2cd70e70e..8cc13f9e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1174.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1174.py @@ -9,22 +9,42 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1172 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof1""" - expected_head_sha: Missing[str] = Field( + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] = Field() + public: Missing[bool] = Field( default=UNSET, - description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", + description="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(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1175.py b/githubkit/versions/ghec_v2022_11_28/models/group_1175.py index 0846546b8..aab8bdbaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1175.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1175.py @@ -9,20 +9,43 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) - -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) +from .group_1172 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + + +class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof2""" + + cname: Union[str, None] = Field( + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."' + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: 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) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1176.py b/githubkit/versions/ghec_v2022_11_28/models/group_1176.py index e8299b1e6..6a1e0eb4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1176.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1176.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,41 +17,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1172 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -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( +class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof3""" + + cname: Missing[Union[str, None]] = Field( default=UNSET, - description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", + 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)."', ) - discussion_category_name: Missing[str] = Field( + https_enforced: Missing[bool] = 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)."', + description="Specify whether HTTPS should be enforced for the repository.", ) - generate_release_notes: Missing[bool] = Field( + build_type: Missing[Literal["legacy", "workflow"]] = 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.", + 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.", ) - 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.", + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: bool = Field( + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility." ) -model_rebuild(ReposOwnerRepoReleasesPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) -__all__ = ("ReposOwnerRepoReleasesPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1177.py b/githubkit/versions/ghec_v2022_11_28/models/group_1177.py index 1c74bbef7..96958bd19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1177.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1177.py @@ -9,24 +9,43 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1172 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + -class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof4""" - name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") - label: Missing[str] = Field( + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: bool = Field( + description="Specify whether HTTPS should be enforced for the repository." + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: Missing[bool] = Field( default=UNSET, - description="An alternate short description of the asset. Used in place of the filename.", + 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.", ) - state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1178.py b/githubkit/versions/ghec_v2022_11_28/models/group_1178.py index 05de52925..693572351 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1178.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1178.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,26 +18,21 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): + """ReposOwnerRepoPagesPostBodyPropSource - 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.", + The source branch and directory used to publish your Pages site. + """ + + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - configuration_file_path: Missing[str] = Field( + path: Missing[Literal["/", "/docs"]] = 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="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", ) -model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1179.py b/githubkit/versions/ghec_v2022_11_28/models/group_1179.py index 14a71f3c8..65ea51038 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1179.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1179.py @@ -17,37 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1178 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" - 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( +class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof0""" + + build_type: Missing[Literal["legacy", "workflow"]] = 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 process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', ) - 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)."', + source: ReposOwnerRepoPagesPostBodyPropSource = Field( + description="The source branch and directory used to publish your Pages site." ) -model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1180.py b/githubkit/versions/ghec_v2022_11_28/models/group_1180.py index 2e3235af7..8745b2049 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1180.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1180.py @@ -14,16 +14,24 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_1178 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - 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." +class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof1""" + + build_type: Literal["legacy", "workflow"] = Field( + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' + ) + source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( + default=UNSET, + description="The source branch and directory used to publish your Pages site.", ) -model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1181.py b/githubkit/versions/ghec_v2022_11_28/models/group_1181.py index b3f00db31..d9c520300 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1181.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1181.py @@ -9,88 +9,40 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0072 import RepositoryRulesetBypassActor -from .group_0077 import RepositoryRulesetConditions -from .group_0087 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0088 import RepositoryRuleUpdate -from .group_0090 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0091 import RepositoryRuleMergeQueue -from .group_0093 import RepositoryRuleRequiredDeployments -from .group_0096 import RepositoryRulePullRequest -from .group_0098 import RepositoryRuleRequiredStatusChecks -from .group_0100 import RepositoryRuleCommitMessagePattern -from .group_0102 import RepositoryRuleCommitAuthorEmailPattern -from .group_0104 import RepositoryRuleCommitterEmailPattern -from .group_0106 import RepositoryRuleBranchNamePattern -from .group_0108 import RepositoryRuleTagNamePattern -from .group_0111 import RepositoryRuleWorkflows -from .group_0113 import RepositoryRuleCodeScanning -from .group_0115 import RepositoryRuleOneof18 +class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoPagesDeploymentsPostBody -class ReposOwnerRepoRulesetsPostBody(GitHubModel): - """ReposOwnerRepoRulesetsPostBody""" + The object used to create GitHub Pages deployment + """ - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." + 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.", ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + artifact_url: Missing[str] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + 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.", ) - conditions: Missing[RepositoryRulesetConditions] = Field( + environment: Missing[str] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + 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." ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsPostBody) +model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) -__all__ = ("ReposOwnerRepoRulesetsPostBody",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1182.py b/githubkit/versions/ghec_v2022_11_28/models/group_1182.py index da2af0b9d..c70eda7b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1182.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1182.py @@ -9,89 +9,19 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0072 import RepositoryRulesetBypassActor -from .group_0077 import RepositoryRulesetConditions -from .group_0087 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0088 import RepositoryRuleUpdate -from .group_0090 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0091 import RepositoryRuleMergeQueue -from .group_0093 import RepositoryRuleRequiredDeployments -from .group_0096 import RepositoryRulePullRequest -from .group_0098 import RepositoryRuleRequiredStatusChecks -from .group_0100 import RepositoryRuleCommitMessagePattern -from .group_0102 import RepositoryRuleCommitAuthorEmailPattern -from .group_0104 import RepositoryRuleCommitterEmailPattern -from .group_0106 import RepositoryRuleBranchNamePattern -from .group_0108 import RepositoryRuleTagNamePattern -from .group_0111 import RepositoryRuleWorkflows -from .group_0113 import RepositoryRuleCodeScanning -from .group_0115 import RepositoryRuleOneof18 -class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + enabled: bool = Field( + description="Whether or not private vulnerability reporting is enabled for the repository." ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) +model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1183.py b/githubkit/versions/ghec_v2022_11_28/models/group_1183.py index d5c9219ba..a5aa6012f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1183.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1183.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,24 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoProjectsPostBody(GitHubModel): + """ReposOwnerRepoProjectsPostBody""" - state: Literal["open", "resolved"] = Field( - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoProjectsPostBody) -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1184.py b/githubkit/versions/ghec_v2022_11_28/models/group_1184.py index decc899b3..9e789f958 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1184.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1184.py @@ -9,24 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0197 import CustomPropertyValue -class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody(GitHubModel): - """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - reason: Literal["false_positive", "used_in_tests", "will_fix_later"] = Field( - description="The reason for bypassing push protection." - ) - placeholder_id: str = Field( - description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes." +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(ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody) +model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) -__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",) +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1185.py b/githubkit/versions/ghec_v2022_11_28/models/group_1185.py index e513640d6..fc07eac19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1185.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1185.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,25 +16,40 @@ from githubkit.utils import UNSET -class ReposOwnerRepoStatusesShaPostBody(GitHubModel): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoPullsPostBody(GitHubModel): + """ReposOwnerRepoPullsPostBody""" - state: Literal["error", "failure", "pending", "success"] = Field( - description="The state of the status." + 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." ) - target_url: Missing[Union[str, None]] = Field( + body: Missing[str] = Field( + default=UNSET, description="The contents of the pull request." + ) + maintainer_can_modify: Missing[bool] = Field( default=UNSET, - description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", + description="Indicates whether [maintainers can modify](https://docs.github.com/enterprise-cloud@latest//articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the status." + 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.', ) - context: Missing[str] = Field( + issue: Missing[int] = Field( default=UNSET, - description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", + 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(ReposOwnerRepoStatusesShaPostBody) +model_rebuild(ReposOwnerRepoPullsPostBody) -__all__ = ("ReposOwnerRepoStatusesShaPostBody",) +__all__ = ("ReposOwnerRepoPullsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1186.py b/githubkit/versions/ghec_v2022_11_28/models/group_1186.py index 892aedcd1..b48ea50a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1186.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1186.py @@ -12,23 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoSubscriptionPutBody(GitHubModel): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - 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.", - ) + body: str = Field(description="The text of the reply to the review comment.") -model_rebuild(ReposOwnerRepoSubscriptionPutBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoSubscriptionPutBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1187.py b/githubkit/versions/ghec_v2022_11_28/models/group_1187.py index 59aae89ec..7206cc70c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1187.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1187.py @@ -9,19 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - pattern: str = Field( - description="An optional glob pattern to match against when enforcing tag protection." + 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(ReposOwnerRepoTagsProtectionPostBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1188.py b/githubkit/versions/ghec_v2022_11_28/models/group_1188.py index 0e1dc53ec..b3df1fc05 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1188.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1188.py @@ -9,19 +9,38 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoTopicsPutBody(GitHubModel): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberPatchBody""" - names: list[str] = Field( - description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase." + 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.", ) -model_rebuild(ReposOwnerRepoTopicsPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) -__all__ = ("ReposOwnerRepoTopicsPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1189.py b/githubkit/versions/ghec_v2022_11_28/models/group_1189.py index df5879cb9..3bd074c1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1189.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1189.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,21 +18,48 @@ from githubkit.utils import UNSET -class ReposOwnerRepoTransferPostBody(GitHubModel): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - new_owner: str = Field( - description="The username or organization name the repository will be transferred to." + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", ) - new_name: Missing[str] = Field( - default=UNSET, description="The new name to be given to the repository." + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" ) - team_ids: Missing[list[int]] = Field( + retention_period_minutes: Missing[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.", + 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(ReposOwnerRepoTransferPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) -__all__ = ("ReposOwnerRepoTransferPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1190.py b/githubkit/versions/ghec_v2022_11_28/models/group_1190.py index 91764e3b1..9c11e4401 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1190.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1190.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,27 +18,45 @@ from githubkit.utils import UNSET -class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - owner: Missing[str] = Field( + body: str = Field(description="The text of the review comment.") + commit_id: str = Field( + description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." + ) + path: str = Field( + description="The relative path to the file that necessitates a comment." + ) + position: Missing[int] = Field( default=UNSET, - description="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.", + description='**This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', ) - name: str = Field(description="The name of the new repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the new repository." + 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.', ) - include_all_branches: Missing[bool] = Field( + line: Missing[int] = Field( default=UNSET, - description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", + description="**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.", ) - private: Missing[bool] = Field( + start_line: Missing[int] = Field( default=UNSET, - description="Either `true` to create a new private repository or `false` to create a new public one.", + 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(ReposTemplateOwnerTemplateRepoGeneratePostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1191.py b/githubkit/versions/ghec_v2022_11_28/models/group_1191.py index 0909fe5f8..19ce96346 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1191.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1191.py @@ -11,59 +11,15 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ScimV2OrganizationsOrgUsersPostBody(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - user_name: str = Field( - alias="userName", - description="Configured by the admin. Could be an email, login, or username", - ) - display_name: Missing[str] = Field( - default=UNSET, - alias="displayName", - description="The name of the user, suitable for display to end-users", - ) - name: ScimV2OrganizationsOrgUsersPostBodyPropName = Field() - emails: list[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems] = Field( - min_length=1 if PYDANTIC_V2 else None, description="user emails" - ) - schemas: Missing[list[str]] = Field(default=UNSET) - external_id: Missing[str] = Field(default=UNSET, alias="externalId") - groups: Missing[list[str]] = Field(default=UNSET) - active: Missing[bool] = Field(default=UNSET) + body: str = Field(description="The text of the review comment.") -class ScimV2OrganizationsOrgUsersPostBodyPropName(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBodyPropName +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str = Field(alias="givenName") - family_name: str = Field(alias="familyName") - formatted: Missing[str] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" - - value: str = Field() - primary: Missing[bool] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -model_rebuild(ScimV2OrganizationsOrgUsersPostBody) -model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropName) -model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems) - -__all__ = ( - "ScimV2OrganizationsOrgUsersPostBody", - "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", - "ScimV2OrganizationsOrgUsersPostBodyPropName", -) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1192.py b/githubkit/versions/ghec_v2022_11_28/models/group_1192.py index 9cfdbc55c..ea6df3d24 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1192.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1192.py @@ -9,61 +9,33 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ScimV2OrganizationsOrgUsersScimUserIdPutBody(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" +class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - schemas: Missing[list[str]] = Field(default=UNSET) - display_name: Missing[str] = Field( - default=UNSET, - alias="displayName", - description="The name of the user, suitable for display to end-users", + commit_title: Missing[str] = Field( + default=UNSET, description="Title for the automatic commit message." ) - 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", + commit_message: Missing[str] = Field( + default=UNSET, description="Extra detail to append to automatic commit message." ) - name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName = Field() - emails: list[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems] = Field( - min_length=1 if PYDANTIC_V2 else None, description="user emails" + 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." ) -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str = Field(alias="givenName") - family_name: str = Field(alias="familyName") - formatted: Missing[str] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" - - type: Missing[str] = Field(default=UNSET) - value: str = Field() - primary: Missing[bool] = Field(default=UNSET) - - -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBody) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPutBody", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1193.py b/githubkit/versions/ghec_v2022_11_28/models/group_1193.py index d9bccefa5..d66d3bdba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1193.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1193.py @@ -9,79 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ScimV2OrganizationsOrgUsersScimUserIdPatchBody(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" - - schemas: Missing[list[str]] = Field(default=UNSET) - operations: list[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems - ] = Field( - min_length=1 if PYDANTIC_V2 else None, - alias="Operations", - description="Set of operations to be performed", - ) - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" - - op: Literal["add", "remove", "replace"] = Field() - path: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, - list[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items - ], - str, - ] - ] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0( - GitHubModel -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" - - active: Missing[Union[bool, None]] = Field(default=UNSET) - user_name: Missing[Union[str, None]] = Field(default=UNSET, alias="userName") - external_id: Missing[Union[str, None]] = Field(default=UNSET, alias="externalId") - given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") - family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items( - GitHubModel -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 - Items - """ +class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - value: Missing[str] = Field(default=UNSET) - primary: Missing[bool] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBody) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems) -model_rebuild( - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 -) -model_rebuild( - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items -) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1194.py b/githubkit/versions/ghec_v2022_11_28/models/group_1194.py index b47b92a02..bd6450076 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1194.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1194.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,32 +16,13 @@ from githubkit.utils import UNSET -class TeamsTeamIdPatchBody(GitHubModel): - """TeamsTeamIdPatchBody""" - - name: str = Field(description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." - ) - - -model_rebuild(TeamsTeamIdPatchBody) - -__all__ = ("TeamsTeamIdPatchBody",) +class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) + +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1195.py b/githubkit/versions/ghec_v2022_11_28/models/group_1195.py index 89bdf737f..902cd85dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1195.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1195.py @@ -16,17 +16,17 @@ from githubkit.utils import UNSET -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.", +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" + + 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." ) -model_rebuild(TeamsTeamIdDiscussionsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) -__all__ = ("TeamsTeamIdDiscussionsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1196.py b/githubkit/versions/ghec_v2022_11_28/models/group_1196.py index 01b62eeb5..a68a64ae9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1196.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1196.py @@ -16,17 +16,17 @@ from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - title: Missing[str] = Field( - default=UNSET, description="The discussion post's title." + reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of user `login`s that will be requested." ) - body: Missing[str] = Field( - default=UNSET, description="The discussion post's body text." + team_reviewers: list[str] = Field( + description="An array of team `slug`s that will be requested." ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1197.py b/githubkit/versions/ghec_v2022_11_28/models/group_1197.py index 2333d1363..80abd70e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1197.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1197.py @@ -12,14 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - body: str = Field(description="The discussion comment's body text.") + reviewers: list[str] = Field( + description="An array of user `login`s that will be removed." + ) + team_reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be removed." + ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1198.py b/githubkit/versions/ghec_v2022_11_28/models/group_1198.py index a44a260ff..3da9be3cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1198.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1198.py @@ -9,17 +9,59 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class 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 TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - body: str = Field(description="The discussion comment's body text.") + 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(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBody", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1199.py b/githubkit/versions/ghec_v2022_11_28/models/group_1199.py index fae48df36..60600e7a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1199.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1199.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 ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - 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 body text of the pull request review.") -model_rebuild( - TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1200.py b/githubkit/versions/ghec_v2022_11_28/models/group_1200.py index a1d80ad44..0c8535339 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1200.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1200.py @@ -14,18 +14,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - 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." + message: str = Field( + description="The message for the pull request review dismissal" ) + event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1201.py b/githubkit/versions/ghec_v2022_11_28/models/group_1201.py index db25cce3b..6298e6dda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1201.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1201.py @@ -18,14 +18,17 @@ from githubkit.utils import UNSET -class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): - """TeamsTeamIdMembershipsUsernamePutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + 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(TeamsTeamIdMembershipsUsernamePutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) -__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1202.py b/githubkit/versions/ghec_v2022_11_28/models/group_1202.py index ffbe5471a..2cd70e70e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1202.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1202.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,15 +16,15 @@ from githubkit.utils import UNSET -class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( + expected_head_sha: Missing[str] = Field( default=UNSET, - description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method).\"", + 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(TeamsTeamIdProjectsProjectIdPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1203.py b/githubkit/versions/ghec_v2022_11_28/models/group_1203.py index 4a3155ea1..0846546b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1203.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1203.py @@ -16,13 +16,13 @@ from githubkit.utils import UNSET -class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1204.py b/githubkit/versions/ghec_v2022_11_28/models/group_1204.py index 726eb0c42..e8299b1e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1204.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1204.py @@ -18,15 +18,40 @@ from githubkit.utils import UNSET -class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): - """TeamsTeamIdReposOwnerRepoPutBody""" +class ReposOwnerRepoReleasesPostBody(GitHubModel): + """ReposOwnerRepoReleasesPostBody""" - permission: Missing[Literal["pull", "push", "admin"]] = Field( + tag_name: str = Field(description="The name of the tag.") + target_commitish: Missing[str] = Field( default=UNSET, - description="The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + description="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(TeamsTeamIdReposOwnerRepoPutBody) +model_rebuild(ReposOwnerRepoReleasesPostBody) -__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) +__all__ = ("ReposOwnerRepoReleasesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1205.py b/githubkit/versions/ghec_v2022_11_28/models/group_1205.py index 1c4758631..1c74bbef7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1205.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1205.py @@ -16,30 +16,17 @@ from githubkit.utils import UNSET -class TeamsTeamIdTeamSyncGroupMappingsPatchBody(GitHubModel): - """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - 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." + name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") + label: Missing[str] = Field( + default=UNSET, + description="An alternate short description of the asset. Used in place of the filename.", ) - synced_at: Missing[str] = Field(default=UNSET) + state: Missing[str] = Field(default=UNSET) -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): - """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" +model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) - 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__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1206.py b/githubkit/versions/ghec_v2022_11_28/models/group_1206.py index 7a471250b..05de52925 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1206.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1206.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,33 +16,26 @@ from githubkit.utils import UNSET -class UserPatchBody(GitHubModel): - """UserPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - 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." + tag_name: str = Field( + description="The tag name for the release. This can be an existing tag or a new one." ) - location: Missing[str] = Field( - default=UNSET, description="The new location of the user." + 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.", ) - hireable: Missing[bool] = Field( - default=UNSET, description="The new hiring availability of the user." + 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.", ) - bio: Missing[str] = Field( - default=UNSET, description="The new short biography of the user." + configuration_file_path: Missing[str] = Field( + default=UNSET, + description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", ) -model_rebuild(UserPatchBody) +model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) -__all__ = ("UserPatchBody",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1207.py b/githubkit/versions/ghec_v2022_11_28/models/group_1207.py index a31b5400a..14a71f3c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1207.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1207.py @@ -9,20 +9,45 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0157 import Codespace - - -class UserCodespacesGetResponse200(GitHubModel): - """UserCodespacesGetResponse200""" - - total_count: int = Field() - codespaces: list[Codespace] = Field() - - -model_rebuild(UserCodespacesGetResponse200) - -__all__ = ("UserCodespacesGetResponse200",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" + + 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(ReposOwnerRepoReleasesReleaseIdPatchBody) + +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1208.py b/githubkit/versions/ghec_v2022_11_28/models/group_1208.py index d698dac84..2e3235af7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1208.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1208.py @@ -14,57 +14,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserCodespacesPostBodyOneof0(GitHubModel): - """UserCodespacesPostBodyOneof0""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - repository_id: int = Field(description="Repository id for this codespace") - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the release." ) -model_rebuild(UserCodespacesPostBodyOneof0) +model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) -__all__ = ("UserCodespacesPostBodyOneof0",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1209.py b/githubkit/versions/ghec_v2022_11_28/models/group_1209.py index 66fe98e84..823936f5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1209.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1209.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,51 +17,80 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class UserCodespacesPostBodyOneof1(GitHubModel): - """UserCodespacesPostBodyOneof1""" - - pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( - description="Pull request number for this codespace" - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", +from .group_0079 import RepositoryRulesetBypassActor +from .group_0084 import RepositoryRulesetConditions +from .group_0094 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0095 import RepositoryRuleUpdate +from .group_0097 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0098 import RepositoryRuleMergeQueue +from .group_0100 import RepositoryRuleRequiredDeployments +from .group_0103 import RepositoryRulePullRequest +from .group_0105 import RepositoryRuleRequiredStatusChecks +from .group_0107 import RepositoryRuleCommitMessagePattern +from .group_0109 import RepositoryRuleCommitAuthorEmailPattern +from .group_0111 import RepositoryRuleCommitterEmailPattern +from .group_0113 import RepositoryRuleBranchNamePattern +from .group_0115 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRuleCodeScanning +from .group_0122 import RepositoryRuleOneof18 + + +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" ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." ) - devcontainer_path: Missing[str] = Field( + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = 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" + description="The actors that can bypass the rules in this ruleset", ) - idle_timeout_minutes: Missing[int] = Field( + conditions: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - description="Time in minutes before codespace stops from inactivity", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) - - -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) - -__all__ = ( - "UserCodespacesPostBodyOneof1", - "UserCodespacesPostBodyOneof1PropPullRequest", -) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(ReposOwnerRepoRulesetsPostBody) + +__all__ = ("ReposOwnerRepoRulesetsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1210.py b/githubkit/versions/ghec_v2022_11_28/models/group_1210.py index 860690ae3..18d928119 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1210.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1210.py @@ -9,46 +9,89 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class UserCodespacesSecretsGetResponse200(GitHubModel): - """UserCodespacesSecretsGetResponse200""" - - 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." +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0079 import RepositoryRulesetBypassActor +from .group_0084 import RepositoryRulesetConditions +from .group_0094 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0095 import RepositoryRuleUpdate +from .group_0097 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0098 import RepositoryRuleMergeQueue +from .group_0100 import RepositoryRuleRequiredDeployments +from .group_0103 import RepositoryRulePullRequest +from .group_0105 import RepositoryRuleRequiredStatusChecks +from .group_0107 import RepositoryRuleCommitMessagePattern +from .group_0109 import RepositoryRuleCommitAuthorEmailPattern +from .group_0111 import RepositoryRuleCommitterEmailPattern +from .group_0113 import RepositoryRuleBranchNamePattern +from .group_0115 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRuleCodeScanning +from .group_0122 import RepositoryRuleOneof18 + + +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" ) - 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." + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + default=UNSET, + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", ) - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", ) - selected_repositories_url: str = Field( - description="The API URL at which the list of repositories this secret is visible to can be retrieved" + conditions: Missing[RepositoryRulesetConditions] = Field( + default=UNSET, + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) - - -model_rebuild(UserCodespacesSecretsGetResponse200) -model_rebuild(CodespacesSecret) - -__all__ = ( - "CodespacesSecret", - "UserCodespacesSecretsGetResponse200", -) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) + +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1211.py b/githubkit/versions/ghec_v2022_11_28/models/group_1211.py index 6e0327543..d5c9219ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1211.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1211.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,21 +18,24 @@ from githubkit.utils import UNSET -class UserCodespacesSecretsSecretNamePutBody(GitHubModel): - """UserCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - 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})$", + state: Literal["open", "resolved"] = Field( + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( default=UNSET, - description="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.", + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") - selected_repository_ids: Missing[list[Union[int, str]]] = Field( + resolution_comment: Missing[Union[str, None]] = 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.", + description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", ) -model_rebuild(UserCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) -__all__ = ("UserCodespacesSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1212.py b/githubkit/versions/ghec_v2022_11_28/models/group_1212.py index cade85af6..decc899b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1212.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1212.py @@ -9,20 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0147 import MinimalRepository - -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" +class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody(GitHubModel): + """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - total_count: int = Field() - repositories: list[MinimalRepository] = Field() + reason: Literal["false_positive", "used_in_tests", "will_fix_later"] = Field( + description="The reason for bypassing push protection." + ) + placeholder_id: str = Field( + description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes." + ) -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1213.py b/githubkit/versions/ghec_v2022_11_28/models/group_1213.py index 8e24407b0..e513640d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1213.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1213.py @@ -9,19 +9,34 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class ReposOwnerRepoStatusesShaPostBody(GitHubModel): + """ReposOwnerRepoStatusesShaPostBody""" - 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." + state: Literal["error", "failure", "pending", "success"] = Field( + description="The state of the status." + ) + target_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the status." + ) + context: Missing[str] = Field( + default=UNSET, + description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", ) -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(ReposOwnerRepoStatusesShaPostBody) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("ReposOwnerRepoStatusesShaPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1214.py b/githubkit/versions/ghec_v2022_11_28/models/group_1214.py index 279933b1d..892aedcd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1214.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1214.py @@ -16,21 +16,19 @@ from githubkit.utils import UNSET -class UserCodespacesCodespaceNamePatchBody(GitHubModel): - """UserCodespacesCodespaceNamePatchBody""" +class ReposOwnerRepoSubscriptionPutBody(GitHubModel): + """ReposOwnerRepoSubscriptionPutBody""" - 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" + subscribed: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications should be received from this repository.", ) - recent_folders: Missing[list[str]] = Field( + ignored: Missing[bool] = Field( default=UNSET, - description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", + description="Determines if all notifications should be blocked from this repository.", ) -model_rebuild(UserCodespacesCodespaceNamePatchBody) +model_rebuild(ReposOwnerRepoSubscriptionPutBody) -__all__ = ("UserCodespacesCodespaceNamePatchBody",) +__all__ = ("ReposOwnerRepoSubscriptionPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1215.py b/githubkit/versions/ghec_v2022_11_28/models/group_1215.py index 86c262cd0..59aae89ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1215.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1215.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0156 import CodespaceMachine +class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): + """ReposOwnerRepoTagsProtectionPostBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + pattern: str = Field( + description="An optional glob pattern to match against when enforcing tag protection." + ) - total_count: int = Field() - machines: list[CodespaceMachine] = Field() +model_rebuild(ReposOwnerRepoTagsProtectionPostBody) -model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1216.py b/githubkit/versions/ghec_v2022_11_28/models/group_1216.py index 874e87674..0e1dc53ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1216.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1216.py @@ -12,21 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): - """UserCodespacesCodespaceNamePublishPostBody""" +class ReposOwnerRepoTopicsPutBody(GitHubModel): + """ReposOwnerRepoTopicsPutBody""" - 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." + names: list[str] = Field( + description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase." ) -model_rebuild(UserCodespacesCodespaceNamePublishPostBody) +model_rebuild(ReposOwnerRepoTopicsPutBody) -__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) +__all__ = ("ReposOwnerRepoTopicsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1217.py b/githubkit/versions/ghec_v2022_11_28/models/group_1217.py index 04c6a0578..df5879cb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1217.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1217.py @@ -9,21 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserEmailVisibilityPatchBody(GitHubModel): - """UserEmailVisibilityPatchBody""" +class ReposOwnerRepoTransferPostBody(GitHubModel): + """ReposOwnerRepoTransferPostBody""" - visibility: Literal["public", "private"] = Field( - description="Denotes whether an email is publicly visible." + new_owner: str = Field( + description="The username or organization name the repository will be transferred to." + ) + new_name: Missing[str] = Field( + default=UNSET, description="The new name to be given to the repository." + ) + team_ids: Missing[list[int]] = Field( + default=UNSET, + description="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", ) -model_rebuild(UserEmailVisibilityPatchBody) +model_rebuild(ReposOwnerRepoTransferPostBody) -__all__ = ("UserEmailVisibilityPatchBody",) +__all__ = ("ReposOwnerRepoTransferPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1218.py b/githubkit/versions/ghec_v2022_11_28/models/group_1218.py index 323704de5..91764e3b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1218.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1218.py @@ -11,22 +11,32 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserEmailsPostBodyOneof0(GitHubModel): - """UserEmailsPostBodyOneof0 +class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - - emails: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.", + owner: Missing[str] = Field( + default=UNSET, + description="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", + ) + name: str = Field(description="The name of the new repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the new repository." + ) + include_all_branches: Missing[bool] = Field( + default=UNSET, + description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to create a new private repository or `false` to create a new public one.", ) -model_rebuild(UserEmailsPostBodyOneof0) +model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) -__all__ = ("UserEmailsPostBodyOneof0",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1219.py b/githubkit/versions/ghec_v2022_11_28/models/group_1219.py index 361a2d243..0909fe5f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1219.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1219.py @@ -12,26 +12,58 @@ from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserEmailsDeleteBodyOneof0(GitHubModel): - """UserEmailsDeleteBodyOneof0 +class ScimV2OrganizationsOrgUsersPostBody(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBody""" - 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. + user_name: str = Field( + alias="userName", + description="Configured by the admin. Could be an email, login, or username", + ) + display_name: Missing[str] = Field( + default=UNSET, + alias="displayName", + description="The name of the user, suitable for display to end-users", + ) + name: ScimV2OrganizationsOrgUsersPostBodyPropName = Field() + emails: list[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems] = Field( + min_length=1 if PYDANTIC_V2 else None, description="user emails" + ) + schemas: Missing[list[str]] = Field(default=UNSET) + external_id: Missing[str] = Field(default=UNSET, alias="externalId") + groups: Missing[list[str]] = Field(default=UNSET) + active: Missing[bool] = Field(default=UNSET) + + +class ScimV2OrganizationsOrgUsersPostBodyPropName(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBodyPropName Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} + {'givenName': 'Jane', 'familyName': 'User'} """ - emails: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="Email addresses associated with the GitHub user account.", - ) + 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(UserEmailsDeleteBodyOneof0) +model_rebuild(ScimV2OrganizationsOrgUsersPostBody) +model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropName) +model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems) -__all__ = ("UserEmailsDeleteBodyOneof0",) +__all__ = ( + "ScimV2OrganizationsOrgUsersPostBody", + "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", + "ScimV2OrganizationsOrgUsersPostBodyPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1220.py b/githubkit/versions/ghec_v2022_11_28/models/group_1220.py index 2f1994e20..9cfdbc55c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1220.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1220.py @@ -11,20 +11,59 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class UserGpgKeysPostBody(GitHubModel): - """UserGpgKeysPostBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBody(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - name: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + schemas: Missing[list[str]] = Field(default=UNSET) + display_name: Missing[str] = Field( + default=UNSET, + alias="displayName", + description="The name of the user, suitable for display to end-users", ) - armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") + external_id: Missing[str] = Field(default=UNSET, alias="externalId") + groups: Missing[list[str]] = Field(default=UNSET) + active: Missing[bool] = Field(default=UNSET) + user_name: str = Field( + alias="userName", + description="Configured by the admin. Could be an email, login, or username", + ) + name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName = Field() + emails: list[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems] = Field( + min_length=1 if PYDANTIC_V2 else None, description="user emails" + ) + + +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str = Field(alias="givenName") + family_name: str = Field(alias="familyName") + formatted: Missing[str] = Field(default=UNSET) + + +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" + + type: Missing[str] = Field(default=UNSET) + value: str = Field() + primary: Missing[bool] = Field(default=UNSET) -model_rebuild(UserGpgKeysPostBody) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBody) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems) -__all__ = ("UserGpgKeysPostBody",) +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPutBody", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1221.py b/githubkit/versions/ghec_v2022_11_28/models/group_1221.py index 7dbc908cb..d9bccefa5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1221.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1221.py @@ -9,20 +9,79 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBody(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" + + schemas: Missing[list[str]] = Field(default=UNSET) + operations: list[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems + ] = Field( + min_length=1 if PYDANTIC_V2 else None, + alias="Operations", + description="Set of operations to be performed", + ) + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" + + op: Literal["add", "remove", "replace"] = Field() + path: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, + list[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items + ], + str, + ] + ] = Field(default=UNSET) + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0( + GitHubModel +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" -from .group_0017 import Installation + 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 UserInstallationsGetResponse200(GitHubModel): - """UserInstallationsGetResponse200""" +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items( + GitHubModel +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 + Items + """ - total_count: int = Field() - installations: list[Installation] = Field() + value: Missing[str] = Field(default=UNSET) + primary: Missing[bool] = Field(default=UNSET) -model_rebuild(UserInstallationsGetResponse200) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBody) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems) +model_rebuild( + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 +) +model_rebuild( + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items +) -__all__ = ("UserInstallationsGetResponse200",) +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1222.py b/githubkit/versions/ghec_v2022_11_28/models/group_1222.py index a965271f8..b47b92a02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1222.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1222.py @@ -9,23 +9,41 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0019 import Repository - - -class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" - - total_count: int = Field() - repository_selection: Missing[str] = Field(default=UNSET) - repositories: list[Repository] = Field() - - -model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) +class TeamsTeamIdPatchBody(GitHubModel): + """TeamsTeamIdPatchBody""" + + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." + ) + + +model_rebuild(TeamsTeamIdPatchBody) + +__all__ = ("TeamsTeamIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1223.py b/githubkit/versions/ghec_v2022_11_28/models/group_1223.py index 09cbf54e3..89bdf737f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1223.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1223.py @@ -9,13 +9,24 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class TeamsTeamIdDiscussionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsPostBody""" -class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): - """UserInteractionLimitsGetResponse200Anyof1""" + 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(UserInteractionLimitsGetResponse200Anyof1) +model_rebuild(TeamsTeamIdDiscussionsPostBody) -__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) +__all__ = ("TeamsTeamIdDiscussionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1224.py b/githubkit/versions/ghec_v2022_11_28/models/group_1224.py index b55f576db..01b62eeb5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1224.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1224.py @@ -16,18 +16,17 @@ from githubkit.utils import UNSET -class UserKeysPostBody(GitHubModel): - """UserKeysPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + default=UNSET, description="The discussion post's title." ) - 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.", + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." ) -model_rebuild(UserKeysPostBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) -__all__ = ("UserKeysPostBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1225.py b/githubkit/versions/ghec_v2022_11_28/models/group_1225.py index 9b771b5c3..2333d1363 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1225.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1225.py @@ -9,21 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class UserMembershipsOrgsOrgPatchBody(GitHubModel): - """UserMembershipsOrgsOrgPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - state: Literal["active"] = Field( - description='The state that the membership should be in. Only `"active"` will be accepted.' - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(UserMembershipsOrgsOrgPatchBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("UserMembershipsOrgsOrgPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1226.py b/githubkit/versions/ghec_v2022_11_28/models/group_1226.py index f7179f26c..a44a260ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1226.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1226.py @@ -9,51 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class UserMigrationsPostBody(GitHubModel): - """UserMigrationsPostBody""" - - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Lock the repositories being migrated at the start of the migration", - ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, description="Do not include attachments in the migration" - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, description="Do not include releases in the migration" - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[list[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude attributes from the API response to improve performance", - ) - repositories: list[str] = Field() - - -model_rebuild(UserMigrationsPostBody) - -__all__ = ("UserMigrationsPostBody",) + + +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" + + body: str = Field(description="The discussion comment's body text.") + + +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) + +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1227.py b/githubkit/versions/ghec_v2022_11_28/models/group_1227.py index 4a4feed8c..fae48df36 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1227.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1227.py @@ -9,24 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserProjectsPostBody(GitHubModel): - """UserProjectsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - name: str = Field(description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) -model_rebuild(UserProjectsPostBody) +model_rebuild( + TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("UserProjectsPostBody",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1228.py b/githubkit/versions/ghec_v2022_11_28/models/group_1228.py index 422fe894e..a1d80ad44 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1228.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1228.py @@ -14,97 +14,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserReposPostBody(GitHubModel): - """UserReposPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - has_issues: Missing[bool] = Field( - default=UNSET, description="Whether issues are enabled." - ) - has_projects: Missing[bool] = Field( - default=UNSET, description="Whether projects are enabled." - ) - has_wiki: Missing[bool] = Field( - default=UNSET, description="Whether the wiki is enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Whether the repository is initialized with a minimal README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description="The desired language or platform to apply to the .gitignore.", - ) - license_template: Missing[str] = Field( - default=UNSET, - description="The license keyword of the open source license for this repository.", - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild(UserReposPostBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("UserReposPostBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1229.py b/githubkit/versions/ghec_v2022_11_28/models/group_1229.py index 4608b8021..db25cce3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1229.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1229.py @@ -9,24 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserSocialAccountsPostBody(GitHubModel): - """UserSocialAccountsPostBody - - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ +class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): + """TeamsTeamIdMembershipsUsernamePutBody""" - account_urls: list[str] = Field( - description="Full URLs for the social media profiles to add." + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(UserSocialAccountsPostBody) +model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) -__all__ = ("UserSocialAccountsPostBody",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1230.py b/githubkit/versions/ghec_v2022_11_28/models/group_1230.py index 6c8803a2d..ffbe5471a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1230.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1230.py @@ -9,24 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserSocialAccountsDeleteBody(GitHubModel): - """UserSocialAccountsDeleteBody - - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ +class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutBody""" - account_urls: list[str] = Field( - description="Full URLs for the social media profiles to delete." + 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(UserSocialAccountsDeleteBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) -__all__ = ("UserSocialAccountsDeleteBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1231.py b/githubkit/versions/ghec_v2022_11_28/models/group_1231.py index 35fe31558..4a3155ea1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1231.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1231.py @@ -16,18 +16,13 @@ from githubkit.utils import UNSET -class UserSshSigningKeysPostBody(GitHubModel): - """UserSshSigningKeysPostBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - 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)."', - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(UserSshSigningKeysPostBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) -__all__ = ("UserSshSigningKeysPostBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1232.py b/githubkit/versions/ghec_v2022_11_28/models/group_1232.py index 654596f3c..726eb0c42 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1232.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1232.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,167 +18,15 @@ from githubkit.utils import UNSET -class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" +class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): + """TeamsTeamIdReposOwnerRepoPutBody""" - 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) - bundle_url: Missing[str] = 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" + 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(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(TeamsTeamIdReposOwnerRepoPutBody) -__all__ = ( - "SigstoreBundle0", - "SigstoreBundle0PropDsseEnvelope", - "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", - "SigstoreBundle0PropVerificationMaterial", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", - "UsersUsernameAttestationsSubjectDigestGetResponse200", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", -) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1233.py b/githubkit/versions/ghec_v2022_11_28/models/group_1233.py new file mode 100644 index 000000000..1c4758631 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1233.py @@ -0,0 +1,45 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class TeamsTeamIdTeamSyncGroupMappingsPatchBody(GitHubModel): + """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" + + groups: list[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems] = Field( + description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove." + ) + synced_at: Missing[str] = Field(default=UNSET) + + +class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): + """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" + + group_id: str = Field(description="ID of the IdP group.") + group_name: str = Field(description="Name of the IdP group.") + group_description: str = Field(description="Description of the IdP group.") + id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + + +model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBody) +model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems) + +__all__ = ( + "TeamsTeamIdTeamSyncGroupMappingsPatchBody", + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1234.py b/githubkit/versions/ghec_v2022_11_28/models/group_1234.py new file mode 100644 index 000000000..7a471250b --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1234.py @@ -0,0 +1,50 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class 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_1235.py b/githubkit/versions/ghec_v2022_11_28/models/group_1235.py new file mode 100644 index 000000000..e619baa2a --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1235.py @@ -0,0 +1,28 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0164 import Codespace + + +class UserCodespacesGetResponse200(GitHubModel): + """UserCodespacesGetResponse200""" + + total_count: int = Field() + codespaces: list[Codespace] = Field() + + +model_rebuild(UserCodespacesGetResponse200) + +__all__ = ("UserCodespacesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1236.py b/githubkit/versions/ghec_v2022_11_28/models/group_1236.py new file mode 100644 index 000000000..d698dac84 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1236.py @@ -0,0 +1,70 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class 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 closing down.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) + + +model_rebuild(UserCodespacesPostBodyOneof0) + +__all__ = ("UserCodespacesPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1237.py b/githubkit/versions/ghec_v2022_11_28/models/group_1237.py new file mode 100644 index 000000000..66fe98e84 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1237.py @@ -0,0 +1,67 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserCodespacesPostBodyOneof1(GitHubModel): + """UserCodespacesPostBodyOneof1""" + + pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( + description="Pull request number for this codespace" + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + + +class 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) + +__all__ = ( + "UserCodespacesPostBodyOneof1", + "UserCodespacesPostBodyOneof1PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1238.py b/githubkit/versions/ghec_v2022_11_28/models/group_1238.py new file mode 100644 index 000000000..860690ae3 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1238.py @@ -0,0 +1,54 @@ +"""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 datetime import datetime +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserCodespacesSecretsGetResponse200(GitHubModel): + """UserCodespacesSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[CodespacesSecret] = Field() + + +class CodespacesSecret(GitHubModel): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ + + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" + ) + selected_repositories_url: str = Field( + description="The API URL at which the list of repositories this secret is visible to can be retrieved" + ) + + +model_rebuild(UserCodespacesSecretsGetResponse200) +model_rebuild(CodespacesSecret) + +__all__ = ( + "CodespacesSecret", + "UserCodespacesSecretsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1239.py b/githubkit/versions/ghec_v2022_11_28/models/group_1239.py new file mode 100644 index 000000000..6e0327543 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1239.py @@ -0,0 +1,38 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserCodespacesSecretsSecretNamePutBody(GitHubModel): + """UserCodespacesSecretsSecretNamePutBody""" + + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", + ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") + selected_repository_ids: Missing[list[Union[int, str]]] = Field( + default=UNSET, + description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", + ) + + +model_rebuild(UserCodespacesSecretsSecretNamePutBody) + +__all__ = ("UserCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1240.py b/githubkit/versions/ghec_v2022_11_28/models/group_1240.py new file mode 100644 index 000000000..9284617b8 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1240.py @@ -0,0 +1,28 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0154 import MinimalRepository + + +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + + total_count: int = Field() + repositories: list[MinimalRepository] = Field() + + +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1241.py b/githubkit/versions/ghec_v2022_11_28/models/group_1241.py new file mode 100644 index 000000000..8e24407b0 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1241.py @@ -0,0 +1,27 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" + + selected_repository_ids: list[int] = Field( + description="An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints." + ) + + +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1242.py b/githubkit/versions/ghec_v2022_11_28/models/group_1242.py new file mode 100644 index 000000000..279933b1d --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1242.py @@ -0,0 +1,36 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserCodespacesCodespaceNamePatchBody(GitHubModel): + """UserCodespacesCodespaceNamePatchBody""" + + machine: Missing[str] = Field( + default=UNSET, description="A valid machine to transition this codespace to." + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + recent_folders: Missing[list[str]] = Field( + default=UNSET, + description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", + ) + + +model_rebuild(UserCodespacesCodespaceNamePatchBody) + +__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1243.py b/githubkit/versions/ghec_v2022_11_28/models/group_1243.py new file mode 100644 index 000000000..163d37136 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1243.py @@ -0,0 +1,28 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0163 import CodespaceMachine + + +class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + + total_count: int = Field() + machines: list[CodespaceMachine] = Field() + + +model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1244.py b/githubkit/versions/ghec_v2022_11_28/models/group_1244.py new file mode 100644 index 000000000..874e87674 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1244.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): + """UserCodespacesCodespaceNamePublishPostBody""" + + name: Missing[str] = Field( + default=UNSET, description="A name for the new repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the new repository should be private." + ) + + +model_rebuild(UserCodespacesCodespaceNamePublishPostBody) + +__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1245.py b/githubkit/versions/ghec_v2022_11_28/models/group_1245.py new file mode 100644 index 000000000..04c6a0578 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1245.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserEmailVisibilityPatchBody(GitHubModel): + """UserEmailVisibilityPatchBody""" + + visibility: Literal["public", "private"] = Field( + description="Denotes whether an email is publicly visible." + ) + + +model_rebuild(UserEmailVisibilityPatchBody) + +__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1246.py b/githubkit/versions/ghec_v2022_11_28/models/group_1246.py new file mode 100644 index 000000000..323704de5 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1246.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild + + +class UserEmailsPostBodyOneof0(GitHubModel): + """UserEmailsPostBodyOneof0 + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.", + ) + + +model_rebuild(UserEmailsPostBodyOneof0) + +__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1247.py b/githubkit/versions/ghec_v2022_11_28/models/group_1247.py new file mode 100644 index 000000000..361a2d243 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1247.py @@ -0,0 +1,37 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild + + +class 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']} + """ + + emails: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="Email addresses associated with the GitHub user account.", + ) + + +model_rebuild(UserEmailsDeleteBodyOneof0) + +__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1248.py b/githubkit/versions/ghec_v2022_11_28/models/group_1248.py new file mode 100644 index 000000000..2f1994e20 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1248.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserGpgKeysPostBody(GitHubModel): + """UserGpgKeysPostBody""" + + 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(UserGpgKeysPostBody) + +__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1249.py b/githubkit/versions/ghec_v2022_11_28/models/group_1249.py new file mode 100644 index 000000000..436810cf8 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1249.py @@ -0,0 +1,28 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0018 import Installation + + +class UserInstallationsGetResponse200(GitHubModel): + """UserInstallationsGetResponse200""" + + total_count: int = Field() + installations: list[Installation] = Field() + + +model_rebuild(UserInstallationsGetResponse200) + +__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1250.py b/githubkit/versions/ghec_v2022_11_28/models/group_1250.py new file mode 100644 index 000000000..867314a9d --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1250.py @@ -0,0 +1,31 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0020 import Repository + + +class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + + total_count: int = Field() + repository_selection: Missing[str] = Field(default=UNSET) + repositories: list[Repository] = Field() + + +model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1251.py b/githubkit/versions/ghec_v2022_11_28/models/group_1251.py new file mode 100644 index 000000000..09cbf54e3 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1251.py @@ -0,0 +1,21 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): + """UserInteractionLimitsGetResponse200Anyof1""" + + +model_rebuild(UserInteractionLimitsGetResponse200Anyof1) + +__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1252.py b/githubkit/versions/ghec_v2022_11_28/models/group_1252.py new file mode 100644 index 000000000..b55f576db --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1252.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserKeysPostBody(GitHubModel): + """UserKeysPostBody""" + + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", + description="The public SSH key to add to your GitHub account.", + ) + + +model_rebuild(UserKeysPostBody) + +__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1253.py b/githubkit/versions/ghec_v2022_11_28/models/group_1253.py new file mode 100644 index 000000000..9b771b5c3 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1253.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserMembershipsOrgsOrgPatchBody(GitHubModel): + """UserMembershipsOrgsOrgPatchBody""" + + state: Literal["active"] = Field( + description='The state that the membership should be in. Only `"active"` will be accepted.' + ) + + +model_rebuild(UserMembershipsOrgsOrgPatchBody) + +__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1254.py b/githubkit/versions/ghec_v2022_11_28/models/group_1254.py new file mode 100644 index 000000000..f7179f26c --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1254.py @@ -0,0 +1,59 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserMigrationsPostBody(GitHubModel): + """UserMigrationsPostBody""" + + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Lock the repositories being migrated at the start of the migration", + ) + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + ) + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, description="Do not include attachments in the migration" + ) + exclude_releases: Missing[bool] = Field( + default=UNSET, description="Do not include releases in the migration" + ) + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded.", + ) + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + ) + exclude: Missing[list[Literal["repositories"]]] = Field( + default=UNSET, + description="Exclude attributes from the API response to improve performance", + ) + repositories: list[str] = Field() + + +model_rebuild(UserMigrationsPostBody) + +__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1255.py b/githubkit/versions/ghec_v2022_11_28/models/group_1255.py new file mode 100644 index 000000000..4a4feed8c --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1255.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserProjectsPostBody(GitHubModel): + """UserProjectsPostBody""" + + name: str = Field(description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + + +model_rebuild(UserProjectsPostBody) + +__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1256.py b/githubkit/versions/ghec_v2022_11_28/models/group_1256.py new file mode 100644 index 000000000..422fe894e --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1256.py @@ -0,0 +1,110 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserReposPostBody(GitHubModel): + """UserReposPostBody""" + + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + has_issues: Missing[bool] = Field( + default=UNSET, description="Whether issues are enabled." + ) + has_projects: Missing[bool] = Field( + default=UNSET, description="Whether projects are enabled." + ) + has_wiki: Missing[bool] = Field( + default=UNSET, description="Whether the wiki is enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Whether the repository is initialized with a minimal README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description="The desired language or platform to apply to the .gitignore.", + ) + license_template: Missing[str] = Field( + default=UNSET, + description="The license keyword of the open source license for this repository.", + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + + +model_rebuild(UserReposPostBody) + +__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1257.py b/githubkit/versions/ghec_v2022_11_28/models/group_1257.py new file mode 100644 index 000000000..4608b8021 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1257.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSocialAccountsPostBody(GitHubModel): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] = Field( + description="Full URLs for the social media profiles to add." + ) + + +model_rebuild(UserSocialAccountsPostBody) + +__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1258.py b/githubkit/versions/ghec_v2022_11_28/models/group_1258.py new file mode 100644 index 000000000..6c8803a2d --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1258.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSocialAccountsDeleteBody(GitHubModel): + """UserSocialAccountsDeleteBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] = Field( + description="Full URLs for the social media profiles to delete." + ) + + +model_rebuild(UserSocialAccountsDeleteBody) + +__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1259.py b/githubkit/versions/ghec_v2022_11_28/models/group_1259.py new file mode 100644 index 000000000..35fe31558 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1259.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserSshSigningKeysPostBody(GitHubModel): + """UserSshSigningKeysPostBody""" + + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ", + description='The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/enterprise-cloud@latest//authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."', + ) + + +model_rebuild(UserSshSigningKeysPostBody) + +__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1260.py b/githubkit/versions/ghec_v2022_11_28/models/group_1260.py new file mode 100644 index 000000000..654596f3c --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1260.py @@ -0,0 +1,184 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class 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) + bundle_url: Missing[str] = 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__ = ( + "SigstoreBundle0", + "SigstoreBundle0PropDsseEnvelope", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", + "SigstoreBundle0PropVerificationMaterial", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/rest/__init__.py b/githubkit/versions/ghec_v2022_11_28/rest/__init__.py index b33874c90..b637decd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/__init__.py @@ -32,6 +32,7 @@ from .gists import GistsClient from .git import GitClient from .gitignore import GitignoreClient + from .hosted_compute import HostedComputeClient from .interactions import InteractionsClient from .issues import IssuesClient from .licenses import LicensesClient @@ -255,6 +256,12 @@ def projects(self) -> "ProjectsClient": return ProjectsClient(self._github) + @cached_property + def hosted_compute(self) -> "HostedComputeClient": + from .hosted_compute import HostedComputeClient + + return HostedComputeClient(self._github) + @cached_property def reactions(self) -> "ReactionsClient": from .reactions import ReactionsClient diff --git a/githubkit/versions/ghec_v2022_11_28/rest/actions.py b/githubkit/versions/ghec_v2022_11_28/rest/actions.py index 4e519bf6d..853e969f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/actions.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/actions.py @@ -32,6 +32,8 @@ ActionsCacheUsageByRepository, ActionsCacheUsageOrgEnterprise, ActionsGetDefaultWorkflowPermissions, + ActionsHostedRunner, + ActionsHostedRunnerLimits, ActionsOrganizationPermissions, ActionsPublicKey, ActionsRepositoryPermissions, @@ -42,6 +44,11 @@ AuthenticationToken, Deployment, EmptyObject, + EnterprisesEnterpriseActionsHostedRunnersGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200, EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200, EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200, @@ -51,8 +58,14 @@ OrganizationActionsSecret, OrganizationActionsVariable, OrgsOrgActionsCacheUsageByRepositoryGetResponse200, + OrgsOrgActionsHostedRunnersGetResponse200, + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + OrgsOrgActionsHostedRunnersPlatformsGetResponse200, OrgsOrgActionsPermissionsRepositoriesGetResponse200, OrgsOrgActionsRunnerGroupsGetResponse200, + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200, OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, OrgsOrgActionsRunnersGetResponse200, @@ -89,6 +102,8 @@ ActionsCacheUsageByRepositoryType, ActionsCacheUsageOrgEnterpriseType, ActionsGetDefaultWorkflowPermissionsType, + ActionsHostedRunnerLimitsType, + ActionsHostedRunnerType, ActionsOidcCustomIssuerPolicyForEnterpriseType, ActionsOrganizationPermissionsType, ActionsPublicKeyType, @@ -101,6 +116,14 @@ AuthenticationTokenType, DeploymentType, EmptyObjectType, + EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type, + EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType, + EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type, + EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type, + EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type, + EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type, + EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType, + EnterprisesEnterpriseActionsHostedRunnersPostBodyType, EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType, EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type, @@ -111,11 +134,20 @@ OrganizationActionsSecretType, OrganizationActionsVariableType, OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, + OrgsOrgActionsHostedRunnersGetResponse200Type, + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, + OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, + OrgsOrgActionsHostedRunnersPostBodyPropImageType, + OrgsOrgActionsHostedRunnersPostBodyType, OrgsOrgActionsPermissionsPutBodyType, OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, OrgsOrgActionsPermissionsRepositoriesPutBodyType, OrgsOrgActionsRunnerGroupsGetResponse200Type, OrgsOrgActionsRunnerGroupsPostBodyType, + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType, OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type, OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType, @@ -236,38 +268,110 @@ async def async_get_actions_cache_usage_for_enterprise( response_model=ActionsCacheUsageOrgEnterprise, ) + def list_hosted_runners_for_enterprise( + self, + enterprise: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + EnterprisesEnterpriseActionsHostedRunnersGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#list-github-hosted-runners-for-an-enterprise""" + + from ..models import EnterprisesEnterpriseActionsHostedRunnersGetResponse200 + + url = f"/enterprises/{enterprise}/actions/hosted-runners" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseActionsHostedRunnersGetResponse200, + ) + + async def async_list_hosted_runners_for_enterprise( + self, + enterprise: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + EnterprisesEnterpriseActionsHostedRunnersGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#list-github-hosted-runners-for-an-enterprise""" + + from ..models import EnterprisesEnterpriseActionsHostedRunnersGetResponse200 + + url = f"/enterprises/{enterprise}/actions/hosted-runners" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseActionsHostedRunnersGetResponse200, + ) + @overload - def set_actions_oidc_custom_issuer_policy_for_enterprise( + def create_hosted_runner_for_enterprise( self, enterprise: str, *, headers: Optional[Mapping[str, str]] = None, - data: ActionsOidcCustomIssuerPolicyForEnterpriseType, - ) -> Response: ... + data: EnterprisesEnterpriseActionsHostedRunnersPostBodyType, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... @overload - def set_actions_oidc_custom_issuer_policy_for_enterprise( + def create_hosted_runner_for_enterprise( self, enterprise: str, *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - include_enterprise_slug: Missing[bool] = UNSET, - ) -> Response: ... + name: str, + image: EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType, + size: str, + runner_group_id: int, + maximum_runners: Missing[int] = UNSET, + enable_static_ip: Missing[bool] = UNSET, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... - def set_actions_oidc_custom_issuer_policy_for_enterprise( + def create_hosted_runner_for_enterprise( self, enterprise: str, *, headers: Optional[Mapping[str, str]] = None, - data: Missing[ActionsOidcCustomIssuerPolicyForEnterpriseType] = UNSET, + data: Missing[EnterprisesEnterpriseActionsHostedRunnersPostBodyType] = UNSET, **kwargs, - ) -> Response: - """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/oidc#set-the-github-actions-oidc-custom-issuer-policy-for-an-enterprise""" + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#create-a-github-hosted-runner-for-an-enterprise""" - from ..models import ActionsOidcCustomIssuerPolicyForEnterprise + from ..models import ( + ActionsHostedRunner, + EnterprisesEnterpriseActionsHostedRunnersPostBody, + ) - url = f"/enterprises/{enterprise}/actions/oidc/customization/issuer" + url = f"/enterprises/{enterprise}/actions/hosted-runners" headers = { "Content-Type": "application/json", @@ -278,49 +382,58 @@ def set_actions_oidc_custom_issuer_policy_for_enterprise( json = kwargs if data is UNSET else data if self._github.config.rest_api_validate_body: json = type_validate_python( - ActionsOidcCustomIssuerPolicyForEnterprise, json + EnterprisesEnterpriseActionsHostedRunnersPostBody, json ) json = model_dump(json) if isinstance(json, BaseModel) else json return self._github.request( - "PUT", + "POST", url, json=exclude_unset(json), headers=exclude_unset(headers), + response_model=ActionsHostedRunner, ) @overload - async def async_set_actions_oidc_custom_issuer_policy_for_enterprise( + async def async_create_hosted_runner_for_enterprise( self, enterprise: str, *, headers: Optional[Mapping[str, str]] = None, - data: ActionsOidcCustomIssuerPolicyForEnterpriseType, - ) -> Response: ... + data: EnterprisesEnterpriseActionsHostedRunnersPostBodyType, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... @overload - async def async_set_actions_oidc_custom_issuer_policy_for_enterprise( + async def async_create_hosted_runner_for_enterprise( self, enterprise: str, *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - include_enterprise_slug: Missing[bool] = UNSET, - ) -> Response: ... + name: str, + image: EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType, + size: str, + runner_group_id: int, + maximum_runners: Missing[int] = UNSET, + enable_static_ip: Missing[bool] = UNSET, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... - async def async_set_actions_oidc_custom_issuer_policy_for_enterprise( + async def async_create_hosted_runner_for_enterprise( self, enterprise: str, *, headers: Optional[Mapping[str, str]] = None, - data: Missing[ActionsOidcCustomIssuerPolicyForEnterpriseType] = UNSET, + data: Missing[EnterprisesEnterpriseActionsHostedRunnersPostBodyType] = UNSET, **kwargs, - ) -> Response: - """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/oidc#set-the-github-actions-oidc-custom-issuer-policy-for-an-enterprise""" + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#create-a-github-hosted-runner-for-an-enterprise""" - from ..models import ActionsOidcCustomIssuerPolicyForEnterprise + from ..models import ( + ActionsHostedRunner, + EnterprisesEnterpriseActionsHostedRunnersPostBody, + ) - url = f"/enterprises/{enterprise}/actions/oidc/customization/issuer" + url = f"/enterprises/{enterprise}/actions/hosted-runners" headers = { "Content-Type": "application/json", @@ -331,30 +444,34 @@ async def async_set_actions_oidc_custom_issuer_policy_for_enterprise( json = kwargs if data is UNSET else data if self._github.config.rest_api_validate_body: json = type_validate_python( - ActionsOidcCustomIssuerPolicyForEnterprise, json + EnterprisesEnterpriseActionsHostedRunnersPostBody, json ) json = model_dump(json) if isinstance(json, BaseModel) else json return await self._github.arequest( - "PUT", + "POST", url, json=exclude_unset(json), headers=exclude_unset(headers), + response_model=ActionsHostedRunner, ) - def get_github_actions_default_workflow_permissions_enterprise( + def get_hosted_runners_github_owned_images_for_enterprise( self, enterprise: str, *, headers: Optional[Mapping[str, str]] = None, ) -> Response[ - ActionsGetDefaultWorkflowPermissions, ActionsGetDefaultWorkflowPermissionsType + EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type, ]: - """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-default-workflow-permissions-for-an-enterprise""" + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-owned-images-for-github-hosted-runners-in-an-enterprise""" - from ..models import ActionsGetDefaultWorkflowPermissions + from ..models import ( + EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200, + ) - url = f"/enterprises/{enterprise}/actions/permissions/workflow" + url = f"/enterprises/{enterprise}/actions/hosted-runners/images/github-owned" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -362,22 +479,25 @@ def get_github_actions_default_workflow_permissions_enterprise( "GET", url, headers=exclude_unset(headers), - response_model=ActionsGetDefaultWorkflowPermissions, + response_model=EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200, ) - async def async_get_github_actions_default_workflow_permissions_enterprise( + async def async_get_hosted_runners_github_owned_images_for_enterprise( self, enterprise: str, *, headers: Optional[Mapping[str, str]] = None, ) -> Response[ - ActionsGetDefaultWorkflowPermissions, ActionsGetDefaultWorkflowPermissionsType + EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type, ]: - """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-default-workflow-permissions-for-an-enterprise""" + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-owned-images-for-github-hosted-runners-in-an-enterprise""" - from ..models import ActionsGetDefaultWorkflowPermissions + from ..models import ( + EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200, + ) - url = f"/enterprises/{enterprise}/actions/permissions/workflow" + url = f"/enterprises/{enterprise}/actions/hosted-runners/images/github-owned" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -385,164 +505,339 @@ async def async_get_github_actions_default_workflow_permissions_enterprise( "GET", url, headers=exclude_unset(headers), - response_model=ActionsGetDefaultWorkflowPermissions, + response_model=EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200, ) - @overload - def set_github_actions_default_workflow_permissions_enterprise( + def get_hosted_runners_partner_images_for_enterprise( self, enterprise: str, *, headers: Optional[Mapping[str, str]] = None, - data: ActionsSetDefaultWorkflowPermissionsType, - ) -> Response: ... + ) -> Response[ + EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-partner-images-for-github-hosted-runners-in-an-enterprise""" - @overload - def set_github_actions_default_workflow_permissions_enterprise( - self, - enterprise: str, - *, - data: UnsetType = UNSET, - headers: Optional[Mapping[str, str]] = None, - default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, - can_approve_pull_request_reviews: Missing[bool] = UNSET, - ) -> Response: ... + from ..models import ( + EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200, + ) - def set_github_actions_default_workflow_permissions_enterprise( + url = f"/enterprises/{enterprise}/actions/hosted-runners/images/partner" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200, + ) + + async def async_get_hosted_runners_partner_images_for_enterprise( self, enterprise: str, *, headers: Optional[Mapping[str, str]] = None, - data: Missing[ActionsSetDefaultWorkflowPermissionsType] = UNSET, - **kwargs, - ) -> Response: - """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-default-workflow-permissions-for-an-enterprise""" - - from ..models import ActionsSetDefaultWorkflowPermissions + ) -> Response[ + EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-partner-images-for-github-hosted-runners-in-an-enterprise""" - url = f"/enterprises/{enterprise}/actions/permissions/workflow" + from ..models import ( + EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200, + ) - headers = { - "Content-Type": "application/json", - "X-GitHub-Api-Version": self._REST_API_VERSION, - **(headers or {}), - } + url = f"/enterprises/{enterprise}/actions/hosted-runners/images/partner" - json = kwargs if data is UNSET else data - if self._github.config.rest_api_validate_body: - json = type_validate_python(ActionsSetDefaultWorkflowPermissions, json) - json = model_dump(json) if isinstance(json, BaseModel) else json + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} - return self._github.request( - "PUT", + return await self._github.arequest( + "GET", url, - json=exclude_unset(json), headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200, ) - @overload - async def async_set_github_actions_default_workflow_permissions_enterprise( + def get_hosted_runners_limits_for_enterprise( self, enterprise: str, *, headers: Optional[Mapping[str, str]] = None, - data: ActionsSetDefaultWorkflowPermissionsType, - ) -> Response: ... + ) -> Response[ActionsHostedRunnerLimits, ActionsHostedRunnerLimitsType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-limits-on-github-hosted-runners-for-an-enterprise""" - @overload - async def async_set_github_actions_default_workflow_permissions_enterprise( - self, - enterprise: str, - *, - data: UnsetType = UNSET, - headers: Optional[Mapping[str, str]] = None, - default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, - can_approve_pull_request_reviews: Missing[bool] = UNSET, - ) -> Response: ... + from ..models import ActionsHostedRunnerLimits - async def async_set_github_actions_default_workflow_permissions_enterprise( + url = f"/enterprises/{enterprise}/actions/hosted-runners/limits" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunnerLimits, + ) + + async def async_get_hosted_runners_limits_for_enterprise( self, enterprise: str, *, headers: Optional[Mapping[str, str]] = None, - data: Missing[ActionsSetDefaultWorkflowPermissionsType] = UNSET, - **kwargs, - ) -> Response: - """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-default-workflow-permissions-for-an-enterprise""" - - from ..models import ActionsSetDefaultWorkflowPermissions + ) -> Response[ActionsHostedRunnerLimits, ActionsHostedRunnerLimitsType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-limits-on-github-hosted-runners-for-an-enterprise""" - url = f"/enterprises/{enterprise}/actions/permissions/workflow" + from ..models import ActionsHostedRunnerLimits - headers = { - "Content-Type": "application/json", - "X-GitHub-Api-Version": self._REST_API_VERSION, - **(headers or {}), - } + url = f"/enterprises/{enterprise}/actions/hosted-runners/limits" - json = kwargs if data is UNSET else data - if self._github.config.rest_api_validate_body: - json = type_validate_python(ActionsSetDefaultWorkflowPermissions, json) - json = model_dump(json) if isinstance(json, BaseModel) else json + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} return await self._github.arequest( - "PUT", + "GET", url, - json=exclude_unset(json), headers=exclude_unset(headers), + response_model=ActionsHostedRunnerLimits, ) - @overload - def generate_runner_jitconfig_for_enterprise( + def get_hosted_runners_machine_specs_for_enterprise( self, enterprise: str, *, headers: Optional[Mapping[str, str]] = None, - data: EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType, ) -> Response[ - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, - ]: ... + EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-hosted-runners-machine-specs-for-an-enterprise""" - @overload - def generate_runner_jitconfig_for_enterprise( + from ..models import ( + EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200, + ) + + url = f"/enterprises/{enterprise}/actions/hosted-runners/machine-sizes" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200, + ) + + async def async_get_hosted_runners_machine_specs_for_enterprise( self, enterprise: str, *, - data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - name: str, - runner_group_id: int, - labels: list[str], - work_folder: Missing[str] = UNSET, ) -> Response[ - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, - ]: ... + EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-hosted-runners-machine-specs-for-an-enterprise""" - def generate_runner_jitconfig_for_enterprise( + from ..models import ( + EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200, + ) + + url = f"/enterprises/{enterprise}/actions/hosted-runners/machine-sizes" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200, + ) + + def get_hosted_runners_platforms_for_enterprise( self, enterprise: str, *, headers: Optional[Mapping[str, str]] = None, - data: Missing[ - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType - ] = UNSET, - **kwargs, ) -> Response[ - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, + EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type, ]: - """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-enterprise""" + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-platforms-for-github-hosted-runners-in-an-enterprise""" from ..models import ( - BasicError, - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, - ValidationErrorSimple, + EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200, ) - url = f"/enterprises/{enterprise}/actions/runners/generate-jitconfig" + url = f"/enterprises/{enterprise}/actions/hosted-runners/platforms" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200, + ) + + async def async_get_hosted_runners_platforms_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200, + EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-platforms-for-github-hosted-runners-in-an-enterprise""" + + from ..models import ( + EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200, + ) + + url = f"/enterprises/{enterprise}/actions/hosted-runners/platforms" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200, + ) + + def get_hosted_runner_for_enterprise( + self, + enterprise: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-a-github-hosted-runner-for-an-enterprise""" + + from ..models import ActionsHostedRunner + + url = f"/enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + async def async_get_hosted_runner_for_enterprise( + self, + enterprise: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-a-github-hosted-runner-for-an-enterprise""" + + from ..models import ActionsHostedRunner + + url = f"/enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + def delete_hosted_runner_for_enterprise( + self, + enterprise: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#delete-a-github-hosted-runner-for-an-enterprise""" + + from ..models import ActionsHostedRunner + + url = f"/enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "DELETE", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + async def async_delete_hosted_runner_for_enterprise( + self, + enterprise: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#delete-a-github-hosted-runner-for-an-enterprise""" + + from ..models import ActionsHostedRunner + + url = f"/enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "DELETE", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + @overload + def update_hosted_runner_for_enterprise( + self, + enterprise: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + data: EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + @overload + def update_hosted_runner_for_enterprise( + self, + enterprise: str, + hosted_runner_id: int, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: Missing[str] = UNSET, + runner_group_id: Missing[int] = UNSET, + maximum_runners: Missing[int] = UNSET, + enable_static_ip: Missing[bool] = UNSET, + image_version: Missing[Union[str, None]] = UNSET, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + def update_hosted_runner_for_enterprise( + self, + enterprise: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType + ] = UNSET, + **kwargs, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#update-a-github-hosted-runner-for-an-enterprise""" + + from ..models import ( + ActionsHostedRunner, + EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody, + ) + + url = f"/enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}" headers = { "Content-Type": "application/json", @@ -553,203 +848,1226 @@ def generate_runner_jitconfig_for_enterprise( json = kwargs if data is UNSET else data if self._github.config.rest_api_validate_body: json = type_validate_python( - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, json + EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody, json ) json = model_dump(json) if isinstance(json, BaseModel) else json return self._github.request( - "POST", + "PATCH", url, json=exclude_unset(json), headers=exclude_unset(headers), - response_model=EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, - error_models={ - "404": BasicError, - "422": ValidationErrorSimple, - }, + response_model=ActionsHostedRunner, + ) + + @overload + async def async_update_hosted_runner_for_enterprise( + self, + enterprise: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + data: EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + @overload + async def async_update_hosted_runner_for_enterprise( + self, + enterprise: str, + hosted_runner_id: int, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: Missing[str] = UNSET, + runner_group_id: Missing[int] = UNSET, + maximum_runners: Missing[int] = UNSET, + enable_static_ip: Missing[bool] = UNSET, + image_version: Missing[Union[str, None]] = UNSET, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + async def async_update_hosted_runner_for_enterprise( + self, + enterprise: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType + ] = UNSET, + **kwargs, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#update-a-github-hosted-runner-for-an-enterprise""" + + from ..models import ( + ActionsHostedRunner, + EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody, + ) + + url = f"/enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + @overload + def set_actions_oidc_custom_issuer_policy_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: ActionsOidcCustomIssuerPolicyForEnterpriseType, + ) -> Response: ... + + @overload + def set_actions_oidc_custom_issuer_policy_for_enterprise( + self, + enterprise: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + include_enterprise_slug: Missing[bool] = UNSET, + ) -> Response: ... + + def set_actions_oidc_custom_issuer_policy_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ActionsOidcCustomIssuerPolicyForEnterpriseType] = UNSET, + **kwargs, + ) -> Response: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/oidc#set-the-github-actions-oidc-custom-issuer-policy-for-an-enterprise""" + + from ..models import ActionsOidcCustomIssuerPolicyForEnterprise + + url = f"/enterprises/{enterprise}/actions/oidc/customization/issuer" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + ActionsOidcCustomIssuerPolicyForEnterprise, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PUT", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + ) + + @overload + async def async_set_actions_oidc_custom_issuer_policy_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: ActionsOidcCustomIssuerPolicyForEnterpriseType, + ) -> Response: ... + + @overload + async def async_set_actions_oidc_custom_issuer_policy_for_enterprise( + self, + enterprise: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + include_enterprise_slug: Missing[bool] = UNSET, + ) -> Response: ... + + async def async_set_actions_oidc_custom_issuer_policy_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ActionsOidcCustomIssuerPolicyForEnterpriseType] = UNSET, + **kwargs, + ) -> Response: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/oidc#set-the-github-actions-oidc-custom-issuer-policy-for-an-enterprise""" + + from ..models import ActionsOidcCustomIssuerPolicyForEnterprise + + url = f"/enterprises/{enterprise}/actions/oidc/customization/issuer" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + ActionsOidcCustomIssuerPolicyForEnterprise, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PUT", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + ) + + def get_github_actions_default_workflow_permissions_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + ActionsGetDefaultWorkflowPermissions, ActionsGetDefaultWorkflowPermissionsType + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-default-workflow-permissions-for-an-enterprise""" + + from ..models import ActionsGetDefaultWorkflowPermissions + + url = f"/enterprises/{enterprise}/actions/permissions/workflow" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsGetDefaultWorkflowPermissions, + ) + + async def async_get_github_actions_default_workflow_permissions_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + ActionsGetDefaultWorkflowPermissions, ActionsGetDefaultWorkflowPermissionsType + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-default-workflow-permissions-for-an-enterprise""" + + from ..models import ActionsGetDefaultWorkflowPermissions + + url = f"/enterprises/{enterprise}/actions/permissions/workflow" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsGetDefaultWorkflowPermissions, + ) + + @overload + def set_github_actions_default_workflow_permissions_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: ActionsSetDefaultWorkflowPermissionsType, + ) -> Response: ... + + @overload + def set_github_actions_default_workflow_permissions_enterprise( + self, + enterprise: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, + can_approve_pull_request_reviews: Missing[bool] = UNSET, + ) -> Response: ... + + def set_github_actions_default_workflow_permissions_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ActionsSetDefaultWorkflowPermissionsType] = UNSET, + **kwargs, + ) -> Response: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-default-workflow-permissions-for-an-enterprise""" + + from ..models import ActionsSetDefaultWorkflowPermissions + + url = f"/enterprises/{enterprise}/actions/permissions/workflow" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python(ActionsSetDefaultWorkflowPermissions, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PUT", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + ) + + @overload + async def async_set_github_actions_default_workflow_permissions_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: ActionsSetDefaultWorkflowPermissionsType, + ) -> Response: ... + + @overload + async def async_set_github_actions_default_workflow_permissions_enterprise( + self, + enterprise: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + default_workflow_permissions: Missing[Literal["read", "write"]] = UNSET, + can_approve_pull_request_reviews: Missing[bool] = UNSET, + ) -> Response: ... + + async def async_set_github_actions_default_workflow_permissions_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ActionsSetDefaultWorkflowPermissionsType] = UNSET, + **kwargs, + ) -> Response: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-default-workflow-permissions-for-an-enterprise""" + + from ..models import ActionsSetDefaultWorkflowPermissions + + url = f"/enterprises/{enterprise}/actions/permissions/workflow" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python(ActionsSetDefaultWorkflowPermissions, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PUT", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + ) + + @overload + def generate_runner_jitconfig_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType, + ) -> Response[ + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, + ]: ... + + @overload + def generate_runner_jitconfig_for_enterprise( + self, + enterprise: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: str, + runner_group_id: int, + labels: list[str], + work_folder: Missing[str] = UNSET, + ) -> Response[ + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, + ]: ... + + def generate_runner_jitconfig_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType + ] = UNSET, + **kwargs, + ) -> Response[ + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-enterprise""" + + from ..models import ( + BasicError, + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, + ValidationErrorSimple, + ) + + url = f"/enterprises/{enterprise}/actions/runners/generate-jitconfig" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, + error_models={ + "404": BasicError, + "422": ValidationErrorSimple, + }, + ) + + @overload + async def async_generate_runner_jitconfig_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType, + ) -> Response[ + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, + ]: ... + + @overload + async def async_generate_runner_jitconfig_for_enterprise( + self, + enterprise: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: str, + runner_group_id: int, + labels: list[str], + work_folder: Missing[str] = UNSET, + ) -> Response[ + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, + ]: ... + + async def async_generate_runner_jitconfig_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType + ] = UNSET, + **kwargs, + ) -> Response[ + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-enterprise""" + + from ..models import ( + BasicError, + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, + ValidationErrorSimple, + ) + + url = f"/enterprises/{enterprise}/actions/runners/generate-jitconfig" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, + error_models={ + "404": BasicError, + "422": ValidationErrorSimple, + }, + ) + + def get_actions_cache_usage_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsCacheUsageOrgEnterprise, ActionsCacheUsageOrgEnterpriseType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#get-github-actions-cache-usage-for-an-organization""" + + from ..models import ActionsCacheUsageOrgEnterprise + + url = f"/orgs/{org}/actions/cache/usage" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsCacheUsageOrgEnterprise, + ) + + async def async_get_actions_cache_usage_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsCacheUsageOrgEnterprise, ActionsCacheUsageOrgEnterpriseType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#get-github-actions-cache-usage-for-an-organization""" + + from ..models import ActionsCacheUsageOrgEnterprise + + url = f"/orgs/{org}/actions/cache/usage" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsCacheUsageOrgEnterprise, + ) + + def get_actions_cache_usage_by_repo_for_org( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsCacheUsageByRepositoryGetResponse200, + OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#list-repositories-with-github-actions-cache-usage-for-an-organization""" + + from ..models import OrgsOrgActionsCacheUsageByRepositoryGetResponse200 + + url = f"/orgs/{org}/actions/cache/usage-by-repository" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgActionsCacheUsageByRepositoryGetResponse200, + ) + + async def async_get_actions_cache_usage_by_repo_for_org( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsCacheUsageByRepositoryGetResponse200, + OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#list-repositories-with-github-actions-cache-usage-for-an-organization""" + + from ..models import OrgsOrgActionsCacheUsageByRepositoryGetResponse200 + + url = f"/orgs/{org}/actions/cache/usage-by-repository" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgActionsCacheUsageByRepositoryGetResponse200, + ) + + def list_hosted_runners_for_org( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersGetResponse200, + OrgsOrgActionsHostedRunnersGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#list-github-hosted-runners-for-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersGetResponse200, + ) + + async def async_list_hosted_runners_for_org( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersGetResponse200, + OrgsOrgActionsHostedRunnersGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#list-github-hosted-runners-for-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersGetResponse200, + ) + + @overload + def create_hosted_runner_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgActionsHostedRunnersPostBodyType, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + @overload + def create_hosted_runner_for_org( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: str, + image: OrgsOrgActionsHostedRunnersPostBodyPropImageType, + size: str, + runner_group_id: int, + maximum_runners: Missing[int] = UNSET, + enable_static_ip: Missing[bool] = UNSET, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + def create_hosted_runner_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgActionsHostedRunnersPostBodyType] = UNSET, + **kwargs, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#create-a-github-hosted-runner-for-an-organization""" + + from ..models import ActionsHostedRunner, OrgsOrgActionsHostedRunnersPostBody + + url = f"/orgs/{org}/actions/hosted-runners" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python(OrgsOrgActionsHostedRunnersPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + @overload + async def async_create_hosted_runner_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgActionsHostedRunnersPostBodyType, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + @overload + async def async_create_hosted_runner_for_org( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: str, + image: OrgsOrgActionsHostedRunnersPostBodyPropImageType, + size: str, + runner_group_id: int, + maximum_runners: Missing[int] = UNSET, + enable_static_ip: Missing[bool] = UNSET, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + async def async_create_hosted_runner_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgActionsHostedRunnersPostBodyType] = UNSET, + **kwargs, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#create-a-github-hosted-runner-for-an-organization""" + + from ..models import ActionsHostedRunner, OrgsOrgActionsHostedRunnersPostBody + + url = f"/orgs/{org}/actions/hosted-runners" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python(OrgsOrgActionsHostedRunnersPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + def get_hosted_runners_github_owned_images_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-owned-images-for-github-hosted-runners-in-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/images/github-owned" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + ) + + async def async_get_hosted_runners_github_owned_images_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-owned-images-for-github-hosted-runners-in-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/images/github-owned" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + ) + + def get_hosted_runners_partner_images_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-partner-images-for-github-hosted-runners-in-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/images/partner" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + ) + + async def async_get_hosted_runners_partner_images_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-partner-images-for-github-hosted-runners-in-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/images/partner" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + ) + + def get_hosted_runners_limits_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsHostedRunnerLimits, ActionsHostedRunnerLimitsType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-limits-on-github-hosted-runners-for-an-organization""" + + from ..models import ActionsHostedRunnerLimits + + url = f"/orgs/{org}/actions/hosted-runners/limits" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunnerLimits, + ) + + async def async_get_hosted_runners_limits_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsHostedRunnerLimits, ActionsHostedRunnerLimitsType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-limits-on-github-hosted-runners-for-an-organization""" + + from ..models import ActionsHostedRunnerLimits + + url = f"/orgs/{org}/actions/hosted-runners/limits" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunnerLimits, + ) + + def get_hosted_runners_machine_specs_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-hosted-runners-machine-specs-for-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersMachineSizesGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/machine-sizes" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + ) + + async def async_get_hosted_runners_machine_specs_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-hosted-runners-machine-specs-for-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersMachineSizesGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/machine-sizes" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + ) + + def get_hosted_runners_platforms_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersPlatformsGetResponse200, + OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-platforms-for-github-hosted-runners-in-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersPlatformsGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/platforms" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersPlatformsGetResponse200, ) - @overload - async def async_generate_runner_jitconfig_for_enterprise( + async def async_get_hosted_runners_platforms_for_org( self, - enterprise: str, + org: str, *, headers: Optional[Mapping[str, str]] = None, - data: EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType, ) -> Response[ - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, - ]: ... + OrgsOrgActionsHostedRunnersPlatformsGetResponse200, + OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-platforms-for-github-hosted-runners-in-an-organization""" - @overload - async def async_generate_runner_jitconfig_for_enterprise( + from ..models import OrgsOrgActionsHostedRunnersPlatformsGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/platforms" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersPlatformsGetResponse200, + ) + + def get_hosted_runner_for_org( self, - enterprise: str, + org: str, + hosted_runner_id: int, *, - data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - name: str, - runner_group_id: int, - labels: list[str], - work_folder: Missing[str] = UNSET, - ) -> Response[ - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, - ]: ... + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-a-github-hosted-runner-for-an-organization""" - async def async_generate_runner_jitconfig_for_enterprise( + from ..models import ActionsHostedRunner + + url = f"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + async def async_get_hosted_runner_for_org( self, - enterprise: str, + org: str, + hosted_runner_id: int, *, headers: Optional[Mapping[str, str]] = None, - data: Missing[ - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType - ] = UNSET, - **kwargs, - ) -> Response[ - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, - ]: - """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-enterprise""" - - from ..models import ( - BasicError, - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, - ValidationErrorSimple, - ) + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-a-github-hosted-runner-for-an-organization""" - url = f"/enterprises/{enterprise}/actions/runners/generate-jitconfig" + from ..models import ActionsHostedRunner - headers = { - "Content-Type": "application/json", - "X-GitHub-Api-Version": self._REST_API_VERSION, - **(headers or {}), - } + url = f"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}" - json = kwargs if data is UNSET else data - if self._github.config.rest_api_validate_body: - json = type_validate_python( - EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, json - ) - json = model_dump(json) if isinstance(json, BaseModel) else json + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} return await self._github.arequest( - "POST", + "GET", url, - json=exclude_unset(json), headers=exclude_unset(headers), - response_model=EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, - error_models={ - "404": BasicError, - "422": ValidationErrorSimple, - }, + response_model=ActionsHostedRunner, ) - def get_actions_cache_usage_for_org( + def delete_hosted_runner_for_org( self, org: str, + hosted_runner_id: int, *, headers: Optional[Mapping[str, str]] = None, - ) -> Response[ActionsCacheUsageOrgEnterprise, ActionsCacheUsageOrgEnterpriseType]: - """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#get-github-actions-cache-usage-for-an-organization""" + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#delete-a-github-hosted-runner-for-an-organization""" - from ..models import ActionsCacheUsageOrgEnterprise + from ..models import ActionsHostedRunner - url = f"/orgs/{org}/actions/cache/usage" + url = f"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} return self._github.request( - "GET", + "DELETE", url, headers=exclude_unset(headers), - response_model=ActionsCacheUsageOrgEnterprise, + response_model=ActionsHostedRunner, ) - async def async_get_actions_cache_usage_for_org( + async def async_delete_hosted_runner_for_org( self, org: str, + hosted_runner_id: int, *, headers: Optional[Mapping[str, str]] = None, - ) -> Response[ActionsCacheUsageOrgEnterprise, ActionsCacheUsageOrgEnterpriseType]: - """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#get-github-actions-cache-usage-for-an-organization""" + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#delete-a-github-hosted-runner-for-an-organization""" - from ..models import ActionsCacheUsageOrgEnterprise + from ..models import ActionsHostedRunner - url = f"/orgs/{org}/actions/cache/usage" + url = f"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} return await self._github.arequest( - "GET", + "DELETE", url, headers=exclude_unset(headers), - response_model=ActionsCacheUsageOrgEnterprise, + response_model=ActionsHostedRunner, ) - def get_actions_cache_usage_by_repo_for_org( + @overload + def update_hosted_runner_for_org( self, org: str, + hosted_runner_id: int, *, - per_page: Missing[int] = UNSET, - page: Missing[int] = UNSET, headers: Optional[Mapping[str, str]] = None, - ) -> Response[ - OrgsOrgActionsCacheUsageByRepositoryGetResponse200, - OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, - ]: - """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#list-repositories-with-github-actions-cache-usage-for-an-organization""" + data: OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... - from ..models import OrgsOrgActionsCacheUsageByRepositoryGetResponse200 + @overload + def update_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: Missing[str] = UNSET, + runner_group_id: Missing[int] = UNSET, + maximum_runners: Missing[int] = UNSET, + enable_static_ip: Missing[bool] = UNSET, + image_version: Missing[Union[str, None]] = UNSET, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... - url = f"/orgs/{org}/actions/cache/usage-by-repository" + def update_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType] = UNSET, + **kwargs, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#update-a-github-hosted-runner-for-an-organization""" - params = { - "per_page": per_page, - "page": page, + from ..models import ( + ActionsHostedRunner, + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, + ) + + url = f"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), } - headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json return self._github.request( - "GET", + "PATCH", url, - params=exclude_unset(params), + json=exclude_unset(json), headers=exclude_unset(headers), - response_model=OrgsOrgActionsCacheUsageByRepositoryGetResponse200, + response_model=ActionsHostedRunner, ) - async def async_get_actions_cache_usage_by_repo_for_org( + @overload + async def async_update_hosted_runner_for_org( self, org: str, + hosted_runner_id: int, *, - per_page: Missing[int] = UNSET, - page: Missing[int] = UNSET, headers: Optional[Mapping[str, str]] = None, - ) -> Response[ - OrgsOrgActionsCacheUsageByRepositoryGetResponse200, - OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, - ]: - """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#list-repositories-with-github-actions-cache-usage-for-an-organization""" + data: OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... - from ..models import OrgsOrgActionsCacheUsageByRepositoryGetResponse200 + @overload + async def async_update_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: Missing[str] = UNSET, + runner_group_id: Missing[int] = UNSET, + maximum_runners: Missing[int] = UNSET, + enable_static_ip: Missing[bool] = UNSET, + image_version: Missing[Union[str, None]] = UNSET, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... - url = f"/orgs/{org}/actions/cache/usage-by-repository" + async def async_update_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType] = UNSET, + **kwargs, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#update-a-github-hosted-runner-for-an-organization""" - params = { - "per_page": per_page, - "page": page, + from ..models import ( + ActionsHostedRunner, + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, + ) + + url = f"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), } - headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json return await self._github.arequest( - "GET", + "PATCH", url, - params=exclude_unset(params), + json=exclude_unset(json), headers=exclude_unset(headers), - response_model=OrgsOrgActionsCacheUsageByRepositoryGetResponse200, + response_model=ActionsHostedRunner, ) def get_github_actions_permissions_organization( @@ -1535,6 +2853,7 @@ def create_self_hosted_runner_group_for_org( allows_public_repositories: Missing[bool] = UNSET, restricted_to_workflows: Missing[bool] = UNSET, selected_workflows: Missing[list[str]] = UNSET, + network_configuration_id: Missing[str] = UNSET, ) -> Response[RunnerGroupsOrg, RunnerGroupsOrgType]: ... def create_self_hosted_runner_group_for_org( @@ -1593,6 +2912,7 @@ async def async_create_self_hosted_runner_group_for_org( allows_public_repositories: Missing[bool] = UNSET, restricted_to_workflows: Missing[bool] = UNSET, selected_workflows: Missing[list[str]] = UNSET, + network_configuration_id: Missing[str] = UNSET, ) -> Response[RunnerGroupsOrg, RunnerGroupsOrgType]: ... async def async_create_self_hosted_runner_group_for_org( @@ -1733,6 +3053,7 @@ def update_self_hosted_runner_group_for_org( allows_public_repositories: Missing[bool] = UNSET, restricted_to_workflows: Missing[bool] = UNSET, selected_workflows: Missing[list[str]] = UNSET, + network_configuration_id: Missing[Union[str, None]] = UNSET, ) -> Response[RunnerGroupsOrg, RunnerGroupsOrgType]: ... def update_self_hosted_runner_group_for_org( @@ -1797,6 +3118,7 @@ async def async_update_self_hosted_runner_group_for_org( allows_public_repositories: Missing[bool] = UNSET, restricted_to_workflows: Missing[bool] = UNSET, selected_workflows: Missing[list[str]] = UNSET, + network_configuration_id: Missing[Union[str, None]] = UNSET, ) -> Response[RunnerGroupsOrg, RunnerGroupsOrgType]: ... async def async_update_self_hosted_runner_group_for_org( @@ -1838,6 +3160,76 @@ async def async_update_self_hosted_runner_group_for_org( response_model=RunnerGroupsOrg, ) + def list_github_hosted_runners_in_group_for_org( + self, + org: str, + runner_group_id: int, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runner-groups#list-github-hosted-runners-in-a-group-for-an-organization""" + + from ..models import ( + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + ) + + url = f"/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + ) + + async def async_list_github_hosted_runners_in_group_for_org( + self, + org: str, + runner_group_id: int, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runner-groups#list-github-hosted-runners-in-a-group-for-an-organization""" + + from ..models import ( + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + ) + + url = f"/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + ) + def list_repo_access_to_self_hosted_runner_group_in_org( self, org: str, @@ -3452,8 +4844,8 @@ def create_or_update_org_secret( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - encrypted_value: Missing[str] = UNSET, - key_id: Missing[str] = UNSET, + encrypted_value: str, + key_id: str, visibility: Literal["all", "private", "selected"], selected_repository_ids: Missing[list[int]] = UNSET, ) -> Response[EmptyObject, EmptyObjectType]: ... @@ -3510,8 +4902,8 @@ async def async_create_or_update_org_secret( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - encrypted_value: Missing[str] = UNSET, - key_id: Missing[str] = UNSET, + encrypted_value: str, + key_id: str, visibility: Literal["all", "private", "selected"], selected_repository_ids: Missing[list[int]] = UNSET, ) -> Response[EmptyObject, EmptyObjectType]: ... @@ -8748,8 +10140,8 @@ def create_or_update_repo_secret( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - encrypted_value: Missing[str] = UNSET, - key_id: Missing[str] = UNSET, + encrypted_value: str, + key_id: str, ) -> Response[EmptyObject, EmptyObjectType]: ... def create_or_update_repo_secret( @@ -8809,8 +10201,8 @@ async def async_create_or_update_repo_secret( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - encrypted_value: Missing[str] = UNSET, - key_id: Missing[str] = UNSET, + encrypted_value: str, + key_id: str, ) -> Response[EmptyObject, EmptyObjectType]: ... async def async_create_or_update_repo_secret( diff --git a/githubkit/versions/ghec_v2022_11_28/rest/dependabot.py b/githubkit/versions/ghec_v2022_11_28/rest/dependabot.py index 93702c6fa..f2d389d22 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/dependabot.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/dependabot.py @@ -78,6 +78,7 @@ def list_alerts_for_enterprise( severity: Missing[str] = UNSET, ecosystem: Missing[str] = UNSET, package: Missing[str] = UNSET, + epss_percentage: Missing[str] = UNSET, scope: Missing[Literal["development", "runtime"]] = UNSET, sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, direction: Missing[Literal["asc", "desc"]] = UNSET, @@ -105,6 +106,7 @@ def list_alerts_for_enterprise( "severity": severity, "ecosystem": ecosystem, "package": package, + "epss_percentage": epss_percentage, "scope": scope, "sort": sort, "direction": direction, @@ -138,6 +140,7 @@ async def async_list_alerts_for_enterprise( severity: Missing[str] = UNSET, ecosystem: Missing[str] = UNSET, package: Missing[str] = UNSET, + epss_percentage: Missing[str] = UNSET, scope: Missing[Literal["development", "runtime"]] = UNSET, sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, direction: Missing[Literal["asc", "desc"]] = UNSET, @@ -165,6 +168,7 @@ async def async_list_alerts_for_enterprise( "severity": severity, "ecosystem": ecosystem, "package": package, + "epss_percentage": epss_percentage, "scope": scope, "sort": sort, "direction": direction, @@ -198,6 +202,7 @@ def list_alerts_for_org( severity: Missing[str] = UNSET, ecosystem: Missing[str] = UNSET, package: Missing[str] = UNSET, + epss_percentage: Missing[str] = UNSET, scope: Missing[Literal["development", "runtime"]] = UNSET, sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, direction: Missing[Literal["asc", "desc"]] = UNSET, @@ -225,6 +230,7 @@ def list_alerts_for_org( "severity": severity, "ecosystem": ecosystem, "package": package, + "epss_percentage": epss_percentage, "scope": scope, "sort": sort, "direction": direction, @@ -259,6 +265,7 @@ async def async_list_alerts_for_org( severity: Missing[str] = UNSET, ecosystem: Missing[str] = UNSET, package: Missing[str] = UNSET, + epss_percentage: Missing[str] = UNSET, scope: Missing[Literal["development", "runtime"]] = UNSET, sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, direction: Missing[Literal["asc", "desc"]] = UNSET, @@ -286,6 +293,7 @@ async def async_list_alerts_for_org( "severity": severity, "ecosystem": ecosystem, "package": package, + "epss_percentage": epss_percentage, "scope": scope, "sort": sort, "direction": direction, @@ -904,6 +912,7 @@ def list_alerts_for_repo( ecosystem: Missing[str] = UNSET, package: Missing[str] = UNSET, manifest: Missing[str] = UNSET, + epss_percentage: Missing[str] = UNSET, scope: Missing[Literal["development", "runtime"]] = UNSET, sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, direction: Missing[Literal["asc", "desc"]] = UNSET, @@ -927,6 +936,7 @@ def list_alerts_for_repo( "ecosystem": ecosystem, "package": package, "manifest": manifest, + "epss_percentage": epss_percentage, "scope": scope, "sort": sort, "direction": direction, @@ -964,6 +974,7 @@ async def async_list_alerts_for_repo( ecosystem: Missing[str] = UNSET, package: Missing[str] = UNSET, manifest: Missing[str] = UNSET, + epss_percentage: Missing[str] = UNSET, scope: Missing[Literal["development", "runtime"]] = UNSET, sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, direction: Missing[Literal["asc", "desc"]] = UNSET, @@ -987,6 +998,7 @@ async def async_list_alerts_for_repo( "ecosystem": ecosystem, "package": package, "manifest": manifest, + "epss_percentage": epss_percentage, "scope": scope, "sort": sort, "direction": direction, 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 7a2ec573a..b6f4017c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py @@ -43,10 +43,13 @@ EnterprisesEnterpriseActionsRunnersGetResponse200, EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200, EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200, + EnterprisesEnterpriseNetworkConfigurationsGetResponse200, GetAuditLogStreamConfig, GetAuditLogStreamConfigsItems, GetConsumedLicenses, GetLicenseSyncStatus, + NetworkConfiguration, + NetworkSettings, Runner, RunnerApplication, RunnerGroupsEnterprise, @@ -89,6 +92,9 @@ EnterprisesEnterpriseAuditLogStreamsPostBodyType, EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType, EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType, + EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type, + EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + EnterprisesEnterpriseNetworkConfigurationsPostBodyType, EnterprisesEnterprisePropertiesSchemaPatchBodyType, GetAuditLogStreamConfigsItemsType, GetAuditLogStreamConfigType, @@ -97,6 +103,8 @@ GoogleCloudConfigType, GroupPropMembersItemsType, GroupType, + NetworkConfigurationType, + NetworkSettingsType, PatchSchemaPropOperationsItemsType, PatchSchemaType, RunnerApplicationType, @@ -773,6 +781,7 @@ def create_self_hosted_runner_group_for_enterprise( allows_public_repositories: Missing[bool] = UNSET, restricted_to_workflows: Missing[bool] = UNSET, selected_workflows: Missing[list[str]] = UNSET, + network_configuration_id: Missing[str] = UNSET, ) -> Response[RunnerGroupsEnterprise, RunnerGroupsEnterpriseType]: ... def create_self_hosted_runner_group_for_enterprise( @@ -836,6 +845,7 @@ async def async_create_self_hosted_runner_group_for_enterprise( allows_public_repositories: Missing[bool] = UNSET, restricted_to_workflows: Missing[bool] = UNSET, selected_workflows: Missing[list[str]] = UNSET, + network_configuration_id: Missing[str] = UNSET, ) -> Response[RunnerGroupsEnterprise, RunnerGroupsEnterpriseType]: ... async def async_create_self_hosted_runner_group_for_enterprise( @@ -983,6 +993,7 @@ def update_self_hosted_runner_group_for_enterprise( allows_public_repositories: Missing[bool] = UNSET, restricted_to_workflows: Missing[bool] = UNSET, selected_workflows: Missing[list[str]] = UNSET, + network_configuration_id: Missing[Union[str, None]] = UNSET, ) -> Response[RunnerGroupsEnterprise, RunnerGroupsEnterpriseType]: ... def update_self_hosted_runner_group_for_enterprise( @@ -1051,6 +1062,7 @@ async def async_update_self_hosted_runner_group_for_enterprise( allows_public_repositories: Missing[bool] = UNSET, restricted_to_workflows: Missing[bool] = UNSET, selected_workflows: Missing[list[str]] = UNSET, + network_configuration_id: Missing[Union[str, None]] = UNSET, ) -> Response[RunnerGroupsEnterprise, RunnerGroupsEnterpriseType]: ... async def async_update_self_hosted_runner_group_for_enterprise( @@ -3470,6 +3482,444 @@ async def async_get_license_sync_status( response_model=GetLicenseSyncStatus, ) + def list_network_configurations_for_enterprise( + self, + enterprise: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + EnterprisesEnterpriseNetworkConfigurationsGetResponse200, + EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/network-configurations#list-hosted-compute-network-configurations-for-an-enterprise""" + + from ..models import EnterprisesEnterpriseNetworkConfigurationsGetResponse200 + + url = f"/enterprises/{enterprise}/network-configurations" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseNetworkConfigurationsGetResponse200, + ) + + async def async_list_network_configurations_for_enterprise( + self, + enterprise: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + EnterprisesEnterpriseNetworkConfigurationsGetResponse200, + EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/network-configurations#list-hosted-compute-network-configurations-for-an-enterprise""" + + from ..models import EnterprisesEnterpriseNetworkConfigurationsGetResponse200 + + url = f"/enterprises/{enterprise}/network-configurations" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseNetworkConfigurationsGetResponse200, + ) + + @overload + def create_network_configuration_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: EnterprisesEnterpriseNetworkConfigurationsPostBodyType, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + @overload + def create_network_configuration_for_enterprise( + self, + enterprise: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: str, + compute_service: Missing[Literal["none", "actions"]] = UNSET, + network_settings_ids: list[str], + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + def create_network_configuration_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[EnterprisesEnterpriseNetworkConfigurationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/network-configurations#create-a-hosted-compute-network-configuration-for-an-enterprise""" + + from ..models import ( + EnterprisesEnterpriseNetworkConfigurationsPostBody, + NetworkConfiguration, + ) + + url = f"/enterprises/{enterprise}/network-configurations" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + EnterprisesEnterpriseNetworkConfigurationsPostBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + @overload + async def async_create_network_configuration_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: EnterprisesEnterpriseNetworkConfigurationsPostBodyType, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + @overload + async def async_create_network_configuration_for_enterprise( + self, + enterprise: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: str, + compute_service: Missing[Literal["none", "actions"]] = UNSET, + network_settings_ids: list[str], + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + async def async_create_network_configuration_for_enterprise( + self, + enterprise: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[EnterprisesEnterpriseNetworkConfigurationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/network-configurations#create-a-hosted-compute-network-configuration-for-an-enterprise""" + + from ..models import ( + EnterprisesEnterpriseNetworkConfigurationsPostBody, + NetworkConfiguration, + ) + + url = f"/enterprises/{enterprise}/network-configurations" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + EnterprisesEnterpriseNetworkConfigurationsPostBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + def get_network_configuration_for_enterprise( + self, + enterprise: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/network-configurations#get-a-hosted-compute-network-configuration-for-an-enterprise""" + + from ..models import NetworkConfiguration + + url = f"/enterprises/{enterprise}/network-configurations/{network_configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + async def async_get_network_configuration_for_enterprise( + self, + enterprise: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/network-configurations#get-a-hosted-compute-network-configuration-for-an-enterprise""" + + from ..models import NetworkConfiguration + + url = f"/enterprises/{enterprise}/network-configurations/{network_configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + def delete_network_configuration_from_enterprise( + self, + enterprise: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/network-configurations#delete-a-hosted-compute-network-configuration-from-an-enterprise""" + + url = f"/enterprises/{enterprise}/network-configurations/{network_configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "DELETE", + url, + headers=exclude_unset(headers), + ) + + async def async_delete_network_configuration_from_enterprise( + self, + enterprise: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/network-configurations#delete-a-hosted-compute-network-configuration-from-an-enterprise""" + + url = f"/enterprises/{enterprise}/network-configurations/{network_configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "DELETE", + url, + headers=exclude_unset(headers), + ) + + @overload + def update_network_configuration_for_enterprise( + self, + enterprise: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + @overload + def update_network_configuration_for_enterprise( + self, + enterprise: str, + network_configuration_id: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: Missing[str] = UNSET, + compute_service: Missing[Literal["none", "actions"]] = UNSET, + network_settings_ids: Missing[list[str]] = UNSET, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + def update_network_configuration_for_enterprise( + self, + enterprise: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType + ] = UNSET, + **kwargs, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/network-configurations#update-a-hosted-compute-network-configuration-for-an-enterprise""" + + from ..models import ( + EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody, + NetworkConfiguration, + ) + + url = f"/enterprises/{enterprise}/network-configurations/{network_configuration_id}" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody, + json, + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + @overload + async def async_update_network_configuration_for_enterprise( + self, + enterprise: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + @overload + async def async_update_network_configuration_for_enterprise( + self, + enterprise: str, + network_configuration_id: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: Missing[str] = UNSET, + compute_service: Missing[Literal["none", "actions"]] = UNSET, + network_settings_ids: Missing[list[str]] = UNSET, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + async def async_update_network_configuration_for_enterprise( + self, + enterprise: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType + ] = UNSET, + **kwargs, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/network-configurations#update-a-hosted-compute-network-configuration-for-an-enterprise""" + + from ..models import ( + EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody, + NetworkConfiguration, + ) + + url = f"/enterprises/{enterprise}/network-configurations/{network_configuration_id}" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody, + json, + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + def get_network_settings_for_enterprise( + self, + enterprise: str, + network_settings_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[NetworkSettings, NetworkSettingsType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-enterprise""" + + from ..models import NetworkSettings + + url = f"/enterprises/{enterprise}/network-settings/{network_settings_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=NetworkSettings, + ) + + async def async_get_network_settings_for_enterprise( + self, + enterprise: str, + network_settings_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[NetworkSettings, NetworkSettingsType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-enterprise""" + + from ..models import NetworkSettings + + url = f"/enterprises/{enterprise}/network-settings/{network_settings_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=NetworkSettings, + ) + def get_enterprise_custom_properties( self, enterprise: str, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/hosted_compute.py b/githubkit/versions/ghec_v2022_11_28/rest/hosted_compute.py new file mode 100644 index 000000000..4368db8a4 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/rest/hosted_compute.py @@ -0,0 +1,495 @@ +"""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 collections.abc import Mapping +from typing import TYPE_CHECKING, Literal, Optional, overload +from weakref import ref + +from pydantic import BaseModel + +from githubkit.compat import model_dump, type_validate_python +from githubkit.typing import Missing, UnsetType +from githubkit.utils import UNSET, exclude_unset + +if TYPE_CHECKING: + from typing import Literal + + from githubkit import GitHubCore + from githubkit.response import Response + from githubkit.typing import Missing + from githubkit.utils import UNSET + + from ..models import ( + NetworkConfiguration, + NetworkSettings, + OrgsOrgSettingsNetworkConfigurationsGetResponse200, + ) + from ..types import ( + NetworkConfigurationType, + NetworkSettingsType, + OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + OrgsOrgSettingsNetworkConfigurationsPostBodyType, + ) + + +class HostedComputeClient: + _REST_API_VERSION = "2022-11-28" + + def __init__(self, github: GitHubCore): + self._github_ref = ref(github) + + @property + def _github(self) -> GitHubCore: + if g := self._github_ref(): + return g + raise RuntimeError( + "GitHub client has already been collected. " + "Do not use this client after the client has been collected." + ) + + def list_network_configurations_for_org( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgSettingsNetworkConfigurationsGetResponse200, + OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization""" + + from ..models import OrgsOrgSettingsNetworkConfigurationsGetResponse200 + + url = f"/orgs/{org}/settings/network-configurations" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgSettingsNetworkConfigurationsGetResponse200, + ) + + async def async_list_network_configurations_for_org( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgSettingsNetworkConfigurationsGetResponse200, + OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization""" + + from ..models import OrgsOrgSettingsNetworkConfigurationsGetResponse200 + + url = f"/orgs/{org}/settings/network-configurations" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgSettingsNetworkConfigurationsGetResponse200, + ) + + @overload + def create_network_configuration_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgSettingsNetworkConfigurationsPostBodyType, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + @overload + def create_network_configuration_for_org( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: str, + compute_service: Missing[Literal["none", "actions"]] = UNSET, + network_settings_ids: list[str], + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + def create_network_configuration_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgSettingsNetworkConfigurationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization""" + + from ..models import ( + NetworkConfiguration, + OrgsOrgSettingsNetworkConfigurationsPostBody, + ) + + url = f"/orgs/{org}/settings/network-configurations" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrgsOrgSettingsNetworkConfigurationsPostBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + @overload + async def async_create_network_configuration_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgSettingsNetworkConfigurationsPostBodyType, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + @overload + async def async_create_network_configuration_for_org( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: str, + compute_service: Missing[Literal["none", "actions"]] = UNSET, + network_settings_ids: list[str], + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + async def async_create_network_configuration_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgSettingsNetworkConfigurationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization""" + + from ..models import ( + NetworkConfiguration, + OrgsOrgSettingsNetworkConfigurationsPostBody, + ) + + url = f"/orgs/{org}/settings/network-configurations" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrgsOrgSettingsNetworkConfigurationsPostBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + def get_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization""" + + from ..models import NetworkConfiguration + + url = f"/orgs/{org}/settings/network-configurations/{network_configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + async def async_get_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization""" + + from ..models import NetworkConfiguration + + url = f"/orgs/{org}/settings/network-configurations/{network_configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + def delete_network_configuration_from_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization""" + + url = f"/orgs/{org}/settings/network-configurations/{network_configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "DELETE", + url, + headers=exclude_unset(headers), + ) + + async def async_delete_network_configuration_from_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization""" + + url = f"/orgs/{org}/settings/network-configurations/{network_configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "DELETE", + url, + headers=exclude_unset(headers), + ) + + @overload + def update_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + @overload + def update_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: Missing[str] = UNSET, + compute_service: Missing[Literal["none", "actions"]] = UNSET, + network_settings_ids: Missing[list[str]] = UNSET, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + def update_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType + ] = UNSET, + **kwargs, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization""" + + from ..models import ( + NetworkConfiguration, + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, + ) + + url = f"/orgs/{org}/settings/network-configurations/{network_configuration_id}" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, + json, + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + @overload + async def async_update_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + @overload + async def async_update_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: Missing[str] = UNSET, + compute_service: Missing[Literal["none", "actions"]] = UNSET, + network_settings_ids: Missing[list[str]] = UNSET, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + async def async_update_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType + ] = UNSET, + **kwargs, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization""" + + from ..models import ( + NetworkConfiguration, + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, + ) + + url = f"/orgs/{org}/settings/network-configurations/{network_configuration_id}" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, + json, + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + def get_network_settings_for_org( + self, + org: str, + network_settings_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[NetworkSettings, NetworkSettingsType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization""" + + from ..models import NetworkSettings + + url = f"/orgs/{org}/settings/network-settings/{network_settings_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=NetworkSettings, + ) + + async def async_get_network_settings_for_org( + self, + org: str, + network_settings_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[NetworkSettings, NetworkSettingsType]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization""" + + from ..models import NetworkSettings + + url = f"/orgs/{org}/settings/network-settings/{network_settings_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=NetworkSettings, + ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/__init__.py b/githubkit/versions/ghec_v2022_11_28/types/__init__.py index ce709d278..5f9ed536c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/types/__init__.py @@ -14,9344 +14,9430 @@ from .group_0001 import CvssSeveritiesPropCvssV3Type as CvssSeveritiesPropCvssV3Type from .group_0001 import CvssSeveritiesPropCvssV4Type as CvssSeveritiesPropCvssV4Type from .group_0001 import CvssSeveritiesType as CvssSeveritiesType - from .group_0002 import SimpleUserType as SimpleUserType - from .group_0003 import GlobalAdvisoryPropCvssType as GlobalAdvisoryPropCvssType - from .group_0003 import ( + from .group_0002 import SecurityAdvisoryEpssType as SecurityAdvisoryEpssType + from .group_0003 import SimpleUserType as SimpleUserType + from .group_0004 import GlobalAdvisoryPropCvssType as GlobalAdvisoryPropCvssType + from .group_0004 import ( GlobalAdvisoryPropCwesItemsType as GlobalAdvisoryPropCwesItemsType, ) - from .group_0003 import GlobalAdvisoryPropEpssType as GlobalAdvisoryPropEpssType - from .group_0003 import ( + from .group_0004 import ( GlobalAdvisoryPropIdentifiersItemsType as GlobalAdvisoryPropIdentifiersItemsType, ) - from .group_0003 import GlobalAdvisoryType as GlobalAdvisoryType - from .group_0003 import VulnerabilityPropPackageType as VulnerabilityPropPackageType - from .group_0003 import VulnerabilityType as VulnerabilityType - from .group_0004 import ( + from .group_0004 import GlobalAdvisoryType as GlobalAdvisoryType + from .group_0004 import VulnerabilityPropPackageType as VulnerabilityPropPackageType + from .group_0004 import VulnerabilityType as VulnerabilityType + from .group_0005 import ( GlobalAdvisoryPropCreditsItemsType as GlobalAdvisoryPropCreditsItemsType, ) - from .group_0005 import BasicErrorType as BasicErrorType - from .group_0006 import ValidationErrorSimpleType as ValidationErrorSimpleType - from .group_0007 import ( + from .group_0006 import BasicErrorType as BasicErrorType + from .group_0007 import ValidationErrorSimpleType as ValidationErrorSimpleType + from .group_0008 import EnterpriseType as EnterpriseType + from .group_0009 import ( IntegrationPropPermissionsType as IntegrationPropPermissionsType, ) - from .group_0008 import IntegrationType as IntegrationType - from .group_0009 import WebhookConfigType as WebhookConfigType - from .group_0010 import HookDeliveryItemType as HookDeliveryItemType - from .group_0011 import ScimErrorType as ScimErrorType - from .group_0012 import ( + from .group_0010 import IntegrationType as IntegrationType + from .group_0011 import WebhookConfigType as WebhookConfigType + from .group_0012 import HookDeliveryItemType as HookDeliveryItemType + from .group_0013 import ScimErrorType as ScimErrorType + from .group_0014 import ( ValidationErrorPropErrorsItemsType as ValidationErrorPropErrorsItemsType, ) - from .group_0012 import ValidationErrorType as ValidationErrorType - from .group_0013 import ( + from .group_0014 import ValidationErrorType as ValidationErrorType + from .group_0015 import ( HookDeliveryPropRequestPropHeadersType as HookDeliveryPropRequestPropHeadersType, ) - from .group_0013 import ( + from .group_0015 import ( HookDeliveryPropRequestPropPayloadType as HookDeliveryPropRequestPropPayloadType, ) - from .group_0013 import HookDeliveryPropRequestType as HookDeliveryPropRequestType - from .group_0013 import ( + from .group_0015 import HookDeliveryPropRequestType as HookDeliveryPropRequestType + from .group_0015 import ( HookDeliveryPropResponsePropHeadersType as HookDeliveryPropResponsePropHeadersType, ) - from .group_0013 import HookDeliveryPropResponseType as HookDeliveryPropResponseType - from .group_0013 import HookDeliveryType as HookDeliveryType - from .group_0014 import EnterpriseType as EnterpriseType - from .group_0015 import ( + from .group_0015 import HookDeliveryPropResponseType as HookDeliveryPropResponseType + from .group_0015 import HookDeliveryType as HookDeliveryType + from .group_0016 import ( IntegrationInstallationRequestType as IntegrationInstallationRequestType, ) - from .group_0016 import AppPermissionsType as AppPermissionsType - from .group_0017 import InstallationType as InstallationType - from .group_0018 import LicenseSimpleType as LicenseSimpleType - from .group_0019 import ( + from .group_0017 import AppPermissionsType as AppPermissionsType + from .group_0018 import InstallationType as InstallationType + from .group_0019 import LicenseSimpleType as LicenseSimpleType + from .group_0020 import ( RepositoryPropPermissionsType as RepositoryPropPermissionsType, ) - from .group_0019 import RepositoryType as RepositoryType - from .group_0020 import InstallationTokenType as InstallationTokenType - from .group_0021 import ScopedInstallationType as ScopedInstallationType - from .group_0022 import AuthorizationPropAppType as AuthorizationPropAppType - from .group_0022 import AuthorizationType as AuthorizationType - from .group_0023 import ( + from .group_0020 import RepositoryType as RepositoryType + from .group_0021 import InstallationTokenType as InstallationTokenType + from .group_0022 import ScopedInstallationType as ScopedInstallationType + from .group_0023 import AuthorizationPropAppType as AuthorizationPropAppType + from .group_0023 import AuthorizationType as AuthorizationType + from .group_0024 import ( SimpleClassroomRepositoryType as SimpleClassroomRepositoryType, ) - from .group_0024 import ClassroomAssignmentType as ClassroomAssignmentType - from .group_0024 import ClassroomType as ClassroomType - from .group_0024 import ( + from .group_0025 import ClassroomAssignmentType as ClassroomAssignmentType + from .group_0025 import ClassroomType as ClassroomType + from .group_0025 import ( SimpleClassroomOrganizationType as SimpleClassroomOrganizationType, ) - from .group_0025 import ( + from .group_0026 import ( ClassroomAcceptedAssignmentType as ClassroomAcceptedAssignmentType, ) - from .group_0025 import ( + from .group_0026 import ( SimpleClassroomAssignmentType as SimpleClassroomAssignmentType, ) - from .group_0025 import SimpleClassroomType as SimpleClassroomType - from .group_0025 import SimpleClassroomUserType as SimpleClassroomUserType - from .group_0026 import ClassroomAssignmentGradeType as ClassroomAssignmentGradeType - from .group_0027 import ServerStatisticsActionsType as ServerStatisticsActionsType - from .group_0027 import ( + from .group_0026 import SimpleClassroomType as SimpleClassroomType + from .group_0026 import SimpleClassroomUserType as SimpleClassroomUserType + from .group_0027 import ClassroomAssignmentGradeType as ClassroomAssignmentGradeType + from .group_0028 import ServerStatisticsActionsType as ServerStatisticsActionsType + from .group_0028 import ( ServerStatisticsItemsPropDormantUsersType as ServerStatisticsItemsPropDormantUsersType, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropCommentsType as ServerStatisticsItemsPropGheStatsPropCommentsType, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropGistsType as ServerStatisticsItemsPropGheStatsPropGistsType, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropHooksType as ServerStatisticsItemsPropGheStatsPropHooksType, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropIssuesType as ServerStatisticsItemsPropGheStatsPropIssuesType, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropMilestonesType as ServerStatisticsItemsPropGheStatsPropMilestonesType, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropOrgsType as ServerStatisticsItemsPropGheStatsPropOrgsType, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropPagesType as ServerStatisticsItemsPropGheStatsPropPagesType, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropPullsType as ServerStatisticsItemsPropGheStatsPropPullsType, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropReposType as ServerStatisticsItemsPropGheStatsPropReposType, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsPropUsersType as ServerStatisticsItemsPropGheStatsPropUsersType, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGheStatsType as ServerStatisticsItemsPropGheStatsType, ) - from .group_0027 import ( + from .group_0028 import ( ServerStatisticsItemsPropGithubConnectType as ServerStatisticsItemsPropGithubConnectType, ) - from .group_0027 import ServerStatisticsItemsType as ServerStatisticsItemsType - from .group_0027 import ( + from .group_0028 import ServerStatisticsItemsType as ServerStatisticsItemsType + from .group_0028 import ( ServerStatisticsPackagesPropEcosystemsItemsType as ServerStatisticsPackagesPropEcosystemsItemsType, ) - from .group_0027 import ServerStatisticsPackagesType as ServerStatisticsPackagesType - from .group_0028 import ( + from .group_0028 import ServerStatisticsPackagesType as ServerStatisticsPackagesType + from .group_0029 import ( ActionsCacheUsageOrgEnterpriseType as ActionsCacheUsageOrgEnterpriseType, ) - from .group_0029 import ( + from .group_0030 import ( + ActionsHostedRunnerMachineSpecType as ActionsHostedRunnerMachineSpecType, + ) + from .group_0031 import ( + ActionsHostedRunnerPoolImageType as ActionsHostedRunnerPoolImageType, + ) + from .group_0031 import ActionsHostedRunnerType as ActionsHostedRunnerType + from .group_0031 import PublicIpType as PublicIpType + from .group_0032 import ActionsHostedRunnerImageType as ActionsHostedRunnerImageType + from .group_0033 import ( + ActionsHostedRunnerLimitsPropPublicIpsType as ActionsHostedRunnerLimitsPropPublicIpsType, + ) + from .group_0033 import ( + ActionsHostedRunnerLimitsType as ActionsHostedRunnerLimitsType, + ) + from .group_0034 import ( ActionsOidcCustomIssuerPolicyForEnterpriseType as ActionsOidcCustomIssuerPolicyForEnterpriseType, ) - from .group_0030 import ( + from .group_0035 import ( ActionsEnterprisePermissionsType as ActionsEnterprisePermissionsType, ) - from .group_0031 import OrganizationSimpleType as OrganizationSimpleType - from .group_0032 import SelectedActionsType as SelectedActionsType - from .group_0033 import ( + from .group_0036 import OrganizationSimpleType as OrganizationSimpleType + from .group_0037 import SelectedActionsType as SelectedActionsType + from .group_0038 import ( ActionsGetDefaultWorkflowPermissionsType as ActionsGetDefaultWorkflowPermissionsType, ) - from .group_0034 import ( + from .group_0039 import ( ActionsSetDefaultWorkflowPermissionsType as ActionsSetDefaultWorkflowPermissionsType, ) - from .group_0035 import RunnerLabelType as RunnerLabelType - from .group_0036 import RunnerType as RunnerType - from .group_0037 import RunnerApplicationType as RunnerApplicationType - from .group_0038 import ( + from .group_0040 import RunnerLabelType as RunnerLabelType + from .group_0041 import RunnerType as RunnerType + from .group_0042 import RunnerApplicationType as RunnerApplicationType + from .group_0043 import ( AuthenticationTokenPropPermissionsType as AuthenticationTokenPropPermissionsType, ) - from .group_0038 import AuthenticationTokenType as AuthenticationTokenType - from .group_0039 import AnnouncementBannerType as AnnouncementBannerType - from .group_0040 import AnnouncementType as AnnouncementType - from .group_0041 import ( + from .group_0043 import AuthenticationTokenType as AuthenticationTokenType + from .group_0044 import AnnouncementBannerType as AnnouncementBannerType + from .group_0045 import AnnouncementType as AnnouncementType + from .group_0046 import ( AuditLogEventPropActorLocationType as AuditLogEventPropActorLocationType, ) - from .group_0041 import ( + from .group_0046 import ( AuditLogEventPropConfigItemsType as AuditLogEventPropConfigItemsType, ) - from .group_0041 import ( + from .group_0046 import ( AuditLogEventPropConfigWasItemsType as AuditLogEventPropConfigWasItemsType, ) - from .group_0041 import AuditLogEventPropDataType as AuditLogEventPropDataType - from .group_0041 import ( + from .group_0046 import AuditLogEventPropDataType as AuditLogEventPropDataType + from .group_0046 import ( AuditLogEventPropEventsItemsType as AuditLogEventPropEventsItemsType, ) - from .group_0041 import ( + from .group_0046 import ( AuditLogEventPropEventsWereItemsType as AuditLogEventPropEventsWereItemsType, ) - from .group_0041 import AuditLogEventType as AuditLogEventType - from .group_0042 import AuditLogStreamKeyType as AuditLogStreamKeyType - from .group_0043 import ( + from .group_0046 import AuditLogEventType as AuditLogEventType + from .group_0047 import AuditLogStreamKeyType as AuditLogStreamKeyType + from .group_0048 import ( GetAuditLogStreamConfigsItemsType as GetAuditLogStreamConfigsItemsType, ) - from .group_0044 import AmazonS3AccessKeysConfigType as AmazonS3AccessKeysConfigType - from .group_0044 import AzureBlobConfigType as AzureBlobConfigType - from .group_0044 import AzureHubConfigType as AzureHubConfigType - from .group_0044 import GoogleCloudConfigType as GoogleCloudConfigType - from .group_0045 import AmazonS3OidcConfigType as AmazonS3OidcConfigType - from .group_0045 import SplunkConfigType as SplunkConfigType - from .group_0046 import DatadogConfigType as DatadogConfigType - from .group_0047 import GetAuditLogStreamConfigType as GetAuditLogStreamConfigType - from .group_0048 import ( + from .group_0049 import AmazonS3AccessKeysConfigType as AmazonS3AccessKeysConfigType + from .group_0049 import AzureBlobConfigType as AzureBlobConfigType + from .group_0049 import AzureHubConfigType as AzureHubConfigType + from .group_0049 import GoogleCloudConfigType as GoogleCloudConfigType + from .group_0050 import AmazonS3OidcConfigType as AmazonS3OidcConfigType + from .group_0050 import SplunkConfigType as SplunkConfigType + from .group_0051 import DatadogConfigType as DatadogConfigType + from .group_0052 import GetAuditLogStreamConfigType as GetAuditLogStreamConfigType + from .group_0053 import ( CodeScanningAlertRuleSummaryType as CodeScanningAlertRuleSummaryType, ) - from .group_0049 import CodeScanningAnalysisToolType as CodeScanningAnalysisToolType - from .group_0050 import ( + from .group_0054 import CodeScanningAnalysisToolType as CodeScanningAnalysisToolType + from .group_0055 import ( CodeScanningAlertInstancePropMessageType as CodeScanningAlertInstancePropMessageType, ) - from .group_0050 import ( + from .group_0055 import ( CodeScanningAlertInstanceType as CodeScanningAlertInstanceType, ) - from .group_0050 import ( + from .group_0055 import ( CodeScanningAlertLocationType as CodeScanningAlertLocationType, ) - from .group_0051 import SimpleRepositoryType as SimpleRepositoryType - from .group_0052 import ( + from .group_0056 import SimpleRepositoryType as SimpleRepositoryType + from .group_0057 import ( CodeScanningOrganizationAlertItemsType as CodeScanningOrganizationAlertItemsType, ) - from .group_0053 import ( + from .group_0058 import ( CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType as CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType, ) - from .group_0053 import ( + from .group_0058 import ( CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType as CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0053 import ( + from .group_0058 import ( CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_0053 import ( + from .group_0058 import ( CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType as CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType, ) - from .group_0053 import ( + from .group_0058 import ( CodeSecurityConfigurationType as CodeSecurityConfigurationType, ) - from .group_0054 import ( + from .group_0059 import ( CodeScanningDefaultSetupOptionsType as CodeScanningDefaultSetupOptionsType, ) - from .group_0055 import ( + from .group_0060 import ( CodeSecurityDefaultConfigurationsItemsType as CodeSecurityDefaultConfigurationsItemsType, ) - from .group_0056 import ( + from .group_0061 import ( CodeSecurityConfigurationRepositoriesType as CodeSecurityConfigurationRepositoriesType, ) - from .group_0057 import ( + from .group_0062 import ( EnterpriseSecurityAnalysisSettingsType as EnterpriseSecurityAnalysisSettingsType, ) - from .group_0058 import ( + from .group_0063 import ( GetConsumedLicensesPropUsersItemsType as GetConsumedLicensesPropUsersItemsType, ) - from .group_0058 import GetConsumedLicensesType as GetConsumedLicensesType - from .group_0059 import TeamSimpleType as TeamSimpleType - from .group_0060 import TeamPropPermissionsType as TeamPropPermissionsType - from .group_0060 import TeamType as TeamType - from .group_0061 import CopilotSeatDetailsType as CopilotSeatDetailsType - from .group_0061 import EnterpriseTeamType as EnterpriseTeamType - from .group_0062 import ( + from .group_0063 import GetConsumedLicensesType as GetConsumedLicensesType + from .group_0064 import TeamSimpleType as TeamSimpleType + from .group_0065 import TeamPropPermissionsType as TeamPropPermissionsType + from .group_0065 import TeamType as TeamType + from .group_0066 import CopilotSeatDetailsType as CopilotSeatDetailsType + from .group_0066 import EnterpriseTeamType as EnterpriseTeamType + from .group_0067 import ( CopilotDotcomChatPropModelsItemsType as CopilotDotcomChatPropModelsItemsType, ) - from .group_0062 import CopilotDotcomChatType as CopilotDotcomChatType - from .group_0062 import ( + from .group_0067 import CopilotDotcomChatType as CopilotDotcomChatType + from .group_0067 import ( CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType as CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType, ) - from .group_0062 import ( + from .group_0067 import ( CopilotDotcomPullRequestsPropRepositoriesItemsType as CopilotDotcomPullRequestsPropRepositoriesItemsType, ) - from .group_0062 import ( + from .group_0067 import ( CopilotDotcomPullRequestsType as CopilotDotcomPullRequestsType, ) - from .group_0062 import ( + from .group_0067 import ( CopilotIdeChatPropEditorsItemsPropModelsItemsType as CopilotIdeChatPropEditorsItemsPropModelsItemsType, ) - from .group_0062 import ( + from .group_0067 import ( CopilotIdeChatPropEditorsItemsType as CopilotIdeChatPropEditorsItemsType, ) - from .group_0062 import CopilotIdeChatType as CopilotIdeChatType - from .group_0062 import ( + from .group_0067 import CopilotIdeChatType as CopilotIdeChatType + from .group_0067 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType, ) - from .group_0062 import ( + from .group_0067 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType, ) - from .group_0062 import ( + from .group_0067 import ( CopilotIdeCodeCompletionsPropEditorsItemsType as CopilotIdeCodeCompletionsPropEditorsItemsType, ) - from .group_0062 import ( + from .group_0067 import ( CopilotIdeCodeCompletionsPropLanguagesItemsType as CopilotIdeCodeCompletionsPropLanguagesItemsType, ) - from .group_0062 import ( + from .group_0067 import ( CopilotIdeCodeCompletionsType as CopilotIdeCodeCompletionsType, ) - from .group_0062 import CopilotUsageMetricsDayType as CopilotUsageMetricsDayType - from .group_0063 import ( + from .group_0067 import CopilotUsageMetricsDayType as CopilotUsageMetricsDayType + from .group_0068 import ( CopilotUsageMetricsPropBreakdownItemsType as CopilotUsageMetricsPropBreakdownItemsType, ) - from .group_0063 import CopilotUsageMetricsType as CopilotUsageMetricsType - from .group_0064 import DependabotAlertPackageType as DependabotAlertPackageType - from .group_0065 import ( + from .group_0068 import CopilotUsageMetricsType as CopilotUsageMetricsType + from .group_0069 import DependabotAlertPackageType as DependabotAlertPackageType + from .group_0070 import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, ) - from .group_0065 import ( + from .group_0070 import ( DependabotAlertSecurityVulnerabilityType as DependabotAlertSecurityVulnerabilityType, ) - from .group_0066 import ( + from .group_0071 import ( DependabotAlertSecurityAdvisoryPropCvssType as DependabotAlertSecurityAdvisoryPropCvssType, ) - from .group_0066 import ( + from .group_0071 import ( DependabotAlertSecurityAdvisoryPropCwesItemsType as DependabotAlertSecurityAdvisoryPropCwesItemsType, ) - from .group_0066 import ( + from .group_0071 import ( DependabotAlertSecurityAdvisoryPropIdentifiersItemsType as DependabotAlertSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0066 import ( + from .group_0071 import ( DependabotAlertSecurityAdvisoryPropReferencesItemsType as DependabotAlertSecurityAdvisoryPropReferencesItemsType, ) - from .group_0066 import ( + from .group_0071 import ( DependabotAlertSecurityAdvisoryType as DependabotAlertSecurityAdvisoryType, ) - from .group_0067 import ( + from .group_0072 import ( DependabotAlertWithRepositoryType as DependabotAlertWithRepositoryType, ) - from .group_0068 import ( + from .group_0073 import ( DependabotAlertWithRepositoryPropDependencyType as DependabotAlertWithRepositoryPropDependencyType, ) - from .group_0069 import ( + from .group_0074 import ( GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType as GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType, ) - from .group_0069 import ( + from .group_0074 import ( GetLicenseSyncStatusPropServerInstancesItemsType as GetLicenseSyncStatusPropServerInstancesItemsType, ) - from .group_0069 import GetLicenseSyncStatusType as GetLicenseSyncStatusType - from .group_0070 import CustomPropertyType as CustomPropertyType - from .group_0071 import CustomPropertySetPayloadType as CustomPropertySetPayloadType - from .group_0072 import ( + from .group_0074 import GetLicenseSyncStatusType as GetLicenseSyncStatusType + from .group_0075 import NetworkConfigurationType as NetworkConfigurationType + from .group_0076 import NetworkSettingsType as NetworkSettingsType + from .group_0077 import CustomPropertyType as CustomPropertyType + from .group_0078 import CustomPropertySetPayloadType as CustomPropertySetPayloadType + from .group_0079 import ( RepositoryRulesetBypassActorType as RepositoryRulesetBypassActorType, ) - from .group_0073 import ( + from .group_0080 import ( EnterpriseRulesetConditionsOrganizationNameTargetType as EnterpriseRulesetConditionsOrganizationNameTargetType, ) - from .group_0074 import ( + from .group_0081 import ( EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType as EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, ) - from .group_0075 import ( + from .group_0082 import ( RepositoryRulesetConditionsRepositoryNameTargetType as RepositoryRulesetConditionsRepositoryNameTargetType, ) - from .group_0076 import ( + from .group_0083 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) - from .group_0077 import ( + from .group_0084 import ( RepositoryRulesetConditionsType as RepositoryRulesetConditionsType, ) - from .group_0078 import ( + from .group_0085 import ( RepositoryRulesetConditionsPropRefNameType as RepositoryRulesetConditionsPropRefNameType, ) - from .group_0079 import ( + from .group_0086 import ( RepositoryRulesetConditionsRepositoryPropertyTargetType as RepositoryRulesetConditionsRepositoryPropertyTargetType, ) - from .group_0080 import ( + from .group_0087 import ( RepositoryRulesetConditionsRepositoryPropertySpecType as RepositoryRulesetConditionsRepositoryPropertySpecType, ) - from .group_0080 import ( + from .group_0087 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) - from .group_0081 import ( + from .group_0088 import ( EnterpriseRulesetConditionsOrganizationIdTargetType as EnterpriseRulesetConditionsOrganizationIdTargetType, ) - from .group_0082 import ( + from .group_0089 import ( EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType as EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, ) - from .group_0083 import ( + from .group_0090 import ( EnterpriseRulesetConditionsOneof0Type as EnterpriseRulesetConditionsOneof0Type, ) - from .group_0084 import ( + from .group_0091 import ( EnterpriseRulesetConditionsOneof1Type as EnterpriseRulesetConditionsOneof1Type, ) - from .group_0085 import ( + from .group_0092 import ( EnterpriseRulesetConditionsOneof2Type as EnterpriseRulesetConditionsOneof2Type, ) - from .group_0086 import ( + from .group_0093 import ( EnterpriseRulesetConditionsOneof3Type as EnterpriseRulesetConditionsOneof3Type, ) - from .group_0087 import RepositoryRuleCreationType as RepositoryRuleCreationType - from .group_0087 import RepositoryRuleDeletionType as RepositoryRuleDeletionType - from .group_0087 import ( + from .group_0094 import RepositoryRuleCreationType as RepositoryRuleCreationType + from .group_0094 import RepositoryRuleDeletionType as RepositoryRuleDeletionType + from .group_0094 import ( RepositoryRuleNonFastForwardType as RepositoryRuleNonFastForwardType, ) - from .group_0087 import ( + from .group_0094 import ( RepositoryRuleOneof15PropParametersType as RepositoryRuleOneof15PropParametersType, ) - from .group_0087 import RepositoryRuleOneof15Type as RepositoryRuleOneof15Type - from .group_0087 import ( + from .group_0094 import RepositoryRuleOneof15Type as RepositoryRuleOneof15Type + from .group_0094 import ( RepositoryRuleOneof17PropParametersType as RepositoryRuleOneof17PropParametersType, ) - from .group_0087 import RepositoryRuleOneof17Type as RepositoryRuleOneof17Type - from .group_0087 import ( + from .group_0094 import RepositoryRuleOneof17Type as RepositoryRuleOneof17Type + from .group_0094 import ( RepositoryRuleRequiredSignaturesType as RepositoryRuleRequiredSignaturesType, ) - from .group_0088 import RepositoryRuleUpdateType as RepositoryRuleUpdateType - from .group_0089 import ( + from .group_0095 import RepositoryRuleUpdateType as RepositoryRuleUpdateType + from .group_0096 import ( RepositoryRuleUpdatePropParametersType as RepositoryRuleUpdatePropParametersType, ) - from .group_0090 import ( + from .group_0097 import ( RepositoryRuleOneof16PropParametersType as RepositoryRuleOneof16PropParametersType, ) - from .group_0090 import RepositoryRuleOneof16Type as RepositoryRuleOneof16Type - from .group_0090 import ( + from .group_0097 import RepositoryRuleOneof16Type as RepositoryRuleOneof16Type + from .group_0097 import ( RepositoryRuleRequiredLinearHistoryType as RepositoryRuleRequiredLinearHistoryType, ) - from .group_0091 import RepositoryRuleMergeQueueType as RepositoryRuleMergeQueueType - from .group_0092 import ( + from .group_0098 import RepositoryRuleMergeQueueType as RepositoryRuleMergeQueueType + from .group_0099 import ( RepositoryRuleMergeQueuePropParametersType as RepositoryRuleMergeQueuePropParametersType, ) - from .group_0093 import ( + from .group_0100 import ( RepositoryRuleRequiredDeploymentsType as RepositoryRuleRequiredDeploymentsType, ) - from .group_0094 import ( + from .group_0101 import ( RepositoryRuleRequiredDeploymentsPropParametersType as RepositoryRuleRequiredDeploymentsPropParametersType, ) - from .group_0095 import ( + from .group_0102 import ( RepositoryRuleParamsRequiredReviewerConfigurationType as RepositoryRuleParamsRequiredReviewerConfigurationType, ) - from .group_0096 import ( + from .group_0103 import ( RepositoryRulePullRequestType as RepositoryRulePullRequestType, ) - from .group_0097 import ( + from .group_0104 import ( RepositoryRulePullRequestPropParametersType as RepositoryRulePullRequestPropParametersType, ) - from .group_0098 import ( + from .group_0105 import ( RepositoryRuleRequiredStatusChecksType as RepositoryRuleRequiredStatusChecksType, ) - from .group_0099 import ( + from .group_0106 import ( RepositoryRuleParamsStatusCheckConfigurationType as RepositoryRuleParamsStatusCheckConfigurationType, ) - from .group_0099 import ( + from .group_0106 import ( RepositoryRuleRequiredStatusChecksPropParametersType as RepositoryRuleRequiredStatusChecksPropParametersType, ) - from .group_0100 import ( + from .group_0107 import ( RepositoryRuleCommitMessagePatternType as RepositoryRuleCommitMessagePatternType, ) - from .group_0101 import ( + from .group_0108 import ( RepositoryRuleCommitMessagePatternPropParametersType as RepositoryRuleCommitMessagePatternPropParametersType, ) - from .group_0102 import ( + from .group_0109 import ( RepositoryRuleCommitAuthorEmailPatternType as RepositoryRuleCommitAuthorEmailPatternType, ) - from .group_0103 import ( + from .group_0110 import ( RepositoryRuleCommitAuthorEmailPatternPropParametersType as RepositoryRuleCommitAuthorEmailPatternPropParametersType, ) - from .group_0104 import ( + from .group_0111 import ( RepositoryRuleCommitterEmailPatternType as RepositoryRuleCommitterEmailPatternType, ) - from .group_0105 import ( + from .group_0112 import ( RepositoryRuleCommitterEmailPatternPropParametersType as RepositoryRuleCommitterEmailPatternPropParametersType, ) - from .group_0106 import ( + from .group_0113 import ( RepositoryRuleBranchNamePatternType as RepositoryRuleBranchNamePatternType, ) - from .group_0107 import ( + from .group_0114 import ( RepositoryRuleBranchNamePatternPropParametersType as RepositoryRuleBranchNamePatternPropParametersType, ) - from .group_0108 import ( + from .group_0115 import ( RepositoryRuleTagNamePatternType as RepositoryRuleTagNamePatternType, ) - from .group_0109 import ( + from .group_0116 import ( RepositoryRuleTagNamePatternPropParametersType as RepositoryRuleTagNamePatternPropParametersType, ) - from .group_0110 import ( + from .group_0117 import ( RepositoryRuleParamsRestrictedCommitsType as RepositoryRuleParamsRestrictedCommitsType, ) - from .group_0111 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType - from .group_0112 import ( + from .group_0118 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType + from .group_0119 import ( RepositoryRuleParamsWorkflowFileReferenceType as RepositoryRuleParamsWorkflowFileReferenceType, ) - from .group_0112 import ( + from .group_0119 import ( RepositoryRuleWorkflowsPropParametersType as RepositoryRuleWorkflowsPropParametersType, ) - from .group_0113 import ( + from .group_0120 import ( RepositoryRuleCodeScanningType as RepositoryRuleCodeScanningType, ) - from .group_0114 import ( + from .group_0121 import ( RepositoryRuleCodeScanningPropParametersType as RepositoryRuleCodeScanningPropParametersType, ) - from .group_0114 import ( + from .group_0121 import ( RepositoryRuleParamsCodeScanningToolType as RepositoryRuleParamsCodeScanningToolType, ) - from .group_0115 import ( + from .group_0122 import ( RepositoryRuleOneof18PropParametersType as RepositoryRuleOneof18PropParametersType, ) - from .group_0115 import RepositoryRuleOneof18Type as RepositoryRuleOneof18Type - from .group_0116 import ( + from .group_0122 import RepositoryRuleOneof18Type as RepositoryRuleOneof18Type + from .group_0123 import ( RepositoryRulesetConditionsRepositoryIdTargetType as RepositoryRulesetConditionsRepositoryIdTargetType, ) - from .group_0117 import ( + from .group_0124 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) - from .group_0118 import ( + from .group_0125 import ( OrgRulesetConditionsOneof0Type as OrgRulesetConditionsOneof0Type, ) - from .group_0119 import ( + from .group_0126 import ( OrgRulesetConditionsOneof1Type as OrgRulesetConditionsOneof1Type, ) - from .group_0120 import ( + from .group_0127 import ( OrgRulesetConditionsOneof2Type as OrgRulesetConditionsOneof2Type, ) - from .group_0121 import ( + from .group_0128 import ( RepositoryRulesetPropLinksPropHtmlType as RepositoryRulesetPropLinksPropHtmlType, ) - from .group_0121 import ( + from .group_0128 import ( RepositoryRulesetPropLinksPropSelfType as RepositoryRulesetPropLinksPropSelfType, ) - from .group_0121 import ( + from .group_0128 import ( RepositoryRulesetPropLinksType as RepositoryRulesetPropLinksType, ) - from .group_0121 import RepositoryRulesetType as RepositoryRulesetType - from .group_0122 import ( + from .group_0128 import RepositoryRulesetType as RepositoryRulesetType + from .group_0129 import ( OrganizationSecretScanningAlertType as OrganizationSecretScanningAlertType, ) - from .group_0123 import ( + from .group_0130 import ( ActionsBillingUsagePropMinutesUsedBreakdownType as ActionsBillingUsagePropMinutesUsedBreakdownType, ) - from .group_0123 import ActionsBillingUsageType as ActionsBillingUsageType - from .group_0124 import ( + from .group_0130 import ActionsBillingUsageType as ActionsBillingUsageType + from .group_0131 import ( AdvancedSecurityActiveCommittersRepositoryType as AdvancedSecurityActiveCommittersRepositoryType, ) - from .group_0124 import ( + from .group_0131 import ( AdvancedSecurityActiveCommittersType as AdvancedSecurityActiveCommittersType, ) - from .group_0124 import ( + from .group_0131 import ( AdvancedSecurityActiveCommittersUserType as AdvancedSecurityActiveCommittersUserType, ) - from .group_0125 import ( + from .group_0132 import ( GetAllCostCentersPropCostCentersItemsPropResourcesItemsType as GetAllCostCentersPropCostCentersItemsPropResourcesItemsType, ) - from .group_0125 import ( + from .group_0132 import ( GetAllCostCentersPropCostCentersItemsType as GetAllCostCentersPropCostCentersItemsType, ) - from .group_0125 import GetAllCostCentersType as GetAllCostCentersType - from .group_0126 import PackagesBillingUsageType as PackagesBillingUsageType - from .group_0127 import CombinedBillingUsageType as CombinedBillingUsageType - from .group_0128 import ( + from .group_0132 import GetAllCostCentersType as GetAllCostCentersType + from .group_0133 import PackagesBillingUsageType as PackagesBillingUsageType + from .group_0134 import CombinedBillingUsageType as CombinedBillingUsageType + from .group_0135 import ( BillingUsageReportPropUsageItemsItemsType as BillingUsageReportPropUsageItemsItemsType, ) - from .group_0128 import BillingUsageReportType as BillingUsageReportType - from .group_0129 import MilestoneType as MilestoneType - from .group_0130 import ReactionRollupType as ReactionRollupType - from .group_0131 import ( + from .group_0135 import BillingUsageReportType as BillingUsageReportType + from .group_0136 import MilestoneType as MilestoneType + from .group_0137 import ReactionRollupType as ReactionRollupType + from .group_0138 import ( IssuePropLabelsItemsOneof1Type as IssuePropLabelsItemsOneof1Type, ) - from .group_0131 import IssuePropPullRequestType as IssuePropPullRequestType - from .group_0131 import IssueType as IssueType - from .group_0131 import SubIssuesSummaryType as SubIssuesSummaryType - from .group_0132 import IssueCommentType as IssueCommentType - from .group_0133 import ActorType as ActorType - from .group_0133 import ( + from .group_0138 import IssuePropPullRequestType as IssuePropPullRequestType + from .group_0138 import IssueType as IssueType + from .group_0138 import SubIssuesSummaryType as SubIssuesSummaryType + from .group_0139 import IssueCommentType as IssueCommentType + from .group_0140 import ActorType as ActorType + from .group_0140 import ( EventPropPayloadPropPagesItemsType as EventPropPayloadPropPagesItemsType, ) - from .group_0133 import EventPropPayloadType as EventPropPayloadType - from .group_0133 import EventPropRepoType as EventPropRepoType - from .group_0133 import EventType as EventType - from .group_0134 import FeedPropLinksType as FeedPropLinksType - from .group_0134 import FeedType as FeedType - from .group_0134 import LinkWithTypeType as LinkWithTypeType - from .group_0135 import BaseGistPropFilesType as BaseGistPropFilesType - from .group_0135 import BaseGistType as BaseGistType - from .group_0136 import ( + from .group_0140 import EventPropPayloadType as EventPropPayloadType + from .group_0140 import EventPropRepoType as EventPropRepoType + from .group_0140 import EventType as EventType + from .group_0141 import FeedPropLinksType as FeedPropLinksType + from .group_0141 import FeedType as FeedType + from .group_0141 import LinkWithTypeType as LinkWithTypeType + from .group_0142 import BaseGistPropFilesType as BaseGistPropFilesType + from .group_0142 import BaseGistType as BaseGistType + from .group_0143 import ( GistHistoryPropChangeStatusType as GistHistoryPropChangeStatusType, ) - from .group_0136 import GistHistoryType as GistHistoryType - from .group_0136 import ( + from .group_0143 import GistHistoryType as GistHistoryType + from .group_0143 import ( GistSimplePropForkOfPropFilesType as GistSimplePropForkOfPropFilesType, ) - from .group_0136 import GistSimplePropForkOfType as GistSimplePropForkOfType - from .group_0137 import GistSimplePropFilesType as GistSimplePropFilesType - from .group_0137 import GistSimplePropForksItemsType as GistSimplePropForksItemsType - from .group_0137 import GistSimpleType as GistSimpleType - from .group_0137 import PublicUserPropPlanType as PublicUserPropPlanType - from .group_0137 import PublicUserType as PublicUserType - from .group_0138 import GistCommentType as GistCommentType - from .group_0139 import ( + from .group_0143 import GistSimplePropForkOfType as GistSimplePropForkOfType + from .group_0144 import GistSimplePropFilesType as GistSimplePropFilesType + from .group_0144 import GistSimplePropForksItemsType as GistSimplePropForksItemsType + from .group_0144 import GistSimpleType as GistSimpleType + from .group_0144 import PublicUserPropPlanType as PublicUserPropPlanType + from .group_0144 import PublicUserType as PublicUserType + from .group_0145 import GistCommentType as GistCommentType + from .group_0146 import ( GistCommitPropChangeStatusType as GistCommitPropChangeStatusType, ) - from .group_0139 import GistCommitType as GistCommitType - from .group_0140 import GitignoreTemplateType as GitignoreTemplateType - from .group_0141 import LicenseType as LicenseType - from .group_0142 import MarketplaceListingPlanType as MarketplaceListingPlanType - from .group_0143 import MarketplacePurchaseType as MarketplacePurchaseType - from .group_0144 import ( + from .group_0146 import GistCommitType as GistCommitType + from .group_0147 import GitignoreTemplateType as GitignoreTemplateType + from .group_0148 import LicenseType as LicenseType + from .group_0149 import MarketplaceListingPlanType as MarketplaceListingPlanType + from .group_0150 import MarketplacePurchaseType as MarketplacePurchaseType + from .group_0151 import ( MarketplacePurchasePropMarketplacePendingChangeType as MarketplacePurchasePropMarketplacePendingChangeType, ) - from .group_0144 import ( + from .group_0151 import ( MarketplacePurchasePropMarketplacePurchaseType as MarketplacePurchasePropMarketplacePurchaseType, ) - from .group_0145 import ( + from .group_0152 import ( ApiOverviewPropDomainsPropActionsInboundType as ApiOverviewPropDomainsPropActionsInboundType, ) - from .group_0145 import ( + from .group_0152 import ( ApiOverviewPropDomainsPropArtifactAttestationsType as ApiOverviewPropDomainsPropArtifactAttestationsType, ) - from .group_0145 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType - from .group_0145 import ( + from .group_0152 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType + from .group_0152 import ( ApiOverviewPropSshKeyFingerprintsType as ApiOverviewPropSshKeyFingerprintsType, ) - from .group_0145 import ApiOverviewType as ApiOverviewType - from .group_0146 import ( + from .group_0152 import ApiOverviewType as ApiOverviewType + from .group_0153 import ( SecurityAndAnalysisPropAdvancedSecurityType as SecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0146 import ( + from .group_0153 import ( SecurityAndAnalysisPropDependabotSecurityUpdatesType as SecurityAndAnalysisPropDependabotSecurityUpdatesType, ) - from .group_0146 import ( + from .group_0153 import ( SecurityAndAnalysisPropSecretScanningAiDetectionType as SecurityAndAnalysisPropSecretScanningAiDetectionType, ) - from .group_0146 import ( + from .group_0153 import ( SecurityAndAnalysisPropSecretScanningNonProviderPatternsType as SecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) - from .group_0146 import ( + from .group_0153 import ( SecurityAndAnalysisPropSecretScanningPushProtectionType as SecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0146 import ( + from .group_0153 import ( SecurityAndAnalysisPropSecretScanningType as SecurityAndAnalysisPropSecretScanningType, ) - from .group_0146 import ( + from .group_0153 import ( SecurityAndAnalysisPropSecretScanningValidityChecksType as SecurityAndAnalysisPropSecretScanningValidityChecksType, ) - from .group_0146 import SecurityAndAnalysisType as SecurityAndAnalysisType - from .group_0147 import CodeOfConductType as CodeOfConductType - from .group_0147 import ( + from .group_0153 import SecurityAndAnalysisType as SecurityAndAnalysisType + from .group_0154 import CodeOfConductType as CodeOfConductType + from .group_0154 import ( MinimalRepositoryPropLicenseType as MinimalRepositoryPropLicenseType, ) - from .group_0147 import ( + from .group_0154 import ( MinimalRepositoryPropPermissionsType as MinimalRepositoryPropPermissionsType, ) - from .group_0147 import MinimalRepositoryType as MinimalRepositoryType - from .group_0148 import ThreadPropSubjectType as ThreadPropSubjectType - from .group_0148 import ThreadType as ThreadType - from .group_0149 import ThreadSubscriptionType as ThreadSubscriptionType - from .group_0150 import ( + from .group_0154 import MinimalRepositoryType as MinimalRepositoryType + from .group_0155 import ThreadPropSubjectType as ThreadPropSubjectType + from .group_0155 import ThreadType as ThreadType + from .group_0156 import ThreadSubscriptionType as ThreadSubscriptionType + from .group_0157 import ( OrganizationCustomRepositoryRoleType as OrganizationCustomRepositoryRoleType, ) - from .group_0151 import OrganizationFullPropPlanType as OrganizationFullPropPlanType - from .group_0151 import OrganizationFullType as OrganizationFullType - from .group_0152 import OidcCustomSubType as OidcCustomSubType - from .group_0153 import ( + from .group_0158 import OrganizationFullPropPlanType as OrganizationFullPropPlanType + from .group_0158 import OrganizationFullType as OrganizationFullType + from .group_0159 import OidcCustomSubType as OidcCustomSubType + from .group_0160 import ( ActionsOrganizationPermissionsType as ActionsOrganizationPermissionsType, ) - from .group_0154 import ActionsPublicKeyType as ActionsPublicKeyType - from .group_0155 import ( + from .group_0161 import ActionsPublicKeyType as ActionsPublicKeyType + from .group_0162 import ( BypassResponsePropReviewerType as BypassResponsePropReviewerType, ) - from .group_0155 import BypassResponseType as BypassResponseType - from .group_0155 import ( + from .group_0162 import BypassResponseType as BypassResponseType + from .group_0162 import ( PushRuleBypassRequestPropDataItemsType as PushRuleBypassRequestPropDataItemsType, ) - from .group_0155 import ( + from .group_0162 import ( PushRuleBypassRequestPropOrganizationType as PushRuleBypassRequestPropOrganizationType, ) - from .group_0155 import ( + from .group_0162 import ( PushRuleBypassRequestPropRepositoryType as PushRuleBypassRequestPropRepositoryType, ) - from .group_0155 import ( + from .group_0162 import ( PushRuleBypassRequestPropRequesterType as PushRuleBypassRequestPropRequesterType, ) - from .group_0155 import PushRuleBypassRequestType as PushRuleBypassRequestType - from .group_0156 import CodespaceMachineType as CodespaceMachineType - from .group_0157 import CodespacePropGitStatusType as CodespacePropGitStatusType - from .group_0157 import ( + from .group_0162 import PushRuleBypassRequestType as PushRuleBypassRequestType + from .group_0163 import CodespaceMachineType as CodespaceMachineType + from .group_0164 import CodespacePropGitStatusType as CodespacePropGitStatusType + from .group_0164 import ( CodespacePropRuntimeConstraintsType as CodespacePropRuntimeConstraintsType, ) - from .group_0157 import CodespaceType as CodespaceType - from .group_0158 import CodespacesPublicKeyType as CodespacesPublicKeyType - from .group_0159 import ( + from .group_0164 import CodespaceType as CodespaceType + from .group_0165 import CodespacesPublicKeyType as CodespacesPublicKeyType + from .group_0166 import ( CopilotOrganizationDetailsType as CopilotOrganizationDetailsType, ) - from .group_0159 import CopilotSeatBreakdownType as CopilotSeatBreakdownType - from .group_0160 import CredentialAuthorizationType as CredentialAuthorizationType - from .group_0161 import ( + from .group_0166 import CopilotSeatBreakdownType as CopilotSeatBreakdownType + from .group_0167 import CredentialAuthorizationType as CredentialAuthorizationType + from .group_0168 import ( OrganizationCustomRepositoryRoleCreateSchemaType as OrganizationCustomRepositoryRoleCreateSchemaType, ) - from .group_0162 import ( + from .group_0169 import ( OrganizationCustomRepositoryRoleUpdateSchemaType as OrganizationCustomRepositoryRoleUpdateSchemaType, ) - from .group_0163 import DependabotPublicKeyType as DependabotPublicKeyType - from .group_0164 import PackageType as PackageType - from .group_0165 import ( + from .group_0170 import DependabotPublicKeyType as DependabotPublicKeyType + from .group_0171 import PackageType as PackageType + from .group_0172 import ( ExternalGroupPropMembersItemsType as ExternalGroupPropMembersItemsType, ) - from .group_0165 import ( + from .group_0172 import ( ExternalGroupPropTeamsItemsType as ExternalGroupPropTeamsItemsType, ) - from .group_0165 import ExternalGroupType as ExternalGroupType - from .group_0166 import ( + from .group_0172 import ExternalGroupType as ExternalGroupType + from .group_0173 import ( ExternalGroupsPropGroupsItemsType as ExternalGroupsPropGroupsItemsType, ) - from .group_0166 import ExternalGroupsType as ExternalGroupsType - from .group_0167 import OrganizationInvitationType as OrganizationInvitationType - from .group_0168 import ( + from .group_0173 import ExternalGroupsType as ExternalGroupsType + from .group_0174 import OrganizationInvitationType as OrganizationInvitationType + from .group_0175 import ( RepositoryFineGrainedPermissionType as RepositoryFineGrainedPermissionType, ) - from .group_0169 import OrgHookPropConfigType as OrgHookPropConfigType - from .group_0169 import OrgHookType as OrgHookType - from .group_0170 import ( + from .group_0176 import OrgHookPropConfigType as OrgHookPropConfigType + from .group_0176 import OrgHookType as OrgHookType + from .group_0177 import ( ApiInsightsRouteStatsItemsType as ApiInsightsRouteStatsItemsType, ) - from .group_0171 import ( + from .group_0178 import ( ApiInsightsSubjectStatsItemsType as ApiInsightsSubjectStatsItemsType, ) - from .group_0172 import ApiInsightsSummaryStatsType as ApiInsightsSummaryStatsType - from .group_0173 import ( + from .group_0179 import ApiInsightsSummaryStatsType as ApiInsightsSummaryStatsType + from .group_0180 import ( ApiInsightsTimeStatsItemsType as ApiInsightsTimeStatsItemsType, ) - from .group_0174 import ( + from .group_0181 import ( ApiInsightsUserStatsItemsType as ApiInsightsUserStatsItemsType, ) - from .group_0175 import InteractionLimitResponseType as InteractionLimitResponseType - from .group_0176 import InteractionLimitType as InteractionLimitType - from .group_0177 import ( + from .group_0182 import InteractionLimitResponseType as InteractionLimitResponseType + from .group_0183 import InteractionLimitType as InteractionLimitType + from .group_0184 import ( OrgMembershipPropPermissionsType as OrgMembershipPropPermissionsType, ) - from .group_0177 import OrgMembershipType as OrgMembershipType - from .group_0178 import MigrationType as MigrationType - from .group_0179 import ( + from .group_0184 import OrgMembershipType as OrgMembershipType + from .group_0185 import MigrationType as MigrationType + from .group_0186 import ( OrganizationFineGrainedPermissionType as OrganizationFineGrainedPermissionType, ) - from .group_0180 import OrganizationRoleType as OrganizationRoleType - from .group_0180 import ( + from .group_0187 import OrganizationRoleType as OrganizationRoleType + from .group_0187 import ( OrgsOrgOrganizationRolesGetResponse200Type as OrgsOrgOrganizationRolesGetResponse200Type, ) - from .group_0181 import ( + from .group_0188 import ( OrganizationCustomOrganizationRoleCreateSchemaType as OrganizationCustomOrganizationRoleCreateSchemaType, ) - from .group_0182 import ( + from .group_0189 import ( OrganizationCustomOrganizationRoleUpdateSchemaType as OrganizationCustomOrganizationRoleUpdateSchemaType, ) - from .group_0183 import ( + from .group_0190 import ( TeamRoleAssignmentPropPermissionsType as TeamRoleAssignmentPropPermissionsType, ) - from .group_0183 import TeamRoleAssignmentType as TeamRoleAssignmentType - from .group_0184 import UserRoleAssignmentType as UserRoleAssignmentType - from .group_0185 import ( + from .group_0190 import TeamRoleAssignmentType as TeamRoleAssignmentType + from .group_0191 import UserRoleAssignmentType as UserRoleAssignmentType + from .group_0192 import ( PackageVersionPropMetadataPropContainerType as PackageVersionPropMetadataPropContainerType, ) - from .group_0185 import ( + from .group_0192 import ( PackageVersionPropMetadataPropDockerType as PackageVersionPropMetadataPropDockerType, ) - from .group_0185 import ( + from .group_0192 import ( PackageVersionPropMetadataType as PackageVersionPropMetadataType, ) - from .group_0185 import PackageVersionType as PackageVersionType - from .group_0186 import ( + from .group_0192 import PackageVersionType as PackageVersionType + from .group_0193 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType, ) - from .group_0186 import ( + from .group_0193 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType, ) - from .group_0186 import ( + from .group_0193 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType, ) - from .group_0186 import ( + from .group_0193 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsType as OrganizationProgrammaticAccessGrantRequestPropPermissionsType, ) - from .group_0186 import ( + from .group_0193 import ( OrganizationProgrammaticAccessGrantRequestType as OrganizationProgrammaticAccessGrantRequestType, ) - from .group_0187 import ( + from .group_0194 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType, ) - from .group_0187 import ( + from .group_0194 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType, ) - from .group_0187 import ( + from .group_0194 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType, ) - from .group_0187 import ( + from .group_0194 import ( OrganizationProgrammaticAccessGrantPropPermissionsType as OrganizationProgrammaticAccessGrantPropPermissionsType, ) - from .group_0187 import ( + from .group_0194 import ( OrganizationProgrammaticAccessGrantType as OrganizationProgrammaticAccessGrantType, ) - from .group_0188 import ( + from .group_0195 import ( OrgPrivateRegistryConfigurationWithSelectedRepositoriesType as OrgPrivateRegistryConfigurationWithSelectedRepositoriesType, ) - from .group_0189 import ProjectType as ProjectType - from .group_0190 import CustomPropertyValueType as CustomPropertyValueType - from .group_0191 import ( + from .group_0196 import ProjectType as ProjectType + from .group_0197 import CustomPropertyValueType as CustomPropertyValueType + from .group_0198 import ( OrgRepoCustomPropertyValuesType as OrgRepoCustomPropertyValuesType, ) - from .group_0192 import CodeOfConductSimpleType as CodeOfConductSimpleType - from .group_0193 import ( + from .group_0199 import CodeOfConductSimpleType as CodeOfConductSimpleType + from .group_0200 import ( FullRepositoryPropCustomPropertiesType as FullRepositoryPropCustomPropertiesType, ) - from .group_0193 import ( + from .group_0200 import ( FullRepositoryPropPermissionsType as FullRepositoryPropPermissionsType, ) - from .group_0193 import FullRepositoryType as FullRepositoryType - from .group_0194 import RuleSuitesItemsType as RuleSuitesItemsType - from .group_0195 import ( + from .group_0200 import FullRepositoryType as FullRepositoryType + from .group_0201 import RuleSuitesItemsType as RuleSuitesItemsType + from .group_0202 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSourceType as RuleSuitePropRuleEvaluationsItemsPropRuleSourceType, ) - from .group_0195 import ( + from .group_0202 import ( RuleSuitePropRuleEvaluationsItemsType as RuleSuitePropRuleEvaluationsItemsType, ) - from .group_0195 import RuleSuiteType as RuleSuiteType - from .group_0196 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType - from .group_0197 import ( + from .group_0202 import RuleSuiteType as RuleSuiteType + from .group_0203 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType + from .group_0204 import ( RepositoryAdvisoryPropCreditsItemsType as RepositoryAdvisoryPropCreditsItemsType, ) - from .group_0197 import ( + from .group_0204 import ( RepositoryAdvisoryPropCvssType as RepositoryAdvisoryPropCvssType, ) - from .group_0197 import ( + from .group_0204 import ( RepositoryAdvisoryPropCwesItemsType as RepositoryAdvisoryPropCwesItemsType, ) - from .group_0197 import ( + from .group_0204 import ( RepositoryAdvisoryPropIdentifiersItemsType as RepositoryAdvisoryPropIdentifiersItemsType, ) - from .group_0197 import ( + from .group_0204 import ( RepositoryAdvisoryPropSubmissionType as RepositoryAdvisoryPropSubmissionType, ) - from .group_0197 import RepositoryAdvisoryType as RepositoryAdvisoryType - from .group_0197 import ( + from .group_0204 import RepositoryAdvisoryType as RepositoryAdvisoryType + from .group_0204 import ( RepositoryAdvisoryVulnerabilityPropPackageType as RepositoryAdvisoryVulnerabilityPropPackageType, ) - from .group_0197 import ( + from .group_0204 import ( RepositoryAdvisoryVulnerabilityType as RepositoryAdvisoryVulnerabilityType, ) - from .group_0198 import ( + from .group_0205 import ( GroupMappingPropGroupsItemsType as GroupMappingPropGroupsItemsType, ) - from .group_0198 import GroupMappingType as GroupMappingType - from .group_0199 import TeamFullType as TeamFullType - from .group_0199 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType - from .group_0199 import TeamOrganizationType as TeamOrganizationType - from .group_0200 import TeamDiscussionType as TeamDiscussionType - from .group_0201 import TeamDiscussionCommentType as TeamDiscussionCommentType - from .group_0202 import ReactionType as ReactionType - from .group_0203 import TeamMembershipType as TeamMembershipType - from .group_0204 import ( + from .group_0205 import GroupMappingType as GroupMappingType + from .group_0206 import TeamFullType as TeamFullType + from .group_0206 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType + from .group_0206 import TeamOrganizationType as TeamOrganizationType + from .group_0207 import TeamDiscussionType as TeamDiscussionType + from .group_0208 import TeamDiscussionCommentType as TeamDiscussionCommentType + from .group_0209 import ReactionType as ReactionType + from .group_0210 import TeamMembershipType as TeamMembershipType + from .group_0211 import ( TeamProjectPropPermissionsType as TeamProjectPropPermissionsType, ) - from .group_0204 import TeamProjectType as TeamProjectType - from .group_0205 import ( + from .group_0211 import TeamProjectType as TeamProjectType + from .group_0212 import ( TeamRepositoryPropPermissionsType as TeamRepositoryPropPermissionsType, ) - from .group_0205 import TeamRepositoryType as TeamRepositoryType - from .group_0206 import ProjectCardType as ProjectCardType - from .group_0207 import ProjectColumnType as ProjectColumnType - from .group_0208 import ( + from .group_0212 import TeamRepositoryType as TeamRepositoryType + from .group_0213 import ProjectCardType as ProjectCardType + from .group_0214 import ProjectColumnType as ProjectColumnType + from .group_0215 import ( ProjectCollaboratorPermissionType as ProjectCollaboratorPermissionType, ) - from .group_0209 import RateLimitType as RateLimitType - from .group_0210 import RateLimitOverviewType as RateLimitOverviewType - from .group_0211 import ( + from .group_0216 import RateLimitType as RateLimitType + from .group_0217 import RateLimitOverviewType as RateLimitOverviewType + from .group_0218 import ( RateLimitOverviewPropResourcesType as RateLimitOverviewPropResourcesType, ) - from .group_0212 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType - from .group_0212 import ArtifactType as ArtifactType - from .group_0213 import ( + from .group_0219 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType + from .group_0219 import ArtifactType as ArtifactType + from .group_0220 import ( ActionsCacheListPropActionsCachesItemsType as ActionsCacheListPropActionsCachesItemsType, ) - from .group_0213 import ActionsCacheListType as ActionsCacheListType - from .group_0214 import JobPropStepsItemsType as JobPropStepsItemsType - from .group_0214 import JobType as JobType - from .group_0215 import OidcCustomSubRepoType as OidcCustomSubRepoType - from .group_0216 import ActionsSecretType as ActionsSecretType - from .group_0217 import ActionsVariableType as ActionsVariableType - from .group_0218 import ( + from .group_0220 import ActionsCacheListType as ActionsCacheListType + from .group_0221 import JobPropStepsItemsType as JobPropStepsItemsType + from .group_0221 import JobType as JobType + from .group_0222 import OidcCustomSubRepoType as OidcCustomSubRepoType + from .group_0223 import ActionsSecretType as ActionsSecretType + from .group_0224 import ActionsVariableType as ActionsVariableType + from .group_0225 import ( ActionsRepositoryPermissionsType as ActionsRepositoryPermissionsType, ) - from .group_0219 import ( + from .group_0226 import ( ActionsWorkflowAccessToRepositoryType as ActionsWorkflowAccessToRepositoryType, ) - from .group_0220 import ( + from .group_0227 import ( PullRequestMinimalPropBasePropRepoType as PullRequestMinimalPropBasePropRepoType, ) - from .group_0220 import ( + from .group_0227 import ( PullRequestMinimalPropBaseType as PullRequestMinimalPropBaseType, ) - from .group_0220 import ( + from .group_0227 import ( PullRequestMinimalPropHeadPropRepoType as PullRequestMinimalPropHeadPropRepoType, ) - from .group_0220 import ( + from .group_0227 import ( PullRequestMinimalPropHeadType as PullRequestMinimalPropHeadType, ) - from .group_0220 import PullRequestMinimalType as PullRequestMinimalType - from .group_0221 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType - from .group_0221 import ( + from .group_0227 import PullRequestMinimalType as PullRequestMinimalType + from .group_0228 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType + from .group_0228 import ( SimpleCommitPropCommitterType as SimpleCommitPropCommitterType, ) - from .group_0221 import SimpleCommitType as SimpleCommitType - from .group_0222 import ReferencedWorkflowType as ReferencedWorkflowType - from .group_0222 import WorkflowRunType as WorkflowRunType - from .group_0223 import ( + from .group_0228 import SimpleCommitType as SimpleCommitType + from .group_0229 import ReferencedWorkflowType as ReferencedWorkflowType + from .group_0229 import WorkflowRunType as WorkflowRunType + from .group_0230 import ( EnvironmentApprovalsPropEnvironmentsItemsType as EnvironmentApprovalsPropEnvironmentsItemsType, ) - from .group_0223 import EnvironmentApprovalsType as EnvironmentApprovalsType - from .group_0224 import ( + from .group_0230 import EnvironmentApprovalsType as EnvironmentApprovalsType + from .group_0231 import ( ReviewCustomGatesCommentRequiredType as ReviewCustomGatesCommentRequiredType, ) - from .group_0225 import ( + from .group_0232 import ( ReviewCustomGatesStateRequiredType as ReviewCustomGatesStateRequiredType, ) - from .group_0226 import ( + from .group_0233 import ( PendingDeploymentPropEnvironmentType as PendingDeploymentPropEnvironmentType, ) - from .group_0226 import ( + from .group_0233 import ( PendingDeploymentPropReviewersItemsType as PendingDeploymentPropReviewersItemsType, ) - from .group_0226 import PendingDeploymentType as PendingDeploymentType - from .group_0227 import ( + from .group_0233 import PendingDeploymentType as PendingDeploymentType + from .group_0234 import ( DeploymentPropPayloadOneof0Type as DeploymentPropPayloadOneof0Type, ) - from .group_0227 import DeploymentType as DeploymentType - from .group_0228 import ( + from .group_0234 import DeploymentType as DeploymentType + from .group_0235 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType as WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType, ) - from .group_0228 import ( + from .group_0235 import ( WorkflowRunUsagePropBillablePropMacosType as WorkflowRunUsagePropBillablePropMacosType, ) - from .group_0228 import ( + from .group_0235 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType, ) - from .group_0228 import ( + from .group_0235 import ( WorkflowRunUsagePropBillablePropUbuntuType as WorkflowRunUsagePropBillablePropUbuntuType, ) - from .group_0228 import ( + from .group_0235 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType, ) - from .group_0228 import ( + from .group_0235 import ( WorkflowRunUsagePropBillablePropWindowsType as WorkflowRunUsagePropBillablePropWindowsType, ) - from .group_0228 import ( + from .group_0235 import ( WorkflowRunUsagePropBillableType as WorkflowRunUsagePropBillableType, ) - from .group_0228 import WorkflowRunUsageType as WorkflowRunUsageType - from .group_0229 import ( + from .group_0235 import WorkflowRunUsageType as WorkflowRunUsageType + from .group_0236 import ( WorkflowUsagePropBillablePropMacosType as WorkflowUsagePropBillablePropMacosType, ) - from .group_0229 import ( + from .group_0236 import ( WorkflowUsagePropBillablePropUbuntuType as WorkflowUsagePropBillablePropUbuntuType, ) - from .group_0229 import ( + from .group_0236 import ( WorkflowUsagePropBillablePropWindowsType as WorkflowUsagePropBillablePropWindowsType, ) - from .group_0229 import ( + from .group_0236 import ( WorkflowUsagePropBillableType as WorkflowUsagePropBillableType, ) - from .group_0229 import WorkflowUsageType as WorkflowUsageType - from .group_0230 import ActivityType as ActivityType - from .group_0231 import AutolinkType as AutolinkType - from .group_0232 import ( + from .group_0236 import WorkflowUsageType as WorkflowUsageType + from .group_0237 import ActivityType as ActivityType + from .group_0238 import AutolinkType as AutolinkType + from .group_0239 import ( CheckAutomatedSecurityFixesType as CheckAutomatedSecurityFixesType, ) - from .group_0233 import ( + from .group_0240 import ( ProtectedBranchPullRequestReviewType as ProtectedBranchPullRequestReviewType, ) - from .group_0234 import ( + from .group_0241 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, ) - from .group_0234 import ( + from .group_0241 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictionsType as ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, ) - from .group_0235 import ( + from .group_0242 import ( BranchRestrictionPolicyPropAppsItemsPropOwnerType as BranchRestrictionPolicyPropAppsItemsPropOwnerType, ) - from .group_0235 import ( + from .group_0242 import ( BranchRestrictionPolicyPropAppsItemsPropPermissionsType as BranchRestrictionPolicyPropAppsItemsPropPermissionsType, ) - from .group_0235 import ( + from .group_0242 import ( BranchRestrictionPolicyPropAppsItemsType as BranchRestrictionPolicyPropAppsItemsType, ) - from .group_0235 import ( + from .group_0242 import ( BranchRestrictionPolicyPropTeamsItemsType as BranchRestrictionPolicyPropTeamsItemsType, ) - from .group_0235 import ( + from .group_0242 import ( BranchRestrictionPolicyPropUsersItemsType as BranchRestrictionPolicyPropUsersItemsType, ) - from .group_0235 import BranchRestrictionPolicyType as BranchRestrictionPolicyType - from .group_0236 import ( + from .group_0242 import BranchRestrictionPolicyType as BranchRestrictionPolicyType + from .group_0243 import ( BranchProtectionPropAllowDeletionsType as BranchProtectionPropAllowDeletionsType, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropAllowForcePushesType as BranchProtectionPropAllowForcePushesType, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropAllowForkSyncingType as BranchProtectionPropAllowForkSyncingType, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropBlockCreationsType as BranchProtectionPropBlockCreationsType, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropLockBranchType as BranchProtectionPropLockBranchType, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropRequiredConversationResolutionType as BranchProtectionPropRequiredConversationResolutionType, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropRequiredLinearHistoryType as BranchProtectionPropRequiredLinearHistoryType, ) - from .group_0236 import ( + from .group_0243 import ( BranchProtectionPropRequiredSignaturesType as BranchProtectionPropRequiredSignaturesType, ) - from .group_0236 import BranchProtectionType as BranchProtectionType - from .group_0236 import ( + from .group_0243 import BranchProtectionType as BranchProtectionType + from .group_0243 import ( ProtectedBranchAdminEnforcedType as ProtectedBranchAdminEnforcedType, ) - from .group_0236 import ( + from .group_0243 import ( ProtectedBranchRequiredStatusCheckPropChecksItemsType as ProtectedBranchRequiredStatusCheckPropChecksItemsType, ) - from .group_0236 import ( + from .group_0243 import ( ProtectedBranchRequiredStatusCheckType as ProtectedBranchRequiredStatusCheckType, ) - from .group_0237 import ShortBranchPropCommitType as ShortBranchPropCommitType - from .group_0237 import ShortBranchType as ShortBranchType - from .group_0238 import GitUserType as GitUserType - from .group_0239 import VerificationType as VerificationType - from .group_0240 import DiffEntryType as DiffEntryType - from .group_0241 import CommitPropParentsItemsType as CommitPropParentsItemsType - from .group_0241 import CommitPropStatsType as CommitPropStatsType - from .group_0241 import CommitType as CommitType - from .group_0241 import EmptyObjectType as EmptyObjectType - from .group_0242 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType - from .group_0242 import CommitPropCommitType as CommitPropCommitType - from .group_0243 import ( + from .group_0244 import ShortBranchPropCommitType as ShortBranchPropCommitType + from .group_0244 import ShortBranchType as ShortBranchType + from .group_0245 import GitUserType as GitUserType + from .group_0246 import VerificationType as VerificationType + from .group_0247 import DiffEntryType as DiffEntryType + from .group_0248 import CommitPropParentsItemsType as CommitPropParentsItemsType + from .group_0248 import CommitPropStatsType as CommitPropStatsType + from .group_0248 import CommitType as CommitType + from .group_0248 import EmptyObjectType as EmptyObjectType + from .group_0249 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType + from .group_0249 import CommitPropCommitType as CommitPropCommitType + from .group_0250 import ( BranchWithProtectionPropLinksType as BranchWithProtectionPropLinksType, ) - from .group_0243 import BranchWithProtectionType as BranchWithProtectionType - from .group_0244 import ( + from .group_0250 import BranchWithProtectionType as BranchWithProtectionType + from .group_0251 import ( ProtectedBranchPropAllowDeletionsType as ProtectedBranchPropAllowDeletionsType, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropAllowForcePushesType as ProtectedBranchPropAllowForcePushesType, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropAllowForkSyncingType as ProtectedBranchPropAllowForkSyncingType, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropBlockCreationsType as ProtectedBranchPropBlockCreationsType, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropEnforceAdminsType as ProtectedBranchPropEnforceAdminsType, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropLockBranchType as ProtectedBranchPropLockBranchType, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropRequiredConversationResolutionType as ProtectedBranchPropRequiredConversationResolutionType, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropRequiredLinearHistoryType as ProtectedBranchPropRequiredLinearHistoryType, ) - from .group_0244 import ( + from .group_0251 import ( ProtectedBranchPropRequiredSignaturesType as ProtectedBranchPropRequiredSignaturesType, ) - from .group_0244 import ProtectedBranchType as ProtectedBranchType - from .group_0244 import ( + from .group_0251 import ProtectedBranchType as ProtectedBranchType + from .group_0251 import ( StatusCheckPolicyPropChecksItemsType as StatusCheckPolicyPropChecksItemsType, ) - from .group_0244 import StatusCheckPolicyType as StatusCheckPolicyType - from .group_0245 import ( + from .group_0251 import StatusCheckPolicyType as StatusCheckPolicyType + from .group_0252 import ( ProtectedBranchPropRequiredPullRequestReviewsType as ProtectedBranchPropRequiredPullRequestReviewsType, ) - from .group_0246 import ( + from .group_0253 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0246 import ( + from .group_0253 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0247 import DeploymentSimpleType as DeploymentSimpleType - from .group_0248 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType - from .group_0248 import CheckRunPropOutputType as CheckRunPropOutputType - from .group_0248 import CheckRunType as CheckRunType - from .group_0249 import CheckAnnotationType as CheckAnnotationType - from .group_0250 import CheckSuiteType as CheckSuiteType - from .group_0250 import ( + from .group_0254 import DeploymentSimpleType as DeploymentSimpleType + from .group_0255 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType + from .group_0255 import CheckRunPropOutputType as CheckRunPropOutputType + from .group_0255 import CheckRunType as CheckRunType + from .group_0256 import CheckAnnotationType as CheckAnnotationType + from .group_0257 import CheckSuiteType as CheckSuiteType + from .group_0257 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type, ) - from .group_0251 import ( + from .group_0258 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType, ) - from .group_0251 import ( + from .group_0258 import ( CheckSuitePreferencePropPreferencesType as CheckSuitePreferencePropPreferencesType, ) - from .group_0251 import CheckSuitePreferenceType as CheckSuitePreferenceType - from .group_0252 import CodeScanningAlertItemsType as CodeScanningAlertItemsType - from .group_0253 import CodeScanningAlertRuleType as CodeScanningAlertRuleType - from .group_0253 import CodeScanningAlertType as CodeScanningAlertType - from .group_0254 import CodeScanningAutofixType as CodeScanningAutofixType - from .group_0255 import ( + from .group_0258 import CheckSuitePreferenceType as CheckSuitePreferenceType + from .group_0259 import CodeScanningAlertItemsType as CodeScanningAlertItemsType + from .group_0260 import CodeScanningAlertRuleType as CodeScanningAlertRuleType + from .group_0260 import CodeScanningAlertType as CodeScanningAlertType + from .group_0261 import CodeScanningAutofixType as CodeScanningAutofixType + from .group_0262 import ( CodeScanningAutofixCommitsType as CodeScanningAutofixCommitsType, ) - from .group_0256 import ( + from .group_0263 import ( CodeScanningAutofixCommitsResponseType as CodeScanningAutofixCommitsResponseType, ) - from .group_0257 import CodeScanningAnalysisType as CodeScanningAnalysisType - from .group_0258 import ( + from .group_0264 import CodeScanningAnalysisType as CodeScanningAnalysisType + from .group_0265 import ( CodeScanningAnalysisDeletionType as CodeScanningAnalysisDeletionType, ) - from .group_0259 import ( + from .group_0266 import ( CodeScanningCodeqlDatabaseType as CodeScanningCodeqlDatabaseType, ) - from .group_0260 import ( + from .group_0267 import ( CodeScanningVariantAnalysisRepositoryType as CodeScanningVariantAnalysisRepositoryType, ) - from .group_0261 import ( + from .group_0268 import ( CodeScanningVariantAnalysisSkippedRepoGroupType as CodeScanningVariantAnalysisSkippedRepoGroupType, ) - from .group_0262 import ( + from .group_0269 import ( CodeScanningVariantAnalysisType as CodeScanningVariantAnalysisType, ) - from .group_0263 import ( + from .group_0270 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItemsType as CodeScanningVariantAnalysisPropScannedRepositoriesItemsType, ) - from .group_0264 import ( + from .group_0271 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType, ) - from .group_0264 import ( + from .group_0271 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesType as CodeScanningVariantAnalysisPropSkippedRepositoriesType, ) - from .group_0265 import ( + from .group_0272 import ( CodeScanningVariantAnalysisRepoTaskType as CodeScanningVariantAnalysisRepoTaskType, ) - from .group_0266 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType - from .group_0267 import ( + from .group_0273 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType + from .group_0274 import ( CodeScanningDefaultSetupUpdateType as CodeScanningDefaultSetupUpdateType, ) - from .group_0268 import ( + from .group_0275 import ( CodeScanningDefaultSetupUpdateResponseType as CodeScanningDefaultSetupUpdateResponseType, ) - from .group_0269 import ( + from .group_0276 import ( CodeScanningSarifsReceiptType as CodeScanningSarifsReceiptType, ) - from .group_0270 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType - from .group_0271 import ( + from .group_0277 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType + from .group_0278 import ( CodeSecurityConfigurationForRepositoryType as CodeSecurityConfigurationForRepositoryType, ) - from .group_0272 import ( + from .group_0279 import ( CodeownersErrorsPropErrorsItemsType as CodeownersErrorsPropErrorsItemsType, ) - from .group_0272 import CodeownersErrorsType as CodeownersErrorsType - from .group_0273 import ( + from .group_0279 import CodeownersErrorsType as CodeownersErrorsType + from .group_0280 import ( CodespacesPermissionsCheckForDevcontainerType as CodespacesPermissionsCheckForDevcontainerType, ) - from .group_0274 import RepositoryInvitationType as RepositoryInvitationType - from .group_0275 import ( + from .group_0281 import RepositoryInvitationType as RepositoryInvitationType + from .group_0282 import ( CollaboratorPropPermissionsType as CollaboratorPropPermissionsType, ) - from .group_0275 import CollaboratorType as CollaboratorType - from .group_0275 import ( + from .group_0282 import CollaboratorType as CollaboratorType + from .group_0282 import ( RepositoryCollaboratorPermissionType as RepositoryCollaboratorPermissionType, ) - from .group_0276 import CommitCommentType as CommitCommentType - from .group_0276 import ( + from .group_0283 import CommitCommentType as CommitCommentType + from .group_0283 import ( TimelineCommitCommentedEventType as TimelineCommitCommentedEventType, ) - from .group_0277 import BranchShortPropCommitType as BranchShortPropCommitType - from .group_0277 import BranchShortType as BranchShortType - from .group_0278 import LinkType as LinkType - from .group_0279 import AutoMergeType as AutoMergeType - from .group_0280 import ( + from .group_0284 import BranchShortPropCommitType as BranchShortPropCommitType + from .group_0284 import BranchShortType as BranchShortType + from .group_0285 import LinkType as LinkType + from .group_0286 import AutoMergeType as AutoMergeType + from .group_0287 import ( PullRequestSimplePropLabelsItemsType as PullRequestSimplePropLabelsItemsType, ) - from .group_0280 import PullRequestSimpleType as PullRequestSimpleType - from .group_0281 import ( + from .group_0287 import PullRequestSimpleType as PullRequestSimpleType + from .group_0288 import ( PullRequestSimplePropBaseType as PullRequestSimplePropBaseType, ) - from .group_0281 import ( + from .group_0288 import ( PullRequestSimplePropHeadType as PullRequestSimplePropHeadType, ) - from .group_0282 import ( + from .group_0289 import ( PullRequestSimplePropLinksType as PullRequestSimplePropLinksType, ) - from .group_0283 import CombinedCommitStatusType as CombinedCommitStatusType - from .group_0283 import SimpleCommitStatusType as SimpleCommitStatusType - from .group_0284 import StatusType as StatusType - from .group_0285 import CommunityHealthFileType as CommunityHealthFileType - from .group_0285 import ( + from .group_0290 import CombinedCommitStatusType as CombinedCommitStatusType + from .group_0290 import SimpleCommitStatusType as SimpleCommitStatusType + from .group_0291 import StatusType as StatusType + from .group_0292 import CommunityHealthFileType as CommunityHealthFileType + from .group_0292 import ( CommunityProfilePropFilesType as CommunityProfilePropFilesType, ) - from .group_0285 import CommunityProfileType as CommunityProfileType - from .group_0286 import CommitComparisonType as CommitComparisonType - from .group_0287 import ( + from .group_0292 import CommunityProfileType as CommunityProfileType + from .group_0293 import CommitComparisonType as CommitComparisonType + from .group_0294 import ( ContentTreePropEntriesItemsPropLinksType as ContentTreePropEntriesItemsPropLinksType, ) - from .group_0287 import ( + from .group_0294 import ( ContentTreePropEntriesItemsType as ContentTreePropEntriesItemsType, ) - from .group_0287 import ContentTreePropLinksType as ContentTreePropLinksType - from .group_0287 import ContentTreeType as ContentTreeType - from .group_0288 import ( + from .group_0294 import ContentTreePropLinksType as ContentTreePropLinksType + from .group_0294 import ContentTreeType as ContentTreeType + from .group_0295 import ( ContentDirectoryItemsPropLinksType as ContentDirectoryItemsPropLinksType, ) - from .group_0288 import ContentDirectoryItemsType as ContentDirectoryItemsType - from .group_0289 import ContentFilePropLinksType as ContentFilePropLinksType - from .group_0289 import ContentFileType as ContentFileType - from .group_0290 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType - from .group_0290 import ContentSymlinkType as ContentSymlinkType - from .group_0291 import ( + from .group_0295 import ContentDirectoryItemsType as ContentDirectoryItemsType + from .group_0296 import ContentFilePropLinksType as ContentFilePropLinksType + from .group_0296 import ContentFileType as ContentFileType + from .group_0297 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType + from .group_0297 import ContentSymlinkType as ContentSymlinkType + from .group_0298 import ( ContentSubmodulePropLinksType as ContentSubmodulePropLinksType, ) - from .group_0291 import ContentSubmoduleType as ContentSubmoduleType - from .group_0292 import ( + from .group_0298 import ContentSubmoduleType as ContentSubmoduleType + from .group_0299 import ( FileCommitPropCommitPropAuthorType as FileCommitPropCommitPropAuthorType, ) - from .group_0292 import ( + from .group_0299 import ( FileCommitPropCommitPropCommitterType as FileCommitPropCommitPropCommitterType, ) - from .group_0292 import ( + from .group_0299 import ( FileCommitPropCommitPropParentsItemsType as FileCommitPropCommitPropParentsItemsType, ) - from .group_0292 import ( + from .group_0299 import ( FileCommitPropCommitPropTreeType as FileCommitPropCommitPropTreeType, ) - from .group_0292 import ( + from .group_0299 import ( FileCommitPropCommitPropVerificationType as FileCommitPropCommitPropVerificationType, ) - from .group_0292 import FileCommitPropCommitType as FileCommitPropCommitType - from .group_0292 import ( + from .group_0299 import FileCommitPropCommitType as FileCommitPropCommitType + from .group_0299 import ( FileCommitPropContentPropLinksType as FileCommitPropContentPropLinksType, ) - from .group_0292 import FileCommitPropContentType as FileCommitPropContentType - from .group_0292 import FileCommitType as FileCommitType - from .group_0293 import ( + from .group_0299 import FileCommitPropContentType as FileCommitPropContentType + from .group_0299 import FileCommitType as FileCommitType + from .group_0300 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType as RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType, ) - from .group_0293 import ( + from .group_0300 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningType as RepositoryRuleViolationErrorPropMetadataPropSecretScanningType, ) - from .group_0293 import ( + from .group_0300 import ( RepositoryRuleViolationErrorPropMetadataType as RepositoryRuleViolationErrorPropMetadataType, ) - from .group_0293 import ( + from .group_0300 import ( RepositoryRuleViolationErrorType as RepositoryRuleViolationErrorType, ) - from .group_0294 import ContributorType as ContributorType - from .group_0295 import DependabotAlertType as DependabotAlertType - from .group_0296 import ( + from .group_0301 import ContributorType as ContributorType + from .group_0302 import DependabotAlertType as DependabotAlertType + from .group_0303 import ( DependabotAlertPropDependencyType as DependabotAlertPropDependencyType, ) - from .group_0297 import ( + from .group_0304 import ( DependencyGraphDiffItemsPropVulnerabilitiesItemsType as DependencyGraphDiffItemsPropVulnerabilitiesItemsType, ) - from .group_0297 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType - from .group_0298 import ( + from .group_0304 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType + from .group_0305 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfoType as DependencyGraphSpdxSbomPropSbomPropCreationInfoType, ) - from .group_0298 import ( + from .group_0305 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType, ) - from .group_0298 import ( + from .group_0305 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsType, ) - from .group_0298 import ( + from .group_0305 import ( DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType as DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType, ) - from .group_0298 import ( + from .group_0305 import ( DependencyGraphSpdxSbomPropSbomType as DependencyGraphSpdxSbomPropSbomType, ) - from .group_0298 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType - from .group_0299 import MetadataType as MetadataType - from .group_0300 import DependencyType as DependencyType - from .group_0301 import ManifestPropFileType as ManifestPropFileType - from .group_0301 import ManifestPropResolvedType as ManifestPropResolvedType - from .group_0301 import ManifestType as ManifestType - from .group_0302 import SnapshotPropDetectorType as SnapshotPropDetectorType - from .group_0302 import SnapshotPropJobType as SnapshotPropJobType - from .group_0302 import SnapshotPropManifestsType as SnapshotPropManifestsType - from .group_0302 import SnapshotType as SnapshotType - from .group_0303 import DeploymentStatusType as DeploymentStatusType - from .group_0304 import ( + from .group_0305 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType + from .group_0306 import MetadataType as MetadataType + from .group_0307 import DependencyType as DependencyType + from .group_0308 import ManifestPropFileType as ManifestPropFileType + from .group_0308 import ManifestPropResolvedType as ManifestPropResolvedType + from .group_0308 import ManifestType as ManifestType + from .group_0309 import SnapshotPropDetectorType as SnapshotPropDetectorType + from .group_0309 import SnapshotPropJobType as SnapshotPropJobType + from .group_0309 import SnapshotPropManifestsType as SnapshotPropManifestsType + from .group_0309 import SnapshotType as SnapshotType + from .group_0310 import DeploymentStatusType as DeploymentStatusType + from .group_0311 import ( DeploymentBranchPolicySettingsType as DeploymentBranchPolicySettingsType, ) - from .group_0305 import ( + from .group_0312 import ( EnvironmentPropProtectionRulesItemsAnyof0Type as EnvironmentPropProtectionRulesItemsAnyof0Type, ) - from .group_0305 import ( + from .group_0312 import ( EnvironmentPropProtectionRulesItemsAnyof2Type as EnvironmentPropProtectionRulesItemsAnyof2Type, ) - from .group_0305 import EnvironmentType as EnvironmentType - from .group_0305 import ( + from .group_0312 import EnvironmentType as EnvironmentType + from .group_0312 import ( ReposOwnerRepoEnvironmentsGetResponse200Type as ReposOwnerRepoEnvironmentsGetResponse200Type, ) - from .group_0306 import ( + from .group_0313 import ( EnvironmentPropProtectionRulesItemsAnyof1Type as EnvironmentPropProtectionRulesItemsAnyof1Type, ) - from .group_0307 import ( + from .group_0314 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType, ) - from .group_0308 import ( + from .group_0315 import ( DeploymentBranchPolicyNamePatternWithTypeType as DeploymentBranchPolicyNamePatternWithTypeType, ) - from .group_0309 import ( + from .group_0316 import ( DeploymentBranchPolicyNamePatternType as DeploymentBranchPolicyNamePatternType, ) - from .group_0310 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType - from .group_0311 import DeploymentProtectionRuleType as DeploymentProtectionRuleType - from .group_0311 import ( + from .group_0317 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType + from .group_0318 import DeploymentProtectionRuleType as DeploymentProtectionRuleType + from .group_0318 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type, ) - from .group_0312 import ShortBlobType as ShortBlobType - from .group_0313 import BlobType as BlobType - from .group_0314 import GitCommitPropAuthorType as GitCommitPropAuthorType - from .group_0314 import GitCommitPropCommitterType as GitCommitPropCommitterType - from .group_0314 import ( + from .group_0319 import ShortBlobType as ShortBlobType + from .group_0320 import BlobType as BlobType + from .group_0321 import GitCommitPropAuthorType as GitCommitPropAuthorType + from .group_0321 import GitCommitPropCommitterType as GitCommitPropCommitterType + from .group_0321 import ( GitCommitPropParentsItemsType as GitCommitPropParentsItemsType, ) - from .group_0314 import GitCommitPropTreeType as GitCommitPropTreeType - from .group_0314 import ( + from .group_0321 import GitCommitPropTreeType as GitCommitPropTreeType + from .group_0321 import ( GitCommitPropVerificationType as GitCommitPropVerificationType, ) - from .group_0314 import GitCommitType as GitCommitType - from .group_0315 import GitRefPropObjectType as GitRefPropObjectType - from .group_0315 import GitRefType as GitRefType - from .group_0316 import GitTagPropObjectType as GitTagPropObjectType - from .group_0316 import GitTagPropTaggerType as GitTagPropTaggerType - from .group_0316 import GitTagType as GitTagType - from .group_0317 import GitTreePropTreeItemsType as GitTreePropTreeItemsType - from .group_0317 import GitTreeType as GitTreeType - from .group_0318 import HookResponseType as HookResponseType - from .group_0319 import HookType as HookType - from .group_0320 import ( + from .group_0321 import GitCommitType as GitCommitType + from .group_0322 import GitRefPropObjectType as GitRefPropObjectType + from .group_0322 import GitRefType as GitRefType + from .group_0323 import GitTagPropObjectType as GitTagPropObjectType + from .group_0323 import GitTagPropTaggerType as GitTagPropTaggerType + from .group_0323 import GitTagType as GitTagType + from .group_0324 import GitTreePropTreeItemsType as GitTreePropTreeItemsType + from .group_0324 import GitTreeType as GitTreeType + from .group_0325 import HookResponseType as HookResponseType + from .group_0326 import HookType as HookType + from .group_0327 import ( ImportPropProjectChoicesItemsType as ImportPropProjectChoicesItemsType, ) - from .group_0320 import ImportType as ImportType - from .group_0321 import PorterAuthorType as PorterAuthorType - from .group_0322 import PorterLargeFileType as PorterLargeFileType - from .group_0323 import ( + from .group_0327 import ImportType as ImportType + from .group_0328 import PorterAuthorType as PorterAuthorType + from .group_0329 import PorterLargeFileType as PorterLargeFileType + from .group_0330 import ( IssueEventDismissedReviewType as IssueEventDismissedReviewType, ) - from .group_0323 import IssueEventLabelType as IssueEventLabelType - from .group_0323 import IssueEventMilestoneType as IssueEventMilestoneType - from .group_0323 import IssueEventProjectCardType as IssueEventProjectCardType - from .group_0323 import IssueEventRenameType as IssueEventRenameType - from .group_0323 import IssueEventType as IssueEventType - from .group_0324 import ( + from .group_0330 import IssueEventLabelType as IssueEventLabelType + from .group_0330 import IssueEventMilestoneType as IssueEventMilestoneType + from .group_0330 import IssueEventProjectCardType as IssueEventProjectCardType + from .group_0330 import IssueEventRenameType as IssueEventRenameType + from .group_0330 import IssueEventType as IssueEventType + from .group_0331 import ( LabeledIssueEventPropLabelType as LabeledIssueEventPropLabelType, ) - from .group_0324 import LabeledIssueEventType as LabeledIssueEventType - from .group_0325 import ( + from .group_0331 import LabeledIssueEventType as LabeledIssueEventType + from .group_0332 import ( UnlabeledIssueEventPropLabelType as UnlabeledIssueEventPropLabelType, ) - from .group_0325 import UnlabeledIssueEventType as UnlabeledIssueEventType - from .group_0326 import AssignedIssueEventType as AssignedIssueEventType - from .group_0327 import UnassignedIssueEventType as UnassignedIssueEventType - from .group_0328 import ( + from .group_0332 import UnlabeledIssueEventType as UnlabeledIssueEventType + from .group_0333 import AssignedIssueEventType as AssignedIssueEventType + from .group_0334 import UnassignedIssueEventType as UnassignedIssueEventType + from .group_0335 import ( MilestonedIssueEventPropMilestoneType as MilestonedIssueEventPropMilestoneType, ) - from .group_0328 import MilestonedIssueEventType as MilestonedIssueEventType - from .group_0329 import ( + from .group_0335 import MilestonedIssueEventType as MilestonedIssueEventType + from .group_0336 import ( DemilestonedIssueEventPropMilestoneType as DemilestonedIssueEventPropMilestoneType, ) - from .group_0329 import DemilestonedIssueEventType as DemilestonedIssueEventType - from .group_0330 import ( + from .group_0336 import DemilestonedIssueEventType as DemilestonedIssueEventType + from .group_0337 import ( RenamedIssueEventPropRenameType as RenamedIssueEventPropRenameType, ) - from .group_0330 import RenamedIssueEventType as RenamedIssueEventType - from .group_0331 import ( + from .group_0337 import RenamedIssueEventType as RenamedIssueEventType + from .group_0338 import ( ReviewRequestedIssueEventType as ReviewRequestedIssueEventType, ) - from .group_0332 import ( + from .group_0339 import ( ReviewRequestRemovedIssueEventType as ReviewRequestRemovedIssueEventType, ) - from .group_0333 import ( + from .group_0340 import ( ReviewDismissedIssueEventPropDismissedReviewType as ReviewDismissedIssueEventPropDismissedReviewType, ) - from .group_0333 import ( + from .group_0340 import ( ReviewDismissedIssueEventType as ReviewDismissedIssueEventType, ) - from .group_0334 import LockedIssueEventType as LockedIssueEventType - from .group_0335 import ( + from .group_0341 import LockedIssueEventType as LockedIssueEventType + from .group_0342 import ( AddedToProjectIssueEventPropProjectCardType as AddedToProjectIssueEventPropProjectCardType, ) - from .group_0335 import AddedToProjectIssueEventType as AddedToProjectIssueEventType - from .group_0336 import ( + from .group_0342 import AddedToProjectIssueEventType as AddedToProjectIssueEventType + from .group_0343 import ( MovedColumnInProjectIssueEventPropProjectCardType as MovedColumnInProjectIssueEventPropProjectCardType, ) - from .group_0336 import ( + from .group_0343 import ( MovedColumnInProjectIssueEventType as MovedColumnInProjectIssueEventType, ) - from .group_0337 import ( + from .group_0344 import ( RemovedFromProjectIssueEventPropProjectCardType as RemovedFromProjectIssueEventPropProjectCardType, ) - from .group_0337 import ( + from .group_0344 import ( RemovedFromProjectIssueEventType as RemovedFromProjectIssueEventType, ) - from .group_0338 import ( + from .group_0345 import ( ConvertedNoteToIssueIssueEventPropProjectCardType as ConvertedNoteToIssueIssueEventPropProjectCardType, ) - from .group_0338 import ( + from .group_0345 import ( ConvertedNoteToIssueIssueEventType as ConvertedNoteToIssueIssueEventType, ) - from .group_0339 import TimelineCommentEventType as TimelineCommentEventType - from .group_0340 import ( + from .group_0346 import TimelineCommentEventType as TimelineCommentEventType + from .group_0347 import ( TimelineCrossReferencedEventType as TimelineCrossReferencedEventType, ) - from .group_0341 import ( + from .group_0348 import ( TimelineCrossReferencedEventPropSourceType as TimelineCrossReferencedEventPropSourceType, ) - from .group_0342 import ( + from .group_0349 import ( TimelineCommittedEventPropAuthorType as TimelineCommittedEventPropAuthorType, ) - from .group_0342 import ( + from .group_0349 import ( TimelineCommittedEventPropCommitterType as TimelineCommittedEventPropCommitterType, ) - from .group_0342 import ( + from .group_0349 import ( TimelineCommittedEventPropParentsItemsType as TimelineCommittedEventPropParentsItemsType, ) - from .group_0342 import ( + from .group_0349 import ( TimelineCommittedEventPropTreeType as TimelineCommittedEventPropTreeType, ) - from .group_0342 import ( + from .group_0349 import ( TimelineCommittedEventPropVerificationType as TimelineCommittedEventPropVerificationType, ) - from .group_0342 import TimelineCommittedEventType as TimelineCommittedEventType - from .group_0343 import ( + from .group_0349 import TimelineCommittedEventType as TimelineCommittedEventType + from .group_0350 import ( TimelineReviewedEventPropLinksPropHtmlType as TimelineReviewedEventPropLinksPropHtmlType, ) - from .group_0343 import ( + from .group_0350 import ( TimelineReviewedEventPropLinksPropPullRequestType as TimelineReviewedEventPropLinksPropPullRequestType, ) - from .group_0343 import ( + from .group_0350 import ( TimelineReviewedEventPropLinksType as TimelineReviewedEventPropLinksType, ) - from .group_0343 import TimelineReviewedEventType as TimelineReviewedEventType - from .group_0344 import ( + from .group_0350 import TimelineReviewedEventType as TimelineReviewedEventType + from .group_0351 import ( PullRequestReviewCommentPropLinksPropHtmlType as PullRequestReviewCommentPropLinksPropHtmlType, ) - from .group_0344 import ( + from .group_0351 import ( PullRequestReviewCommentPropLinksPropPullRequestType as PullRequestReviewCommentPropLinksPropPullRequestType, ) - from .group_0344 import ( + from .group_0351 import ( PullRequestReviewCommentPropLinksPropSelfType as PullRequestReviewCommentPropLinksPropSelfType, ) - from .group_0344 import ( + from .group_0351 import ( PullRequestReviewCommentPropLinksType as PullRequestReviewCommentPropLinksType, ) - from .group_0344 import PullRequestReviewCommentType as PullRequestReviewCommentType - from .group_0344 import ( + from .group_0351 import PullRequestReviewCommentType as PullRequestReviewCommentType + from .group_0351 import ( TimelineLineCommentedEventType as TimelineLineCommentedEventType, ) - from .group_0345 import ( + from .group_0352 import ( TimelineAssignedIssueEventType as TimelineAssignedIssueEventType, ) - from .group_0346 import ( + from .group_0353 import ( TimelineUnassignedIssueEventType as TimelineUnassignedIssueEventType, ) - from .group_0347 import StateChangeIssueEventType as StateChangeIssueEventType - from .group_0348 import DeployKeyType as DeployKeyType - from .group_0349 import LanguageType as LanguageType - from .group_0350 import LicenseContentPropLinksType as LicenseContentPropLinksType - from .group_0350 import LicenseContentType as LicenseContentType - from .group_0351 import MergedUpstreamType as MergedUpstreamType - from .group_0352 import PagesHttpsCertificateType as PagesHttpsCertificateType - from .group_0352 import PagesSourceHashType as PagesSourceHashType - from .group_0352 import PageType as PageType - from .group_0353 import PageBuildPropErrorType as PageBuildPropErrorType - from .group_0353 import PageBuildType as PageBuildType - from .group_0354 import PageBuildStatusType as PageBuildStatusType - from .group_0355 import PageDeploymentType as PageDeploymentType - from .group_0356 import PagesDeploymentStatusType as PagesDeploymentStatusType - from .group_0357 import ( + from .group_0354 import StateChangeIssueEventType as StateChangeIssueEventType + from .group_0355 import DeployKeyType as DeployKeyType + from .group_0356 import LanguageType as LanguageType + from .group_0357 import LicenseContentPropLinksType as LicenseContentPropLinksType + from .group_0357 import LicenseContentType as LicenseContentType + from .group_0358 import MergedUpstreamType as MergedUpstreamType + from .group_0359 import PagesHttpsCertificateType as PagesHttpsCertificateType + from .group_0359 import PagesSourceHashType as PagesSourceHashType + from .group_0359 import PageType as PageType + from .group_0360 import PageBuildPropErrorType as PageBuildPropErrorType + from .group_0360 import PageBuildType as PageBuildType + from .group_0361 import PageBuildStatusType as PageBuildStatusType + from .group_0362 import PageDeploymentType as PageDeploymentType + from .group_0363 import PagesDeploymentStatusType as PagesDeploymentStatusType + from .group_0364 import ( PagesHealthCheckPropAltDomainType as PagesHealthCheckPropAltDomainType, ) - from .group_0357 import ( + from .group_0364 import ( PagesHealthCheckPropDomainType as PagesHealthCheckPropDomainType, ) - from .group_0357 import PagesHealthCheckType as PagesHealthCheckType - from .group_0358 import PullRequestType as PullRequestType - from .group_0359 import ( + from .group_0364 import PagesHealthCheckType as PagesHealthCheckType + from .group_0365 import PullRequestType as PullRequestType + from .group_0366 import ( PullRequestPropLabelsItemsType as PullRequestPropLabelsItemsType, ) - from .group_0360 import PullRequestPropBaseType as PullRequestPropBaseType - from .group_0360 import PullRequestPropHeadType as PullRequestPropHeadType - from .group_0361 import PullRequestPropLinksType as PullRequestPropLinksType - from .group_0362 import PullRequestMergeResultType as PullRequestMergeResultType - from .group_0363 import PullRequestReviewRequestType as PullRequestReviewRequestType - from .group_0364 import ( + from .group_0367 import PullRequestPropBaseType as PullRequestPropBaseType + from .group_0367 import PullRequestPropHeadType as PullRequestPropHeadType + from .group_0368 import PullRequestPropLinksType as PullRequestPropLinksType + from .group_0369 import PullRequestMergeResultType as PullRequestMergeResultType + from .group_0370 import PullRequestReviewRequestType as PullRequestReviewRequestType + from .group_0371 import ( PullRequestReviewPropLinksPropHtmlType as PullRequestReviewPropLinksPropHtmlType, ) - from .group_0364 import ( + from .group_0371 import ( PullRequestReviewPropLinksPropPullRequestType as PullRequestReviewPropLinksPropPullRequestType, ) - from .group_0364 import ( + from .group_0371 import ( PullRequestReviewPropLinksType as PullRequestReviewPropLinksType, ) - from .group_0364 import PullRequestReviewType as PullRequestReviewType - from .group_0365 import ReviewCommentType as ReviewCommentType - from .group_0366 import ReviewCommentPropLinksType as ReviewCommentPropLinksType - from .group_0367 import ReleaseAssetType as ReleaseAssetType - from .group_0368 import ReleaseType as ReleaseType - from .group_0369 import ReleaseNotesContentType as ReleaseNotesContentType - from .group_0370 import ( + from .group_0371 import PullRequestReviewType as PullRequestReviewType + from .group_0372 import ReviewCommentType as ReviewCommentType + from .group_0373 import ReviewCommentPropLinksType as ReviewCommentPropLinksType + from .group_0374 import ReleaseAssetType as ReleaseAssetType + from .group_0375 import ReleaseType as ReleaseType + from .group_0376 import ReleaseNotesContentType as ReleaseNotesContentType + from .group_0377 import ( RepositoryRuleRulesetInfoType as RepositoryRuleRulesetInfoType, ) - from .group_0371 import ( + from .group_0378 import ( RepositoryRuleDetailedOneof0Type as RepositoryRuleDetailedOneof0Type, ) - from .group_0372 import ( + from .group_0379 import ( RepositoryRuleDetailedOneof1Type as RepositoryRuleDetailedOneof1Type, ) - from .group_0373 import ( + from .group_0380 import ( RepositoryRuleDetailedOneof2Type as RepositoryRuleDetailedOneof2Type, ) - from .group_0374 import ( + from .group_0381 import ( RepositoryRuleDetailedOneof3Type as RepositoryRuleDetailedOneof3Type, ) - from .group_0375 import ( + from .group_0382 import ( RepositoryRuleDetailedOneof4Type as RepositoryRuleDetailedOneof4Type, ) - from .group_0376 import ( + from .group_0383 import ( RepositoryRuleDetailedOneof5Type as RepositoryRuleDetailedOneof5Type, ) - from .group_0377 import ( + from .group_0384 import ( RepositoryRuleDetailedOneof6Type as RepositoryRuleDetailedOneof6Type, ) - from .group_0378 import ( + from .group_0385 import ( RepositoryRuleDetailedOneof7Type as RepositoryRuleDetailedOneof7Type, ) - from .group_0379 import ( + from .group_0386 import ( RepositoryRuleDetailedOneof8Type as RepositoryRuleDetailedOneof8Type, ) - from .group_0380 import ( + from .group_0387 import ( RepositoryRuleDetailedOneof9Type as RepositoryRuleDetailedOneof9Type, ) - from .group_0381 import ( + from .group_0388 import ( RepositoryRuleDetailedOneof10Type as RepositoryRuleDetailedOneof10Type, ) - from .group_0382 import ( + from .group_0389 import ( RepositoryRuleDetailedOneof11Type as RepositoryRuleDetailedOneof11Type, ) - from .group_0383 import ( + from .group_0390 import ( RepositoryRuleDetailedOneof12Type as RepositoryRuleDetailedOneof12Type, ) - from .group_0384 import ( + from .group_0391 import ( RepositoryRuleDetailedOneof13Type as RepositoryRuleDetailedOneof13Type, ) - from .group_0385 import ( + from .group_0392 import ( RepositoryRuleDetailedOneof14Type as RepositoryRuleDetailedOneof14Type, ) - from .group_0386 import ( + from .group_0393 import ( RepositoryRuleDetailedOneof15Type as RepositoryRuleDetailedOneof15Type, ) - from .group_0387 import ( + from .group_0394 import ( RepositoryRuleDetailedOneof16Type as RepositoryRuleDetailedOneof16Type, ) - from .group_0388 import SecretScanningAlertType as SecretScanningAlertType - from .group_0389 import ( + from .group_0395 import SecretScanningAlertType as SecretScanningAlertType + from .group_0396 import ( SecretScanningPushProtectionBypassType as SecretScanningPushProtectionBypassType, ) - from .group_0390 import ( + from .group_0397 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType, ) - from .group_0390 import ( + from .group_0397 import ( SecretScanningScanHistoryType as SecretScanningScanHistoryType, ) - from .group_0390 import SecretScanningScanType as SecretScanningScanType - from .group_0391 import ( + from .group_0397 import SecretScanningScanType as SecretScanningScanType + from .group_0398 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type, ) - from .group_0392 import ( + from .group_0399 import ( RepositoryAdvisoryCreatePropCreditsItemsType as RepositoryAdvisoryCreatePropCreditsItemsType, ) - from .group_0392 import ( + from .group_0399 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0392 import ( + from .group_0399 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsType, ) - from .group_0392 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType - from .group_0393 import ( + from .group_0399 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType + from .group_0400 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0393 import ( + from .group_0400 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType, ) - from .group_0393 import ( + from .group_0400 import ( PrivateVulnerabilityReportCreateType as PrivateVulnerabilityReportCreateType, ) - from .group_0394 import ( + from .group_0401 import ( RepositoryAdvisoryUpdatePropCreditsItemsType as RepositoryAdvisoryUpdatePropCreditsItemsType, ) - from .group_0394 import ( + from .group_0401 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0394 import ( + from .group_0401 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType, ) - from .group_0394 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType - from .group_0395 import StargazerType as StargazerType - from .group_0396 import CommitActivityType as CommitActivityType - from .group_0397 import ( + from .group_0401 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType + from .group_0402 import StargazerType as StargazerType + from .group_0403 import CommitActivityType as CommitActivityType + from .group_0404 import ( ContributorActivityPropWeeksItemsType as ContributorActivityPropWeeksItemsType, ) - from .group_0397 import ContributorActivityType as ContributorActivityType - from .group_0398 import ParticipationStatsType as ParticipationStatsType - from .group_0399 import RepositorySubscriptionType as RepositorySubscriptionType - from .group_0400 import TagPropCommitType as TagPropCommitType - from .group_0400 import TagType as TagType - from .group_0401 import TagProtectionType as TagProtectionType - from .group_0402 import TopicType as TopicType - from .group_0403 import TrafficType as TrafficType - from .group_0404 import CloneTrafficType as CloneTrafficType - from .group_0405 import ContentTrafficType as ContentTrafficType - from .group_0406 import ReferrerTrafficType as ReferrerTrafficType - from .group_0407 import ViewTrafficType as ViewTrafficType - from .group_0408 import ( + from .group_0404 import ContributorActivityType as ContributorActivityType + from .group_0405 import ParticipationStatsType as ParticipationStatsType + from .group_0406 import RepositorySubscriptionType as RepositorySubscriptionType + from .group_0407 import TagPropCommitType as TagPropCommitType + from .group_0407 import TagType as TagType + from .group_0408 import TagProtectionType as TagProtectionType + from .group_0409 import TopicType as TopicType + from .group_0410 import TrafficType as TrafficType + from .group_0411 import CloneTrafficType as CloneTrafficType + from .group_0412 import ContentTrafficType as ContentTrafficType + from .group_0413 import ReferrerTrafficType as ReferrerTrafficType + from .group_0414 import ViewTrafficType as ViewTrafficType + from .group_0415 import ( GroupResponsePropMembersItemsType as GroupResponsePropMembersItemsType, ) - from .group_0408 import GroupResponseType as GroupResponseType - from .group_0409 import MetaType as MetaType - from .group_0410 import ScimEnterpriseGroupListType as ScimEnterpriseGroupListType - from .group_0410 import ( + from .group_0415 import GroupResponseType as GroupResponseType + from .group_0416 import MetaType as MetaType + from .group_0417 import ScimEnterpriseGroupListType as ScimEnterpriseGroupListType + from .group_0417 import ( ScimEnterpriseGroupResponseMergedMembersType as ScimEnterpriseGroupResponseMergedMembersType, ) - from .group_0410 import ( + from .group_0417 import ( ScimEnterpriseGroupResponseType as ScimEnterpriseGroupResponseType, ) - from .group_0411 import ( + from .group_0418 import ( ScimEnterpriseGroupResponseAllof1PropMembersItemsType as ScimEnterpriseGroupResponseAllof1PropMembersItemsType, ) - from .group_0411 import ( + from .group_0418 import ( ScimEnterpriseGroupResponseAllof1Type as ScimEnterpriseGroupResponseAllof1Type, ) - from .group_0412 import GroupPropMembersItemsType as GroupPropMembersItemsType - from .group_0412 import GroupType as GroupType - from .group_0413 import ( + from .group_0419 import GroupPropMembersItemsType as GroupPropMembersItemsType + from .group_0419 import GroupType as GroupType + from .group_0420 import ( PatchSchemaPropOperationsItemsType as PatchSchemaPropOperationsItemsType, ) - from .group_0413 import PatchSchemaType as PatchSchemaType - from .group_0414 import UserEmailsResponseItemsType as UserEmailsResponseItemsType - from .group_0414 import UserNameResponseType as UserNameResponseType - from .group_0415 import UserRoleItemsType as UserRoleItemsType - from .group_0416 import UserResponseType as UserResponseType - from .group_0417 import ScimEnterpriseUserListType as ScimEnterpriseUserListType - from .group_0417 import ( + from .group_0420 import PatchSchemaType as PatchSchemaType + from .group_0421 import UserEmailsResponseItemsType as UserEmailsResponseItemsType + from .group_0421 import UserNameResponseType as UserNameResponseType + from .group_0422 import UserRoleItemsType as UserRoleItemsType + from .group_0423 import UserResponseType as UserResponseType + from .group_0424 import ScimEnterpriseUserListType as ScimEnterpriseUserListType + from .group_0424 import ( ScimEnterpriseUserResponseType as ScimEnterpriseUserResponseType, ) - from .group_0418 import ( + from .group_0425 import ( ScimEnterpriseUserResponseAllof1Type as ScimEnterpriseUserResponseAllof1Type, ) - from .group_0419 import ( + from .group_0426 import ( ScimEnterpriseUserResponseAllof1PropGroupsItemsType as ScimEnterpriseUserResponseAllof1PropGroupsItemsType, ) - from .group_0420 import UserEmailsItemsType as UserEmailsItemsType - from .group_0420 import UserNameType as UserNameType - from .group_0420 import UserType as UserType - from .group_0421 import ScimUserListType as ScimUserListType - from .group_0421 import ScimUserPropEmailsItemsType as ScimUserPropEmailsItemsType - from .group_0421 import ScimUserPropGroupsItemsType as ScimUserPropGroupsItemsType - from .group_0421 import ScimUserPropMetaType as ScimUserPropMetaType - from .group_0421 import ScimUserPropNameType as ScimUserPropNameType - from .group_0421 import ( + from .group_0427 import UserEmailsItemsType as UserEmailsItemsType + from .group_0427 import UserNameType as UserNameType + from .group_0427 import UserType as UserType + from .group_0428 import ScimUserListType as ScimUserListType + from .group_0428 import ScimUserPropEmailsItemsType as ScimUserPropEmailsItemsType + from .group_0428 import ScimUserPropGroupsItemsType as ScimUserPropGroupsItemsType + from .group_0428 import ScimUserPropMetaType as ScimUserPropMetaType + from .group_0428 import ScimUserPropNameType as ScimUserPropNameType + from .group_0428 import ( ScimUserPropOperationsItemsPropValueOneof1Type as ScimUserPropOperationsItemsPropValueOneof1Type, ) - from .group_0421 import ( + from .group_0428 import ( ScimUserPropOperationsItemsType as ScimUserPropOperationsItemsType, ) - from .group_0421 import ScimUserPropRolesItemsType as ScimUserPropRolesItemsType - from .group_0421 import ScimUserType as ScimUserType - from .group_0422 import ( + from .group_0428 import ScimUserPropRolesItemsType as ScimUserPropRolesItemsType + from .group_0428 import ScimUserType as ScimUserType + from .group_0429 import ( SearchResultTextMatchesItemsPropMatchesItemsType as SearchResultTextMatchesItemsPropMatchesItemsType, ) - from .group_0422 import ( + from .group_0429 import ( SearchResultTextMatchesItemsType as SearchResultTextMatchesItemsType, ) - from .group_0423 import CodeSearchResultItemType as CodeSearchResultItemType - from .group_0423 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type - from .group_0424 import ( + from .group_0430 import CodeSearchResultItemType as CodeSearchResultItemType + from .group_0430 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type + from .group_0431 import ( CommitSearchResultItemPropParentsItemsType as CommitSearchResultItemPropParentsItemsType, ) - from .group_0424 import CommitSearchResultItemType as CommitSearchResultItemType - from .group_0424 import ( + from .group_0431 import CommitSearchResultItemType as CommitSearchResultItemType + from .group_0431 import ( SearchCommitsGetResponse200Type as SearchCommitsGetResponse200Type, ) - from .group_0425 import ( + from .group_0432 import ( CommitSearchResultItemPropCommitPropAuthorType as CommitSearchResultItemPropCommitPropAuthorType, ) - from .group_0425 import ( + from .group_0432 import ( CommitSearchResultItemPropCommitPropTreeType as CommitSearchResultItemPropCommitPropTreeType, ) - from .group_0425 import ( + from .group_0432 import ( CommitSearchResultItemPropCommitType as CommitSearchResultItemPropCommitType, ) - from .group_0426 import ( + from .group_0433 import ( IssueSearchResultItemPropLabelsItemsType as IssueSearchResultItemPropLabelsItemsType, ) - from .group_0426 import ( + from .group_0433 import ( IssueSearchResultItemPropPullRequestType as IssueSearchResultItemPropPullRequestType, ) - from .group_0426 import ( + from .group_0433 import ( IssueSearchResultItemPropSubIssuesSummaryType as IssueSearchResultItemPropSubIssuesSummaryType, ) - from .group_0426 import IssueSearchResultItemType as IssueSearchResultItemType - from .group_0426 import ( + from .group_0433 import IssueSearchResultItemType as IssueSearchResultItemType + from .group_0433 import ( SearchIssuesGetResponse200Type as SearchIssuesGetResponse200Type, ) - from .group_0427 import LabelSearchResultItemType as LabelSearchResultItemType - from .group_0427 import ( + from .group_0434 import LabelSearchResultItemType as LabelSearchResultItemType + from .group_0434 import ( SearchLabelsGetResponse200Type as SearchLabelsGetResponse200Type, ) - from .group_0428 import ( + from .group_0435 import ( RepoSearchResultItemPropPermissionsType as RepoSearchResultItemPropPermissionsType, ) - from .group_0428 import RepoSearchResultItemType as RepoSearchResultItemType - from .group_0428 import ( + from .group_0435 import RepoSearchResultItemType as RepoSearchResultItemType + from .group_0435 import ( SearchRepositoriesGetResponse200Type as SearchRepositoriesGetResponse200Type, ) - from .group_0429 import ( + from .group_0436 import ( SearchTopicsGetResponse200Type as SearchTopicsGetResponse200Type, ) - from .group_0429 import ( + from .group_0436 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelationType as TopicSearchResultItemPropAliasesItemsPropTopicRelationType, ) - from .group_0429 import ( + from .group_0436 import ( TopicSearchResultItemPropAliasesItemsType as TopicSearchResultItemPropAliasesItemsType, ) - from .group_0429 import ( + from .group_0436 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelationType as TopicSearchResultItemPropRelatedItemsPropTopicRelationType, ) - from .group_0429 import ( + from .group_0436 import ( TopicSearchResultItemPropRelatedItemsType as TopicSearchResultItemPropRelatedItemsType, ) - from .group_0429 import TopicSearchResultItemType as TopicSearchResultItemType - from .group_0430 import ( + from .group_0436 import TopicSearchResultItemType as TopicSearchResultItemType + from .group_0437 import ( SearchUsersGetResponse200Type as SearchUsersGetResponse200Type, ) - from .group_0430 import UserSearchResultItemType as UserSearchResultItemType - from .group_0431 import PrivateUserPropPlanType as PrivateUserPropPlanType - from .group_0431 import PrivateUserType as PrivateUserType - from .group_0432 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType - from .group_0433 import CodespaceExportDetailsType as CodespaceExportDetailsType - from .group_0434 import ( + from .group_0437 import UserSearchResultItemType as UserSearchResultItemType + from .group_0438 import PrivateUserPropPlanType as PrivateUserPropPlanType + from .group_0438 import PrivateUserType as PrivateUserType + from .group_0439 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType + from .group_0440 import CodespaceExportDetailsType as CodespaceExportDetailsType + from .group_0441 import ( CodespaceWithFullRepositoryPropGitStatusType as CodespaceWithFullRepositoryPropGitStatusType, ) - from .group_0434 import ( + from .group_0441 import ( CodespaceWithFullRepositoryPropRuntimeConstraintsType as CodespaceWithFullRepositoryPropRuntimeConstraintsType, ) - from .group_0434 import ( + from .group_0441 import ( CodespaceWithFullRepositoryType as CodespaceWithFullRepositoryType, ) - from .group_0435 import EmailType as EmailType - from .group_0436 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType - from .group_0436 import ( + from .group_0442 import EmailType as EmailType + from .group_0443 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType + from .group_0443 import ( GpgKeyPropSubkeysItemsPropEmailsItemsType as GpgKeyPropSubkeysItemsPropEmailsItemsType, ) - from .group_0436 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType - from .group_0436 import GpgKeyType as GpgKeyType - from .group_0437 import KeyType as KeyType - from .group_0438 import MarketplaceAccountType as MarketplaceAccountType - from .group_0438 import UserMarketplacePurchaseType as UserMarketplacePurchaseType - from .group_0439 import SocialAccountType as SocialAccountType - from .group_0440 import SshSigningKeyType as SshSigningKeyType - from .group_0441 import StarredRepositoryType as StarredRepositoryType - from .group_0442 import ( + from .group_0443 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType + from .group_0443 import GpgKeyType as GpgKeyType + from .group_0444 import KeyType as KeyType + from .group_0445 import MarketplaceAccountType as MarketplaceAccountType + from .group_0445 import UserMarketplacePurchaseType as UserMarketplacePurchaseType + from .group_0446 import SocialAccountType as SocialAccountType + from .group_0447 import SshSigningKeyType as SshSigningKeyType + from .group_0448 import StarredRepositoryType as StarredRepositoryType + from .group_0449 import ( HovercardPropContextsItemsType as HovercardPropContextsItemsType, ) - from .group_0442 import HovercardType as HovercardType - from .group_0443 import KeySimpleType as KeySimpleType - from .group_0444 import EnterpriseWebhooksType as EnterpriseWebhooksType - from .group_0445 import SimpleInstallationType as SimpleInstallationType - from .group_0446 import ( + from .group_0449 import HovercardType as HovercardType + from .group_0450 import KeySimpleType as KeySimpleType + from .group_0451 import EnterpriseWebhooksType as EnterpriseWebhooksType + from .group_0452 import SimpleInstallationType as SimpleInstallationType + from .group_0453 import ( OrganizationSimpleWebhooksType as OrganizationSimpleWebhooksType, ) - from .group_0447 import ( + from .group_0454 import ( RepositoryWebhooksPropCustomPropertiesType as RepositoryWebhooksPropCustomPropertiesType, ) - from .group_0447 import ( + from .group_0454 import ( RepositoryWebhooksPropPermissionsType as RepositoryWebhooksPropPermissionsType, ) - from .group_0447 import ( + from .group_0454 import ( RepositoryWebhooksPropTemplateRepositoryPropOwnerType as RepositoryWebhooksPropTemplateRepositoryPropOwnerType, ) - from .group_0447 import ( + from .group_0454 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissionsType as RepositoryWebhooksPropTemplateRepositoryPropPermissionsType, ) - from .group_0447 import ( + from .group_0454 import ( RepositoryWebhooksPropTemplateRepositoryType as RepositoryWebhooksPropTemplateRepositoryType, ) - from .group_0447 import RepositoryWebhooksType as RepositoryWebhooksType - from .group_0448 import WebhooksRuleType as WebhooksRuleType - from .group_0449 import ExemptionResponseType as ExemptionResponseType - from .group_0450 import ( + from .group_0454 import RepositoryWebhooksType as RepositoryWebhooksType + from .group_0455 import WebhooksRuleType as WebhooksRuleType + from .group_0456 import ExemptionResponseType as ExemptionResponseType + from .group_0457 import ( ExemptionRequestPushRulesetBypassPropDataItemsType as ExemptionRequestPushRulesetBypassPropDataItemsType, ) - from .group_0450 import ( + from .group_0457 import ( ExemptionRequestPushRulesetBypassType as ExemptionRequestPushRulesetBypassType, ) - from .group_0450 import ( + from .group_0457 import ( ExemptionRequestSecretScanningMetadataType as ExemptionRequestSecretScanningMetadataType, ) - from .group_0450 import ( + from .group_0457 import ( ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType as ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType, ) - from .group_0450 import ( + from .group_0457 import ( ExemptionRequestSecretScanningPropDataItemsType as ExemptionRequestSecretScanningPropDataItemsType, ) - from .group_0450 import ( + from .group_0457 import ( ExemptionRequestSecretScanningType as ExemptionRequestSecretScanningType, ) - from .group_0450 import ExemptionRequestType as ExemptionRequestType - from .group_0451 import SimpleCheckSuiteType as SimpleCheckSuiteType - from .group_0452 import ( + from .group_0457 import ExemptionRequestType as ExemptionRequestType + from .group_0458 import SimpleCheckSuiteType as SimpleCheckSuiteType + from .group_0459 import ( CheckRunWithSimpleCheckSuitePropOutputType as CheckRunWithSimpleCheckSuitePropOutputType, ) - from .group_0452 import ( + from .group_0459 import ( CheckRunWithSimpleCheckSuiteType as CheckRunWithSimpleCheckSuiteType, ) - from .group_0453 import WebhooksDeployKeyType as WebhooksDeployKeyType - from .group_0454 import WebhooksWorkflowType as WebhooksWorkflowType - from .group_0455 import WebhooksApproverType as WebhooksApproverType - from .group_0455 import ( + from .group_0460 import WebhooksDeployKeyType as WebhooksDeployKeyType + from .group_0461 import WebhooksWorkflowType as WebhooksWorkflowType + from .group_0462 import WebhooksApproverType as WebhooksApproverType + from .group_0462 import ( WebhooksReviewersItemsPropReviewerType as WebhooksReviewersItemsPropReviewerType, ) - from .group_0455 import WebhooksReviewersItemsType as WebhooksReviewersItemsType - from .group_0456 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType - from .group_0457 import WebhooksUserType as WebhooksUserType - from .group_0458 import ( + from .group_0462 import WebhooksReviewersItemsType as WebhooksReviewersItemsType + from .group_0463 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType + from .group_0464 import WebhooksUserType as WebhooksUserType + from .group_0465 import ( WebhooksAnswerPropReactionsType as WebhooksAnswerPropReactionsType, ) - from .group_0458 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType - from .group_0458 import WebhooksAnswerType as WebhooksAnswerType - from .group_0459 import ( + from .group_0465 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType + from .group_0465 import WebhooksAnswerType as WebhooksAnswerType + from .group_0466 import ( DiscussionPropAnswerChosenByType as DiscussionPropAnswerChosenByType, ) - from .group_0459 import DiscussionPropCategoryType as DiscussionPropCategoryType - from .group_0459 import DiscussionPropReactionsType as DiscussionPropReactionsType - from .group_0459 import DiscussionPropUserType as DiscussionPropUserType - from .group_0459 import DiscussionType as DiscussionType - from .group_0459 import LabelType as LabelType - from .group_0460 import ( + from .group_0466 import DiscussionPropCategoryType as DiscussionPropCategoryType + from .group_0466 import DiscussionPropReactionsType as DiscussionPropReactionsType + from .group_0466 import DiscussionPropUserType as DiscussionPropUserType + from .group_0466 import DiscussionType as DiscussionType + from .group_0466 import LabelType as LabelType + from .group_0467 import ( WebhooksCommentPropReactionsType as WebhooksCommentPropReactionsType, ) - from .group_0460 import WebhooksCommentPropUserType as WebhooksCommentPropUserType - from .group_0460 import WebhooksCommentType as WebhooksCommentType - from .group_0461 import WebhooksLabelType as WebhooksLabelType - from .group_0462 import ( + from .group_0467 import WebhooksCommentPropUserType as WebhooksCommentPropUserType + from .group_0467 import WebhooksCommentType as WebhooksCommentType + from .group_0468 import WebhooksLabelType as WebhooksLabelType + from .group_0469 import ( WebhooksRepositoriesItemsType as WebhooksRepositoriesItemsType, ) - from .group_0463 import ( + from .group_0470 import ( WebhooksRepositoriesAddedItemsType as WebhooksRepositoriesAddedItemsType, ) - from .group_0464 import ( + from .group_0471 import ( WebhooksIssueCommentPropReactionsType as WebhooksIssueCommentPropReactionsType, ) - from .group_0464 import ( + from .group_0471 import ( WebhooksIssueCommentPropUserType as WebhooksIssueCommentPropUserType, ) - from .group_0464 import WebhooksIssueCommentType as WebhooksIssueCommentType - from .group_0465 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType - from .group_0465 import WebhooksChangesType as WebhooksChangesType - from .group_0466 import ( + from .group_0471 import WebhooksIssueCommentType as WebhooksIssueCommentType + from .group_0472 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType + from .group_0472 import WebhooksChangesType as WebhooksChangesType + from .group_0473 import ( WebhooksIssuePropAssigneesItemsType as WebhooksIssuePropAssigneesItemsType, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropAssigneeType as WebhooksIssuePropAssigneeType, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropLabelsItemsType as WebhooksIssuePropLabelsItemsType, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropMilestonePropCreatorType as WebhooksIssuePropMilestonePropCreatorType, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropMilestoneType as WebhooksIssuePropMilestoneType, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropPerformedViaGithubAppPropOwnerType as WebhooksIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissionsType as WebhooksIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropPerformedViaGithubAppType as WebhooksIssuePropPerformedViaGithubAppType, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropPullRequestType as WebhooksIssuePropPullRequestType, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropReactionsType as WebhooksIssuePropReactionsType, ) - from .group_0466 import ( + from .group_0473 import ( WebhooksIssuePropSubIssuesSummaryType as WebhooksIssuePropSubIssuesSummaryType, ) - from .group_0466 import WebhooksIssuePropUserType as WebhooksIssuePropUserType - from .group_0466 import WebhooksIssueType as WebhooksIssueType - from .group_0467 import ( + from .group_0473 import WebhooksIssuePropUserType as WebhooksIssuePropUserType + from .group_0473 import WebhooksIssueType as WebhooksIssueType + from .group_0474 import ( WebhooksMilestonePropCreatorType as WebhooksMilestonePropCreatorType, ) - from .group_0467 import WebhooksMilestoneType as WebhooksMilestoneType - from .group_0468 import ( + from .group_0474 import WebhooksMilestoneType as WebhooksMilestoneType + from .group_0475 import ( WebhooksIssue2PropAssigneesItemsType as WebhooksIssue2PropAssigneesItemsType, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropAssigneeType as WebhooksIssue2PropAssigneeType, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropLabelsItemsType as WebhooksIssue2PropLabelsItemsType, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropMilestonePropCreatorType as WebhooksIssue2PropMilestonePropCreatorType, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropMilestoneType as WebhooksIssue2PropMilestoneType, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwnerType as WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType as WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropPerformedViaGithubAppType as WebhooksIssue2PropPerformedViaGithubAppType, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropPullRequestType as WebhooksIssue2PropPullRequestType, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropReactionsType as WebhooksIssue2PropReactionsType, ) - from .group_0468 import ( + from .group_0475 import ( WebhooksIssue2PropSubIssuesSummaryType as WebhooksIssue2PropSubIssuesSummaryType, ) - from .group_0468 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType - from .group_0468 import WebhooksIssue2Type as WebhooksIssue2Type - from .group_0469 import WebhooksUserMannequinType as WebhooksUserMannequinType - from .group_0470 import ( + from .group_0475 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType + from .group_0475 import WebhooksIssue2Type as WebhooksIssue2Type + from .group_0476 import WebhooksUserMannequinType as WebhooksUserMannequinType + from .group_0477 import ( WebhooksMarketplacePurchasePropAccountType as WebhooksMarketplacePurchasePropAccountType, ) - from .group_0470 import ( + from .group_0477 import ( WebhooksMarketplacePurchasePropPlanType as WebhooksMarketplacePurchasePropPlanType, ) - from .group_0470 import ( + from .group_0477 import ( WebhooksMarketplacePurchaseType as WebhooksMarketplacePurchaseType, ) - from .group_0471 import ( + from .group_0478 import ( WebhooksPreviousMarketplacePurchasePropAccountType as WebhooksPreviousMarketplacePurchasePropAccountType, ) - from .group_0471 import ( + from .group_0478 import ( WebhooksPreviousMarketplacePurchasePropPlanType as WebhooksPreviousMarketplacePurchasePropPlanType, ) - from .group_0471 import ( + from .group_0478 import ( WebhooksPreviousMarketplacePurchaseType as WebhooksPreviousMarketplacePurchaseType, ) - from .group_0472 import WebhooksTeamPropParentType as WebhooksTeamPropParentType - from .group_0472 import WebhooksTeamType as WebhooksTeamType - from .group_0473 import MergeGroupType as MergeGroupType - from .group_0474 import ( + from .group_0479 import WebhooksTeamPropParentType as WebhooksTeamPropParentType + from .group_0479 import WebhooksTeamType as WebhooksTeamType + from .group_0480 import MergeGroupType as MergeGroupType + from .group_0481 import ( WebhooksMilestone3PropCreatorType as WebhooksMilestone3PropCreatorType, ) - from .group_0474 import WebhooksMilestone3Type as WebhooksMilestone3Type - from .group_0475 import ( + from .group_0481 import WebhooksMilestone3Type as WebhooksMilestone3Type + from .group_0482 import ( WebhooksMembershipPropUserType as WebhooksMembershipPropUserType, ) - from .group_0475 import WebhooksMembershipType as WebhooksMembershipType - from .group_0476 import ( + from .group_0482 import WebhooksMembershipType as WebhooksMembershipType + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOtherType as PersonalAccessTokenRequestPropPermissionsAddedPropOtherType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsAddedType as PersonalAccessTokenRequestPropPermissionsAddedType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType as PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsResultPropOtherType as PersonalAccessTokenRequestPropPermissionsResultPropOtherType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType as PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsResultType as PersonalAccessTokenRequestPropPermissionsResultType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropPermissionsUpgradedType as PersonalAccessTokenRequestPropPermissionsUpgradedType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestPropRepositoriesItemsType as PersonalAccessTokenRequestPropRepositoriesItemsType, ) - from .group_0476 import ( + from .group_0483 import ( PersonalAccessTokenRequestType as PersonalAccessTokenRequestType, ) - from .group_0477 import ( + from .group_0484 import ( WebhooksProjectCardPropCreatorType as WebhooksProjectCardPropCreatorType, ) - from .group_0477 import WebhooksProjectCardType as WebhooksProjectCardType - from .group_0478 import ( + from .group_0484 import WebhooksProjectCardType as WebhooksProjectCardType + from .group_0485 import ( WebhooksProjectPropCreatorType as WebhooksProjectPropCreatorType, ) - from .group_0478 import WebhooksProjectType as WebhooksProjectType - from .group_0479 import WebhooksProjectColumnType as WebhooksProjectColumnType - from .group_0480 import ProjectsV2Type as ProjectsV2Type - from .group_0481 import ( + from .group_0485 import WebhooksProjectType as WebhooksProjectType + from .group_0486 import WebhooksProjectColumnType as WebhooksProjectColumnType + from .group_0487 import ProjectsV2Type as ProjectsV2Type + from .group_0488 import ( WebhooksProjectChangesPropArchivedAtType as WebhooksProjectChangesPropArchivedAtType, ) - from .group_0481 import WebhooksProjectChangesType as WebhooksProjectChangesType - from .group_0482 import ProjectsV2ItemType as ProjectsV2ItemType - from .group_0483 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType - from .group_0484 import PullRequestWebhookType as PullRequestWebhookType - from .group_0485 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type - from .group_0486 import ( + from .group_0488 import WebhooksProjectChangesType as WebhooksProjectChangesType + from .group_0489 import ProjectsV2ItemType as ProjectsV2ItemType + from .group_0490 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType + from .group_0491 import PullRequestWebhookType as PullRequestWebhookType + from .group_0492 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type + from .group_0493 import ( WebhooksPullRequest5PropAssigneesItemsType as WebhooksPullRequest5PropAssigneesItemsType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropAssigneeType as WebhooksPullRequest5PropAssigneeType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropAutoMergePropEnabledByType as WebhooksPullRequest5PropAutoMergePropEnabledByType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropAutoMergeType as WebhooksPullRequest5PropAutoMergeType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropBasePropRepoPropLicenseType as WebhooksPullRequest5PropBasePropRepoPropLicenseType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropBasePropRepoPropOwnerType as WebhooksPullRequest5PropBasePropRepoPropOwnerType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropBasePropRepoPropPermissionsType as WebhooksPullRequest5PropBasePropRepoPropPermissionsType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropBasePropRepoType as WebhooksPullRequest5PropBasePropRepoType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropBasePropUserType as WebhooksPullRequest5PropBasePropUserType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropBaseType as WebhooksPullRequest5PropBaseType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropHeadPropRepoPropLicenseType as WebhooksPullRequest5PropHeadPropRepoPropLicenseType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropHeadPropRepoPropOwnerType as WebhooksPullRequest5PropHeadPropRepoPropOwnerType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissionsType as WebhooksPullRequest5PropHeadPropRepoPropPermissionsType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropHeadPropRepoType as WebhooksPullRequest5PropHeadPropRepoType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropHeadPropUserType as WebhooksPullRequest5PropHeadPropUserType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropHeadType as WebhooksPullRequest5PropHeadType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLabelsItemsType as WebhooksPullRequest5PropLabelsItemsType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropCommentsType as WebhooksPullRequest5PropLinksPropCommentsType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropCommitsType as WebhooksPullRequest5PropLinksPropCommitsType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropHtmlType as WebhooksPullRequest5PropLinksPropHtmlType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropIssueType as WebhooksPullRequest5PropLinksPropIssueType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropReviewCommentsType as WebhooksPullRequest5PropLinksPropReviewCommentsType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropReviewCommentType as WebhooksPullRequest5PropLinksPropReviewCommentType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropSelfType as WebhooksPullRequest5PropLinksPropSelfType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksPropStatusesType as WebhooksPullRequest5PropLinksPropStatusesType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropLinksType as WebhooksPullRequest5PropLinksType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropMergedByType as WebhooksPullRequest5PropMergedByType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropMilestonePropCreatorType as WebhooksPullRequest5PropMilestonePropCreatorType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropMilestoneType as WebhooksPullRequest5PropMilestoneType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParentType as WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropRequestedTeamsItemsType as WebhooksPullRequest5PropRequestedTeamsItemsType, ) - from .group_0486 import ( + from .group_0493 import ( WebhooksPullRequest5PropUserType as WebhooksPullRequest5PropUserType, ) - from .group_0486 import WebhooksPullRequest5Type as WebhooksPullRequest5Type - from .group_0487 import ( + from .group_0493 import WebhooksPullRequest5Type as WebhooksPullRequest5Type + from .group_0494 import ( WebhooksReviewCommentPropLinksPropHtmlType as WebhooksReviewCommentPropLinksPropHtmlType, ) - from .group_0487 import ( + from .group_0494 import ( WebhooksReviewCommentPropLinksPropPullRequestType as WebhooksReviewCommentPropLinksPropPullRequestType, ) - from .group_0487 import ( + from .group_0494 import ( WebhooksReviewCommentPropLinksPropSelfType as WebhooksReviewCommentPropLinksPropSelfType, ) - from .group_0487 import ( + from .group_0494 import ( WebhooksReviewCommentPropLinksType as WebhooksReviewCommentPropLinksType, ) - from .group_0487 import ( + from .group_0494 import ( WebhooksReviewCommentPropReactionsType as WebhooksReviewCommentPropReactionsType, ) - from .group_0487 import ( + from .group_0494 import ( WebhooksReviewCommentPropUserType as WebhooksReviewCommentPropUserType, ) - from .group_0487 import WebhooksReviewCommentType as WebhooksReviewCommentType - from .group_0488 import ( + from .group_0494 import WebhooksReviewCommentType as WebhooksReviewCommentType + from .group_0495 import ( WebhooksReviewPropLinksPropHtmlType as WebhooksReviewPropLinksPropHtmlType, ) - from .group_0488 import ( + from .group_0495 import ( WebhooksReviewPropLinksPropPullRequestType as WebhooksReviewPropLinksPropPullRequestType, ) - from .group_0488 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType - from .group_0488 import WebhooksReviewPropUserType as WebhooksReviewPropUserType - from .group_0488 import WebhooksReviewType as WebhooksReviewType - from .group_0489 import ( + from .group_0495 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType + from .group_0495 import WebhooksReviewPropUserType as WebhooksReviewPropUserType + from .group_0495 import WebhooksReviewType as WebhooksReviewType + from .group_0496 import ( WebhooksReleasePropAssetsItemsPropUploaderType as WebhooksReleasePropAssetsItemsPropUploaderType, ) - from .group_0489 import ( + from .group_0496 import ( WebhooksReleasePropAssetsItemsType as WebhooksReleasePropAssetsItemsType, ) - from .group_0489 import ( + from .group_0496 import ( WebhooksReleasePropAuthorType as WebhooksReleasePropAuthorType, ) - from .group_0489 import ( + from .group_0496 import ( WebhooksReleasePropReactionsType as WebhooksReleasePropReactionsType, ) - from .group_0489 import WebhooksReleaseType as WebhooksReleaseType - from .group_0490 import ( + from .group_0496 import WebhooksReleaseType as WebhooksReleaseType + from .group_0497 import ( WebhooksRelease1PropAssetsItemsPropUploaderType as WebhooksRelease1PropAssetsItemsPropUploaderType, ) - from .group_0490 import ( + from .group_0497 import ( WebhooksRelease1PropAssetsItemsType as WebhooksRelease1PropAssetsItemsType, ) - from .group_0490 import ( + from .group_0497 import ( WebhooksRelease1PropAuthorType as WebhooksRelease1PropAuthorType, ) - from .group_0490 import ( + from .group_0497 import ( WebhooksRelease1PropReactionsType as WebhooksRelease1PropReactionsType, ) - from .group_0490 import WebhooksRelease1Type as WebhooksRelease1Type - from .group_0491 import ( + from .group_0497 import WebhooksRelease1Type as WebhooksRelease1Type + from .group_0498 import ( WebhooksAlertPropDismisserType as WebhooksAlertPropDismisserType, ) - from .group_0491 import WebhooksAlertType as WebhooksAlertType - from .group_0492 import ( + from .group_0498 import WebhooksAlertType as WebhooksAlertType + from .group_0499 import ( SecretScanningAlertWebhookType as SecretScanningAlertWebhookType, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropCvssType as WebhooksSecurityAdvisoryPropCvssType, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropCwesItemsType as WebhooksSecurityAdvisoryPropCwesItemsType, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropIdentifiersItemsType as WebhooksSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropReferencesItemsType as WebhooksSecurityAdvisoryPropReferencesItemsType, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0493 import ( + from .group_0500 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0493 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType - from .group_0494 import ( + from .group_0500 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType + from .group_0501 import ( WebhooksSponsorshipPropMaintainerType as WebhooksSponsorshipPropMaintainerType, ) - from .group_0494 import ( + from .group_0501 import ( WebhooksSponsorshipPropSponsorableType as WebhooksSponsorshipPropSponsorableType, ) - from .group_0494 import ( + from .group_0501 import ( WebhooksSponsorshipPropSponsorType as WebhooksSponsorshipPropSponsorType, ) - from .group_0494 import ( + from .group_0501 import ( WebhooksSponsorshipPropTierType as WebhooksSponsorshipPropTierType, ) - from .group_0494 import WebhooksSponsorshipType as WebhooksSponsorshipType - from .group_0495 import ( + from .group_0501 import WebhooksSponsorshipType as WebhooksSponsorshipType + from .group_0502 import ( WebhooksChanges8PropTierPropFromType as WebhooksChanges8PropTierPropFromType, ) - from .group_0495 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType - from .group_0495 import WebhooksChanges8Type as WebhooksChanges8Type - from .group_0496 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType - from .group_0496 import WebhooksTeam1Type as WebhooksTeam1Type - from .group_0497 import ( + from .group_0502 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType + from .group_0502 import WebhooksChanges8Type as WebhooksChanges8Type + from .group_0503 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType + from .group_0503 import WebhooksTeam1Type as WebhooksTeam1Type + from .group_0504 import ( WebhookBranchProtectionConfigurationDisabledType as WebhookBranchProtectionConfigurationDisabledType, ) - from .group_0498 import ( + from .group_0505 import ( WebhookBranchProtectionConfigurationEnabledType as WebhookBranchProtectionConfigurationEnabledType, ) - from .group_0499 import ( + from .group_0506 import ( WebhookBranchProtectionRuleCreatedType as WebhookBranchProtectionRuleCreatedType, ) - from .group_0500 import ( + from .group_0507 import ( WebhookBranchProtectionRuleDeletedType as WebhookBranchProtectionRuleDeletedType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedPropChangesType as WebhookBranchProtectionRuleEditedPropChangesType, ) - from .group_0501 import ( + from .group_0508 import ( WebhookBranchProtectionRuleEditedType as WebhookBranchProtectionRuleEditedType, ) - from .group_0502 import ( + from .group_0509 import ( WebhookExemptionRequestCancelledType as WebhookExemptionRequestCancelledType, ) - from .group_0503 import ( + from .group_0510 import ( WebhookExemptionRequestCompletedType as WebhookExemptionRequestCompletedType, ) - from .group_0504 import ( + from .group_0511 import ( WebhookExemptionRequestCreatedType as WebhookExemptionRequestCreatedType, ) - from .group_0505 import ( + from .group_0512 import ( WebhookExemptionRequestResponseDismissedType as WebhookExemptionRequestResponseDismissedType, ) - from .group_0506 import ( + from .group_0513 import ( WebhookExemptionRequestResponseSubmittedType as WebhookExemptionRequestResponseSubmittedType, ) - from .group_0507 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType - from .group_0508 import ( + from .group_0514 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType + from .group_0515 import ( WebhookCheckRunCompletedFormEncodedType as WebhookCheckRunCompletedFormEncodedType, ) - from .group_0509 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType - from .group_0510 import ( + from .group_0516 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType + from .group_0517 import ( WebhookCheckRunCreatedFormEncodedType as WebhookCheckRunCreatedFormEncodedType, ) - from .group_0511 import ( + from .group_0518 import ( WebhookCheckRunRequestedActionPropRequestedActionType as WebhookCheckRunRequestedActionPropRequestedActionType, ) - from .group_0511 import ( + from .group_0518 import ( WebhookCheckRunRequestedActionType as WebhookCheckRunRequestedActionType, ) - from .group_0512 import ( + from .group_0519 import ( WebhookCheckRunRequestedActionFormEncodedType as WebhookCheckRunRequestedActionFormEncodedType, ) - from .group_0513 import ( + from .group_0520 import ( WebhookCheckRunRerequestedType as WebhookCheckRunRerequestedType, ) - from .group_0514 import ( + from .group_0521 import ( WebhookCheckRunRerequestedFormEncodedType as WebhookCheckRunRerequestedFormEncodedType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppType as WebhookCheckSuiteCompletedPropCheckSuitePropAppType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedPropCheckSuiteType as WebhookCheckSuiteCompletedPropCheckSuiteType, ) - from .group_0515 import ( + from .group_0522 import ( WebhookCheckSuiteCompletedType as WebhookCheckSuiteCompletedType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppType as WebhookCheckSuiteRequestedPropCheckSuitePropAppType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedPropCheckSuiteType as WebhookCheckSuiteRequestedPropCheckSuiteType, ) - from .group_0516 import ( + from .group_0523 import ( WebhookCheckSuiteRequestedType as WebhookCheckSuiteRequestedType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedPropCheckSuiteType as WebhookCheckSuiteRerequestedPropCheckSuiteType, ) - from .group_0517 import ( + from .group_0524 import ( WebhookCheckSuiteRerequestedType as WebhookCheckSuiteRerequestedType, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertType as WebhookCodeScanningAlertAppearedInBranchPropAlertType, ) - from .group_0518 import ( + from .group_0525 import ( WebhookCodeScanningAlertAppearedInBranchType as WebhookCodeScanningAlertAppearedInBranchType, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType as WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropToolType as WebhookCodeScanningAlertClosedByUserPropAlertPropToolType, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserPropAlertType as WebhookCodeScanningAlertClosedByUserPropAlertType, ) - from .group_0519 import ( + from .group_0526 import ( WebhookCodeScanningAlertClosedByUserType as WebhookCodeScanningAlertClosedByUserType, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedPropAlertPropRuleType as WebhookCodeScanningAlertCreatedPropAlertPropRuleType, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedPropAlertPropToolType as WebhookCodeScanningAlertCreatedPropAlertPropToolType, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedPropAlertType as WebhookCodeScanningAlertCreatedPropAlertType, ) - from .group_0520 import ( + from .group_0527 import ( WebhookCodeScanningAlertCreatedType as WebhookCodeScanningAlertCreatedType, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedByType as WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertPropRuleType as WebhookCodeScanningAlertFixedPropAlertPropRuleType, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertPropToolType as WebhookCodeScanningAlertFixedPropAlertPropToolType, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedPropAlertType as WebhookCodeScanningAlertFixedPropAlertType, ) - from .group_0521 import ( + from .group_0528 import ( WebhookCodeScanningAlertFixedType as WebhookCodeScanningAlertFixedType, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType as WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertPropRuleType as WebhookCodeScanningAlertReopenedPropAlertPropRuleType, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertPropToolType as WebhookCodeScanningAlertReopenedPropAlertPropToolType, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedPropAlertType as WebhookCodeScanningAlertReopenedPropAlertType, ) - from .group_0522 import ( + from .group_0529 import ( WebhookCodeScanningAlertReopenedType as WebhookCodeScanningAlertReopenedType, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType as WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType as WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserPropAlertType as WebhookCodeScanningAlertReopenedByUserPropAlertType, ) - from .group_0523 import ( + from .group_0530 import ( WebhookCodeScanningAlertReopenedByUserType as WebhookCodeScanningAlertReopenedByUserType, ) - from .group_0524 import ( + from .group_0531 import ( WebhookCommitCommentCreatedPropCommentPropReactionsType as WebhookCommitCommentCreatedPropCommentPropReactionsType, ) - from .group_0524 import ( + from .group_0531 import ( WebhookCommitCommentCreatedPropCommentPropUserType as WebhookCommitCommentCreatedPropCommentPropUserType, ) - from .group_0524 import ( + from .group_0531 import ( WebhookCommitCommentCreatedPropCommentType as WebhookCommitCommentCreatedPropCommentType, ) - from .group_0524 import ( + from .group_0531 import ( WebhookCommitCommentCreatedType as WebhookCommitCommentCreatedType, ) - from .group_0525 import WebhookCreateType as WebhookCreateType - from .group_0526 import ( + from .group_0532 import WebhookCreateType as WebhookCreateType + from .group_0533 import ( WebhookCustomPropertyCreatedType as WebhookCustomPropertyCreatedType, ) - from .group_0527 import ( + from .group_0534 import ( WebhookCustomPropertyDeletedPropDefinitionType as WebhookCustomPropertyDeletedPropDefinitionType, ) - from .group_0527 import ( + from .group_0534 import ( WebhookCustomPropertyDeletedType as WebhookCustomPropertyDeletedType, ) - from .group_0528 import ( + from .group_0535 import ( WebhookCustomPropertyUpdatedType as WebhookCustomPropertyUpdatedType, ) - from .group_0529 import ( + from .group_0536 import ( WebhookCustomPropertyValuesUpdatedType as WebhookCustomPropertyValuesUpdatedType, ) - from .group_0530 import WebhookDeleteType as WebhookDeleteType - from .group_0531 import ( + from .group_0537 import WebhookDeleteType as WebhookDeleteType + from .group_0538 import ( WebhookDependabotAlertAutoDismissedType as WebhookDependabotAlertAutoDismissedType, ) - from .group_0532 import ( + from .group_0539 import ( WebhookDependabotAlertAutoReopenedType as WebhookDependabotAlertAutoReopenedType, ) - from .group_0533 import ( + from .group_0540 import ( WebhookDependabotAlertCreatedType as WebhookDependabotAlertCreatedType, ) - from .group_0534 import ( + from .group_0541 import ( WebhookDependabotAlertDismissedType as WebhookDependabotAlertDismissedType, ) - from .group_0535 import ( + from .group_0542 import ( WebhookDependabotAlertFixedType as WebhookDependabotAlertFixedType, ) - from .group_0536 import ( + from .group_0543 import ( WebhookDependabotAlertReintroducedType as WebhookDependabotAlertReintroducedType, ) - from .group_0537 import ( + from .group_0544 import ( WebhookDependabotAlertReopenedType as WebhookDependabotAlertReopenedType, ) - from .group_0538 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType - from .group_0539 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType - from .group_0540 import ( + from .group_0545 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType + from .group_0546 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType + from .group_0547 import ( WebhookDeploymentCreatedPropDeploymentPropCreatorType as WebhookDeploymentCreatedPropDeploymentPropCreatorType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropDeploymentType as WebhookDeploymentCreatedPropDeploymentType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropActorType as WebhookDeploymentCreatedPropWorkflowRunPropActorType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0540 import ( + from .group_0547 import ( WebhookDeploymentCreatedPropWorkflowRunType as WebhookDeploymentCreatedPropWorkflowRunType, ) - from .group_0540 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType - from .group_0541 import ( + from .group_0547 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType + from .group_0548 import ( WebhookDeploymentProtectionRuleRequestedType as WebhookDeploymentProtectionRuleRequestedType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedPropWorkflowRunType as WebhookDeploymentReviewApprovedPropWorkflowRunType, ) - from .group_0542 import ( + from .group_0549 import ( WebhookDeploymentReviewApprovedType as WebhookDeploymentReviewApprovedType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedPropWorkflowRunType as WebhookDeploymentReviewRejectedPropWorkflowRunType, ) - from .group_0543 import ( + from .group_0550 import ( WebhookDeploymentReviewRejectedType as WebhookDeploymentReviewRejectedType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropReviewersItemsType as WebhookDeploymentReviewRequestedPropReviewersItemsType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRunType as WebhookDeploymentReviewRequestedPropWorkflowJobRunType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedPropWorkflowRunType as WebhookDeploymentReviewRequestedPropWorkflowRunType, ) - from .group_0544 import ( + from .group_0551 import ( WebhookDeploymentReviewRequestedType as WebhookDeploymentReviewRequestedType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropCheckRunType as WebhookDeploymentStatusCreatedPropCheckRunType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusType as WebhookDeploymentStatusCreatedPropDeploymentStatusType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropDeploymentType as WebhookDeploymentStatusCreatedPropDeploymentType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedPropWorkflowRunType as WebhookDeploymentStatusCreatedPropWorkflowRunType, ) - from .group_0545 import ( + from .group_0552 import ( WebhookDeploymentStatusCreatedType as WebhookDeploymentStatusCreatedType, ) - from .group_0546 import ( + from .group_0553 import ( WebhookDiscussionAnsweredType as WebhookDiscussionAnsweredType, ) - from .group_0547 import ( + from .group_0554 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType, ) - from .group_0547 import ( + from .group_0554 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryType as WebhookDiscussionCategoryChangedPropChangesPropCategoryType, ) - from .group_0547 import ( + from .group_0554 import ( WebhookDiscussionCategoryChangedPropChangesType as WebhookDiscussionCategoryChangedPropChangesType, ) - from .group_0547 import ( + from .group_0554 import ( WebhookDiscussionCategoryChangedType as WebhookDiscussionCategoryChangedType, ) - from .group_0548 import WebhookDiscussionClosedType as WebhookDiscussionClosedType - from .group_0549 import ( + from .group_0555 import WebhookDiscussionClosedType as WebhookDiscussionClosedType + from .group_0556 import ( WebhookDiscussionCommentCreatedType as WebhookDiscussionCommentCreatedType, ) - from .group_0550 import ( + from .group_0557 import ( WebhookDiscussionCommentDeletedType as WebhookDiscussionCommentDeletedType, ) - from .group_0551 import ( + from .group_0558 import ( WebhookDiscussionCommentEditedPropChangesPropBodyType as WebhookDiscussionCommentEditedPropChangesPropBodyType, ) - from .group_0551 import ( + from .group_0558 import ( WebhookDiscussionCommentEditedPropChangesType as WebhookDiscussionCommentEditedPropChangesType, ) - from .group_0551 import ( + from .group_0558 import ( WebhookDiscussionCommentEditedType as WebhookDiscussionCommentEditedType, ) - from .group_0552 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType - from .group_0553 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType - from .group_0554 import ( + from .group_0559 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType + from .group_0560 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType + from .group_0561 import ( WebhookDiscussionEditedPropChangesPropBodyType as WebhookDiscussionEditedPropChangesPropBodyType, ) - from .group_0554 import ( + from .group_0561 import ( WebhookDiscussionEditedPropChangesPropTitleType as WebhookDiscussionEditedPropChangesPropTitleType, ) - from .group_0554 import ( + from .group_0561 import ( WebhookDiscussionEditedPropChangesType as WebhookDiscussionEditedPropChangesType, ) - from .group_0554 import WebhookDiscussionEditedType as WebhookDiscussionEditedType - from .group_0555 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType - from .group_0556 import WebhookDiscussionLockedType as WebhookDiscussionLockedType - from .group_0557 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType - from .group_0558 import ( + from .group_0561 import WebhookDiscussionEditedType as WebhookDiscussionEditedType + from .group_0562 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType + from .group_0563 import WebhookDiscussionLockedType as WebhookDiscussionLockedType + from .group_0564 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType + from .group_0565 import ( WebhookDiscussionReopenedType as WebhookDiscussionReopenedType, ) - from .group_0559 import ( + from .group_0566 import ( WebhookDiscussionTransferredType as WebhookDiscussionTransferredType, ) - from .group_0560 import ( + from .group_0567 import ( WebhookDiscussionTransferredPropChangesType as WebhookDiscussionTransferredPropChangesType, ) - from .group_0561 import ( + from .group_0568 import ( WebhookDiscussionUnansweredType as WebhookDiscussionUnansweredType, ) - from .group_0562 import ( + from .group_0569 import ( WebhookDiscussionUnlabeledType as WebhookDiscussionUnlabeledType, ) - from .group_0563 import ( + from .group_0570 import ( WebhookDiscussionUnlockedType as WebhookDiscussionUnlockedType, ) - from .group_0564 import ( + from .group_0571 import ( WebhookDiscussionUnpinnedType as WebhookDiscussionUnpinnedType, ) - from .group_0565 import WebhookForkType as WebhookForkType - from .group_0566 import ( + from .group_0572 import WebhookForkType as WebhookForkType + from .group_0573 import ( WebhookForkPropForkeeMergedLicenseType as WebhookForkPropForkeeMergedLicenseType, ) - from .group_0566 import ( + from .group_0573 import ( WebhookForkPropForkeeMergedOwnerType as WebhookForkPropForkeeMergedOwnerType, ) - from .group_0566 import WebhookForkPropForkeeType as WebhookForkPropForkeeType - from .group_0567 import ( + from .group_0573 import WebhookForkPropForkeeType as WebhookForkPropForkeeType + from .group_0574 import ( WebhookForkPropForkeeAllof0PropLicenseType as WebhookForkPropForkeeAllof0PropLicenseType, ) - from .group_0567 import ( + from .group_0574 import ( WebhookForkPropForkeeAllof0PropOwnerType as WebhookForkPropForkeeAllof0PropOwnerType, ) - from .group_0567 import ( + from .group_0574 import ( WebhookForkPropForkeeAllof0Type as WebhookForkPropForkeeAllof0Type, ) - from .group_0568 import ( + from .group_0575 import ( WebhookForkPropForkeeAllof0PropPermissionsType as WebhookForkPropForkeeAllof0PropPermissionsType, ) - from .group_0569 import ( + from .group_0576 import ( WebhookForkPropForkeeAllof1PropLicenseType as WebhookForkPropForkeeAllof1PropLicenseType, ) - from .group_0569 import ( + from .group_0576 import ( WebhookForkPropForkeeAllof1PropOwnerType as WebhookForkPropForkeeAllof1PropOwnerType, ) - from .group_0569 import ( + from .group_0576 import ( WebhookForkPropForkeeAllof1Type as WebhookForkPropForkeeAllof1Type, ) - from .group_0570 import ( + from .group_0577 import ( WebhookGithubAppAuthorizationRevokedType as WebhookGithubAppAuthorizationRevokedType, ) - from .group_0571 import ( + from .group_0578 import ( WebhookGollumPropPagesItemsType as WebhookGollumPropPagesItemsType, ) - from .group_0571 import WebhookGollumType as WebhookGollumType - from .group_0572 import ( + from .group_0578 import WebhookGollumType as WebhookGollumType + from .group_0579 import ( WebhookInstallationCreatedType as WebhookInstallationCreatedType, ) - from .group_0573 import ( + from .group_0580 import ( WebhookInstallationDeletedType as WebhookInstallationDeletedType, ) - from .group_0574 import ( + from .group_0581 import ( WebhookInstallationNewPermissionsAcceptedType as WebhookInstallationNewPermissionsAcceptedType, ) - from .group_0575 import ( + from .group_0582 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType, ) - from .group_0575 import ( + from .group_0582 import ( WebhookInstallationRepositoriesAddedType as WebhookInstallationRepositoriesAddedType, ) - from .group_0576 import ( + from .group_0583 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType, ) - from .group_0576 import ( + from .group_0583 import ( WebhookInstallationRepositoriesRemovedType as WebhookInstallationRepositoriesRemovedType, ) - from .group_0577 import ( + from .group_0584 import ( WebhookInstallationSuspendType as WebhookInstallationSuspendType, ) - from .group_0578 import ( + from .group_0585 import ( WebhookInstallationTargetRenamedPropAccountType as WebhookInstallationTargetRenamedPropAccountType, ) - from .group_0578 import ( + from .group_0585 import ( WebhookInstallationTargetRenamedPropChangesPropLoginType as WebhookInstallationTargetRenamedPropChangesPropLoginType, ) - from .group_0578 import ( + from .group_0585 import ( WebhookInstallationTargetRenamedPropChangesPropSlugType as WebhookInstallationTargetRenamedPropChangesPropSlugType, ) - from .group_0578 import ( + from .group_0585 import ( WebhookInstallationTargetRenamedPropChangesType as WebhookInstallationTargetRenamedPropChangesType, ) - from .group_0578 import ( + from .group_0585 import ( WebhookInstallationTargetRenamedType as WebhookInstallationTargetRenamedType, ) - from .group_0579 import ( + from .group_0586 import ( WebhookInstallationUnsuspendType as WebhookInstallationUnsuspendType, ) - from .group_0580 import ( + from .group_0587 import ( WebhookIssueCommentCreatedType as WebhookIssueCommentCreatedType, ) - from .group_0581 import ( + from .group_0588 import ( WebhookIssueCommentCreatedPropCommentPropReactionsType as WebhookIssueCommentCreatedPropCommentPropReactionsType, ) - from .group_0581 import ( + from .group_0588 import ( WebhookIssueCommentCreatedPropCommentPropUserType as WebhookIssueCommentCreatedPropCommentPropUserType, ) - from .group_0581 import ( + from .group_0588 import ( WebhookIssueCommentCreatedPropCommentType as WebhookIssueCommentCreatedPropCommentType, ) - from .group_0582 import ( + from .group_0589 import ( WebhookIssueCommentCreatedPropIssueMergedAssigneesType as WebhookIssueCommentCreatedPropIssueMergedAssigneesType, ) - from .group_0582 import ( + from .group_0589 import ( WebhookIssueCommentCreatedPropIssueMergedReactionsType as WebhookIssueCommentCreatedPropIssueMergedReactionsType, ) - from .group_0582 import ( + from .group_0589 import ( WebhookIssueCommentCreatedPropIssueMergedUserType as WebhookIssueCommentCreatedPropIssueMergedUserType, ) - from .group_0582 import ( + from .group_0589 import ( WebhookIssueCommentCreatedPropIssueType as WebhookIssueCommentCreatedPropIssueType, ) - from .group_0583 import ( + from .group_0590 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0583 import ( + from .group_0590 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType, ) - from .group_0583 import ( + from .group_0590 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUserType as WebhookIssueCommentCreatedPropIssueAllof0PropUserType, ) - from .group_0583 import ( + from .group_0590 import ( WebhookIssueCommentCreatedPropIssueAllof0Type as WebhookIssueCommentCreatedPropIssueAllof0Type, ) - from .group_0584 import ( + from .group_0591 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, ) - from .group_0584 import ( + from .group_0591 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, ) - from .group_0584 import ( + from .group_0591 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) - from .group_0585 import ( + from .group_0592 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0586 import ( + from .group_0593 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, ) - from .group_0587 import ( + from .group_0594 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0587 import ( + from .group_0594 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0588 import ( + from .group_0595 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0589 import ( + from .group_0596 import ( WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUserType as WebhookIssueCommentCreatedPropIssueAllof1PropUserType, ) - from .group_0590 import ( + from .group_0597 import ( WebhookIssueCommentCreatedPropIssueAllof1Type as WebhookIssueCommentCreatedPropIssueAllof1Type, ) - from .group_0591 import ( + from .group_0598 import ( WebhookIssueCommentCreatedPropIssueMergedMilestoneType as WebhookIssueCommentCreatedPropIssueMergedMilestoneType, ) - from .group_0592 import ( + from .group_0599 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0593 import ( + from .group_0600 import ( WebhookIssueCommentDeletedType as WebhookIssueCommentDeletedType, ) - from .group_0594 import ( + from .group_0601 import ( WebhookIssueCommentDeletedPropIssueMergedAssigneesType as WebhookIssueCommentDeletedPropIssueMergedAssigneesType, ) - from .group_0594 import ( + from .group_0601 import ( WebhookIssueCommentDeletedPropIssueMergedReactionsType as WebhookIssueCommentDeletedPropIssueMergedReactionsType, ) - from .group_0594 import ( + from .group_0601 import ( WebhookIssueCommentDeletedPropIssueMergedUserType as WebhookIssueCommentDeletedPropIssueMergedUserType, ) - from .group_0594 import ( + from .group_0601 import ( WebhookIssueCommentDeletedPropIssueType as WebhookIssueCommentDeletedPropIssueType, ) - from .group_0595 import ( + from .group_0602 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0595 import ( + from .group_0602 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType, ) - from .group_0595 import ( + from .group_0602 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUserType as WebhookIssueCommentDeletedPropIssueAllof0PropUserType, ) - from .group_0595 import ( + from .group_0602 import ( WebhookIssueCommentDeletedPropIssueAllof0Type as WebhookIssueCommentDeletedPropIssueAllof0Type, ) - from .group_0596 import ( + from .group_0603 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, ) - from .group_0596 import ( + from .group_0603 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, ) - from .group_0596 import ( + from .group_0603 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) - from .group_0597 import ( + from .group_0604 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0598 import ( + from .group_0605 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, ) - from .group_0599 import ( + from .group_0606 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0599 import ( + from .group_0606 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0600 import ( + from .group_0607 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0601 import ( + from .group_0608 import ( WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUserType as WebhookIssueCommentDeletedPropIssueAllof1PropUserType, ) - from .group_0602 import ( + from .group_0609 import ( WebhookIssueCommentDeletedPropIssueAllof1Type as WebhookIssueCommentDeletedPropIssueAllof1Type, ) - from .group_0603 import ( + from .group_0610 import ( WebhookIssueCommentDeletedPropIssueMergedMilestoneType as WebhookIssueCommentDeletedPropIssueMergedMilestoneType, ) - from .group_0604 import ( + from .group_0611 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0605 import ( + from .group_0612 import ( WebhookIssueCommentEditedType as WebhookIssueCommentEditedType, ) - from .group_0606 import ( + from .group_0613 import ( WebhookIssueCommentEditedPropIssueMergedAssigneesType as WebhookIssueCommentEditedPropIssueMergedAssigneesType, ) - from .group_0606 import ( + from .group_0613 import ( WebhookIssueCommentEditedPropIssueMergedReactionsType as WebhookIssueCommentEditedPropIssueMergedReactionsType, ) - from .group_0606 import ( + from .group_0613 import ( WebhookIssueCommentEditedPropIssueMergedUserType as WebhookIssueCommentEditedPropIssueMergedUserType, ) - from .group_0606 import ( + from .group_0613 import ( WebhookIssueCommentEditedPropIssueType as WebhookIssueCommentEditedPropIssueType, ) - from .group_0607 import ( + from .group_0614 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0607 import ( + from .group_0614 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactionsType as WebhookIssueCommentEditedPropIssueAllof0PropReactionsType, ) - from .group_0607 import ( + from .group_0614 import ( WebhookIssueCommentEditedPropIssueAllof0PropUserType as WebhookIssueCommentEditedPropIssueAllof0PropUserType, ) - from .group_0607 import ( + from .group_0614 import ( WebhookIssueCommentEditedPropIssueAllof0Type as WebhookIssueCommentEditedPropIssueAllof0Type, ) - from .group_0608 import ( + from .group_0615 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, ) - from .group_0608 import ( + from .group_0615 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, ) - from .group_0608 import ( + from .group_0615 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType as WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) - from .group_0609 import ( + from .group_0616 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0610 import ( + from .group_0617 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, ) - from .group_0611 import ( + from .group_0618 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0611 import ( + from .group_0618 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0612 import ( + from .group_0619 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0613 import ( + from .group_0620 import ( WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactionsType as WebhookIssueCommentEditedPropIssueAllof1PropReactionsType, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1PropUserType as WebhookIssueCommentEditedPropIssueAllof1PropUserType, ) - from .group_0614 import ( + from .group_0621 import ( WebhookIssueCommentEditedPropIssueAllof1Type as WebhookIssueCommentEditedPropIssueAllof1Type, ) - from .group_0615 import ( + from .group_0622 import ( WebhookIssueCommentEditedPropIssueMergedMilestoneType as WebhookIssueCommentEditedPropIssueMergedMilestoneType, ) - from .group_0616 import ( + from .group_0623 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0617 import WebhookIssuesAssignedType as WebhookIssuesAssignedType - from .group_0618 import WebhookIssuesClosedType as WebhookIssuesClosedType - from .group_0619 import ( + from .group_0624 import WebhookIssuesAssignedType as WebhookIssuesAssignedType + from .group_0625 import WebhookIssuesClosedType as WebhookIssuesClosedType + from .group_0626 import ( WebhookIssuesClosedPropIssueMergedAssigneesType as WebhookIssuesClosedPropIssueMergedAssigneesType, ) - from .group_0619 import ( + from .group_0626 import ( WebhookIssuesClosedPropIssueMergedAssigneeType as WebhookIssuesClosedPropIssueMergedAssigneeType, ) - from .group_0619 import ( + from .group_0626 import ( WebhookIssuesClosedPropIssueMergedLabelsType as WebhookIssuesClosedPropIssueMergedLabelsType, ) - from .group_0619 import ( + from .group_0626 import ( WebhookIssuesClosedPropIssueMergedReactionsType as WebhookIssuesClosedPropIssueMergedReactionsType, ) - from .group_0619 import ( + from .group_0626 import ( WebhookIssuesClosedPropIssueMergedUserType as WebhookIssuesClosedPropIssueMergedUserType, ) - from .group_0619 import ( + from .group_0626 import ( WebhookIssuesClosedPropIssueType as WebhookIssuesClosedPropIssueType, ) - from .group_0620 import ( + from .group_0627 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0620 import ( + from .group_0627 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneeType as WebhookIssuesClosedPropIssueAllof0PropAssigneeType, ) - from .group_0620 import ( + from .group_0627 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType, ) - from .group_0620 import ( + from .group_0627 import ( WebhookIssuesClosedPropIssueAllof0PropReactionsType as WebhookIssuesClosedPropIssueAllof0PropReactionsType, ) - from .group_0620 import ( + from .group_0627 import ( WebhookIssuesClosedPropIssueAllof0PropUserType as WebhookIssuesClosedPropIssueAllof0PropUserType, ) - from .group_0620 import ( + from .group_0627 import ( WebhookIssuesClosedPropIssueAllof0Type as WebhookIssuesClosedPropIssueAllof0Type, ) - from .group_0621 import ( + from .group_0628 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0622 import ( + from .group_0629 import ( WebhookIssuesClosedPropIssueAllof0PropMilestoneType as WebhookIssuesClosedPropIssueAllof0PropMilestoneType, ) - from .group_0623 import ( + from .group_0630 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0623 import ( + from .group_0630 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0624 import ( + from .group_0631 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0625 import ( + from .group_0632 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequestType as WebhookIssuesClosedPropIssueAllof0PropPullRequestType, ) - from .group_0625 import ( + from .group_0632 import ( WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneeType as WebhookIssuesClosedPropIssueAllof1PropAssigneeType, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropMilestoneType as WebhookIssuesClosedPropIssueAllof1PropMilestoneType, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropReactionsType as WebhookIssuesClosedPropIssueAllof1PropReactionsType, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1PropUserType as WebhookIssuesClosedPropIssueAllof1PropUserType, ) - from .group_0626 import ( + from .group_0633 import ( WebhookIssuesClosedPropIssueAllof1Type as WebhookIssuesClosedPropIssueAllof1Type, ) - from .group_0627 import ( + from .group_0634 import ( WebhookIssuesClosedPropIssueMergedMilestoneType as WebhookIssuesClosedPropIssueMergedMilestoneType, ) - from .group_0628 import ( + from .group_0635 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropAssigneesItemsType as WebhookIssuesDeletedPropIssuePropAssigneesItemsType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropAssigneeType as WebhookIssuesDeletedPropIssuePropAssigneeType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropLabelsItemsType as WebhookIssuesDeletedPropIssuePropLabelsItemsType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType as WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropMilestoneType as WebhookIssuesDeletedPropIssuePropMilestoneType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropPullRequestType as WebhookIssuesDeletedPropIssuePropPullRequestType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropReactionsType as WebhookIssuesDeletedPropIssuePropReactionsType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType as WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssuePropUserType as WebhookIssuesDeletedPropIssuePropUserType, ) - from .group_0629 import ( + from .group_0636 import ( WebhookIssuesDeletedPropIssueType as WebhookIssuesDeletedPropIssueType, ) - from .group_0629 import WebhookIssuesDeletedType as WebhookIssuesDeletedType - from .group_0630 import ( + from .group_0636 import WebhookIssuesDeletedType as WebhookIssuesDeletedType + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType as WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropAssigneeType as WebhookIssuesDemilestonedPropIssuePropAssigneeType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItemsType as WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropMilestoneType as WebhookIssuesDemilestonedPropIssuePropMilestoneType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropPullRequestType as WebhookIssuesDemilestonedPropIssuePropPullRequestType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropReactionsType as WebhookIssuesDemilestonedPropIssuePropReactionsType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssuePropUserType as WebhookIssuesDemilestonedPropIssuePropUserType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedPropIssueType as WebhookIssuesDemilestonedPropIssueType, ) - from .group_0630 import ( + from .group_0637 import ( WebhookIssuesDemilestonedType as WebhookIssuesDemilestonedType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropChangesPropBodyType as WebhookIssuesEditedPropChangesPropBodyType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropChangesPropTitleType as WebhookIssuesEditedPropChangesPropTitleType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropChangesType as WebhookIssuesEditedPropChangesType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropAssigneesItemsType as WebhookIssuesEditedPropIssuePropAssigneesItemsType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropAssigneeType as WebhookIssuesEditedPropIssuePropAssigneeType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropLabelsItemsType as WebhookIssuesEditedPropIssuePropLabelsItemsType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreatorType as WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropMilestoneType as WebhookIssuesEditedPropIssuePropMilestoneType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropPullRequestType as WebhookIssuesEditedPropIssuePropPullRequestType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropReactionsType as WebhookIssuesEditedPropIssuePropReactionsType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropSubIssuesSummaryType as WebhookIssuesEditedPropIssuePropSubIssuesSummaryType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssuePropUserType as WebhookIssuesEditedPropIssuePropUserType, ) - from .group_0631 import ( + from .group_0638 import ( WebhookIssuesEditedPropIssueType as WebhookIssuesEditedPropIssueType, ) - from .group_0631 import WebhookIssuesEditedType as WebhookIssuesEditedType - from .group_0632 import ( + from .group_0638 import WebhookIssuesEditedType as WebhookIssuesEditedType + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropAssigneeType as WebhookIssuesLabeledPropIssuePropAssigneeType, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropLabelsItemsType as WebhookIssuesLabeledPropIssuePropLabelsItemsType, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropMilestoneType as WebhookIssuesLabeledPropIssuePropMilestoneType, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropPullRequestType as WebhookIssuesLabeledPropIssuePropPullRequestType, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType as WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssuePropUserType as WebhookIssuesLabeledPropIssuePropUserType, ) - from .group_0632 import ( + from .group_0639 import ( WebhookIssuesLabeledPropIssueType as WebhookIssuesLabeledPropIssueType, ) - from .group_0632 import WebhookIssuesLabeledType as WebhookIssuesLabeledType - from .group_0633 import ( + from .group_0639 import WebhookIssuesLabeledType as WebhookIssuesLabeledType + from .group_0640 import ( WebhookIssuesLockedPropIssuePropAssigneesItemsType as WebhookIssuesLockedPropIssuePropAssigneesItemsType, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropAssigneeType as WebhookIssuesLockedPropIssuePropAssigneeType, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropLabelsItemsType as WebhookIssuesLockedPropIssuePropLabelsItemsType, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreatorType as WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropMilestoneType as WebhookIssuesLockedPropIssuePropMilestoneType, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropPullRequestType as WebhookIssuesLockedPropIssuePropPullRequestType, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropReactionsType as WebhookIssuesLockedPropIssuePropReactionsType, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropSubIssuesSummaryType as WebhookIssuesLockedPropIssuePropSubIssuesSummaryType, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssuePropUserType as WebhookIssuesLockedPropIssuePropUserType, ) - from .group_0633 import ( + from .group_0640 import ( WebhookIssuesLockedPropIssueType as WebhookIssuesLockedPropIssueType, ) - from .group_0633 import WebhookIssuesLockedType as WebhookIssuesLockedType - from .group_0634 import ( + from .group_0640 import WebhookIssuesLockedType as WebhookIssuesLockedType + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItemsType as WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropAssigneeType as WebhookIssuesMilestonedPropIssuePropAssigneeType, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropLabelsItemsType as WebhookIssuesMilestonedPropIssuePropLabelsItemsType, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropMilestoneType as WebhookIssuesMilestonedPropIssuePropMilestoneType, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropPullRequestType as WebhookIssuesMilestonedPropIssuePropPullRequestType, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropReactionsType as WebhookIssuesMilestonedPropIssuePropReactionsType, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssuePropUserType as WebhookIssuesMilestonedPropIssuePropUserType, ) - from .group_0634 import ( + from .group_0641 import ( WebhookIssuesMilestonedPropIssueType as WebhookIssuesMilestonedPropIssueType, ) - from .group_0634 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType - from .group_0635 import ( + from .group_0641 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUserType as WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldIssueType as WebhookIssuesOpenedPropChangesPropOldIssueType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryType as WebhookIssuesOpenedPropChangesPropOldRepositoryType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropChangesType as WebhookIssuesOpenedPropChangesType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropAssigneesItemsType as WebhookIssuesOpenedPropIssuePropAssigneesItemsType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropAssigneeType as WebhookIssuesOpenedPropIssuePropAssigneeType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropLabelsItemsType as WebhookIssuesOpenedPropIssuePropLabelsItemsType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropMilestoneType as WebhookIssuesOpenedPropIssuePropMilestoneType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropPullRequestType as WebhookIssuesOpenedPropIssuePropPullRequestType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropReactionsType as WebhookIssuesOpenedPropIssuePropReactionsType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssuePropUserType as WebhookIssuesOpenedPropIssuePropUserType, ) - from .group_0635 import ( + from .group_0642 import ( WebhookIssuesOpenedPropIssueType as WebhookIssuesOpenedPropIssueType, ) - from .group_0635 import WebhookIssuesOpenedType as WebhookIssuesOpenedType - from .group_0636 import WebhookIssuesPinnedType as WebhookIssuesPinnedType - from .group_0637 import ( + from .group_0642 import WebhookIssuesOpenedType as WebhookIssuesOpenedType + from .group_0643 import WebhookIssuesPinnedType as WebhookIssuesPinnedType + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropAssigneesItemsType as WebhookIssuesReopenedPropIssuePropAssigneesItemsType, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropAssigneeType as WebhookIssuesReopenedPropIssuePropAssigneeType, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropLabelsItemsType as WebhookIssuesReopenedPropIssuePropLabelsItemsType, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType as WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropMilestoneType as WebhookIssuesReopenedPropIssuePropMilestoneType, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropPullRequestType as WebhookIssuesReopenedPropIssuePropPullRequestType, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropReactionsType as WebhookIssuesReopenedPropIssuePropReactionsType, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType as WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssuePropUserType as WebhookIssuesReopenedPropIssuePropUserType, ) - from .group_0637 import ( + from .group_0644 import ( WebhookIssuesReopenedPropIssueType as WebhookIssuesReopenedPropIssueType, ) - from .group_0637 import WebhookIssuesReopenedType as WebhookIssuesReopenedType - from .group_0638 import ( + from .group_0644 import WebhookIssuesReopenedType as WebhookIssuesReopenedType + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUserType as WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewIssueType as WebhookIssuesTransferredPropChangesPropNewIssueType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryType as WebhookIssuesTransferredPropChangesPropNewRepositoryType, ) - from .group_0638 import ( + from .group_0645 import ( WebhookIssuesTransferredPropChangesType as WebhookIssuesTransferredPropChangesType, ) - from .group_0638 import WebhookIssuesTransferredType as WebhookIssuesTransferredType - from .group_0639 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType - from .group_0640 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType - from .group_0641 import ( + from .group_0645 import WebhookIssuesTransferredType as WebhookIssuesTransferredType + from .group_0646 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType + from .group_0647 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItemsType as WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropAssigneeType as WebhookIssuesUnlockedPropIssuePropAssigneeType, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropLabelsItemsType as WebhookIssuesUnlockedPropIssuePropLabelsItemsType, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropMilestoneType as WebhookIssuesUnlockedPropIssuePropMilestoneType, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropPullRequestType as WebhookIssuesUnlockedPropIssuePropPullRequestType, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropReactionsType as WebhookIssuesUnlockedPropIssuePropReactionsType, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType as WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssuePropUserType as WebhookIssuesUnlockedPropIssuePropUserType, ) - from .group_0641 import ( + from .group_0648 import ( WebhookIssuesUnlockedPropIssueType as WebhookIssuesUnlockedPropIssueType, ) - from .group_0641 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType - from .group_0642 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType - from .group_0643 import WebhookLabelCreatedType as WebhookLabelCreatedType - from .group_0644 import WebhookLabelDeletedType as WebhookLabelDeletedType - from .group_0645 import ( + from .group_0648 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType + from .group_0649 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType + from .group_0650 import WebhookLabelCreatedType as WebhookLabelCreatedType + from .group_0651 import WebhookLabelDeletedType as WebhookLabelDeletedType + from .group_0652 import ( WebhookLabelEditedPropChangesPropColorType as WebhookLabelEditedPropChangesPropColorType, ) - from .group_0645 import ( + from .group_0652 import ( WebhookLabelEditedPropChangesPropDescriptionType as WebhookLabelEditedPropChangesPropDescriptionType, ) - from .group_0645 import ( + from .group_0652 import ( WebhookLabelEditedPropChangesPropNameType as WebhookLabelEditedPropChangesPropNameType, ) - from .group_0645 import ( + from .group_0652 import ( WebhookLabelEditedPropChangesType as WebhookLabelEditedPropChangesType, ) - from .group_0645 import WebhookLabelEditedType as WebhookLabelEditedType - from .group_0646 import ( + from .group_0652 import WebhookLabelEditedType as WebhookLabelEditedType + from .group_0653 import ( WebhookMarketplacePurchaseCancelledType as WebhookMarketplacePurchaseCancelledType, ) - from .group_0647 import ( + from .group_0654 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0647 import ( + from .group_0654 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0647 import ( + from .group_0654 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType, ) - from .group_0647 import ( + from .group_0654 import ( WebhookMarketplacePurchaseChangedType as WebhookMarketplacePurchaseChangedType, ) - from .group_0648 import ( + from .group_0655 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType, ) - from .group_0648 import ( + from .group_0655 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType, ) - from .group_0648 import ( + from .group_0655 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType, ) - from .group_0648 import ( + from .group_0655 import ( WebhookMarketplacePurchasePendingChangeType as WebhookMarketplacePurchasePendingChangeType, ) - from .group_0649 import ( + from .group_0656 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType, ) - from .group_0649 import ( + from .group_0656 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType, ) - from .group_0649 import ( + from .group_0656 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, ) - from .group_0649 import ( + from .group_0656 import ( WebhookMarketplacePurchasePendingChangeCancelledType as WebhookMarketplacePurchasePendingChangeCancelledType, ) - from .group_0650 import ( + from .group_0657 import ( WebhookMarketplacePurchasePurchasedType as WebhookMarketplacePurchasePurchasedType, ) - from .group_0651 import ( + from .group_0658 import ( WebhookMemberAddedPropChangesPropPermissionType as WebhookMemberAddedPropChangesPropPermissionType, ) - from .group_0651 import ( + from .group_0658 import ( WebhookMemberAddedPropChangesPropRoleNameType as WebhookMemberAddedPropChangesPropRoleNameType, ) - from .group_0651 import ( + from .group_0658 import ( WebhookMemberAddedPropChangesType as WebhookMemberAddedPropChangesType, ) - from .group_0651 import WebhookMemberAddedType as WebhookMemberAddedType - from .group_0652 import ( + from .group_0658 import WebhookMemberAddedType as WebhookMemberAddedType + from .group_0659 import ( WebhookMemberEditedPropChangesPropOldPermissionType as WebhookMemberEditedPropChangesPropOldPermissionType, ) - from .group_0652 import ( + from .group_0659 import ( WebhookMemberEditedPropChangesPropPermissionType as WebhookMemberEditedPropChangesPropPermissionType, ) - from .group_0652 import ( + from .group_0659 import ( WebhookMemberEditedPropChangesType as WebhookMemberEditedPropChangesType, ) - from .group_0652 import WebhookMemberEditedType as WebhookMemberEditedType - from .group_0653 import WebhookMemberRemovedType as WebhookMemberRemovedType - from .group_0654 import ( + from .group_0659 import WebhookMemberEditedType as WebhookMemberEditedType + from .group_0660 import WebhookMemberRemovedType as WebhookMemberRemovedType + from .group_0661 import ( WebhookMembershipAddedPropSenderType as WebhookMembershipAddedPropSenderType, ) - from .group_0654 import WebhookMembershipAddedType as WebhookMembershipAddedType - from .group_0655 import ( + from .group_0661 import WebhookMembershipAddedType as WebhookMembershipAddedType + from .group_0662 import ( WebhookMembershipRemovedPropSenderType as WebhookMembershipRemovedPropSenderType, ) - from .group_0655 import WebhookMembershipRemovedType as WebhookMembershipRemovedType - from .group_0656 import ( + from .group_0662 import WebhookMembershipRemovedType as WebhookMembershipRemovedType + from .group_0663 import ( WebhookMergeGroupChecksRequestedType as WebhookMergeGroupChecksRequestedType, ) - from .group_0657 import ( + from .group_0664 import ( WebhookMergeGroupDestroyedType as WebhookMergeGroupDestroyedType, ) - from .group_0658 import ( + from .group_0665 import ( WebhookMetaDeletedPropHookPropConfigType as WebhookMetaDeletedPropHookPropConfigType, ) - from .group_0658 import ( + from .group_0665 import ( WebhookMetaDeletedPropHookType as WebhookMetaDeletedPropHookType, ) - from .group_0658 import WebhookMetaDeletedType as WebhookMetaDeletedType - from .group_0659 import WebhookMilestoneClosedType as WebhookMilestoneClosedType - from .group_0660 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType - from .group_0661 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType - from .group_0662 import ( + from .group_0665 import WebhookMetaDeletedType as WebhookMetaDeletedType + from .group_0666 import WebhookMilestoneClosedType as WebhookMilestoneClosedType + from .group_0667 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType + from .group_0668 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType + from .group_0669 import ( WebhookMilestoneEditedPropChangesPropDescriptionType as WebhookMilestoneEditedPropChangesPropDescriptionType, ) - from .group_0662 import ( + from .group_0669 import ( WebhookMilestoneEditedPropChangesPropDueOnType as WebhookMilestoneEditedPropChangesPropDueOnType, ) - from .group_0662 import ( + from .group_0669 import ( WebhookMilestoneEditedPropChangesPropTitleType as WebhookMilestoneEditedPropChangesPropTitleType, ) - from .group_0662 import ( + from .group_0669 import ( WebhookMilestoneEditedPropChangesType as WebhookMilestoneEditedPropChangesType, ) - from .group_0662 import WebhookMilestoneEditedType as WebhookMilestoneEditedType - from .group_0663 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType - from .group_0664 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType - from .group_0665 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType - from .group_0666 import ( + from .group_0669 import WebhookMilestoneEditedType as WebhookMilestoneEditedType + from .group_0670 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType + from .group_0671 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType + from .group_0672 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType + from .group_0673 import ( WebhookOrganizationDeletedType as WebhookOrganizationDeletedType, ) - from .group_0667 import ( + from .group_0674 import ( WebhookOrganizationMemberAddedType as WebhookOrganizationMemberAddedType, ) - from .group_0668 import ( + from .group_0675 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviterType as WebhookOrganizationMemberInvitedPropInvitationPropInviterType, ) - from .group_0668 import ( + from .group_0675 import ( WebhookOrganizationMemberInvitedPropInvitationType as WebhookOrganizationMemberInvitedPropInvitationType, ) - from .group_0668 import ( + from .group_0675 import ( WebhookOrganizationMemberInvitedType as WebhookOrganizationMemberInvitedType, ) - from .group_0669 import ( + from .group_0676 import ( WebhookOrganizationMemberRemovedType as WebhookOrganizationMemberRemovedType, ) - from .group_0670 import ( + from .group_0677 import ( WebhookOrganizationRenamedPropChangesPropLoginType as WebhookOrganizationRenamedPropChangesPropLoginType, ) - from .group_0670 import ( + from .group_0677 import ( WebhookOrganizationRenamedPropChangesType as WebhookOrganizationRenamedPropChangesType, ) - from .group_0670 import ( + from .group_0677 import ( WebhookOrganizationRenamedType as WebhookOrganizationRenamedType, ) - from .group_0671 import ( + from .group_0678 import ( WebhookRubygemsMetadataPropDependenciesItemsType as WebhookRubygemsMetadataPropDependenciesItemsType, ) - from .group_0671 import ( + from .group_0678 import ( WebhookRubygemsMetadataPropMetadataType as WebhookRubygemsMetadataPropMetadataType, ) - from .group_0671 import ( + from .group_0678 import ( WebhookRubygemsMetadataPropVersionInfoType as WebhookRubygemsMetadataPropVersionInfoType, ) - from .group_0671 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType - from .group_0672 import WebhookPackagePublishedType as WebhookPackagePublishedType - from .group_0673 import ( + from .group_0678 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType + from .group_0679 import WebhookPackagePublishedType as WebhookPackagePublishedType + from .group_0680 import ( WebhookPackagePublishedPropPackagePropOwnerType as WebhookPackagePublishedPropPackagePropOwnerType, ) - from .group_0673 import ( + from .group_0680 import ( WebhookPackagePublishedPropPackagePropRegistryType as WebhookPackagePublishedPropPackagePropRegistryType, ) - from .group_0673 import ( + from .group_0680 import ( WebhookPackagePublishedPropPackageType as WebhookPackagePublishedPropPackageType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0674 import ( + from .group_0681 import ( WebhookPackagePublishedPropPackagePropPackageVersionType as WebhookPackagePublishedPropPackagePropPackageVersionType, ) - from .group_0675 import WebhookPackageUpdatedType as WebhookPackageUpdatedType - from .group_0676 import ( + from .group_0682 import WebhookPackageUpdatedType as WebhookPackageUpdatedType + from .group_0683 import ( WebhookPackageUpdatedPropPackagePropOwnerType as WebhookPackageUpdatedPropPackagePropOwnerType, ) - from .group_0676 import ( + from .group_0683 import ( WebhookPackageUpdatedPropPackagePropRegistryType as WebhookPackageUpdatedPropPackagePropRegistryType, ) - from .group_0676 import ( + from .group_0683 import ( WebhookPackageUpdatedPropPackageType as WebhookPackageUpdatedPropPackageType, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0677 import ( + from .group_0684 import ( WebhookPackageUpdatedPropPackagePropPackageVersionType as WebhookPackageUpdatedPropPackagePropPackageVersionType, ) - from .group_0678 import ( + from .group_0685 import ( WebhookPageBuildPropBuildPropErrorType as WebhookPageBuildPropBuildPropErrorType, ) - from .group_0678 import ( + from .group_0685 import ( WebhookPageBuildPropBuildPropPusherType as WebhookPageBuildPropBuildPropPusherType, ) - from .group_0678 import ( + from .group_0685 import ( WebhookPageBuildPropBuildType as WebhookPageBuildPropBuildType, ) - from .group_0678 import WebhookPageBuildType as WebhookPageBuildType - from .group_0679 import ( + from .group_0685 import WebhookPageBuildType as WebhookPageBuildType + from .group_0686 import ( WebhookPersonalAccessTokenRequestApprovedType as WebhookPersonalAccessTokenRequestApprovedType, ) - from .group_0680 import ( + from .group_0687 import ( WebhookPersonalAccessTokenRequestCancelledType as WebhookPersonalAccessTokenRequestCancelledType, ) - from .group_0681 import ( + from .group_0688 import ( WebhookPersonalAccessTokenRequestCreatedType as WebhookPersonalAccessTokenRequestCreatedType, ) - from .group_0682 import ( + from .group_0689 import ( WebhookPersonalAccessTokenRequestDeniedType as WebhookPersonalAccessTokenRequestDeniedType, ) - from .group_0683 import WebhookPingType as WebhookPingType - from .group_0684 import ( + from .group_0690 import WebhookPingType as WebhookPingType + from .group_0691 import ( WebhookPingPropHookPropConfigType as WebhookPingPropHookPropConfigType, ) - from .group_0684 import WebhookPingPropHookType as WebhookPingPropHookType - from .group_0685 import WebhookPingFormEncodedType as WebhookPingFormEncodedType - from .group_0686 import ( + from .group_0691 import WebhookPingPropHookType as WebhookPingPropHookType + from .group_0692 import WebhookPingFormEncodedType as WebhookPingFormEncodedType + from .group_0693 import ( WebhookProjectCardConvertedPropChangesPropNoteType as WebhookProjectCardConvertedPropChangesPropNoteType, ) - from .group_0686 import ( + from .group_0693 import ( WebhookProjectCardConvertedPropChangesType as WebhookProjectCardConvertedPropChangesType, ) - from .group_0686 import ( + from .group_0693 import ( WebhookProjectCardConvertedType as WebhookProjectCardConvertedType, ) - from .group_0687 import ( + from .group_0694 import ( WebhookProjectCardCreatedType as WebhookProjectCardCreatedType, ) - from .group_0688 import ( + from .group_0695 import ( WebhookProjectCardDeletedPropProjectCardPropCreatorType as WebhookProjectCardDeletedPropProjectCardPropCreatorType, ) - from .group_0688 import ( + from .group_0695 import ( WebhookProjectCardDeletedPropProjectCardType as WebhookProjectCardDeletedPropProjectCardType, ) - from .group_0688 import ( + from .group_0695 import ( WebhookProjectCardDeletedType as WebhookProjectCardDeletedType, ) - from .group_0689 import ( + from .group_0696 import ( WebhookProjectCardEditedPropChangesPropNoteType as WebhookProjectCardEditedPropChangesPropNoteType, ) - from .group_0689 import ( + from .group_0696 import ( WebhookProjectCardEditedPropChangesType as WebhookProjectCardEditedPropChangesType, ) - from .group_0689 import WebhookProjectCardEditedType as WebhookProjectCardEditedType - from .group_0690 import ( + from .group_0696 import WebhookProjectCardEditedType as WebhookProjectCardEditedType + from .group_0697 import ( WebhookProjectCardMovedPropChangesPropColumnIdType as WebhookProjectCardMovedPropChangesPropColumnIdType, ) - from .group_0690 import ( + from .group_0697 import ( WebhookProjectCardMovedPropChangesType as WebhookProjectCardMovedPropChangesType, ) - from .group_0690 import ( + from .group_0697 import ( WebhookProjectCardMovedPropProjectCardMergedCreatorType as WebhookProjectCardMovedPropProjectCardMergedCreatorType, ) - from .group_0690 import ( + from .group_0697 import ( WebhookProjectCardMovedPropProjectCardType as WebhookProjectCardMovedPropProjectCardType, ) - from .group_0690 import WebhookProjectCardMovedType as WebhookProjectCardMovedType - from .group_0691 import ( + from .group_0697 import WebhookProjectCardMovedType as WebhookProjectCardMovedType + from .group_0698 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, ) - from .group_0691 import ( + from .group_0698 import ( WebhookProjectCardMovedPropProjectCardAllof0Type as WebhookProjectCardMovedPropProjectCardAllof0Type, ) - from .group_0692 import ( + from .group_0699 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, ) - from .group_0692 import ( + from .group_0699 import ( WebhookProjectCardMovedPropProjectCardAllof1Type as WebhookProjectCardMovedPropProjectCardAllof1Type, ) - from .group_0693 import WebhookProjectClosedType as WebhookProjectClosedType - from .group_0694 import ( + from .group_0700 import WebhookProjectClosedType as WebhookProjectClosedType + from .group_0701 import ( WebhookProjectColumnCreatedType as WebhookProjectColumnCreatedType, ) - from .group_0695 import ( + from .group_0702 import ( WebhookProjectColumnDeletedType as WebhookProjectColumnDeletedType, ) - from .group_0696 import ( + from .group_0703 import ( WebhookProjectColumnEditedPropChangesPropNameType as WebhookProjectColumnEditedPropChangesPropNameType, ) - from .group_0696 import ( + from .group_0703 import ( WebhookProjectColumnEditedPropChangesType as WebhookProjectColumnEditedPropChangesType, ) - from .group_0696 import ( + from .group_0703 import ( WebhookProjectColumnEditedType as WebhookProjectColumnEditedType, ) - from .group_0697 import ( + from .group_0704 import ( WebhookProjectColumnMovedType as WebhookProjectColumnMovedType, ) - from .group_0698 import WebhookProjectCreatedType as WebhookProjectCreatedType - from .group_0699 import WebhookProjectDeletedType as WebhookProjectDeletedType - from .group_0700 import ( + from .group_0705 import WebhookProjectCreatedType as WebhookProjectCreatedType + from .group_0706 import WebhookProjectDeletedType as WebhookProjectDeletedType + from .group_0707 import ( WebhookProjectEditedPropChangesPropBodyType as WebhookProjectEditedPropChangesPropBodyType, ) - from .group_0700 import ( + from .group_0707 import ( WebhookProjectEditedPropChangesPropNameType as WebhookProjectEditedPropChangesPropNameType, ) - from .group_0700 import ( + from .group_0707 import ( WebhookProjectEditedPropChangesType as WebhookProjectEditedPropChangesType, ) - from .group_0700 import WebhookProjectEditedType as WebhookProjectEditedType - from .group_0701 import WebhookProjectReopenedType as WebhookProjectReopenedType - from .group_0702 import ( + from .group_0707 import WebhookProjectEditedType as WebhookProjectEditedType + from .group_0708 import WebhookProjectReopenedType as WebhookProjectReopenedType + from .group_0709 import ( WebhookProjectsV2ProjectClosedType as WebhookProjectsV2ProjectClosedType, ) - from .group_0703 import ( + from .group_0710 import ( WebhookProjectsV2ProjectCreatedType as WebhookProjectsV2ProjectCreatedType, ) - from .group_0704 import ( + from .group_0711 import ( WebhookProjectsV2ProjectDeletedType as WebhookProjectsV2ProjectDeletedType, ) - from .group_0705 import ( + from .group_0712 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType, ) - from .group_0705 import ( + from .group_0712 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublicType as WebhookProjectsV2ProjectEditedPropChangesPropPublicType, ) - from .group_0705 import ( + from .group_0712 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType, ) - from .group_0705 import ( + from .group_0712 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitleType as WebhookProjectsV2ProjectEditedPropChangesPropTitleType, ) - from .group_0705 import ( + from .group_0712 import ( WebhookProjectsV2ProjectEditedPropChangesType as WebhookProjectsV2ProjectEditedPropChangesType, ) - from .group_0705 import ( + from .group_0712 import ( WebhookProjectsV2ProjectEditedType as WebhookProjectsV2ProjectEditedType, ) - from .group_0706 import ( + from .group_0713 import ( WebhookProjectsV2ItemArchivedType as WebhookProjectsV2ItemArchivedType, ) - from .group_0707 import ( + from .group_0714 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType as WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType, ) - from .group_0707 import ( + from .group_0714 import ( WebhookProjectsV2ItemConvertedPropChangesType as WebhookProjectsV2ItemConvertedPropChangesType, ) - from .group_0707 import ( + from .group_0714 import ( WebhookProjectsV2ItemConvertedType as WebhookProjectsV2ItemConvertedType, ) - from .group_0708 import ( + from .group_0715 import ( WebhookProjectsV2ItemCreatedType as WebhookProjectsV2ItemCreatedType, ) - from .group_0709 import ( + from .group_0716 import ( WebhookProjectsV2ItemDeletedType as WebhookProjectsV2ItemDeletedType, ) - from .group_0710 import ( + from .group_0717 import ( ProjectsV2IterationSettingType as ProjectsV2IterationSettingType, ) - from .group_0710 import ( + from .group_0717 import ( ProjectsV2SingleSelectOptionType as ProjectsV2SingleSelectOptionType, ) - from .group_0710 import ( + from .group_0717 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType, ) - from .group_0710 import ( + from .group_0717 import ( WebhookProjectsV2ItemEditedPropChangesOneof0Type as WebhookProjectsV2ItemEditedPropChangesOneof0Type, ) - from .group_0710 import ( + from .group_0717 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType as WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType, ) - from .group_0710 import ( + from .group_0717 import ( WebhookProjectsV2ItemEditedPropChangesOneof1Type as WebhookProjectsV2ItemEditedPropChangesOneof1Type, ) - from .group_0710 import ( + from .group_0717 import ( WebhookProjectsV2ItemEditedType as WebhookProjectsV2ItemEditedType, ) - from .group_0711 import ( + from .group_0718 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType, ) - from .group_0711 import ( + from .group_0718 import ( WebhookProjectsV2ItemReorderedPropChangesType as WebhookProjectsV2ItemReorderedPropChangesType, ) - from .group_0711 import ( + from .group_0718 import ( WebhookProjectsV2ItemReorderedType as WebhookProjectsV2ItemReorderedType, ) - from .group_0712 import ( + from .group_0719 import ( WebhookProjectsV2ItemRestoredType as WebhookProjectsV2ItemRestoredType, ) - from .group_0713 import ( + from .group_0720 import ( WebhookProjectsV2ProjectReopenedType as WebhookProjectsV2ProjectReopenedType, ) - from .group_0714 import ( + from .group_0721 import ( WebhookProjectsV2StatusUpdateCreatedType as WebhookProjectsV2StatusUpdateCreatedType, ) - from .group_0715 import ( + from .group_0722 import ( WebhookProjectsV2StatusUpdateDeletedType as WebhookProjectsV2StatusUpdateDeletedType, ) - from .group_0716 import ( + from .group_0723 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType as WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType, ) - from .group_0716 import ( + from .group_0723 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType, ) - from .group_0716 import ( + from .group_0723 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType, ) - from .group_0716 import ( + from .group_0723 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType, ) - from .group_0716 import ( + from .group_0723 import ( WebhookProjectsV2StatusUpdateEditedPropChangesType as WebhookProjectsV2StatusUpdateEditedPropChangesType, ) - from .group_0716 import ( + from .group_0723 import ( WebhookProjectsV2StatusUpdateEditedType as WebhookProjectsV2StatusUpdateEditedType, ) - from .group_0717 import WebhookPublicType as WebhookPublicType - from .group_0718 import ( + from .group_0724 import WebhookPublicType as WebhookPublicType + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneeType as WebhookPullRequestAssignedPropPullRequestPropAssigneeType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergeType as WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUserType as WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropBaseType as WebhookPullRequestAssignedPropPullRequestPropBaseType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType as WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropHeadType as WebhookPullRequestAssignedPropPullRequestPropHeadType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType as WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropLinksType as WebhookPullRequestAssignedPropPullRequestPropLinksType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropMergedByType as WebhookPullRequestAssignedPropPullRequestPropMergedByType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropMilestoneType as WebhookPullRequestAssignedPropPullRequestPropMilestoneType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestPropUserType as WebhookPullRequestAssignedPropPullRequestPropUserType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedPropPullRequestType as WebhookPullRequestAssignedPropPullRequestType, ) - from .group_0718 import ( + from .group_0725 import ( WebhookPullRequestAssignedType as WebhookPullRequestAssignedType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestType as WebhookPullRequestAutoMergeDisabledPropPullRequestType, ) - from .group_0719 import ( + from .group_0726 import ( WebhookPullRequestAutoMergeDisabledType as WebhookPullRequestAutoMergeDisabledType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestType as WebhookPullRequestAutoMergeEnabledPropPullRequestType, ) - from .group_0720 import ( + from .group_0727 import ( WebhookPullRequestAutoMergeEnabledType as WebhookPullRequestAutoMergeEnabledType, ) - from .group_0721 import WebhookPullRequestClosedType as WebhookPullRequestClosedType - from .group_0722 import ( + from .group_0728 import WebhookPullRequestClosedType as WebhookPullRequestClosedType + from .group_0729 import ( WebhookPullRequestConvertedToDraftType as WebhookPullRequestConvertedToDraftType, ) - from .group_0723 import ( + from .group_0730 import ( WebhookPullRequestDemilestonedType as WebhookPullRequestDemilestonedType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneeType as WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType as WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropBaseType as WebhookPullRequestDequeuedPropPullRequestPropBaseType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadType as WebhookPullRequestDequeuedPropPullRequestPropHeadType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType as WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksType as WebhookPullRequestDequeuedPropPullRequestPropLinksType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedByType as WebhookPullRequestDequeuedPropPullRequestPropMergedByType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestoneType as WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestPropUserType as WebhookPullRequestDequeuedPropPullRequestPropUserType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedPropPullRequestType as WebhookPullRequestDequeuedPropPullRequestType, ) - from .group_0724 import ( + from .group_0731 import ( WebhookPullRequestDequeuedType as WebhookPullRequestDequeuedType, ) - from .group_0725 import ( + from .group_0732 import ( WebhookPullRequestEditedPropChangesPropBasePropRefType as WebhookPullRequestEditedPropChangesPropBasePropRefType, ) - from .group_0725 import ( + from .group_0732 import ( WebhookPullRequestEditedPropChangesPropBasePropShaType as WebhookPullRequestEditedPropChangesPropBasePropShaType, ) - from .group_0725 import ( + from .group_0732 import ( WebhookPullRequestEditedPropChangesPropBaseType as WebhookPullRequestEditedPropChangesPropBaseType, ) - from .group_0725 import ( + from .group_0732 import ( WebhookPullRequestEditedPropChangesPropBodyType as WebhookPullRequestEditedPropChangesPropBodyType, ) - from .group_0725 import ( + from .group_0732 import ( WebhookPullRequestEditedPropChangesPropTitleType as WebhookPullRequestEditedPropChangesPropTitleType, ) - from .group_0725 import ( + from .group_0732 import ( WebhookPullRequestEditedPropChangesType as WebhookPullRequestEditedPropChangesType, ) - from .group_0725 import WebhookPullRequestEditedType as WebhookPullRequestEditedType - from .group_0726 import ( + from .group_0732 import WebhookPullRequestEditedType as WebhookPullRequestEditedType + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropBaseType as WebhookPullRequestEnqueuedPropPullRequestPropBaseType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadType as WebhookPullRequestEnqueuedPropPullRequestPropHeadType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksType as WebhookPullRequestEnqueuedPropPullRequestPropLinksType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedByType as WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType as WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropUserType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedPropPullRequestType as WebhookPullRequestEnqueuedPropPullRequestType, ) - from .group_0726 import ( + from .group_0733 import ( WebhookPullRequestEnqueuedType as WebhookPullRequestEnqueuedType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneeType as WebhookPullRequestLabeledPropPullRequestPropAssigneeType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergeType as WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUserType as WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropBaseType as WebhookPullRequestLabeledPropPullRequestPropBaseType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropHeadType as WebhookPullRequestLabeledPropPullRequestPropHeadType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropLinksType as WebhookPullRequestLabeledPropPullRequestPropLinksType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropMergedByType as WebhookPullRequestLabeledPropPullRequestPropMergedByType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropMilestoneType as WebhookPullRequestLabeledPropPullRequestPropMilestoneType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestPropUserType as WebhookPullRequestLabeledPropPullRequestPropUserType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledPropPullRequestType as WebhookPullRequestLabeledPropPullRequestType, ) - from .group_0727 import ( + from .group_0734 import ( WebhookPullRequestLabeledType as WebhookPullRequestLabeledType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropAssigneeType as WebhookPullRequestLockedPropPullRequestPropAssigneeType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergeType as WebhookPullRequestLockedPropPullRequestPropAutoMergeType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUserType as WebhookPullRequestLockedPropPullRequestPropBasePropUserType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropBaseType as WebhookPullRequestLockedPropPullRequestPropBaseType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUserType as WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropHeadType as WebhookPullRequestLockedPropPullRequestPropHeadType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItemsType as WebhookPullRequestLockedPropPullRequestPropLabelsItemsType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropLinksType as WebhookPullRequestLockedPropPullRequestPropLinksType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropMergedByType as WebhookPullRequestLockedPropPullRequestPropMergedByType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropMilestoneType as WebhookPullRequestLockedPropPullRequestPropMilestoneType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestPropUserType as WebhookPullRequestLockedPropPullRequestPropUserType, ) - from .group_0728 import ( + from .group_0735 import ( WebhookPullRequestLockedPropPullRequestType as WebhookPullRequestLockedPropPullRequestType, ) - from .group_0728 import WebhookPullRequestLockedType as WebhookPullRequestLockedType - from .group_0729 import ( + from .group_0735 import WebhookPullRequestLockedType as WebhookPullRequestLockedType + from .group_0736 import ( WebhookPullRequestMilestonedType as WebhookPullRequestMilestonedType, ) - from .group_0730 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType - from .group_0731 import ( + from .group_0737 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType + from .group_0738 import ( WebhookPullRequestReadyForReviewType as WebhookPullRequestReadyForReviewType, ) - from .group_0732 import ( + from .group_0739 import ( WebhookPullRequestReopenedType as WebhookPullRequestReopenedType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType as WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUserType as WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropCommentType as WebhookPullRequestReviewCommentCreatedPropCommentType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropPullRequestType, ) - from .group_0733 import ( + from .group_0740 import ( WebhookPullRequestReviewCommentCreatedType as WebhookPullRequestReviewCommentCreatedType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestType as WebhookPullRequestReviewCommentDeletedPropPullRequestType, ) - from .group_0734 import ( + from .group_0741 import ( WebhookPullRequestReviewCommentDeletedType as WebhookPullRequestReviewCommentDeletedType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedPropPullRequestType as WebhookPullRequestReviewCommentEditedPropPullRequestType, ) - from .group_0735 import ( + from .group_0742 import ( WebhookPullRequestReviewCommentEditedType as WebhookPullRequestReviewCommentEditedType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBaseType as WebhookPullRequestReviewDismissedPropPullRequestPropBaseType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropUserType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropPullRequestType as WebhookPullRequestReviewDismissedPropPullRequestType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksType as WebhookPullRequestReviewDismissedPropReviewPropLinksType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropReviewPropUserType as WebhookPullRequestReviewDismissedPropReviewPropUserType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedPropReviewType as WebhookPullRequestReviewDismissedPropReviewType, ) - from .group_0736 import ( + from .group_0743 import ( WebhookPullRequestReviewDismissedType as WebhookPullRequestReviewDismissedType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropChangesPropBodyType as WebhookPullRequestReviewEditedPropChangesPropBodyType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropChangesType as WebhookPullRequestReviewEditedPropChangesType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropBaseType as WebhookPullRequestReviewEditedPropPullRequestPropBaseType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadType as WebhookPullRequestReviewEditedPropPullRequestPropHeadType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksType as WebhookPullRequestReviewEditedPropPullRequestPropLinksType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropUserType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedPropPullRequestType as WebhookPullRequestReviewEditedPropPullRequestType, ) - from .group_0737 import ( + from .group_0744 import ( WebhookPullRequestReviewEditedType as WebhookPullRequestReviewEditedType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, ) - from .group_0738 import ( + from .group_0745 import ( WebhookPullRequestReviewRequestRemovedOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0Type, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType, ) - from .group_0739 import ( + from .group_0746 import ( WebhookPullRequestReviewRequestRemovedOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1Type, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestType as WebhookPullRequestReviewRequestedOneof0PropPullRequestType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, ) - from .group_0740 import ( + from .group_0747 import ( WebhookPullRequestReviewRequestedOneof0Type as WebhookPullRequestReviewRequestedOneof0Type, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestType as WebhookPullRequestReviewRequestedOneof1PropPullRequestType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType, ) - from .group_0741 import ( + from .group_0748 import ( WebhookPullRequestReviewRequestedOneof1Type as WebhookPullRequestReviewRequestedOneof1Type, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedPropPullRequestType as WebhookPullRequestReviewSubmittedPropPullRequestType, ) - from .group_0742 import ( + from .group_0749 import ( WebhookPullRequestReviewSubmittedType as WebhookPullRequestReviewSubmittedType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropPullRequestType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedPropThreadType as WebhookPullRequestReviewThreadResolvedPropThreadType, ) - from .group_0743 import ( + from .group_0750 import ( WebhookPullRequestReviewThreadResolvedType as WebhookPullRequestReviewThreadResolvedType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadType as WebhookPullRequestReviewThreadUnresolvedPropThreadType, ) - from .group_0744 import ( + from .group_0751 import ( WebhookPullRequestReviewThreadUnresolvedType as WebhookPullRequestReviewThreadUnresolvedType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneeType as WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType as WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropBaseType as WebhookPullRequestSynchronizePropPullRequestPropBaseType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadType as WebhookPullRequestSynchronizePropPullRequestPropHeadType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType as WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksType as WebhookPullRequestSynchronizePropPullRequestPropLinksType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedByType as WebhookPullRequestSynchronizePropPullRequestPropMergedByType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestoneType as WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestPropUserType as WebhookPullRequestSynchronizePropPullRequestPropUserType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizePropPullRequestType as WebhookPullRequestSynchronizePropPullRequestType, ) - from .group_0745 import ( + from .group_0752 import ( WebhookPullRequestSynchronizeType as WebhookPullRequestSynchronizeType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneeType as WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType as WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropBaseType as WebhookPullRequestUnassignedPropPullRequestPropBaseType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadType as WebhookPullRequestUnassignedPropPullRequestPropHeadType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksType as WebhookPullRequestUnassignedPropPullRequestPropLinksType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedByType as WebhookPullRequestUnassignedPropPullRequestPropMergedByType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestoneType as WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestPropUserType as WebhookPullRequestUnassignedPropPullRequestPropUserType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedPropPullRequestType as WebhookPullRequestUnassignedPropPullRequestType, ) - from .group_0746 import ( + from .group_0753 import ( WebhookPullRequestUnassignedType as WebhookPullRequestUnassignedType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropBaseType as WebhookPullRequestUnlabeledPropPullRequestPropBaseType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadType as WebhookPullRequestUnlabeledPropPullRequestPropHeadType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksType as WebhookPullRequestUnlabeledPropPullRequestPropLinksType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedByType as WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType as WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropUserType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledPropPullRequestType as WebhookPullRequestUnlabeledPropPullRequestType, ) - from .group_0747 import ( + from .group_0754 import ( WebhookPullRequestUnlabeledType as WebhookPullRequestUnlabeledType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneeType as WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType as WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropBaseType as WebhookPullRequestUnlockedPropPullRequestPropBaseType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadType as WebhookPullRequestUnlockedPropPullRequestPropHeadType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksType as WebhookPullRequestUnlockedPropPullRequestPropLinksType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedByType as WebhookPullRequestUnlockedPropPullRequestPropMergedByType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestoneType as WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestPropUserType as WebhookPullRequestUnlockedPropPullRequestPropUserType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedPropPullRequestType as WebhookPullRequestUnlockedPropPullRequestType, ) - from .group_0748 import ( + from .group_0755 import ( WebhookPullRequestUnlockedType as WebhookPullRequestUnlockedType, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropCommitsItemsPropAuthorType as WebhookPushPropCommitsItemsPropAuthorType, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropCommitsItemsPropCommitterType as WebhookPushPropCommitsItemsPropCommitterType, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropCommitsItemsType as WebhookPushPropCommitsItemsType, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropHeadCommitPropAuthorType as WebhookPushPropHeadCommitPropAuthorType, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropHeadCommitPropCommitterType as WebhookPushPropHeadCommitPropCommitterType, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropHeadCommitType as WebhookPushPropHeadCommitType, ) - from .group_0749 import WebhookPushPropPusherType as WebhookPushPropPusherType - from .group_0749 import ( + from .group_0756 import WebhookPushPropPusherType as WebhookPushPropPusherType + from .group_0756 import ( WebhookPushPropRepositoryPropCustomPropertiesType as WebhookPushPropRepositoryPropCustomPropertiesType, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropRepositoryPropLicenseType as WebhookPushPropRepositoryPropLicenseType, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropRepositoryPropOwnerType as WebhookPushPropRepositoryPropOwnerType, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropRepositoryPropPermissionsType as WebhookPushPropRepositoryPropPermissionsType, ) - from .group_0749 import ( + from .group_0756 import ( WebhookPushPropRepositoryType as WebhookPushPropRepositoryType, ) - from .group_0749 import WebhookPushType as WebhookPushType - from .group_0750 import ( + from .group_0756 import WebhookPushType as WebhookPushType + from .group_0757 import ( WebhookRegistryPackagePublishedType as WebhookRegistryPackagePublishedType, ) - from .group_0751 import ( + from .group_0758 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType as WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType, ) - from .group_0751 import ( + from .group_0758 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, ) - from .group_0751 import ( + from .group_0758 import ( WebhookRegistryPackagePublishedPropRegistryPackageType as WebhookRegistryPackagePublishedPropRegistryPackageType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0752 import ( + from .group_0759 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from .group_0753 import ( + from .group_0760 import ( WebhookRegistryPackageUpdatedType as WebhookRegistryPackageUpdatedType, ) - from .group_0754 import ( + from .group_0761 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType, ) - from .group_0754 import ( + from .group_0761 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, ) - from .group_0754 import ( + from .group_0761 import ( WebhookRegistryPackageUpdatedPropRegistryPackageType as WebhookRegistryPackageUpdatedPropRegistryPackageType, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0755 import ( + from .group_0762 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, ) - from .group_0756 import WebhookReleaseCreatedType as WebhookReleaseCreatedType - from .group_0757 import WebhookReleaseDeletedType as WebhookReleaseDeletedType - from .group_0758 import ( + from .group_0763 import WebhookReleaseCreatedType as WebhookReleaseCreatedType + from .group_0764 import WebhookReleaseDeletedType as WebhookReleaseDeletedType + from .group_0765 import ( WebhookReleaseEditedPropChangesPropBodyType as WebhookReleaseEditedPropChangesPropBodyType, ) - from .group_0758 import ( + from .group_0765 import ( WebhookReleaseEditedPropChangesPropMakeLatestType as WebhookReleaseEditedPropChangesPropMakeLatestType, ) - from .group_0758 import ( + from .group_0765 import ( WebhookReleaseEditedPropChangesPropNameType as WebhookReleaseEditedPropChangesPropNameType, ) - from .group_0758 import ( + from .group_0765 import ( WebhookReleaseEditedPropChangesType as WebhookReleaseEditedPropChangesType, ) - from .group_0758 import WebhookReleaseEditedType as WebhookReleaseEditedType - from .group_0759 import ( + from .group_0765 import WebhookReleaseEditedType as WebhookReleaseEditedType + from .group_0766 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0759 import ( + from .group_0766 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsType as WebhookReleasePrereleasedPropReleasePropAssetsItemsType, ) - from .group_0759 import ( + from .group_0766 import ( WebhookReleasePrereleasedPropReleasePropAuthorType as WebhookReleasePrereleasedPropReleasePropAuthorType, ) - from .group_0759 import ( + from .group_0766 import ( WebhookReleasePrereleasedPropReleasePropReactionsType as WebhookReleasePrereleasedPropReleasePropReactionsType, ) - from .group_0759 import ( + from .group_0766 import ( WebhookReleasePrereleasedPropReleaseType as WebhookReleasePrereleasedPropReleaseType, ) - from .group_0759 import ( + from .group_0766 import ( WebhookReleasePrereleasedType as WebhookReleasePrereleasedType, ) - from .group_0760 import WebhookReleasePublishedType as WebhookReleasePublishedType - from .group_0761 import WebhookReleaseReleasedType as WebhookReleaseReleasedType - from .group_0762 import ( + from .group_0767 import WebhookReleasePublishedType as WebhookReleasePublishedType + from .group_0768 import WebhookReleaseReleasedType as WebhookReleaseReleasedType + from .group_0769 import ( WebhookReleaseUnpublishedType as WebhookReleaseUnpublishedType, ) - from .group_0763 import ( + from .group_0770 import ( WebhookRepositoryAdvisoryPublishedType as WebhookRepositoryAdvisoryPublishedType, ) - from .group_0764 import ( + from .group_0771 import ( WebhookRepositoryAdvisoryReportedType as WebhookRepositoryAdvisoryReportedType, ) - from .group_0765 import ( + from .group_0772 import ( WebhookRepositoryArchivedType as WebhookRepositoryArchivedType, ) - from .group_0766 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType - from .group_0767 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType - from .group_0768 import ( + from .group_0773 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType + from .group_0774 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType + from .group_0775 import ( WebhookRepositoryDispatchSamplePropClientPayloadType as WebhookRepositoryDispatchSamplePropClientPayloadType, ) - from .group_0768 import ( + from .group_0775 import ( WebhookRepositoryDispatchSampleType as WebhookRepositoryDispatchSampleType, ) - from .group_0769 import ( + from .group_0776 import ( WebhookRepositoryEditedPropChangesPropDefaultBranchType as WebhookRepositoryEditedPropChangesPropDefaultBranchType, ) - from .group_0769 import ( + from .group_0776 import ( WebhookRepositoryEditedPropChangesPropDescriptionType as WebhookRepositoryEditedPropChangesPropDescriptionType, ) - from .group_0769 import ( + from .group_0776 import ( WebhookRepositoryEditedPropChangesPropHomepageType as WebhookRepositoryEditedPropChangesPropHomepageType, ) - from .group_0769 import ( + from .group_0776 import ( WebhookRepositoryEditedPropChangesPropTopicsType as WebhookRepositoryEditedPropChangesPropTopicsType, ) - from .group_0769 import ( + from .group_0776 import ( WebhookRepositoryEditedPropChangesType as WebhookRepositoryEditedPropChangesType, ) - from .group_0769 import WebhookRepositoryEditedType as WebhookRepositoryEditedType - from .group_0770 import WebhookRepositoryImportType as WebhookRepositoryImportType - from .group_0771 import ( + from .group_0776 import WebhookRepositoryEditedType as WebhookRepositoryEditedType + from .group_0777 import WebhookRepositoryImportType as WebhookRepositoryImportType + from .group_0778 import ( WebhookRepositoryPrivatizedType as WebhookRepositoryPrivatizedType, ) - from .group_0772 import ( + from .group_0779 import ( WebhookRepositoryPublicizedType as WebhookRepositoryPublicizedType, ) - from .group_0773 import ( + from .group_0780 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType as WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType, ) - from .group_0773 import ( + from .group_0780 import ( WebhookRepositoryRenamedPropChangesPropRepositoryType as WebhookRepositoryRenamedPropChangesPropRepositoryType, ) - from .group_0773 import ( + from .group_0780 import ( WebhookRepositoryRenamedPropChangesType as WebhookRepositoryRenamedPropChangesType, ) - from .group_0773 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType - from .group_0774 import ( + from .group_0780 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType + from .group_0781 import ( WebhookRepositoryRulesetCreatedType as WebhookRepositoryRulesetCreatedType, ) - from .group_0775 import ( + from .group_0782 import ( WebhookRepositoryRulesetDeletedType as WebhookRepositoryRulesetDeletedType, ) - from .group_0776 import ( + from .group_0783 import ( WebhookRepositoryRulesetEditedType as WebhookRepositoryRulesetEditedType, ) - from .group_0777 import ( + from .group_0784 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcementType as WebhookRepositoryRulesetEditedPropChangesPropEnforcementType, ) - from .group_0777 import ( + from .group_0784 import ( WebhookRepositoryRulesetEditedPropChangesPropNameType as WebhookRepositoryRulesetEditedPropChangesPropNameType, ) - from .group_0777 import ( + from .group_0784 import ( WebhookRepositoryRulesetEditedPropChangesType as WebhookRepositoryRulesetEditedPropChangesType, ) - from .group_0778 import ( + from .group_0785 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsType, ) - from .group_0779 import ( + from .group_0786 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType, ) - from .group_0779 import ( + from .group_0786 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType, ) - from .group_0779 import ( + from .group_0786 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType, ) - from .group_0779 import ( + from .group_0786 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType, ) - from .group_0779 import ( + from .group_0786 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType, ) - from .group_0779 import ( + from .group_0786 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, ) - from .group_0780 import ( + from .group_0787 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesType as WebhookRepositoryRulesetEditedPropChangesPropRulesType, ) - from .group_0781 import ( + from .group_0788 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType, ) - from .group_0781 import ( + from .group_0788 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType, ) - from .group_0781 import ( + from .group_0788 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType, ) - from .group_0781 import ( + from .group_0788 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType, ) - from .group_0781 import ( + from .group_0788 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, ) - from .group_0782 import ( + from .group_0789 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType, ) - from .group_0782 import ( + from .group_0789 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, ) - from .group_0782 import ( + from .group_0789 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromType, ) - from .group_0782 import ( + from .group_0789 import ( WebhookRepositoryTransferredPropChangesPropOwnerType as WebhookRepositoryTransferredPropChangesPropOwnerType, ) - from .group_0782 import ( + from .group_0789 import ( WebhookRepositoryTransferredPropChangesType as WebhookRepositoryTransferredPropChangesType, ) - from .group_0782 import ( + from .group_0789 import ( WebhookRepositoryTransferredType as WebhookRepositoryTransferredType, ) - from .group_0783 import ( + from .group_0790 import ( WebhookRepositoryUnarchivedType as WebhookRepositoryUnarchivedType, ) - from .group_0784 import ( + from .group_0791 import ( WebhookRepositoryVulnerabilityAlertCreateType as WebhookRepositoryVulnerabilityAlertCreateType, ) - from .group_0785 import ( + from .group_0792 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, ) - from .group_0785 import ( + from .group_0792 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertType as WebhookRepositoryVulnerabilityAlertDismissPropAlertType, ) - from .group_0785 import ( + from .group_0792 import ( WebhookRepositoryVulnerabilityAlertDismissType as WebhookRepositoryVulnerabilityAlertDismissType, ) - from .group_0786 import ( + from .group_0793 import ( WebhookRepositoryVulnerabilityAlertReopenType as WebhookRepositoryVulnerabilityAlertReopenType, ) - from .group_0787 import ( + from .group_0794 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, ) - from .group_0787 import ( + from .group_0794 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertType as WebhookRepositoryVulnerabilityAlertResolvePropAlertType, ) - from .group_0787 import ( + from .group_0794 import ( WebhookRepositoryVulnerabilityAlertResolveType as WebhookRepositoryVulnerabilityAlertResolveType, ) - from .group_0788 import ( + from .group_0795 import ( WebhookSecretScanningAlertCreatedType as WebhookSecretScanningAlertCreatedType, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationCommitType as SecretScanningLocationCommitType, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationDiscussionCommentType as SecretScanningLocationDiscussionCommentType, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationDiscussionTitleType as SecretScanningLocationDiscussionTitleType, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationIssueCommentType as SecretScanningLocationIssueCommentType, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationIssueTitleType as SecretScanningLocationIssueTitleType, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationPullRequestBodyType as SecretScanningLocationPullRequestBodyType, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationPullRequestCommentType as SecretScanningLocationPullRequestCommentType, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationPullRequestReviewCommentType as SecretScanningLocationPullRequestReviewCommentType, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationPullRequestReviewType as SecretScanningLocationPullRequestReviewType, ) - from .group_0789 import ( + from .group_0796 import ( SecretScanningLocationPullRequestTitleType as SecretScanningLocationPullRequestTitleType, ) - from .group_0789 import SecretScanningLocationType as SecretScanningLocationType - from .group_0789 import ( + from .group_0796 import SecretScanningLocationType as SecretScanningLocationType + from .group_0796 import ( SecretScanningLocationWikiCommitType as SecretScanningLocationWikiCommitType, ) - from .group_0789 import ( + from .group_0796 import ( WebhookSecretScanningAlertLocationCreatedType as WebhookSecretScanningAlertLocationCreatedType, ) - from .group_0790 import ( + from .group_0797 import ( WebhookSecretScanningAlertLocationCreatedFormEncodedType as WebhookSecretScanningAlertLocationCreatedFormEncodedType, ) - from .group_0791 import ( + from .group_0798 import ( WebhookSecretScanningAlertPubliclyLeakedType as WebhookSecretScanningAlertPubliclyLeakedType, ) - from .group_0792 import ( + from .group_0799 import ( WebhookSecretScanningAlertReopenedType as WebhookSecretScanningAlertReopenedType, ) - from .group_0793 import ( + from .group_0800 import ( WebhookSecretScanningAlertResolvedType as WebhookSecretScanningAlertResolvedType, ) - from .group_0794 import ( + from .group_0801 import ( WebhookSecretScanningAlertValidatedType as WebhookSecretScanningAlertValidatedType, ) - from .group_0795 import ( + from .group_0802 import ( WebhookSecretScanningScanCompletedType as WebhookSecretScanningScanCompletedType, ) - from .group_0796 import ( + from .group_0803 import ( WebhookSecurityAdvisoryPublishedType as WebhookSecurityAdvisoryPublishedType, ) - from .group_0797 import ( + from .group_0804 import ( WebhookSecurityAdvisoryUpdatedType as WebhookSecurityAdvisoryUpdatedType, ) - from .group_0798 import ( + from .group_0805 import ( WebhookSecurityAdvisoryWithdrawnType as WebhookSecurityAdvisoryWithdrawnType, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0799 import ( + from .group_0806 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType, ) - from .group_0800 import ( + from .group_0807 import ( WebhookSecurityAndAnalysisType as WebhookSecurityAndAnalysisType, ) - from .group_0801 import ( + from .group_0808 import ( WebhookSecurityAndAnalysisPropChangesType as WebhookSecurityAndAnalysisPropChangesType, ) - from .group_0802 import ( + from .group_0809 import ( WebhookSecurityAndAnalysisPropChangesPropFromType as WebhookSecurityAndAnalysisPropChangesPropFromType, ) - from .group_0803 import ( + from .group_0810 import ( WebhookSponsorshipCancelledType as WebhookSponsorshipCancelledType, ) - from .group_0804 import ( + from .group_0811 import ( WebhookSponsorshipCreatedType as WebhookSponsorshipCreatedType, ) - from .group_0805 import ( + from .group_0812 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevelType as WebhookSponsorshipEditedPropChangesPropPrivacyLevelType, ) - from .group_0805 import ( + from .group_0812 import ( WebhookSponsorshipEditedPropChangesType as WebhookSponsorshipEditedPropChangesType, ) - from .group_0805 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType - from .group_0806 import ( + from .group_0812 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType + from .group_0813 import ( WebhookSponsorshipPendingCancellationType as WebhookSponsorshipPendingCancellationType, ) - from .group_0807 import ( + from .group_0814 import ( WebhookSponsorshipPendingTierChangeType as WebhookSponsorshipPendingTierChangeType, ) - from .group_0808 import ( + from .group_0815 import ( WebhookSponsorshipTierChangedType as WebhookSponsorshipTierChangedType, ) - from .group_0809 import WebhookStarCreatedType as WebhookStarCreatedType - from .group_0810 import WebhookStarDeletedType as WebhookStarDeletedType - from .group_0811 import ( + from .group_0816 import WebhookStarCreatedType as WebhookStarCreatedType + from .group_0817 import WebhookStarDeletedType as WebhookStarDeletedType + from .group_0818 import ( WebhookStatusPropBranchesItemsPropCommitType as WebhookStatusPropBranchesItemsPropCommitType, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropBranchesItemsType as WebhookStatusPropBranchesItemsType, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropAuthorType as WebhookStatusPropCommitPropAuthorType, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropCommitPropAuthorType as WebhookStatusPropCommitPropCommitPropAuthorType, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitPropCommitterType, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropCommitPropTreeType as WebhookStatusPropCommitPropCommitPropTreeType, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropCommitPropVerificationType as WebhookStatusPropCommitPropCommitPropVerificationType, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitterType, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropCommitType as WebhookStatusPropCommitPropCommitType, ) - from .group_0811 import ( + from .group_0818 import ( WebhookStatusPropCommitPropParentsItemsType as WebhookStatusPropCommitPropParentsItemsType, ) - from .group_0811 import WebhookStatusPropCommitType as WebhookStatusPropCommitType - from .group_0811 import WebhookStatusType as WebhookStatusType - from .group_0812 import ( + from .group_0818 import WebhookStatusPropCommitType as WebhookStatusPropCommitType + from .group_0818 import WebhookStatusType as WebhookStatusType + from .group_0819 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0Type as WebhookStatusPropCommitPropCommitPropAuthorAllof0Type, ) - from .group_0813 import ( + from .group_0820 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1Type as WebhookStatusPropCommitPropCommitPropAuthorAllof1Type, ) - from .group_0814 import ( + from .group_0821 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0Type as WebhookStatusPropCommitPropCommitPropCommitterAllof0Type, ) - from .group_0815 import ( + from .group_0822 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1Type as WebhookStatusPropCommitPropCommitPropCommitterAllof1Type, ) - from .group_0816 import ( + from .group_0823 import ( WebhookSubIssuesParentIssueAddedType as WebhookSubIssuesParentIssueAddedType, ) - from .group_0817 import ( + from .group_0824 import ( WebhookSubIssuesParentIssueRemovedType as WebhookSubIssuesParentIssueRemovedType, ) - from .group_0818 import ( + from .group_0825 import ( WebhookSubIssuesSubIssueAddedType as WebhookSubIssuesSubIssueAddedType, ) - from .group_0819 import ( + from .group_0826 import ( WebhookSubIssuesSubIssueRemovedType as WebhookSubIssuesSubIssueRemovedType, ) - from .group_0820 import WebhookTeamAddType as WebhookTeamAddType - from .group_0821 import ( + from .group_0827 import WebhookTeamAddType as WebhookTeamAddType + from .group_0828 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0821 import ( + from .group_0828 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType as WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, ) - from .group_0821 import ( + from .group_0828 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType as WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, ) - from .group_0821 import ( + from .group_0828 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType as WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType, ) - from .group_0821 import ( + from .group_0828 import ( WebhookTeamAddedToRepositoryPropRepositoryType as WebhookTeamAddedToRepositoryPropRepositoryType, ) - from .group_0821 import ( + from .group_0828 import ( WebhookTeamAddedToRepositoryType as WebhookTeamAddedToRepositoryType, ) - from .group_0822 import ( + from .group_0829 import ( WebhookTeamCreatedPropRepositoryPropCustomPropertiesType as WebhookTeamCreatedPropRepositoryPropCustomPropertiesType, ) - from .group_0822 import ( + from .group_0829 import ( WebhookTeamCreatedPropRepositoryPropLicenseType as WebhookTeamCreatedPropRepositoryPropLicenseType, ) - from .group_0822 import ( + from .group_0829 import ( WebhookTeamCreatedPropRepositoryPropOwnerType as WebhookTeamCreatedPropRepositoryPropOwnerType, ) - from .group_0822 import ( + from .group_0829 import ( WebhookTeamCreatedPropRepositoryPropPermissionsType as WebhookTeamCreatedPropRepositoryPropPermissionsType, ) - from .group_0822 import ( + from .group_0829 import ( WebhookTeamCreatedPropRepositoryType as WebhookTeamCreatedPropRepositoryType, ) - from .group_0822 import WebhookTeamCreatedType as WebhookTeamCreatedType - from .group_0823 import ( + from .group_0829 import WebhookTeamCreatedType as WebhookTeamCreatedType + from .group_0830 import ( WebhookTeamDeletedPropRepositoryPropCustomPropertiesType as WebhookTeamDeletedPropRepositoryPropCustomPropertiesType, ) - from .group_0823 import ( + from .group_0830 import ( WebhookTeamDeletedPropRepositoryPropLicenseType as WebhookTeamDeletedPropRepositoryPropLicenseType, ) - from .group_0823 import ( + from .group_0830 import ( WebhookTeamDeletedPropRepositoryPropOwnerType as WebhookTeamDeletedPropRepositoryPropOwnerType, ) - from .group_0823 import ( + from .group_0830 import ( WebhookTeamDeletedPropRepositoryPropPermissionsType as WebhookTeamDeletedPropRepositoryPropPermissionsType, ) - from .group_0823 import ( + from .group_0830 import ( WebhookTeamDeletedPropRepositoryType as WebhookTeamDeletedPropRepositoryType, ) - from .group_0823 import WebhookTeamDeletedType as WebhookTeamDeletedType - from .group_0824 import ( + from .group_0830 import WebhookTeamDeletedType as WebhookTeamDeletedType + from .group_0831 import ( WebhookTeamEditedPropChangesPropDescriptionType as WebhookTeamEditedPropChangesPropDescriptionType, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesPropNameType as WebhookTeamEditedPropChangesPropNameType, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesPropNotificationSettingType as WebhookTeamEditedPropChangesPropNotificationSettingType, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesPropPrivacyType as WebhookTeamEditedPropChangesPropPrivacyType, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesPropRepositoryType as WebhookTeamEditedPropChangesPropRepositoryType, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropChangesType as WebhookTeamEditedPropChangesType, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropRepositoryPropCustomPropertiesType as WebhookTeamEditedPropRepositoryPropCustomPropertiesType, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropRepositoryPropLicenseType as WebhookTeamEditedPropRepositoryPropLicenseType, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropRepositoryPropOwnerType as WebhookTeamEditedPropRepositoryPropOwnerType, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropRepositoryPropPermissionsType as WebhookTeamEditedPropRepositoryPropPermissionsType, ) - from .group_0824 import ( + from .group_0831 import ( WebhookTeamEditedPropRepositoryType as WebhookTeamEditedPropRepositoryType, ) - from .group_0824 import WebhookTeamEditedType as WebhookTeamEditedType - from .group_0825 import ( + from .group_0831 import WebhookTeamEditedType as WebhookTeamEditedType + from .group_0832 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0825 import ( + from .group_0832 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, ) - from .group_0825 import ( + from .group_0832 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, ) - from .group_0825 import ( + from .group_0832 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType, ) - from .group_0825 import ( + from .group_0832 import ( WebhookTeamRemovedFromRepositoryPropRepositoryType as WebhookTeamRemovedFromRepositoryPropRepositoryType, ) - from .group_0825 import ( + from .group_0832 import ( WebhookTeamRemovedFromRepositoryType as WebhookTeamRemovedFromRepositoryType, ) - from .group_0826 import WebhookWatchStartedType as WebhookWatchStartedType - from .group_0827 import ( + from .group_0833 import WebhookWatchStartedType as WebhookWatchStartedType + from .group_0834 import ( WebhookWorkflowDispatchPropInputsType as WebhookWorkflowDispatchPropInputsType, ) - from .group_0827 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType - from .group_0828 import ( + from .group_0834 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType + from .group_0835 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType as WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType, ) - from .group_0828 import ( + from .group_0835 import ( WebhookWorkflowJobCompletedPropWorkflowJobType as WebhookWorkflowJobCompletedPropWorkflowJobType, ) - from .group_0828 import ( + from .group_0835 import ( WebhookWorkflowJobCompletedType as WebhookWorkflowJobCompletedType, ) - from .group_0829 import ( + from .group_0836 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0829 import ( + from .group_0836 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type, ) - from .group_0830 import ( + from .group_0837 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0830 import ( + from .group_0837 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type, ) - from .group_0831 import ( + from .group_0838 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType as WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType, ) - from .group_0831 import ( + from .group_0838 import ( WebhookWorkflowJobInProgressPropWorkflowJobType as WebhookWorkflowJobInProgressPropWorkflowJobType, ) - from .group_0831 import ( + from .group_0838 import ( WebhookWorkflowJobInProgressType as WebhookWorkflowJobInProgressType, ) - from .group_0832 import ( + from .group_0839 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0832 import ( + from .group_0839 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type, ) - from .group_0833 import ( + from .group_0840 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0833 import ( + from .group_0840 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type, ) - from .group_0834 import ( + from .group_0841 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType, ) - from .group_0834 import ( + from .group_0841 import ( WebhookWorkflowJobQueuedPropWorkflowJobType as WebhookWorkflowJobQueuedPropWorkflowJobType, ) - from .group_0834 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType - from .group_0835 import ( + from .group_0841 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType + from .group_0842 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType, ) - from .group_0835 import ( + from .group_0842 import ( WebhookWorkflowJobWaitingPropWorkflowJobType as WebhookWorkflowJobWaitingPropWorkflowJobType, ) - from .group_0835 import ( + from .group_0842 import ( WebhookWorkflowJobWaitingType as WebhookWorkflowJobWaitingType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedPropWorkflowRunType as WebhookWorkflowRunCompletedPropWorkflowRunType, ) - from .group_0836 import ( + from .group_0843 import ( WebhookWorkflowRunCompletedType as WebhookWorkflowRunCompletedType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressPropWorkflowRunType as WebhookWorkflowRunInProgressPropWorkflowRunType, ) - from .group_0837 import ( + from .group_0844 import ( WebhookWorkflowRunInProgressType as WebhookWorkflowRunInProgressType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedPropWorkflowRunType as WebhookWorkflowRunRequestedPropWorkflowRunType, ) - from .group_0838 import ( + from .group_0845 import ( WebhookWorkflowRunRequestedType as WebhookWorkflowRunRequestedType, ) - from .group_0839 import ( + from .group_0846 import ( AppManifestsCodeConversionsPostResponse201Type as AppManifestsCodeConversionsPostResponse201Type, ) - from .group_0840 import ( + from .group_0847 import ( AppManifestsCodeConversionsPostResponse201Allof1Type as AppManifestsCodeConversionsPostResponse201Allof1Type, ) - from .group_0841 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType - from .group_0842 import ( + from .group_0848 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType + from .group_0849 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type as AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, ) - from .group_0843 import ( + from .group_0850 import ( AppInstallationsInstallationIdAccessTokensPostBodyType as AppInstallationsInstallationIdAccessTokensPostBodyType, ) - from .group_0844 import ( + from .group_0851 import ( ApplicationsClientIdGrantDeleteBodyType as ApplicationsClientIdGrantDeleteBodyType, ) - from .group_0845 import ( + from .group_0852 import ( ApplicationsClientIdTokenPostBodyType as ApplicationsClientIdTokenPostBodyType, ) - from .group_0846 import ( + from .group_0853 import ( ApplicationsClientIdTokenDeleteBodyType as ApplicationsClientIdTokenDeleteBodyType, ) - from .group_0847 import ( + from .group_0854 import ( ApplicationsClientIdTokenPatchBodyType as ApplicationsClientIdTokenPatchBodyType, ) - from .group_0848 import ( + from .group_0855 import ( ApplicationsClientIdTokenScopedPostBodyType as ApplicationsClientIdTokenScopedPostBodyType, ) - from .group_0849 import EmojisGetResponse200Type as EmojisGetResponse200Type - from .group_0850 import ( + from .group_0856 import EmojisGetResponse200Type as EmojisGetResponse200Type + from .group_0857 import ( + EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type, + ) + from .group_0858 import ( + EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType as EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType, + ) + from .group_0858 import ( + EnterprisesEnterpriseActionsHostedRunnersPostBodyType as EnterprisesEnterpriseActionsHostedRunnersPostBodyType, + ) + from .group_0859 import ( + EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type, + ) + from .group_0860 import ( + EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type, + ) + from .group_0861 import ( + EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type, + ) + from .group_0862 import ( + EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type, + ) + from .group_0863 import ( + EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType as EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType, + ) + from .group_0864 import ( EnterprisesEnterpriseActionsPermissionsPutBodyType as EnterprisesEnterpriseActionsPermissionsPutBodyType, ) - from .group_0851 import ( + from .group_0865 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type as EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type, ) - from .group_0852 import ( + from .group_0866 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType as EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType, ) - from .group_0853 import ( + from .group_0867 import ( EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type, ) - from .group_0853 import RunnerGroupsEnterpriseType as RunnerGroupsEnterpriseType - from .group_0854 import ( + from .group_0867 import RunnerGroupsEnterpriseType as RunnerGroupsEnterpriseType + from .group_0868 import ( EnterprisesEnterpriseActionsRunnerGroupsPostBodyType as EnterprisesEnterpriseActionsRunnerGroupsPostBodyType, ) - from .group_0855 import ( + from .group_0869 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0856 import ( + from .group_0870 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type, ) - from .group_0857 import ( + from .group_0871 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType, ) - from .group_0858 import ( + from .group_0872 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0859 import ( + from .group_0873 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0860 import ( + from .group_0874 import ( EnterprisesEnterpriseActionsRunnersGetResponse200Type as EnterprisesEnterpriseActionsRunnersGetResponse200Type, ) - from .group_0861 import ( + from .group_0875 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0862 import ( + from .group_0876 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, ) - from .group_0863 import ( + from .group_0877 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type, ) - from .group_0864 import ( + from .group_0878 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0865 import ( + from .group_0879 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0866 import ( + from .group_0880 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type, ) - from .group_0867 import ( + from .group_0881 import ( EnterprisesEnterpriseAuditLogStreamsPostBodyType as EnterprisesEnterpriseAuditLogStreamsPostBodyType, ) - from .group_0868 import ( + from .group_0882 import ( EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType as EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType, ) - from .group_0869 import ( + from .group_0883 import ( EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type as EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type, ) - from .group_0870 import ( + from .group_0884 import ( EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type as EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type, ) - from .group_0871 import ( + from .group_0885 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0871 import ( + from .group_0885 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType, ) - from .group_0872 import ( + from .group_0886 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0872 import ( + from .group_0886 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_0873 import ( + from .group_0887 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_0874 import ( + from .group_0888 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0875 import ( + from .group_0889 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0876 import ( + from .group_0890 import ( EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType as EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType, ) - from .group_0877 import ( + from .group_0891 import ( EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type, ) - from .group_0878 import ( + from .group_0892 import ( + EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type as EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type, + ) + from .group_0893 import ( + EnterprisesEnterpriseNetworkConfigurationsPostBodyType as EnterprisesEnterpriseNetworkConfigurationsPostBodyType, + ) + from .group_0894 import ( + EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType as EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + ) + from .group_0895 import ( EnterprisesEnterprisePropertiesSchemaPatchBodyType as EnterprisesEnterprisePropertiesSchemaPatchBodyType, ) - from .group_0879 import ( + from .group_0896 import ( EnterprisesEnterpriseRulesetsPostBodyType as EnterprisesEnterpriseRulesetsPostBodyType, ) - from .group_0880 import ( + from .group_0897 import ( EnterprisesEnterpriseRulesetsRulesetIdPutBodyType as EnterprisesEnterpriseRulesetsRulesetIdPutBodyType, ) - from .group_0881 import ( + from .group_0898 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType, ) - from .group_0882 import ( + from .group_0899 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type, ) - from .group_0883 import ( + from .group_0900 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType, ) - from .group_0884 import ( + from .group_0901 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type, ) - from .group_0885 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType - from .group_0885 import GistsPostBodyType as GistsPostBodyType - from .group_0886 import ( + from .group_0902 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType + from .group_0902 import GistsPostBodyType as GistsPostBodyType + from .group_0903 import ( GistsGistIdGetResponse403PropBlockType as GistsGistIdGetResponse403PropBlockType, ) - from .group_0886 import ( + from .group_0903 import ( GistsGistIdGetResponse403Type as GistsGistIdGetResponse403Type, ) - from .group_0887 import ( + from .group_0904 import ( GistsGistIdPatchBodyPropFilesType as GistsGistIdPatchBodyPropFilesType, ) - from .group_0887 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType - from .group_0888 import ( + from .group_0904 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType + from .group_0905 import ( GistsGistIdCommentsPostBodyType as GistsGistIdCommentsPostBodyType, ) - from .group_0889 import ( + from .group_0906 import ( GistsGistIdCommentsCommentIdPatchBodyType as GistsGistIdCommentsCommentIdPatchBodyType, ) - from .group_0890 import ( + from .group_0907 import ( GistsGistIdStarGetResponse404Type as GistsGistIdStarGetResponse404Type, ) - from .group_0891 import ( + from .group_0908 import ( InstallationRepositoriesGetResponse200Type as InstallationRepositoriesGetResponse200Type, ) - from .group_0892 import MarkdownPostBodyType as MarkdownPostBodyType - from .group_0893 import NotificationsPutBodyType as NotificationsPutBodyType - from .group_0894 import ( + from .group_0909 import MarkdownPostBodyType as MarkdownPostBodyType + from .group_0910 import NotificationsPutBodyType as NotificationsPutBodyType + from .group_0911 import ( NotificationsPutResponse202Type as NotificationsPutResponse202Type, ) - from .group_0895 import ( + from .group_0912 import ( NotificationsThreadsThreadIdSubscriptionPutBodyType as NotificationsThreadsThreadIdSubscriptionPutBodyType, ) - from .group_0896 import ( + from .group_0913 import ( OrganizationsOrganizationIdCustomRolesGetResponse200Type as OrganizationsOrganizationIdCustomRolesGetResponse200Type, ) - from .group_0897 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType - from .group_0898 import ( + from .group_0914 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType + from .group_0915 import ( ActionsCacheUsageByRepositoryType as ActionsCacheUsageByRepositoryType, ) - from .group_0898 import ( + from .group_0915 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type as OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, ) - from .group_0899 import ( + from .group_0916 import ( + OrgsOrgActionsHostedRunnersGetResponse200Type as OrgsOrgActionsHostedRunnersGetResponse200Type, + ) + from .group_0917 import ( + OrgsOrgActionsHostedRunnersPostBodyPropImageType as OrgsOrgActionsHostedRunnersPostBodyPropImageType, + ) + from .group_0917 import ( + OrgsOrgActionsHostedRunnersPostBodyType as OrgsOrgActionsHostedRunnersPostBodyType, + ) + from .group_0918 import ( + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, + ) + from .group_0919 import ( + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, + ) + from .group_0920 import ( + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, + ) + from .group_0921 import ( + OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type as OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, + ) + from .group_0922 import ( + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, + ) + from .group_0923 import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) - from .group_0900 import ( + from .group_0924 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200Type as OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, ) - from .group_0901 import ( + from .group_0925 import ( OrgsOrgActionsPermissionsRepositoriesPutBodyType as OrgsOrgActionsPermissionsRepositoriesPutBodyType, ) - from .group_0902 import ( + from .group_0926 import ( OrgsOrgActionsRunnerGroupsGetResponse200Type as OrgsOrgActionsRunnerGroupsGetResponse200Type, ) - from .group_0902 import RunnerGroupsOrgType as RunnerGroupsOrgType - from .group_0903 import ( + from .group_0926 import RunnerGroupsOrgType as RunnerGroupsOrgType + from .group_0927 import ( OrgsOrgActionsRunnerGroupsPostBodyType as OrgsOrgActionsRunnerGroupsPostBodyType, ) - from .group_0904 import ( + from .group_0928 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0905 import ( + from .group_0929 import ( + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, + ) + from .group_0930 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type, ) - from .group_0906 import ( + from .group_0931 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType, ) - from .group_0907 import ( + from .group_0932 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0908 import ( + from .group_0933 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0909 import ( + from .group_0934 import ( OrgsOrgActionsRunnersGetResponse200Type as OrgsOrgActionsRunnersGetResponse200Type, ) - from .group_0910 import ( + from .group_0935 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBodyType as OrgsOrgActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0911 import ( + from .group_0936 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0912 import ( + from .group_0937 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0913 import ( + from .group_0938 import ( OrganizationActionsSecretType as OrganizationActionsSecretType, ) - from .group_0913 import ( + from .group_0938 import ( OrgsOrgActionsSecretsGetResponse200Type as OrgsOrgActionsSecretsGetResponse200Type, ) - from .group_0914 import ( + from .group_0939 import ( OrgsOrgActionsSecretsSecretNamePutBodyType as OrgsOrgActionsSecretsSecretNamePutBodyType, ) - from .group_0915 import ( + from .group_0940 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0916 import ( + from .group_0941 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType as OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0917 import ( + from .group_0942 import ( OrganizationActionsVariableType as OrganizationActionsVariableType, ) - from .group_0917 import ( + from .group_0942 import ( OrgsOrgActionsVariablesGetResponse200Type as OrgsOrgActionsVariablesGetResponse200Type, ) - from .group_0918 import ( + from .group_0943 import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) - from .group_0919 import ( + from .group_0944 import ( OrgsOrgActionsVariablesNamePatchBodyType as OrgsOrgActionsVariablesNamePatchBodyType, ) - from .group_0920 import ( + from .group_0945 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type as OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type, ) - from .group_0921 import ( + from .group_0946 import ( OrgsOrgActionsVariablesNameRepositoriesPutBodyType as OrgsOrgActionsVariablesNameRepositoriesPutBodyType, ) - from .group_0922 import ( + from .group_0947 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_0922 import ( + from .group_0947 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_0922 import ( + from .group_0947 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_0922 import ( + from .group_0947 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_0922 import ( + from .group_0947 import ( OrgsOrgAttestationsSubjectDigestGetResponse200Type as OrgsOrgAttestationsSubjectDigestGetResponse200Type, ) - from .group_0923 import ( + from .group_0948 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0923 import ( + from .group_0948 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_0923 import ( + from .group_0948 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType, ) - from .group_0923 import ( + from .group_0948 import ( OrgsOrgCodeSecurityConfigurationsPostBodyType as OrgsOrgCodeSecurityConfigurationsPostBodyType, ) - from .group_0924 import ( + from .group_0949 import ( OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType as OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, ) - from .group_0925 import ( + from .group_0950 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0925 import ( + from .group_0950 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_0925 import ( + from .group_0950 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType, ) - from .group_0925 import ( + from .group_0950 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_0926 import ( + from .group_0951 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_0927 import ( + from .group_0952 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0928 import ( + from .group_0953 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0929 import ( + from .group_0954 import ( OrgsOrgCodespacesGetResponse200Type as OrgsOrgCodespacesGetResponse200Type, ) - from .group_0930 import ( + from .group_0955 import ( OrgsOrgCodespacesAccessPutBodyType as OrgsOrgCodespacesAccessPutBodyType, ) - from .group_0931 import ( + from .group_0956 import ( OrgsOrgCodespacesAccessSelectedUsersPostBodyType as OrgsOrgCodespacesAccessSelectedUsersPostBodyType, ) - from .group_0932 import ( + from .group_0957 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) - from .group_0933 import CodespacesOrgSecretType as CodespacesOrgSecretType - from .group_0933 import ( + from .group_0958 import CodespacesOrgSecretType as CodespacesOrgSecretType + from .group_0958 import ( OrgsOrgCodespacesSecretsGetResponse200Type as OrgsOrgCodespacesSecretsGetResponse200Type, ) - from .group_0934 import ( + from .group_0959 import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) - from .group_0935 import ( + from .group_0960 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0936 import ( + from .group_0961 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0937 import ( + from .group_0962 import ( OrgsOrgCopilotBillingSeatsGetResponse200Type as OrgsOrgCopilotBillingSeatsGetResponse200Type, ) - from .group_0938 import ( + from .group_0963 import ( OrgsOrgCopilotBillingSelectedTeamsPostBodyType as OrgsOrgCopilotBillingSelectedTeamsPostBodyType, ) - from .group_0939 import ( + from .group_0964 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) - from .group_0940 import ( + from .group_0965 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType as OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, ) - from .group_0941 import ( + from .group_0966 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, ) - from .group_0942 import ( + from .group_0967 import ( OrgsOrgCopilotBillingSelectedUsersPostBodyType as OrgsOrgCopilotBillingSelectedUsersPostBodyType, ) - from .group_0943 import ( + from .group_0968 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201Type as OrgsOrgCopilotBillingSelectedUsersPostResponse201Type, ) - from .group_0944 import ( + from .group_0969 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBodyType as OrgsOrgCopilotBillingSelectedUsersDeleteBodyType, ) - from .group_0945 import ( + from .group_0970 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type, ) - from .group_0946 import ( + from .group_0971 import ( OrgsOrgCustomRepositoryRolesGetResponse200Type as OrgsOrgCustomRepositoryRolesGetResponse200Type, ) - from .group_0947 import ( + from .group_0972 import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) - from .group_0947 import ( + from .group_0972 import ( OrgsOrgDependabotSecretsGetResponse200Type as OrgsOrgDependabotSecretsGetResponse200Type, ) - from .group_0948 import ( + from .group_0973 import ( OrgsOrgDependabotSecretsSecretNamePutBodyType as OrgsOrgDependabotSecretsSecretNamePutBodyType, ) - from .group_0949 import ( + from .group_0974 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0950 import ( + from .group_0975 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0951 import ( + from .group_0976 import ( OrgsOrgHooksPostBodyPropConfigType as OrgsOrgHooksPostBodyPropConfigType, ) - from .group_0951 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType - from .group_0952 import ( + from .group_0976 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType + from .group_0977 import ( OrgsOrgHooksHookIdPatchBodyPropConfigType as OrgsOrgHooksHookIdPatchBodyPropConfigType, ) - from .group_0952 import ( + from .group_0977 import ( OrgsOrgHooksHookIdPatchBodyType as OrgsOrgHooksHookIdPatchBodyType, ) - from .group_0953 import ( + from .group_0978 import ( OrgsOrgHooksHookIdConfigPatchBodyType as OrgsOrgHooksHookIdConfigPatchBodyType, ) - from .group_0954 import ( + from .group_0979 import ( OrgsOrgInstallationsGetResponse200Type as OrgsOrgInstallationsGetResponse200Type, ) - from .group_0955 import ( + from .group_0980 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1Type as OrgsOrgInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0956 import ( + from .group_0981 import ( OrgsOrgInvitationsPostBodyType as OrgsOrgInvitationsPostBodyType, ) - from .group_0957 import ( + from .group_0982 import ( OrgsOrgMembersUsernameCodespacesGetResponse200Type as OrgsOrgMembersUsernameCodespacesGetResponse200Type, ) - from .group_0958 import ( + from .group_0983 import ( OrgsOrgMembershipsUsernamePutBodyType as OrgsOrgMembershipsUsernamePutBodyType, ) - from .group_0959 import ( + from .group_0984 import ( OrgsOrgMigrationsPostBodyType as OrgsOrgMigrationsPostBodyType, ) - from .group_0960 import ( + from .group_0985 import ( OrgsOrgOutsideCollaboratorsUsernamePutBodyType as OrgsOrgOutsideCollaboratorsUsernamePutBodyType, ) - from .group_0961 import ( + from .group_0986 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type as OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type, ) - from .group_0962 import ( + from .group_0987 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type, ) - from .group_0963 import ( + from .group_0988 import ( OrgsOrgPersonalAccessTokenRequestsPostBodyType as OrgsOrgPersonalAccessTokenRequestsPostBodyType, ) - from .group_0964 import ( + from .group_0989 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) - from .group_0965 import ( + from .group_0990 import ( OrgsOrgPersonalAccessTokensPostBodyType as OrgsOrgPersonalAccessTokensPostBodyType, ) - from .group_0966 import ( + from .group_0991 import ( OrgsOrgPersonalAccessTokensPatIdPostBodyType as OrgsOrgPersonalAccessTokensPatIdPostBodyType, ) - from .group_0967 import ( + from .group_0992 import ( OrgPrivateRegistryConfigurationType as OrgPrivateRegistryConfigurationType, ) - from .group_0967 import ( + from .group_0992 import ( OrgsOrgPrivateRegistriesGetResponse200Type as OrgsOrgPrivateRegistriesGetResponse200Type, ) - from .group_0968 import ( + from .group_0993 import ( OrgsOrgPrivateRegistriesPostBodyType as OrgsOrgPrivateRegistriesPostBodyType, ) - from .group_0969 import ( + from .group_0994 import ( OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type as OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type, ) - from .group_0970 import ( + from .group_0995 import ( OrgsOrgPrivateRegistriesSecretNamePatchBodyType as OrgsOrgPrivateRegistriesSecretNamePatchBodyType, ) - from .group_0971 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType - from .group_0972 import ( + from .group_0996 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType + from .group_0997 import ( OrgsOrgPropertiesSchemaPatchBodyType as OrgsOrgPropertiesSchemaPatchBodyType, ) - from .group_0973 import ( + from .group_0998 import ( OrgsOrgPropertiesValuesPatchBodyType as OrgsOrgPropertiesValuesPatchBodyType, ) - from .group_0974 import ( + from .group_0999 import ( OrgsOrgReposPostBodyPropCustomPropertiesType as OrgsOrgReposPostBodyPropCustomPropertiesType, ) - from .group_0974 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType - from .group_0975 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType - from .group_0976 import ( + from .group_0999 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType + from .group_1000 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType + from .group_1001 import ( OrgsOrgRulesetsRulesetIdPutBodyType as OrgsOrgRulesetsRulesetIdPutBodyType, ) - from .group_0977 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType - from .group_0978 import ( + from .group_1002 import ( + OrgsOrgSettingsNetworkConfigurationsGetResponse200Type as OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, + ) + from .group_1003 import ( + OrgsOrgSettingsNetworkConfigurationsPostBodyType as OrgsOrgSettingsNetworkConfigurationsPostBodyType, + ) + from .group_1004 import ( + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + ) + from .group_1005 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType + from .group_1006 import ( OrgsOrgTeamsTeamSlugPatchBodyType as OrgsOrgTeamsTeamSlugPatchBodyType, ) - from .group_0979 import ( + from .group_1007 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsPostBodyType, ) - from .group_0980 import ( + from .group_1008 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType, ) - from .group_0981 import ( + from .group_1009 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_0982 import ( + from .group_1010 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_0983 import ( + from .group_1011 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_0984 import ( + from .group_1012 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_0985 import ( + from .group_1013 import ( OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType as OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType, ) - from .group_0986 import ( + from .group_1014 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType, ) - from .group_0987 import ( + from .group_1015 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType, ) - from .group_0988 import ( + from .group_1016 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type, ) - from .group_0989 import ( + from .group_1017 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType, ) - from .group_0990 import ( + from .group_1018 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType, ) - from .group_0990 import ( + from .group_1018 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType, ) - from .group_0991 import ( + from .group_1019 import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) - from .group_0992 import ( + from .group_1020 import ( ProjectsColumnsCardsCardIdDeleteResponse403Type as ProjectsColumnsCardsCardIdDeleteResponse403Type, ) - from .group_0993 import ( + from .group_1021 import ( ProjectsColumnsCardsCardIdPatchBodyType as ProjectsColumnsCardsCardIdPatchBodyType, ) - from .group_0994 import ( + from .group_1022 import ( ProjectsColumnsCardsCardIdMovesPostBodyType as ProjectsColumnsCardsCardIdMovesPostBodyType, ) - from .group_0995 import ( + from .group_1023 import ( ProjectsColumnsCardsCardIdMovesPostResponse201Type as ProjectsColumnsCardsCardIdMovesPostResponse201Type, ) - from .group_0996 import ( + from .group_1024 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType, ) - from .group_0996 import ( + from .group_1024 import ( ProjectsColumnsCardsCardIdMovesPostResponse403Type as ProjectsColumnsCardsCardIdMovesPostResponse403Type, ) - from .group_0997 import ( + from .group_1025 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType, ) - from .group_0997 import ( + from .group_1025 import ( ProjectsColumnsCardsCardIdMovesPostResponse503Type as ProjectsColumnsCardsCardIdMovesPostResponse503Type, ) - from .group_0998 import ( + from .group_1026 import ( ProjectsColumnsColumnIdPatchBodyType as ProjectsColumnsColumnIdPatchBodyType, ) - from .group_0999 import ( + from .group_1027 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0Type as ProjectsColumnsColumnIdCardsPostBodyOneof0Type, ) - from .group_1000 import ( + from .group_1028 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1Type as ProjectsColumnsColumnIdCardsPostBodyOneof1Type, ) - from .group_1001 import ( + from .group_1029 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType, ) - from .group_1001 import ( + from .group_1029 import ( ProjectsColumnsColumnIdCardsPostResponse503Type as ProjectsColumnsColumnIdCardsPostResponse503Type, ) - from .group_1002 import ( + from .group_1030 import ( ProjectsColumnsColumnIdMovesPostBodyType as ProjectsColumnsColumnIdMovesPostBodyType, ) - from .group_1003 import ( + from .group_1031 import ( ProjectsColumnsColumnIdMovesPostResponse201Type as ProjectsColumnsColumnIdMovesPostResponse201Type, ) - from .group_1004 import ( + from .group_1032 import ( ProjectsProjectIdDeleteResponse403Type as ProjectsProjectIdDeleteResponse403Type, ) - from .group_1005 import ( + from .group_1033 import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) - from .group_1006 import ( + from .group_1034 import ( ProjectsProjectIdPatchResponse403Type as ProjectsProjectIdPatchResponse403Type, ) - from .group_1007 import ( + from .group_1035 import ( ProjectsProjectIdCollaboratorsUsernamePutBodyType as ProjectsProjectIdCollaboratorsUsernamePutBodyType, ) - from .group_1008 import ( + from .group_1036 import ( ProjectsProjectIdColumnsPostBodyType as ProjectsProjectIdColumnsPostBodyType, ) - from .group_1009 import ( + from .group_1037 import ( ReposOwnerRepoDeleteResponse403Type as ReposOwnerRepoDeleteResponse403Type, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType, ) - from .group_1010 import ( + from .group_1038 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, ) - from .group_1010 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType - from .group_1011 import ( + from .group_1038 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_1039 import ( ReposOwnerRepoActionsArtifactsGetResponse200Type as ReposOwnerRepoActionsArtifactsGetResponse200Type, ) - from .group_1012 import ( + from .group_1040 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBodyType as ReposOwnerRepoActionsJobsJobIdRerunPostBodyType, ) - from .group_1013 import ( + from .group_1041 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBodyType as ReposOwnerRepoActionsOidcCustomizationSubPutBodyType, ) - from .group_1014 import ( + from .group_1042 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type as ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type, ) - from .group_1015 import ( + from .group_1043 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type as ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type, ) - from .group_1016 import ( + from .group_1044 import ( ReposOwnerRepoActionsPermissionsPutBodyType as ReposOwnerRepoActionsPermissionsPutBodyType, ) - from .group_1017 import ( + from .group_1045 import ( ReposOwnerRepoActionsRunnersGetResponse200Type as ReposOwnerRepoActionsRunnersGetResponse200Type, ) - from .group_1018 import ( + from .group_1046 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_1019 import ( + from .group_1047 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_1020 import ( + from .group_1048 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_1021 import ( + from .group_1049 import ( ReposOwnerRepoActionsRunsGetResponse200Type as ReposOwnerRepoActionsRunsGetResponse200Type, ) - from .group_1022 import ( + from .group_1050 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type, ) - from .group_1023 import ( + from .group_1051 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type, ) - from .group_1024 import ( + from .group_1052 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type, ) - from .group_1025 import ( + from .group_1053 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType, ) - from .group_1026 import ( + from .group_1054 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunPostBodyType, ) - from .group_1027 import ( + from .group_1055 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) - from .group_1028 import ( + from .group_1056 import ( ReposOwnerRepoActionsSecretsGetResponse200Type as ReposOwnerRepoActionsSecretsGetResponse200Type, ) - from .group_1029 import ( + from .group_1057 import ( ReposOwnerRepoActionsSecretsSecretNamePutBodyType as ReposOwnerRepoActionsSecretsSecretNamePutBodyType, ) - from .group_1030 import ( + from .group_1058 import ( ReposOwnerRepoActionsVariablesGetResponse200Type as ReposOwnerRepoActionsVariablesGetResponse200Type, ) - from .group_1031 import ( + from .group_1059 import ( ReposOwnerRepoActionsVariablesPostBodyType as ReposOwnerRepoActionsVariablesPostBodyType, ) - from .group_1032 import ( + from .group_1060 import ( ReposOwnerRepoActionsVariablesNamePatchBodyType as ReposOwnerRepoActionsVariablesNamePatchBodyType, ) - from .group_1033 import ( + from .group_1061 import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) - from .group_1033 import WorkflowType as WorkflowType - from .group_1034 import ( + from .group_1061 import WorkflowType as WorkflowType + from .group_1062 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) - from .group_1034 import ( + from .group_1062 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType, ) - from .group_1035 import ( + from .group_1063 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type, ) - from .group_1036 import ( + from .group_1064 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType, ) - from .group_1036 import ( + from .group_1064 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType, ) - from .group_1036 import ( + from .group_1064 import ( ReposOwnerRepoAttestationsPostBodyPropBundleType as ReposOwnerRepoAttestationsPostBodyPropBundleType, ) - from .group_1036 import ( + from .group_1064 import ( ReposOwnerRepoAttestationsPostBodyType as ReposOwnerRepoAttestationsPostBodyType, ) - from .group_1037 import ( + from .group_1065 import ( ReposOwnerRepoAttestationsPostResponse201Type as ReposOwnerRepoAttestationsPostResponse201Type, ) - from .group_1038 import ( + from .group_1066 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_1038 import ( + from .group_1066 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_1038 import ( + from .group_1066 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_1038 import ( + from .group_1066 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1038 import ( + from .group_1066 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type as ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type, ) - from .group_1039 import ( + from .group_1067 import ( ReposOwnerRepoAutolinksPostBodyType as ReposOwnerRepoAutolinksPostBodyType, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, ) - from .group_1040 import ( + from .group_1068 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyType as ReposOwnerRepoBranchesBranchProtectionPutBodyType, ) - from .group_1041 import ( + from .group_1069 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType, ) - from .group_1041 import ( + from .group_1069 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType, ) - from .group_1041 import ( + from .group_1069 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType, ) - from .group_1042 import ( + from .group_1070 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) - from .group_1042 import ( + from .group_1070 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType, ) - from .group_1043 import ( + from .group_1071 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) - from .group_1044 import ( + from .group_1072 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type, ) - from .group_1045 import ( + from .group_1073 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type, ) - from .group_1046 import ( + from .group_1074 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType, ) - from .group_1047 import ( + from .group_1075 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType, ) - from .group_1048 import ( + from .group_1076 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType, ) - from .group_1049 import ( + from .group_1077 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type, ) - from .group_1050 import ( + from .group_1078 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type, ) - from .group_1051 import ( + from .group_1079 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type, ) - from .group_1052 import ( + from .group_1080 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType, ) - from .group_1053 import ( + from .group_1081 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType, ) - from .group_1054 import ( + from .group_1082 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType, ) - from .group_1055 import ( + from .group_1083 import ( ReposOwnerRepoBranchesBranchRenamePostBodyType as ReposOwnerRepoBranchesBranchRenamePostBodyType, ) - from .group_1056 import ( + from .group_1084 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType as ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) - from .group_1056 import ( + from .group_1084 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType, ) - from .group_1056 import ( + from .group_1084 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType, ) - from .group_1056 import ( + from .group_1084 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) - from .group_1057 import ( + from .group_1085 import ( ReposOwnerRepoCheckRunsPostBodyOneof0Type as ReposOwnerRepoCheckRunsPostBodyOneof0Type, ) - from .group_1058 import ( + from .group_1086 import ( ReposOwnerRepoCheckRunsPostBodyOneof1Type as ReposOwnerRepoCheckRunsPostBodyOneof1Type, ) - from .group_1059 import ( + from .group_1087 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) - from .group_1059 import ( + from .group_1087 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType, ) - from .group_1059 import ( + from .group_1087 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType, ) - from .group_1059 import ( + from .group_1087 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) - from .group_1060 import ( + from .group_1088 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type, ) - from .group_1061 import ( + from .group_1089 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type, ) - from .group_1062 import ( + from .group_1090 import ( ReposOwnerRepoCheckSuitesPostBodyType as ReposOwnerRepoCheckSuitesPostBodyType, ) - from .group_1063 import ( + from .group_1091 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) - from .group_1063 import ( + from .group_1091 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyType, ) - from .group_1064 import ( + from .group_1092 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) - from .group_1065 import ( + from .group_1093 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType, ) - from .group_1066 import ( + from .group_1094 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type, ) - from .group_1067 import ( + from .group_1095 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type, ) - from .group_1068 import ( + from .group_1096 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type, ) - from .group_1069 import ( + from .group_1097 import ( ReposOwnerRepoCodeScanningSarifsPostBodyType as ReposOwnerRepoCodeScanningSarifsPostBodyType, ) - from .group_1070 import ( + from .group_1098 import ( ReposOwnerRepoCodespacesGetResponse200Type as ReposOwnerRepoCodespacesGetResponse200Type, ) - from .group_1071 import ( + from .group_1099 import ( ReposOwnerRepoCodespacesPostBodyType as ReposOwnerRepoCodespacesPostBodyType, ) - from .group_1072 import ( + from .group_1100 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType, ) - from .group_1072 import ( + from .group_1100 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200Type as ReposOwnerRepoCodespacesDevcontainersGetResponse200Type, ) - from .group_1073 import ( + from .group_1101 import ( ReposOwnerRepoCodespacesMachinesGetResponse200Type as ReposOwnerRepoCodespacesMachinesGetResponse200Type, ) - from .group_1074 import ( + from .group_1102 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) - from .group_1074 import ( + from .group_1102 import ( ReposOwnerRepoCodespacesNewGetResponse200Type as ReposOwnerRepoCodespacesNewGetResponse200Type, ) - from .group_1075 import RepoCodespacesSecretType as RepoCodespacesSecretType - from .group_1075 import ( + from .group_1103 import RepoCodespacesSecretType as RepoCodespacesSecretType + from .group_1103 import ( ReposOwnerRepoCodespacesSecretsGetResponse200Type as ReposOwnerRepoCodespacesSecretsGetResponse200Type, ) - from .group_1076 import ( + from .group_1104 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType as ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType, ) - from .group_1077 import ( + from .group_1105 import ( ReposOwnerRepoCollaboratorsUsernamePutBodyType as ReposOwnerRepoCollaboratorsUsernamePutBodyType, ) - from .group_1078 import ( + from .group_1106 import ( ReposOwnerRepoCommentsCommentIdPatchBodyType as ReposOwnerRepoCommentsCommentIdPatchBodyType, ) - from .group_1079 import ( + from .group_1107 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoCommentsCommentIdReactionsPostBodyType, ) - from .group_1080 import ( + from .group_1108 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBodyType as ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, ) - from .group_1081 import ( + from .group_1109 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type as ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type, ) - from .group_1082 import ( + from .group_1110 import ( ReposOwnerRepoContentsPathPutBodyPropAuthorType as ReposOwnerRepoContentsPathPutBodyPropAuthorType, ) - from .group_1082 import ( + from .group_1110 import ( ReposOwnerRepoContentsPathPutBodyPropCommitterType as ReposOwnerRepoContentsPathPutBodyPropCommitterType, ) - from .group_1082 import ( + from .group_1110 import ( ReposOwnerRepoContentsPathPutBodyType as ReposOwnerRepoContentsPathPutBodyType, ) - from .group_1083 import ( + from .group_1111 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthorType as ReposOwnerRepoContentsPathDeleteBodyPropAuthorType, ) - from .group_1083 import ( + from .group_1111 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitterType as ReposOwnerRepoContentsPathDeleteBodyPropCommitterType, ) - from .group_1083 import ( + from .group_1111 import ( ReposOwnerRepoContentsPathDeleteBodyType as ReposOwnerRepoContentsPathDeleteBodyType, ) - from .group_1084 import ( + from .group_1112 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType as ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType, ) - from .group_1085 import DependabotSecretType as DependabotSecretType - from .group_1085 import ( + from .group_1113 import DependabotSecretType as DependabotSecretType + from .group_1113 import ( ReposOwnerRepoDependabotSecretsGetResponse200Type as ReposOwnerRepoDependabotSecretsGetResponse200Type, ) - from .group_1086 import ( + from .group_1114 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBodyType as ReposOwnerRepoDependabotSecretsSecretNamePutBodyType, ) - from .group_1087 import ( + from .group_1115 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type, ) - from .group_1088 import ( + from .group_1116 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, ) - from .group_1088 import ( + from .group_1116 import ( ReposOwnerRepoDeploymentsPostBodyType as ReposOwnerRepoDeploymentsPostBodyType, ) - from .group_1089 import ( + from .group_1117 import ( ReposOwnerRepoDeploymentsPostResponse202Type as ReposOwnerRepoDeploymentsPostResponse202Type, ) - from .group_1090 import ( + from .group_1118 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType, ) - from .group_1091 import ( + from .group_1119 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayloadType as ReposOwnerRepoDispatchesPostBodyPropClientPayloadType, ) - from .group_1091 import ( + from .group_1119 import ( ReposOwnerRepoDispatchesPostBodyType as ReposOwnerRepoDispatchesPostBodyType, ) - from .group_1092 import ( + from .group_1120 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType, ) - from .group_1092 import ( + from .group_1120 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType, ) - from .group_1093 import DeploymentBranchPolicyType as DeploymentBranchPolicyType - from .group_1093 import ( + from .group_1121 import DeploymentBranchPolicyType as DeploymentBranchPolicyType + from .group_1121 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) - from .group_1094 import ( + from .group_1122 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) - from .group_1095 import ( + from .group_1123 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) - from .group_1096 import ( + from .group_1124 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type, ) - from .group_1097 import ( + from .group_1125 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType, ) - from .group_1098 import ( + from .group_1126 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type, ) - from .group_1099 import ( + from .group_1127 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType, ) - from .group_1100 import ( + from .group_1128 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) - from .group_1101 import ( + from .group_1129 import ( ReposOwnerRepoForksPostBodyType as ReposOwnerRepoForksPostBodyType, ) - from .group_1102 import ( + from .group_1130 import ( ReposOwnerRepoGitBlobsPostBodyType as ReposOwnerRepoGitBlobsPostBodyType, ) - from .group_1103 import ( + from .group_1131 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthorType as ReposOwnerRepoGitCommitsPostBodyPropAuthorType, ) - from .group_1103 import ( + from .group_1131 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitterType as ReposOwnerRepoGitCommitsPostBodyPropCommitterType, ) - from .group_1103 import ( + from .group_1131 import ( ReposOwnerRepoGitCommitsPostBodyType as ReposOwnerRepoGitCommitsPostBodyType, ) - from .group_1104 import ( + from .group_1132 import ( ReposOwnerRepoGitRefsPostBodyType as ReposOwnerRepoGitRefsPostBodyType, ) - from .group_1105 import ( + from .group_1133 import ( ReposOwnerRepoGitRefsRefPatchBodyType as ReposOwnerRepoGitRefsRefPatchBodyType, ) - from .group_1106 import ( + from .group_1134 import ( ReposOwnerRepoGitTagsPostBodyPropTaggerType as ReposOwnerRepoGitTagsPostBodyPropTaggerType, ) - from .group_1106 import ( + from .group_1134 import ( ReposOwnerRepoGitTagsPostBodyType as ReposOwnerRepoGitTagsPostBodyType, ) - from .group_1107 import ( + from .group_1135 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItemsType as ReposOwnerRepoGitTreesPostBodyPropTreeItemsType, ) - from .group_1107 import ( + from .group_1135 import ( ReposOwnerRepoGitTreesPostBodyType as ReposOwnerRepoGitTreesPostBodyType, ) - from .group_1108 import ( + from .group_1136 import ( ReposOwnerRepoHooksPostBodyPropConfigType as ReposOwnerRepoHooksPostBodyPropConfigType, ) - from .group_1108 import ( + from .group_1136 import ( ReposOwnerRepoHooksPostBodyType as ReposOwnerRepoHooksPostBodyType, ) - from .group_1109 import ( + from .group_1137 import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) - from .group_1110 import ( + from .group_1138 import ( ReposOwnerRepoHooksHookIdConfigPatchBodyType as ReposOwnerRepoHooksHookIdConfigPatchBodyType, ) - from .group_1111 import ( + from .group_1139 import ( ReposOwnerRepoImportPutBodyType as ReposOwnerRepoImportPutBodyType, ) - from .group_1112 import ( + from .group_1140 import ( ReposOwnerRepoImportPatchBodyType as ReposOwnerRepoImportPatchBodyType, ) - from .group_1113 import ( + from .group_1141 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) - from .group_1114 import ( + from .group_1142 import ( ReposOwnerRepoImportLfsPatchBodyType as ReposOwnerRepoImportLfsPatchBodyType, ) - from .group_1115 import ( + from .group_1143 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1116 import ( + from .group_1144 import ( ReposOwnerRepoInvitationsInvitationIdPatchBodyType as ReposOwnerRepoInvitationsInvitationIdPatchBodyType, ) - from .group_1117 import ( + from .group_1145 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type, ) - from .group_1117 import ( + from .group_1145 import ( ReposOwnerRepoIssuesPostBodyType as ReposOwnerRepoIssuesPostBodyType, ) - from .group_1118 import ( + from .group_1146 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType as ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType, ) - from .group_1119 import ( + from .group_1147 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType, ) - from .group_1120 import ( + from .group_1148 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type, ) - from .group_1120 import ( + from .group_1148 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyType as ReposOwnerRepoIssuesIssueNumberPatchBodyType, ) - from .group_1121 import ( + from .group_1149 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType, ) - from .group_1122 import ( + from .group_1150 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType, ) - from .group_1123 import ( + from .group_1151 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType as ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType, ) - from .group_1124 import ( + from .group_1152 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type, ) - from .group_1125 import ( + from .group_1153 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType, ) - from .group_1125 import ( + from .group_1153 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) - from .group_1126 import ( + from .group_1154 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType, ) - from .group_1127 import ( + from .group_1155 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type, ) - from .group_1128 import ( + from .group_1156 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType, ) - from .group_1128 import ( + from .group_1156 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type, ) - from .group_1129 import ( + from .group_1157 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) - from .group_1130 import ( + from .group_1158 import ( ReposOwnerRepoIssuesIssueNumberLockPutBodyType as ReposOwnerRepoIssuesIssueNumberLockPutBodyType, ) - from .group_1131 import ( + from .group_1159 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType as ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType, ) - from .group_1132 import ( + from .group_1160 import ( ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType as ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType, ) - from .group_1133 import ( + from .group_1161 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType as ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType, ) - from .group_1134 import ( + from .group_1162 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType as ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType, ) - from .group_1135 import ( + from .group_1163 import ( ReposOwnerRepoKeysPostBodyType as ReposOwnerRepoKeysPostBodyType, ) - from .group_1136 import ( + from .group_1164 import ( ReposOwnerRepoLabelsPostBodyType as ReposOwnerRepoLabelsPostBodyType, ) - from .group_1137 import ( + from .group_1165 import ( ReposOwnerRepoLabelsNamePatchBodyType as ReposOwnerRepoLabelsNamePatchBodyType, ) - from .group_1138 import ( + from .group_1166 import ( ReposOwnerRepoMergeUpstreamPostBodyType as ReposOwnerRepoMergeUpstreamPostBodyType, ) - from .group_1139 import ( + from .group_1167 import ( ReposOwnerRepoMergesPostBodyType as ReposOwnerRepoMergesPostBodyType, ) - from .group_1140 import ( + from .group_1168 import ( ReposOwnerRepoMilestonesPostBodyType as ReposOwnerRepoMilestonesPostBodyType, ) - from .group_1141 import ( + from .group_1169 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType as ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType, ) - from .group_1142 import ( + from .group_1170 import ( ReposOwnerRepoNotificationsPutBodyType as ReposOwnerRepoNotificationsPutBodyType, ) - from .group_1143 import ( + from .group_1171 import ( ReposOwnerRepoNotificationsPutResponse202Type as ReposOwnerRepoNotificationsPutResponse202Type, ) - from .group_1144 import ( + from .group_1172 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type as ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ) - from .group_1145 import ( + from .group_1173 import ( ReposOwnerRepoPagesPutBodyAnyof0Type as ReposOwnerRepoPagesPutBodyAnyof0Type, ) - from .group_1146 import ( + from .group_1174 import ( ReposOwnerRepoPagesPutBodyAnyof1Type as ReposOwnerRepoPagesPutBodyAnyof1Type, ) - from .group_1147 import ( + from .group_1175 import ( ReposOwnerRepoPagesPutBodyAnyof2Type as ReposOwnerRepoPagesPutBodyAnyof2Type, ) - from .group_1148 import ( + from .group_1176 import ( ReposOwnerRepoPagesPutBodyAnyof3Type as ReposOwnerRepoPagesPutBodyAnyof3Type, ) - from .group_1149 import ( + from .group_1177 import ( ReposOwnerRepoPagesPutBodyAnyof4Type as ReposOwnerRepoPagesPutBodyAnyof4Type, ) - from .group_1150 import ( + from .group_1178 import ( ReposOwnerRepoPagesPostBodyPropSourceType as ReposOwnerRepoPagesPostBodyPropSourceType, ) - from .group_1151 import ( + from .group_1179 import ( ReposOwnerRepoPagesPostBodyAnyof0Type as ReposOwnerRepoPagesPostBodyAnyof0Type, ) - from .group_1152 import ( + from .group_1180 import ( ReposOwnerRepoPagesPostBodyAnyof1Type as ReposOwnerRepoPagesPostBodyAnyof1Type, ) - from .group_1153 import ( + from .group_1181 import ( ReposOwnerRepoPagesDeploymentsPostBodyType as ReposOwnerRepoPagesDeploymentsPostBodyType, ) - from .group_1154 import ( + from .group_1182 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type, ) - from .group_1155 import ( + from .group_1183 import ( ReposOwnerRepoProjectsPostBodyType as ReposOwnerRepoProjectsPostBodyType, ) - from .group_1156 import ( + from .group_1184 import ( ReposOwnerRepoPropertiesValuesPatchBodyType as ReposOwnerRepoPropertiesValuesPatchBodyType, ) - from .group_1157 import ( + from .group_1185 import ( ReposOwnerRepoPullsPostBodyType as ReposOwnerRepoPullsPostBodyType, ) - from .group_1158 import ( + from .group_1186 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBodyType as ReposOwnerRepoPullsCommentsCommentIdPatchBodyType, ) - from .group_1159 import ( + from .group_1187 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType, ) - from .group_1160 import ( + from .group_1188 import ( ReposOwnerRepoPullsPullNumberPatchBodyType as ReposOwnerRepoPullsPullNumberPatchBodyType, ) - from .group_1161 import ( + from .group_1189 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBodyType as ReposOwnerRepoPullsPullNumberCodespacesPostBodyType, ) - from .group_1162 import ( + from .group_1190 import ( ReposOwnerRepoPullsPullNumberCommentsPostBodyType as ReposOwnerRepoPullsPullNumberCommentsPostBodyType, ) - from .group_1163 import ( + from .group_1191 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType, ) - from .group_1164 import ( + from .group_1192 import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from .group_1165 import ( + from .group_1193 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405Type as ReposOwnerRepoPullsPullNumberMergePutResponse405Type, ) - from .group_1166 import ( + from .group_1194 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409Type as ReposOwnerRepoPullsPullNumberMergePutResponse409Type, ) - from .group_1167 import ( + from .group_1195 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type, ) - from .group_1168 import ( + from .group_1196 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type, ) - from .group_1169 import ( + from .group_1197 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType, ) - from .group_1170 import ( + from .group_1198 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType, ) - from .group_1170 import ( + from .group_1198 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsPostBodyType, ) - from .group_1171 import ( + from .group_1199 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType, ) - from .group_1172 import ( + from .group_1200 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType, ) - from .group_1173 import ( + from .group_1201 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType, ) - from .group_1174 import ( + from .group_1202 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType as ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType, ) - from .group_1175 import ( + from .group_1203 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type, ) - from .group_1176 import ( + from .group_1204 import ( ReposOwnerRepoReleasesPostBodyType as ReposOwnerRepoReleasesPostBodyType, ) - from .group_1177 import ( + from .group_1205 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType as ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ) - from .group_1178 import ( + from .group_1206 import ( ReposOwnerRepoReleasesGenerateNotesPostBodyType as ReposOwnerRepoReleasesGenerateNotesPostBodyType, ) - from .group_1179 import ( + from .group_1207 import ( ReposOwnerRepoReleasesReleaseIdPatchBodyType as ReposOwnerRepoReleasesReleaseIdPatchBodyType, ) - from .group_1180 import ( + from .group_1208 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType as ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType, ) - from .group_1181 import ( + from .group_1209 import ( ReposOwnerRepoRulesetsPostBodyType as ReposOwnerRepoRulesetsPostBodyType, ) - from .group_1182 import ( + from .group_1210 import ( ReposOwnerRepoRulesetsRulesetIdPutBodyType as ReposOwnerRepoRulesetsRulesetIdPutBodyType, ) - from .group_1183 import ( + from .group_1211 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType, ) - from .group_1184 import ( + from .group_1212 import ( ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType as ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType, ) - from .group_1185 import ( + from .group_1213 import ( ReposOwnerRepoStatusesShaPostBodyType as ReposOwnerRepoStatusesShaPostBodyType, ) - from .group_1186 import ( + from .group_1214 import ( ReposOwnerRepoSubscriptionPutBodyType as ReposOwnerRepoSubscriptionPutBodyType, ) - from .group_1187 import ( + from .group_1215 import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) - from .group_1188 import ( + from .group_1216 import ( ReposOwnerRepoTopicsPutBodyType as ReposOwnerRepoTopicsPutBodyType, ) - from .group_1189 import ( + from .group_1217 import ( ReposOwnerRepoTransferPostBodyType as ReposOwnerRepoTransferPostBodyType, ) - from .group_1190 import ( + from .group_1218 import ( ReposTemplateOwnerTemplateRepoGeneratePostBodyType as ReposTemplateOwnerTemplateRepoGeneratePostBodyType, ) - from .group_1191 import ( + from .group_1219 import ( ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType as ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType, ) - from .group_1191 import ( + from .group_1219 import ( ScimV2OrganizationsOrgUsersPostBodyPropNameType as ScimV2OrganizationsOrgUsersPostBodyPropNameType, ) - from .group_1191 import ( + from .group_1219 import ( ScimV2OrganizationsOrgUsersPostBodyType as ScimV2OrganizationsOrgUsersPostBodyType, ) - from .group_1192 import ( + from .group_1220 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType, ) - from .group_1192 import ( + from .group_1220 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType, ) - from .group_1192 import ( + from .group_1220 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyType, ) - from .group_1193 import ( + from .group_1221 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, ) - from .group_1193 import ( + from .group_1221 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType, ) - from .group_1193 import ( + from .group_1221 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType, ) - from .group_1193 import ( + from .group_1221 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType, ) - from .group_1194 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType - from .group_1195 import ( + from .group_1222 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType + from .group_1223 import ( TeamsTeamIdDiscussionsPostBodyType as TeamsTeamIdDiscussionsPostBodyType, ) - from .group_1196 import ( + from .group_1224 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType, ) - from .group_1197 import ( + from .group_1225 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_1198 import ( + from .group_1226 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_1199 import ( + from .group_1227 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_1200 import ( + from .group_1228 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_1201 import ( + from .group_1229 import ( TeamsTeamIdMembershipsUsernamePutBodyType as TeamsTeamIdMembershipsUsernamePutBodyType, ) - from .group_1202 import ( + from .group_1230 import ( TeamsTeamIdProjectsProjectIdPutBodyType as TeamsTeamIdProjectsProjectIdPutBodyType, ) - from .group_1203 import ( + from .group_1231 import ( TeamsTeamIdProjectsProjectIdPutResponse403Type as TeamsTeamIdProjectsProjectIdPutResponse403Type, ) - from .group_1204 import ( + from .group_1232 import ( TeamsTeamIdReposOwnerRepoPutBodyType as TeamsTeamIdReposOwnerRepoPutBodyType, ) - from .group_1205 import ( + from .group_1233 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType as TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType, ) - from .group_1205 import ( + from .group_1233 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyType as TeamsTeamIdTeamSyncGroupMappingsPatchBodyType, ) - from .group_1206 import UserPatchBodyType as UserPatchBodyType - from .group_1207 import ( + from .group_1234 import UserPatchBodyType as UserPatchBodyType + from .group_1235 import ( UserCodespacesGetResponse200Type as UserCodespacesGetResponse200Type, ) - from .group_1208 import ( + from .group_1236 import ( UserCodespacesPostBodyOneof0Type as UserCodespacesPostBodyOneof0Type, ) - from .group_1209 import ( + from .group_1237 import ( UserCodespacesPostBodyOneof1PropPullRequestType as UserCodespacesPostBodyOneof1PropPullRequestType, ) - from .group_1209 import ( + from .group_1237 import ( UserCodespacesPostBodyOneof1Type as UserCodespacesPostBodyOneof1Type, ) - from .group_1210 import CodespacesSecretType as CodespacesSecretType - from .group_1210 import ( + from .group_1238 import CodespacesSecretType as CodespacesSecretType + from .group_1238 import ( UserCodespacesSecretsGetResponse200Type as UserCodespacesSecretsGetResponse200Type, ) - from .group_1211 import ( + from .group_1239 import ( UserCodespacesSecretsSecretNamePutBodyType as UserCodespacesSecretsSecretNamePutBodyType, ) - from .group_1212 import ( + from .group_1240 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type as UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1213 import ( + from .group_1241 import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1214 import ( + from .group_1242 import ( UserCodespacesCodespaceNamePatchBodyType as UserCodespacesCodespaceNamePatchBodyType, ) - from .group_1215 import ( + from .group_1243 import ( UserCodespacesCodespaceNameMachinesGetResponse200Type as UserCodespacesCodespaceNameMachinesGetResponse200Type, ) - from .group_1216 import ( + from .group_1244 import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) - from .group_1217 import ( + from .group_1245 import ( UserEmailVisibilityPatchBodyType as UserEmailVisibilityPatchBodyType, ) - from .group_1218 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type - from .group_1219 import ( + from .group_1246 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type + from .group_1247 import ( UserEmailsDeleteBodyOneof0Type as UserEmailsDeleteBodyOneof0Type, ) - from .group_1220 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType - from .group_1221 import ( + from .group_1248 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType + from .group_1249 import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) - from .group_1222 import ( + from .group_1250 import ( UserInstallationsInstallationIdRepositoriesGetResponse200Type as UserInstallationsInstallationIdRepositoriesGetResponse200Type, ) - from .group_1223 import ( + from .group_1251 import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1224 import UserKeysPostBodyType as UserKeysPostBodyType - from .group_1225 import ( + from .group_1252 import UserKeysPostBodyType as UserKeysPostBodyType + from .group_1253 import ( UserMembershipsOrgsOrgPatchBodyType as UserMembershipsOrgsOrgPatchBodyType, ) - from .group_1226 import UserMigrationsPostBodyType as UserMigrationsPostBodyType - from .group_1227 import UserProjectsPostBodyType as UserProjectsPostBodyType - from .group_1228 import UserReposPostBodyType as UserReposPostBodyType - from .group_1229 import ( + from .group_1254 import UserMigrationsPostBodyType as UserMigrationsPostBodyType + from .group_1255 import UserProjectsPostBodyType as UserProjectsPostBodyType + from .group_1256 import UserReposPostBodyType as UserReposPostBodyType + from .group_1257 import ( UserSocialAccountsPostBodyType as UserSocialAccountsPostBodyType, ) - from .group_1230 import ( + from .group_1258 import ( UserSocialAccountsDeleteBodyType as UserSocialAccountsDeleteBodyType, ) - from .group_1231 import ( + from .group_1259 import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType as SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropDsseEnvelopeType as SigstoreBundle0PropDsseEnvelopeType, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType, ) - from .group_1232 import ( + from .group_1260 import ( SigstoreBundle0PropVerificationMaterialType as SigstoreBundle0PropVerificationMaterialType, ) - from .group_1232 import SigstoreBundle0Type as SigstoreBundle0Type - from .group_1232 import ( + from .group_1260 import SigstoreBundle0Type as SigstoreBundle0Type + from .group_1260 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1232 import ( + from .group_1260 import ( UsersUsernameAttestationsSubjectDigestGetResponse200Type as UsersUsernameAttestationsSubjectDigestGetResponse200Type, ) else: @@ -9362,29 +9448,30 @@ "CvssSeveritiesPropCvssV3Type", "CvssSeveritiesPropCvssV4Type", ), - ".group_0002": ("SimpleUserType",), - ".group_0003": ( + ".group_0002": ("SecurityAdvisoryEpssType",), + ".group_0003": ("SimpleUserType",), + ".group_0004": ( "GlobalAdvisoryType", "GlobalAdvisoryPropIdentifiersItemsType", "GlobalAdvisoryPropCvssType", "GlobalAdvisoryPropCwesItemsType", - "GlobalAdvisoryPropEpssType", "VulnerabilityType", "VulnerabilityPropPackageType", ), - ".group_0004": ("GlobalAdvisoryPropCreditsItemsType",), - ".group_0005": ("BasicErrorType",), - ".group_0006": ("ValidationErrorSimpleType",), - ".group_0007": ("IntegrationPropPermissionsType",), - ".group_0008": ("IntegrationType",), - ".group_0009": ("WebhookConfigType",), - ".group_0010": ("HookDeliveryItemType",), - ".group_0011": ("ScimErrorType",), - ".group_0012": ( + ".group_0005": ("GlobalAdvisoryPropCreditsItemsType",), + ".group_0006": ("BasicErrorType",), + ".group_0007": ("ValidationErrorSimpleType",), + ".group_0008": ("EnterpriseType",), + ".group_0009": ("IntegrationPropPermissionsType",), + ".group_0010": ("IntegrationType",), + ".group_0011": ("WebhookConfigType",), + ".group_0012": ("HookDeliveryItemType",), + ".group_0013": ("ScimErrorType",), + ".group_0014": ( "ValidationErrorType", "ValidationErrorPropErrorsItemsType", ), - ".group_0013": ( + ".group_0015": ( "HookDeliveryType", "HookDeliveryPropRequestType", "HookDeliveryPropRequestPropHeadersType", @@ -9392,35 +9479,34 @@ "HookDeliveryPropResponseType", "HookDeliveryPropResponsePropHeadersType", ), - ".group_0014": ("EnterpriseType",), - ".group_0015": ("IntegrationInstallationRequestType",), - ".group_0016": ("AppPermissionsType",), - ".group_0017": ("InstallationType",), - ".group_0018": ("LicenseSimpleType",), - ".group_0019": ( + ".group_0016": ("IntegrationInstallationRequestType",), + ".group_0017": ("AppPermissionsType",), + ".group_0018": ("InstallationType",), + ".group_0019": ("LicenseSimpleType",), + ".group_0020": ( "RepositoryType", "RepositoryPropPermissionsType", ), - ".group_0020": ("InstallationTokenType",), - ".group_0021": ("ScopedInstallationType",), - ".group_0022": ( + ".group_0021": ("InstallationTokenType",), + ".group_0022": ("ScopedInstallationType",), + ".group_0023": ( "AuthorizationType", "AuthorizationPropAppType", ), - ".group_0023": ("SimpleClassroomRepositoryType",), - ".group_0024": ( + ".group_0024": ("SimpleClassroomRepositoryType",), + ".group_0025": ( "ClassroomAssignmentType", "ClassroomType", "SimpleClassroomOrganizationType", ), - ".group_0025": ( + ".group_0026": ( "ClassroomAcceptedAssignmentType", "SimpleClassroomUserType", "SimpleClassroomAssignmentType", "SimpleClassroomType", ), - ".group_0026": ("ClassroomAssignmentGradeType",), - ".group_0027": ( + ".group_0027": ("ClassroomAssignmentGradeType",), + ".group_0028": ( "ServerStatisticsItemsType", "ServerStatisticsActionsType", "ServerStatisticsItemsPropGithubConnectType", @@ -9439,23 +9525,34 @@ "ServerStatisticsItemsPropGheStatsPropReposType", "ServerStatisticsItemsPropGheStatsPropUsersType", ), - ".group_0028": ("ActionsCacheUsageOrgEnterpriseType",), - ".group_0029": ("ActionsOidcCustomIssuerPolicyForEnterpriseType",), - ".group_0030": ("ActionsEnterprisePermissionsType",), - ".group_0031": ("OrganizationSimpleType",), - ".group_0032": ("SelectedActionsType",), - ".group_0033": ("ActionsGetDefaultWorkflowPermissionsType",), - ".group_0034": ("ActionsSetDefaultWorkflowPermissionsType",), - ".group_0035": ("RunnerLabelType",), - ".group_0036": ("RunnerType",), - ".group_0037": ("RunnerApplicationType",), - ".group_0038": ( + ".group_0029": ("ActionsCacheUsageOrgEnterpriseType",), + ".group_0030": ("ActionsHostedRunnerMachineSpecType",), + ".group_0031": ( + "ActionsHostedRunnerType", + "ActionsHostedRunnerPoolImageType", + "PublicIpType", + ), + ".group_0032": ("ActionsHostedRunnerImageType",), + ".group_0033": ( + "ActionsHostedRunnerLimitsType", + "ActionsHostedRunnerLimitsPropPublicIpsType", + ), + ".group_0034": ("ActionsOidcCustomIssuerPolicyForEnterpriseType",), + ".group_0035": ("ActionsEnterprisePermissionsType",), + ".group_0036": ("OrganizationSimpleType",), + ".group_0037": ("SelectedActionsType",), + ".group_0038": ("ActionsGetDefaultWorkflowPermissionsType",), + ".group_0039": ("ActionsSetDefaultWorkflowPermissionsType",), + ".group_0040": ("RunnerLabelType",), + ".group_0041": ("RunnerType",), + ".group_0042": ("RunnerApplicationType",), + ".group_0043": ( "AuthenticationTokenType", "AuthenticationTokenPropPermissionsType", ), - ".group_0039": ("AnnouncementBannerType",), - ".group_0040": ("AnnouncementType",), - ".group_0041": ( + ".group_0044": ("AnnouncementBannerType",), + ".group_0045": ("AnnouncementType",), + ".group_0046": ( "AuditLogEventType", "AuditLogEventPropActorLocationType", "AuditLogEventPropDataType", @@ -9464,54 +9561,54 @@ "AuditLogEventPropEventsItemsType", "AuditLogEventPropEventsWereItemsType", ), - ".group_0042": ("AuditLogStreamKeyType",), - ".group_0043": ("GetAuditLogStreamConfigsItemsType",), - ".group_0044": ( + ".group_0047": ("AuditLogStreamKeyType",), + ".group_0048": ("GetAuditLogStreamConfigsItemsType",), + ".group_0049": ( "AzureBlobConfigType", "AzureHubConfigType", "AmazonS3AccessKeysConfigType", "GoogleCloudConfigType", ), - ".group_0045": ( + ".group_0050": ( "AmazonS3OidcConfigType", "SplunkConfigType", ), - ".group_0046": ("DatadogConfigType",), - ".group_0047": ("GetAuditLogStreamConfigType",), - ".group_0048": ("CodeScanningAlertRuleSummaryType",), - ".group_0049": ("CodeScanningAnalysisToolType",), - ".group_0050": ( + ".group_0051": ("DatadogConfigType",), + ".group_0052": ("GetAuditLogStreamConfigType",), + ".group_0053": ("CodeScanningAlertRuleSummaryType",), + ".group_0054": ("CodeScanningAnalysisToolType",), + ".group_0055": ( "CodeScanningAlertInstanceType", "CodeScanningAlertLocationType", "CodeScanningAlertInstancePropMessageType", ), - ".group_0051": ("SimpleRepositoryType",), - ".group_0052": ("CodeScanningOrganizationAlertItemsType",), - ".group_0053": ( + ".group_0056": ("SimpleRepositoryType",), + ".group_0057": ("CodeScanningOrganizationAlertItemsType",), + ".group_0058": ( "CodeSecurityConfigurationType", "CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType", "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0054": ("CodeScanningDefaultSetupOptionsType",), - ".group_0055": ("CodeSecurityDefaultConfigurationsItemsType",), - ".group_0056": ("CodeSecurityConfigurationRepositoriesType",), - ".group_0057": ("EnterpriseSecurityAnalysisSettingsType",), - ".group_0058": ( + ".group_0059": ("CodeScanningDefaultSetupOptionsType",), + ".group_0060": ("CodeSecurityDefaultConfigurationsItemsType",), + ".group_0061": ("CodeSecurityConfigurationRepositoriesType",), + ".group_0062": ("EnterpriseSecurityAnalysisSettingsType",), + ".group_0063": ( "GetConsumedLicensesType", "GetConsumedLicensesPropUsersItemsType", ), - ".group_0059": ("TeamSimpleType",), - ".group_0060": ( + ".group_0064": ("TeamSimpleType",), + ".group_0065": ( "TeamType", "TeamPropPermissionsType", ), - ".group_0061": ( + ".group_0066": ( "CopilotSeatDetailsType", "EnterpriseTeamType", ), - ".group_0062": ( + ".group_0067": ( "CopilotUsageMetricsDayType", "CopilotDotcomChatType", "CopilotDotcomChatPropModelsItemsType", @@ -9527,56 +9624,58 @@ "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", ), - ".group_0063": ( + ".group_0068": ( "CopilotUsageMetricsType", "CopilotUsageMetricsPropBreakdownItemsType", ), - ".group_0064": ("DependabotAlertPackageType",), - ".group_0065": ( + ".group_0069": ("DependabotAlertPackageType",), + ".group_0070": ( "DependabotAlertSecurityVulnerabilityType", "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", ), - ".group_0066": ( + ".group_0071": ( "DependabotAlertSecurityAdvisoryType", "DependabotAlertSecurityAdvisoryPropCvssType", "DependabotAlertSecurityAdvisoryPropCwesItemsType", "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", "DependabotAlertSecurityAdvisoryPropReferencesItemsType", ), - ".group_0067": ("DependabotAlertWithRepositoryType",), - ".group_0068": ("DependabotAlertWithRepositoryPropDependencyType",), - ".group_0069": ( + ".group_0072": ("DependabotAlertWithRepositoryType",), + ".group_0073": ("DependabotAlertWithRepositoryPropDependencyType",), + ".group_0074": ( "GetLicenseSyncStatusType", "GetLicenseSyncStatusPropServerInstancesItemsType", "GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType", ), - ".group_0070": ("CustomPropertyType",), - ".group_0071": ("CustomPropertySetPayloadType",), - ".group_0072": ("RepositoryRulesetBypassActorType",), - ".group_0073": ("EnterpriseRulesetConditionsOrganizationNameTargetType",), - ".group_0074": ( + ".group_0075": ("NetworkConfigurationType",), + ".group_0076": ("NetworkSettingsType",), + ".group_0077": ("CustomPropertyType",), + ".group_0078": ("CustomPropertySetPayloadType",), + ".group_0079": ("RepositoryRulesetBypassActorType",), + ".group_0080": ("EnterpriseRulesetConditionsOrganizationNameTargetType",), + ".group_0081": ( "EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType", ), - ".group_0075": ("RepositoryRulesetConditionsRepositoryNameTargetType",), - ".group_0076": ( + ".group_0082": ("RepositoryRulesetConditionsRepositoryNameTargetType",), + ".group_0083": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType", ), - ".group_0077": ("RepositoryRulesetConditionsType",), - ".group_0078": ("RepositoryRulesetConditionsPropRefNameType",), - ".group_0079": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), - ".group_0080": ( + ".group_0084": ("RepositoryRulesetConditionsType",), + ".group_0085": ("RepositoryRulesetConditionsPropRefNameType",), + ".group_0086": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), + ".group_0087": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", "RepositoryRulesetConditionsRepositoryPropertySpecType", ), - ".group_0081": ("EnterpriseRulesetConditionsOrganizationIdTargetType",), - ".group_0082": ( + ".group_0088": ("EnterpriseRulesetConditionsOrganizationIdTargetType",), + ".group_0089": ( "EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType", ), - ".group_0083": ("EnterpriseRulesetConditionsOneof0Type",), - ".group_0084": ("EnterpriseRulesetConditionsOneof1Type",), - ".group_0085": ("EnterpriseRulesetConditionsOneof2Type",), - ".group_0086": ("EnterpriseRulesetConditionsOneof3Type",), - ".group_0087": ( + ".group_0090": ("EnterpriseRulesetConditionsOneof0Type",), + ".group_0091": ("EnterpriseRulesetConditionsOneof1Type",), + ".group_0092": ("EnterpriseRulesetConditionsOneof2Type",), + ".group_0093": ("EnterpriseRulesetConditionsOneof3Type",), + ".group_0094": ( "RepositoryRuleCreationType", "RepositoryRuleDeletionType", "RepositoryRuleRequiredSignaturesType", @@ -9586,143 +9685,143 @@ "RepositoryRuleOneof17Type", "RepositoryRuleOneof17PropParametersType", ), - ".group_0088": ("RepositoryRuleUpdateType",), - ".group_0089": ("RepositoryRuleUpdatePropParametersType",), - ".group_0090": ( + ".group_0095": ("RepositoryRuleUpdateType",), + ".group_0096": ("RepositoryRuleUpdatePropParametersType",), + ".group_0097": ( "RepositoryRuleRequiredLinearHistoryType", "RepositoryRuleOneof16Type", "RepositoryRuleOneof16PropParametersType", ), - ".group_0091": ("RepositoryRuleMergeQueueType",), - ".group_0092": ("RepositoryRuleMergeQueuePropParametersType",), - ".group_0093": ("RepositoryRuleRequiredDeploymentsType",), - ".group_0094": ("RepositoryRuleRequiredDeploymentsPropParametersType",), - ".group_0095": ("RepositoryRuleParamsRequiredReviewerConfigurationType",), - ".group_0096": ("RepositoryRulePullRequestType",), - ".group_0097": ("RepositoryRulePullRequestPropParametersType",), - ".group_0098": ("RepositoryRuleRequiredStatusChecksType",), - ".group_0099": ( + ".group_0098": ("RepositoryRuleMergeQueueType",), + ".group_0099": ("RepositoryRuleMergeQueuePropParametersType",), + ".group_0100": ("RepositoryRuleRequiredDeploymentsType",), + ".group_0101": ("RepositoryRuleRequiredDeploymentsPropParametersType",), + ".group_0102": ("RepositoryRuleParamsRequiredReviewerConfigurationType",), + ".group_0103": ("RepositoryRulePullRequestType",), + ".group_0104": ("RepositoryRulePullRequestPropParametersType",), + ".group_0105": ("RepositoryRuleRequiredStatusChecksType",), + ".group_0106": ( "RepositoryRuleRequiredStatusChecksPropParametersType", "RepositoryRuleParamsStatusCheckConfigurationType", ), - ".group_0100": ("RepositoryRuleCommitMessagePatternType",), - ".group_0101": ("RepositoryRuleCommitMessagePatternPropParametersType",), - ".group_0102": ("RepositoryRuleCommitAuthorEmailPatternType",), - ".group_0103": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), - ".group_0104": ("RepositoryRuleCommitterEmailPatternType",), - ".group_0105": ("RepositoryRuleCommitterEmailPatternPropParametersType",), - ".group_0106": ("RepositoryRuleBranchNamePatternType",), - ".group_0107": ("RepositoryRuleBranchNamePatternPropParametersType",), - ".group_0108": ("RepositoryRuleTagNamePatternType",), - ".group_0109": ("RepositoryRuleTagNamePatternPropParametersType",), - ".group_0110": ("RepositoryRuleParamsRestrictedCommitsType",), - ".group_0111": ("RepositoryRuleWorkflowsType",), - ".group_0112": ( + ".group_0107": ("RepositoryRuleCommitMessagePatternType",), + ".group_0108": ("RepositoryRuleCommitMessagePatternPropParametersType",), + ".group_0109": ("RepositoryRuleCommitAuthorEmailPatternType",), + ".group_0110": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), + ".group_0111": ("RepositoryRuleCommitterEmailPatternType",), + ".group_0112": ("RepositoryRuleCommitterEmailPatternPropParametersType",), + ".group_0113": ("RepositoryRuleBranchNamePatternType",), + ".group_0114": ("RepositoryRuleBranchNamePatternPropParametersType",), + ".group_0115": ("RepositoryRuleTagNamePatternType",), + ".group_0116": ("RepositoryRuleTagNamePatternPropParametersType",), + ".group_0117": ("RepositoryRuleParamsRestrictedCommitsType",), + ".group_0118": ("RepositoryRuleWorkflowsType",), + ".group_0119": ( "RepositoryRuleWorkflowsPropParametersType", "RepositoryRuleParamsWorkflowFileReferenceType", ), - ".group_0113": ("RepositoryRuleCodeScanningType",), - ".group_0114": ( + ".group_0120": ("RepositoryRuleCodeScanningType",), + ".group_0121": ( "RepositoryRuleCodeScanningPropParametersType", "RepositoryRuleParamsCodeScanningToolType", ), - ".group_0115": ( + ".group_0122": ( "RepositoryRuleOneof18Type", "RepositoryRuleOneof18PropParametersType", ), - ".group_0116": ("RepositoryRulesetConditionsRepositoryIdTargetType",), - ".group_0117": ( + ".group_0123": ("RepositoryRulesetConditionsRepositoryIdTargetType",), + ".group_0124": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType", ), - ".group_0118": ("OrgRulesetConditionsOneof0Type",), - ".group_0119": ("OrgRulesetConditionsOneof1Type",), - ".group_0120": ("OrgRulesetConditionsOneof2Type",), - ".group_0121": ( + ".group_0125": ("OrgRulesetConditionsOneof0Type",), + ".group_0126": ("OrgRulesetConditionsOneof1Type",), + ".group_0127": ("OrgRulesetConditionsOneof2Type",), + ".group_0128": ( "RepositoryRulesetType", "RepositoryRulesetPropLinksType", "RepositoryRulesetPropLinksPropSelfType", "RepositoryRulesetPropLinksPropHtmlType", ), - ".group_0122": ("OrganizationSecretScanningAlertType",), - ".group_0123": ( + ".group_0129": ("OrganizationSecretScanningAlertType",), + ".group_0130": ( "ActionsBillingUsageType", "ActionsBillingUsagePropMinutesUsedBreakdownType", ), - ".group_0124": ( + ".group_0131": ( "AdvancedSecurityActiveCommittersType", "AdvancedSecurityActiveCommittersRepositoryType", "AdvancedSecurityActiveCommittersUserType", ), - ".group_0125": ( + ".group_0132": ( "GetAllCostCentersType", "GetAllCostCentersPropCostCentersItemsType", "GetAllCostCentersPropCostCentersItemsPropResourcesItemsType", ), - ".group_0126": ("PackagesBillingUsageType",), - ".group_0127": ("CombinedBillingUsageType",), - ".group_0128": ( + ".group_0133": ("PackagesBillingUsageType",), + ".group_0134": ("CombinedBillingUsageType",), + ".group_0135": ( "BillingUsageReportType", "BillingUsageReportPropUsageItemsItemsType", ), - ".group_0129": ("MilestoneType",), - ".group_0130": ("ReactionRollupType",), - ".group_0131": ( + ".group_0136": ("MilestoneType",), + ".group_0137": ("ReactionRollupType",), + ".group_0138": ( "IssueType", "SubIssuesSummaryType", "IssuePropLabelsItemsOneof1Type", "IssuePropPullRequestType", ), - ".group_0132": ("IssueCommentType",), - ".group_0133": ( + ".group_0139": ("IssueCommentType",), + ".group_0140": ( "EventPropPayloadType", "EventPropPayloadPropPagesItemsType", "EventType", "ActorType", "EventPropRepoType", ), - ".group_0134": ( + ".group_0141": ( "FeedType", "FeedPropLinksType", "LinkWithTypeType", ), - ".group_0135": ( + ".group_0142": ( "BaseGistType", "BaseGistPropFilesType", ), - ".group_0136": ( + ".group_0143": ( "GistHistoryType", "GistHistoryPropChangeStatusType", "GistSimplePropForkOfType", "GistSimplePropForkOfPropFilesType", ), - ".group_0137": ( + ".group_0144": ( "GistSimpleType", "GistSimplePropFilesType", "GistSimplePropForksItemsType", "PublicUserType", "PublicUserPropPlanType", ), - ".group_0138": ("GistCommentType",), - ".group_0139": ( + ".group_0145": ("GistCommentType",), + ".group_0146": ( "GistCommitType", "GistCommitPropChangeStatusType", ), - ".group_0140": ("GitignoreTemplateType",), - ".group_0141": ("LicenseType",), - ".group_0142": ("MarketplaceListingPlanType",), - ".group_0143": ("MarketplacePurchaseType",), - ".group_0144": ( + ".group_0147": ("GitignoreTemplateType",), + ".group_0148": ("LicenseType",), + ".group_0149": ("MarketplaceListingPlanType",), + ".group_0150": ("MarketplacePurchaseType",), + ".group_0151": ( "MarketplacePurchasePropMarketplacePendingChangeType", "MarketplacePurchasePropMarketplacePurchaseType", ), - ".group_0145": ( + ".group_0152": ( "ApiOverviewType", "ApiOverviewPropSshKeyFingerprintsType", "ApiOverviewPropDomainsType", "ApiOverviewPropDomainsPropActionsInboundType", "ApiOverviewPropDomainsPropArtifactAttestationsType", ), - ".group_0146": ( + ".group_0153": ( "SecurityAndAnalysisType", "SecurityAndAnalysisPropAdvancedSecurityType", "SecurityAndAnalysisPropDependabotSecurityUpdatesType", @@ -9732,26 +9831,26 @@ "SecurityAndAnalysisPropSecretScanningAiDetectionType", "SecurityAndAnalysisPropSecretScanningValidityChecksType", ), - ".group_0147": ( + ".group_0154": ( "MinimalRepositoryType", "CodeOfConductType", "MinimalRepositoryPropPermissionsType", "MinimalRepositoryPropLicenseType", ), - ".group_0148": ( + ".group_0155": ( "ThreadType", "ThreadPropSubjectType", ), - ".group_0149": ("ThreadSubscriptionType",), - ".group_0150": ("OrganizationCustomRepositoryRoleType",), - ".group_0151": ( + ".group_0156": ("ThreadSubscriptionType",), + ".group_0157": ("OrganizationCustomRepositoryRoleType",), + ".group_0158": ( "OrganizationFullType", "OrganizationFullPropPlanType", ), - ".group_0152": ("OidcCustomSubType",), - ".group_0153": ("ActionsOrganizationPermissionsType",), - ".group_0154": ("ActionsPublicKeyType",), - ".group_0155": ( + ".group_0159": ("OidcCustomSubType",), + ".group_0160": ("ActionsOrganizationPermissionsType",), + ".group_0161": ("ActionsPublicKeyType",), + ".group_0162": ( "PushRuleBypassRequestType", "PushRuleBypassRequestPropRepositoryType", "PushRuleBypassRequestPropOrganizationType", @@ -9760,99 +9859,99 @@ "BypassResponseType", "BypassResponsePropReviewerType", ), - ".group_0156": ("CodespaceMachineType",), - ".group_0157": ( + ".group_0163": ("CodespaceMachineType",), + ".group_0164": ( "CodespaceType", "CodespacePropGitStatusType", "CodespacePropRuntimeConstraintsType", ), - ".group_0158": ("CodespacesPublicKeyType",), - ".group_0159": ( + ".group_0165": ("CodespacesPublicKeyType",), + ".group_0166": ( "CopilotOrganizationDetailsType", "CopilotSeatBreakdownType", ), - ".group_0160": ("CredentialAuthorizationType",), - ".group_0161": ("OrganizationCustomRepositoryRoleCreateSchemaType",), - ".group_0162": ("OrganizationCustomRepositoryRoleUpdateSchemaType",), - ".group_0163": ("DependabotPublicKeyType",), - ".group_0164": ("PackageType",), - ".group_0165": ( + ".group_0167": ("CredentialAuthorizationType",), + ".group_0168": ("OrganizationCustomRepositoryRoleCreateSchemaType",), + ".group_0169": ("OrganizationCustomRepositoryRoleUpdateSchemaType",), + ".group_0170": ("DependabotPublicKeyType",), + ".group_0171": ("PackageType",), + ".group_0172": ( "ExternalGroupType", "ExternalGroupPropTeamsItemsType", "ExternalGroupPropMembersItemsType", ), - ".group_0166": ( + ".group_0173": ( "ExternalGroupsType", "ExternalGroupsPropGroupsItemsType", ), - ".group_0167": ("OrganizationInvitationType",), - ".group_0168": ("RepositoryFineGrainedPermissionType",), - ".group_0169": ( + ".group_0174": ("OrganizationInvitationType",), + ".group_0175": ("RepositoryFineGrainedPermissionType",), + ".group_0176": ( "OrgHookType", "OrgHookPropConfigType", ), - ".group_0170": ("ApiInsightsRouteStatsItemsType",), - ".group_0171": ("ApiInsightsSubjectStatsItemsType",), - ".group_0172": ("ApiInsightsSummaryStatsType",), - ".group_0173": ("ApiInsightsTimeStatsItemsType",), - ".group_0174": ("ApiInsightsUserStatsItemsType",), - ".group_0175": ("InteractionLimitResponseType",), - ".group_0176": ("InteractionLimitType",), - ".group_0177": ( + ".group_0177": ("ApiInsightsRouteStatsItemsType",), + ".group_0178": ("ApiInsightsSubjectStatsItemsType",), + ".group_0179": ("ApiInsightsSummaryStatsType",), + ".group_0180": ("ApiInsightsTimeStatsItemsType",), + ".group_0181": ("ApiInsightsUserStatsItemsType",), + ".group_0182": ("InteractionLimitResponseType",), + ".group_0183": ("InteractionLimitType",), + ".group_0184": ( "OrgMembershipType", "OrgMembershipPropPermissionsType", ), - ".group_0178": ("MigrationType",), - ".group_0179": ("OrganizationFineGrainedPermissionType",), - ".group_0180": ( + ".group_0185": ("MigrationType",), + ".group_0186": ("OrganizationFineGrainedPermissionType",), + ".group_0187": ( "OrganizationRoleType", "OrgsOrgOrganizationRolesGetResponse200Type", ), - ".group_0181": ("OrganizationCustomOrganizationRoleCreateSchemaType",), - ".group_0182": ("OrganizationCustomOrganizationRoleUpdateSchemaType",), - ".group_0183": ( + ".group_0188": ("OrganizationCustomOrganizationRoleCreateSchemaType",), + ".group_0189": ("OrganizationCustomOrganizationRoleUpdateSchemaType",), + ".group_0190": ( "TeamRoleAssignmentType", "TeamRoleAssignmentPropPermissionsType", ), - ".group_0184": ("UserRoleAssignmentType",), - ".group_0185": ( + ".group_0191": ("UserRoleAssignmentType",), + ".group_0192": ( "PackageVersionType", "PackageVersionPropMetadataType", "PackageVersionPropMetadataPropContainerType", "PackageVersionPropMetadataPropDockerType", ), - ".group_0186": ( + ".group_0193": ( "OrganizationProgrammaticAccessGrantRequestType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", ), - ".group_0187": ( + ".group_0194": ( "OrganizationProgrammaticAccessGrantType", "OrganizationProgrammaticAccessGrantPropPermissionsType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", ), - ".group_0188": ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",), - ".group_0189": ("ProjectType",), - ".group_0190": ("CustomPropertyValueType",), - ".group_0191": ("OrgRepoCustomPropertyValuesType",), - ".group_0192": ("CodeOfConductSimpleType",), - ".group_0193": ( + ".group_0195": ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",), + ".group_0196": ("ProjectType",), + ".group_0197": ("CustomPropertyValueType",), + ".group_0198": ("OrgRepoCustomPropertyValuesType",), + ".group_0199": ("CodeOfConductSimpleType",), + ".group_0200": ( "FullRepositoryType", "FullRepositoryPropPermissionsType", "FullRepositoryPropCustomPropertiesType", ), - ".group_0194": ("RuleSuitesItemsType",), - ".group_0195": ( + ".group_0201": ("RuleSuitesItemsType",), + ".group_0202": ( "RuleSuiteType", "RuleSuitePropRuleEvaluationsItemsType", "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", ), - ".group_0196": ("RepositoryAdvisoryCreditType",), - ".group_0197": ( + ".group_0203": ("RepositoryAdvisoryCreditType",), + ".group_0204": ( "RepositoryAdvisoryType", "RepositoryAdvisoryPropIdentifiersItemsType", "RepositoryAdvisoryPropSubmissionType", @@ -9862,82 +9961,82 @@ "RepositoryAdvisoryVulnerabilityType", "RepositoryAdvisoryVulnerabilityPropPackageType", ), - ".group_0198": ( + ".group_0205": ( "GroupMappingType", "GroupMappingPropGroupsItemsType", ), - ".group_0199": ( + ".group_0206": ( "TeamFullType", "TeamOrganizationType", "TeamOrganizationPropPlanType", ), - ".group_0200": ("TeamDiscussionType",), - ".group_0201": ("TeamDiscussionCommentType",), - ".group_0202": ("ReactionType",), - ".group_0203": ("TeamMembershipType",), - ".group_0204": ( + ".group_0207": ("TeamDiscussionType",), + ".group_0208": ("TeamDiscussionCommentType",), + ".group_0209": ("ReactionType",), + ".group_0210": ("TeamMembershipType",), + ".group_0211": ( "TeamProjectType", "TeamProjectPropPermissionsType", ), - ".group_0205": ( + ".group_0212": ( "TeamRepositoryType", "TeamRepositoryPropPermissionsType", ), - ".group_0206": ("ProjectCardType",), - ".group_0207": ("ProjectColumnType",), - ".group_0208": ("ProjectCollaboratorPermissionType",), - ".group_0209": ("RateLimitType",), - ".group_0210": ("RateLimitOverviewType",), - ".group_0211": ("RateLimitOverviewPropResourcesType",), - ".group_0212": ( + ".group_0213": ("ProjectCardType",), + ".group_0214": ("ProjectColumnType",), + ".group_0215": ("ProjectCollaboratorPermissionType",), + ".group_0216": ("RateLimitType",), + ".group_0217": ("RateLimitOverviewType",), + ".group_0218": ("RateLimitOverviewPropResourcesType",), + ".group_0219": ( "ArtifactType", "ArtifactPropWorkflowRunType", ), - ".group_0213": ( + ".group_0220": ( "ActionsCacheListType", "ActionsCacheListPropActionsCachesItemsType", ), - ".group_0214": ( + ".group_0221": ( "JobType", "JobPropStepsItemsType", ), - ".group_0215": ("OidcCustomSubRepoType",), - ".group_0216": ("ActionsSecretType",), - ".group_0217": ("ActionsVariableType",), - ".group_0218": ("ActionsRepositoryPermissionsType",), - ".group_0219": ("ActionsWorkflowAccessToRepositoryType",), - ".group_0220": ( + ".group_0222": ("OidcCustomSubRepoType",), + ".group_0223": ("ActionsSecretType",), + ".group_0224": ("ActionsVariableType",), + ".group_0225": ("ActionsRepositoryPermissionsType",), + ".group_0226": ("ActionsWorkflowAccessToRepositoryType",), + ".group_0227": ( "PullRequestMinimalType", "PullRequestMinimalPropHeadType", "PullRequestMinimalPropHeadPropRepoType", "PullRequestMinimalPropBaseType", "PullRequestMinimalPropBasePropRepoType", ), - ".group_0221": ( + ".group_0228": ( "SimpleCommitType", "SimpleCommitPropAuthorType", "SimpleCommitPropCommitterType", ), - ".group_0222": ( + ".group_0229": ( "WorkflowRunType", "ReferencedWorkflowType", ), - ".group_0223": ( + ".group_0230": ( "EnvironmentApprovalsType", "EnvironmentApprovalsPropEnvironmentsItemsType", ), - ".group_0224": ("ReviewCustomGatesCommentRequiredType",), - ".group_0225": ("ReviewCustomGatesStateRequiredType",), - ".group_0226": ( + ".group_0231": ("ReviewCustomGatesCommentRequiredType",), + ".group_0232": ("ReviewCustomGatesStateRequiredType",), + ".group_0233": ( "PendingDeploymentPropReviewersItemsType", "PendingDeploymentType", "PendingDeploymentPropEnvironmentType", ), - ".group_0227": ( + ".group_0234": ( "DeploymentType", "DeploymentPropPayloadOneof0Type", ), - ".group_0228": ( + ".group_0235": ( "WorkflowRunUsageType", "WorkflowRunUsagePropBillableType", "WorkflowRunUsagePropBillablePropUbuntuType", @@ -9947,22 +10046,22 @@ "WorkflowRunUsagePropBillablePropWindowsType", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", ), - ".group_0229": ( + ".group_0236": ( "WorkflowUsageType", "WorkflowUsagePropBillableType", "WorkflowUsagePropBillablePropUbuntuType", "WorkflowUsagePropBillablePropMacosType", "WorkflowUsagePropBillablePropWindowsType", ), - ".group_0230": ("ActivityType",), - ".group_0231": ("AutolinkType",), - ".group_0232": ("CheckAutomatedSecurityFixesType",), - ".group_0233": ("ProtectedBranchPullRequestReviewType",), - ".group_0234": ( + ".group_0237": ("ActivityType",), + ".group_0238": ("AutolinkType",), + ".group_0239": ("CheckAutomatedSecurityFixesType",), + ".group_0240": ("ProtectedBranchPullRequestReviewType",), + ".group_0241": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", ), - ".group_0235": ( + ".group_0242": ( "BranchRestrictionPolicyType", "BranchRestrictionPolicyPropUsersItemsType", "BranchRestrictionPolicyPropTeamsItemsType", @@ -9970,7 +10069,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwnerType", "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", ), - ".group_0236": ( + ".group_0243": ( "BranchProtectionType", "ProtectedBranchAdminEnforcedType", "BranchProtectionPropRequiredLinearHistoryType", @@ -9984,28 +10083,28 @@ "ProtectedBranchRequiredStatusCheckType", "ProtectedBranchRequiredStatusCheckPropChecksItemsType", ), - ".group_0237": ( + ".group_0244": ( "ShortBranchType", "ShortBranchPropCommitType", ), - ".group_0238": ("GitUserType",), - ".group_0239": ("VerificationType",), - ".group_0240": ("DiffEntryType",), - ".group_0241": ( + ".group_0245": ("GitUserType",), + ".group_0246": ("VerificationType",), + ".group_0247": ("DiffEntryType",), + ".group_0248": ( "CommitType", "EmptyObjectType", "CommitPropParentsItemsType", "CommitPropStatsType", ), - ".group_0242": ( + ".group_0249": ( "CommitPropCommitType", "CommitPropCommitPropTreeType", ), - ".group_0243": ( + ".group_0250": ( "BranchWithProtectionType", "BranchWithProtectionPropLinksType", ), - ".group_0244": ( + ".group_0251": ( "ProtectedBranchType", "ProtectedBranchPropRequiredSignaturesType", "ProtectedBranchPropEnforceAdminsType", @@ -10019,117 +10118,117 @@ "StatusCheckPolicyType", "StatusCheckPolicyPropChecksItemsType", ), - ".group_0245": ("ProtectedBranchPropRequiredPullRequestReviewsType",), - ".group_0246": ( + ".group_0252": ("ProtectedBranchPropRequiredPullRequestReviewsType",), + ".group_0253": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", ), - ".group_0247": ("DeploymentSimpleType",), - ".group_0248": ( + ".group_0254": ("DeploymentSimpleType",), + ".group_0255": ( "CheckRunType", "CheckRunPropOutputType", "CheckRunPropCheckSuiteType", ), - ".group_0249": ("CheckAnnotationType",), - ".group_0250": ( + ".group_0256": ("CheckAnnotationType",), + ".group_0257": ( "CheckSuiteType", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", ), - ".group_0251": ( + ".group_0258": ( "CheckSuitePreferenceType", "CheckSuitePreferencePropPreferencesType", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", ), - ".group_0252": ("CodeScanningAlertItemsType",), - ".group_0253": ( + ".group_0259": ("CodeScanningAlertItemsType",), + ".group_0260": ( "CodeScanningAlertType", "CodeScanningAlertRuleType", ), - ".group_0254": ("CodeScanningAutofixType",), - ".group_0255": ("CodeScanningAutofixCommitsType",), - ".group_0256": ("CodeScanningAutofixCommitsResponseType",), - ".group_0257": ("CodeScanningAnalysisType",), - ".group_0258": ("CodeScanningAnalysisDeletionType",), - ".group_0259": ("CodeScanningCodeqlDatabaseType",), - ".group_0260": ("CodeScanningVariantAnalysisRepositoryType",), - ".group_0261": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), - ".group_0262": ("CodeScanningVariantAnalysisType",), - ".group_0263": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), - ".group_0264": ( + ".group_0261": ("CodeScanningAutofixType",), + ".group_0262": ("CodeScanningAutofixCommitsType",), + ".group_0263": ("CodeScanningAutofixCommitsResponseType",), + ".group_0264": ("CodeScanningAnalysisType",), + ".group_0265": ("CodeScanningAnalysisDeletionType",), + ".group_0266": ("CodeScanningCodeqlDatabaseType",), + ".group_0267": ("CodeScanningVariantAnalysisRepositoryType",), + ".group_0268": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), + ".group_0269": ("CodeScanningVariantAnalysisType",), + ".group_0270": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), + ".group_0271": ( "CodeScanningVariantAnalysisPropSkippedRepositoriesType", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", ), - ".group_0265": ("CodeScanningVariantAnalysisRepoTaskType",), - ".group_0266": ("CodeScanningDefaultSetupType",), - ".group_0267": ("CodeScanningDefaultSetupUpdateType",), - ".group_0268": ("CodeScanningDefaultSetupUpdateResponseType",), - ".group_0269": ("CodeScanningSarifsReceiptType",), - ".group_0270": ("CodeScanningSarifsStatusType",), - ".group_0271": ("CodeSecurityConfigurationForRepositoryType",), - ".group_0272": ( + ".group_0272": ("CodeScanningVariantAnalysisRepoTaskType",), + ".group_0273": ("CodeScanningDefaultSetupType",), + ".group_0274": ("CodeScanningDefaultSetupUpdateType",), + ".group_0275": ("CodeScanningDefaultSetupUpdateResponseType",), + ".group_0276": ("CodeScanningSarifsReceiptType",), + ".group_0277": ("CodeScanningSarifsStatusType",), + ".group_0278": ("CodeSecurityConfigurationForRepositoryType",), + ".group_0279": ( "CodeownersErrorsType", "CodeownersErrorsPropErrorsItemsType", ), - ".group_0273": ("CodespacesPermissionsCheckForDevcontainerType",), - ".group_0274": ("RepositoryInvitationType",), - ".group_0275": ( + ".group_0280": ("CodespacesPermissionsCheckForDevcontainerType",), + ".group_0281": ("RepositoryInvitationType",), + ".group_0282": ( "RepositoryCollaboratorPermissionType", "CollaboratorType", "CollaboratorPropPermissionsType", ), - ".group_0276": ( + ".group_0283": ( "CommitCommentType", "TimelineCommitCommentedEventType", ), - ".group_0277": ( + ".group_0284": ( "BranchShortType", "BranchShortPropCommitType", ), - ".group_0278": ("LinkType",), - ".group_0279": ("AutoMergeType",), - ".group_0280": ( + ".group_0285": ("LinkType",), + ".group_0286": ("AutoMergeType",), + ".group_0287": ( "PullRequestSimpleType", "PullRequestSimplePropLabelsItemsType", ), - ".group_0281": ( + ".group_0288": ( "PullRequestSimplePropHeadType", "PullRequestSimplePropBaseType", ), - ".group_0282": ("PullRequestSimplePropLinksType",), - ".group_0283": ( + ".group_0289": ("PullRequestSimplePropLinksType",), + ".group_0290": ( "CombinedCommitStatusType", "SimpleCommitStatusType", ), - ".group_0284": ("StatusType",), - ".group_0285": ( + ".group_0291": ("StatusType",), + ".group_0292": ( "CommunityProfilePropFilesType", "CommunityHealthFileType", "CommunityProfileType", ), - ".group_0286": ("CommitComparisonType",), - ".group_0287": ( + ".group_0293": ("CommitComparisonType",), + ".group_0294": ( "ContentTreeType", "ContentTreePropLinksType", "ContentTreePropEntriesItemsType", "ContentTreePropEntriesItemsPropLinksType", ), - ".group_0288": ( + ".group_0295": ( "ContentDirectoryItemsType", "ContentDirectoryItemsPropLinksType", ), - ".group_0289": ( + ".group_0296": ( "ContentFileType", "ContentFilePropLinksType", ), - ".group_0290": ( + ".group_0297": ( "ContentSymlinkType", "ContentSymlinkPropLinksType", ), - ".group_0291": ( + ".group_0298": ( "ContentSubmoduleType", "ContentSubmodulePropLinksType", ), - ".group_0292": ( + ".group_0299": ( "FileCommitType", "FileCommitPropContentType", "FileCommitPropContentPropLinksType", @@ -10140,20 +10239,20 @@ "FileCommitPropCommitPropParentsItemsType", "FileCommitPropCommitPropVerificationType", ), - ".group_0293": ( + ".group_0300": ( "RepositoryRuleViolationErrorType", "RepositoryRuleViolationErrorPropMetadataType", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", ), - ".group_0294": ("ContributorType",), - ".group_0295": ("DependabotAlertType",), - ".group_0296": ("DependabotAlertPropDependencyType",), - ".group_0297": ( + ".group_0301": ("ContributorType",), + ".group_0302": ("DependabotAlertType",), + ".group_0303": ("DependabotAlertPropDependencyType",), + ".group_0304": ( "DependencyGraphDiffItemsType", "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", ), - ".group_0298": ( + ".group_0305": ( "DependencyGraphSpdxSbomType", "DependencyGraphSpdxSbomPropSbomType", "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", @@ -10161,41 +10260,41 @@ "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", ), - ".group_0299": ("MetadataType",), - ".group_0300": ("DependencyType",), - ".group_0301": ( + ".group_0306": ("MetadataType",), + ".group_0307": ("DependencyType",), + ".group_0308": ( "ManifestType", "ManifestPropFileType", "ManifestPropResolvedType", ), - ".group_0302": ( + ".group_0309": ( "SnapshotType", "SnapshotPropJobType", "SnapshotPropDetectorType", "SnapshotPropManifestsType", ), - ".group_0303": ("DeploymentStatusType",), - ".group_0304": ("DeploymentBranchPolicySettingsType",), - ".group_0305": ( + ".group_0310": ("DeploymentStatusType",), + ".group_0311": ("DeploymentBranchPolicySettingsType",), + ".group_0312": ( "EnvironmentType", "EnvironmentPropProtectionRulesItemsAnyof0Type", "EnvironmentPropProtectionRulesItemsAnyof2Type", "ReposOwnerRepoEnvironmentsGetResponse200Type", ), - ".group_0306": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), - ".group_0307": ( + ".group_0313": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), + ".group_0314": ( "EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType", ), - ".group_0308": ("DeploymentBranchPolicyNamePatternWithTypeType",), - ".group_0309": ("DeploymentBranchPolicyNamePatternType",), - ".group_0310": ("CustomDeploymentRuleAppType",), - ".group_0311": ( + ".group_0315": ("DeploymentBranchPolicyNamePatternWithTypeType",), + ".group_0316": ("DeploymentBranchPolicyNamePatternType",), + ".group_0317": ("CustomDeploymentRuleAppType",), + ".group_0318": ( "DeploymentProtectionRuleType", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ), - ".group_0312": ("ShortBlobType",), - ".group_0313": ("BlobType",), - ".group_0314": ( + ".group_0319": ("ShortBlobType",), + ".group_0320": ("BlobType",), + ".group_0321": ( "GitCommitType", "GitCommitPropAuthorType", "GitCommitPropCommitterType", @@ -10203,28 +10302,28 @@ "GitCommitPropParentsItemsType", "GitCommitPropVerificationType", ), - ".group_0315": ( + ".group_0322": ( "GitRefType", "GitRefPropObjectType", ), - ".group_0316": ( + ".group_0323": ( "GitTagType", "GitTagPropTaggerType", "GitTagPropObjectType", ), - ".group_0317": ( + ".group_0324": ( "GitTreeType", "GitTreePropTreeItemsType", ), - ".group_0318": ("HookResponseType",), - ".group_0319": ("HookType",), - ".group_0320": ( + ".group_0325": ("HookResponseType",), + ".group_0326": ("HookType",), + ".group_0327": ( "ImportType", "ImportPropProjectChoicesItemsType", ), - ".group_0321": ("PorterAuthorType",), - ".group_0322": ("PorterLargeFileType",), - ".group_0323": ( + ".group_0328": ("PorterAuthorType",), + ".group_0329": ("PorterLargeFileType",), + ".group_0330": ( "IssueEventType", "IssueEventLabelType", "IssueEventDismissedReviewType", @@ -10232,55 +10331,55 @@ "IssueEventProjectCardType", "IssueEventRenameType", ), - ".group_0324": ( + ".group_0331": ( "LabeledIssueEventType", "LabeledIssueEventPropLabelType", ), - ".group_0325": ( + ".group_0332": ( "UnlabeledIssueEventType", "UnlabeledIssueEventPropLabelType", ), - ".group_0326": ("AssignedIssueEventType",), - ".group_0327": ("UnassignedIssueEventType",), - ".group_0328": ( + ".group_0333": ("AssignedIssueEventType",), + ".group_0334": ("UnassignedIssueEventType",), + ".group_0335": ( "MilestonedIssueEventType", "MilestonedIssueEventPropMilestoneType", ), - ".group_0329": ( + ".group_0336": ( "DemilestonedIssueEventType", "DemilestonedIssueEventPropMilestoneType", ), - ".group_0330": ( + ".group_0337": ( "RenamedIssueEventType", "RenamedIssueEventPropRenameType", ), - ".group_0331": ("ReviewRequestedIssueEventType",), - ".group_0332": ("ReviewRequestRemovedIssueEventType",), - ".group_0333": ( + ".group_0338": ("ReviewRequestedIssueEventType",), + ".group_0339": ("ReviewRequestRemovedIssueEventType",), + ".group_0340": ( "ReviewDismissedIssueEventType", "ReviewDismissedIssueEventPropDismissedReviewType", ), - ".group_0334": ("LockedIssueEventType",), - ".group_0335": ( + ".group_0341": ("LockedIssueEventType",), + ".group_0342": ( "AddedToProjectIssueEventType", "AddedToProjectIssueEventPropProjectCardType", ), - ".group_0336": ( + ".group_0343": ( "MovedColumnInProjectIssueEventType", "MovedColumnInProjectIssueEventPropProjectCardType", ), - ".group_0337": ( + ".group_0344": ( "RemovedFromProjectIssueEventType", "RemovedFromProjectIssueEventPropProjectCardType", ), - ".group_0338": ( + ".group_0345": ( "ConvertedNoteToIssueIssueEventType", "ConvertedNoteToIssueIssueEventPropProjectCardType", ), - ".group_0339": ("TimelineCommentEventType",), - ".group_0340": ("TimelineCrossReferencedEventType",), - ".group_0341": ("TimelineCrossReferencedEventPropSourceType",), - ".group_0342": ( + ".group_0346": ("TimelineCommentEventType",), + ".group_0347": ("TimelineCrossReferencedEventType",), + ".group_0348": ("TimelineCrossReferencedEventPropSourceType",), + ".group_0349": ( "TimelineCommittedEventType", "TimelineCommittedEventPropAuthorType", "TimelineCommittedEventPropCommitterType", @@ -10288,13 +10387,13 @@ "TimelineCommittedEventPropParentsItemsType", "TimelineCommittedEventPropVerificationType", ), - ".group_0343": ( + ".group_0350": ( "TimelineReviewedEventType", "TimelineReviewedEventPropLinksType", "TimelineReviewedEventPropLinksPropHtmlType", "TimelineReviewedEventPropLinksPropPullRequestType", ), - ".group_0344": ( + ".group_0351": ( "PullRequestReviewCommentType", "PullRequestReviewCommentPropLinksType", "PullRequestReviewCommentPropLinksPropSelfType", @@ -10302,157 +10401,157 @@ "PullRequestReviewCommentPropLinksPropPullRequestType", "TimelineLineCommentedEventType", ), - ".group_0345": ("TimelineAssignedIssueEventType",), - ".group_0346": ("TimelineUnassignedIssueEventType",), - ".group_0347": ("StateChangeIssueEventType",), - ".group_0348": ("DeployKeyType",), - ".group_0349": ("LanguageType",), - ".group_0350": ( + ".group_0352": ("TimelineAssignedIssueEventType",), + ".group_0353": ("TimelineUnassignedIssueEventType",), + ".group_0354": ("StateChangeIssueEventType",), + ".group_0355": ("DeployKeyType",), + ".group_0356": ("LanguageType",), + ".group_0357": ( "LicenseContentType", "LicenseContentPropLinksType", ), - ".group_0351": ("MergedUpstreamType",), - ".group_0352": ( + ".group_0358": ("MergedUpstreamType",), + ".group_0359": ( "PageType", "PagesSourceHashType", "PagesHttpsCertificateType", ), - ".group_0353": ( + ".group_0360": ( "PageBuildType", "PageBuildPropErrorType", ), - ".group_0354": ("PageBuildStatusType",), - ".group_0355": ("PageDeploymentType",), - ".group_0356": ("PagesDeploymentStatusType",), - ".group_0357": ( + ".group_0361": ("PageBuildStatusType",), + ".group_0362": ("PageDeploymentType",), + ".group_0363": ("PagesDeploymentStatusType",), + ".group_0364": ( "PagesHealthCheckType", "PagesHealthCheckPropDomainType", "PagesHealthCheckPropAltDomainType", ), - ".group_0358": ("PullRequestType",), - ".group_0359": ("PullRequestPropLabelsItemsType",), - ".group_0360": ( + ".group_0365": ("PullRequestType",), + ".group_0366": ("PullRequestPropLabelsItemsType",), + ".group_0367": ( "PullRequestPropHeadType", "PullRequestPropBaseType", ), - ".group_0361": ("PullRequestPropLinksType",), - ".group_0362": ("PullRequestMergeResultType",), - ".group_0363": ("PullRequestReviewRequestType",), - ".group_0364": ( + ".group_0368": ("PullRequestPropLinksType",), + ".group_0369": ("PullRequestMergeResultType",), + ".group_0370": ("PullRequestReviewRequestType",), + ".group_0371": ( "PullRequestReviewType", "PullRequestReviewPropLinksType", "PullRequestReviewPropLinksPropHtmlType", "PullRequestReviewPropLinksPropPullRequestType", ), - ".group_0365": ("ReviewCommentType",), - ".group_0366": ("ReviewCommentPropLinksType",), - ".group_0367": ("ReleaseAssetType",), - ".group_0368": ("ReleaseType",), - ".group_0369": ("ReleaseNotesContentType",), - ".group_0370": ("RepositoryRuleRulesetInfoType",), - ".group_0371": ("RepositoryRuleDetailedOneof0Type",), - ".group_0372": ("RepositoryRuleDetailedOneof1Type",), - ".group_0373": ("RepositoryRuleDetailedOneof2Type",), - ".group_0374": ("RepositoryRuleDetailedOneof3Type",), - ".group_0375": ("RepositoryRuleDetailedOneof4Type",), - ".group_0376": ("RepositoryRuleDetailedOneof5Type",), - ".group_0377": ("RepositoryRuleDetailedOneof6Type",), - ".group_0378": ("RepositoryRuleDetailedOneof7Type",), - ".group_0379": ("RepositoryRuleDetailedOneof8Type",), - ".group_0380": ("RepositoryRuleDetailedOneof9Type",), - ".group_0381": ("RepositoryRuleDetailedOneof10Type",), - ".group_0382": ("RepositoryRuleDetailedOneof11Type",), - ".group_0383": ("RepositoryRuleDetailedOneof12Type",), - ".group_0384": ("RepositoryRuleDetailedOneof13Type",), - ".group_0385": ("RepositoryRuleDetailedOneof14Type",), - ".group_0386": ("RepositoryRuleDetailedOneof15Type",), - ".group_0387": ("RepositoryRuleDetailedOneof16Type",), - ".group_0388": ("SecretScanningAlertType",), - ".group_0389": ("SecretScanningPushProtectionBypassType",), - ".group_0390": ( + ".group_0372": ("ReviewCommentType",), + ".group_0373": ("ReviewCommentPropLinksType",), + ".group_0374": ("ReleaseAssetType",), + ".group_0375": ("ReleaseType",), + ".group_0376": ("ReleaseNotesContentType",), + ".group_0377": ("RepositoryRuleRulesetInfoType",), + ".group_0378": ("RepositoryRuleDetailedOneof0Type",), + ".group_0379": ("RepositoryRuleDetailedOneof1Type",), + ".group_0380": ("RepositoryRuleDetailedOneof2Type",), + ".group_0381": ("RepositoryRuleDetailedOneof3Type",), + ".group_0382": ("RepositoryRuleDetailedOneof4Type",), + ".group_0383": ("RepositoryRuleDetailedOneof5Type",), + ".group_0384": ("RepositoryRuleDetailedOneof6Type",), + ".group_0385": ("RepositoryRuleDetailedOneof7Type",), + ".group_0386": ("RepositoryRuleDetailedOneof8Type",), + ".group_0387": ("RepositoryRuleDetailedOneof9Type",), + ".group_0388": ("RepositoryRuleDetailedOneof10Type",), + ".group_0389": ("RepositoryRuleDetailedOneof11Type",), + ".group_0390": ("RepositoryRuleDetailedOneof12Type",), + ".group_0391": ("RepositoryRuleDetailedOneof13Type",), + ".group_0392": ("RepositoryRuleDetailedOneof14Type",), + ".group_0393": ("RepositoryRuleDetailedOneof15Type",), + ".group_0394": ("RepositoryRuleDetailedOneof16Type",), + ".group_0395": ("SecretScanningAlertType",), + ".group_0396": ("SecretScanningPushProtectionBypassType",), + ".group_0397": ( "SecretScanningScanHistoryType", "SecretScanningScanType", "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", ), - ".group_0391": ( + ".group_0398": ( "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type", ), - ".group_0392": ( + ".group_0399": ( "RepositoryAdvisoryCreateType", "RepositoryAdvisoryCreatePropCreditsItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0393": ( + ".group_0400": ( "PrivateVulnerabilityReportCreateType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0394": ( + ".group_0401": ( "RepositoryAdvisoryUpdateType", "RepositoryAdvisoryUpdatePropCreditsItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0395": ("StargazerType",), - ".group_0396": ("CommitActivityType",), - ".group_0397": ( + ".group_0402": ("StargazerType",), + ".group_0403": ("CommitActivityType",), + ".group_0404": ( "ContributorActivityType", "ContributorActivityPropWeeksItemsType", ), - ".group_0398": ("ParticipationStatsType",), - ".group_0399": ("RepositorySubscriptionType",), - ".group_0400": ( + ".group_0405": ("ParticipationStatsType",), + ".group_0406": ("RepositorySubscriptionType",), + ".group_0407": ( "TagType", "TagPropCommitType", ), - ".group_0401": ("TagProtectionType",), - ".group_0402": ("TopicType",), - ".group_0403": ("TrafficType",), - ".group_0404": ("CloneTrafficType",), - ".group_0405": ("ContentTrafficType",), - ".group_0406": ("ReferrerTrafficType",), - ".group_0407": ("ViewTrafficType",), - ".group_0408": ( + ".group_0408": ("TagProtectionType",), + ".group_0409": ("TopicType",), + ".group_0410": ("TrafficType",), + ".group_0411": ("CloneTrafficType",), + ".group_0412": ("ContentTrafficType",), + ".group_0413": ("ReferrerTrafficType",), + ".group_0414": ("ViewTrafficType",), + ".group_0415": ( "GroupResponseType", "GroupResponsePropMembersItemsType", ), - ".group_0409": ("MetaType",), - ".group_0410": ( + ".group_0416": ("MetaType",), + ".group_0417": ( "ScimEnterpriseGroupResponseType", "ScimEnterpriseGroupResponseMergedMembersType", "ScimEnterpriseGroupListType", ), - ".group_0411": ( + ".group_0418": ( "ScimEnterpriseGroupResponseAllof1Type", "ScimEnterpriseGroupResponseAllof1PropMembersItemsType", ), - ".group_0412": ( + ".group_0419": ( "GroupType", "GroupPropMembersItemsType", ), - ".group_0413": ( + ".group_0420": ( "PatchSchemaType", "PatchSchemaPropOperationsItemsType", ), - ".group_0414": ( + ".group_0421": ( "UserNameResponseType", "UserEmailsResponseItemsType", ), - ".group_0415": ("UserRoleItemsType",), - ".group_0416": ("UserResponseType",), - ".group_0417": ( + ".group_0422": ("UserRoleItemsType",), + ".group_0423": ("UserResponseType",), + ".group_0424": ( "ScimEnterpriseUserResponseType", "ScimEnterpriseUserListType", ), - ".group_0418": ("ScimEnterpriseUserResponseAllof1Type",), - ".group_0419": ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",), - ".group_0420": ( + ".group_0425": ("ScimEnterpriseUserResponseAllof1Type",), + ".group_0426": ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",), + ".group_0427": ( "UserType", "UserNameType", "UserEmailsItemsType", ), - ".group_0421": ( + ".group_0428": ( "ScimUserListType", "ScimUserType", "ScimUserPropNameType", @@ -10463,41 +10562,41 @@ "ScimUserPropOperationsItemsType", "ScimUserPropOperationsItemsPropValueOneof1Type", ), - ".group_0422": ( + ".group_0429": ( "SearchResultTextMatchesItemsType", "SearchResultTextMatchesItemsPropMatchesItemsType", ), - ".group_0423": ( + ".group_0430": ( "CodeSearchResultItemType", "SearchCodeGetResponse200Type", ), - ".group_0424": ( + ".group_0431": ( "CommitSearchResultItemType", "CommitSearchResultItemPropParentsItemsType", "SearchCommitsGetResponse200Type", ), - ".group_0425": ( + ".group_0432": ( "CommitSearchResultItemPropCommitType", "CommitSearchResultItemPropCommitPropAuthorType", "CommitSearchResultItemPropCommitPropTreeType", ), - ".group_0426": ( + ".group_0433": ( "IssueSearchResultItemType", "IssueSearchResultItemPropLabelsItemsType", "IssueSearchResultItemPropSubIssuesSummaryType", "IssueSearchResultItemPropPullRequestType", "SearchIssuesGetResponse200Type", ), - ".group_0427": ( + ".group_0434": ( "LabelSearchResultItemType", "SearchLabelsGetResponse200Type", ), - ".group_0428": ( + ".group_0435": ( "RepoSearchResultItemType", "RepoSearchResultItemPropPermissionsType", "SearchRepositoriesGetResponse200Type", ), - ".group_0429": ( + ".group_0436": ( "TopicSearchResultItemType", "TopicSearchResultItemPropRelatedItemsType", "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", @@ -10505,45 +10604,45 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", "SearchTopicsGetResponse200Type", ), - ".group_0430": ( + ".group_0437": ( "UserSearchResultItemType", "SearchUsersGetResponse200Type", ), - ".group_0431": ( + ".group_0438": ( "PrivateUserType", "PrivateUserPropPlanType", ), - ".group_0432": ("CodespacesUserPublicKeyType",), - ".group_0433": ("CodespaceExportDetailsType",), - ".group_0434": ( + ".group_0439": ("CodespacesUserPublicKeyType",), + ".group_0440": ("CodespaceExportDetailsType",), + ".group_0441": ( "CodespaceWithFullRepositoryType", "CodespaceWithFullRepositoryPropGitStatusType", "CodespaceWithFullRepositoryPropRuntimeConstraintsType", ), - ".group_0435": ("EmailType",), - ".group_0436": ( + ".group_0442": ("EmailType",), + ".group_0443": ( "GpgKeyType", "GpgKeyPropEmailsItemsType", "GpgKeyPropSubkeysItemsType", "GpgKeyPropSubkeysItemsPropEmailsItemsType", ), - ".group_0437": ("KeyType",), - ".group_0438": ( + ".group_0444": ("KeyType",), + ".group_0445": ( "UserMarketplacePurchaseType", "MarketplaceAccountType", ), - ".group_0439": ("SocialAccountType",), - ".group_0440": ("SshSigningKeyType",), - ".group_0441": ("StarredRepositoryType",), - ".group_0442": ( + ".group_0446": ("SocialAccountType",), + ".group_0447": ("SshSigningKeyType",), + ".group_0448": ("StarredRepositoryType",), + ".group_0449": ( "HovercardType", "HovercardPropContextsItemsType", ), - ".group_0443": ("KeySimpleType",), - ".group_0444": ("EnterpriseWebhooksType",), - ".group_0445": ("SimpleInstallationType",), - ".group_0446": ("OrganizationSimpleWebhooksType",), - ".group_0447": ( + ".group_0450": ("KeySimpleType",), + ".group_0451": ("EnterpriseWebhooksType",), + ".group_0452": ("SimpleInstallationType",), + ".group_0453": ("OrganizationSimpleWebhooksType",), + ".group_0454": ( "RepositoryWebhooksType", "RepositoryWebhooksPropPermissionsType", "RepositoryWebhooksPropCustomPropertiesType", @@ -10551,9 +10650,9 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", ), - ".group_0448": ("WebhooksRuleType",), - ".group_0449": ("ExemptionResponseType",), - ".group_0450": ( + ".group_0455": ("WebhooksRuleType",), + ".group_0456": ("ExemptionResponseType",), + ".group_0457": ( "ExemptionRequestType", "ExemptionRequestSecretScanningMetadataType", "ExemptionRequestPushRulesetBypassType", @@ -10562,26 +10661,26 @@ "ExemptionRequestSecretScanningPropDataItemsType", "ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType", ), - ".group_0451": ("SimpleCheckSuiteType",), - ".group_0452": ( + ".group_0458": ("SimpleCheckSuiteType",), + ".group_0459": ( "CheckRunWithSimpleCheckSuiteType", "CheckRunWithSimpleCheckSuitePropOutputType", ), - ".group_0453": ("WebhooksDeployKeyType",), - ".group_0454": ("WebhooksWorkflowType",), - ".group_0455": ( + ".group_0460": ("WebhooksDeployKeyType",), + ".group_0461": ("WebhooksWorkflowType",), + ".group_0462": ( "WebhooksApproverType", "WebhooksReviewersItemsType", "WebhooksReviewersItemsPropReviewerType", ), - ".group_0456": ("WebhooksWorkflowJobRunType",), - ".group_0457": ("WebhooksUserType",), - ".group_0458": ( + ".group_0463": ("WebhooksWorkflowJobRunType",), + ".group_0464": ("WebhooksUserType",), + ".group_0465": ( "WebhooksAnswerType", "WebhooksAnswerPropReactionsType", "WebhooksAnswerPropUserType", ), - ".group_0459": ( + ".group_0466": ( "DiscussionType", "LabelType", "DiscussionPropAnswerChosenByType", @@ -10589,24 +10688,24 @@ "DiscussionPropReactionsType", "DiscussionPropUserType", ), - ".group_0460": ( + ".group_0467": ( "WebhooksCommentType", "WebhooksCommentPropReactionsType", "WebhooksCommentPropUserType", ), - ".group_0461": ("WebhooksLabelType",), - ".group_0462": ("WebhooksRepositoriesItemsType",), - ".group_0463": ("WebhooksRepositoriesAddedItemsType",), - ".group_0464": ( + ".group_0468": ("WebhooksLabelType",), + ".group_0469": ("WebhooksRepositoriesItemsType",), + ".group_0470": ("WebhooksRepositoriesAddedItemsType",), + ".group_0471": ( "WebhooksIssueCommentType", "WebhooksIssueCommentPropReactionsType", "WebhooksIssueCommentPropUserType", ), - ".group_0465": ( + ".group_0472": ( "WebhooksChangesType", "WebhooksChangesPropBodyType", ), - ".group_0466": ( + ".group_0473": ( "WebhooksIssueType", "WebhooksIssuePropAssigneeType", "WebhooksIssuePropAssigneesItemsType", @@ -10621,11 +10720,11 @@ "WebhooksIssuePropSubIssuesSummaryType", "WebhooksIssuePropUserType", ), - ".group_0467": ( + ".group_0474": ( "WebhooksMilestoneType", "WebhooksMilestonePropCreatorType", ), - ".group_0468": ( + ".group_0475": ( "WebhooksIssue2Type", "WebhooksIssue2PropAssigneeType", "WebhooksIssue2PropAssigneesItemsType", @@ -10640,31 +10739,31 @@ "WebhooksIssue2PropSubIssuesSummaryType", "WebhooksIssue2PropUserType", ), - ".group_0469": ("WebhooksUserMannequinType",), - ".group_0470": ( + ".group_0476": ("WebhooksUserMannequinType",), + ".group_0477": ( "WebhooksMarketplacePurchaseType", "WebhooksMarketplacePurchasePropAccountType", "WebhooksMarketplacePurchasePropPlanType", ), - ".group_0471": ( + ".group_0478": ( "WebhooksPreviousMarketplacePurchaseType", "WebhooksPreviousMarketplacePurchasePropAccountType", "WebhooksPreviousMarketplacePurchasePropPlanType", ), - ".group_0472": ( + ".group_0479": ( "WebhooksTeamType", "WebhooksTeamPropParentType", ), - ".group_0473": ("MergeGroupType",), - ".group_0474": ( + ".group_0480": ("MergeGroupType",), + ".group_0481": ( "WebhooksMilestone3Type", "WebhooksMilestone3PropCreatorType", ), - ".group_0475": ( + ".group_0482": ( "WebhooksMembershipType", "WebhooksMembershipPropUserType", ), - ".group_0476": ( + ".group_0483": ( "PersonalAccessTokenRequestType", "PersonalAccessTokenRequestPropRepositoriesItemsType", "PersonalAccessTokenRequestPropPermissionsAddedType", @@ -10680,25 +10779,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", ), - ".group_0477": ( + ".group_0484": ( "WebhooksProjectCardType", "WebhooksProjectCardPropCreatorType", ), - ".group_0478": ( + ".group_0485": ( "WebhooksProjectType", "WebhooksProjectPropCreatorType", ), - ".group_0479": ("WebhooksProjectColumnType",), - ".group_0480": ("ProjectsV2Type",), - ".group_0481": ( + ".group_0486": ("WebhooksProjectColumnType",), + ".group_0487": ("ProjectsV2Type",), + ".group_0488": ( "WebhooksProjectChangesType", "WebhooksProjectChangesPropArchivedAtType", ), - ".group_0482": ("ProjectsV2ItemType",), - ".group_0483": ("ProjectsV2StatusUpdateType",), - ".group_0484": ("PullRequestWebhookType",), - ".group_0485": ("PullRequestWebhookAllof1Type",), - ".group_0486": ( + ".group_0489": ("ProjectsV2ItemType",), + ".group_0490": ("ProjectsV2StatusUpdateType",), + ".group_0491": ("PullRequestWebhookType",), + ".group_0492": ("PullRequestWebhookAllof1Type",), + ".group_0493": ( "WebhooksPullRequest5Type", "WebhooksPullRequest5PropAssigneeType", "WebhooksPullRequest5PropAssigneesItemsType", @@ -10736,7 +10835,7 @@ "WebhooksPullRequest5PropRequestedTeamsItemsType", "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", ), - ".group_0487": ( + ".group_0494": ( "WebhooksReviewCommentType", "WebhooksReviewCommentPropReactionsType", "WebhooksReviewCommentPropUserType", @@ -10745,33 +10844,33 @@ "WebhooksReviewCommentPropLinksPropPullRequestType", "WebhooksReviewCommentPropLinksPropSelfType", ), - ".group_0488": ( + ".group_0495": ( "WebhooksReviewType", "WebhooksReviewPropUserType", "WebhooksReviewPropLinksType", "WebhooksReviewPropLinksPropHtmlType", "WebhooksReviewPropLinksPropPullRequestType", ), - ".group_0489": ( + ".group_0496": ( "WebhooksReleaseType", "WebhooksReleasePropAuthorType", "WebhooksReleasePropReactionsType", "WebhooksReleasePropAssetsItemsType", "WebhooksReleasePropAssetsItemsPropUploaderType", ), - ".group_0490": ( + ".group_0497": ( "WebhooksRelease1Type", "WebhooksRelease1PropAssetsItemsType", "WebhooksRelease1PropAssetsItemsPropUploaderType", "WebhooksRelease1PropAuthorType", "WebhooksRelease1PropReactionsType", ), - ".group_0491": ( + ".group_0498": ( "WebhooksAlertType", "WebhooksAlertPropDismisserType", ), - ".group_0492": ("SecretScanningAlertWebhookType",), - ".group_0493": ( + ".group_0499": ("SecretScanningAlertWebhookType",), + ".group_0500": ( "WebhooksSecurityAdvisoryType", "WebhooksSecurityAdvisoryPropCvssType", "WebhooksSecurityAdvisoryPropCwesItemsType", @@ -10781,27 +10880,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0494": ( + ".group_0501": ( "WebhooksSponsorshipType", "WebhooksSponsorshipPropMaintainerType", "WebhooksSponsorshipPropSponsorType", "WebhooksSponsorshipPropSponsorableType", "WebhooksSponsorshipPropTierType", ), - ".group_0495": ( + ".group_0502": ( "WebhooksChanges8Type", "WebhooksChanges8PropTierType", "WebhooksChanges8PropTierPropFromType", ), - ".group_0496": ( + ".group_0503": ( "WebhooksTeam1Type", "WebhooksTeam1PropParentType", ), - ".group_0497": ("WebhookBranchProtectionConfigurationDisabledType",), - ".group_0498": ("WebhookBranchProtectionConfigurationEnabledType",), - ".group_0499": ("WebhookBranchProtectionRuleCreatedType",), - ".group_0500": ("WebhookBranchProtectionRuleDeletedType",), - ".group_0501": ( + ".group_0504": ("WebhookBranchProtectionConfigurationDisabledType",), + ".group_0505": ("WebhookBranchProtectionConfigurationEnabledType",), + ".group_0506": ("WebhookBranchProtectionRuleCreatedType",), + ".group_0507": ("WebhookBranchProtectionRuleDeletedType",), + ".group_0508": ( "WebhookBranchProtectionRuleEditedType", "WebhookBranchProtectionRuleEditedPropChangesType", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", @@ -10816,23 +10915,23 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", ), - ".group_0502": ("WebhookExemptionRequestCancelledType",), - ".group_0503": ("WebhookExemptionRequestCompletedType",), - ".group_0504": ("WebhookExemptionRequestCreatedType",), - ".group_0505": ("WebhookExemptionRequestResponseDismissedType",), - ".group_0506": ("WebhookExemptionRequestResponseSubmittedType",), - ".group_0507": ("WebhookCheckRunCompletedType",), - ".group_0508": ("WebhookCheckRunCompletedFormEncodedType",), - ".group_0509": ("WebhookCheckRunCreatedType",), - ".group_0510": ("WebhookCheckRunCreatedFormEncodedType",), - ".group_0511": ( + ".group_0509": ("WebhookExemptionRequestCancelledType",), + ".group_0510": ("WebhookExemptionRequestCompletedType",), + ".group_0511": ("WebhookExemptionRequestCreatedType",), + ".group_0512": ("WebhookExemptionRequestResponseDismissedType",), + ".group_0513": ("WebhookExemptionRequestResponseSubmittedType",), + ".group_0514": ("WebhookCheckRunCompletedType",), + ".group_0515": ("WebhookCheckRunCompletedFormEncodedType",), + ".group_0516": ("WebhookCheckRunCreatedType",), + ".group_0517": ("WebhookCheckRunCreatedFormEncodedType",), + ".group_0518": ( "WebhookCheckRunRequestedActionType", "WebhookCheckRunRequestedActionPropRequestedActionType", ), - ".group_0512": ("WebhookCheckRunRequestedActionFormEncodedType",), - ".group_0513": ("WebhookCheckRunRerequestedType",), - ".group_0514": ("WebhookCheckRunRerequestedFormEncodedType",), - ".group_0515": ( + ".group_0519": ("WebhookCheckRunRequestedActionFormEncodedType",), + ".group_0520": ("WebhookCheckRunRerequestedType",), + ".group_0521": ("WebhookCheckRunRerequestedFormEncodedType",), + ".group_0522": ( "WebhookCheckSuiteCompletedType", "WebhookCheckSuiteCompletedPropCheckSuiteType", "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", @@ -10847,7 +10946,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0516": ( + ".group_0523": ( "WebhookCheckSuiteRequestedType", "WebhookCheckSuiteRequestedPropCheckSuiteType", "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", @@ -10862,7 +10961,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0517": ( + ".group_0524": ( "WebhookCheckSuiteRerequestedType", "WebhookCheckSuiteRerequestedPropCheckSuiteType", "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", @@ -10877,7 +10976,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0518": ( + ".group_0525": ( "WebhookCodeScanningAlertAppearedInBranchType", "WebhookCodeScanningAlertAppearedInBranchPropAlertType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", @@ -10887,7 +10986,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ), - ".group_0519": ( + ".group_0526": ( "WebhookCodeScanningAlertClosedByUserType", "WebhookCodeScanningAlertClosedByUserPropAlertType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", @@ -10897,7 +10996,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", ), - ".group_0520": ( + ".group_0527": ( "WebhookCodeScanningAlertCreatedType", "WebhookCodeScanningAlertCreatedPropAlertType", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", @@ -10906,7 +11005,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", "WebhookCodeScanningAlertCreatedPropAlertPropToolType", ), - ".group_0521": ( + ".group_0528": ( "WebhookCodeScanningAlertFixedType", "WebhookCodeScanningAlertFixedPropAlertType", "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", @@ -10916,7 +11015,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRuleType", "WebhookCodeScanningAlertFixedPropAlertPropToolType", ), - ".group_0522": ( + ".group_0529": ( "WebhookCodeScanningAlertReopenedType", "WebhookCodeScanningAlertReopenedPropAlertType", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", @@ -10926,7 +11025,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedPropAlertPropToolType", ), - ".group_0523": ( + ".group_0530": ( "WebhookCodeScanningAlertReopenedByUserType", "WebhookCodeScanningAlertReopenedByUserPropAlertType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", @@ -10935,31 +11034,31 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", ), - ".group_0524": ( + ".group_0531": ( "WebhookCommitCommentCreatedType", "WebhookCommitCommentCreatedPropCommentType", "WebhookCommitCommentCreatedPropCommentPropReactionsType", "WebhookCommitCommentCreatedPropCommentPropUserType", ), - ".group_0525": ("WebhookCreateType",), - ".group_0526": ("WebhookCustomPropertyCreatedType",), - ".group_0527": ( + ".group_0532": ("WebhookCreateType",), + ".group_0533": ("WebhookCustomPropertyCreatedType",), + ".group_0534": ( "WebhookCustomPropertyDeletedType", "WebhookCustomPropertyDeletedPropDefinitionType", ), - ".group_0528": ("WebhookCustomPropertyUpdatedType",), - ".group_0529": ("WebhookCustomPropertyValuesUpdatedType",), - ".group_0530": ("WebhookDeleteType",), - ".group_0531": ("WebhookDependabotAlertAutoDismissedType",), - ".group_0532": ("WebhookDependabotAlertAutoReopenedType",), - ".group_0533": ("WebhookDependabotAlertCreatedType",), - ".group_0534": ("WebhookDependabotAlertDismissedType",), - ".group_0535": ("WebhookDependabotAlertFixedType",), - ".group_0536": ("WebhookDependabotAlertReintroducedType",), - ".group_0537": ("WebhookDependabotAlertReopenedType",), - ".group_0538": ("WebhookDeployKeyCreatedType",), - ".group_0539": ("WebhookDeployKeyDeletedType",), - ".group_0540": ( + ".group_0535": ("WebhookCustomPropertyUpdatedType",), + ".group_0536": ("WebhookCustomPropertyValuesUpdatedType",), + ".group_0537": ("WebhookDeleteType",), + ".group_0538": ("WebhookDependabotAlertAutoDismissedType",), + ".group_0539": ("WebhookDependabotAlertAutoReopenedType",), + ".group_0540": ("WebhookDependabotAlertCreatedType",), + ".group_0541": ("WebhookDependabotAlertDismissedType",), + ".group_0542": ("WebhookDependabotAlertFixedType",), + ".group_0543": ("WebhookDependabotAlertReintroducedType",), + ".group_0544": ("WebhookDependabotAlertReopenedType",), + ".group_0545": ("WebhookDeployKeyCreatedType",), + ".group_0546": ("WebhookDeployKeyDeletedType",), + ".group_0547": ( "WebhookDeploymentCreatedType", "WebhookDeploymentCreatedPropDeploymentType", "WebhookDeploymentCreatedPropDeploymentPropCreatorType", @@ -10981,8 +11080,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0541": ("WebhookDeploymentProtectionRuleRequestedType",), - ".group_0542": ( + ".group_0548": ("WebhookDeploymentProtectionRuleRequestedType",), + ".group_0549": ( "WebhookDeploymentReviewApprovedType", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewApprovedPropWorkflowRunType", @@ -11000,7 +11099,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0543": ( + ".group_0550": ( "WebhookDeploymentReviewRejectedType", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewRejectedPropWorkflowRunType", @@ -11018,7 +11117,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0544": ( + ".group_0551": ( "WebhookDeploymentReviewRequestedType", "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", "WebhookDeploymentReviewRequestedPropReviewersItemsType", @@ -11038,7 +11137,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0545": ( + ".group_0552": ( "WebhookDeploymentStatusCreatedType", "WebhookDeploymentStatusCreatedPropCheckRunType", "WebhookDeploymentStatusCreatedPropDeploymentType", @@ -11066,119 +11165,119 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0546": ("WebhookDiscussionAnsweredType",), - ".group_0547": ( + ".group_0553": ("WebhookDiscussionAnsweredType",), + ".group_0554": ( "WebhookDiscussionCategoryChangedType", "WebhookDiscussionCategoryChangedPropChangesType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", ), - ".group_0548": ("WebhookDiscussionClosedType",), - ".group_0549": ("WebhookDiscussionCommentCreatedType",), - ".group_0550": ("WebhookDiscussionCommentDeletedType",), - ".group_0551": ( + ".group_0555": ("WebhookDiscussionClosedType",), + ".group_0556": ("WebhookDiscussionCommentCreatedType",), + ".group_0557": ("WebhookDiscussionCommentDeletedType",), + ".group_0558": ( "WebhookDiscussionCommentEditedType", "WebhookDiscussionCommentEditedPropChangesType", "WebhookDiscussionCommentEditedPropChangesPropBodyType", ), - ".group_0552": ("WebhookDiscussionCreatedType",), - ".group_0553": ("WebhookDiscussionDeletedType",), - ".group_0554": ( + ".group_0559": ("WebhookDiscussionCreatedType",), + ".group_0560": ("WebhookDiscussionDeletedType",), + ".group_0561": ( "WebhookDiscussionEditedType", "WebhookDiscussionEditedPropChangesType", "WebhookDiscussionEditedPropChangesPropBodyType", "WebhookDiscussionEditedPropChangesPropTitleType", ), - ".group_0555": ("WebhookDiscussionLabeledType",), - ".group_0556": ("WebhookDiscussionLockedType",), - ".group_0557": ("WebhookDiscussionPinnedType",), - ".group_0558": ("WebhookDiscussionReopenedType",), - ".group_0559": ("WebhookDiscussionTransferredType",), - ".group_0560": ("WebhookDiscussionTransferredPropChangesType",), - ".group_0561": ("WebhookDiscussionUnansweredType",), - ".group_0562": ("WebhookDiscussionUnlabeledType",), - ".group_0563": ("WebhookDiscussionUnlockedType",), - ".group_0564": ("WebhookDiscussionUnpinnedType",), - ".group_0565": ("WebhookForkType",), - ".group_0566": ( + ".group_0562": ("WebhookDiscussionLabeledType",), + ".group_0563": ("WebhookDiscussionLockedType",), + ".group_0564": ("WebhookDiscussionPinnedType",), + ".group_0565": ("WebhookDiscussionReopenedType",), + ".group_0566": ("WebhookDiscussionTransferredType",), + ".group_0567": ("WebhookDiscussionTransferredPropChangesType",), + ".group_0568": ("WebhookDiscussionUnansweredType",), + ".group_0569": ("WebhookDiscussionUnlabeledType",), + ".group_0570": ("WebhookDiscussionUnlockedType",), + ".group_0571": ("WebhookDiscussionUnpinnedType",), + ".group_0572": ("WebhookForkType",), + ".group_0573": ( "WebhookForkPropForkeeType", "WebhookForkPropForkeeMergedLicenseType", "WebhookForkPropForkeeMergedOwnerType", ), - ".group_0567": ( + ".group_0574": ( "WebhookForkPropForkeeAllof0Type", "WebhookForkPropForkeeAllof0PropLicenseType", "WebhookForkPropForkeeAllof0PropOwnerType", ), - ".group_0568": ("WebhookForkPropForkeeAllof0PropPermissionsType",), - ".group_0569": ( + ".group_0575": ("WebhookForkPropForkeeAllof0PropPermissionsType",), + ".group_0576": ( "WebhookForkPropForkeeAllof1Type", "WebhookForkPropForkeeAllof1PropLicenseType", "WebhookForkPropForkeeAllof1PropOwnerType", ), - ".group_0570": ("WebhookGithubAppAuthorizationRevokedType",), - ".group_0571": ( + ".group_0577": ("WebhookGithubAppAuthorizationRevokedType",), + ".group_0578": ( "WebhookGollumType", "WebhookGollumPropPagesItemsType", ), - ".group_0572": ("WebhookInstallationCreatedType",), - ".group_0573": ("WebhookInstallationDeletedType",), - ".group_0574": ("WebhookInstallationNewPermissionsAcceptedType",), - ".group_0575": ( + ".group_0579": ("WebhookInstallationCreatedType",), + ".group_0580": ("WebhookInstallationDeletedType",), + ".group_0581": ("WebhookInstallationNewPermissionsAcceptedType",), + ".group_0582": ( "WebhookInstallationRepositoriesAddedType", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", ), - ".group_0576": ( + ".group_0583": ( "WebhookInstallationRepositoriesRemovedType", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", ), - ".group_0577": ("WebhookInstallationSuspendType",), - ".group_0578": ( + ".group_0584": ("WebhookInstallationSuspendType",), + ".group_0585": ( "WebhookInstallationTargetRenamedType", "WebhookInstallationTargetRenamedPropAccountType", "WebhookInstallationTargetRenamedPropChangesType", "WebhookInstallationTargetRenamedPropChangesPropLoginType", "WebhookInstallationTargetRenamedPropChangesPropSlugType", ), - ".group_0579": ("WebhookInstallationUnsuspendType",), - ".group_0580": ("WebhookIssueCommentCreatedType",), - ".group_0581": ( + ".group_0586": ("WebhookInstallationUnsuspendType",), + ".group_0587": ("WebhookIssueCommentCreatedType",), + ".group_0588": ( "WebhookIssueCommentCreatedPropCommentType", "WebhookIssueCommentCreatedPropCommentPropReactionsType", "WebhookIssueCommentCreatedPropCommentPropUserType", ), - ".group_0582": ( + ".group_0589": ( "WebhookIssueCommentCreatedPropIssueType", "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", "WebhookIssueCommentCreatedPropIssueMergedReactionsType", "WebhookIssueCommentCreatedPropIssueMergedUserType", ), - ".group_0583": ( + ".group_0590": ( "WebhookIssueCommentCreatedPropIssueAllof0Type", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ), - ".group_0584": ( + ".group_0591": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", ), - ".group_0585": ( + ".group_0592": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0586": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), - ".group_0587": ( + ".group_0593": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), + ".group_0594": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0588": ( + ".group_0595": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0589": ( + ".group_0596": ( "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0590": ( + ".group_0597": ( "WebhookIssueCommentCreatedPropIssueAllof1Type", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", @@ -11188,43 +11287,43 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", ), - ".group_0591": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), - ".group_0592": ( + ".group_0598": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), + ".group_0599": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0593": ("WebhookIssueCommentDeletedType",), - ".group_0594": ( + ".group_0600": ("WebhookIssueCommentDeletedType",), + ".group_0601": ( "WebhookIssueCommentDeletedPropIssueType", "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", "WebhookIssueCommentDeletedPropIssueMergedReactionsType", "WebhookIssueCommentDeletedPropIssueMergedUserType", ), - ".group_0595": ( + ".group_0602": ( "WebhookIssueCommentDeletedPropIssueAllof0Type", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ), - ".group_0596": ( + ".group_0603": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", ), - ".group_0597": ( + ".group_0604": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0598": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), - ".group_0599": ( + ".group_0605": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), + ".group_0606": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0600": ( + ".group_0607": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0601": ( + ".group_0608": ( "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0602": ( + ".group_0609": ( "WebhookIssueCommentDeletedPropIssueAllof1Type", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", @@ -11234,43 +11333,43 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", ), - ".group_0603": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), - ".group_0604": ( + ".group_0610": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), + ".group_0611": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0605": ("WebhookIssueCommentEditedType",), - ".group_0606": ( + ".group_0612": ("WebhookIssueCommentEditedType",), + ".group_0613": ( "WebhookIssueCommentEditedPropIssueType", "WebhookIssueCommentEditedPropIssueMergedAssigneesType", "WebhookIssueCommentEditedPropIssueMergedReactionsType", "WebhookIssueCommentEditedPropIssueMergedUserType", ), - ".group_0607": ( + ".group_0614": ( "WebhookIssueCommentEditedPropIssueAllof0Type", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof0PropUserType", ), - ".group_0608": ( + ".group_0615": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", ), - ".group_0609": ( + ".group_0616": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0610": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), - ".group_0611": ( + ".group_0617": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), + ".group_0618": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0612": ( + ".group_0619": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0613": ( + ".group_0620": ( "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0614": ( + ".group_0621": ( "WebhookIssueCommentEditedPropIssueAllof1Type", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", @@ -11280,13 +11379,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof1PropUserType", ), - ".group_0615": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), - ".group_0616": ( + ".group_0622": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), + ".group_0623": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0617": ("WebhookIssuesAssignedType",), - ".group_0618": ("WebhookIssuesClosedType",), - ".group_0619": ( + ".group_0624": ("WebhookIssuesAssignedType",), + ".group_0625": ("WebhookIssuesClosedType",), + ".group_0626": ( "WebhookIssuesClosedPropIssueType", "WebhookIssuesClosedPropIssueMergedAssigneeType", "WebhookIssuesClosedPropIssueMergedAssigneesType", @@ -11294,7 +11393,7 @@ "WebhookIssuesClosedPropIssueMergedReactionsType", "WebhookIssuesClosedPropIssueMergedUserType", ), - ".group_0620": ( + ".group_0627": ( "WebhookIssuesClosedPropIssueAllof0Type", "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", @@ -11302,22 +11401,22 @@ "WebhookIssuesClosedPropIssueAllof0PropReactionsType", "WebhookIssuesClosedPropIssueAllof0PropUserType", ), - ".group_0621": ( + ".group_0628": ( "WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0622": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), - ".group_0623": ( + ".group_0629": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), + ".group_0630": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0624": ( + ".group_0631": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0625": ( + ".group_0632": ( "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0626": ( + ".group_0633": ( "WebhookIssuesClosedPropIssueAllof1Type", "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", @@ -11327,9 +11426,9 @@ "WebhookIssuesClosedPropIssueAllof1PropReactionsType", "WebhookIssuesClosedPropIssueAllof1PropUserType", ), - ".group_0627": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), - ".group_0628": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), - ".group_0629": ( + ".group_0634": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), + ".group_0635": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), + ".group_0636": ( "WebhookIssuesDeletedType", "WebhookIssuesDeletedPropIssueType", "WebhookIssuesDeletedPropIssuePropAssigneeType", @@ -11345,7 +11444,7 @@ "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDeletedPropIssuePropUserType", ), - ".group_0630": ( + ".group_0637": ( "WebhookIssuesDemilestonedType", "WebhookIssuesDemilestonedPropIssueType", "WebhookIssuesDemilestonedPropIssuePropAssigneeType", @@ -11361,7 +11460,7 @@ "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDemilestonedPropIssuePropUserType", ), - ".group_0631": ( + ".group_0638": ( "WebhookIssuesEditedType", "WebhookIssuesEditedPropChangesType", "WebhookIssuesEditedPropChangesPropBodyType", @@ -11380,7 +11479,7 @@ "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", "WebhookIssuesEditedPropIssuePropUserType", ), - ".group_0632": ( + ".group_0639": ( "WebhookIssuesLabeledType", "WebhookIssuesLabeledPropIssueType", "WebhookIssuesLabeledPropIssuePropAssigneeType", @@ -11396,7 +11495,7 @@ "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", "WebhookIssuesLabeledPropIssuePropUserType", ), - ".group_0633": ( + ".group_0640": ( "WebhookIssuesLockedType", "WebhookIssuesLockedPropIssueType", "WebhookIssuesLockedPropIssuePropAssigneeType", @@ -11412,7 +11511,7 @@ "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesLockedPropIssuePropUserType", ), - ".group_0634": ( + ".group_0641": ( "WebhookIssuesMilestonedType", "WebhookIssuesMilestonedPropIssueType", "WebhookIssuesMilestonedPropIssuePropAssigneeType", @@ -11428,7 +11527,7 @@ "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesMilestonedPropIssuePropUserType", ), - ".group_0635": ( + ".group_0642": ( "WebhookIssuesOpenedType", "WebhookIssuesOpenedPropIssueType", "WebhookIssuesOpenedPropIssuePropAssigneeType", @@ -11463,8 +11562,8 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ), - ".group_0636": ("WebhookIssuesPinnedType",), - ".group_0637": ( + ".group_0643": ("WebhookIssuesPinnedType",), + ".group_0644": ( "WebhookIssuesReopenedType", "WebhookIssuesReopenedPropIssueType", "WebhookIssuesReopenedPropIssuePropAssigneeType", @@ -11480,7 +11579,7 @@ "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", "WebhookIssuesReopenedPropIssuePropUserType", ), - ".group_0638": ( + ".group_0645": ( "WebhookIssuesTransferredType", "WebhookIssuesTransferredPropChangesType", "WebhookIssuesTransferredPropChangesPropNewIssueType", @@ -11502,9 +11601,9 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", ), - ".group_0639": ("WebhookIssuesUnassignedType",), - ".group_0640": ("WebhookIssuesUnlabeledType",), - ".group_0641": ( + ".group_0646": ("WebhookIssuesUnassignedType",), + ".group_0647": ("WebhookIssuesUnlabeledType",), + ".group_0648": ( "WebhookIssuesUnlockedType", "WebhookIssuesUnlockedPropIssueType", "WebhookIssuesUnlockedPropIssuePropAssigneeType", @@ -11520,103 +11619,103 @@ "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesUnlockedPropIssuePropUserType", ), - ".group_0642": ("WebhookIssuesUnpinnedType",), - ".group_0643": ("WebhookLabelCreatedType",), - ".group_0644": ("WebhookLabelDeletedType",), - ".group_0645": ( + ".group_0649": ("WebhookIssuesUnpinnedType",), + ".group_0650": ("WebhookLabelCreatedType",), + ".group_0651": ("WebhookLabelDeletedType",), + ".group_0652": ( "WebhookLabelEditedType", "WebhookLabelEditedPropChangesType", "WebhookLabelEditedPropChangesPropColorType", "WebhookLabelEditedPropChangesPropDescriptionType", "WebhookLabelEditedPropChangesPropNameType", ), - ".group_0646": ("WebhookMarketplacePurchaseCancelledType",), - ".group_0647": ( + ".group_0653": ("WebhookMarketplacePurchaseCancelledType",), + ".group_0654": ( "WebhookMarketplacePurchaseChangedType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0648": ( + ".group_0655": ( "WebhookMarketplacePurchasePendingChangeType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", ), - ".group_0649": ( + ".group_0656": ( "WebhookMarketplacePurchasePendingChangeCancelledType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", ), - ".group_0650": ("WebhookMarketplacePurchasePurchasedType",), - ".group_0651": ( + ".group_0657": ("WebhookMarketplacePurchasePurchasedType",), + ".group_0658": ( "WebhookMemberAddedType", "WebhookMemberAddedPropChangesType", "WebhookMemberAddedPropChangesPropPermissionType", "WebhookMemberAddedPropChangesPropRoleNameType", ), - ".group_0652": ( + ".group_0659": ( "WebhookMemberEditedType", "WebhookMemberEditedPropChangesType", "WebhookMemberEditedPropChangesPropOldPermissionType", "WebhookMemberEditedPropChangesPropPermissionType", ), - ".group_0653": ("WebhookMemberRemovedType",), - ".group_0654": ( + ".group_0660": ("WebhookMemberRemovedType",), + ".group_0661": ( "WebhookMembershipAddedType", "WebhookMembershipAddedPropSenderType", ), - ".group_0655": ( + ".group_0662": ( "WebhookMembershipRemovedType", "WebhookMembershipRemovedPropSenderType", ), - ".group_0656": ("WebhookMergeGroupChecksRequestedType",), - ".group_0657": ("WebhookMergeGroupDestroyedType",), - ".group_0658": ( + ".group_0663": ("WebhookMergeGroupChecksRequestedType",), + ".group_0664": ("WebhookMergeGroupDestroyedType",), + ".group_0665": ( "WebhookMetaDeletedType", "WebhookMetaDeletedPropHookType", "WebhookMetaDeletedPropHookPropConfigType", ), - ".group_0659": ("WebhookMilestoneClosedType",), - ".group_0660": ("WebhookMilestoneCreatedType",), - ".group_0661": ("WebhookMilestoneDeletedType",), - ".group_0662": ( + ".group_0666": ("WebhookMilestoneClosedType",), + ".group_0667": ("WebhookMilestoneCreatedType",), + ".group_0668": ("WebhookMilestoneDeletedType",), + ".group_0669": ( "WebhookMilestoneEditedType", "WebhookMilestoneEditedPropChangesType", "WebhookMilestoneEditedPropChangesPropDescriptionType", "WebhookMilestoneEditedPropChangesPropDueOnType", "WebhookMilestoneEditedPropChangesPropTitleType", ), - ".group_0663": ("WebhookMilestoneOpenedType",), - ".group_0664": ("WebhookOrgBlockBlockedType",), - ".group_0665": ("WebhookOrgBlockUnblockedType",), - ".group_0666": ("WebhookOrganizationDeletedType",), - ".group_0667": ("WebhookOrganizationMemberAddedType",), - ".group_0668": ( + ".group_0670": ("WebhookMilestoneOpenedType",), + ".group_0671": ("WebhookOrgBlockBlockedType",), + ".group_0672": ("WebhookOrgBlockUnblockedType",), + ".group_0673": ("WebhookOrganizationDeletedType",), + ".group_0674": ("WebhookOrganizationMemberAddedType",), + ".group_0675": ( "WebhookOrganizationMemberInvitedType", "WebhookOrganizationMemberInvitedPropInvitationType", "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", ), - ".group_0669": ("WebhookOrganizationMemberRemovedType",), - ".group_0670": ( + ".group_0676": ("WebhookOrganizationMemberRemovedType",), + ".group_0677": ( "WebhookOrganizationRenamedType", "WebhookOrganizationRenamedPropChangesType", "WebhookOrganizationRenamedPropChangesPropLoginType", ), - ".group_0671": ( + ".group_0678": ( "WebhookRubygemsMetadataType", "WebhookRubygemsMetadataPropVersionInfoType", "WebhookRubygemsMetadataPropMetadataType", "WebhookRubygemsMetadataPropDependenciesItemsType", ), - ".group_0672": ("WebhookPackagePublishedType",), - ".group_0673": ( + ".group_0679": ("WebhookPackagePublishedType",), + ".group_0680": ( "WebhookPackagePublishedPropPackageType", "WebhookPackagePublishedPropPackagePropOwnerType", "WebhookPackagePublishedPropPackagePropRegistryType", ), - ".group_0674": ( + ".group_0681": ( "WebhookPackagePublishedPropPackagePropPackageVersionType", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", @@ -11648,13 +11747,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0675": ("WebhookPackageUpdatedType",), - ".group_0676": ( + ".group_0682": ("WebhookPackageUpdatedType",), + ".group_0683": ( "WebhookPackageUpdatedPropPackageType", "WebhookPackageUpdatedPropPackagePropOwnerType", "WebhookPackageUpdatedPropPackagePropRegistryType", ), - ".group_0677": ( + ".group_0684": ( "WebhookPackageUpdatedPropPackagePropPackageVersionType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", @@ -11663,75 +11762,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0678": ( + ".group_0685": ( "WebhookPageBuildType", "WebhookPageBuildPropBuildType", "WebhookPageBuildPropBuildPropErrorType", "WebhookPageBuildPropBuildPropPusherType", ), - ".group_0679": ("WebhookPersonalAccessTokenRequestApprovedType",), - ".group_0680": ("WebhookPersonalAccessTokenRequestCancelledType",), - ".group_0681": ("WebhookPersonalAccessTokenRequestCreatedType",), - ".group_0682": ("WebhookPersonalAccessTokenRequestDeniedType",), - ".group_0683": ("WebhookPingType",), - ".group_0684": ( + ".group_0686": ("WebhookPersonalAccessTokenRequestApprovedType",), + ".group_0687": ("WebhookPersonalAccessTokenRequestCancelledType",), + ".group_0688": ("WebhookPersonalAccessTokenRequestCreatedType",), + ".group_0689": ("WebhookPersonalAccessTokenRequestDeniedType",), + ".group_0690": ("WebhookPingType",), + ".group_0691": ( "WebhookPingPropHookType", "WebhookPingPropHookPropConfigType", ), - ".group_0685": ("WebhookPingFormEncodedType",), - ".group_0686": ( + ".group_0692": ("WebhookPingFormEncodedType",), + ".group_0693": ( "WebhookProjectCardConvertedType", "WebhookProjectCardConvertedPropChangesType", "WebhookProjectCardConvertedPropChangesPropNoteType", ), - ".group_0687": ("WebhookProjectCardCreatedType",), - ".group_0688": ( + ".group_0694": ("WebhookProjectCardCreatedType",), + ".group_0695": ( "WebhookProjectCardDeletedType", "WebhookProjectCardDeletedPropProjectCardType", "WebhookProjectCardDeletedPropProjectCardPropCreatorType", ), - ".group_0689": ( + ".group_0696": ( "WebhookProjectCardEditedType", "WebhookProjectCardEditedPropChangesType", "WebhookProjectCardEditedPropChangesPropNoteType", ), - ".group_0690": ( + ".group_0697": ( "WebhookProjectCardMovedType", "WebhookProjectCardMovedPropChangesType", "WebhookProjectCardMovedPropChangesPropColumnIdType", "WebhookProjectCardMovedPropProjectCardType", "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ), - ".group_0691": ( + ".group_0698": ( "WebhookProjectCardMovedPropProjectCardAllof0Type", "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ), - ".group_0692": ( + ".group_0699": ( "WebhookProjectCardMovedPropProjectCardAllof1Type", "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", ), - ".group_0693": ("WebhookProjectClosedType",), - ".group_0694": ("WebhookProjectColumnCreatedType",), - ".group_0695": ("WebhookProjectColumnDeletedType",), - ".group_0696": ( + ".group_0700": ("WebhookProjectClosedType",), + ".group_0701": ("WebhookProjectColumnCreatedType",), + ".group_0702": ("WebhookProjectColumnDeletedType",), + ".group_0703": ( "WebhookProjectColumnEditedType", "WebhookProjectColumnEditedPropChangesType", "WebhookProjectColumnEditedPropChangesPropNameType", ), - ".group_0697": ("WebhookProjectColumnMovedType",), - ".group_0698": ("WebhookProjectCreatedType",), - ".group_0699": ("WebhookProjectDeletedType",), - ".group_0700": ( + ".group_0704": ("WebhookProjectColumnMovedType",), + ".group_0705": ("WebhookProjectCreatedType",), + ".group_0706": ("WebhookProjectDeletedType",), + ".group_0707": ( "WebhookProjectEditedType", "WebhookProjectEditedPropChangesType", "WebhookProjectEditedPropChangesPropBodyType", "WebhookProjectEditedPropChangesPropNameType", ), - ".group_0701": ("WebhookProjectReopenedType",), - ".group_0702": ("WebhookProjectsV2ProjectClosedType",), - ".group_0703": ("WebhookProjectsV2ProjectCreatedType",), - ".group_0704": ("WebhookProjectsV2ProjectDeletedType",), - ".group_0705": ( + ".group_0708": ("WebhookProjectReopenedType",), + ".group_0709": ("WebhookProjectsV2ProjectClosedType",), + ".group_0710": ("WebhookProjectsV2ProjectCreatedType",), + ".group_0711": ("WebhookProjectsV2ProjectDeletedType",), + ".group_0712": ( "WebhookProjectsV2ProjectEditedType", "WebhookProjectsV2ProjectEditedPropChangesType", "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", @@ -11739,15 +11838,15 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ), - ".group_0706": ("WebhookProjectsV2ItemArchivedType",), - ".group_0707": ( + ".group_0713": ("WebhookProjectsV2ItemArchivedType",), + ".group_0714": ( "WebhookProjectsV2ItemConvertedType", "WebhookProjectsV2ItemConvertedPropChangesType", "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", ), - ".group_0708": ("WebhookProjectsV2ItemCreatedType",), - ".group_0709": ("WebhookProjectsV2ItemDeletedType",), - ".group_0710": ( + ".group_0715": ("WebhookProjectsV2ItemCreatedType",), + ".group_0716": ("WebhookProjectsV2ItemDeletedType",), + ".group_0717": ( "WebhookProjectsV2ItemEditedType", "WebhookProjectsV2ItemEditedPropChangesOneof0Type", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", @@ -11756,16 +11855,16 @@ "WebhookProjectsV2ItemEditedPropChangesOneof1Type", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", ), - ".group_0711": ( + ".group_0718": ( "WebhookProjectsV2ItemReorderedType", "WebhookProjectsV2ItemReorderedPropChangesType", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ), - ".group_0712": ("WebhookProjectsV2ItemRestoredType",), - ".group_0713": ("WebhookProjectsV2ProjectReopenedType",), - ".group_0714": ("WebhookProjectsV2StatusUpdateCreatedType",), - ".group_0715": ("WebhookProjectsV2StatusUpdateDeletedType",), - ".group_0716": ( + ".group_0719": ("WebhookProjectsV2ItemRestoredType",), + ".group_0720": ("WebhookProjectsV2ProjectReopenedType",), + ".group_0721": ("WebhookProjectsV2StatusUpdateCreatedType",), + ".group_0722": ("WebhookProjectsV2StatusUpdateDeletedType",), + ".group_0723": ( "WebhookProjectsV2StatusUpdateEditedType", "WebhookProjectsV2StatusUpdateEditedPropChangesType", "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", @@ -11773,8 +11872,8 @@ "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", ), - ".group_0717": ("WebhookPublicType",), - ".group_0718": ( + ".group_0724": ("WebhookPublicType",), + ".group_0725": ( "WebhookPullRequestAssignedType", "WebhookPullRequestAssignedPropPullRequestType", "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", @@ -11813,7 +11912,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0719": ( + ".group_0726": ( "WebhookPullRequestAutoMergeDisabledType", "WebhookPullRequestAutoMergeDisabledPropPullRequestType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", @@ -11852,7 +11951,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0720": ( + ".group_0727": ( "WebhookPullRequestAutoMergeEnabledType", "WebhookPullRequestAutoMergeEnabledPropPullRequestType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", @@ -11891,10 +11990,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0721": ("WebhookPullRequestClosedType",), - ".group_0722": ("WebhookPullRequestConvertedToDraftType",), - ".group_0723": ("WebhookPullRequestDemilestonedType",), - ".group_0724": ( + ".group_0728": ("WebhookPullRequestClosedType",), + ".group_0729": ("WebhookPullRequestConvertedToDraftType",), + ".group_0730": ("WebhookPullRequestDemilestonedType",), + ".group_0731": ( "WebhookPullRequestDequeuedType", "WebhookPullRequestDequeuedPropPullRequestType", "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", @@ -11933,7 +12032,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0725": ( + ".group_0732": ( "WebhookPullRequestEditedType", "WebhookPullRequestEditedPropChangesType", "WebhookPullRequestEditedPropChangesPropBodyType", @@ -11942,7 +12041,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRefType", "WebhookPullRequestEditedPropChangesPropBasePropShaType", ), - ".group_0726": ( + ".group_0733": ( "WebhookPullRequestEnqueuedType", "WebhookPullRequestEnqueuedPropPullRequestType", "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", @@ -11981,7 +12080,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0727": ( + ".group_0734": ( "WebhookPullRequestLabeledType", "WebhookPullRequestLabeledPropPullRequestType", "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", @@ -12020,7 +12119,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0728": ( + ".group_0735": ( "WebhookPullRequestLockedType", "WebhookPullRequestLockedPropPullRequestType", "WebhookPullRequestLockedPropPullRequestPropAssigneeType", @@ -12059,11 +12158,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0729": ("WebhookPullRequestMilestonedType",), - ".group_0730": ("WebhookPullRequestOpenedType",), - ".group_0731": ("WebhookPullRequestReadyForReviewType",), - ".group_0732": ("WebhookPullRequestReopenedType",), - ".group_0733": ( + ".group_0736": ("WebhookPullRequestMilestonedType",), + ".group_0737": ("WebhookPullRequestOpenedType",), + ".group_0738": ("WebhookPullRequestReadyForReviewType",), + ".group_0739": ("WebhookPullRequestReopenedType",), + ".group_0740": ( "WebhookPullRequestReviewCommentCreatedType", "WebhookPullRequestReviewCommentCreatedPropCommentType", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", @@ -12108,7 +12207,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0734": ( + ".group_0741": ( "WebhookPullRequestReviewCommentDeletedType", "WebhookPullRequestReviewCommentDeletedPropPullRequestType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", @@ -12146,7 +12245,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0735": ( + ".group_0742": ( "WebhookPullRequestReviewCommentEditedType", "WebhookPullRequestReviewCommentEditedPropPullRequestType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", @@ -12184,7 +12283,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0736": ( + ".group_0743": ( "WebhookPullRequestReviewDismissedType", "WebhookPullRequestReviewDismissedPropReviewType", "WebhookPullRequestReviewDismissedPropReviewPropUserType", @@ -12227,7 +12326,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0737": ( + ".group_0744": ( "WebhookPullRequestReviewEditedType", "WebhookPullRequestReviewEditedPropChangesType", "WebhookPullRequestReviewEditedPropChangesPropBodyType", @@ -12267,7 +12366,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0738": ( + ".group_0745": ( "WebhookPullRequestReviewRequestRemovedOneof0Type", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", @@ -12307,7 +12406,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0739": ( + ".group_0746": ( "WebhookPullRequestReviewRequestRemovedOneof1Type", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", @@ -12348,7 +12447,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0740": ( + ".group_0747": ( "WebhookPullRequestReviewRequestedOneof0Type", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", @@ -12388,7 +12487,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0741": ( + ".group_0748": ( "WebhookPullRequestReviewRequestedOneof1Type", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", @@ -12429,7 +12528,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0742": ( + ".group_0749": ( "WebhookPullRequestReviewSubmittedType", "WebhookPullRequestReviewSubmittedPropPullRequestType", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", @@ -12467,7 +12566,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0743": ( + ".group_0750": ( "WebhookPullRequestReviewThreadResolvedType", "WebhookPullRequestReviewThreadResolvedPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", @@ -12513,7 +12612,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0744": ( + ".group_0751": ( "WebhookPullRequestReviewThreadUnresolvedType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", @@ -12559,7 +12658,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0745": ( + ".group_0752": ( "WebhookPullRequestSynchronizeType", "WebhookPullRequestSynchronizePropPullRequestType", "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", @@ -12598,7 +12697,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0746": ( + ".group_0753": ( "WebhookPullRequestUnassignedType", "WebhookPullRequestUnassignedPropPullRequestType", "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", @@ -12637,7 +12736,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0747": ( + ".group_0754": ( "WebhookPullRequestUnlabeledType", "WebhookPullRequestUnlabeledPropPullRequestType", "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", @@ -12676,7 +12775,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0748": ( + ".group_0755": ( "WebhookPullRequestUnlockedType", "WebhookPullRequestUnlockedPropPullRequestType", "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", @@ -12715,7 +12814,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0749": ( + ".group_0756": ( "WebhookPushType", "WebhookPushPropHeadCommitType", "WebhookPushPropHeadCommitPropAuthorType", @@ -12730,13 +12829,13 @@ "WebhookPushPropRepositoryPropOwnerType", "WebhookPushPropRepositoryPropPermissionsType", ), - ".group_0750": ("WebhookRegistryPackagePublishedType",), - ".group_0751": ( + ".group_0757": ("WebhookRegistryPackagePublishedType",), + ".group_0758": ( "WebhookRegistryPackagePublishedPropRegistryPackageType", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ), - ".group_0752": ( + ".group_0759": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", @@ -12767,13 +12866,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0753": ("WebhookRegistryPackageUpdatedType",), - ".group_0754": ( + ".group_0760": ("WebhookRegistryPackageUpdatedType",), + ".group_0761": ( "WebhookRegistryPackageUpdatedPropRegistryPackageType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", ), - ".group_0755": ( + ".group_0762": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", @@ -12782,16 +12881,16 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0756": ("WebhookReleaseCreatedType",), - ".group_0757": ("WebhookReleaseDeletedType",), - ".group_0758": ( + ".group_0763": ("WebhookReleaseCreatedType",), + ".group_0764": ("WebhookReleaseDeletedType",), + ".group_0765": ( "WebhookReleaseEditedType", "WebhookReleaseEditedPropChangesType", "WebhookReleaseEditedPropChangesPropBodyType", "WebhookReleaseEditedPropChangesPropNameType", "WebhookReleaseEditedPropChangesPropMakeLatestType", ), - ".group_0759": ( + ".group_0766": ( "WebhookReleasePrereleasedType", "WebhookReleasePrereleasedPropReleaseType", "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", @@ -12799,19 +12898,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthorType", "WebhookReleasePrereleasedPropReleasePropReactionsType", ), - ".group_0760": ("WebhookReleasePublishedType",), - ".group_0761": ("WebhookReleaseReleasedType",), - ".group_0762": ("WebhookReleaseUnpublishedType",), - ".group_0763": ("WebhookRepositoryAdvisoryPublishedType",), - ".group_0764": ("WebhookRepositoryAdvisoryReportedType",), - ".group_0765": ("WebhookRepositoryArchivedType",), - ".group_0766": ("WebhookRepositoryCreatedType",), - ".group_0767": ("WebhookRepositoryDeletedType",), - ".group_0768": ( + ".group_0767": ("WebhookReleasePublishedType",), + ".group_0768": ("WebhookReleaseReleasedType",), + ".group_0769": ("WebhookReleaseUnpublishedType",), + ".group_0770": ("WebhookRepositoryAdvisoryPublishedType",), + ".group_0771": ("WebhookRepositoryAdvisoryReportedType",), + ".group_0772": ("WebhookRepositoryArchivedType",), + ".group_0773": ("WebhookRepositoryCreatedType",), + ".group_0774": ("WebhookRepositoryDeletedType",), + ".group_0775": ( "WebhookRepositoryDispatchSampleType", "WebhookRepositoryDispatchSamplePropClientPayloadType", ), - ".group_0769": ( + ".group_0776": ( "WebhookRepositoryEditedType", "WebhookRepositoryEditedPropChangesType", "WebhookRepositoryEditedPropChangesPropDefaultBranchType", @@ -12819,25 +12918,25 @@ "WebhookRepositoryEditedPropChangesPropHomepageType", "WebhookRepositoryEditedPropChangesPropTopicsType", ), - ".group_0770": ("WebhookRepositoryImportType",), - ".group_0771": ("WebhookRepositoryPrivatizedType",), - ".group_0772": ("WebhookRepositoryPublicizedType",), - ".group_0773": ( + ".group_0777": ("WebhookRepositoryImportType",), + ".group_0778": ("WebhookRepositoryPrivatizedType",), + ".group_0779": ("WebhookRepositoryPublicizedType",), + ".group_0780": ( "WebhookRepositoryRenamedType", "WebhookRepositoryRenamedPropChangesType", "WebhookRepositoryRenamedPropChangesPropRepositoryType", "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ), - ".group_0774": ("WebhookRepositoryRulesetCreatedType",), - ".group_0775": ("WebhookRepositoryRulesetDeletedType",), - ".group_0776": ("WebhookRepositoryRulesetEditedType",), - ".group_0777": ( + ".group_0781": ("WebhookRepositoryRulesetCreatedType",), + ".group_0782": ("WebhookRepositoryRulesetDeletedType",), + ".group_0783": ("WebhookRepositoryRulesetEditedType",), + ".group_0784": ( "WebhookRepositoryRulesetEditedPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropNameType", "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", ), - ".group_0778": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), - ".group_0779": ( + ".group_0785": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), + ".group_0786": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", @@ -12845,15 +12944,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", ), - ".group_0780": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), - ".group_0781": ( + ".group_0787": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), + ".group_0788": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ), - ".group_0782": ( + ".group_0789": ( "WebhookRepositoryTransferredType", "WebhookRepositoryTransferredPropChangesType", "WebhookRepositoryTransferredPropChangesPropOwnerType", @@ -12861,21 +12960,21 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", ), - ".group_0783": ("WebhookRepositoryUnarchivedType",), - ".group_0784": ("WebhookRepositoryVulnerabilityAlertCreateType",), - ".group_0785": ( + ".group_0790": ("WebhookRepositoryUnarchivedType",), + ".group_0791": ("WebhookRepositoryVulnerabilityAlertCreateType",), + ".group_0792": ( "WebhookRepositoryVulnerabilityAlertDismissType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", ), - ".group_0786": ("WebhookRepositoryVulnerabilityAlertReopenType",), - ".group_0787": ( + ".group_0793": ("WebhookRepositoryVulnerabilityAlertReopenType",), + ".group_0794": ( "WebhookRepositoryVulnerabilityAlertResolveType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ), - ".group_0788": ("WebhookSecretScanningAlertCreatedType",), - ".group_0789": ( + ".group_0795": ("WebhookSecretScanningAlertCreatedType",), + ".group_0796": ( "WebhookSecretScanningAlertLocationCreatedType", "SecretScanningLocationType", "SecretScanningLocationCommitType", @@ -12892,16 +12991,16 @@ "SecretScanningLocationPullRequestReviewType", "SecretScanningLocationPullRequestReviewCommentType", ), - ".group_0790": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), - ".group_0791": ("WebhookSecretScanningAlertPubliclyLeakedType",), - ".group_0792": ("WebhookSecretScanningAlertReopenedType",), - ".group_0793": ("WebhookSecretScanningAlertResolvedType",), - ".group_0794": ("WebhookSecretScanningAlertValidatedType",), - ".group_0795": ("WebhookSecretScanningScanCompletedType",), - ".group_0796": ("WebhookSecurityAdvisoryPublishedType",), - ".group_0797": ("WebhookSecurityAdvisoryUpdatedType",), - ".group_0798": ("WebhookSecurityAdvisoryWithdrawnType",), - ".group_0799": ( + ".group_0797": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), + ".group_0798": ("WebhookSecretScanningAlertPubliclyLeakedType",), + ".group_0799": ("WebhookSecretScanningAlertReopenedType",), + ".group_0800": ("WebhookSecretScanningAlertResolvedType",), + ".group_0801": ("WebhookSecretScanningAlertValidatedType",), + ".group_0802": ("WebhookSecretScanningScanCompletedType",), + ".group_0803": ("WebhookSecurityAdvisoryPublishedType",), + ".group_0804": ("WebhookSecurityAdvisoryUpdatedType",), + ".group_0805": ("WebhookSecurityAdvisoryWithdrawnType",), + ".group_0806": ( "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", @@ -12911,22 +13010,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0800": ("WebhookSecurityAndAnalysisType",), - ".group_0801": ("WebhookSecurityAndAnalysisPropChangesType",), - ".group_0802": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), - ".group_0803": ("WebhookSponsorshipCancelledType",), - ".group_0804": ("WebhookSponsorshipCreatedType",), - ".group_0805": ( + ".group_0807": ("WebhookSecurityAndAnalysisType",), + ".group_0808": ("WebhookSecurityAndAnalysisPropChangesType",), + ".group_0809": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), + ".group_0810": ("WebhookSponsorshipCancelledType",), + ".group_0811": ("WebhookSponsorshipCreatedType",), + ".group_0812": ( "WebhookSponsorshipEditedType", "WebhookSponsorshipEditedPropChangesType", "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", ), - ".group_0806": ("WebhookSponsorshipPendingCancellationType",), - ".group_0807": ("WebhookSponsorshipPendingTierChangeType",), - ".group_0808": ("WebhookSponsorshipTierChangedType",), - ".group_0809": ("WebhookStarCreatedType",), - ".group_0810": ("WebhookStarDeletedType",), - ".group_0811": ( + ".group_0813": ("WebhookSponsorshipPendingCancellationType",), + ".group_0814": ("WebhookSponsorshipPendingTierChangeType",), + ".group_0815": ("WebhookSponsorshipTierChangedType",), + ".group_0816": ("WebhookStarCreatedType",), + ".group_0817": ("WebhookStarDeletedType",), + ".group_0818": ( "WebhookStatusType", "WebhookStatusPropBranchesItemsType", "WebhookStatusPropBranchesItemsPropCommitType", @@ -12940,16 +13039,16 @@ "WebhookStatusPropCommitPropCommitPropTreeType", "WebhookStatusPropCommitPropCommitPropVerificationType", ), - ".group_0812": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), - ".group_0813": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), - ".group_0814": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), - ".group_0815": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), - ".group_0816": ("WebhookSubIssuesParentIssueAddedType",), - ".group_0817": ("WebhookSubIssuesParentIssueRemovedType",), - ".group_0818": ("WebhookSubIssuesSubIssueAddedType",), - ".group_0819": ("WebhookSubIssuesSubIssueRemovedType",), - ".group_0820": ("WebhookTeamAddType",), - ".group_0821": ( + ".group_0819": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), + ".group_0820": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), + ".group_0821": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), + ".group_0822": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), + ".group_0823": ("WebhookSubIssuesParentIssueAddedType",), + ".group_0824": ("WebhookSubIssuesParentIssueRemovedType",), + ".group_0825": ("WebhookSubIssuesSubIssueAddedType",), + ".group_0826": ("WebhookSubIssuesSubIssueRemovedType",), + ".group_0827": ("WebhookTeamAddType",), + ".group_0828": ( "WebhookTeamAddedToRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", @@ -12957,7 +13056,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", ), - ".group_0822": ( + ".group_0829": ( "WebhookTeamCreatedType", "WebhookTeamCreatedPropRepositoryType", "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", @@ -12965,7 +13064,7 @@ "WebhookTeamCreatedPropRepositoryPropOwnerType", "WebhookTeamCreatedPropRepositoryPropPermissionsType", ), - ".group_0823": ( + ".group_0830": ( "WebhookTeamDeletedType", "WebhookTeamDeletedPropRepositoryType", "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", @@ -12973,7 +13072,7 @@ "WebhookTeamDeletedPropRepositoryPropOwnerType", "WebhookTeamDeletedPropRepositoryPropPermissionsType", ), - ".group_0824": ( + ".group_0831": ( "WebhookTeamEditedType", "WebhookTeamEditedPropRepositoryType", "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", @@ -12989,7 +13088,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", ), - ".group_0825": ( + ".group_0832": ( "WebhookTeamRemovedFromRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", @@ -12997,48 +13096,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", ), - ".group_0826": ("WebhookWatchStartedType",), - ".group_0827": ( + ".group_0833": ("WebhookWatchStartedType",), + ".group_0834": ( "WebhookWorkflowDispatchType", "WebhookWorkflowDispatchPropInputsType", ), - ".group_0828": ( + ".group_0835": ( "WebhookWorkflowJobCompletedType", "WebhookWorkflowJobCompletedPropWorkflowJobType", "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ), - ".group_0829": ( + ".group_0836": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0830": ( + ".group_0837": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0831": ( + ".group_0838": ( "WebhookWorkflowJobInProgressType", "WebhookWorkflowJobInProgressPropWorkflowJobType", "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", ), - ".group_0832": ( + ".group_0839": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0833": ( + ".group_0840": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0834": ( + ".group_0841": ( "WebhookWorkflowJobQueuedType", "WebhookWorkflowJobQueuedPropWorkflowJobType", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", ), - ".group_0835": ( + ".group_0842": ( "WebhookWorkflowJobWaitingType", "WebhookWorkflowJobWaitingPropWorkflowJobType", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", ), - ".group_0836": ( + ".group_0843": ( "WebhookWorkflowRunCompletedType", "WebhookWorkflowRunCompletedPropWorkflowRunType", "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", @@ -13057,7 +13156,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0837": ( + ".group_0844": ( "WebhookWorkflowRunInProgressType", "WebhookWorkflowRunInProgressPropWorkflowRunType", "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", @@ -13076,7 +13175,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0838": ( + ".group_0845": ( "WebhookWorkflowRunRequestedType", "WebhookWorkflowRunRequestedPropWorkflowRunType", "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", @@ -13095,324 +13194,371 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0839": ("AppManifestsCodeConversionsPostResponse201Type",), - ".group_0840": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), - ".group_0841": ("AppHookConfigPatchBodyType",), - ".group_0842": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), - ".group_0843": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), - ".group_0844": ("ApplicationsClientIdGrantDeleteBodyType",), - ".group_0845": ("ApplicationsClientIdTokenPostBodyType",), - ".group_0846": ("ApplicationsClientIdTokenDeleteBodyType",), - ".group_0847": ("ApplicationsClientIdTokenPatchBodyType",), - ".group_0848": ("ApplicationsClientIdTokenScopedPostBodyType",), - ".group_0849": ("EmojisGetResponse200Type",), - ".group_0850": ("EnterprisesEnterpriseActionsPermissionsPutBodyType",), - ".group_0851": ( + ".group_0846": ("AppManifestsCodeConversionsPostResponse201Type",), + ".group_0847": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), + ".group_0848": ("AppHookConfigPatchBodyType",), + ".group_0849": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), + ".group_0850": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), + ".group_0851": ("ApplicationsClientIdGrantDeleteBodyType",), + ".group_0852": ("ApplicationsClientIdTokenPostBodyType",), + ".group_0853": ("ApplicationsClientIdTokenDeleteBodyType",), + ".group_0854": ("ApplicationsClientIdTokenPatchBodyType",), + ".group_0855": ("ApplicationsClientIdTokenScopedPostBodyType",), + ".group_0856": ("EmojisGetResponse200Type",), + ".group_0857": ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type",), + ".group_0858": ( + "EnterprisesEnterpriseActionsHostedRunnersPostBodyType", + "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType", + ), + ".group_0859": ( + "EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type", + ), + ".group_0860": ( + "EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type", + ), + ".group_0861": ( + "EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type", + ), + ".group_0862": ( + "EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type", + ), + ".group_0863": ( + "EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType", + ), + ".group_0864": ("EnterprisesEnterpriseActionsPermissionsPutBodyType",), + ".group_0865": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type", ), - ".group_0852": ( + ".group_0866": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType", ), - ".group_0853": ( + ".group_0867": ( "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", "RunnerGroupsEnterpriseType", ), - ".group_0854": ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",), - ".group_0855": ( + ".group_0868": ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",), + ".group_0869": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType", ), - ".group_0856": ( + ".group_0870": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", ), - ".group_0857": ( + ".group_0871": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", ), - ".group_0858": ( + ".group_0872": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0859": ( + ".group_0873": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType", ), - ".group_0860": ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",), - ".group_0861": ( + ".group_0874": ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",), + ".group_0875": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType", ), - ".group_0862": ( + ".group_0876": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type", ), - ".group_0863": ( + ".group_0877": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type", ), - ".group_0864": ( + ".group_0878": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType", ), - ".group_0865": ( + ".group_0879": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType", ), - ".group_0866": ( + ".group_0880": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type", ), - ".group_0867": ("EnterprisesEnterpriseAuditLogStreamsPostBodyType",), - ".group_0868": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType",), - ".group_0869": ( + ".group_0881": ("EnterprisesEnterpriseAuditLogStreamsPostBodyType",), + ".group_0882": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType",), + ".group_0883": ( "EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type", ), - ".group_0870": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",), - ".group_0871": ( + ".group_0884": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",), + ".group_0885": ( "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", ), - ".group_0872": ( + ".group_0886": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", ), - ".group_0873": ( + ".group_0887": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0874": ( + ".group_0888": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0875": ( + ".group_0889": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0876": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",), - ".group_0877": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",), - ".group_0878": ("EnterprisesEnterprisePropertiesSchemaPatchBodyType",), - ".group_0879": ("EnterprisesEnterpriseRulesetsPostBodyType",), - ".group_0880": ("EnterprisesEnterpriseRulesetsRulesetIdPutBodyType",), - ".group_0881": ( + ".group_0890": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",), + ".group_0891": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",), + ".group_0892": ( + "EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type", + ), + ".group_0893": ("EnterprisesEnterpriseNetworkConfigurationsPostBodyType",), + ".group_0894": ( + "EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType", + ), + ".group_0895": ("EnterprisesEnterprisePropertiesSchemaPatchBodyType",), + ".group_0896": ("EnterprisesEnterpriseRulesetsPostBodyType",), + ".group_0897": ("EnterprisesEnterpriseRulesetsRulesetIdPutBodyType",), + ".group_0898": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType", ), - ".group_0882": ( + ".group_0899": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type", ), - ".group_0883": ( + ".group_0900": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType", ), - ".group_0884": ( + ".group_0901": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type", ), - ".group_0885": ( + ".group_0902": ( "GistsPostBodyType", "GistsPostBodyPropFilesType", ), - ".group_0886": ( + ".group_0903": ( "GistsGistIdGetResponse403Type", "GistsGistIdGetResponse403PropBlockType", ), - ".group_0887": ( + ".group_0904": ( "GistsGistIdPatchBodyType", "GistsGistIdPatchBodyPropFilesType", ), - ".group_0888": ("GistsGistIdCommentsPostBodyType",), - ".group_0889": ("GistsGistIdCommentsCommentIdPatchBodyType",), - ".group_0890": ("GistsGistIdStarGetResponse404Type",), - ".group_0891": ("InstallationRepositoriesGetResponse200Type",), - ".group_0892": ("MarkdownPostBodyType",), - ".group_0893": ("NotificationsPutBodyType",), - ".group_0894": ("NotificationsPutResponse202Type",), - ".group_0895": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), - ".group_0896": ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",), - ".group_0897": ("OrgsOrgPatchBodyType",), - ".group_0898": ( + ".group_0905": ("GistsGistIdCommentsPostBodyType",), + ".group_0906": ("GistsGistIdCommentsCommentIdPatchBodyType",), + ".group_0907": ("GistsGistIdStarGetResponse404Type",), + ".group_0908": ("InstallationRepositoriesGetResponse200Type",), + ".group_0909": ("MarkdownPostBodyType",), + ".group_0910": ("NotificationsPutBodyType",), + ".group_0911": ("NotificationsPutResponse202Type",), + ".group_0912": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), + ".group_0913": ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",), + ".group_0914": ("OrgsOrgPatchBodyType",), + ".group_0915": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", "ActionsCacheUsageByRepositoryType", ), - ".group_0899": ("OrgsOrgActionsPermissionsPutBodyType",), - ".group_0900": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), - ".group_0901": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), - ".group_0902": ( + ".group_0916": ("OrgsOrgActionsHostedRunnersGetResponse200Type",), + ".group_0917": ( + "OrgsOrgActionsHostedRunnersPostBodyType", + "OrgsOrgActionsHostedRunnersPostBodyPropImageType", + ), + ".group_0918": ( + "OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type", + ), + ".group_0919": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",), + ".group_0920": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",), + ".group_0921": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",), + ".group_0922": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",), + ".group_0923": ("OrgsOrgActionsPermissionsPutBodyType",), + ".group_0924": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), + ".group_0925": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), + ".group_0926": ( "OrgsOrgActionsRunnerGroupsGetResponse200Type", "RunnerGroupsOrgType", ), - ".group_0903": ("OrgsOrgActionsRunnerGroupsPostBodyType",), - ".group_0904": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), - ".group_0905": ( + ".group_0927": ("OrgsOrgActionsRunnerGroupsPostBodyType",), + ".group_0928": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), + ".group_0929": ( + "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type", + ), + ".group_0930": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type", ), - ".group_0906": ( + ".group_0931": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType", ), - ".group_0907": ( + ".group_0932": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0908": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), - ".group_0909": ("OrgsOrgActionsRunnersGetResponse200Type",), - ".group_0910": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0911": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0912": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0913": ( + ".group_0933": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), + ".group_0934": ("OrgsOrgActionsRunnersGetResponse200Type",), + ".group_0935": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0936": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0937": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0938": ( "OrgsOrgActionsSecretsGetResponse200Type", "OrganizationActionsSecretType", ), - ".group_0914": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), - ".group_0915": ( + ".group_0939": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), + ".group_0940": ( "OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0916": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), - ".group_0917": ( + ".group_0941": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), + ".group_0942": ( "OrgsOrgActionsVariablesGetResponse200Type", "OrganizationActionsVariableType", ), - ".group_0918": ("OrgsOrgActionsVariablesPostBodyType",), - ".group_0919": ("OrgsOrgActionsVariablesNamePatchBodyType",), - ".group_0920": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), - ".group_0921": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), - ".group_0922": ( + ".group_0943": ("OrgsOrgActionsVariablesPostBodyType",), + ".group_0944": ("OrgsOrgActionsVariablesNamePatchBodyType",), + ".group_0945": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), + ".group_0946": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), + ".group_0947": ( "OrgsOrgAttestationsSubjectDigestGetResponse200Type", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_0923": ( + ".group_0948": ( "OrgsOrgCodeSecurityConfigurationsPostBodyType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0924": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), - ".group_0925": ( + ".group_0949": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), + ".group_0950": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0926": ( + ".group_0951": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0927": ( + ".group_0952": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0928": ( + ".group_0953": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0929": ("OrgsOrgCodespacesGetResponse200Type",), - ".group_0930": ("OrgsOrgCodespacesAccessPutBodyType",), - ".group_0931": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), - ".group_0932": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), - ".group_0933": ( + ".group_0954": ("OrgsOrgCodespacesGetResponse200Type",), + ".group_0955": ("OrgsOrgCodespacesAccessPutBodyType",), + ".group_0956": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), + ".group_0957": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), + ".group_0958": ( "OrgsOrgCodespacesSecretsGetResponse200Type", "CodespacesOrgSecretType", ), - ".group_0934": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), - ".group_0935": ( + ".group_0959": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), + ".group_0960": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0936": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_0937": ("OrgsOrgCopilotBillingSeatsGetResponse200Type",), - ".group_0938": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), - ".group_0939": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), - ".group_0940": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), - ".group_0941": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), - ".group_0942": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), - ".group_0943": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), - ".group_0944": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), - ".group_0945": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), - ".group_0946": ("OrgsOrgCustomRepositoryRolesGetResponse200Type",), - ".group_0947": ( + ".group_0961": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_0962": ("OrgsOrgCopilotBillingSeatsGetResponse200Type",), + ".group_0963": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), + ".group_0964": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), + ".group_0965": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), + ".group_0966": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), + ".group_0967": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), + ".group_0968": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), + ".group_0969": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), + ".group_0970": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), + ".group_0971": ("OrgsOrgCustomRepositoryRolesGetResponse200Type",), + ".group_0972": ( "OrgsOrgDependabotSecretsGetResponse200Type", "OrganizationDependabotSecretType", ), - ".group_0948": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), - ".group_0949": ( + ".group_0973": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), + ".group_0974": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0950": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), - ".group_0951": ( + ".group_0975": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), + ".group_0976": ( "OrgsOrgHooksPostBodyType", "OrgsOrgHooksPostBodyPropConfigType", ), - ".group_0952": ( + ".group_0977": ( "OrgsOrgHooksHookIdPatchBodyType", "OrgsOrgHooksHookIdPatchBodyPropConfigType", ), - ".group_0953": ("OrgsOrgHooksHookIdConfigPatchBodyType",), - ".group_0954": ("OrgsOrgInstallationsGetResponse200Type",), - ".group_0955": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), - ".group_0956": ("OrgsOrgInvitationsPostBodyType",), - ".group_0957": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), - ".group_0958": ("OrgsOrgMembershipsUsernamePutBodyType",), - ".group_0959": ("OrgsOrgMigrationsPostBodyType",), - ".group_0960": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), - ".group_0961": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), - ".group_0962": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), - ".group_0963": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), - ".group_0964": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), - ".group_0965": ("OrgsOrgPersonalAccessTokensPostBodyType",), - ".group_0966": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), - ".group_0967": ( + ".group_0978": ("OrgsOrgHooksHookIdConfigPatchBodyType",), + ".group_0979": ("OrgsOrgInstallationsGetResponse200Type",), + ".group_0980": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), + ".group_0981": ("OrgsOrgInvitationsPostBodyType",), + ".group_0982": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), + ".group_0983": ("OrgsOrgMembershipsUsernamePutBodyType",), + ".group_0984": ("OrgsOrgMigrationsPostBodyType",), + ".group_0985": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), + ".group_0986": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), + ".group_0987": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), + ".group_0988": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), + ".group_0989": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), + ".group_0990": ("OrgsOrgPersonalAccessTokensPostBodyType",), + ".group_0991": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), + ".group_0992": ( "OrgsOrgPrivateRegistriesGetResponse200Type", "OrgPrivateRegistryConfigurationType", ), - ".group_0968": ("OrgsOrgPrivateRegistriesPostBodyType",), - ".group_0969": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",), - ".group_0970": ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",), - ".group_0971": ("OrgsOrgProjectsPostBodyType",), - ".group_0972": ("OrgsOrgPropertiesSchemaPatchBodyType",), - ".group_0973": ("OrgsOrgPropertiesValuesPatchBodyType",), - ".group_0974": ( + ".group_0993": ("OrgsOrgPrivateRegistriesPostBodyType",), + ".group_0994": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",), + ".group_0995": ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",), + ".group_0996": ("OrgsOrgProjectsPostBodyType",), + ".group_0997": ("OrgsOrgPropertiesSchemaPatchBodyType",), + ".group_0998": ("OrgsOrgPropertiesValuesPatchBodyType",), + ".group_0999": ( "OrgsOrgReposPostBodyType", "OrgsOrgReposPostBodyPropCustomPropertiesType", ), - ".group_0975": ("OrgsOrgRulesetsPostBodyType",), - ".group_0976": ("OrgsOrgRulesetsRulesetIdPutBodyType",), - ".group_0977": ("OrgsOrgTeamsPostBodyType",), - ".group_0978": ("OrgsOrgTeamsTeamSlugPatchBodyType",), - ".group_0979": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), - ".group_0980": ( + ".group_1000": ("OrgsOrgRulesetsPostBodyType",), + ".group_1001": ("OrgsOrgRulesetsRulesetIdPutBodyType",), + ".group_1002": ("OrgsOrgSettingsNetworkConfigurationsGetResponse200Type",), + ".group_1003": ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",), + ".group_1004": ( + "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType", + ), + ".group_1005": ("OrgsOrgTeamsPostBodyType",), + ".group_1006": ("OrgsOrgTeamsTeamSlugPatchBodyType",), + ".group_1007": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), + ".group_1008": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType", ), - ".group_0981": ( + ".group_1009": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType", ), - ".group_0982": ( + ".group_1010": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_0983": ( + ".group_1011": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_0984": ( + ".group_1012": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType", ), - ".group_0985": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",), - ".group_0986": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), - ".group_0987": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), - ".group_0988": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), - ".group_0989": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), - ".group_0990": ( + ".group_1013": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",), + ".group_1014": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), + ".group_1015": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), + ".group_1016": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), + ".group_1017": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), + ".group_1018": ( "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ), - ".group_0991": ("OrgsOrgSecurityProductEnablementPostBodyType",), - ".group_0992": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), - ".group_0993": ("ProjectsColumnsCardsCardIdPatchBodyType",), - ".group_0994": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), - ".group_0995": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), - ".group_0996": ( + ".group_1019": ("OrgsOrgSecurityProductEnablementPostBodyType",), + ".group_1020": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), + ".group_1021": ("ProjectsColumnsCardsCardIdPatchBodyType",), + ".group_1022": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), + ".group_1023": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), + ".group_1024": ( "ProjectsColumnsCardsCardIdMovesPostResponse403Type", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ), - ".group_0997": ( + ".group_1025": ( "ProjectsColumnsCardsCardIdMovesPostResponse503Type", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ), - ".group_0998": ("ProjectsColumnsColumnIdPatchBodyType",), - ".group_0999": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), - ".group_1000": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), - ".group_1001": ( + ".group_1026": ("ProjectsColumnsColumnIdPatchBodyType",), + ".group_1027": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), + ".group_1028": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), + ".group_1029": ( "ProjectsColumnsColumnIdCardsPostResponse503Type", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ), - ".group_1002": ("ProjectsColumnsColumnIdMovesPostBodyType",), - ".group_1003": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), - ".group_1004": ("ProjectsProjectIdDeleteResponse403Type",), - ".group_1005": ("ProjectsProjectIdPatchBodyType",), - ".group_1006": ("ProjectsProjectIdPatchResponse403Type",), - ".group_1007": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), - ".group_1008": ("ProjectsProjectIdColumnsPostBodyType",), - ".group_1009": ("ReposOwnerRepoDeleteResponse403Type",), - ".group_1010": ( + ".group_1030": ("ProjectsColumnsColumnIdMovesPostBodyType",), + ".group_1031": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), + ".group_1032": ("ProjectsProjectIdDeleteResponse403Type",), + ".group_1033": ("ProjectsProjectIdPatchBodyType",), + ".group_1034": ("ProjectsProjectIdPatchResponse403Type",), + ".group_1035": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), + ".group_1036": ("ProjectsProjectIdColumnsPostBodyType",), + ".group_1037": ("ReposOwnerRepoDeleteResponse403Type",), + ".group_1038": ( "ReposOwnerRepoPatchBodyType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", @@ -13422,61 +13568,61 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", ), - ".group_1011": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), - ".group_1012": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), - ".group_1013": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), - ".group_1014": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), - ".group_1015": ( + ".group_1039": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), + ".group_1040": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), + ".group_1041": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), + ".group_1042": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), + ".group_1043": ( "ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type", ), - ".group_1016": ("ReposOwnerRepoActionsPermissionsPutBodyType",), - ".group_1017": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), - ".group_1018": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), - ".group_1019": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_1020": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_1021": ("ReposOwnerRepoActionsRunsGetResponse200Type",), - ".group_1022": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), - ".group_1023": ( + ".group_1044": ("ReposOwnerRepoActionsPermissionsPutBodyType",), + ".group_1045": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), + ".group_1046": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), + ".group_1047": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_1048": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_1049": ("ReposOwnerRepoActionsRunsGetResponse200Type",), + ".group_1050": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), + ".group_1051": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type", ), - ".group_1024": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), - ".group_1025": ( + ".group_1052": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), + ".group_1053": ( "ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType", ), - ".group_1026": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), - ".group_1027": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), - ".group_1028": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), - ".group_1029": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), - ".group_1030": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), - ".group_1031": ("ReposOwnerRepoActionsVariablesPostBodyType",), - ".group_1032": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), - ".group_1033": ( + ".group_1054": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), + ".group_1055": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), + ".group_1056": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), + ".group_1057": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), + ".group_1058": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), + ".group_1059": ("ReposOwnerRepoActionsVariablesPostBodyType",), + ".group_1060": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), + ".group_1061": ( "ReposOwnerRepoActionsWorkflowsGetResponse200Type", "WorkflowType", ), - ".group_1034": ( + ".group_1062": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ), - ".group_1035": ( + ".group_1063": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", ), - ".group_1036": ( + ".group_1064": ( "ReposOwnerRepoAttestationsPostBodyType", "ReposOwnerRepoAttestationsPostBodyPropBundleType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", ), - ".group_1037": ("ReposOwnerRepoAttestationsPostResponse201Type",), - ".group_1038": ( + ".group_1065": ("ReposOwnerRepoAttestationsPostResponse201Type",), + ".group_1066": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_1039": ("ReposOwnerRepoAutolinksPostBodyType",), - ".group_1040": ( + ".group_1067": ("ReposOwnerRepoAutolinksPostBodyType",), + ".group_1068": ( "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", @@ -13485,374 +13631,374 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ), - ".group_1041": ( + ".group_1069": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ), - ".group_1042": ( + ".group_1070": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ), - ".group_1043": ( + ".group_1071": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ), - ".group_1044": ( + ".group_1072": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ), - ".group_1045": ( + ".group_1073": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ), - ".group_1046": ( + ".group_1074": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType", ), - ".group_1047": ( + ".group_1075": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType", ), - ".group_1048": ( + ".group_1076": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType", ), - ".group_1049": ( + ".group_1077": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type", ), - ".group_1050": ( + ".group_1078": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type", ), - ".group_1051": ( + ".group_1079": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ), - ".group_1052": ( + ".group_1080": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType", ), - ".group_1053": ( + ".group_1081": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType", ), - ".group_1054": ( + ".group_1082": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType", ), - ".group_1055": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), - ".group_1056": ( + ".group_1083": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), + ".group_1084": ( "ReposOwnerRepoCheckRunsPostBodyPropOutputType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ), - ".group_1057": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), - ".group_1058": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), - ".group_1059": ( + ".group_1085": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), + ".group_1086": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), + ".group_1087": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", ), - ".group_1060": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), - ".group_1061": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), - ".group_1062": ("ReposOwnerRepoCheckSuitesPostBodyType",), - ".group_1063": ( + ".group_1088": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), + ".group_1089": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), + ".group_1090": ("ReposOwnerRepoCheckSuitesPostBodyType",), + ".group_1091": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ), - ".group_1064": ( + ".group_1092": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type", ), - ".group_1065": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), - ".group_1066": ( + ".group_1093": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), + ".group_1094": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type", ), - ".group_1067": ( + ".group_1095": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type", ), - ".group_1068": ( + ".group_1096": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type", ), - ".group_1069": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), - ".group_1070": ("ReposOwnerRepoCodespacesGetResponse200Type",), - ".group_1071": ("ReposOwnerRepoCodespacesPostBodyType",), - ".group_1072": ( + ".group_1097": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), + ".group_1098": ("ReposOwnerRepoCodespacesGetResponse200Type",), + ".group_1099": ("ReposOwnerRepoCodespacesPostBodyType",), + ".group_1100": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ), - ".group_1073": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), - ".group_1074": ( + ".group_1101": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), + ".group_1102": ( "ReposOwnerRepoCodespacesNewGetResponse200Type", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ), - ".group_1075": ( + ".group_1103": ( "ReposOwnerRepoCodespacesSecretsGetResponse200Type", "RepoCodespacesSecretType", ), - ".group_1076": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), - ".group_1077": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), - ".group_1078": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), - ".group_1079": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), - ".group_1080": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), - ".group_1081": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), - ".group_1082": ( + ".group_1104": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), + ".group_1105": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), + ".group_1106": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), + ".group_1107": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), + ".group_1108": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), + ".group_1109": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), + ".group_1110": ( "ReposOwnerRepoContentsPathPutBodyType", "ReposOwnerRepoContentsPathPutBodyPropCommitterType", "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ), - ".group_1083": ( + ".group_1111": ( "ReposOwnerRepoContentsPathDeleteBodyType", "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ), - ".group_1084": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), - ".group_1085": ( + ".group_1112": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), + ".group_1113": ( "ReposOwnerRepoDependabotSecretsGetResponse200Type", "DependabotSecretType", ), - ".group_1086": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), - ".group_1087": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), - ".group_1088": ( + ".group_1114": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), + ".group_1115": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), + ".group_1116": ( "ReposOwnerRepoDeploymentsPostBodyType", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ), - ".group_1089": ("ReposOwnerRepoDeploymentsPostResponse202Type",), - ".group_1090": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), - ".group_1091": ( + ".group_1117": ("ReposOwnerRepoDeploymentsPostResponse202Type",), + ".group_1118": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), + ".group_1119": ( "ReposOwnerRepoDispatchesPostBodyType", "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ), - ".group_1092": ( + ".group_1120": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ), - ".group_1093": ( + ".group_1121": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", "DeploymentBranchPolicyType", ), - ".group_1094": ( + ".group_1122": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ), - ".group_1095": ( + ".group_1123": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ), - ".group_1096": ( + ".group_1124": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type", ), - ".group_1097": ( + ".group_1125": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType", ), - ".group_1098": ( + ".group_1126": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type", ), - ".group_1099": ( + ".group_1127": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType", ), - ".group_1100": ( + ".group_1128": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType", ), - ".group_1101": ("ReposOwnerRepoForksPostBodyType",), - ".group_1102": ("ReposOwnerRepoGitBlobsPostBodyType",), - ".group_1103": ( + ".group_1129": ("ReposOwnerRepoForksPostBodyType",), + ".group_1130": ("ReposOwnerRepoGitBlobsPostBodyType",), + ".group_1131": ( "ReposOwnerRepoGitCommitsPostBodyType", "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", ), - ".group_1104": ("ReposOwnerRepoGitRefsPostBodyType",), - ".group_1105": ("ReposOwnerRepoGitRefsRefPatchBodyType",), - ".group_1106": ( + ".group_1132": ("ReposOwnerRepoGitRefsPostBodyType",), + ".group_1133": ("ReposOwnerRepoGitRefsRefPatchBodyType",), + ".group_1134": ( "ReposOwnerRepoGitTagsPostBodyType", "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ), - ".group_1107": ( + ".group_1135": ( "ReposOwnerRepoGitTreesPostBodyType", "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ), - ".group_1108": ( + ".group_1136": ( "ReposOwnerRepoHooksPostBodyType", "ReposOwnerRepoHooksPostBodyPropConfigType", ), - ".group_1109": ("ReposOwnerRepoHooksHookIdPatchBodyType",), - ".group_1110": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), - ".group_1111": ("ReposOwnerRepoImportPutBodyType",), - ".group_1112": ("ReposOwnerRepoImportPatchBodyType",), - ".group_1113": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), - ".group_1114": ("ReposOwnerRepoImportLfsPatchBodyType",), - ".group_1115": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), - ".group_1116": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), - ".group_1117": ( + ".group_1137": ("ReposOwnerRepoHooksHookIdPatchBodyType",), + ".group_1138": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), + ".group_1139": ("ReposOwnerRepoImportPutBodyType",), + ".group_1140": ("ReposOwnerRepoImportPatchBodyType",), + ".group_1141": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), + ".group_1142": ("ReposOwnerRepoImportLfsPatchBodyType",), + ".group_1143": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), + ".group_1144": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), + ".group_1145": ( "ReposOwnerRepoIssuesPostBodyType", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", ), - ".group_1118": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), - ".group_1119": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), - ".group_1120": ( + ".group_1146": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), + ".group_1147": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), + ".group_1148": ( "ReposOwnerRepoIssuesIssueNumberPatchBodyType", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", ), - ".group_1121": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), - ".group_1122": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), - ".group_1123": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), - ".group_1124": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), - ".group_1125": ( + ".group_1149": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), + ".group_1150": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), + ".group_1151": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), + ".group_1152": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), + ".group_1153": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", ), - ".group_1126": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), - ".group_1127": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), - ".group_1128": ( + ".group_1154": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), + ".group_1155": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), + ".group_1156": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", ), - ".group_1129": ( + ".group_1157": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType", ), - ".group_1130": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), - ".group_1131": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), - ".group_1132": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",), - ".group_1133": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",), - ".group_1134": ( + ".group_1158": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), + ".group_1159": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), + ".group_1160": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",), + ".group_1161": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",), + ".group_1162": ( "ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType", ), - ".group_1135": ("ReposOwnerRepoKeysPostBodyType",), - ".group_1136": ("ReposOwnerRepoLabelsPostBodyType",), - ".group_1137": ("ReposOwnerRepoLabelsNamePatchBodyType",), - ".group_1138": ("ReposOwnerRepoMergeUpstreamPostBodyType",), - ".group_1139": ("ReposOwnerRepoMergesPostBodyType",), - ".group_1140": ("ReposOwnerRepoMilestonesPostBodyType",), - ".group_1141": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), - ".group_1142": ("ReposOwnerRepoNotificationsPutBodyType",), - ".group_1143": ("ReposOwnerRepoNotificationsPutResponse202Type",), - ".group_1144": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), - ".group_1145": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), - ".group_1146": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), - ".group_1147": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), - ".group_1148": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), - ".group_1149": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), - ".group_1150": ("ReposOwnerRepoPagesPostBodyPropSourceType",), - ".group_1151": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), - ".group_1152": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), - ".group_1153": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), - ".group_1154": ( + ".group_1163": ("ReposOwnerRepoKeysPostBodyType",), + ".group_1164": ("ReposOwnerRepoLabelsPostBodyType",), + ".group_1165": ("ReposOwnerRepoLabelsNamePatchBodyType",), + ".group_1166": ("ReposOwnerRepoMergeUpstreamPostBodyType",), + ".group_1167": ("ReposOwnerRepoMergesPostBodyType",), + ".group_1168": ("ReposOwnerRepoMilestonesPostBodyType",), + ".group_1169": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), + ".group_1170": ("ReposOwnerRepoNotificationsPutBodyType",), + ".group_1171": ("ReposOwnerRepoNotificationsPutResponse202Type",), + ".group_1172": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), + ".group_1173": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), + ".group_1174": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), + ".group_1175": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), + ".group_1176": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), + ".group_1177": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), + ".group_1178": ("ReposOwnerRepoPagesPostBodyPropSourceType",), + ".group_1179": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), + ".group_1180": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), + ".group_1181": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), + ".group_1182": ( "ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type", ), - ".group_1155": ("ReposOwnerRepoProjectsPostBodyType",), - ".group_1156": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), - ".group_1157": ("ReposOwnerRepoPullsPostBodyType",), - ".group_1158": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), - ".group_1159": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), - ".group_1160": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), - ".group_1161": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), - ".group_1162": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), - ".group_1163": ( + ".group_1183": ("ReposOwnerRepoProjectsPostBodyType",), + ".group_1184": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), + ".group_1185": ("ReposOwnerRepoPullsPostBodyType",), + ".group_1186": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), + ".group_1187": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), + ".group_1188": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), + ".group_1189": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), + ".group_1190": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), + ".group_1191": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType", ), - ".group_1164": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), - ".group_1165": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), - ".group_1166": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), - ".group_1167": ( + ".group_1192": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), + ".group_1193": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), + ".group_1194": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), + ".group_1195": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type", ), - ".group_1168": ( + ".group_1196": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type", ), - ".group_1169": ( + ".group_1197": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType", ), - ".group_1170": ( + ".group_1198": ( "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ), - ".group_1171": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), - ".group_1172": ( + ".group_1199": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), + ".group_1200": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType", ), - ".group_1173": ( + ".group_1201": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType", ), - ".group_1174": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), - ".group_1175": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), - ".group_1176": ("ReposOwnerRepoReleasesPostBodyType",), - ".group_1177": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), - ".group_1178": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), - ".group_1179": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), - ".group_1180": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), - ".group_1181": ("ReposOwnerRepoRulesetsPostBodyType",), - ".group_1182": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), - ".group_1183": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), - ".group_1184": ( + ".group_1202": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), + ".group_1203": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), + ".group_1204": ("ReposOwnerRepoReleasesPostBodyType",), + ".group_1205": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), + ".group_1206": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), + ".group_1207": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), + ".group_1208": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), + ".group_1209": ("ReposOwnerRepoRulesetsPostBodyType",), + ".group_1210": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), + ".group_1211": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), + ".group_1212": ( "ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType", ), - ".group_1185": ("ReposOwnerRepoStatusesShaPostBodyType",), - ".group_1186": ("ReposOwnerRepoSubscriptionPutBodyType",), - ".group_1187": ("ReposOwnerRepoTagsProtectionPostBodyType",), - ".group_1188": ("ReposOwnerRepoTopicsPutBodyType",), - ".group_1189": ("ReposOwnerRepoTransferPostBodyType",), - ".group_1190": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), - ".group_1191": ( + ".group_1213": ("ReposOwnerRepoStatusesShaPostBodyType",), + ".group_1214": ("ReposOwnerRepoSubscriptionPutBodyType",), + ".group_1215": ("ReposOwnerRepoTagsProtectionPostBodyType",), + ".group_1216": ("ReposOwnerRepoTopicsPutBodyType",), + ".group_1217": ("ReposOwnerRepoTransferPostBodyType",), + ".group_1218": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), + ".group_1219": ( "ScimV2OrganizationsOrgUsersPostBodyType", "ScimV2OrganizationsOrgUsersPostBodyPropNameType", "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", ), - ".group_1192": ( + ".group_1220": ( "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", ), - ".group_1193": ( + ".group_1221": ( "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", ), - ".group_1194": ("TeamsTeamIdPatchBodyType",), - ".group_1195": ("TeamsTeamIdDiscussionsPostBodyType",), - ".group_1196": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), - ".group_1197": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), - ".group_1198": ( + ".group_1222": ("TeamsTeamIdPatchBodyType",), + ".group_1223": ("TeamsTeamIdDiscussionsPostBodyType",), + ".group_1224": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), + ".group_1225": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), + ".group_1226": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1199": ( + ".group_1227": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1200": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), - ".group_1201": ("TeamsTeamIdMembershipsUsernamePutBodyType",), - ".group_1202": ("TeamsTeamIdProjectsProjectIdPutBodyType",), - ".group_1203": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), - ".group_1204": ("TeamsTeamIdReposOwnerRepoPutBodyType",), - ".group_1205": ( + ".group_1228": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), + ".group_1229": ("TeamsTeamIdMembershipsUsernamePutBodyType",), + ".group_1230": ("TeamsTeamIdProjectsProjectIdPutBodyType",), + ".group_1231": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), + ".group_1232": ("TeamsTeamIdReposOwnerRepoPutBodyType",), + ".group_1233": ( "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ), - ".group_1206": ("UserPatchBodyType",), - ".group_1207": ("UserCodespacesGetResponse200Type",), - ".group_1208": ("UserCodespacesPostBodyOneof0Type",), - ".group_1209": ( + ".group_1234": ("UserPatchBodyType",), + ".group_1235": ("UserCodespacesGetResponse200Type",), + ".group_1236": ("UserCodespacesPostBodyOneof0Type",), + ".group_1237": ( "UserCodespacesPostBodyOneof1Type", "UserCodespacesPostBodyOneof1PropPullRequestType", ), - ".group_1210": ( + ".group_1238": ( "UserCodespacesSecretsGetResponse200Type", "CodespacesSecretType", ), - ".group_1211": ("UserCodespacesSecretsSecretNamePutBodyType",), - ".group_1212": ( + ".group_1239": ("UserCodespacesSecretsSecretNamePutBodyType",), + ".group_1240": ( "UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1213": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1214": ("UserCodespacesCodespaceNamePatchBodyType",), - ".group_1215": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), - ".group_1216": ("UserCodespacesCodespaceNamePublishPostBodyType",), - ".group_1217": ("UserEmailVisibilityPatchBodyType",), - ".group_1218": ("UserEmailsPostBodyOneof0Type",), - ".group_1219": ("UserEmailsDeleteBodyOneof0Type",), - ".group_1220": ("UserGpgKeysPostBodyType",), - ".group_1221": ("UserInstallationsGetResponse200Type",), - ".group_1222": ( + ".group_1241": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1242": ("UserCodespacesCodespaceNamePatchBodyType",), + ".group_1243": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), + ".group_1244": ("UserCodespacesCodespaceNamePublishPostBodyType",), + ".group_1245": ("UserEmailVisibilityPatchBodyType",), + ".group_1246": ("UserEmailsPostBodyOneof0Type",), + ".group_1247": ("UserEmailsDeleteBodyOneof0Type",), + ".group_1248": ("UserGpgKeysPostBodyType",), + ".group_1249": ("UserInstallationsGetResponse200Type",), + ".group_1250": ( "UserInstallationsInstallationIdRepositoriesGetResponse200Type", ), - ".group_1223": ("UserInteractionLimitsGetResponse200Anyof1Type",), - ".group_1224": ("UserKeysPostBodyType",), - ".group_1225": ("UserMembershipsOrgsOrgPatchBodyType",), - ".group_1226": ("UserMigrationsPostBodyType",), - ".group_1227": ("UserProjectsPostBodyType",), - ".group_1228": ("UserReposPostBodyType",), - ".group_1229": ("UserSocialAccountsPostBodyType",), - ".group_1230": ("UserSocialAccountsDeleteBodyType",), - ".group_1231": ("UserSshSigningKeysPostBodyType",), - ".group_1232": ( + ".group_1251": ("UserInteractionLimitsGetResponse200Anyof1Type",), + ".group_1252": ("UserKeysPostBodyType",), + ".group_1253": ("UserMembershipsOrgsOrgPatchBodyType",), + ".group_1254": ("UserMigrationsPostBodyType",), + ".group_1255": ("UserProjectsPostBodyType",), + ".group_1256": ("UserReposPostBodyType",), + ".group_1257": ("UserSocialAccountsPostBodyType",), + ".group_1258": ("UserSocialAccountsDeleteBodyType",), + ".group_1259": ("UserSshSigningKeysPostBodyType",), + ".group_1260": ( "UsersUsernameAttestationsSubjectDigestGetResponse200Type", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "SigstoreBundle0Type", diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0002.py b/githubkit/versions/ghec_v2022_11_28/types/group_0002.py index fa76723f3..a5bd8643f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0002.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0002.py @@ -9,38 +9,18 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class SimpleUserType(TypedDict): - """Simple User +class SecurityAdvisoryEpssType(TypedDict): + """SecurityAdvisoryEpss - A GitHub user. + The EPSS scores as calculated by the [Exploit Prediction Scoring + System](https://www.first.org/epss). """ - name: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - starred_at: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("SimpleUserType",) + percentage: NotRequired[float] + percentile: NotRequired[float] + + +__all__ = ("SecurityAdvisoryEpssType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0003.py b/githubkit/versions/ghec_v2022_11_28/types/group_0003.py index 887570d73..fa76723f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0003.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0003.py @@ -9,116 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType -from .group_0004 import GlobalAdvisoryPropCreditsItemsType +class SimpleUserType(TypedDict): + """Simple User -class GlobalAdvisoryType(TypedDict): - """GlobalAdvisory - - A GitHub Security Advisory. + A GitHub user. """ - ghsa_id: str - cve_id: Union[str, None] + name: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + login: str + id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] url: str html_url: str - repository_advisory_url: Union[str, None] - summary: str - description: Union[str, None] - type: Literal["reviewed", "unreviewed", "malware"] - severity: Literal["critical", "high", "medium", "low", "unknown"] - source_code_location: Union[str, None] - identifiers: Union[list[GlobalAdvisoryPropIdentifiersItemsType], None] - references: Union[list[str], None] - published_at: datetime - updated_at: datetime - github_reviewed_at: Union[datetime, None] - nvd_published_at: Union[datetime, None] - withdrawn_at: Union[datetime, None] - vulnerabilities: Union[list[VulnerabilityType], None] - cvss: Union[GlobalAdvisoryPropCvssType, None] - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: Union[list[GlobalAdvisoryPropCwesItemsType], None] - epss: NotRequired[Union[GlobalAdvisoryPropEpssType, None]] - credits_: Union[list[GlobalAdvisoryPropCreditsItemsType], None] - - -class GlobalAdvisoryPropIdentifiersItemsType(TypedDict): - """GlobalAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] - value: str - - -class GlobalAdvisoryPropCvssType(TypedDict): - """GlobalAdvisoryPropCvss""" - - vector_string: Union[str, None] - score: Union[float, None] - - -class GlobalAdvisoryPropCwesItemsType(TypedDict): - """GlobalAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class GlobalAdvisoryPropEpssType(TypedDict): - """GlobalAdvisoryPropEpss""" - - percentage: NotRequired[float] - percentile: NotRequired[float] - - -class VulnerabilityType(TypedDict): - """Vulnerability - - A vulnerability describing the product and its affected versions within a GitHub - Security Advisory. - """ - - package: Union[VulnerabilityPropPackageType, None] - vulnerable_version_range: Union[str, None] - first_patched_version: Union[str, None] - vulnerable_functions: Union[list[str], None] - - -class VulnerabilityPropPackageType(TypedDict): - """VulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: Union[str, None] - - -__all__ = ( - "GlobalAdvisoryPropCvssType", - "GlobalAdvisoryPropCwesItemsType", - "GlobalAdvisoryPropEpssType", - "GlobalAdvisoryPropIdentifiersItemsType", - "GlobalAdvisoryType", - "VulnerabilityPropPackageType", - "VulnerabilityType", -) + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + starred_at: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("SimpleUserType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0004.py b/githubkit/versions/ghec_v2022_11_28/types/group_0004.py index 95c9a2b1d..35cc5758c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0004.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0004.py @@ -9,28 +9,109 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict - -from .group_0002 import SimpleUserType - - -class GlobalAdvisoryPropCreditsItemsType(TypedDict): - """GlobalAdvisoryPropCreditsItems""" - - user: SimpleUserType - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0001 import CvssSeveritiesType +from .group_0002 import SecurityAdvisoryEpssType +from .group_0005 import GlobalAdvisoryPropCreditsItemsType + + +class GlobalAdvisoryType(TypedDict): + """GlobalAdvisory + + A GitHub Security Advisory. + """ + + ghsa_id: str + cve_id: Union[str, None] + url: str + html_url: str + repository_advisory_url: Union[str, None] + summary: str + description: Union[str, None] + type: Literal["reviewed", "unreviewed", "malware"] + severity: Literal["critical", "high", "medium", "low", "unknown"] + source_code_location: Union[str, None] + identifiers: Union[list[GlobalAdvisoryPropIdentifiersItemsType], None] + references: Union[list[str], None] + published_at: datetime + updated_at: datetime + github_reviewed_at: Union[datetime, None] + nvd_published_at: Union[datetime, None] + withdrawn_at: Union[datetime, None] + vulnerabilities: Union[list[VulnerabilityType], None] + cvss: Union[GlobalAdvisoryPropCvssType, None] + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + epss: NotRequired[Union[SecurityAdvisoryEpssType, None]] + cwes: Union[list[GlobalAdvisoryPropCwesItemsType], None] + credits_: Union[list[GlobalAdvisoryPropCreditsItemsType], None] + + +class GlobalAdvisoryPropIdentifiersItemsType(TypedDict): + """GlobalAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] + value: str + + +class GlobalAdvisoryPropCvssType(TypedDict): + """GlobalAdvisoryPropCvss""" + + vector_string: Union[str, None] + score: Union[float, None] + + +class GlobalAdvisoryPropCwesItemsType(TypedDict): + """GlobalAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class VulnerabilityType(TypedDict): + """Vulnerability + + A vulnerability describing the product and its affected versions within a GitHub + Security Advisory. + """ + + package: Union[VulnerabilityPropPackageType, None] + vulnerable_version_range: Union[str, None] + first_patched_version: Union[str, None] + vulnerable_functions: Union[list[str], None] + + +class VulnerabilityPropPackageType(TypedDict): + """VulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", "other", + "swift", ] + name: Union[str, None] -__all__ = ("GlobalAdvisoryPropCreditsItemsType",) +__all__ = ( + "GlobalAdvisoryPropCvssType", + "GlobalAdvisoryPropCwesItemsType", + "GlobalAdvisoryPropIdentifiersItemsType", + "GlobalAdvisoryType", + "VulnerabilityPropPackageType", + "VulnerabilityType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0005.py b/githubkit/versions/ghec_v2022_11_28/types/group_0005.py index ec1143694..62d7ca39e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0005.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0005.py @@ -9,19 +9,28 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class BasicErrorType(TypedDict): - """Basic Error - Basic Error - """ +class GlobalAdvisoryPropCreditsItemsType(TypedDict): + """GlobalAdvisoryPropCreditsItems""" - message: NotRequired[str] - documentation_url: NotRequired[str] - url: NotRequired[str] - status: NotRequired[str] + user: SimpleUserType + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] -__all__ = ("BasicErrorType",) +__all__ = ("GlobalAdvisoryPropCreditsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0006.py b/githubkit/versions/ghec_v2022_11_28/types/group_0006.py index 890be8381..ec1143694 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0006.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0006.py @@ -12,15 +12,16 @@ from typing_extensions import NotRequired, TypedDict -class ValidationErrorSimpleType(TypedDict): - """Validation Error Simple +class BasicErrorType(TypedDict): + """Basic Error - Validation Error Simple + Basic Error """ - message: str - documentation_url: str - errors: NotRequired[list[str]] + message: NotRequired[str] + documentation_url: NotRequired[str] + url: NotRequired[str] + status: NotRequired[str] -__all__ = ("ValidationErrorSimpleType",) +__all__ = ("BasicErrorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0007.py b/githubkit/versions/ghec_v2022_11_28/types/group_0007.py index 83a5da25b..890be8381 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0007.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0007.py @@ -12,20 +12,15 @@ from typing_extensions import NotRequired, TypedDict -class IntegrationPropPermissionsType(TypedDict): - """IntegrationPropPermissions +class ValidationErrorSimpleType(TypedDict): + """Validation Error Simple - The set of permissions for the GitHub app - - Examples: - {'issues': 'read', 'deployments': 'write'} + Validation Error Simple """ - issues: NotRequired[str] - checks: NotRequired[str] - metadata: NotRequired[str] - contents: NotRequired[str] - deployments: NotRequired[str] + message: str + documentation_url: str + errors: NotRequired[list[str]] -__all__ = ("IntegrationPropPermissionsType",) +__all__ = ("ValidationErrorSimpleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0008.py b/githubkit/versions/ghec_v2022_11_28/types/group_0008.py index 350f3f6fb..74d77a415 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0008.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0008.py @@ -13,36 +13,23 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0007 import IntegrationPropPermissionsType +class EnterpriseType(TypedDict): + """Enterprise -class IntegrationType(TypedDict): - """GitHub app - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + An enterprise on GitHub. """ + description: NotRequired[Union[str, None]] + html_url: str + website_url: NotRequired[Union[str, None]] id: int - slug: NotRequired[str] node_id: str - client_id: NotRequired[str] - owner: Union[None, SimpleUserType] name: str - description: Union[str, None] - external_url: str - html_url: str - created_at: datetime - updated_at: datetime - permissions: IntegrationPropPermissionsType - events: list[str] - installations_count: NotRequired[int] - client_secret: NotRequired[str] - webhook_secret: NotRequired[Union[str, None]] - pem: NotRequired[str] + slug: str + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + avatar_url: str -__all__ = ("IntegrationType",) +__all__ = ("EnterpriseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0009.py b/githubkit/versions/ghec_v2022_11_28/types/group_0009.py index c8636cd86..83a5da25b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0009.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0009.py @@ -9,20 +9,23 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhookConfigType(TypedDict): - """Webhook Configuration +class IntegrationPropPermissionsType(TypedDict): + """IntegrationPropPermissions - Configuration object of the webhook + The set of permissions for the GitHub app + + Examples: + {'issues': 'read', 'deployments': 'write'} """ - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + issues: NotRequired[str] + checks: NotRequired[str] + metadata: NotRequired[str] + contents: NotRequired[str] + deployments: NotRequired[str] -__all__ = ("WebhookConfigType",) +__all__ = ("IntegrationPropPermissionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0010.py b/githubkit/versions/ghec_v2022_11_28/types/group_0010.py index 2cf7ba998..34d9ac7cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0010.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0010.py @@ -13,25 +13,37 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0008 import EnterpriseType +from .group_0009 import IntegrationPropPermissionsType -class HookDeliveryItemType(TypedDict): - """Simple webhook delivery - Delivery made by a webhook, without request and response information. +class IntegrationType(TypedDict): + """GitHub app + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ id: int - guid: str - delivered_at: datetime - redelivery: bool - duration: float - status: str - status_code: int - event: str - action: Union[str, None] - installation_id: Union[int, None] - repository_id: Union[int, None] - throttled_at: NotRequired[Union[datetime, None]] - - -__all__ = ("HookDeliveryItemType",) + slug: NotRequired[str] + node_id: str + client_id: NotRequired[str] + owner: Union[SimpleUserType, EnterpriseType] + name: str + description: Union[str, None] + external_url: str + html_url: str + created_at: datetime + updated_at: datetime + permissions: IntegrationPropPermissionsType + events: list[str] + installations_count: NotRequired[int] + client_secret: NotRequired[str] + webhook_secret: NotRequired[Union[str, None]] + pem: NotRequired[str] + + +__all__ = ("IntegrationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0011.py b/githubkit/versions/ghec_v2022_11_28/types/group_0011.py index ea6a587cb..c8636cd86 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0011.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0011.py @@ -13,18 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class ScimErrorType(TypedDict): - """Scim Error +class WebhookConfigType(TypedDict): + """Webhook Configuration - Scim Error + Configuration object of the webhook """ - message: NotRequired[Union[str, None]] - documentation_url: NotRequired[Union[str, None]] - detail: NotRequired[Union[str, None]] - status: NotRequired[int] - scim_type: NotRequired[Union[str, None]] - schemas: NotRequired[list[str]] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("ScimErrorType",) +__all__ = ("WebhookConfigType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0012.py b/githubkit/versions/ghec_v2022_11_28/types/group_0012.py index 8253b3fd6..2cf7ba998 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0012.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0012.py @@ -9,33 +9,29 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -class ValidationErrorType(TypedDict): - """Validation Error +class HookDeliveryItemType(TypedDict): + """Simple webhook delivery - Validation Error + Delivery made by a webhook, without request and response information. """ - message: str - documentation_url: str - errors: NotRequired[list[ValidationErrorPropErrorsItemsType]] - - -class ValidationErrorPropErrorsItemsType(TypedDict): - """ValidationErrorPropErrorsItems""" - - resource: NotRequired[str] - field: NotRequired[str] - message: NotRequired[str] - code: str - index: NotRequired[int] - value: NotRequired[Union[str, None, int, None, list[str], None]] - - -__all__ = ( - "ValidationErrorPropErrorsItemsType", - "ValidationErrorType", -) + id: int + guid: str + delivered_at: datetime + redelivery: bool + duration: float + status: str + status_code: int + event: str + action: Union[str, None] + installation_id: Union[int, None] + repository_id: Union[int, None] + throttled_at: NotRequired[Union[datetime, None]] + + +__all__ = ("HookDeliveryItemType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0013.py b/githubkit/versions/ghec_v2022_11_28/types/group_0013.py index 1dd24facf..ea6a587cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0013.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0013.py @@ -9,74 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class HookDeliveryType(TypedDict): - """Webhook delivery +class ScimErrorType(TypedDict): + """Scim Error - Delivery made by a webhook. + Scim Error """ - id: int - guid: str - delivered_at: datetime - redelivery: bool - duration: float - status: str - status_code: int - event: str - action: Union[str, None] - installation_id: Union[int, None] - repository_id: Union[int, None] - throttled_at: NotRequired[Union[datetime, None]] - url: NotRequired[str] - request: HookDeliveryPropRequestType - response: HookDeliveryPropResponseType + message: NotRequired[Union[str, None]] + documentation_url: NotRequired[Union[str, None]] + detail: NotRequired[Union[str, None]] + status: NotRequired[int] + scim_type: NotRequired[Union[str, None]] + schemas: NotRequired[list[str]] -class HookDeliveryPropRequestType(TypedDict): - """HookDeliveryPropRequest""" - - headers: Union[HookDeliveryPropRequestPropHeadersType, None] - payload: Union[HookDeliveryPropRequestPropPayloadType, None] - - -HookDeliveryPropRequestPropHeadersType: TypeAlias = dict[str, Any] -"""HookDeliveryPropRequestPropHeaders - -The request headers sent with the webhook delivery. -""" - - -HookDeliveryPropRequestPropPayloadType: TypeAlias = dict[str, Any] -"""HookDeliveryPropRequestPropPayload - -The webhook payload. -""" - - -class HookDeliveryPropResponseType(TypedDict): - """HookDeliveryPropResponse""" - - headers: Union[HookDeliveryPropResponsePropHeadersType, None] - payload: Union[str, None] - - -HookDeliveryPropResponsePropHeadersType: TypeAlias = dict[str, Any] -"""HookDeliveryPropResponsePropHeaders - -The response headers received when the delivery was made. -""" - - -__all__ = ( - "HookDeliveryPropRequestPropHeadersType", - "HookDeliveryPropRequestPropPayloadType", - "HookDeliveryPropRequestType", - "HookDeliveryPropResponsePropHeadersType", - "HookDeliveryPropResponseType", - "HookDeliveryType", -) +__all__ = ("ScimErrorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0014.py b/githubkit/versions/ghec_v2022_11_28/types/group_0014.py index 74d77a415..8253b3fd6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0014.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0014.py @@ -9,27 +9,33 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -class EnterpriseType(TypedDict): - """Enterprise +class ValidationErrorType(TypedDict): + """Validation Error - An enterprise on GitHub. + Validation Error """ - description: NotRequired[Union[str, None]] - html_url: str - website_url: NotRequired[Union[str, None]] - id: int - node_id: str - name: str - slug: str - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - avatar_url: str + message: str + documentation_url: str + errors: NotRequired[list[ValidationErrorPropErrorsItemsType]] -__all__ = ("EnterpriseType",) +class ValidationErrorPropErrorsItemsType(TypedDict): + """ValidationErrorPropErrorsItems""" + + resource: NotRequired[str] + field: NotRequired[str] + message: NotRequired[str] + code: str + index: NotRequired[int] + value: NotRequired[Union[str, None, int, None, list[str], None]] + + +__all__ = ( + "ValidationErrorPropErrorsItemsType", + "ValidationErrorType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0015.py b/githubkit/versions/ghec_v2022_11_28/types/group_0015.py index 03fa7d35a..1dd24facf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0015.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0015.py @@ -10,24 +10,73 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0014 import EnterpriseType +class HookDeliveryType(TypedDict): + """Webhook delivery -class IntegrationInstallationRequestType(TypedDict): - """Integration Installation Request - - Request to install an integration on a target + Delivery made by a webhook. """ id: int - node_id: NotRequired[str] - account: Union[SimpleUserType, EnterpriseType] - requester: SimpleUserType - created_at: datetime + guid: str + delivered_at: datetime + redelivery: bool + duration: float + status: str + status_code: int + event: str + action: Union[str, None] + installation_id: Union[int, None] + repository_id: Union[int, None] + throttled_at: NotRequired[Union[datetime, None]] + url: NotRequired[str] + request: HookDeliveryPropRequestType + response: HookDeliveryPropResponseType + + +class HookDeliveryPropRequestType(TypedDict): + """HookDeliveryPropRequest""" + + headers: Union[HookDeliveryPropRequestPropHeadersType, None] + payload: Union[HookDeliveryPropRequestPropPayloadType, None] + + +HookDeliveryPropRequestPropHeadersType: TypeAlias = dict[str, Any] +"""HookDeliveryPropRequestPropHeaders + +The request headers sent with the webhook delivery. +""" + + +HookDeliveryPropRequestPropPayloadType: TypeAlias = dict[str, Any] +"""HookDeliveryPropRequestPropPayload + +The webhook payload. +""" + + +class HookDeliveryPropResponseType(TypedDict): + """HookDeliveryPropResponse""" + + headers: Union[HookDeliveryPropResponsePropHeadersType, None] + payload: Union[str, None] + + +HookDeliveryPropResponsePropHeadersType: TypeAlias = dict[str, Any] +"""HookDeliveryPropResponsePropHeaders + +The response headers received when the delivery was made. +""" -__all__ = ("IntegrationInstallationRequestType",) +__all__ = ( + "HookDeliveryPropRequestPropHeadersType", + "HookDeliveryPropRequestPropPayloadType", + "HookDeliveryPropRequestType", + "HookDeliveryPropResponsePropHeadersType", + "HookDeliveryPropResponseType", + "HookDeliveryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0016.py b/githubkit/versions/ghec_v2022_11_28/types/group_0016.py index 2c2b62d2f..9183c8375 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0016.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0016.py @@ -9,68 +9,25 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0008 import EnterpriseType -class AppPermissionsType(TypedDict): - """App Permissions - The permissions granted to the user access token. +class IntegrationInstallationRequestType(TypedDict): + """Integration Installation Request - Examples: - {'contents': 'read', 'issues': 'read', 'deployments': 'write', 'single_file': - 'read'} + Request to install an integration on a target """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - codespaces: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - dependabot_secrets: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_custom_properties: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["write"]] - members: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_custom_roles: NotRequired[Literal["read", "write"]] - organization_custom_org_roles: NotRequired[Literal["read", "write"]] - organization_custom_properties: NotRequired[Literal["read", "write", "admin"]] - organization_copilot_seat_management: NotRequired[Literal["write"]] - organization_announcement_banners: NotRequired[Literal["read", "write"]] - organization_events: NotRequired[Literal["read"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_personal_access_tokens: NotRequired[Literal["read", "write"]] - organization_personal_access_token_requests: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - email_addresses: NotRequired[Literal["read", "write"]] - followers: NotRequired[Literal["read", "write"]] - git_ssh_keys: NotRequired[Literal["read", "write"]] - gpg_keys: NotRequired[Literal["read", "write"]] - interaction_limits: NotRequired[Literal["read", "write"]] - profile: NotRequired[Literal["write"]] - starring: NotRequired[Literal["read", "write"]] + id: int + node_id: NotRequired[str] + account: Union[SimpleUserType, EnterpriseType] + requester: SimpleUserType + created_at: datetime -__all__ = ("AppPermissionsType",) +__all__ = ("IntegrationInstallationRequestType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0017.py b/githubkit/versions/ghec_v2022_11_28/types/group_0017.py index b51725d7f..2c2b62d2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0017.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0017.py @@ -9,41 +9,68 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0014 import EnterpriseType -from .group_0016 import AppPermissionsType +class AppPermissionsType(TypedDict): + """App Permissions -class InstallationType(TypedDict): - """Installation + The permissions granted to the user access token. - Installation + Examples: + {'contents': 'read', 'issues': 'read', 'deployments': 'write', 'single_file': + 'read'} """ - id: int - account: Union[SimpleUserType, EnterpriseType, None] - repository_selection: Literal["all", "selected"] - access_tokens_url: str - repositories_url: str - html_url: str - app_id: int - target_id: int - target_type: str - permissions: AppPermissionsType - events: list[str] - created_at: datetime - updated_at: datetime - single_file_name: Union[str, None] - has_multiple_single_files: NotRequired[bool] - single_file_paths: NotRequired[list[str]] - app_slug: str - suspended_by: Union[None, SimpleUserType] - suspended_at: Union[datetime, None] - contact_email: NotRequired[Union[str, None]] - - -__all__ = ("InstallationType",) + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + codespaces: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + dependabot_secrets: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_custom_properties: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["write"]] + members: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_custom_roles: NotRequired[Literal["read", "write"]] + organization_custom_org_roles: NotRequired[Literal["read", "write"]] + organization_custom_properties: NotRequired[Literal["read", "write", "admin"]] + organization_copilot_seat_management: NotRequired[Literal["write"]] + organization_announcement_banners: NotRequired[Literal["read", "write"]] + organization_events: NotRequired[Literal["read"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_personal_access_tokens: NotRequired[Literal["read", "write"]] + organization_personal_access_token_requests: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + email_addresses: NotRequired[Literal["read", "write"]] + followers: NotRequired[Literal["read", "write"]] + git_ssh_keys: NotRequired[Literal["read", "write"]] + gpg_keys: NotRequired[Literal["read", "write"]] + interaction_limits: NotRequired[Literal["read", "write"]] + profile: NotRequired[Literal["write"]] + starring: NotRequired[Literal["read", "write"]] + + +__all__ = ("AppPermissionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0018.py b/githubkit/versions/ghec_v2022_11_28/types/group_0018.py index b20c6fa41..7026c5135 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0018.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0018.py @@ -9,22 +9,41 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0008 import EnterpriseType +from .group_0017 import AppPermissionsType -class LicenseSimpleType(TypedDict): - """License Simple - License Simple - """ - - key: str - name: str - url: Union[str, None] - spdx_id: Union[str, None] - node_id: str - html_url: NotRequired[str] +class InstallationType(TypedDict): + """Installation + Installation + """ -__all__ = ("LicenseSimpleType",) + id: int + account: Union[SimpleUserType, EnterpriseType, None] + repository_selection: Literal["all", "selected"] + access_tokens_url: str + repositories_url: str + html_url: str + app_id: int + target_id: int + target_type: str + permissions: AppPermissionsType + events: list[str] + created_at: datetime + updated_at: datetime + single_file_name: Union[str, None] + has_multiple_single_files: NotRequired[bool] + single_file_paths: NotRequired[list[str]] + app_slug: str + suspended_by: Union[None, SimpleUserType] + suspended_at: Union[datetime, None] + contact_email: NotRequired[Union[str, None]] + + +__all__ = ("InstallationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0019.py b/githubkit/versions/ghec_v2022_11_28/types/group_0019.py index f45161b9e..b20c6fa41 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0019.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0019.py @@ -9,130 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0018 import LicenseSimpleType +class LicenseSimpleType(TypedDict): + """License Simple -class RepositoryType(TypedDict): - """Repository - - A repository on GitHub. + License Simple """ - id: int - node_id: str + key: str name: str - full_name: str - license_: Union[None, LicenseSimpleType] - forks: int - permissions: NotRequired[RepositoryPropPermissionsType] - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - has_discussions: NotRequired[bool] - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - open_issues: int - watchers: int - master_branch: NotRequired[str] - starred_at: NotRequired[str] - anonymous_access_enabled: NotRequired[bool] - - -class RepositoryPropPermissionsType(TypedDict): - """RepositoryPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] + url: Union[str, None] + spdx_id: Union[str, None] + node_id: str + html_url: NotRequired[str] -__all__ = ( - "RepositoryPropPermissionsType", - "RepositoryType", -) +__all__ = ("LicenseSimpleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0020.py b/githubkit/versions/ghec_v2022_11_28/types/group_0020.py index 65fb2620f..94bb640b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0020.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0020.py @@ -9,27 +9,130 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0016 import AppPermissionsType -from .group_0019 import RepositoryType +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType -class InstallationTokenType(TypedDict): - """Installation Token +class RepositoryType(TypedDict): + """Repository - Authentication token for a GitHub App installed on a user or org. + A repository on GitHub. """ - token: str - expires_at: str - permissions: NotRequired[AppPermissionsType] - repository_selection: NotRequired[Literal["all", "selected"]] - repositories: NotRequired[list[RepositoryType]] - single_file: NotRequired[str] - has_multiple_single_files: NotRequired[bool] - single_file_paths: NotRequired[list[str]] + id: int + node_id: str + name: str + full_name: str + license_: Union[None, LicenseSimpleType] + forks: int + permissions: NotRequired[RepositoryPropPermissionsType] + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + has_discussions: NotRequired[bool] + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + open_issues: int + watchers: int + master_branch: NotRequired[str] + starred_at: NotRequired[str] + anonymous_access_enabled: NotRequired[bool] -__all__ = ("InstallationTokenType",) +class RepositoryPropPermissionsType(TypedDict): + """RepositoryPropPermissions""" + + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + + +__all__ = ( + "RepositoryPropPermissionsType", + "RepositoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0021.py b/githubkit/versions/ghec_v2022_11_28/types/group_0021.py index fcaa9a0bd..4a84235a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0021.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0021.py @@ -9,23 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0016 import AppPermissionsType +from .group_0017 import AppPermissionsType +from .group_0020 import RepositoryType -class ScopedInstallationType(TypedDict): - """Scoped Installation""" +class InstallationTokenType(TypedDict): + """Installation Token - permissions: AppPermissionsType - repository_selection: Literal["all", "selected"] - single_file_name: Union[str, None] + Authentication token for a GitHub App installed on a user or org. + """ + + token: str + expires_at: str + permissions: NotRequired[AppPermissionsType] + repository_selection: NotRequired[Literal["all", "selected"]] + repositories: NotRequired[list[RepositoryType]] + single_file: NotRequired[str] has_multiple_single_files: NotRequired[bool] single_file_paths: NotRequired[list[str]] - repositories_url: str - account: SimpleUserType -__all__ = ("ScopedInstallationType",) +__all__ = ("InstallationTokenType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0022.py b/githubkit/versions/ghec_v2022_11_28/types/group_0022.py index 2e67fac58..316ee04db 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0022.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0022.py @@ -9,46 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0021 import ScopedInstallationType +from .group_0003 import SimpleUserType +from .group_0017 import AppPermissionsType -class AuthorizationType(TypedDict): - """Authorization +class ScopedInstallationType(TypedDict): + """Scoped Installation""" - The authorization for an OAuth app, GitHub App, or a Personal Access Token. - """ + permissions: AppPermissionsType + repository_selection: Literal["all", "selected"] + single_file_name: Union[str, None] + has_multiple_single_files: NotRequired[bool] + single_file_paths: NotRequired[list[str]] + repositories_url: str + account: SimpleUserType - id: int - url: str - scopes: Union[list[str], None] - token: str - token_last_eight: Union[str, None] - hashed_token: Union[str, None] - app: AuthorizationPropAppType - note: Union[str, None] - note_url: Union[str, None] - updated_at: datetime - created_at: datetime - fingerprint: Union[str, None] - user: NotRequired[Union[None, SimpleUserType]] - installation: NotRequired[Union[None, ScopedInstallationType]] - expires_at: Union[datetime, None] - -class AuthorizationPropAppType(TypedDict): - """AuthorizationPropApp""" - - client_id: str - name: str - url: str - - -__all__ = ( - "AuthorizationPropAppType", - "AuthorizationType", -) +__all__ = ("ScopedInstallationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0023.py b/githubkit/versions/ghec_v2022_11_28/types/group_0023.py index 92dae5f1f..2f6e85407 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0023.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0023.py @@ -9,21 +9,46 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0022 import ScopedInstallationType -class SimpleClassroomRepositoryType(TypedDict): - """Simple Classroom Repository - A GitHub repository view for Classroom +class AuthorizationType(TypedDict): + """Authorization + + The authorization for an OAuth app, GitHub App, or a Personal Access Token. """ id: int - full_name: str - html_url: str - node_id: str - private: bool - default_branch: str - - -__all__ = ("SimpleClassroomRepositoryType",) + url: str + scopes: Union[list[str], None] + token: str + token_last_eight: Union[str, None] + hashed_token: Union[str, None] + app: AuthorizationPropAppType + note: Union[str, None] + note_url: Union[str, None] + updated_at: datetime + created_at: datetime + fingerprint: Union[str, None] + user: NotRequired[Union[None, SimpleUserType]] + installation: NotRequired[Union[None, ScopedInstallationType]] + expires_at: Union[datetime, None] + + +class AuthorizationPropAppType(TypedDict): + """AuthorizationPropApp""" + + client_id: str + name: str + url: str + + +__all__ = ( + "AuthorizationPropAppType", + "AuthorizationType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0024.py b/githubkit/versions/ghec_v2022_11_28/types/group_0024.py index 2cc2009dd..92dae5f1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0024.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0024.py @@ -9,69 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0023 import SimpleClassroomRepositoryType +class SimpleClassroomRepositoryType(TypedDict): + """Simple Classroom Repository -class ClassroomAssignmentType(TypedDict): - """Classroom Assignment - - A GitHub Classroom assignment - """ - - id: int - public_repo: bool - title: str - type: Literal["individual", "group"] - invite_link: str - invitations_enabled: bool - slug: str - students_are_repo_admins: bool - feedback_pull_requests_enabled: bool - max_teams: Union[int, None] - max_members: Union[int, None] - editor: str - accepted: int - submitted: int - passing: int - language: str - deadline: Union[datetime, None] - starter_code_repository: SimpleClassroomRepositoryType - classroom: ClassroomType - - -class ClassroomType(TypedDict): - """Classroom - - A GitHub Classroom classroom + A GitHub repository view for Classroom """ id: int - name: str - archived: bool - organization: SimpleClassroomOrganizationType - url: str - - -class SimpleClassroomOrganizationType(TypedDict): - """Organization Simple for Classroom - - A GitHub organization. - """ - - id: int - login: str - node_id: str + full_name: str html_url: str - name: Union[str, None] - avatar_url: str + node_id: str + private: bool + default_branch: str -__all__ = ( - "ClassroomAssignmentType", - "ClassroomType", - "SimpleClassroomOrganizationType", -) +__all__ = ("SimpleClassroomRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0025.py b/githubkit/versions/ghec_v2022_11_28/types/group_0025.py index 5f4b8f7f1..90777e817 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0025.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0025.py @@ -11,41 +11,13 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0023 import SimpleClassroomRepositoryType +from .group_0024 import SimpleClassroomRepositoryType -class ClassroomAcceptedAssignmentType(TypedDict): - """Classroom Accepted Assignment - - A GitHub Classroom accepted assignment - """ - - id: int - submitted: bool - passing: bool - commit_count: int - grade: str - students: list[SimpleClassroomUserType] - repository: SimpleClassroomRepositoryType - assignment: SimpleClassroomAssignmentType - - -class SimpleClassroomUserType(TypedDict): - """Simple Classroom User - - A GitHub user simplified for Classroom. - """ - - id: int - login: str - avatar_url: str - html_url: str - - -class SimpleClassroomAssignmentType(TypedDict): - """Simple Classroom Assignment +class ClassroomAssignmentType(TypedDict): + """Classroom Assignment A GitHub Classroom assignment """ @@ -59,19 +31,20 @@ class SimpleClassroomAssignmentType(TypedDict): slug: str students_are_repo_admins: bool feedback_pull_requests_enabled: bool - max_teams: NotRequired[Union[int, None]] - max_members: NotRequired[Union[int, None]] - editor: Union[str, None] + max_teams: Union[int, None] + max_members: Union[int, None] + editor: str accepted: int - submitted: NotRequired[int] + submitted: int passing: int - language: Union[str, None] + language: str deadline: Union[datetime, None] - classroom: SimpleClassroomType + starter_code_repository: SimpleClassroomRepositoryType + classroom: ClassroomType -class SimpleClassroomType(TypedDict): - """Simple Classroom +class ClassroomType(TypedDict): + """Classroom A GitHub Classroom classroom """ @@ -79,12 +52,26 @@ class SimpleClassroomType(TypedDict): id: int name: str archived: bool + organization: SimpleClassroomOrganizationType url: str +class SimpleClassroomOrganizationType(TypedDict): + """Organization Simple for Classroom + + A GitHub organization. + """ + + id: int + login: str + node_id: str + html_url: str + name: Union[str, None] + avatar_url: str + + __all__ = ( - "ClassroomAcceptedAssignmentType", - "SimpleClassroomAssignmentType", - "SimpleClassroomType", - "SimpleClassroomUserType", + "ClassroomAssignmentType", + "ClassroomType", + "SimpleClassroomOrganizationType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0026.py b/githubkit/versions/ghec_v2022_11_28/types/group_0026.py index 2099f3a61..c3d2e7494 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0026.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0026.py @@ -9,26 +9,82 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0024 import SimpleClassroomRepositoryType -class ClassroomAssignmentGradeType(TypedDict): - """Classroom Assignment Grade - Grade for a student or groups GitHub Classroom assignment +class ClassroomAcceptedAssignmentType(TypedDict): + """Classroom Accepted Assignment + + A GitHub Classroom accepted assignment + """ + + id: int + submitted: bool + passing: bool + commit_count: int + grade: str + students: list[SimpleClassroomUserType] + repository: SimpleClassroomRepositoryType + assignment: SimpleClassroomAssignmentType + + +class SimpleClassroomUserType(TypedDict): + """Simple Classroom User + + A GitHub user simplified for Classroom. + """ + + id: int + login: str + avatar_url: str + html_url: str + + +class SimpleClassroomAssignmentType(TypedDict): + """Simple Classroom Assignment + + A GitHub Classroom assignment + """ + + id: int + public_repo: bool + title: str + type: Literal["individual", "group"] + invite_link: str + invitations_enabled: bool + slug: str + students_are_repo_admins: bool + feedback_pull_requests_enabled: bool + max_teams: NotRequired[Union[int, None]] + max_members: NotRequired[Union[int, None]] + editor: Union[str, None] + accepted: int + submitted: NotRequired[int] + passing: int + language: Union[str, None] + deadline: Union[datetime, None] + classroom: SimpleClassroomType + + +class SimpleClassroomType(TypedDict): + """Simple Classroom + + A GitHub Classroom classroom """ - assignment_name: str - assignment_url: str - starter_code_url: str - github_username: str - roster_identifier: str - student_repository_name: str - student_repository_url: str - submission_timestamp: str - points_awarded: int - points_available: int - group_name: NotRequired[str] + id: int + name: str + archived: bool + url: str -__all__ = ("ClassroomAssignmentGradeType",) +__all__ = ( + "ClassroomAcceptedAssignmentType", + "SimpleClassroomAssignmentType", + "SimpleClassroomType", + "SimpleClassroomUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0027.py b/githubkit/versions/ghec_v2022_11_28/types/group_0027.py index a5f5f6b6d..2099f3a61 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0027.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0027.py @@ -9,195 +9,26 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ServerStatisticsItemsType(TypedDict): - """ServerStatisticsItems""" +class ClassroomAssignmentGradeType(TypedDict): + """Classroom Assignment Grade - server_id: NotRequired[str] - collection_date: NotRequired[str] - schema_version: NotRequired[str] - ghes_version: NotRequired[str] - host_name: NotRequired[str] - github_connect: NotRequired[ServerStatisticsItemsPropGithubConnectType] - ghe_stats: NotRequired[ServerStatisticsItemsPropGheStatsType] - dormant_users: NotRequired[ServerStatisticsItemsPropDormantUsersType] - actions_stats: NotRequired[ServerStatisticsActionsType] - packages_stats: NotRequired[ServerStatisticsPackagesType] - - -class ServerStatisticsActionsType(TypedDict): - """ServerStatisticsActions - - Actions metrics that are included in the Server Statistics payload/export from - GHES + Grade for a student or groups GitHub Classroom assignment """ - number_of_repos_using_actions: NotRequired[int] - percentage_of_repos_using_actions: NotRequired[str] - - -class ServerStatisticsItemsPropGithubConnectType(TypedDict): - """ServerStatisticsItemsPropGithubConnect""" - - features_enabled: NotRequired[list[str]] - - -class ServerStatisticsItemsPropDormantUsersType(TypedDict): - """ServerStatisticsItemsPropDormantUsers""" - - total_dormant_users: NotRequired[int] - dormancy_threshold: NotRequired[str] - - -class ServerStatisticsPackagesType(TypedDict): - """ServerStatisticsPackages - - Packages metrics that are included in the Server Statistics payload/export from - GHES - """ - - registry_enabled: NotRequired[bool] - registry_v2_enabled: NotRequired[bool] - ecosystems: NotRequired[list[ServerStatisticsPackagesPropEcosystemsItemsType]] - - -class ServerStatisticsPackagesPropEcosystemsItemsType(TypedDict): - """ServerStatisticsPackagesPropEcosystemsItems""" - - name: NotRequired[ - Literal["npm", "maven", "docker", "nuget", "rubygems", "containers"] - ] - enabled: NotRequired[Literal["TRUE", "FALSE", "READONLY"]] - published_packages_count: NotRequired[int] - private_packages_count: NotRequired[int] - public_packages_count: NotRequired[int] - internal_packages_count: NotRequired[int] - user_packages_count: NotRequired[int] - organization_packages_count: NotRequired[int] - daily_download_count: NotRequired[int] - daily_update_count: NotRequired[int] - daily_delete_count: NotRequired[int] - daily_create_count: NotRequired[int] - - -class ServerStatisticsItemsPropGheStatsType(TypedDict): - """ServerStatisticsItemsPropGheStats""" - - comments: NotRequired[ServerStatisticsItemsPropGheStatsPropCommentsType] - gists: NotRequired[ServerStatisticsItemsPropGheStatsPropGistsType] - hooks: NotRequired[ServerStatisticsItemsPropGheStatsPropHooksType] - issues: NotRequired[ServerStatisticsItemsPropGheStatsPropIssuesType] - milestones: NotRequired[ServerStatisticsItemsPropGheStatsPropMilestonesType] - orgs: NotRequired[ServerStatisticsItemsPropGheStatsPropOrgsType] - pages: NotRequired[ServerStatisticsItemsPropGheStatsPropPagesType] - pulls: NotRequired[ServerStatisticsItemsPropGheStatsPropPullsType] - repos: NotRequired[ServerStatisticsItemsPropGheStatsPropReposType] - users: NotRequired[ServerStatisticsItemsPropGheStatsPropUsersType] - - -class ServerStatisticsItemsPropGheStatsPropCommentsType(TypedDict): - """ServerStatisticsItemsPropGheStatsPropComments""" - - total_commit_comments: NotRequired[int] - total_gist_comments: NotRequired[int] - total_issue_comments: NotRequired[int] - total_pull_request_comments: NotRequired[int] - - -class ServerStatisticsItemsPropGheStatsPropGistsType(TypedDict): - """ServerStatisticsItemsPropGheStatsPropGists""" - - total_gists: NotRequired[int] - private_gists: NotRequired[int] - public_gists: NotRequired[int] - - -class ServerStatisticsItemsPropGheStatsPropHooksType(TypedDict): - """ServerStatisticsItemsPropGheStatsPropHooks""" - - total_hooks: NotRequired[int] - active_hooks: NotRequired[int] - inactive_hooks: NotRequired[int] - - -class ServerStatisticsItemsPropGheStatsPropIssuesType(TypedDict): - """ServerStatisticsItemsPropGheStatsPropIssues""" - - total_issues: NotRequired[int] - open_issues: NotRequired[int] - closed_issues: NotRequired[int] - - -class ServerStatisticsItemsPropGheStatsPropMilestonesType(TypedDict): - """ServerStatisticsItemsPropGheStatsPropMilestones""" - - total_milestones: NotRequired[int] - open_milestones: NotRequired[int] - closed_milestones: NotRequired[int] - - -class ServerStatisticsItemsPropGheStatsPropOrgsType(TypedDict): - """ServerStatisticsItemsPropGheStatsPropOrgs""" - - total_orgs: NotRequired[int] - disabled_orgs: NotRequired[int] - total_teams: NotRequired[int] - total_team_members: NotRequired[int] - - -class ServerStatisticsItemsPropGheStatsPropPagesType(TypedDict): - """ServerStatisticsItemsPropGheStatsPropPages""" - - total_pages: NotRequired[int] - - -class ServerStatisticsItemsPropGheStatsPropPullsType(TypedDict): - """ServerStatisticsItemsPropGheStatsPropPulls""" - - total_pulls: NotRequired[int] - merged_pulls: NotRequired[int] - mergeable_pulls: NotRequired[int] - unmergeable_pulls: NotRequired[int] - - -class ServerStatisticsItemsPropGheStatsPropReposType(TypedDict): - """ServerStatisticsItemsPropGheStatsPropRepos""" - - total_repos: NotRequired[int] - root_repos: NotRequired[int] - fork_repos: NotRequired[int] - org_repos: NotRequired[int] - total_pushes: NotRequired[int] - total_wikis: NotRequired[int] - - -class ServerStatisticsItemsPropGheStatsPropUsersType(TypedDict): - """ServerStatisticsItemsPropGheStatsPropUsers""" - - total_users: NotRequired[int] - admin_users: NotRequired[int] - suspended_users: NotRequired[int] + assignment_name: str + assignment_url: str + starter_code_url: str + github_username: str + roster_identifier: str + student_repository_name: str + student_repository_url: str + submission_timestamp: str + points_awarded: int + points_available: int + group_name: NotRequired[str] -__all__ = ( - "ServerStatisticsActionsType", - "ServerStatisticsItemsPropDormantUsersType", - "ServerStatisticsItemsPropGheStatsPropCommentsType", - "ServerStatisticsItemsPropGheStatsPropGistsType", - "ServerStatisticsItemsPropGheStatsPropHooksType", - "ServerStatisticsItemsPropGheStatsPropIssuesType", - "ServerStatisticsItemsPropGheStatsPropMilestonesType", - "ServerStatisticsItemsPropGheStatsPropOrgsType", - "ServerStatisticsItemsPropGheStatsPropPagesType", - "ServerStatisticsItemsPropGheStatsPropPullsType", - "ServerStatisticsItemsPropGheStatsPropReposType", - "ServerStatisticsItemsPropGheStatsPropUsersType", - "ServerStatisticsItemsPropGheStatsType", - "ServerStatisticsItemsPropGithubConnectType", - "ServerStatisticsItemsType", - "ServerStatisticsPackagesPropEcosystemsItemsType", - "ServerStatisticsPackagesType", -) +__all__ = ("ClassroomAssignmentGradeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0028.py b/githubkit/versions/ghec_v2022_11_28/types/group_0028.py index a41742c81..a5f5f6b6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0028.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0028.py @@ -9,14 +9,195 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ActionsCacheUsageOrgEnterpriseType(TypedDict): - """ActionsCacheUsageOrgEnterprise""" +class ServerStatisticsItemsType(TypedDict): + """ServerStatisticsItems""" - total_active_caches_count: int - total_active_caches_size_in_bytes: int + server_id: NotRequired[str] + collection_date: NotRequired[str] + schema_version: NotRequired[str] + ghes_version: NotRequired[str] + host_name: NotRequired[str] + github_connect: NotRequired[ServerStatisticsItemsPropGithubConnectType] + ghe_stats: NotRequired[ServerStatisticsItemsPropGheStatsType] + dormant_users: NotRequired[ServerStatisticsItemsPropDormantUsersType] + actions_stats: NotRequired[ServerStatisticsActionsType] + packages_stats: NotRequired[ServerStatisticsPackagesType] -__all__ = ("ActionsCacheUsageOrgEnterpriseType",) +class ServerStatisticsActionsType(TypedDict): + """ServerStatisticsActions + + Actions metrics that are included in the Server Statistics payload/export from + GHES + """ + + number_of_repos_using_actions: NotRequired[int] + percentage_of_repos_using_actions: NotRequired[str] + + +class ServerStatisticsItemsPropGithubConnectType(TypedDict): + """ServerStatisticsItemsPropGithubConnect""" + + features_enabled: NotRequired[list[str]] + + +class ServerStatisticsItemsPropDormantUsersType(TypedDict): + """ServerStatisticsItemsPropDormantUsers""" + + total_dormant_users: NotRequired[int] + dormancy_threshold: NotRequired[str] + + +class ServerStatisticsPackagesType(TypedDict): + """ServerStatisticsPackages + + Packages metrics that are included in the Server Statistics payload/export from + GHES + """ + + registry_enabled: NotRequired[bool] + registry_v2_enabled: NotRequired[bool] + ecosystems: NotRequired[list[ServerStatisticsPackagesPropEcosystemsItemsType]] + + +class ServerStatisticsPackagesPropEcosystemsItemsType(TypedDict): + """ServerStatisticsPackagesPropEcosystemsItems""" + + name: NotRequired[ + Literal["npm", "maven", "docker", "nuget", "rubygems", "containers"] + ] + enabled: NotRequired[Literal["TRUE", "FALSE", "READONLY"]] + published_packages_count: NotRequired[int] + private_packages_count: NotRequired[int] + public_packages_count: NotRequired[int] + internal_packages_count: NotRequired[int] + user_packages_count: NotRequired[int] + organization_packages_count: NotRequired[int] + daily_download_count: NotRequired[int] + daily_update_count: NotRequired[int] + daily_delete_count: NotRequired[int] + daily_create_count: NotRequired[int] + + +class ServerStatisticsItemsPropGheStatsType(TypedDict): + """ServerStatisticsItemsPropGheStats""" + + comments: NotRequired[ServerStatisticsItemsPropGheStatsPropCommentsType] + gists: NotRequired[ServerStatisticsItemsPropGheStatsPropGistsType] + hooks: NotRequired[ServerStatisticsItemsPropGheStatsPropHooksType] + issues: NotRequired[ServerStatisticsItemsPropGheStatsPropIssuesType] + milestones: NotRequired[ServerStatisticsItemsPropGheStatsPropMilestonesType] + orgs: NotRequired[ServerStatisticsItemsPropGheStatsPropOrgsType] + pages: NotRequired[ServerStatisticsItemsPropGheStatsPropPagesType] + pulls: NotRequired[ServerStatisticsItemsPropGheStatsPropPullsType] + repos: NotRequired[ServerStatisticsItemsPropGheStatsPropReposType] + users: NotRequired[ServerStatisticsItemsPropGheStatsPropUsersType] + + +class ServerStatisticsItemsPropGheStatsPropCommentsType(TypedDict): + """ServerStatisticsItemsPropGheStatsPropComments""" + + total_commit_comments: NotRequired[int] + total_gist_comments: NotRequired[int] + total_issue_comments: NotRequired[int] + total_pull_request_comments: NotRequired[int] + + +class ServerStatisticsItemsPropGheStatsPropGistsType(TypedDict): + """ServerStatisticsItemsPropGheStatsPropGists""" + + total_gists: NotRequired[int] + private_gists: NotRequired[int] + public_gists: NotRequired[int] + + +class ServerStatisticsItemsPropGheStatsPropHooksType(TypedDict): + """ServerStatisticsItemsPropGheStatsPropHooks""" + + total_hooks: NotRequired[int] + active_hooks: NotRequired[int] + inactive_hooks: NotRequired[int] + + +class ServerStatisticsItemsPropGheStatsPropIssuesType(TypedDict): + """ServerStatisticsItemsPropGheStatsPropIssues""" + + total_issues: NotRequired[int] + open_issues: NotRequired[int] + closed_issues: NotRequired[int] + + +class ServerStatisticsItemsPropGheStatsPropMilestonesType(TypedDict): + """ServerStatisticsItemsPropGheStatsPropMilestones""" + + total_milestones: NotRequired[int] + open_milestones: NotRequired[int] + closed_milestones: NotRequired[int] + + +class ServerStatisticsItemsPropGheStatsPropOrgsType(TypedDict): + """ServerStatisticsItemsPropGheStatsPropOrgs""" + + total_orgs: NotRequired[int] + disabled_orgs: NotRequired[int] + total_teams: NotRequired[int] + total_team_members: NotRequired[int] + + +class ServerStatisticsItemsPropGheStatsPropPagesType(TypedDict): + """ServerStatisticsItemsPropGheStatsPropPages""" + + total_pages: NotRequired[int] + + +class ServerStatisticsItemsPropGheStatsPropPullsType(TypedDict): + """ServerStatisticsItemsPropGheStatsPropPulls""" + + total_pulls: NotRequired[int] + merged_pulls: NotRequired[int] + mergeable_pulls: NotRequired[int] + unmergeable_pulls: NotRequired[int] + + +class ServerStatisticsItemsPropGheStatsPropReposType(TypedDict): + """ServerStatisticsItemsPropGheStatsPropRepos""" + + total_repos: NotRequired[int] + root_repos: NotRequired[int] + fork_repos: NotRequired[int] + org_repos: NotRequired[int] + total_pushes: NotRequired[int] + total_wikis: NotRequired[int] + + +class ServerStatisticsItemsPropGheStatsPropUsersType(TypedDict): + """ServerStatisticsItemsPropGheStatsPropUsers""" + + total_users: NotRequired[int] + admin_users: NotRequired[int] + suspended_users: NotRequired[int] + + +__all__ = ( + "ServerStatisticsActionsType", + "ServerStatisticsItemsPropDormantUsersType", + "ServerStatisticsItemsPropGheStatsPropCommentsType", + "ServerStatisticsItemsPropGheStatsPropGistsType", + "ServerStatisticsItemsPropGheStatsPropHooksType", + "ServerStatisticsItemsPropGheStatsPropIssuesType", + "ServerStatisticsItemsPropGheStatsPropMilestonesType", + "ServerStatisticsItemsPropGheStatsPropOrgsType", + "ServerStatisticsItemsPropGheStatsPropPagesType", + "ServerStatisticsItemsPropGheStatsPropPullsType", + "ServerStatisticsItemsPropGheStatsPropReposType", + "ServerStatisticsItemsPropGheStatsPropUsersType", + "ServerStatisticsItemsPropGheStatsType", + "ServerStatisticsItemsPropGithubConnectType", + "ServerStatisticsItemsType", + "ServerStatisticsPackagesPropEcosystemsItemsType", + "ServerStatisticsPackagesType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0029.py b/githubkit/versions/ghec_v2022_11_28/types/group_0029.py index 7ce502a64..a41742c81 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0029.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0029.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ActionsOidcCustomIssuerPolicyForEnterpriseType(TypedDict): - """ActionsOidcCustomIssuerPolicyForEnterprise""" +class ActionsCacheUsageOrgEnterpriseType(TypedDict): + """ActionsCacheUsageOrgEnterprise""" - include_enterprise_slug: NotRequired[bool] + total_active_caches_count: int + total_active_caches_size_in_bytes: int -__all__ = ("ActionsOidcCustomIssuerPolicyForEnterpriseType",) +__all__ = ("ActionsCacheUsageOrgEnterpriseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0030.py b/githubkit/versions/ghec_v2022_11_28/types/group_0030.py index 0da43bdee..a22762330 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0030.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0030.py @@ -9,17 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ActionsEnterprisePermissionsType(TypedDict): - """ActionsEnterprisePermissions""" +class ActionsHostedRunnerMachineSpecType(TypedDict): + """Github-owned VM details. - enabled_organizations: Literal["all", "none", "selected"] - selected_organizations_url: NotRequired[str] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] + Provides details of a particular machine spec. + """ + id: str + cpu_cores: int + memory_gb: int + storage_gb: int -__all__ = ("ActionsEnterprisePermissionsType",) + +__all__ = ("ActionsHostedRunnerMachineSpecType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0031.py b/githubkit/versions/ghec_v2022_11_28/types/group_0031.py index 4b96a4953..1277fe201 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0031.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0031.py @@ -9,28 +9,58 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0030 import ActionsHostedRunnerMachineSpecType -class OrganizationSimpleType(TypedDict): - """Organization Simple - A GitHub organization. +class ActionsHostedRunnerType(TypedDict): + """GitHub-hosted hosted runner + + A Github-hosted hosted runner. """ - login: str id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - - -__all__ = ("OrganizationSimpleType",) + name: str + runner_group_id: NotRequired[int] + image_details: Union[None, ActionsHostedRunnerPoolImageType] + machine_size_details: ActionsHostedRunnerMachineSpecType + status: Literal["Ready", "Provisioning", "Shutdown", "Deleting", "Stuck"] + platform: str + maximum_runners: NotRequired[int] + public_ip_enabled: bool + public_ips: NotRequired[list[PublicIpType]] + last_active_on: NotRequired[Union[datetime, None]] + + +class ActionsHostedRunnerPoolImageType(TypedDict): + """GitHub-hosted runner image details. + + Provides details of a hosted runner image + """ + + id: str + size_gb: int + display_name: str + source: Literal["github", "partner", "custom"] + version: str + + +class PublicIpType(TypedDict): + """Public IP for a GitHub-hosted larger runners. + + Provides details of Public IP for a GitHub-hosted larger runners + """ + + enabled: NotRequired[bool] + prefix: NotRequired[str] + length: NotRequired[int] + + +__all__ = ( + "ActionsHostedRunnerPoolImageType", + "ActionsHostedRunnerType", + "PublicIpType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0032.py b/githubkit/versions/ghec_v2022_11_28/types/group_0032.py index 7abe76199..8840d8ecc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0032.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0032.py @@ -9,15 +9,21 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class SelectedActionsType(TypedDict): - """SelectedActions""" +class ActionsHostedRunnerImageType(TypedDict): + """GitHub-hosted runner image details. - github_owned_allowed: NotRequired[bool] - verified_allowed: NotRequired[bool] - patterns_allowed: NotRequired[list[str]] + Provides details of a hosted runner image + """ + id: str + platform: str + size_gb: int + display_name: str + source: Literal["github", "partner", "custom"] -__all__ = ("SelectedActionsType",) + +__all__ = ("ActionsHostedRunnerImageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0033.py b/githubkit/versions/ghec_v2022_11_28/types/group_0033.py index 87512f917..7fbef21bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0033.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0033.py @@ -9,15 +9,26 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ActionsGetDefaultWorkflowPermissionsType(TypedDict): - """ActionsGetDefaultWorkflowPermissions""" +class ActionsHostedRunnerLimitsType(TypedDict): + """ActionsHostedRunnerLimits""" - default_workflow_permissions: Literal["read", "write"] - can_approve_pull_request_reviews: bool + public_ips: ActionsHostedRunnerLimitsPropPublicIpsType -__all__ = ("ActionsGetDefaultWorkflowPermissionsType",) +class ActionsHostedRunnerLimitsPropPublicIpsType(TypedDict): + """Static public IP Limits for GitHub-hosted Hosted Runners. + + Provides details of static public IP limits for GitHub-hosted Hosted Runners + """ + + maximum: int + current_usage: int + + +__all__ = ( + "ActionsHostedRunnerLimitsPropPublicIpsType", + "ActionsHostedRunnerLimitsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0034.py b/githubkit/versions/ghec_v2022_11_28/types/group_0034.py index 0e0c798a4..7ce502a64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0034.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0034.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ActionsSetDefaultWorkflowPermissionsType(TypedDict): - """ActionsSetDefaultWorkflowPermissions""" +class ActionsOidcCustomIssuerPolicyForEnterpriseType(TypedDict): + """ActionsOidcCustomIssuerPolicyForEnterprise""" - default_workflow_permissions: NotRequired[Literal["read", "write"]] - can_approve_pull_request_reviews: NotRequired[bool] + include_enterprise_slug: NotRequired[bool] -__all__ = ("ActionsSetDefaultWorkflowPermissionsType",) +__all__ = ("ActionsOidcCustomIssuerPolicyForEnterpriseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0035.py b/githubkit/versions/ghec_v2022_11_28/types/group_0035.py index aab282720..0da43bdee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0035.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0035.py @@ -13,15 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class RunnerLabelType(TypedDict): - """Self hosted runner label +class ActionsEnterprisePermissionsType(TypedDict): + """ActionsEnterprisePermissions""" - A label for a self hosted runner - """ + enabled_organizations: Literal["all", "none", "selected"] + selected_organizations_url: NotRequired[str] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] - id: NotRequired[int] - name: str - type: NotRequired[Literal["read-only", "custom"]] - -__all__ = ("RunnerLabelType",) +__all__ = ("ActionsEnterprisePermissionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0036.py b/githubkit/versions/ghec_v2022_11_28/types/group_0036.py index 7bc2742ca..4b96a4953 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0036.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0036.py @@ -9,24 +9,28 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0035 import RunnerLabelType +class OrganizationSimpleType(TypedDict): + """Organization Simple -class RunnerType(TypedDict): - """Self hosted runners - - A self hosted runner + A GitHub organization. """ + login: str id: int - runner_group_id: NotRequired[int] - name: str - os: str - status: str - busy: bool - labels: list[RunnerLabelType] - - -__all__ = ("RunnerType",) + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + + +__all__ = ("OrganizationSimpleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0037.py b/githubkit/versions/ghec_v2022_11_28/types/group_0037.py index c8ef6e908..7abe76199 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0037.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0037.py @@ -12,18 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class RunnerApplicationType(TypedDict): - """Runner Application +class SelectedActionsType(TypedDict): + """SelectedActions""" - Runner Application - """ + github_owned_allowed: NotRequired[bool] + verified_allowed: NotRequired[bool] + patterns_allowed: NotRequired[list[str]] - os: str - architecture: str - download_url: str - filename: str - temp_download_token: NotRequired[str] - sha256_checksum: NotRequired[str] - -__all__ = ("RunnerApplicationType",) +__all__ = ("SelectedActionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0038.py b/githubkit/versions/ghec_v2022_11_28/types/group_0038.py index cc0caf900..87512f917 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0038.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0038.py @@ -9,36 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_0019 import RepositoryType +class ActionsGetDefaultWorkflowPermissionsType(TypedDict): + """ActionsGetDefaultWorkflowPermissions""" -class AuthenticationTokenType(TypedDict): - """Authentication Token + default_workflow_permissions: Literal["read", "write"] + can_approve_pull_request_reviews: bool - Authentication Token - """ - token: str - expires_at: datetime - permissions: NotRequired[AuthenticationTokenPropPermissionsType] - repositories: NotRequired[list[RepositoryType]] - single_file: NotRequired[Union[str, None]] - repository_selection: NotRequired[Literal["all", "selected"]] - - -class AuthenticationTokenPropPermissionsType(TypedDict): - """AuthenticationTokenPropPermissions - - Examples: - {'issues': 'read', 'deployments': 'write'} - """ - - -__all__ = ( - "AuthenticationTokenPropPermissionsType", - "AuthenticationTokenType", -) +__all__ = ("ActionsGetDefaultWorkflowPermissionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0039.py b/githubkit/versions/ghec_v2022_11_28/types/group_0039.py index c672f9618..0e0c798a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0039.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0039.py @@ -9,20 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class AnnouncementBannerType(TypedDict): - """Announcement Banner +class ActionsSetDefaultWorkflowPermissionsType(TypedDict): + """ActionsSetDefaultWorkflowPermissions""" - Announcement at either the repository, organization, or enterprise level - """ + default_workflow_permissions: NotRequired[Literal["read", "write"]] + can_approve_pull_request_reviews: NotRequired[bool] - announcement: Union[str, None] - expires_at: Union[datetime, None] - user_dismissible: Union[bool, None] - -__all__ = ("AnnouncementBannerType",) +__all__ = ("ActionsSetDefaultWorkflowPermissionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0040.py b/githubkit/versions/ghec_v2022_11_28/types/group_0040.py index fd856f379..aab282720 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0040.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0040.py @@ -9,19 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class AnnouncementType(TypedDict): - """Enterprise Announcement +class RunnerLabelType(TypedDict): + """Self hosted runner label - Enterprise global announcement + A label for a self hosted runner """ - announcement: Union[str, None] - expires_at: NotRequired[Union[datetime, None]] + id: NotRequired[int] + name: str + type: NotRequired[Literal["read-only", "custom"]] -__all__ = ("AnnouncementType",) +__all__ = ("RunnerLabelType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0041.py b/githubkit/versions/ghec_v2022_11_28/types/group_0041.py index 680fad4a9..f201975e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0041.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0041.py @@ -9,91 +9,24 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0040 import RunnerLabelType -class AuditLogEventType(TypedDict): - """AuditLogEvent""" - timestamp: NotRequired[int] - action: NotRequired[str] - active: NotRequired[bool] - active_was: NotRequired[bool] - actor: NotRequired[str] - actor_id: NotRequired[int] - actor_location: NotRequired[AuditLogEventPropActorLocationType] - data: NotRequired[AuditLogEventPropDataType] - org_id: NotRequired[int] - user_id: NotRequired[int] - business_id: NotRequired[int] - blocked_user: NotRequired[str] - business: NotRequired[str] - config: NotRequired[list[AuditLogEventPropConfigItemsType]] - config_was: NotRequired[list[AuditLogEventPropConfigWasItemsType]] - content_type: NotRequired[str] - operation_type: NotRequired[str] - created_at: NotRequired[int] - deploy_key_fingerprint: NotRequired[str] - document_id: NotRequired[str] - emoji: NotRequired[str] - events: NotRequired[list[AuditLogEventPropEventsItemsType]] - events_were: NotRequired[list[AuditLogEventPropEventsWereItemsType]] - explanation: NotRequired[str] - fingerprint: NotRequired[str] - hook_id: NotRequired[int] - limited_availability: NotRequired[bool] - message: NotRequired[str] - name: NotRequired[str] - old_user: NotRequired[str] - openssh_public_key: NotRequired[str] - org: NotRequired[str] - previous_visibility: NotRequired[str] - read_only: NotRequired[bool] - repo: NotRequired[str] - repository: NotRequired[str] - repository_public: NotRequired[bool] - target_login: NotRequired[str] - team: NotRequired[str] - transport_protocol: NotRequired[int] - transport_protocol_name: NotRequired[str] - user: NotRequired[str] - visibility: NotRequired[str] +class RunnerType(TypedDict): + """Self hosted runners + A self hosted runner + """ -class AuditLogEventPropActorLocationType(TypedDict): - """AuditLogEventPropActorLocation""" + id: int + runner_group_id: NotRequired[int] + name: str + os: str + status: str + busy: bool + labels: list[RunnerLabelType] - country_name: NotRequired[str] - -AuditLogEventPropDataType: TypeAlias = dict[str, Any] -"""AuditLogEventPropData -""" - - -class AuditLogEventPropConfigItemsType(TypedDict): - """AuditLogEventPropConfigItems""" - - -class AuditLogEventPropConfigWasItemsType(TypedDict): - """AuditLogEventPropConfigWasItems""" - - -class AuditLogEventPropEventsItemsType(TypedDict): - """AuditLogEventPropEventsItems""" - - -class AuditLogEventPropEventsWereItemsType(TypedDict): - """AuditLogEventPropEventsWereItems""" - - -__all__ = ( - "AuditLogEventPropActorLocationType", - "AuditLogEventPropConfigItemsType", - "AuditLogEventPropConfigWasItemsType", - "AuditLogEventPropDataType", - "AuditLogEventPropEventsItemsType", - "AuditLogEventPropEventsWereItemsType", - "AuditLogEventType", -) +__all__ = ("RunnerType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0042.py b/githubkit/versions/ghec_v2022_11_28/types/group_0042.py index 0c2cffcc8..c8ef6e908 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0042.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0042.py @@ -9,17 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class AuditLogStreamKeyType(TypedDict): - """stream-key +class RunnerApplicationType(TypedDict): + """Runner Application - Audit Log Streaming Public Key + Runner Application """ - key_id: str - key: str + os: str + architecture: str + download_url: str + filename: str + temp_download_token: NotRequired[str] + sha256_checksum: NotRequired[str] -__all__ = ("AuditLogStreamKeyType",) +__all__ = ("RunnerApplicationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0043.py b/githubkit/versions/ghec_v2022_11_28/types/group_0043.py index 2b6915e63..b1d20d9db 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0043.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0043.py @@ -10,20 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0020 import RepositoryType -class GetAuditLogStreamConfigsItemsType(TypedDict): - """GetAuditLogStreamConfigsItems""" - id: NotRequired[int] - stream_type: NotRequired[str] - stream_details: NotRequired[str] - enabled: NotRequired[bool] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - paused_at: NotRequired[Union[datetime, None]] +class AuthenticationTokenType(TypedDict): + """Authentication Token + Authentication Token + """ -__all__ = ("GetAuditLogStreamConfigsItemsType",) + token: str + expires_at: datetime + permissions: NotRequired[AuthenticationTokenPropPermissionsType] + repositories: NotRequired[list[RepositoryType]] + single_file: NotRequired[Union[str, None]] + repository_selection: NotRequired[Literal["all", "selected"]] + + +class AuthenticationTokenPropPermissionsType(TypedDict): + """AuthenticationTokenPropPermissions + + Examples: + {'issues': 'read', 'deployments': 'write'} + """ + + +__all__ = ( + "AuthenticationTokenPropPermissionsType", + "AuthenticationTokenType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0044.py b/githubkit/versions/ghec_v2022_11_28/types/group_0044.py index 20a064a72..c672f9618 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0044.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0044.py @@ -9,59 +9,20 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import TypedDict -class AzureBlobConfigType(TypedDict): - """AzureBlobConfig +class AnnouncementBannerType(TypedDict): + """Announcement Banner - Azure Blob Config for audit log streaming configuration. + Announcement at either the repository, organization, or enterprise level """ - key_id: str - encrypted_sas_url: str + announcement: Union[str, None] + expires_at: Union[datetime, None] + user_dismissible: Union[bool, None] -class AzureHubConfigType(TypedDict): - """AzureHubConfig - - Azure Event Hubs Config for audit log streaming configuration. - """ - - name: str - encrypted_connstring: str - key_id: str - - -class AmazonS3AccessKeysConfigType(TypedDict): - """AmazonS3AccessKeysConfig - - Amazon S3 Access Keys Config for audit log streaming configuration. - """ - - bucket: str - region: str - key_id: str - authentication_type: Literal["access_keys"] - encrypted_secret_key: str - encrypted_access_key_id: str - - -class GoogleCloudConfigType(TypedDict): - """GoogleCloudConfig - - Google Cloud Config for audit log streaming configuration. - """ - - bucket: str - key_id: str - encrypted_json_credentials: str - - -__all__ = ( - "AmazonS3AccessKeysConfigType", - "AzureBlobConfigType", - "AzureHubConfigType", - "GoogleCloudConfigType", -) +__all__ = ("AnnouncementBannerType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0045.py b/githubkit/versions/ghec_v2022_11_28/types/group_0045.py index 32193aa1a..fd856f379 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0045.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0045.py @@ -9,37 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -class AmazonS3OidcConfigType(TypedDict): - """AmazonS3OIDCConfig +class AnnouncementType(TypedDict): + """Enterprise Announcement - Amazon S3 OIDC Config for audit log streaming configuration. + Enterprise global announcement """ - bucket: str - region: str - key_id: str - authentication_type: Literal["oidc"] - arn_role: str + announcement: Union[str, None] + expires_at: NotRequired[Union[datetime, None]] -class SplunkConfigType(TypedDict): - """SplunkConfig - - Splunk Config for Audit Log Stream Configuration - """ - - domain: str - port: int - key_id: str - encrypted_token: str - ssl_verify: bool - - -__all__ = ( - "AmazonS3OidcConfigType", - "SplunkConfigType", -) +__all__ = ("AnnouncementType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0046.py b/githubkit/versions/ghec_v2022_11_28/types/group_0046.py index b984c3187..680fad4a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0046.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0046.py @@ -9,19 +9,91 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class DatadogConfigType(TypedDict): - """DatadogConfig +class AuditLogEventType(TypedDict): + """AuditLogEvent""" - Datadog Config for audit log streaming configuration. - """ + timestamp: NotRequired[int] + action: NotRequired[str] + active: NotRequired[bool] + active_was: NotRequired[bool] + actor: NotRequired[str] + actor_id: NotRequired[int] + actor_location: NotRequired[AuditLogEventPropActorLocationType] + data: NotRequired[AuditLogEventPropDataType] + org_id: NotRequired[int] + user_id: NotRequired[int] + business_id: NotRequired[int] + blocked_user: NotRequired[str] + business: NotRequired[str] + config: NotRequired[list[AuditLogEventPropConfigItemsType]] + config_was: NotRequired[list[AuditLogEventPropConfigWasItemsType]] + content_type: NotRequired[str] + operation_type: NotRequired[str] + created_at: NotRequired[int] + deploy_key_fingerprint: NotRequired[str] + document_id: NotRequired[str] + emoji: NotRequired[str] + events: NotRequired[list[AuditLogEventPropEventsItemsType]] + events_were: NotRequired[list[AuditLogEventPropEventsWereItemsType]] + explanation: NotRequired[str] + fingerprint: NotRequired[str] + hook_id: NotRequired[int] + limited_availability: NotRequired[bool] + message: NotRequired[str] + name: NotRequired[str] + old_user: NotRequired[str] + openssh_public_key: NotRequired[str] + org: NotRequired[str] + previous_visibility: NotRequired[str] + read_only: NotRequired[bool] + repo: NotRequired[str] + repository: NotRequired[str] + repository_public: NotRequired[bool] + target_login: NotRequired[str] + team: NotRequired[str] + transport_protocol: NotRequired[int] + transport_protocol_name: NotRequired[str] + user: NotRequired[str] + visibility: NotRequired[str] - encrypted_token: str - site: Literal["US", "US3", "US5", "EU1", "US1-FED", "AP1"] - key_id: str +class AuditLogEventPropActorLocationType(TypedDict): + """AuditLogEventPropActorLocation""" -__all__ = ("DatadogConfigType",) + country_name: NotRequired[str] + + +AuditLogEventPropDataType: TypeAlias = dict[str, Any] +"""AuditLogEventPropData +""" + + +class AuditLogEventPropConfigItemsType(TypedDict): + """AuditLogEventPropConfigItems""" + + +class AuditLogEventPropConfigWasItemsType(TypedDict): + """AuditLogEventPropConfigWasItems""" + + +class AuditLogEventPropEventsItemsType(TypedDict): + """AuditLogEventPropEventsItems""" + + +class AuditLogEventPropEventsWereItemsType(TypedDict): + """AuditLogEventPropEventsWereItems""" + + +__all__ = ( + "AuditLogEventPropActorLocationType", + "AuditLogEventPropConfigItemsType", + "AuditLogEventPropConfigWasItemsType", + "AuditLogEventPropDataType", + "AuditLogEventPropEventsItemsType", + "AuditLogEventPropEventsWereItemsType", + "AuditLogEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0047.py b/githubkit/versions/ghec_v2022_11_28/types/group_0047.py index a34fe54b2..0c2cffcc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0047.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0047.py @@ -9,24 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class GetAuditLogStreamConfigType(TypedDict): - """Get an audit log streaming configuration +class AuditLogStreamKeyType(TypedDict): + """stream-key - Get an audit log streaming configuration for an enterprise. + Audit Log Streaming Public Key """ - id: int - stream_type: str - stream_details: str - enabled: bool - created_at: datetime - updated_at: datetime - paused_at: NotRequired[Union[datetime, None]] + key_id: str + key: str -__all__ = ("GetAuditLogStreamConfigType",) +__all__ = ("AuditLogStreamKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0048.py b/githubkit/versions/ghec_v2022_11_28/types/group_0048.py index 3319f338b..2b6915e63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0048.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0048.py @@ -9,24 +9,21 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -class CodeScanningAlertRuleSummaryType(TypedDict): - """CodeScanningAlertRuleSummary""" +class GetAuditLogStreamConfigsItemsType(TypedDict): + """GetAuditLogStreamConfigsItems""" - id: NotRequired[Union[str, None]] - name: NotRequired[str] - severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] - security_severity_level: NotRequired[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] - description: NotRequired[str] - full_description: NotRequired[str] - tags: NotRequired[Union[list[str], None]] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] + id: NotRequired[int] + stream_type: NotRequired[str] + stream_details: NotRequired[str] + enabled: NotRequired[bool] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + paused_at: NotRequired[Union[datetime, None]] -__all__ = ("CodeScanningAlertRuleSummaryType",) +__all__ = ("GetAuditLogStreamConfigsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0049.py b/githubkit/versions/ghec_v2022_11_28/types/group_0049.py index 33e4a93fd..20a064a72 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0049.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0049.py @@ -9,16 +9,59 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class CodeScanningAnalysisToolType(TypedDict): - """CodeScanningAnalysisTool""" +class AzureBlobConfigType(TypedDict): + """AzureBlobConfig - name: NotRequired[str] - version: NotRequired[Union[str, None]] - guid: NotRequired[Union[str, None]] + Azure Blob Config for audit log streaming configuration. + """ + key_id: str + encrypted_sas_url: str -__all__ = ("CodeScanningAnalysisToolType",) + +class AzureHubConfigType(TypedDict): + """AzureHubConfig + + Azure Event Hubs Config for audit log streaming configuration. + """ + + name: str + encrypted_connstring: str + key_id: str + + +class AmazonS3AccessKeysConfigType(TypedDict): + """AmazonS3AccessKeysConfig + + Amazon S3 Access Keys Config for audit log streaming configuration. + """ + + bucket: str + region: str + key_id: str + authentication_type: Literal["access_keys"] + encrypted_secret_key: str + encrypted_access_key_id: str + + +class GoogleCloudConfigType(TypedDict): + """GoogleCloudConfig + + Google Cloud Config for audit log streaming configuration. + """ + + bucket: str + key_id: str + encrypted_json_credentials: str + + +__all__ = ( + "AmazonS3AccessKeysConfigType", + "AzureBlobConfigType", + "AzureHubConfigType", + "GoogleCloudConfigType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0050.py b/githubkit/versions/ghec_v2022_11_28/types/group_0050.py index dae11d059..32193aa1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0050.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0050.py @@ -9,48 +9,37 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class CodeScanningAlertInstanceType(TypedDict): - """CodeScanningAlertInstance""" +class AmazonS3OidcConfigType(TypedDict): + """AmazonS3OIDCConfig - ref: NotRequired[str] - analysis_key: NotRequired[str] - environment: NotRequired[str] - category: NotRequired[str] - state: NotRequired[Union[None, Literal["open", "dismissed", "fixed"]]] - commit_sha: NotRequired[str] - message: NotRequired[CodeScanningAlertInstancePropMessageType] - location: NotRequired[CodeScanningAlertLocationType] - html_url: NotRequired[str] - classifications: NotRequired[ - list[Union[None, Literal["source", "generated", "test", "library"]]] - ] - - -class CodeScanningAlertLocationType(TypedDict): - """CodeScanningAlertLocation - - Describe a region within a file for the alert. + Amazon S3 OIDC Config for audit log streaming configuration. """ - path: NotRequired[str] - start_line: NotRequired[int] - end_line: NotRequired[int] - start_column: NotRequired[int] - end_column: NotRequired[int] + bucket: str + region: str + key_id: str + authentication_type: Literal["oidc"] + arn_role: str -class CodeScanningAlertInstancePropMessageType(TypedDict): - """CodeScanningAlertInstancePropMessage""" +class SplunkConfigType(TypedDict): + """SplunkConfig + + Splunk Config for Audit Log Stream Configuration + """ - text: NotRequired[str] + domain: str + port: int + key_id: str + encrypted_token: str + ssl_verify: bool __all__ = ( - "CodeScanningAlertInstancePropMessageType", - "CodeScanningAlertInstanceType", - "CodeScanningAlertLocationType", + "AmazonS3OidcConfigType", + "SplunkConfigType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0051.py b/githubkit/versions/ghec_v2022_11_28/types/group_0051.py index e7e8d4057..b984c3187 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0051.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0051.py @@ -9,64 +9,19 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +class DatadogConfigType(TypedDict): + """DatadogConfig -class SimpleRepositoryType(TypedDict): - """Simple Repository - - A GitHub repository. + Datadog Config for audit log streaming configuration. """ - id: int - node_id: str - name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - hooks_url: str + encrypted_token: str + site: Literal["US", "US3", "US5", "EU1", "US1-FED", "AP1"] + key_id: str -__all__ = ("SimpleRepositoryType",) +__all__ = ("DatadogConfigType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0052.py b/githubkit/versions/ghec_v2022_11_28/types/group_0052.py index 46721f8f6..a34fe54b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0052.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0052.py @@ -10,37 +10,23 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0048 import CodeScanningAlertRuleSummaryType -from .group_0049 import CodeScanningAnalysisToolType -from .group_0050 import CodeScanningAlertInstanceType -from .group_0051 import SimpleRepositoryType +class GetAuditLogStreamConfigType(TypedDict): + """Get an audit log streaming configuration -class CodeScanningOrganizationAlertItemsType(TypedDict): - """CodeScanningOrganizationAlertItems""" + Get an audit log streaming configuration for an enterprise. + """ - number: int + id: int + stream_type: str + stream_details: str + enabled: bool created_at: datetime - updated_at: NotRequired[datetime] - url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - repository: SimpleRepositoryType - - -__all__ = ("CodeScanningOrganizationAlertItemsType",) + updated_at: datetime + paused_at: NotRequired[Union[datetime, None]] + + +__all__ = ("GetAuditLogStreamConfigType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0053.py b/githubkit/versions/ghec_v2022_11_28/types/group_0053.py index 5fd1c90aa..3319f338b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0053.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0053.py @@ -9,110 +9,24 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeSecurityConfigurationType(TypedDict): - """CodeSecurityConfiguration +class CodeScanningAlertRuleSummaryType(TypedDict): + """CodeScanningAlertRuleSummary""" - A code security configuration - """ - - id: NotRequired[int] + id: NotRequired[Union[str, None]] name: NotRequired[str] - target_type: NotRequired[Literal["global", "organization", "enterprise"]] - description: NotRequired[str] - advanced_security: NotRequired[Literal["enabled", "disabled"]] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType, None] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType + severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] + security_severity_level: NotRequired[ + Union[None, Literal["low", "medium", "high", "critical"]] ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - 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] - updated_at: NotRequired[datetime] - - -class CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -class CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType(TypedDict): - """CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions - - Feature options for code scanning default setup - """ - - runner_type: NotRequired[Union[None, Literal["standard", "labeled", "not_set"]]] - runner_label: NotRequired[Union[str, None]] - - -class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType(TypedDict): - """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: NotRequired[ - list[ - CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType - ] - ] - - -class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( - TypedDict -): - """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersIt - ems - """ - - reviewer_id: int - reviewer_type: Literal["TEAM", "ROLE"] + description: NotRequired[str] + full_description: NotRequired[str] + tags: NotRequired[Union[list[str], None]] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] -__all__ = ( - "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType", - "CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType", - "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType", - "CodeSecurityConfigurationType", -) +__all__ = ("CodeScanningAlertRuleSummaryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0054.py b/githubkit/versions/ghec_v2022_11_28/types/group_0054.py index 73c7a68ac..33e4a93fd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0054.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0054.py @@ -9,18 +9,16 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class CodeScanningDefaultSetupOptionsType(TypedDict): - """CodeScanningDefaultSetupOptions +class CodeScanningAnalysisToolType(TypedDict): + """CodeScanningAnalysisTool""" - Feature options for code scanning default setup - """ + name: NotRequired[str] + version: NotRequired[Union[str, None]] + guid: NotRequired[Union[str, None]] - runner_type: NotRequired[Literal["standard", "labeled", "not_set"]] - runner_label: NotRequired[Union[str, None]] - -__all__ = ("CodeScanningDefaultSetupOptionsType",) +__all__ = ("CodeScanningAnalysisToolType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0055.py b/githubkit/versions/ghec_v2022_11_28/types/group_0055.py index 3d1e7d39e..dae11d059 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0055.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0055.py @@ -9,17 +9,48 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0053 import CodeSecurityConfigurationType +class CodeScanningAlertInstanceType(TypedDict): + """CodeScanningAlertInstance""" -class CodeSecurityDefaultConfigurationsItemsType(TypedDict): - """CodeSecurityDefaultConfigurationsItems""" + ref: NotRequired[str] + analysis_key: NotRequired[str] + environment: NotRequired[str] + category: NotRequired[str] + state: NotRequired[Union[None, Literal["open", "dismissed", "fixed"]]] + commit_sha: NotRequired[str] + message: NotRequired[CodeScanningAlertInstancePropMessageType] + location: NotRequired[CodeScanningAlertLocationType] + html_url: NotRequired[str] + classifications: NotRequired[ + list[Union[None, Literal["source", "generated", "test", "library"]]] + ] - default_for_new_repos: NotRequired[Literal["public", "private_and_internal", "all"]] - configuration: NotRequired[CodeSecurityConfigurationType] +class CodeScanningAlertLocationType(TypedDict): + """CodeScanningAlertLocation -__all__ = ("CodeSecurityDefaultConfigurationsItemsType",) + Describe a region within a file for the alert. + """ + + path: NotRequired[str] + start_line: NotRequired[int] + end_line: NotRequired[int] + start_column: NotRequired[int] + end_column: NotRequired[int] + + +class CodeScanningAlertInstancePropMessageType(TypedDict): + """CodeScanningAlertInstancePropMessage""" + + text: NotRequired[str] + + +__all__ = ( + "CodeScanningAlertInstancePropMessageType", + "CodeScanningAlertInstanceType", + "CodeScanningAlertLocationType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0056.py b/githubkit/versions/ghec_v2022_11_28/types/group_0056.py index 709c7d898..2df06fbc7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0056.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0056.py @@ -9,31 +9,64 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0051 import SimpleRepositoryType +from .group_0003 import SimpleUserType -class CodeSecurityConfigurationRepositoriesType(TypedDict): - """CodeSecurityConfigurationRepositories +class SimpleRepositoryType(TypedDict): + """Simple Repository - Repositories associated with a code security configuration and attachment status + A GitHub repository. """ - status: NotRequired[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] - repository: NotRequired[SimpleRepositoryType] - - -__all__ = ("CodeSecurityConfigurationRepositoriesType",) + id: int + node_id: str + name: str + full_name: str + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + hooks_url: str + + +__all__ = ("SimpleRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0057.py b/githubkit/versions/ghec_v2022_11_28/types/group_0057.py index e74a5649f..b723a4827 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0057.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0057.py @@ -9,23 +9,38 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class EnterpriseSecurityAnalysisSettingsType(TypedDict): - """Enterprise Security Analysis Settings""" - - advanced_security_enabled_for_new_repositories: bool - advanced_security_enabled_for_new_user_namespace_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: bool - secret_scanning_enabled_for_new_repositories: bool - secret_scanning_push_protection_enabled_for_new_repositories: bool - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - secret_scanning_non_provider_patterns_enabled_for_new_repositories: NotRequired[ - bool +from .group_0003 import SimpleUserType +from .group_0053 import CodeScanningAlertRuleSummaryType +from .group_0054 import CodeScanningAnalysisToolType +from .group_0055 import CodeScanningAlertInstanceType +from .group_0056 import SimpleRepositoryType + + +class CodeScanningOrganizationAlertItemsType(TypedDict): + """CodeScanningOrganizationAlertItems""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] ] - secret_scanning_validity_checks_enabled: NotRequired[bool] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + repository: SimpleRepositoryType -__all__ = ("EnterpriseSecurityAnalysisSettingsType",) +__all__ = ("CodeScanningOrganizationAlertItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0058.py b/githubkit/versions/ghec_v2022_11_28/types/group_0058.py index 8192fa267..5fd1c90aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0058.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0058.py @@ -9,45 +9,110 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class GetConsumedLicensesType(TypedDict): - """Enterprise Consumed Licenses +class CodeSecurityConfigurationType(TypedDict): + """CodeSecurityConfiguration - A breakdown of the licenses consumed by an enterprise. + A code security configuration """ - total_seats_consumed: NotRequired[int] - total_seats_purchased: NotRequired[int] - users: NotRequired[list[GetConsumedLicensesPropUsersItemsType]] - - -class GetConsumedLicensesPropUsersItemsType(TypedDict): - """GetConsumedLicensesPropUsersItems""" - - github_com_login: NotRequired[str] - github_com_name: NotRequired[Union[str, None]] - enterprise_server_user_ids: NotRequired[list[str]] - github_com_user: NotRequired[bool] - enterprise_server_user: NotRequired[Union[bool, None]] - visual_studio_subscription_user: NotRequired[bool] - license_type: NotRequired[str] - github_com_profile: NotRequired[Union[str, None]] - github_com_member_roles: NotRequired[list[str]] - github_com_enterprise_roles: NotRequired[list[str]] - github_com_verified_domain_emails: NotRequired[list[str]] - github_com_saml_name_id: NotRequired[Union[str, None]] - github_com_orgs_with_pending_invites: NotRequired[list[str]] - github_com_two_factor_auth: NotRequired[Union[bool, None]] - enterprise_server_emails: NotRequired[list[str]] - visual_studio_license_status: NotRequired[Union[str, None]] - visual_studio_subscription_email: NotRequired[Union[str, None]] - total_user_accounts: NotRequired[int] + id: NotRequired[int] + name: NotRequired[str] + target_type: NotRequired[Literal["global", "organization", "enterprise"]] + description: NotRequired[str] + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType, None] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + 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] + updated_at: NotRequired[datetime] + + +class CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] + + +class CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType(TypedDict): + """CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions + + Feature options for code scanning default setup + """ + + runner_type: NotRequired[Union[None, Literal["standard", "labeled", "not_set"]]] + runner_label: NotRequired[Union[str, None]] + + +class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType(TypedDict): + """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: NotRequired[ + list[ + CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType + ] + ] + + +class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( + TypedDict +): + """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersIt + ems + """ + + reviewer_id: int + reviewer_type: Literal["TEAM", "ROLE"] __all__ = ( - "GetConsumedLicensesPropUsersItemsType", - "GetConsumedLicensesType", + "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType", + "CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType", + "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", + "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType", + "CodeSecurityConfigurationType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0059.py b/githubkit/versions/ghec_v2022_11_28/types/group_0059.py index 9755ad7ef..73c7a68ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0059.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0059.py @@ -9,29 +9,18 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class TeamSimpleType(TypedDict): - """Team Simple +class CodeScanningDefaultSetupOptionsType(TypedDict): + """CodeScanningDefaultSetupOptions - Groups of organization members that gives permissions on specified repositories. + Feature options for code scanning default setup """ - id: int - node_id: str - url: str - members_url: str - name: str - description: Union[str, None] - permission: str - privacy: NotRequired[str] - notification_setting: NotRequired[str] - html_url: str - repositories_url: str - slug: str - ldap_dn: NotRequired[str] - - -__all__ = ("TeamSimpleType",) + runner_type: NotRequired[Literal["standard", "labeled", "not_set"]] + runner_label: NotRequired[Union[str, None]] + + +__all__ = ("CodeScanningDefaultSetupOptionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0060.py b/githubkit/versions/ghec_v2022_11_28/types/group_0060.py index 49fba3b9c..9a3389777 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0060.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0060.py @@ -9,45 +9,17 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0059 import TeamSimpleType +from .group_0058 import CodeSecurityConfigurationType -class TeamType(TypedDict): - """Team +class CodeSecurityDefaultConfigurationsItemsType(TypedDict): + """CodeSecurityDefaultConfigurationsItems""" - Groups of organization members that gives permissions on specified repositories. - """ + default_for_new_repos: NotRequired[Literal["public", "private_and_internal", "all"]] + configuration: NotRequired[CodeSecurityConfigurationType] - id: int - node_id: str - name: str - slug: str - description: Union[str, None] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: str - permissions: NotRequired[TeamPropPermissionsType] - url: str - html_url: str - members_url: str - repositories_url: str - parent: Union[None, TeamSimpleType] - -class TeamPropPermissionsType(TypedDict): - """TeamPropPermissions""" - - pull: bool - triage: bool - push: bool - maintain: bool - admin: bool - - -__all__ = ( - "TeamPropPermissionsType", - "TeamType", -) +__all__ = ("CodeSecurityDefaultConfigurationsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0061.py b/githubkit/versions/ghec_v2022_11_28/types/group_0061.py index c39b2e19a..7bc9d3118 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0061.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0061.py @@ -9,53 +9,31 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0031 import OrganizationSimpleType -from .group_0060 import TeamType +from .group_0056 import SimpleRepositoryType -class CopilotSeatDetailsType(TypedDict): - """Copilot Business Seat Detail +class CodeSecurityConfigurationRepositoriesType(TypedDict): + """CodeSecurityConfigurationRepositories - Information about a Copilot Business seat assignment for a user, team, or - organization. + Repositories associated with a code security configuration and attachment status """ - assignee: SimpleUserType - organization: NotRequired[Union[None, OrganizationSimpleType]] - assigning_team: NotRequired[Union[TeamType, EnterpriseTeamType, None]] - pending_cancellation_date: NotRequired[Union[date, None]] - last_activity_at: NotRequired[Union[datetime, None]] - last_activity_editor: NotRequired[Union[str, None]] - created_at: datetime - updated_at: NotRequired[datetime] - plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] - - -class EnterpriseTeamType(TypedDict): - """Enterprise Team - - Group of enterprise owners and/or members - """ - - id: int - name: str - slug: str - url: str - sync_to_organizations: str - group_id: NotRequired[Union[str, None]] - group_name: NotRequired[Union[str, None]] - html_url: str - members_url: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "CopilotSeatDetailsType", - "EnterpriseTeamType", -) + status: NotRequired[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] + ] + repository: NotRequired[SimpleRepositoryType] + + +__all__ = ("CodeSecurityConfigurationRepositoriesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0062.py b/githubkit/versions/ghec_v2022_11_28/types/group_0062.py index e92cebf2a..e74a5649f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0062.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0062.py @@ -9,192 +9,23 @@ from __future__ import annotations -from datetime import date from typing import Union from typing_extensions import NotRequired, TypedDict -class CopilotUsageMetricsDayType(TypedDict): - """Copilot Usage Metrics +class EnterpriseSecurityAnalysisSettingsType(TypedDict): + """Enterprise Security Analysis Settings""" - Copilot usage metrics for a given day. - """ - - date: date - total_active_users: NotRequired[int] - total_engaged_users: NotRequired[int] - copilot_ide_code_completions: NotRequired[ - Union[CopilotIdeCodeCompletionsType, None] - ] - copilot_ide_chat: NotRequired[Union[CopilotIdeChatType, None]] - copilot_dotcom_chat: NotRequired[Union[CopilotDotcomChatType, None]] - copilot_dotcom_pull_requests: NotRequired[ - Union[CopilotDotcomPullRequestsType, None] - ] - - -class CopilotDotcomChatType(TypedDict): - """CopilotDotcomChat - - Usage metrics for Copilot Chat in github.com - """ - - total_engaged_users: NotRequired[int] - models: NotRequired[list[CopilotDotcomChatPropModelsItemsType]] - - -class CopilotDotcomChatPropModelsItemsType(TypedDict): - """CopilotDotcomChatPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_engaged_users: NotRequired[int] - total_chats: NotRequired[int] - - -class CopilotIdeChatType(TypedDict): - """CopilotIdeChat - - Usage metrics for Copilot Chat in the IDE. - """ - - total_engaged_users: NotRequired[int] - editors: NotRequired[list[CopilotIdeChatPropEditorsItemsType]] - - -class CopilotIdeChatPropEditorsItemsType(TypedDict): - """CopilotIdeChatPropEditorsItems - - Copilot Chat metrics, for active editors. - """ - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - models: NotRequired[list[CopilotIdeChatPropEditorsItemsPropModelsItemsType]] - - -class CopilotIdeChatPropEditorsItemsPropModelsItemsType(TypedDict): - """CopilotIdeChatPropEditorsItemsPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_engaged_users: NotRequired[int] - total_chats: NotRequired[int] - total_chat_insertion_events: NotRequired[int] - total_chat_copy_events: NotRequired[int] - - -class CopilotDotcomPullRequestsType(TypedDict): - """CopilotDotcomPullRequests - - Usage metrics for Copilot for pull requests. - """ - - total_engaged_users: NotRequired[int] - repositories: NotRequired[list[CopilotDotcomPullRequestsPropRepositoriesItemsType]] - - -class CopilotDotcomPullRequestsPropRepositoriesItemsType(TypedDict): - """CopilotDotcomPullRequestsPropRepositoriesItems""" - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - models: NotRequired[ - list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType] - ] - - -class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType(TypedDict): - """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_pr_summaries_created: NotRequired[int] - total_engaged_users: NotRequired[int] - - -class CopilotIdeCodeCompletionsType(TypedDict): - """CopilotIdeCodeCompletions - - Usage metrics for Copilot editor code completions in the IDE. - """ - - total_engaged_users: NotRequired[int] - languages: NotRequired[list[CopilotIdeCodeCompletionsPropLanguagesItemsType]] - editors: NotRequired[list[CopilotIdeCodeCompletionsPropEditorsItemsType]] - - -class CopilotIdeCodeCompletionsPropLanguagesItemsType(TypedDict): - """CopilotIdeCodeCompletionsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. - """ - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - - -class CopilotIdeCodeCompletionsPropEditorsItemsType(TypedDict): - """CopilotIdeCodeCompletionsPropEditorsItems - - Copilot code completion metrics for active editors. - """ - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - models: NotRequired[ - list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType] + advanced_security_enabled_for_new_repositories: bool + advanced_security_enabled_for_new_user_namespace_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: bool + secret_scanning_enabled_for_new_repositories: bool + secret_scanning_push_protection_enabled_for_new_repositories: bool + secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] + secret_scanning_non_provider_patterns_enabled_for_new_repositories: NotRequired[ + bool ] + secret_scanning_validity_checks_enabled: NotRequired[bool] -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType(TypedDict): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_engaged_users: NotRequired[int] - languages: NotRequired[ - list[ - CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType - ] - ] - - -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType( - TypedDict -): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. - """ - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - total_code_suggestions: NotRequired[int] - total_code_acceptances: NotRequired[int] - total_code_lines_suggested: NotRequired[int] - total_code_lines_accepted: NotRequired[int] - - -__all__ = ( - "CopilotDotcomChatPropModelsItemsType", - "CopilotDotcomChatType", - "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType", - "CopilotDotcomPullRequestsPropRepositoriesItemsType", - "CopilotDotcomPullRequestsType", - "CopilotIdeChatPropEditorsItemsPropModelsItemsType", - "CopilotIdeChatPropEditorsItemsType", - "CopilotIdeChatType", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", - "CopilotIdeCodeCompletionsPropEditorsItemsType", - "CopilotIdeCodeCompletionsPropLanguagesItemsType", - "CopilotIdeCodeCompletionsType", - "CopilotUsageMetricsDayType", -) +__all__ = ("EnterpriseSecurityAnalysisSettingsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0063.py b/githubkit/versions/ghec_v2022_11_28/types/group_0063.py index db939f5dd..8192fa267 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0063.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0063.py @@ -9,45 +9,45 @@ from __future__ import annotations -from datetime import date from typing import Union from typing_extensions import NotRequired, TypedDict -class CopilotUsageMetricsType(TypedDict): - """Copilot Usage Metrics +class GetConsumedLicensesType(TypedDict): + """Enterprise Consumed Licenses - Summary of Copilot usage. + A breakdown of the licenses consumed by an enterprise. """ - day: date - total_suggestions_count: NotRequired[int] - total_acceptances_count: NotRequired[int] - total_lines_suggested: NotRequired[int] - total_lines_accepted: NotRequired[int] - total_active_users: NotRequired[int] - total_chat_acceptances: NotRequired[int] - total_chat_turns: NotRequired[int] - total_active_chat_users: NotRequired[int] - breakdown: Union[list[CopilotUsageMetricsPropBreakdownItemsType], None] - - -class CopilotUsageMetricsPropBreakdownItemsType(TypedDict): - """CopilotUsageMetricsPropBreakdownItems - - Breakdown of Copilot usage by editor for this language - """ - - language: NotRequired[str] - editor: NotRequired[str] - suggestions_count: NotRequired[int] - acceptances_count: NotRequired[int] - lines_suggested: NotRequired[int] - lines_accepted: NotRequired[int] - active_users: NotRequired[int] + total_seats_consumed: NotRequired[int] + total_seats_purchased: NotRequired[int] + users: NotRequired[list[GetConsumedLicensesPropUsersItemsType]] + + +class GetConsumedLicensesPropUsersItemsType(TypedDict): + """GetConsumedLicensesPropUsersItems""" + + github_com_login: NotRequired[str] + github_com_name: NotRequired[Union[str, None]] + enterprise_server_user_ids: NotRequired[list[str]] + github_com_user: NotRequired[bool] + enterprise_server_user: NotRequired[Union[bool, None]] + visual_studio_subscription_user: NotRequired[bool] + license_type: NotRequired[str] + github_com_profile: NotRequired[Union[str, None]] + github_com_member_roles: NotRequired[list[str]] + github_com_enterprise_roles: NotRequired[list[str]] + github_com_verified_domain_emails: NotRequired[list[str]] + github_com_saml_name_id: NotRequired[Union[str, None]] + github_com_orgs_with_pending_invites: NotRequired[list[str]] + github_com_two_factor_auth: NotRequired[Union[bool, None]] + enterprise_server_emails: NotRequired[list[str]] + visual_studio_license_status: NotRequired[Union[str, None]] + visual_studio_subscription_email: NotRequired[Union[str, None]] + total_user_accounts: NotRequired[int] __all__ = ( - "CopilotUsageMetricsPropBreakdownItemsType", - "CopilotUsageMetricsType", + "GetConsumedLicensesPropUsersItemsType", + "GetConsumedLicensesType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0064.py b/githubkit/versions/ghec_v2022_11_28/types/group_0064.py index 9ef70e81a..9755ad7ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0064.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0064.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class DependabotAlertPackageType(TypedDict): - """DependabotAlertPackage +class TeamSimpleType(TypedDict): + """Team Simple - Details for the vulnerable package. + Groups of organization members that gives permissions on specified repositories. """ - ecosystem: str + id: int + node_id: str + url: str + members_url: str name: str + description: Union[str, None] + permission: str + privacy: NotRequired[str] + notification_setting: NotRequired[str] + html_url: str + repositories_url: str + slug: str + ldap_dn: NotRequired[str] -__all__ = ("DependabotAlertPackageType",) +__all__ = ("TeamSimpleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0065.py b/githubkit/versions/ghec_v2022_11_28/types/group_0065.py index c7608414a..32e0bec2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0065.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0065.py @@ -9,36 +9,45 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0064 import DependabotAlertPackageType +from .group_0064 import TeamSimpleType -class DependabotAlertSecurityVulnerabilityType(TypedDict): - """DependabotAlertSecurityVulnerability +class TeamType(TypedDict): + """Team - Details pertaining to one vulnerable version range for the advisory. + Groups of organization members that gives permissions on specified repositories. """ - package: DependabotAlertPackageType - severity: Literal["low", "medium", "high", "critical"] - vulnerable_version_range: str - first_patched_version: Union[ - DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, None - ] + id: int + node_id: str + name: str + slug: str + description: Union[str, None] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: str + permissions: NotRequired[TeamPropPermissionsType] + url: str + html_url: str + members_url: str + repositories_url: str + parent: Union[None, TeamSimpleType] -class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType(TypedDict): - """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion +class TeamPropPermissionsType(TypedDict): + """TeamPropPermissions""" - Details pertaining to the package version that patches this vulnerability. - """ - - identifier: str + pull: bool + triage: bool + push: bool + maintain: bool + admin: bool __all__ = ( - "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", - "DependabotAlertSecurityVulnerabilityType", + "TeamPropPermissionsType", + "TeamType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0066.py b/githubkit/versions/ghec_v2022_11_28/types/group_0066.py index db3a4d748..12c65a174 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0066.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0066.py @@ -9,79 +9,53 @@ from __future__ import annotations -from datetime import datetime +from datetime import date, datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType -from .group_0065 import DependabotAlertSecurityVulnerabilityType +from .group_0003 import SimpleUserType +from .group_0036 import OrganizationSimpleType +from .group_0065 import TeamType -class DependabotAlertSecurityAdvisoryType(TypedDict): - """DependabotAlertSecurityAdvisory +class CopilotSeatDetailsType(TypedDict): + """Copilot Business Seat Detail - Details for the GitHub Security Advisory. + Information about a Copilot Business seat assignment for a user, team, or + organization. """ - ghsa_id: str - cve_id: Union[str, None] - summary: str - description: str - vulnerabilities: list[DependabotAlertSecurityVulnerabilityType] - severity: Literal["low", "medium", "high", "critical"] - cvss: DependabotAlertSecurityAdvisoryPropCvssType - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: list[DependabotAlertSecurityAdvisoryPropCwesItemsType] - identifiers: list[DependabotAlertSecurityAdvisoryPropIdentifiersItemsType] - references: list[DependabotAlertSecurityAdvisoryPropReferencesItemsType] - published_at: datetime - updated_at: datetime - withdrawn_at: Union[datetime, None] + assignee: SimpleUserType + organization: NotRequired[Union[None, OrganizationSimpleType]] + assigning_team: NotRequired[Union[TeamType, EnterpriseTeamType, None]] + pending_cancellation_date: NotRequired[Union[date, None]] + last_activity_at: NotRequired[Union[datetime, None]] + last_activity_editor: NotRequired[Union[str, None]] + created_at: datetime + updated_at: NotRequired[datetime] + plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] -class DependabotAlertSecurityAdvisoryPropCvssType(TypedDict): - """DependabotAlertSecurityAdvisoryPropCvss +class EnterpriseTeamType(TypedDict): + """Enterprise Team - Details for the advisory pertaining to the Common Vulnerability Scoring System. + Group of enterprise owners and/or members """ - score: float - vector_string: Union[str, None] - - -class DependabotAlertSecurityAdvisoryPropCwesItemsType(TypedDict): - """DependabotAlertSecurityAdvisoryPropCwesItems - - A CWE weakness assigned to the advisory. - """ - - cwe_id: str + id: int name: str - - -class DependabotAlertSecurityAdvisoryPropIdentifiersItemsType(TypedDict): - """DependabotAlertSecurityAdvisoryPropIdentifiersItems - - An advisory identifier. - """ - - type: Literal["CVE", "GHSA"] - value: str - - -class DependabotAlertSecurityAdvisoryPropReferencesItemsType(TypedDict): - """DependabotAlertSecurityAdvisoryPropReferencesItems - - A link to additional advisory information. - """ - + slug: str url: str + sync_to_organizations: str + group_id: NotRequired[Union[str, None]] + group_name: NotRequired[Union[str, None]] + html_url: str + members_url: str + created_at: datetime + updated_at: datetime __all__ = ( - "DependabotAlertSecurityAdvisoryPropCvssType", - "DependabotAlertSecurityAdvisoryPropCwesItemsType", - "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", - "DependabotAlertSecurityAdvisoryPropReferencesItemsType", - "DependabotAlertSecurityAdvisoryType", + "CopilotSeatDetailsType", + "EnterpriseTeamType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0067.py b/githubkit/versions/ghec_v2022_11_28/types/group_0067.py index e6365852b..c28ab10cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0067.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0067.py @@ -9,44 +9,192 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from datetime import date +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0051 import SimpleRepositoryType -from .group_0065 import DependabotAlertSecurityVulnerabilityType -from .group_0066 import DependabotAlertSecurityAdvisoryType -from .group_0068 import DependabotAlertWithRepositoryPropDependencyType - - -class DependabotAlertWithRepositoryType(TypedDict): - """DependabotAlertWithRepository - - A Dependabot alert. - """ - - number: int - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] - dependency: DependabotAlertWithRepositoryPropDependencyType - security_advisory: DependabotAlertSecurityAdvisoryType - security_vulnerability: DependabotAlertSecurityVulnerabilityType - url: str - html_url: str - created_at: datetime - updated_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[None, SimpleUserType] - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], + +class CopilotUsageMetricsDayType(TypedDict): + """Copilot Usage Metrics + + Copilot usage metrics for a given day. + """ + + date: date + total_active_users: NotRequired[int] + total_engaged_users: NotRequired[int] + copilot_ide_code_completions: NotRequired[ + Union[CopilotIdeCodeCompletionsType, None] ] - dismissed_comment: Union[str, None] - fixed_at: Union[datetime, None] - auto_dismissed_at: NotRequired[Union[datetime, None]] - repository: SimpleRepositoryType + copilot_ide_chat: NotRequired[Union[CopilotIdeChatType, None]] + copilot_dotcom_chat: NotRequired[Union[CopilotDotcomChatType, None]] + copilot_dotcom_pull_requests: NotRequired[ + Union[CopilotDotcomPullRequestsType, None] + ] + + +class CopilotDotcomChatType(TypedDict): + """CopilotDotcomChat + + Usage metrics for Copilot Chat in GitHub.com + """ + + total_engaged_users: NotRequired[int] + models: NotRequired[list[CopilotDotcomChatPropModelsItemsType]] + + +class CopilotDotcomChatPropModelsItemsType(TypedDict): + """CopilotDotcomChatPropModelsItems""" + + name: NotRequired[str] + is_custom_model: NotRequired[bool] + custom_model_training_date: NotRequired[Union[str, None]] + total_engaged_users: NotRequired[int] + total_chats: NotRequired[int] + + +class CopilotIdeChatType(TypedDict): + """CopilotIdeChat + + Usage metrics for Copilot Chat in the IDE. + """ + + total_engaged_users: NotRequired[int] + editors: NotRequired[list[CopilotIdeChatPropEditorsItemsType]] + + +class CopilotIdeChatPropEditorsItemsType(TypedDict): + """CopilotIdeChatPropEditorsItems + + Copilot Chat metrics, for active editors. + """ + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + models: NotRequired[list[CopilotIdeChatPropEditorsItemsPropModelsItemsType]] + + +class CopilotIdeChatPropEditorsItemsPropModelsItemsType(TypedDict): + """CopilotIdeChatPropEditorsItemsPropModelsItems""" + + name: NotRequired[str] + is_custom_model: NotRequired[bool] + custom_model_training_date: NotRequired[Union[str, None]] + total_engaged_users: NotRequired[int] + total_chats: NotRequired[int] + total_chat_insertion_events: NotRequired[int] + total_chat_copy_events: NotRequired[int] + + +class CopilotDotcomPullRequestsType(TypedDict): + """CopilotDotcomPullRequests + + Usage metrics for Copilot for pull requests. + """ + + total_engaged_users: NotRequired[int] + repositories: NotRequired[list[CopilotDotcomPullRequestsPropRepositoriesItemsType]] + + +class CopilotDotcomPullRequestsPropRepositoriesItemsType(TypedDict): + """CopilotDotcomPullRequestsPropRepositoriesItems""" + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + models: NotRequired[ + list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType] + ] + + +class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType(TypedDict): + """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" + + name: NotRequired[str] + is_custom_model: NotRequired[bool] + custom_model_training_date: NotRequired[Union[str, None]] + total_pr_summaries_created: NotRequired[int] + total_engaged_users: NotRequired[int] + + +class CopilotIdeCodeCompletionsType(TypedDict): + """CopilotIdeCodeCompletions + + Usage metrics for Copilot editor code completions in the IDE. + """ + + total_engaged_users: NotRequired[int] + languages: NotRequired[list[CopilotIdeCodeCompletionsPropLanguagesItemsType]] + editors: NotRequired[list[CopilotIdeCodeCompletionsPropEditorsItemsType]] + + +class CopilotIdeCodeCompletionsPropLanguagesItemsType(TypedDict): + """CopilotIdeCodeCompletionsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + + +class CopilotIdeCodeCompletionsPropEditorsItemsType(TypedDict): + """CopilotIdeCodeCompletionsPropEditorsItems + + Copilot code completion metrics for active editors. + """ + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + models: NotRequired[ + list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType] + ] + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType(TypedDict): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" + + name: NotRequired[str] + is_custom_model: NotRequired[bool] + custom_model_training_date: NotRequired[Union[str, None]] + total_engaged_users: NotRequired[int] + languages: NotRequired[ + list[ + CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType + ] + ] + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType( + TypedDict +): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + total_code_suggestions: NotRequired[int] + total_code_acceptances: NotRequired[int] + total_code_lines_suggested: NotRequired[int] + total_code_lines_accepted: NotRequired[int] -__all__ = ("DependabotAlertWithRepositoryType",) +__all__ = ( + "CopilotDotcomChatPropModelsItemsType", + "CopilotDotcomChatType", + "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType", + "CopilotDotcomPullRequestsPropRepositoriesItemsType", + "CopilotDotcomPullRequestsType", + "CopilotIdeChatPropEditorsItemsPropModelsItemsType", + "CopilotIdeChatPropEditorsItemsType", + "CopilotIdeChatType", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", + "CopilotIdeCodeCompletionsPropEditorsItemsType", + "CopilotIdeCodeCompletionsPropLanguagesItemsType", + "CopilotIdeCodeCompletionsType", + "CopilotUsageMetricsDayType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0068.py b/githubkit/versions/ghec_v2022_11_28/types/group_0068.py index f83257921..db939f5dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0068.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0068.py @@ -9,21 +9,45 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import date +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0064 import DependabotAlertPackageType +class CopilotUsageMetricsType(TypedDict): + """Copilot Usage Metrics -class DependabotAlertWithRepositoryPropDependencyType(TypedDict): - """DependabotAlertWithRepositoryPropDependency + Summary of Copilot usage. + """ + + day: date + total_suggestions_count: NotRequired[int] + total_acceptances_count: NotRequired[int] + total_lines_suggested: NotRequired[int] + total_lines_accepted: NotRequired[int] + total_active_users: NotRequired[int] + total_chat_acceptances: NotRequired[int] + total_chat_turns: NotRequired[int] + total_active_chat_users: NotRequired[int] + breakdown: Union[list[CopilotUsageMetricsPropBreakdownItemsType], None] + + +class CopilotUsageMetricsPropBreakdownItemsType(TypedDict): + """CopilotUsageMetricsPropBreakdownItems - Details for the vulnerable dependency. + Breakdown of Copilot usage by editor for this language """ - package: NotRequired[DependabotAlertPackageType] - manifest_path: NotRequired[str] - scope: NotRequired[Union[None, Literal["development", "runtime"]]] + language: NotRequired[str] + editor: NotRequired[str] + suggestions_count: NotRequired[int] + acceptances_count: NotRequired[int] + lines_suggested: NotRequired[int] + lines_accepted: NotRequired[int] + active_users: NotRequired[int] -__all__ = ("DependabotAlertWithRepositoryPropDependencyType",) +__all__ = ( + "CopilotUsageMetricsPropBreakdownItemsType", + "CopilotUsageMetricsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0069.py b/githubkit/versions/ghec_v2022_11_28/types/group_0069.py index 252ea9e23..9ef70e81a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0069.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0069.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class GetLicenseSyncStatusType(TypedDict): - """License Sync Status +class DependabotAlertPackageType(TypedDict): + """DependabotAlertPackage - Information about the status of a license sync job for an enterprise. + Details for the vulnerable package. """ - server_instances: NotRequired[ - list[GetLicenseSyncStatusPropServerInstancesItemsType] - ] + ecosystem: str + name: str -class GetLicenseSyncStatusPropServerInstancesItemsType(TypedDict): - """GetLicenseSyncStatusPropServerInstancesItems""" - - server_id: NotRequired[str] - hostname: NotRequired[str] - last_sync: NotRequired[GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType] - - -class GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType(TypedDict): - """GetLicenseSyncStatusPropServerInstancesItemsPropLastSync""" - - date: NotRequired[str] - status: NotRequired[str] - error: NotRequired[str] - - -__all__ = ( - "GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType", - "GetLicenseSyncStatusPropServerInstancesItemsType", - "GetLicenseSyncStatusType", -) +__all__ = ("DependabotAlertPackageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0070.py b/githubkit/versions/ghec_v2022_11_28/types/group_0070.py index 0ddc5174c..6d27bab23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0070.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0070.py @@ -10,26 +10,35 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0069 import DependabotAlertPackageType -class CustomPropertyType(TypedDict): - """Organization Custom Property - Custom property defined on an organization +class DependabotAlertSecurityVulnerabilityType(TypedDict): + """DependabotAlertSecurityVulnerability + + Details pertaining to one vulnerable version range for the advisory. """ - property_name: str - url: NotRequired[str] - source_type: NotRequired[Literal["organization", "enterprise"]] - value_type: Literal["string", "single_select", "multi_select", "true_false"] - required: NotRequired[bool] - default_value: NotRequired[Union[str, list[str], None]] - description: NotRequired[Union[str, None]] - allowed_values: NotRequired[Union[list[str], None]] - values_editable_by: NotRequired[ - Union[None, Literal["org_actors", "org_and_repo_actors"]] + package: DependabotAlertPackageType + severity: Literal["low", "medium", "high", "critical"] + vulnerable_version_range: str + first_patched_version: Union[ + DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, None ] -__all__ = ("CustomPropertyType",) +class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType(TypedDict): + """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion + + Details pertaining to the package version that patches this vulnerability. + """ + + identifier: str + + +__all__ = ( + "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", + "DependabotAlertSecurityVulnerabilityType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0071.py b/githubkit/versions/ghec_v2022_11_28/types/group_0071.py index c10beb8d0..d79ec5ae9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0071.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0071.py @@ -9,21 +9,81 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0001 import CvssSeveritiesType +from .group_0002 import SecurityAdvisoryEpssType +from .group_0070 import DependabotAlertSecurityVulnerabilityType -class CustomPropertySetPayloadType(TypedDict): - """Custom Property Set Payload - Custom property set payload +class DependabotAlertSecurityAdvisoryType(TypedDict): + """DependabotAlertSecurityAdvisory + + Details for the GitHub Security Advisory. + """ + + ghsa_id: str + cve_id: Union[str, None] + summary: str + description: str + vulnerabilities: list[DependabotAlertSecurityVulnerabilityType] + severity: Literal["low", "medium", "high", "critical"] + cvss: DependabotAlertSecurityAdvisoryPropCvssType + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + epss: NotRequired[Union[SecurityAdvisoryEpssType, None]] + cwes: list[DependabotAlertSecurityAdvisoryPropCwesItemsType] + identifiers: list[DependabotAlertSecurityAdvisoryPropIdentifiersItemsType] + references: list[DependabotAlertSecurityAdvisoryPropReferencesItemsType] + published_at: datetime + updated_at: datetime + withdrawn_at: Union[datetime, None] + + +class DependabotAlertSecurityAdvisoryPropCvssType(TypedDict): + """DependabotAlertSecurityAdvisoryPropCvss + + Details for the advisory pertaining to the Common Vulnerability Scoring System. + """ + + score: float + vector_string: Union[str, None] + + +class DependabotAlertSecurityAdvisoryPropCwesItemsType(TypedDict): + """DependabotAlertSecurityAdvisoryPropCwesItems + + A CWE weakness assigned to the advisory. + """ + + cwe_id: str + name: str + + +class DependabotAlertSecurityAdvisoryPropIdentifiersItemsType(TypedDict): + """DependabotAlertSecurityAdvisoryPropIdentifiersItems + + An advisory identifier. + """ + + type: Literal["CVE", "GHSA"] + value: str + + +class DependabotAlertSecurityAdvisoryPropReferencesItemsType(TypedDict): + """DependabotAlertSecurityAdvisoryPropReferencesItems + + A link to additional advisory information. """ - 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]] + url: str -__all__ = ("CustomPropertySetPayloadType",) +__all__ = ( + "DependabotAlertSecurityAdvisoryPropCvssType", + "DependabotAlertSecurityAdvisoryPropCwesItemsType", + "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", + "DependabotAlertSecurityAdvisoryPropReferencesItemsType", + "DependabotAlertSecurityAdvisoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0072.py b/githubkit/versions/ghec_v2022_11_28/types/group_0072.py index b18b97247..f96e80cd4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0072.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0072.py @@ -9,26 +9,44 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0056 import SimpleRepositoryType +from .group_0070 import DependabotAlertSecurityVulnerabilityType +from .group_0071 import DependabotAlertSecurityAdvisoryType +from .group_0073 import DependabotAlertWithRepositoryPropDependencyType -class RepositoryRulesetBypassActorType(TypedDict): - """Repository Ruleset Bypass Actor - An actor that can bypass rules in a ruleset +class DependabotAlertWithRepositoryType(TypedDict): + """DependabotAlertWithRepository + + A Dependabot alert. """ - actor_id: NotRequired[Union[int, None]] - actor_type: Literal[ - "Integration", - "OrganizationAdmin", - "RepositoryRole", - "Team", - "DeployKey", - "EnterpriseOwner", + number: int + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] + dependency: DependabotAlertWithRepositoryPropDependencyType + security_advisory: DependabotAlertSecurityAdvisoryType + security_vulnerability: DependabotAlertSecurityVulnerabilityType + url: str + html_url: str + created_at: datetime + updated_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[None, SimpleUserType] + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], ] - bypass_mode: NotRequired[Literal["always", "pull_request"]] + dismissed_comment: Union[str, None] + fixed_at: Union[datetime, None] + auto_dismissed_at: NotRequired[Union[datetime, None]] + repository: SimpleRepositoryType -__all__ = ("RepositoryRulesetBypassActorType",) +__all__ = ("DependabotAlertWithRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0073.py b/githubkit/versions/ghec_v2022_11_28/types/group_0073.py index 77bf58816..cab6842d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0073.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0073.py @@ -9,22 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0074 import ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, -) +from .group_0069 import DependabotAlertPackageType -class EnterpriseRulesetConditionsOrganizationNameTargetType(TypedDict): - """Repository ruleset conditions for organization names +class DependabotAlertWithRepositoryPropDependencyType(TypedDict): + """DependabotAlertWithRepositoryPropDependency - Parameters for an organization name condition + Details for the vulnerable dependency. """ - organization_name: ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType - ) + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] -__all__ = ("EnterpriseRulesetConditionsOrganizationNameTargetType",) +__all__ = ("DependabotAlertWithRepositoryPropDependencyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0074.py b/githubkit/versions/ghec_v2022_11_28/types/group_0074.py index ea24713c8..252ea9e23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0074.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0074.py @@ -12,13 +12,35 @@ from typing_extensions import NotRequired, TypedDict -class EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType( - TypedDict -): - """EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName""" +class GetLicenseSyncStatusType(TypedDict): + """License Sync Status - include: NotRequired[list[str]] - exclude: NotRequired[list[str]] + Information about the status of a license sync job for an enterprise. + """ + server_instances: NotRequired[ + list[GetLicenseSyncStatusPropServerInstancesItemsType] + ] -__all__ = ("EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType",) + +class GetLicenseSyncStatusPropServerInstancesItemsType(TypedDict): + """GetLicenseSyncStatusPropServerInstancesItems""" + + server_id: NotRequired[str] + hostname: NotRequired[str] + last_sync: NotRequired[GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType] + + +class GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType(TypedDict): + """GetLicenseSyncStatusPropServerInstancesItemsPropLastSync""" + + date: NotRequired[str] + status: NotRequired[str] + error: NotRequired[str] + + +__all__ = ( + "GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType", + "GetLicenseSyncStatusPropServerInstancesItemsType", + "GetLicenseSyncStatusType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0075.py b/githubkit/versions/ghec_v2022_11_28/types/group_0075.py index d9fd35361..2355032fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0075.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0075.py @@ -9,22 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0076 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) +class NetworkConfigurationType(TypedDict): + """Hosted compute network configuration -class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): - """Repository ruleset conditions for repository names - - Parameters for a repository name condition + A hosted compute network configuration. """ - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) + id: str + name: str + compute_service: NotRequired[Literal["none", "actions", "codespaces"]] + network_settings_ids: NotRequired[list[str]] + created_on: Union[datetime, None] -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) +__all__ = ("NetworkConfigurationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0076.py b/githubkit/versions/ghec_v2022_11_28/types/group_0076.py index f2a6b8a4a..c2fd7df78 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0076.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0076.py @@ -12,12 +12,17 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" +class NetworkSettingsType(TypedDict): + """Hosted compute network settings resource - include: NotRequired[list[str]] - exclude: NotRequired[list[str]] - protected: NotRequired[bool] + A hosted compute network settings resource. + """ + id: str + network_configuration_id: NotRequired[str] + name: str + subnet_id: str + region: str -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) + +__all__ = ("NetworkSettingsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0077.py b/githubkit/versions/ghec_v2022_11_28/types/group_0077.py index 478d0d48f..0ddc5174c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0077.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0077.py @@ -9,18 +9,27 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0078 import RepositoryRulesetConditionsPropRefNameType +class CustomPropertyType(TypedDict): + """Organization Custom Property -class RepositoryRulesetConditionsType(TypedDict): - """Repository ruleset conditions for ref names - - Parameters for a repository ruleset ref name condition + Custom property defined on an organization """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + property_name: str + url: NotRequired[str] + source_type: NotRequired[Literal["organization", "enterprise"]] + value_type: Literal["string", "single_select", "multi_select", "true_false"] + required: NotRequired[bool] + default_value: NotRequired[Union[str, list[str], None]] + description: NotRequired[Union[str, None]] + allowed_values: NotRequired[Union[list[str], None]] + values_editable_by: NotRequired[ + Union[None, Literal["org_actors", "org_and_repo_actors"]] + ] -__all__ = ("RepositoryRulesetConditionsType",) +__all__ = ("CustomPropertyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0078.py b/githubkit/versions/ghec_v2022_11_28/types/group_0078.py index bf8990574..c10beb8d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0078.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0078.py @@ -9,14 +9,21 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class RepositoryRulesetConditionsPropRefNameType(TypedDict): - """RepositoryRulesetConditionsPropRefName""" +class CustomPropertySetPayloadType(TypedDict): + """Custom Property Set Payload - include: NotRequired[list[str]] - exclude: NotRequired[list[str]] + Custom property set payload + """ + 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]] -__all__ = ("RepositoryRulesetConditionsPropRefNameType",) + +__all__ = ("CustomPropertySetPayloadType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0079.py b/githubkit/versions/ghec_v2022_11_28/types/group_0079.py index b023a6d7e..b18b97247 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0079.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0079.py @@ -9,22 +9,26 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0080 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, -) +class RepositoryRulesetBypassActorType(TypedDict): + """Repository Ruleset Bypass Actor -class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): - """Repository ruleset conditions for repository properties - - Parameters for a repository property condition + An actor that can bypass rules in a ruleset """ - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType - ) + actor_id: NotRequired[Union[int, None]] + actor_type: Literal[ + "Integration", + "OrganizationAdmin", + "RepositoryRole", + "Team", + "DeployKey", + "EnterpriseOwner", + ] + bypass_mode: NotRequired[Literal["always", "pull_request"]] -__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) +__all__ = ("RepositoryRulesetBypassActorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0080.py b/githubkit/versions/ghec_v2022_11_28/types/group_0080.py index 57df7a1f1..faff2619a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0080.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0080.py @@ -9,31 +9,22 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict - -class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( - TypedDict -): - """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" - - include: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] - exclude: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] +from .group_0081 import ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, +) -class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): - """Repository ruleset property targeting definition +class EnterpriseRulesetConditionsOrganizationNameTargetType(TypedDict): + """Repository ruleset conditions for organization names - Parameters for a targeting a repository property + Parameters for an organization name condition """ - name: str - property_values: list[str] - source: NotRequired[Literal["custom", "system"]] + organization_name: ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType + ) -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertySpecType", - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", -) +__all__ = ("EnterpriseRulesetConditionsOrganizationNameTargetType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0081.py b/githubkit/versions/ghec_v2022_11_28/types/group_0081.py index 960572159..ea24713c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0081.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0081.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0082 import ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, -) +class EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType( + TypedDict +): + """EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationName""" -class EnterpriseRulesetConditionsOrganizationIdTargetType(TypedDict): - """Repository ruleset conditions for organization IDs + include: NotRequired[list[str]] + exclude: NotRequired[list[str]] - Parameters for an organization ID condition - """ - organization_id: ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType - ) - - -__all__ = ("EnterpriseRulesetConditionsOrganizationIdTargetType",) +__all__ = ("EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0082.py b/githubkit/versions/ghec_v2022_11_28/types/group_0082.py index 4e45a959a..2c6dfef5a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0082.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0082.py @@ -9,13 +9,22 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0083 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +) -class EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType(TypedDict): - """EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId""" - organization_ids: NotRequired[list[int]] +class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): + """Repository ruleset conditions for repository names + Parameters for a repository name condition + """ -__all__ = ("EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType",) + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) + + +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0083.py b/githubkit/versions/ghec_v2022_11_28/types/group_0083.py index 94c1855c6..f2a6b8a4a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0083.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0083.py @@ -11,28 +11,13 @@ from typing_extensions import NotRequired, TypedDict -from .group_0074 import ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, -) -from .group_0076 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) -from .group_0078 import RepositoryRulesetConditionsPropRefNameType +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" -class EnterpriseRulesetConditionsOneof0Type(TypedDict): - """organization_name_and_repository_name + include: NotRequired[list[str]] + exclude: NotRequired[list[str]] + protected: NotRequired[bool] - Conditions to target organizations by name and all repositories - """ - organization_name: ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType - ) - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - - -__all__ = ("EnterpriseRulesetConditionsOneof0Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0084.py b/githubkit/versions/ghec_v2022_11_28/types/group_0084.py index 3652ba2be..aa2335f2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0084.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0084.py @@ -11,28 +11,16 @@ from typing_extensions import NotRequired, TypedDict -from .group_0074 import ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, -) -from .group_0078 import RepositoryRulesetConditionsPropRefNameType -from .group_0080 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, -) +from .group_0085 import RepositoryRulesetConditionsPropRefNameType -class EnterpriseRulesetConditionsOneof1Type(TypedDict): - """organization_name_and_repository_property +class RepositoryRulesetConditionsType(TypedDict): + """Repository ruleset conditions for ref names - Conditions to target organizations by name and repositories by property + Parameters for a repository ruleset ref name condition """ - organization_name: ( - EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType - ) - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType - ) ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] -__all__ = ("EnterpriseRulesetConditionsOneof1Type",) +__all__ = ("RepositoryRulesetConditionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0085.py b/githubkit/versions/ghec_v2022_11_28/types/group_0085.py index 90b71cb48..bf8990574 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0085.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0085.py @@ -11,28 +11,12 @@ from typing_extensions import NotRequired, TypedDict -from .group_0076 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) -from .group_0078 import RepositoryRulesetConditionsPropRefNameType -from .group_0082 import ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, -) +class RepositoryRulesetConditionsPropRefNameType(TypedDict): + """RepositoryRulesetConditionsPropRefName""" -class EnterpriseRulesetConditionsOneof2Type(TypedDict): - """organization_id_and_repository_name + include: NotRequired[list[str]] + exclude: NotRequired[list[str]] - Conditions to target organizations by id and all repositories - """ - organization_id: ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType - ) - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - - -__all__ = ("EnterpriseRulesetConditionsOneof2Type",) +__all__ = ("RepositoryRulesetConditionsPropRefNameType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0086.py b/githubkit/versions/ghec_v2022_11_28/types/group_0086.py index 8b19fc74e..c22950658 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0086.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0086.py @@ -9,30 +9,22 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0078 import RepositoryRulesetConditionsPropRefNameType -from .group_0080 import ( +from .group_0087 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) -from .group_0082 import ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, -) -class EnterpriseRulesetConditionsOneof3Type(TypedDict): - """organization_id_and_repository_property +class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): + """Repository ruleset conditions for repository properties - Conditions to target organization by id and repositories by property + Parameters for a repository property condition """ - organization_id: ( - EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType - ) repository_property: ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType ) - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] -__all__ = ("EnterpriseRulesetConditionsOneof3Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0087.py b/githubkit/versions/ghec_v2022_11_28/types/group_0087.py index f99547449..57df7a1f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0087.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0087.py @@ -13,83 +13,27 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleCreationType(TypedDict): - """creation +class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( + TypedDict +): + """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" - Only allow users with bypass permission to create matching refs. - """ - - type: Literal["creation"] - - -class RepositoryRuleDeletionType(TypedDict): - """deletion - - Only allow users with bypass permissions to delete matching refs. - """ - - type: Literal["deletion"] - - -class RepositoryRuleRequiredSignaturesType(TypedDict): - """required_signatures - - Commits pushed to matching refs must have verified signatures. - """ - - type: Literal["required_signatures"] - - -class RepositoryRuleNonFastForwardType(TypedDict): - """non_fast_forward + include: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] + exclude: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] - Prevent users with push access from force pushing to refs. - """ - - type: Literal["non_fast_forward"] - - -class RepositoryRuleOneof15Type(TypedDict): - """file_path_restriction - - Prevent commits that include changes in specified file paths from being pushed - to the commit graph. - """ - - type: Literal["file_path_restriction"] - parameters: NotRequired[RepositoryRuleOneof15PropParametersType] +class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): + """Repository ruleset property targeting definition -class RepositoryRuleOneof15PropParametersType(TypedDict): - """RepositoryRuleOneof15PropParameters""" - - restricted_file_paths: list[str] - - -class RepositoryRuleOneof17Type(TypedDict): - """file_extension_restriction - - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. + Parameters for a targeting a repository property """ - type: Literal["file_extension_restriction"] - parameters: NotRequired[RepositoryRuleOneof17PropParametersType] - - -class RepositoryRuleOneof17PropParametersType(TypedDict): - """RepositoryRuleOneof17PropParameters""" - - restricted_file_extensions: list[str] + name: str + property_values: list[str] + source: NotRequired[Literal["custom", "system"]] __all__ = ( - "RepositoryRuleCreationType", - "RepositoryRuleDeletionType", - "RepositoryRuleNonFastForwardType", - "RepositoryRuleOneof15PropParametersType", - "RepositoryRuleOneof15Type", - "RepositoryRuleOneof17PropParametersType", - "RepositoryRuleOneof17Type", - "RepositoryRuleRequiredSignaturesType", + "RepositoryRulesetConditionsRepositoryPropertySpecType", + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0088.py b/githubkit/versions/ghec_v2022_11_28/types/group_0088.py index d49f4a450..b7464593d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0088.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0088.py @@ -9,20 +9,22 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0089 import RepositoryRuleUpdatePropParametersType +from .group_0089 import ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, +) -class RepositoryRuleUpdateType(TypedDict): - """update +class EnterpriseRulesetConditionsOrganizationIdTargetType(TypedDict): + """Repository ruleset conditions for organization IDs - Only allow users with bypass permission to update matching refs. + Parameters for an organization ID condition """ - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] + organization_id: ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType + ) -__all__ = ("RepositoryRuleUpdateType",) +__all__ = ("EnterpriseRulesetConditionsOrganizationIdTargetType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0089.py b/githubkit/versions/ghec_v2022_11_28/types/group_0089.py index 4de519b89..4e45a959a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0089.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0089.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleUpdatePropParametersType(TypedDict): - """RepositoryRuleUpdatePropParameters""" +class EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType(TypedDict): + """EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationId""" - update_allows_fetch_and_merge: bool + organization_ids: NotRequired[list[int]] -__all__ = ("RepositoryRuleUpdatePropParametersType",) +__all__ = ("EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType",) 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 3eb52007b..7be2cdd68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0090.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0090.py @@ -9,38 +9,30 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict - -class RepositoryRuleRequiredLinearHistoryType(TypedDict): - """required_linear_history - - Prevent merge commits from being pushed to matching refs. - """ - - type: Literal["required_linear_history"] +from .group_0081 import ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, +) +from .group_0083 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +) +from .group_0085 import RepositoryRulesetConditionsPropRefNameType -class RepositoryRuleOneof16Type(TypedDict): - """max_file_path_length +class EnterpriseRulesetConditionsOneof0Type(TypedDict): + """organization_name_and_repository_name - Prevent commits that include file paths that exceed a specified character limit - from being pushed to the commit graph. + Conditions to target organizations by name and all repositories """ - type: Literal["max_file_path_length"] - parameters: NotRequired[RepositoryRuleOneof16PropParametersType] - - -class RepositoryRuleOneof16PropParametersType(TypedDict): - """RepositoryRuleOneof16PropParameters""" + organization_name: ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType + ) + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - max_file_path_length: int - -__all__ = ( - "RepositoryRuleOneof16PropParametersType", - "RepositoryRuleOneof16Type", - "RepositoryRuleRequiredLinearHistoryType", -) +__all__ = ("EnterpriseRulesetConditionsOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0091.py b/githubkit/versions/ghec_v2022_11_28/types/group_0091.py index 2bd8854b8..2c98df365 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0091.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0091.py @@ -9,20 +9,30 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0092 import RepositoryRuleMergeQueuePropParametersType +from .group_0081 import ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType, +) +from .group_0085 import RepositoryRulesetConditionsPropRefNameType +from .group_0087 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +) -class RepositoryRuleMergeQueueType(TypedDict): - """merge_queue +class EnterpriseRulesetConditionsOneof1Type(TypedDict): + """organization_name_and_repository_property - Merges must be performed via a merge queue. + Conditions to target organizations by name and repositories by property """ - type: Literal["merge_queue"] - parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] + organization_name: ( + EnterpriseRulesetConditionsOrganizationNameTargetPropOrganizationNameType + ) + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] -__all__ = ("RepositoryRuleMergeQueueType",) +__all__ = ("EnterpriseRulesetConditionsOneof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0092.py b/githubkit/versions/ghec_v2022_11_28/types/group_0092.py index 4d32d8491..da95d938b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0092.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0092.py @@ -9,20 +9,30 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0083 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +) +from .group_0085 import RepositoryRulesetConditionsPropRefNameType +from .group_0089 import ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, +) -class RepositoryRuleMergeQueuePropParametersType(TypedDict): - """RepositoryRuleMergeQueuePropParameters""" - check_response_timeout_minutes: int - grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] - max_entries_to_build: int - max_entries_to_merge: int - merge_method: Literal["MERGE", "SQUASH", "REBASE"] - min_entries_to_merge: int - min_entries_to_merge_wait_minutes: int +class EnterpriseRulesetConditionsOneof2Type(TypedDict): + """organization_id_and_repository_name + Conditions to target organizations by id and all repositories + """ -__all__ = ("RepositoryRuleMergeQueuePropParametersType",) + organization_id: ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType + ) + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + + +__all__ = ("EnterpriseRulesetConditionsOneof2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0093.py b/githubkit/versions/ghec_v2022_11_28/types/group_0093.py index 6bc790581..abd7e821d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0093.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0093.py @@ -9,21 +9,30 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0094 import RepositoryRuleRequiredDeploymentsPropParametersType +from .group_0085 import RepositoryRulesetConditionsPropRefNameType +from .group_0087 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +) +from .group_0089 import ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType, +) -class RepositoryRuleRequiredDeploymentsType(TypedDict): - """required_deployments +class EnterpriseRulesetConditionsOneof3Type(TypedDict): + """organization_id_and_repository_property - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. + Conditions to target organization by id and repositories by property """ - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] + organization_id: ( + EnterpriseRulesetConditionsOrganizationIdTargetPropOrganizationIdType + ) + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] -__all__ = ("RepositoryRuleRequiredDeploymentsType",) +__all__ = ("EnterpriseRulesetConditionsOneof3Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0094.py b/githubkit/versions/ghec_v2022_11_28/types/group_0094.py index ef0c8d1d9..f99547449 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0094.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0094.py @@ -9,13 +9,87 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): - """RepositoryRuleRequiredDeploymentsPropParameters""" +class RepositoryRuleCreationType(TypedDict): + """creation - required_deployment_environments: list[str] + Only allow users with bypass permission to create matching refs. + """ + type: Literal["creation"] -__all__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) + +class RepositoryRuleDeletionType(TypedDict): + """deletion + + Only allow users with bypass permissions to delete matching refs. + """ + + type: Literal["deletion"] + + +class RepositoryRuleRequiredSignaturesType(TypedDict): + """required_signatures + + Commits pushed to matching refs must have verified signatures. + """ + + type: Literal["required_signatures"] + + +class RepositoryRuleNonFastForwardType(TypedDict): + """non_fast_forward + + Prevent users with push access from force pushing to refs. + """ + + type: Literal["non_fast_forward"] + + +class RepositoryRuleOneof15Type(TypedDict): + """file_path_restriction + + Prevent commits that include changes in specified file paths from being pushed + to the commit graph. + """ + + type: Literal["file_path_restriction"] + parameters: NotRequired[RepositoryRuleOneof15PropParametersType] + + +class RepositoryRuleOneof15PropParametersType(TypedDict): + """RepositoryRuleOneof15PropParameters""" + + restricted_file_paths: list[str] + + +class RepositoryRuleOneof17Type(TypedDict): + """file_extension_restriction + + Prevent commits that include files with specified file extensions from being + pushed to the commit graph. + """ + + type: Literal["file_extension_restriction"] + parameters: NotRequired[RepositoryRuleOneof17PropParametersType] + + +class RepositoryRuleOneof17PropParametersType(TypedDict): + """RepositoryRuleOneof17PropParameters""" + + restricted_file_extensions: list[str] + + +__all__ = ( + "RepositoryRuleCreationType", + "RepositoryRuleDeletionType", + "RepositoryRuleNonFastForwardType", + "RepositoryRuleOneof15PropParametersType", + "RepositoryRuleOneof15Type", + "RepositoryRuleOneof17PropParametersType", + "RepositoryRuleOneof17Type", + "RepositoryRuleRequiredSignaturesType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0095.py b/githubkit/versions/ghec_v2022_11_28/types/group_0095.py index 3d2255263..699362a92 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0095.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0095.py @@ -9,19 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0096 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleParamsRequiredReviewerConfigurationType(TypedDict): - """RequiredReviewerConfiguration - A reviewing team, and file patterns describing which files they must approve - changes to. +class RepositoryRuleUpdateType(TypedDict): + """update + + Only allow users with bypass permission to update matching refs. """ - file_patterns: list[str] - minimum_approvals: int - reviewer_id: str + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] -__all__ = ("RepositoryRuleParamsRequiredReviewerConfigurationType",) +__all__ = ("RepositoryRuleUpdateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0096.py b/githubkit/versions/ghec_v2022_11_28/types/group_0096.py index 44a6c2d1c..4de519b89 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0096.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0096.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0097 import RepositoryRulePullRequestPropParametersType +class RepositoryRuleUpdatePropParametersType(TypedDict): + """RepositoryRuleUpdatePropParameters""" -class RepositoryRulePullRequestType(TypedDict): - """pull_request + update_allows_fetch_and_merge: bool - Require all commits be made to a non-target branch and submitted via a pull - request before they can be merged. - """ - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] - - -__all__ = ("RepositoryRulePullRequestType",) +__all__ = ("RepositoryRuleUpdatePropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0097.py b/githubkit/versions/ghec_v2022_11_28/types/group_0097.py index 5ffe35316..3eb52007b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0097.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0097.py @@ -9,18 +9,38 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class RepositoryRulePullRequestPropParametersType(TypedDict): - """RepositoryRulePullRequestPropParameters""" +class RepositoryRuleRequiredLinearHistoryType(TypedDict): + """required_linear_history - allowed_merge_methods: NotRequired[list[str]] - dismiss_stale_reviews_on_push: bool - require_code_owner_review: bool - require_last_push_approval: bool - required_approving_review_count: int - required_review_thread_resolution: bool + Prevent merge commits from being pushed to matching refs. + """ + type: Literal["required_linear_history"] -__all__ = ("RepositoryRulePullRequestPropParametersType",) + +class RepositoryRuleOneof16Type(TypedDict): + """max_file_path_length + + Prevent commits that include file paths that exceed a specified character limit + from being pushed to the commit graph. + """ + + type: Literal["max_file_path_length"] + parameters: NotRequired[RepositoryRuleOneof16PropParametersType] + + +class RepositoryRuleOneof16PropParametersType(TypedDict): + """RepositoryRuleOneof16PropParameters""" + + max_file_path_length: int + + +__all__ = ( + "RepositoryRuleOneof16PropParametersType", + "RepositoryRuleOneof16Type", + "RepositoryRuleRequiredLinearHistoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0098.py b/githubkit/versions/ghec_v2022_11_28/types/group_0098.py index e76990b42..3f2bd9268 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0098.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0098.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0099 import RepositoryRuleRequiredStatusChecksPropParametersType +from .group_0099 import RepositoryRuleMergeQueuePropParametersType -class RepositoryRuleRequiredStatusChecksType(TypedDict): - """required_status_checks +class RepositoryRuleMergeQueueType(TypedDict): + """merge_queue - Choose which status checks must pass before the ref is updated. When enabled, - commits must first be pushed to another ref where the checks pass. + Merges must be performed via a merge queue. """ - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["merge_queue"] + parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] -__all__ = ("RepositoryRuleRequiredStatusChecksType",) +__all__ = ("RepositoryRuleMergeQueueType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0099.py b/githubkit/versions/ghec_v2022_11_28/types/group_0099.py index 82ebfc8c9..4d32d8491 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0099.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0099.py @@ -9,28 +9,20 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): - """RepositoryRuleRequiredStatusChecksPropParameters""" +class RepositoryRuleMergeQueuePropParametersType(TypedDict): + """RepositoryRuleMergeQueuePropParameters""" - do_not_enforce_on_create: NotRequired[bool] - required_status_checks: list[RepositoryRuleParamsStatusCheckConfigurationType] - strict_required_status_checks_policy: bool + check_response_timeout_minutes: int + grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] + max_entries_to_build: int + max_entries_to_merge: int + merge_method: Literal["MERGE", "SQUASH", "REBASE"] + min_entries_to_merge: int + min_entries_to_merge_wait_minutes: int -class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): - """StatusCheckConfiguration - - Required status check - """ - - context: str - integration_id: NotRequired[int] - - -__all__ = ( - "RepositoryRuleParamsStatusCheckConfigurationType", - "RepositoryRuleRequiredStatusChecksPropParametersType", -) +__all__ = ("RepositoryRuleMergeQueuePropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0100.py b/githubkit/versions/ghec_v2022_11_28/types/group_0100.py index 5d7a84331..308c3e50d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0100.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0100.py @@ -12,17 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0101 import RepositoryRuleCommitMessagePatternPropParametersType +from .group_0101 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleCommitMessagePatternType(TypedDict): - """commit_message_pattern +class RepositoryRuleRequiredDeploymentsType(TypedDict): + """required_deployments - Parameters to be used for the commit_message_pattern rule + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. """ - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] -__all__ = ("RepositoryRuleCommitMessagePatternType",) +__all__ = ("RepositoryRuleRequiredDeploymentsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0101.py b/githubkit/versions/ghec_v2022_11_28/types/group_0101.py index b6fc6932b..ef0c8d1d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0101.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0101.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): - """RepositoryRuleCommitMessagePatternPropParameters""" +class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): + """RepositoryRuleRequiredDeploymentsPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str + required_deployment_environments: list[str] -__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0102.py b/githubkit/versions/ghec_v2022_11_28/types/group_0102.py index 58ac66b42..3d2255263 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0102.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0102.py @@ -9,20 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0103 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +class RepositoryRuleParamsRequiredReviewerConfigurationType(TypedDict): + """RequiredReviewerConfiguration -class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): - """commit_author_email_pattern - - Parameters to be used for the commit_author_email_pattern rule + A reviewing team, and file patterns describing which files they must approve + changes to. """ - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + file_patterns: list[str] + minimum_approvals: int + reviewer_id: str -__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) +__all__ = ("RepositoryRuleParamsRequiredReviewerConfigurationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0103.py b/githubkit/versions/ghec_v2022_11_28/types/group_0103.py index d6712bb18..02be35a0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0103.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0103.py @@ -12,14 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0104 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRulePullRequestType(TypedDict): + """pull_request + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. + """ -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + + +__all__ = ("RepositoryRulePullRequestType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0104.py b/githubkit/versions/ghec_v2022_11_28/types/group_0104.py index 3e7bd8c65..5ffe35316 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0104.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0104.py @@ -9,20 +9,18 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0105 import RepositoryRuleCommitterEmailPatternPropParametersType +class RepositoryRulePullRequestPropParametersType(TypedDict): + """RepositoryRulePullRequestPropParameters""" -class RepositoryRuleCommitterEmailPatternType(TypedDict): - """committer_email_pattern + allowed_merge_methods: NotRequired[list[str]] + dismiss_stale_reviews_on_push: bool + require_code_owner_review: bool + require_last_push_approval: bool + required_approving_review_count: int + required_review_thread_resolution: bool - Parameters to be used for the committer_email_pattern rule - """ - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] - - -__all__ = ("RepositoryRuleCommitterEmailPatternType",) +__all__ = ("RepositoryRulePullRequestPropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0105.py b/githubkit/versions/ghec_v2022_11_28/types/group_0105.py index a6567de4b..d8965da72 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0105.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0105.py @@ -12,14 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0106 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitterEmailPatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleRequiredStatusChecksType(TypedDict): + """required_status_checks + Choose which status checks must pass before the ref is updated. When enabled, + commits must first be pushed to another ref where the checks pass. + """ -__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + + +__all__ = ("RepositoryRuleRequiredStatusChecksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0106.py b/githubkit/versions/ghec_v2022_11_28/types/group_0106.py index 27255d0ee..82ebfc8c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0106.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0106.py @@ -9,20 +9,28 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0107 import RepositoryRuleBranchNamePatternPropParametersType +class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): + """RepositoryRuleRequiredStatusChecksPropParameters""" -class RepositoryRuleBranchNamePatternType(TypedDict): - """branch_name_pattern + do_not_enforce_on_create: NotRequired[bool] + required_status_checks: list[RepositoryRuleParamsStatusCheckConfigurationType] + strict_required_status_checks_policy: bool - Parameters to be used for the branch_name_pattern rule + +class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): + """StatusCheckConfiguration + + Required status check """ - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + context: str + integration_id: NotRequired[int] -__all__ = ("RepositoryRuleBranchNamePatternType",) +__all__ = ( + "RepositoryRuleParamsStatusCheckConfigurationType", + "RepositoryRuleRequiredStatusChecksPropParametersType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0107.py b/githubkit/versions/ghec_v2022_11_28/types/group_0107.py index da29fc42d..9ddfea3de 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0107.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0107.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0108 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): - """RepositoryRuleBranchNamePatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleCommitMessagePatternType(TypedDict): + """commit_message_pattern + Parameters to be used for the commit_message_pattern rule + """ -__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + + +__all__ = ("RepositoryRuleCommitMessagePatternType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0108.py b/githubkit/versions/ghec_v2022_11_28/types/group_0108.py index 37a81b699..b6fc6932b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0108.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0108.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0109 import RepositoryRuleTagNamePatternPropParametersType +class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): + """RepositoryRuleCommitMessagePatternPropParameters""" -class RepositoryRuleTagNamePatternType(TypedDict): - """tag_name_pattern + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - Parameters to be used for the tag_name_pattern rule - """ - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] - - -__all__ = ("RepositoryRuleTagNamePatternType",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0109.py b/githubkit/versions/ghec_v2022_11_28/types/group_0109.py index cbfa3546b..e8d366cc4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0109.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0109.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0110 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleTagNamePatternPropParametersType(TypedDict): - """RepositoryRuleTagNamePatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): + """commit_author_email_pattern + Parameters to be used for the commit_author_email_pattern rule + """ -__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) + type: Literal["commit_author_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + + +__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0110.py b/githubkit/versions/ghec_v2022_11_28/types/group_0110.py index 7464769b7..d6712bb18 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0110.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0110.py @@ -9,17 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class RepositoryRuleParamsRestrictedCommitsType(TypedDict): - """RestrictedCommits +class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" - Restricted commit - """ + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - oid: str - reason: NotRequired[str] - -__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0111.py b/githubkit/versions/ghec_v2022_11_28/types/group_0111.py index d3daa4809..b556fb25a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0111.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0111.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0112 import RepositoryRuleWorkflowsPropParametersType +from .group_0112 import RepositoryRuleCommitterEmailPatternPropParametersType -class RepositoryRuleWorkflowsType(TypedDict): - """workflows +class RepositoryRuleCommitterEmailPatternType(TypedDict): + """committer_email_pattern - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. + Parameters to be used for the committer_email_pattern rule """ - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] -__all__ = ("RepositoryRuleWorkflowsType",) +__all__ = ("RepositoryRuleCommitterEmailPatternType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0112.py b/githubkit/versions/ghec_v2022_11_28/types/group_0112.py index c26b4894e..a6567de4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0112.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0112.py @@ -9,29 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class RepositoryRuleWorkflowsPropParametersType(TypedDict): - """RepositoryRuleWorkflowsPropParameters""" +class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitterEmailPatternPropParameters""" - do_not_enforce_on_create: NotRequired[bool] - workflows: list[RepositoryRuleParamsWorkflowFileReferenceType] + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str -class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): - """WorkflowFileReference - - A workflow that must run for this rule to pass - """ - - path: str - ref: NotRequired[str] - repository_id: int - sha: NotRequired[str] - - -__all__ = ( - "RepositoryRuleParamsWorkflowFileReferenceType", - "RepositoryRuleWorkflowsPropParametersType", -) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0113.py b/githubkit/versions/ghec_v2022_11_28/types/group_0113.py index 7389a8392..c327c0c63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0113.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0113.py @@ -12,19 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0114 import RepositoryRuleCodeScanningPropParametersType +from .group_0114 import RepositoryRuleBranchNamePatternPropParametersType -class RepositoryRuleCodeScanningType(TypedDict): - """code_scanning +class RepositoryRuleBranchNamePatternType(TypedDict): + """branch_name_pattern - Choose which tools must provide code scanning results before the reference is - updated. When configured, code scanning must be enabled and have results for - both the commit and the reference being updated. + Parameters to be used for the branch_name_pattern rule """ - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] -__all__ = ("RepositoryRuleCodeScanningType",) +__all__ = ("RepositoryRuleBranchNamePatternType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0114.py b/githubkit/versions/ghec_v2022_11_28/types/group_0114.py index 0ce3aaee0..da29fc42d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0114.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0114.py @@ -10,29 +10,16 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleCodeScanningPropParametersType(TypedDict): - """RepositoryRuleCodeScanningPropParameters""" +class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): + """RepositoryRuleBranchNamePatternPropParameters""" - code_scanning_tools: list[RepositoryRuleParamsCodeScanningToolType] + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str -class RepositoryRuleParamsCodeScanningToolType(TypedDict): - """CodeScanningTool - - A tool that must provide code scanning results for this rule to pass. - """ - - alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] - security_alerts_threshold: Literal[ - "none", "critical", "high_or_higher", "medium_or_higher", "all" - ] - tool: str - - -__all__ = ( - "RepositoryRuleCodeScanningPropParametersType", - "RepositoryRuleParamsCodeScanningToolType", -) +__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0115.py b/githubkit/versions/ghec_v2022_11_28/types/group_0115.py index 990e63b2d..fa4b0ac22 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0115.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0115.py @@ -12,25 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0116 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryRuleOneof18Type(TypedDict): - """max_file_size - Prevent commits that exceed a specified file size limit from being pushed to the - commit. - """ - - type: Literal["max_file_size"] - parameters: NotRequired[RepositoryRuleOneof18PropParametersType] +class RepositoryRuleTagNamePatternType(TypedDict): + """tag_name_pattern + Parameters to be used for the tag_name_pattern rule + """ -class RepositoryRuleOneof18PropParametersType(TypedDict): - """RepositoryRuleOneof18PropParameters""" - - max_file_size: int + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] -__all__ = ( - "RepositoryRuleOneof18PropParametersType", - "RepositoryRuleOneof18Type", -) +__all__ = ("RepositoryRuleTagNamePatternType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0116.py b/githubkit/versions/ghec_v2022_11_28/types/group_0116.py index ca3783332..cbfa3546b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0116.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0116.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0117 import ( - RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, -) +class RepositoryRuleTagNamePatternPropParametersType(TypedDict): + """RepositoryRuleTagNamePatternPropParameters""" -class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): - """Repository ruleset conditions for repository IDs + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - Parameters for a repository ID condition - """ - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType - - -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) +__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0117.py b/githubkit/versions/ghec_v2022_11_28/types/group_0117.py index ab014ee2b..7464769b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0117.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0117.py @@ -12,10 +12,14 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" +class RepositoryRuleParamsRestrictedCommitsType(TypedDict): + """RestrictedCommits - repository_ids: NotRequired[list[int]] + Restricted commit + """ + oid: str + reason: NotRequired[str] -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) + +__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0118.py b/githubkit/versions/ghec_v2022_11_28/types/group_0118.py index 5ac3a084a..66a43d58f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0118.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0118.py @@ -9,24 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0076 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) -from .group_0078 import RepositoryRulesetConditionsPropRefNameType +from .group_0119 import RepositoryRuleWorkflowsPropParametersType -class OrgRulesetConditionsOneof0Type(TypedDict): - """repository_name_and_ref_name +class RepositoryRuleWorkflowsType(TypedDict): + """workflows - Conditions to target repositories by name and refs by name + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] -__all__ = ("OrgRulesetConditionsOneof0Type",) +__all__ = ("RepositoryRuleWorkflowsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0119.py b/githubkit/versions/ghec_v2022_11_28/types/group_0119.py index cf030ab9b..c26b4894e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0119.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0119.py @@ -11,20 +11,27 @@ from typing_extensions import NotRequired, TypedDict -from .group_0078 import RepositoryRulesetConditionsPropRefNameType -from .group_0117 import ( - RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, -) +class RepositoryRuleWorkflowsPropParametersType(TypedDict): + """RepositoryRuleWorkflowsPropParameters""" + + do_not_enforce_on_create: NotRequired[bool] + workflows: list[RepositoryRuleParamsWorkflowFileReferenceType] -class OrgRulesetConditionsOneof1Type(TypedDict): - """repository_id_and_ref_name - Conditions to target repositories by id and refs by name +class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): + """WorkflowFileReference + + A workflow that must run for this rule to pass """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType + path: str + ref: NotRequired[str] + repository_id: int + sha: NotRequired[str] -__all__ = ("OrgRulesetConditionsOneof1Type",) +__all__ = ( + "RepositoryRuleParamsWorkflowFileReferenceType", + "RepositoryRuleWorkflowsPropParametersType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0120.py b/githubkit/versions/ghec_v2022_11_28/types/group_0120.py index 8f1d49d7b..c1b53b394 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0120.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0120.py @@ -9,24 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0078 import RepositoryRulesetConditionsPropRefNameType -from .group_0080 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, -) +from .group_0121 import RepositoryRuleCodeScanningPropParametersType -class OrgRulesetConditionsOneof2Type(TypedDict): - """repository_property_and_ref_name +class RepositoryRuleCodeScanningType(TypedDict): + """code_scanning - Conditions to target repositories by property and refs by name + Choose which tools must provide code scanning results before the reference is + updated. When configured, code scanning must be enabled and have results for + both the commit and the reference being updated. """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType - ) + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] -__all__ = ("OrgRulesetConditionsOneof2Type",) +__all__ = ("RepositoryRuleCodeScanningType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0121.py b/githubkit/versions/ghec_v2022_11_28/types/group_0121.py index b420b8a14..0ce3aaee0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0121.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0121.py @@ -9,122 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_0072 import RepositoryRulesetBypassActorType -from .group_0077 import RepositoryRulesetConditionsType -from .group_0087 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0088 import RepositoryRuleUpdateType -from .group_0090 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0091 import RepositoryRuleMergeQueueType -from .group_0093 import RepositoryRuleRequiredDeploymentsType -from .group_0096 import RepositoryRulePullRequestType -from .group_0098 import RepositoryRuleRequiredStatusChecksType -from .group_0100 import RepositoryRuleCommitMessagePatternType -from .group_0102 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0104 import RepositoryRuleCommitterEmailPatternType -from .group_0106 import RepositoryRuleBranchNamePatternType -from .group_0108 import RepositoryRuleTagNamePatternType -from .group_0111 import RepositoryRuleWorkflowsType -from .group_0113 import RepositoryRuleCodeScanningType -from .group_0115 import RepositoryRuleOneof18Type -from .group_0118 import OrgRulesetConditionsOneof0Type -from .group_0119 import OrgRulesetConditionsOneof1Type -from .group_0120 import OrgRulesetConditionsOneof2Type - - -class RepositoryRulesetType(TypedDict): - """Repository ruleset - A set of rules to apply when specified conditions are met. - """ +class RepositoryRuleCodeScanningPropParametersType(TypedDict): + """RepositoryRuleCodeScanningPropParameters""" - id: int - name: str - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - source_type: NotRequired[Literal["Repository", "Organization", "Enterprise"]] - source: str - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - current_user_can_bypass: NotRequired[ - Literal["always", "pull_requests_only", "never"] - ] - node_id: NotRequired[str] - links: NotRequired[RepositoryRulesetPropLinksType] - conditions: NotRequired[ - Union[ - RepositoryRulesetConditionsType, - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - None, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] + code_scanning_tools: list[RepositoryRuleParamsCodeScanningToolType] -class RepositoryRulesetPropLinksType(TypedDict): - """RepositoryRulesetPropLinks""" +class RepositoryRuleParamsCodeScanningToolType(TypedDict): + """CodeScanningTool - self_: NotRequired[RepositoryRulesetPropLinksPropSelfType] - html: NotRequired[Union[RepositoryRulesetPropLinksPropHtmlType, None]] - - -class RepositoryRulesetPropLinksPropSelfType(TypedDict): - """RepositoryRulesetPropLinksPropSelf""" - - href: NotRequired[str] - - -class RepositoryRulesetPropLinksPropHtmlType(TypedDict): - """RepositoryRulesetPropLinksPropHtml""" + A tool that must provide code scanning results for this rule to pass. + """ - href: NotRequired[str] + alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] + security_alerts_threshold: Literal[ + "none", "critical", "high_or_higher", "medium_or_higher", "all" + ] + tool: str __all__ = ( - "RepositoryRulesetPropLinksPropHtmlType", - "RepositoryRulesetPropLinksPropSelfType", - "RepositoryRulesetPropLinksType", - "RepositoryRulesetType", + "RepositoryRuleCodeScanningPropParametersType", + "RepositoryRuleParamsCodeScanningToolType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0122.py b/githubkit/versions/ghec_v2022_11_28/types/group_0122.py index 1196dd4c6..990e63b2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0122.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0122.py @@ -9,44 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0051 import SimpleRepositoryType - - -class OrganizationSecretScanningAlertType(TypedDict): - """OrganizationSecretScanningAlert""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - repository: NotRequired[SimpleRepositoryType] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - resolution_comment: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - - -__all__ = ("OrganizationSecretScanningAlertType",) + +class RepositoryRuleOneof18Type(TypedDict): + """max_file_size + + Prevent commits that exceed a specified file size limit from being pushed to the + commit. + """ + + type: Literal["max_file_size"] + parameters: NotRequired[RepositoryRuleOneof18PropParametersType] + + +class RepositoryRuleOneof18PropParametersType(TypedDict): + """RepositoryRuleOneof18PropParameters""" + + max_file_size: int + + +__all__ = ( + "RepositoryRuleOneof18PropParametersType", + "RepositoryRuleOneof18Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0123.py b/githubkit/versions/ghec_v2022_11_28/types/group_0123.py index fb14d5d5d..86e18b2c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0123.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0123.py @@ -9,39 +9,20 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0124 import ( + RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, +) -class ActionsBillingUsageType(TypedDict): - """ActionsBillingUsage""" - - total_minutes_used: int - total_paid_minutes_used: int - included_minutes: int - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdownType +class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): + """Repository ruleset conditions for repository IDs -class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): - """ActionsBillingUsagePropMinutesUsedBreakdown""" + Parameters for a repository ID condition + """ - ubuntu: NotRequired[int] - macos: NotRequired[int] - windows: NotRequired[int] - ubuntu_4_core: NotRequired[int] - ubuntu_8_core: NotRequired[int] - ubuntu_16_core: NotRequired[int] - ubuntu_32_core: NotRequired[int] - ubuntu_64_core: NotRequired[int] - windows_4_core: NotRequired[int] - windows_8_core: NotRequired[int] - windows_16_core: NotRequired[int] - windows_32_core: NotRequired[int] - windows_64_core: NotRequired[int] - macos_12_core: NotRequired[int] - total: NotRequired[int] + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType -__all__ = ( - "ActionsBillingUsagePropMinutesUsedBreakdownType", - "ActionsBillingUsageType", -) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0124.py b/githubkit/versions/ghec_v2022_11_28/types/group_0124.py index 481d2d694..ab014ee2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0124.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0124.py @@ -12,36 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class AdvancedSecurityActiveCommittersType(TypedDict): - """AdvancedSecurityActiveCommitters""" +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" - total_advanced_security_committers: NotRequired[int] - total_count: NotRequired[int] - maximum_advanced_security_committers: NotRequired[int] - purchased_advanced_security_committers: NotRequired[int] - repositories: list[AdvancedSecurityActiveCommittersRepositoryType] + repository_ids: NotRequired[list[int]] -class AdvancedSecurityActiveCommittersRepositoryType(TypedDict): - """AdvancedSecurityActiveCommittersRepository""" - - name: str - advanced_security_committers: int - advanced_security_committers_breakdown: list[ - AdvancedSecurityActiveCommittersUserType - ] - - -class AdvancedSecurityActiveCommittersUserType(TypedDict): - """AdvancedSecurityActiveCommittersUser""" - - user_login: str - last_pushed_date: str - last_pushed_email: str - - -__all__ = ( - "AdvancedSecurityActiveCommittersRepositoryType", - "AdvancedSecurityActiveCommittersType", - "AdvancedSecurityActiveCommittersUserType", -) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0125.py b/githubkit/versions/ghec_v2022_11_28/types/group_0125.py index b5d2a4848..47558668e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0125.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0125.py @@ -11,30 +11,22 @@ from typing_extensions import NotRequired, TypedDict +from .group_0083 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +) +from .group_0085 import RepositoryRulesetConditionsPropRefNameType -class GetAllCostCentersType(TypedDict): - """GetAllCostCenters""" - - cost_centers: NotRequired[list[GetAllCostCentersPropCostCentersItemsType]] - - -class GetAllCostCentersPropCostCentersItemsType(TypedDict): - """GetAllCostCentersPropCostCentersItems""" - - id: str - name: str - resources: list[GetAllCostCentersPropCostCentersItemsPropResourcesItemsType] +class OrgRulesetConditionsOneof0Type(TypedDict): + """repository_name_and_ref_name -class GetAllCostCentersPropCostCentersItemsPropResourcesItemsType(TypedDict): - """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" + Conditions to target repositories by name and refs by name + """ - type: str - name: str + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) -__all__ = ( - "GetAllCostCentersPropCostCentersItemsPropResourcesItemsType", - "GetAllCostCentersPropCostCentersItemsType", - "GetAllCostCentersType", -) +__all__ = ("OrgRulesetConditionsOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0126.py b/githubkit/versions/ghec_v2022_11_28/types/group_0126.py index cac22c41a..965bf265c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0126.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0126.py @@ -9,15 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0085 import RepositoryRulesetConditionsPropRefNameType +from .group_0124 import ( + RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, +) -class PackagesBillingUsageType(TypedDict): - """PackagesBillingUsage""" - total_gigabytes_bandwidth_used: int - total_paid_gigabytes_bandwidth_used: int - included_gigabytes_bandwidth: int +class OrgRulesetConditionsOneof1Type(TypedDict): + """repository_id_and_ref_name + Conditions to target repositories by id and refs by name + """ -__all__ = ("PackagesBillingUsageType",) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType + + +__all__ = ("OrgRulesetConditionsOneof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0127.py b/githubkit/versions/ghec_v2022_11_28/types/group_0127.py index 15a19a09d..0b6cf6550 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0127.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0127.py @@ -9,15 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0085 import RepositoryRulesetConditionsPropRefNameType +from .group_0087 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +) -class CombinedBillingUsageType(TypedDict): - """CombinedBillingUsage""" - days_left_in_billing_cycle: int - estimated_paid_storage_for_month: int - estimated_storage_for_month: int +class OrgRulesetConditionsOneof2Type(TypedDict): + """repository_property_and_ref_name + Conditions to target repositories by property and refs by name + """ -__all__ = ("CombinedBillingUsageType",) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) + + +__all__ = ("OrgRulesetConditionsOneof2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0128.py b/githubkit/versions/ghec_v2022_11_28/types/group_0128.py index 8b794ad2d..12b29b408 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0128.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0128.py @@ -9,32 +9,122 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0079 import RepositoryRulesetBypassActorType +from .group_0084 import RepositoryRulesetConditionsType +from .group_0094 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0095 import RepositoryRuleUpdateType +from .group_0097 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0098 import RepositoryRuleMergeQueueType +from .group_0100 import RepositoryRuleRequiredDeploymentsType +from .group_0103 import RepositoryRulePullRequestType +from .group_0105 import RepositoryRuleRequiredStatusChecksType +from .group_0107 import RepositoryRuleCommitMessagePatternType +from .group_0109 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0111 import RepositoryRuleCommitterEmailPatternType +from .group_0113 import RepositoryRuleBranchNamePatternType +from .group_0115 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRuleCodeScanningType +from .group_0122 import RepositoryRuleOneof18Type +from .group_0125 import OrgRulesetConditionsOneof0Type +from .group_0126 import OrgRulesetConditionsOneof1Type +from .group_0127 import OrgRulesetConditionsOneof2Type + + +class RepositoryRulesetType(TypedDict): + """Repository ruleset + + A set of rules to apply when specified conditions are met. + """ + + id: int + name: str + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + source_type: NotRequired[Literal["Repository", "Organization", "Enterprise"]] + source: str + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + current_user_can_bypass: NotRequired[ + Literal["always", "pull_requests_only", "never"] + ] + node_id: NotRequired[str] + links: NotRequired[RepositoryRulesetPropLinksType] + conditions: NotRequired[ + Union[ + RepositoryRulesetConditionsType, + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + None, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + + +class RepositoryRulesetPropLinksType(TypedDict): + """RepositoryRulesetPropLinks""" + + self_: NotRequired[RepositoryRulesetPropLinksPropSelfType] + html: NotRequired[Union[RepositoryRulesetPropLinksPropHtmlType, None]] + -class BillingUsageReportType(TypedDict): - """BillingUsageReport""" +class RepositoryRulesetPropLinksPropSelfType(TypedDict): + """RepositoryRulesetPropLinksPropSelf""" - usage_items: NotRequired[list[BillingUsageReportPropUsageItemsItemsType]] + href: NotRequired[str] -class BillingUsageReportPropUsageItemsItemsType(TypedDict): - """BillingUsageReportPropUsageItemsItems""" +class RepositoryRulesetPropLinksPropHtmlType(TypedDict): + """RepositoryRulesetPropLinksPropHtml""" - date: str - product: str - sku: str - quantity: int - unit_type: str - price_per_unit: float - gross_amount: float - discount_amount: float - net_amount: float - organization_name: str - repository_name: NotRequired[str] + href: NotRequired[str] __all__ = ( - "BillingUsageReportPropUsageItemsItemsType", - "BillingUsageReportType", + "RepositoryRulesetPropLinksPropHtmlType", + "RepositoryRulesetPropLinksPropSelfType", + "RepositoryRulesetPropLinksType", + "RepositoryRulesetType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0129.py b/githubkit/versions/ghec_v2022_11_28/types/group_0129.py index 35313ffe8..ef550e31c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0129.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0129.py @@ -11,33 +11,42 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0002 import SimpleUserType - - -class MilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - url: str - html_url: str - labels_url: str - id: int - node_id: str - number: int - state: Literal["open", "closed"] - title: str - description: Union[str, None] - creator: Union[None, SimpleUserType] - open_issues: int - closed_issues: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - due_on: Union[datetime, None] - - -__all__ = ("MilestoneType",) +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0056 import SimpleRepositoryType + + +class OrganizationSecretScanningAlertType(TypedDict): + """OrganizationSecretScanningAlert""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + repository: NotRequired[SimpleRepositoryType] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + resolution_comment: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + + +__all__ = ("OrganizationSecretScanningAlertType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0130.py b/githubkit/versions/ghec_v2022_11_28/types/group_0130.py index 8a6080a74..fb14d5d5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0130.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0130.py @@ -9,22 +9,39 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ReactionRollupType(TypedDict): - """Reaction Rollup""" - - url: str - total_count: int - plus_one: int - minus_one: int - laugh: int - confused: int - heart: int - hooray: int - eyes: int - rocket: int - - -__all__ = ("ReactionRollupType",) +from typing_extensions import NotRequired, TypedDict + + +class ActionsBillingUsageType(TypedDict): + """ActionsBillingUsage""" + + total_minutes_used: int + total_paid_minutes_used: int + included_minutes: int + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdownType + + +class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): + """ActionsBillingUsagePropMinutesUsedBreakdown""" + + ubuntu: NotRequired[int] + macos: NotRequired[int] + windows: NotRequired[int] + ubuntu_4_core: NotRequired[int] + ubuntu_8_core: NotRequired[int] + ubuntu_16_core: NotRequired[int] + ubuntu_32_core: NotRequired[int] + ubuntu_64_core: NotRequired[int] + windows_4_core: NotRequired[int] + windows_8_core: NotRequired[int] + windows_16_core: NotRequired[int] + windows_32_core: NotRequired[int] + windows_64_core: NotRequired[int] + macos_12_core: NotRequired[int] + total: NotRequired[int] + + +__all__ = ( + "ActionsBillingUsagePropMinutesUsedBreakdownType", + "ActionsBillingUsageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0131.py b/githubkit/versions/ghec_v2022_11_28/types/group_0131.py index 87e87fec0..481d2d694 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0131.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0131.py @@ -9,105 +9,39 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0019 import RepositoryType -from .group_0129 import MilestoneType -from .group_0130 import ReactionRollupType - - -class IssueType(TypedDict): - """Issue - - Issues are a great way to keep track of tasks, enhancements, and bugs for your - projects. - """ - - id: int - node_id: str - url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str - html_url: str - number: int - state: str - state_reason: NotRequired[ - Union[None, Literal["completed", "reopened", "not_planned"]] - ] - title: str - body: NotRequired[Union[str, None]] - user: Union[None, SimpleUserType] - labels: list[Union[str, IssuePropLabelsItemsOneof1Type]] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - milestone: Union[None, MilestoneType] - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - comments: int - pull_request: NotRequired[IssuePropPullRequestType] - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - draft: NotRequired[bool] - closed_by: NotRequired[Union[None, SimpleUserType]] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - repository: NotRequired[RepositoryType] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] - sub_issues_summary: NotRequired[SubIssuesSummaryType] +class AdvancedSecurityActiveCommittersType(TypedDict): + """AdvancedSecurityActiveCommitters""" -class SubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" + total_advanced_security_committers: NotRequired[int] + total_count: NotRequired[int] + maximum_advanced_security_committers: NotRequired[int] + purchased_advanced_security_committers: NotRequired[int] + repositories: list[AdvancedSecurityActiveCommittersRepositoryType] - total: int - completed: int - percent_completed: int +class AdvancedSecurityActiveCommittersRepositoryType(TypedDict): + """AdvancedSecurityActiveCommittersRepository""" -class IssuePropLabelsItemsOneof1Type(TypedDict): - """IssuePropLabelsItemsOneof1""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - default: NotRequired[bool] + name: str + advanced_security_committers: int + advanced_security_committers_breakdown: list[ + AdvancedSecurityActiveCommittersUserType + ] -class IssuePropPullRequestType(TypedDict): - """IssuePropPullRequest""" +class AdvancedSecurityActiveCommittersUserType(TypedDict): + """AdvancedSecurityActiveCommittersUser""" - merged_at: NotRequired[Union[datetime, None]] - diff_url: Union[str, None] - html_url: Union[str, None] - patch_url: Union[str, None] - url: Union[str, None] + user_login: str + last_pushed_date: str + last_pushed_email: str __all__ = ( - "IssuePropLabelsItemsOneof1Type", - "IssuePropPullRequestType", - "IssueType", - "SubIssuesSummaryType", + "AdvancedSecurityActiveCommittersRepositoryType", + "AdvancedSecurityActiveCommittersType", + "AdvancedSecurityActiveCommittersUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0132.py b/githubkit/versions/ghec_v2022_11_28/types/group_0132.py index 9454655e3..b5d2a4848 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0132.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0132.py @@ -9,44 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0130 import ReactionRollupType - - -class IssueCommentType(TypedDict): - """Issue Comment - - Comments provide a way for people to collaborate on an issue. - """ - - id: int - node_id: str - url: str - body: NotRequired[str] - body_text: NotRequired[str] - body_html: NotRequired[str] - html_url: str - user: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - issue_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("IssueCommentType",) + +class GetAllCostCentersType(TypedDict): + """GetAllCostCenters""" + + cost_centers: NotRequired[list[GetAllCostCentersPropCostCentersItemsType]] + + +class GetAllCostCentersPropCostCentersItemsType(TypedDict): + """GetAllCostCentersPropCostCentersItems""" + + id: str + name: str + resources: list[GetAllCostCentersPropCostCentersItemsPropResourcesItemsType] + + +class GetAllCostCentersPropCostCentersItemsPropResourcesItemsType(TypedDict): + """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" + + type: str + name: str + + +__all__ = ( + "GetAllCostCentersPropCostCentersItemsPropResourcesItemsType", + "GetAllCostCentersPropCostCentersItemsType", + "GetAllCostCentersType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0133.py b/githubkit/versions/ghec_v2022_11_28/types/group_0133.py index 7a8301d0e..cac22c41a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0133.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0133.py @@ -9,76 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0131 import IssueType -from .group_0132 import IssueCommentType +class PackagesBillingUsageType(TypedDict): + """PackagesBillingUsage""" -class EventPropPayloadType(TypedDict): - """EventPropPayload""" + total_gigabytes_bandwidth_used: int + total_paid_gigabytes_bandwidth_used: int + included_gigabytes_bandwidth: int - action: NotRequired[str] - issue: NotRequired[IssueType] - comment: NotRequired[IssueCommentType] - pages: NotRequired[list[EventPropPayloadPropPagesItemsType]] - -class EventPropPayloadPropPagesItemsType(TypedDict): - """EventPropPayloadPropPagesItems""" - - page_name: NotRequired[str] - title: NotRequired[str] - summary: NotRequired[Union[str, None]] - action: NotRequired[str] - sha: NotRequired[str] - html_url: NotRequired[str] - - -class EventType(TypedDict): - """Event - - Event - """ - - id: str - type: Union[str, None] - actor: ActorType - repo: EventPropRepoType - org: NotRequired[ActorType] - payload: EventPropPayloadType - public: bool - created_at: Union[datetime, None] - - -class ActorType(TypedDict): - """Actor - - Actor - """ - - id: int - login: str - display_login: NotRequired[str] - gravatar_id: Union[str, None] - url: str - avatar_url: str - - -class EventPropRepoType(TypedDict): - """EventPropRepo""" - - id: int - name: str - url: str - - -__all__ = ( - "ActorType", - "EventPropPayloadPropPagesItemsType", - "EventPropPayloadType", - "EventPropRepoType", - "EventType", -) +__all__ = ("PackagesBillingUsageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0134.py b/githubkit/versions/ghec_v2022_11_28/types/group_0134.py index b0afe5713..15a19a09d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0134.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0134.py @@ -9,55 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class FeedType(TypedDict): - """Feed +class CombinedBillingUsageType(TypedDict): + """CombinedBillingUsage""" - Feed - """ + days_left_in_billing_cycle: int + estimated_paid_storage_for_month: int + estimated_storage_for_month: int - timeline_url: str - user_url: str - current_user_public_url: NotRequired[str] - current_user_url: NotRequired[str] - current_user_actor_url: NotRequired[str] - current_user_organization_url: NotRequired[str] - current_user_organization_urls: NotRequired[list[str]] - security_advisories_url: NotRequired[str] - repository_discussions_url: NotRequired[str] - repository_discussions_category_url: NotRequired[str] - links: FeedPropLinksType - -class FeedPropLinksType(TypedDict): - """FeedPropLinks""" - - timeline: LinkWithTypeType - user: LinkWithTypeType - security_advisories: NotRequired[LinkWithTypeType] - current_user: NotRequired[LinkWithTypeType] - current_user_public: NotRequired[LinkWithTypeType] - current_user_actor: NotRequired[LinkWithTypeType] - current_user_organization: NotRequired[LinkWithTypeType] - current_user_organizations: NotRequired[list[LinkWithTypeType]] - repository_discussions: NotRequired[LinkWithTypeType] - repository_discussions_category: NotRequired[LinkWithTypeType] - - -class LinkWithTypeType(TypedDict): - """Link With Type - - Hypermedia Link with Type - """ - - href: str - type: str - - -__all__ = ( - "FeedPropLinksType", - "FeedType", - "LinkWithTypeType", -) +__all__ = ("CombinedBillingUsageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0135.py b/githubkit/versions/ghec_v2022_11_28/types/group_0135.py index 6c87fa1f4..8b794ad2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0135.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0135.py @@ -9,48 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0002 import SimpleUserType - - -class BaseGistType(TypedDict): - """Base Gist - - Base Gist - """ - - url: str - forks_url: str - commits_url: str - id: str - node_id: str - git_pull_url: str - git_push_url: str - html_url: str - files: BaseGistPropFilesType - public: bool - created_at: datetime - updated_at: datetime - description: Union[str, None] - comments: int - comments_enabled: NotRequired[bool] - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - forks: NotRequired[list[Any]] - history: NotRequired[list[Any]] - - -BaseGistPropFilesType: TypeAlias = dict[str, Any] -"""BaseGistPropFiles -""" +from typing_extensions import NotRequired, TypedDict + + +class BillingUsageReportType(TypedDict): + """BillingUsageReport""" + + usage_items: NotRequired[list[BillingUsageReportPropUsageItemsItemsType]] + + +class BillingUsageReportPropUsageItemsItemsType(TypedDict): + """BillingUsageReportPropUsageItemsItems""" + + date: str + product: str + sku: str + quantity: int + unit_type: str + price_per_unit: float + gross_amount: float + discount_amount: float + net_amount: float + organization_name: str + repository_name: NotRequired[str] __all__ = ( - "BaseGistPropFilesType", - "BaseGistType", + "BillingUsageReportPropUsageItemsItemsType", + "BillingUsageReportType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0136.py b/githubkit/versions/ghec_v2022_11_28/types/group_0136.py index 758fd6646..1bd13ab39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0136.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0136.py @@ -10,70 +10,34 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType -class GistHistoryType(TypedDict): - """Gist History +class MilestoneType(TypedDict): + """Milestone - Gist History - """ - - user: NotRequired[Union[None, SimpleUserType]] - version: NotRequired[str] - committed_at: NotRequired[datetime] - change_status: NotRequired[GistHistoryPropChangeStatusType] - url: NotRequired[str] - - -class GistHistoryPropChangeStatusType(TypedDict): - """GistHistoryPropChangeStatus""" - - total: NotRequired[int] - additions: NotRequired[int] - deletions: NotRequired[int] - - -class GistSimplePropForkOfType(TypedDict): - """Gist - - Gist + A collection of related issues and pull requests. """ url: str - forks_url: str - commits_url: str - id: str - node_id: str - git_pull_url: str - git_push_url: str html_url: str - files: GistSimplePropForkOfPropFilesType - public: bool + labels_url: str + id: int + node_id: str + number: int + state: Literal["open", "closed"] + title: str + description: Union[str, None] + creator: Union[None, SimpleUserType] + open_issues: int + closed_issues: int created_at: datetime updated_at: datetime - description: Union[str, None] - comments: int - comments_enabled: NotRequired[bool] - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[Union[None, SimpleUserType]] - truncated: NotRequired[bool] - forks: NotRequired[list[Any]] - history: NotRequired[list[Any]] - - -GistSimplePropForkOfPropFilesType: TypeAlias = dict[str, Any] -"""GistSimplePropForkOfPropFiles -""" + closed_at: Union[datetime, None] + due_on: Union[datetime, None] -__all__ = ( - "GistHistoryPropChangeStatusType", - "GistHistoryType", - "GistSimplePropForkOfPropFilesType", - "GistSimplePropForkOfType", -) +__all__ = ("MilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0137.py b/githubkit/versions/ghec_v2022_11_28/types/group_0137.py index 9d283e77f..8a6080a74 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0137.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0137.py @@ -9,120 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0136 import GistHistoryType, GistSimplePropForkOfType +class ReactionRollupType(TypedDict): + """Reaction Rollup""" -class GistSimpleType(TypedDict): - """Gist Simple - - Gist Simple - """ - - forks: NotRequired[Union[list[GistSimplePropForksItemsType], None]] - history: NotRequired[Union[list[GistHistoryType], None]] - fork_of: NotRequired[Union[GistSimplePropForkOfType, None]] - url: NotRequired[str] - forks_url: NotRequired[str] - commits_url: NotRequired[str] - id: NotRequired[str] - node_id: NotRequired[str] - git_pull_url: NotRequired[str] - git_push_url: NotRequired[str] - html_url: NotRequired[str] - files: NotRequired[GistSimplePropFilesType] - public: NotRequired[bool] - created_at: NotRequired[str] - updated_at: NotRequired[str] - description: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_enabled: NotRequired[bool] - user: NotRequired[Union[str, None]] - comments_url: NotRequired[str] - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - - -GistSimplePropFilesType: TypeAlias = dict[str, Any] -"""GistSimplePropFiles -""" - - -class GistSimplePropForksItemsType(TypedDict): - """GistSimplePropForksItems""" - - id: NotRequired[str] - url: NotRequired[str] - user: NotRequired[PublicUserType] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - - -class PublicUserType(TypedDict): - """Public User - - Public User - """ - - login: str - id: int - user_view_type: NotRequired[str] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - name: Union[str, None] - company: Union[str, None] - blog: Union[str, None] - location: Union[str, None] - email: Union[str, None] - notification_email: NotRequired[Union[str, None]] - hireable: Union[bool, None] - bio: Union[str, None] - twitter_username: NotRequired[Union[str, None]] - public_repos: int - public_gists: int - followers: int - following: int - created_at: datetime - updated_at: datetime - plan: NotRequired[PublicUserPropPlanType] - private_gists: NotRequired[int] - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - disk_usage: NotRequired[int] - collaborators: NotRequired[int] - - -class PublicUserPropPlanType(TypedDict): - """PublicUserPropPlan""" - - collaborators: int - name: str - space: int - private_repos: int - - -__all__ = ( - "GistSimplePropFilesType", - "GistSimplePropForksItemsType", - "GistSimpleType", - "PublicUserPropPlanType", - "PublicUserType", -) + total_count: int + plus_one: int + minus_one: int + laugh: int + confused: int + heart: int + hooray: int + eyes: int + rocket: int + + +__all__ = ("ReactionRollupType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0138.py b/githubkit/versions/ghec_v2022_11_28/types/group_0138.py index c259f32b1..b98227e21 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0138.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0138.py @@ -11,24 +11,56 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0020 import RepositoryType +from .group_0136 import MilestoneType +from .group_0137 import ReactionRollupType -class GistCommentType(TypedDict): - """Gist Comment +class IssueType(TypedDict): + """Issue - A comment made to a gist. + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ id: int node_id: str url: str - body: str + repository_url: str + labels_url: str + comments_url: str + events_url: str + html_url: str + number: int + state: str + state_reason: NotRequired[ + Union[None, Literal["completed", "reopened", "not_planned"]] + ] + title: str + body: NotRequired[Union[str, None]] user: Union[None, SimpleUserType] + labels: list[Union[str, IssuePropLabelsItemsOneof1Type]] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + milestone: Union[None, MilestoneType] + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + comments: int + pull_request: NotRequired[IssuePropPullRequestType] + closed_at: Union[datetime, None] created_at: datetime updated_at: datetime + draft: NotRequired[bool] + closed_by: NotRequired[Union[None, SimpleUserType]] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + repository: NotRequired[RepositoryType] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -39,6 +71,43 @@ class GistCommentType(TypedDict): "NONE", "OWNER", ] + reactions: NotRequired[ReactionRollupType] + sub_issues_summary: NotRequired[SubIssuesSummaryType] + + +class SubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class IssuePropLabelsItemsOneof1Type(TypedDict): + """IssuePropLabelsItemsOneof1""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + default: NotRequired[bool] + + +class IssuePropPullRequestType(TypedDict): + """IssuePropPullRequest""" + + merged_at: NotRequired[Union[datetime, None]] + diff_url: Union[str, None] + html_url: Union[str, None] + patch_url: Union[str, None] + url: Union[str, None] -__all__ = ("GistCommentType",) +__all__ = ( + "IssuePropLabelsItemsOneof1Type", + "IssuePropPullRequestType", + "IssueType", + "SubIssuesSummaryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0139.py b/githubkit/versions/ghec_v2022_11_28/types/group_0139.py index bde7839f9..0fbf0df31 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0139.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0139.py @@ -10,34 +10,43 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0137 import ReactionRollupType -class GistCommitType(TypedDict): - """Gist Commit +class IssueCommentType(TypedDict): + """Issue Comment - Gist Commit + Comments provide a way for people to collaborate on an issue. """ + id: int + node_id: str url: str - version: str + body: NotRequired[str] + body_text: NotRequired[str] + body_html: NotRequired[str] + html_url: str user: Union[None, SimpleUserType] - change_status: GistCommitPropChangeStatusType - committed_at: datetime - - -class GistCommitPropChangeStatusType(TypedDict): - """GistCommitPropChangeStatus""" - - total: NotRequired[int] - additions: NotRequired[int] - deletions: NotRequired[int] - - -__all__ = ( - "GistCommitPropChangeStatusType", - "GistCommitType", -) + created_at: datetime + updated_at: datetime + issue_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("IssueCommentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0140.py b/githubkit/versions/ghec_v2022_11_28/types/group_0140.py index 69bf98302..776ebe9d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0140.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0140.py @@ -9,17 +9,76 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0138 import IssueType +from .group_0139 import IssueCommentType -class GitignoreTemplateType(TypedDict): - """Gitignore Template - Gitignore Template +class EventPropPayloadType(TypedDict): + """EventPropPayload""" + + action: NotRequired[str] + issue: NotRequired[IssueType] + comment: NotRequired[IssueCommentType] + pages: NotRequired[list[EventPropPayloadPropPagesItemsType]] + + +class EventPropPayloadPropPagesItemsType(TypedDict): + """EventPropPayloadPropPagesItems""" + + page_name: NotRequired[str] + title: NotRequired[str] + summary: NotRequired[Union[str, None]] + action: NotRequired[str] + sha: NotRequired[str] + html_url: NotRequired[str] + + +class EventType(TypedDict): + """Event + + Event """ + id: str + type: Union[str, None] + actor: ActorType + repo: EventPropRepoType + org: NotRequired[ActorType] + payload: EventPropPayloadType + public: bool + created_at: Union[datetime, None] + + +class ActorType(TypedDict): + """Actor + + Actor + """ + + id: int + login: str + display_login: NotRequired[str] + gravatar_id: Union[str, None] + url: str + avatar_url: str + + +class EventPropRepoType(TypedDict): + """EventPropRepo""" + + id: int name: str - source: str + url: str -__all__ = ("GitignoreTemplateType",) +__all__ = ( + "ActorType", + "EventPropPayloadPropPagesItemsType", + "EventPropPayloadType", + "EventPropRepoType", + "EventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0141.py b/githubkit/versions/ghec_v2022_11_28/types/group_0141.py index f471d8c73..b0afe5713 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0141.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0141.py @@ -9,29 +9,55 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class LicenseType(TypedDict): - """License +class FeedType(TypedDict): + """Feed - License + Feed """ - key: str - name: str - spdx_id: Union[str, None] - url: Union[str, None] - node_id: str - html_url: str - description: str - implementation: str - permissions: list[str] - conditions: list[str] - limitations: list[str] - body: str - featured: bool - - -__all__ = ("LicenseType",) + timeline_url: str + user_url: str + current_user_public_url: NotRequired[str] + current_user_url: NotRequired[str] + current_user_actor_url: NotRequired[str] + current_user_organization_url: NotRequired[str] + current_user_organization_urls: NotRequired[list[str]] + security_advisories_url: NotRequired[str] + repository_discussions_url: NotRequired[str] + repository_discussions_category_url: NotRequired[str] + links: FeedPropLinksType + + +class FeedPropLinksType(TypedDict): + """FeedPropLinks""" + + timeline: LinkWithTypeType + user: LinkWithTypeType + security_advisories: NotRequired[LinkWithTypeType] + current_user: NotRequired[LinkWithTypeType] + current_user_public: NotRequired[LinkWithTypeType] + current_user_actor: NotRequired[LinkWithTypeType] + current_user_organization: NotRequired[LinkWithTypeType] + current_user_organizations: NotRequired[list[LinkWithTypeType]] + repository_discussions: NotRequired[LinkWithTypeType] + repository_discussions_category: NotRequired[LinkWithTypeType] + + +class LinkWithTypeType(TypedDict): + """Link With Type + + Hypermedia Link with Type + """ + + href: str + type: str + + +__all__ = ( + "FeedPropLinksType", + "FeedType", + "LinkWithTypeType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0142.py b/githubkit/versions/ghec_v2022_11_28/types/group_0142.py index 59d9a8af7..0b66a8534 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0142.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0142.py @@ -9,29 +9,48 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType -class MarketplaceListingPlanType(TypedDict): - """Marketplace Listing Plan - Marketplace Listing Plan +class BaseGistType(TypedDict): + """Base Gist + + Base Gist """ url: str - accounts_url: str - id: int - number: int - name: str - description: str - monthly_price_in_cents: int - yearly_price_in_cents: int - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - has_free_trial: bool - unit_name: Union[str, None] - state: str - bullets: list[str] - - -__all__ = ("MarketplaceListingPlanType",) + forks_url: str + commits_url: str + id: str + node_id: str + git_pull_url: str + git_push_url: str + html_url: str + files: BaseGistPropFilesType + public: bool + created_at: datetime + updated_at: datetime + description: Union[str, None] + comments: int + comments_enabled: NotRequired[bool] + user: Union[None, SimpleUserType] + comments_url: str + owner: NotRequired[SimpleUserType] + truncated: NotRequired[bool] + forks: NotRequired[list[Any]] + history: NotRequired[list[Any]] + + +BaseGistPropFilesType: TypeAlias = dict[str, Any] +"""BaseGistPropFiles +""" + + +__all__ = ( + "BaseGistPropFilesType", + "BaseGistType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0143.py b/githubkit/versions/ghec_v2022_11_28/types/group_0143.py index 2f51d211e..7969063ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0143.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0143.py @@ -9,31 +9,71 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0144 import ( - MarketplacePurchasePropMarketplacePendingChangeType, - MarketplacePurchasePropMarketplacePurchaseType, -) +from .group_0003 import SimpleUserType -class MarketplacePurchaseType(TypedDict): - """Marketplace Purchase +class GistHistoryType(TypedDict): + """Gist History - Marketplace Purchase + Gist History + """ + + user: NotRequired[Union[None, SimpleUserType]] + version: NotRequired[str] + committed_at: NotRequired[datetime] + change_status: NotRequired[GistHistoryPropChangeStatusType] + url: NotRequired[str] + + +class GistHistoryPropChangeStatusType(TypedDict): + """GistHistoryPropChangeStatus""" + + total: NotRequired[int] + additions: NotRequired[int] + deletions: NotRequired[int] + + +class GistSimplePropForkOfType(TypedDict): + """Gist + + Gist """ url: str - type: str - id: int - login: str - organization_billing_email: NotRequired[str] - email: NotRequired[Union[str, None]] - marketplace_pending_change: NotRequired[ - Union[MarketplacePurchasePropMarketplacePendingChangeType, None] - ] - marketplace_purchase: MarketplacePurchasePropMarketplacePurchaseType - - -__all__ = ("MarketplacePurchaseType",) + forks_url: str + commits_url: str + id: str + node_id: str + git_pull_url: str + git_push_url: str + html_url: str + files: GistSimplePropForkOfPropFilesType + public: bool + created_at: datetime + updated_at: datetime + description: Union[str, None] + comments: int + comments_enabled: NotRequired[bool] + user: Union[None, SimpleUserType] + comments_url: str + owner: NotRequired[Union[None, SimpleUserType]] + truncated: NotRequired[bool] + forks: NotRequired[list[Any]] + history: NotRequired[list[Any]] + + +GistSimplePropForkOfPropFilesType: TypeAlias = dict[str, Any] +"""GistSimplePropForkOfPropFiles +""" + + +__all__ = ( + "GistHistoryPropChangeStatusType", + "GistHistoryType", + "GistSimplePropForkOfPropFilesType", + "GistSimplePropForkOfType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0144.py b/githubkit/versions/ghec_v2022_11_28/types/group_0144.py index 78c0e7718..c49f9d505 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0144.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0144.py @@ -9,36 +9,120 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0142 import MarketplaceListingPlanType +from .group_0003 import SimpleUserType +from .group_0143 import GistHistoryType, GistSimplePropForkOfType -class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): - """MarketplacePurchasePropMarketplacePendingChange""" +class GistSimpleType(TypedDict): + """Gist Simple - is_installed: NotRequired[bool] - effective_date: NotRequired[str] - unit_count: NotRequired[Union[int, None]] - id: NotRequired[int] - plan: NotRequired[MarketplaceListingPlanType] + Gist Simple + """ + forks: NotRequired[Union[list[GistSimplePropForksItemsType], None]] + history: NotRequired[Union[list[GistHistoryType], None]] + fork_of: NotRequired[Union[GistSimplePropForkOfType, None]] + url: NotRequired[str] + forks_url: NotRequired[str] + commits_url: NotRequired[str] + id: NotRequired[str] + node_id: NotRequired[str] + git_pull_url: NotRequired[str] + git_push_url: NotRequired[str] + html_url: NotRequired[str] + files: NotRequired[GistSimplePropFilesType] + public: NotRequired[bool] + created_at: NotRequired[str] + updated_at: NotRequired[str] + description: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_enabled: NotRequired[bool] + user: NotRequired[Union[str, None]] + comments_url: NotRequired[str] + owner: NotRequired[SimpleUserType] + truncated: NotRequired[bool] -class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): - """MarketplacePurchasePropMarketplacePurchase""" - billing_cycle: NotRequired[str] - next_billing_date: NotRequired[Union[str, None]] - is_installed: NotRequired[bool] - unit_count: NotRequired[Union[int, None]] - on_free_trial: NotRequired[bool] - free_trial_ends_on: NotRequired[Union[str, None]] - updated_at: NotRequired[str] - plan: NotRequired[MarketplaceListingPlanType] +GistSimplePropFilesType: TypeAlias = dict[str, Any] +"""GistSimplePropFiles +""" + + +class GistSimplePropForksItemsType(TypedDict): + """GistSimplePropForksItems""" + + id: NotRequired[str] + url: NotRequired[str] + user: NotRequired[PublicUserType] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + + +class PublicUserType(TypedDict): + """Public User + + Public User + """ + + login: str + id: int + user_view_type: NotRequired[str] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + name: Union[str, None] + company: Union[str, None] + blog: Union[str, None] + location: Union[str, None] + email: Union[str, None] + notification_email: NotRequired[Union[str, None]] + hireable: Union[bool, None] + bio: Union[str, None] + twitter_username: NotRequired[Union[str, None]] + public_repos: int + public_gists: int + followers: int + following: int + created_at: datetime + updated_at: datetime + plan: NotRequired[PublicUserPropPlanType] + private_gists: NotRequired[int] + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + disk_usage: NotRequired[int] + collaborators: NotRequired[int] + + +class PublicUserPropPlanType(TypedDict): + """PublicUserPropPlan""" + + collaborators: int + name: str + space: int + private_repos: int __all__ = ( - "MarketplacePurchasePropMarketplacePendingChangeType", - "MarketplacePurchasePropMarketplacePurchaseType", + "GistSimplePropFilesType", + "GistSimplePropForksItemsType", + "GistSimpleType", + "PublicUserPropPlanType", + "PublicUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0145.py b/githubkit/versions/ghec_v2022_11_28/types/group_0145.py index d0e33aad3..d69692063 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0145.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0145.py @@ -9,75 +9,36 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class ApiOverviewType(TypedDict): - """Api Overview - Api Overview - """ - - verifiable_password_authentication: bool - ssh_key_fingerprints: NotRequired[ApiOverviewPropSshKeyFingerprintsType] - ssh_keys: NotRequired[list[str]] - hooks: NotRequired[list[str]] - github_enterprise_importer: NotRequired[list[str]] - web: NotRequired[list[str]] - api: NotRequired[list[str]] - git: NotRequired[list[str]] - packages: NotRequired[list[str]] - pages: NotRequired[list[str]] - importer: NotRequired[list[str]] - actions: NotRequired[list[str]] - actions_macos: NotRequired[list[str]] - codespaces: NotRequired[list[str]] - dependabot: NotRequired[list[str]] - copilot: NotRequired[list[str]] - domains: NotRequired[ApiOverviewPropDomainsType] - - -class ApiOverviewPropSshKeyFingerprintsType(TypedDict): - """ApiOverviewPropSshKeyFingerprints""" +class GistCommentType(TypedDict): + """Gist Comment - sha256_rsa: NotRequired[str] - sha256_dsa: NotRequired[str] - sha256_ecdsa: NotRequired[str] - sha256_ed25519: NotRequired[str] - - -class ApiOverviewPropDomainsType(TypedDict): - """ApiOverviewPropDomains""" + A comment made to a gist. + """ - website: NotRequired[list[str]] - codespaces: NotRequired[list[str]] - copilot: NotRequired[list[str]] - packages: NotRequired[list[str]] - actions: NotRequired[list[str]] - actions_inbound: NotRequired[ApiOverviewPropDomainsPropActionsInboundType] - artifact_attestations: NotRequired[ - ApiOverviewPropDomainsPropArtifactAttestationsType + id: int + node_id: str + url: str + body: str + user: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] -class ApiOverviewPropDomainsPropActionsInboundType(TypedDict): - """ApiOverviewPropDomainsPropActionsInbound""" - - full_domains: NotRequired[list[str]] - wildcard_domains: NotRequired[list[str]] - - -class ApiOverviewPropDomainsPropArtifactAttestationsType(TypedDict): - """ApiOverviewPropDomainsPropArtifactAttestations""" - - trust_domain: NotRequired[str] - services: NotRequired[list[str]] - - -__all__ = ( - "ApiOverviewPropDomainsPropActionsInboundType", - "ApiOverviewPropDomainsPropArtifactAttestationsType", - "ApiOverviewPropDomainsType", - "ApiOverviewPropSshKeyFingerprintsType", - "ApiOverviewType", -) +__all__ = ("GistCommentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0146.py b/githubkit/versions/ghec_v2022_11_28/types/group_0146.py index 64674e591..a6cb34469 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0146.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0146.py @@ -9,84 +9,35 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class SecurityAndAnalysisType(TypedDict): - """SecurityAndAnalysis""" - advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] - dependabot_security_updates: NotRequired[ - SecurityAndAnalysisPropDependabotSecurityUpdatesType - ] - secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] - secret_scanning_push_protection: NotRequired[ - SecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_non_provider_patterns: NotRequired[ - SecurityAndAnalysisPropSecretScanningNonProviderPatternsType - ] - secret_scanning_ai_detection: NotRequired[ - SecurityAndAnalysisPropSecretScanningAiDetectionType - ] - secret_scanning_validity_checks: NotRequired[ - SecurityAndAnalysisPropSecretScanningValidityChecksType - ] +class GistCommitType(TypedDict): + """Gist Commit - -class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): - """SecurityAndAnalysisPropDependabotSecurityUpdates - - Enable or disable Dependabot security updates for the repository. + Gist Commit """ - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningType(TypedDict): - """SecurityAndAnalysisPropSecretScanning""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): - """SecurityAndAnalysisPropSecretScanningPushProtection""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningNonProviderPatternsType(TypedDict): - """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningAiDetectionType(TypedDict): - """SecurityAndAnalysisPropSecretScanningAiDetection""" - - status: NotRequired[Literal["enabled", "disabled"]] + url: str + version: str + user: Union[None, SimpleUserType] + change_status: GistCommitPropChangeStatusType + committed_at: datetime -class SecurityAndAnalysisPropSecretScanningValidityChecksType(TypedDict): - """SecurityAndAnalysisPropSecretScanningValidityChecks""" +class GistCommitPropChangeStatusType(TypedDict): + """GistCommitPropChangeStatus""" - status: NotRequired[Literal["enabled", "disabled"]] + total: NotRequired[int] + additions: NotRequired[int] + deletions: NotRequired[int] __all__ = ( - "SecurityAndAnalysisPropAdvancedSecurityType", - "SecurityAndAnalysisPropDependabotSecurityUpdatesType", - "SecurityAndAnalysisPropSecretScanningAiDetectionType", - "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "SecurityAndAnalysisPropSecretScanningPushProtectionType", - "SecurityAndAnalysisPropSecretScanningType", - "SecurityAndAnalysisPropSecretScanningValidityChecksType", - "SecurityAndAnalysisType", + "GistCommitPropChangeStatusType", + "GistCommitType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0147.py b/githubkit/versions/ghec_v2022_11_28/types/group_0147.py index c1f1c3f74..69bf98302 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0147.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0147.py @@ -9,145 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0146 import SecurityAndAnalysisType +class GitignoreTemplateType(TypedDict): + """Gitignore Template -class MinimalRepositoryType(TypedDict): - """Minimal Repository - - Minimal Repository - """ - - id: int - node_id: str - name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: NotRequired[str] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: NotRequired[str] - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: NotRequired[str] - mirror_url: NotRequired[Union[str, None]] - hooks_url: str - svn_url: NotRequired[str] - homepage: NotRequired[Union[str, None]] - language: NotRequired[Union[str, None]] - forks_count: NotRequired[int] - stargazers_count: NotRequired[int] - watchers_count: NotRequired[int] - size: NotRequired[int] - default_branch: NotRequired[str] - open_issues_count: NotRequired[int] - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_pages: NotRequired[bool] - has_downloads: NotRequired[bool] - has_discussions: NotRequired[bool] - archived: NotRequired[bool] - disabled: NotRequired[bool] - visibility: NotRequired[str] - pushed_at: NotRequired[Union[datetime, None]] - created_at: NotRequired[Union[datetime, None]] - updated_at: NotRequired[Union[datetime, None]] - permissions: NotRequired[MinimalRepositoryPropPermissionsType] - role_name: NotRequired[str] - temp_clone_token: NotRequired[Union[str, None]] - delete_branch_on_merge: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - code_of_conduct: NotRequired[CodeOfConductType] - license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] - forks: NotRequired[int] - open_issues: NotRequired[int] - watchers: NotRequired[int] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] - - -class CodeOfConductType(TypedDict): - """Code Of Conduct - - Code Of Conduct + Gitignore Template """ - key: str name: str - url: str - body: NotRequired[str] - html_url: Union[str, None] - - -class MinimalRepositoryPropPermissionsType(TypedDict): - """MinimalRepositoryPropPermissions""" - - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] - - -class MinimalRepositoryPropLicenseType(TypedDict): - """MinimalRepositoryPropLicense""" - - key: NotRequired[str] - name: NotRequired[str] - spdx_id: NotRequired[str] - url: NotRequired[str] - node_id: NotRequired[str] + source: str -__all__ = ( - "CodeOfConductType", - "MinimalRepositoryPropLicenseType", - "MinimalRepositoryPropPermissionsType", - "MinimalRepositoryType", -) +__all__ = ("GitignoreTemplateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0148.py b/githubkit/versions/ghec_v2022_11_28/types/group_0148.py index 25c1d0950..f471d8c73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0148.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0148.py @@ -12,36 +12,26 @@ from typing import Union from typing_extensions import TypedDict -from .group_0147 import MinimalRepositoryType +class LicenseType(TypedDict): + """License -class ThreadType(TypedDict): - """Thread - - Thread + License """ - id: str - repository: MinimalRepositoryType - subject: ThreadPropSubjectType - reason: str - unread: bool - updated_at: str - last_read_at: Union[str, None] - url: str - subscription_url: str - - -class ThreadPropSubjectType(TypedDict): - """ThreadPropSubject""" - - title: str - url: str - latest_comment_url: str - type: str - - -__all__ = ( - "ThreadPropSubjectType", - "ThreadType", -) + key: str + name: str + spdx_id: Union[str, None] + url: Union[str, None] + node_id: str + html_url: str + description: str + implementation: str + permissions: list[str] + conditions: list[str] + limitations: list[str] + body: str + featured: bool + + +__all__ = ("LicenseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0149.py b/githubkit/versions/ghec_v2022_11_28/types/group_0149.py index f0966921a..59d9a8af7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0149.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0149.py @@ -9,24 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class ThreadSubscriptionType(TypedDict): - """Thread Subscription +class MarketplaceListingPlanType(TypedDict): + """Marketplace Listing Plan - Thread Subscription + Marketplace Listing Plan """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: Union[datetime, None] url: str - thread_url: NotRequired[str] - repository_url: NotRequired[str] - - -__all__ = ("ThreadSubscriptionType",) + accounts_url: str + id: int + number: int + name: str + description: str + monthly_price_in_cents: int + yearly_price_in_cents: int + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + has_free_trial: bool + unit_name: Union[str, None] + state: str + bullets: list[str] + + +__all__ = ("MarketplaceListingPlanType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0150.py b/githubkit/versions/ghec_v2022_11_28/types/group_0150.py index 6582b9b23..6857f19d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0150.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0150.py @@ -9,27 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0151 import ( + MarketplacePurchasePropMarketplacePendingChangeType, + MarketplacePurchasePropMarketplacePurchaseType, +) -class OrganizationCustomRepositoryRoleType(TypedDict): - """Organization Custom Repository Role +class MarketplacePurchaseType(TypedDict): + """Marketplace Purchase - Custom repository roles created by organization owners + Marketplace Purchase """ + url: str + type: str id: int - name: str - description: NotRequired[Union[str, None]] - base_role: Literal["read", "triage", "write", "maintain"] - permissions: list[str] - organization: SimpleUserType - created_at: datetime - updated_at: datetime + login: str + organization_billing_email: NotRequired[str] + email: NotRequired[Union[str, None]] + marketplace_pending_change: NotRequired[ + Union[MarketplacePurchasePropMarketplacePendingChangeType, None] + ] + marketplace_purchase: MarketplacePurchasePropMarketplacePurchaseType -__all__ = ("OrganizationCustomRepositoryRoleType",) +__all__ = ("MarketplacePurchaseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0151.py b/githubkit/versions/ghec_v2022_11_28/types/group_0151.py index 8318560d5..74b440b22 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0151.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0151.py @@ -9,97 +9,36 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0149 import MarketplaceListingPlanType -class OrganizationFullType(TypedDict): - """Organization Full - Prevents users in the organization from using insecure methods of two-factor - authentication to fulfill a two-factor requirement. - Removes non-compliant outside collaborators from the organization and its - repositories. +class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): + """MarketplacePurchasePropMarketplacePendingChange""" - GitHub currently defines SMS as an insecure method of two-factor authentication. + is_installed: NotRequired[bool] + effective_date: NotRequired[str] + unit_count: NotRequired[Union[int, None]] + id: NotRequired[int] + plan: NotRequired[MarketplaceListingPlanType] - If your users are managed by the enterprise this policy will not affect them. - The first admin account of the enterprise will still be affected. - """ - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[OrganizationFullPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - secret_scanning_validity_checks_enabled: NotRequired[bool] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] - deploy_keys_enabled_for_repositories: NotRequired[bool] +class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): + """MarketplacePurchasePropMarketplacePurchase""" - -class OrganizationFullPropPlanType(TypedDict): - """OrganizationFullPropPlan""" - - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] + billing_cycle: NotRequired[str] + next_billing_date: NotRequired[Union[str, None]] + is_installed: NotRequired[bool] + unit_count: NotRequired[Union[int, None]] + on_free_trial: NotRequired[bool] + free_trial_ends_on: NotRequired[Union[str, None]] + updated_at: NotRequired[str] + plan: NotRequired[MarketplaceListingPlanType] __all__ = ( - "OrganizationFullPropPlanType", - "OrganizationFullType", + "MarketplacePurchasePropMarketplacePendingChangeType", + "MarketplacePurchasePropMarketplacePurchaseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0152.py b/githubkit/versions/ghec_v2022_11_28/types/group_0152.py index f8ed08e06..d0e33aad3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0152.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0152.py @@ -9,16 +9,75 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OidcCustomSubType(TypedDict): - """Actions OIDC Subject customization +class ApiOverviewType(TypedDict): + """Api Overview - Actions OIDC Subject customization + Api Overview """ - include_claim_keys: list[str] + verifiable_password_authentication: bool + ssh_key_fingerprints: NotRequired[ApiOverviewPropSshKeyFingerprintsType] + ssh_keys: NotRequired[list[str]] + hooks: NotRequired[list[str]] + github_enterprise_importer: NotRequired[list[str]] + web: NotRequired[list[str]] + api: NotRequired[list[str]] + git: NotRequired[list[str]] + packages: NotRequired[list[str]] + pages: NotRequired[list[str]] + importer: NotRequired[list[str]] + actions: NotRequired[list[str]] + actions_macos: NotRequired[list[str]] + codespaces: NotRequired[list[str]] + dependabot: NotRequired[list[str]] + copilot: NotRequired[list[str]] + domains: NotRequired[ApiOverviewPropDomainsType] -__all__ = ("OidcCustomSubType",) +class ApiOverviewPropSshKeyFingerprintsType(TypedDict): + """ApiOverviewPropSshKeyFingerprints""" + + sha256_rsa: NotRequired[str] + sha256_dsa: NotRequired[str] + sha256_ecdsa: NotRequired[str] + sha256_ed25519: NotRequired[str] + + +class ApiOverviewPropDomainsType(TypedDict): + """ApiOverviewPropDomains""" + + website: NotRequired[list[str]] + codespaces: NotRequired[list[str]] + copilot: NotRequired[list[str]] + packages: NotRequired[list[str]] + actions: NotRequired[list[str]] + actions_inbound: NotRequired[ApiOverviewPropDomainsPropActionsInboundType] + artifact_attestations: NotRequired[ + ApiOverviewPropDomainsPropArtifactAttestationsType + ] + + +class ApiOverviewPropDomainsPropActionsInboundType(TypedDict): + """ApiOverviewPropDomainsPropActionsInbound""" + + full_domains: NotRequired[list[str]] + wildcard_domains: NotRequired[list[str]] + + +class ApiOverviewPropDomainsPropArtifactAttestationsType(TypedDict): + """ApiOverviewPropDomainsPropArtifactAttestations""" + + trust_domain: NotRequired[str] + services: NotRequired[list[str]] + + +__all__ = ( + "ApiOverviewPropDomainsPropActionsInboundType", + "ApiOverviewPropDomainsPropArtifactAttestationsType", + "ApiOverviewPropDomainsType", + "ApiOverviewPropSshKeyFingerprintsType", + "ApiOverviewType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0153.py b/githubkit/versions/ghec_v2022_11_28/types/group_0153.py index f02f87f3d..64674e591 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0153.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0153.py @@ -13,13 +13,80 @@ from typing_extensions import NotRequired, TypedDict -class ActionsOrganizationPermissionsType(TypedDict): - """ActionsOrganizationPermissions""" +class SecurityAndAnalysisType(TypedDict): + """SecurityAndAnalysis""" - enabled_repositories: Literal["all", "none", "selected"] - selected_repositories_url: NotRequired[str] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] + advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] + dependabot_security_updates: NotRequired[ + SecurityAndAnalysisPropDependabotSecurityUpdatesType + ] + secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] + secret_scanning_push_protection: NotRequired[ + SecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + SecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + secret_scanning_ai_detection: NotRequired[ + SecurityAndAnalysisPropSecretScanningAiDetectionType + ] + secret_scanning_validity_checks: NotRequired[ + SecurityAndAnalysisPropSecretScanningValidityChecksType + ] -__all__ = ("ActionsOrganizationPermissionsType",) +class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """SecurityAndAnalysisPropAdvancedSecurity""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. + """ + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningType(TypedDict): + """SecurityAndAnalysisPropSecretScanning""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningPushProtection""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningNonProviderPatternsType(TypedDict): + """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningAiDetectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningAiDetection""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningValidityChecksType(TypedDict): + """SecurityAndAnalysisPropSecretScanningValidityChecks""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +__all__ = ( + "SecurityAndAnalysisPropAdvancedSecurityType", + "SecurityAndAnalysisPropDependabotSecurityUpdatesType", + "SecurityAndAnalysisPropSecretScanningAiDetectionType", + "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "SecurityAndAnalysisPropSecretScanningPushProtectionType", + "SecurityAndAnalysisPropSecretScanningType", + "SecurityAndAnalysisPropSecretScanningValidityChecksType", + "SecurityAndAnalysisType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0154.py b/githubkit/versions/ghec_v2022_11_28/types/group_0154.py index f67033a97..bf494d0c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0154.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0154.py @@ -9,21 +9,145 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0153 import SecurityAndAnalysisType -class ActionsPublicKeyType(TypedDict): - """ActionsPublicKey - The public key used for setting Actions Secrets. +class MinimalRepositoryType(TypedDict): + """Minimal Repository + + Minimal Repository + """ + + id: int + node_id: str + name: str + full_name: str + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: NotRequired[str] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: NotRequired[str] + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: NotRequired[str] + mirror_url: NotRequired[Union[str, None]] + hooks_url: str + svn_url: NotRequired[str] + homepage: NotRequired[Union[str, None]] + language: NotRequired[Union[str, None]] + forks_count: NotRequired[int] + stargazers_count: NotRequired[int] + watchers_count: NotRequired[int] + size: NotRequired[int] + default_branch: NotRequired[str] + open_issues_count: NotRequired[int] + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_pages: NotRequired[bool] + has_downloads: NotRequired[bool] + has_discussions: NotRequired[bool] + archived: NotRequired[bool] + disabled: NotRequired[bool] + visibility: NotRequired[str] + pushed_at: NotRequired[Union[datetime, None]] + created_at: NotRequired[Union[datetime, None]] + updated_at: NotRequired[Union[datetime, None]] + permissions: NotRequired[MinimalRepositoryPropPermissionsType] + role_name: NotRequired[str] + temp_clone_token: NotRequired[Union[str, None]] + delete_branch_on_merge: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + code_of_conduct: NotRequired[CodeOfConductType] + license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] + forks: NotRequired[int] + open_issues: NotRequired[int] + watchers: NotRequired[int] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + + +class CodeOfConductType(TypedDict): + """Code Of Conduct + + Code Of Conduct """ - key_id: str key: str - id: NotRequired[int] + name: str + url: str + body: NotRequired[str] + html_url: Union[str, None] + + +class MinimalRepositoryPropPermissionsType(TypedDict): + """MinimalRepositoryPropPermissions""" + + admin: NotRequired[bool] + maintain: NotRequired[bool] + push: NotRequired[bool] + triage: NotRequired[bool] + pull: NotRequired[bool] + + +class MinimalRepositoryPropLicenseType(TypedDict): + """MinimalRepositoryPropLicense""" + + key: NotRequired[str] + name: NotRequired[str] + spdx_id: NotRequired[str] url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] + node_id: NotRequired[str] -__all__ = ("ActionsPublicKeyType",) +__all__ = ( + "CodeOfConductType", + "MinimalRepositoryPropLicenseType", + "MinimalRepositoryPropPermissionsType", + "MinimalRepositoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0155.py b/githubkit/versions/ghec_v2022_11_28/types/group_0155.py index ae609b141..3b1dd643e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0155.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0155.py @@ -9,107 +9,39 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict +from .group_0154 import MinimalRepositoryType -class PushRuleBypassRequestType(TypedDict): - """Push rule bypass request - A bypass request made by a user asking to be exempted from a push rule in this - repository. - """ - - id: NotRequired[int] - number: NotRequired[int] - repository: NotRequired[PushRuleBypassRequestPropRepositoryType] - organization: NotRequired[PushRuleBypassRequestPropOrganizationType] - requester: NotRequired[PushRuleBypassRequestPropRequesterType] - request_type: NotRequired[str] - data: NotRequired[Union[list[PushRuleBypassRequestPropDataItemsType], None]] - resource_identifier: NotRequired[str] - status: NotRequired[ - Literal[ - "pending", "denied", "approved", "cancelled", "completed", "expired", "open" - ] - ] - requester_comment: NotRequired[Union[str, None]] - expires_at: NotRequired[datetime] - created_at: NotRequired[datetime] - responses: NotRequired[Union[list[BypassResponseType], None]] - url: NotRequired[str] - html_url: NotRequired[str] - - -class PushRuleBypassRequestPropRepositoryType(TypedDict): - """PushRuleBypassRequestPropRepository - - The repository the bypass request is for. - """ - - id: NotRequired[int] - name: NotRequired[str] - full_name: NotRequired[str] - - -class PushRuleBypassRequestPropOrganizationType(TypedDict): - """PushRuleBypassRequestPropOrganization - - The organization associated with the repository the bypass request is for. - """ - - id: NotRequired[int] - name: NotRequired[str] +class ThreadType(TypedDict): + """Thread - -class PushRuleBypassRequestPropRequesterType(TypedDict): - """PushRuleBypassRequestPropRequester - - The user who requested the bypass. - """ - - actor_id: NotRequired[int] - actor_name: NotRequired[str] - - -class PushRuleBypassRequestPropDataItemsType(TypedDict): - """PushRuleBypassRequestPropDataItems""" - - ruleset_id: NotRequired[int] - ruleset_name: NotRequired[str] - total_violations: NotRequired[int] - rule_type: NotRequired[str] - - -class BypassResponseType(TypedDict): - """Bypass response - - A response made by a delegated bypasser to a bypass request. + Thread """ - id: NotRequired[int] - reviewer: NotRequired[BypassResponsePropReviewerType] - status: NotRequired[Literal["approved", "denied", "dismissed"]] - created_at: NotRequired[datetime] - + id: str + repository: MinimalRepositoryType + subject: ThreadPropSubjectType + reason: str + unread: bool + updated_at: str + last_read_at: Union[str, None] + url: str + subscription_url: str -class BypassResponsePropReviewerType(TypedDict): - """BypassResponsePropReviewer - The user who reviewed the bypass request. - """ +class ThreadPropSubjectType(TypedDict): + """ThreadPropSubject""" - actor_id: NotRequired[int] - actor_name: NotRequired[str] + title: str + url: str + latest_comment_url: str + type: str __all__ = ( - "BypassResponsePropReviewerType", - "BypassResponseType", - "PushRuleBypassRequestPropDataItemsType", - "PushRuleBypassRequestPropOrganizationType", - "PushRuleBypassRequestPropRepositoryType", - "PushRuleBypassRequestPropRequesterType", - "PushRuleBypassRequestType", + "ThreadPropSubjectType", + "ThreadType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0156.py b/githubkit/versions/ghec_v2022_11_28/types/group_0156.py index febb2d4f6..f0966921a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0156.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0156.py @@ -9,23 +9,24 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -class CodespaceMachineType(TypedDict): - """Codespace machine +class ThreadSubscriptionType(TypedDict): + """Thread Subscription - A description of the machine powering a codespace. + Thread Subscription """ - name: str - display_name: str - operating_system: str - storage_in_bytes: int - memory_in_bytes: int - cpus: int - prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: Union[datetime, None] + url: str + thread_url: NotRequired[str] + repository_url: NotRequired[str] -__all__ = ("CodespaceMachineType",) +__all__ = ("ThreadSubscriptionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0157.py b/githubkit/versions/ghec_v2022_11_28/types/group_0157.py index 9a17e96e9..7ed63b48e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0157.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0157.py @@ -13,90 +13,23 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0147 import MinimalRepositoryType -from .group_0156 import CodespaceMachineType +from .group_0003 import SimpleUserType -class CodespaceType(TypedDict): - """Codespace +class OrganizationCustomRepositoryRoleType(TypedDict): + """Organization Custom Repository Role - A codespace. + Custom repository roles created by organization owners """ id: int name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: MinimalRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] + description: NotRequired[Union[str, None]] + base_role: Literal["read", "triage", "write", "maintain"] + permissions: list[str] + organization: SimpleUserType created_at: datetime updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] - url: str - git_status: CodespacePropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: list[str] - runtime_constraints: NotRequired[CodespacePropRuntimeConstraintsType] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] - last_known_stop_notice: NotRequired[Union[str, None]] -class CodespacePropGitStatusType(TypedDict): - """CodespacePropGitStatus - - Details about the codespace's git repository. - """ - - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] - - -class CodespacePropRuntimeConstraintsType(TypedDict): - """CodespacePropRuntimeConstraints""" - - allowed_port_privacy_settings: NotRequired[Union[list[str], None]] - - -__all__ = ( - "CodespacePropGitStatusType", - "CodespacePropRuntimeConstraintsType", - "CodespaceType", -) +__all__ = ("OrganizationCustomRepositoryRoleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0158.py b/githubkit/versions/ghec_v2022_11_28/types/group_0158.py index 3f68d2a84..8318560d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0158.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0158.py @@ -9,21 +9,97 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -class CodespacesPublicKeyType(TypedDict): - """CodespacesPublicKey +class OrganizationFullType(TypedDict): + """Organization Full - The public key used for setting Codespaces secrets. + Prevents users in the organization from using insecure methods of two-factor + authentication to fulfill a two-factor requirement. + Removes non-compliant outside collaborators from the organization and its + repositories. + + GitHub currently defines SMS as an insecure method of two-factor authentication. + + If your users are managed by the enterprise this policy will not affect them. + The first admin account of the enterprise will still be affected. """ - key_id: str - key: str - id: NotRequired[int] - url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] + login: str + id: int + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + name: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + blog: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + twitter_username: NotRequired[Union[str, None]] + is_verified: NotRequired[bool] + has_organization_projects: bool + has_repository_projects: bool + public_repos: int + public_gists: int + followers: int + following: int + html_url: str + type: str + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + private_gists: NotRequired[Union[int, None]] + disk_usage: NotRequired[Union[int, None]] + collaborators: NotRequired[Union[int, None]] + billing_email: NotRequired[Union[str, None]] + plan: NotRequired[OrganizationFullPropPlanType] + default_repository_permission: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] + web_commit_signoff_required: NotRequired[bool] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] + secret_scanning_validity_checks_enabled: NotRequired[bool] + created_at: datetime + updated_at: datetime + archived_at: Union[datetime, None] + deploy_keys_enabled_for_repositories: NotRequired[bool] + + +class OrganizationFullPropPlanType(TypedDict): + """OrganizationFullPropPlan""" + + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] -__all__ = ("CodespacesPublicKeyType",) +__all__ = ( + "OrganizationFullPropPlanType", + "OrganizationFullType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0159.py b/githubkit/versions/ghec_v2022_11_28/types/group_0159.py index 6a2981202..f8ed08e06 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0159.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0159.py @@ -9,43 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class CopilotOrganizationDetailsType(TypedDict): - """Copilot Organization Details +class OidcCustomSubType(TypedDict): + """Actions OIDC Subject customization - Information about the seat breakdown and policies set for an organization with a - Copilot Business or Copilot Enterprise subscription. + Actions OIDC Subject customization """ - seat_breakdown: CopilotSeatBreakdownType - public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] - ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" - ] - plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] + include_claim_keys: list[str] -class CopilotSeatBreakdownType(TypedDict): - """Copilot Business Seat Breakdown - - The breakdown of Copilot Business seats for the organization. - """ - - total: NotRequired[int] - added_this_cycle: NotRequired[int] - pending_cancellation: NotRequired[int] - pending_invitation: NotRequired[int] - active_this_cycle: NotRequired[int] - inactive_this_cycle: NotRequired[int] - - -__all__ = ( - "CopilotOrganizationDetailsType", - "CopilotSeatBreakdownType", -) +__all__ = ("OidcCustomSubType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0160.py b/githubkit/versions/ghec_v2022_11_28/types/group_0160.py index 3bc77b79e..f02f87f3d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0160.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0160.py @@ -9,29 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class CredentialAuthorizationType(TypedDict): - """Credential Authorization +class ActionsOrganizationPermissionsType(TypedDict): + """ActionsOrganizationPermissions""" - Credential Authorization - """ + enabled_repositories: Literal["all", "none", "selected"] + selected_repositories_url: NotRequired[str] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] - login: str - credential_id: int - credential_type: str - token_last_eight: NotRequired[str] - credential_authorized_at: datetime - scopes: NotRequired[list[str]] - fingerprint: NotRequired[str] - credential_accessed_at: Union[datetime, None] - authorized_credential_id: Union[int, None] - authorized_credential_title: NotRequired[Union[str, None]] - authorized_credential_note: NotRequired[Union[str, None]] - authorized_credential_expires_at: NotRequired[Union[datetime, None]] - -__all__ = ("CredentialAuthorizationType",) +__all__ = ("ActionsOrganizationPermissionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0161.py b/githubkit/versions/ghec_v2022_11_28/types/group_0161.py index a553134b2..f67033a97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0161.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0161.py @@ -9,17 +9,21 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrganizationCustomRepositoryRoleCreateSchemaType(TypedDict): - """OrganizationCustomRepositoryRoleCreateSchema""" +class ActionsPublicKeyType(TypedDict): + """ActionsPublicKey - name: str - description: NotRequired[Union[str, None]] - base_role: Literal["read", "triage", "write", "maintain"] - permissions: list[str] + The public key used for setting Actions Secrets. + """ + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] -__all__ = ("OrganizationCustomRepositoryRoleCreateSchemaType",) + +__all__ = ("ActionsPublicKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0162.py b/githubkit/versions/ghec_v2022_11_28/types/group_0162.py index 2e4c217fa..ae609b141 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0162.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0162.py @@ -9,17 +9,107 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrganizationCustomRepositoryRoleUpdateSchemaType(TypedDict): - """OrganizationCustomRepositoryRoleUpdateSchema""" +class PushRuleBypassRequestType(TypedDict): + """Push rule bypass request + A bypass request made by a user asking to be exempted from a push rule in this + repository. + """ + + id: NotRequired[int] + number: NotRequired[int] + repository: NotRequired[PushRuleBypassRequestPropRepositoryType] + organization: NotRequired[PushRuleBypassRequestPropOrganizationType] + requester: NotRequired[PushRuleBypassRequestPropRequesterType] + request_type: NotRequired[str] + data: NotRequired[Union[list[PushRuleBypassRequestPropDataItemsType], None]] + resource_identifier: NotRequired[str] + status: NotRequired[ + Literal[ + "pending", "denied", "approved", "cancelled", "completed", "expired", "open" + ] + ] + requester_comment: NotRequired[Union[str, None]] + expires_at: NotRequired[datetime] + created_at: NotRequired[datetime] + responses: NotRequired[Union[list[BypassResponseType], None]] + url: NotRequired[str] + html_url: NotRequired[str] + + +class PushRuleBypassRequestPropRepositoryType(TypedDict): + """PushRuleBypassRequestPropRepository + + The repository the bypass request is for. + """ + + id: NotRequired[int] name: NotRequired[str] - description: NotRequired[Union[str, None]] - base_role: NotRequired[Literal["read", "triage", "write", "maintain"]] - permissions: NotRequired[list[str]] + full_name: NotRequired[str] + + +class PushRuleBypassRequestPropOrganizationType(TypedDict): + """PushRuleBypassRequestPropOrganization + + The organization associated with the repository the bypass request is for. + """ + + id: NotRequired[int] + name: NotRequired[str] + + +class PushRuleBypassRequestPropRequesterType(TypedDict): + """PushRuleBypassRequestPropRequester + + The user who requested the bypass. + """ + + actor_id: NotRequired[int] + actor_name: NotRequired[str] + + +class PushRuleBypassRequestPropDataItemsType(TypedDict): + """PushRuleBypassRequestPropDataItems""" + + ruleset_id: NotRequired[int] + ruleset_name: NotRequired[str] + total_violations: NotRequired[int] + rule_type: NotRequired[str] + + +class BypassResponseType(TypedDict): + """Bypass response + + A response made by a delegated bypasser to a bypass request. + """ + + id: NotRequired[int] + reviewer: NotRequired[BypassResponsePropReviewerType] + status: NotRequired[Literal["approved", "denied", "dismissed"]] + created_at: NotRequired[datetime] + + +class BypassResponsePropReviewerType(TypedDict): + """BypassResponsePropReviewer + + The user who reviewed the bypass request. + """ + + actor_id: NotRequired[int] + actor_name: NotRequired[str] -__all__ = ("OrganizationCustomRepositoryRoleUpdateSchemaType",) +__all__ = ( + "BypassResponsePropReviewerType", + "BypassResponseType", + "PushRuleBypassRequestPropDataItemsType", + "PushRuleBypassRequestPropOrganizationType", + "PushRuleBypassRequestPropRepositoryType", + "PushRuleBypassRequestPropRequesterType", + "PushRuleBypassRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0163.py b/githubkit/versions/ghec_v2022_11_28/types/group_0163.py index fb3981a7a..febb2d4f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0163.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0163.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import TypedDict -class DependabotPublicKeyType(TypedDict): - """DependabotPublicKey +class CodespaceMachineType(TypedDict): + """Codespace machine - The public key used for setting Dependabot Secrets. + A description of the machine powering a codespace. """ - key_id: str - key: str + name: str + display_name: str + operating_system: str + storage_in_bytes: int + memory_in_bytes: int + cpus: int + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] -__all__ = ("DependabotPublicKeyType",) +__all__ = ("CodespaceMachineType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0164.py b/githubkit/versions/ghec_v2022_11_28/types/group_0164.py index 2337a7477..7c7494e11 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0164.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0164.py @@ -13,27 +13,90 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0147 import MinimalRepositoryType +from .group_0003 import SimpleUserType +from .group_0154 import MinimalRepositoryType +from .group_0163 import CodespaceMachineType -class PackageType(TypedDict): - """Package +class CodespaceType(TypedDict): + """Codespace - A software package + A codespace. """ id: int name: str - package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] - url: str - html_url: str - version_count: int - visibility: Literal["private", "public"] - owner: NotRequired[Union[None, SimpleUserType]] - repository: NotRequired[Union[None, MinimalRepositoryType]] + display_name: NotRequired[Union[str, None]] + environment_id: Union[str, None] + owner: SimpleUserType + billable_owner: SimpleUserType + repository: MinimalRepositoryType + machine: Union[None, CodespaceMachineType] + devcontainer_path: NotRequired[Union[str, None]] + prebuild: Union[bool, None] created_at: datetime updated_at: datetime + last_used_at: datetime + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] + url: str + git_status: CodespacePropGitStatusType + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] + idle_timeout_minutes: Union[int, None] + web_url: str + machines_url: str + start_url: str + stop_url: str + publish_url: NotRequired[Union[str, None]] + pulls_url: Union[str, None] + recent_folders: list[str] + runtime_constraints: NotRequired[CodespacePropRuntimeConstraintsType] + pending_operation: NotRequired[Union[bool, None]] + pending_operation_disabled_reason: NotRequired[Union[str, None]] + idle_timeout_notice: NotRequired[Union[str, None]] + retention_period_minutes: NotRequired[Union[int, None]] + retention_expires_at: NotRequired[Union[datetime, None]] + last_known_stop_notice: NotRequired[Union[str, None]] + + +class CodespacePropGitStatusType(TypedDict): + """CodespacePropGitStatus + + Details about the codespace's git repository. + """ + + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] + + +class CodespacePropRuntimeConstraintsType(TypedDict): + """CodespacePropRuntimeConstraints""" + + allowed_port_privacy_settings: NotRequired[Union[list[str], None]] -__all__ = ("PackageType",) +__all__ = ( + "CodespacePropGitStatusType", + "CodespacePropRuntimeConstraintsType", + "CodespaceType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0165.py b/githubkit/versions/ghec_v2022_11_28/types/group_0165.py index cc9b10e07..3f68d2a84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0165.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0165.py @@ -12,37 +12,18 @@ from typing_extensions import NotRequired, TypedDict -class ExternalGroupType(TypedDict): - """ExternalGroup +class CodespacesPublicKeyType(TypedDict): + """CodespacesPublicKey - Information about an external group's usage and its members + The public key used for setting Codespaces secrets. """ - group_id: int - group_name: str - updated_at: NotRequired[str] - teams: list[ExternalGroupPropTeamsItemsType] - members: list[ExternalGroupPropMembersItemsType] + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] -class ExternalGroupPropTeamsItemsType(TypedDict): - """ExternalGroupPropTeamsItems""" - - team_id: int - team_name: str - - -class ExternalGroupPropMembersItemsType(TypedDict): - """ExternalGroupPropMembersItems""" - - member_id: int - member_login: str - member_name: str - member_email: str - - -__all__ = ( - "ExternalGroupPropMembersItemsType", - "ExternalGroupPropTeamsItemsType", - "ExternalGroupType", -) +__all__ = ("CodespacesPublicKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0166.py b/githubkit/versions/ghec_v2022_11_28/types/group_0166.py index 31dfd9dfc..6a2981202 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0166.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0166.py @@ -9,27 +9,43 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ExternalGroupsType(TypedDict): - """ExternalGroups +class CopilotOrganizationDetailsType(TypedDict): + """Copilot Organization Details - A list of external groups available to be connected to a team + Information about the seat breakdown and policies set for an organization with a + Copilot Business or Copilot Enterprise subscription. """ - groups: NotRequired[list[ExternalGroupsPropGroupsItemsType]] + seat_breakdown: CopilotSeatBreakdownType + public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] + ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] + plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] -class ExternalGroupsPropGroupsItemsType(TypedDict): - """ExternalGroupsPropGroupsItems""" +class CopilotSeatBreakdownType(TypedDict): + """Copilot Business Seat Breakdown - group_id: int - group_name: str - updated_at: str + The breakdown of Copilot Business seats for the organization. + """ + + total: NotRequired[int] + added_this_cycle: NotRequired[int] + pending_cancellation: NotRequired[int] + pending_invitation: NotRequired[int] + active_this_cycle: NotRequired[int] + inactive_this_cycle: NotRequired[int] __all__ = ( - "ExternalGroupsPropGroupsItemsType", - "ExternalGroupsType", + "CopilotOrganizationDetailsType", + "CopilotSeatBreakdownType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0167.py b/githubkit/versions/ghec_v2022_11_28/types/group_0167.py index e94134e81..3bc77b79e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0167.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0167.py @@ -9,30 +9,29 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class CredentialAuthorizationType(TypedDict): + """Credential Authorization -class OrganizationInvitationType(TypedDict): - """Organization Invitation - - Organization Invitation + Credential Authorization """ - id: int - login: Union[str, None] - email: Union[str, None] - role: str - created_at: str - failed_at: NotRequired[Union[str, None]] - failed_reason: NotRequired[Union[str, None]] - inviter: SimpleUserType - team_count: int - node_id: str - invitation_teams_url: str - invitation_source: NotRequired[str] - - -__all__ = ("OrganizationInvitationType",) + login: str + credential_id: int + credential_type: str + token_last_eight: NotRequired[str] + credential_authorized_at: datetime + scopes: NotRequired[list[str]] + fingerprint: NotRequired[str] + credential_accessed_at: Union[datetime, None] + authorized_credential_id: Union[int, None] + authorized_credential_title: NotRequired[Union[str, None]] + authorized_credential_note: NotRequired[Union[str, None]] + authorized_credential_expires_at: NotRequired[Union[datetime, None]] + + +__all__ = ("CredentialAuthorizationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0168.py b/githubkit/versions/ghec_v2022_11_28/types/group_0168.py index 1613d4046..a553134b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0168.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0168.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class RepositoryFineGrainedPermissionType(TypedDict): - """Repository Fine-Grained Permission - - A fine-grained permission that protects repository resources. - """ +class OrganizationCustomRepositoryRoleCreateSchemaType(TypedDict): + """OrganizationCustomRepositoryRoleCreateSchema""" name: str - description: str + description: NotRequired[Union[str, None]] + base_role: Literal["read", "triage", "write", "maintain"] + permissions: list[str] -__all__ = ("RepositoryFineGrainedPermissionType",) +__all__ = ("OrganizationCustomRepositoryRoleCreateSchemaType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0169.py b/githubkit/versions/ghec_v2022_11_28/types/group_0169.py index dd28f2299..2e4c217fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0169.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0169.py @@ -9,39 +9,17 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgHookType(TypedDict): - """Org Hook +class OrganizationCustomRepositoryRoleUpdateSchemaType(TypedDict): + """OrganizationCustomRepositoryRoleUpdateSchema""" - Org Hook - """ + name: NotRequired[str] + description: NotRequired[Union[str, None]] + base_role: NotRequired[Literal["read", "triage", "write", "maintain"]] + permissions: NotRequired[list[str]] - id: int - url: str - ping_url: str - deliveries_url: NotRequired[str] - name: str - events: list[str] - active: bool - config: OrgHookPropConfigType - updated_at: datetime - created_at: datetime - type: str - -class OrgHookPropConfigType(TypedDict): - """OrgHookPropConfig""" - - url: NotRequired[str] - insecure_ssl: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - - -__all__ = ( - "OrgHookPropConfigType", - "OrgHookType", -) +__all__ = ("OrganizationCustomRepositoryRoleUpdateSchemaType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0170.py b/githubkit/versions/ghec_v2022_11_28/types/group_0170.py index eecf40a48..fb3981a7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0170.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0170.py @@ -9,19 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ApiInsightsRouteStatsItemsType(TypedDict): - """ApiInsightsRouteStatsItems""" +class DependabotPublicKeyType(TypedDict): + """DependabotPublicKey - http_method: NotRequired[str] - api_route: NotRequired[str] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] - last_rate_limited_timestamp: NotRequired[Union[str, None]] - last_request_timestamp: NotRequired[str] + The public key used for setting Dependabot Secrets. + """ + key_id: str + key: str -__all__ = ("ApiInsightsRouteStatsItemsType",) + +__all__ = ("DependabotPublicKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0171.py b/githubkit/versions/ghec_v2022_11_28/types/group_0171.py index a652aaeff..3d0e50052 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0171.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0171.py @@ -9,20 +9,31 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0154 import MinimalRepositoryType -class ApiInsightsSubjectStatsItemsType(TypedDict): - """ApiInsightsSubjectStatsItems""" - subject_type: NotRequired[str] - subject_name: NotRequired[str] - subject_id: NotRequired[int] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] - last_rate_limited_timestamp: NotRequired[Union[str, None]] - last_request_timestamp: NotRequired[str] +class PackageType(TypedDict): + """Package + A software package + """ -__all__ = ("ApiInsightsSubjectStatsItemsType",) + id: int + name: str + package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + url: str + html_url: str + version_count: int + visibility: Literal["private", "public"] + owner: NotRequired[Union[None, SimpleUserType]] + repository: NotRequired[Union[None, MinimalRepositoryType]] + created_at: datetime + updated_at: datetime + + +__all__ = ("PackageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0172.py b/githubkit/versions/ghec_v2022_11_28/types/group_0172.py index efa213a4a..cc9b10e07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0172.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0172.py @@ -12,14 +12,37 @@ from typing_extensions import NotRequired, TypedDict -class ApiInsightsSummaryStatsType(TypedDict): - """Summary Stats +class ExternalGroupType(TypedDict): + """ExternalGroup - API Insights usage summary stats for an organization + Information about an external group's usage and its members """ - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] + group_id: int + group_name: str + updated_at: NotRequired[str] + teams: list[ExternalGroupPropTeamsItemsType] + members: list[ExternalGroupPropMembersItemsType] -__all__ = ("ApiInsightsSummaryStatsType",) +class ExternalGroupPropTeamsItemsType(TypedDict): + """ExternalGroupPropTeamsItems""" + + team_id: int + team_name: str + + +class ExternalGroupPropMembersItemsType(TypedDict): + """ExternalGroupPropMembersItems""" + + member_id: int + member_login: str + member_name: str + member_email: str + + +__all__ = ( + "ExternalGroupPropMembersItemsType", + "ExternalGroupPropTeamsItemsType", + "ExternalGroupType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0173.py b/githubkit/versions/ghec_v2022_11_28/types/group_0173.py index b1ac3a080..31dfd9dfc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0173.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0173.py @@ -12,12 +12,24 @@ from typing_extensions import NotRequired, TypedDict -class ApiInsightsTimeStatsItemsType(TypedDict): - """ApiInsightsTimeStatsItems""" +class ExternalGroupsType(TypedDict): + """ExternalGroups - timestamp: NotRequired[str] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] + A list of external groups available to be connected to a team + """ + groups: NotRequired[list[ExternalGroupsPropGroupsItemsType]] -__all__ = ("ApiInsightsTimeStatsItemsType",) + +class ExternalGroupsPropGroupsItemsType(TypedDict): + """ExternalGroupsPropGroupsItems""" + + group_id: int + group_name: str + updated_at: str + + +__all__ = ( + "ExternalGroupsPropGroupsItemsType", + "ExternalGroupsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0174.py b/githubkit/versions/ghec_v2022_11_28/types/group_0174.py index 810ca5b00..23c54a38b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0174.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0174.py @@ -12,19 +12,27 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class ApiInsightsUserStatsItemsType(TypedDict): - """ApiInsightsUserStatsItems""" - actor_type: NotRequired[str] - actor_name: NotRequired[str] - actor_id: NotRequired[int] - integration_id: NotRequired[Union[int, None]] - oauth_application_id: NotRequired[Union[int, None]] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] - last_rate_limited_timestamp: NotRequired[Union[str, None]] - last_request_timestamp: NotRequired[str] +class OrganizationInvitationType(TypedDict): + """Organization Invitation + Organization Invitation + """ -__all__ = ("ApiInsightsUserStatsItemsType",) + id: int + login: Union[str, None] + email: Union[str, None] + role: str + created_at: str + failed_at: NotRequired[Union[str, None]] + failed_reason: NotRequired[Union[str, None]] + inviter: SimpleUserType + team_count: int + node_id: str + invitation_teams_url: str + invitation_source: NotRequired[str] + + +__all__ = ("OrganizationInvitationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0175.py b/githubkit/versions/ghec_v2022_11_28/types/group_0175.py index 86b7b0b1e..1613d4046 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0175.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0175.py @@ -9,20 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import TypedDict -class InteractionLimitResponseType(TypedDict): - """Interaction Limits +class RepositoryFineGrainedPermissionType(TypedDict): + """Repository Fine-Grained Permission - Interaction limit settings. + A fine-grained permission that protects repository resources. """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - origin: str - expires_at: datetime + name: str + description: str -__all__ = ("InteractionLimitResponseType",) +__all__ = ("RepositoryFineGrainedPermissionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0176.py b/githubkit/versions/ghec_v2022_11_28/types/group_0176.py index 7711ae8ae..dd28f2299 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0176.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0176.py @@ -9,20 +9,39 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class InteractionLimitType(TypedDict): - """Interaction Restrictions +class OrgHookType(TypedDict): + """Org Hook - Limit interactions to a specific type of user for a specified duration + Org Hook """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - expiry: NotRequired[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] + id: int + url: str + ping_url: str + deliveries_url: NotRequired[str] + name: str + events: list[str] + active: bool + config: OrgHookPropConfigType + updated_at: datetime + created_at: datetime + type: str -__all__ = ("InteractionLimitType",) +class OrgHookPropConfigType(TypedDict): + """OrgHookPropConfig""" + + url: NotRequired[str] + insecure_ssl: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + + +__all__ = ( + "OrgHookPropConfigType", + "OrgHookType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0177.py b/githubkit/versions/ghec_v2022_11_28/types/group_0177.py index 83ecb94be..eecf40a48 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0177.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0177.py @@ -9,35 +9,19 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0031 import OrganizationSimpleType +class ApiInsightsRouteStatsItemsType(TypedDict): + """ApiInsightsRouteStatsItems""" -class OrgMembershipType(TypedDict): - """Org Membership + http_method: NotRequired[str] + api_route: NotRequired[str] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] + last_rate_limited_timestamp: NotRequired[Union[str, None]] + last_request_timestamp: NotRequired[str] - Org Membership - """ - url: str - state: Literal["active", "pending"] - role: Literal["admin", "member", "billing_manager"] - organization_url: str - organization: OrganizationSimpleType - user: Union[None, SimpleUserType] - permissions: NotRequired[OrgMembershipPropPermissionsType] - - -class OrgMembershipPropPermissionsType(TypedDict): - """OrgMembershipPropPermissions""" - - can_create_repository: bool - - -__all__ = ( - "OrgMembershipPropPermissionsType", - "OrgMembershipType", -) +__all__ = ("ApiInsightsRouteStatsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0178.py b/githubkit/versions/ghec_v2022_11_28/types/group_0178.py index e9fd75d2d..a652aaeff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0178.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0178.py @@ -9,38 +9,20 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType - - -class MigrationType(TypedDict): - """Migration - - A migration. - """ - - id: int - owner: Union[None, SimpleUserType] - guid: str - state: str - lock_repositories: bool - exclude_metadata: bool - exclude_git_data: bool - exclude_attachments: bool - exclude_releases: bool - exclude_owner_projects: bool - org_metadata_only: bool - repositories: list[RepositoryType] - url: str - created_at: datetime - updated_at: datetime - node_id: str - archive_url: NotRequired[str] - exclude: NotRequired[list[str]] - - -__all__ = ("MigrationType",) + +class ApiInsightsSubjectStatsItemsType(TypedDict): + """ApiInsightsSubjectStatsItems""" + + subject_type: NotRequired[str] + subject_name: NotRequired[str] + subject_id: NotRequired[int] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] + last_rate_limited_timestamp: NotRequired[Union[str, None]] + last_request_timestamp: NotRequired[str] + + +__all__ = ("ApiInsightsSubjectStatsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0179.py b/githubkit/versions/ghec_v2022_11_28/types/group_0179.py index 0c71e9bd1..efa213a4a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0179.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0179.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrganizationFineGrainedPermissionType(TypedDict): - """Organization Fine-Grained Permission +class ApiInsightsSummaryStatsType(TypedDict): + """Summary Stats - A fine-grained permission that protects organization resources. + API Insights usage summary stats for an organization """ - name: str - description: str + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] -__all__ = ("OrganizationFineGrainedPermissionType",) +__all__ = ("ApiInsightsSummaryStatsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0180.py b/githubkit/versions/ghec_v2022_11_28/types/group_0180.py index c4592c91f..b1ac3a080 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0180.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0180.py @@ -9,42 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class ApiInsightsTimeStatsItemsType(TypedDict): + """ApiInsightsTimeStatsItems""" -class OrganizationRoleType(TypedDict): - """Organization Role + timestamp: NotRequired[str] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] - Organization roles - """ - id: int - name: str - description: NotRequired[Union[str, None]] - base_role: NotRequired[ - Union[None, Literal["read", "triage", "write", "maintain", "admin"]] - ] - source: NotRequired[ - Union[None, Literal["Organization", "Enterprise", "Predefined"]] - ] - permissions: list[str] - organization: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - - -class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): - """OrgsOrgOrganizationRolesGetResponse200""" - - total_count: NotRequired[int] - roles: NotRequired[list[OrganizationRoleType]] - - -__all__ = ( - "OrganizationRoleType", - "OrgsOrgOrganizationRolesGetResponse200Type", -) +__all__ = ("ApiInsightsTimeStatsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0181.py b/githubkit/versions/ghec_v2022_11_28/types/group_0181.py index c9e591941..810ca5b00 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0181.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0181.py @@ -9,17 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrganizationCustomOrganizationRoleCreateSchemaType(TypedDict): - """OrganizationCustomOrganizationRoleCreateSchema""" +class ApiInsightsUserStatsItemsType(TypedDict): + """ApiInsightsUserStatsItems""" - name: str - description: NotRequired[str] - permissions: list[str] - base_role: NotRequired[Literal["read", "triage", "write", "maintain", "admin"]] + actor_type: NotRequired[str] + actor_name: NotRequired[str] + actor_id: NotRequired[int] + integration_id: NotRequired[Union[int, None]] + oauth_application_id: NotRequired[Union[int, None]] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] + last_rate_limited_timestamp: NotRequired[Union[str, None]] + last_request_timestamp: NotRequired[str] -__all__ = ("OrganizationCustomOrganizationRoleCreateSchemaType",) +__all__ = ("ApiInsightsUserStatsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0182.py b/githubkit/versions/ghec_v2022_11_28/types/group_0182.py index e77a4f03f..86b7b0b1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0182.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0182.py @@ -9,19 +9,20 @@ from __future__ import annotations +from datetime import datetime from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrganizationCustomOrganizationRoleUpdateSchemaType(TypedDict): - """OrganizationCustomOrganizationRoleUpdateSchema""" +class InteractionLimitResponseType(TypedDict): + """Interaction Limits - name: NotRequired[str] - description: NotRequired[str] - permissions: NotRequired[list[str]] - base_role: NotRequired[ - Literal["none", "read", "triage", "write", "maintain", "admin"] - ] + Interaction limit settings. + """ + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + origin: str + expires_at: datetime -__all__ = ("OrganizationCustomOrganizationRoleUpdateSchemaType",) + +__all__ = ("InteractionLimitResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0183.py b/githubkit/versions/ghec_v2022_11_28/types/group_0183.py index 7ffba1bcf..7711ae8ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0183.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0183.py @@ -9,46 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0059 import TeamSimpleType +class InteractionLimitType(TypedDict): + """Interaction Restrictions -class TeamRoleAssignmentType(TypedDict): - """A Role Assignment for a Team - - The Relationship a Team has with a role. + Limit interactions to a specific type of user for a specified duration """ - assignment: NotRequired[Literal["direct", "indirect", "mixed"]] - id: int - node_id: str - name: str - slug: str - description: Union[str, None] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: str - permissions: NotRequired[TeamRoleAssignmentPropPermissionsType] - url: str - html_url: str - members_url: str - repositories_url: str - parent: Union[None, TeamSimpleType] - - -class TeamRoleAssignmentPropPermissionsType(TypedDict): - """TeamRoleAssignmentPropPermissions""" - - pull: bool - triage: bool - push: bool - maintain: bool - admin: bool - - -__all__ = ( - "TeamRoleAssignmentPropPermissionsType", - "TeamRoleAssignmentType", -) + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + expiry: NotRequired[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] + ] + + +__all__ = ("InteractionLimitType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0184.py b/githubkit/versions/ghec_v2022_11_28/types/group_0184.py index 1505f8caa..f9aad3ba7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0184.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0184.py @@ -12,39 +12,32 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0059 import TeamSimpleType +from .group_0003 import SimpleUserType +from .group_0036 import OrganizationSimpleType -class UserRoleAssignmentType(TypedDict): - """A Role Assignment for a User +class OrgMembershipType(TypedDict): + """Org Membership - The Relationship a User has with a role. + Org Membership """ - assignment: NotRequired[Literal["direct", "indirect", "mixed"]] - inherited_from: NotRequired[list[TeamSimpleType]] - name: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - starred_at: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("UserRoleAssignmentType",) + state: Literal["active", "pending"] + role: Literal["admin", "member", "billing_manager"] + organization_url: str + organization: OrganizationSimpleType + user: Union[None, SimpleUserType] + permissions: NotRequired[OrgMembershipPropPermissionsType] + + +class OrgMembershipPropPermissionsType(TypedDict): + """OrgMembershipPropPermissions""" + + can_create_repository: bool + + +__all__ = ( + "OrgMembershipPropPermissionsType", + "OrgMembershipType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0185.py b/githubkit/versions/ghec_v2022_11_28/types/group_0185.py index 9b4b7ff6c..b0bdc2624 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0185.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0185.py @@ -10,52 +10,37 @@ from __future__ import annotations from datetime import datetime -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class PackageVersionType(TypedDict): - """Package Version - A version of a software package +class MigrationType(TypedDict): + """Migration + + A migration. """ id: int - name: str + owner: Union[None, SimpleUserType] + guid: str + state: str + lock_repositories: bool + exclude_metadata: bool + exclude_git_data: bool + exclude_attachments: bool + exclude_releases: bool + exclude_owner_projects: bool + org_metadata_only: bool + repositories: list[RepositoryType] url: str - package_html_url: str - html_url: NotRequired[str] - license_: NotRequired[str] - description: NotRequired[str] created_at: datetime updated_at: datetime - deleted_at: NotRequired[datetime] - metadata: NotRequired[PackageVersionPropMetadataType] - - -class PackageVersionPropMetadataType(TypedDict): - """Package Version Metadata""" - - package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] - container: NotRequired[PackageVersionPropMetadataPropContainerType] - docker: NotRequired[PackageVersionPropMetadataPropDockerType] - - -class PackageVersionPropMetadataPropContainerType(TypedDict): - """Container Metadata""" - - tags: list[str] - - -class PackageVersionPropMetadataPropDockerType(TypedDict): - """Docker Metadata""" - - tag: NotRequired[list[str]] + node_id: str + archive_url: NotRequired[str] + exclude: NotRequired[list[str]] -__all__ = ( - "PackageVersionPropMetadataPropContainerType", - "PackageVersionPropMetadataPropDockerType", - "PackageVersionPropMetadataType", - "PackageVersionType", -) +__all__ = ("MigrationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0186.py b/githubkit/versions/ghec_v2022_11_28/types/group_0186.py index 9414df2eb..0c71e9bd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0186.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0186.py @@ -9,75 +9,17 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +class OrganizationFineGrainedPermissionType(TypedDict): + """Organization Fine-Grained Permission -class OrganizationProgrammaticAccessGrantRequestType(TypedDict): - """Simple Organization Programmatic Access Grant Request - - Minimal representation of an organization programmatic access grant request for - enumerations - """ - - id: int - reason: Union[str, None] - owner: SimpleUserType - repository_selection: Literal["none", "all", "subset"] - repositories_url: str - permissions: OrganizationProgrammaticAccessGrantRequestPropPermissionsType - created_at: str - token_id: int - token_name: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsType(TypedDict): - """OrganizationProgrammaticAccessGrantRequestPropPermissions - - Permissions requested, categorized by type of permission. + A fine-grained permission that protects organization resources. """ - organization: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType - ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType - ] - other: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType - ] - - -OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization -""" - - -OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository -""" - - -OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType: TypeAlias = ( - dict[str, Any] -) -"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther -""" + name: str + description: str -__all__ = ( - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", - "OrganizationProgrammaticAccessGrantRequestType", -) +__all__ = ("OrganizationFineGrainedPermissionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0187.py b/githubkit/versions/ghec_v2022_11_28/types/group_0187.py index 31846b141..fb3b706a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0187.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0187.py @@ -9,72 +9,42 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType -class OrganizationProgrammaticAccessGrantType(TypedDict): - """Organization Programmatic Access Grant +class OrganizationRoleType(TypedDict): + """Organization Role - Minimal representation of an organization programmatic access grant for - enumerations + Organization roles """ id: int - owner: SimpleUserType - repository_selection: Literal["none", "all", "subset"] - repositories_url: str - permissions: OrganizationProgrammaticAccessGrantPropPermissionsType - access_granted_at: str - token_id: int - token_name: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] - - -class OrganizationProgrammaticAccessGrantPropPermissionsType(TypedDict): - """OrganizationProgrammaticAccessGrantPropPermissions - - Permissions requested, categorized by type of permission. - """ - - organization: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType + name: str + description: NotRequired[Union[str, None]] + base_role: NotRequired[ + Union[None, Literal["read", "triage", "write", "maintain", "admin"]] ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType + source: NotRequired[ + Union[None, Literal["Organization", "Enterprise", "Predefined"]] ] - other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] - - -OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType: TypeAlias = ( - dict[str, Any] -) -"""OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization -""" + permissions: list[str] + organization: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime -OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantPropPermissionsPropRepository -""" - +class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): + """OrgsOrgOrganizationRolesGetResponse200""" -OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantPropPermissionsPropOther -""" + total_count: NotRequired[int] + roles: NotRequired[list[OrganizationRoleType]] __all__ = ( - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantPropPermissionsType", - "OrganizationProgrammaticAccessGrantType", + "OrganizationRoleType", + "OrgsOrgOrganizationRolesGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0188.py b/githubkit/versions/ghec_v2022_11_28/types/group_0188.py index d9d5c738f..c9e591941 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0188.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0188.py @@ -9,24 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgPrivateRegistryConfigurationWithSelectedRepositoriesType(TypedDict): - """Organization private registry - - Private registry configuration for an organization - """ +class OrganizationCustomOrganizationRoleCreateSchemaType(TypedDict): + """OrganizationCustomOrganizationRoleCreateSchema""" name: str - registry_type: Literal["maven_repository"] - username: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] - created_at: datetime - updated_at: datetime + description: NotRequired[str] + permissions: list[str] + base_role: NotRequired[Literal["read", "triage", "write", "maintain", "admin"]] -__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",) +__all__ = ("OrganizationCustomOrganizationRoleCreateSchemaType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0189.py b/githubkit/versions/ghec_v2022_11_28/types/group_0189.py index 99630fe52..e77a4f03f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0189.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0189.py @@ -9,34 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class OrganizationCustomOrganizationRoleUpdateSchemaType(TypedDict): + """OrganizationCustomOrganizationRoleUpdateSchema""" -class ProjectType(TypedDict): - """Project + name: NotRequired[str] + description: NotRequired[str] + permissions: NotRequired[list[str]] + base_role: NotRequired[ + Literal["none", "read", "triage", "write", "maintain", "admin"] + ] - Projects are a way to organize columns and cards of work. - """ - owner_url: str - url: str - html_url: str - columns_url: str - id: int - node_id: str - name: str - body: Union[str, None] - number: int - state: str - creator: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] - - -__all__ = ("ProjectType",) +__all__ = ("OrganizationCustomOrganizationRoleUpdateSchemaType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0190.py b/githubkit/versions/ghec_v2022_11_28/types/group_0190.py index c3784542a..fc7a4c05b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0190.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0190.py @@ -9,18 +9,46 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0064 import TeamSimpleType -class CustomPropertyValueType(TypedDict): - """Custom Property Value - Custom property name and associated value - """ - - property_name: str - value: Union[str, list[str], None] +class TeamRoleAssignmentType(TypedDict): + """A Role Assignment for a Team + The Relationship a Team has with a role. + """ -__all__ = ("CustomPropertyValueType",) + assignment: NotRequired[Literal["direct", "indirect", "mixed"]] + id: int + node_id: str + name: str + slug: str + description: Union[str, None] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: str + permissions: NotRequired[TeamRoleAssignmentPropPermissionsType] + url: str + html_url: str + members_url: str + repositories_url: str + parent: Union[None, TeamSimpleType] + + +class TeamRoleAssignmentPropPermissionsType(TypedDict): + """TeamRoleAssignmentPropPermissions""" + + pull: bool + triage: bool + push: bool + maintain: bool + admin: bool + + +__all__ = ( + "TeamRoleAssignmentPropPermissionsType", + "TeamRoleAssignmentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0191.py b/githubkit/versions/ghec_v2022_11_28/types/group_0191.py index 3b5dac8df..830ba2f76 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0191.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0191.py @@ -9,21 +9,42 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0190 import CustomPropertyValueType +from .group_0064 import TeamSimpleType -class OrgRepoCustomPropertyValuesType(TypedDict): - """Organization Repository Custom Property Values +class UserRoleAssignmentType(TypedDict): + """A Role Assignment for a User - List of custom property values for a repository + The Relationship a User has with a role. """ - repository_id: int - repository_name: str - repository_full_name: str - properties: list[CustomPropertyValueType] - - -__all__ = ("OrgRepoCustomPropertyValuesType",) + assignment: NotRequired[Literal["direct", "indirect", "mixed"]] + inherited_from: NotRequired[list[TeamSimpleType]] + name: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + login: str + id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + starred_at: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("UserRoleAssignmentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0192.py b/githubkit/versions/ghec_v2022_11_28/types/group_0192.py index cac6eb986..9b4b7ff6c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0192.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0192.py @@ -9,20 +9,53 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class CodeOfConductSimpleType(TypedDict): - """Code Of Conduct Simple +class PackageVersionType(TypedDict): + """Package Version - Code of Conduct Simple + A version of a software package """ - url: str - key: str + id: int name: str - html_url: Union[str, None] + url: str + package_html_url: str + html_url: NotRequired[str] + license_: NotRequired[str] + description: NotRequired[str] + created_at: datetime + updated_at: datetime + deleted_at: NotRequired[datetime] + metadata: NotRequired[PackageVersionPropMetadataType] + + +class PackageVersionPropMetadataType(TypedDict): + """Package Version Metadata""" + + package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + container: NotRequired[PackageVersionPropMetadataPropContainerType] + docker: NotRequired[PackageVersionPropMetadataPropDockerType] + + +class PackageVersionPropMetadataPropContainerType(TypedDict): + """Container Metadata""" + + tags: list[str] + + +class PackageVersionPropMetadataPropDockerType(TypedDict): + """Docker Metadata""" + + tag: NotRequired[list[str]] -__all__ = ("CodeOfConductSimpleType",) +__all__ = ( + "PackageVersionPropMetadataPropContainerType", + "PackageVersionPropMetadataPropDockerType", + "PackageVersionPropMetadataType", + "PackageVersionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0193.py b/githubkit/versions/ghec_v2022_11_28/types/group_0193.py index 8251a10ca..4979cd78c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0193.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0193.py @@ -9,151 +9,75 @@ from __future__ import annotations -from datetime import datetime from typing import Any, Literal, Union from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0018 import LicenseSimpleType -from .group_0019 import RepositoryType -from .group_0146 import SecurityAndAnalysisType -from .group_0192 import CodeOfConductSimpleType +from .group_0003 import SimpleUserType -class FullRepositoryType(TypedDict): - """Full Repository +class OrganizationProgrammaticAccessGrantRequestType(TypedDict): + """Simple Organization Programmatic Access Grant Request - Full Repository + Minimal representation of an organization programmatic access grant request for + enumerations """ id: int - node_id: str - name: str - full_name: str + reason: Union[str, None] owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: NotRequired[bool] - has_discussions: bool - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: datetime - created_at: datetime - updated_at: datetime - permissions: NotRequired[FullRepositoryPropPermissionsType] - allow_rebase_merge: NotRequired[bool] - template_repository: NotRequired[Union[None, RepositoryType]] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + repository_selection: Literal["none", "all", "subset"] + repositories_url: str + permissions: OrganizationProgrammaticAccessGrantRequestPropPermissionsType + created_at: str + token_id: int + token_name: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsType(TypedDict): + """OrganizationProgrammaticAccessGrantRequestPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType + ] + repository: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: int - network_count: int - license_: Union[None, LicenseSimpleType] - organization: NotRequired[Union[None, SimpleUserType]] - parent: NotRequired[RepositoryType] - source: NotRequired[RepositoryType] - forks: int - master_branch: NotRequired[str] - open_issues: int - watchers: int - anonymous_access_enabled: NotRequired[bool] - code_of_conduct: NotRequired[CodeOfConductSimpleType] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] - custom_properties: NotRequired[FullRepositoryPropCustomPropertiesType] - - -class FullRepositoryPropPermissionsType(TypedDict): - """FullRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool - - -FullRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""FullRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. + other: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType + ] + + +OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization +""" + + +OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository +""" + + +OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType: TypeAlias = ( + dict[str, Any] +) +"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther """ __all__ = ( - "FullRepositoryPropCustomPropertiesType", - "FullRepositoryPropPermissionsType", - "FullRepositoryType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", + "OrganizationProgrammaticAccessGrantRequestType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0194.py b/githubkit/versions/ghec_v2022_11_28/types/group_0194.py index 74f027a0f..54bd740d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0194.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0194.py @@ -9,25 +9,72 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType -class RuleSuitesItemsType(TypedDict): - """RuleSuitesItems""" - id: NotRequired[int] - actor_id: NotRequired[int] - actor_name: NotRequired[str] - before_sha: NotRequired[str] - after_sha: NotRequired[str] - ref: NotRequired[str] - repository_id: NotRequired[int] - repository_name: NotRequired[str] - pushed_at: NotRequired[datetime] - result: NotRequired[Literal["pass", "fail", "bypass"]] - evaluation_result: NotRequired[Literal["pass", "fail", "bypass"]] +class OrganizationProgrammaticAccessGrantType(TypedDict): + """Organization Programmatic Access Grant + Minimal representation of an organization programmatic access grant for + enumerations + """ -__all__ = ("RuleSuitesItemsType",) + id: int + owner: SimpleUserType + repository_selection: Literal["none", "all", "subset"] + repositories_url: str + permissions: OrganizationProgrammaticAccessGrantPropPermissionsType + access_granted_at: str + token_id: int + token_name: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] + + +class OrganizationProgrammaticAccessGrantPropPermissionsType(TypedDict): + """OrganizationProgrammaticAccessGrantPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: NotRequired[ + OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType + ] + repository: NotRequired[ + OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType + ] + other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] + + +OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType: TypeAlias = ( + dict[str, Any] +) +"""OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization +""" + + +OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantPropPermissionsPropRepository +""" + + +OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantPropPermissionsPropOther +""" + + +__all__ = ( + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantPropPermissionsType", + "OrganizationProgrammaticAccessGrantType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0195.py b/githubkit/versions/ghec_v2022_11_28/types/group_0195.py index edb6fa30e..d9d5c738f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0195.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0195.py @@ -10,50 +10,23 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class RuleSuiteType(TypedDict): - """Rule Suite +class OrgPrivateRegistryConfigurationWithSelectedRepositoriesType(TypedDict): + """Organization private registry - Response + Private registry configuration for an organization """ - id: NotRequired[int] - actor_id: NotRequired[Union[int, None]] - actor_name: NotRequired[Union[str, None]] - before_sha: NotRequired[str] - after_sha: NotRequired[str] - ref: NotRequired[str] - repository_id: NotRequired[int] - repository_name: NotRequired[str] - pushed_at: NotRequired[datetime] - result: NotRequired[Literal["pass", "fail", "bypass"]] - evaluation_result: NotRequired[Union[None, Literal["pass", "fail", "bypass"]]] - rule_evaluations: NotRequired[list[RuleSuitePropRuleEvaluationsItemsType]] + name: str + registry_type: Literal["maven_repository"] + username: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] + created_at: datetime + updated_at: datetime -class RuleSuitePropRuleEvaluationsItemsType(TypedDict): - """RuleSuitePropRuleEvaluationsItems""" - - rule_source: NotRequired[RuleSuitePropRuleEvaluationsItemsPropRuleSourceType] - enforcement: NotRequired[Literal["active", "evaluate", "deleted ruleset"]] - result: NotRequired[Literal["pass", "fail"]] - rule_type: NotRequired[str] - details: NotRequired[Union[str, None]] - - -class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" - - type: NotRequired[str] - id: NotRequired[Union[int, None]] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", - "RuleSuitePropRuleEvaluationsItemsType", - "RuleSuiteType", -) +__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0196.py b/githubkit/versions/ghec_v2022_11_28/types/group_0196.py index 409599d5a..9f42888f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0196.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0196.py @@ -9,32 +9,34 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType -class RepositoryAdvisoryCreditType(TypedDict): - """RepositoryAdvisoryCredit +class ProjectType(TypedDict): + """Project - A credit given to a user for a repository security advisory. + Projects are a way to organize columns and cards of work. """ - user: SimpleUserType - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - state: Literal["accepted", "declined", "pending"] - - -__all__ = ("RepositoryAdvisoryCreditType",) + owner_url: str + url: str + html_url: str + columns_url: str + id: int + node_id: str + name: str + body: Union[str, None] + number: int + state: str + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] + + +__all__ = ("ProjectType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0197.py b/githubkit/versions/ghec_v2022_11_28/types/group_0197.py index 8bb7e1423..c3784542a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0197.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0197.py @@ -9,142 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0001 import CvssSeveritiesType -from .group_0002 import SimpleUserType -from .group_0060 import TeamType -from .group_0196 import RepositoryAdvisoryCreditType +class CustomPropertyValueType(TypedDict): + """Custom Property Value -class RepositoryAdvisoryType(TypedDict): - """RepositoryAdvisory - - A repository security advisory. - """ - - ghsa_id: str - cve_id: Union[str, None] - url: str - html_url: str - summary: str - description: Union[str, None] - severity: Union[None, Literal["critical", "high", "medium", "low"]] - author: None - publisher: None - identifiers: list[RepositoryAdvisoryPropIdentifiersItemsType] - state: Literal["published", "closed", "withdrawn", "draft", "triage"] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - published_at: Union[datetime, None] - closed_at: Union[datetime, None] - withdrawn_at: Union[datetime, None] - submission: Union[RepositoryAdvisoryPropSubmissionType, None] - vulnerabilities: Union[list[RepositoryAdvisoryVulnerabilityType], None] - cvss: Union[RepositoryAdvisoryPropCvssType, None] - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: Union[list[RepositoryAdvisoryPropCwesItemsType], None] - cwe_ids: Union[list[str], None] - credits_: Union[list[RepositoryAdvisoryPropCreditsItemsType], None] - credits_detailed: Union[list[RepositoryAdvisoryCreditType], None] - collaborating_users: Union[list[SimpleUserType], None] - collaborating_teams: Union[list[TeamType], None] - private_fork: None - - -class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): - """RepositoryAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] - value: str - - -class RepositoryAdvisoryPropSubmissionType(TypedDict): - """RepositoryAdvisoryPropSubmission""" - - accepted: bool - - -class RepositoryAdvisoryPropCvssType(TypedDict): - """RepositoryAdvisoryPropCvss""" - - vector_string: Union[str, None] - score: Union[float, None] - - -class RepositoryAdvisoryPropCwesItemsType(TypedDict): - """RepositoryAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class RepositoryAdvisoryPropCreditsItemsType(TypedDict): - """RepositoryAdvisoryPropCreditsItems""" - - login: NotRequired[str] - type: NotRequired[ - Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - ] - - -class RepositoryAdvisoryVulnerabilityType(TypedDict): - """RepositoryAdvisoryVulnerability - - A product affected by the vulnerability detailed in a repository security - advisory. - """ - - package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] - vulnerable_version_range: Union[str, None] - patched_versions: Union[str, None] - vulnerable_functions: Union[list[str], None] - - -class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): - """RepositoryAdvisoryVulnerabilityPropPackage - - The name of the package affected by the vulnerability. + Custom property name and associated value """ - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: Union[str, None] + property_name: str + value: Union[str, list[str], None] -__all__ = ( - "RepositoryAdvisoryPropCreditsItemsType", - "RepositoryAdvisoryPropCvssType", - "RepositoryAdvisoryPropCwesItemsType", - "RepositoryAdvisoryPropIdentifiersItemsType", - "RepositoryAdvisoryPropSubmissionType", - "RepositoryAdvisoryType", - "RepositoryAdvisoryVulnerabilityPropPackageType", - "RepositoryAdvisoryVulnerabilityType", -) +__all__ = ("CustomPropertyValueType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0198.py b/githubkit/versions/ghec_v2022_11_28/types/group_0198.py index dcb7aa8bd..e87ade916 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0198.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0198.py @@ -9,30 +9,21 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0197 import CustomPropertyValueType -class GroupMappingType(TypedDict): - """GroupMapping - External Groups to be mapped to a team for membership - """ - - groups: NotRequired[list[GroupMappingPropGroupsItemsType]] +class OrgRepoCustomPropertyValuesType(TypedDict): + """Organization Repository Custom Property Values + List of custom property values for a repository + """ -class GroupMappingPropGroupsItemsType(TypedDict): - """GroupMappingPropGroupsItems""" - - group_id: str - group_name: str - group_description: str - status: NotRequired[str] - synced_at: NotRequired[Union[str, None]] + repository_id: int + repository_name: str + repository_full_name: str + properties: list[CustomPropertyValueType] -__all__ = ( - "GroupMappingPropGroupsItemsType", - "GroupMappingType", -) +__all__ = ("OrgRepoCustomPropertyValuesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0199.py b/githubkit/versions/ghec_v2022_11_28/types/group_0199.py index d5e9ec47a..cac6eb986 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0199.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0199.py @@ -9,111 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0059 import TeamSimpleType +class CodeOfConductSimpleType(TypedDict): + """Code Of Conduct Simple -class TeamFullType(TypedDict): - """Full Team - - Groups of organization members that gives permissions on specified repositories. + Code of Conduct Simple """ - id: int - node_id: str url: str - html_url: str - name: str - slug: str - description: Union[str, None] - privacy: NotRequired[Literal["closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: str - members_url: str - repositories_url: str - parent: NotRequired[Union[None, TeamSimpleType]] - members_count: int - repos_count: int - created_at: datetime - updated_at: datetime - organization: TeamOrganizationType - ldap_dn: NotRequired[str] - - -class TeamOrganizationType(TypedDict): - """Team Organization - - Team Organization - """ - - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - created_at: datetime - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[TeamOrganizationPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - updated_at: datetime - archived_at: Union[datetime, None] - - -class TeamOrganizationPropPlanType(TypedDict): - """TeamOrganizationPropPlan""" - + key: str name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] + html_url: Union[str, None] -__all__ = ( - "TeamFullType", - "TeamOrganizationPropPlanType", - "TeamOrganizationType", -) +__all__ = ("CodeOfConductSimpleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0200.py b/githubkit/versions/ghec_v2022_11_28/types/group_0200.py index bcceebb01..8fcf4e855 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0200.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0200.py @@ -10,38 +10,150 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0130 import ReactionRollupType +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType +from .group_0020 import RepositoryType +from .group_0153 import SecurityAndAnalysisType +from .group_0199 import CodeOfConductSimpleType -class TeamDiscussionType(TypedDict): - """Team Discussion +class FullRepositoryType(TypedDict): + """Full Repository - A team discussion is a persistent record of a free-form conversation within a - team. + Full Repository """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - comments_count: int - comments_url: str - created_at: datetime - last_edited_at: Union[datetime, None] - html_url: str + id: int node_id: str - number: int - pinned: bool + name: str + full_name: str + owner: SimpleUserType private: bool - team_url: str - title: str - updated_at: datetime + html_url: str + description: Union[str, None] + fork: bool url: str - reactions: NotRequired[ReactionRollupType] + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: NotRequired[bool] + has_discussions: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: datetime + created_at: datetime + updated_at: datetime + permissions: NotRequired[FullRepositoryPropPermissionsType] + allow_rebase_merge: NotRequired[bool] + template_repository: NotRequired[Union[None, RepositoryType]] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: int + network_count: int + license_: Union[None, LicenseSimpleType] + organization: NotRequired[Union[None, SimpleUserType]] + parent: NotRequired[RepositoryType] + source: NotRequired[RepositoryType] + forks: int + master_branch: NotRequired[str] + open_issues: int + watchers: int + anonymous_access_enabled: NotRequired[bool] + code_of_conduct: NotRequired[CodeOfConductSimpleType] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + custom_properties: NotRequired[FullRepositoryPropCustomPropertiesType] + + +class FullRepositoryPropPermissionsType(TypedDict): + """FullRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +FullRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""FullRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -__all__ = ("TeamDiscussionType",) +__all__ = ( + "FullRepositoryPropCustomPropertiesType", + "FullRepositoryPropPermissionsType", + "FullRepositoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0201.py b/githubkit/versions/ghec_v2022_11_28/types/group_0201.py index 22e7ca28c..74f027a0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0201.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0201.py @@ -10,32 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0130 import ReactionRollupType +class RuleSuitesItemsType(TypedDict): + """RuleSuitesItems""" -class TeamDiscussionCommentType(TypedDict): - """Team Discussion Comment + id: NotRequired[int] + actor_id: NotRequired[int] + actor_name: NotRequired[str] + before_sha: NotRequired[str] + after_sha: NotRequired[str] + ref: NotRequired[str] + repository_id: NotRequired[int] + repository_name: NotRequired[str] + pushed_at: NotRequired[datetime] + result: NotRequired[Literal["pass", "fail", "bypass"]] + evaluation_result: NotRequired[Literal["pass", "fail", "bypass"]] - A reply to a discussion within a team. - """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - created_at: datetime - last_edited_at: Union[datetime, None] - discussion_url: str - html_url: str - node_id: str - number: int - updated_at: datetime - url: str - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TeamDiscussionCommentType",) +__all__ = ("RuleSuitesItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0202.py b/githubkit/versions/ghec_v2022_11_28/types/group_0202.py index 27cb99992..edb6fa30e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0202.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0202.py @@ -11,25 +11,49 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class RuleSuiteType(TypedDict): + """Rule Suite -class ReactionType(TypedDict): - """Reaction - - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. + Response """ - id: int - node_id: str - user: Union[None, SimpleUserType] - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - created_at: datetime + id: NotRequired[int] + actor_id: NotRequired[Union[int, None]] + actor_name: NotRequired[Union[str, None]] + before_sha: NotRequired[str] + after_sha: NotRequired[str] + ref: NotRequired[str] + repository_id: NotRequired[int] + repository_name: NotRequired[str] + pushed_at: NotRequired[datetime] + result: NotRequired[Literal["pass", "fail", "bypass"]] + evaluation_result: NotRequired[Union[None, Literal["pass", "fail", "bypass"]]] + rule_evaluations: NotRequired[list[RuleSuitePropRuleEvaluationsItemsType]] + + +class RuleSuitePropRuleEvaluationsItemsType(TypedDict): + """RuleSuitePropRuleEvaluationsItems""" + + rule_source: NotRequired[RuleSuitePropRuleEvaluationsItemsPropRuleSourceType] + enforcement: NotRequired[Literal["active", "evaluate", "deleted ruleset"]] + result: NotRequired[Literal["pass", "fail"]] + rule_type: NotRequired[str] + details: NotRequired[Union[str, None]] + + +class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + + type: NotRequired[str] + id: NotRequired[Union[int, None]] + name: NotRequired[Union[str, None]] -__all__ = ("ReactionType",) +__all__ = ( + "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", + "RuleSuitePropRuleEvaluationsItemsType", + "RuleSuiteType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0203.py b/githubkit/versions/ghec_v2022_11_28/types/group_0203.py index 201ca0a17..ef2fcae57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0203.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0203.py @@ -12,16 +12,29 @@ from typing import Literal from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class TeamMembershipType(TypedDict): - """Team Membership - Team Membership - """ - - url: str - role: Literal["member", "maintainer"] - state: Literal["active", "pending"] +class RepositoryAdvisoryCreditType(TypedDict): + """RepositoryAdvisoryCredit + A credit given to a user for a repository security advisory. + """ -__all__ = ("TeamMembershipType",) + user: SimpleUserType + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + state: Literal["accepted", "declined", "pending"] + + +__all__ = ("RepositoryAdvisoryCreditType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0204.py b/githubkit/versions/ghec_v2022_11_28/types/group_0204.py index 0cfc30533..c65c379b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0204.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0204.py @@ -9,45 +9,142 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0001 import CvssSeveritiesType +from .group_0003 import SimpleUserType +from .group_0065 import TeamType +from .group_0203 import RepositoryAdvisoryCreditType -class TeamProjectType(TypedDict): - """Team Project +class RepositoryAdvisoryType(TypedDict): + """RepositoryAdvisory - A team's access to a project. + A repository security advisory. """ - owner_url: str + ghsa_id: str + cve_id: Union[str, None] url: str html_url: str - columns_url: str - id: int - node_id: str + summary: str + description: Union[str, None] + severity: Union[None, Literal["critical", "high", "medium", "low"]] + author: None + publisher: None + identifiers: list[RepositoryAdvisoryPropIdentifiersItemsType] + state: Literal["published", "closed", "withdrawn", "draft", "triage"] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + published_at: Union[datetime, None] + closed_at: Union[datetime, None] + withdrawn_at: Union[datetime, None] + submission: Union[RepositoryAdvisoryPropSubmissionType, None] + vulnerabilities: Union[list[RepositoryAdvisoryVulnerabilityType], None] + cvss: Union[RepositoryAdvisoryPropCvssType, None] + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: Union[list[RepositoryAdvisoryPropCwesItemsType], None] + cwe_ids: Union[list[str], None] + credits_: Union[list[RepositoryAdvisoryPropCreditsItemsType], None] + credits_detailed: Union[list[RepositoryAdvisoryCreditType], None] + collaborating_users: Union[list[SimpleUserType], None] + collaborating_teams: Union[list[TeamType], None] + private_fork: None + + +class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] + value: str + + +class RepositoryAdvisoryPropSubmissionType(TypedDict): + """RepositoryAdvisoryPropSubmission""" + + accepted: bool + + +class RepositoryAdvisoryPropCvssType(TypedDict): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] + score: Union[float, None] + + +class RepositoryAdvisoryPropCwesItemsType(TypedDict): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str name: str - body: Union[str, None] - number: int - state: str - creator: SimpleUserType - created_at: str - updated_at: str - organization_permission: NotRequired[str] - private: NotRequired[bool] - permissions: TeamProjectPropPermissionsType -class TeamProjectPropPermissionsType(TypedDict): - """TeamProjectPropPermissions""" +class RepositoryAdvisoryPropCreditsItemsType(TypedDict): + """RepositoryAdvisoryPropCreditsItems""" + + login: NotRequired[str] + type: NotRequired[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] + + +class RepositoryAdvisoryVulnerabilityType(TypedDict): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] + vulnerable_version_range: Union[str, None] + patched_versions: Union[str, None] + vulnerable_functions: Union[list[str], None] + + +class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ - read: bool - write: bool - admin: bool + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: Union[str, None] __all__ = ( - "TeamProjectPropPermissionsType", - "TeamProjectType", + "RepositoryAdvisoryPropCreditsItemsType", + "RepositoryAdvisoryPropCvssType", + "RepositoryAdvisoryPropCwesItemsType", + "RepositoryAdvisoryPropIdentifiersItemsType", + "RepositoryAdvisoryPropSubmissionType", + "RepositoryAdvisoryType", + "RepositoryAdvisoryVulnerabilityPropPackageType", + "RepositoryAdvisoryVulnerabilityType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0205.py b/githubkit/versions/ghec_v2022_11_28/types/group_0205.py index f6cd0e555..dcb7aa8bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0205.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0205.py @@ -9,122 +9,30 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0018 import LicenseSimpleType +class GroupMappingType(TypedDict): + """GroupMapping -class TeamRepositoryType(TypedDict): - """Team Repository - - A team's access to a repository. + External Groups to be mapped to a team for membership """ - id: int - node_id: str - name: str - full_name: str - license_: Union[None, LicenseSimpleType] - forks: int - permissions: NotRequired[TeamRepositoryPropPermissionsType] - role_name: NotRequired[str] - owner: Union[None, SimpleUserType] - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - open_issues: int - watchers: int - master_branch: NotRequired[str] + groups: NotRequired[list[GroupMappingPropGroupsItemsType]] -class TeamRepositoryPropPermissionsType(TypedDict): - """TeamRepositoryPropPermissions""" +class GroupMappingPropGroupsItemsType(TypedDict): + """GroupMappingPropGroupsItems""" - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] + group_id: str + group_name: str + group_description: str + status: NotRequired[str] + synced_at: NotRequired[Union[str, None]] __all__ = ( - "TeamRepositoryPropPermissionsType", - "TeamRepositoryType", + "GroupMappingPropGroupsItemsType", + "GroupMappingType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0206.py b/githubkit/versions/ghec_v2022_11_28/types/group_0206.py index 7c5a69b59..608ffa8a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0206.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0206.py @@ -10,31 +10,110 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0064 import TeamSimpleType -class ProjectCardType(TypedDict): - """Project Card +class TeamFullType(TypedDict): + """Full Team - Project cards represent a scope of work. + Groups of organization members that gives permissions on specified repositories. """ + id: int + node_id: str url: str + html_url: str + name: str + slug: str + description: Union[str, None] + privacy: NotRequired[Literal["closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: str + members_url: str + repositories_url: str + parent: NotRequired[Union[None, TeamSimpleType]] + members_count: int + repos_count: int + created_at: datetime + updated_at: datetime + organization: TeamOrganizationType + ldap_dn: NotRequired[str] + + +class TeamOrganizationType(TypedDict): + """Team Organization + + Team Organization + """ + + login: str id: int node_id: str - note: Union[str, None] - creator: Union[None, SimpleUserType] + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + name: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + blog: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + twitter_username: NotRequired[Union[str, None]] + is_verified: NotRequired[bool] + has_organization_projects: bool + has_repository_projects: bool + public_repos: int + public_gists: int + followers: int + following: int + html_url: str created_at: datetime + type: str + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + private_gists: NotRequired[Union[int, None]] + disk_usage: NotRequired[Union[int, None]] + collaborators: NotRequired[Union[int, None]] + billing_email: NotRequired[Union[str, None]] + plan: NotRequired[TeamOrganizationPropPlanType] + default_repository_permission: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] + web_commit_signoff_required: NotRequired[bool] updated_at: datetime - archived: NotRequired[bool] - column_name: NotRequired[str] - project_id: NotRequired[str] - column_url: str - content_url: NotRequired[str] - project_url: str + archived_at: Union[datetime, None] + + +class TeamOrganizationPropPlanType(TypedDict): + """TeamOrganizationPropPlan""" + + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] -__all__ = ("ProjectCardType",) +__all__ = ( + "TeamFullType", + "TeamOrganizationPropPlanType", + "TeamOrganizationType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0207.py b/githubkit/versions/ghec_v2022_11_28/types/group_0207.py index d23a9ab67..1662d0cbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0207.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0207.py @@ -10,23 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0137 import ReactionRollupType -class ProjectColumnType(TypedDict): - """Project Column - Project columns contain cards of work. +class TeamDiscussionType(TypedDict): + """Team Discussion + + A team discussion is a persistent record of a free-form conversation within a + team. """ - url: str - project_url: str - cards_url: str - id: int - node_id: str - name: str + author: Union[None, SimpleUserType] + body: str + body_html: str + body_version: str + comments_count: int + comments_url: str created_at: datetime + last_edited_at: Union[datetime, None] + html_url: str + node_id: str + number: int + pinned: bool + private: bool + team_url: str + title: str updated_at: datetime + url: str + reactions: NotRequired[ReactionRollupType] -__all__ = ("ProjectColumnType",) +__all__ = ("TeamDiscussionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0208.py b/githubkit/versions/ghec_v2022_11_28/types/group_0208.py index 07e5bb609..274ae207a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0208.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0208.py @@ -9,20 +9,33 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0137 import ReactionRollupType -class ProjectCollaboratorPermissionType(TypedDict): - """Project Collaborator Permission +class TeamDiscussionCommentType(TypedDict): + """Team Discussion Comment - Project Collaborator Permission + A reply to a discussion within a team. """ - permission: str - user: Union[None, SimpleUserType] - - -__all__ = ("ProjectCollaboratorPermissionType",) + author: Union[None, SimpleUserType] + body: str + body_html: str + body_version: str + created_at: datetime + last_edited_at: Union[datetime, None] + discussion_url: str + html_url: str + node_id: str + number: int + updated_at: datetime + url: str + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("TeamDiscussionCommentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0209.py b/githubkit/versions/ghec_v2022_11_28/types/group_0209.py index 7564a62f1..29fb93bc6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0209.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0209.py @@ -9,16 +9,27 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class RateLimitType(TypedDict): - """Rate Limit""" - limit: int - remaining: int - reset: int - used: int +class ReactionType(TypedDict): + """Reaction + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. + """ -__all__ = ("RateLimitType",) + id: int + node_id: str + user: Union[None, SimpleUserType] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] + created_at: datetime + + +__all__ = ("ReactionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0210.py b/githubkit/versions/ghec_v2022_11_28/types/group_0210.py index e3fdd4f13..201ca0a17 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0210.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0210.py @@ -9,20 +9,19 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -from .group_0209 import RateLimitType -from .group_0211 import RateLimitOverviewPropResourcesType +class TeamMembershipType(TypedDict): + """Team Membership -class RateLimitOverviewType(TypedDict): - """Rate Limit Overview - - Rate Limit Overview + Team Membership """ - resources: RateLimitOverviewPropResourcesType - rate: RateLimitType + url: str + role: Literal["member", "maintainer"] + state: Literal["active", "pending"] -__all__ = ("RateLimitOverviewType",) +__all__ = ("TeamMembershipType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0211.py b/githubkit/versions/ghec_v2022_11_28/types/group_0211.py index e7486f32b..eac617342 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0211.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0211.py @@ -9,25 +9,45 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0209 import RateLimitType +from .group_0003 import SimpleUserType -class RateLimitOverviewPropResourcesType(TypedDict): - """RateLimitOverviewPropResources""" +class TeamProjectType(TypedDict): + """Team Project - core: RateLimitType - graphql: NotRequired[RateLimitType] - search: RateLimitType - code_search: NotRequired[RateLimitType] - source_import: NotRequired[RateLimitType] - integration_manifest: NotRequired[RateLimitType] - code_scanning_upload: NotRequired[RateLimitType] - actions_runner_registration: NotRequired[RateLimitType] - scim: NotRequired[RateLimitType] - dependency_snapshots: NotRequired[RateLimitType] - code_scanning_autofix: NotRequired[RateLimitType] + A team's access to a project. + """ + owner_url: str + url: str + html_url: str + columns_url: str + id: int + node_id: str + name: str + body: Union[str, None] + number: int + state: str + creator: SimpleUserType + created_at: str + updated_at: str + organization_permission: NotRequired[str] + private: NotRequired[bool] + permissions: TeamProjectPropPermissionsType -__all__ = ("RateLimitOverviewPropResourcesType",) + +class TeamProjectPropPermissionsType(TypedDict): + """TeamProjectPropPermissions""" + + read: bool + write: bool + admin: bool + + +__all__ = ( + "TeamProjectPropPermissionsType", + "TeamProjectType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0212.py b/githubkit/versions/ghec_v2022_11_28/types/group_0212.py index 895478cbc..d648ae260 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0212.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0212.py @@ -13,37 +13,118 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType -class ArtifactType(TypedDict): - """Artifact - An artifact +class TeamRepositoryType(TypedDict): + """Team Repository + + A team's access to a repository. """ id: int node_id: str name: str - size_in_bytes: int + full_name: str + license_: Union[None, LicenseSimpleType] + forks: int + permissions: NotRequired[TeamRepositoryPropPermissionsType] + role_name: NotRequired[str] + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool url: str - archive_download_url: str - expired: bool + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] created_at: Union[datetime, None] - expires_at: Union[datetime, None] updated_at: Union[datetime, None] - workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + open_issues: int + watchers: int + master_branch: NotRequired[str] -class ArtifactPropWorkflowRunType(TypedDict): - """ArtifactPropWorkflowRun""" +class TeamRepositoryPropPermissionsType(TypedDict): + """TeamRepositoryPropPermissions""" - id: NotRequired[int] - repository_id: NotRequired[int] - head_repository_id: NotRequired[int] - head_branch: NotRequired[str] - head_sha: NotRequired[str] + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] __all__ = ( - "ArtifactPropWorkflowRunType", - "ArtifactType", + "TeamRepositoryPropPermissionsType", + "TeamRepositoryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0213.py b/githubkit/versions/ghec_v2022_11_28/types/group_0213.py index 88facf6b2..fdc7baddd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0213.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0213.py @@ -10,32 +10,31 @@ from __future__ import annotations from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class ActionsCacheListType(TypedDict): - """Repository actions caches - - Repository actions caches - """ - - total_count: int - actions_caches: list[ActionsCacheListPropActionsCachesItemsType] +class ProjectCardType(TypedDict): + """Project Card -class ActionsCacheListPropActionsCachesItemsType(TypedDict): - """ActionsCacheListPropActionsCachesItems""" - - id: NotRequired[int] - ref: NotRequired[str] - key: NotRequired[str] - version: NotRequired[str] - last_accessed_at: NotRequired[datetime] - created_at: NotRequired[datetime] - size_in_bytes: NotRequired[int] - + Project cards represent a scope of work. + """ -__all__ = ( - "ActionsCacheListPropActionsCachesItemsType", - "ActionsCacheListType", -) + url: str + id: int + node_id: str + note: Union[str, None] + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + archived: NotRequired[bool] + column_name: NotRequired[str] + project_id: NotRequired[str] + column_url: str + content_url: NotRequired[str] + project_url: str + + +__all__ = ("ProjectCardType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0214.py b/githubkit/versions/ghec_v2022_11_28/types/group_0214.py index 1d359461a..d23a9ab67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0214.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0214.py @@ -10,66 +10,23 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class JobType(TypedDict): - """Job +class ProjectColumnType(TypedDict): + """Project Column - Information of a job execution in a workflow run + Project columns contain cards of work. """ + url: str + project_url: str + cards_url: str id: int - run_id: int - run_url: str - run_attempt: NotRequired[int] node_id: str - head_sha: str - url: str - html_url: Union[str, None] - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - created_at: datetime - started_at: datetime - completed_at: Union[datetime, None] - name: str - steps: NotRequired[list[JobPropStepsItemsType]] - check_run_url: str - labels: list[str] - runner_id: Union[int, None] - runner_name: Union[str, None] - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - workflow_name: Union[str, None] - head_branch: Union[str, None] - - -class JobPropStepsItemsType(TypedDict): - """JobPropStepsItems""" - - status: Literal["queued", "in_progress", "completed"] - conclusion: Union[str, None] name: str - number: int - started_at: NotRequired[Union[datetime, None]] - completed_at: NotRequired[Union[datetime, None]] + created_at: datetime + updated_at: datetime -__all__ = ( - "JobPropStepsItemsType", - "JobType", -) +__all__ = ("ProjectColumnType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0215.py b/githubkit/versions/ghec_v2022_11_28/types/group_0215.py index faacb2b0b..45af07517 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0215.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0215.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class OidcCustomSubRepoType(TypedDict): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository +class ProjectCollaboratorPermissionType(TypedDict): + """Project Collaborator Permission + + Project Collaborator Permission """ - use_default: bool - include_claim_keys: NotRequired[list[str]] + permission: str + user: Union[None, SimpleUserType] -__all__ = ("OidcCustomSubRepoType",) +__all__ = ("ProjectCollaboratorPermissionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0216.py b/githubkit/versions/ghec_v2022_11_28/types/group_0216.py index 7d6ae5032..7564a62f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0216.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0216.py @@ -9,19 +9,16 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict -class ActionsSecretType(TypedDict): - """Actions Secret +class RateLimitType(TypedDict): + """Rate Limit""" - Set secrets for GitHub Actions. - """ + limit: int + remaining: int + reset: int + used: int - name: str - created_at: datetime - updated_at: datetime - -__all__ = ("ActionsSecretType",) +__all__ = ("RateLimitType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0217.py b/githubkit/versions/ghec_v2022_11_28/types/group_0217.py index eb13c7e2f..2511b31c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0217.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0217.py @@ -9,17 +9,20 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict +from .group_0216 import RateLimitType +from .group_0218 import RateLimitOverviewPropResourcesType -class ActionsVariableType(TypedDict): - """Actions Variable""" - name: str - value: str - created_at: datetime - updated_at: datetime +class RateLimitOverviewType(TypedDict): + """Rate Limit Overview + Rate Limit Overview + """ -__all__ = ("ActionsVariableType",) + resources: RateLimitOverviewPropResourcesType + rate: RateLimitType + + +__all__ = ("RateLimitOverviewType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0218.py b/githubkit/versions/ghec_v2022_11_28/types/group_0218.py index eb7ddcbc1..e043bb539 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0218.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0218.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0216 import RateLimitType -class ActionsRepositoryPermissionsType(TypedDict): - """ActionsRepositoryPermissions""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] +class RateLimitOverviewPropResourcesType(TypedDict): + """RateLimitOverviewPropResources""" + core: RateLimitType + graphql: NotRequired[RateLimitType] + search: RateLimitType + code_search: NotRequired[RateLimitType] + source_import: NotRequired[RateLimitType] + integration_manifest: NotRequired[RateLimitType] + code_scanning_upload: NotRequired[RateLimitType] + actions_runner_registration: NotRequired[RateLimitType] + scim: NotRequired[RateLimitType] + dependency_snapshots: NotRequired[RateLimitType] + code_scanning_autofix: NotRequired[RateLimitType] -__all__ = ("ActionsRepositoryPermissionsType",) + +__all__ = ("RateLimitOverviewPropResourcesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0219.py b/githubkit/versions/ghec_v2022_11_28/types/group_0219.py index d7d171918..895478cbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0219.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0219.py @@ -9,14 +9,41 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ActionsWorkflowAccessToRepositoryType(TypedDict): - """ActionsWorkflowAccessToRepository""" +class ArtifactType(TypedDict): + """Artifact - access_level: Literal["none", "user", "organization", "enterprise"] + An artifact + """ + id: int + node_id: str + name: str + size_in_bytes: int + url: str + archive_download_url: str + expired: bool + created_at: Union[datetime, None] + expires_at: Union[datetime, None] + updated_at: Union[datetime, None] + workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] -__all__ = ("ActionsWorkflowAccessToRepositoryType",) + +class ArtifactPropWorkflowRunType(TypedDict): + """ArtifactPropWorkflowRun""" + + id: NotRequired[int] + repository_id: NotRequired[int] + head_repository_id: NotRequired[int] + head_branch: NotRequired[str] + head_sha: NotRequired[str] + + +__all__ = ( + "ArtifactPropWorkflowRunType", + "ArtifactType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0220.py b/githubkit/versions/ghec_v2022_11_28/types/group_0220.py index 7879ad294..88facf6b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0220.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0220.py @@ -9,55 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -class PullRequestMinimalType(TypedDict): - """Pull Request Minimal""" +class ActionsCacheListType(TypedDict): + """Repository actions caches - id: int - number: int - url: str - head: PullRequestMinimalPropHeadType - base: PullRequestMinimalPropBaseType + Repository actions caches + """ + total_count: int + actions_caches: list[ActionsCacheListPropActionsCachesItemsType] -class PullRequestMinimalPropHeadType(TypedDict): - """PullRequestMinimalPropHead""" - ref: str - sha: str - repo: PullRequestMinimalPropHeadPropRepoType +class ActionsCacheListPropActionsCachesItemsType(TypedDict): + """ActionsCacheListPropActionsCachesItems""" - -class PullRequestMinimalPropHeadPropRepoType(TypedDict): - """PullRequestMinimalPropHeadPropRepo""" - - id: int - url: str - name: str - - -class PullRequestMinimalPropBaseType(TypedDict): - """PullRequestMinimalPropBase""" - - ref: str - sha: str - repo: PullRequestMinimalPropBasePropRepoType - - -class PullRequestMinimalPropBasePropRepoType(TypedDict): - """PullRequestMinimalPropBasePropRepo""" - - id: int - url: str - name: str + id: NotRequired[int] + ref: NotRequired[str] + key: NotRequired[str] + version: NotRequired[str] + last_accessed_at: NotRequired[datetime] + created_at: NotRequired[datetime] + size_in_bytes: NotRequired[int] __all__ = ( - "PullRequestMinimalPropBasePropRepoType", - "PullRequestMinimalPropBaseType", - "PullRequestMinimalPropHeadPropRepoType", - "PullRequestMinimalPropHeadType", - "PullRequestMinimalType", + "ActionsCacheListPropActionsCachesItemsType", + "ActionsCacheListType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0221.py b/githubkit/versions/ghec_v2022_11_28/types/group_0221.py index d8e989649..1d359461a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0221.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0221.py @@ -10,46 +10,66 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class SimpleCommitType(TypedDict): - """Simple Commit +class JobType(TypedDict): + """Job - A commit. - """ - - id: str - tree_id: str - message: str - timestamp: datetime - author: Union[SimpleCommitPropAuthorType, None] - committer: Union[SimpleCommitPropCommitterType, None] - - -class SimpleCommitPropAuthorType(TypedDict): - """SimpleCommitPropAuthor - - Information about the Git author + Information of a job execution in a workflow run """ + id: int + run_id: int + run_url: str + run_attempt: NotRequired[int] + node_id: str + head_sha: str + url: str + html_url: Union[str, None] + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] + created_at: datetime + started_at: datetime + completed_at: Union[datetime, None] name: str - email: str - - -class SimpleCommitPropCommitterType(TypedDict): - """SimpleCommitPropCommitter - - Information about the Git committer - """ - + steps: NotRequired[list[JobPropStepsItemsType]] + check_run_url: str + labels: list[str] + runner_id: Union[int, None] + runner_name: Union[str, None] + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + workflow_name: Union[str, None] + head_branch: Union[str, None] + + +class JobPropStepsItemsType(TypedDict): + """JobPropStepsItems""" + + status: Literal["queued", "in_progress", "completed"] + conclusion: Union[str, None] name: str - email: str + number: int + started_at: NotRequired[Union[datetime, None]] + completed_at: NotRequired[Union[datetime, None]] __all__ = ( - "SimpleCommitPropAuthorType", - "SimpleCommitPropCommitterType", - "SimpleCommitType", + "JobPropStepsItemsType", + "JobType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0222.py b/githubkit/versions/ghec_v2022_11_28/types/group_0222.py index ff162137f..faacb2b0b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0222.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0222.py @@ -9,72 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0147 import MinimalRepositoryType -from .group_0220 import PullRequestMinimalType -from .group_0221 import SimpleCommitType +class OidcCustomSubRepoType(TypedDict): + """Actions OIDC subject customization for a repository -class WorkflowRunType(TypedDict): - """Workflow Run - - An invocation of a workflow - """ - - id: int - name: NotRequired[Union[str, None]] - node_id: str - check_suite_id: NotRequired[int] - check_suite_node_id: NotRequired[str] - head_branch: Union[str, None] - head_sha: str - path: str - run_number: int - run_attempt: NotRequired[int] - referenced_workflows: NotRequired[Union[list[ReferencedWorkflowType], None]] - event: str - status: Union[str, None] - conclusion: Union[str, None] - workflow_id: int - url: str - html_url: str - pull_requests: Union[list[PullRequestMinimalType], None] - created_at: datetime - updated_at: datetime - actor: NotRequired[SimpleUserType] - triggering_actor: NotRequired[SimpleUserType] - run_started_at: NotRequired[datetime] - jobs_url: str - logs_url: str - check_suite_url: str - artifacts_url: str - cancel_url: str - rerun_url: str - previous_attempt_url: NotRequired[Union[str, None]] - workflow_url: str - head_commit: Union[None, SimpleCommitType] - repository: MinimalRepositoryType - head_repository: MinimalRepositoryType - head_repository_id: NotRequired[int] - display_title: str - - -class ReferencedWorkflowType(TypedDict): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow + Actions OIDC subject customization for a repository """ - path: str - sha: str - ref: NotRequired[str] + use_default: bool + include_claim_keys: NotRequired[list[str]] -__all__ = ( - "ReferencedWorkflowType", - "WorkflowRunType", -) +__all__ = ("OidcCustomSubRepoType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0223.py b/githubkit/versions/ghec_v2022_11_28/types/group_0223.py index 3f73ede90..7d6ae5032 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0223.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0223.py @@ -10,37 +10,18 @@ from __future__ import annotations from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +class ActionsSecretType(TypedDict): + """Actions Secret -class EnvironmentApprovalsType(TypedDict): - """Environment Approval - - An entry in the reviews log for environment deployments + Set secrets for GitHub Actions. """ - environments: list[EnvironmentApprovalsPropEnvironmentsItemsType] - state: Literal["approved", "rejected", "pending"] - user: SimpleUserType - comment: str - - -class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): - """EnvironmentApprovalsPropEnvironmentsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] + name: str + created_at: datetime + updated_at: datetime -__all__ = ( - "EnvironmentApprovalsPropEnvironmentsItemsType", - "EnvironmentApprovalsType", -) +__all__ = ("ActionsSecretType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0224.py b/githubkit/versions/ghec_v2022_11_28/types/group_0224.py index 909bb75c8..eb13c7e2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0224.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0224.py @@ -9,14 +9,17 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class ReviewCustomGatesCommentRequiredType(TypedDict): - """ReviewCustomGatesCommentRequired""" +class ActionsVariableType(TypedDict): + """Actions Variable""" - environment_name: str - comment: str + name: str + value: str + created_at: datetime + updated_at: datetime -__all__ = ("ReviewCustomGatesCommentRequiredType",) +__all__ = ("ActionsVariableType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0225.py b/githubkit/versions/ghec_v2022_11_28/types/group_0225.py index 75b0bb6f6..eb7ddcbc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0225.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0225.py @@ -13,12 +13,12 @@ from typing_extensions import NotRequired, TypedDict -class ReviewCustomGatesStateRequiredType(TypedDict): - """ReviewCustomGatesStateRequired""" +class ActionsRepositoryPermissionsType(TypedDict): + """ActionsRepositoryPermissions""" - environment_name: str - state: Literal["approved", "rejected"] - comment: NotRequired[str] + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] -__all__ = ("ReviewCustomGatesStateRequiredType",) +__all__ = ("ActionsRepositoryPermissionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0226.py b/githubkit/versions/ghec_v2022_11_28/types/group_0226.py index 01f030e7f..d7d171918 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0226.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0226.py @@ -9,46 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0060 import TeamType +class ActionsWorkflowAccessToRepositoryType(TypedDict): + """ActionsWorkflowAccessToRepository""" -class PendingDeploymentPropReviewersItemsType(TypedDict): - """PendingDeploymentPropReviewersItems""" + access_level: Literal["none", "user", "organization", "enterprise"] - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] - -class PendingDeploymentType(TypedDict): - """Pending Deployment - - Details of a deployment that is waiting for protection rules to pass - """ - - environment: PendingDeploymentPropEnvironmentType - wait_timer: int - wait_timer_started_at: Union[datetime, None] - current_user_can_approve: bool - reviewers: list[PendingDeploymentPropReviewersItemsType] - - -class PendingDeploymentPropEnvironmentType(TypedDict): - """PendingDeploymentPropEnvironment""" - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - - -__all__ = ( - "PendingDeploymentPropEnvironmentType", - "PendingDeploymentPropReviewersItemsType", - "PendingDeploymentType", -) +__all__ = ("ActionsWorkflowAccessToRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0227.py b/githubkit/versions/ghec_v2022_11_28/types/group_0227.py index 73179d0ed..7879ad294 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0227.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0227.py @@ -9,46 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +class PullRequestMinimalType(TypedDict): + """Pull Request Minimal""" -class DeploymentType(TypedDict): - """Deployment + id: int + number: int + url: str + head: PullRequestMinimalPropHeadType + base: PullRequestMinimalPropBaseType - A request for a specific ref(branch,sha,tag) to be deployed - """ - url: str - id: int - node_id: str +class PullRequestMinimalPropHeadType(TypedDict): + """PullRequestMinimalPropHead""" + + ref: str sha: str + repo: PullRequestMinimalPropHeadPropRepoType + + +class PullRequestMinimalPropHeadPropRepoType(TypedDict): + """PullRequestMinimalPropHeadPropRepo""" + + id: int + url: str + name: str + + +class PullRequestMinimalPropBaseType(TypedDict): + """PullRequestMinimalPropBase""" + ref: str - task: str - payload: Union[DeploymentPropPayloadOneof0Type, str] - original_environment: NotRequired[str] - environment: str - description: Union[str, None] - creator: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - statuses_url: str - repository_url: str - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -DeploymentPropPayloadOneof0Type: TypeAlias = dict[str, Any] -"""DeploymentPropPayloadOneof0 -""" + sha: str + repo: PullRequestMinimalPropBasePropRepoType + + +class PullRequestMinimalPropBasePropRepoType(TypedDict): + """PullRequestMinimalPropBasePropRepo""" + + id: int + url: str + name: str __all__ = ( - "DeploymentPropPayloadOneof0Type", - "DeploymentType", + "PullRequestMinimalPropBasePropRepoType", + "PullRequestMinimalPropBaseType", + "PullRequestMinimalPropHeadPropRepoType", + "PullRequestMinimalPropHeadType", + "PullRequestMinimalType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0228.py b/githubkit/versions/ghec_v2022_11_28/types/group_0228.py index f9d6d4cf5..d8e989649 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0228.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0228.py @@ -9,85 +9,47 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import TypedDict -class WorkflowRunUsageType(TypedDict): - """Workflow Run Usage +class SimpleCommitType(TypedDict): + """Simple Commit - Workflow Run Usage + A commit. """ - billable: WorkflowRunUsagePropBillableType - run_duration_ms: NotRequired[int] + id: str + tree_id: str + message: str + timestamp: datetime + author: Union[SimpleCommitPropAuthorType, None] + committer: Union[SimpleCommitPropCommitterType, None] -class WorkflowRunUsagePropBillableType(TypedDict): - """WorkflowRunUsagePropBillable""" - - ubuntu: NotRequired[WorkflowRunUsagePropBillablePropUbuntuType] - macos: NotRequired[WorkflowRunUsagePropBillablePropMacosType] - windows: NotRequired[WorkflowRunUsagePropBillablePropWindowsType] - - -class WorkflowRunUsagePropBillablePropUbuntuType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntu""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" - - job_id: int - duration_ms: int - - -class WorkflowRunUsagePropBillablePropMacosType(TypedDict): - """WorkflowRunUsagePropBillablePropMacos""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" - - job_id: int - duration_ms: int +class SimpleCommitPropAuthorType(TypedDict): + """SimpleCommitPropAuthor + Information about the Git author + """ -class WorkflowRunUsagePropBillablePropWindowsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindows""" + name: str + email: str - total_ms: int - jobs: int - job_runs: NotRequired[ - list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType] - ] +class SimpleCommitPropCommitterType(TypedDict): + """SimpleCommitPropCommitter -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + Information about the Git committer + """ - job_id: int - duration_ms: int + name: str + email: str __all__ = ( - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropMacosType", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropUbuntuType", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropWindowsType", - "WorkflowRunUsagePropBillableType", - "WorkflowRunUsageType", + "SimpleCommitPropAuthorType", + "SimpleCommitPropCommitterType", + "SimpleCommitType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0229.py b/githubkit/versions/ghec_v2022_11_28/types/group_0229.py index 6cefd47bb..45dc4a4cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0229.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0229.py @@ -9,48 +9,72 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0154 import MinimalRepositoryType +from .group_0227 import PullRequestMinimalType +from .group_0228 import SimpleCommitType -class WorkflowUsageType(TypedDict): - """Workflow Usage - Workflow Usage - """ - - billable: WorkflowUsagePropBillableType - - -class WorkflowUsagePropBillableType(TypedDict): - """WorkflowUsagePropBillable""" - - ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] - macos: NotRequired[WorkflowUsagePropBillablePropMacosType] - windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] - - -class WorkflowUsagePropBillablePropUbuntuType(TypedDict): - """WorkflowUsagePropBillablePropUbuntu""" - - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropMacosType(TypedDict): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: NotRequired[int] +class WorkflowRunType(TypedDict): + """Workflow Run + An invocation of a workflow + """ -class WorkflowUsagePropBillablePropWindowsType(TypedDict): - """WorkflowUsagePropBillablePropWindows""" + id: int + name: NotRequired[Union[str, None]] + node_id: str + check_suite_id: NotRequired[int] + check_suite_node_id: NotRequired[str] + head_branch: Union[str, None] + head_sha: str + path: str + run_number: int + run_attempt: NotRequired[int] + referenced_workflows: NotRequired[Union[list[ReferencedWorkflowType], None]] + event: str + status: Union[str, None] + conclusion: Union[str, None] + workflow_id: int + url: str + html_url: str + pull_requests: Union[list[PullRequestMinimalType], None] + created_at: datetime + updated_at: datetime + actor: NotRequired[SimpleUserType] + triggering_actor: NotRequired[SimpleUserType] + run_started_at: NotRequired[datetime] + jobs_url: str + logs_url: str + check_suite_url: str + artifacts_url: str + cancel_url: str + rerun_url: str + previous_attempt_url: NotRequired[Union[str, None]] + workflow_url: str + head_commit: Union[None, SimpleCommitType] + repository: MinimalRepositoryType + head_repository: MinimalRepositoryType + head_repository_id: NotRequired[int] + display_title: str + + +class ReferencedWorkflowType(TypedDict): + """Referenced workflow + + A workflow referenced/reused by the initial caller workflow + """ - total_ms: NotRequired[int] + path: str + sha: str + ref: NotRequired[str] __all__ = ( - "WorkflowUsagePropBillablePropMacosType", - "WorkflowUsagePropBillablePropUbuntuType", - "WorkflowUsagePropBillablePropWindowsType", - "WorkflowUsagePropBillableType", - "WorkflowUsageType", + "ReferencedWorkflowType", + "WorkflowRunType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0230.py b/githubkit/versions/ghec_v2022_11_28/types/group_0230.py index 751772490..8003cc5ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0230.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0230.py @@ -10,33 +10,37 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType -class ActivityType(TypedDict): - """Activity +class EnvironmentApprovalsType(TypedDict): + """Environment Approval - Activity + An entry in the reviews log for environment deployments """ - id: int - node_id: str - before: str - after: str - ref: str - timestamp: datetime - activity_type: Literal[ - "push", - "force_push", - "branch_deletion", - "branch_creation", - "pr_merge", - "merge_queue_merge", - ] - actor: Union[None, SimpleUserType] - - -__all__ = ("ActivityType",) + environments: list[EnvironmentApprovalsPropEnvironmentsItemsType] + state: Literal["approved", "rejected", "pending"] + user: SimpleUserType + comment: str + + +class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): + """EnvironmentApprovalsPropEnvironmentsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + + +__all__ = ( + "EnvironmentApprovalsPropEnvironmentsItemsType", + "EnvironmentApprovalsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0231.py b/githubkit/versions/ghec_v2022_11_28/types/group_0231.py index 8b6890539..909bb75c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0231.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0231.py @@ -12,16 +12,11 @@ from typing_extensions import TypedDict -class AutolinkType(TypedDict): - """Autolink reference +class ReviewCustomGatesCommentRequiredType(TypedDict): + """ReviewCustomGatesCommentRequired""" - An autolink reference. - """ + environment_name: str + comment: str - id: int - key_prefix: str - url_template: str - is_alphanumeric: bool - -__all__ = ("AutolinkType",) +__all__ = ("ReviewCustomGatesCommentRequiredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0232.py b/githubkit/versions/ghec_v2022_11_28/types/group_0232.py index deb29de44..75b0bb6f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0232.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0232.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class CheckAutomatedSecurityFixesType(TypedDict): - """Check Dependabot security updates +class ReviewCustomGatesStateRequiredType(TypedDict): + """ReviewCustomGatesStateRequired""" - Check Dependabot security updates - """ + environment_name: str + state: Literal["approved", "rejected"] + comment: NotRequired[str] - enabled: bool - paused: bool - -__all__ = ("CheckAutomatedSecurityFixesType",) +__all__ = ("ReviewCustomGatesStateRequiredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0233.py b/githubkit/versions/ghec_v2022_11_28/types/group_0233.py index 889220ded..990251eaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0233.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0233.py @@ -9,31 +9,46 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0234 import ( - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, -) +from .group_0003 import SimpleUserType +from .group_0065 import TeamType + + +class PendingDeploymentPropReviewersItemsType(TypedDict): + """PendingDeploymentPropReviewersItems""" + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] -class ProtectedBranchPullRequestReviewType(TypedDict): - """Protected Branch Pull Request Review - Protected Branch Pull Request Review +class PendingDeploymentType(TypedDict): + """Pending Deployment + + Details of a deployment that is waiting for protection rules to pass """ + environment: PendingDeploymentPropEnvironmentType + wait_timer: int + wait_timer_started_at: Union[datetime, None] + current_user_can_approve: bool + reviewers: list[PendingDeploymentPropReviewersItemsType] + + +class PendingDeploymentPropEnvironmentType(TypedDict): + """PendingDeploymentPropEnvironment""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] url: NotRequired[str] - dismissal_restrictions: NotRequired[ - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType - ] - dismiss_stale_reviews: bool - require_code_owner_reviews: bool - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - - -__all__ = ("ProtectedBranchPullRequestReviewType",) + html_url: NotRequired[str] + + +__all__ = ( + "PendingDeploymentPropEnvironmentType", + "PendingDeploymentPropReviewersItemsType", + "PendingDeploymentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0234.py b/githubkit/versions/ghec_v2022_11_28/types/group_0234.py index 7d302ae90..92437789e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0234.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0234.py @@ -9,37 +9,46 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0060 import TeamType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" +class DeploymentType(TypedDict): + """Deployment - users: NotRequired[list[SimpleUserType]] - teams: NotRequired[list[TeamType]] - apps: NotRequired[list[Union[IntegrationType, None]]] - url: NotRequired[str] - users_url: NotRequired[str] - teams_url: NotRequired[str] - - -class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): - """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. + A request for a specific ref(branch,sha,tag) to be deployed """ - users: NotRequired[list[SimpleUserType]] - teams: NotRequired[list[TeamType]] - apps: NotRequired[list[Union[IntegrationType, None]]] + url: str + id: int + node_id: str + sha: str + ref: str + task: str + payload: Union[DeploymentPropPayloadOneof0Type, str] + original_environment: NotRequired[str] + environment: str + description: Union[str, None] + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + statuses_url: str + repository_url: str + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +DeploymentPropPayloadOneof0Type: TypeAlias = dict[str, Any] +"""DeploymentPropPayloadOneof0 +""" __all__ = ( - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", - "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", + "DeploymentPropPayloadOneof0Type", + "DeploymentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0235.py b/githubkit/versions/ghec_v2022_11_28/types/group_0235.py index f6fd03a7a..f9d6d4cf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0235.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0235.py @@ -9,128 +9,85 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class BranchRestrictionPolicyType(TypedDict): - """Branch Restriction Policy +class WorkflowRunUsageType(TypedDict): + """Workflow Run Usage - Branch Restriction Policy + Workflow Run Usage """ - url: str - users_url: str - teams_url: str - apps_url: str - users: list[BranchRestrictionPolicyPropUsersItemsType] - teams: list[BranchRestrictionPolicyPropTeamsItemsType] - apps: list[BranchRestrictionPolicyPropAppsItemsType] - - -class BranchRestrictionPolicyPropUsersItemsType(TypedDict): - """BranchRestrictionPolicyPropUsersItems""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - user_view_type: NotRequired[str] - - -class BranchRestrictionPolicyPropTeamsItemsType(TypedDict): - """BranchRestrictionPolicyPropTeamsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - name: NotRequired[str] - slug: NotRequired[str] - description: NotRequired[Union[str, None]] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: NotRequired[str] - members_url: NotRequired[str] - repositories_url: NotRequired[str] - parent: NotRequired[Union[str, None]] - - -class BranchRestrictionPolicyPropAppsItemsType(TypedDict): - """BranchRestrictionPolicyPropAppsItems""" - - id: NotRequired[int] - slug: NotRequired[str] - node_id: NotRequired[str] - owner: NotRequired[BranchRestrictionPolicyPropAppsItemsPropOwnerType] - name: NotRequired[str] - client_id: NotRequired[str] - description: NotRequired[str] - external_url: NotRequired[str] - html_url: NotRequired[str] - created_at: NotRequired[str] - updated_at: NotRequired[str] - permissions: NotRequired[BranchRestrictionPolicyPropAppsItemsPropPermissionsType] - events: NotRequired[list[str]] - - -class BranchRestrictionPolicyPropAppsItemsPropOwnerType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - hooks_url: NotRequired[str] - issues_url: NotRequired[str] - members_url: NotRequired[str] - public_members_url: NotRequired[str] - avatar_url: NotRequired[str] - description: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - user_view_type: NotRequired[str] - - -class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: NotRequired[str] - contents: NotRequired[str] - issues: NotRequired[str] - single_file: NotRequired[str] + billable: WorkflowRunUsagePropBillableType + run_duration_ms: NotRequired[int] + + +class WorkflowRunUsagePropBillableType(TypedDict): + """WorkflowRunUsagePropBillable""" + + ubuntu: NotRequired[WorkflowRunUsagePropBillablePropUbuntuType] + macos: NotRequired[WorkflowRunUsagePropBillablePropMacosType] + windows: NotRequired[WorkflowRunUsagePropBillablePropWindowsType] + + +class WorkflowRunUsagePropBillablePropUbuntuType(TypedDict): + """WorkflowRunUsagePropBillablePropUbuntu""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" + + job_id: int + duration_ms: int + + +class WorkflowRunUsagePropBillablePropMacosType(TypedDict): + """WorkflowRunUsagePropBillablePropMacos""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" + + job_id: int + duration_ms: int + + +class WorkflowRunUsagePropBillablePropWindowsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindows""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int + duration_ms: int __all__ = ( - "BranchRestrictionPolicyPropAppsItemsPropOwnerType", - "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", - "BranchRestrictionPolicyPropAppsItemsType", - "BranchRestrictionPolicyPropTeamsItemsType", - "BranchRestrictionPolicyPropUsersItemsType", - "BranchRestrictionPolicyType", + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropMacosType", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropUbuntuType", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropWindowsType", + "WorkflowRunUsagePropBillableType", + "WorkflowRunUsageType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0236.py b/githubkit/versions/ghec_v2022_11_28/types/group_0236.py index 98c8f5b02..6cefd47bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0236.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0236.py @@ -9,138 +9,48 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0233 import ProtectedBranchPullRequestReviewType -from .group_0235 import BranchRestrictionPolicyType +class WorkflowUsageType(TypedDict): + """Workflow Usage -class BranchProtectionType(TypedDict): - """Branch Protection - - Branch Protection - """ - - url: NotRequired[str] - enabled: NotRequired[bool] - required_status_checks: NotRequired[ProtectedBranchRequiredStatusCheckType] - enforce_admins: NotRequired[ProtectedBranchAdminEnforcedType] - required_pull_request_reviews: NotRequired[ProtectedBranchPullRequestReviewType] - restrictions: NotRequired[BranchRestrictionPolicyType] - required_linear_history: NotRequired[BranchProtectionPropRequiredLinearHistoryType] - allow_force_pushes: NotRequired[BranchProtectionPropAllowForcePushesType] - allow_deletions: NotRequired[BranchProtectionPropAllowDeletionsType] - block_creations: NotRequired[BranchProtectionPropBlockCreationsType] - required_conversation_resolution: NotRequired[ - BranchProtectionPropRequiredConversationResolutionType - ] - name: NotRequired[str] - protection_url: NotRequired[str] - required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] - lock_branch: NotRequired[BranchProtectionPropLockBranchType] - allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] - - -class ProtectedBranchAdminEnforcedType(TypedDict): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced + Workflow Usage """ - url: str - enabled: bool - - -class BranchProtectionPropRequiredLinearHistoryType(TypedDict): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowForcePushesType(TypedDict): - """BranchProtectionPropAllowForcePushes""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowDeletionsType(TypedDict): - """BranchProtectionPropAllowDeletions""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropBlockCreationsType(TypedDict): - """BranchProtectionPropBlockCreations""" + billable: WorkflowUsagePropBillableType - enabled: NotRequired[bool] +class WorkflowUsagePropBillableType(TypedDict): + """WorkflowUsagePropBillable""" -class BranchProtectionPropRequiredConversationResolutionType(TypedDict): - """BranchProtectionPropRequiredConversationResolution""" + ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] + macos: NotRequired[WorkflowUsagePropBillablePropMacosType] + windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] - enabled: NotRequired[bool] +class WorkflowUsagePropBillablePropUbuntuType(TypedDict): + """WorkflowUsagePropBillablePropUbuntu""" -class BranchProtectionPropRequiredSignaturesType(TypedDict): - """BranchProtectionPropRequiredSignatures""" + total_ms: NotRequired[int] - url: str - enabled: bool +class WorkflowUsagePropBillablePropMacosType(TypedDict): + """WorkflowUsagePropBillablePropMacos""" -class BranchProtectionPropLockBranchType(TypedDict): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowForkSyncingType(TypedDict): - """BranchProtectionPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: NotRequired[bool] - - -class ProtectedBranchRequiredStatusCheckType(TypedDict): - """Protected Branch Required Status Check - - Protected Branch Required Status Check - """ - - url: NotRequired[str] - enforcement_level: NotRequired[str] - contexts: list[str] - checks: list[ProtectedBranchRequiredStatusCheckPropChecksItemsType] - contexts_url: NotRequired[str] - strict: NotRequired[bool] + total_ms: NotRequired[int] -class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" +class WorkflowUsagePropBillablePropWindowsType(TypedDict): + """WorkflowUsagePropBillablePropWindows""" - context: str - app_id: Union[int, None] + total_ms: NotRequired[int] __all__ = ( - "BranchProtectionPropAllowDeletionsType", - "BranchProtectionPropAllowForcePushesType", - "BranchProtectionPropAllowForkSyncingType", - "BranchProtectionPropBlockCreationsType", - "BranchProtectionPropLockBranchType", - "BranchProtectionPropRequiredConversationResolutionType", - "BranchProtectionPropRequiredLinearHistoryType", - "BranchProtectionPropRequiredSignaturesType", - "BranchProtectionType", - "ProtectedBranchAdminEnforcedType", - "ProtectedBranchRequiredStatusCheckPropChecksItemsType", - "ProtectedBranchRequiredStatusCheckType", + "WorkflowUsagePropBillablePropMacosType", + "WorkflowUsagePropBillablePropUbuntuType", + "WorkflowUsagePropBillablePropWindowsType", + "WorkflowUsagePropBillableType", + "WorkflowUsageType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0237.py b/githubkit/versions/ghec_v2022_11_28/types/group_0237.py index b2cf95d0d..1deac10b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0237.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0237.py @@ -9,32 +9,34 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0236 import BranchProtectionType +from .group_0003 import SimpleUserType -class ShortBranchType(TypedDict): - """Short Branch +class ActivityType(TypedDict): + """Activity - Short Branch + Activity """ - name: str - commit: ShortBranchPropCommitType - protected: bool - protection: NotRequired[BranchProtectionType] - protection_url: NotRequired[str] - - -class ShortBranchPropCommitType(TypedDict): - """ShortBranchPropCommit""" - - sha: str - url: str - - -__all__ = ( - "ShortBranchPropCommitType", - "ShortBranchType", -) + id: int + node_id: str + before: str + after: str + ref: str + timestamp: datetime + activity_type: Literal[ + "push", + "force_push", + "branch_deletion", + "branch_creation", + "pr_merge", + "merge_queue_merge", + ] + actor: Union[None, SimpleUserType] + + +__all__ = ("ActivityType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0238.py b/githubkit/versions/ghec_v2022_11_28/types/group_0238.py index 69dd1c546..8b6890539 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0238.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0238.py @@ -9,18 +9,19 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class GitUserType(TypedDict): - """Git User +class AutolinkType(TypedDict): + """Autolink reference - Metaproperties for Git author/committer information. + An autolink reference. """ - name: NotRequired[str] - email: NotRequired[str] - date: NotRequired[str] + id: int + key_prefix: str + url_template: str + is_alphanumeric: bool -__all__ = ("GitUserType",) +__all__ = ("AutolinkType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0239.py b/githubkit/versions/ghec_v2022_11_28/types/group_0239.py index fb5244f00..deb29de44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0239.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0239.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class VerificationType(TypedDict): - """Verification""" +class CheckAutomatedSecurityFixesType(TypedDict): + """Check Dependabot security updates - verified: bool - reason: str - payload: Union[str, None] - signature: Union[str, None] - verified_at: NotRequired[Union[str, None]] + Check Dependabot security updates + """ + enabled: bool + paused: bool -__all__ = ("VerificationType",) + +__all__ = ("CheckAutomatedSecurityFixesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0240.py b/githubkit/versions/ghec_v2022_11_28/types/group_0240.py index 974bfbf83..890e90951 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0240.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0240.py @@ -9,29 +9,31 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0241 import ( + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, +) -class DiffEntryType(TypedDict): - """Diff Entry - Diff Entry +class ProtectedBranchPullRequestReviewType(TypedDict): + """Protected Branch Pull Request Review + + Protected Branch Pull Request Review """ - sha: str - filename: str - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + url: NotRequired[str] + dismissal_restrictions: NotRequired[ + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType + ] + bypass_pull_request_allowances: NotRequired[ + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType ] - additions: int - deletions: int - changes: int - blob_url: Union[str, None] - raw_url: Union[str, None] - contents_url: str - patch: NotRequired[str] - previous_filename: NotRequired[str] + dismiss_stale_reviews: bool + require_code_owner_reviews: bool + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] -__all__ = ("DiffEntryType",) +__all__ = ("ProtectedBranchPullRequestReviewType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0241.py b/githubkit/versions/ghec_v2022_11_28/types/group_0241.py index 2e8c63c2c..9ea092aee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0241.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0241.py @@ -12,56 +12,34 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0240 import DiffEntryType -from .group_0242 import CommitPropCommitType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0065 import TeamType -class CommitType(TypedDict): - """Commit +class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" - Commit - """ - - url: str - sha: str - node_id: str - html_url: str - comments_url: str - commit: CommitPropCommitType - author: Union[SimpleUserType, EmptyObjectType, None] - committer: Union[SimpleUserType, EmptyObjectType, None] - parents: list[CommitPropParentsItemsType] - stats: NotRequired[CommitPropStatsType] - files: NotRequired[list[DiffEntryType]] + users: NotRequired[list[SimpleUserType]] + teams: NotRequired[list[TeamType]] + apps: NotRequired[list[Union[IntegrationType, None]]] + url: NotRequired[str] + users_url: NotRequired[str] + teams_url: NotRequired[str] -class EmptyObjectType(TypedDict): - """Empty Object +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - An object without any properties. + Allow specific users, teams, or apps to bypass pull request requirements. """ - -class CommitPropParentsItemsType(TypedDict): - """CommitPropParentsItems""" - - sha: str - url: str - html_url: NotRequired[str] - - -class CommitPropStatsType(TypedDict): - """CommitPropStats""" - - additions: NotRequired[int] - deletions: NotRequired[int] - total: NotRequired[int] + users: NotRequired[list[SimpleUserType]] + teams: NotRequired[list[TeamType]] + apps: NotRequired[list[Union[IntegrationType, None]]] __all__ = ( - "CommitPropParentsItemsType", - "CommitPropStatsType", - "CommitType", - "EmptyObjectType", + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", + "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0242.py b/githubkit/versions/ghec_v2022_11_28/types/group_0242.py index 22e0ab59a..f6fd03a7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0242.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0242.py @@ -12,30 +12,125 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0238 import GitUserType -from .group_0239 import VerificationType +class BranchRestrictionPolicyType(TypedDict): + """Branch Restriction Policy -class CommitPropCommitType(TypedDict): - """CommitPropCommit""" + Branch Restriction Policy + """ url: str - author: Union[None, GitUserType] - committer: Union[None, GitUserType] - message: str - comment_count: int - tree: CommitPropCommitPropTreeType - verification: NotRequired[VerificationType] + users_url: str + teams_url: str + apps_url: str + users: list[BranchRestrictionPolicyPropUsersItemsType] + teams: list[BranchRestrictionPolicyPropTeamsItemsType] + apps: list[BranchRestrictionPolicyPropAppsItemsType] -class CommitPropCommitPropTreeType(TypedDict): - """CommitPropCommitPropTree""" +class BranchRestrictionPolicyPropUsersItemsType(TypedDict): + """BranchRestrictionPolicyPropUsersItems""" - sha: str - url: str + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] + site_admin: NotRequired[bool] + user_view_type: NotRequired[str] + + +class BranchRestrictionPolicyPropTeamsItemsType(TypedDict): + """BranchRestrictionPolicyPropTeamsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + name: NotRequired[str] + slug: NotRequired[str] + description: NotRequired[Union[str, None]] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: NotRequired[str] + members_url: NotRequired[str] + repositories_url: NotRequired[str] + parent: NotRequired[Union[str, None]] + + +class BranchRestrictionPolicyPropAppsItemsType(TypedDict): + """BranchRestrictionPolicyPropAppsItems""" + + id: NotRequired[int] + slug: NotRequired[str] + node_id: NotRequired[str] + owner: NotRequired[BranchRestrictionPolicyPropAppsItemsPropOwnerType] + name: NotRequired[str] + client_id: NotRequired[str] + description: NotRequired[str] + external_url: NotRequired[str] + html_url: NotRequired[str] + created_at: NotRequired[str] + updated_at: NotRequired[str] + permissions: NotRequired[BranchRestrictionPolicyPropAppsItemsPropPermissionsType] + events: NotRequired[list[str]] + + +class BranchRestrictionPolicyPropAppsItemsPropOwnerType(TypedDict): + """BranchRestrictionPolicyPropAppsItemsPropOwner""" + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + hooks_url: NotRequired[str] + issues_url: NotRequired[str] + members_url: NotRequired[str] + public_members_url: NotRequired[str] + avatar_url: NotRequired[str] + description: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] + site_admin: NotRequired[bool] + user_view_type: NotRequired[str] + + +class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): + """BranchRestrictionPolicyPropAppsItemsPropPermissions""" + + metadata: NotRequired[str] + contents: NotRequired[str] + issues: NotRequired[str] + single_file: NotRequired[str] __all__ = ( - "CommitPropCommitPropTreeType", - "CommitPropCommitType", + "BranchRestrictionPolicyPropAppsItemsPropOwnerType", + "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", + "BranchRestrictionPolicyPropAppsItemsType", + "BranchRestrictionPolicyPropTeamsItemsType", + "BranchRestrictionPolicyPropUsersItemsType", + "BranchRestrictionPolicyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0243.py b/githubkit/versions/ghec_v2022_11_28/types/group_0243.py index ddadf31ba..c5b99837b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0243.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0243.py @@ -9,36 +9,138 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0236 import BranchProtectionType -from .group_0241 import CommitType +from .group_0240 import ProtectedBranchPullRequestReviewType +from .group_0242 import BranchRestrictionPolicyType -class BranchWithProtectionType(TypedDict): - """Branch With Protection +class BranchProtectionType(TypedDict): + """Branch Protection - Branch With Protection + Branch Protection """ - name: str - commit: CommitType - links: BranchWithProtectionPropLinksType - protected: bool - protection: BranchProtectionType - protection_url: str - pattern: NotRequired[str] - required_approving_review_count: NotRequired[int] + url: NotRequired[str] + enabled: NotRequired[bool] + required_status_checks: NotRequired[ProtectedBranchRequiredStatusCheckType] + enforce_admins: NotRequired[ProtectedBranchAdminEnforcedType] + required_pull_request_reviews: NotRequired[ProtectedBranchPullRequestReviewType] + restrictions: NotRequired[BranchRestrictionPolicyType] + required_linear_history: NotRequired[BranchProtectionPropRequiredLinearHistoryType] + allow_force_pushes: NotRequired[BranchProtectionPropAllowForcePushesType] + allow_deletions: NotRequired[BranchProtectionPropAllowDeletionsType] + block_creations: NotRequired[BranchProtectionPropBlockCreationsType] + required_conversation_resolution: NotRequired[ + BranchProtectionPropRequiredConversationResolutionType + ] + name: NotRequired[str] + protection_url: NotRequired[str] + required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] + lock_branch: NotRequired[BranchProtectionPropLockBranchType] + allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] -class BranchWithProtectionPropLinksType(TypedDict): - """BranchWithProtectionPropLinks""" +class ProtectedBranchAdminEnforcedType(TypedDict): + """Protected Branch Admin Enforced - html: str - self_: str + Protected Branch Admin Enforced + """ + + url: str + enabled: bool + + +class BranchProtectionPropRequiredLinearHistoryType(TypedDict): + """BranchProtectionPropRequiredLinearHistory""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForcePushesType(TypedDict): + """BranchProtectionPropAllowForcePushes""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowDeletionsType(TypedDict): + """BranchProtectionPropAllowDeletions""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropBlockCreationsType(TypedDict): + """BranchProtectionPropBlockCreations""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredConversationResolutionType(TypedDict): + """BranchProtectionPropRequiredConversationResolution""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredSignaturesType(TypedDict): + """BranchProtectionPropRequiredSignatures""" + + url: str + enabled: bool + + +class BranchProtectionPropLockBranchType(TypedDict): + """BranchProtectionPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForkSyncingType(TypedDict): + """BranchProtectionPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckType(TypedDict): + """Protected Branch Required Status Check + + Protected Branch Required Status Check + """ + + url: NotRequired[str] + enforcement_level: NotRequired[str] + contexts: list[str] + checks: list[ProtectedBranchRequiredStatusCheckPropChecksItemsType] + contexts_url: NotRequired[str] + strict: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" + + context: str + app_id: Union[int, None] __all__ = ( - "BranchWithProtectionPropLinksType", - "BranchWithProtectionType", + "BranchProtectionPropAllowDeletionsType", + "BranchProtectionPropAllowForcePushesType", + "BranchProtectionPropAllowForkSyncingType", + "BranchProtectionPropBlockCreationsType", + "BranchProtectionPropLockBranchType", + "BranchProtectionPropRequiredConversationResolutionType", + "BranchProtectionPropRequiredLinearHistoryType", + "BranchProtectionPropRequiredSignaturesType", + "BranchProtectionType", + "ProtectedBranchAdminEnforcedType", + "ProtectedBranchRequiredStatusCheckPropChecksItemsType", + "ProtectedBranchRequiredStatusCheckType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0244.py b/githubkit/versions/ghec_v2022_11_28/types/group_0244.py index 9454833b6..5391637a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0244.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0244.py @@ -9,133 +9,32 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0235 import BranchRestrictionPolicyType -from .group_0245 import ProtectedBranchPropRequiredPullRequestReviewsType +from .group_0243 import BranchProtectionType -class ProtectedBranchType(TypedDict): - """Protected Branch +class ShortBranchType(TypedDict): + """Short Branch - Branch protections protect branches + Short Branch """ - url: str - required_status_checks: NotRequired[StatusCheckPolicyType] - required_pull_request_reviews: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsType - ] - required_signatures: NotRequired[ProtectedBranchPropRequiredSignaturesType] - enforce_admins: NotRequired[ProtectedBranchPropEnforceAdminsType] - required_linear_history: NotRequired[ProtectedBranchPropRequiredLinearHistoryType] - allow_force_pushes: NotRequired[ProtectedBranchPropAllowForcePushesType] - allow_deletions: NotRequired[ProtectedBranchPropAllowDeletionsType] - restrictions: NotRequired[BranchRestrictionPolicyType] - required_conversation_resolution: NotRequired[ - ProtectedBranchPropRequiredConversationResolutionType - ] - block_creations: NotRequired[ProtectedBranchPropBlockCreationsType] - lock_branch: NotRequired[ProtectedBranchPropLockBranchType] - allow_fork_syncing: NotRequired[ProtectedBranchPropAllowForkSyncingType] - - -class ProtectedBranchPropRequiredSignaturesType(TypedDict): - """ProtectedBranchPropRequiredSignatures""" - - url: str - enabled: bool + name: str + commit: ShortBranchPropCommitType + protected: bool + protection: NotRequired[BranchProtectionType] + protection_url: NotRequired[str] -class ProtectedBranchPropEnforceAdminsType(TypedDict): - """ProtectedBranchPropEnforceAdmins""" +class ShortBranchPropCommitType(TypedDict): + """ShortBranchPropCommit""" + sha: str url: str - enabled: bool - - -class ProtectedBranchPropRequiredLinearHistoryType(TypedDict): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool - - -class ProtectedBranchPropAllowForcePushesType(TypedDict): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool - - -class ProtectedBranchPropAllowDeletionsType(TypedDict): - """ProtectedBranchPropAllowDeletions""" - - enabled: bool - - -class ProtectedBranchPropRequiredConversationResolutionType(TypedDict): - """ProtectedBranchPropRequiredConversationResolution""" - - enabled: NotRequired[bool] - - -class ProtectedBranchPropBlockCreationsType(TypedDict): - """ProtectedBranchPropBlockCreations""" - - enabled: bool - - -class ProtectedBranchPropLockBranchType(TypedDict): - """ProtectedBranchPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: NotRequired[bool] - - -class ProtectedBranchPropAllowForkSyncingType(TypedDict): - """ProtectedBranchPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: NotRequired[bool] - - -class StatusCheckPolicyType(TypedDict): - """Status Check Policy - - Status Check Policy - """ - - url: str - strict: bool - contexts: list[str] - checks: list[StatusCheckPolicyPropChecksItemsType] - contexts_url: str - - -class StatusCheckPolicyPropChecksItemsType(TypedDict): - """StatusCheckPolicyPropChecksItems""" - - context: str - app_id: Union[int, None] __all__ = ( - "ProtectedBranchPropAllowDeletionsType", - "ProtectedBranchPropAllowForcePushesType", - "ProtectedBranchPropAllowForkSyncingType", - "ProtectedBranchPropBlockCreationsType", - "ProtectedBranchPropEnforceAdminsType", - "ProtectedBranchPropLockBranchType", - "ProtectedBranchPropRequiredConversationResolutionType", - "ProtectedBranchPropRequiredLinearHistoryType", - "ProtectedBranchPropRequiredSignaturesType", - "ProtectedBranchType", - "StatusCheckPolicyPropChecksItemsType", - "StatusCheckPolicyType", + "ShortBranchPropCommitType", + "ShortBranchType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0245.py b/githubkit/versions/ghec_v2022_11_28/types/group_0245.py index 156c703d3..69dd1c546 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0245.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0245.py @@ -11,26 +11,16 @@ from typing_extensions import NotRequired, TypedDict -from .group_0246 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, -) +class GitUserType(TypedDict): + """Git User -class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): - """ProtectedBranchPropRequiredPullRequestReviews""" + Metaproperties for Git author/committer information. + """ - url: str - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - dismissal_restrictions: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[str] -__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) +__all__ = ("GitUserType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0246.py b/githubkit/versions/ghec_v2022_11_28/types/group_0246.py index 87a38806c..54e368f8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0246.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0246.py @@ -10,37 +10,17 @@ from __future__ import annotations from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0060 import TeamType +class VerificationType(TypedDict): + """Verification""" -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" + verified: bool + reason: str + payload: Union[str, None] + signature: Union[str, None] + verified_at: Union[str, None] - url: str - users_url: str - teams_url: str - users: list[SimpleUserType] - teams: list[TeamType] - apps: NotRequired[list[Union[IntegrationType, None]]] - -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" - - users: list[SimpleUserType] - teams: list[TeamType] - apps: NotRequired[list[Union[IntegrationType, None]]] - - -__all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", -) +__all__ = ("VerificationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0247.py b/githubkit/versions/ghec_v2022_11_28/types/group_0247.py index 6b3457be8..974bfbf83 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0247.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0247.py @@ -9,34 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0008 import IntegrationType +class DiffEntryType(TypedDict): + """Diff Entry -class DeploymentSimpleType(TypedDict): - """Deployment - - A deployment created as the result of an Actions check run from a workflow that - references an environment + Diff Entry """ - url: str - id: int - node_id: str - task: str - original_environment: NotRequired[str] - environment: str - description: Union[str, None] - created_at: datetime - updated_at: datetime - statuses_url: str - repository_url: str - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -__all__ = ("DeploymentSimpleType",) + sha: str + filename: str + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + ] + additions: int + deletions: int + changes: int + blob_url: Union[str, None] + raw_url: Union[str, None] + contents_url: str + patch: NotRequired[str] + previous_filename: NotRequired[str] + + +__all__ = ("DiffEntryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0248.py b/githubkit/versions/ghec_v2022_11_28/types/group_0248.py index 861b64561..549a061ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0248.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0248.py @@ -9,71 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0008 import IntegrationType -from .group_0220 import PullRequestMinimalType -from .group_0247 import DeploymentSimpleType +from .group_0003 import SimpleUserType +from .group_0247 import DiffEntryType +from .group_0249 import CommitPropCommitType -class CheckRunType(TypedDict): - """CheckRun +class CommitType(TypedDict): + """Commit - A check performed on the code of a given code change + Commit """ - id: int - head_sha: str + url: str + sha: str node_id: str - external_id: Union[str, None] + html_url: str + comments_url: str + commit: CommitPropCommitType + author: Union[SimpleUserType, EmptyObjectType, None] + committer: Union[SimpleUserType, EmptyObjectType, None] + parents: list[CommitPropParentsItemsType] + stats: NotRequired[CommitPropStatsType] + files: NotRequired[list[DiffEntryType]] + + +class EmptyObjectType(TypedDict): + """Empty Object + + An object without any properties. + """ + + +class CommitPropParentsItemsType(TypedDict): + """CommitPropParentsItems""" + + sha: str url: str - html_url: Union[str, None] - details_url: Union[str, None] - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - started_at: Union[datetime, None] - completed_at: Union[datetime, None] - output: CheckRunPropOutputType - name: str - check_suite: Union[CheckRunPropCheckSuiteType, None] - app: Union[None, IntegrationType, None] - pull_requests: list[PullRequestMinimalType] - deployment: NotRequired[DeploymentSimpleType] - - -class CheckRunPropOutputType(TypedDict): - """CheckRunPropOutput""" - - title: Union[str, None] - summary: Union[str, None] - text: Union[str, None] - annotations_count: int - annotations_url: str - - -class CheckRunPropCheckSuiteType(TypedDict): - """CheckRunPropCheckSuite""" - - id: int + html_url: NotRequired[str] + + +class CommitPropStatsType(TypedDict): + """CommitPropStats""" + + additions: NotRequired[int] + deletions: NotRequired[int] + total: NotRequired[int] __all__ = ( - "CheckRunPropCheckSuiteType", - "CheckRunPropOutputType", - "CheckRunType", + "CommitPropParentsItemsType", + "CommitPropStatsType", + "CommitType", + "EmptyObjectType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0249.py b/githubkit/versions/ghec_v2022_11_28/types/group_0249.py index 82fbb570d..5a82dc382 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0249.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0249.py @@ -10,25 +10,32 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0245 import GitUserType +from .group_0246 import VerificationType -class CheckAnnotationType(TypedDict): - """Check Annotation - Check Annotation - """ +class CommitPropCommitType(TypedDict): + """CommitPropCommit""" - path: str - start_line: int - end_line: int - start_column: Union[int, None] - end_column: Union[int, None] - annotation_level: Union[str, None] - title: Union[str, None] - message: Union[str, None] - raw_details: Union[str, None] - blob_href: str + url: str + author: Union[None, GitUserType] + committer: Union[None, GitUserType] + message: str + comment_count: int + tree: CommitPropCommitPropTreeType + verification: NotRequired[VerificationType] -__all__ = ("CheckAnnotationType",) +class CommitPropCommitPropTreeType(TypedDict): + """CommitPropCommitPropTree""" + + sha: str + url: str + + +__all__ = ( + "CommitPropCommitPropTreeType", + "CommitPropCommitType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0250.py b/githubkit/versions/ghec_v2022_11_28/types/group_0250.py index d0f802909..d8886f1c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0250.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0250.py @@ -9,69 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0008 import IntegrationType -from .group_0147 import MinimalRepositoryType -from .group_0220 import PullRequestMinimalType -from .group_0221 import SimpleCommitType +from .group_0243 import BranchProtectionType +from .group_0248 import CommitType -class CheckSuiteType(TypedDict): - """CheckSuite +class BranchWithProtectionType(TypedDict): + """Branch With Protection - A suite of checks performed on the code of a given code change + Branch With Protection """ - id: int - node_id: str - head_branch: Union[str, None] - head_sha: str - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], - ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "startup_failure", - "stale", - ], - ] - url: Union[str, None] - before: Union[str, None] - after: Union[str, None] - pull_requests: Union[list[PullRequestMinimalType], None] - app: Union[None, IntegrationType, None] - repository: MinimalRepositoryType - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - head_commit: SimpleCommitType - latest_check_runs_count: int - check_runs_url: str - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] + name: str + commit: CommitType + links: BranchWithProtectionPropLinksType + protected: bool + protection: BranchProtectionType + protection_url: str + pattern: NotRequired[str] + required_approving_review_count: NotRequired[int] -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" +class BranchWithProtectionPropLinksType(TypedDict): + """BranchWithProtectionPropLinks""" - total_count: int - check_suites: list[CheckSuiteType] + html: str + self_: str __all__ = ( - "CheckSuiteType", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", + "BranchWithProtectionPropLinksType", + "BranchWithProtectionType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0251.py b/githubkit/versions/ghec_v2022_11_28/types/group_0251.py index 768ef3aa8..1573ee746 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0251.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0251.py @@ -9,38 +9,133 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0147 import MinimalRepositoryType +from .group_0242 import BranchRestrictionPolicyType +from .group_0252 import ProtectedBranchPropRequiredPullRequestReviewsType -class CheckSuitePreferenceType(TypedDict): - """Check Suite Preference +class ProtectedBranchType(TypedDict): + """Protected Branch - Check suite configuration preferences for a repository. + Branch protections protect branches """ - preferences: CheckSuitePreferencePropPreferencesType - repository: MinimalRepositoryType + url: str + required_status_checks: NotRequired[StatusCheckPolicyType] + required_pull_request_reviews: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsType + ] + required_signatures: NotRequired[ProtectedBranchPropRequiredSignaturesType] + enforce_admins: NotRequired[ProtectedBranchPropEnforceAdminsType] + required_linear_history: NotRequired[ProtectedBranchPropRequiredLinearHistoryType] + allow_force_pushes: NotRequired[ProtectedBranchPropAllowForcePushesType] + allow_deletions: NotRequired[ProtectedBranchPropAllowDeletionsType] + restrictions: NotRequired[BranchRestrictionPolicyType] + required_conversation_resolution: NotRequired[ + ProtectedBranchPropRequiredConversationResolutionType + ] + block_creations: NotRequired[ProtectedBranchPropBlockCreationsType] + lock_branch: NotRequired[ProtectedBranchPropLockBranchType] + allow_fork_syncing: NotRequired[ProtectedBranchPropAllowForkSyncingType] -class CheckSuitePreferencePropPreferencesType(TypedDict): - """CheckSuitePreferencePropPreferences""" +class ProtectedBranchPropRequiredSignaturesType(TypedDict): + """ProtectedBranchPropRequiredSignatures""" - auto_trigger_checks: NotRequired[ - list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] - ] + url: str + enabled: bool + + +class ProtectedBranchPropEnforceAdminsType(TypedDict): + """ProtectedBranchPropEnforceAdmins""" + + url: str + enabled: bool + + +class ProtectedBranchPropRequiredLinearHistoryType(TypedDict): + """ProtectedBranchPropRequiredLinearHistory""" + + enabled: bool + + +class ProtectedBranchPropAllowForcePushesType(TypedDict): + """ProtectedBranchPropAllowForcePushes""" + + enabled: bool + + +class ProtectedBranchPropAllowDeletionsType(TypedDict): + """ProtectedBranchPropAllowDeletions""" + + enabled: bool + + +class ProtectedBranchPropRequiredConversationResolutionType(TypedDict): + """ProtectedBranchPropRequiredConversationResolution""" + + enabled: NotRequired[bool] + + +class ProtectedBranchPropBlockCreationsType(TypedDict): + """ProtectedBranchPropBlockCreations""" + + enabled: bool + + +class ProtectedBranchPropLockBranchType(TypedDict): + """ProtectedBranchPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: NotRequired[bool] + + +class ProtectedBranchPropAllowForkSyncingType(TypedDict): + """ProtectedBranchPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: NotRequired[bool] + + +class StatusCheckPolicyType(TypedDict): + """Status Check Policy + + Status Check Policy + """ + + url: str + strict: bool + contexts: list[str] + checks: list[StatusCheckPolicyPropChecksItemsType] + contexts_url: str -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" +class StatusCheckPolicyPropChecksItemsType(TypedDict): + """StatusCheckPolicyPropChecksItems""" - app_id: int - setting: bool + context: str + app_id: Union[int, None] __all__ = ( - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", - "CheckSuitePreferencePropPreferencesType", - "CheckSuitePreferenceType", + "ProtectedBranchPropAllowDeletionsType", + "ProtectedBranchPropAllowForcePushesType", + "ProtectedBranchPropAllowForkSyncingType", + "ProtectedBranchPropBlockCreationsType", + "ProtectedBranchPropEnforceAdminsType", + "ProtectedBranchPropLockBranchType", + "ProtectedBranchPropRequiredConversationResolutionType", + "ProtectedBranchPropRequiredLinearHistoryType", + "ProtectedBranchPropRequiredSignaturesType", + "ProtectedBranchType", + "StatusCheckPolicyPropChecksItemsType", + "StatusCheckPolicyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0252.py b/githubkit/versions/ghec_v2022_11_28/types/group_0252.py index a050aa2df..57ccd9927 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0252.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0252.py @@ -9,36 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0048 import CodeScanningAlertRuleSummaryType -from .group_0049 import CodeScanningAnalysisToolType -from .group_0050 import CodeScanningAlertInstanceType +from .group_0253 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, +) -class CodeScanningAlertItemsType(TypedDict): - """CodeScanningAlertItems""" +class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): + """ProtectedBranchPropRequiredPullRequestReviews""" - number: int - created_at: datetime - updated_at: NotRequired[datetime] url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + dismissal_restrictions: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType + ] + bypass_pull_request_allowances: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType -__all__ = ("CodeScanningAlertItemsType",) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0253.py b/githubkit/versions/ghec_v2022_11_28/types/group_0253.py index d6505e0e4..985640959 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0253.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0253.py @@ -9,54 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0049 import CodeScanningAnalysisToolType -from .group_0050 import CodeScanningAlertInstanceType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0065 import TeamType -class CodeScanningAlertType(TypedDict): - """CodeScanningAlert""" +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" - number: int - created_at: datetime - updated_at: NotRequired[datetime] url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - - -class CodeScanningAlertRuleType(TypedDict): - """CodeScanningAlertRule""" - - id: NotRequired[Union[str, None]] - name: NotRequired[str] - severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] - security_severity_level: NotRequired[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] - description: NotRequired[str] - full_description: NotRequired[str] - tags: NotRequired[Union[list[str], None]] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] + users_url: str + teams_url: str + users: list[SimpleUserType] + teams: list[TeamType] + apps: NotRequired[list[Union[IntegrationType, None]]] + + +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" + + users: list[SimpleUserType] + teams: list[TeamType] + apps: NotRequired[list[Union[IntegrationType, None]]] __all__ = ( - "CodeScanningAlertRuleType", - "CodeScanningAlertType", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0254.py b/githubkit/versions/ghec_v2022_11_28/types/group_0254.py index 1a155e137..daf967d0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0254.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0254.py @@ -10,16 +10,33 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0010 import IntegrationType -class CodeScanningAutofixType(TypedDict): - """CodeScanningAutofix""" - status: Literal["pending", "error", "success", "outdated"] +class DeploymentSimpleType(TypedDict): + """Deployment + + A deployment created as the result of an Actions check run from a workflow that + references an environment + """ + + url: str + id: int + node_id: str + task: str + original_environment: NotRequired[str] + environment: str description: Union[str, None] - started_at: datetime + created_at: datetime + updated_at: datetime + statuses_url: str + repository_url: str + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] -__all__ = ("CodeScanningAutofixType",) +__all__ = ("DeploymentSimpleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0255.py b/githubkit/versions/ghec_v2022_11_28/types/group_0255.py index 8ec0e8374..5adadee4a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0255.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0255.py @@ -9,17 +9,71 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0010 import IntegrationType +from .group_0227 import PullRequestMinimalType +from .group_0254 import DeploymentSimpleType -class CodeScanningAutofixCommitsType(TypedDict): - """CodeScanningAutofixCommits - Commit an autofix for a code scanning alert +class CheckRunType(TypedDict): + """CheckRun + + A check performed on the code of a given code change """ - target_ref: NotRequired[str] - message: NotRequired[str] + id: int + head_sha: str + node_id: str + external_id: Union[str, None] + url: str + html_url: Union[str, None] + details_url: Union[str, None] + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] + started_at: Union[datetime, None] + completed_at: Union[datetime, None] + output: CheckRunPropOutputType + name: str + check_suite: Union[CheckRunPropCheckSuiteType, None] + app: Union[None, IntegrationType, None] + pull_requests: list[PullRequestMinimalType] + deployment: NotRequired[DeploymentSimpleType] + + +class CheckRunPropOutputType(TypedDict): + """CheckRunPropOutput""" + + title: Union[str, None] + summary: Union[str, None] + text: Union[str, None] + annotations_count: int + annotations_url: str + + +class CheckRunPropCheckSuiteType(TypedDict): + """CheckRunPropCheckSuite""" + + id: int -__all__ = ("CodeScanningAutofixCommitsType",) +__all__ = ( + "CheckRunPropCheckSuiteType", + "CheckRunPropOutputType", + "CheckRunType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0256.py b/githubkit/versions/ghec_v2022_11_28/types/group_0256.py index 2cbf6f579..82fbb570d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0256.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0256.py @@ -9,14 +9,26 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class CodeScanningAutofixCommitsResponseType(TypedDict): - """CodeScanningAutofixCommitsResponse""" +class CheckAnnotationType(TypedDict): + """Check Annotation - target_ref: NotRequired[str] - sha: NotRequired[str] + Check Annotation + """ + path: str + start_line: int + end_line: int + start_column: Union[int, None] + end_column: Union[int, None] + annotation_level: Union[str, None] + title: Union[str, None] + message: Union[str, None] + raw_details: Union[str, None] + blob_href: str -__all__ = ("CodeScanningAutofixCommitsResponseType",) + +__all__ = ("CheckAnnotationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0257.py b/githubkit/versions/ghec_v2022_11_28/types/group_0257.py index 271554725..52c793a1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0257.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0257.py @@ -10,29 +10,68 @@ from __future__ import annotations from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0049 import CodeScanningAnalysisToolType +from .group_0010 import IntegrationType +from .group_0154 import MinimalRepositoryType +from .group_0227 import PullRequestMinimalType +from .group_0228 import SimpleCommitType -class CodeScanningAnalysisType(TypedDict): - """CodeScanningAnalysis""" +class CheckSuiteType(TypedDict): + """CheckSuite + + A suite of checks performed on the code of a given code change + """ - ref: str - commit_sha: str - analysis_key: str - environment: str - category: NotRequired[str] - error: str - created_at: datetime - results_count: int - rules_count: int id: int - url: str - sarif_id: str - tool: CodeScanningAnalysisToolType - deletable: bool - warning: str + node_id: str + head_branch: Union[str, None] + head_sha: str + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "startup_failure", + "stale", + ], + ] + url: Union[str, None] + before: Union[str, None] + after: Union[str, None] + pull_requests: Union[list[PullRequestMinimalType], None] + app: Union[None, IntegrationType, None] + repository: MinimalRepositoryType + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + head_commit: SimpleCommitType + latest_check_runs_count: int + check_runs_url: str + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int + check_suites: list[CheckSuiteType] -__all__ = ("CodeScanningAnalysisType",) +__all__ = ( + "CheckSuiteType", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0258.py b/githubkit/versions/ghec_v2022_11_28/types/group_0258.py index a217f8af1..c67c6f12a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0258.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0258.py @@ -9,18 +9,38 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0154 import MinimalRepositoryType -class CodeScanningAnalysisDeletionType(TypedDict): - """Analysis deletion - Successful deletion of a code scanning analysis +class CheckSuitePreferenceType(TypedDict): + """Check Suite Preference + + Check suite configuration preferences for a repository. """ - next_analysis_url: Union[str, None] - confirm_delete_url: Union[str, None] + preferences: CheckSuitePreferencePropPreferencesType + repository: MinimalRepositoryType + + +class CheckSuitePreferencePropPreferencesType(TypedDict): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: NotRequired[ + list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] + ] + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int + setting: bool -__all__ = ("CodeScanningAnalysisDeletionType",) +__all__ = ( + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", + "CheckSuitePreferencePropPreferencesType", + "CheckSuitePreferenceType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0259.py b/githubkit/versions/ghec_v2022_11_28/types/group_0259.py index 754c2ef4b..149c9ca35 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0259.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0259.py @@ -10,28 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0053 import CodeScanningAlertRuleSummaryType +from .group_0054 import CodeScanningAnalysisToolType +from .group_0055 import CodeScanningAlertInstanceType -class CodeScanningCodeqlDatabaseType(TypedDict): - """CodeQL Database +class CodeScanningAlertItemsType(TypedDict): + """CodeScanningAlertItems""" - A CodeQL database. - """ - - id: int - name: str - language: str - uploader: SimpleUserType - content_type: str - size: int + number: int created_at: datetime - updated_at: datetime + updated_at: NotRequired[datetime] url: str - commit_oid: NotRequired[Union[str, None]] - - -__all__ = ("CodeScanningCodeqlDatabaseType",) + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + + +__all__ = ("CodeScanningAlertItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0260.py b/githubkit/versions/ghec_v2022_11_28/types/group_0260.py index 86f33d140..382241ffe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0260.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0260.py @@ -10,22 +10,53 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import TypedDict - - -class CodeScanningVariantAnalysisRepositoryType(TypedDict): - """Repository Identifier - - Repository Identifier - """ - - id: int - name: str - full_name: str - private: bool - stargazers_count: int - updated_at: Union[datetime, None] - - -__all__ = ("CodeScanningVariantAnalysisRepositoryType",) +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0054 import CodeScanningAnalysisToolType +from .group_0055 import CodeScanningAlertInstanceType + + +class CodeScanningAlertType(TypedDict): + """CodeScanningAlert""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + + +class CodeScanningAlertRuleType(TypedDict): + """CodeScanningAlertRule""" + + id: NotRequired[Union[str, None]] + name: NotRequired[str] + severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] + security_severity_level: NotRequired[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] + description: NotRequired[str] + full_description: NotRequired[str] + tags: NotRequired[Union[list[str], None]] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + + +__all__ = ( + "CodeScanningAlertRuleType", + "CodeScanningAlertType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0261.py b/githubkit/versions/ghec_v2022_11_28/types/group_0261.py index b82999fe7..1a155e137 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0261.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0261.py @@ -9,16 +9,17 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict -from .group_0260 import CodeScanningVariantAnalysisRepositoryType +class CodeScanningAutofixType(TypedDict): + """CodeScanningAutofix""" -class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): - """CodeScanningVariantAnalysisSkippedRepoGroup""" + status: Literal["pending", "error", "success", "outdated"] + description: Union[str, None] + started_at: datetime - repository_count: int - repositories: list[CodeScanningVariantAnalysisRepositoryType] - -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) +__all__ = ("CodeScanningAutofixType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0262.py b/githubkit/versions/ghec_v2022_11_28/types/group_0262.py index 53dcca87d..8ec0e8374 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0262.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0262.py @@ -9,43 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0051 import SimpleRepositoryType -from .group_0263 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType -from .group_0264 import CodeScanningVariantAnalysisPropSkippedRepositoriesType +class CodeScanningAutofixCommitsType(TypedDict): + """CodeScanningAutofixCommits -class CodeScanningVariantAnalysisType(TypedDict): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. + Commit an autofix for a code scanning alert """ - id: int - controller_repo: SimpleRepositoryType - actor: SimpleUserType - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack_url: str - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - completed_at: NotRequired[Union[datetime, None]] - status: Literal["in_progress", "succeeded", "failed", "cancelled"] - actions_workflow_run_id: NotRequired[int] - failure_reason: NotRequired[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] - scanned_repositories: NotRequired[ - list[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] - ] - skipped_repositories: NotRequired[ - CodeScanningVariantAnalysisPropSkippedRepositoriesType - ] - - -__all__ = ("CodeScanningVariantAnalysisType",) + target_ref: NotRequired[str] + message: NotRequired[str] + + +__all__ = ("CodeScanningAutofixCommitsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0263.py b/githubkit/versions/ghec_v2022_11_28/types/group_0263.py index 9b93e903c..2cbf6f579 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0263.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0263.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0260 import CodeScanningVariantAnalysisRepositoryType +class CodeScanningAutofixCommitsResponseType(TypedDict): + """CodeScanningAutofixCommitsResponse""" -class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" + target_ref: NotRequired[str] + sha: NotRequired[str] - repository: CodeScanningVariantAnalysisRepositoryType - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] - result_count: NotRequired[int] - artifact_size_in_bytes: NotRequired[int] - failure_message: NotRequired[str] - -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) +__all__ = ("CodeScanningAutofixCommitsResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0264.py b/githubkit/versions/ghec_v2022_11_28/types/group_0264.py index ff6b971d2..2c3b849cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0264.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0264.py @@ -9,36 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -from .group_0261 import CodeScanningVariantAnalysisSkippedRepoGroupType +from .group_0054 import CodeScanningAnalysisToolType -class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): - """CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningAnalysisType(TypedDict): + """CodeScanningAnalysis""" - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. - """ + ref: str + commit_sha: str + analysis_key: str + environment: str + category: NotRequired[str] + error: str + created_at: datetime + results_count: int + rules_count: int + id: int + url: str + sarif_id: str + tool: CodeScanningAnalysisToolType + deletable: bool + warning: str - access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - not_found_repos: ( - CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType - ) - no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - -class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType( - TypedDict -): - """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" - - repository_count: int - repository_full_names: list[str] - - -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", - "CodeScanningVariantAnalysisPropSkippedRepositoriesType", -) +__all__ = ("CodeScanningAnalysisType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0265.py b/githubkit/versions/ghec_v2022_11_28/types/group_0265.py index e29854d30..a217f8af1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0265.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0265.py @@ -9,25 +9,18 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0051 import SimpleRepositoryType +class CodeScanningAnalysisDeletionType(TypedDict): + """Analysis deletion -class CodeScanningVariantAnalysisRepoTaskType(TypedDict): - """CodeScanningVariantAnalysisRepoTask""" + Successful deletion of a code scanning analysis + """ - repository: SimpleRepositoryType - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] - artifact_size_in_bytes: NotRequired[int] - result_count: NotRequired[int] - failure_message: NotRequired[str] - database_commit_sha: NotRequired[str] - source_location_prefix: NotRequired[str] - artifact_url: NotRequired[str] + next_analysis_url: Union[str, None] + confirm_delete_url: Union[str, None] -__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) +__all__ = ("CodeScanningAnalysisDeletionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0266.py b/githubkit/versions/ghec_v2022_11_28/types/group_0266.py index 6a3c39b96..279371ebd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0266.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0266.py @@ -10,39 +10,28 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class CodeScanningDefaultSetupType(TypedDict): - """CodeScanningDefaultSetup - Configuration for code scanning default setup. +class CodeScanningCodeqlDatabaseType(TypedDict): + """CodeQL Database + + A CodeQL database. """ - state: NotRequired[Literal["configured", "not-configured"]] - languages: NotRequired[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] - ] - runner_type: NotRequired[Union[None, Literal["standard", "labeled"]]] - runner_label: NotRequired[Union[str, None]] - query_suite: NotRequired[Literal["default", "extended"]] - updated_at: NotRequired[Union[datetime, None]] - schedule: NotRequired[Union[None, Literal["weekly"]]] - - -__all__ = ("CodeScanningDefaultSetupType",) + id: int + name: str + language: str + uploader: SimpleUserType + content_type: str + size: int + created_at: datetime + updated_at: datetime + url: str + commit_oid: NotRequired[Union[str, None]] + + +__all__ = ("CodeScanningCodeqlDatabaseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0267.py b/githubkit/versions/ghec_v2022_11_28/types/group_0267.py index 8e432c42b..86f33d140 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0267.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0267.py @@ -9,35 +9,23 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import TypedDict -class CodeScanningDefaultSetupUpdateType(TypedDict): - """CodeScanningDefaultSetupUpdate +class CodeScanningVariantAnalysisRepositoryType(TypedDict): + """Repository Identifier - Configuration for code scanning default setup. + Repository Identifier """ - state: NotRequired[Literal["configured", "not-configured"]] - runner_type: NotRequired[Literal["standard", "labeled"]] - runner_label: NotRequired[Union[str, None]] - query_suite: NotRequired[Literal["default", "extended"]] - languages: NotRequired[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] - ] - - -__all__ = ("CodeScanningDefaultSetupUpdateType",) + id: int + name: str + full_name: str + private: bool + stargazers_count: int + updated_at: Union[datetime, None] + + +__all__ = ("CodeScanningVariantAnalysisRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0268.py b/githubkit/versions/ghec_v2022_11_28/types/group_0268.py index f363fa4b1..b95a949ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0268.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0268.py @@ -9,19 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0267 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningDefaultSetupUpdateResponseType(TypedDict): - """CodeScanningDefaultSetupUpdateResponse - You can use `run_url` to track the status of the run. This includes a property - status and conclusion. - You should not rely on this always being an actions workflow run object. - """ +class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - run_id: NotRequired[int] - run_url: NotRequired[str] + repository_count: int + repositories: list[CodeScanningVariantAnalysisRepositoryType] -__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0269.py b/githubkit/versions/ghec_v2022_11_28/types/group_0269.py index 5a45d64e1..c8129d60e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0269.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0269.py @@ -9,14 +9,43 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class CodeScanningSarifsReceiptType(TypedDict): - """CodeScanningSarifsReceipt""" - - id: NotRequired[str] - url: NotRequired[str] - - -__all__ = ("CodeScanningSarifsReceiptType",) +from .group_0003 import SimpleUserType +from .group_0056 import SimpleRepositoryType +from .group_0270 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType +from .group_0271 import CodeScanningVariantAnalysisPropSkippedRepositoriesType + + +class CodeScanningVariantAnalysisType(TypedDict): + """Variant Analysis + + A run of a CodeQL query against one or more repositories. + """ + + id: int + controller_repo: SimpleRepositoryType + actor: SimpleUserType + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] + query_pack_url: str + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + completed_at: NotRequired[Union[datetime, None]] + status: Literal["in_progress", "succeeded", "failed", "cancelled"] + actions_workflow_run_id: NotRequired[int] + failure_reason: NotRequired[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] + scanned_repositories: NotRequired[ + list[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] + ] + skipped_repositories: NotRequired[ + CodeScanningVariantAnalysisPropSkippedRepositoriesType + ] + + +__all__ = ("CodeScanningVariantAnalysisType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0270.py b/githubkit/versions/ghec_v2022_11_28/types/group_0270.py index 3b46d219b..0fc415320 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0270.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0270.py @@ -9,16 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0267 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningSarifsStatusType(TypedDict): - """CodeScanningSarifsStatus""" - processing_status: NotRequired[Literal["pending", "complete", "failed"]] - analyses_url: NotRequired[Union[str, None]] - errors: NotRequired[Union[list[str], None]] +class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" + repository: CodeScanningVariantAnalysisRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] + result_count: NotRequired[int] + artifact_size_in_bytes: NotRequired[int] + failure_message: NotRequired[str] -__all__ = ("CodeScanningSarifsStatusType",) + +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0271.py b/githubkit/versions/ghec_v2022_11_28/types/group_0271.py index 0ca8122c1..fad2b6952 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0271.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0271.py @@ -9,31 +9,36 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0053 import CodeSecurityConfigurationType +from .group_0268 import CodeScanningVariantAnalysisSkippedRepoGroupType -class CodeSecurityConfigurationForRepositoryType(TypedDict): - """CodeSecurityConfigurationForRepository +class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): + """CodeScanningVariantAnalysisPropSkippedRepositories - Code security configuration associated with a repository and attachment status + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. """ - status: NotRequired[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] - configuration: NotRequired[CodeSecurityConfigurationType] - - -__all__ = ("CodeSecurityConfigurationForRepositoryType",) + access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + not_found_repos: ( + CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType + ) + no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + + +class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType( + TypedDict +): + """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" + + repository_count: int + repository_full_names: list[str] + + +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", + "CodeScanningVariantAnalysisPropSkippedRepositoriesType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0272.py b/githubkit/versions/ghec_v2022_11_28/types/group_0272.py index 4480d357f..c9b47f855 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0272.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0272.py @@ -9,32 +9,25 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0056 import SimpleRepositoryType -class CodeownersErrorsType(TypedDict): - """CODEOWNERS errors - A list of errors found in a repo's CODEOWNERS file - """ +class CodeScanningVariantAnalysisRepoTaskType(TypedDict): + """CodeScanningVariantAnalysisRepoTask""" - errors: list[CodeownersErrorsPropErrorsItemsType] + repository: SimpleRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] + artifact_size_in_bytes: NotRequired[int] + result_count: NotRequired[int] + failure_message: NotRequired[str] + database_commit_sha: NotRequired[str] + source_location_prefix: NotRequired[str] + artifact_url: NotRequired[str] -class CodeownersErrorsPropErrorsItemsType(TypedDict): - """CodeownersErrorsPropErrorsItems""" - - line: int - column: int - source: NotRequired[str] - kind: str - suggestion: NotRequired[Union[str, None]] - message: str - path: str - - -__all__ = ( - "CodeownersErrorsPropErrorsItemsType", - "CodeownersErrorsType", -) +__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0273.py b/githubkit/versions/ghec_v2022_11_28/types/group_0273.py index e1c93e03b..6a3c39b96 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0273.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0273.py @@ -9,16 +9,40 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class CodespacesPermissionsCheckForDevcontainerType(TypedDict): - """Codespaces Permissions Check +class CodeScanningDefaultSetupType(TypedDict): + """CodeScanningDefaultSetup - Permission check result for a given devcontainer config. + Configuration for code scanning default setup. """ - accepted: bool - - -__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) + state: NotRequired[Literal["configured", "not-configured"]] + languages: NotRequired[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] + runner_type: NotRequired[Union[None, Literal["standard", "labeled"]]] + runner_label: NotRequired[Union[str, None]] + query_suite: NotRequired[Literal["default", "extended"]] + updated_at: NotRequired[Union[datetime, None]] + schedule: NotRequired[Union[None, Literal["weekly"]]] + + +__all__ = ("CodeScanningDefaultSetupType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0274.py b/githubkit/versions/ghec_v2022_11_28/types/group_0274.py index 00ac0a59d..8e432c42b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0274.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0274.py @@ -9,30 +9,35 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0147 import MinimalRepositoryType +class CodeScanningDefaultSetupUpdateType(TypedDict): + """CodeScanningDefaultSetupUpdate -class RepositoryInvitationType(TypedDict): - """Repository Invitation - - Repository invitations let you manage who you collaborate with. + Configuration for code scanning default setup. """ - id: int - repository: MinimalRepositoryType - invitee: Union[None, SimpleUserType] - inviter: Union[None, SimpleUserType] - permissions: Literal["read", "write", "admin", "triage", "maintain"] - created_at: datetime - expired: NotRequired[bool] - url: str - html_url: str - node_id: str - - -__all__ = ("RepositoryInvitationType",) + state: NotRequired[Literal["configured", "not-configured"]] + runner_type: NotRequired[Literal["standard", "labeled"]] + runner_label: NotRequired[Union[str, None]] + query_suite: NotRequired[Literal["default", "extended"]] + languages: NotRequired[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "python", + "ruby", + "swift", + ] + ] + ] + + +__all__ = ("CodeScanningDefaultSetupUpdateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0275.py b/githubkit/versions/ghec_v2022_11_28/types/group_0275.py index 10af54a9e..f363fa4b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0275.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0275.py @@ -9,64 +9,19 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class RepositoryCollaboratorPermissionType(TypedDict): - """Repository Collaborator Permission +class CodeScanningDefaultSetupUpdateResponseType(TypedDict): + """CodeScanningDefaultSetupUpdateResponse - Repository Collaborator Permission + You can use `run_url` to track the status of the run. This includes a property + status and conclusion. + You should not rely on this always being an actions workflow run object. """ - permission: str - role_name: str - user: Union[None, CollaboratorType] + run_id: NotRequired[int] + run_url: NotRequired[str] -class CollaboratorType(TypedDict): - """Collaborator - - Collaborator - """ - - login: str - id: int - email: NotRequired[Union[str, None]] - name: NotRequired[Union[str, None]] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - permissions: NotRequired[CollaboratorPropPermissionsType] - role_name: str - user_view_type: NotRequired[str] - - -class CollaboratorPropPermissionsType(TypedDict): - """CollaboratorPropPermissions""" - - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] - admin: bool - - -__all__ = ( - "CollaboratorPropPermissionsType", - "CollaboratorType", - "RepositoryCollaboratorPermissionType", -) +__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0276.py b/githubkit/versions/ghec_v2022_11_28/types/group_0276.py index 6234a89ff..5a45d64e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0276.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0276.py @@ -9,58 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0130 import ReactionRollupType +class CodeScanningSarifsReceiptType(TypedDict): + """CodeScanningSarifsReceipt""" -class CommitCommentType(TypedDict): - """Commit Comment + id: NotRequired[str] + url: NotRequired[str] - Commit Comment - """ - html_url: str - url: str - id: int - node_id: str - body: str - path: Union[str, None] - position: Union[int, None] - line: Union[int, None] - commit_id: str - user: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] - - -class TimelineCommitCommentedEventType(TypedDict): - """Timeline Commit Commented Event - - Timeline Commit Commented Event - """ - - event: NotRequired[Literal["commit_commented"]] - node_id: NotRequired[str] - commit_id: NotRequired[str] - comments: NotRequired[list[CommitCommentType]] - - -__all__ = ( - "CommitCommentType", - "TimelineCommitCommentedEventType", -) +__all__ = ("CodeScanningSarifsReceiptType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0277.py b/githubkit/versions/ghec_v2022_11_28/types/group_0277.py index 997250710..3b46d219b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0277.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0277.py @@ -9,28 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class BranchShortType(TypedDict): - """Branch Short +class CodeScanningSarifsStatusType(TypedDict): + """CodeScanningSarifsStatus""" - Branch Short - """ + processing_status: NotRequired[Literal["pending", "complete", "failed"]] + analyses_url: NotRequired[Union[str, None]] + errors: NotRequired[Union[list[str], None]] - name: str - commit: BranchShortPropCommitType - protected: bool - -class BranchShortPropCommitType(TypedDict): - """BranchShortPropCommit""" - - sha: str - url: str - - -__all__ = ( - "BranchShortPropCommitType", - "BranchShortType", -) +__all__ = ("CodeScanningSarifsStatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0278.py b/githubkit/versions/ghec_v2022_11_28/types/group_0278.py index 064aa0ae7..c393565fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0278.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0278.py @@ -9,16 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0058 import CodeSecurityConfigurationType -class LinkType(TypedDict): - """Link - Hypermedia Link - """ - - href: str +class CodeSecurityConfigurationForRepositoryType(TypedDict): + """CodeSecurityConfigurationForRepository + Code security configuration associated with a repository and attachment status + """ -__all__ = ("LinkType",) + status: NotRequired[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] + ] + configuration: NotRequired[CodeSecurityConfigurationType] + + +__all__ = ("CodeSecurityConfigurationForRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0279.py b/githubkit/versions/ghec_v2022_11_28/types/group_0279.py index fb94a06fc..4480d357f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0279.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0279.py @@ -9,22 +9,32 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class CodeownersErrorsType(TypedDict): + """CODEOWNERS errors -class AutoMergeType(TypedDict): - """Auto merge - - The status of auto merging a pull request. + A list of errors found in a repo's CODEOWNERS file """ - enabled_by: SimpleUserType - merge_method: Literal["merge", "squash", "rebase"] - commit_title: Union[str, None] - commit_message: Union[str, None] + errors: list[CodeownersErrorsPropErrorsItemsType] + + +class CodeownersErrorsPropErrorsItemsType(TypedDict): + """CodeownersErrorsPropErrorsItems""" + + line: int + column: int + source: NotRequired[str] + kind: str + suggestion: NotRequired[Union[str, None]] + message: str + path: str -__all__ = ("AutoMergeType",) +__all__ = ( + "CodeownersErrorsPropErrorsItemsType", + "CodeownersErrorsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0280.py b/githubkit/versions/ghec_v2022_11_28/types/group_0280.py index e794b050b..e1c93e03b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0280.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0280.py @@ -9,84 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0060 import TeamType -from .group_0129 import MilestoneType -from .group_0279 import AutoMergeType -from .group_0281 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType -from .group_0282 import PullRequestSimplePropLinksType +class CodespacesPermissionsCheckForDevcontainerType(TypedDict): + """Codespaces Permissions Check -class PullRequestSimpleType(TypedDict): - """Pull Request Simple - - Pull Request Simple + Permission check result for a given devcontainer config. """ - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: str - locked: bool - title: str - user: Union[None, SimpleUserType] - body: Union[str, None] - labels: list[PullRequestSimplePropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] - requested_teams: NotRequired[Union[list[TeamType], None]] - head: PullRequestSimplePropHeadType - base: PullRequestSimplePropBaseType - links: PullRequestSimplePropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - - -class PullRequestSimplePropLabelsItemsType(TypedDict): - """PullRequestSimplePropLabelsItems""" - - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool + accepted: bool -__all__ = ( - "PullRequestSimplePropLabelsItemsType", - "PullRequestSimpleType", -) +__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0281.py b/githubkit/versions/ghec_v2022_11_28/types/group_0281.py index 4c416771c..c3bd8342b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0281.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0281.py @@ -9,34 +9,30 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType +from .group_0003 import SimpleUserType +from .group_0154 import MinimalRepositoryType -class PullRequestSimplePropHeadType(TypedDict): - """PullRequestSimplePropHead""" +class RepositoryInvitationType(TypedDict): + """Repository Invitation - label: Union[str, None] - ref: str - repo: Union[None, RepositoryType] - sha: str - user: Union[None, SimpleUserType] + Repository invitations let you manage who you collaborate with. + """ + id: int + repository: MinimalRepositoryType + invitee: Union[None, SimpleUserType] + inviter: Union[None, SimpleUserType] + permissions: Literal["read", "write", "admin", "triage", "maintain"] + created_at: datetime + expired: NotRequired[bool] + url: str + html_url: str + node_id: str -class PullRequestSimplePropBaseType(TypedDict): - """PullRequestSimplePropBase""" - label: str - ref: str - repo: RepositoryType - sha: str - user: Union[None, SimpleUserType] - - -__all__ = ( - "PullRequestSimplePropBaseType", - "PullRequestSimplePropHeadType", -) +__all__ = ("RepositoryInvitationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0282.py b/githubkit/versions/ghec_v2022_11_28/types/group_0282.py index 5a52c6366..10af54a9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0282.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0282.py @@ -9,22 +9,64 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0278 import LinkType +class RepositoryCollaboratorPermissionType(TypedDict): + """Repository Collaborator Permission -class PullRequestSimplePropLinksType(TypedDict): - """PullRequestSimplePropLinks""" + Repository Collaborator Permission + """ - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + permission: str + role_name: str + user: Union[None, CollaboratorType] -__all__ = ("PullRequestSimplePropLinksType",) +class CollaboratorType(TypedDict): + """Collaborator + + Collaborator + """ + + login: str + id: int + email: NotRequired[Union[str, None]] + name: NotRequired[Union[str, None]] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + permissions: NotRequired[CollaboratorPropPermissionsType] + role_name: str + user_view_type: NotRequired[str] + + +class CollaboratorPropPermissionsType(TypedDict): + """CollaboratorPropPermissions""" + + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + admin: bool + + +__all__ = ( + "CollaboratorPropPermissionsType", + "CollaboratorType", + "RepositoryCollaboratorPermissionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0283.py b/githubkit/versions/ghec_v2022_11_28/types/group_0283.py index 348d2b716..b619d4333 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0283.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0283.py @@ -10,44 +10,57 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0147 import MinimalRepositoryType +from .group_0003 import SimpleUserType +from .group_0137 import ReactionRollupType -class CombinedCommitStatusType(TypedDict): - """Combined Commit Status +class CommitCommentType(TypedDict): + """Commit Comment - Combined Commit Status + Commit Comment """ - state: str - statuses: list[SimpleCommitStatusType] - sha: str - total_count: int - repository: MinimalRepositoryType - commit_url: str + html_url: str url: str - - -class SimpleCommitStatusType(TypedDict): - """Simple Commit Status""" - - description: Union[str, None] id: int node_id: str - state: str - context: str - target_url: Union[str, None] - required: NotRequired[Union[bool, None]] - avatar_url: Union[str, None] - url: str + body: str + path: Union[str, None] + position: Union[int, None] + line: Union[int, None] + commit_id: str + user: Union[None, SimpleUserType] created_at: datetime updated_at: datetime + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + reactions: NotRequired[ReactionRollupType] + + +class TimelineCommitCommentedEventType(TypedDict): + """Timeline Commit Commented Event + + Timeline Commit Commented Event + """ + + event: NotRequired[Literal["commit_commented"]] + node_id: NotRequired[str] + commit_id: NotRequired[str] + comments: NotRequired[list[CommitCommentType]] __all__ = ( - "CombinedCommitStatusType", - "SimpleCommitStatusType", + "CommitCommentType", + "TimelineCommitCommentedEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0284.py b/githubkit/versions/ghec_v2022_11_28/types/group_0284.py index 988ab1608..997250710 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0284.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0284.py @@ -9,29 +9,28 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +class BranchShortType(TypedDict): + """Branch Short -class StatusType(TypedDict): - """Status - - The status of a commit. + Branch Short """ + name: str + commit: BranchShortPropCommitType + protected: bool + + +class BranchShortPropCommitType(TypedDict): + """BranchShortPropCommit""" + + sha: str url: str - avatar_url: Union[str, None] - id: int - node_id: str - state: str - description: Union[str, None] - target_url: Union[str, None] - context: str - created_at: str - updated_at: str - creator: Union[None, SimpleUserType] - - -__all__ = ("StatusType",) + + +__all__ = ( + "BranchShortPropCommitType", + "BranchShortType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0285.py b/githubkit/versions/ghec_v2022_11_28/types/group_0285.py index b006fc2b9..064aa0ae7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0285.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0285.py @@ -9,49 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0018 import LicenseSimpleType -from .group_0192 import CodeOfConductSimpleType +class LinkType(TypedDict): + """Link -class CommunityProfilePropFilesType(TypedDict): - """CommunityProfilePropFiles""" - - code_of_conduct: Union[None, CodeOfConductSimpleType] - code_of_conduct_file: Union[None, CommunityHealthFileType] - license_: Union[None, LicenseSimpleType] - contributing: Union[None, CommunityHealthFileType] - readme: Union[None, CommunityHealthFileType] - issue_template: Union[None, CommunityHealthFileType] - pull_request_template: Union[None, CommunityHealthFileType] - - -class CommunityHealthFileType(TypedDict): - """Community Health File""" - - url: str - html_url: str - - -class CommunityProfileType(TypedDict): - """Community Profile - - Community Profile + Hypermedia Link """ - health_percentage: int - description: Union[str, None] - documentation: Union[str, None] - files: CommunityProfilePropFilesType - updated_at: Union[datetime, None] - content_reports_enabled: NotRequired[bool] + href: str -__all__ = ( - "CommunityHealthFileType", - "CommunityProfilePropFilesType", - "CommunityProfileType", -) +__all__ = ("LinkType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0286.py b/githubkit/versions/ghec_v2022_11_28/types/group_0286.py index f4ba5d935..ac1473211 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0286.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0286.py @@ -9,32 +9,22 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0240 import DiffEntryType -from .group_0241 import CommitType +from .group_0003 import SimpleUserType -class CommitComparisonType(TypedDict): - """Commit Comparison +class AutoMergeType(TypedDict): + """Auto merge - Commit Comparison + The status of auto merging a pull request. """ - url: str - html_url: str - permalink_url: str - diff_url: str - patch_url: str - base_commit: CommitType - merge_base_commit: CommitType - status: Literal["diverged", "ahead", "behind", "identical"] - ahead_by: int - behind_by: int - total_commits: int - commits: list[CommitType] - files: NotRequired[list[DiffEntryType]] - - -__all__ = ("CommitComparisonType",) + enabled_by: SimpleUserType + merge_method: Literal["merge", "squash", "rebase"] + commit_title: Union[str, None] + commit_message: Union[str, None] + + +__all__ = ("AutoMergeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0287.py b/githubkit/versions/ghec_v2022_11_28/types/group_0287.py index 9868fcf5d..36eeab52b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0287.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0287.py @@ -9,64 +9,84 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0065 import TeamType +from .group_0136 import MilestoneType +from .group_0286 import AutoMergeType +from .group_0288 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType +from .group_0289 import PullRequestSimplePropLinksType -class ContentTreeType(TypedDict): - """Content Tree - Content Tree +class PullRequestSimpleType(TypedDict): + """Pull Request Simple + + Pull Request Simple """ - type: str - size: int - name: str - path: str - sha: str - content: NotRequired[str] url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - entries: NotRequired[list[ContentTreePropEntriesItemsType]] - links: ContentTreePropLinksType - - -class ContentTreePropLinksType(TypedDict): - """ContentTreePropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -class ContentTreePropEntriesItemsType(TypedDict): - """ContentTreePropEntriesItems""" - - type: str - size: int - name: str - path: str - sha: str + id: int + node_id: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: str + locked: bool + title: str + user: Union[None, SimpleUserType] + body: Union[str, None] + labels: list[PullRequestSimplePropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamType], None]] + head: PullRequestSimplePropHeadType + base: PullRequestSimplePropBaseType + links: PullRequestSimplePropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + + +class PullRequestSimplePropLabelsItemsType(TypedDict): + """PullRequestSimplePropLabelsItems""" + + id: int + node_id: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentTreePropEntriesItemsPropLinksType - - -class ContentTreePropEntriesItemsPropLinksType(TypedDict): - """ContentTreePropEntriesItemsPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str + name: str + description: Union[str, None] + color: str + default: bool __all__ = ( - "ContentTreePropEntriesItemsPropLinksType", - "ContentTreePropEntriesItemsType", - "ContentTreePropLinksType", - "ContentTreeType", + "PullRequestSimplePropLabelsItemsType", + "PullRequestSimpleType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0288.py b/githubkit/versions/ghec_v2022_11_28/types/group_0288.py index 74ee6a6e4..1c03aef11 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0288.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0288.py @@ -9,35 +9,34 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class ContentDirectoryItemsType(TypedDict): - """ContentDirectoryItems""" - type: Literal["dir", "file", "submodule", "symlink"] - size: int - name: str - path: str - content: NotRequired[str] +class PullRequestSimplePropHeadType(TypedDict): + """PullRequestSimplePropHead""" + + label: Union[str, None] + ref: str + repo: Union[None, RepositoryType] sha: str - url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentDirectoryItemsPropLinksType + user: Union[None, SimpleUserType] -class ContentDirectoryItemsPropLinksType(TypedDict): - """ContentDirectoryItemsPropLinks""" +class PullRequestSimplePropBaseType(TypedDict): + """PullRequestSimplePropBase""" - git: Union[str, None] - html: Union[str, None] - self_: str + label: str + ref: str + repo: RepositoryType + sha: str + user: Union[None, SimpleUserType] __all__ = ( - "ContentDirectoryItemsPropLinksType", - "ContentDirectoryItemsType", + "PullRequestSimplePropBaseType", + "PullRequestSimplePropHeadType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0289.py b/githubkit/versions/ghec_v2022_11_28/types/group_0289.py index 2ad4b4ca8..6e7742b19 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0289.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0289.py @@ -9,41 +9,22 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0285 import LinkType -class ContentFileType(TypedDict): - """Content File - Content File - """ +class PullRequestSimplePropLinksType(TypedDict): + """PullRequestSimplePropLinks""" - type: Literal["file"] - encoding: str - size: int - name: str - path: str - content: str - sha: str - url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentFilePropLinksType - target: NotRequired[str] - submodule_git_url: NotRequired[str] + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType -class ContentFilePropLinksType(TypedDict): - """ContentFilePropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "ContentFilePropLinksType", - "ContentFileType", -) +__all__ = ("PullRequestSimplePropLinksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0290.py b/githubkit/versions/ghec_v2022_11_28/types/group_0290.py index 0998eda68..79b1d5051 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0290.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0290.py @@ -9,38 +9,45 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0154 import MinimalRepositoryType -class ContentSymlinkType(TypedDict): - """Symlink Content - An object describing a symlink +class CombinedCommitStatusType(TypedDict): + """Combined Commit Status + + Combined Commit Status """ - type: Literal["symlink"] - target: str - size: int - name: str - path: str + state: str + statuses: list[SimpleCommitStatusType] sha: str + total_count: int + repository: MinimalRepositoryType + commit_url: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentSymlinkPropLinksType -class ContentSymlinkPropLinksType(TypedDict): - """ContentSymlinkPropLinks""" +class SimpleCommitStatusType(TypedDict): + """Simple Commit Status""" - git: Union[str, None] - html: Union[str, None] - self_: str + description: Union[str, None] + id: int + node_id: str + state: str + context: str + target_url: Union[str, None] + required: NotRequired[Union[bool, None]] + avatar_url: Union[str, None] + url: str + created_at: datetime + updated_at: datetime __all__ = ( - "ContentSymlinkPropLinksType", - "ContentSymlinkType", + "CombinedCommitStatusType", + "SimpleCommitStatusType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0291.py b/githubkit/versions/ghec_v2022_11_28/types/group_0291.py index b80d6984e..13b770a02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0291.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0291.py @@ -9,38 +9,29 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class ContentSubmoduleType(TypedDict): - """Submodule Content - An object describing a submodule +class StatusType(TypedDict): + """Status + + The status of a commit. """ - type: Literal["submodule"] - submodule_git_url: str - size: int - name: str - path: str - sha: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentSubmodulePropLinksType - - -class ContentSubmodulePropLinksType(TypedDict): - """ContentSubmodulePropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "ContentSubmodulePropLinksType", - "ContentSubmoduleType", -) + avatar_url: Union[str, None] + id: int + node_id: str + state: str + description: Union[str, None] + target_url: Union[str, None] + context: str + created_at: str + updated_at: str + creator: Union[None, SimpleUserType] + + +__all__ = ("StatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0292.py b/githubkit/versions/ghec_v2022_11_28/types/group_0292.py index 78a4cf43d..749e4ac1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0292.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0292.py @@ -9,107 +9,49 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0019 import LicenseSimpleType +from .group_0199 import CodeOfConductSimpleType -class FileCommitType(TypedDict): - """File Commit - File Commit - """ - - content: Union[FileCommitPropContentType, None] - commit: FileCommitPropCommitType - - -class FileCommitPropContentType(TypedDict): - """FileCommitPropContent""" - - name: NotRequired[str] - path: NotRequired[str] - sha: NotRequired[str] - size: NotRequired[int] - url: NotRequired[str] - html_url: NotRequired[str] - git_url: NotRequired[str] - download_url: NotRequired[str] - type: NotRequired[str] - links: NotRequired[FileCommitPropContentPropLinksType] - - -class FileCommitPropContentPropLinksType(TypedDict): - """FileCommitPropContentPropLinks""" - - self_: NotRequired[str] - git: NotRequired[str] - html: NotRequired[str] - - -class FileCommitPropCommitType(TypedDict): - """FileCommitPropCommit""" +class CommunityProfilePropFilesType(TypedDict): + """CommunityProfilePropFiles""" - sha: NotRequired[str] - node_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - author: NotRequired[FileCommitPropCommitPropAuthorType] - committer: NotRequired[FileCommitPropCommitPropCommitterType] - message: NotRequired[str] - tree: NotRequired[FileCommitPropCommitPropTreeType] - parents: NotRequired[list[FileCommitPropCommitPropParentsItemsType]] - verification: NotRequired[FileCommitPropCommitPropVerificationType] + code_of_conduct: Union[None, CodeOfConductSimpleType] + code_of_conduct_file: Union[None, CommunityHealthFileType] + license_: Union[None, LicenseSimpleType] + contributing: Union[None, CommunityHealthFileType] + readme: Union[None, CommunityHealthFileType] + issue_template: Union[None, CommunityHealthFileType] + pull_request_template: Union[None, CommunityHealthFileType] -class FileCommitPropCommitPropAuthorType(TypedDict): - """FileCommitPropCommitPropAuthor""" +class CommunityHealthFileType(TypedDict): + """Community Health File""" - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] + url: str + html_url: str -class FileCommitPropCommitPropCommitterType(TypedDict): - """FileCommitPropCommitPropCommitter""" +class CommunityProfileType(TypedDict): + """Community Profile - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropTreeType(TypedDict): - """FileCommitPropCommitPropTree""" - - url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropParentsItemsType(TypedDict): - """FileCommitPropCommitPropParentsItems""" - - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropVerificationType(TypedDict): - """FileCommitPropCommitPropVerification""" + Community Profile + """ - verified: NotRequired[bool] - reason: NotRequired[str] - signature: NotRequired[Union[str, None]] - payload: NotRequired[Union[str, None]] - verified_at: NotRequired[Union[str, None]] + health_percentage: int + description: Union[str, None] + documentation: Union[str, None] + files: CommunityProfilePropFilesType + updated_at: Union[datetime, None] + content_reports_enabled: NotRequired[bool] __all__ = ( - "FileCommitPropCommitPropAuthorType", - "FileCommitPropCommitPropCommitterType", - "FileCommitPropCommitPropParentsItemsType", - "FileCommitPropCommitPropTreeType", - "FileCommitPropCommitPropVerificationType", - "FileCommitPropCommitType", - "FileCommitPropContentPropLinksType", - "FileCommitPropContentType", - "FileCommitType", + "CommunityHealthFileType", + "CommunityProfilePropFilesType", + "CommunityProfileType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0293.py b/githubkit/versions/ghec_v2022_11_28/types/group_0293.py index 82a56dc68..aa3b2ec32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0293.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0293.py @@ -9,53 +9,32 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0247 import DiffEntryType +from .group_0248 import CommitType -class RepositoryRuleViolationErrorType(TypedDict): - """RepositoryRuleViolationError - - Repository rule violation was detected - """ - - message: NotRequired[str] - documentation_url: NotRequired[str] - status: NotRequired[str] - metadata: NotRequired[RepositoryRuleViolationErrorPropMetadataType] - - -class RepositoryRuleViolationErrorPropMetadataType(TypedDict): - """RepositoryRuleViolationErrorPropMetadata""" - - secret_scanning: NotRequired[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningType - ] +class CommitComparisonType(TypedDict): + """Commit Comparison -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningType(TypedDict): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" - - bypass_placeholders: NotRequired[ - list[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType - ] - ] - - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType( - TypedDict -): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders - Items + Commit Comparison """ - placeholder_id: NotRequired[str] - token_type: NotRequired[str] - - -__all__ = ( - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", - "RepositoryRuleViolationErrorPropMetadataType", - "RepositoryRuleViolationErrorType", -) + url: str + html_url: str + permalink_url: str + diff_url: str + patch_url: str + base_commit: CommitType + merge_base_commit: CommitType + status: Literal["diverged", "ahead", "behind", "identical"] + ahead_by: int + behind_by: int + total_commits: int + commits: list[CommitType] + files: NotRequired[list[DiffEntryType]] + + +__all__ = ("CommitComparisonType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0294.py b/githubkit/versions/ghec_v2022_11_28/types/group_0294.py index 0bcf70515..9868fcf5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0294.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0294.py @@ -13,34 +13,60 @@ from typing_extensions import NotRequired, TypedDict -class ContributorType(TypedDict): - """Contributor +class ContentTreeType(TypedDict): + """Content Tree - Contributor + Content Tree """ - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[Union[str, None]] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] type: str - site_admin: NotRequired[bool] - contributions: int - email: NotRequired[str] - name: NotRequired[str] - user_view_type: NotRequired[str] + size: int + name: str + path: str + sha: str + content: NotRequired[str] + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + entries: NotRequired[list[ContentTreePropEntriesItemsType]] + links: ContentTreePropLinksType -__all__ = ("ContributorType",) +class ContentTreePropLinksType(TypedDict): + """ContentTreePropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +class ContentTreePropEntriesItemsType(TypedDict): + """ContentTreePropEntriesItems""" + + type: str + size: int + name: str + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentTreePropEntriesItemsPropLinksType + + +class ContentTreePropEntriesItemsPropLinksType(TypedDict): + """ContentTreePropEntriesItemsPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentTreePropEntriesItemsPropLinksType", + "ContentTreePropEntriesItemsType", + "ContentTreePropLinksType", + "ContentTreeType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0295.py b/githubkit/versions/ghec_v2022_11_28/types/group_0295.py index 7debab57b..74ee6a6e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0295.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0295.py @@ -9,42 +9,35 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0065 import DependabotAlertSecurityVulnerabilityType -from .group_0066 import DependabotAlertSecurityAdvisoryType -from .group_0296 import DependabotAlertPropDependencyType +class ContentDirectoryItemsType(TypedDict): + """ContentDirectoryItems""" -class DependabotAlertType(TypedDict): - """DependabotAlert + type: Literal["dir", "file", "submodule", "symlink"] + size: int + name: str + path: str + content: NotRequired[str] + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentDirectoryItemsPropLinksType - A Dependabot alert. - """ - number: int - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] - dependency: DependabotAlertPropDependencyType - security_advisory: DependabotAlertSecurityAdvisoryType - security_vulnerability: DependabotAlertSecurityVulnerabilityType - url: str - html_url: str - created_at: datetime - updated_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[None, SimpleUserType] - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] - dismissed_comment: Union[str, None] - fixed_at: Union[datetime, None] - auto_dismissed_at: NotRequired[Union[datetime, None]] - - -__all__ = ("DependabotAlertType",) +class ContentDirectoryItemsPropLinksType(TypedDict): + """ContentDirectoryItemsPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentDirectoryItemsPropLinksType", + "ContentDirectoryItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0296.py b/githubkit/versions/ghec_v2022_11_28/types/group_0296.py index b66cab84e..2ad4b4ca8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0296.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0296.py @@ -12,18 +12,38 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0064 import DependabotAlertPackageType +class ContentFileType(TypedDict): + """Content File -class DependabotAlertPropDependencyType(TypedDict): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + Content File """ - package: NotRequired[DependabotAlertPackageType] - manifest_path: NotRequired[str] - scope: NotRequired[Union[None, Literal["development", "runtime"]]] - - -__all__ = ("DependabotAlertPropDependencyType",) + type: Literal["file"] + encoding: str + size: int + name: str + path: str + content: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentFilePropLinksType + target: NotRequired[str] + submodule_git_url: NotRequired[str] + + +class ContentFilePropLinksType(TypedDict): + """ContentFilePropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentFilePropLinksType", + "ContentFileType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0297.py b/githubkit/versions/ghec_v2022_11_28/types/group_0297.py index b061be26e..0998eda68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0297.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0297.py @@ -13,31 +13,34 @@ from typing_extensions import TypedDict -class DependencyGraphDiffItemsType(TypedDict): - """DependencyGraphDiffItems""" +class ContentSymlinkType(TypedDict): + """Symlink Content - change_type: Literal["added", "removed"] - manifest: str - ecosystem: str + An object describing a symlink + """ + + type: Literal["symlink"] + target: str + size: int name: str - version: str - package_url: Union[str, None] - license_: Union[str, None] - source_repository_url: Union[str, None] - vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItemsType] - scope: Literal["unknown", "runtime", "development"] + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentSymlinkPropLinksType -class DependencyGraphDiffItemsPropVulnerabilitiesItemsType(TypedDict): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" +class ContentSymlinkPropLinksType(TypedDict): + """ContentSymlinkPropLinks""" - severity: str - advisory_ghsa_id: str - advisory_summary: str - advisory_url: str + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", - "DependencyGraphDiffItemsType", + "ContentSymlinkPropLinksType", + "ContentSymlinkType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0298.py b/githubkit/versions/ghec_v2022_11_28/types/group_0298.py index 489a3ce99..b80d6984e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0298.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0298.py @@ -9,81 +9,38 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class DependencyGraphSpdxSbomType(TypedDict): - """Dependency Graph SPDX SBOM +class ContentSubmoduleType(TypedDict): + """Submodule Content - A schema for the SPDX JSON format returned by the Dependency Graph. + An object describing a submodule """ - sbom: DependencyGraphSpdxSbomPropSbomType - - -class DependencyGraphSpdxSbomPropSbomType(TypedDict): - """DependencyGraphSpdxSbomPropSbom""" - - spdxid: str - spdx_version: str - comment: NotRequired[str] - creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType + type: Literal["submodule"] + submodule_git_url: str + size: int name: str - data_license: str - document_namespace: str - packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] - relationships: NotRequired[ - list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType] - ] - - -class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - - created: str - creators: list[str] - - -class DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" - - relationship_type: NotRequired[str] - spdx_element_id: NotRequired[str] - related_spdx_element: NotRequired[str] - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" - - spdxid: NotRequired[str] - name: NotRequired[str] - version_info: NotRequired[str] - download_location: NotRequired[str] - files_analyzed: NotRequired[bool] - license_concluded: NotRequired[str] - license_declared: NotRequired[str] - supplier: NotRequired[str] - copyright_text: NotRequired[str] - external_refs: NotRequired[ - list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType] - ] + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentSubmodulePropLinksType -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType( - TypedDict -): - """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" +class ContentSubmodulePropLinksType(TypedDict): + """ContentSubmodulePropLinks""" - reference_category: str - reference_locator: str - reference_type: str + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", - "DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType", - "DependencyGraphSpdxSbomPropSbomType", - "DependencyGraphSpdxSbomType", + "ContentSubmodulePropLinksType", + "ContentSubmoduleType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0299.py b/githubkit/versions/ghec_v2022_11_28/types/group_0299.py index 75968e9b1..78a4cf43d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0299.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0299.py @@ -9,15 +9,107 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing import Union +from typing_extensions import NotRequired, TypedDict -MetadataType: TypeAlias = dict[str, Any] -"""metadata -User-defined metadata to store domain-specific information limited to 8 keys -with scalar values. -""" +class FileCommitType(TypedDict): + """File Commit + + File Commit + """ + + content: Union[FileCommitPropContentType, None] + commit: FileCommitPropCommitType + + +class FileCommitPropContentType(TypedDict): + """FileCommitPropContent""" + + name: NotRequired[str] + path: NotRequired[str] + sha: NotRequired[str] + size: NotRequired[int] + url: NotRequired[str] + html_url: NotRequired[str] + git_url: NotRequired[str] + download_url: NotRequired[str] + type: NotRequired[str] + links: NotRequired[FileCommitPropContentPropLinksType] + + +class FileCommitPropContentPropLinksType(TypedDict): + """FileCommitPropContentPropLinks""" + + self_: NotRequired[str] + git: NotRequired[str] + html: NotRequired[str] + + +class FileCommitPropCommitType(TypedDict): + """FileCommitPropCommit""" + + sha: NotRequired[str] + node_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + author: NotRequired[FileCommitPropCommitPropAuthorType] + committer: NotRequired[FileCommitPropCommitPropCommitterType] + message: NotRequired[str] + tree: NotRequired[FileCommitPropCommitPropTreeType] + parents: NotRequired[list[FileCommitPropCommitPropParentsItemsType]] + verification: NotRequired[FileCommitPropCommitPropVerificationType] + + +class FileCommitPropCommitPropAuthorType(TypedDict): + """FileCommitPropCommitPropAuthor""" + + date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] + + +class FileCommitPropCommitPropCommitterType(TypedDict): + """FileCommitPropCommitPropCommitter""" + + date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] + + +class FileCommitPropCommitPropTreeType(TypedDict): + """FileCommitPropCommitPropTree""" + + url: NotRequired[str] + sha: NotRequired[str] + + +class FileCommitPropCommitPropParentsItemsType(TypedDict): + """FileCommitPropCommitPropParentsItems""" + + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] + + +class FileCommitPropCommitPropVerificationType(TypedDict): + """FileCommitPropCommitPropVerification""" + + verified: NotRequired[bool] + reason: NotRequired[str] + signature: NotRequired[Union[str, None]] + payload: NotRequired[Union[str, None]] + verified_at: NotRequired[Union[str, None]] -__all__ = ("MetadataType",) +__all__ = ( + "FileCommitPropCommitPropAuthorType", + "FileCommitPropCommitPropCommitterType", + "FileCommitPropCommitPropParentsItemsType", + "FileCommitPropCommitPropTreeType", + "FileCommitPropCommitPropVerificationType", + "FileCommitPropCommitType", + "FileCommitPropContentPropLinksType", + "FileCommitPropContentType", + "FileCommitType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0300.py b/githubkit/versions/ghec_v2022_11_28/types/group_0300.py index 90380cb67..82a56dc68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0300.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0300.py @@ -9,20 +9,53 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0299 import MetadataType +class RepositoryRuleViolationErrorType(TypedDict): + """RepositoryRuleViolationError -class DependencyType(TypedDict): - """Dependency""" + Repository rule violation was detected + """ - package_url: NotRequired[str] - metadata: NotRequired[MetadataType] - relationship: NotRequired[Literal["direct", "indirect"]] - scope: NotRequired[Literal["runtime", "development"]] - dependencies: NotRequired[list[str]] + message: NotRequired[str] + documentation_url: NotRequired[str] + status: NotRequired[str] + metadata: NotRequired[RepositoryRuleViolationErrorPropMetadataType] -__all__ = ("DependencyType",) +class RepositoryRuleViolationErrorPropMetadataType(TypedDict): + """RepositoryRuleViolationErrorPropMetadata""" + + secret_scanning: NotRequired[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanningType + ] + + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningType(TypedDict): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" + + bypass_placeholders: NotRequired[ + list[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType + ] + ] + + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType( + TypedDict +): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders + Items + """ + + placeholder_id: NotRequired[str] + token_type: NotRequired[str] + + +__all__ = ( + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", + "RepositoryRuleViolationErrorPropMetadataType", + "RepositoryRuleViolationErrorType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0301.py b/githubkit/versions/ghec_v2022_11_28/types/group_0301.py index 5cb92f4b4..0bcf70515 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0301.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0301.py @@ -9,36 +9,38 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0299 import MetadataType - - -class ManifestType(TypedDict): - """Manifest""" - - name: str - file: NotRequired[ManifestPropFileType] - metadata: NotRequired[MetadataType] - resolved: NotRequired[ManifestPropResolvedType] - - -class ManifestPropFileType(TypedDict): - """ManifestPropFile""" - - source_location: NotRequired[str] - - -ManifestPropResolvedType: TypeAlias = dict[str, Any] -"""ManifestPropResolved - -A collection of resolved package dependencies. -""" - - -__all__ = ( - "ManifestPropFileType", - "ManifestPropResolvedType", - "ManifestType", -) +from typing import Union +from typing_extensions import NotRequired, TypedDict + + +class ContributorType(TypedDict): + """Contributor + + Contributor + """ + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[Union[str, None]] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: str + site_admin: NotRequired[bool] + contributions: int + email: NotRequired[str] + name: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("ContributorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0302.py b/githubkit/versions/ghec_v2022_11_28/types/group_0302.py index 419d92f70..1bc6386dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0302.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0302.py @@ -10,58 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0299 import MetadataType +from .group_0003 import SimpleUserType +from .group_0070 import DependabotAlertSecurityVulnerabilityType +from .group_0071 import DependabotAlertSecurityAdvisoryType +from .group_0303 import DependabotAlertPropDependencyType -class SnapshotType(TypedDict): - """snapshot +class DependabotAlertType(TypedDict): + """DependabotAlert - Create a new snapshot of a repository's dependencies. + A Dependabot alert. """ - version: int - job: SnapshotPropJobType - sha: str - ref: str - detector: SnapshotPropDetectorType - metadata: NotRequired[MetadataType] - manifests: NotRequired[SnapshotPropManifestsType] - scanned: datetime - - -class SnapshotPropJobType(TypedDict): - """SnapshotPropJob""" - - id: str - correlator: str - html_url: NotRequired[str] - - -class SnapshotPropDetectorType(TypedDict): - """SnapshotPropDetector - - A description of the detector used. - """ - - name: str - version: str + number: int + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] + dependency: DependabotAlertPropDependencyType + security_advisory: DependabotAlertSecurityAdvisoryType + security_vulnerability: DependabotAlertSecurityVulnerabilityType url: str - - -SnapshotPropManifestsType: TypeAlias = dict[str, Any] -"""SnapshotPropManifests - -A collection of package manifests, which are a collection of related -dependencies declared in a file or representing a logical group of dependencies. -""" - - -__all__ = ( - "SnapshotPropDetectorType", - "SnapshotPropJobType", - "SnapshotPropManifestsType", - "SnapshotType", -) + html_url: str + created_at: datetime + updated_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[None, SimpleUserType] + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] + dismissed_comment: Union[str, None] + fixed_at: Union[datetime, None] + auto_dismissed_at: NotRequired[Union[datetime, None]] + + +__all__ = ("DependabotAlertType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0303.py b/githubkit/versions/ghec_v2022_11_28/types/group_0303.py index 0672fcd03..0e33e9146 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0303.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0303.py @@ -9,37 +9,21 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0069 import DependabotAlertPackageType -class DeploymentStatusType(TypedDict): - """Deployment Status +class DependabotAlertPropDependencyType(TypedDict): + """DependabotAlertPropDependency - The status of a deployment. + Details for the vulnerable dependency. """ - url: str - id: int - node_id: str - state: Literal[ - "error", "failure", "inactive", "pending", "success", "queued", "in_progress" - ] - creator: Union[None, SimpleUserType] - description: str - environment: NotRequired[str] - target_url: str - created_at: datetime - updated_at: datetime - deployment_url: str - repository_url: str - environment_url: NotRequired[str] - log_url: NotRequired[str] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -__all__ = ("DeploymentStatusType",) + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] + + +__all__ = ("DependabotAlertPropDependencyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0304.py b/githubkit/versions/ghec_v2022_11_28/types/group_0304.py index 2b9241c94..b061be26e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0304.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0304.py @@ -9,18 +9,35 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import TypedDict -class DeploymentBranchPolicySettingsType(TypedDict): - """DeploymentBranchPolicySettings +class DependencyGraphDiffItemsType(TypedDict): + """DependencyGraphDiffItems""" - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. - """ + change_type: Literal["added", "removed"] + manifest: str + ecosystem: str + name: str + version: str + package_url: Union[str, None] + license_: Union[str, None] + source_repository_url: Union[str, None] + vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItemsType] + scope: Literal["unknown", "runtime", "development"] - protected_branches: bool - custom_branch_policies: bool +class DependencyGraphDiffItemsPropVulnerabilitiesItemsType(TypedDict): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" -__all__ = ("DeploymentBranchPolicySettingsType",) + severity: str + advisory_ghsa_id: str + advisory_summary: str + advisory_url: str + + +__all__ = ( + "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", + "DependencyGraphDiffItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0305.py b/githubkit/versions/ghec_v2022_11_28/types/group_0305.py index 0c6e1f44d..489a3ce99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0305.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0305.py @@ -9,68 +9,81 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0304 import DeploymentBranchPolicySettingsType -from .group_0306 import EnvironmentPropProtectionRulesItemsAnyof1Type +class DependencyGraphSpdxSbomType(TypedDict): + """Dependency Graph SPDX SBOM -class EnvironmentType(TypedDict): - """Environment - - Details of a deployment environment + A schema for the SPDX JSON format returned by the Dependency Graph. """ - id: int - node_id: str + sbom: DependencyGraphSpdxSbomPropSbomType + + +class DependencyGraphSpdxSbomPropSbomType(TypedDict): + """DependencyGraphSpdxSbomPropSbom""" + + spdxid: str + spdx_version: str + comment: NotRequired[str] + creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType name: str - url: str - html_url: str - created_at: datetime - updated_at: datetime - protection_rules: NotRequired[ - list[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0Type, - EnvironmentPropProtectionRulesItemsAnyof1Type, - EnvironmentPropProtectionRulesItemsAnyof2Type, - ] - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] + data_license: str + document_namespace: str + packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] + relationships: NotRequired[ + list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType] ] -class EnvironmentPropProtectionRulesItemsAnyof0Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof0""" +class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - id: int - node_id: str - type: str - wait_timer: NotRequired[int] + created: str + creators: list[str] -class EnvironmentPropProtectionRulesItemsAnyof2Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof2""" +class DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" - id: int - node_id: str - type: str + relationship_type: NotRequired[str] + spdx_element_id: NotRequired[str] + related_spdx_element: NotRequired[str] + + +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" + + spdxid: NotRequired[str] + name: NotRequired[str] + version_info: NotRequired[str] + download_location: NotRequired[str] + files_analyzed: NotRequired[bool] + license_concluded: NotRequired[str] + license_declared: NotRequired[str] + supplier: NotRequired[str] + copyright_text: NotRequired[str] + external_refs: NotRequired[ + list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType] + ] -class ReposOwnerRepoEnvironmentsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsGetResponse200""" +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType( + TypedDict +): + """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" - total_count: NotRequired[int] - environments: NotRequired[list[EnvironmentType]] + reference_category: str + reference_locator: str + reference_type: str __all__ = ( - "EnvironmentPropProtectionRulesItemsAnyof0Type", - "EnvironmentPropProtectionRulesItemsAnyof2Type", - "EnvironmentType", - "ReposOwnerRepoEnvironmentsGetResponse200Type", + "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", + "DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType", + "DependencyGraphSpdxSbomPropSbomType", + "DependencyGraphSpdxSbomType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0306.py b/githubkit/versions/ghec_v2022_11_28/types/group_0306.py index 7708ad2fa..75968e9b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0306.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0306.py @@ -9,21 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import TypeAlias -from .group_0307 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType +MetadataType: TypeAlias = dict[str, Any] +"""metadata - -class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1""" - - id: int - node_id: str - prevent_self_review: NotRequired[bool] - type: str - reviewers: NotRequired[ - list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] - ] +User-defined metadata to store domain-specific information limited to 8 keys +with scalar values. +""" -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) +__all__ = ("MetadataType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0307.py b/githubkit/versions/ghec_v2022_11_28/types/group_0307.py index f646111d2..13aa3e1d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0307.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0307.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0060 import TeamType +from .group_0306 import MetadataType -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class DependencyType(TypedDict): + """Dependency""" - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] + package_url: NotRequired[str] + metadata: NotRequired[MetadataType] + relationship: NotRequired[Literal["direct", "indirect"]] + scope: NotRequired[Literal["runtime", "development"]] + dependencies: NotRequired[list[str]] -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) +__all__ = ("DependencyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0308.py b/githubkit/versions/ghec_v2022_11_28/types/group_0308.py index 35c7c1f2a..2d16f5000 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0308.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0308.py @@ -9,15 +9,36 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0306 import MetadataType -class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): - """Deployment branch and tag policy name pattern""" + +class ManifestType(TypedDict): + """Manifest""" name: str - type: NotRequired[Literal["branch", "tag"]] + file: NotRequired[ManifestPropFileType] + metadata: NotRequired[MetadataType] + resolved: NotRequired[ManifestPropResolvedType] + + +class ManifestPropFileType(TypedDict): + """ManifestPropFile""" + + source_location: NotRequired[str] + + +ManifestPropResolvedType: TypeAlias = dict[str, Any] +"""ManifestPropResolved + +A collection of resolved package dependencies. +""" -__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) +__all__ = ( + "ManifestPropFileType", + "ManifestPropResolvedType", + "ManifestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0309.py b/githubkit/versions/ghec_v2022_11_28/types/group_0309.py index 784015c57..72e391975 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0309.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0309.py @@ -9,13 +9,59 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0306 import MetadataType -class DeploymentBranchPolicyNamePatternType(TypedDict): - """Deployment branch policy name pattern""" + +class SnapshotType(TypedDict): + """snapshot + + Create a new snapshot of a repository's dependencies. + """ + + version: int + job: SnapshotPropJobType + sha: str + ref: str + detector: SnapshotPropDetectorType + metadata: NotRequired[MetadataType] + manifests: NotRequired[SnapshotPropManifestsType] + scanned: datetime + + +class SnapshotPropJobType(TypedDict): + """SnapshotPropJob""" + + id: str + correlator: str + html_url: NotRequired[str] + + +class SnapshotPropDetectorType(TypedDict): + """SnapshotPropDetector + + A description of the detector used. + """ name: str + version: str + url: str + + +SnapshotPropManifestsType: TypeAlias = dict[str, Any] +"""SnapshotPropManifests + +A collection of package manifests, which are a collection of related +dependencies declared in a file or representing a logical group of dependencies. +""" -__all__ = ("DeploymentBranchPolicyNamePatternType",) +__all__ = ( + "SnapshotPropDetectorType", + "SnapshotPropJobType", + "SnapshotPropManifestsType", + "SnapshotType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0310.py b/githubkit/versions/ghec_v2022_11_28/types/group_0310.py index 55685e749..8e3d71848 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0310.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0310.py @@ -9,19 +9,37 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class CustomDeploymentRuleAppType(TypedDict): - """Custom deployment protection rule app - A GitHub App that is providing a custom deployment protection rule. +class DeploymentStatusType(TypedDict): + """Deployment Status + + The status of a deployment. """ + url: str id: int - slug: str - integration_url: str node_id: str - - -__all__ = ("CustomDeploymentRuleAppType",) + state: Literal[ + "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + ] + creator: Union[None, SimpleUserType] + description: str + environment: NotRequired[str] + target_url: str + created_at: datetime + updated_at: datetime + deployment_url: str + repository_url: str + environment_url: NotRequired[str] + log_url: NotRequired[str] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +__all__ = ("DeploymentStatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0311.py b/githubkit/versions/ghec_v2022_11_28/types/group_0311.py index 654183f3f..2b9241c94 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0311.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0311.py @@ -9,37 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0310 import CustomDeploymentRuleAppType +class DeploymentBranchPolicySettingsType(TypedDict): + """DeploymentBranchPolicySettings -class DeploymentProtectionRuleType(TypedDict): - """Deployment protection rule - - Deployment protection rule - """ - - id: int - node_id: str - enabled: bool - app: CustomDeploymentRuleAppType - - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 - - Examples: - {'$ref': '#/components/examples/deployment-protection-rules'} + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. """ - total_count: NotRequired[int] - custom_deployment_protection_rules: NotRequired[list[DeploymentProtectionRuleType]] + protected_branches: bool + custom_branch_policies: bool -__all__ = ( - "DeploymentProtectionRuleType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", -) +__all__ = ("DeploymentBranchPolicySettingsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0312.py b/githubkit/versions/ghec_v2022_11_28/types/group_0312.py index deb8a4c9a..30243051a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0312.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0312.py @@ -9,17 +9,68 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0311 import DeploymentBranchPolicySettingsType +from .group_0313 import EnvironmentPropProtectionRulesItemsAnyof1Type -class ShortBlobType(TypedDict): - """Short Blob - Short Blob +class EnvironmentType(TypedDict): + """Environment + + Details of a deployment environment """ + id: int + node_id: str + name: str url: str - sha: str + html_url: str + created_at: datetime + updated_at: datetime + protection_rules: NotRequired[ + list[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0Type, + EnvironmentPropProtectionRulesItemsAnyof1Type, + EnvironmentPropProtectionRulesItemsAnyof2Type, + ] + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] + + +class EnvironmentPropProtectionRulesItemsAnyof0Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof0""" + + id: int + node_id: str + type: str + wait_timer: NotRequired[int] + + +class EnvironmentPropProtectionRulesItemsAnyof2Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int + node_id: str + type: str + + +class ReposOwnerRepoEnvironmentsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsGetResponse200""" + + total_count: NotRequired[int] + environments: NotRequired[list[EnvironmentType]] -__all__ = ("ShortBlobType",) +__all__ = ( + "EnvironmentPropProtectionRulesItemsAnyof0Type", + "EnvironmentPropProtectionRulesItemsAnyof2Type", + "EnvironmentType", + "ReposOwnerRepoEnvironmentsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0313.py b/githubkit/versions/ghec_v2022_11_28/types/group_0313.py index 7145ff7f3..af5551a15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0313.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0313.py @@ -9,23 +9,21 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0314 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType -class BlobType(TypedDict): - """Blob - Blob - """ +class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1""" - content: str - encoding: str - url: str - sha: str - size: Union[int, None] + id: int node_id: str - highlighted_content: NotRequired[str] + prevent_self_review: NotRequired[bool] + type: str + reviewers: NotRequired[ + list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] + ] -__all__ = ("BlobType",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0314.py b/githubkit/versions/ghec_v2022_11_28/types/group_0314.py index 576ecf512..a2c0ab09f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0314.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0314.py @@ -9,81 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0065 import TeamType -class GitCommitType(TypedDict): - """Git Commit - Low-level Git commit operations within a repository - """ +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - sha: str - node_id: str - url: str - author: GitCommitPropAuthorType - committer: GitCommitPropCommitterType - message: str - tree: GitCommitPropTreeType - parents: list[GitCommitPropParentsItemsType] - verification: GitCommitPropVerificationType - html_url: str + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] -class GitCommitPropAuthorType(TypedDict): - """GitCommitPropAuthor - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str - - -class GitCommitPropCommitterType(TypedDict): - """GitCommitPropCommitter - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str - - -class GitCommitPropTreeType(TypedDict): - """GitCommitPropTree""" - - sha: str - url: str - - -class GitCommitPropParentsItemsType(TypedDict): - """GitCommitPropParentsItems""" - - sha: str - url: str - html_url: str - - -class GitCommitPropVerificationType(TypedDict): - """GitCommitPropVerification""" - - verified: bool - reason: str - signature: Union[str, None] - payload: Union[str, None] - verified_at: NotRequired[Union[str, None]] - - -__all__ = ( - "GitCommitPropAuthorType", - "GitCommitPropCommitterType", - "GitCommitPropParentsItemsType", - "GitCommitPropTreeType", - "GitCommitPropVerificationType", - "GitCommitType", -) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0315.py b/githubkit/versions/ghec_v2022_11_28/types/group_0315.py index 5f8d78e7c..35c7c1f2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0315.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0315.py @@ -9,30 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class GitRefType(TypedDict): - """Git Reference +class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): + """Deployment branch and tag policy name pattern""" - Git references within a repository - """ + name: str + type: NotRequired[Literal["branch", "tag"]] - ref: str - node_id: str - url: str - object_: GitRefPropObjectType - -class GitRefPropObjectType(TypedDict): - """GitRefPropObject""" - - type: str - sha: str - url: str - - -__all__ = ( - "GitRefPropObjectType", - "GitRefType", -) +__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0316.py b/githubkit/versions/ghec_v2022_11_28/types/group_0316.py index 2623be96f..784015c57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0316.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0316.py @@ -9,45 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0239 import VerificationType +class DeploymentBranchPolicyNamePatternType(TypedDict): + """Deployment branch policy name pattern""" -class GitTagType(TypedDict): - """Git Tag - - Metadata for a Git tag - """ - - node_id: str - tag: str - sha: str - url: str - message: str - tagger: GitTagPropTaggerType - object_: GitTagPropObjectType - verification: NotRequired[VerificationType] - - -class GitTagPropTaggerType(TypedDict): - """GitTagPropTagger""" - - date: str - email: str name: str -class GitTagPropObjectType(TypedDict): - """GitTagPropObject""" - - sha: str - type: str - url: str - - -__all__ = ( - "GitTagPropObjectType", - "GitTagPropTaggerType", - "GitTagType", -) +__all__ = ("DeploymentBranchPolicyNamePatternType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0317.py b/githubkit/versions/ghec_v2022_11_28/types/group_0317.py index 5076029bf..55685e749 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0317.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0317.py @@ -9,33 +9,19 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class GitTreeType(TypedDict): - """Git Tree +class CustomDeploymentRuleAppType(TypedDict): + """Custom deployment protection rule app - The hierarchy between files in a Git repository. + A GitHub App that is providing a custom deployment protection rule. """ - sha: str - url: str - truncated: bool - tree: list[GitTreePropTreeItemsType] + id: int + slug: str + integration_url: str + node_id: str -class GitTreePropTreeItemsType(TypedDict): - """GitTreePropTreeItems""" - - path: NotRequired[str] - mode: NotRequired[str] - type: NotRequired[str] - sha: NotRequired[str] - size: NotRequired[int] - url: NotRequired[str] - - -__all__ = ( - "GitTreePropTreeItemsType", - "GitTreeType", -) +__all__ = ("CustomDeploymentRuleAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0318.py b/githubkit/versions/ghec_v2022_11_28/types/group_0318.py index 2763aab9e..28e314afc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0318.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0318.py @@ -9,16 +9,37 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0317 import CustomDeploymentRuleAppType -class HookResponseType(TypedDict): - """Hook Response""" - code: Union[int, None] - status: Union[str, None] - message: Union[str, None] +class DeploymentProtectionRuleType(TypedDict): + """Deployment protection rule + Deployment protection rule + """ -__all__ = ("HookResponseType",) + id: int + node_id: str + enabled: bool + app: CustomDeploymentRuleAppType + + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 + + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} + """ + + total_count: NotRequired[int] + custom_deployment_protection_rules: NotRequired[list[DeploymentProtectionRuleType]] + + +__all__ = ( + "DeploymentProtectionRuleType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0319.py b/githubkit/versions/ghec_v2022_11_28/types/group_0319.py index dd639dd6e..deb8a4c9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0319.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0319.py @@ -9,32 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0009 import WebhookConfigType -from .group_0318 import HookResponseType +class ShortBlobType(TypedDict): + """Short Blob -class HookType(TypedDict): - """Webhook - - Webhooks for repositories. + Short Blob """ - type: str - id: int - name: str - active: bool - events: list[str] - config: WebhookConfigType - updated_at: datetime - created_at: datetime url: str - test_url: str - ping_url: str - deliveries_url: NotRequired[str] - last_response: HookResponseType + sha: str -__all__ = ("HookType",) +__all__ = ("ShortBlobType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0320.py b/githubkit/versions/ghec_v2022_11_28/types/group_0320.py index 991490339..7145ff7f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0320.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0320.py @@ -9,67 +9,23 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class ImportType(TypedDict): - """Import +class BlobType(TypedDict): + """Blob - A repository import from an external source. + Blob """ - vcs: Union[str, None] - use_lfs: NotRequired[bool] - vcs_url: str - svc_root: NotRequired[str] - tfvc_project: NotRequired[str] - status: Literal[ - "auth", - "error", - "none", - "detecting", - "choose", - "auth_failed", - "importing", - "mapping", - "waiting_to_push", - "pushing", - "complete", - "setup", - "unknown", - "detection_found_multiple", - "detection_found_nothing", - "detection_needs_auth", - ] - status_text: NotRequired[Union[str, None]] - failed_step: NotRequired[Union[str, None]] - error_message: NotRequired[Union[str, None]] - import_percent: NotRequired[Union[int, None]] - commit_count: NotRequired[Union[int, None]] - push_percent: NotRequired[Union[int, None]] - has_large_files: NotRequired[bool] - large_files_size: NotRequired[int] - large_files_count: NotRequired[int] - project_choices: NotRequired[list[ImportPropProjectChoicesItemsType]] - message: NotRequired[str] - authors_count: NotRequired[Union[int, None]] + content: str + encoding: str url: str - html_url: str - authors_url: str - repository_url: str - svn_root: NotRequired[str] + sha: str + size: Union[int, None] + node_id: str + highlighted_content: NotRequired[str] -class ImportPropProjectChoicesItemsType(TypedDict): - """ImportPropProjectChoicesItems""" - - vcs: NotRequired[str] - tfvc_project: NotRequired[str] - human_name: NotRequired[str] - - -__all__ = ( - "ImportPropProjectChoicesItemsType", - "ImportType", -) +__all__ = ("BlobType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0321.py b/githubkit/versions/ghec_v2022_11_28/types/group_0321.py index a760ba55a..cb7d784df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0321.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0321.py @@ -9,22 +9,81 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import TypedDict -class PorterAuthorType(TypedDict): - """Porter Author +class GitCommitType(TypedDict): + """Git Commit - Porter Author + Low-level Git commit operations within a repository """ - id: int - remote_id: str - remote_name: str + sha: str + node_id: str + url: str + author: GitCommitPropAuthorType + committer: GitCommitPropCommitterType + message: str + tree: GitCommitPropTreeType + parents: list[GitCommitPropParentsItemsType] + verification: GitCommitPropVerificationType + html_url: str + + +class GitCommitPropAuthorType(TypedDict): + """GitCommitPropAuthor + + Identifying information for the git-user + """ + + date: datetime email: str name: str + + +class GitCommitPropCommitterType(TypedDict): + """GitCommitPropCommitter + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class GitCommitPropTreeType(TypedDict): + """GitCommitPropTree""" + + sha: str url: str - import_url: str -__all__ = ("PorterAuthorType",) +class GitCommitPropParentsItemsType(TypedDict): + """GitCommitPropParentsItems""" + + sha: str + url: str + html_url: str + + +class GitCommitPropVerificationType(TypedDict): + """GitCommitPropVerification""" + + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] + verified_at: Union[str, None] + + +__all__ = ( + "GitCommitPropAuthorType", + "GitCommitPropCommitterType", + "GitCommitPropParentsItemsType", + "GitCommitPropTreeType", + "GitCommitPropVerificationType", + "GitCommitType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0322.py b/githubkit/versions/ghec_v2022_11_28/types/group_0322.py index ae1425148..5f8d78e7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0322.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0322.py @@ -12,16 +12,27 @@ from typing_extensions import TypedDict -class PorterLargeFileType(TypedDict): - """Porter Large File +class GitRefType(TypedDict): + """Git Reference - Porter Large File + Git references within a repository """ - ref_name: str - path: str - oid: str - size: int + ref: str + node_id: str + url: str + object_: GitRefPropObjectType -__all__ = ("PorterLargeFileType",) +class GitRefPropObjectType(TypedDict): + """GitRefPropObject""" + + type: str + sha: str + url: str + + +__all__ = ( + "GitRefPropObjectType", + "GitRefType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0323.py b/githubkit/versions/ghec_v2022_11_28/types/group_0323.py index 82996cdcd..108d06faf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0323.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0323.py @@ -9,114 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0060 import TeamType -from .group_0131 import IssueType +from .group_0246 import VerificationType -class IssueEventType(TypedDict): - """Issue Event +class GitTagType(TypedDict): + """Git Tag - Issue Event + Metadata for a Git tag """ - id: int node_id: str + tag: str + sha: str url: str - actor: Union[None, SimpleUserType] - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: datetime - issue: NotRequired[Union[None, IssueType]] - label: NotRequired[IssueEventLabelType] - assignee: NotRequired[Union[None, SimpleUserType]] - assigner: NotRequired[Union[None, SimpleUserType]] - review_requester: NotRequired[Union[None, SimpleUserType]] - requested_reviewer: NotRequired[Union[None, SimpleUserType]] - requested_team: NotRequired[TeamType] - dismissed_review: NotRequired[IssueEventDismissedReviewType] - milestone: NotRequired[IssueEventMilestoneType] - project_card: NotRequired[IssueEventProjectCardType] - rename: NotRequired[IssueEventRenameType] - author_association: NotRequired[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] - lock_reason: NotRequired[Union[str, None]] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -class IssueEventLabelType(TypedDict): - """Issue Event Label - - Issue Event Label - """ - - name: Union[str, None] - color: Union[str, None] - - -class IssueEventDismissedReviewType(TypedDict): - """Issue Event Dismissed Review""" - - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[Union[str, None]] - - -class IssueEventMilestoneType(TypedDict): - """Issue Event Milestone + message: str + tagger: GitTagPropTaggerType + object_: GitTagPropObjectType + verification: NotRequired[VerificationType] - Issue Event Milestone - """ - title: str +class GitTagPropTaggerType(TypedDict): + """GitTagPropTagger""" + date: str + email: str + name: str -class IssueEventProjectCardType(TypedDict): - """Issue Event Project Card - Issue Event Project Card - """ +class GitTagPropObjectType(TypedDict): + """GitTagPropObject""" + sha: str + type: str url: str - id: int - project_url: str - project_id: int - column_name: str - previous_column_name: NotRequired[str] - - -class IssueEventRenameType(TypedDict): - """Issue Event Rename - - Issue Event Rename - """ - - from_: str - to: str __all__ = ( - "IssueEventDismissedReviewType", - "IssueEventLabelType", - "IssueEventMilestoneType", - "IssueEventProjectCardType", - "IssueEventRenameType", - "IssueEventType", + "GitTagPropObjectType", + "GitTagPropTaggerType", + "GitTagType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0324.py b/githubkit/versions/ghec_v2022_11_28/types/group_0324.py index 51e8be06f..5076029bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0324.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0324.py @@ -9,39 +9,33 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +class GitTreeType(TypedDict): + """Git Tree -class LabeledIssueEventType(TypedDict): - """Labeled Issue Event - - Labeled Issue Event + The hierarchy between files in a Git repository. """ - id: int - node_id: str + sha: str url: str - actor: SimpleUserType - event: Literal["labeled"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - label: LabeledIssueEventPropLabelType + truncated: bool + tree: list[GitTreePropTreeItemsType] -class LabeledIssueEventPropLabelType(TypedDict): - """LabeledIssueEventPropLabel""" +class GitTreePropTreeItemsType(TypedDict): + """GitTreePropTreeItems""" - name: str - color: str + path: NotRequired[str] + mode: NotRequired[str] + type: NotRequired[str] + sha: NotRequired[str] + size: NotRequired[int] + url: NotRequired[str] __all__ = ( - "LabeledIssueEventPropLabelType", - "LabeledIssueEventType", + "GitTreePropTreeItemsType", + "GitTreeType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0325.py b/githubkit/versions/ghec_v2022_11_28/types/group_0325.py index eb5f86f1e..2763aab9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0325.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0325.py @@ -9,39 +9,16 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +class HookResponseType(TypedDict): + """Hook Response""" -class UnlabeledIssueEventType(TypedDict): - """Unlabeled Issue Event + code: Union[int, None] + status: Union[str, None] + message: Union[str, None] - Unlabeled Issue Event - """ - id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["unlabeled"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - label: UnlabeledIssueEventPropLabelType - - -class UnlabeledIssueEventPropLabelType(TypedDict): - """UnlabeledIssueEventPropLabel""" - - name: str - color: str - - -__all__ = ( - "UnlabeledIssueEventPropLabelType", - "UnlabeledIssueEventType", -) +__all__ = ("HookResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0326.py b/githubkit/versions/ghec_v2022_11_28/types/group_0326.py index d8f7b2faa..9fb93600f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0326.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0326.py @@ -9,30 +9,32 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0011 import WebhookConfigType +from .group_0325 import HookResponseType -class AssignedIssueEventType(TypedDict): - """Assigned Issue Event +class HookType(TypedDict): + """Webhook - Assigned Issue Event + Webhooks for repositories. """ + type: str id: int - node_id: str + name: str + active: bool + events: list[str] + config: WebhookConfigType + updated_at: datetime + created_at: datetime url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + test_url: str + ping_url: str + deliveries_url: NotRequired[str] + last_response: HookResponseType -__all__ = ("AssignedIssueEventType",) +__all__ = ("HookType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0327.py b/githubkit/versions/ghec_v2022_11_28/types/group_0327.py index cadc4836a..991490339 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0327.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0327.py @@ -9,30 +9,67 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +class ImportType(TypedDict): + """Import -class UnassignedIssueEventType(TypedDict): - """Unassigned Issue Event - - Unassigned Issue Event + A repository import from an external source. """ - id: int - node_id: str + vcs: Union[str, None] + use_lfs: NotRequired[bool] + vcs_url: str + svc_root: NotRequired[str] + tfvc_project: NotRequired[str] + status: Literal[ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth", + ] + status_text: NotRequired[Union[str, None]] + failed_step: NotRequired[Union[str, None]] + error_message: NotRequired[Union[str, None]] + import_percent: NotRequired[Union[int, None]] + commit_count: NotRequired[Union[int, None]] + push_percent: NotRequired[Union[int, None]] + has_large_files: NotRequired[bool] + large_files_size: NotRequired[int] + large_files_count: NotRequired[int] + project_choices: NotRequired[list[ImportPropProjectChoicesItemsType]] + message: NotRequired[str] + authors_count: NotRequired[Union[int, None]] url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + html_url: str + authors_url: str + repository_url: str + svn_root: NotRequired[str] + + +class ImportPropProjectChoicesItemsType(TypedDict): + """ImportPropProjectChoicesItems""" + + vcs: NotRequired[str] + tfvc_project: NotRequired[str] + human_name: NotRequired[str] -__all__ = ("UnassignedIssueEventType",) +__all__ = ( + "ImportPropProjectChoicesItemsType", + "ImportType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0328.py b/githubkit/versions/ghec_v2022_11_28/types/group_0328.py index 7d121f5d5..a760ba55a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0328.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0328.py @@ -9,38 +9,22 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +class PorterAuthorType(TypedDict): + """Porter Author -class MilestonedIssueEventType(TypedDict): - """Milestoned Issue Event - - Milestoned Issue Event + Porter Author """ id: int - node_id: str + remote_id: str + remote_name: str + email: str + name: str url: str - actor: SimpleUserType - event: Literal["milestoned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - milestone: MilestonedIssueEventPropMilestoneType - - -class MilestonedIssueEventPropMilestoneType(TypedDict): - """MilestonedIssueEventPropMilestone""" - - title: str + import_url: str -__all__ = ( - "MilestonedIssueEventPropMilestoneType", - "MilestonedIssueEventType", -) +__all__ = ("PorterAuthorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0329.py b/githubkit/versions/ghec_v2022_11_28/types/group_0329.py index f228c3e87..ae1425148 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0329.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0329.py @@ -9,38 +9,19 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +class PorterLargeFileType(TypedDict): + """Porter Large File -class DemilestonedIssueEventType(TypedDict): - """Demilestoned Issue Event - - Demilestoned Issue Event + Porter Large File """ - id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["demilestoned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - milestone: DemilestonedIssueEventPropMilestoneType - - -class DemilestonedIssueEventPropMilestoneType(TypedDict): - """DemilestonedIssueEventPropMilestone""" - - title: str + ref_name: str + path: str + oid: str + size: int -__all__ = ( - "DemilestonedIssueEventPropMilestoneType", - "DemilestonedIssueEventType", -) +__all__ = ("PorterLargeFileType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0330.py b/githubkit/versions/ghec_v2022_11_28/types/group_0330.py index 4cabd06cf..190583986 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0330.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0330.py @@ -9,39 +9,114 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0065 import TeamType +from .group_0138 import IssueType -class RenamedIssueEventType(TypedDict): - """Renamed Issue Event +class IssueEventType(TypedDict): + """Issue Event - Renamed Issue Event + Issue Event """ id: int node_id: str url: str - actor: SimpleUserType - event: Literal["renamed"] + actor: Union[None, SimpleUserType] + event: str commit_id: Union[str, None] commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - rename: RenamedIssueEventPropRenameType + created_at: datetime + issue: NotRequired[Union[None, IssueType]] + label: NotRequired[IssueEventLabelType] + assignee: NotRequired[Union[None, SimpleUserType]] + assigner: NotRequired[Union[None, SimpleUserType]] + review_requester: NotRequired[Union[None, SimpleUserType]] + requested_reviewer: NotRequired[Union[None, SimpleUserType]] + requested_team: NotRequired[TeamType] + dismissed_review: NotRequired[IssueEventDismissedReviewType] + milestone: NotRequired[IssueEventMilestoneType] + project_card: NotRequired[IssueEventProjectCardType] + rename: NotRequired[IssueEventRenameType] + author_association: NotRequired[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] + lock_reason: NotRequired[Union[str, None]] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] -class RenamedIssueEventPropRenameType(TypedDict): - """RenamedIssueEventPropRename""" +class IssueEventLabelType(TypedDict): + """Issue Event Label + + Issue Event Label + """ + + name: Union[str, None] + color: Union[str, None] + + +class IssueEventDismissedReviewType(TypedDict): + """Issue Event Dismissed Review""" + + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[Union[str, None]] + + +class IssueEventMilestoneType(TypedDict): + """Issue Event Milestone + + Issue Event Milestone + """ + + title: str + + +class IssueEventProjectCardType(TypedDict): + """Issue Event Project Card + + Issue Event Project Card + """ + + url: str + id: int + project_url: str + project_id: int + column_name: str + previous_column_name: NotRequired[str] + + +class IssueEventRenameType(TypedDict): + """Issue Event Rename + + Issue Event Rename + """ from_: str to: str __all__ = ( - "RenamedIssueEventPropRenameType", - "RenamedIssueEventType", + "IssueEventDismissedReviewType", + "IssueEventLabelType", + "IssueEventMilestoneType", + "IssueEventProjectCardType", + "IssueEventRenameType", + "IssueEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0331.py b/githubkit/versions/ghec_v2022_11_28/types/group_0331.py index d7652f809..e030b2d8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0331.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0331.py @@ -10,31 +10,38 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0060 import TeamType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class ReviewRequestedIssueEventType(TypedDict): - """Review Requested Issue Event +class LabeledIssueEventType(TypedDict): + """Labeled Issue Event - Review Requested Issue Event + Labeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_requested"] + event: Literal["labeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + label: LabeledIssueEventPropLabelType -__all__ = ("ReviewRequestedIssueEventType",) +class LabeledIssueEventPropLabelType(TypedDict): + """LabeledIssueEventPropLabel""" + + name: str + color: str + + +__all__ = ( + "LabeledIssueEventPropLabelType", + "LabeledIssueEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0332.py b/githubkit/versions/ghec_v2022_11_28/types/group_0332.py index 68c7ccead..94fd5f2f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0332.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0332.py @@ -10,31 +10,38 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0060 import TeamType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class ReviewRequestRemovedIssueEventType(TypedDict): - """Review Request Removed Issue Event +class UnlabeledIssueEventType(TypedDict): + """Unlabeled Issue Event - Review Request Removed Issue Event + Unlabeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_request_removed"] + event: Literal["unlabeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + label: UnlabeledIssueEventPropLabelType -__all__ = ("ReviewRequestRemovedIssueEventType",) +class UnlabeledIssueEventPropLabelType(TypedDict): + """UnlabeledIssueEventPropLabel""" + + name: str + color: str + + +__all__ = ( + "UnlabeledIssueEventPropLabelType", + "UnlabeledIssueEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0333.py b/githubkit/versions/ghec_v2022_11_28/types/group_0333.py index f98461c20..735f4766c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0333.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0333.py @@ -9,41 +9,30 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class ReviewDismissedIssueEventType(TypedDict): - """Review Dismissed Issue Event +class AssignedIssueEventType(TypedDict): + """Assigned Issue Event - Review Dismissed Issue Event + Assigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_dismissed"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType + performed_via_github_app: Union[IntegrationType, None] + assignee: SimpleUserType + assigner: SimpleUserType -class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): - """ReviewDismissedIssueEventPropDismissedReview""" - - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[str] - - -__all__ = ( - "ReviewDismissedIssueEventPropDismissedReviewType", - "ReviewDismissedIssueEventType", -) +__all__ = ("AssignedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0334.py b/githubkit/versions/ghec_v2022_11_28/types/group_0334.py index 70705da71..cee4c2513 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0334.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0334.py @@ -9,29 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class LockedIssueEventType(TypedDict): - """Locked Issue Event +class UnassignedIssueEventType(TypedDict): + """Unassigned Issue Event - Locked Issue Event + Unassigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["locked"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - lock_reason: Union[str, None] + assignee: SimpleUserType + assigner: SimpleUserType -__all__ = ("LockedIssueEventType",) +__all__ = ("UnassignedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0335.py b/githubkit/versions/ghec_v2022_11_28/types/group_0335.py index 4ffacf3d5..2b6b9a914 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0335.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0335.py @@ -10,42 +10,37 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class AddedToProjectIssueEventType(TypedDict): - """Added to Project Issue Event +class MilestonedIssueEventType(TypedDict): + """Milestoned Issue Event - Added to Project Issue Event + Milestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["added_to_project"] + event: Literal["milestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] + milestone: MilestonedIssueEventPropMilestoneType -class AddedToProjectIssueEventPropProjectCardType(TypedDict): - """AddedToProjectIssueEventPropProjectCard""" +class MilestonedIssueEventPropMilestoneType(TypedDict): + """MilestonedIssueEventPropMilestone""" - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] + title: str __all__ = ( - "AddedToProjectIssueEventPropProjectCardType", - "AddedToProjectIssueEventType", + "MilestonedIssueEventPropMilestoneType", + "MilestonedIssueEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0336.py b/githubkit/versions/ghec_v2022_11_28/types/group_0336.py index cab6932ec..dfaf3aff4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0336.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0336.py @@ -10,42 +10,37 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class MovedColumnInProjectIssueEventType(TypedDict): - """Moved Column in Project Issue Event +class DemilestonedIssueEventType(TypedDict): + """Demilestoned Issue Event - Moved Column in Project Issue Event + Demilestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["moved_columns_in_project"] + event: Literal["demilestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] + milestone: DemilestonedIssueEventPropMilestoneType -class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): - """MovedColumnInProjectIssueEventPropProjectCard""" +class DemilestonedIssueEventPropMilestoneType(TypedDict): + """DemilestonedIssueEventPropMilestone""" - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] + title: str __all__ = ( - "MovedColumnInProjectIssueEventPropProjectCardType", - "MovedColumnInProjectIssueEventType", + "DemilestonedIssueEventPropMilestoneType", + "DemilestonedIssueEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0337.py b/githubkit/versions/ghec_v2022_11_28/types/group_0337.py index 113d28a97..6d9cdf5e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0337.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0337.py @@ -10,42 +10,38 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class RemovedFromProjectIssueEventType(TypedDict): - """Removed from Project Issue Event +class RenamedIssueEventType(TypedDict): + """Renamed Issue Event - Removed from Project Issue Event + Renamed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["removed_from_project"] + event: Literal["renamed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[RemovedFromProjectIssueEventPropProjectCardType] + rename: RenamedIssueEventPropRenameType -class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): - """RemovedFromProjectIssueEventPropProjectCard""" +class RenamedIssueEventPropRenameType(TypedDict): + """RenamedIssueEventPropRename""" - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] + from_: str + to: str __all__ = ( - "RemovedFromProjectIssueEventPropProjectCardType", - "RemovedFromProjectIssueEventType", + "RenamedIssueEventPropRenameType", + "RenamedIssueEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0338.py b/githubkit/versions/ghec_v2022_11_28/types/group_0338.py index d9489c04a..70878c56d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0338.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0338.py @@ -12,40 +12,29 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0065 import TeamType -class ConvertedNoteToIssueIssueEventType(TypedDict): - """Converted Note to Issue Issue Event +class ReviewRequestedIssueEventType(TypedDict): + """Review Requested Issue Event - Converted Note to Issue Issue Event + Review Requested Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["converted_note_to_issue"] + event: Literal["review_requested"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[IntegrationType, None] - project_card: NotRequired[ConvertedNoteToIssueIssueEventPropProjectCardType] + performed_via_github_app: Union[None, IntegrationType, None] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): - """ConvertedNoteToIssueIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "ConvertedNoteToIssueIssueEventPropProjectCardType", - "ConvertedNoteToIssueIssueEventType", -) +__all__ = ("ReviewRequestedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0339.py b/githubkit/versions/ghec_v2022_11_28/types/group_0339.py index 14dd1e152..82b22d3a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0339.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0339.py @@ -9,46 +9,32 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0130 import ReactionRollupType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0065 import TeamType -class TimelineCommentEventType(TypedDict): - """Timeline Comment Event +class ReviewRequestRemovedIssueEventType(TypedDict): + """Review Request Removed Issue Event - Timeline Comment Event + Review Request Removed Issue Event """ - event: Literal["commented"] - actor: SimpleUserType id: int node_id: str url: str - body: NotRequired[str] - body_text: NotRequired[str] - body_html: NotRequired[str] - html_url: str - user: SimpleUserType - created_at: datetime - updated_at: datetime - issue_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TimelineCommentEventType",) + actor: SimpleUserType + event: Literal["review_request_removed"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] + + +__all__ = ("ReviewRequestRemovedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0340.py b/githubkit/versions/ghec_v2022_11_28/types/group_0340.py index 1461b6a70..160c5a57c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0340.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0340.py @@ -9,25 +9,41 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0341 import TimelineCrossReferencedEventPropSourceType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineCrossReferencedEventType(TypedDict): - """Timeline Cross Referenced Event +class ReviewDismissedIssueEventType(TypedDict): + """Review Dismissed Issue Event - Timeline Cross Referenced Event + Review Dismissed Issue Event """ - event: Literal["cross-referenced"] - actor: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - source: TimelineCrossReferencedEventPropSourceType + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["review_dismissed"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType -__all__ = ("TimelineCrossReferencedEventType",) +class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): + """ReviewDismissedIssueEventPropDismissedReview""" + + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[str] + + +__all__ = ( + "ReviewDismissedIssueEventPropDismissedReviewType", + "ReviewDismissedIssueEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0341.py b/githubkit/versions/ghec_v2022_11_28/types/group_0341.py index 71a477a16..1c8f2b944 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0341.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0341.py @@ -9,16 +9,29 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0131 import IssueType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineCrossReferencedEventPropSourceType(TypedDict): - """TimelineCrossReferencedEventPropSource""" +class LockedIssueEventType(TypedDict): + """Locked Issue Event - type: NotRequired[str] - issue: NotRequired[IssueType] + Locked Issue Event + """ + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["locked"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + lock_reason: Union[str, None] -__all__ = ("TimelineCrossReferencedEventPropSourceType",) + +__all__ = ("LockedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0342.py b/githubkit/versions/ghec_v2022_11_28/types/group_0342.py index f60fa98ce..c1191415d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0342.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0342.py @@ -9,82 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineCommittedEventType(TypedDict): - """Timeline Committed Event - Timeline Committed Event - """ - - event: NotRequired[Literal["committed"]] - sha: str - node_id: str - url: str - author: TimelineCommittedEventPropAuthorType - committer: TimelineCommittedEventPropCommitterType - message: str - tree: TimelineCommittedEventPropTreeType - parents: list[TimelineCommittedEventPropParentsItemsType] - verification: TimelineCommittedEventPropVerificationType - html_url: str - - -class TimelineCommittedEventPropAuthorType(TypedDict): - """TimelineCommittedEventPropAuthor - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str +class AddedToProjectIssueEventType(TypedDict): + """Added to Project Issue Event - -class TimelineCommittedEventPropCommitterType(TypedDict): - """TimelineCommittedEventPropCommitter - - Identifying information for the git-user + Added to Project Issue Event """ - date: datetime - email: str - name: str - - -class TimelineCommittedEventPropTreeType(TypedDict): - """TimelineCommittedEventPropTree""" - - sha: str + id: int + node_id: str url: str + actor: SimpleUserType + event: Literal["added_to_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] -class TimelineCommittedEventPropParentsItemsType(TypedDict): - """TimelineCommittedEventPropParentsItems""" +class AddedToProjectIssueEventPropProjectCardType(TypedDict): + """AddedToProjectIssueEventPropProjectCard""" - sha: str + id: int url: str - html_url: str - - -class TimelineCommittedEventPropVerificationType(TypedDict): - """TimelineCommittedEventPropVerification""" - - verified: bool - reason: str - signature: Union[str, None] - payload: Union[str, None] - verified_at: NotRequired[Union[str, None]] + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] __all__ = ( - "TimelineCommittedEventPropAuthorType", - "TimelineCommittedEventPropCommitterType", - "TimelineCommittedEventPropParentsItemsType", - "TimelineCommittedEventPropTreeType", - "TimelineCommittedEventPropVerificationType", - "TimelineCommittedEventType", + "AddedToProjectIssueEventPropProjectCardType", + "AddedToProjectIssueEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0343.py b/githubkit/versions/ghec_v2022_11_28/types/group_0343.py index ae1aa5bee..c8c8ecbcf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0343.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0343.py @@ -9,66 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineReviewedEventType(TypedDict): - """Timeline Reviewed Event +class MovedColumnInProjectIssueEventType(TypedDict): + """Moved Column in Project Issue Event - Timeline Reviewed Event + Moved Column in Project Issue Event """ - event: Literal["reviewed"] id: int node_id: str - user: SimpleUserType - body: Union[str, None] - state: str - html_url: str - pull_request_url: str - links: TimelineReviewedEventPropLinksType - submitted_at: NotRequired[datetime] - commit_id: str - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] + url: str + actor: SimpleUserType + event: Literal["moved_columns_in_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] -class TimelineReviewedEventPropLinksType(TypedDict): - """TimelineReviewedEventPropLinks""" +class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): + """MovedColumnInProjectIssueEventPropProjectCard""" - html: TimelineReviewedEventPropLinksPropHtmlType - pull_request: TimelineReviewedEventPropLinksPropPullRequestType - - -class TimelineReviewedEventPropLinksPropHtmlType(TypedDict): - """TimelineReviewedEventPropLinksPropHtml""" - - href: str - - -class TimelineReviewedEventPropLinksPropPullRequestType(TypedDict): - """TimelineReviewedEventPropLinksPropPullRequest""" - - href: str + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] __all__ = ( - "TimelineReviewedEventPropLinksPropHtmlType", - "TimelineReviewedEventPropLinksPropPullRequestType", - "TimelineReviewedEventPropLinksType", - "TimelineReviewedEventType", + "MovedColumnInProjectIssueEventPropProjectCardType", + "MovedColumnInProjectIssueEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0344.py b/githubkit/versions/ghec_v2022_11_28/types/group_0344.py index 3589d4d71..8616df3d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0344.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0344.py @@ -9,103 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0130 import ReactionRollupType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class PullRequestReviewCommentType(TypedDict): - """Pull Request Review Comment +class RemovedFromProjectIssueEventType(TypedDict): + """Removed from Project Issue Event - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Removed from Project Issue Event """ - url: str - pull_request_review_id: Union[int, None] id: int node_id: str - diff_hunk: str - path: str - position: NotRequired[int] - original_position: NotRequired[int] - commit_id: str - original_commit_id: str - in_reply_to_id: NotRequired[int] - user: SimpleUserType - body: str - created_at: datetime - updated_at: datetime - html_url: str - pull_request_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - links: PullRequestReviewCommentPropLinksType - start_line: NotRequired[Union[int, None]] - original_start_line: NotRequired[Union[int, None]] - start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] - line: NotRequired[int] - original_line: NotRequired[int] - side: NotRequired[Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - reactions: NotRequired[ReactionRollupType] - body_html: NotRequired[str] - body_text: NotRequired[str] - - -class PullRequestReviewCommentPropLinksType(TypedDict): - """PullRequestReviewCommentPropLinks""" - - self_: PullRequestReviewCommentPropLinksPropSelfType - html: PullRequestReviewCommentPropLinksPropHtmlType - pull_request: PullRequestReviewCommentPropLinksPropPullRequestType - - -class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): - """PullRequestReviewCommentPropLinksPropSelf""" - - href: str - - -class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): - """PullRequestReviewCommentPropLinksPropHtml""" - - href: str - - -class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewCommentPropLinksPropPullRequest""" - - href: str - + url: str + actor: SimpleUserType + event: Literal["removed_from_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[RemovedFromProjectIssueEventPropProjectCardType] -class TimelineLineCommentedEventType(TypedDict): - """Timeline Line Commented Event - Timeline Line Commented Event - """ +class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): + """RemovedFromProjectIssueEventPropProjectCard""" - event: NotRequired[Literal["line_commented"]] - node_id: NotRequired[str] - comments: NotRequired[list[PullRequestReviewCommentType]] + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] __all__ = ( - "PullRequestReviewCommentPropLinksPropHtmlType", - "PullRequestReviewCommentPropLinksPropPullRequestType", - "PullRequestReviewCommentPropLinksPropSelfType", - "PullRequestReviewCommentPropLinksType", - "PullRequestReviewCommentType", - "TimelineLineCommentedEventType", + "RemovedFromProjectIssueEventPropProjectCardType", + "RemovedFromProjectIssueEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0345.py b/githubkit/versions/ghec_v2022_11_28/types/group_0345.py index ca38ea139..03ad239c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0345.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0345.py @@ -10,28 +10,42 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineAssignedIssueEventType(TypedDict): - """Timeline Assigned Issue Event +class ConvertedNoteToIssueIssueEventType(TypedDict): + """Converted Note to Issue Issue Event - Timeline Assigned Issue Event + Converted Note to Issue Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["assigned"] + event: Literal["converted_note_to_issue"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType + performed_via_github_app: Union[IntegrationType, None] + project_card: NotRequired[ConvertedNoteToIssueIssueEventPropProjectCardType] -__all__ = ("TimelineAssignedIssueEventType",) +class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): + """ConvertedNoteToIssueIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "ConvertedNoteToIssueIssueEventPropProjectCardType", + "ConvertedNoteToIssueIssueEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0346.py b/githubkit/versions/ghec_v2022_11_28/types/group_0346.py index ab2294ac3..20cd92dc7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0346.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0346.py @@ -9,29 +9,46 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0137 import ReactionRollupType -class TimelineUnassignedIssueEventType(TypedDict): - """Timeline Unassigned Issue Event +class TimelineCommentEventType(TypedDict): + """Timeline Comment Event - Timeline Unassigned Issue Event + Timeline Comment Event """ + event: Literal["commented"] + actor: SimpleUserType id: int node_id: str url: str - actor: SimpleUserType - event: Literal["unassigned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType - - -__all__ = ("TimelineUnassignedIssueEventType",) + body: NotRequired[str] + body_text: NotRequired[str] + body_html: NotRequired[str] + html_url: str + user: SimpleUserType + created_at: datetime + updated_at: datetime + issue_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("TimelineCommentEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0347.py b/githubkit/versions/ghec_v2022_11_28/types/group_0347.py index acc66ebcf..15599eacb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0347.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0347.py @@ -9,29 +9,25 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0348 import TimelineCrossReferencedEventPropSourceType -class StateChangeIssueEventType(TypedDict): - """State Change Issue Event +class TimelineCrossReferencedEventType(TypedDict): + """Timeline Cross Referenced Event - State Change Issue Event + Timeline Cross Referenced Event """ - id: int - node_id: str - url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - state_reason: NotRequired[Union[str, None]] + event: Literal["cross-referenced"] + actor: NotRequired[SimpleUserType] + created_at: datetime + updated_at: datetime + source: TimelineCrossReferencedEventPropSourceType -__all__ = ("StateChangeIssueEventType",) +__all__ = ("TimelineCrossReferencedEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0348.py b/githubkit/versions/ghec_v2022_11_28/types/group_0348.py index b320cbbd3..bf22acf82 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0348.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0348.py @@ -9,26 +9,16 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0138 import IssueType -class DeployKeyType(TypedDict): - """Deploy Key - An SSH key granting access to a single repository. - """ +class TimelineCrossReferencedEventPropSourceType(TypedDict): + """TimelineCrossReferencedEventPropSource""" - id: int - key: str - url: str - title: str - verified: bool - created_at: str - read_only: bool - added_by: NotRequired[Union[str, None]] - last_used: NotRequired[Union[str, None]] - enabled: NotRequired[bool] + type: NotRequired[str] + issue: NotRequired[IssueType] -__all__ = ("DeployKeyType",) +__all__ = ("TimelineCrossReferencedEventPropSourceType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0349.py b/githubkit/versions/ghec_v2022_11_28/types/group_0349.py index bc5f5cd8b..11c95229f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0349.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0349.py @@ -9,14 +9,82 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -LanguageType: TypeAlias = dict[str, Any] -"""Language -Language -""" +class TimelineCommittedEventType(TypedDict): + """Timeline Committed Event + + Timeline Committed Event + """ + + event: NotRequired[Literal["committed"]] + sha: str + node_id: str + url: str + author: TimelineCommittedEventPropAuthorType + committer: TimelineCommittedEventPropCommitterType + message: str + tree: TimelineCommittedEventPropTreeType + parents: list[TimelineCommittedEventPropParentsItemsType] + verification: TimelineCommittedEventPropVerificationType + html_url: str + + +class TimelineCommittedEventPropAuthorType(TypedDict): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class TimelineCommittedEventPropCommitterType(TypedDict): + """TimelineCommittedEventPropCommitter + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class TimelineCommittedEventPropTreeType(TypedDict): + """TimelineCommittedEventPropTree""" + + sha: str + url: str + + +class TimelineCommittedEventPropParentsItemsType(TypedDict): + """TimelineCommittedEventPropParentsItems""" + + sha: str + url: str + html_url: str + + +class TimelineCommittedEventPropVerificationType(TypedDict): + """TimelineCommittedEventPropVerification""" + + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] + verified_at: Union[str, None] -__all__ = ("LanguageType",) +__all__ = ( + "TimelineCommittedEventPropAuthorType", + "TimelineCommittedEventPropCommitterType", + "TimelineCommittedEventPropParentsItemsType", + "TimelineCommittedEventPropTreeType", + "TimelineCommittedEventPropVerificationType", + "TimelineCommittedEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0350.py b/githubkit/versions/ghec_v2022_11_28/types/group_0350.py index 086621507..19ca5be38 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0350.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0350.py @@ -9,42 +9,66 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0018 import LicenseSimpleType +from .group_0003 import SimpleUserType -class LicenseContentType(TypedDict): - """License Content +class TimelineReviewedEventType(TypedDict): + """Timeline Reviewed Event - License Content + Timeline Reviewed Event """ - name: str - path: str - sha: str - size: int - url: str - html_url: Union[str, None] - git_url: Union[str, None] - download_url: Union[str, None] - type: str - content: str - encoding: str - links: LicenseContentPropLinksType - license_: Union[None, LicenseSimpleType] + event: Literal["reviewed"] + id: int + node_id: str + user: SimpleUserType + body: Union[str, None] + state: str + html_url: str + pull_request_url: str + links: TimelineReviewedEventPropLinksType + submitted_at: NotRequired[datetime] + commit_id: str + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] -class LicenseContentPropLinksType(TypedDict): - """LicenseContentPropLinks""" +class TimelineReviewedEventPropLinksType(TypedDict): + """TimelineReviewedEventPropLinks""" - git: Union[str, None] - html: Union[str, None] - self_: str + html: TimelineReviewedEventPropLinksPropHtmlType + pull_request: TimelineReviewedEventPropLinksPropPullRequestType + + +class TimelineReviewedEventPropLinksPropHtmlType(TypedDict): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str + + +class TimelineReviewedEventPropLinksPropPullRequestType(TypedDict): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str __all__ = ( - "LicenseContentPropLinksType", - "LicenseContentType", + "TimelineReviewedEventPropLinksPropHtmlType", + "TimelineReviewedEventPropLinksPropPullRequestType", + "TimelineReviewedEventPropLinksType", + "TimelineReviewedEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0351.py b/githubkit/versions/ghec_v2022_11_28/types/group_0351.py index ef4f49c12..87f0af187 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0351.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0351.py @@ -9,19 +9,103 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0137 import ReactionRollupType -class MergedUpstreamType(TypedDict): - """Merged upstream - Results of a successful merge upstream request +class PullRequestReviewCommentType(TypedDict): + """Pull Request Review Comment + + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. + """ + + url: str + pull_request_review_id: Union[int, None] + id: int + node_id: str + diff_hunk: str + path: str + position: NotRequired[int] + original_position: NotRequired[int] + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: SimpleUserType + body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: PullRequestReviewCommentPropLinksType + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + reactions: NotRequired[ReactionRollupType] + body_html: NotRequired[str] + body_text: NotRequired[str] + + +class PullRequestReviewCommentPropLinksType(TypedDict): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelfType + html: PullRequestReviewCommentPropLinksPropHtmlType + pull_request: PullRequestReviewCommentPropLinksPropPullRequestType + + +class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str + + +class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str + + +class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str + + +class TimelineLineCommentedEventType(TypedDict): + """Timeline Line Commented Event + + Timeline Line Commented Event """ - message: NotRequired[str] - merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] - base_branch: NotRequired[str] + event: NotRequired[Literal["line_commented"]] + node_id: NotRequired[str] + comments: NotRequired[list[PullRequestReviewCommentType]] -__all__ = ("MergedUpstreamType",) +__all__ = ( + "PullRequestReviewCommentPropLinksPropHtmlType", + "PullRequestReviewCommentPropLinksPropPullRequestType", + "PullRequestReviewCommentPropLinksPropSelfType", + "PullRequestReviewCommentPropLinksType", + "PullRequestReviewCommentType", + "TimelineLineCommentedEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0352.py b/githubkit/versions/ghec_v2022_11_28/types/group_0352.py index 121c3bad8..3baa7987b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0352.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0352.py @@ -9,64 +9,29 @@ from __future__ import annotations -from datetime import date, datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class PageType(TypedDict): - """GitHub Pages - The configuration for GitHub Pages for a repository. +class TimelineAssignedIssueEventType(TypedDict): + """Timeline Assigned Issue Event + + Timeline Assigned Issue Event """ + id: int + node_id: str url: str - status: Union[None, Literal["built", "building", "errored"]] - cname: Union[str, None] - protected_domain_state: NotRequired[ - Union[None, Literal["pending", "verified", "unverified"]] - ] - pending_domain_unverified_at: NotRequired[Union[datetime, None]] - custom_404: bool - html_url: NotRequired[str] - build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] - source: NotRequired[PagesSourceHashType] - public: bool - https_certificate: NotRequired[PagesHttpsCertificateType] - https_enforced: NotRequired[bool] - - -class PagesSourceHashType(TypedDict): - """Pages Source Hash""" - - branch: str - path: str - - -class PagesHttpsCertificateType(TypedDict): - """Pages Https Certificate""" - - state: Literal[ - "new", - "authorization_created", - "authorization_pending", - "authorized", - "authorization_revoked", - "issued", - "uploaded", - "approved", - "errored", - "bad_authz", - "destroy_pending", - "dns_changed", - ] - description: str - domains: list[str] - expires_at: NotRequired[date] + actor: SimpleUserType + event: Literal["assigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -__all__ = ( - "PageType", - "PagesHttpsCertificateType", - "PagesSourceHashType", -) +__all__ = ("TimelineAssignedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0353.py b/githubkit/versions/ghec_v2022_11_28/types/group_0353.py index 77b6d934e..7d37c3f07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0353.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0353.py @@ -9,36 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class PageBuildType(TypedDict): - """Page Build +class TimelineUnassignedIssueEventType(TypedDict): + """Timeline Unassigned Issue Event - Page Build + Timeline Unassigned Issue Event """ + id: int + node_id: str url: str - status: str - error: PageBuildPropErrorType - pusher: Union[None, SimpleUserType] - commit: str - duration: int - created_at: datetime - updated_at: datetime + actor: SimpleUserType + event: Literal["unassigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -class PageBuildPropErrorType(TypedDict): - """PageBuildPropError""" - - message: Union[str, None] - - -__all__ = ( - "PageBuildPropErrorType", - "PageBuildType", -) +__all__ = ("TimelineUnassignedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0354.py b/githubkit/versions/ghec_v2022_11_28/types/group_0354.py index d7001e4a1..4978c8454 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0354.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0354.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class PageBuildStatusType(TypedDict): - """Page Build Status - Page Build Status +class StateChangeIssueEventType(TypedDict): + """State Change Issue Event + + State Change Issue Event """ + id: int + node_id: str url: str - status: str + actor: SimpleUserType + event: str + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + state_reason: NotRequired[Union[str, None]] -__all__ = ("PageBuildStatusType",) +__all__ = ("StateChangeIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0355.py b/githubkit/versions/ghec_v2022_11_28/types/group_0355.py index d3e0b1eca..b320cbbd3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0355.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0355.py @@ -13,16 +13,22 @@ from typing_extensions import NotRequired, TypedDict -class PageDeploymentType(TypedDict): - """GitHub Pages +class DeployKeyType(TypedDict): + """Deploy Key - The GitHub Pages deployment status. + An SSH key granting access to a single repository. """ - id: Union[int, str] - status_url: str - page_url: str - preview_url: NotRequired[str] + id: int + key: str + url: str + title: str + verified: bool + created_at: str + read_only: bool + added_by: NotRequired[Union[str, None]] + last_used: NotRequired[Union[str, None]] + enabled: NotRequired[bool] -__all__ = ("PageDeploymentType",) +__all__ = ("DeployKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0356.py b/githubkit/versions/ghec_v2022_11_28/types/group_0356.py index 2bf2ddbc1..bc5f5cd8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0356.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0356.py @@ -9,28 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict - - -class PagesDeploymentStatusType(TypedDict): - """GitHub Pages deployment status""" - - status: NotRequired[ - Literal[ - "deployment_in_progress", - "syncing_files", - "finished_file_sync", - "updating_pages", - "purging_cdn", - "deployment_cancelled", - "deployment_failed", - "deployment_content_failed", - "deployment_attempt_error", - "deployment_lost", - "succeed", - ] - ] - - -__all__ = ("PagesDeploymentStatusType",) +from typing import Any +from typing_extensions import TypeAlias + +LanguageType: TypeAlias = dict[str, Any] +"""Language + +Language +""" + + +__all__ = ("LanguageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0357.py b/githubkit/versions/ghec_v2022_11_28/types/group_0357.py index 5546e6ba9..2913097c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0357.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0357.py @@ -10,87 +10,41 @@ from __future__ import annotations from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0019 import LicenseSimpleType -class PagesHealthCheckType(TypedDict): - """Pages Health Check Status - Pages Health Check Status - """ - - domain: NotRequired[PagesHealthCheckPropDomainType] - alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] +class LicenseContentType(TypedDict): + """License Content + License Content + """ -class PagesHealthCheckPropDomainType(TypedDict): - """PagesHealthCheckPropDomain""" - - host: NotRequired[str] - uri: NotRequired[str] - nameservers: NotRequired[str] - dns_resolves: NotRequired[bool] - is_proxied: NotRequired[Union[bool, None]] - is_cloudflare_ip: NotRequired[Union[bool, None]] - is_fastly_ip: NotRequired[Union[bool, None]] - is_old_ip_address: NotRequired[Union[bool, None]] - is_a_record: NotRequired[Union[bool, None]] - has_cname_record: NotRequired[Union[bool, None]] - has_mx_records_present: NotRequired[Union[bool, None]] - is_valid_domain: NotRequired[bool] - is_apex_domain: NotRequired[bool] - should_be_a_record: NotRequired[Union[bool, None]] - is_cname_to_github_user_domain: NotRequired[Union[bool, None]] - is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] - is_cname_to_fastly: NotRequired[Union[bool, None]] - is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] - is_non_github_pages_ip_present: NotRequired[Union[bool, None]] - is_pages_domain: NotRequired[bool] - is_served_by_pages: NotRequired[Union[bool, None]] - is_valid: NotRequired[bool] - reason: NotRequired[Union[str, None]] - responds_to_https: NotRequired[bool] - enforces_https: NotRequired[bool] - https_error: NotRequired[Union[str, None]] - is_https_eligible: NotRequired[Union[bool, None]] - caa_error: NotRequired[Union[str, None]] + name: str + path: str + sha: str + size: int + url: str + html_url: Union[str, None] + git_url: Union[str, None] + download_url: Union[str, None] + type: str + content: str + encoding: str + links: LicenseContentPropLinksType + license_: Union[None, LicenseSimpleType] -class PagesHealthCheckPropAltDomainType(TypedDict): - """PagesHealthCheckPropAltDomain""" +class LicenseContentPropLinksType(TypedDict): + """LicenseContentPropLinks""" - host: NotRequired[str] - uri: NotRequired[str] - nameservers: NotRequired[str] - dns_resolves: NotRequired[bool] - is_proxied: NotRequired[Union[bool, None]] - is_cloudflare_ip: NotRequired[Union[bool, None]] - is_fastly_ip: NotRequired[Union[bool, None]] - is_old_ip_address: NotRequired[Union[bool, None]] - is_a_record: NotRequired[Union[bool, None]] - has_cname_record: NotRequired[Union[bool, None]] - has_mx_records_present: NotRequired[Union[bool, None]] - is_valid_domain: NotRequired[bool] - is_apex_domain: NotRequired[bool] - should_be_a_record: NotRequired[Union[bool, None]] - is_cname_to_github_user_domain: NotRequired[Union[bool, None]] - is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] - is_cname_to_fastly: NotRequired[Union[bool, None]] - is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] - is_non_github_pages_ip_present: NotRequired[Union[bool, None]] - is_pages_domain: NotRequired[bool] - is_served_by_pages: NotRequired[Union[bool, None]] - is_valid: NotRequired[bool] - reason: NotRequired[Union[str, None]] - responds_to_https: NotRequired[bool] - enforces_https: NotRequired[bool] - https_error: NotRequired[Union[str, None]] - is_https_eligible: NotRequired[Union[bool, None]] - caa_error: NotRequired[Union[str, None]] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "PagesHealthCheckPropAltDomainType", - "PagesHealthCheckPropDomainType", - "PagesHealthCheckType", + "LicenseContentPropLinksType", + "LicenseContentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0358.py b/githubkit/versions/ghec_v2022_11_28/types/group_0358.py index 40c7d03cd..ef4f49c12 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0358.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0358.py @@ -9,85 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0059 import TeamSimpleType -from .group_0129 import MilestoneType -from .group_0279 import AutoMergeType -from .group_0359 import PullRequestPropLabelsItemsType -from .group_0360 import PullRequestPropBaseType, PullRequestPropHeadType -from .group_0361 import PullRequestPropLinksType +class MergedUpstreamType(TypedDict): + """Merged upstream -class PullRequestType(TypedDict): - """Pull Request - - Pull requests let you tell others about changes you've pushed to a repository on - GitHub. Once a pull request is sent, interested parties can review the set of - changes, discuss potential modifications, and even push follow-up commits if - necessary. + Results of a successful merge upstream request """ - url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: list[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] - requested_teams: NotRequired[Union[list[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int + message: NotRequired[str] + merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] + base_branch: NotRequired[str] -__all__ = ("PullRequestType",) +__all__ = ("MergedUpstreamType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0359.py b/githubkit/versions/ghec_v2022_11_28/types/group_0359.py index 8c969ec82..121c3bad8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0359.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0359.py @@ -9,20 +9,64 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import date, datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class PullRequestPropLabelsItemsType(TypedDict): - """PullRequestPropLabelsItems""" +class PageType(TypedDict): + """GitHub Pages + + The configuration for GitHub Pages for a repository. + """ - id: int - node_id: str url: str - name: str - description: Union[str, None] - color: str - default: bool + status: Union[None, Literal["built", "building", "errored"]] + cname: Union[str, None] + protected_domain_state: NotRequired[ + Union[None, Literal["pending", "verified", "unverified"]] + ] + pending_domain_unverified_at: NotRequired[Union[datetime, None]] + custom_404: bool + html_url: NotRequired[str] + build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] + source: NotRequired[PagesSourceHashType] + public: bool + https_certificate: NotRequired[PagesHttpsCertificateType] + https_enforced: NotRequired[bool] + + +class PagesSourceHashType(TypedDict): + """Pages Source Hash""" + + branch: str + path: str + + +class PagesHttpsCertificateType(TypedDict): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", + ] + description: str + domains: list[str] + expires_at: NotRequired[date] -__all__ = ("PullRequestPropLabelsItemsType",) +__all__ = ( + "PageType", + "PagesHttpsCertificateType", + "PagesSourceHashType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0360.py b/githubkit/versions/ghec_v2022_11_28/types/group_0360.py index ba73c4910..83899a24e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0360.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0360.py @@ -9,34 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType +from .group_0003 import SimpleUserType -class PullRequestPropHeadType(TypedDict): - """PullRequestPropHead""" +class PageBuildType(TypedDict): + """Page Build - label: Union[str, None] - ref: str - repo: RepositoryType - sha: str - user: SimpleUserType + Page Build + """ + url: str + status: str + error: PageBuildPropErrorType + pusher: Union[None, SimpleUserType] + commit: str + duration: int + created_at: datetime + updated_at: datetime -class PullRequestPropBaseType(TypedDict): - """PullRequestPropBase""" - label: str - ref: str - repo: RepositoryType - sha: str - user: SimpleUserType +class PageBuildPropErrorType(TypedDict): + """PageBuildPropError""" + + message: Union[str, None] __all__ = ( - "PullRequestPropBaseType", - "PullRequestPropHeadType", + "PageBuildPropErrorType", + "PageBuildType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0361.py b/githubkit/versions/ghec_v2022_11_28/types/group_0361.py index 00d7f20ae..d7001e4a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0361.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0361.py @@ -11,20 +11,15 @@ from typing_extensions import TypedDict -from .group_0278 import LinkType +class PageBuildStatusType(TypedDict): + """Page Build Status -class PullRequestPropLinksType(TypedDict): - """PullRequestPropLinks""" + Page Build Status + """ - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + url: str + status: str -__all__ = ("PullRequestPropLinksType",) +__all__ = ("PageBuildStatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0362.py b/githubkit/versions/ghec_v2022_11_28/types/group_0362.py index 211278b38..d3e0b1eca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0362.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0362.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class PullRequestMergeResultType(TypedDict): - """Pull Request Merge Result +class PageDeploymentType(TypedDict): + """GitHub Pages - Pull Request Merge Result + The GitHub Pages deployment status. """ - sha: str - merged: bool - message: str + id: Union[int, str] + status_url: str + page_url: str + preview_url: NotRequired[str] -__all__ = ("PullRequestMergeResultType",) +__all__ = ("PageDeploymentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0363.py b/githubkit/versions/ghec_v2022_11_28/types/group_0363.py index de58daaa8..2bf2ddbc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0363.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0363.py @@ -9,20 +9,28 @@ from __future__ import annotations -from typing_extensions import TypedDict - -from .group_0002 import SimpleUserType -from .group_0060 import TeamType - - -class PullRequestReviewRequestType(TypedDict): - """Pull Request Review Request - - Pull Request Review Request - """ - - users: list[SimpleUserType] - teams: list[TeamType] - - -__all__ = ("PullRequestReviewRequestType",) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class PagesDeploymentStatusType(TypedDict): + """GitHub Pages deployment status""" + + status: NotRequired[ + Literal[ + "deployment_in_progress", + "syncing_files", + "finished_file_sync", + "updating_pages", + "purging_cdn", + "deployment_cancelled", + "deployment_failed", + "deployment_content_failed", + "deployment_attempt_error", + "deployment_lost", + "succeed", + ] + ] + + +__all__ = ("PagesDeploymentStatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0364.py b/githubkit/versions/ghec_v2022_11_28/types/group_0364.py index c59faa72b..5546e6ba9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0364.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0364.py @@ -9,65 +9,88 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class PagesHealthCheckType(TypedDict): + """Pages Health Check Status -class PullRequestReviewType(TypedDict): - """Pull Request Review - - Pull Request Reviews are reviews on pull requests. + Pages Health Check Status """ - id: int - node_id: str - user: Union[None, SimpleUserType] - body: str - state: str - html_url: str - pull_request_url: str - links: PullRequestReviewPropLinksType - submitted_at: NotRequired[datetime] - commit_id: Union[str, None] - body_html: NotRequired[str] - body_text: NotRequired[str] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - - -class PullRequestReviewPropLinksType(TypedDict): - """PullRequestReviewPropLinks""" - - html: PullRequestReviewPropLinksPropHtmlType - pull_request: PullRequestReviewPropLinksPropPullRequestType - - -class PullRequestReviewPropLinksPropHtmlType(TypedDict): - """PullRequestReviewPropLinksPropHtml""" - - href: str - - -class PullRequestReviewPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewPropLinksPropPullRequest""" - - href: str + domain: NotRequired[PagesHealthCheckPropDomainType] + alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] + + +class PagesHealthCheckPropDomainType(TypedDict): + """PagesHealthCheckPropDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +class PagesHealthCheckPropAltDomainType(TypedDict): + """PagesHealthCheckPropAltDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] __all__ = ( - "PullRequestReviewPropLinksPropHtmlType", - "PullRequestReviewPropLinksPropPullRequestType", - "PullRequestReviewPropLinksType", - "PullRequestReviewType", + "PagesHealthCheckPropAltDomainType", + "PagesHealthCheckPropDomainType", + "PagesHealthCheckType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0365.py b/githubkit/versions/ghec_v2022_11_28/types/group_0365.py index 65a3d535f..4d80c4f45 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0365.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0365.py @@ -13,34 +13,57 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0130 import ReactionRollupType -from .group_0366 import ReviewCommentPropLinksType +from .group_0003 import SimpleUserType +from .group_0064 import TeamSimpleType +from .group_0136 import MilestoneType +from .group_0286 import AutoMergeType +from .group_0366 import PullRequestPropLabelsItemsType +from .group_0367 import PullRequestPropBaseType, PullRequestPropHeadType +from .group_0368 import PullRequestPropLinksType -class ReviewCommentType(TypedDict): - """Legacy Review Comment +class PullRequestType(TypedDict): + """Pull Request - Legacy Review Comment + Pull requests let you tell others about changes you've pushed to a repository on + GitHub. Once a pull request is sent, interested parties can review the set of + changes, discuss potential modifications, and even push follow-up commits if + necessary. """ url: str - pull_request_review_id: Union[int, None] id: int node_id: str - diff_hunk: str - path: str - position: Union[int, None] - original_position: int - commit_id: str - original_commit_id: str - in_reply_to_id: NotRequired[int] - user: Union[None, SimpleUserType] - body: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: list[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] created_at: datetime updated_at: datetime - html_url: str - pull_request_url: str + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -51,16 +74,20 @@ class ReviewCommentType(TypedDict): "NONE", "OWNER", ] - links: ReviewCommentPropLinksType - body_text: NotRequired[str] - body_html: NotRequired[str] - reactions: NotRequired[ReactionRollupType] - side: NotRequired[Literal["LEFT", "RIGHT"]] - start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] - line: NotRequired[int] - original_line: NotRequired[int] - start_line: NotRequired[Union[int, None]] - original_start_line: NotRequired[Union[int, None]] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int -__all__ = ("ReviewCommentType",) +__all__ = ("PullRequestType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0366.py b/githubkit/versions/ghec_v2022_11_28/types/group_0366.py index 146206731..8c969ec82 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0366.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0366.py @@ -9,17 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -from .group_0278 import LinkType +class PullRequestPropLabelsItemsType(TypedDict): + """PullRequestPropLabelsItems""" -class ReviewCommentPropLinksType(TypedDict): - """ReviewCommentPropLinks""" + id: int + node_id: str + url: str + name: str + description: Union[str, None] + color: str + default: bool - self_: LinkType - html: LinkType - pull_request: LinkType - -__all__ = ("ReviewCommentPropLinksType",) +__all__ = ("PullRequestPropLabelsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0367.py b/githubkit/versions/ghec_v2022_11_28/types/group_0367.py index 6a0e02975..60d27727c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0367.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0367.py @@ -9,32 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class ReleaseAssetType(TypedDict): - """Release Asset +class PullRequestPropHeadType(TypedDict): + """PullRequestPropHead""" - Data related to a release. - """ - - url: str - browser_download_url: str - id: int - node_id: str - name: str label: Union[str, None] - state: Literal["uploaded", "open"] - content_type: str - size: int - download_count: int - created_at: datetime - updated_at: datetime - uploader: Union[None, SimpleUserType] + ref: str + repo: RepositoryType + sha: str + user: SimpleUserType + + +class PullRequestPropBaseType(TypedDict): + """PullRequestPropBase""" + + label: str + ref: str + repo: RepositoryType + sha: str + user: SimpleUserType -__all__ = ("ReleaseAssetType",) +__all__ = ( + "PullRequestPropBaseType", + "PullRequestPropHeadType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0368.py b/githubkit/versions/ghec_v2022_11_28/types/group_0368.py index 723e6fa3f..aefb1b546 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0368.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0368.py @@ -9,44 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict - -from .group_0002 import SimpleUserType -from .group_0130 import ReactionRollupType -from .group_0367 import ReleaseAssetType - - -class ReleaseType(TypedDict): - """Release - - A release. - """ - - url: str - html_url: str - assets_url: str - upload_url: str - tarball_url: Union[str, None] - zipball_url: Union[str, None] - id: int - node_id: str - tag_name: str - target_commitish: str - name: Union[str, None] - body: NotRequired[Union[str, None]] - draft: bool - prerelease: bool - created_at: datetime - published_at: Union[datetime, None] - author: SimpleUserType - assets: list[ReleaseAssetType] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - mentions_count: NotRequired[int] - discussion_url: NotRequired[str] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("ReleaseType",) +from typing_extensions import TypedDict + +from .group_0285 import LinkType + + +class PullRequestPropLinksType(TypedDict): + """PullRequestPropLinks""" + + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType + + +__all__ = ("PullRequestPropLinksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0369.py b/githubkit/versions/ghec_v2022_11_28/types/group_0369.py index 8cbfbc707..211278b38 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0369.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0369.py @@ -12,14 +12,15 @@ from typing_extensions import TypedDict -class ReleaseNotesContentType(TypedDict): - """Generated Release Notes Content +class PullRequestMergeResultType(TypedDict): + """Pull Request Merge Result - Generated name and body describing a release + Pull Request Merge Result """ - name: str - body: str + sha: str + merged: bool + message: str -__all__ = ("ReleaseNotesContentType",) +__all__ = ("PullRequestMergeResultType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0370.py b/githubkit/versions/ghec_v2022_11_28/types/group_0370.py index a7e58a24b..079d7ce2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0370.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0370.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType +from .group_0065 import TeamType -class RepositoryRuleRulesetInfoType(TypedDict): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. +class PullRequestReviewRequestType(TypedDict): + """Pull Request Review Request + + Pull Request Review Request """ - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + users: list[SimpleUserType] + teams: list[TeamType] -__all__ = ("RepositoryRuleRulesetInfoType",) +__all__ = ("PullRequestReviewRequestType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0371.py b/githubkit/versions/ghec_v2022_11_28/types/group_0371.py index 0f564cd7d..d7cb39fb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0371.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0371.py @@ -9,17 +9,65 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class RepositoryRuleDetailedOneof0Type(TypedDict): - """RepositoryRuleDetailedOneof0""" - type: Literal["creation"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] +class PullRequestReviewType(TypedDict): + """Pull Request Review + Pull Request Reviews are reviews on pull requests. + """ -__all__ = ("RepositoryRuleDetailedOneof0Type",) + id: int + node_id: str + user: Union[None, SimpleUserType] + body: str + state: str + html_url: str + pull_request_url: str + links: PullRequestReviewPropLinksType + submitted_at: NotRequired[datetime] + commit_id: Union[str, None] + body_html: NotRequired[str] + body_text: NotRequired[str] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + + +class PullRequestReviewPropLinksType(TypedDict): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtmlType + pull_request: PullRequestReviewPropLinksPropPullRequestType + + +class PullRequestReviewPropLinksPropHtmlType(TypedDict): + """PullRequestReviewPropLinksPropHtml""" + + href: str + + +class PullRequestReviewPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str + + +__all__ = ( + "PullRequestReviewPropLinksPropHtmlType", + "PullRequestReviewPropLinksPropPullRequestType", + "PullRequestReviewPropLinksType", + "PullRequestReviewType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0372.py b/githubkit/versions/ghec_v2022_11_28/types/group_0372.py index 268f399c2..dde485f63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0372.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0372.py @@ -9,20 +9,58 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0089 import RepositoryRuleUpdatePropParametersType +from .group_0003 import SimpleUserType +from .group_0137 import ReactionRollupType +from .group_0373 import ReviewCommentPropLinksType -class RepositoryRuleDetailedOneof1Type(TypedDict): - """RepositoryRuleDetailedOneof1""" +class ReviewCommentType(TypedDict): + """Legacy Review Comment - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + Legacy Review Comment + """ + url: str + pull_request_review_id: Union[int, None] + id: int + node_id: str + diff_hunk: str + path: str + position: Union[int, None] + original_position: int + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: Union[None, SimpleUserType] + body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: ReviewCommentPropLinksType + body_text: NotRequired[str] + body_html: NotRequired[str] + reactions: NotRequired[ReactionRollupType] + side: NotRequired[Literal["LEFT", "RIGHT"]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] -__all__ = ("RepositoryRuleDetailedOneof1Type",) + +__all__ = ("ReviewCommentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0373.py b/githubkit/versions/ghec_v2022_11_28/types/group_0373.py index 273dd677c..1373d4357 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0373.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0373.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0285 import LinkType -class RepositoryRuleDetailedOneof2Type(TypedDict): - """RepositoryRuleDetailedOneof2""" - type: Literal["deletion"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] +class ReviewCommentPropLinksType(TypedDict): + """ReviewCommentPropLinks""" + self_: LinkType + html: LinkType + pull_request: LinkType -__all__ = ("RepositoryRuleDetailedOneof2Type",) + +__all__ = ("ReviewCommentPropLinksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0374.py b/githubkit/versions/ghec_v2022_11_28/types/group_0374.py index 8886199f4..133f124c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0374.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0374.py @@ -9,17 +9,32 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class RepositoryRuleDetailedOneof3Type(TypedDict): - """RepositoryRuleDetailedOneof3""" - type: Literal["required_linear_history"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] +class ReleaseAssetType(TypedDict): + """Release Asset + Data related to a release. + """ -__all__ = ("RepositoryRuleDetailedOneof3Type",) + url: str + browser_download_url: str + id: int + node_id: str + name: str + label: Union[str, None] + state: Literal["uploaded", "open"] + content_type: str + size: int + download_count: int + created_at: datetime + updated_at: datetime + uploader: Union[None, SimpleUserType] + + +__all__ = ("ReleaseAssetType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0375.py b/githubkit/versions/ghec_v2022_11_28/types/group_0375.py index 960e082f3..b311d5445 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0375.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0375.py @@ -9,20 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0092 import RepositoryRuleMergeQueuePropParametersType - - -class RepositoryRuleDetailedOneof4Type(TypedDict): - """RepositoryRuleDetailedOneof4""" - - type: Literal["merge_queue"] - parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] - - -__all__ = ("RepositoryRuleDetailedOneof4Type",) +from .group_0003 import SimpleUserType +from .group_0137 import ReactionRollupType +from .group_0374 import ReleaseAssetType + + +class ReleaseType(TypedDict): + """Release + + A release. + """ + + url: str + html_url: str + assets_url: str + upload_url: str + tarball_url: Union[str, None] + zipball_url: Union[str, None] + id: int + node_id: str + tag_name: str + target_commitish: str + name: Union[str, None] + body: NotRequired[Union[str, None]] + draft: bool + prerelease: bool + created_at: datetime + published_at: Union[datetime, None] + author: SimpleUserType + assets: list[ReleaseAssetType] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + mentions_count: NotRequired[int] + discussion_url: NotRequired[str] + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("ReleaseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0376.py b/githubkit/versions/ghec_v2022_11_28/types/group_0376.py index 183194e24..8cbfbc707 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0376.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0376.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0094 import RepositoryRuleRequiredDeploymentsPropParametersType +class ReleaseNotesContentType(TypedDict): + """Generated Release Notes Content -class RepositoryRuleDetailedOneof5Type(TypedDict): - """RepositoryRuleDetailedOneof5""" + Generated name and body describing a release + """ - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + name: str + body: str -__all__ = ("RepositoryRuleDetailedOneof5Type",) +__all__ = ("ReleaseNotesContentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0377.py b/githubkit/versions/ghec_v2022_11_28/types/group_0377.py index c30b2990f..a7e58a24b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0377.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0377.py @@ -13,13 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleDetailedOneof6Type(TypedDict): - """RepositoryRuleDetailedOneof6""" +class RepositoryRuleRulesetInfoType(TypedDict): + """repository ruleset data for rule + + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["required_signatures"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof6Type",) +__all__ = ("RepositoryRuleRulesetInfoType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0378.py b/githubkit/versions/ghec_v2022_11_28/types/group_0378.py index b08738890..0f564cd7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0378.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0378.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0097 import RepositoryRulePullRequestPropParametersType +class RepositoryRuleDetailedOneof0Type(TypedDict): + """RepositoryRuleDetailedOneof0""" -class RepositoryRuleDetailedOneof7Type(TypedDict): - """RepositoryRuleDetailedOneof7""" - - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + type: Literal["creation"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof7Type",) +__all__ = ("RepositoryRuleDetailedOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0379.py b/githubkit/versions/ghec_v2022_11_28/types/group_0379.py index 42205885d..e847e866b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0379.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0379.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0099 import RepositoryRuleRequiredStatusChecksPropParametersType +from .group_0096 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleDetailedOneof8Type(TypedDict): - """RepositoryRuleDetailedOneof8""" +class RepositoryRuleDetailedOneof1Type(TypedDict): + """RepositoryRuleDetailedOneof1""" - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof8Type",) +__all__ = ("RepositoryRuleDetailedOneof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0380.py b/githubkit/versions/ghec_v2022_11_28/types/group_0380.py index d5be14715..273dd677c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0380.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0380.py @@ -13,13 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleDetailedOneof9Type(TypedDict): - """RepositoryRuleDetailedOneof9""" +class RepositoryRuleDetailedOneof2Type(TypedDict): + """RepositoryRuleDetailedOneof2""" - type: Literal["non_fast_forward"] + type: Literal["deletion"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof9Type",) +__all__ = ("RepositoryRuleDetailedOneof2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0381.py b/githubkit/versions/ghec_v2022_11_28/types/group_0381.py index 0db940cad..8886199f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0381.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0381.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0101 import RepositoryRuleCommitMessagePatternPropParametersType +class RepositoryRuleDetailedOneof3Type(TypedDict): + """RepositoryRuleDetailedOneof3""" -class RepositoryRuleDetailedOneof10Type(TypedDict): - """RepositoryRuleDetailedOneof10""" - - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + type: Literal["required_linear_history"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof10Type",) +__all__ = ("RepositoryRuleDetailedOneof3Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0382.py b/githubkit/versions/ghec_v2022_11_28/types/group_0382.py index c256c698d..06873056f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0382.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0382.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0103 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +from .group_0099 import RepositoryRuleMergeQueuePropParametersType -class RepositoryRuleDetailedOneof11Type(TypedDict): - """RepositoryRuleDetailedOneof11""" +class RepositoryRuleDetailedOneof4Type(TypedDict): + """RepositoryRuleDetailedOneof4""" - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + type: Literal["merge_queue"] + parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof11Type",) +__all__ = ("RepositoryRuleDetailedOneof4Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0383.py b/githubkit/versions/ghec_v2022_11_28/types/group_0383.py index 921f29883..400095950 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0383.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0383.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0105 import RepositoryRuleCommitterEmailPatternPropParametersType +from .group_0101 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleDetailedOneof12Type(TypedDict): - """RepositoryRuleDetailedOneof12""" +class RepositoryRuleDetailedOneof5Type(TypedDict): + """RepositoryRuleDetailedOneof5""" - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof12Type",) +__all__ = ("RepositoryRuleDetailedOneof5Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0384.py b/githubkit/versions/ghec_v2022_11_28/types/group_0384.py index 14beb19fa..c30b2990f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0384.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0384.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0107 import RepositoryRuleBranchNamePatternPropParametersType +class RepositoryRuleDetailedOneof6Type(TypedDict): + """RepositoryRuleDetailedOneof6""" -class RepositoryRuleDetailedOneof13Type(TypedDict): - """RepositoryRuleDetailedOneof13""" - - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + type: Literal["required_signatures"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof13Type",) +__all__ = ("RepositoryRuleDetailedOneof6Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0385.py b/githubkit/versions/ghec_v2022_11_28/types/group_0385.py index 9cf613e4d..a2f33b389 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0385.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0385.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0109 import RepositoryRuleTagNamePatternPropParametersType +from .group_0104 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleDetailedOneof14Type(TypedDict): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof7Type(TypedDict): + """RepositoryRuleDetailedOneof7""" - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof14Type",) +__all__ = ("RepositoryRuleDetailedOneof7Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0386.py b/githubkit/versions/ghec_v2022_11_28/types/group_0386.py index 9b0fb191c..4b15bdd42 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0386.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0386.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0112 import RepositoryRuleWorkflowsPropParametersType +from .group_0106 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleDetailedOneof15Type(TypedDict): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof8Type(TypedDict): + """RepositoryRuleDetailedOneof8""" - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof15Type",) +__all__ = ("RepositoryRuleDetailedOneof8Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0387.py b/githubkit/versions/ghec_v2022_11_28/types/group_0387.py index a83d73111..d5be14715 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0387.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0387.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0114 import RepositoryRuleCodeScanningPropParametersType +class RepositoryRuleDetailedOneof9Type(TypedDict): + """RepositoryRuleDetailedOneof9""" -class RepositoryRuleDetailedOneof16Type(TypedDict): - """RepositoryRuleDetailedOneof16""" - - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + type: Literal["non_fast_forward"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof16Type",) +__all__ = ("RepositoryRuleDetailedOneof9Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0388.py b/githubkit/versions/ghec_v2022_11_28/types/group_0388.py index 42bafed9a..b8010c866 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0388.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0388.py @@ -9,42 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType - - -class SecretScanningAlertType(TypedDict): - """SecretScanningAlert""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - - -__all__ = ("SecretScanningAlertType",) +from .group_0108 import RepositoryRuleCommitMessagePatternPropParametersType + + +class RepositoryRuleDetailedOneof10Type(TypedDict): + """RepositoryRuleDetailedOneof10""" + + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] + + +__all__ = ("RepositoryRuleDetailedOneof10Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0389.py b/githubkit/versions/ghec_v2022_11_28/types/group_0389.py index a7d6503ef..c0b0e5ce6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0389.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0389.py @@ -9,17 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0110 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class SecretScanningPushProtectionBypassType(TypedDict): - """SecretScanningPushProtectionBypass""" - reason: NotRequired[Literal["false_positive", "used_in_tests", "will_fix_later"]] - expire_at: NotRequired[Union[datetime, None]] - token_type: NotRequired[str] +class RepositoryRuleDetailedOneof11Type(TypedDict): + """RepositoryRuleDetailedOneof11""" + type: Literal["commit_author_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -__all__ = ("SecretScanningPushProtectionBypassType",) + +__all__ = ("RepositoryRuleDetailedOneof11Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0390.py b/githubkit/versions/ghec_v2022_11_28/types/group_0390.py index c28f498af..4ce9b2d1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0390.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0390.py @@ -9,47 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0112 import RepositoryRuleCommitterEmailPatternPropParametersType -class SecretScanningScanHistoryType(TypedDict): - """SecretScanningScanHistory""" - incremental_scans: NotRequired[list[SecretScanningScanType]] - pattern_update_scans: NotRequired[list[SecretScanningScanType]] - backfill_scans: NotRequired[list[SecretScanningScanType]] - custom_pattern_backfill_scans: NotRequired[ - list[SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType] - ] +class RepositoryRuleDetailedOneof12Type(TypedDict): + """RepositoryRuleDetailedOneof12""" + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class SecretScanningScanType(TypedDict): - """SecretScanningScan - Information on a single scan performed by secret scanning on the repository - """ - - type: NotRequired[str] - status: NotRequired[str] - completed_at: NotRequired[Union[datetime, None]] - started_at: NotRequired[Union[datetime, None]] - - -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType(TypedDict): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - - type: NotRequired[str] - status: NotRequired[str] - completed_at: NotRequired[Union[datetime, None]] - started_at: NotRequired[Union[datetime, None]] - pattern_name: NotRequired[str] - pattern_scope: NotRequired[str] - - -__all__ = ( - "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", - "SecretScanningScanHistoryType", - "SecretScanningScanType", -) +__all__ = ("RepositoryRuleDetailedOneof12Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0391.py b/githubkit/versions/ghec_v2022_11_28/types/group_0391.py index 3fadc1994..f99231fcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0391.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0391.py @@ -9,14 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0114 import RepositoryRuleBranchNamePatternPropParametersType -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type(TypedDict): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - pattern_name: NotRequired[str] - pattern_scope: NotRequired[str] +class RepositoryRuleDetailedOneof13Type(TypedDict): + """RepositoryRuleDetailedOneof13""" + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type",) + +__all__ = ("RepositoryRuleDetailedOneof13Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0392.py b/githubkit/versions/ghec_v2022_11_28/types/group_0392.py index 3bd956c2f..3d93c1afc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0392.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0392.py @@ -9,80 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0116 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryAdvisoryCreateType(TypedDict): - """RepositoryAdvisoryCreate""" - summary: str - description: str - cve_id: NotRequired[Union[str, None]] - vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] - cwe_ids: NotRequired[Union[list[str], None]] - credits_: NotRequired[ - Union[list[RepositoryAdvisoryCreatePropCreditsItemsType], None] - ] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - start_private_fork: NotRequired[bool] +class RepositoryRuleDetailedOneof14Type(TypedDict): + """RepositoryRuleDetailedOneof14""" + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryCreatePropCreditsItems""" - login: str - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "RepositoryAdvisoryCreatePropCreditsItemsType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryCreateType", -) +__all__ = ("RepositoryRuleDetailedOneof14Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0393.py b/githubkit/versions/ghec_v2022_11_28/types/group_0393.py index 23f5f5af0..9e9e0f465 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0393.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0393.py @@ -9,61 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0119 import RepositoryRuleWorkflowsPropParametersType -class PrivateVulnerabilityReportCreateType(TypedDict): - """PrivateVulnerabilityReportCreate""" - summary: str - description: str - vulnerabilities: NotRequired[ - Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType], None] - ] - cwe_ids: NotRequired[Union[list[str], None]] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - start_private_fork: NotRequired[bool] +class RepositoryRuleDetailedOneof15Type(TypedDict): + """RepositoryRuleDetailedOneof15""" + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType(TypedDict): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", - "PrivateVulnerabilityReportCreateType", -) +__all__ = ("RepositoryRuleDetailedOneof15Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0394.py b/githubkit/versions/ghec_v2022_11_28/types/group_0394.py index 689cbef7f..7b630d1a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0394.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0394.py @@ -9,84 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0121 import RepositoryRuleCodeScanningPropParametersType -class RepositoryAdvisoryUpdateType(TypedDict): - """RepositoryAdvisoryUpdate""" - summary: NotRequired[str] - description: NotRequired[str] - cve_id: NotRequired[Union[str, None]] - vulnerabilities: NotRequired[ - list[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] - ] - cwe_ids: NotRequired[Union[list[str], None]] - credits_: NotRequired[ - Union[list[RepositoryAdvisoryUpdatePropCreditsItemsType], None] - ] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - state: NotRequired[Literal["published", "closed", "draft"]] - collaborating_users: NotRequired[Union[list[str], None]] - collaborating_teams: NotRequired[Union[list[str], None]] +class RepositoryRuleDetailedOneof16Type(TypedDict): + """RepositoryRuleDetailedOneof16""" + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropCreditsItems""" - login: str - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "RepositoryAdvisoryUpdatePropCreditsItemsType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryUpdateType", -) +__all__ = ("RepositoryRuleDetailedOneof16Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0395.py b/githubkit/versions/ghec_v2022_11_28/types/group_0395.py index 5fdecfac2..ddc3df6ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0395.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0395.py @@ -10,20 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import TypedDict - -from .group_0002 import SimpleUserType - - -class StargazerType(TypedDict): - """Stargazer - - Stargazer - """ - - starred_at: datetime - user: Union[None, SimpleUserType] - - -__all__ = ("StargazerType",) +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType + + +class SecretScanningAlertType(TypedDict): + """SecretScanningAlert""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + + +__all__ = ("SecretScanningAlertType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0396.py b/githubkit/versions/ghec_v2022_11_28/types/group_0396.py index c3c8c7e64..a7d6503ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0396.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0396.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class CommitActivityType(TypedDict): - """Commit Activity +class SecretScanningPushProtectionBypassType(TypedDict): + """SecretScanningPushProtectionBypass""" - Commit Activity - """ + reason: NotRequired[Literal["false_positive", "used_in_tests", "will_fix_later"]] + expire_at: NotRequired[Union[datetime, None]] + token_type: NotRequired[str] - days: list[int] - total: int - week: int - -__all__ = ("CommitActivityType",) +__all__ = ("SecretScanningPushProtectionBypassType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0397.py b/githubkit/versions/ghec_v2022_11_28/types/group_0397.py index 1273ea797..c28f498af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0397.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0397.py @@ -9,33 +9,47 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class SecretScanningScanHistoryType(TypedDict): + """SecretScanningScanHistory""" -class ContributorActivityType(TypedDict): - """Contributor Activity + incremental_scans: NotRequired[list[SecretScanningScanType]] + pattern_update_scans: NotRequired[list[SecretScanningScanType]] + backfill_scans: NotRequired[list[SecretScanningScanType]] + custom_pattern_backfill_scans: NotRequired[ + list[SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType] + ] - Contributor Activity + +class SecretScanningScanType(TypedDict): + """SecretScanningScan + + Information on a single scan performed by secret scanning on the repository """ - author: Union[None, SimpleUserType] - total: int - weeks: list[ContributorActivityPropWeeksItemsType] + type: NotRequired[str] + status: NotRequired[str] + completed_at: NotRequired[Union[datetime, None]] + started_at: NotRequired[Union[datetime, None]] -class ContributorActivityPropWeeksItemsType(TypedDict): - """ContributorActivityPropWeeksItems""" +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType(TypedDict): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - w: NotRequired[int] - a: NotRequired[int] - d: NotRequired[int] - c: NotRequired[int] + type: NotRequired[str] + status: NotRequired[str] + completed_at: NotRequired[Union[datetime, None]] + started_at: NotRequired[Union[datetime, None]] + pattern_name: NotRequired[str] + pattern_scope: NotRequired[str] __all__ = ( - "ContributorActivityPropWeeksItemsType", - "ContributorActivityType", + "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", + "SecretScanningScanHistoryType", + "SecretScanningScanType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0398.py b/githubkit/versions/ghec_v2022_11_28/types/group_0398.py index 4bde16f66..3fadc1994 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0398.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0398.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ParticipationStatsType(TypedDict): - """Participation Stats""" +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type(TypedDict): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - all_: list[int] - owner: list[int] + pattern_name: NotRequired[str] + pattern_scope: NotRequired[str] -__all__ = ("ParticipationStatsType",) +__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0399.py b/githubkit/versions/ghec_v2022_11_28/types/group_0399.py index 00a60951a..3bd956c2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0399.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0399.py @@ -9,23 +9,80 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class RepositorySubscriptionType(TypedDict): - """Repository Invitation +class RepositoryAdvisoryCreateType(TypedDict): + """RepositoryAdvisoryCreate""" - Repository invitations let you manage who you collaborate with. + summary: str + description: str + cve_id: NotRequired[Union[str, None]] + vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] + cwe_ids: NotRequired[Union[list[str], None]] + credits_: NotRequired[ + Union[list[RepositoryAdvisoryCreatePropCreditsItemsType], None] + ] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + start_private_fork: NotRequired[bool] + + +class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryCreatePropCreditsItems""" + + login: str + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[list[str], None]] + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: datetime - url: str - repository_url: str + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] -__all__ = ("RepositorySubscriptionType",) +__all__ = ( + "RepositoryAdvisoryCreatePropCreditsItemsType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryCreateType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0400.py b/githubkit/versions/ghec_v2022_11_28/types/group_0400.py index 8a231b6fb..23f5f5af0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0400.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0400.py @@ -9,30 +9,61 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class TagType(TypedDict): - """Tag +class PrivateVulnerabilityReportCreateType(TypedDict): + """PrivateVulnerabilityReportCreate""" - Tag - """ + summary: str + description: str + vulnerabilities: NotRequired[ + Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType], None] + ] + cwe_ids: NotRequired[Union[list[str], None]] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + start_private_fork: NotRequired[bool] + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType(TypedDict): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" - name: str - commit: TagPropCommitType - zipball_url: str - tarball_url: str - node_id: str + package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[list[str], None]] -class TagPropCommitType(TypedDict): - """TagPropCommit""" +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ - sha: str - url: str + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] __all__ = ( - "TagPropCommitType", - "TagType", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", + "PrivateVulnerabilityReportCreateType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0401.py b/githubkit/versions/ghec_v2022_11_28/types/group_0401.py index a09ecf462..689cbef7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0401.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0401.py @@ -9,20 +9,84 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class TagProtectionType(TypedDict): - """Tag protection +class RepositoryAdvisoryUpdateType(TypedDict): + """RepositoryAdvisoryUpdate""" - Tag protection + summary: NotRequired[str] + description: NotRequired[str] + cve_id: NotRequired[Union[str, None]] + vulnerabilities: NotRequired[ + list[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] + ] + cwe_ids: NotRequired[Union[list[str], None]] + credits_: NotRequired[ + Union[list[RepositoryAdvisoryUpdatePropCreditsItemsType], None] + ] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + state: NotRequired[Literal["published", "closed", "draft"]] + collaborating_users: NotRequired[Union[list[str], None]] + collaborating_teams: NotRequired[Union[list[str], None]] + + +class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryUpdatePropCreditsItems""" + + login: str + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[list[str], None]] + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - id: NotRequired[int] - created_at: NotRequired[str] - updated_at: NotRequired[str] - enabled: NotRequired[bool] - pattern: str + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] -__all__ = ("TagProtectionType",) +__all__ = ( + "RepositoryAdvisoryUpdatePropCreditsItemsType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryUpdateType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0402.py b/githubkit/versions/ghec_v2022_11_28/types/group_0402.py index 69365fe85..ca2546e70 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0402.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0402.py @@ -9,16 +9,21 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class TopicType(TypedDict): - """Topic - A topic aggregates entities that are related to a subject. +class StargazerType(TypedDict): + """Stargazer + + Stargazer """ - names: list[str] + starred_at: datetime + user: Union[None, SimpleUserType] -__all__ = ("TopicType",) +__all__ = ("StargazerType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0403.py b/githubkit/versions/ghec_v2022_11_28/types/group_0403.py index 2412270d8..c3c8c7e64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0403.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0403.py @@ -9,16 +9,18 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict -class TrafficType(TypedDict): - """Traffic""" +class CommitActivityType(TypedDict): + """Commit Activity - timestamp: datetime - uniques: int - count: int + Commit Activity + """ + days: list[int] + total: int + week: int -__all__ = ("TrafficType",) + +__all__ = ("CommitActivityType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0404.py b/githubkit/versions/ghec_v2022_11_28/types/group_0404.py index a5d54a904..0c764aa8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0404.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0404.py @@ -9,20 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0403 import TrafficType +from .group_0003 import SimpleUserType -class CloneTrafficType(TypedDict): - """Clone Traffic +class ContributorActivityType(TypedDict): + """Contributor Activity - Clone Traffic + Contributor Activity """ - count: int - uniques: int - clones: list[TrafficType] + author: Union[None, SimpleUserType] + total: int + weeks: list[ContributorActivityPropWeeksItemsType] -__all__ = ("CloneTrafficType",) +class ContributorActivityPropWeeksItemsType(TypedDict): + """ContributorActivityPropWeeksItems""" + + w: NotRequired[int] + a: NotRequired[int] + d: NotRequired[int] + c: NotRequired[int] + + +__all__ = ( + "ContributorActivityPropWeeksItemsType", + "ContributorActivityType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0405.py b/githubkit/versions/ghec_v2022_11_28/types/group_0405.py index 8ae9ebc92..4bde16f66 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0405.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0405.py @@ -12,16 +12,11 @@ from typing_extensions import TypedDict -class ContentTrafficType(TypedDict): - """Content Traffic +class ParticipationStatsType(TypedDict): + """Participation Stats""" - Content Traffic - """ + all_: list[int] + owner: list[int] - path: str - title: str - count: int - uniques: int - -__all__ = ("ContentTrafficType",) +__all__ = ("ParticipationStatsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0406.py b/githubkit/versions/ghec_v2022_11_28/types/group_0406.py index d7d63281a..00a60951a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0406.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0406.py @@ -9,18 +9,23 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import TypedDict -class ReferrerTrafficType(TypedDict): - """Referrer Traffic +class RepositorySubscriptionType(TypedDict): + """Repository Invitation - Referrer Traffic + Repository invitations let you manage who you collaborate with. """ - referrer: str - count: int - uniques: int + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: datetime + url: str + repository_url: str -__all__ = ("ReferrerTrafficType",) +__all__ = ("RepositorySubscriptionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0407.py b/githubkit/versions/ghec_v2022_11_28/types/group_0407.py index 463ab0200..8a231b6fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0407.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0407.py @@ -11,18 +11,28 @@ from typing_extensions import TypedDict -from .group_0403 import TrafficType +class TagType(TypedDict): + """Tag -class ViewTrafficType(TypedDict): - """View Traffic - - View Traffic + Tag """ - count: int - uniques: int - views: list[TrafficType] + name: str + commit: TagPropCommitType + zipball_url: str + tarball_url: str + node_id: str + + +class TagPropCommitType(TypedDict): + """TagPropCommit""" + + sha: str + url: str -__all__ = ("ViewTrafficType",) +__all__ = ( + "TagPropCommitType", + "TagType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0408.py b/githubkit/versions/ghec_v2022_11_28/types/group_0408.py index a4530cd7b..a09ecf462 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0408.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0408.py @@ -9,33 +9,20 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class GroupResponseType(TypedDict): - """GroupResponse""" +class TagProtectionType(TypedDict): + """Tag protection - schemas: list[ - Literal[ - "urn:ietf:params:scim:schemas:core:2.0:Group", - "urn:ietf:params:scim:api:messages:2.0:ListResponse", - ] - ] - external_id: NotRequired[Union[str, None]] - display_name: NotRequired[Union[str, None]] - members: NotRequired[list[GroupResponsePropMembersItemsType]] + Tag protection + """ + id: NotRequired[int] + created_at: NotRequired[str] + updated_at: NotRequired[str] + enabled: NotRequired[bool] + pattern: str -class GroupResponsePropMembersItemsType(TypedDict): - """GroupResponsePropMembersItems""" - value: str - ref: str - display: NotRequired[str] - - -__all__ = ( - "GroupResponsePropMembersItemsType", - "GroupResponseType", -) +__all__ = ("TagProtectionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0409.py b/githubkit/versions/ghec_v2022_11_28/types/group_0409.py index 49cdae3aa..69365fe85 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0409.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0409.py @@ -9,20 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class MetaType(TypedDict): - """Meta +class TopicType(TypedDict): + """Topic - The metadata associated with the creation/updates to the user. + A topic aggregates entities that are related to a subject. """ - resource_type: Literal["User", "Group"] - created: NotRequired[str] - last_modified: NotRequired[str] - location: NotRequired[str] + names: list[str] -__all__ = ("MetaType",) +__all__ = ("TopicType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0410.py b/githubkit/versions/ghec_v2022_11_28/types/group_0410.py index d029ccca8..2412270d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0410.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0410.py @@ -9,48 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -from .group_0409 import MetaType +class TrafficType(TypedDict): + """Traffic""" -class ScimEnterpriseGroupResponseType(TypedDict): - """ScimEnterpriseGroupResponse""" + timestamp: datetime + uniques: int + count: int - schemas: list[ - Literal[ - "urn:ietf:params:scim:schemas:core:2.0:Group", - "urn:ietf:params:scim:api:messages:2.0:ListResponse", - ] - ] - external_id: NotRequired[Union[str, None]] - display_name: NotRequired[Union[str, None]] - members: NotRequired[list[ScimEnterpriseGroupResponseMergedMembersType]] - id: NotRequired[str] - meta: NotRequired[MetaType] - -class ScimEnterpriseGroupResponseMergedMembersType(TypedDict): - """ScimEnterpriseGroupResponseMergedMembers""" - - value: str - ref: str - display: NotRequired[str] - - -class ScimEnterpriseGroupListType(TypedDict): - """ScimEnterpriseGroupList""" - - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] - total_results: int - resources: list[ScimEnterpriseGroupResponseType] - start_index: int - items_per_page: int - - -__all__ = ( - "ScimEnterpriseGroupListType", - "ScimEnterpriseGroupResponseMergedMembersType", - "ScimEnterpriseGroupResponseType", -) +__all__ = ("TrafficType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0411.py b/githubkit/versions/ghec_v2022_11_28/types/group_0411.py index eceea5f00..c652603aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0411.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0411.py @@ -9,28 +9,20 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0409 import MetaType +from .group_0410 import TrafficType -class ScimEnterpriseGroupResponseAllof1Type(TypedDict): - """ScimEnterpriseGroupResponseAllof1""" +class CloneTrafficType(TypedDict): + """Clone Traffic - id: NotRequired[str] - members: NotRequired[list[ScimEnterpriseGroupResponseAllof1PropMembersItemsType]] - meta: NotRequired[MetaType] + Clone Traffic + """ + count: int + uniques: int + clones: list[TrafficType] -class ScimEnterpriseGroupResponseAllof1PropMembersItemsType(TypedDict): - """ScimEnterpriseGroupResponseAllof1PropMembersItems""" - value: NotRequired[str] - ref: NotRequired[str] - display: NotRequired[str] - - -__all__ = ( - "ScimEnterpriseGroupResponseAllof1PropMembersItemsType", - "ScimEnterpriseGroupResponseAllof1Type", -) +__all__ = ("CloneTrafficType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0412.py b/githubkit/versions/ghec_v2022_11_28/types/group_0412.py index 5d3f1069e..8ae9ebc92 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0412.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0412.py @@ -9,27 +9,19 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class GroupType(TypedDict): - """Group""" +class ContentTrafficType(TypedDict): + """Content Traffic - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] - external_id: str - display_name: str - members: list[GroupPropMembersItemsType] + Content Traffic + """ + path: str + title: str + count: int + uniques: int -class GroupPropMembersItemsType(TypedDict): - """GroupPropMembersItems""" - value: str - display_name: str - - -__all__ = ( - "GroupPropMembersItemsType", - "GroupType", -) +__all__ = ("ContentTrafficType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0413.py b/githubkit/versions/ghec_v2022_11_28/types/group_0413.py index a81bf3fd2..d7d63281a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0413.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0413.py @@ -9,26 +9,18 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class PatchSchemaType(TypedDict): - """PatchSchema""" +class ReferrerTrafficType(TypedDict): + """Referrer Traffic - operations: list[PatchSchemaPropOperationsItemsType] - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] + Referrer Traffic + """ + referrer: str + count: int + uniques: int -class PatchSchemaPropOperationsItemsType(TypedDict): - """PatchSchemaPropOperationsItems""" - op: Literal["add", "replace", "remove"] - path: NotRequired[str] - value: NotRequired[str] - - -__all__ = ( - "PatchSchemaPropOperationsItemsType", - "PatchSchemaType", -) +__all__ = ("ReferrerTrafficType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0414.py b/githubkit/versions/ghec_v2022_11_28/types/group_0414.py index 96b042860..93f2336f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0414.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0414.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0410 import TrafficType -class UserNameResponseType(TypedDict): - """UserNameResponse""" - formatted: NotRequired[str] - family_name: NotRequired[str] - given_name: NotRequired[str] - middle_name: NotRequired[str] +class ViewTrafficType(TypedDict): + """View Traffic + View Traffic + """ -class UserEmailsResponseItemsType(TypedDict): - """UserEmailsResponseItems""" + count: int + uniques: int + views: list[TrafficType] - value: str - type: NotRequired[str] - primary: NotRequired[bool] - -__all__ = ( - "UserEmailsResponseItemsType", - "UserNameResponseType", -) +__all__ = ("ViewTrafficType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0415.py b/githubkit/versions/ghec_v2022_11_28/types/group_0415.py index dd4ea445a..a4530cd7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0415.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0415.py @@ -9,28 +9,33 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class UserRoleItemsType(TypedDict): - """UserRoleItems""" +class GroupResponseType(TypedDict): + """GroupResponse""" - display: NotRequired[str] - type: NotRequired[str] - value: Literal[ - "user", - "27d9891d-2c17-4f45-a262-781a0e55c80a", - "guest_collaborator", - "1ebc4a02-e56c-43a6-92a5-02ee09b90824", - "enterprise_owner", - "981df190-8801-4618-a08a-d91f6206c954", - "ba4987ab-a1c3-412a-b58c-360fc407cb10", - "billing_manager", - "0e338b8c-cc7f-498a-928d-ea3470d7e7e3", - "e6be2762-e4ad-4108-b72d-1bbe884a0f91", + schemas: list[ + Literal[ + "urn:ietf:params:scim:schemas:core:2.0:Group", + "urn:ietf:params:scim:api:messages:2.0:ListResponse", + ] ] - primary: NotRequired[bool] + external_id: NotRequired[Union[str, None]] + display_name: NotRequired[Union[str, None]] + members: NotRequired[list[GroupResponsePropMembersItemsType]] + + +class GroupResponsePropMembersItemsType(TypedDict): + """GroupResponsePropMembersItems""" + + value: str + ref: str + display: NotRequired[str] -__all__ = ("UserRoleItemsType",) +__all__ = ( + "GroupResponsePropMembersItemsType", + "GroupResponseType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0416.py b/githubkit/versions/ghec_v2022_11_28/types/group_0416.py index 82960e512..49cdae3aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0416.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0416.py @@ -9,24 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0414 import UserEmailsResponseItemsType, UserNameResponseType -from .group_0415 import UserRoleItemsType +class MetaType(TypedDict): + """Meta -class UserResponseType(TypedDict): - """UserResponse""" + The metadata associated with the creation/updates to the user. + """ - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] - external_id: NotRequired[Union[str, None]] - active: bool - user_name: NotRequired[str] - name: NotRequired[UserNameResponseType] - display_name: NotRequired[Union[str, None]] - emails: list[UserEmailsResponseItemsType] - roles: NotRequired[list[UserRoleItemsType]] + resource_type: Literal["User", "Group"] + created: NotRequired[str] + last_modified: NotRequired[str] + location: NotRequired[str] -__all__ = ("UserResponseType",) +__all__ = ("MetaType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0417.py b/githubkit/versions/ghec_v2022_11_28/types/group_0417.py index 8ca5c4f8c..daf6fbd2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0417.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0417.py @@ -12,39 +12,45 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0409 import MetaType -from .group_0414 import UserEmailsResponseItemsType, UserNameResponseType -from .group_0415 import UserRoleItemsType -from .group_0419 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType +from .group_0416 import MetaType -class ScimEnterpriseUserResponseType(TypedDict): - """ScimEnterpriseUserResponse""" +class ScimEnterpriseGroupResponseType(TypedDict): + """ScimEnterpriseGroupResponse""" - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] + schemas: list[ + Literal[ + "urn:ietf:params:scim:schemas:core:2.0:Group", + "urn:ietf:params:scim:api:messages:2.0:ListResponse", + ] + ] external_id: NotRequired[Union[str, None]] - active: bool - user_name: NotRequired[str] - name: NotRequired[UserNameResponseType] display_name: NotRequired[Union[str, None]] - emails: list[UserEmailsResponseItemsType] - roles: NotRequired[list[UserRoleItemsType]] - id: str - groups: NotRequired[list[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] - meta: MetaType + members: NotRequired[list[ScimEnterpriseGroupResponseMergedMembersType]] + id: NotRequired[str] + meta: NotRequired[MetaType] -class ScimEnterpriseUserListType(TypedDict): - """ScimEnterpriseUserList""" +class ScimEnterpriseGroupResponseMergedMembersType(TypedDict): + """ScimEnterpriseGroupResponseMergedMembers""" + + value: str + ref: str + display: NotRequired[str] + + +class ScimEnterpriseGroupListType(TypedDict): + """ScimEnterpriseGroupList""" schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] total_results: int - resources: list[ScimEnterpriseUserResponseType] + resources: list[ScimEnterpriseGroupResponseType] start_index: int items_per_page: int __all__ = ( - "ScimEnterpriseUserListType", - "ScimEnterpriseUserResponseType", + "ScimEnterpriseGroupListType", + "ScimEnterpriseGroupResponseMergedMembersType", + "ScimEnterpriseGroupResponseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0418.py b/githubkit/versions/ghec_v2022_11_28/types/group_0418.py index 036ac8541..f832788ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0418.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0418.py @@ -11,16 +11,26 @@ from typing_extensions import NotRequired, TypedDict -from .group_0409 import MetaType -from .group_0419 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType +from .group_0416 import MetaType -class ScimEnterpriseUserResponseAllof1Type(TypedDict): - """ScimEnterpriseUserResponseAllof1""" +class ScimEnterpriseGroupResponseAllof1Type(TypedDict): + """ScimEnterpriseGroupResponseAllof1""" - id: str - groups: NotRequired[list[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] - meta: MetaType + id: NotRequired[str] + members: NotRequired[list[ScimEnterpriseGroupResponseAllof1PropMembersItemsType]] + meta: NotRequired[MetaType] -__all__ = ("ScimEnterpriseUserResponseAllof1Type",) +class ScimEnterpriseGroupResponseAllof1PropMembersItemsType(TypedDict): + """ScimEnterpriseGroupResponseAllof1PropMembersItems""" + + value: NotRequired[str] + ref: NotRequired[str] + display: NotRequired[str] + + +__all__ = ( + "ScimEnterpriseGroupResponseAllof1PropMembersItemsType", + "ScimEnterpriseGroupResponseAllof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0419.py b/githubkit/versions/ghec_v2022_11_28/types/group_0419.py index 69b2ab7f3..5d3f1069e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0419.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0419.py @@ -9,15 +9,27 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ScimEnterpriseUserResponseAllof1PropGroupsItemsType(TypedDict): - """ScimEnterpriseUserResponseAllof1PropGroupsItems""" +class GroupType(TypedDict): + """Group""" - value: NotRequired[str] - ref: NotRequired[str] - display: NotRequired[str] + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] + external_id: str + display_name: str + members: list[GroupPropMembersItemsType] -__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",) +class GroupPropMembersItemsType(TypedDict): + """GroupPropMembersItems""" + + value: str + display_name: str + + +__all__ = ( + "GroupPropMembersItemsType", + "GroupType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0420.py b/githubkit/versions/ghec_v2022_11_28/types/group_0420.py index 80ec49d90..a81bf3fd2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0420.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0420.py @@ -12,41 +12,23 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0415 import UserRoleItemsType +class PatchSchemaType(TypedDict): + """PatchSchema""" -class UserType(TypedDict): - """User""" + operations: list[PatchSchemaPropOperationsItemsType] + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] - external_id: str - active: bool - user_name: str - name: NotRequired[UserNameType] - display_name: str - emails: list[UserEmailsItemsType] - roles: NotRequired[list[UserRoleItemsType]] +class PatchSchemaPropOperationsItemsType(TypedDict): + """PatchSchemaPropOperationsItems""" -class UserNameType(TypedDict): - """UserName""" - - formatted: NotRequired[str] - family_name: str - given_name: str - middle_name: NotRequired[str] - - -class UserEmailsItemsType(TypedDict): - """UserEmailsItems""" - - value: str - type: str - primary: bool + op: Literal["add", "replace", "remove"] + path: NotRequired[str] + value: NotRequired[str] __all__ = ( - "UserEmailsItemsType", - "UserNameType", - "UserType", + "PatchSchemaPropOperationsItemsType", + "PatchSchemaType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0421.py b/githubkit/versions/ghec_v2022_11_28/types/group_0421.py index 83d9c05bb..96b042860 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0421.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0421.py @@ -9,112 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union from typing_extensions import NotRequired, TypedDict -class ScimUserListType(TypedDict): - """SCIM User List +class UserNameResponseType(TypedDict): + """UserNameResponse""" - SCIM User List - """ + formatted: NotRequired[str] + family_name: NotRequired[str] + given_name: NotRequired[str] + middle_name: NotRequired[str] - schemas: list[str] - total_results: int - items_per_page: int - start_index: int - resources: list[ScimUserType] - -class ScimUserType(TypedDict): - """SCIM /Users - - SCIM /Users provisioning endpoints - """ - - schemas: list[str] - id: str - external_id: NotRequired[Union[str, None]] - user_name: NotRequired[Union[str, None]] - display_name: NotRequired[Union[str, None]] - name: NotRequired[ScimUserPropNameType] - emails: list[ScimUserPropEmailsItemsType] - active: bool - meta: ScimUserPropMetaType - organization_id: NotRequired[int] - operations: NotRequired[list[ScimUserPropOperationsItemsType]] - groups: NotRequired[list[ScimUserPropGroupsItemsType]] - roles: NotRequired[list[ScimUserPropRolesItemsType]] - - -class ScimUserPropNameType(TypedDict): - """ScimUserPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: NotRequired[Union[str, None]] - family_name: NotRequired[Union[str, None]] - formatted: NotRequired[Union[str, None]] - - -class ScimUserPropEmailsItemsType(TypedDict): - """ScimUserPropEmailsItems""" +class UserEmailsResponseItemsType(TypedDict): + """UserEmailsResponseItems""" value: str - primary: NotRequired[bool] type: NotRequired[str] - - -class ScimUserPropMetaType(TypedDict): - """ScimUserPropMeta""" - - resource_type: NotRequired[str] - created: NotRequired[datetime] - last_modified: NotRequired[datetime] - location: NotRequired[str] - - -class ScimUserPropGroupsItemsType(TypedDict): - """ScimUserPropGroupsItems""" - - value: NotRequired[str] - display: NotRequired[str] - - -class ScimUserPropRolesItemsType(TypedDict): - """ScimUserPropRolesItems""" - - value: NotRequired[str] primary: NotRequired[bool] - type: NotRequired[str] - display: NotRequired[str] - - -class ScimUserPropOperationsItemsType(TypedDict): - """ScimUserPropOperationsItems""" - - op: Literal["add", "remove", "replace"] - path: NotRequired[str] - value: NotRequired[ - Union[str, ScimUserPropOperationsItemsPropValueOneof1Type, list[Any]] - ] - - -class ScimUserPropOperationsItemsPropValueOneof1Type(TypedDict): - """ScimUserPropOperationsItemsPropValueOneof1""" __all__ = ( - "ScimUserListType", - "ScimUserPropEmailsItemsType", - "ScimUserPropGroupsItemsType", - "ScimUserPropMetaType", - "ScimUserPropNameType", - "ScimUserPropOperationsItemsPropValueOneof1Type", - "ScimUserPropOperationsItemsType", - "ScimUserPropRolesItemsType", - "ScimUserType", + "UserEmailsResponseItemsType", + "UserNameResponseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0422.py b/githubkit/versions/ghec_v2022_11_28/types/group_0422.py index e1d436bf1..dd4ea445a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0422.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0422.py @@ -9,28 +9,28 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class SearchResultTextMatchesItemsType(TypedDict): - """SearchResultTextMatchesItems""" +class UserRoleItemsType(TypedDict): + """UserRoleItems""" - object_url: NotRequired[str] - object_type: NotRequired[Union[str, None]] - property_: NotRequired[str] - fragment: NotRequired[str] - matches: NotRequired[list[SearchResultTextMatchesItemsPropMatchesItemsType]] + display: NotRequired[str] + type: NotRequired[str] + value: Literal[ + "user", + "27d9891d-2c17-4f45-a262-781a0e55c80a", + "guest_collaborator", + "1ebc4a02-e56c-43a6-92a5-02ee09b90824", + "enterprise_owner", + "981df190-8801-4618-a08a-d91f6206c954", + "ba4987ab-a1c3-412a-b58c-360fc407cb10", + "billing_manager", + "0e338b8c-cc7f-498a-928d-ea3470d7e7e3", + "e6be2762-e4ad-4108-b72d-1bbe884a0f91", + ] + primary: NotRequired[bool] -class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): - """SearchResultTextMatchesItemsPropMatchesItems""" - - text: NotRequired[str] - indices: NotRequired[list[int]] - - -__all__ = ( - "SearchResultTextMatchesItemsPropMatchesItemsType", - "SearchResultTextMatchesItemsType", -) +__all__ = ("UserRoleItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0423.py b/githubkit/versions/ghec_v2022_11_28/types/group_0423.py index bc1fc5941..ddecfaf05 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0423.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0423.py @@ -9,44 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0147 import MinimalRepositoryType -from .group_0422 import SearchResultTextMatchesItemsType +from .group_0421 import UserEmailsResponseItemsType, UserNameResponseType +from .group_0422 import UserRoleItemsType -class CodeSearchResultItemType(TypedDict): - """Code Search Result Item +class UserResponseType(TypedDict): + """UserResponse""" - Code Search Result Item - """ + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] + external_id: NotRequired[Union[str, None]] + active: bool + user_name: NotRequired[str] + name: NotRequired[UserNameResponseType] + display_name: NotRequired[Union[str, None]] + emails: list[UserEmailsResponseItemsType] + roles: NotRequired[list[UserRoleItemsType]] - name: str - path: str - sha: str - url: str - git_url: str - html_url: str - repository: MinimalRepositoryType - score: float - file_size: NotRequired[int] - language: NotRequired[Union[str, None]] - last_modified_at: NotRequired[datetime] - line_numbers: NotRequired[list[str]] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - -class SearchCodeGetResponse200Type(TypedDict): - """SearchCodeGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[CodeSearchResultItemType] - - -__all__ = ( - "CodeSearchResultItemType", - "SearchCodeGetResponse200Type", -) +__all__ = ("UserResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0424.py b/githubkit/versions/ghec_v2022_11_28/types/group_0424.py index 6ec96879e..f77ff3055 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0424.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0424.py @@ -9,54 +9,42 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0147 import MinimalRepositoryType -from .group_0238 import GitUserType -from .group_0422 import SearchResultTextMatchesItemsType -from .group_0425 import CommitSearchResultItemPropCommitType +from .group_0416 import MetaType +from .group_0421 import UserEmailsResponseItemsType, UserNameResponseType +from .group_0422 import UserRoleItemsType +from .group_0426 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType -class CommitSearchResultItemType(TypedDict): - """Commit Search Result Item +class ScimEnterpriseUserResponseType(TypedDict): + """ScimEnterpriseUserResponse""" - Commit Search Result Item - """ + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] + external_id: NotRequired[Union[str, None]] + active: bool + user_name: NotRequired[str] + name: NotRequired[UserNameResponseType] + display_name: NotRequired[Union[str, None]] + emails: list[UserEmailsResponseItemsType] + roles: NotRequired[list[UserRoleItemsType]] + id: str + groups: NotRequired[list[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] + meta: MetaType - url: str - sha: str - html_url: str - comments_url: str - commit: CommitSearchResultItemPropCommitType - author: Union[None, SimpleUserType] - committer: Union[None, GitUserType] - parents: list[CommitSearchResultItemPropParentsItemsType] - repository: MinimalRepositoryType - score: float - node_id: str - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] +class ScimEnterpriseUserListType(TypedDict): + """ScimEnterpriseUserList""" -class CommitSearchResultItemPropParentsItemsType(TypedDict): - """CommitSearchResultItemPropParentsItems""" - - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] - - -class SearchCommitsGetResponse200Type(TypedDict): - """SearchCommitsGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[CommitSearchResultItemType] + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] + total_results: int + resources: list[ScimEnterpriseUserResponseType] + start_index: int + items_per_page: int __all__ = ( - "CommitSearchResultItemPropParentsItemsType", - "CommitSearchResultItemType", - "SearchCommitsGetResponse200Type", + "ScimEnterpriseUserListType", + "ScimEnterpriseUserResponseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0425.py b/githubkit/versions/ghec_v2022_11_28/types/group_0425.py index 951075b4d..e49511219 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0425.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0425.py @@ -9,43 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0238 import GitUserType -from .group_0239 import VerificationType +from .group_0416 import MetaType +from .group_0426 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType -class CommitSearchResultItemPropCommitType(TypedDict): - """CommitSearchResultItemPropCommit""" +class ScimEnterpriseUserResponseAllof1Type(TypedDict): + """ScimEnterpriseUserResponseAllof1""" - author: CommitSearchResultItemPropCommitPropAuthorType - committer: Union[None, GitUserType] - comment_count: int - message: str - tree: CommitSearchResultItemPropCommitPropTreeType - url: str - verification: NotRequired[VerificationType] + id: str + groups: NotRequired[list[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] + meta: MetaType -class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): - """CommitSearchResultItemPropCommitPropAuthor""" - - name: str - email: str - date: datetime - - -class CommitSearchResultItemPropCommitPropTreeType(TypedDict): - """CommitSearchResultItemPropCommitPropTree""" - - sha: str - url: str - - -__all__ = ( - "CommitSearchResultItemPropCommitPropAuthorType", - "CommitSearchResultItemPropCommitPropTreeType", - "CommitSearchResultItemPropCommitType", -) +__all__ = ("ScimEnterpriseUserResponseAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0426.py b/githubkit/versions/ghec_v2022_11_28/types/group_0426.py index 6facebb15..69b2ab7f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0426.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0426.py @@ -9,113 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0019 import RepositoryType -from .group_0129 import MilestoneType -from .group_0130 import ReactionRollupType -from .group_0422 import SearchResultTextMatchesItemsType +class ScimEnterpriseUserResponseAllof1PropGroupsItemsType(TypedDict): + """ScimEnterpriseUserResponseAllof1PropGroupsItems""" -class IssueSearchResultItemType(TypedDict): - """Issue Search Result Item + value: NotRequired[str] + ref: NotRequired[str] + display: NotRequired[str] - Issue Search Result Item - """ - url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str - html_url: str - id: int - node_id: str - number: int - title: str - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - assignees: NotRequired[Union[list[SimpleUserType], None]] - user: Union[None, SimpleUserType] - labels: list[IssueSearchResultItemPropLabelsItemsType] - sub_issues_summary: NotRequired[IssueSearchResultItemPropSubIssuesSummaryType] - state: str - state_reason: NotRequired[Union[str, None]] - assignee: Union[None, SimpleUserType] - milestone: Union[None, MilestoneType] - comments: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] - body: NotRequired[str] - score: float - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - draft: NotRequired[bool] - repository: NotRequired[RepositoryType] - body_html: NotRequired[str] - body_text: NotRequired[str] - timeline_url: NotRequired[str] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] - - -class IssueSearchResultItemPropLabelsItemsType(TypedDict): - """IssueSearchResultItemPropLabelsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - name: NotRequired[str] - color: NotRequired[str] - default: NotRequired[bool] - description: NotRequired[Union[str, None]] - - -class IssueSearchResultItemPropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class IssueSearchResultItemPropPullRequestType(TypedDict): - """IssueSearchResultItemPropPullRequest""" - - merged_at: NotRequired[Union[datetime, None]] - diff_url: Union[str, None] - html_url: Union[str, None] - patch_url: Union[str, None] - url: Union[str, None] - - -class SearchIssuesGetResponse200Type(TypedDict): - """SearchIssuesGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[IssueSearchResultItemType] - - -__all__ = ( - "IssueSearchResultItemPropLabelsItemsType", - "IssueSearchResultItemPropPullRequestType", - "IssueSearchResultItemPropSubIssuesSummaryType", - "IssueSearchResultItemType", - "SearchIssuesGetResponse200Type", -) +__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0427.py b/githubkit/versions/ghec_v2022_11_28/types/group_0427.py index a32be5081..baf822768 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0427.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0427.py @@ -9,38 +9,44 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0422 import SearchResultTextMatchesItemsType +from .group_0422 import UserRoleItemsType -class LabelSearchResultItemType(TypedDict): - """Label Search Result Item +class UserType(TypedDict): + """User""" - Label Search Result Item - """ + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] + external_id: str + active: bool + user_name: str + name: NotRequired[UserNameType] + display_name: str + emails: list[UserEmailsItemsType] + roles: NotRequired[list[UserRoleItemsType]] - id: int - node_id: str - url: str - name: str - color: str - default: bool - description: Union[str, None] - score: float - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] +class UserNameType(TypedDict): + """UserName""" -class SearchLabelsGetResponse200Type(TypedDict): - """SearchLabelsGetResponse200""" + formatted: NotRequired[str] + family_name: str + given_name: str + middle_name: NotRequired[str] - total_count: int - incomplete_results: bool - items: list[LabelSearchResultItemType] + +class UserEmailsItemsType(TypedDict): + """UserEmailsItems""" + + value: str + type: str + primary: bool __all__ = ( - "LabelSearchResultItemType", - "SearchLabelsGetResponse200Type", + "UserEmailsItemsType", + "UserNameType", + "UserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0428.py b/githubkit/versions/ghec_v2022_11_28/types/group_0428.py index dced3b44c..83d9c05bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0428.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0428.py @@ -10,131 +10,111 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Any, Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0018 import LicenseSimpleType -from .group_0422 import SearchResultTextMatchesItemsType +class ScimUserListType(TypedDict): + """SCIM User List -class RepoSearchResultItemType(TypedDict): - """Repo Search Result Item + SCIM User List + """ + + schemas: list[str] + total_results: int + items_per_page: int + start_index: int + resources: list[ScimUserType] + + +class ScimUserType(TypedDict): + """SCIM /Users + + SCIM /Users provisioning endpoints + """ - Repo Search Result Item + schemas: list[str] + id: str + external_id: NotRequired[Union[str, None]] + user_name: NotRequired[Union[str, None]] + display_name: NotRequired[Union[str, None]] + name: NotRequired[ScimUserPropNameType] + emails: list[ScimUserPropEmailsItemsType] + active: bool + meta: ScimUserPropMetaType + organization_id: NotRequired[int] + operations: NotRequired[list[ScimUserPropOperationsItemsType]] + groups: NotRequired[list[ScimUserPropGroupsItemsType]] + roles: NotRequired[list[ScimUserPropRolesItemsType]] + + +class ScimUserPropNameType(TypedDict): + """ScimUserPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} """ - id: int - node_id: str - name: str - full_name: str - owner: Union[None, SimpleUserType] - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - created_at: datetime - updated_at: datetime - pushed_at: datetime - homepage: Union[str, None] - size: int - stargazers_count: int - watchers_count: int - language: Union[str, None] - forks_count: int - open_issues_count: int - master_branch: NotRequired[str] - default_branch: str - score: float - forks_url: str - keys_url: str - collaborators_url: str - teams_url: str - hooks_url: str - issue_events_url: str - events_url: str - assignees_url: str - branches_url: str - tags_url: str - blobs_url: str - git_tags_url: str - git_refs_url: str - trees_url: str - statuses_url: str - languages_url: str - stargazers_url: str - contributors_url: str - subscribers_url: str - subscription_url: str - commits_url: str - git_commits_url: str - comments_url: str - issue_comment_url: str - contents_url: str - compare_url: str - merges_url: str - archive_url: str - downloads_url: str - issues_url: str - pulls_url: str - milestones_url: str - notifications_url: str - labels_url: str - releases_url: str - deployments_url: str - git_url: str - ssh_url: str - clone_url: str - svn_url: str - forks: int - open_issues: int - watchers: int - topics: NotRequired[list[str]] - mirror_url: Union[str, None] - has_issues: bool - has_projects: bool - has_pages: bool - has_wiki: bool - has_downloads: bool - has_discussions: NotRequired[bool] - archived: bool - disabled: bool - visibility: NotRequired[str] - license_: Union[None, LicenseSimpleType] - permissions: NotRequired[RepoSearchResultItemPropPermissionsType] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - temp_clone_token: NotRequired[Union[str, None]] - allow_merge_commit: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - is_template: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - - -class RepoSearchResultItemPropPermissionsType(TypedDict): - """RepoSearchResultItemPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool - - -class SearchRepositoriesGetResponse200Type(TypedDict): - """SearchRepositoriesGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[RepoSearchResultItemType] + given_name: NotRequired[Union[str, None]] + family_name: NotRequired[Union[str, None]] + formatted: NotRequired[Union[str, None]] + + +class ScimUserPropEmailsItemsType(TypedDict): + """ScimUserPropEmailsItems""" + + value: str + primary: NotRequired[bool] + type: NotRequired[str] + + +class ScimUserPropMetaType(TypedDict): + """ScimUserPropMeta""" + + resource_type: NotRequired[str] + created: NotRequired[datetime] + last_modified: NotRequired[datetime] + location: NotRequired[str] + + +class ScimUserPropGroupsItemsType(TypedDict): + """ScimUserPropGroupsItems""" + + value: NotRequired[str] + display: NotRequired[str] + + +class ScimUserPropRolesItemsType(TypedDict): + """ScimUserPropRolesItems""" + + value: NotRequired[str] + primary: NotRequired[bool] + type: NotRequired[str] + display: NotRequired[str] + + +class ScimUserPropOperationsItemsType(TypedDict): + """ScimUserPropOperationsItems""" + + op: Literal["add", "remove", "replace"] + path: NotRequired[str] + value: NotRequired[ + Union[str, ScimUserPropOperationsItemsPropValueOneof1Type, list[Any]] + ] + + +class ScimUserPropOperationsItemsPropValueOneof1Type(TypedDict): + """ScimUserPropOperationsItemsPropValueOneof1""" __all__ = ( - "RepoSearchResultItemPropPermissionsType", - "RepoSearchResultItemType", - "SearchRepositoriesGetResponse200Type", + "ScimUserListType", + "ScimUserPropEmailsItemsType", + "ScimUserPropGroupsItemsType", + "ScimUserPropMetaType", + "ScimUserPropNameType", + "ScimUserPropOperationsItemsPropValueOneof1Type", + "ScimUserPropOperationsItemsType", + "ScimUserPropRolesItemsType", + "ScimUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0429.py b/githubkit/versions/ghec_v2022_11_28/types/group_0429.py index 47075b34e..e1d436bf1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0429.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0429.py @@ -9,84 +9,28 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0422 import SearchResultTextMatchesItemsType +class SearchResultTextMatchesItemsType(TypedDict): + """SearchResultTextMatchesItems""" -class TopicSearchResultItemType(TypedDict): - """Topic Search Result Item + object_url: NotRequired[str] + object_type: NotRequired[Union[str, None]] + property_: NotRequired[str] + fragment: NotRequired[str] + matches: NotRequired[list[SearchResultTextMatchesItemsPropMatchesItemsType]] - Topic Search Result Item - """ - name: str - display_name: Union[str, None] - short_description: Union[str, None] - description: Union[str, None] - created_by: Union[str, None] - released: Union[str, None] - created_at: datetime - updated_at: datetime - featured: bool - curated: bool - score: float - repository_count: NotRequired[Union[int, None]] - logo_url: NotRequired[Union[str, None]] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - related: NotRequired[Union[list[TopicSearchResultItemPropRelatedItemsType], None]] - aliases: NotRequired[Union[list[TopicSearchResultItemPropAliasesItemsType], None]] +class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): + """SearchResultTextMatchesItemsPropMatchesItems""" - -class TopicSearchResultItemPropRelatedItemsType(TypedDict): - """TopicSearchResultItemPropRelatedItems""" - - topic_relation: NotRequired[ - TopicSearchResultItemPropRelatedItemsPropTopicRelationType - ] - - -class TopicSearchResultItemPropRelatedItemsPropTopicRelationType(TypedDict): - """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - - id: NotRequired[int] - name: NotRequired[str] - topic_id: NotRequired[int] - relation_type: NotRequired[str] - - -class TopicSearchResultItemPropAliasesItemsType(TypedDict): - """TopicSearchResultItemPropAliasesItems""" - - topic_relation: NotRequired[ - TopicSearchResultItemPropAliasesItemsPropTopicRelationType - ] - - -class TopicSearchResultItemPropAliasesItemsPropTopicRelationType(TypedDict): - """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - - id: NotRequired[int] - name: NotRequired[str] - topic_id: NotRequired[int] - relation_type: NotRequired[str] - - -class SearchTopicsGetResponse200Type(TypedDict): - """SearchTopicsGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[TopicSearchResultItemType] + text: NotRequired[str] + indices: NotRequired[list[int]] __all__ = ( - "SearchTopicsGetResponse200Type", - "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", - "TopicSearchResultItemPropAliasesItemsType", - "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", - "TopicSearchResultItemPropRelatedItemsType", - "TopicSearchResultItemType", + "SearchResultTextMatchesItemsPropMatchesItemsType", + "SearchResultTextMatchesItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0430.py b/githubkit/versions/ghec_v2022_11_28/types/group_0430.py index 70a3e89d2..7b6d61f9b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0430.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0430.py @@ -13,61 +13,40 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0422 import SearchResultTextMatchesItemsType +from .group_0154 import MinimalRepositoryType +from .group_0429 import SearchResultTextMatchesItemsType -class UserSearchResultItemType(TypedDict): - """User Search Result Item +class CodeSearchResultItemType(TypedDict): + """Code Search Result Item - User Search Result Item + Code Search Result Item """ - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] + name: str + path: str + sha: str url: str + git_url: str html_url: str - followers_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - received_events_url: str - type: str + repository: MinimalRepositoryType score: float - following_url: str - gists_url: str - starred_url: str - events_url: str - public_repos: NotRequired[int] - public_gists: NotRequired[int] - followers: NotRequired[int] - following: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - name: NotRequired[Union[str, None]] - bio: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - site_admin: bool - hireable: NotRequired[Union[bool, None]] + file_size: NotRequired[int] + language: NotRequired[Union[str, None]] + last_modified_at: NotRequired[datetime] + line_numbers: NotRequired[list[str]] text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - blog: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - suspended_at: NotRequired[Union[datetime, None]] - user_view_type: NotRequired[str] -class SearchUsersGetResponse200Type(TypedDict): - """SearchUsersGetResponse200""" +class SearchCodeGetResponse200Type(TypedDict): + """SearchCodeGetResponse200""" total_count: int incomplete_results: bool - items: list[UserSearchResultItemType] + items: list[CodeSearchResultItemType] __all__ = ( - "SearchUsersGetResponse200Type", - "UserSearchResultItemType", + "CodeSearchResultItemType", + "SearchCodeGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0431.py b/githubkit/versions/ghec_v2022_11_28/types/group_0431.py index 855325c4a..5ce61b26e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0431.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0431.py @@ -9,72 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0154 import MinimalRepositoryType +from .group_0245 import GitUserType +from .group_0429 import SearchResultTextMatchesItemsType +from .group_0432 import CommitSearchResultItemPropCommitType -class PrivateUserType(TypedDict): - """Private User - Private User +class CommitSearchResultItemType(TypedDict): + """Commit Search Result Item + + Commit Search Result Item """ - login: str - id: int - user_view_type: NotRequired[str] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] url: str + sha: str html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - name: Union[str, None] - company: Union[str, None] - blog: Union[str, None] - location: Union[str, None] - email: Union[str, None] - notification_email: NotRequired[Union[str, None]] - hireable: Union[bool, None] - bio: Union[str, None] - twitter_username: NotRequired[Union[str, None]] - public_repos: int - public_gists: int - followers: int - following: int - created_at: datetime - updated_at: datetime - private_gists: int - total_private_repos: int - owned_private_repos: int - disk_usage: int - collaborators: int - two_factor_authentication: bool - plan: NotRequired[PrivateUserPropPlanType] - business_plus: NotRequired[bool] - ldap_dn: NotRequired[str] - - -class PrivateUserPropPlanType(TypedDict): - """PrivateUserPropPlan""" - - collaborators: int - name: str - space: int - private_repos: int + comments_url: str + commit: CommitSearchResultItemPropCommitType + author: Union[None, SimpleUserType] + committer: Union[None, GitUserType] + parents: list[CommitSearchResultItemPropParentsItemsType] + repository: MinimalRepositoryType + score: float + node_id: str + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + + +class CommitSearchResultItemPropParentsItemsType(TypedDict): + """CommitSearchResultItemPropParentsItems""" + + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] + + +class SearchCommitsGetResponse200Type(TypedDict): + """SearchCommitsGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[CommitSearchResultItemType] __all__ = ( - "PrivateUserPropPlanType", - "PrivateUserType", + "CommitSearchResultItemPropParentsItemsType", + "CommitSearchResultItemType", + "SearchCommitsGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0432.py b/githubkit/versions/ghec_v2022_11_28/types/group_0432.py index 6be52538b..d473df9ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0432.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0432.py @@ -9,17 +9,43 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0245 import GitUserType +from .group_0246 import VerificationType -class CodespacesUserPublicKeyType(TypedDict): - """CodespacesUserPublicKey - The public key used for setting user Codespaces' Secrets. - """ +class CommitSearchResultItemPropCommitType(TypedDict): + """CommitSearchResultItemPropCommit""" - key_id: str - key: str + author: CommitSearchResultItemPropCommitPropAuthorType + committer: Union[None, GitUserType] + comment_count: int + message: str + tree: CommitSearchResultItemPropCommitPropTreeType + url: str + verification: NotRequired[VerificationType] -__all__ = ("CodespacesUserPublicKeyType",) +class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): + """CommitSearchResultItemPropCommitPropAuthor""" + + name: str + email: str + date: datetime + + +class CommitSearchResultItemPropCommitPropTreeType(TypedDict): + """CommitSearchResultItemPropCommitPropTree""" + + sha: str + url: str + + +__all__ = ( + "CommitSearchResultItemPropCommitPropAuthorType", + "CommitSearchResultItemPropCommitPropTreeType", + "CommitSearchResultItemPropCommitType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0433.py b/githubkit/versions/ghec_v2022_11_28/types/group_0433.py index 2b50d37d0..b10915ef1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0433.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0433.py @@ -10,24 +10,112 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0020 import RepositoryType +from .group_0136 import MilestoneType +from .group_0137 import ReactionRollupType +from .group_0429 import SearchResultTextMatchesItemsType -class CodespaceExportDetailsType(TypedDict): - """Fetches information about an export of a codespace. - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest +class IssueSearchResultItemType(TypedDict): + """Issue Search Result Item + + Issue Search Result Item """ - state: NotRequired[Union[str, None]] - completed_at: NotRequired[Union[datetime, None]] - branch: NotRequired[Union[str, None]] - sha: NotRequired[Union[str, None]] - id: NotRequired[str] - export_url: NotRequired[str] - html_url: NotRequired[Union[str, None]] + url: str + repository_url: str + labels_url: str + comments_url: str + events_url: str + html_url: str + id: int + node_id: str + number: int + title: str + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + assignees: NotRequired[Union[list[SimpleUserType], None]] + user: Union[None, SimpleUserType] + labels: list[IssueSearchResultItemPropLabelsItemsType] + sub_issues_summary: NotRequired[IssueSearchResultItemPropSubIssuesSummaryType] + state: str + state_reason: NotRequired[Union[str, None]] + assignee: Union[None, SimpleUserType] + milestone: Union[None, MilestoneType] + comments: int + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] + body: NotRequired[str] + score: float + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + draft: NotRequired[bool] + repository: NotRequired[RepositoryType] + body_html: NotRequired[str] + body_text: NotRequired[str] + timeline_url: NotRequired[str] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +class IssueSearchResultItemPropLabelsItemsType(TypedDict): + """IssueSearchResultItemPropLabelsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + name: NotRequired[str] + color: NotRequired[str] + default: NotRequired[bool] + description: NotRequired[Union[str, None]] + + +class IssueSearchResultItemPropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class IssueSearchResultItemPropPullRequestType(TypedDict): + """IssueSearchResultItemPropPullRequest""" + + merged_at: NotRequired[Union[datetime, None]] + diff_url: Union[str, None] + html_url: Union[str, None] + patch_url: Union[str, None] + url: Union[str, None] + + +class SearchIssuesGetResponse200Type(TypedDict): + """SearchIssuesGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[IssueSearchResultItemType] -__all__ = ("CodespaceExportDetailsType",) +__all__ = ( + "IssueSearchResultItemPropLabelsItemsType", + "IssueSearchResultItemPropPullRequestType", + "IssueSearchResultItemPropSubIssuesSummaryType", + "IssueSearchResultItemType", + "SearchIssuesGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0434.py b/githubkit/versions/ghec_v2022_11_28/types/group_0434.py index bbe0e4230..588d38c32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0434.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0434.py @@ -9,95 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0156 import CodespaceMachineType -from .group_0193 import FullRepositoryType +from .group_0429 import SearchResultTextMatchesItemsType -class CodespaceWithFullRepositoryType(TypedDict): - """Codespace +class LabelSearchResultItemType(TypedDict): + """Label Search Result Item - A codespace. + Label Search Result Item """ id: int - name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: FullRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] - created_at: datetime - updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] + node_id: str url: str - git_status: CodespaceWithFullRepositoryPropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: list[str] - runtime_constraints: NotRequired[ - CodespaceWithFullRepositoryPropRuntimeConstraintsType - ] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] - - -class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): - """CodespaceWithFullRepositoryPropGitStatus - - Details about the codespace's git repository. - """ - - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] + name: str + color: str + default: bool + description: Union[str, None] + score: float + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] -class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" +class SearchLabelsGetResponse200Type(TypedDict): + """SearchLabelsGetResponse200""" - allowed_port_privacy_settings: NotRequired[Union[list[str], None]] + total_count: int + incomplete_results: bool + items: list[LabelSearchResultItemType] __all__ = ( - "CodespaceWithFullRepositoryPropGitStatusType", - "CodespaceWithFullRepositoryPropRuntimeConstraintsType", - "CodespaceWithFullRepositoryType", + "LabelSearchResultItemType", + "SearchLabelsGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0435.py b/githubkit/versions/ghec_v2022_11_28/types/group_0435.py index 767832678..94786c155 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0435.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0435.py @@ -9,20 +9,132 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType +from .group_0429 import SearchResultTextMatchesItemsType -class EmailType(TypedDict): - """Email - Email +class RepoSearchResultItemType(TypedDict): + """Repo Search Result Item + + Repo Search Result Item """ - email: str - primary: bool - verified: bool - visibility: Union[str, None] + id: int + node_id: str + name: str + full_name: str + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + created_at: datetime + updated_at: datetime + pushed_at: datetime + homepage: Union[str, None] + size: int + stargazers_count: int + watchers_count: int + language: Union[str, None] + forks_count: int + open_issues_count: int + master_branch: NotRequired[str] + default_branch: str + score: float + forks_url: str + keys_url: str + collaborators_url: str + teams_url: str + hooks_url: str + issue_events_url: str + events_url: str + assignees_url: str + branches_url: str + tags_url: str + blobs_url: str + git_tags_url: str + git_refs_url: str + trees_url: str + statuses_url: str + languages_url: str + stargazers_url: str + contributors_url: str + subscribers_url: str + subscription_url: str + commits_url: str + git_commits_url: str + comments_url: str + issue_comment_url: str + contents_url: str + compare_url: str + merges_url: str + archive_url: str + downloads_url: str + issues_url: str + pulls_url: str + milestones_url: str + notifications_url: str + labels_url: str + releases_url: str + deployments_url: str + git_url: str + ssh_url: str + clone_url: str + svn_url: str + forks: int + open_issues: int + watchers: int + topics: NotRequired[list[str]] + mirror_url: Union[str, None] + has_issues: bool + has_projects: bool + has_pages: bool + has_wiki: bool + has_downloads: bool + has_discussions: NotRequired[bool] + archived: bool + disabled: bool + visibility: NotRequired[str] + license_: Union[None, LicenseSimpleType] + permissions: NotRequired[RepoSearchResultItemPropPermissionsType] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + temp_clone_token: NotRequired[Union[str, None]] + allow_merge_commit: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + is_template: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + + +class RepoSearchResultItemPropPermissionsType(TypedDict): + """RepoSearchResultItemPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +class SearchRepositoriesGetResponse200Type(TypedDict): + """SearchRepositoriesGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[RepoSearchResultItemType] -__all__ = ("EmailType",) +__all__ = ( + "RepoSearchResultItemPropPermissionsType", + "RepoSearchResultItemType", + "SearchRepositoriesGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0436.py b/githubkit/versions/ghec_v2022_11_28/types/group_0436.py index 324df51fb..40cec07e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0436.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0436.py @@ -10,69 +10,83 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0429 import SearchResultTextMatchesItemsType -class GpgKeyType(TypedDict): - """GPG Key - A unique encryption key +class TopicSearchResultItemType(TypedDict): + """Topic Search Result Item + + Topic Search Result Item """ - id: int - name: NotRequired[Union[str, None]] - primary_key_id: Union[int, None] - key_id: str - public_key: str - emails: list[GpgKeyPropEmailsItemsType] - subkeys: list[GpgKeyPropSubkeysItemsType] - can_sign: bool - can_encrypt_comms: bool - can_encrypt_storage: bool - can_certify: bool + name: str + display_name: Union[str, None] + short_description: Union[str, None] + description: Union[str, None] + created_by: Union[str, None] + released: Union[str, None] created_at: datetime - expires_at: Union[datetime, None] - revoked: bool - raw_key: Union[str, None] + updated_at: datetime + featured: bool + curated: bool + score: float + repository_count: NotRequired[Union[int, None]] + logo_url: NotRequired[Union[str, None]] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + related: NotRequired[Union[list[TopicSearchResultItemPropRelatedItemsType], None]] + aliases: NotRequired[Union[list[TopicSearchResultItemPropAliasesItemsType], None]] + + +class TopicSearchResultItemPropRelatedItemsType(TypedDict): + """TopicSearchResultItemPropRelatedItems""" + + topic_relation: NotRequired[ + TopicSearchResultItemPropRelatedItemsPropTopicRelationType + ] + + +class TopicSearchResultItemPropRelatedItemsPropTopicRelationType(TypedDict): + """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" + + id: NotRequired[int] + name: NotRequired[str] + topic_id: NotRequired[int] + relation_type: NotRequired[str] -class GpgKeyPropEmailsItemsType(TypedDict): - """GpgKeyPropEmailsItems""" +class TopicSearchResultItemPropAliasesItemsType(TypedDict): + """TopicSearchResultItemPropAliasesItems""" - email: NotRequired[str] - verified: NotRequired[bool] + topic_relation: NotRequired[ + TopicSearchResultItemPropAliasesItemsPropTopicRelationType + ] -class GpgKeyPropSubkeysItemsType(TypedDict): - """GpgKeyPropSubkeysItems""" +class TopicSearchResultItemPropAliasesItemsPropTopicRelationType(TypedDict): + """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" id: NotRequired[int] - primary_key_id: NotRequired[int] - key_id: NotRequired[str] - public_key: NotRequired[str] - emails: NotRequired[list[GpgKeyPropSubkeysItemsPropEmailsItemsType]] - subkeys: NotRequired[list[Any]] - can_sign: NotRequired[bool] - can_encrypt_comms: NotRequired[bool] - can_encrypt_storage: NotRequired[bool] - can_certify: NotRequired[bool] - created_at: NotRequired[str] - expires_at: NotRequired[Union[str, None]] - raw_key: NotRequired[Union[str, None]] - revoked: NotRequired[bool] + name: NotRequired[str] + topic_id: NotRequired[int] + relation_type: NotRequired[str] -class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): - """GpgKeyPropSubkeysItemsPropEmailsItems""" +class SearchTopicsGetResponse200Type(TypedDict): + """SearchTopicsGetResponse200""" - email: NotRequired[str] - verified: NotRequired[bool] + total_count: int + incomplete_results: bool + items: list[TopicSearchResultItemType] __all__ = ( - "GpgKeyPropEmailsItemsType", - "GpgKeyPropSubkeysItemsPropEmailsItemsType", - "GpgKeyPropSubkeysItemsType", - "GpgKeyType", + "SearchTopicsGetResponse200Type", + "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", + "TopicSearchResultItemPropAliasesItemsType", + "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", + "TopicSearchResultItemPropRelatedItemsType", + "TopicSearchResultItemType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0437.py b/githubkit/versions/ghec_v2022_11_28/types/group_0437.py index 6c95fc7a9..c26c0dc3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0437.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0437.py @@ -10,22 +10,64 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0429 import SearchResultTextMatchesItemsType -class KeyType(TypedDict): - """Key - Key +class UserSearchResultItemType(TypedDict): + """User Search Result Item + + User Search Result Item """ - key: str + login: str id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] url: str - title: str - created_at: datetime - verified: bool - read_only: bool + html_url: str + followers_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + received_events_url: str + type: str + score: float + following_url: str + gists_url: str + starred_url: str + events_url: str + public_repos: NotRequired[int] + public_gists: NotRequired[int] + followers: NotRequired[int] + following: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + name: NotRequired[Union[str, None]] + bio: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + site_admin: bool + hireable: NotRequired[Union[bool, None]] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + blog: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + suspended_at: NotRequired[Union[datetime, None]] + user_view_type: NotRequired[str] + + +class SearchUsersGetResponse200Type(TypedDict): + """SearchUsersGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[UserSearchResultItemType] -__all__ = ("KeyType",) +__all__ = ( + "SearchUsersGetResponse200Type", + "UserSearchResultItemType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0438.py b/githubkit/versions/ghec_v2022_11_28/types/group_0438.py index d4d24c478..855325c4a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0438.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0438.py @@ -13,38 +13,68 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0142 import MarketplaceListingPlanType +class PrivateUserType(TypedDict): + """Private User -class UserMarketplacePurchaseType(TypedDict): - """User Marketplace Purchase - - User Marketplace Purchase + Private User """ - billing_cycle: str - next_billing_date: Union[datetime, None] - unit_count: Union[int, None] - on_free_trial: bool - free_trial_ends_on: Union[datetime, None] - updated_at: Union[datetime, None] - account: MarketplaceAccountType - plan: MarketplaceListingPlanType + login: str + id: int + user_view_type: NotRequired[str] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + name: Union[str, None] + company: Union[str, None] + blog: Union[str, None] + location: Union[str, None] + email: Union[str, None] + notification_email: NotRequired[Union[str, None]] + hireable: Union[bool, None] + bio: Union[str, None] + twitter_username: NotRequired[Union[str, None]] + public_repos: int + public_gists: int + followers: int + following: int + created_at: datetime + updated_at: datetime + private_gists: int + total_private_repos: int + owned_private_repos: int + disk_usage: int + collaborators: int + two_factor_authentication: bool + plan: NotRequired[PrivateUserPropPlanType] + business_plus: NotRequired[bool] + ldap_dn: NotRequired[str] -class MarketplaceAccountType(TypedDict): - """Marketplace Account""" +class PrivateUserPropPlanType(TypedDict): + """PrivateUserPropPlan""" - url: str - id: int - type: str - node_id: NotRequired[str] - login: str - email: NotRequired[Union[str, None]] - organization_billing_email: NotRequired[Union[str, None]] + collaborators: int + name: str + space: int + private_repos: int __all__ = ( - "MarketplaceAccountType", - "UserMarketplacePurchaseType", + "PrivateUserPropPlanType", + "PrivateUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0439.py b/githubkit/versions/ghec_v2022_11_28/types/group_0439.py index f892fc0d3..6be52538b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0439.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0439.py @@ -12,14 +12,14 @@ from typing_extensions import TypedDict -class SocialAccountType(TypedDict): - """Social account +class CodespacesUserPublicKeyType(TypedDict): + """CodespacesUserPublicKey - Social media account + The public key used for setting user Codespaces' Secrets. """ - provider: str - url: str + key_id: str + key: str -__all__ = ("SocialAccountType",) +__all__ = ("CodespacesUserPublicKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0440.py b/githubkit/versions/ghec_v2022_11_28/types/group_0440.py index a3c3f348b..2b50d37d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0440.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0440.py @@ -10,19 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class SshSigningKeyType(TypedDict): - """SSH Signing Key +class CodespaceExportDetailsType(TypedDict): + """Fetches information about an export of a codespace. - A public SSH key used to sign Git commits + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - key: str - id: int - title: str - created_at: datetime + state: NotRequired[Union[str, None]] + completed_at: NotRequired[Union[datetime, None]] + branch: NotRequired[Union[str, None]] + sha: NotRequired[Union[str, None]] + id: NotRequired[str] + export_url: NotRequired[str] + html_url: NotRequired[Union[str, None]] -__all__ = ("SshSigningKeyType",) +__all__ = ("CodespaceExportDetailsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0441.py b/githubkit/versions/ghec_v2022_11_28/types/group_0441.py index eed37f31e..9627b3d56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0441.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0441.py @@ -10,19 +10,94 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0019 import RepositoryType +from .group_0003 import SimpleUserType +from .group_0163 import CodespaceMachineType +from .group_0200 import FullRepositoryType -class StarredRepositoryType(TypedDict): - """Starred Repository +class CodespaceWithFullRepositoryType(TypedDict): + """Codespace - Starred Repository + A codespace. """ - starred_at: datetime - repo: RepositoryType + id: int + name: str + display_name: NotRequired[Union[str, None]] + environment_id: Union[str, None] + owner: SimpleUserType + billable_owner: SimpleUserType + repository: FullRepositoryType + machine: Union[None, CodespaceMachineType] + devcontainer_path: NotRequired[Union[str, None]] + prebuild: Union[bool, None] + created_at: datetime + updated_at: datetime + last_used_at: datetime + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] + url: str + git_status: CodespaceWithFullRepositoryPropGitStatusType + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] + idle_timeout_minutes: Union[int, None] + web_url: str + machines_url: str + start_url: str + stop_url: str + publish_url: NotRequired[Union[str, None]] + pulls_url: Union[str, None] + recent_folders: list[str] + runtime_constraints: NotRequired[ + CodespaceWithFullRepositoryPropRuntimeConstraintsType + ] + pending_operation: NotRequired[Union[bool, None]] + pending_operation_disabled_reason: NotRequired[Union[str, None]] + idle_timeout_notice: NotRequired[Union[str, None]] + retention_period_minutes: NotRequired[Union[int, None]] + retention_expires_at: NotRequired[Union[datetime, None]] -__all__ = ("StarredRepositoryType",) +class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): + """CodespaceWithFullRepositoryPropGitStatus + + Details about the codespace's git repository. + """ + + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] + + +class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" + + allowed_port_privacy_settings: NotRequired[Union[list[str], None]] + + +__all__ = ( + "CodespaceWithFullRepositoryPropGitStatusType", + "CodespaceWithFullRepositoryPropRuntimeConstraintsType", + "CodespaceWithFullRepositoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0442.py b/githubkit/versions/ghec_v2022_11_28/types/group_0442.py index d66bf379e..767832678 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0442.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0442.py @@ -9,26 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class HovercardType(TypedDict): - """Hovercard +class EmailType(TypedDict): + """Email - Hovercard + Email """ - contexts: list[HovercardPropContextsItemsType] + email: str + primary: bool + verified: bool + visibility: Union[str, None] -class HovercardPropContextsItemsType(TypedDict): - """HovercardPropContextsItems""" - - message: str - octicon: str - - -__all__ = ( - "HovercardPropContextsItemsType", - "HovercardType", -) +__all__ = ("EmailType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0443.py b/githubkit/versions/ghec_v2022_11_28/types/group_0443.py index 04b787e6a..324df51fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0443.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0443.py @@ -9,17 +9,70 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Union +from typing_extensions import NotRequired, TypedDict -class KeySimpleType(TypedDict): - """Key Simple +class GpgKeyType(TypedDict): + """GPG Key - Key Simple + A unique encryption key """ id: int - key: str + name: NotRequired[Union[str, None]] + primary_key_id: Union[int, None] + key_id: str + public_key: str + emails: list[GpgKeyPropEmailsItemsType] + subkeys: list[GpgKeyPropSubkeysItemsType] + can_sign: bool + can_encrypt_comms: bool + can_encrypt_storage: bool + can_certify: bool + created_at: datetime + expires_at: Union[datetime, None] + revoked: bool + raw_key: Union[str, None] -__all__ = ("KeySimpleType",) +class GpgKeyPropEmailsItemsType(TypedDict): + """GpgKeyPropEmailsItems""" + + email: NotRequired[str] + verified: NotRequired[bool] + + +class GpgKeyPropSubkeysItemsType(TypedDict): + """GpgKeyPropSubkeysItems""" + + id: NotRequired[int] + primary_key_id: NotRequired[int] + key_id: NotRequired[str] + public_key: NotRequired[str] + emails: NotRequired[list[GpgKeyPropSubkeysItemsPropEmailsItemsType]] + subkeys: NotRequired[list[Any]] + can_sign: NotRequired[bool] + can_encrypt_comms: NotRequired[bool] + can_encrypt_storage: NotRequired[bool] + can_certify: NotRequired[bool] + created_at: NotRequired[str] + expires_at: NotRequired[Union[str, None]] + raw_key: NotRequired[Union[str, None]] + revoked: NotRequired[bool] + + +class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): + """GpgKeyPropSubkeysItemsPropEmailsItems""" + + email: NotRequired[str] + verified: NotRequired[bool] + + +__all__ = ( + "GpgKeyPropEmailsItemsType", + "GpgKeyPropSubkeysItemsPropEmailsItemsType", + "GpgKeyPropSubkeysItemsType", + "GpgKeyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0444.py b/githubkit/versions/ghec_v2022_11_28/types/group_0444.py index c148eac40..6c95fc7a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0444.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0444.py @@ -10,31 +10,22 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterpriseWebhooksType(TypedDict): - """Enterprise +class KeyType(TypedDict): + """Key - An enterprise on GitHub. Webhook payloads contain the `enterprise` property when - the webhook is configured - on an enterprise account or an organization that's part of an enterprise - account. For more information, - see "[About enterprise accounts](https://docs.github.com/enterprise- - cloud@latest//admin/overview/about-enterprise-accounts)." + Key """ - description: NotRequired[Union[str, None]] - html_url: str - website_url: NotRequired[Union[str, None]] + key: str id: int - node_id: str - name: str - slug: str - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - avatar_url: str + url: str + title: str + created_at: datetime + verified: bool + read_only: bool -__all__ = ("EnterpriseWebhooksType",) +__all__ = ("KeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0445.py b/githubkit/versions/ghec_v2022_11_28/types/group_0445.py index 6a6fdd608..0e204a6c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0445.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0445.py @@ -9,22 +9,42 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0149 import MarketplaceListingPlanType -class SimpleInstallationType(TypedDict): - """Simple Installation - The GitHub App installation. Webhook payloads contain the `installation` - property when the event is configured - for and sent to a GitHub App. For more information, - see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise- - cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks- - with-github-apps)." +class UserMarketplacePurchaseType(TypedDict): + """User Marketplace Purchase + + User Marketplace Purchase """ + billing_cycle: str + next_billing_date: Union[datetime, None] + unit_count: Union[int, None] + on_free_trial: bool + free_trial_ends_on: Union[datetime, None] + updated_at: Union[datetime, None] + account: MarketplaceAccountType + plan: MarketplaceListingPlanType + + +class MarketplaceAccountType(TypedDict): + """Marketplace Account""" + + url: str id: int - node_id: str + type: str + node_id: NotRequired[str] + login: str + email: NotRequired[Union[str, None]] + organization_billing_email: NotRequired[Union[str, None]] -__all__ = ("SimpleInstallationType",) +__all__ = ( + "MarketplaceAccountType", + "UserMarketplacePurchaseType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0446.py b/githubkit/versions/ghec_v2022_11_28/types/group_0446.py index b52264ecb..f892fc0d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0446.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0446.py @@ -9,31 +9,17 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class OrganizationSimpleWebhooksType(TypedDict): - """Organization Simple +class SocialAccountType(TypedDict): + """Social account - A GitHub organization. Webhook payloads contain the `organization` property when - the webhook is configured for an - organization, or when the event occurs from activity in a repository owned by an - organization. + Social media account """ - login: str - id: int - node_id: str + provider: str url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] -__all__ = ("OrganizationSimpleWebhooksType",) +__all__ = ("SocialAccountType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0447.py b/githubkit/versions/ghec_v2022_11_28/types/group_0447.py index 36c16d179..a3c3f348b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0447.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0447.py @@ -10,280 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0018 import LicenseSimpleType +class SshSigningKeyType(TypedDict): + """SSH Signing Key -class RepositoryWebhooksType(TypedDict): - """Repository - - The repository on GitHub where the event occurred. Webhook payloads contain the - `repository` property - when the event occurs from activity in a repository. + A public SSH key used to sign Git commits """ + key: str id: int - node_id: str - name: str - full_name: str - license_: Union[None, LicenseSimpleType] - organization: NotRequired[Union[None, SimpleUserType]] - forks: int - permissions: NotRequired[RepositoryWebhooksPropPermissionsType] - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - custom_properties: NotRequired[RepositoryWebhooksPropCustomPropertiesType] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - has_discussions: NotRequired[bool] - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - template_repository: NotRequired[ - Union[RepositoryWebhooksPropTemplateRepositoryType, None] - ] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - open_issues: int - watchers: int - master_branch: NotRequired[str] - starred_at: NotRequired[str] - anonymous_access_enabled: NotRequired[bool] - - -class RepositoryWebhooksPropPermissionsType(TypedDict): - """RepositoryWebhooksPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] - - -RepositoryWebhooksPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""RepositoryWebhooksPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class RepositoryWebhooksPropTemplateRepositoryType(TypedDict): - """RepositoryWebhooksPropTemplateRepository""" - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - full_name: NotRequired[str] - owner: NotRequired[RepositoryWebhooksPropTemplateRepositoryPropOwnerType] - private: NotRequired[bool] - html_url: NotRequired[str] - description: NotRequired[str] - fork: NotRequired[bool] - url: NotRequired[str] - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - forks_url: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - notifications_url: NotRequired[str] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - ssh_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - clone_url: NotRequired[str] - mirror_url: NotRequired[str] - hooks_url: NotRequired[str] - svn_url: NotRequired[str] - homepage: NotRequired[str] - language: NotRequired[str] - forks_count: NotRequired[int] - stargazers_count: NotRequired[int] - watchers_count: NotRequired[int] - size: NotRequired[int] - default_branch: NotRequired[str] - open_issues_count: NotRequired[int] - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_pages: NotRequired[bool] - has_downloads: NotRequired[bool] - archived: NotRequired[bool] - disabled: NotRequired[bool] - visibility: NotRequired[str] - pushed_at: NotRequired[str] - created_at: NotRequired[str] - updated_at: NotRequired[str] - permissions: NotRequired[ - RepositoryWebhooksPropTemplateRepositoryPropPermissionsType - ] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_merge_commit: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - - -class RepositoryWebhooksPropTemplateRepositoryPropOwnerType(TypedDict): - """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - - -class RepositoryWebhooksPropTemplateRepositoryPropPermissionsType(TypedDict): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] + title: str + created_at: datetime -__all__ = ( - "RepositoryWebhooksPropCustomPropertiesType", - "RepositoryWebhooksPropPermissionsType", - "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", - "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", - "RepositoryWebhooksPropTemplateRepositoryType", - "RepositoryWebhooksType", -) +__all__ = ("SshSigningKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0448.py b/githubkit/versions/ghec_v2022_11_28/types/group_0448.py index 40a2b0a13..de982a527 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0448.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0448.py @@ -10,51 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0020 import RepositoryType -class WebhooksRuleType(TypedDict): - """branch protection rule - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/enterprise-cloud@latest//github/administering- - a-repository/defining-the-mergeability-of-pull-requests/about-protected- - branches#about-branch-protection-settings) applied to branches that match the - name. Binary settings are boolean. Multi-level configurations are one of `off`, - `non_admins`, or `everyone`. Actor and build lists are arrays of strings. +class StarredRepositoryType(TypedDict): + """Starred Repository + + Starred Repository """ - admin_enforced: bool - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] - authorized_actor_names: list[str] - authorized_actors_only: bool - authorized_dismissal_actors_only: bool - create_protected: NotRequired[bool] - created_at: datetime - dismiss_stale_reviews_on_push: bool - id: int - ignore_approvals_from_contributors: bool - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] - lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] - lock_allows_fork_sync: NotRequired[bool] - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] - name: str - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] - repository_id: int - require_code_owner_review: bool - require_last_push_approval: NotRequired[bool] - required_approving_review_count: int - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] - required_status_checks: list[str] - required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] - signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] - strict_required_status_checks_policy: bool - updated_at: datetime - - -__all__ = ("WebhooksRuleType",) + starred_at: datetime + repo: RepositoryType + + +__all__ = ("StarredRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0449.py b/githubkit/versions/ghec_v2022_11_28/types/group_0449.py index ff46b21c5..d66bf379e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0449.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0449.py @@ -9,23 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ExemptionResponseType(TypedDict): - """Exemption response +class HovercardType(TypedDict): + """Hovercard - A response to an exemption request by a delegated bypasser. + Hovercard """ - id: NotRequired[int] - reviewer_id: NotRequired[int] - reviewer_login: NotRequired[str] - status: NotRequired[Literal["approved", "rejected", "dismissed"]] - reviewer_comment: NotRequired[Union[str, None]] - created_at: NotRequired[datetime] + contexts: list[HovercardPropContextsItemsType] -__all__ = ("ExemptionResponseType",) +class HovercardPropContextsItemsType(TypedDict): + """HovercardPropContextsItems""" + + message: str + octicon: str + + +__all__ = ( + "HovercardPropContextsItemsType", + "HovercardType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0450.py b/githubkit/versions/ghec_v2022_11_28/types/group_0450.py index 9a000d6b8..04b787e6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0450.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0450.py @@ -9,100 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0449 import ExemptionResponseType +class KeySimpleType(TypedDict): + """Key Simple -class ExemptionRequestType(TypedDict): - """Exemption Request - - A request from a user to be exempted from a set of rules. + Key Simple """ - id: NotRequired[int] - number: NotRequired[int] - repository_id: NotRequired[int] - requester_id: NotRequired[int] - requester_login: NotRequired[str] - request_type: NotRequired[Literal["push_ruleset_bypass", "secret_scanning"]] - exemption_request_data: NotRequired[ - Union[ExemptionRequestPushRulesetBypassType, ExemptionRequestSecretScanningType] - ] - resource_identifier: NotRequired[str] - status: NotRequired[Literal["pending", "rejected", "cancelled", "completed"]] - requester_comment: NotRequired[Union[str, None]] - metadata: NotRequired[Union[ExemptionRequestSecretScanningMetadataType, None]] - expires_at: NotRequired[datetime] - created_at: NotRequired[datetime] - responses: NotRequired[Union[list[ExemptionResponseType], None]] - html_url: NotRequired[str] - - -class ExemptionRequestSecretScanningMetadataType(TypedDict): - """Secret Scanning Push Protection Exemption Request Metadata - - Metadata for a secret scanning push protection exemption request. - """ - - label: NotRequired[str] - reason: NotRequired[Literal["fixed_later", "false_positive", "tests"]] - - -class ExemptionRequestPushRulesetBypassType(TypedDict): - """Push ruleset bypass exemption request data - - Push rules that are being requested to be bypassed. - """ - - type: NotRequired[Literal["push_ruleset_bypass"]] - data: NotRequired[list[ExemptionRequestPushRulesetBypassPropDataItemsType]] - - -class ExemptionRequestPushRulesetBypassPropDataItemsType(TypedDict): - """ExemptionRequestPushRulesetBypassPropDataItems""" - - ruleset_id: NotRequired[int] - ruleset_name: NotRequired[str] - total_violations: NotRequired[int] - rule_type: NotRequired[str] - - -class ExemptionRequestSecretScanningType(TypedDict): - """Secret scanning push protection exemption request data - - Secret scanning push protections that are being requested to be bypassed. - """ - - type: NotRequired[Literal["secret_scanning"]] - data: NotRequired[list[ExemptionRequestSecretScanningPropDataItemsType]] - - -class ExemptionRequestSecretScanningPropDataItemsType(TypedDict): - """ExemptionRequestSecretScanningPropDataItems""" - - secret_type: NotRequired[str] - locations: NotRequired[ - list[ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType] - ] - - -class ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType(TypedDict): - """ExemptionRequestSecretScanningPropDataItemsPropLocationsItems""" - - commit: NotRequired[str] - branch: NotRequired[str] - path: NotRequired[str] + id: int + key: str -__all__ = ( - "ExemptionRequestPushRulesetBypassPropDataItemsType", - "ExemptionRequestPushRulesetBypassType", - "ExemptionRequestSecretScanningMetadataType", - "ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType", - "ExemptionRequestSecretScanningPropDataItemsType", - "ExemptionRequestSecretScanningType", - "ExemptionRequestType", -) +__all__ = ("KeySimpleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0451.py b/githubkit/versions/ghec_v2022_11_28/types/group_0451.py index c8ef2326f..c148eac40 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0451.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0451.py @@ -10,51 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0008 import IntegrationType -from .group_0147 import MinimalRepositoryType -from .group_0220 import PullRequestMinimalType +class EnterpriseWebhooksType(TypedDict): + """Enterprise -class SimpleCheckSuiteType(TypedDict): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + An enterprise on GitHub. Webhook payloads contain the `enterprise` property when + the webhook is configured + on an enterprise account or an organization that's part of an enterprise + account. For more information, + see "[About enterprise accounts](https://docs.github.com/enterprise- + cloud@latest//admin/overview/about-enterprise-accounts)." """ - after: NotRequired[Union[str, None]] - app: NotRequired[Union[IntegrationType, None]] - before: NotRequired[Union[str, None]] - conclusion: NotRequired[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] - created_at: NotRequired[datetime] - head_branch: NotRequired[Union[str, None]] - head_sha: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - pull_requests: NotRequired[list[PullRequestMinimalType]] - repository: NotRequired[MinimalRepositoryType] - status: NotRequired[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] - updated_at: NotRequired[datetime] - url: NotRequired[str] - - -__all__ = ("SimpleCheckSuiteType",) + description: NotRequired[Union[str, None]] + html_url: str + website_url: NotRequired[Union[str, None]] + id: int + node_id: str + name: str + slug: str + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + avatar_url: str + + +__all__ = ("EnterpriseWebhooksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0452.py b/githubkit/versions/ghec_v2022_11_28/types/group_0452.py index 6100283a1..6a6fdd608 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0452.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0452.py @@ -9,67 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0008 import IntegrationType -from .group_0220 import PullRequestMinimalType -from .group_0247 import DeploymentSimpleType -from .group_0451 import SimpleCheckSuiteType +class SimpleInstallationType(TypedDict): + """Simple Installation -class CheckRunWithSimpleCheckSuiteType(TypedDict): - """CheckRun - - A check performed on the code of a given code change + The GitHub App installation. Webhook payloads contain the `installation` + property when the event is configured + for and sent to a GitHub App. For more information, + see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise- + cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks- + with-github-apps)." """ - app: Union[None, IntegrationType, None] - check_suite: SimpleCheckSuiteType - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - deployment: NotRequired[DeploymentSimpleType] - details_url: str - external_id: str - head_sha: str - html_url: str id: int - name: str node_id: str - output: CheckRunWithSimpleCheckSuitePropOutputType - pull_requests: list[PullRequestMinimalType] - started_at: datetime - status: Literal["queued", "in_progress", "completed", "pending"] - url: str - - -class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): - """CheckRunWithSimpleCheckSuitePropOutput""" - - annotations_count: int - annotations_url: str - summary: Union[str, None] - text: Union[str, None] - title: Union[str, None] -__all__ = ( - "CheckRunWithSimpleCheckSuitePropOutputType", - "CheckRunWithSimpleCheckSuiteType", -) +__all__ = ("SimpleInstallationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0453.py b/githubkit/versions/ghec_v2022_11_28/types/group_0453.py index a55d555bc..b52264ecb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0453.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0453.py @@ -10,26 +10,30 @@ from __future__ import annotations from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksDeployKeyType(TypedDict): - """WebhooksDeployKey +class OrganizationSimpleWebhooksType(TypedDict): + """Organization Simple - The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- - keys/deploy-keys#get-a-deploy-key) resource. + A GitHub organization. Webhook payloads contain the `organization` property when + the webhook is configured for an + organization, or when the event occurs from activity in a repository owned by an + organization. """ - added_by: NotRequired[Union[str, None]] - created_at: str + login: str id: int - key: str - last_used: NotRequired[Union[str, None]] - read_only: bool - title: str + node_id: str url: str - verified: bool - enabled: NotRequired[bool] + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] -__all__ = ("WebhooksDeployKeyType",) +__all__ = ("OrganizationSimpleWebhooksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0454.py b/githubkit/versions/ghec_v2022_11_28/types/group_0454.py index 34eb3310b..5ba060a68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0454.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0454.py @@ -10,22 +10,280 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType -class WebhooksWorkflowType(TypedDict): - """Workflow""" - badge_url: str - created_at: datetime - html_url: str +class RepositoryWebhooksType(TypedDict): + """Repository + + The repository on GitHub where the event occurred. Webhook payloads contain the + `repository` property + when the event occurs from activity in a repository. + """ + id: int - name: str node_id: str - path: str - state: str - updated_at: datetime + name: str + full_name: str + license_: Union[None, LicenseSimpleType] + organization: NotRequired[Union[None, SimpleUserType]] + forks: int + permissions: NotRequired[RepositoryWebhooksPropPermissionsType] + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + custom_properties: NotRequired[RepositoryWebhooksPropCustomPropertiesType] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + has_discussions: NotRequired[bool] + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + template_repository: NotRequired[ + Union[RepositoryWebhooksPropTemplateRepositoryType, None] + ] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + open_issues: int + watchers: int + master_branch: NotRequired[str] + starred_at: NotRequired[str] + anonymous_access_enabled: NotRequired[bool] + + +class RepositoryWebhooksPropPermissionsType(TypedDict): + """RepositoryWebhooksPropPermissions""" + + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + + +RepositoryWebhooksPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""RepositoryWebhooksPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class RepositoryWebhooksPropTemplateRepositoryType(TypedDict): + """RepositoryWebhooksPropTemplateRepository""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + full_name: NotRequired[str] + owner: NotRequired[RepositoryWebhooksPropTemplateRepositoryPropOwnerType] + private: NotRequired[bool] + html_url: NotRequired[str] + description: NotRequired[str] + fork: NotRequired[bool] + url: NotRequired[str] + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + forks_url: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + notifications_url: NotRequired[str] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + ssh_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + clone_url: NotRequired[str] + mirror_url: NotRequired[str] + hooks_url: NotRequired[str] + svn_url: NotRequired[str] + homepage: NotRequired[str] + language: NotRequired[str] + forks_count: NotRequired[int] + stargazers_count: NotRequired[int] + watchers_count: NotRequired[int] + size: NotRequired[int] + default_branch: NotRequired[str] + open_issues_count: NotRequired[int] + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_pages: NotRequired[bool] + has_downloads: NotRequired[bool] + archived: NotRequired[bool] + disabled: NotRequired[bool] + visibility: NotRequired[str] + pushed_at: NotRequired[str] + created_at: NotRequired[str] + updated_at: NotRequired[str] + permissions: NotRequired[ + RepositoryWebhooksPropTemplateRepositoryPropPermissionsType + ] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_merge_commit: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + + +class RepositoryWebhooksPropTemplateRepositoryPropOwnerType(TypedDict): + """RepositoryWebhooksPropTemplateRepositoryPropOwner""" + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] + site_admin: NotRequired[bool] + + +class RepositoryWebhooksPropTemplateRepositoryPropPermissionsType(TypedDict): + """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" + + admin: NotRequired[bool] + maintain: NotRequired[bool] + push: NotRequired[bool] + triage: NotRequired[bool] + pull: NotRequired[bool] -__all__ = ("WebhooksWorkflowType",) +__all__ = ( + "RepositoryWebhooksPropCustomPropertiesType", + "RepositoryWebhooksPropPermissionsType", + "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", + "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", + "RepositoryWebhooksPropTemplateRepositoryType", + "RepositoryWebhooksType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0455.py b/githubkit/versions/ghec_v2022_11_28/types/group_0455.py index c93e49162..40a2b0a13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0455.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0455.py @@ -9,69 +9,52 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class WebhooksApproverType(TypedDict): - """WebhooksApprover""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewersItemsType(TypedDict): - """WebhooksReviewersItems""" - - reviewer: NotRequired[Union[WebhooksReviewersItemsPropReviewerType, None]] - type: NotRequired[Literal["User"]] - - -class WebhooksReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class WebhooksRuleType(TypedDict): + """branch protection rule + + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/enterprise-cloud@latest//github/administering- + a-repository/defining-the-mergeability-of-pull-requests/about-protected- + branches#about-branch-protection-settings) applied to branches that match the + name. Binary settings are boolean. Multi-level configurations are one of `off`, + `non_admins`, or `everyone`. Actor and build lists are arrays of strings. + """ + + admin_enforced: bool + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] + authorized_actor_names: list[str] + authorized_actors_only: bool + authorized_dismissal_actors_only: bool + create_protected: NotRequired[bool] + created_at: datetime + dismiss_stale_reviews_on_push: bool id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhooksApproverType", - "WebhooksReviewersItemsPropReviewerType", - "WebhooksReviewersItemsType", -) + ignore_approvals_from_contributors: bool + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] + lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] + lock_allows_fork_sync: NotRequired[bool] + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] + name: str + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] + repository_id: int + require_code_owner_review: bool + require_last_push_approval: NotRequired[bool] + required_approving_review_count: int + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] + required_status_checks: list[str] + required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] + signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] + strict_required_status_checks_policy: bool + updated_at: datetime + + +__all__ = ("WebhooksRuleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0456.py b/githubkit/versions/ghec_v2022_11_28/types/group_0456.py index 167cc5522..ff46b21c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0456.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0456.py @@ -9,20 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhooksWorkflowJobRunType(TypedDict): - """WebhooksWorkflowJobRun""" +class ExemptionResponseType(TypedDict): + """Exemption response - conclusion: None - created_at: str - environment: str - html_url: str - id: int - name: None - status: str - updated_at: str + A response to an exemption request by a delegated bypasser. + """ + id: NotRequired[int] + reviewer_id: NotRequired[int] + reviewer_login: NotRequired[str] + status: NotRequired[Literal["approved", "rejected", "dismissed"]] + reviewer_comment: NotRequired[Union[str, None]] + created_at: NotRequired[datetime] -__all__ = ("WebhooksWorkflowJobRunType",) + +__all__ = ("ExemptionResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0457.py b/githubkit/versions/ghec_v2022_11_28/types/group_0457.py index da4062d95..d30fac8e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0457.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0457.py @@ -9,35 +9,100 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0456 import ExemptionResponseType -class WebhooksUserType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] +class ExemptionRequestType(TypedDict): + """Exemption Request + + A request from a user to be exempted from a set of rules. + """ + + id: NotRequired[int] + number: NotRequired[int] + repository_id: NotRequired[int] + requester_id: NotRequired[int] + requester_login: NotRequired[str] + request_type: NotRequired[Literal["push_ruleset_bypass", "secret_scanning"]] + exemption_request_data: NotRequired[ + Union[ExemptionRequestPushRulesetBypassType, ExemptionRequestSecretScanningType] + ] + resource_identifier: NotRequired[str] + status: NotRequired[Literal["pending", "rejected", "cancelled", "completed"]] + requester_comment: NotRequired[Union[str, None]] + metadata: NotRequired[Union[ExemptionRequestSecretScanningMetadataType, None]] + expires_at: NotRequired[datetime] + created_at: NotRequired[datetime] + responses: NotRequired[Union[list[ExemptionResponseType], None]] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhooksUserType",) + + +class ExemptionRequestSecretScanningMetadataType(TypedDict): + """Secret Scanning Push Protection Exemption Request Metadata + + Metadata for a secret scanning push protection exemption request. + """ + + label: NotRequired[str] + reason: NotRequired[Literal["fixed_later", "false_positive", "tests"]] + + +class ExemptionRequestPushRulesetBypassType(TypedDict): + """Push ruleset bypass exemption request data + + Push rules that are being requested to be bypassed. + """ + + type: NotRequired[Literal["push_ruleset_bypass"]] + data: NotRequired[list[ExemptionRequestPushRulesetBypassPropDataItemsType]] + + +class ExemptionRequestPushRulesetBypassPropDataItemsType(TypedDict): + """ExemptionRequestPushRulesetBypassPropDataItems""" + + ruleset_id: NotRequired[int] + ruleset_name: NotRequired[str] + total_violations: NotRequired[int] + rule_type: NotRequired[str] + + +class ExemptionRequestSecretScanningType(TypedDict): + """Secret scanning push protection exemption request data + + Secret scanning push protections that are being requested to be bypassed. + """ + + type: NotRequired[Literal["secret_scanning"]] + data: NotRequired[list[ExemptionRequestSecretScanningPropDataItemsType]] + + +class ExemptionRequestSecretScanningPropDataItemsType(TypedDict): + """ExemptionRequestSecretScanningPropDataItems""" + + secret_type: NotRequired[str] + locations: NotRequired[ + list[ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType] + ] + + +class ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType(TypedDict): + """ExemptionRequestSecretScanningPropDataItemsPropLocationsItems""" + + commit: NotRequired[str] + branch: NotRequired[str] + path: NotRequired[str] + + +__all__ = ( + "ExemptionRequestPushRulesetBypassPropDataItemsType", + "ExemptionRequestPushRulesetBypassType", + "ExemptionRequestSecretScanningMetadataType", + "ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType", + "ExemptionRequestSecretScanningPropDataItemsType", + "ExemptionRequestSecretScanningType", + "ExemptionRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0458.py b/githubkit/versions/ghec_v2022_11_28/types/group_0458.py index 32906747e..0ab248431 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0458.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0458.py @@ -13,78 +13,48 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class WebhooksAnswerType(TypedDict): - """WebhooksAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", +from .group_0010 import IntegrationType +from .group_0154 import MinimalRepositoryType +from .group_0227 import PullRequestMinimalType + + +class SimpleCheckSuiteType(TypedDict): + """SimpleCheckSuite + + A suite of checks performed on the code of a given code change + """ + + after: NotRequired[Union[str, None]] + app: NotRequired[Union[IntegrationType, None]] + before: NotRequired[Union[str, None]] + conclusion: NotRequired[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] ] - body: str - child_comment_count: int - created_at: datetime - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: None - reactions: NotRequired[WebhooksAnswerPropReactionsType] - repository_url: str - updated_at: datetime - user: Union[WebhooksAnswerPropUserType, None] - - -class WebhooksAnswerPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksAnswerPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + created_at: NotRequired[datetime] + head_branch: NotRequired[Union[str, None]] + head_sha: NotRequired[str] + id: NotRequired[int] node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + pull_requests: NotRequired[list[PullRequestMinimalType]] + repository: NotRequired[MinimalRepositoryType] + status: NotRequired[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] + updated_at: NotRequired[datetime] url: NotRequired[str] - user_view_type: NotRequired[str] -__all__ = ( - "WebhooksAnswerPropReactionsType", - "WebhooksAnswerPropUserType", - "WebhooksAnswerType", -) +__all__ = ("SimpleCheckSuiteType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0459.py b/githubkit/versions/ghec_v2022_11_28/types/group_0459.py index 48f1a497e..4278b7c00 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0459.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0459.py @@ -13,152 +13,63 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0010 import IntegrationType +from .group_0227 import PullRequestMinimalType +from .group_0254 import DeploymentSimpleType +from .group_0458 import SimpleCheckSuiteType -class DiscussionType(TypedDict): - """Discussion - A Discussion in a repository. +class CheckRunWithSimpleCheckSuiteType(TypedDict): + """CheckRun + + A check performed on the code of a given code change """ - active_lock_reason: Union[str, None] - answer_chosen_at: Union[str, None] - answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] - answer_html_url: Union[str, None] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + app: Union[None, IntegrationType, None] + check_suite: SimpleCheckSuiteType + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], ] - body: str - category: DiscussionPropCategoryType - comments: int - created_at: datetime + deployment: NotRequired[DeploymentSimpleType] + details_url: str + external_id: str + head_sha: str html_url: str id: int - locked: bool - node_id: str - number: int - reactions: NotRequired[DiscussionPropReactionsType] - repository_url: str - state: Literal["open", "closed", "locked", "converting", "transferring"] - state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - user: Union[DiscussionPropUserType, None] - labels: NotRequired[list[LabelType]] - - -class LabelType(TypedDict): - """Label - - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). - """ - - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool - - -class DiscussionPropAnswerChosenByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class DiscussionPropCategoryType(TypedDict): - """DiscussionPropCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool name: str - node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str - - -class DiscussionPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + node_id: str + output: CheckRunWithSimpleCheckSuitePropOutputType + pull_requests: list[PullRequestMinimalType] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "pending"] url: str -class DiscussionPropUserType(TypedDict): - """User""" +class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): + """CheckRunWithSimpleCheckSuitePropOutput""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + annotations_count: int + annotations_url: str + summary: Union[str, None] + text: Union[str, None] + title: Union[str, None] __all__ = ( - "DiscussionPropAnswerChosenByType", - "DiscussionPropCategoryType", - "DiscussionPropReactionsType", - "DiscussionPropUserType", - "DiscussionType", - "LabelType", + "CheckRunWithSimpleCheckSuitePropOutputType", + "CheckRunWithSimpleCheckSuiteType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0460.py b/githubkit/versions/ghec_v2022_11_28/types/group_0460.py index 4c279958b..a55d555bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0460.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0460.py @@ -9,81 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhooksCommentType(TypedDict): - """WebhooksComment""" +class WebhooksDeployKeyType(TypedDict): + """WebhooksDeployKey - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int + The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- + keys/deploy-keys#get-a-deploy-key) resource. + """ + + added_by: NotRequired[Union[str, None]] created_at: str - discussion_id: int - html_url: str id: int - node_id: str - parent_id: Union[int, None] - reactions: WebhooksCommentPropReactionsType - repository_url: str - updated_at: str - user: Union[WebhooksCommentPropUserType, None] - - -class WebhooksCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + key: str + last_used: NotRequired[Union[str, None]] + read_only: bool + title: str url: str + verified: bool + enabled: NotRequired[bool] -class WebhooksCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhooksCommentPropReactionsType", - "WebhooksCommentPropUserType", - "WebhooksCommentType", -) +__all__ = ("WebhooksDeployKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0461.py b/githubkit/versions/ghec_v2022_11_28/types/group_0461.py index 469b744f3..34eb3310b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0461.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0461.py @@ -9,20 +9,23 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from typing_extensions import TypedDict -class WebhooksLabelType(TypedDict): - """Label""" +class WebhooksWorkflowType(TypedDict): + """Workflow""" - color: str - default: bool - description: Union[str, None] + badge_url: str + created_at: datetime + html_url: str id: int name: str node_id: str + path: str + state: str + updated_at: datetime url: str -__all__ = ("WebhooksLabelType",) +__all__ = ("WebhooksWorkflowType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0462.py b/githubkit/versions/ghec_v2022_11_28/types/group_0462.py index 60f7cc9c6..c93e49162 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0462.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0462.py @@ -9,17 +9,69 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhooksRepositoriesItemsType(TypedDict): - """WebhooksRepositoriesItems""" +class WebhooksApproverType(TypedDict): + """WebhooksApprover""" - full_name: str + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksReviewersItemsType(TypedDict): + """WebhooksReviewersItems""" + + reviewer: NotRequired[Union[WebhooksReviewersItemsPropReviewerType, None]] + type: NotRequired[Literal["User"]] + + +class WebhooksReviewersItemsPropReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - name: str - node_id: str - private: bool + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("WebhooksRepositoriesItemsType",) +__all__ = ( + "WebhooksApproverType", + "WebhooksReviewersItemsPropReviewerType", + "WebhooksReviewersItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0463.py b/githubkit/versions/ghec_v2022_11_28/types/group_0463.py index afa5d37c4..167cc5522 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0463.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0463.py @@ -12,14 +12,17 @@ from typing_extensions import TypedDict -class WebhooksRepositoriesAddedItemsType(TypedDict): - """WebhooksRepositoriesAddedItems""" +class WebhooksWorkflowJobRunType(TypedDict): + """WebhooksWorkflowJobRun""" - full_name: str + conclusion: None + created_at: str + environment: str + html_url: str id: int - name: str - node_id: str - private: bool + name: None + status: str + updated_at: str -__all__ = ("WebhooksRepositoriesAddedItemsType",) +__all__ = ("WebhooksWorkflowJobRunType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0464.py b/githubkit/versions/ghec_v2022_11_28/types/group_0464.py index 26f4f095b..da4062d95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0464.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0464.py @@ -9,59 +9,11 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0008 import IntegrationType - -class WebhooksIssueCommentType(TypedDict): - """issue comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[IntegrationType, None] - reactions: WebhooksIssueCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhooksIssueCommentPropUserType, None] - - -class WebhooksIssueCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksIssueCommentPropUserType(TypedDict): +class WebhooksUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -83,13 +35,9 @@ class WebhooksIssueCommentPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -__all__ = ( - "WebhooksIssueCommentPropReactionsType", - "WebhooksIssueCommentPropUserType", - "WebhooksIssueCommentType", -) +__all__ = ("WebhooksUserType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0465.py b/githubkit/versions/ghec_v2022_11_28/types/group_0465.py index dea7603b6..32906747e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0465.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0465.py @@ -9,25 +9,82 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksChangesType(TypedDict): - """WebhooksChanges +class WebhooksAnswerType(TypedDict): + """WebhooksAnswer""" - The changes to the comment. - """ + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: datetime + discussion_id: int + html_url: str + id: int + node_id: str + parent_id: None + reactions: NotRequired[WebhooksAnswerPropReactionsType] + repository_url: str + updated_at: datetime + user: Union[WebhooksAnswerPropUserType, None] - body: NotRequired[WebhooksChangesPropBodyType] +class WebhooksAnswerPropReactionsType(TypedDict): + """Reactions""" -class WebhooksChangesPropBodyType(TypedDict): - """WebhooksChangesPropBody""" + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str - from_: str + +class WebhooksAnswerPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhooksChangesPropBodyType", - "WebhooksChangesType", + "WebhooksAnswerPropReactionsType", + "WebhooksAnswerPropUserType", + "WebhooksAnswerType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0466.py b/githubkit/versions/ghec_v2022_11_28/types/group_0466.py index a3d7b0248..48f1a497e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0466.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0466.py @@ -14,18 +14,16 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksIssueType(TypedDict): - """Issue +class DiscussionType(TypedDict): + """Discussion - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + A Discussion in a repository. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] - assignees: list[Union[WebhooksIssuePropAssigneesItemsType, None]] + active_lock_reason: Union[str, None] + answer_chosen_at: Union[str, None] + answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] + answer_html_url: Union[str, None] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -36,178 +34,43 @@ class WebhooksIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] - closed_at: Union[datetime, None] + body: str + category: DiscussionPropCategoryType comments: int - comments_url: str created_at: datetime - draft: NotRequired[bool] - events_url: str html_url: str id: int - labels: NotRequired[list[WebhooksIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssuePropMilestoneType, None] + locked: bool node_id: str number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssuePropPullRequestType] - reactions: WebhooksIssuePropReactionsType + reactions: NotRequired[DiscussionPropReactionsType] repository_url: str - sub_issues_summary: NotRequired[WebhooksIssuePropSubIssuesSummaryType] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] + state: Literal["open", "closed", "locked", "converting", "transferring"] + state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] timeline_url: NotRequired[str] title: str updated_at: datetime - url: str - user: Union[WebhooksIssuePropUserType, None] - - -class WebhooksIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str + user: Union[DiscussionPropUserType, None] + labels: NotRequired[list[LabelType]] -class WebhooksIssuePropMilestoneType(TypedDict): - """Milestone +class LabelType(TypedDict): + """Label - A collection of related issues and pull requests. + Color-coded labels help you categorize and filter your issues (just like labels + in Gmail). """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str - - -class WebhooksIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] name: str - node_id: str - owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwnerType, None] - permissions: NotRequired[WebhooksIssuePropPerformedViaGithubAppPropPermissionsType] - slug: NotRequired[str] - updated_at: Union[datetime, None] + description: Union[str, None] + color: str + default: bool -class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class DiscussionPropAnswerChosenByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -234,60 +97,22 @@ class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): - """WebhooksIssuePropPerformedViaGithubAppPropPermissions +class DiscussionPropCategoryType(TypedDict): + """DiscussionPropCategory""" - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhooksIssuePropPullRequestType(TypedDict): - """WebhooksIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str -class WebhooksIssuePropReactionsType(TypedDict): +class DiscussionPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -302,15 +127,7 @@ class WebhooksIssuePropReactionsType(TypedDict): url: str -class WebhooksIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhooksIssuePropUserType(TypedDict): +class DiscussionPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -332,23 +149,16 @@ class WebhooksIssuePropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhooksIssuePropAssigneeType", - "WebhooksIssuePropAssigneesItemsType", - "WebhooksIssuePropLabelsItemsType", - "WebhooksIssuePropMilestonePropCreatorType", - "WebhooksIssuePropMilestoneType", - "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", - "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssuePropPerformedViaGithubAppType", - "WebhooksIssuePropPullRequestType", - "WebhooksIssuePropReactionsType", - "WebhooksIssuePropSubIssuesSummaryType", - "WebhooksIssuePropUserType", - "WebhooksIssueType", + "DiscussionPropAnswerChosenByType", + "DiscussionPropCategoryType", + "DiscussionPropReactionsType", + "DiscussionPropUserType", + "DiscussionType", + "LabelType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0467.py b/githubkit/versions/ghec_v2022_11_28/types/group_0467.py index 78c0b9fb1..4c279958b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0467.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0467.py @@ -9,36 +9,53 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksMilestoneType(TypedDict): - """Milestone +class WebhooksCommentType(TypedDict): + """WebhooksComment""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: str + discussion_id: int html_url: str id: int - labels_url: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime + parent_id: Union[int, None] + reactions: WebhooksCommentPropReactionsType + repository_url: str + updated_at: str + user: Union[WebhooksCommentPropUserType, None] + + +class WebhooksCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str -class WebhooksMilestonePropCreatorType(TypedDict): +class WebhooksCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -60,12 +77,13 @@ class WebhooksMilestonePropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhooksMilestonePropCreatorType", - "WebhooksMilestoneType", + "WebhooksCommentPropReactionsType", + "WebhooksCommentPropUserType", + "WebhooksCommentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0468.py b/githubkit/versions/ghec_v2022_11_28/types/group_0468.py index 956c98ef6..469b744f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0468.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0468.py @@ -9,119 +9,11 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class WebhooksIssue2Type(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] - assignees: list[Union[WebhooksIssue2PropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhooksIssue2PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssue2PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssue2PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssue2PropPullRequestType] - reactions: WebhooksIssue2PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[WebhooksIssue2PropSubIssuesSummaryType] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhooksIssue2PropUserType, None] - - -class WebhooksIssue2PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropLabelsItemsType(TypedDict): +class WebhooksLabelType(TypedDict): """Label""" color: str @@ -133,222 +25,4 @@ class WebhooksIssue2PropLabelsItemsType(TypedDict): url: str -class WebhooksIssue2PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksIssue2PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] - permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): - """WebhooksIssue2PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhooksIssue2PropPullRequestType(TypedDict): - """WebhooksIssue2PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhooksIssue2PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksIssue2PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhooksIssue2PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhooksIssue2PropAssigneeType", - "WebhooksIssue2PropAssigneesItemsType", - "WebhooksIssue2PropLabelsItemsType", - "WebhooksIssue2PropMilestonePropCreatorType", - "WebhooksIssue2PropMilestoneType", - "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssue2PropPerformedViaGithubAppType", - "WebhooksIssue2PropPullRequestType", - "WebhooksIssue2PropReactionsType", - "WebhooksIssue2PropSubIssuesSummaryType", - "WebhooksIssue2PropUserType", - "WebhooksIssue2Type", -) +__all__ = ("WebhooksLabelType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0469.py b/githubkit/versions/ghec_v2022_11_28/types/group_0469.py index 12263b7bb..60f7cc9c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0469.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0469.py @@ -9,35 +9,17 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - - -class WebhooksUserMannequinType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +from typing_extensions import TypedDict + + +class WebhooksRepositoriesItemsType(TypedDict): + """WebhooksRepositoriesItems""" + + full_name: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhooksUserMannequinType",) + name: str + node_id: str + private: bool + + +__all__ = ("WebhooksRepositoriesItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0470.py b/githubkit/versions/ghec_v2022_11_28/types/group_0470.py index 442613e28..afa5d37c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0470.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0470.py @@ -9,48 +9,17 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -class WebhooksMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - - account: WebhooksMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: Union[str, None] - on_free_trial: bool - plan: WebhooksMarketplacePurchasePropPlanType - unit_count: int - - -class WebhooksMarketplacePurchasePropAccountType(TypedDict): - """WebhooksMarketplacePurchasePropAccount""" +class WebhooksRepositoriesAddedItemsType(TypedDict): + """WebhooksRepositoriesAddedItems""" + full_name: str id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhooksMarketplacePurchasePropPlanType(TypedDict): - """WebhooksMarketplacePurchasePropPlan""" - - bullets: list[Union[str, None]] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + node_id: str + private: bool -__all__ = ( - "WebhooksMarketplacePurchasePropAccountType", - "WebhooksMarketplacePurchasePropPlanType", - "WebhooksMarketplacePurchaseType", -) +__all__ = ("WebhooksRepositoriesAddedItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0471.py b/githubkit/versions/ghec_v2022_11_28/types/group_0471.py index 38627d866..6393790aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0471.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0471.py @@ -9,48 +9,87 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class WebhooksPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - - account: WebhooksPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhooksPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): - """WebhooksPreviousMarketplacePurchasePropAccount""" - +from .group_0010 import IntegrationType + + +class WebhooksIssueCommentType(TypedDict): + """issue comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + created_at: datetime + html_url: str id: int - login: str + issue_url: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhooksPreviousMarketplacePurchasePropPlanType(TypedDict): - """WebhooksPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] - description: str - has_free_trial: bool + performed_via_github_app: Union[IntegrationType, None] + reactions: WebhooksIssueCommentPropReactionsType + updated_at: datetime + url: str + user: Union[WebhooksIssueCommentPropUserType, None] + + +class WebhooksIssueCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssueCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhooksPreviousMarketplacePurchasePropAccountType", - "WebhooksPreviousMarketplacePurchasePropPlanType", - "WebhooksPreviousMarketplacePurchaseType", + "WebhooksIssueCommentPropReactionsType", + "WebhooksIssueCommentPropUserType", + "WebhooksIssueCommentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0472.py b/githubkit/versions/ghec_v2022_11_28/types/group_0472.py index 1b0b6886a..dea7603b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0472.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0472.py @@ -9,52 +9,25 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksTeamType(TypedDict): - """Team +class WebhooksChangesType(TypedDict): + """WebhooksChanges - Groups of organization members that gives permissions on specified repositories. + The changes to the comment. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhooksTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksTeamPropParentType(TypedDict): - """WebhooksTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str + body: NotRequired[WebhooksChangesPropBodyType] + + +class WebhooksChangesPropBodyType(TypedDict): + """WebhooksChangesPropBody""" + + from_: str __all__ = ( - "WebhooksTeamPropParentType", - "WebhooksTeamType", + "WebhooksChangesPropBodyType", + "WebhooksChangesType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0473.py b/githubkit/versions/ghec_v2022_11_28/types/group_0473.py index 9c78ad273..a3d7b0248 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0473.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0473.py @@ -9,22 +9,346 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0221 import SimpleCommitType +class WebhooksIssueType(TypedDict): + """Issue -class MergeGroupType(TypedDict): - """Merge Group + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] + assignees: list[Union[WebhooksIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhooksIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhooksIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhooksIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhooksIssuePropPullRequestType] + reactions: WebhooksIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[WebhooksIssuePropSubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhooksIssuePropUserType, None] + + +class WebhooksIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhooksIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropPerformedViaGithubAppType(TypedDict): + """App - A group of pull requests that the merge queue has grouped together to be merged. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - head_sha: str - head_ref: str - base_sha: str - base_ref: str - head_commit: SimpleCommitType + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssuePropPerformedViaGithubAppPropPermissionsType] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhooksIssuePropPullRequestType(TypedDict): + """WebhooksIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhooksIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhooksIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("MergeGroupType",) +__all__ = ( + "WebhooksIssuePropAssigneeType", + "WebhooksIssuePropAssigneesItemsType", + "WebhooksIssuePropLabelsItemsType", + "WebhooksIssuePropMilestonePropCreatorType", + "WebhooksIssuePropMilestoneType", + "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", + "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssuePropPerformedViaGithubAppType", + "WebhooksIssuePropPullRequestType", + "WebhooksIssuePropReactionsType", + "WebhooksIssuePropSubIssuesSummaryType", + "WebhooksIssuePropUserType", + "WebhooksIssueType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0474.py b/githubkit/versions/ghec_v2022_11_28/types/group_0474.py index 84341cab5..78c0b9fb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0474.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0474.py @@ -14,7 +14,7 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksMilestone3Type(TypedDict): +class WebhooksMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -23,7 +23,7 @@ class WebhooksMilestone3Type(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhooksMilestone3PropCreatorType, None] + creator: Union[WebhooksMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -38,7 +38,7 @@ class WebhooksMilestone3Type(TypedDict): url: str -class WebhooksMilestone3PropCreatorType(TypedDict): +class WebhooksMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -60,12 +60,12 @@ class WebhooksMilestone3PropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhooksMilestone3PropCreatorType", - "WebhooksMilestone3Type", + "WebhooksMilestonePropCreatorType", + "WebhooksMilestoneType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0475.py b/githubkit/versions/ghec_v2022_11_28/types/group_0475.py index 838f548fa..956c98ef6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0475.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0475.py @@ -9,25 +9,308 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksMembershipType(TypedDict): - """Membership +class WebhooksIssue2Type(TypedDict): + """Issue - The membership between the user and the organization. Not present when the - action is `member_invited`. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - organization_url: str - role: str - state: str + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] + assignees: list[Union[WebhooksIssue2PropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhooksIssue2PropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhooksIssue2PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhooksIssue2PropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhooksIssue2PropPullRequestType] + reactions: WebhooksIssue2PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[WebhooksIssue2PropSubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhooksIssue2PropUserType, None] + + +class WebhooksIssue2PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str url: str - user: Union[WebhooksMembershipPropUserType, None] -class WebhooksMembershipPropUserType(TypedDict): +class WebhooksIssue2PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksIssue2PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssue2PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhooksIssue2PropPullRequestType(TypedDict): + """WebhooksIssue2PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhooksIssue2PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssue2PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhooksIssue2PropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -55,6 +338,17 @@ class WebhooksMembershipPropUserType(TypedDict): __all__ = ( - "WebhooksMembershipPropUserType", - "WebhooksMembershipType", + "WebhooksIssue2PropAssigneeType", + "WebhooksIssue2PropAssigneesItemsType", + "WebhooksIssue2PropLabelsItemsType", + "WebhooksIssue2PropMilestonePropCreatorType", + "WebhooksIssue2PropMilestoneType", + "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssue2PropPerformedViaGithubAppType", + "WebhooksIssue2PropPullRequestType", + "WebhooksIssue2PropReactionsType", + "WebhooksIssue2PropSubIssuesSummaryType", + "WebhooksIssue2PropUserType", + "WebhooksIssue2Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0476.py b/githubkit/versions/ghec_v2022_11_28/types/group_0476.py index aa55edb84..12263b7bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0476.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0476.py @@ -9,163 +9,35 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0002 import SimpleUserType - - -class PersonalAccessTokenRequestType(TypedDict): - """Personal Access Token Request - - Details of a Personal Access Token Request. - """ - +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class WebhooksUserMannequinType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - owner: SimpleUserType - permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType - permissions_result: PersonalAccessTokenRequestPropPermissionsResultType - repository_selection: Literal["none", "all", "subset"] - repository_count: Union[int, None] - repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItemsType], None] - created_at: str - token_id: int - token_name: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] - - -class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str - id: int - name: str - node_id: str - private: bool - - -class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] - - -PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsAddedPropOrganization -""" - - -PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsAddedPropRepository -""" - - -PersonalAccessTokenRequestPropPermissionsAddedPropOtherType: TypeAlias = dict[str, Any] -"""PersonalAccessTokenRequestPropPermissionsAddedPropOther -""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgraded - - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] - - -PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization -""" - - -PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository -""" - - -PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOther -""" - - -class PersonalAccessTokenRequestPropPermissionsResultType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResult - - Permissions requested, categorized by type of permission. This field - incorporates `permissions_added` and `permissions_upgraded`. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsResultPropOtherType] - - -PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsResultPropOrganization -""" - - -PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsResultPropRepository -""" - - -PersonalAccessTokenRequestPropPermissionsResultPropOtherType: TypeAlias = dict[str, Any] -"""PersonalAccessTokenRequestPropPermissionsResultPropOther -""" - - -__all__ = ( - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsAddedType", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", - "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsResultType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsUpgradedType", - "PersonalAccessTokenRequestPropRepositoriesItemsType", - "PersonalAccessTokenRequestType", -) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("WebhooksUserMannequinType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0477.py b/githubkit/versions/ghec_v2022_11_28/types/group_0477.py index 15e68c071..442613e28 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0477.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0477.py @@ -9,57 +9,48 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksProjectCardType(TypedDict): - """Project Card""" +class WebhooksMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: WebhooksMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhooksMarketplacePurchasePropPlanType + unit_count: int + + +class WebhooksMarketplacePurchasePropAccountType(TypedDict): + """WebhooksMarketplacePurchasePropAccount""" - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhooksProjectCardPropCreatorType, None] id: int + login: str node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str - - -class WebhooksProjectCardPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + organization_billing_email: Union[str, None] + type: str + + +class WebhooksMarketplacePurchasePropPlanType(TypedDict): + """WebhooksMarketplacePurchasePropPlan""" + + bullets: list[Union[str, None]] + description: str + has_free_trial: bool id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhooksProjectCardPropCreatorType", - "WebhooksProjectCardType", + "WebhooksMarketplacePurchasePropAccountType", + "WebhooksMarketplacePurchasePropPlanType", + "WebhooksMarketplacePurchaseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0478.py b/githubkit/versions/ghec_v2022_11_28/types/group_0478.py index f00c9358c..38627d866 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0478.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0478.py @@ -9,57 +9,48 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksProjectType(TypedDict): - """Project""" +class WebhooksPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: WebhooksPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhooksPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropAccount""" - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhooksProjectPropCreatorType, None] - html_url: str id: int - name: str + login: str node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] - updated_at: datetime - url: str - - -class WebhooksProjectPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + organization_billing_email: Union[str, None] + type: str + + +class WebhooksPreviousMarketplacePurchasePropPlanType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] + description: str + has_free_trial: bool id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhooksProjectPropCreatorType", - "WebhooksProjectType", + "WebhooksPreviousMarketplacePurchasePropAccountType", + "WebhooksPreviousMarketplacePurchasePropPlanType", + "WebhooksPreviousMarketplacePurchaseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0479.py b/githubkit/versions/ghec_v2022_11_28/types/group_0479.py index 3c545b05d..1b0b6886a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0479.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0479.py @@ -9,23 +9,52 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksProjectColumnType(TypedDict): - """Project Column""" +class WebhooksTeamType(TypedDict): + """Team - after_id: NotRequired[Union[int, None]] - cards_url: str - created_at: datetime + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhooksTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksTeamPropParentType(TypedDict): + """WebhooksTeamPropParent""" + + description: Union[str, None] + html_url: str id: int + members_url: str name: str node_id: str - project_url: str - updated_at: datetime + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str url: str -__all__ = ("WebhooksProjectColumnType",) +__all__ = ( + "WebhooksTeamPropParentType", + "WebhooksTeamType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0480.py b/githubkit/versions/ghec_v2022_11_28/types/group_0480.py index 8bbc840e6..692c9d1a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0480.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0480.py @@ -9,33 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +from .group_0228 import SimpleCommitType -class ProjectsV2Type(TypedDict): - """Projects v2 Project +class MergeGroupType(TypedDict): + """Merge Group - A projects v2 project + A group of pull requests that the merge queue has grouped together to be merged. """ - id: float - node_id: str - owner: SimpleUserType - creator: SimpleUserType - title: str - description: Union[str, None] - public: bool - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - number: int - short_description: Union[str, None] - deleted_at: Union[datetime, None] - deleted_by: Union[None, SimpleUserType] - - -__all__ = ("ProjectsV2Type",) + head_sha: str + head_ref: str + base_sha: str + base_ref: str + head_commit: SimpleCommitType + + +__all__ = ("MergeGroupType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0481.py b/githubkit/versions/ghec_v2022_11_28/types/group_0481.py index d31a72cb2..84341cab5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0481.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0481.py @@ -10,24 +10,62 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksProjectChangesType(TypedDict): - """WebhooksProjectChanges""" +class WebhooksMilestone3Type(TypedDict): + """Milestone - archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] + A collection of related issues and pull requests. + """ + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksMilestone3PropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhooksProjectChangesPropArchivedAtType(TypedDict): - """WebhooksProjectChangesPropArchivedAt""" - from_: NotRequired[Union[datetime, None]] - to: NotRequired[Union[datetime, None]] +class WebhooksMilestone3PropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhooksProjectChangesPropArchivedAtType", - "WebhooksProjectChangesType", + "WebhooksMilestone3PropCreatorType", + "WebhooksMilestone3Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0482.py b/githubkit/versions/ghec_v2022_11_28/types/group_0482.py index 733be3069..838f548fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0482.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0482.py @@ -9,28 +9,52 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class WebhooksMembershipType(TypedDict): + """Membership -class ProjectsV2ItemType(TypedDict): - """Projects v2 Item - - An item belonging to a project + The membership between the user and the organization. Not present when the + action is `member_invited`. """ - id: float + organization_url: str + role: str + state: str + url: str + user: Union[WebhooksMembershipPropUserType, None] + + +class WebhooksMembershipPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - project_node_id: NotRequired[str] - content_node_id: str - content_type: Literal["Issue", "PullRequest", "DraftIssue"] - creator: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] - - -__all__ = ("ProjectsV2ItemType",) + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhooksMembershipPropUserType", + "WebhooksMembershipType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0483.py b/githubkit/versions/ghec_v2022_11_28/types/group_0483.py index 49ab7ebf9..8767f4c9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0483.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0483.py @@ -9,31 +9,163 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType -class ProjectsV2StatusUpdateType(TypedDict): - """Projects v2 Status Update +class PersonalAccessTokenRequestType(TypedDict): + """Personal Access Token Request - An status update belonging to a project + Details of a Personal Access Token Request. """ - id: float + id: int + owner: SimpleUserType + permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType + permissions_result: PersonalAccessTokenRequestPropPermissionsResultType + repository_selection: Literal["none", "all", "subset"] + repository_count: Union[int, None] + repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItemsType], None] + created_at: str + token_id: int + token_name: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] + + +class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str + id: int + name: str node_id: str - project_node_id: NotRequired[str] - creator: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - status: NotRequired[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + private: bool + + +class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] + + +PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsAddedPropOrganization +""" + + +PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsAddedPropRepository +""" + + +PersonalAccessTokenRequestPropPermissionsAddedPropOtherType: TypeAlias = dict[str, Any] +"""PersonalAccessTokenRequestPropPermissionsAddedPropOther +""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType ] - start_date: NotRequired[date] - target_date: NotRequired[date] - body: NotRequired[Union[str, None]] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] + + +PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization +""" + + +PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository +""" + + +PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOther +""" + + +class PersonalAccessTokenRequestPropPermissionsResultType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResult + + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsResultPropOtherType] + + +PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsResultPropOrganization +""" + + +PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsResultPropRepository +""" + + +PersonalAccessTokenRequestPropPermissionsResultPropOtherType: TypeAlias = dict[str, Any] +"""PersonalAccessTokenRequestPropPermissionsResultPropOther +""" -__all__ = ("ProjectsV2StatusUpdateType",) +__all__ = ( + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsAddedType", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", + "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsResultType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsUpgradedType", + "PersonalAccessTokenRequestPropRepositoriesItemsType", + "PersonalAccessTokenRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0484.py b/githubkit/versions/ghec_v2022_11_28/types/group_0484.py index 4b6810cc7..15e68c071 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0484.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0484.py @@ -13,85 +13,53 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0059 import TeamSimpleType -from .group_0129 import MilestoneType -from .group_0279 import AutoMergeType -from .group_0359 import PullRequestPropLabelsItemsType -from .group_0360 import PullRequestPropBaseType, PullRequestPropHeadType -from .group_0361 import PullRequestPropLinksType +class WebhooksProjectCardType(TypedDict): + """Project Card""" -class PullRequestWebhookType(TypedDict): - """PullRequestWebhook""" - - url: str + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhooksProjectCardPropCreatorType, None] id: int node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: list[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime + note: Union[str, None] + project_url: str updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] - requested_teams: NotRequired[Union[list[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + url: str + + +class WebhooksProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("PullRequestWebhookType",) +__all__ = ( + "WebhooksProjectCardPropCreatorType", + "WebhooksProjectCardType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0485.py b/githubkit/versions/ghec_v2022_11_28/types/group_0485.py index 85163bcaa..f00c9358c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0485.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0485.py @@ -9,23 +9,57 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class PullRequestWebhookAllof1Type(TypedDict): - """PullRequestWebhookAllof1""" +class WebhooksProjectType(TypedDict): + """Project""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhooksProjectPropCreatorType, None] + html_url: str + id: int + name: str + node_id: str + number: int + owner_url: str + state: Literal["open", "closed"] + updated_at: datetime + url: str -__all__ = ("PullRequestWebhookAllof1Type",) +class WebhooksProjectPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhooksProjectPropCreatorType", + "WebhooksProjectType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0486.py b/githubkit/versions/ghec_v2022_11_28/types/group_0486.py index 9c89f8ed7..3c545b05d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0486.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0486.py @@ -10,869 +10,22 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhooksPullRequest5Type(TypedDict): - """Pull Request""" +class WebhooksProjectColumnType(TypedDict): + """Project Column""" - links: WebhooksPullRequest5PropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhooksPullRequest5PropAssigneeType, None] - assignees: list[Union[WebhooksPullRequest5PropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] - base: WebhooksPullRequest5PropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str + after_id: NotRequired[Union[int, None]] + cards_url: str created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhooksPullRequest5PropHeadType - html_url: str id: int - issue_url: str - labels: list[WebhooksPullRequest5PropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[Union[WebhooksPullRequest5PropMergedByType, None]] - milestone: Union[WebhooksPullRequest5PropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItemsType] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhooksPullRequest5PropUserType, None] - - -class WebhooksPullRequest5PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhooksPullRequest5PropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledByType, None] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhooksPullRequest5PropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhooksPullRequest5PropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksPullRequest5PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksPullRequest5PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksPullRequest5PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropLinksType(TypedDict): - """WebhooksPullRequest5PropLinks""" - - comments: WebhooksPullRequest5PropLinksPropCommentsType - commits: WebhooksPullRequest5PropLinksPropCommitsType - html: WebhooksPullRequest5PropLinksPropHtmlType - issue: WebhooksPullRequest5PropLinksPropIssueType - review_comment: WebhooksPullRequest5PropLinksPropReviewCommentType - review_comments: WebhooksPullRequest5PropLinksPropReviewCommentsType - self_: WebhooksPullRequest5PropLinksPropSelfType - statuses: WebhooksPullRequest5PropLinksPropStatusesType - - -class WebhooksPullRequest5PropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropReviewCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropBaseType(TypedDict): - """WebhooksPullRequest5PropBase""" - - label: str - ref: str - repo: WebhooksPullRequest5PropBasePropRepoType - sha: str - user: Union[WebhooksPullRequest5PropBasePropUserType, None] - - -class WebhooksPullRequest5PropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicenseType, None] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwnerType, None] - permissions: NotRequired[WebhooksPullRequest5PropBasePropRepoPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhooksPullRequest5PropBasePropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhooksPullRequest5PropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropBasePropRepoPropPermissionsType(TypedDict): - """WebhooksPullRequest5PropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhooksPullRequest5PropHeadType(TypedDict): - """WebhooksPullRequest5PropHead""" - - label: str - ref: str - repo: WebhooksPullRequest5PropHeadPropRepoType - sha: str - user: Union[WebhooksPullRequest5PropHeadPropUserType, None] - - -class WebhooksPullRequest5PropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicenseType, None] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] name: str node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwnerType, None] - permissions: NotRequired[WebhooksPullRequest5PropHeadPropRepoPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str + project_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhooksPullRequest5PropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhooksPullRequest5PropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropHeadPropRepoPropPermissionsType(TypedDict): - """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType(TypedDict): - """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhooksPullRequest5PropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedTeamsItemsPropParentType(TypedDict): - """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str -__all__ = ( - "WebhooksPullRequest5PropAssigneeType", - "WebhooksPullRequest5PropAssigneesItemsType", - "WebhooksPullRequest5PropAutoMergePropEnabledByType", - "WebhooksPullRequest5PropAutoMergeType", - "WebhooksPullRequest5PropBasePropRepoPropLicenseType", - "WebhooksPullRequest5PropBasePropRepoPropOwnerType", - "WebhooksPullRequest5PropBasePropRepoPropPermissionsType", - "WebhooksPullRequest5PropBasePropRepoType", - "WebhooksPullRequest5PropBasePropUserType", - "WebhooksPullRequest5PropBaseType", - "WebhooksPullRequest5PropHeadPropRepoPropLicenseType", - "WebhooksPullRequest5PropHeadPropRepoPropOwnerType", - "WebhooksPullRequest5PropHeadPropRepoPropPermissionsType", - "WebhooksPullRequest5PropHeadPropRepoType", - "WebhooksPullRequest5PropHeadPropUserType", - "WebhooksPullRequest5PropHeadType", - "WebhooksPullRequest5PropLabelsItemsType", - "WebhooksPullRequest5PropLinksPropCommentsType", - "WebhooksPullRequest5PropLinksPropCommitsType", - "WebhooksPullRequest5PropLinksPropHtmlType", - "WebhooksPullRequest5PropLinksPropIssueType", - "WebhooksPullRequest5PropLinksPropReviewCommentType", - "WebhooksPullRequest5PropLinksPropReviewCommentsType", - "WebhooksPullRequest5PropLinksPropSelfType", - "WebhooksPullRequest5PropLinksPropStatusesType", - "WebhooksPullRequest5PropLinksType", - "WebhooksPullRequest5PropMergedByType", - "WebhooksPullRequest5PropMilestonePropCreatorType", - "WebhooksPullRequest5PropMilestoneType", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type", - "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", - "WebhooksPullRequest5PropRequestedTeamsItemsType", - "WebhooksPullRequest5PropUserType", - "WebhooksPullRequest5Type", -) +__all__ = ("WebhooksProjectColumnType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0487.py b/githubkit/versions/ghec_v2022_11_28/types/group_0487.py index e0b112082..61f9ee87b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0487.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0487.py @@ -10,130 +10,32 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class WebhooksReviewCommentType(TypedDict): - """Pull Request Review Comment - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. +class ProjectsV2Type(TypedDict): + """Projects v2 Project + + A projects v2 project """ - links: WebhooksReviewCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] + id: float node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhooksReviewCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] + owner: SimpleUserType + creator: SimpleUserType + title: str + description: Union[str, None] + public: bool + closed_at: Union[datetime, None] + created_at: datetime updated_at: datetime - url: str - user: Union[WebhooksReviewCommentPropUserType, None] - - -class WebhooksReviewCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReviewCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewCommentPropLinksType(TypedDict): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtmlType - pull_request: WebhooksReviewCommentPropLinksPropPullRequestType - self_: WebhooksReviewCommentPropLinksPropSelfType - - -class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str + number: int + short_description: Union[str, None] + deleted_at: Union[datetime, None] + deleted_by: Union[None, SimpleUserType] -__all__ = ( - "WebhooksReviewCommentPropLinksPropHtmlType", - "WebhooksReviewCommentPropLinksPropPullRequestType", - "WebhooksReviewCommentPropLinksPropSelfType", - "WebhooksReviewCommentPropLinksType", - "WebhooksReviewCommentPropReactionsType", - "WebhooksReviewCommentPropUserType", - "WebhooksReviewCommentType", -) +__all__ = ("ProjectsV2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0488.py b/githubkit/versions/ghec_v2022_11_28/types/group_0488.py index 0d56edfb2..d31a72cb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0488.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0488.py @@ -10,88 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhooksReviewType(TypedDict): - """WebhooksReview +class WebhooksProjectChangesType(TypedDict): + """WebhooksProjectChanges""" - The review that was affected. - """ + archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] - links: WebhooksReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: str - submitted_at: Union[datetime, None] - user: Union[WebhooksReviewPropUserType, None] +class WebhooksProjectChangesPropArchivedAtType(TypedDict): + """WebhooksProjectChangesPropArchivedAt""" -class WebhooksReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewPropLinksType(TypedDict): - """WebhooksReviewPropLinks""" - - html: WebhooksReviewPropLinksPropHtmlType - pull_request: WebhooksReviewPropLinksPropPullRequestType - - -class WebhooksReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str + from_: NotRequired[Union[datetime, None]] + to: NotRequired[Union[datetime, None]] __all__ = ( - "WebhooksReviewPropLinksPropHtmlType", - "WebhooksReviewPropLinksPropPullRequestType", - "WebhooksReviewPropLinksType", - "WebhooksReviewPropUserType", - "WebhooksReviewType", + "WebhooksProjectChangesPropArchivedAtType", + "WebhooksProjectChangesType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0489.py b/githubkit/versions/ghec_v2022_11_28/types/group_0489.py index 10aec5ffc..11c42252b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0489.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0489.py @@ -13,129 +13,24 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class WebhooksReleaseType(TypedDict): - """Release - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: list[WebhooksReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhooksReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhooksReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhooksReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReleasePropReactionsType(TypedDict): - """Reactions""" +class ProjectsV2ItemType(TypedDict): + """Projects v2 Item - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. + An item belonging to a project """ - browser_download_url: str - content_type: str + id: float + node_id: NotRequired[str] + project_node_id: NotRequired[str] + content_node_id: str + content_type: Literal["Issue", "PullRequest", "DraftIssue"] + creator: NotRequired[SimpleUserType] created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] updated_at: datetime - uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + archived_at: Union[datetime, None] -__all__ = ( - "WebhooksReleasePropAssetsItemsPropUploaderType", - "WebhooksReleasePropAssetsItemsType", - "WebhooksReleasePropAuthorType", - "WebhooksReleasePropReactionsType", - "WebhooksReleaseType", -) +__all__ = ("ProjectsV2ItemType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0490.py b/githubkit/versions/ghec_v2022_11_28/types/group_0490.py index 29f198924..07d3ae203 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0490.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0490.py @@ -9,133 +9,31 @@ from __future__ import annotations -from datetime import datetime +from datetime import date, datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class WebhooksRelease1Type(TypedDict): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: list[Union[WebhooksRelease1PropAssetsItemsType, None]] - assets_url: str - author: Union[WebhooksRelease1PropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhooksRelease1PropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] +class ProjectsV2StatusUpdateType(TypedDict): + """Projects v2 Status Update -class WebhooksRelease1PropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. + An status update belonging to a project """ - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str + id: float node_id: str - size: int - state: Literal["uploaded"] + project_node_id: NotRequired[str] + creator: NotRequired[SimpleUserType] + created_at: datetime updated_at: datetime - uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksRelease1PropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksRelease1PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + status: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + start_date: NotRequired[date] + target_date: NotRequired[date] + body: NotRequired[Union[str, None]] -__all__ = ( - "WebhooksRelease1PropAssetsItemsPropUploaderType", - "WebhooksRelease1PropAssetsItemsType", - "WebhooksRelease1PropAuthorType", - "WebhooksRelease1PropReactionsType", - "WebhooksRelease1Type", -) +__all__ = ("ProjectsV2StatusUpdateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0491.py b/githubkit/versions/ghec_v2022_11_28/types/group_0491.py index 3401e5834..dd1542be3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0491.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0491.py @@ -13,59 +13,85 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0064 import TeamSimpleType +from .group_0136 import MilestoneType +from .group_0286 import AutoMergeType +from .group_0366 import PullRequestPropLabelsItemsType +from .group_0367 import PullRequestPropBaseType, PullRequestPropHeadType +from .group_0368 import PullRequestPropLinksType -class WebhooksAlertType(TypedDict): - """Repository Vulnerability Alert Alert - The security alert of the vulnerable dependency. - """ +class PullRequestWebhookType(TypedDict): + """PullRequestWebhook""" - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str + url: str id: int node_id: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str number: int - severity: str - state: Literal["open"] + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: list[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] -class WebhooksAlertPropDismisserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhooksAlertPropDismisserType", - "WebhooksAlertType", -) +__all__ = ("PullRequestWebhookType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0492.py b/githubkit/versions/ghec_v2022_11_28/types/group_0492.py index 8e0b2bb13..85163bcaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0492.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0492.py @@ -9,50 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType - - -class SecretScanningAlertWebhookType(TypedDict): - """SecretScanningAlertWebhook""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - resolution: NotRequired[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] + +class PullRequestWebhookAllof1Type(TypedDict): + """PullRequestWebhookAllof1""" + + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - - -__all__ = ("SecretScanningAlertWebhookType",) + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] + + +__all__ = ("PullRequestWebhookAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0493.py b/githubkit/versions/ghec_v2022_11_28/types/group_0493.py index dce9a1159..9c89f8ed7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0493.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0493.py @@ -9,95 +9,870 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType +class WebhooksPullRequest5Type(TypedDict): + """Pull Request""" + + links: WebhooksPullRequest5PropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhooksPullRequest5PropAssigneeType, None] + assignees: list[Union[WebhooksPullRequest5PropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] + base: WebhooksPullRequest5PropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhooksPullRequest5PropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhooksPullRequest5PropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[Union[WebhooksPullRequest5PropMergedByType, None]] + milestone: Union[WebhooksPullRequest5PropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, + None, + WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItemsType] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhooksPullRequest5PropUserType, None] + + +class WebhooksPullRequest5PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhooksPullRequest5PropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledByType, None] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhooksPullRequest5PropAutoMergePropEnabledByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str -class WebhooksSecurityAdvisoryType(TypedDict): - """WebhooksSecurityAdvisory - The details of the security advisory, including summary, description, and - severity. +class WebhooksPullRequest5PropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ - cvss: WebhooksSecurityAdvisoryPropCvssType - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: list[WebhooksSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItemsType] - published_at: str - references: list[WebhooksSecurityAdvisoryPropReferencesItemsType] - severity: str - summary: str - updated_at: str - vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] - withdrawn_at: Union[str, None] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksPullRequest5PropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhooksSecurityAdvisoryPropCvssType(TypedDict): - """WebhooksSecurityAdvisoryPropCvss""" +class WebhooksPullRequest5PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - score: float - vector_string: Union[str, None] +class WebhooksPullRequest5PropUserType(TypedDict): + """User""" -class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropCwesItems""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropLinksType(TypedDict): + """WebhooksPullRequest5PropLinks""" + + comments: WebhooksPullRequest5PropLinksPropCommentsType + commits: WebhooksPullRequest5PropLinksPropCommitsType + html: WebhooksPullRequest5PropLinksPropHtmlType + issue: WebhooksPullRequest5PropLinksPropIssueType + review_comment: WebhooksPullRequest5PropLinksPropReviewCommentType + review_comments: WebhooksPullRequest5PropLinksPropReviewCommentsType + self_: WebhooksPullRequest5PropLinksPropSelfType + statuses: WebhooksPullRequest5PropLinksPropStatusesType + + +class WebhooksPullRequest5PropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropIssueType(TypedDict): + """Link""" - cwe_id: str - name: str + href: str + + +class WebhooksPullRequest5PropLinksPropReviewCommentType(TypedDict): + """Link""" + + href: str -class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" +class WebhooksPullRequest5PropLinksPropReviewCommentsType(TypedDict): + """Link""" - type: str - value: str + href: str -class WebhooksSecurityAdvisoryPropReferencesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropReferencesItems""" +class WebhooksPullRequest5PropLinksPropSelfType(TypedDict): + """Link""" + href: str + + +class WebhooksPullRequest5PropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropBaseType(TypedDict): + """WebhooksPullRequest5PropBase""" + + label: str + ref: str + repo: WebhooksPullRequest5PropBasePropRepoType + sha: str + user: Union[WebhooksPullRequest5PropBasePropUserType, None] + + +class WebhooksPullRequest5PropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicenseType, None] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwnerType, None] + permissions: NotRequired[WebhooksPullRequest5PropBasePropRepoPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhooksPullRequest5PropBasePropRepoPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhooksPullRequest5PropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropBasePropRepoPropPermissionsType(TypedDict): + """WebhooksPullRequest5PropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhooksPullRequest5PropHeadType(TypedDict): + """WebhooksPullRequest5PropHead""" + + label: str + ref: str + repo: WebhooksPullRequest5PropHeadPropRepoType + sha: str + user: Union[WebhooksPullRequest5PropHeadPropUserType, None] + + +class WebhooksPullRequest5PropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicenseType, None] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwnerType, None] + permissions: NotRequired[WebhooksPullRequest5PropHeadPropRepoPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + +class WebhooksPullRequest5PropHeadPropRepoPropLicenseType(TypedDict): + """License""" -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhooksPullRequest5PropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropHeadPropRepoPropPermissionsType(TypedDict): + """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ - first_patched_version: Union[ - WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, None] ] - package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType(TypedDict): + """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str - identifier: str +class WebhooksPullRequest5PropRequestedTeamsItemsType(TypedDict): + """Team -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + Groups of organization members that gives permissions on specified repositories. + """ - ecosystem: str + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, None] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksPullRequest5PropRequestedTeamsItemsPropParentType(TypedDict): + """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhooksSecurityAdvisoryPropCvssType", - "WebhooksSecurityAdvisoryPropCwesItemsType", - "WebhooksSecurityAdvisoryPropIdentifiersItemsType", - "WebhooksSecurityAdvisoryPropReferencesItemsType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhooksSecurityAdvisoryType", + "WebhooksPullRequest5PropAssigneeType", + "WebhooksPullRequest5PropAssigneesItemsType", + "WebhooksPullRequest5PropAutoMergePropEnabledByType", + "WebhooksPullRequest5PropAutoMergeType", + "WebhooksPullRequest5PropBasePropRepoPropLicenseType", + "WebhooksPullRequest5PropBasePropRepoPropOwnerType", + "WebhooksPullRequest5PropBasePropRepoPropPermissionsType", + "WebhooksPullRequest5PropBasePropRepoType", + "WebhooksPullRequest5PropBasePropUserType", + "WebhooksPullRequest5PropBaseType", + "WebhooksPullRequest5PropHeadPropRepoPropLicenseType", + "WebhooksPullRequest5PropHeadPropRepoPropOwnerType", + "WebhooksPullRequest5PropHeadPropRepoPropPermissionsType", + "WebhooksPullRequest5PropHeadPropRepoType", + "WebhooksPullRequest5PropHeadPropUserType", + "WebhooksPullRequest5PropHeadType", + "WebhooksPullRequest5PropLabelsItemsType", + "WebhooksPullRequest5PropLinksPropCommentsType", + "WebhooksPullRequest5PropLinksPropCommitsType", + "WebhooksPullRequest5PropLinksPropHtmlType", + "WebhooksPullRequest5PropLinksPropIssueType", + "WebhooksPullRequest5PropLinksPropReviewCommentType", + "WebhooksPullRequest5PropLinksPropReviewCommentsType", + "WebhooksPullRequest5PropLinksPropSelfType", + "WebhooksPullRequest5PropLinksPropStatusesType", + "WebhooksPullRequest5PropLinksType", + "WebhooksPullRequest5PropMergedByType", + "WebhooksPullRequest5PropMilestonePropCreatorType", + "WebhooksPullRequest5PropMilestoneType", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type", + "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", + "WebhooksPullRequest5PropRequestedTeamsItemsType", + "WebhooksPullRequest5PropUserType", + "WebhooksPullRequest5Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0494.py b/githubkit/versions/ghec_v2022_11_28/types/group_0494.py index 7dd35b2e2..e0b112082 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0494.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0494.py @@ -9,47 +9,73 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksSponsorshipType(TypedDict): - """WebhooksSponsorship""" - - created_at: str - maintainer: NotRequired[WebhooksSponsorshipPropMaintainerType] - node_id: str - privacy_level: str - sponsor: Union[WebhooksSponsorshipPropSponsorType, None] - sponsorable: Union[WebhooksSponsorshipPropSponsorableType, None] - tier: WebhooksSponsorshipPropTierType - - -class WebhooksSponsorshipPropMaintainerType(TypedDict): - """WebhooksSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhooksReviewCommentType(TypedDict): + """Pull Request Review Comment + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ -class WebhooksSponsorshipPropSponsorType(TypedDict): + links: WebhooksReviewCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhooksReviewCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhooksReviewCommentPropUserType, None] + + +class WebhooksReviewCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksReviewCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -76,56 +102,38 @@ class WebhooksSponsorshipPropSponsorType(TypedDict): user_view_type: NotRequired[str] -class WebhooksSponsorshipPropSponsorableType(TypedDict): - """User""" +class WebhooksReviewCommentPropLinksType(TypedDict): + """WebhooksReviewCommentPropLinks""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + html: WebhooksReviewCommentPropLinksPropHtmlType + pull_request: WebhooksReviewCommentPropLinksPropPullRequestType + self_: WebhooksReviewCommentPropLinksPropSelfType -class WebhooksSponsorshipPropTierType(TypedDict): - """Sponsorship Tier +class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): + """Link""" - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ + href: str - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str + +class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): + """Link""" + + href: str + + +class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str __all__ = ( - "WebhooksSponsorshipPropMaintainerType", - "WebhooksSponsorshipPropSponsorType", - "WebhooksSponsorshipPropSponsorableType", - "WebhooksSponsorshipPropTierType", - "WebhooksSponsorshipType", + "WebhooksReviewCommentPropLinksPropHtmlType", + "WebhooksReviewCommentPropLinksPropPullRequestType", + "WebhooksReviewCommentPropLinksPropSelfType", + "WebhooksReviewCommentPropLinksType", + "WebhooksReviewCommentPropReactionsType", + "WebhooksReviewCommentPropUserType", + "WebhooksReviewCommentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0495.py b/githubkit/versions/ghec_v2022_11_28/types/group_0495.py index bcc71503a..0d56edfb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0495.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0495.py @@ -9,42 +9,89 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksChanges8Type(TypedDict): - """WebhooksChanges8""" +class WebhooksReviewType(TypedDict): + """WebhooksReview - tier: WebhooksChanges8PropTierType + The review that was affected. + """ + links: WebhooksReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: str + submitted_at: Union[datetime, None] + user: Union[WebhooksReviewPropUserType, None] -class WebhooksChanges8PropTierType(TypedDict): - """WebhooksChanges8PropTier""" - from_: WebhooksChanges8PropTierPropFromType +class WebhooksReviewPropUserType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhooksChanges8PropTierPropFromType(TypedDict): - """Sponsorship Tier - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ +class WebhooksReviewPropLinksType(TypedDict): + """WebhooksReviewPropLinks""" - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str + html: WebhooksReviewPropLinksPropHtmlType + pull_request: WebhooksReviewPropLinksPropPullRequestType + + +class WebhooksReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhooksReviewPropLinksPropPullRequestType(TypedDict): + """Link""" + + href: str __all__ = ( - "WebhooksChanges8PropTierPropFromType", - "WebhooksChanges8PropTierType", - "WebhooksChanges8Type", + "WebhooksReviewPropLinksPropHtmlType", + "WebhooksReviewPropLinksPropPullRequestType", + "WebhooksReviewPropLinksType", + "WebhooksReviewPropUserType", + "WebhooksReviewType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0496.py b/githubkit/versions/ghec_v2022_11_28/types/group_0496.py index 108b60484..10aec5ffc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0496.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0496.py @@ -9,52 +9,133 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksTeam1Type(TypedDict): - """Team +class WebhooksReleaseType(TypedDict): + """Release - Groups of organization members that gives permissions on specified repositories. + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. """ + assets: list[WebhooksReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhooksReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhooksReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhooksReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] id: int - members_url: NotRequired[str] - name: str + login: str + name: NotRequired[str] node_id: NotRequired[str] - parent: NotRequired[Union[WebhooksTeam1PropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhooksTeam1PropParentType(TypedDict): - """WebhooksTeam1PropParent""" +class WebhooksReleasePropReactionsType(TypedDict): + """Reactions""" - description: Union[str, None] - html_url: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int id: int - members_url: str + label: Union[str, None] name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] url: str +class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + __all__ = ( - "WebhooksTeam1PropParentType", - "WebhooksTeam1Type", + "WebhooksReleasePropAssetsItemsPropUploaderType", + "WebhooksReleasePropAssetsItemsType", + "WebhooksReleasePropAuthorType", + "WebhooksReleasePropReactionsType", + "WebhooksReleaseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0497.py b/githubkit/versions/ghec_v2022_11_28/types/group_0497.py index 97035404a..29f198924 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0497.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0497.py @@ -9,25 +9,133 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +class WebhooksRelease1Type(TypedDict): + """Release -class WebhookBranchProtectionConfigurationDisabledType(TypedDict): - """branch protection configuration disabled event""" + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ - action: Literal["disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + assets: list[Union[WebhooksRelease1PropAssetsItemsType, None]] + assets_url: str + author: Union[WebhooksRelease1PropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhooksRelease1PropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] -__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) +class WebhooksRelease1PropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhooksRelease1PropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksRelease1PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +__all__ = ( + "WebhooksRelease1PropAssetsItemsPropUploaderType", + "WebhooksRelease1PropAssetsItemsType", + "WebhooksRelease1PropAuthorType", + "WebhooksRelease1PropReactionsType", + "WebhooksRelease1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0498.py b/githubkit/versions/ghec_v2022_11_28/types/group_0498.py index 86a44cfb0..3401e5834 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0498.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0498.py @@ -9,25 +9,63 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +class WebhooksAlertType(TypedDict): + """Repository Vulnerability Alert Alert -class WebhookBranchProtectionConfigurationEnabledType(TypedDict): - """branch protection configuration enabled event""" + The security alert of the vulnerable dependency. + """ - action: Literal["enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["open"] -__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) +class WebhooksAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhooksAlertPropDismisserType", + "WebhooksAlertType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0499.py b/githubkit/versions/ghec_v2022_11_28/types/group_0499.py index 21751463f..60f295adf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0499.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0499.py @@ -9,27 +9,50 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0448 import WebhooksRuleType - - -class WebhookBranchProtectionRuleCreatedType(TypedDict): - """branch protection rule created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserType - - -__all__ = ("WebhookBranchProtectionRuleCreatedType",) +from .group_0003 import SimpleUserType + + +class SecretScanningAlertWebhookType(TypedDict): + """SecretScanningAlertWebhook""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + resolution: NotRequired[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + + +__all__ = ("SecretScanningAlertWebhookType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0500.py b/githubkit/versions/ghec_v2022_11_28/types/group_0500.py index a98dc8e9a..dce9a1159 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0500.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0500.py @@ -9,27 +9,95 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0448 import WebhooksRuleType +from .group_0001 import CvssSeveritiesType -class WebhookBranchProtectionRuleDeletedType(TypedDict): - """branch protection rule deleted event""" +class WebhooksSecurityAdvisoryType(TypedDict): + """WebhooksSecurityAdvisory - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserType + The details of the security advisory, including summary, description, and + severity. + """ + cvss: WebhooksSecurityAdvisoryPropCvssType + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: list[WebhooksSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItemsType] + published_at: str + references: list[WebhooksSecurityAdvisoryPropReferencesItemsType] + severity: str + summary: str + updated_at: str + vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] + withdrawn_at: Union[str, None] -__all__ = ("WebhookBranchProtectionRuleDeletedType",) + +class WebhooksSecurityAdvisoryPropCvssType(TypedDict): + """WebhooksSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhooksSecurityAdvisoryPropReferencesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" + + identifier: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + + ecosystem: str + name: str + + +__all__ = ( + "WebhooksSecurityAdvisoryPropCvssType", + "WebhooksSecurityAdvisoryPropCwesItemsType", + "WebhooksSecurityAdvisoryPropIdentifiersItemsType", + "WebhooksSecurityAdvisoryPropReferencesItemsType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhooksSecurityAdvisoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0501.py b/githubkit/versions/ghec_v2022_11_28/types/group_0501.py index eab5e4fef..7dd35b2e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0501.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0501.py @@ -12,170 +12,120 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0448 import WebhooksRuleType - -class WebhookBranchProtectionRuleEditedType(TypedDict): - """branch protection rule edited event""" - - action: Literal["edited"] - changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserType - - -class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChanges - - If the action was `edited`, the changes to the rule. - """ - - admin_enforced: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType - ] - authorized_actor_names: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType - ] - authorized_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType - ] - authorized_dismissal_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType - ] - linear_history_requirement_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType - ] - lock_branch_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType - ] - lock_allows_fork_sync: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType - ] - pull_request_reviews_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType - ] - require_last_push_approval: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType - ] - required_status_checks: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType - ] - required_status_checks_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType - ] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" - - from_: list[str] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem - entLevel - """ - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev - el - """ - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: list[str] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel +class WebhooksSponsorshipType(TypedDict): + """WebhooksSponsorship""" + + created_at: str + maintainer: NotRequired[WebhooksSponsorshipPropMaintainerType] + node_id: str + privacy_level: str + sponsor: Union[WebhooksSponsorshipPropSponsorType, None] + sponsorable: Union[WebhooksSponsorshipPropSponsorableType, None] + tier: WebhooksSponsorshipPropTierType + + +class WebhooksSponsorshipPropMaintainerType(TypedDict): + """WebhooksSponsorshipPropMaintainer""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksSponsorshipPropSponsorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksSponsorshipPropSponsorableType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksSponsorshipPropTierType(TypedDict): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - from_: Literal["off", "non_admins", "everyone"] + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int + name: str + node_id: str __all__ = ( - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", - "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", - "WebhookBranchProtectionRuleEditedPropChangesType", - "WebhookBranchProtectionRuleEditedType", + "WebhooksSponsorshipPropMaintainerType", + "WebhooksSponsorshipPropSponsorType", + "WebhooksSponsorshipPropSponsorableType", + "WebhooksSponsorshipPropTierType", + "WebhooksSponsorshipType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0502.py b/githubkit/versions/ghec_v2022_11_28/types/group_0502.py index 306f19004..bcc71503a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0502.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0502.py @@ -9,27 +9,42 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0450 import ExemptionRequestType +class WebhooksChanges8Type(TypedDict): + """WebhooksChanges8""" -class WebhookExemptionRequestCancelledType(TypedDict): - """Exemption request cancellation event""" + tier: WebhooksChanges8PropTierType - action: Literal["cancelled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType - sender: SimpleUserType +class WebhooksChanges8PropTierType(TypedDict): + """WebhooksChanges8PropTier""" -__all__ = ("WebhookExemptionRequestCancelledType",) + from_: WebhooksChanges8PropTierPropFromType + + +class WebhooksChanges8PropTierPropFromType(TypedDict): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int + name: str + node_id: str + + +__all__ = ( + "WebhooksChanges8PropTierPropFromType", + "WebhooksChanges8PropTierType", + "WebhooksChanges8Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0503.py b/githubkit/versions/ghec_v2022_11_28/types/group_0503.py index b63914e44..108b60484 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0503.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0503.py @@ -9,27 +9,52 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0450 import ExemptionRequestType - -class WebhookExemptionRequestCompletedType(TypedDict): - """Exemption request completed event""" - - action: Literal["completed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType - sender: SimpleUserType - - -__all__ = ("WebhookExemptionRequestCompletedType",) +class WebhooksTeam1Type(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhooksTeam1PropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksTeam1PropParentType(TypedDict): + """WebhooksTeam1PropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhooksTeam1PropParentType", + "WebhooksTeam1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0504.py b/githubkit/versions/ghec_v2022_11_28/types/group_0504.py index 76420db00..32c3f0709 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0504.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0504.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0450 import ExemptionRequestType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookExemptionRequestCreatedType(TypedDict): - """Exemption request created event""" +class WebhookBranchProtectionConfigurationDisabledType(TypedDict): + """branch protection configuration disabled event""" - action: Literal["created"] + action: Literal["disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookExemptionRequestCreatedType",) +__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0505.py b/githubkit/versions/ghec_v2022_11_28/types/group_0505.py index 74e403bdc..360a2b3dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0505.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0505.py @@ -12,26 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0449 import ExemptionResponseType -from .group_0450 import ExemptionRequestType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookExemptionRequestResponseDismissedType(TypedDict): - """Exemption response dismissed event""" +class WebhookBranchProtectionConfigurationEnabledType(TypedDict): + """branch protection configuration enabled event""" - action: Literal["response_dismissed"] + action: Literal["enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType - exemption_response: ExemptionResponseType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookExemptionRequestResponseDismissedType",) +__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0506.py b/githubkit/versions/ghec_v2022_11_28/types/group_0506.py index e8a3d047c..8529ac770 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0506.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0506.py @@ -12,26 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0449 import ExemptionResponseType -from .group_0450 import ExemptionRequestType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0455 import WebhooksRuleType -class WebhookExemptionRequestResponseSubmittedType(TypedDict): - """Exemption response submitted event""" +class WebhookBranchProtectionRuleCreatedType(TypedDict): + """branch protection rule created event""" - action: Literal["response_submitted"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType - exemption_response: ExemptionResponseType + repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserType -__all__ = ("WebhookExemptionRequestResponseSubmittedType",) +__all__ = ("WebhookBranchProtectionRuleCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0507.py b/githubkit/versions/ghec_v2022_11_28/types/group_0507.py index c289a0d14..3d75a18bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0507.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0507.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0452 import CheckRunWithSimpleCheckSuiteType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0455 import WebhooksRuleType -class WebhookCheckRunCompletedType(TypedDict): - """Check Run Completed Event""" +class WebhookBranchProtectionRuleDeletedType(TypedDict): + """branch protection rule deleted event""" - action: Literal["completed"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserType -__all__ = ("WebhookCheckRunCompletedType",) +__all__ = ("WebhookBranchProtectionRuleDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0508.py b/githubkit/versions/ghec_v2022_11_28/types/group_0508.py index 831afd105..8a6e297e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0508.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0508.py @@ -9,16 +9,173 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0455 import WebhooksRuleType -class WebhookCheckRunCompletedFormEncodedType(TypedDict): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding +class WebhookBranchProtectionRuleEditedType(TypedDict): + """branch protection rule edited event""" + + action: Literal["edited"] + changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + rule: WebhooksRuleType + sender: SimpleUserType + + +class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType + ] + authorized_actor_names: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType + ] + authorized_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType + ] + authorized_dismissal_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType + ] + linear_history_requirement_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType + ] + lock_branch_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType + ] + lock_allows_fork_sync: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType + ] + pull_request_reviews_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType + ] + require_last_push_approval: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType + ] + required_status_checks: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType + ] + required_status_checks_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType + ] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: list[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: list[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel """ - payload: str + from_: Literal["off", "non_admins", "everyone"] -__all__ = ("WebhookCheckRunCompletedFormEncodedType",) +__all__ = ( + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", + "WebhookBranchProtectionRuleEditedPropChangesType", + "WebhookBranchProtectionRuleEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0509.py b/githubkit/versions/ghec_v2022_11_28/types/group_0509.py index db9f68ea9..c4b7f6939 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0509.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0509.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0452 import CheckRunWithSimpleCheckSuiteType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0457 import ExemptionRequestType -class WebhookCheckRunCreatedType(TypedDict): - """Check Run Created Event""" +class WebhookExemptionRequestCancelledType(TypedDict): + """Exemption request cancellation event""" - action: Literal["created"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["cancelled"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType sender: SimpleUserType -__all__ = ("WebhookCheckRunCreatedType",) +__all__ = ("WebhookExemptionRequestCancelledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0510.py b/githubkit/versions/ghec_v2022_11_28/types/group_0510.py index 090ccf388..d950780f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0510.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0510.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0457 import ExemptionRequestType -class WebhookCheckRunCreatedFormEncodedType(TypedDict): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookExemptionRequestCompletedType(TypedDict): + """Exemption request completed event""" - payload: str + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType + sender: SimpleUserType -__all__ = ("WebhookCheckRunCreatedFormEncodedType",) +__all__ = ("WebhookExemptionRequestCompletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0511.py b/githubkit/versions/ghec_v2022_11_28/types/group_0511.py index e1ef8c1f0..4a873aa74 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0511.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0511.py @@ -12,35 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0452 import CheckRunWithSimpleCheckSuiteType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0457 import ExemptionRequestType -class WebhookCheckRunRequestedActionType(TypedDict): - """Check Run Requested Action Event""" +class WebhookExemptionRequestCreatedType(TypedDict): + """Exemption request created event""" - action: Literal["requested_action"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType sender: SimpleUserType -class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. - """ - - identifier: NotRequired[str] - - -__all__ = ( - "WebhookCheckRunRequestedActionPropRequestedActionType", - "WebhookCheckRunRequestedActionType", -) +__all__ = ("WebhookExemptionRequestCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0512.py b/githubkit/versions/ghec_v2022_11_28/types/group_0512.py index 0d80e2c39..ec29b6ec9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0512.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0512.py @@ -9,16 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0456 import ExemptionResponseType +from .group_0457 import ExemptionRequestType -class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookExemptionRequestResponseDismissedType(TypedDict): + """Exemption response dismissed event""" - payload: str + action: Literal["response_dismissed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType + exemption_response: ExemptionResponseType + sender: SimpleUserType -__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) +__all__ = ("WebhookExemptionRequestResponseDismissedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0513.py b/githubkit/versions/ghec_v2022_11_28/types/group_0513.py index fae36e9ab..f558f8e49 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0513.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0513.py @@ -12,22 +12,26 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0452 import CheckRunWithSimpleCheckSuiteType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0456 import ExemptionResponseType +from .group_0457 import ExemptionRequestType -class WebhookCheckRunRerequestedType(TypedDict): - """Check Run Re-Requested Event""" +class WebhookExemptionRequestResponseSubmittedType(TypedDict): + """Exemption response submitted event""" - action: Literal["rerequested"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["response_submitted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType + exemption_response: ExemptionResponseType sender: SimpleUserType -__all__ = ("WebhookCheckRunRerequestedType",) +__all__ = ("WebhookExemptionRequestResponseSubmittedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0514.py b/githubkit/versions/ghec_v2022_11_28/types/group_0514.py index ef6a77599..614e69911 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0514.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0514.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0459 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRerequestedFormEncodedType(TypedDict): - """Check Run Re-Requested Event - The check_run.rerequested webhook encoded with URL encoding - """ +class WebhookCheckRunCompletedType(TypedDict): + """Check Run Completed Event""" - payload: str + action: Literal["completed"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) +__all__ = ("WebhookCheckRunCompletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0515.py b/githubkit/versions/ghec_v2022_11_28/types/group_0515.py index 4667b307f..831afd105 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0515.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0515.py @@ -9,268 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +class WebhookCheckRunCompletedFormEncodedType(TypedDict): + """Check Run Completed Event -class WebhookCheckSuiteCompletedType(TypedDict): - """check_suite completed event""" - - action: Literal["completed"] - check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: list[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] - updated_at: datetime - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The check_run.completed webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - client_id: NotRequired[Union[str, None]] - name: str - node_id: str - owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteCompletedPropCheckSuiteType", - "WebhookCheckSuiteCompletedType", -) +__all__ = ("WebhookCheckRunCompletedFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0516.py b/githubkit/versions/ghec_v2022_11_28/types/group_0516.py index f704f3f11..ed1c6671a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0516.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0516.py @@ -9,265 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0459 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckSuiteRequestedType(TypedDict): - """check_suite requested event""" +class WebhookCheckRunCreatedType(TypedDict): + """Check Run Created Event""" - action: Literal["requested"] - check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: list[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - client_id: NotRequired[Union[str, None]] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRequestedPropCheckSuiteType", - "WebhookCheckSuiteRequestedType", -) +__all__ = ("WebhookCheckRunCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0517.py b/githubkit/versions/ghec_v2022_11_28/types/group_0517.py index 164f45b3e..090ccf388 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0517.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0517.py @@ -9,264 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +class WebhookCheckRunCreatedFormEncodedType(TypedDict): + """Check Run Created Event -class WebhookCheckSuiteRerequestedType(TypedDict): - """check_suite rerequested event""" - - action: Literal["rerequested"] - check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: list[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The check_run.created webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - client_id: NotRequired[Union[str, None]] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRerequestedPropCheckSuiteType", - "WebhookCheckSuiteRerequestedType", -) +__all__ = ("WebhookCheckRunCreatedFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0518.py b/githubkit/versions/ghec_v2022_11_28/types/group_0518.py index 2c9cbfe64..5f1f767c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0518.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0518.py @@ -9,154 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0459 import CheckRunWithSimpleCheckSuiteType -class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckRunRequestedActionType(TypedDict): + """Check Run Requested Action Event""" - action: Literal["appeared_in_branch"] - alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["requested_action"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType + requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] sender: SimpleUserType -class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlert +class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): + """WebhookCheckRunRequestedActionPropRequestedAction - The code scanning alert involved in the event. + The action requested by the user. """ - created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None - ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, - None, - ] - ] - number: int - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed", "fixed"]] - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType - url: str - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ - - text: NotRequired[str] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" - - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - - name: str - version: Union[str, None] + identifier: NotRequired[str] __all__ = ( - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertType", - "WebhookCodeScanningAlertAppearedInBranchType", + "WebhookCheckRunRequestedActionPropRequestedActionType", + "WebhookCheckRunRequestedActionType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0519.py b/githubkit/versions/ghec_v2022_11_28/types/group_0519.py index 4eb5aa37c..0d80e2c39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0519.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0519.py @@ -9,156 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): + """Check Run Requested Action Event -class WebhookCodeScanningAlertClosedByUserType(TypedDict): - """code_scanning_alert closed_by_user event""" - - action: Literal["closed_by_user"] - alert: WebhookCodeScanningAlertClosedByUserPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlert - - The code scanning alert involved in the event. + The check_run.requested_action webhook encoded with URL encoding """ - created_at: datetime - dismissed_at: datetime - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None - ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, - None, - ] - ] - number: int - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType - state: Literal["dismissed", "fixed"] - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType - url: str - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" - - text: NotRequired[str] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" - - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" - - guid: NotRequired[Union[str, None]] - name: str - version: Union[str, None] + payload: str -__all__ = ( - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", - "WebhookCodeScanningAlertClosedByUserPropAlertType", - "WebhookCodeScanningAlertClosedByUserType", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0520.py b/githubkit/versions/ghec_v2022_11_28/types/group_0520.py index e90972f6c..b1c51c34e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0520.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0520.py @@ -9,121 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0459 import CheckRunWithSimpleCheckSuiteType -class WebhookCodeScanningAlertCreatedType(TypedDict): - """code_scanning_alert created event""" +class WebhookCheckRunRerequestedType(TypedDict): + """Check Run Re-Requested Event""" - action: Literal["created"] - alert: WebhookCodeScanningAlertCreatedPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["rerequested"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlert - - The code scanning alert involved in the event. - """ - - created_at: Union[datetime, None] - dismissed_at: None - dismissed_by: None - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None - fixed_at: NotRequired[None] - html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] - ] - number: int - rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed"]] - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] - updated_at: NotRequired[Union[str, None]] - url: str - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" - - text: NotRequired[str] - - -class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" - - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] - - -class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" - - guid: NotRequired[Union[str, None]] - name: str - version: Union[str, None] - - -__all__ = ( - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", - "WebhookCodeScanningAlertCreatedPropAlertPropToolType", - "WebhookCodeScanningAlertCreatedPropAlertType", - "WebhookCodeScanningAlertCreatedType", -) +__all__ = ("WebhookCheckRunRerequestedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0521.py b/githubkit/versions/ghec_v2022_11_28/types/group_0521.py index 5d387d2d9..ef6a77599 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0521.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0521.py @@ -9,150 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +class WebhookCheckRunRerequestedFormEncodedType(TypedDict): + """Check Run Re-Requested Event -class WebhookCodeScanningAlertFixedType(TypedDict): - """code_scanning_alert fixed event""" - - action: Literal["fixed"] - alert: WebhookCodeScanningAlertFixedPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlert - - The code scanning alert involved in the event. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - fixed_at: NotRequired[None] - html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] - ] - number: int - rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType - state: Union[None, Literal["fixed"]] - tool: WebhookCodeScanningAlertFixedPropAlertPropToolType - url: str - - -class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" - - text: NotRequired[str] - - -class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" - - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] - - -class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" - - guid: NotRequired[Union[str, None]] - name: str - version: Union[str, None] + payload: str -__all__ = ( - "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertFixedPropAlertPropRuleType", - "WebhookCodeScanningAlertFixedPropAlertPropToolType", - "WebhookCodeScanningAlertFixedPropAlertType", - "WebhookCodeScanningAlertFixedType", -) +__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0522.py b/githubkit/versions/ghec_v2022_11_28/types/group_0522.py index 6c4971f87..c3513ee96 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0522.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0522.py @@ -13,122 +13,264 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookCodeScanningAlertReopenedType(TypedDict): - """code_scanning_alert reopened event""" +class WebhookCheckSuiteCompletedType(TypedDict): + """check_suite completed event""" - action: Literal["reopened"] - alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] - commit_oid: Union[str, None] + action: Literal["completed"] + check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: Union[str, None] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] created_at: datetime - dismissed_at: Union[str, None] - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: list[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[str, None] - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] ] - number: int - rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed", "fixed"]] - tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + updated_at: datetime url: str -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" +class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): + """App + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + client_id: NotRequired[Union[str, None]] + name: str + node_id: str + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType ] - ref: str - state: Literal["open", "dismissed", "fixed"] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """Committer - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - text: NotRequired[str] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] + id: int + name: str + url: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" - guid: NotRequired[Union[str, None]] +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedPropAlertPropToolType", - "WebhookCodeScanningAlertReopenedPropAlertType", - "WebhookCodeScanningAlertReopenedType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteCompletedPropCheckSuiteType", + "WebhookCheckSuiteCompletedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0523.py b/githubkit/versions/ghec_v2022_11_28/types/group_0523.py index a92cc22b3..1ef3b9db0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0523.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0523.py @@ -13,116 +13,261 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookCodeScanningAlertReopenedByUserType(TypedDict): - """code_scanning_alert reopened_by_user event""" +class WebhookCheckSuiteRequestedType(TypedDict): + """check_suite requested event""" - action: Literal["reopened_by_user"] - alert: WebhookCodeScanningAlertReopenedByUserPropAlertType - commit_oid: str + action: Literal["requested"] + check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] created_at: datetime - dismissed_at: None - dismissed_by: None - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, - None, - ] + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: list[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType ] - number: int - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType - state: Union[None, Literal["open", "fixed"]] - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType +class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + client_id: NotRequired[Union[str, None]] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType ] - ref: str - state: Literal["open", "dismissed", "fixed"] + slug: NotRequired[str] + updated_at: Union[datetime, None] + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n + """Committer + + Metaproperties for Git author/committer information. """ - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", - "WebhookCodeScanningAlertReopenedByUserPropAlertType", - "WebhookCodeScanningAlertReopenedByUserType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRequestedPropCheckSuiteType", + "WebhookCheckSuiteRequestedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0524.py b/githubkit/versions/ghec_v2022_11_28/types/group_0524.py index 0f8e86057..1177e46d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0524.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0524.py @@ -9,21 +9,22 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookCommitCommentCreatedType(TypedDict): - """commit_comment created event""" +class WebhookCheckSuiteRerequestedType(TypedDict): + """check_suite rerequested event""" - action: Literal["created"] - comment: WebhookCommitCommentCreatedPropCommentType + action: Literal["rerequested"] + check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -31,55 +32,73 @@ class WebhookCommitCommentCreatedType(TypedDict): sender: SimpleUserType -class WebhookCommitCommentCreatedPropCommentType(TypedDict): - """WebhookCommitCommentCreatedPropComment +class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuite - The [commit - comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- - comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + after: Union[str, None] + app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], ] - body: str - commit_id: str - created_at: str - html_url: str + created_at: datetime + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType + head_sha: str id: int - line: Union[int, None] + latest_check_runs_count: int node_id: str - path: Union[str, None] - position: Union[int, None] - reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] - updated_at: str + pull_requests: list[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType + ] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime url: str - user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] -class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): + """App - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + client_id: NotRequired[Union[str, None]] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -106,9 +125,148 @@ class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): user_view_type: NotRequired[str] +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + __all__ = ( - "WebhookCommitCommentCreatedPropCommentPropReactionsType", - "WebhookCommitCommentCreatedPropCommentPropUserType", - "WebhookCommitCommentCreatedPropCommentType", - "WebhookCommitCommentCreatedType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRerequestedPropCheckSuiteType", + "WebhookCheckSuiteRerequestedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0525.py b/githubkit/versions/ghec_v2022_11_28/types/group_0525.py index e85feb3c6..f6c8813b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0525.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0525.py @@ -9,29 +9,154 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookCreateType(TypedDict): - """create event""" +class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): + """code_scanning_alert appeared_in_branch event""" - description: Union[str, None] + action: Literal["appeared_in_branch"] + alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str ref: str - ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookCreateType",) +class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + ] + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + fixed_at: NotRequired[None] + html_url: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed", "fixed"]] + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ + + text: NotRequired[str] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" + + description: str + id: str + severity: Union[None, Literal["none", "note", "warning", "error"]] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" + + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertType", + "WebhookCodeScanningAlertAppearedInBranchType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0526.py b/githubkit/versions/ghec_v2022_11_28/types/group_0526.py index 23a7cafba..c3e33e098 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0526.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0526.py @@ -9,25 +9,156 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0070 import CustomPropertyType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookCustomPropertyCreatedType(TypedDict): - """custom property created event""" +class WebhookCodeScanningAlertClosedByUserType(TypedDict): + """code_scanning_alert closed_by_user event""" - action: Literal["created"] - definition: CustomPropertyType + action: Literal["closed_by_user"] + alert: WebhookCodeScanningAlertClosedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyCreatedType",) +class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: datetime + dismissed_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None + ] + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + fixed_at: NotRequired[None] + html_url: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType + state: Literal["dismissed", "fixed"] + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertClosedByUserPropAlertType", + "WebhookCodeScanningAlertClosedByUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0527.py b/githubkit/versions/ghec_v2022_11_28/types/group_0527.py index ba49bdef8..c16ae045c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0527.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0527.py @@ -9,33 +9,121 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookCustomPropertyDeletedType(TypedDict): - """custom property deleted event""" +class WebhookCodeScanningAlertCreatedType(TypedDict): + """code_scanning_alert created event""" - action: Literal["deleted"] - definition: WebhookCustomPropertyDeletedPropDefinitionType + action: Literal["created"] + alert: WebhookCodeScanningAlertCreatedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlert - property_name: str + The code scanning alert involved in the event. + """ + + created_at: Union[datetime, None] + dismissed_at: None + dismissed_by: None + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: None + fixed_at: NotRequired[None] + html_url: str + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed"]] + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] + updated_at: NotRequired[Union[str, None]] + url: str + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] __all__ = ( - "WebhookCustomPropertyDeletedPropDefinitionType", - "WebhookCustomPropertyDeletedType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", + "WebhookCodeScanningAlertCreatedPropAlertPropToolType", + "WebhookCodeScanningAlertCreatedPropAlertType", + "WebhookCodeScanningAlertCreatedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0528.py b/githubkit/versions/ghec_v2022_11_28/types/group_0528.py index ebed3442b..70f114409 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0528.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0528.py @@ -9,25 +9,150 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0070 import CustomPropertyType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookCustomPropertyUpdatedType(TypedDict): - """custom property updated event""" +class WebhookCodeScanningAlertFixedType(TypedDict): + """code_scanning_alert fixed event""" - action: Literal["updated"] - definition: CustomPropertyType + action: Literal["fixed"] + alert: WebhookCodeScanningAlertFixedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyUpdatedType",) +class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + fixed_at: NotRequired[None] + html_url: str + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType + state: Union[None, Literal["fixed"]] + tool: WebhookCodeScanningAlertFixedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertFixedPropAlertPropRuleType", + "WebhookCodeScanningAlertFixedPropAlertPropToolType", + "WebhookCodeScanningAlertFixedPropAlertType", + "WebhookCodeScanningAlertFixedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0529.py b/githubkit/versions/ghec_v2022_11_28/types/group_0529.py index 86cb9a31a..2b847ee4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0529.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0529.py @@ -9,28 +9,126 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0190 import CustomPropertyValueType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookCustomPropertyValuesUpdatedType(TypedDict): - """Custom property values updated event""" +class WebhookCodeScanningAlertReopenedType(TypedDict): + """code_scanning_alert reopened event""" - action: Literal["updated"] + action: Literal["reopened"] + alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] + commit_oid: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: Union[str, None] repository: RepositoryWebhooksType - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserType] - new_property_values: list[CustomPropertyValueType] - old_property_values: list[CustomPropertyValueType] + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyValuesUpdatedType",) +class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[str, None] + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + ] + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[str, None] + fixed_at: NotRequired[None] + html_url: str + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed", "fixed"]] + tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedPropAlertPropToolType", + "WebhookCodeScanningAlertReopenedPropAlertType", + "WebhookCodeScanningAlertReopenedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0530.py b/githubkit/versions/ghec_v2022_11_28/types/group_0530.py index 8054d2748..0de48e1f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0530.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0530.py @@ -9,27 +9,120 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookDeleteType(TypedDict): - """delete event""" +class WebhookCodeScanningAlertReopenedByUserType(TypedDict): + """code_scanning_alert reopened_by_user event""" + action: Literal["reopened_by_user"] + alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str ref: str - ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeleteType",) +class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: None + dismissed_by: None + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: None + fixed_at: NotRequired[None] + html_url: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType + state: Union[None, Literal["open", "fixed"]] + tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio + n + """ + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" + + description: str + id: str + severity: Union[None, Literal["none", "note", "warning", "error"]] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" + + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertReopenedByUserPropAlertType", + "WebhookCodeScanningAlertReopenedByUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0531.py b/githubkit/versions/ghec_v2022_11_28/types/group_0531.py index 87b00ed9a..9f46a8f65 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0531.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0531.py @@ -9,27 +9,106 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0295 import DependabotAlertType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookDependabotAlertAutoDismissedType(TypedDict): - """Dependabot alert auto-dismissed event""" +class WebhookCommitCommentCreatedType(TypedDict): + """commit_comment created event""" - action: Literal["auto_dismissed"] - alert: DependabotAlertType + action: Literal["created"] + comment: WebhookCommitCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDependabotAlertAutoDismissedType",) +class WebhookCommitCommentCreatedPropCommentType(TypedDict): + """WebhookCommitCommentCreatedPropComment + + The [commit + comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- + comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: str + html_url: str + id: int + line: Union[int, None] + node_id: str + path: Union[str, None] + position: Union[int, None] + reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] + updated_at: str + url: str + user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] + + +class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookCommitCommentCreatedPropCommentPropReactionsType", + "WebhookCommitCommentCreatedPropCommentPropUserType", + "WebhookCommitCommentCreatedPropCommentType", + "WebhookCommitCommentCreatedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0532.py b/githubkit/versions/ghec_v2022_11_28/types/group_0532.py index 1106d6dc8..768c62ef9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0532.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0532.py @@ -9,27 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0295 import DependabotAlertType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookDependabotAlertAutoReopenedType(TypedDict): - """Dependabot alert auto-reopened event""" +class WebhookCreateType(TypedDict): + """create event""" - action: Literal["auto_reopened"] - alert: DependabotAlertType + description: Union[str, None] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDependabotAlertAutoReopenedType",) +__all__ = ("WebhookCreateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0533.py b/githubkit/versions/ghec_v2022_11_28/types/group_0533.py index 9a7275e78..50b6c49c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0533.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0533.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0295 import DependabotAlertType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0077 import CustomPropertyType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertCreatedType(TypedDict): - """Dependabot alert created event""" +class WebhookCustomPropertyCreatedType(TypedDict): + """custom property created event""" action: Literal["created"] - alert: DependabotAlertType + definition: CustomPropertyType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDependabotAlertCreatedType",) +__all__ = ("WebhookCustomPropertyCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0534.py b/githubkit/versions/ghec_v2022_11_28/types/group_0534.py index cd33c43ce..589b1ce09 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0534.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0534.py @@ -12,24 +12,30 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0295 import DependabotAlertType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertDismissedType(TypedDict): - """Dependabot alert dismissed event""" +class WebhookCustomPropertyDeletedType(TypedDict): + """custom property deleted event""" - action: Literal["dismissed"] - alert: DependabotAlertType + action: Literal["deleted"] + definition: WebhookCustomPropertyDeletedPropDefinitionType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] + + +class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str -__all__ = ("WebhookDependabotAlertDismissedType",) +__all__ = ( + "WebhookCustomPropertyDeletedPropDefinitionType", + "WebhookCustomPropertyDeletedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0535.py b/githubkit/versions/ghec_v2022_11_28/types/group_0535.py index b7c83170e..940e97561 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0535.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0535.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0295 import DependabotAlertType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0077 import CustomPropertyType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertFixedType(TypedDict): - """Dependabot alert fixed event""" +class WebhookCustomPropertyUpdatedType(TypedDict): + """custom property updated event""" - action: Literal["fixed"] - alert: DependabotAlertType + action: Literal["updated"] + definition: CustomPropertyType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDependabotAlertFixedType",) +__all__ = ("WebhookCustomPropertyUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0536.py b/githubkit/versions/ghec_v2022_11_28/types/group_0536.py index 579780f96..b0b06f770 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0536.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0536.py @@ -12,24 +12,25 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0295 import DependabotAlertType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0197 import CustomPropertyValueType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookDependabotAlertReintroducedType(TypedDict): - """Dependabot alert reintroduced event""" +class WebhookCustomPropertyValuesUpdatedType(TypedDict): + """Custom property values updated event""" - action: Literal["reintroduced"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] repository: RepositoryWebhooksType - sender: SimpleUserType + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserType] + new_property_values: list[CustomPropertyValueType] + old_property_values: list[CustomPropertyValueType] -__all__ = ("WebhookDependabotAlertReintroducedType",) +__all__ = ("WebhookCustomPropertyValuesUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0537.py b/githubkit/versions/ghec_v2022_11_28/types/group_0537.py index bcca222d7..f39ad07e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0537.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0537.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0295 import DependabotAlertType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookDependabotAlertReopenedType(TypedDict): - """Dependabot alert reopened event""" +class WebhookDeleteType(TypedDict): + """delete event""" - action: Literal["reopened"] - alert: DependabotAlertType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDependabotAlertReopenedType",) +__all__ = ("WebhookDeleteType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0538.py b/githubkit/versions/ghec_v2022_11_28/types/group_0538.py index deddc8fe1..1bbc1a4bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0538.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0538.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0453 import WebhooksDeployKeyType +from .group_0003 import SimpleUserType +from .group_0302 import DependabotAlertType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookDeployKeyCreatedType(TypedDict): - """deploy_key created event""" +class WebhookDependabotAlertAutoDismissedType(TypedDict): + """Dependabot alert auto-dismissed event""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["auto_dismissed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeployKeyCreatedType",) +__all__ = ("WebhookDependabotAlertAutoDismissedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0539.py b/githubkit/versions/ghec_v2022_11_28/types/group_0539.py index 916af1ab2..566a564b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0539.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0539.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0453 import WebhooksDeployKeyType +from .group_0003 import SimpleUserType +from .group_0302 import DependabotAlertType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookDeployKeyDeletedType(TypedDict): - """deploy_key deleted event""" +class WebhookDependabotAlertAutoReopenedType(TypedDict): + """Dependabot alert auto-reopened event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["auto_reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeployKeyDeletedType",) +__all__ = ("WebhookDependabotAlertAutoReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0540.py b/githubkit/versions/ghec_v2022_11_28/types/group_0540.py index a6df452c7..223ba68ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0540.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0540.py @@ -9,550 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0454 import WebhooksWorkflowType +from .group_0003 import SimpleUserType +from .group_0302 import DependabotAlertType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookDeploymentCreatedType(TypedDict): - """deployment created event""" +class WebhookDependabotAlertCreatedType(TypedDict): + """Dependabot alert created event""" action: Literal["created"] - deployment: WebhookDeploymentCreatedPropDeploymentType - enterprise: NotRequired[EnterpriseWebhooksType] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] - - -class WebhookDeploymentCreatedPropDeploymentType(TypedDict): - """Deployment - - The [deployment](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/deployments#list-deployments). - """ - - created_at: str - creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] - description: Union[str, None] - environment: str - id: int - node_id: str - original_environment: str - payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type] - performed_via_github_app: NotRequired[ - Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] - ] - production_environment: NotRequired[bool] - ref: str - repository_url: str - sha: str - statuses_url: str - task: str - transient_environment: NotRequired[bool] - updated_at: str - url: str - - -class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[str, Any] -"""WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 -""" - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[None] - head_repository: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[None] - pull_requests: list[ - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: NotRequired[ - Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: ( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - ) - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: ( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - ) - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentCreatedPropDeploymentType", - "WebhookDeploymentCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentCreatedPropWorkflowRunType", - "WebhookDeploymentCreatedType", -) +__all__ = ("WebhookDependabotAlertCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0541.py b/githubkit/versions/ghec_v2022_11_28/types/group_0541.py index bdbdf3515..ad136b9fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0541.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0541.py @@ -12,27 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0227 import DeploymentType -from .group_0358 import PullRequestType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType - - -class WebhookDeploymentProtectionRuleRequestedType(TypedDict): - """deployment protection rule requested event""" - - action: Literal["requested"] - environment: NotRequired[str] - event: NotRequired[str] - deployment_callback_url: NotRequired[str] - deployment: NotRequired[DeploymentType] - pull_requests: NotRequired[list[PullRequestType]] - repository: NotRequired[RepositoryWebhooksType] - organization: NotRequired[OrganizationSimpleWebhooksType] +from .group_0003 import SimpleUserType +from .group_0302 import DependabotAlertType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType + + +class WebhookDependabotAlertDismissedType(TypedDict): + """Dependabot alert dismissed event""" + + action: Literal["dismissed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - sender: NotRequired[SimpleUserType] + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) +__all__ = ("WebhookDependabotAlertDismissedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0542.py b/githubkit/versions/ghec_v2022_11_28/types/group_0542.py index dc3efba23..6a9b1df11 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0542.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0542.py @@ -9,419 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0455 import WebhooksApproverType, WebhooksReviewersItemsType -from .group_0456 import WebhooksWorkflowJobRunType +from .group_0003 import SimpleUserType +from .group_0302 import DependabotAlertType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookDeploymentReviewApprovedType(TypedDict): - """WebhookDeploymentReviewApproved""" +class WebhookDependabotAlertFixedType(TypedDict): + """Dependabot alert fixed event""" - action: Literal["approved"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["fixed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[None] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunType", - "WebhookDeploymentReviewApprovedType", -) +__all__ = ("WebhookDependabotAlertFixedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0543.py b/githubkit/versions/ghec_v2022_11_28/types/group_0543.py index eb8e6b236..b7e1294f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0543.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0543.py @@ -9,417 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0455 import WebhooksApproverType, WebhooksReviewersItemsType -from .group_0456 import WebhooksWorkflowJobRunType +from .group_0003 import SimpleUserType +from .group_0302 import DependabotAlertType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookDeploymentReviewRejectedType(TypedDict): - """WebhookDeploymentReviewRejected""" +class WebhookDependabotAlertReintroducedType(TypedDict): + """Dependabot alert reintroduced event""" - action: Literal["rejected"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reintroduced"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - display_title: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunType", - "WebhookDeploymentReviewRejectedType", -) +__all__ = ("WebhookDependabotAlertReintroducedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0544.py b/githubkit/versions/ghec_v2022_11_28/types/group_0544.py index c48ac37a9..20857e53d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0544.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0544.py @@ -9,453 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0302 import DependabotAlertType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookDeploymentReviewRequestedType(TypedDict): - """WebhookDeploymentReviewRequested""" +class WebhookDependabotAlertReopenedType(TypedDict): + """Dependabot alert reopened event""" - action: Literal["requested"] - enterprise: NotRequired[EnterpriseWebhooksType] - environment: str + action: Literal["reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType - requestor: Union[WebhooksUserType, None] - reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserType - since: str - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] - - -class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str - html_url: str - id: int - name: Union[str, None] - status: str - updated_at: str - - -class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] - ] - type: NotRequired[Literal["User", "Team"]] - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - display_title: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewRequestedPropReviewersItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunType", - "WebhookDeploymentReviewRequestedType", -) +__all__ = ("WebhookDependabotAlertReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0545.py b/githubkit/versions/ghec_v2022_11_28/types/group_0545.py index cf9751160..28e83ce2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0545.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0545.py @@ -9,765 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0454 import WebhooksWorkflowType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0460 import WebhooksDeployKeyType -class WebhookDeploymentStatusCreatedType(TypedDict): - """deployment_status created event""" +class WebhookDeployKeyCreatedType(TypedDict): + """deploy_key created event""" action: Literal["created"] - check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] - deployment: WebhookDeploymentStatusCreatedPropDeploymentType - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow: NotRequired[Union[WebhooksWorkflowType, None]] - workflow_run: NotRequired[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] - ] -class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - details_url: str - external_id: str - head_sha: str - html_url: str - id: int - name: str - node_id: str - started_at: datetime - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): - """Deployment - - The [deployment](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/deployments#list-deployments). - """ - - created_at: str - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] - description: Union[str, None] - environment: str - id: int - node_id: str - original_environment: str - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None - ] - performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, - None, - ] - ] - production_environment: NotRequired[bool] - ref: str - repository_url: str - sha: str - statuses_url: str - task: str - transient_environment: NotRequired[bool] - updated_at: str - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[ - str, Any -] -"""WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 -""" - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( - TypedDict -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss - ions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusType(TypedDict): - """WebhookDeploymentStatusCreatedPropDeploymentStatus - - The [deployment status](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/statuses#list-deployment-statuses). - """ - - created_at: str - creator: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, None - ] - deployment_url: str - description: str - environment: str - environment_url: NotRequired[str] - id: int - log_url: NotRequired[str] - node_id: str - performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, - None, - ] - ] - repository_url: str - state: str - target_url: str - updated_at: str - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType( - TypedDict -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[None] - head_repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[None] - pull_requests: list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookDeploymentStatusCreatedPropCheckRunType", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusType", - "WebhookDeploymentStatusCreatedPropDeploymentType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunType", - "WebhookDeploymentStatusCreatedType", -) +__all__ = ("WebhookDeployKeyCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0546.py b/githubkit/versions/ghec_v2022_11_28/types/group_0546.py index df321889b..d5b61ad97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0546.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0546.py @@ -12,26 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0458 import WebhooksAnswerType -from .group_0459 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0460 import WebhooksDeployKeyType -class WebhookDiscussionAnsweredType(TypedDict): - """discussion answered event""" +class WebhookDeployKeyDeletedType(TypedDict): + """deploy_key deleted event""" - action: Literal["answered"] - answer: WebhooksAnswerType - discussion: DiscussionType + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionAnsweredType",) +__all__ = ("WebhookDeployKeyDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0547.py b/githubkit/versions/ghec_v2022_11_28/types/group_0547.py index 9e0b5c1f7..a890a4e36 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0547.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0547.py @@ -10,60 +10,549 @@ from __future__ import annotations from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0461 import WebhooksWorkflowType -class WebhookDiscussionCategoryChangedType(TypedDict): - """discussion category changed event""" +class WebhookDeploymentCreatedType(TypedDict): + """deployment created event""" - action: Literal["category_changed"] - changes: WebhookDiscussionCategoryChangedPropChangesType - discussion: DiscussionType + action: Literal["created"] + deployment: WebhookDeploymentCreatedPropDeploymentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] -class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): - """WebhookDiscussionCategoryChangedPropChanges""" +class WebhookDeploymentCreatedPropDeploymentType(TypedDict): + """Deployment - category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + The [deployment](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/deployments#list-deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type] + performed_via_github_app: NotRequired[ + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] + ] + production_environment: NotRequired[bool] + ref: str + repository_url: str + sha: str + statuses_url: str + task: str + transient_environment: NotRequired[bool] + updated_at: str + url: str + + +class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[str, Any] +"""WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 +""" + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + The set of permissions for the GitHub app + """ + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" +class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] created_at: datetime - description: str - emoji: str + display_title: str + event: str + head_branch: str + head_commit: NotRequired[None] + head_repository: NotRequired[ + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str id: int - is_answerable: bool + jobs_url: NotRequired[str] + logs_url: NotRequired[str] name: str + node_id: str + path: str + previous_attempt_url: NotRequired[None] + pull_requests: list[ + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: NotRequired[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + ) + sha: str + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + ) + sha: str + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str __all__ = ( - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", - "WebhookDiscussionCategoryChangedPropChangesType", - "WebhookDiscussionCategoryChangedType", + "WebhookDeploymentCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentCreatedPropDeploymentType", + "WebhookDeploymentCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentCreatedPropWorkflowRunType", + "WebhookDeploymentCreatedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0548.py b/githubkit/versions/ghec_v2022_11_28/types/group_0548.py index de5e7e0ee..5a9299264 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0548.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0548.py @@ -12,24 +12,27 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType - - -class WebhookDiscussionClosedType(TypedDict): - """discussion closed event""" - - action: Literal["closed"] - discussion: DiscussionType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] +from .group_0003 import SimpleUserType +from .group_0234 import DeploymentType +from .group_0365 import PullRequestType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType + + +class WebhookDeploymentProtectionRuleRequestedType(TypedDict): + """deployment protection rule requested event""" + + action: Literal["requested"] + environment: NotRequired[str] + event: NotRequired[str] + deployment_callback_url: NotRequired[str] + deployment: NotRequired[DeploymentType] + pull_requests: NotRequired[list[PullRequestType]] + repository: NotRequired[RepositoryWebhooksType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + installation: NotRequired[SimpleInstallationType] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDiscussionClosedType",) +__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0549.py b/githubkit/versions/ghec_v2022_11_28/types/group_0549.py index 3d3b54006..e55de6e9c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0549.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0549.py @@ -9,29 +9,419 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType -from .group_0460 import WebhooksCommentType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0462 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0463 import WebhooksWorkflowJobRunType -class WebhookDiscussionCommentCreatedType(TypedDict): - """discussion_comment created event""" +class WebhookDeploymentReviewApprovedType(TypedDict): + """WebhookDeploymentReviewApproved""" - action: Literal["created"] - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["approved"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionCommentCreatedType",) +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" + + conclusion: NotRequired[None] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunType", + "WebhookDeploymentReviewApprovedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0550.py b/githubkit/versions/ghec_v2022_11_28/types/group_0550.py index 5635f6a30..6a3c310c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0550.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0550.py @@ -9,29 +9,417 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType -from .group_0460 import WebhooksCommentType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0462 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0463 import WebhooksWorkflowJobRunType -class WebhookDiscussionCommentDeletedType(TypedDict): - """discussion_comment deleted event""" +class WebhookDeploymentReviewRejectedType(TypedDict): + """WebhookDeploymentReviewRejected""" - action: Literal["deleted"] - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["rejected"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionCommentDeletedType",) +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunType", + "WebhookDeploymentReviewRejectedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0551.py b/githubkit/versions/ghec_v2022_11_28/types/group_0551.py index 31dae86f1..e6c9b699d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0551.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0551.py @@ -9,46 +9,453 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType -from .group_0460 import WebhooksCommentType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType -class WebhookDiscussionCommentEditedType(TypedDict): - """discussion_comment edited event""" +class WebhookDeploymentReviewRequestedType(TypedDict): + """WebhookDeploymentReviewRequested""" - action: Literal["edited"] - changes: WebhookDiscussionCommentEditedPropChangesType - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["requested"] enterprise: NotRequired[EnterpriseWebhooksType] + environment: str installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + requestor: Union[WebhooksUserType, None] + reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserType + since: str + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -class WebhookDiscussionCommentEditedPropChangesType(TypedDict): - """WebhookDiscussionCommentEditedPropChanges""" +class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - body: WebhookDiscussionCommentEditedPropChangesPropBodyType + conclusion: None + created_at: str + environment: str + html_url: str + id: int + name: Union[str, None] + status: str + updated_at: str -class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionCommentEditedPropChangesPropBody""" +class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewRequestedPropReviewersItems""" - from_: str + reviewer: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] + ] + type: NotRequired[Literal["User", "Team"]] + + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str __all__ = ( - "WebhookDiscussionCommentEditedPropChangesPropBodyType", - "WebhookDiscussionCommentEditedPropChangesType", - "WebhookDiscussionCommentEditedType", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewRequestedPropReviewersItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunType", + "WebhookDeploymentReviewRequestedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0552.py b/githubkit/versions/ghec_v2022_11_28/types/group_0552.py index b4b7a3c7c..92c019193 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0552.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0552.py @@ -9,27 +9,765 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0461 import WebhooksWorkflowType -class WebhookDiscussionCreatedType(TypedDict): - """discussion created event""" +class WebhookDeploymentStatusCreatedType(TypedDict): + """deployment_status created event""" action: Literal["created"] - discussion: DiscussionType + check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] + deployment: WebhookDeploymentStatusCreatedPropDeploymentType + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType + workflow: NotRequired[Union[WebhooksWorkflowType, None]] + workflow_run: NotRequired[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] + ] -__all__ = ("WebhookDiscussionCreatedType",) +class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): + """WebhookDeploymentStatusCreatedPropCheckRun""" + + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] + details_url: str + external_id: str + head_sha: str + html_url: str + id: int + name: str + node_id: str + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): + """Deployment + + The [deployment](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/deployments#list-deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None + ] + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, + None, + ] + ] + production_environment: NotRequired[bool] + ref: str + repository_url: str + sha: str + statuses_url: str + task: str + transient_environment: NotRequired[bool] + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[ + str, Any +] +"""WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 +""" + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss + ions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusType(TypedDict): + """WebhookDeploymentStatusCreatedPropDeploymentStatus + + The [deployment status](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/statuses#list-deployment-statuses). + """ + + created_at: str + creator: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, None + ] + deployment_url: str + description: str + environment: str + environment_url: NotRequired[str] + id: int + log_url: NotRequired[str] + node_id: str + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, + None, + ] + ] + repository_url: str + state: str + target_url: str + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[None] + head_repository: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[None] + pull_requests: list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentStatusCreatedPropCheckRunType", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusType", + "WebhookDeploymentStatusCreatedPropDeploymentType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunType", + "WebhookDeploymentStatusCreatedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0553.py b/githubkit/versions/ghec_v2022_11_28/types/group_0553.py index 74a3cad57..fa587ff29 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0553.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0553.py @@ -12,18 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0465 import WebhooksAnswerType +from .group_0466 import DiscussionType -class WebhookDiscussionDeletedType(TypedDict): - """discussion deleted event""" +class WebhookDiscussionAnsweredType(TypedDict): + """discussion answered event""" - action: Literal["deleted"] + action: Literal["answered"] + answer: WebhooksAnswerType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionDeletedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionDeletedType",) +__all__ = ("WebhookDiscussionAnsweredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0554.py b/githubkit/versions/ghec_v2022_11_28/types/group_0554.py index f3f95ce2a..52d27e23f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0554.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0554.py @@ -9,22 +9,23 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType -class WebhookDiscussionEditedType(TypedDict): - """discussion edited event""" +class WebhookDiscussionCategoryChangedType(TypedDict): + """discussion category changed event""" - action: Literal["edited"] - changes: NotRequired[WebhookDiscussionEditedPropChangesType] + action: Literal["category_changed"] + changes: WebhookDiscussionCategoryChangedPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,28 +34,36 @@ class WebhookDiscussionEditedType(TypedDict): sender: SimpleUserType -class WebhookDiscussionEditedPropChangesType(TypedDict): - """WebhookDiscussionEditedPropChanges""" +class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): + """WebhookDiscussionCategoryChangedPropChanges""" - body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] - title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] + category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType -class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionEditedPropChangesPropBody""" +class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" - from_: str + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType -class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): - """WebhookDiscussionEditedPropChangesPropTitle""" +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" - from_: str + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str __all__ = ( - "WebhookDiscussionEditedPropChangesPropBodyType", - "WebhookDiscussionEditedPropChangesPropTitleType", - "WebhookDiscussionEditedPropChangesType", - "WebhookDiscussionEditedType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", + "WebhookDiscussionCategoryChangedPropChangesType", + "WebhookDiscussionCategoryChangedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0555.py b/githubkit/versions/ghec_v2022_11_28/types/group_0555.py index a3f892797..82e9829cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0555.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0555.py @@ -12,26 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType -from .group_0461 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType -class WebhookDiscussionLabeledType(TypedDict): - """discussion labeled event""" +class WebhookDiscussionClosedType(TypedDict): + """discussion closed event""" - action: Literal["labeled"] + action: Literal["closed"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionLabeledType",) +__all__ = ("WebhookDiscussionClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0556.py b/githubkit/versions/ghec_v2022_11_28/types/group_0556.py index 6acee74a0..4440e4514 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0556.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0556.py @@ -12,18 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType +from .group_0467 import WebhooksCommentType -class WebhookDiscussionLockedType(TypedDict): - """discussion locked event""" +class WebhookDiscussionCommentCreatedType(TypedDict): + """discussion_comment created event""" - action: Literal["locked"] + action: Literal["created"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionLockedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionLockedType",) +__all__ = ("WebhookDiscussionCommentCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0557.py b/githubkit/versions/ghec_v2022_11_28/types/group_0557.py index 27b2ae9ea..c815f7cd9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0557.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0557.py @@ -12,18 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType +from .group_0467 import WebhooksCommentType -class WebhookDiscussionPinnedType(TypedDict): - """discussion pinned event""" +class WebhookDiscussionCommentDeletedType(TypedDict): + """discussion_comment deleted event""" - action: Literal["pinned"] + action: Literal["deleted"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionPinnedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionPinnedType",) +__all__ = ("WebhookDiscussionCommentDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0558.py b/githubkit/versions/ghec_v2022_11_28/types/group_0558.py index e119a6eee..a66476972 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0558.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0558.py @@ -12,18 +12,21 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType +from .group_0467 import WebhooksCommentType -class WebhookDiscussionReopenedType(TypedDict): - """discussion reopened event""" +class WebhookDiscussionCommentEditedType(TypedDict): + """discussion_comment edited event""" - action: Literal["reopened"] + action: Literal["edited"] + changes: WebhookDiscussionCommentEditedPropChangesType + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +35,20 @@ class WebhookDiscussionReopenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionReopenedType",) +class WebhookDiscussionCommentEditedPropChangesType(TypedDict): + """WebhookDiscussionCommentEditedPropChanges""" + + body: WebhookDiscussionCommentEditedPropChangesPropBodyType + + +class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str + + +__all__ = ( + "WebhookDiscussionCommentEditedPropChangesPropBodyType", + "WebhookDiscussionCommentEditedPropChangesType", + "WebhookDiscussionCommentEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0559.py b/githubkit/versions/ghec_v2022_11_28/types/group_0559.py index c4e44d4b2..d11f87f65 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0559.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0559.py @@ -12,20 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType -from .group_0560 import WebhookDiscussionTransferredPropChangesType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType -class WebhookDiscussionTransferredType(TypedDict): - """discussion transferred event""" +class WebhookDiscussionCreatedType(TypedDict): + """discussion created event""" - action: Literal["transferred"] - changes: WebhookDiscussionTransferredPropChangesType + action: Literal["created"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +32,4 @@ class WebhookDiscussionTransferredType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionTransferredType",) +__all__ = ("WebhookDiscussionCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0560.py b/githubkit/versions/ghec_v2022_11_28/types/group_0560.py index e79647263..21a019519 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0560.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0560.py @@ -9,17 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType -class WebhookDiscussionTransferredPropChangesType(TypedDict): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionDeletedType(TypedDict): + """discussion deleted event""" - new_discussion: DiscussionType - new_repository: RepositoryWebhooksType + action: Literal["deleted"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookDiscussionTransferredPropChangesType",) +__all__ = ("WebhookDiscussionDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0561.py b/githubkit/versions/ghec_v2022_11_28/types/group_0561.py index 19af27dbe..5c9ab3d99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0561.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0561.py @@ -12,22 +12,49 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0458 import WebhooksAnswerType -from .group_0459 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType -class WebhookDiscussionUnansweredType(TypedDict): - """discussion unanswered event""" +class WebhookDiscussionEditedType(TypedDict): + """discussion edited event""" - action: Literal["unanswered"] + action: Literal["edited"] + changes: NotRequired[WebhookDiscussionEditedPropChangesType] discussion: DiscussionType - old_answer: WebhooksAnswerType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookDiscussionUnansweredType",) +class WebhookDiscussionEditedPropChangesType(TypedDict): + """WebhookDiscussionEditedPropChanges""" + + body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] + title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] + + +class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str + + +class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str + + +__all__ = ( + "WebhookDiscussionEditedPropChangesPropBodyType", + "WebhookDiscussionEditedPropChangesPropTitleType", + "WebhookDiscussionEditedPropChangesType", + "WebhookDiscussionEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0562.py b/githubkit/versions/ghec_v2022_11_28/types/group_0562.py index bb940f073..b96c5862d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0562.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0562.py @@ -12,19 +12,19 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType -from .group_0461 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType +from .group_0468 import WebhooksLabelType -class WebhookDiscussionUnlabeledType(TypedDict): - """discussion unlabeled event""" +class WebhookDiscussionLabeledType(TypedDict): + """discussion labeled event""" - action: Literal["unlabeled"] + action: Literal["labeled"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +34,4 @@ class WebhookDiscussionUnlabeledType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionUnlabeledType",) +__all__ = ("WebhookDiscussionLabeledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0563.py b/githubkit/versions/ghec_v2022_11_28/types/group_0563.py index 076a2515b..90176d818 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0563.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0563.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType -class WebhookDiscussionUnlockedType(TypedDict): - """discussion unlocked event""" +class WebhookDiscussionLockedType(TypedDict): + """discussion locked event""" - action: Literal["unlocked"] + action: Literal["locked"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionUnlockedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionUnlockedType",) +__all__ = ("WebhookDiscussionLockedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0564.py b/githubkit/versions/ghec_v2022_11_28/types/group_0564.py index 401b802d2..f7c407168 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0564.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0564.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0459 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType -class WebhookDiscussionUnpinnedType(TypedDict): - """discussion unpinned event""" +class WebhookDiscussionPinnedType(TypedDict): + """discussion pinned event""" - action: Literal["unpinned"] + action: Literal["pinned"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionUnpinnedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionUnpinnedType",) +__all__ = ("WebhookDiscussionPinnedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0565.py b/githubkit/versions/ghec_v2022_11_28/types/group_0565.py index 7f53dce75..8dcc87169 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0565.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0565.py @@ -9,28 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0566 import WebhookForkPropForkeeType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType -class WebhookForkType(TypedDict): - """fork event - - A user forks a repository. - """ +class WebhookDiscussionReopenedType(TypedDict): + """discussion reopened event""" + action: Literal["reopened"] + discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] - forkee: WebhookForkPropForkeeType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookForkType",) +__all__ = ("WebhookDiscussionReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0566.py b/githubkit/versions/ghec_v2022_11_28/types/group_0566.py index b381b7a87..72f1f81b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0566.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0566.py @@ -9,151 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0568 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType +from .group_0567 import WebhookDiscussionTransferredPropChangesType -class WebhookForkPropForkeeType(TypedDict): - """WebhookForkPropForkee +class WebhookDiscussionTransferredType(TypedDict): + """discussion transferred event""" - The created [`repository`](https://docs.github.com/enterprise- - cloud@latest//rest/repos/repos#get-a-repository) resource. - """ + action: Literal["transferred"] + changes: WebhookDiscussionTransferredPropChangesType + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: datetime - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[Union[str, None], None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: Literal[True] - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[Union[str, None], None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[None, None] - languages_url: str - license_: Union[WebhookForkPropForkeeMergedLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[None, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: WebhookForkPropForkeeMergedOwnerType - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: datetime - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - -class WebhookForkPropForkeeMergedLicenseType(TypedDict): - """WebhookForkPropForkeeMergedLicense""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeMergedOwnerType(TypedDict): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeMergedLicenseType", - "WebhookForkPropForkeeMergedOwnerType", - "WebhookForkPropForkeeType", -) +__all__ = ("WebhookDiscussionTransferredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0567.py b/githubkit/versions/ghec_v2022_11_28/types/group_0567.py index b0f16782c..ecd8fce71 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0567.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0567.py @@ -9,150 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0568 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType -class WebhookForkPropForkeeAllof0Type(TypedDict): - """Repository +class WebhookDiscussionTransferredPropChangesType(TypedDict): + """WebhookDiscussionTransferredPropChanges""" - A git repository - """ + new_discussion: DiscussionType + new_repository: RepositoryWebhooksType - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - -class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeAllof0PropLicenseType", - "WebhookForkPropForkeeAllof0PropOwnerType", - "WebhookForkPropForkeeAllof0Type", -) +__all__ = ("WebhookDiscussionTransferredPropChangesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0568.py b/githubkit/versions/ghec_v2022_11_28/types/group_0568.py index a6cb9b92f..77392a713 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0568.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0568.py @@ -9,17 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0465 import WebhooksAnswerType +from .group_0466 import DiscussionType -class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): - """WebhookForkPropForkeeAllof0PropPermissions""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] +class WebhookDiscussionUnansweredType(TypedDict): + """discussion unanswered event""" + action: Literal["unanswered"] + discussion: DiscussionType + old_answer: WebhooksAnswerType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) + +__all__ = ("WebhookDiscussionUnansweredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0569.py b/githubkit/versions/ghec_v2022_11_28/types/group_0569.py index 624daaf0c..bca7029a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0569.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0569.py @@ -9,122 +9,29 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType +from .group_0468 import WebhooksLabelType -class WebhookForkPropForkeeAllof1Type(TypedDict): - """WebhookForkPropForkeeAllof1""" - allow_forking: NotRequired[bool] - archive_url: NotRequired[str] - archived: NotRequired[bool] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - clone_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - created_at: NotRequired[str] - default_branch: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - disabled: NotRequired[bool] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[Literal[True]] - forks: NotRequired[int] - forks_count: NotRequired[int] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - has_downloads: NotRequired[bool] - has_issues: NotRequired[bool] - has_pages: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - homepage: NotRequired[Union[str, None]] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - is_template: NotRequired[bool] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - language: NotRequired[None] - languages_url: NotRequired[str] - license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - mirror_url: NotRequired[None] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - open_issues: NotRequired[int] - open_issues_count: NotRequired[int] - owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] - private: NotRequired[bool] - public: NotRequired[bool] - pulls_url: NotRequired[str] - pushed_at: NotRequired[str] - releases_url: NotRequired[str] - size: NotRequired[int] - ssh_url: NotRequired[str] - stargazers_count: NotRequired[int] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - svn_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - topics: NotRequired[list[Union[str, None]]] - trees_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - visibility: NotRequired[str] - watchers: NotRequired[int] - watchers_count: NotRequired[int] +class WebhookDiscussionUnlabeledType(TypedDict): + """discussion unlabeled event""" + action: Literal["unlabeled"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): - """WebhookForkPropForkeeAllof1PropLicense""" - -class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): - """WebhookForkPropForkeeAllof1PropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeAllof1PropLicenseType", - "WebhookForkPropForkeeAllof1PropOwnerType", - "WebhookForkPropForkeeAllof1Type", -) +__all__ = ("WebhookDiscussionUnlabeledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0570.py b/githubkit/versions/ghec_v2022_11_28/types/group_0570.py index 17e2579f9..2ed9f99d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0570.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0570.py @@ -10,16 +10,26 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType -class WebhookGithubAppAuthorizationRevokedType(TypedDict): - """github_app_authorization revoked event""" +class WebhookDiscussionUnlockedType(TypedDict): + """discussion unlocked event""" - action: Literal["revoked"] + action: Literal["unlocked"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookGithubAppAuthorizationRevokedType",) +__all__ = ("WebhookDiscussionUnlockedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0571.py b/githubkit/versions/ghec_v2022_11_28/types/group_0571.py index 2377d3167..ed45414cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0571.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0571.py @@ -9,39 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0466 import DiscussionType -class WebhookGollumType(TypedDict): - """gollum event""" +class WebhookDiscussionUnpinnedType(TypedDict): + """discussion unpinned event""" + action: Literal["unpinned"] + discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pages: list[WebhookGollumPropPagesItemsType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookGollumPropPagesItemsType(TypedDict): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] - html_url: str - page_name: str - sha: str - summary: Union[str, None] - title: str - - -__all__ = ( - "WebhookGollumPropPagesItemsType", - "WebhookGollumType", -) +__all__ = ("WebhookDiscussionUnpinnedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0572.py b/githubkit/versions/ghec_v2022_11_28/types/group_0572.py index f6058711f..0735ab22a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0572.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0572.py @@ -9,29 +9,28 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0444 import EnterpriseWebhooksType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType -from .group_0462 import WebhooksRepositoriesItemsType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0573 import WebhookForkPropForkeeType -class WebhookInstallationCreatedType(TypedDict): - """installation created event""" +class WebhookForkType(TypedDict): + """fork event + + A user forks a repository. + """ - action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType + forkee: WebhookForkPropForkeeType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[Union[WebhooksUserType, None]] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookInstallationCreatedType",) +__all__ = ("WebhookForkType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0573.py b/githubkit/versions/ghec_v2022_11_28/types/group_0573.py index 4b2c80bad..a483125aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0573.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0573.py @@ -9,28 +9,151 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0444 import EnterpriseWebhooksType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0462 import WebhooksRepositoriesItemsType +from .group_0575 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookInstallationDeletedType(TypedDict): - """installation deleted event""" +class WebhookForkPropForkeeType(TypedDict): + """WebhookForkPropForkee - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserType + The created [`repository`](https://docs.github.com/enterprise- + cloud@latest//rest/repos/repos#get-a-repository) resource. + """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: datetime + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[Union[str, None], None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: Literal[True] + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[Union[str, None], None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[None, None] + languages_url: str + license_: Union[WebhookForkPropForkeeMergedLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[None, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: WebhookForkPropForkeeMergedOwnerType + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: datetime + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -__all__ = ("WebhookInstallationDeletedType",) + +class WebhookForkPropForkeeMergedLicenseType(TypedDict): + """WebhookForkPropForkeeMergedLicense""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookForkPropForkeeMergedOwnerType(TypedDict): + """WebhookForkPropForkeeMergedOwner""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeMergedLicenseType", + "WebhookForkPropForkeeMergedOwnerType", + "WebhookForkPropForkeeType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0574.py b/githubkit/versions/ghec_v2022_11_28/types/group_0574.py index 262ac90b0..610a5696d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0574.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0574.py @@ -9,28 +9,150 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0444 import EnterpriseWebhooksType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0462 import WebhooksRepositoriesItemsType +from .group_0575 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookInstallationNewPermissionsAcceptedType(TypedDict): - """installation new_permissions_accepted event""" +class WebhookForkPropForkeeAllof0Type(TypedDict): + """Repository - action: Literal["new_permissions_accepted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserType + A git repository + """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) + +class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeAllof0PropLicenseType", + "WebhookForkPropForkeeAllof0PropOwnerType", + "WebhookForkPropForkeeAllof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0575.py b/githubkit/versions/ghec_v2022_11_28/types/group_0575.py index 1ab350bb7..a6cb9b92f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0575.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0575.py @@ -9,46 +9,17 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0444 import EnterpriseWebhooksType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType -from .group_0463 import WebhooksRepositoriesAddedItemsType - - -class WebhookInstallationRepositoriesAddedType(TypedDict): - """installation_repositories added event""" - - action: Literal["added"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: list[WebhooksRepositoriesAddedItemsType] - repositories_removed: list[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType - ] - repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] - sender: SimpleUserType - - -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" - - full_name: NotRequired[str] - id: NotRequired[int] - name: NotRequired[str] - node_id: NotRequired[str] - private: NotRequired[bool] - - -__all__ = ( - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesAddedType", -) + +class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): + """WebhookForkPropForkeeAllof0PropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0576.py b/githubkit/versions/ghec_v2022_11_28/types/group_0576.py index a01e26564..624daaf0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0576.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0576.py @@ -12,43 +12,119 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0444 import EnterpriseWebhooksType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType -from .group_0463 import WebhooksRepositoriesAddedItemsType - - -class WebhookInstallationRepositoriesRemovedType(TypedDict): - """installation_repositories removed event""" - - action: Literal["removed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: list[WebhooksRepositoriesAddedItemsType] - repositories_removed: list[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType - ] - repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] - sender: SimpleUserType - - -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" - - full_name: str - id: int - name: str - node_id: str - private: bool + +class WebhookForkPropForkeeAllof1Type(TypedDict): + """WebhookForkPropForkeeAllof1""" + + allow_forking: NotRequired[bool] + archive_url: NotRequired[str] + archived: NotRequired[bool] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + clone_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + created_at: NotRequired[str] + default_branch: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + disabled: NotRequired[bool] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[Literal[True]] + forks: NotRequired[int] + forks_count: NotRequired[int] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + has_downloads: NotRequired[bool] + has_issues: NotRequired[bool] + has_pages: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + homepage: NotRequired[Union[str, None]] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + is_template: NotRequired[bool] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + language: NotRequired[None] + languages_url: NotRequired[str] + license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + mirror_url: NotRequired[None] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + open_issues: NotRequired[int] + open_issues_count: NotRequired[int] + owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] + private: NotRequired[bool] + public: NotRequired[bool] + pulls_url: NotRequired[str] + pushed_at: NotRequired[str] + releases_url: NotRequired[str] + size: NotRequired[int] + ssh_url: NotRequired[str] + stargazers_count: NotRequired[int] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + svn_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + topics: NotRequired[list[Union[str, None]]] + trees_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + visibility: NotRequired[str] + watchers: NotRequired[int] + watchers_count: NotRequired[int] + + +class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): + """WebhookForkPropForkeeAllof1PropLicense""" + + +class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] __all__ = ( - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesRemovedType", + "WebhookForkPropForkeeAllof1PropLicenseType", + "WebhookForkPropForkeeAllof1PropOwnerType", + "WebhookForkPropForkeeAllof1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0577.py b/githubkit/versions/ghec_v2022_11_28/types/group_0577.py index ba39b7936..52c10d4b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0577.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0577.py @@ -10,27 +10,16 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0444 import EnterpriseWebhooksType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0462 import WebhooksRepositoriesItemsType - - -class WebhookInstallationSuspendType(TypedDict): - """installation suspend event""" - - action: Literal["suspend"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] +from typing_extensions import TypedDict + +from .group_0003 import SimpleUserType + + +class WebhookGithubAppAuthorizationRevokedType(TypedDict): + """github_app_authorization revoked event""" + + action: Literal["revoked"] sender: SimpleUserType -__all__ = ("WebhookInstallationSuspendType",) +__all__ = ("WebhookGithubAppAuthorizationRevokedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0578.py b/githubkit/versions/ghec_v2022_11_28/types/group_0578.py index b8a731f8f..4023c1917 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0578.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0578.py @@ -12,92 +12,36 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookInstallationTargetRenamedType(TypedDict): - """WebhookInstallationTargetRenamed""" +class WebhookGollumType(TypedDict): + """gollum event""" - account: WebhookInstallationTargetRenamedPropAccountType - action: Literal["renamed"] - changes: WebhookInstallationTargetRenamedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - target_type: str + pages: list[WebhookGollumPropPagesItemsType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookInstallationTargetRenamedPropAccountType(TypedDict): - """WebhookInstallationTargetRenamedPropAccount""" +class WebhookGollumPropPagesItemsType(TypedDict): + """WebhookGollumPropPagesItems""" - archived_at: NotRequired[Union[str, None]] - avatar_url: str - created_at: NotRequired[str] - description: NotRequired[None] - events_url: NotRequired[str] - followers: NotRequired[int] - followers_url: NotRequired[str] - following: NotRequired[int] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - has_organization_projects: NotRequired[bool] - has_repository_projects: NotRequired[bool] - hooks_url: NotRequired[str] + action: Literal["created", "edited"] html_url: str - id: int - is_verified: NotRequired[bool] - issues_url: NotRequired[str] - login: NotRequired[str] - members_url: NotRequired[str] - name: NotRequired[str] - node_id: str - organizations_url: NotRequired[str] - public_gists: NotRequired[int] - public_members_url: NotRequired[str] - public_repos: NotRequired[int] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - slug: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - website_url: NotRequired[None] - user_view_type: NotRequired[str] - - -class WebhookInstallationTargetRenamedPropChangesType(TypedDict): - """WebhookInstallationTargetRenamedPropChanges""" - - login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] - slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] - - -class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str - - -class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str + page_name: str + sha: str + summary: Union[str, None] + title: str __all__ = ( - "WebhookInstallationTargetRenamedPropAccountType", - "WebhookInstallationTargetRenamedPropChangesPropLoginType", - "WebhookInstallationTargetRenamedPropChangesPropSlugType", - "WebhookInstallationTargetRenamedPropChangesType", - "WebhookInstallationTargetRenamedType", + "WebhookGollumPropPagesItemsType", + "WebhookGollumType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0579.py b/githubkit/versions/ghec_v2022_11_28/types/group_0579.py index 0bc76699f..cdfbca1ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0579.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0579.py @@ -9,28 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0444 import EnterpriseWebhooksType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0462 import WebhooksRepositoriesItemsType +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0451 import EnterpriseWebhooksType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType +from .group_0469 import WebhooksRepositoriesItemsType -class WebhookInstallationUnsuspendType(TypedDict): - """installation unsuspend event""" +class WebhookInstallationCreatedType(TypedDict): + """installation created event""" - action: Literal["unsuspend"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] repositories: NotRequired[list[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] + requester: NotRequired[Union[WebhooksUserType, None]] sender: SimpleUserType -__all__ = ("WebhookInstallationUnsuspendType",) +__all__ = ("WebhookInstallationCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0580.py b/githubkit/versions/ghec_v2022_11_28/types/group_0580.py index c635af1df..d0a404bc2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0580.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0580.py @@ -12,26 +12,25 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0581 import WebhookIssueCommentCreatedPropCommentType -from .group_0582 import WebhookIssueCommentCreatedPropIssueType +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0451 import EnterpriseWebhooksType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0469 import WebhooksRepositoriesItemsType -class WebhookIssueCommentCreatedType(TypedDict): - """issue_comment created event""" +class WebhookInstallationDeletedType(TypedDict): + """installation deleted event""" - action: Literal["created"] - comment: WebhookIssueCommentCreatedPropCommentType + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentCreatedPropIssueType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] sender: SimpleUserType -__all__ = ("WebhookIssueCommentCreatedType",) +__all__ = ("WebhookInstallationDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0581.py b/githubkit/versions/ghec_v2022_11_28/types/group_0581.py index 5a76921b4..df1c64739 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0581.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0581.py @@ -9,87 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0451 import EnterpriseWebhooksType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0469 import WebhooksRepositoriesItemsType -class WebhookIssueCommentCreatedPropCommentType(TypedDict): - """issue comment +class WebhookInstallationNewPermissionsAcceptedType(TypedDict): + """installation new_permissions_accepted event""" - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ + action: Literal["new_permissions_accepted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[None, IntegrationType, None] - reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] - -class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropCommentPropReactionsType", - "WebhookIssueCommentCreatedPropCommentPropUserType", - "WebhookIssueCommentCreatedPropCommentType", -) +__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0582.py b/githubkit/versions/ghec_v2022_11_28/types/group_0582.py index 1308bed17..1dfe0a5bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0582.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0582.py @@ -9,155 +9,46 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0584 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) -from .group_0589 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0591 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType -from .group_0592 import ( - WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, -) - - -class WebhookIssueCommentCreatedPropIssueType(TypedDict): - """WebhookIssueCommentCreatedPropIssue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0451 import EnterpriseWebhooksType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType +from .group_0470 import WebhooksRepositoriesAddedItemsType + + +class WebhookInstallationRepositoriesAddedType(TypedDict): + """installation_repositories added event""" + + action: Literal["added"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories_added: list[WebhooksRepositoriesAddedItemsType] + repositories_removed: list[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssueCommentCreatedPropIssueMergedUserType - - -class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + repository: NotRequired[RepositoryWebhooksType] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] + sender: SimpleUserType -class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedUser""" +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + full_name: NotRequired[str] + id: NotRequired[int] name: NotRequired[str] node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + private: NotRequired[bool] __all__ = ( - "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", - "WebhookIssueCommentCreatedPropIssueMergedReactionsType", - "WebhookIssueCommentCreatedPropIssueMergedUserType", - "WebhookIssueCommentCreatedPropIssueType", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesAddedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0583.py b/githubkit/versions/ghec_v2022_11_28/types/group_0583.py index 8c16ce7c3..bd7ec3329 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0583.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0583.py @@ -9,161 +9,46 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0584 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) -from .group_0586 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType -from .group_0588 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0589 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, -) +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0451 import EnterpriseWebhooksType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType +from .group_0470 import WebhooksRepositoriesAddedItemsType -class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookInstallationRepositoriesRemovedType(TypedDict): + """installation_repositories removed event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None - ] + action: Literal["removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories_added: list[WebhooksRepositoriesAddedItemsType] + repositories_removed: list[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] - - -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" + repository: NotRequired[RepositoryWebhooksType] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] + sender: SimpleUserType - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" -class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + full_name: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + name: str + node_id: str + private: bool __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", - "WebhookIssueCommentCreatedPropIssueAllof0Type", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesRemovedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0584.py b/githubkit/versions/ghec_v2022_11_28/types/group_0584.py index 088b44492..05b2e2b6e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0584.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0584.py @@ -9,62 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0451 import EnterpriseWebhooksType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0469 import WebhooksRepositoriesItemsType -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhookInstallationSuspendType(TypedDict): + """installation suspend event""" + action: Literal["suspend"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserType -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", -) +__all__ = ("WebhookInstallationSuspendType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0585.py b/githubkit/versions/ghec_v2022_11_28/types/group_0585.py index 2a39d32cf..47dff9a23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0585.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0585.py @@ -12,32 +12,92 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] +class WebhookInstallationTargetRenamedType(TypedDict): + """WebhookInstallationTargetRenamed""" + + account: WebhookInstallationTargetRenamedPropAccountType + action: Literal["renamed"] + changes: WebhookInstallationTargetRenamedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: SimpleInstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] + target_type: str + + +class WebhookInstallationTargetRenamedPropAccountType(TypedDict): + """WebhookInstallationTargetRenamedPropAccount""" + + archived_at: NotRequired[Union[str, None]] + avatar_url: str + created_at: NotRequired[str] + description: NotRequired[None] events_url: NotRequired[str] + followers: NotRequired[int] followers_url: NotRequired[str] + following: NotRequired[int] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] - html_url: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + hooks_url: NotRequired[str] + html_url: str id: int - login: str + is_verified: NotRequired[bool] + issues_url: NotRequired[str] + login: NotRequired[str] + members_url: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] + node_id: str organizations_url: NotRequired[str] + public_gists: NotRequired[int] + public_members_url: NotRequired[str] + public_repos: NotRequired[int] received_events_url: NotRequired[str] repos_url: NotRequired[str] site_admin: NotRequired[bool] + slug: NotRequired[str] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] + updated_at: NotRequired[str] url: NotRequired[str] + website_url: NotRequired[None] user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) +class WebhookInstallationTargetRenamedPropChangesType(TypedDict): + """WebhookInstallationTargetRenamedPropChanges""" + + login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] + slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] + + +class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" + + from_: str + + +class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str + + +__all__ = ( + "WebhookInstallationTargetRenamedPropAccountType", + "WebhookInstallationTargetRenamedPropChangesPropLoginType", + "WebhookInstallationTargetRenamedPropChangesPropSlugType", + "WebhookInstallationTargetRenamedPropChangesType", + "WebhookInstallationTargetRenamedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0586.py b/githubkit/versions/ghec_v2022_11_28/types/group_0586.py index ed880a512..0341e76f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0586.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0586.py @@ -9,39 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0585 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) - - -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0451 import EnterpriseWebhooksType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0469 import WebhooksRepositoriesItemsType + + +class WebhookInstallationUnsuspendType(TypedDict): + """installation unsuspend event""" + + action: Literal["unsuspend"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserType + + +__all__ = ("WebhookInstallationUnsuspendType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0587.py b/githubkit/versions/ghec_v2022_11_28/types/group_0587.py index b261a91af..cc3080c44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0587.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0587.py @@ -9,86 +9,29 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0588 import WebhookIssueCommentCreatedPropCommentType +from .group_0589 import WebhookIssueCommentCreatedPropIssueType -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhookIssueCommentCreatedType(TypedDict): + """issue_comment created event""" + action: Literal["created"] + comment: WebhookIssueCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentCreatedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0588.py b/githubkit/versions/ghec_v2022_11_28/types/group_0588.py index e7b3ea84c..6ba5d4683 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0588.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0588.py @@ -10,41 +10,86 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0587 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0010 import IntegrationType -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentCreatedPropCommentType(TypedDict): + """issue comment - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + created_at: datetime html_url: str - id: Union[int, None] - name: str + id: int + issue_url: str node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + performed_via_github_app: Union[None, IntegrationType, None] + reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] + + +class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) + +class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropCommentPropReactionsType", + "WebhookIssueCommentCreatedPropCommentPropUserType", + "WebhookIssueCommentCreatedPropCommentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0589.py b/githubkit/versions/ghec_v2022_11_28/types/group_0589.py index ef1c4a5c5..d655980b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0589.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0589.py @@ -9,15 +9,155 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0591 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) +from .group_0596 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, +) +from .group_0598 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType +from .group_0599 import ( + WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, +) -class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - total: int - completed: int - percent_completed: int +class WebhookIssueCommentCreatedPropIssueType(TypedDict): + """WebhookIssueCommentCreatedPropIssue + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType",) + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssueCommentCreatedPropIssueMergedUserType + + +class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedUser""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", + "WebhookIssueCommentCreatedPropIssueMergedReactionsType", + "WebhookIssueCommentCreatedPropIssueMergedUserType", + "WebhookIssueCommentCreatedPropIssueType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0590.py b/githubkit/versions/ghec_v2022_11_28/types/group_0590.py index 7b1858f2a..fbdc5b49b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0590.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0590.py @@ -9,53 +9,90 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0591 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) +from .group_0593 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType +from .group_0595 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0596 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, +) -class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - list[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] - ] +class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] + assignee: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] ] - node_id: NotRequired[str] - number: NotRequired[int] + assignees: list[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int performed_via_github_app: NotRequired[ Union[ - WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None ] ] - reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,57 +119,36 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - +class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" +class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -140,17 +156,14 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", - "WebhookIssueCommentCreatedPropIssueAllof1Type", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0591.py b/githubkit/versions/ghec_v2022_11_28/types/group_0591.py index f2a66dc7f..088b44492 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0591.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0591.py @@ -11,34 +11,60 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0585 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None - ] + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0592.py b/githubkit/versions/ghec_v2022_11_28/types/group_0592.py index 59f45c0c2..2a39d32cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0592.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0592.py @@ -9,36 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0587 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - - -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) + +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0593.py b/githubkit/versions/ghec_v2022_11_28/types/group_0593.py index 079f57477..99f1ce709 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0593.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0593.py @@ -9,29 +9,39 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0464 import WebhooksIssueCommentType -from .group_0594 import WebhookIssueCommentDeletedPropIssueType - - -class WebhookIssueCommentDeletedType(TypedDict): - """issue_comment deleted event""" - - action: Literal["deleted"] - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssueCommentDeletedType",) +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict + +from .group_0592 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, +) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0594.py b/githubkit/versions/ghec_v2022_11_28/types/group_0594.py index 41a14aaae..b261a91af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0594.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0594.py @@ -9,85 +9,14 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0596 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) -from .group_0601 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0603 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType -from .group_0604 import ( - WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, -) - - -class WebhookIssueCommentDeletedPropIssueType(TypedDict): - """WebhookIssueCommentDeletedPropIssue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssueCommentDeletedPropIssueMergedUserType - -class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -108,56 +37,58 @@ class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + The set of permissions for the GitHub app + """ -class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] __all__ = ( - "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", - "WebhookIssueCommentDeletedPropIssueMergedReactionsType", - "WebhookIssueCommentDeletedPropIssueMergedUserType", - "WebhookIssueCommentDeletedPropIssueType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0595.py b/githubkit/versions/ghec_v2022_11_28/types/group_0595.py index ad1d091dc..7958ffb43 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0595.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0595.py @@ -10,160 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0596 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) -from .group_0598 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType -from .group_0600 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0601 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, +from .group_0594 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - id: int - labels: NotRequired[ - list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] + id: Union[int, None] + name: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None - ] + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] - + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", - "WebhookIssueCommentDeletedPropIssueAllof0Type", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0596.py b/githubkit/versions/ghec_v2022_11_28/types/group_0596.py index 0cf270ec9..ef1c4a5c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0596.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0596.py @@ -9,62 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" +class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + total: int + completed: int + percent_completed: int -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0597.py b/githubkit/versions/ghec_v2022_11_28/types/group_0597.py index b8118ecd1..7b1858f2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0597.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0597.py @@ -13,7 +13,49 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1""" + + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + list[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None + ] + ] + reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,4 +82,75 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(Type user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0598.py b/githubkit/versions/ghec_v2022_11_28/types/group_0598.py index 805b00dd7..8dade5b14 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0598.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0598.py @@ -13,22 +13,19 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0597 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +from .group_0592 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" closed_at: Union[datetime, None] closed_issues: int created_at: datetime creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -44,4 +41,4 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): url: str -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0599.py b/githubkit/versions/ghec_v2022_11_28/types/group_0599.py index 078dc1e49..d27723594 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0599.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0599.py @@ -9,86 +9,36 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict - -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] +from .group_0594 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0600.py b/githubkit/versions/ghec_v2022_11_28/types/group_0600.py index f0a3ff6dd..2fc976042 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0600.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0600.py @@ -9,42 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0599 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - - -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0471 import WebhooksIssueCommentType +from .group_0601 import WebhookIssueCommentDeletedPropIssueType + + +class WebhookIssueCommentDeletedType(TypedDict): + """issue_comment deleted event""" + + action: Literal["deleted"] + comment: WebhooksIssueCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentDeletedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssueCommentDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0601.py b/githubkit/versions/ghec_v2022_11_28/types/group_0601.py index aa70cbec8..8b0610b1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0601.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0601.py @@ -9,15 +9,155 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0603 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) +from .group_0608 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, +) +from .group_0610 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType +from .group_0611 import ( + WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - total: int - completed: int - percent_completed: int +class WebhookIssueCommentDeletedPropIssueType(TypedDict): + """WebhookIssueCommentDeletedPropIssue + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType",) + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssueCommentDeletedPropIssueMergedUserType + + +class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedUser""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", + "WebhookIssueCommentDeletedPropIssueMergedReactionsType", + "WebhookIssueCommentDeletedPropIssueMergedUserType", + "WebhookIssueCommentDeletedPropIssueType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0602.py b/githubkit/versions/ghec_v2022_11_28/types/group_0602.py index 0664cda5a..899f553fd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0602.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0602.py @@ -9,53 +9,90 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0603 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) +from .group_0605 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType +from .group_0607 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0608 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, +) -class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - list[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] - ] +class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] + assignee: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] ] - node_id: NotRequired[str] - number: NotRequired[int] + assignees: list[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int performed_via_github_app: NotRequired[ Union[ - WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None ] ] - reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,57 +119,36 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - +class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -140,18 +156,14 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", - "WebhookIssueCommentDeletedPropIssueAllof1Type", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0603.py b/githubkit/versions/ghec_v2022_11_28/types/group_0603.py index a4fe0ab7e..0cf270ec9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0603.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0603.py @@ -11,34 +11,60 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0597 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None - ] + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0604.py b/githubkit/versions/ghec_v2022_11_28/types/group_0604.py index 47967ab12..b8118ecd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0604.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0604.py @@ -9,36 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0599 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - - -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) + +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0605.py b/githubkit/versions/ghec_v2022_11_28/types/group_0605.py index 1a07f7b06..d857dc9c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0605.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0605.py @@ -9,31 +9,39 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0464 import WebhooksIssueCommentType -from .group_0465 import WebhooksChangesType -from .group_0606 import WebhookIssueCommentEditedPropIssueType - - -class WebhookIssueCommentEditedType(TypedDict): - """issue_comment edited event""" - - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentEditedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssueCommentEditedType",) +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict + +from .group_0604 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0606.py b/githubkit/versions/ghec_v2022_11_28/types/group_0606.py index 1e37bb6ec..078dc1e49 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0606.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0606.py @@ -9,83 +9,14 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0608 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, -) -from .group_0613 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType -from .group_0615 import WebhookIssueCommentEditedPropIssueMergedMilestoneType -from .group_0616 import ( - WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, -) - - -class WebhookIssueCommentEditedPropIssueType(TypedDict): - """WebhookIssueCommentEditedPropIssue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentEditedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssueCommentEditedPropIssueMergedUserType - -class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -106,56 +37,58 @@ class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedReactions""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedUser""" + The set of permissions for the GitHub app + """ - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] __all__ = ( - "WebhookIssueCommentEditedPropIssueMergedAssigneesType", - "WebhookIssueCommentEditedPropIssueMergedReactionsType", - "WebhookIssueCommentEditedPropIssueMergedUserType", - "WebhookIssueCommentEditedPropIssueType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0607.py b/githubkit/versions/ghec_v2022_11_28/types/group_0607.py index 4b19e1d62..035ccf028 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0607.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0607.py @@ -10,158 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0608 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +from .group_0606 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -from .group_0610 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType -from .group_0612 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0613 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType -class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - id: int - labels: NotRequired[ - list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] + id: Union[int, None] + name: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None - ] - ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, ] - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] - - -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" + slug: NotRequired[str] + updated_at: Union[datetime, None] - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - -class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof0PropUserType", - "WebhookIssueCommentEditedPropIssueAllof0Type", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0608.py b/githubkit/versions/ghec_v2022_11_28/types/group_0608.py index 398fe7733..aa70cbec8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0608.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0608.py @@ -9,62 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" +class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + total: int + completed: int + percent_completed: int -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0609.py b/githubkit/versions/ghec_v2022_11_28/types/group_0609.py index 9ac4a4c4e..0664cda5a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0609.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0609.py @@ -13,7 +13,49 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1""" + + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + list[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None + ] + ] + reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,4 +82,76 @@ class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(Typed user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0610.py b/githubkit/versions/ghec_v2022_11_28/types/group_0610.py index e3cd830e1..2d208eb64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0610.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0610.py @@ -13,22 +13,19 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0609 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +from .group_0604 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" closed_at: Union[datetime, None] closed_issues: int created_at: datetime creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -44,4 +41,4 @@ class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): url: str -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0611.py b/githubkit/versions/ghec_v2022_11_28/types/group_0611.py index 3b96ed6e4..43c01708c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0611.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0611.py @@ -9,85 +9,36 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict - -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] +from .group_0606 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0612.py b/githubkit/versions/ghec_v2022_11_28/types/group_0612.py index 6e78dbd87..e0a7dddd4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0612.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0612.py @@ -9,42 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0611 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - - -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0471 import WebhooksIssueCommentType +from .group_0472 import WebhooksChangesType +from .group_0613 import WebhookIssueCommentEditedPropIssueType + + +class WebhookIssueCommentEditedType(TypedDict): + """issue_comment edited event""" + + action: Literal["edited"] + changes: WebhooksChangesType + comment: WebhooksIssueCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentEditedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssueCommentEditedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0613.py b/githubkit/versions/ghec_v2022_11_28/types/group_0613.py index 5c991e61e..a784477b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0613.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0613.py @@ -9,15 +9,153 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0615 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +) +from .group_0620 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType +from .group_0622 import WebhookIssueCommentEditedPropIssueMergedMilestoneType +from .group_0623 import ( + WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, +) -class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - total: int - completed: int - percent_completed: int +class WebhookIssueCommentEditedPropIssueType(TypedDict): + """WebhookIssueCommentEditedPropIssue + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType",) + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentEditedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssueCommentEditedPropIssueMergedUserType + + +class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedReactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedUser""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueMergedAssigneesType", + "WebhookIssueCommentEditedPropIssueMergedReactionsType", + "WebhookIssueCommentEditedPropIssueMergedUserType", + "WebhookIssueCommentEditedPropIssueType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0614.py b/githubkit/versions/ghec_v2022_11_28/types/group_0614.py index d5d49ac59..e70f40e0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0614.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0614.py @@ -9,53 +9,88 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0615 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +) +from .group_0617 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType +from .group_0619 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0620 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType -class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - list[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] - ] +class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] + assignee: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] ] - node_id: NotRequired[str] - number: NotRequired[int] + assignees: list[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int performed_via_github_app: NotRequired[ Union[ - WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None ] ] - reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,57 +117,36 @@ class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str -class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" +class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -140,17 +154,14 @@ class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof1PropUserType", - "WebhookIssueCommentEditedPropIssueAllof1Type", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof0PropUserType", + "WebhookIssueCommentEditedPropIssueAllof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0615.py b/githubkit/versions/ghec_v2022_11_28/types/group_0615.py index e57b52d31..398fe7733 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0615.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0615.py @@ -11,34 +11,60 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0609 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, -) + +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None - ] + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0616.py b/githubkit/versions/ghec_v2022_11_28/types/group_0616.py index ac231c98b..9ac4a4c4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0616.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0616.py @@ -9,36 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0611 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - - -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) + +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0617.py b/githubkit/versions/ghec_v2022_11_28/types/group_0617.py index ccc46e237..490d084ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0617.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0617.py @@ -9,29 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType -from .group_0466 import WebhooksIssueType - - -class WebhookIssuesAssignedType(TypedDict): - """issues assigned event""" - - action: Literal["assigned"] - assignee: NotRequired[Union[WebhooksUserType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssuesAssignedType",) +from typing_extensions import TypedDict + +from .group_0616 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +) + + +class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0618.py b/githubkit/versions/ghec_v2022_11_28/types/group_0618.py index 5d0fc9eec..3b96ed6e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0618.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0618.py @@ -9,27 +9,85 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0619 import WebhookIssuesClosedPropIssueType +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" -class WebhookIssuesClosedType(TypedDict): - """issues closed event""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesClosedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -__all__ = ("WebhookIssuesClosedType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0619.py b/githubkit/versions/ghec_v2022_11_28/types/group_0619.py index 91c377e84..c17fc3a50 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0619.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0619.py @@ -10,185 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0625 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequestType, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, +from .group_0618 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -from .group_0627 import WebhookIssuesClosedPropIssueMergedMilestoneType -from .group_0628 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType -class WebhookIssuesClosedPropIssueType(TypedDict): - """WebhookIssuesClosedPropIssue +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] - assignees: list[WebhookIssuesClosedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - id: int - labels: NotRequired[list[WebhookIssuesClosedPropIssueMergedLabelsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] + id: Union[int, None] + name: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssuesClosedPropIssueMergedUserType - - -class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignee""" + slug: NotRequired[str] + updated_at: Union[datetime, None] - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - -class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedLabels""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): - """WebhookIssuesClosedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesClosedPropIssueMergedAssigneeType", - "WebhookIssuesClosedPropIssueMergedAssigneesType", - "WebhookIssuesClosedPropIssueMergedLabelsType", - "WebhookIssuesClosedPropIssueMergedReactionsType", - "WebhookIssuesClosedPropIssueMergedUserType", - "WebhookIssuesClosedPropIssueType", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0620.py b/githubkit/versions/ghec_v2022_11_28/types/group_0620.py index 637bf34ba..5c991e61e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0620.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0620.py @@ -9,190 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0622 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType -from .group_0624 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType -from .group_0625 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequestType, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, -) +class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" -class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): - """Issue + total: int + completed: int + percent_completed: int - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] - - -class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof0PropReactionsType", - "WebhookIssuesClosedPropIssueAllof0PropUserType", - "WebhookIssuesClosedPropIssueAllof0Type", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0621.py b/githubkit/versions/ghec_v2022_11_28/types/group_0621.py index 2a05f2e97..d5d49ac59 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0621.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0621.py @@ -13,7 +13,49 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1""" + + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + list[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None + ] + ] + reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,4 +82,75 @@ class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): user_view_type: NotRequired[str] -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof1PropUserType", + "WebhookIssueCommentEditedPropIssueAllof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0622.py b/githubkit/versions/ghec_v2022_11_28/types/group_0622.py index 204c85995..c3eca6922 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0622.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0622.py @@ -13,19 +13,20 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0621 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +from .group_0616 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + ] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -40,4 +41,4 @@ class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): url: str -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0623.py b/githubkit/versions/ghec_v2022_11_28/types/group_0623.py index 77496d06f..b726162d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0623.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0623.py @@ -9,85 +9,36 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] +from .group_0618 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0624.py b/githubkit/versions/ghec_v2022_11_28/types/group_0624.py index 448874692..ff9ba29bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0624.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0624.py @@ -9,41 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0623 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType +from .group_0473 import WebhooksIssueType + + +class WebhookIssuesAssignedType(TypedDict): + """issues assigned event""" + + action: Literal["assigned"] + assignee: NotRequired[Union[WebhooksUserType, None]] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssuesAssignedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0625.py b/githubkit/versions/ghec_v2022_11_28/types/group_0625.py index 2fe4e0efb..3364fd532 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0625.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0625.py @@ -9,30 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0626 import WebhookIssuesClosedPropIssueType -class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] +class WebhookIssuesClosedType(TypedDict): + """issues closed event""" + action: Literal["closed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesClosedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - total: int - completed: int - percent_completed: int - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", -) +__all__ = ("WebhookIssuesClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0626.py b/githubkit/versions/ghec_v2022_11_28/types/group_0626.py index 06e71289d..e736a45a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0626.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0626.py @@ -9,99 +9,169 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0632 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequestType, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, +) +from .group_0634 import WebhookIssuesClosedPropIssueMergedMilestoneType +from .group_0635 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType -class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): - """WebhookIssuesClosedPropIssueAllof1""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] +class WebhookIssuesClosedPropIssueType(TypedDict): + """WebhookIssuesClosedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: Union[str, None] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] + assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] + assignees: list[WebhookIssuesClosedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - labels_url: NotRequired[str] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesClosedPropIssueMergedLabelsType]] + labels_url: str locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] + node_id: str + number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType ] - reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["closed", "open"] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] - + title: str + updated_at: datetime + url: str + user: WebhookIssuesClosedPropIssueMergedUserType -class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" +class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignee""" -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" +class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignees""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" +class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedLabels""" -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str -class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" +class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedReactions""" - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropUser""" +class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): + """WebhookIssuesClosedPropIssueMergedUser""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -109,18 +179,16 @@ class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesClosedPropIssueAllof1PropReactionsType", - "WebhookIssuesClosedPropIssueAllof1PropUserType", - "WebhookIssuesClosedPropIssueAllof1Type", + "WebhookIssuesClosedPropIssueMergedAssigneeType", + "WebhookIssuesClosedPropIssueMergedAssigneesType", + "WebhookIssuesClosedPropIssueMergedLabelsType", + "WebhookIssuesClosedPropIssueMergedReactionsType", + "WebhookIssuesClosedPropIssueMergedUserType", + "WebhookIssuesClosedPropIssueType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0627.py b/githubkit/versions/ghec_v2022_11_28/types/group_0627.py index 960b8849f..55d18108a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0627.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0627.py @@ -11,30 +11,188 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0621 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +from .group_0629 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType +from .group_0631 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType +from .group_0632 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequestType, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, +) -class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueMergedMilestone""" +class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): + """Issue + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] closed_at: Union[datetime, None] - closed_issues: int + comments: int + comments_url: str created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] + draft: NotRequired[bool] + events_url: str html_url: str id: int + labels: NotRequired[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] node_id: str number: int - open_issues: int - state: Literal["open", "closed"] + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] title: str updated_at: datetime url: str + user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] + + +class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof0PropReactionsType", + "WebhookIssuesClosedPropIssueAllof0PropUserType", + "WebhookIssuesClosedPropIssueAllof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0628.py b/githubkit/versions/ghec_v2022_11_28/types/group_0628.py index ce3c87c1a..2a05f2e97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0628.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0628.py @@ -9,35 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0623 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - - -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) + +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0629.py b/githubkit/versions/ghec_v2022_11_28/types/group_0629.py index 0ffe671d0..85ee9e313 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0629.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0629.py @@ -11,148 +11,12 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0628 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesDeletedType(TypedDict): - """issues deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesDeletedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] - reactions: WebhookIssuesDeletedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] - - -class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -161,7 +25,7 @@ class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -176,205 +40,4 @@ class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesDeletedPropIssuePropAssigneeType", - "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", - "WebhookIssuesDeletedPropIssuePropLabelsItemsType", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDeletedPropIssuePropMilestoneType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDeletedPropIssuePropPullRequestType", - "WebhookIssuesDeletedPropIssuePropReactionsType", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesDeletedPropIssuePropUserType", - "WebhookIssuesDeletedPropIssueType", - "WebhookIssuesDeletedType", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0630.py b/githubkit/versions/ghec_v2022_11_28/types/group_0630.py index 8386e2f67..77496d06f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0630.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0630.py @@ -9,235 +9,11 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0467 import WebhooksMilestoneType - -class WebhookIssuesDemilestonedType(TypedDict): - """issues demilestoned event""" - - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDemilestonedPropIssueType - milestone: NotRequired[WebhooksMilestoneType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesDemilestonedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( TypedDict ): """User""" @@ -266,10 +42,10 @@ class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( user_view_type: NotRequired[str] -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -311,79 +87,7 @@ class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesDemilestonedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDemilestonedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - __all__ = ( - "WebhookIssuesDemilestonedPropIssuePropAssigneeType", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssuePropMilestoneType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssuePropPullRequestType", - "WebhookIssuesDemilestonedPropIssuePropReactionsType", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesDemilestonedPropIssuePropUserType", - "WebhookIssuesDemilestonedPropIssueType", - "WebhookIssuesDemilestonedType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0631.py b/githubkit/versions/ghec_v2022_11_28/types/group_0631.py index ce9e77c42..5d98496a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0631.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0631.py @@ -10,225 +10,16 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0461 import WebhooksLabelType - - -class WebhookIssuesEditedType(TypedDict): - """issues edited event""" - - action: Literal["edited"] - changes: WebhookIssuesEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesEditedPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesEditedPropChangesType(TypedDict): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] - title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] - - -class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str - - -class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str - - -class WebhookIssuesEditedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesEditedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] - reactions: WebhookIssuesEditedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesEditedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesEditedPropIssuePropUserType, None] - - -class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +from .group_0630 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -246,163 +37,13 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesEditedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesEditedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesEditedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesEditedPropChangesPropBodyType", - "WebhookIssuesEditedPropChangesPropTitleType", - "WebhookIssuesEditedPropChangesType", - "WebhookIssuesEditedPropIssuePropAssigneeType", - "WebhookIssuesEditedPropIssuePropAssigneesItemsType", - "WebhookIssuesEditedPropIssuePropLabelsItemsType", - "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesEditedPropIssuePropMilestoneType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesEditedPropIssuePropPullRequestType", - "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesEditedPropIssuePropUserType", - "WebhookIssuesEditedPropIssueType", - "WebhookIssuesEditedType", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0632.py b/githubkit/versions/ghec_v2022_11_28/types/group_0632.py index ac86008ad..2fe4e0efb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0632.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0632.py @@ -10,302 +10,12 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0461 import WebhooksLabelType - -class WebhookIssuesLabeledType(TypedDict): - """issues labeled event""" - - action: Literal["labeled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLabeledPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesLabeledPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] - reactions: WebhookIssuesLabeledPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] - - -class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesLabeledPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -314,22 +24,7 @@ class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -337,46 +32,7 @@ class WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType(TypedDict): percent_completed: int -class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - __all__ = ( - "WebhookIssuesLabeledPropIssuePropAssigneeType", - "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", - "WebhookIssuesLabeledPropIssuePropLabelsItemsType", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLabeledPropIssuePropMilestoneType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLabeledPropIssuePropPullRequestType", - "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", - "WebhookIssuesLabeledPropIssuePropUserType", - "WebhookIssuesLabeledPropIssueType", - "WebhookIssuesLabeledType", + "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", + "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0633.py b/githubkit/versions/ghec_v2022_11_28/types/group_0633.py index d39c44e09..06e71289d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0633.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0633.py @@ -9,350 +9,99 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesLockedType(TypedDict): - """issues locked event""" - - action: Literal["locked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLockedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesLockedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + active_lock_reason: NotRequired[Union[str, None]] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] ] - assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + assignees: NotRequired[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: Union[str, None] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] labels: NotRequired[ - list[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] + list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] ] - labels_url: str - locked: Literal[True] - milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] + labels_url: NotRequired[str] + locked: NotRequired[bool] + milestone: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] ] - pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] - reactions: WebhookIssuesLockedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesLockedPropIssuePropSubIssuesSummaryType + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] + reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["closed", "open"] timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLockedPropIssuePropUserType, None] - - -class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + title: NotRequired[str] + updated_at: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] + user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] -class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" -class WebhookIssuesLockedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" -class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): - """Milestone +class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - A collection of related issues and pull requests. - """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesLockedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesLockedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesLockedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesLockedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int -class WebhookIssuesLockedPropIssuePropUserType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -360,24 +109,18 @@ class WebhookIssuesLockedPropIssuePropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesLockedPropIssuePropAssigneeType", - "WebhookIssuesLockedPropIssuePropAssigneesItemsType", - "WebhookIssuesLockedPropIssuePropLabelsItemsType", - "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLockedPropIssuePropMilestoneType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLockedPropIssuePropPullRequestType", - "WebhookIssuesLockedPropIssuePropReactionsType", - "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesLockedPropIssuePropUserType", - "WebhookIssuesLockedPropIssueType", - "WebhookIssuesLockedType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssuesClosedPropIssueAllof1PropReactionsType", + "WebhookIssuesClosedPropIssueAllof1PropUserType", + "WebhookIssuesClosedPropIssueAllof1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0634.py b/githubkit/versions/ghec_v2022_11_28/types/group_0634.py index 83de1d00a..e5861f1c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0634.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0634.py @@ -11,160 +11,18 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0467 import WebhooksMilestoneType +from .group_0628 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesMilestonedType(TypedDict): - """issues milestoned event""" - - action: Literal["milestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesMilestonedPropIssueType - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesMilestonedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesMilestonedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] - - -class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueMergedMilestone""" closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -179,205 +37,4 @@ class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesMilestonedPropIssuePropAssigneeType", - "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssuePropMilestoneType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssuePropPullRequestType", - "WebhookIssuesMilestonedPropIssuePropReactionsType", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesMilestonedPropIssuePropUserType", - "WebhookIssuesMilestonedPropIssueType", - "WebhookIssuesMilestonedType", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0635.py b/githubkit/versions/ghec_v2022_11_28/types/group_0635.py index 37b15ba4d..1d8e217b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0635.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0635.py @@ -10,562 +10,17 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType - - -class WebhookIssuesOpenedType(TypedDict): - """issues opened event""" - - action: Literal["opened"] - changes: NotRequired[WebhookIssuesOpenedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesOpenedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesOpenedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] - reactions: WebhookIssuesOpenedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] - - -class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesType(TypedDict): - """WebhookIssuesOpenedPropChanges""" - - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] - old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType - - -class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType - ] - reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0630 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( - TypedDict -): - """App - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] description: Union[str, None] @@ -576,347 +31,13 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_discussions: NotRequired[bool] - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType: TypeAlias = ( - dict[str, Any] -) -"""WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", - "WebhookIssuesOpenedPropChangesPropOldIssueType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryType", - "WebhookIssuesOpenedPropChangesType", - "WebhookIssuesOpenedPropIssuePropAssigneeType", - "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropIssuePropMilestoneType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropIssuePropPullRequestType", - "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesOpenedPropIssuePropUserType", - "WebhookIssuesOpenedPropIssueType", - "WebhookIssuesOpenedType", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0636.py b/githubkit/versions/ghec_v2022_11_28/types/group_0636.py index ea57ab224..ff7dbdcf0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0636.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0636.py @@ -9,27 +9,372 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0468 import WebhooksIssue2Type +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookIssuesPinnedType(TypedDict): - """issues pinned event""" +class WebhookIssuesDeletedType(TypedDict): + """issues deleted event""" - action: Literal["pinned"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhookIssuesDeletedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesPinnedType",) +class WebhookIssuesDeletedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] + reactions: WebhookIssuesDeletedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] + + +class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDeletedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesDeletedPropIssuePropAssigneeType", + "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", + "WebhookIssuesDeletedPropIssuePropLabelsItemsType", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDeletedPropIssuePropMilestoneType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDeletedPropIssuePropPullRequestType", + "WebhookIssuesDeletedPropIssuePropReactionsType", + "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesDeletedPropIssuePropUserType", + "WebhookIssuesDeletedPropIssueType", + "WebhookIssuesDeletedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0637.py b/githubkit/versions/ghec_v2022_11_28/types/group_0637.py index e546633c2..e553a7122 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0637.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0637.py @@ -13,26 +13,28 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0474 import WebhooksMilestoneType -class WebhookIssuesReopenedType(TypedDict): - """issues reopened event""" +class WebhookIssuesDemilestonedType(TypedDict): + """issues demilestoned event""" - action: Literal["reopened"] + action: Literal["demilestoned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesReopenedPropIssueType + issue: WebhookIssuesDemilestonedPropIssueType + milestone: NotRequired[WebhooksMilestoneType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookIssuesReopenedPropIssueType(TypedDict): +class WebhookIssuesDemilestonedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -42,8 +44,12 @@ class WebhookIssuesReopenedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] + ] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -64,32 +70,32 @@ class WebhookIssuesReopenedPropIssueType(TypedDict): html_url: str id: int labels: NotRequired[ - list[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] + list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] ] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] - reactions: WebhookIssuesReopenedPropIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType repository_url: str sub_issues_summary: NotRequired[ - WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType + WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType ] - state: Literal["open", "closed"] + state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] + user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] -class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -111,11 +117,11 @@ class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -141,7 +147,7 @@ class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -153,7 +159,7 @@ class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -162,7 +168,7 @@ class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -177,7 +183,7 @@ class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -204,7 +210,7 @@ class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -222,16 +228,18 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -258,10 +266,10 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(Typed user_view_type: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -291,7 +299,7 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType pages: NotRequired[Literal["read", "write"]] pull_requests: NotRequired[Literal["read", "write"]] repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] + repository_projects: NotRequired[Literal["read", "write"]] secret_scanning_alerts: NotRequired[Literal["read", "write"]] secrets: NotRequired[Literal["read", "write"]] security_events: NotRequired[Literal["read", "write"]] @@ -303,8 +311,8 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesReopenedPropIssuePropPullRequest""" +class WebhookIssuesDemilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -313,7 +321,7 @@ class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -328,7 +336,7 @@ class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -336,7 +344,7 @@ class WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType(TypedDict): percent_completed: int -class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -364,18 +372,18 @@ class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesReopenedPropIssuePropAssigneeType", - "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", - "WebhookIssuesReopenedPropIssuePropLabelsItemsType", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesReopenedPropIssuePropMilestoneType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesReopenedPropIssuePropPullRequestType", - "WebhookIssuesReopenedPropIssuePropReactionsType", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesReopenedPropIssuePropUserType", - "WebhookIssuesReopenedPropIssueType", - "WebhookIssuesReopenedType", + "WebhookIssuesDemilestonedPropIssuePropAssigneeType", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDemilestonedPropIssuePropMilestoneType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDemilestonedPropIssuePropPullRequestType", + "WebhookIssuesDemilestonedPropIssuePropReactionsType", + "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesDemilestonedPropIssuePropUserType", + "WebhookIssuesDemilestonedPropIssueType", + "WebhookIssuesDemilestonedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0638.py b/githubkit/versions/ghec_v2022_11_28/types/group_0638.py index c8908afb8..d39f00e7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0638.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0638.py @@ -10,38 +10,54 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0468 import WebhooksIssue2Type +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0468 import WebhooksLabelType -class WebhookIssuesTransferredType(TypedDict): - """issues transferred event""" +class WebhookIssuesEditedType(TypedDict): + """issues edited event""" - action: Literal["transferred"] - changes: WebhookIssuesTransferredPropChangesType + action: Literal["edited"] + changes: WebhookIssuesEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhookIssuesEditedPropIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookIssuesTransferredPropChangesType(TypedDict): - """WebhookIssuesTransferredPropChanges""" +class WebhookIssuesEditedPropChangesType(TypedDict): + """WebhookIssuesEditedPropChanges + + The changes to the issue. + """ + + body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] + title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] + + +class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): + """WebhookIssuesEditedPropChangesPropBody""" + + from_: str - new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType - new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType +class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): + """WebhookIssuesEditedPropChangesPropTitle""" -class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): + from_: str + + +class WebhookIssuesEditedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -51,14 +67,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] - ] - assignees: list[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None - ] - ] + assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -78,29 +88,20 @@ class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] - ] + labels: NotRequired[list[WebhookIssuesEditedPropIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None - ] + milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, - None, - ] + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType - ] - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] + reactions: WebhookIssuesEditedPropIssuePropReactionsType repository_url: str sub_issues_summary: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType + WebhookIssuesEditedPropIssuePropSubIssuesSummaryType ] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -108,10 +109,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] + user: Union[WebhookIssuesEditedPropIssuePropUserType, None] -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): +class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -133,12 +134,12 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict) site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -160,12 +161,11 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -177,7 +177,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDi url: str -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): +class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -186,10 +186,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, - None, - ] + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -204,9 +201,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict url: str -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( - TypedDict -): +class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -228,14 +223,12 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorTyp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( - TypedDict -): +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -253,19 +246,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -292,11 +282,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -318,7 +307,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr organization_hooks: NotRequired[Literal["read", "write"]] organization_packages: NotRequired[Literal["read", "write"]] organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] organization_secrets: NotRequired[Literal["read", "write"]] organization_self_hosted_runners: NotRequired[Literal["read", "write"]] organization_user_blocking: NotRequired[Literal["read", "write"]] @@ -338,8 +327,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" +class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesEditedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -348,7 +337,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDi url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): +class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -363,9 +352,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict url: str -class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType( - TypedDict -): +class WebhookIssuesEditedPropIssuePropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -373,7 +360,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType( percent_completed: int -class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): +class WebhookIssuesEditedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -395,198 +382,27 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType: TypeAlias = dict[ - str, Any -] -"""WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - __all__ = ( - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", - "WebhookIssuesTransferredPropChangesPropNewIssueType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryType", - "WebhookIssuesTransferredPropChangesType", - "WebhookIssuesTransferredType", + "WebhookIssuesEditedPropChangesPropBodyType", + "WebhookIssuesEditedPropChangesPropTitleType", + "WebhookIssuesEditedPropChangesType", + "WebhookIssuesEditedPropIssuePropAssigneeType", + "WebhookIssuesEditedPropIssuePropAssigneesItemsType", + "WebhookIssuesEditedPropIssuePropLabelsItemsType", + "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesEditedPropIssuePropMilestoneType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesEditedPropIssuePropPullRequestType", + "WebhookIssuesEditedPropIssuePropReactionsType", + "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesEditedPropIssuePropUserType", + "WebhookIssuesEditedPropIssueType", + "WebhookIssuesEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0639.py b/githubkit/versions/ghec_v2022_11_28/types/group_0639.py index 84e6bd0fb..84b635e49 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0639.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0639.py @@ -9,29 +9,374 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0466 import WebhooksIssueType -from .group_0469 import WebhooksUserMannequinType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0468 import WebhooksLabelType -class WebhookIssuesUnassignedType(TypedDict): - """issues unassigned event""" +class WebhookIssuesLabeledType(TypedDict): + """issues labeled event""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["labeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType + issue: WebhookIssuesLabeledPropIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnassignedType",) +class WebhookIssuesLabeledPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] + reactions: WebhookIssuesLabeledPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] + + +class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLabeledPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesLabeledPropIssuePropAssigneeType", + "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", + "WebhookIssuesLabeledPropIssuePropLabelsItemsType", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLabeledPropIssuePropMilestoneType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLabeledPropIssuePropPullRequestType", + "WebhookIssuesLabeledPropIssuePropReactionsType", + "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", + "WebhookIssuesLabeledPropIssuePropUserType", + "WebhookIssuesLabeledPropIssueType", + "WebhookIssuesLabeledType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0640.py b/githubkit/versions/ghec_v2022_11_28/types/group_0640.py index bb9530407..131ea7003 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0640.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0640.py @@ -9,29 +9,375 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0461 import WebhooksLabelType -from .group_0466 import WebhooksIssueType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookIssuesUnlabeledType(TypedDict): - """issues unlabeled event""" +class WebhookIssuesLockedType(TypedDict): + """issues locked event""" - action: Literal["unlabeled"] + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - label: NotRequired[WebhooksLabelType] + issue: WebhookIssuesLockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnlabeledType",) +class WebhookIssuesLockedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: Literal[True] + milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] + reactions: WebhookIssuesLockedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesLockedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLockedPropIssuePropUserType, None] + + +class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesLockedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesLockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLockedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesLockedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesLockedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesLockedPropIssuePropAssigneeType", + "WebhookIssuesLockedPropIssuePropAssigneesItemsType", + "WebhookIssuesLockedPropIssuePropLabelsItemsType", + "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLockedPropIssuePropMilestoneType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropPullRequestType", + "WebhookIssuesLockedPropIssuePropReactionsType", + "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesLockedPropIssuePropUserType", + "WebhookIssuesLockedPropIssueType", + "WebhookIssuesLockedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0641.py b/githubkit/versions/ghec_v2022_11_28/types/group_0641.py index 316edebf2..0b6c61767 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0641.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0641.py @@ -13,26 +13,28 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0474 import WebhooksMilestoneType -class WebhookIssuesUnlockedType(TypedDict): - """issues unlocked event""" +class WebhookIssuesMilestonedType(TypedDict): + """issues milestoned event""" - action: Literal["unlocked"] + action: Literal["milestoned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnlockedPropIssueType + issue: WebhookIssuesMilestonedPropIssueType + milestone: WebhooksMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookIssuesUnlockedPropIssueType(TypedDict): +class WebhookIssuesMilestonedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -42,8 +44,8 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -64,21 +66,21 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): html_url: str id: int labels: NotRequired[ - list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] ] labels_url: str - locked: Literal[False] - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] + locked: NotRequired[bool] + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] - reactions: WebhookIssuesUnlockedPropIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesMilestonedPropIssuePropReactionsType repository_url: str sub_issues_summary: NotRequired[ - WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType + WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType ] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -86,10 +88,10 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] + user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] -class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -113,10 +115,9 @@ class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -140,10 +141,9 @@ class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -155,7 +155,7 @@ class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -164,7 +164,7 @@ class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -179,7 +179,7 @@ class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -201,12 +201,12 @@ class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -224,16 +224,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -260,10 +260,10 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(Typed user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -285,7 +285,7 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType organization_hooks: NotRequired[Literal["read", "write"]] organization_packages: NotRequired[Literal["read", "write"]] organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] organization_secrets: NotRequired[Literal["read", "write"]] organization_self_hosted_runners: NotRequired[Literal["read", "write"]] organization_user_blocking: NotRequired[Literal["read", "write"]] @@ -305,8 +305,8 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" +class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesMilestonedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -315,7 +315,7 @@ class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): +class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -330,7 +330,7 @@ class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -338,7 +338,7 @@ class WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType(TypedDict): percent_completed: int -class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): +class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -366,18 +366,18 @@ class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesUnlockedPropIssuePropAssigneeType", - "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnlockedPropIssuePropMilestoneType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssuePropPullRequestType", - "WebhookIssuesUnlockedPropIssuePropReactionsType", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesUnlockedPropIssuePropUserType", - "WebhookIssuesUnlockedPropIssueType", - "WebhookIssuesUnlockedType", + "WebhookIssuesMilestonedPropIssuePropAssigneeType", + "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesMilestonedPropIssuePropMilestoneType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesMilestonedPropIssuePropPullRequestType", + "WebhookIssuesMilestonedPropIssuePropReactionsType", + "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesMilestonedPropIssuePropUserType", + "WebhookIssuesMilestonedPropIssueType", + "WebhookIssuesMilestonedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0642.py b/githubkit/versions/ghec_v2022_11_28/types/group_0642.py index 9d5fb0bfd..bb181cc7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0642.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0642.py @@ -9,27 +9,914 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0468 import WebhooksIssue2Type +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookIssuesUnpinnedType(TypedDict): - """issues unpinned event""" +class WebhookIssuesOpenedType(TypedDict): + """issues opened event""" - action: Literal["unpinned"] + action: Literal["opened"] + changes: NotRequired[WebhookIssuesOpenedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhookIssuesOpenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnpinnedType",) +class WebhookIssuesOpenedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] + reactions: WebhookIssuesOpenedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] + + +class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesType(TypedDict): + """WebhookIssuesOpenedPropChanges""" + + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] + old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType + + +class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType + ] + reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_discussions: NotRequired[bool] + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType: TypeAlias = ( + dict[str, Any] +) +"""WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", + "WebhookIssuesOpenedPropChangesPropOldIssueType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryType", + "WebhookIssuesOpenedPropChangesType", + "WebhookIssuesOpenedPropIssuePropAssigneeType", + "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropIssuePropMilestoneType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropIssuePropPullRequestType", + "WebhookIssuesOpenedPropIssuePropReactionsType", + "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesOpenedPropIssuePropUserType", + "WebhookIssuesOpenedPropIssueType", + "WebhookIssuesOpenedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0643.py b/githubkit/versions/ghec_v2022_11_28/types/group_0643.py index 16eb19954..2d8234e30 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0643.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0643.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0461 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0475 import WebhooksIssue2Type -class WebhookLabelCreatedType(TypedDict): - """label created event""" +class WebhookIssuesPinnedType(TypedDict): + """issues pinned event""" - action: Literal["created"] + action: Literal["pinned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookLabelCreatedType",) +__all__ = ("WebhookIssuesPinnedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0644.py b/githubkit/versions/ghec_v2022_11_28/types/group_0644.py index 3f263172f..cc6340e43 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0644.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0644.py @@ -9,27 +9,373 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0461 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookLabelDeletedType(TypedDict): - """label deleted event""" +class WebhookIssuesReopenedType(TypedDict): + """issues reopened event""" - action: Literal["deleted"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhookIssuesReopenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookLabelDeletedType",) +class WebhookIssuesReopenedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] + reactions: WebhookIssuesReopenedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] + + +class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesReopenedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesReopenedPropIssuePropAssigneeType", + "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", + "WebhookIssuesReopenedPropIssuePropLabelsItemsType", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesReopenedPropIssuePropMilestoneType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropPullRequestType", + "WebhookIssuesReopenedPropIssuePropReactionsType", + "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesReopenedPropIssuePropUserType", + "WebhookIssuesReopenedPropIssueType", + "WebhookIssuesReopenedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0645.py b/githubkit/versions/ghec_v2022_11_28/types/group_0645.py index d48e1ec4d..c5b6e01fd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0645.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0645.py @@ -9,63 +9,584 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0461 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0475 import WebhooksIssue2Type -class WebhookLabelEditedType(TypedDict): - """label edited event""" +class WebhookIssuesTransferredType(TypedDict): + """issues transferred event""" - action: Literal["edited"] - changes: NotRequired[WebhookLabelEditedPropChangesType] + action: Literal["transferred"] + changes: WebhookIssuesTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookLabelEditedPropChangesType(TypedDict): - """WebhookLabelEditedPropChanges +class WebhookIssuesTransferredPropChangesType(TypedDict): + """WebhookIssuesTransferredPropChanges""" - The changes to the label if the action was `edited`. + new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType + new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType + + +class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] + ] + assignees: list[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None + ] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType + ] + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions + + The set of permissions for the GitHub app """ - color: NotRequired[WebhookLabelEditedPropChangesPropColorType] - description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookLabelEditedPropChangesPropNameType] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType( + TypedDict +): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType: TypeAlias = dict[ + str, Any +] +"""WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -class WebhookLabelEditedPropChangesPropColorType(TypedDict): - """WebhookLabelEditedPropChangesPropColor""" +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): + """License""" - from_: str + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): - """WebhookLabelEditedPropChangesPropDescription""" +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): + """User""" - from_: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookLabelEditedPropChangesPropNameType(TypedDict): - """WebhookLabelEditedPropChangesPropName""" +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - from_: str + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookLabelEditedPropChangesPropColorType", - "WebhookLabelEditedPropChangesPropDescriptionType", - "WebhookLabelEditedPropChangesPropNameType", - "WebhookLabelEditedPropChangesType", - "WebhookLabelEditedType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", + "WebhookIssuesTransferredPropChangesPropNewIssueType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryType", + "WebhookIssuesTransferredPropChangesType", + "WebhookIssuesTransferredType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0646.py b/githubkit/versions/ghec_v2022_11_28/types/group_0646.py index 0d45799b6..843ef906d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0646.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0646.py @@ -9,30 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0470 import WebhooksMarketplacePurchaseType -from .group_0471 import WebhooksPreviousMarketplacePurchaseType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0473 import WebhooksIssueType +from .group_0476 import WebhooksUserMannequinType -class WebhookMarketplacePurchaseCancelledType(TypedDict): - """marketplace_purchase cancelled event""" +class WebhookIssuesUnassignedType(TypedDict): + """issues unassigned event""" - action: Literal["cancelled"] - effective_date: str + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhooksIssueType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMarketplacePurchaseCancelledType",) +__all__ = ("WebhookIssuesUnassignedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0647.py b/githubkit/versions/ghec_v2022_11_28/types/group_0647.py index b9937e6fd..654898893 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0647.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0647.py @@ -9,78 +9,29 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0470 import WebhooksMarketplacePurchaseType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0468 import WebhooksLabelType +from .group_0473 import WebhooksIssueType -class WebhookMarketplacePurchaseChangedType(TypedDict): - """marketplace_purchase changed event""" +class WebhookIssuesUnlabeledType(TypedDict): + """issues unlabeled event""" - action: Literal["changed"] - effective_date: str + action: Literal["unlabeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhooksIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType - ] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - - account: ( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: Union[bool, None] - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedType", -) +__all__ = ("WebhookIssuesUnlabeledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0648.py b/githubkit/versions/ghec_v2022_11_28/types/group_0648.py index b1b960b8b..d70d7fd5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0648.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0648.py @@ -9,80 +9,375 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0470 import WebhooksMarketplacePurchaseType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookMarketplacePurchasePendingChangeType(TypedDict): - """marketplace_purchase pending_change event""" +class WebhookIssuesUnlockedType(TypedDict): + """issues unlocked event""" - action: Literal["pending_change"] - effective_date: str + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhookIssuesUnlockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType - ] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" +class WebhookIssuesUnlockedPropIssueType(TypedDict): + """Issue - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType - unit_count: int + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: Literal[False] + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnlockedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t + +class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str node_id: str - organization_billing_email: Union[str, None] - type: str + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions - bullets: list[str] - description: str - has_free_trial: bool + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeType", + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesUnlockedPropIssuePropUserType", + "WebhookIssuesUnlockedPropIssueType", + "WebhookIssuesUnlockedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0649.py b/githubkit/versions/ghec_v2022_11_28/types/group_0649.py index 0b2d86181..781fbb60b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0649.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0649.py @@ -9,80 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0471 import WebhooksPreviousMarketplacePurchaseType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0475 import WebhooksIssue2Type -class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): - """marketplace_purchase pending_change_cancelled event""" +class WebhookIssuesUnpinnedType(TypedDict): + """issues unpinned event""" - action: Literal["pending_change_cancelled"] - effective_date: str + action: Literal["unpinned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType - ) + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: Union[str, None] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou - nt - """ - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" - - bullets: list[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeCancelledType", -) +__all__ = ("WebhookIssuesUnpinnedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0650.py b/githubkit/versions/ghec_v2022_11_28/types/group_0650.py index e1462d015..874052b58 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0650.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0650.py @@ -12,27 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0470 import WebhooksMarketplacePurchaseType -from .group_0471 import WebhooksPreviousMarketplacePurchaseType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0468 import WebhooksLabelType -class WebhookMarketplacePurchasePurchasedType(TypedDict): - """marketplace_purchase purchased event""" +class WebhookLabelCreatedType(TypedDict): + """label created event""" - action: Literal["purchased"] - effective_date: str + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookMarketplacePurchasePurchasedType",) +__all__ = ("WebhookLabelCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0651.py b/githubkit/versions/ghec_v2022_11_28/types/group_0651.py index 002a649ce..4c86278ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0651.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0651.py @@ -9,64 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0468 import WebhooksLabelType -class WebhookMemberAddedType(TypedDict): - """member added event""" +class WebhookLabelDeletedType(TypedDict): + """label deleted event""" - action: Literal["added"] - changes: NotRequired[WebhookMemberAddedPropChangesType] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookMemberAddedPropChangesType(TypedDict): - """WebhookMemberAddedPropChanges""" - - permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] - role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] - - -class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): - """WebhookMemberAddedPropChangesPropPermission - - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - - to: Literal["write", "admin", "read"] - - -class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): - """WebhookMemberAddedPropChangesPropRoleName - - The role assigned to the collaborator. - """ - - to: str - - -__all__ = ( - "WebhookMemberAddedPropChangesPropPermissionType", - "WebhookMemberAddedPropChangesPropRoleNameType", - "WebhookMemberAddedPropChangesType", - "WebhookMemberAddedType", -) +__all__ = ("WebhookLabelDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0652.py b/githubkit/versions/ghec_v2022_11_28/types/group_0652.py index 88808d7a1..a6324f622 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0652.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0652.py @@ -9,56 +9,63 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0468 import WebhooksLabelType -class WebhookMemberEditedType(TypedDict): - """member edited event""" +class WebhookLabelEditedType(TypedDict): + """label edited event""" action: Literal["edited"] - changes: WebhookMemberEditedPropChangesType + changes: NotRequired[WebhookLabelEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookMemberEditedPropChangesType(TypedDict): - """WebhookMemberEditedPropChanges +class WebhookLabelEditedPropChangesType(TypedDict): + """WebhookLabelEditedPropChanges - The changes to the collaborator permissions + The changes to the label if the action was `edited`. """ - old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] - permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] + color: NotRequired[WebhookLabelEditedPropChangesPropColorType] + description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookLabelEditedPropChangesPropNameType] -class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropOldPermission""" +class WebhookLabelEditedPropChangesPropColorType(TypedDict): + """WebhookLabelEditedPropChangesPropColor""" from_: str -class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropPermission""" +class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): + """WebhookLabelEditedPropChangesPropDescription""" - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] + from_: str + + +class WebhookLabelEditedPropChangesPropNameType(TypedDict): + """WebhookLabelEditedPropChangesPropName""" + + from_: str __all__ = ( - "WebhookMemberEditedPropChangesPropOldPermissionType", - "WebhookMemberEditedPropChangesPropPermissionType", - "WebhookMemberEditedPropChangesType", - "WebhookMemberEditedType", + "WebhookLabelEditedPropChangesPropColorType", + "WebhookLabelEditedPropChangesPropDescriptionType", + "WebhookLabelEditedPropChangesPropNameType", + "WebhookLabelEditedPropChangesType", + "WebhookLabelEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0653.py b/githubkit/versions/ghec_v2022_11_28/types/group_0653.py index 8158fb9b5..5d0405d17 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0653.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0653.py @@ -9,27 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0477 import WebhooksMarketplacePurchaseType +from .group_0478 import WebhooksPreviousMarketplacePurchaseType -class WebhookMemberRemovedType(TypedDict): - """member removed event""" +class WebhookMarketplacePurchaseCancelledType(TypedDict): + """marketplace_purchase cancelled event""" - action: Literal["removed"] + action: Literal["cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookMemberRemovedType",) +__all__ = ("WebhookMarketplacePurchaseCancelledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0654.py b/githubkit/versions/ghec_v2022_11_28/types/group_0654.py index 78580e6fc..926fa796f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0654.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0654.py @@ -12,56 +12,75 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType -from .group_0472 import WebhooksTeamType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0477 import WebhooksMarketplacePurchaseType -class WebhookMembershipAddedType(TypedDict): - """membership added event""" +class WebhookMarketplacePurchaseChangedType(TypedDict): + """marketplace_purchase changed event""" - action: Literal["added"] + action: Literal["changed"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + marketplace_purchase: WebhooksMarketplacePurchaseType + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType + ] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team"] - sender: Union[WebhookMembershipAddedPropSenderType, None] - team: WebhooksTeamType - - -class WebhookMembershipAddedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + sender: SimpleUserType + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: ( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType + ) + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: Union[bool, None] + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookMembershipAddedPropSenderType", - "WebhookMembershipAddedType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchaseChangedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0655.py b/githubkit/versions/ghec_v2022_11_28/types/group_0655.py index 2953affe3..049490458 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0655.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0655.py @@ -12,56 +12,77 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType -from .group_0472 import WebhooksTeamType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0477 import WebhooksMarketplacePurchaseType -class WebhookMembershipRemovedType(TypedDict): - """membership removed event""" +class WebhookMarketplacePurchasePendingChangeType(TypedDict): + """marketplace_purchase pending_change event""" - action: Literal["removed"] + action: Literal["pending_change"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + marketplace_purchase: WebhooksMarketplacePurchaseType + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType + ] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team", "organization"] - sender: Union[WebhookMembershipRemovedPropSenderType, None] - team: WebhooksTeamType - - -class WebhookMembershipRemovedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + sender: SimpleUserType + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookMembershipRemovedPropSenderType", - "WebhookMembershipRemovedType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0656.py b/githubkit/versions/ghec_v2022_11_28/types/group_0656.py index 045e854da..88adcef71 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0656.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0656.py @@ -9,25 +9,80 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0473 import MergeGroupType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0478 import WebhooksPreviousMarketplacePurchaseType -class WebhookMergeGroupChecksRequestedType(TypedDict): - """WebhookMergeGroupChecksRequested""" +class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["checks_requested"] + action: Literal["pending_change_cancelled"] + effective_date: str + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType + marketplace_purchase: ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType + ) organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookMergeGroupChecksRequestedType",) +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +__all__ = ( + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0657.py b/githubkit/versions/ghec_v2022_11_28/types/group_0657.py index 768592b4d..144b09217 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0657.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0657.py @@ -12,23 +12,27 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0473 import MergeGroupType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0477 import WebhooksMarketplacePurchaseType +from .group_0478 import WebhooksPreviousMarketplacePurchaseType -class WebhookMergeGroupDestroyedType(TypedDict): - """WebhookMergeGroupDestroyed""" +class WebhookMarketplacePurchasePurchasedType(TypedDict): + """marketplace_purchase purchased event""" - action: Literal["destroyed"] - reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] + action: Literal["purchased"] + effective_date: str + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookMergeGroupDestroyedType",) +__all__ = ("WebhookMarketplacePurchasePurchasedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0658.py b/githubkit/versions/ghec_v2022_11_28/types/group_0658.py index 242885d61..f37f57e37 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0658.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0658.py @@ -12,54 +12,61 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType -class WebhookMetaDeletedType(TypedDict): - """meta deleted event""" +class WebhookMemberAddedType(TypedDict): + """member added event""" - action: Literal["deleted"] + action: Literal["added"] + changes: NotRequired[WebhookMemberAddedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] - hook: WebhookMetaDeletedPropHookType - hook_id: int installation: NotRequired[SimpleInstallationType] + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookMetaDeletedPropHookType(TypedDict): - """WebhookMetaDeletedPropHook +class WebhookMemberAddedPropChangesType(TypedDict): + """WebhookMemberAddedPropChanges""" - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. + permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] + role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] + + +class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. """ - active: bool - config: WebhookMetaDeletedPropHookPropConfigType - created_at: str - events: list[str] - id: int - name: str - type: str - updated_at: str + to: Literal["write", "admin", "read"] -class WebhookMetaDeletedPropHookPropConfigType(TypedDict): - """WebhookMetaDeletedPropHookPropConfig""" +class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ - content_type: Literal["json", "form"] - insecure_ssl: str - secret: NotRequired[str] - url: str + to: str __all__ = ( - "WebhookMetaDeletedPropHookPropConfigType", - "WebhookMetaDeletedPropHookType", - "WebhookMetaDeletedType", + "WebhookMemberAddedPropChangesPropPermissionType", + "WebhookMemberAddedPropChangesPropRoleNameType", + "WebhookMemberAddedPropChangesType", + "WebhookMemberAddedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0659.py b/githubkit/versions/ghec_v2022_11_28/types/group_0659.py index c4e72b79f..844b4bb19 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0659.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0659.py @@ -9,27 +9,56 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0467 import WebhooksMilestoneType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType -class WebhookMilestoneClosedType(TypedDict): - """milestone closed event""" +class WebhookMemberEditedType(TypedDict): + """member edited event""" - action: Literal["closed"] + action: Literal["edited"] + changes: WebhookMemberEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMilestoneClosedType",) +class WebhookMemberEditedPropChangesType(TypedDict): + """WebhookMemberEditedPropChanges + + The changes to the collaborator permissions + """ + + old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] + permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] + + +class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropOldPermission""" + + from_: str + + +class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropPermission""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +__all__ = ( + "WebhookMemberEditedPropChangesPropOldPermissionType", + "WebhookMemberEditedPropChangesPropPermissionType", + "WebhookMemberEditedPropChangesType", + "WebhookMemberEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0660.py b/githubkit/versions/ghec_v2022_11_28/types/group_0660.py index fd7adf74b..ca77cc4ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0660.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0660.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0474 import WebhooksMilestone3Type +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType -class WebhookMilestoneCreatedType(TypedDict): - """milestone created event""" +class WebhookMemberRemovedType(TypedDict): + """member removed event""" - action: Literal["created"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMilestoneCreatedType",) +__all__ = ("WebhookMemberRemovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0661.py b/githubkit/versions/ghec_v2022_11_28/types/group_0661.py index 48aae2751..01615981a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0661.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0661.py @@ -9,27 +9,59 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0467 import WebhooksMilestoneType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType +from .group_0479 import WebhooksTeamType -class WebhookMilestoneDeletedType(TypedDict): - """milestone deleted event""" +class WebhookMembershipAddedType(TypedDict): + """membership added event""" - action: Literal["deleted"] + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + member: Union[WebhooksUserType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team"] + sender: Union[WebhookMembershipAddedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMilestoneDeletedType",) +class WebhookMembershipAddedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookMembershipAddedPropSenderType", + "WebhookMembershipAddedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0662.py b/githubkit/versions/ghec_v2022_11_28/types/group_0662.py index e9975ac61..356392bb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0662.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0662.py @@ -9,63 +9,59 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0467 import WebhooksMilestoneType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType +from .group_0479 import WebhooksTeamType -class WebhookMilestoneEditedType(TypedDict): - """milestone edited event""" +class WebhookMembershipRemovedType(TypedDict): + """membership removed event""" - action: Literal["edited"] - changes: WebhookMilestoneEditedPropChangesType + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookMilestoneEditedPropChangesType(TypedDict): - """WebhookMilestoneEditedPropChanges - - The changes to the milestone if the action was `edited`. - """ - - description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] - due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] - title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] - - -class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): - """WebhookMilestoneEditedPropChangesPropDescription""" - - from_: str - - -class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): - """WebhookMilestoneEditedPropChangesPropDueOn""" - - from_: str - - -class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): - """WebhookMilestoneEditedPropChangesPropTitle""" - - from_: str + member: Union[WebhooksUserType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team", "organization"] + sender: Union[WebhookMembershipRemovedPropSenderType, None] + team: WebhooksTeamType + + +class WebhookMembershipRemovedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookMilestoneEditedPropChangesPropDescriptionType", - "WebhookMilestoneEditedPropChangesPropDueOnType", - "WebhookMilestoneEditedPropChangesPropTitleType", - "WebhookMilestoneEditedPropChangesType", - "WebhookMilestoneEditedType", + "WebhookMembershipRemovedPropSenderType", + "WebhookMembershipRemovedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0663.py b/githubkit/versions/ghec_v2022_11_28/types/group_0663.py index 375a6eded..312251124 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0663.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0663.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0474 import WebhooksMilestone3Type +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0480 import MergeGroupType -class WebhookMilestoneOpenedType(TypedDict): - """milestone opened event""" +class WebhookMergeGroupChecksRequestedType(TypedDict): + """WebhookMergeGroupChecksRequested""" - action: Literal["opened"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["checks_requested"] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type + merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookMilestoneOpenedType",) +__all__ = ("WebhookMergeGroupChecksRequestedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0664.py b/githubkit/versions/ghec_v2022_11_28/types/group_0664.py index 911e70289..5dbadc4ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0664.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0664.py @@ -9,27 +9,26 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0480 import MergeGroupType -class WebhookOrgBlockBlockedType(TypedDict): - """org_block blocked event""" +class WebhookMergeGroupDestroyedType(TypedDict): + """WebhookMergeGroupDestroyed""" - action: Literal["blocked"] - blocked_user: Union[WebhooksUserType, None] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["destroyed"] + reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + merge_group: MergeGroupType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookOrgBlockBlockedType",) +__all__ = ("WebhookMergeGroupDestroyedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0665.py b/githubkit/versions/ghec_v2022_11_28/types/group_0665.py index 4cd2c5bf2..c88f3d58e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0665.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0665.py @@ -12,24 +12,54 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookOrgBlockUnblockedType(TypedDict): - """org_block unblocked event""" +class WebhookMetaDeletedType(TypedDict): + """meta deleted event""" - action: Literal["unblocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] + hook: WebhookMetaDeletedPropHookType + hook_id: int installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookOrgBlockUnblockedType",) +class WebhookMetaDeletedPropHookType(TypedDict): + """WebhookMetaDeletedPropHook + + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ + + active: bool + config: WebhookMetaDeletedPropHookPropConfigType + created_at: str + events: list[str] + id: int + name: str + type: str + updated_at: str + + +class WebhookMetaDeletedPropHookPropConfigType(TypedDict): + """WebhookMetaDeletedPropHookPropConfig""" + + content_type: Literal["json", "form"] + insecure_ssl: str + secret: NotRequired[str] + url: str + + +__all__ = ( + "WebhookMetaDeletedPropHookPropConfigType", + "WebhookMetaDeletedPropHookType", + "WebhookMetaDeletedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0666.py b/githubkit/versions/ghec_v2022_11_28/types/group_0666.py index a60f34d23..ac0d52806 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0666.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0666.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0475 import WebhooksMembershipType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0474 import WebhooksMilestoneType -class WebhookOrganizationDeletedType(TypedDict): - """organization deleted event""" +class WebhookMilestoneClosedType(TypedDict): + """milestone closed event""" - action: Literal["deleted"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrganizationDeletedType",) +__all__ = ("WebhookMilestoneClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0667.py b/githubkit/versions/ghec_v2022_11_28/types/group_0667.py index 1c61819db..42c0369db 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0667.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0667.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0475 import WebhooksMembershipType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0481 import WebhooksMilestone3Type -class WebhookOrganizationMemberAddedType(TypedDict): - """organization member_added event""" +class WebhookMilestoneCreatedType(TypedDict): + """milestone created event""" - action: Literal["member_added"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestone3Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrganizationMemberAddedType",) +__all__ = ("WebhookMilestoneCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0668.py b/githubkit/versions/ghec_v2022_11_28/types/group_0668.py index fae847f50..a4e91f5c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0668.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0668.py @@ -9,80 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0474 import WebhooksMilestoneType -class WebhookOrganizationMemberInvitedType(TypedDict): - """organization member_invited event""" +class WebhookMilestoneDeletedType(TypedDict): + """milestone deleted event""" - action: Literal["member_invited"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - invitation: WebhookOrganizationMemberInvitedPropInvitationType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType - user: NotRequired[Union[WebhooksUserType, None]] -class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): - """WebhookOrganizationMemberInvitedPropInvitation - - The invitation for the user or email if the action is `member_invited`. - """ - - created_at: datetime - email: Union[str, None] - failed_at: Union[datetime, None] - failed_reason: Union[str, None] - id: float - invitation_teams_url: str - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] - login: Union[str, None] - node_id: str - role: str - team_count: float - invitation_source: NotRequired[str] - - -class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", - "WebhookOrganizationMemberInvitedPropInvitationType", - "WebhookOrganizationMemberInvitedType", -) +__all__ = ("WebhookMilestoneDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0669.py b/githubkit/versions/ghec_v2022_11_28/types/group_0669.py index 4bc5d26bc..6b1fa8757 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0669.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0669.py @@ -12,24 +12,60 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0475 import WebhooksMembershipType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0474 import WebhooksMilestoneType -class WebhookOrganizationMemberRemovedType(TypedDict): - """organization member_removed event""" +class WebhookMilestoneEditedType(TypedDict): + """milestone edited event""" - action: Literal["member_removed"] + action: Literal["edited"] + changes: WebhookMilestoneEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrganizationMemberRemovedType",) +class WebhookMilestoneEditedPropChangesType(TypedDict): + """WebhookMilestoneEditedPropChanges + + The changes to the milestone if the action was `edited`. + """ + + description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] + due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] + title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] + + +class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str + + +class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDueOn""" + + from_: str + + +class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str + + +__all__ = ( + "WebhookMilestoneEditedPropChangesPropDescriptionType", + "WebhookMilestoneEditedPropChangesPropDueOnType", + "WebhookMilestoneEditedPropChangesPropTitleType", + "WebhookMilestoneEditedPropChangesType", + "WebhookMilestoneEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0670.py b/githubkit/versions/ghec_v2022_11_28/types/group_0670.py index 8a298947d..0d78ba6e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0670.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0670.py @@ -12,41 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0475 import WebhooksMembershipType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0481 import WebhooksMilestone3Type -class WebhookOrganizationRenamedType(TypedDict): - """organization renamed event""" +class WebhookMilestoneOpenedType(TypedDict): + """milestone opened event""" - action: Literal["renamed"] - changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestone3Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookOrganizationRenamedPropChangesType(TypedDict): - """WebhookOrganizationRenamedPropChanges""" - - login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] - - -class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): - """WebhookOrganizationRenamedPropChangesPropLogin""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookOrganizationRenamedPropChangesPropLoginType", - "WebhookOrganizationRenamedPropChangesType", - "WebhookOrganizationRenamedType", -) +__all__ = ("WebhookMilestoneOpenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0671.py b/githubkit/versions/ghec_v2022_11_28/types/group_0671.py index fbf589490..b02c60882 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0671.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0671.py @@ -9,44 +9,27 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType -class WebhookRubygemsMetadataType(TypedDict): - """Ruby Gems metadata""" - name: NotRequired[str] - description: NotRequired[str] - readme: NotRequired[str] - homepage: NotRequired[str] - version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] - platform: NotRequired[str] - metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] - repo: NotRequired[str] - dependencies: NotRequired[list[WebhookRubygemsMetadataPropDependenciesItemsType]] - commit_oid: NotRequired[str] +class WebhookOrgBlockBlockedType(TypedDict): + """org_block blocked event""" + action: Literal["blocked"] + blocked_user: Union[WebhooksUserType, None] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): - """WebhookRubygemsMetadataPropVersionInfo""" - version: NotRequired[str] - - -WebhookRubygemsMetadataPropMetadataType: TypeAlias = dict[str, Any] -"""WebhookRubygemsMetadataPropMetadata -""" - - -WebhookRubygemsMetadataPropDependenciesItemsType: TypeAlias = dict[str, Any] -"""WebhookRubygemsMetadataPropDependenciesItems -""" - - -__all__ = ( - "WebhookRubygemsMetadataPropDependenciesItemsType", - "WebhookRubygemsMetadataPropMetadataType", - "WebhookRubygemsMetadataPropVersionInfoType", - "WebhookRubygemsMetadataType", -) +__all__ = ("WebhookOrgBlockBlockedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0672.py b/githubkit/versions/ghec_v2022_11_28/types/group_0672.py index fe7fe5eec..0600d9b0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0672.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0672.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0673 import WebhookPackagePublishedPropPackageType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType -class WebhookPackagePublishedType(TypedDict): - """package published event""" +class WebhookOrgBlockUnblockedType(TypedDict): + """org_block unblocked event""" - action: Literal["published"] + action: Literal["unblocked"] + blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackagePublishedPropPackageType + organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookPackagePublishedType",) +__all__ = ("WebhookOrgBlockUnblockedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0673.py b/githubkit/versions/ghec_v2022_11_28/types/group_0673.py index 990e5a38f..2f8ba40b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0673.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0673.py @@ -9,73 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0674 import WebhookPackagePublishedPropPackagePropPackageVersionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0482 import WebhooksMembershipType -class WebhookPackagePublishedPropPackageType(TypedDict): - """WebhookPackagePublishedPropPackage +class WebhookOrganizationDeletedType(TypedDict): + """organization deleted event""" - Information about the package. - """ + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhooksMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType - created_at: Union[str, None] - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] - package_type: str - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionType, None - ] - registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] - updated_at: Union[str, None] - -class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): - """WebhookPackagePublishedPropPackagePropRegistry""" - - about_url: str - name: str - type: str - url: str - vendor: str - - -__all__ = ( - "WebhookPackagePublishedPropPackagePropOwnerType", - "WebhookPackagePublishedPropPackagePropRegistryType", - "WebhookPackagePublishedPropPackageType", -) +__all__ = ("WebhookOrganizationDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0674.py b/githubkit/versions/ghec_v2022_11_28/types/group_0674.py index d0a9ca84a..1ce7c3429 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0674.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0674.py @@ -9,495 +9,27 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0671 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0482 import WebhooksMembershipType -class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersion""" +class WebhookOrganizationMemberAddedType(TypedDict): + """organization member_added event""" - author: NotRequired[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] - ] - body: NotRequired[ - Union[ - str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type - ] - ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, - None, - ] - ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, - None, - ] - ] - nuget_metadata: NotRequired[ - Union[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType - ], - None, - ] - ] - package_files: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str + action: Literal["member_added"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: WebhooksMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] - ] - manifest: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] - ] - tag: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: NotRequired[str] - name: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[list[str]] - - -WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( - dict[str, Any] -) -"""WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems -""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, - None, - ] - ] - bugs: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, - None, - ] - ] - dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, - None, - ] - ] - scripts: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType - ] - ] - contributors: NotRequired[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType - ] - ] - engines: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[list[str]] - files: NotRequired[list[str]] - bin_: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, - None, - ] - ] - os: NotRequired[list[str]] - cpu: NotRequired[list[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: NotRequired[Union[int, str]] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: Union[str, None] - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackagePublishedPropPackagePropPackageVersionType", -) +__all__ = ("WebhookOrganizationMemberAddedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0675.py b/githubkit/versions/ghec_v2022_11_28/types/group_0675.py index 5b45b9a69..aeae7867d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0675.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0675.py @@ -9,27 +9,80 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0676 import WebhookPackageUpdatedPropPackageType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType -class WebhookPackageUpdatedType(TypedDict): - """package updated event""" +class WebhookOrganizationMemberInvitedType(TypedDict): + """organization member_invited event""" - action: Literal["updated"] + action: Literal["member_invited"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackageUpdatedPropPackageType - repository: RepositoryWebhooksType + invitation: WebhookOrganizationMemberInvitedPropInvitationType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType + user: NotRequired[Union[WebhooksUserType, None]] -__all__ = ("WebhookPackageUpdatedType",) +class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. + """ + + created_at: datetime + email: Union[str, None] + failed_at: Union[datetime, None] + failed_reason: Union[str, None] + id: float + invitation_teams_url: str + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] + login: Union[str, None] + node_id: str + role: str + team_count: float + invitation_source: NotRequired[str] + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", + "WebhookOrganizationMemberInvitedPropInvitationType", + "WebhookOrganizationMemberInvitedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0676.py b/githubkit/versions/ghec_v2022_11_28/types/group_0676.py index 235d8362f..5897888c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0676.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0676.py @@ -9,71 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0677 import WebhookPackageUpdatedPropPackagePropPackageVersionType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0482 import WebhooksMembershipType -class WebhookPackageUpdatedPropPackageType(TypedDict): - """WebhookPackageUpdatedPropPackage +class WebhookOrganizationMemberRemovedType(TypedDict): + """organization member_removed event""" - Information about the package. - """ + action: Literal["member_removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: WebhooksMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType - created_at: str - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] - package_type: str - package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType - registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] - updated_at: str - -class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): - """WebhookPackageUpdatedPropPackagePropRegistry""" - - about_url: str - name: str - type: str - url: str - vendor: str - - -__all__ = ( - "WebhookPackageUpdatedPropPackagePropOwnerType", - "WebhookPackageUpdatedPropPackagePropRegistryType", - "WebhookPackageUpdatedPropPackageType", -) +__all__ = ("WebhookOrganizationMemberRemovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0677.py b/githubkit/versions/ghec_v2022_11_28/types/group_0677.py index 45d880080..9b8341a8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0677.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0677.py @@ -9,168 +9,44 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0671 import WebhookRubygemsMetadataType - - -class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None - ] - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[list[str]] - - -WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( - dict[str, Any] -) -"""WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems -""" +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0482 import WebhooksMembershipType + + +class WebhookOrganizationRenamedType(TypedDict): + """organization renamed event""" + + action: Literal["renamed"] + changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhooksMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + + +class WebhookOrganizationRenamedPropChangesType(TypedDict): + """WebhookOrganizationRenamedPropChanges""" + + login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] + +class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): + """WebhookOrganizationRenamedPropChangesPropLogin""" -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: str - size: int - state: str - updated_at: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + from_: NotRequired[str] __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackageUpdatedPropPackagePropPackageVersionType", + "WebhookOrganizationRenamedPropChangesPropLoginType", + "WebhookOrganizationRenamedPropChangesType", + "WebhookOrganizationRenamedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0678.py b/githubkit/versions/ghec_v2022_11_28/types/group_0678.py index 51404cc6b..fbf589490 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0678.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0678.py @@ -9,81 +9,44 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +class WebhookRubygemsMetadataType(TypedDict): + """Ruby Gems metadata""" -class WebhookPageBuildType(TypedDict): - """page_build event""" - - build: WebhookPageBuildPropBuildType - enterprise: NotRequired[EnterpriseWebhooksType] - id: int - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookPageBuildPropBuildType(TypedDict): - """WebhookPageBuildPropBuild - - The [List GitHub Pages builds](https://docs.github.com/enterprise- - cloud@latest//rest/pages/pages#list-github-pages-builds) itself. - """ + name: NotRequired[str] + description: NotRequired[str] + readme: NotRequired[str] + homepage: NotRequired[str] + version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] + platform: NotRequired[str] + metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] + repo: NotRequired[str] + dependencies: NotRequired[list[WebhookRubygemsMetadataPropDependenciesItemsType]] + commit_oid: NotRequired[str] - commit: Union[str, None] - created_at: str - duration: int - error: WebhookPageBuildPropBuildPropErrorType - pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] - status: str - updated_at: str - url: str +class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): + """WebhookRubygemsMetadataPropVersionInfo""" -class WebhookPageBuildPropBuildPropErrorType(TypedDict): - """WebhookPageBuildPropBuildPropError""" + version: NotRequired[str] - message: Union[str, None] +WebhookRubygemsMetadataPropMetadataType: TypeAlias = dict[str, Any] +"""WebhookRubygemsMetadataPropMetadata +""" -class WebhookPageBuildPropBuildPropPusherType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +WebhookRubygemsMetadataPropDependenciesItemsType: TypeAlias = dict[str, Any] +"""WebhookRubygemsMetadataPropDependenciesItems +""" __all__ = ( - "WebhookPageBuildPropBuildPropErrorType", - "WebhookPageBuildPropBuildPropPusherType", - "WebhookPageBuildPropBuildType", - "WebhookPageBuildType", + "WebhookRubygemsMetadataPropDependenciesItemsType", + "WebhookRubygemsMetadataPropMetadataType", + "WebhookRubygemsMetadataPropVersionInfoType", + "WebhookRubygemsMetadataType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0679.py b/githubkit/versions/ghec_v2022_11_28/types/group_0679.py index 09ba0a797..2662988d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0679.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0679.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0476 import PersonalAccessTokenRequestType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0680 import WebhookPackagePublishedPropPackageType -class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): - """personal_access_token_request approved event""" +class WebhookPackagePublishedType(TypedDict): + """package published event""" - action: Literal["approved"] - personal_access_token_request: PersonalAccessTokenRequestType + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackagePublishedPropPackageType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) +__all__ = ("WebhookPackagePublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0680.py b/githubkit/versions/ghec_v2022_11_28/types/group_0680.py index d87194287..fb5884b88 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0680.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0680.py @@ -9,25 +9,73 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0476 import PersonalAccessTokenRequestType +from .group_0681 import WebhookPackagePublishedPropPackagePropPackageVersionType -class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): - """personal_access_token_request cancelled event""" +class WebhookPackagePublishedPropPackageType(TypedDict): + """WebhookPackagePublishedPropPackage - action: Literal["cancelled"] - personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserType - installation: SimpleInstallationType + Information about the package. + """ + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] + package_type: str + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionType, None + ] + registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] + updated_at: Union[str, None] -__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) + +class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): + """WebhookPackagePublishedPropPackagePropRegistry""" + + about_url: str + name: str + type: str + url: str + vendor: str + + +__all__ = ( + "WebhookPackagePublishedPropPackagePropOwnerType", + "WebhookPackagePublishedPropPackagePropRegistryType", + "WebhookPackagePublishedPropPackageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0681.py b/githubkit/versions/ghec_v2022_11_28/types/group_0681.py index 76b53657c..857d90aa3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0681.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0681.py @@ -9,25 +9,495 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0476 import PersonalAccessTokenRequestType +from .group_0678 import WebhookRubygemsMetadataType -class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): - """personal_access_token_request created event""" +class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - action: Literal["created"] - personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserType - installation: NotRequired[SimpleInstallationType] + author: NotRequired[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] + ] + body: NotRequired[ + Union[ + str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, + None, + ] + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" + + labels: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType + ] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab + els + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan + ifest + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" + + digest: NotRequired[str] + name: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: NotRequired[list[str]] + + +WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( + dict[str, Any] +) +"""WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems +""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, + None, + ] + ] + bugs: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, + None, + ] + ] + dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, + None, + ] + ] + scripts: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType + ] + ] + contributors: NotRequired[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType + ] + ] + engines: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType + ] + keywords: NotRequired[list[str]] + files: NotRequired[list[str]] + bin_: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType + ] + man: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, + None, + ] + ] + os: NotRequired[list[str]] + cpu: NotRequired[list[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc + ies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend + encies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen + dencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD + ependencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor + y + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine + rsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut + orsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori + es + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" + + id: NotRequired[Union[int, str]] + name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa + lueOneof3 + """ + + url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: Union[str, None] + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackagePublishedPropPackagePropPackageVersionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0682.py b/githubkit/versions/ghec_v2022_11_28/types/group_0682.py index 070115c5c..b369aa7b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0682.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0682.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0476 import PersonalAccessTokenRequestType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0683 import WebhookPackageUpdatedPropPackageType -class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): - """personal_access_token_request denied event""" +class WebhookPackageUpdatedType(TypedDict): + """package updated event""" - action: Literal["denied"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackageUpdatedPropPackageType + repository: RepositoryWebhooksType sender: SimpleUserType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) +__all__ = ("WebhookPackageUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0683.py b/githubkit/versions/ghec_v2022_11_28/types/group_0683.py index 618a6963d..fac3901ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0683.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0683.py @@ -9,23 +9,71 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0684 import WebhookPingPropHookType +from .group_0684 import WebhookPackageUpdatedPropPackagePropPackageVersionType -class WebhookPingType(TypedDict): - """WebhookPing""" +class WebhookPackageUpdatedPropPackageType(TypedDict): + """WebhookPackageUpdatedPropPackage - hook: NotRequired[WebhookPingPropHookType] - hook_id: NotRequired[int] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - zen: NotRequired[str] + Information about the package. + """ + created_at: str + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] + package_type: str + package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType + registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] + updated_at: str -__all__ = ("WebhookPingType",) + +class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): + """WebhookPackageUpdatedPropPackagePropRegistry""" + + about_url: str + name: str + type: str + url: str + vendor: str + + +__all__ = ( + "WebhookPackageUpdatedPropPackagePropOwnerType", + "WebhookPackageUpdatedPropPackagePropRegistryType", + "WebhookPackageUpdatedPropPackageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0684.py b/githubkit/versions/ghec_v2022_11_28/types/group_0684.py index 76f1f94b0..03a5cc58e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0684.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0684.py @@ -9,45 +9,168 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0318 import HookResponseType +from .group_0678 import WebhookRubygemsMetadataType -class WebhookPingPropHookType(TypedDict): - """Webhook +class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - The webhook that is being pinged - """ + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None + ] + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): + """User""" - active: bool - app_id: NotRequired[int] - config: WebhookPingPropHookPropConfigType - created_at: datetime - deliveries_url: NotRequired[str] - events: list[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - last_response: NotRequired[HookResponseType] - name: Literal["web"] - ping_url: NotRequired[str] - test_url: NotRequired[str] - type: str - updated_at: datetime + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: NotRequired[list[str]] + + +WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( + dict[str, Any] +) +"""WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems +""" -class WebhookPingPropHookPropConfigType(TypedDict): - """WebhookPingPropHookPropConfig""" +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - content_type: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - secret: NotRequired[str] + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: str + size: int + state: str + updated_at: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookPingPropHookPropConfigType", - "WebhookPingPropHookType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackageUpdatedPropPackagePropPackageVersionType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0685.py b/githubkit/versions/ghec_v2022_11_28/types/group_0685.py index 76f44f172..438ca437d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0685.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0685.py @@ -9,16 +9,81 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPingFormEncodedType(TypedDict): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. +class WebhookPageBuildType(TypedDict): + """page_build event""" + + build: WebhookPageBuildPropBuildType + enterprise: NotRequired[EnterpriseWebhooksType] + id: int + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +class WebhookPageBuildPropBuildType(TypedDict): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/enterprise- + cloud@latest//rest/pages/pages#list-github-pages-builds) itself. """ - payload: str + commit: Union[str, None] + created_at: str + duration: int + error: WebhookPageBuildPropBuildPropErrorType + pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] + status: str + updated_at: str + url: str + + +class WebhookPageBuildPropBuildPropErrorType(TypedDict): + """WebhookPageBuildPropBuildPropError""" + + message: Union[str, None] + + +class WebhookPageBuildPropBuildPropPusherType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookPingFormEncodedType",) +__all__ = ( + "WebhookPageBuildPropBuildPropErrorType", + "WebhookPageBuildPropBuildPropPusherType", + "WebhookPageBuildPropBuildType", + "WebhookPageBuildType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0686.py b/githubkit/versions/ghec_v2022_11_28/types/group_0686.py index 5702ae93e..1c2dca1ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0686.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0686.py @@ -12,41 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0477 import WebhooksProjectCardType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0483 import PersonalAccessTokenRequestType -class WebhookProjectCardConvertedType(TypedDict): - """project_card converted event""" +class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): + """personal_access_token_request approved event""" - action: Literal["converted"] - changes: WebhookProjectCardConvertedPropChangesType + action: Literal["approved"] + personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType sender: SimpleUserType + installation: SimpleInstallationType -class WebhookProjectCardConvertedPropChangesType(TypedDict): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNoteType - - -class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str - - -__all__ = ( - "WebhookProjectCardConvertedPropChangesPropNoteType", - "WebhookProjectCardConvertedPropChangesType", - "WebhookProjectCardConvertedType", -) +__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0687.py b/githubkit/versions/ghec_v2022_11_28/types/group_0687.py index e3a907e8c..a8f8ce4aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0687.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0687.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0477 import WebhooksProjectCardType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0483 import PersonalAccessTokenRequestType -class WebhookProjectCardCreatedType(TypedDict): - """project_card created event""" +class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): + """personal_access_token_request cancelled event""" - action: Literal["created"] + action: Literal["cancelled"] + personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType sender: SimpleUserType + installation: SimpleInstallationType -__all__ = ("WebhookProjectCardCreatedType",) +__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0688.py b/githubkit/versions/ghec_v2022_11_28/types/group_0688.py index 217d464f8..1630e1dda 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0688.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0688.py @@ -9,76 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0483 import PersonalAccessTokenRequestType -class WebhookProjectCardDeletedType(TypedDict): - """project_card deleted event""" +class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): + """personal_access_token_request created event""" - action: Literal["deleted"] + action: Literal["created"] + personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardDeletedPropProjectCardType - repository: NotRequired[Union[None, RepositoryWebhooksType]] + organization: OrganizationSimpleWebhooksType sender: SimpleUserType + installation: NotRequired[SimpleInstallationType] -class WebhookProjectCardDeletedPropProjectCardType(TypedDict): - """Project Card""" - - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: Union[int, None] - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardDeletedPropProjectCardPropCreatorType", - "WebhookProjectCardDeletedPropProjectCardType", - "WebhookProjectCardDeletedType", -) +__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0689.py b/githubkit/versions/ghec_v2022_11_28/types/group_0689.py index 53b79d90e..82932a1c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0689.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0689.py @@ -9,44 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0477 import WebhooksProjectCardType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0483 import PersonalAccessTokenRequestType -class WebhookProjectCardEditedType(TypedDict): - """project_card edited event""" +class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): + """personal_access_token_request denied event""" - action: Literal["edited"] - changes: WebhookProjectCardEditedPropChangesType + action: Literal["denied"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType + installation: SimpleInstallationType -class WebhookProjectCardEditedPropChangesType(TypedDict): - """WebhookProjectCardEditedPropChanges""" - - note: WebhookProjectCardEditedPropChangesPropNoteType - - -class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardEditedPropChangesPropNote""" - - from_: Union[str, None] - - -__all__ = ( - "WebhookProjectCardEditedPropChangesPropNoteType", - "WebhookProjectCardEditedPropChangesType", - "WebhookProjectCardEditedType", -) +__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0690.py b/githubkit/versions/ghec_v2022_11_28/types/group_0690.py index 1317c1bed..80be90a06 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0690.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0690.py @@ -9,91 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0691 import WebhookPingPropHookType -class WebhookProjectCardMovedType(TypedDict): - """project_card moved event""" +class WebhookPingType(TypedDict): + """WebhookPing""" - action: Literal["moved"] - changes: NotRequired[WebhookProjectCardMovedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + hook: NotRequired[WebhookPingPropHookType] + hook_id: NotRequired[int] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardMovedPropProjectCardType repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + sender: NotRequired[SimpleUserType] + zen: NotRequired[str] -class WebhookProjectCardMovedPropChangesType(TypedDict): - """WebhookProjectCardMovedPropChanges""" - - column_id: WebhookProjectCardMovedPropChangesPropColumnIdType - - -class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int - - -class WebhookProjectCardMovedPropProjectCardType(TypedDict): - """WebhookProjectCardMovedPropProjectCard""" - - after_id: Union[Union[int, None], None] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] - id: int - node_id: str - note: Union[Union[str, None], None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardMovedPropChangesPropColumnIdType", - "WebhookProjectCardMovedPropChangesType", - "WebhookProjectCardMovedPropProjectCardMergedCreatorType", - "WebhookProjectCardMovedPropProjectCardType", - "WebhookProjectCardMovedType", -) +__all__ = ("WebhookPingType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0691.py b/githubkit/versions/ghec_v2022_11_28/types/group_0691.py index c75678d30..a5f423c52 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0691.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0691.py @@ -13,53 +13,41 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0325 import HookResponseType -class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): - """Project Card""" - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] +class WebhookPingPropHookType(TypedDict): + """Webhook + + The webhook that is being pinged + """ + + active: bool + app_id: NotRequired[int] + config: WebhookPingPropHookPropConfigType created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] + deliveries_url: NotRequired[str] + events: list[str] id: int - node_id: str - note: Union[str, None] - project_url: str + last_response: NotRequired[HookResponseType] + name: Literal["web"] + ping_url: NotRequired[str] + test_url: NotRequired[str] + type: str updated_at: datetime - url: str + url: NotRequired[str] -class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): - """User""" +class WebhookPingPropHookPropConfigType(TypedDict): + """WebhookPingPropHookPropConfig""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + content_type: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + secret: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", - "WebhookProjectCardMovedPropProjectCardAllof0Type", + "WebhookPingPropHookPropConfigType", + "WebhookPingPropHookType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0692.py b/githubkit/versions/ghec_v2022_11_28/types/group_0692.py index 8e4564103..76f44f172 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0692.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0692.py @@ -9,53 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict - - -class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1""" - - after_id: Union[int, None] - archived: NotRequired[bool] - column_id: NotRequired[int] - column_url: NotRequired[str] - created_at: NotRequired[str] - creator: NotRequired[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] - ] - id: NotRequired[int] - node_id: NotRequired[str] - note: NotRequired[Union[str, None]] - project_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - - -class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", - "WebhookProjectCardMovedPropProjectCardAllof1Type", -) +from typing_extensions import TypedDict + + +class WebhookPingFormEncodedType(TypedDict): + """WebhookPingFormEncoded + + The webhooks ping payload encoded with URL encoding. + """ + + payload: str + + +__all__ = ("WebhookPingFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0693.py b/githubkit/versions/ghec_v2022_11_28/types/group_0693.py index d7d87aa82..517aabf47 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0693.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0693.py @@ -12,24 +12,41 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0478 import WebhooksProjectType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0484 import WebhooksProjectCardType -class WebhookProjectClosedType(TypedDict): - """project closed event""" +class WebhookProjectCardConvertedType(TypedDict): + """project_card converted event""" - action: Literal["closed"] + action: Literal["converted"] + changes: WebhookProjectCardConvertedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType + project_card: WebhooksProjectCardType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectClosedType",) +class WebhookProjectCardConvertedPropChangesType(TypedDict): + """WebhookProjectCardConvertedPropChanges""" + + note: WebhookProjectCardConvertedPropChangesPropNoteType + + +class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str + + +__all__ = ( + "WebhookProjectCardConvertedPropChangesPropNoteType", + "WebhookProjectCardConvertedPropChangesType", + "WebhookProjectCardConvertedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0694.py b/githubkit/versions/ghec_v2022_11_28/types/group_0694.py index 7d28a0887..29d54a365 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0694.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0694.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0479 import WebhooksProjectColumnType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0484 import WebhooksProjectCardType -class WebhookProjectColumnCreatedType(TypedDict): - """project_column created event""" +class WebhookProjectCardCreatedType(TypedDict): + """project_card created event""" action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType + project_card: WebhooksProjectCardType repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookProjectColumnCreatedType",) +__all__ = ("WebhookProjectCardCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0695.py b/githubkit/versions/ghec_v2022_11_28/types/group_0695.py index 68d2e34d4..f4261a9fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0695.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0695.py @@ -9,27 +9,76 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0479 import WebhooksProjectColumnType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookProjectColumnDeletedType(TypedDict): - """project_column deleted event""" +class WebhookProjectCardDeletedType(TypedDict): + """project_card deleted event""" action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType + project_card: WebhookProjectCardDeletedPropProjectCardType repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookProjectColumnDeletedType",) +class WebhookProjectCardDeletedPropProjectCardType(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: Union[int, None] + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardDeletedPropProjectCardPropCreatorType", + "WebhookProjectCardDeletedPropProjectCardType", + "WebhookProjectCardDeletedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0696.py b/githubkit/versions/ghec_v2022_11_28/types/group_0696.py index 21b8cf56d..31fd30591 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0696.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0696.py @@ -9,44 +9,44 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0479 import WebhooksProjectColumnType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0484 import WebhooksProjectCardType -class WebhookProjectColumnEditedType(TypedDict): - """project_column edited event""" +class WebhookProjectCardEditedType(TypedDict): + """project_card edited event""" action: Literal["edited"] - changes: WebhookProjectColumnEditedPropChangesType + changes: WebhookProjectCardEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType + project_card: WebhooksProjectCardType repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -class WebhookProjectColumnEditedPropChangesType(TypedDict): - """WebhookProjectColumnEditedPropChanges""" +class WebhookProjectCardEditedPropChangesType(TypedDict): + """WebhookProjectCardEditedPropChanges""" - name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] + note: WebhookProjectCardEditedPropChangesPropNoteType -class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): - """WebhookProjectColumnEditedPropChangesPropName""" +class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardEditedPropChangesPropNote""" - from_: str + from_: Union[str, None] __all__ = ( - "WebhookProjectColumnEditedPropChangesPropNameType", - "WebhookProjectColumnEditedPropChangesType", - "WebhookProjectColumnEditedType", + "WebhookProjectCardEditedPropChangesPropNoteType", + "WebhookProjectCardEditedPropChangesType", + "WebhookProjectCardEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0697.py b/githubkit/versions/ghec_v2022_11_28/types/group_0697.py index 991f854d4..6edfce557 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0697.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0697.py @@ -9,27 +9,91 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0479 import WebhooksProjectColumnType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookProjectColumnMovedType(TypedDict): - """project_column moved event""" +class WebhookProjectCardMovedType(TypedDict): + """project_card moved event""" action: Literal["moved"] + changes: NotRequired[WebhookProjectCardMovedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType + project_card: WebhookProjectCardMovedPropProjectCardType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectColumnMovedType",) +class WebhookProjectCardMovedPropChangesType(TypedDict): + """WebhookProjectCardMovedPropChanges""" + + column_id: WebhookProjectCardMovedPropChangesPropColumnIdType + + +class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): + """WebhookProjectCardMovedPropChangesPropColumnId""" + + from_: int + + +class WebhookProjectCardMovedPropProjectCardType(TypedDict): + """WebhookProjectCardMovedPropProjectCard""" + + after_id: Union[Union[int, None], None] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] + id: int + node_id: str + note: Union[Union[str, None], None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedPropChangesPropColumnIdType", + "WebhookProjectCardMovedPropChangesType", + "WebhookProjectCardMovedPropProjectCardMergedCreatorType", + "WebhookProjectCardMovedPropProjectCardType", + "WebhookProjectCardMovedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0698.py b/githubkit/versions/ghec_v2022_11_28/types/group_0698.py index 3f489556b..c75678d30 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0698.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0698.py @@ -9,27 +9,57 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0478 import WebhooksProjectType +class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): + """Project Card""" -class WebhookProjectCreatedType(TypedDict): - """project created event""" + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType +class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): + """User""" -__all__ = ("WebhookProjectCreatedType",) + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", + "WebhookProjectCardMovedPropProjectCardAllof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0699.py b/githubkit/versions/ghec_v2022_11_28/types/group_0699.py index 59389a4f2..8e4564103 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0699.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0699.py @@ -9,27 +9,53 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0478 import WebhooksProjectType - -class WebhookProjectDeletedType(TypedDict): - """project deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserType] - - -__all__ = ("WebhookProjectDeletedType",) +class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1""" + + after_id: Union[int, None] + archived: NotRequired[bool] + column_id: NotRequired[int] + column_url: NotRequired[str] + created_at: NotRequired[str] + creator: NotRequired[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] + ] + id: NotRequired[int] + node_id: NotRequired[str] + note: NotRequired[Union[str, None]] + project_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", + "WebhookProjectCardMovedPropProjectCardAllof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0700.py b/githubkit/versions/ghec_v2022_11_28/types/group_0700.py index 0795d1957..613db3e59 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0700.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0700.py @@ -12,52 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0478 import WebhooksProjectType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0485 import WebhooksProjectType -class WebhookProjectEditedType(TypedDict): - """project edited event""" +class WebhookProjectClosedType(TypedDict): + """project closed event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectEditedPropChangesType] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project: WebhooksProjectType repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -class WebhookProjectEditedPropChangesType(TypedDict): - """WebhookProjectEditedPropChanges - - The changes to the project if the action was `edited`. - """ - - body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] - name: NotRequired[WebhookProjectEditedPropChangesPropNameType] - - -class WebhookProjectEditedPropChangesPropBodyType(TypedDict): - """WebhookProjectEditedPropChangesPropBody""" - - from_: str - - -class WebhookProjectEditedPropChangesPropNameType(TypedDict): - """WebhookProjectEditedPropChangesPropName""" - - from_: str - - -__all__ = ( - "WebhookProjectEditedPropChangesPropBodyType", - "WebhookProjectEditedPropChangesPropNameType", - "WebhookProjectEditedPropChangesType", - "WebhookProjectEditedType", -) +__all__ = ("WebhookProjectClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0701.py b/githubkit/versions/ghec_v2022_11_28/types/group_0701.py index 66a263aed..aac2ac55e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0701.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0701.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0478 import WebhooksProjectType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0486 import WebhooksProjectColumnType -class WebhookProjectReopenedType(TypedDict): - """project reopened event""" +class WebhookProjectColumnCreatedType(TypedDict): + """project_column created event""" - action: Literal["reopened"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType + project_column: WebhooksProjectColumnType repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectReopenedType",) +__all__ = ("WebhookProjectColumnCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0702.py b/githubkit/versions/ghec_v2022_11_28/types/group_0702.py index cf8d03358..b3a40d003 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0702.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0702.py @@ -9,23 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0480 import ProjectsV2Type +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0486 import WebhooksProjectColumnType -class WebhookProjectsV2ProjectClosedType(TypedDict): - """Projects v2 Project Closed Event""" +class WebhookProjectColumnDeletedType(TypedDict): + """project_column deleted event""" - action: Literal["closed"] + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectsV2ProjectClosedType",) +__all__ = ("WebhookProjectColumnDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0703.py b/githubkit/versions/ghec_v2022_11_28/types/group_0703.py index efbb54794..cdbfdc189 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0703.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0703.py @@ -12,23 +12,41 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0480 import ProjectsV2Type +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0486 import WebhooksProjectColumnType -class WebhookProjectsV2ProjectCreatedType(TypedDict): - """WebhookProjectsV2ProjectCreated +class WebhookProjectColumnEditedType(TypedDict): + """project_column edited event""" - A project was created - """ - - action: Literal["created"] + action: Literal["edited"] + changes: WebhookProjectColumnEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] + + +class WebhookProjectColumnEditedPropChangesType(TypedDict): + """WebhookProjectColumnEditedPropChanges""" + + name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] + + +class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str -__all__ = ("WebhookProjectsV2ProjectCreatedType",) +__all__ = ( + "WebhookProjectColumnEditedPropChangesPropNameType", + "WebhookProjectColumnEditedPropChangesType", + "WebhookProjectColumnEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0704.py b/githubkit/versions/ghec_v2022_11_28/types/group_0704.py index 958b36e95..2f5807246 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0704.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0704.py @@ -12,20 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0480 import ProjectsV2Type +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0486 import WebhooksProjectColumnType -class WebhookProjectsV2ProjectDeletedType(TypedDict): - """Projects v2 Project Deleted Event""" +class WebhookProjectColumnMovedType(TypedDict): + """project_column moved event""" - action: Literal["deleted"] + action: Literal["moved"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectDeletedType",) +__all__ = ("WebhookProjectColumnMovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0705.py b/githubkit/versions/ghec_v2022_11_28/types/group_0705.py index 04e53c081..c07be8755 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0705.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0705.py @@ -9,72 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0480 import ProjectsV2Type +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0485 import WebhooksProjectType -class WebhookProjectsV2ProjectEditedType(TypedDict): - """Projects v2 Project Edited Event""" +class WebhookProjectCreatedType(TypedDict): + """project created event""" - action: Literal["edited"] - changes: WebhookProjectsV2ProjectEditedPropChangesType + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChanges""" - - description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType - ] - public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] - short_description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType - ] - title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] - - -class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - - from_: NotRequired[bool] - to: NotRequired[bool] - - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - - from_: NotRequired[str] - to: NotRequired[str] - - -__all__ = ( - "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", - "WebhookProjectsV2ProjectEditedPropChangesType", - "WebhookProjectsV2ProjectEditedType", -) +__all__ = ("WebhookProjectCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0706.py b/githubkit/versions/ghec_v2022_11_28/types/group_0706.py index 91e3d02eb..4c45b2f38 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0706.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0706.py @@ -9,25 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0481 import WebhooksProjectChangesType -from .group_0482 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0485 import WebhooksProjectType -class WebhookProjectsV2ItemArchivedType(TypedDict): - """Projects v2 Item Archived Event""" +class WebhookProjectDeletedType(TypedDict): + """project deleted event""" - action: Literal["archived"] - changes: WebhooksProjectChangesType + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectsV2ItemArchivedType",) +__all__ = ("WebhookProjectDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0707.py b/githubkit/versions/ghec_v2022_11_28/types/group_0707.py index 1fa72a249..1b20bbc57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0707.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0707.py @@ -9,43 +9,55 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0482 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0485 import WebhooksProjectType -class WebhookProjectsV2ItemConvertedType(TypedDict): - """Projects v2 Item Converted Event""" +class WebhookProjectEditedType(TypedDict): + """project edited event""" - action: Literal["converted"] - changes: WebhookProjectsV2ItemConvertedPropChangesType + action: Literal["edited"] + changes: NotRequired[WebhookProjectEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChanges""" +class WebhookProjectEditedPropChangesType(TypedDict): + """WebhookProjectEditedPropChanges - content_type: NotRequired[ - WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType - ] + The changes to the project if the action was `edited`. + """ + body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] + name: NotRequired[WebhookProjectEditedPropChangesPropNameType] -class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - from_: NotRequired[Union[str, None]] - to: NotRequired[str] +class WebhookProjectEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectEditedPropChangesPropBody""" + + from_: str + + +class WebhookProjectEditedPropChangesPropNameType(TypedDict): + """WebhookProjectEditedPropChangesPropName""" + + from_: str __all__ = ( - "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", - "WebhookProjectsV2ItemConvertedPropChangesType", - "WebhookProjectsV2ItemConvertedType", + "WebhookProjectEditedPropChangesPropBodyType", + "WebhookProjectEditedPropChangesPropNameType", + "WebhookProjectEditedPropChangesType", + "WebhookProjectEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0708.py b/githubkit/versions/ghec_v2022_11_28/types/group_0708.py index 0996bda15..c10581a30 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0708.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0708.py @@ -12,20 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0482 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0485 import WebhooksProjectType -class WebhookProjectsV2ItemCreatedType(TypedDict): - """Projects v2 Item Created Event""" +class WebhookProjectReopenedType(TypedDict): + """project reopened event""" - action: Literal["created"] + action: Literal["reopened"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemCreatedType",) +__all__ = ("WebhookProjectReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0709.py b/githubkit/versions/ghec_v2022_11_28/types/group_0709.py index 92b9598d2..f04b67713 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0709.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0709.py @@ -12,20 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0482 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0487 import ProjectsV2Type -class WebhookProjectsV2ItemDeletedType(TypedDict): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ProjectClosedType(TypedDict): + """Projects v2 Project Closed Event""" - action: Literal["deleted"] + action: Literal["closed"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemDeletedType",) +__all__ = ("WebhookProjectsV2ProjectClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0710.py b/githubkit/versions/ghec_v2022_11_28/types/group_0710.py index 0e28dbaf9..0bc1c5d01 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0710.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0710.py @@ -9,107 +9,26 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0482 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0487 import ProjectsV2Type -class WebhookProjectsV2ItemEditedType(TypedDict): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ProjectCreatedType(TypedDict): + """WebhookProjectsV2ProjectCreated - action: Literal["edited"] - changes: NotRequired[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0Type, - WebhookProjectsV2ItemEditedPropChangesOneof1Type, - ] - ] + A project was created + """ + + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType - - -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: NotRequired[str] - field_type: NotRequired[str] - field_name: NotRequired[str] - project_number: NotRequired[int] - from_: NotRequired[ - Union[ - str, - int, - ProjectsV2SingleSelectOptionType, - ProjectsV2IterationSettingType, - None, - ] - ] - to: NotRequired[ - Union[ - str, - int, - ProjectsV2SingleSelectOptionType, - ProjectsV2IterationSettingType, - None, - ] - ] - - -class ProjectsV2SingleSelectOptionType(TypedDict): - """Projects v2 Single Select Option - - An option for a single select field - """ - - id: str - name: str - color: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - - -class ProjectsV2IterationSettingType(TypedDict): - """Projects v2 Iteration Setting - - An iteration setting for an iteration field - """ - - id: str - title: str - duration: NotRequired[Union[float, None]] - start_date: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" - - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType - - -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "ProjectsV2IterationSettingType", - "ProjectsV2SingleSelectOptionType", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", - "WebhookProjectsV2ItemEditedPropChangesOneof0Type", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", - "WebhookProjectsV2ItemEditedPropChangesOneof1Type", - "WebhookProjectsV2ItemEditedType", -) +__all__ = ("WebhookProjectsV2ProjectCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0711.py b/githubkit/versions/ghec_v2022_11_28/types/group_0711.py index 0fae0daea..5a71a68a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0711.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0711.py @@ -9,45 +9,23 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0482 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0487 import ProjectsV2Type -class WebhookProjectsV2ItemReorderedType(TypedDict): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ProjectDeletedType(TypedDict): + """Projects v2 Project Deleted Event""" - action: Literal["reordered"] - changes: WebhookProjectsV2ItemReorderedPropChangesType + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): - """WebhookProjectsV2ItemReorderedPropChanges""" - - previous_projects_v2_item_node_id: NotRequired[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType - ] - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( - TypedDict -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", - "WebhookProjectsV2ItemReorderedPropChangesType", - "WebhookProjectsV2ItemReorderedType", -) +__all__ = ("WebhookProjectsV2ProjectDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0712.py b/githubkit/versions/ghec_v2022_11_28/types/group_0712.py index a9c633c41..db5bb97a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0712.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0712.py @@ -9,25 +9,72 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0481 import WebhooksProjectChangesType -from .group_0482 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0487 import ProjectsV2Type -class WebhookProjectsV2ItemRestoredType(TypedDict): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ProjectEditedType(TypedDict): + """Projects v2 Project Edited Event""" - action: Literal["restored"] - changes: WebhooksProjectChangesType + action: Literal["edited"] + changes: WebhookProjectsV2ProjectEditedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemRestoredType",) +class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChanges""" + + description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType + ] + public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] + short_description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType + ] + title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] + + +class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" + + from_: NotRequired[bool] + to: NotRequired[bool] + + +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" + + from_: NotRequired[str] + to: NotRequired[str] + + +__all__ = ( + "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", + "WebhookProjectsV2ProjectEditedPropChangesType", + "WebhookProjectsV2ProjectEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0713.py b/githubkit/versions/ghec_v2022_11_28/types/group_0713.py index a34dd370a..32653f487 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0713.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0713.py @@ -12,20 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0480 import ProjectsV2Type +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0488 import WebhooksProjectChangesType +from .group_0489 import ProjectsV2ItemType -class WebhookProjectsV2ProjectReopenedType(TypedDict): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2ItemArchivedType(TypedDict): + """Projects v2 Item Archived Event""" - action: Literal["reopened"] + action: Literal["archived"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectReopenedType",) +__all__ = ("WebhookProjectsV2ItemArchivedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0714.py b/githubkit/versions/ghec_v2022_11_28/types/group_0714.py index 2d3f5cfd1..9e54aab90 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0714.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0714.py @@ -9,23 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0483 import ProjectsV2StatusUpdateType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0489 import ProjectsV2ItemType -class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): - """Projects v2 Status Update Created Event""" +class WebhookProjectsV2ItemConvertedType(TypedDict): + """Projects v2 Item Converted Event""" - action: Literal["created"] + action: Literal["converted"] + changes: WebhookProjectsV2ItemConvertedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) +class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChanges""" + + content_type: NotRequired[ + WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType + ] + + +class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[str] + + +__all__ = ( + "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", + "WebhookProjectsV2ItemConvertedPropChangesType", + "WebhookProjectsV2ItemConvertedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0715.py b/githubkit/versions/ghec_v2022_11_28/types/group_0715.py index dac4ed9e7..0a7cbda35 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0715.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0715.py @@ -12,20 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0483 import ProjectsV2StatusUpdateType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0489 import ProjectsV2ItemType -class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): - """Projects v2 Status Update Deleted Event""" +class WebhookProjectsV2ItemCreatedType(TypedDict): + """Projects v2 Item Created Event""" - action: Literal["deleted"] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) +__all__ = ("WebhookProjectsV2ItemCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0716.py b/githubkit/versions/ghec_v2022_11_28/types/group_0716.py index 34bde5e9d..d979c04b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0716.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0716.py @@ -9,77 +9,23 @@ from __future__ import annotations -from datetime import date -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0483 import ProjectsV2StatusUpdateType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0489 import ProjectsV2ItemType -class WebhookProjectsV2StatusUpdateEditedType(TypedDict): - """Projects v2 Status Update Edited Event""" +class WebhookProjectsV2ItemDeletedType(TypedDict): + """Projects v2 Item Deleted Event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookProjectsV2StatusUpdateEditedPropChangesType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChanges""" - - body: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType] - status: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType] - start_date: NotRequired[ - WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType - ] - target_date: NotRequired[ - WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType - ] - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" - - from_: NotRequired[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] - to: NotRequired[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" - - from_: NotRequired[Union[date, None]] - to: NotRequired[Union[date, None]] - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" - - from_: NotRequired[Union[date, None]] - to: NotRequired[Union[date, None]] - - -__all__ = ( - "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", - "WebhookProjectsV2StatusUpdateEditedPropChangesType", - "WebhookProjectsV2StatusUpdateEditedType", -) +__all__ = ("WebhookProjectsV2ItemDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0717.py b/githubkit/versions/ghec_v2022_11_28/types/group_0717.py index c4afb6d7d..6aa2b922e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0717.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0717.py @@ -9,23 +9,107 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0489 import ProjectsV2ItemType -class WebhookPublicType(TypedDict): - """public event""" +class WebhookProjectsV2ItemEditedType(TypedDict): + """Projects v2 Item Edited Event""" - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["edited"] + changes: NotRequired[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0Type, + WebhookProjectsV2ItemEditedPropChangesOneof1Type, + ] + ] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookPublicType",) +class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType + + +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" + + field_node_id: NotRequired[str] + field_type: NotRequired[str] + field_name: NotRequired[str] + project_number: NotRequired[int] + from_: NotRequired[ + Union[ + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, + None, + ] + ] + to: NotRequired[ + Union[ + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, + None, + ] + ] + + +class ProjectsV2SingleSelectOptionType(TypedDict): + """Projects v2 Single Select Option + + An option for a single select field + """ + + id: str + name: str + color: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + + +class ProjectsV2IterationSettingType(TypedDict): + """Projects v2 Iteration Setting + + An iteration setting for an iteration field + """ + + id: str + title: str + duration: NotRequired[Union[float, None]] + start_date: NotRequired[Union[str, None]] + + +class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" + + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType + + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +__all__ = ( + "ProjectsV2IterationSettingType", + "ProjectsV2SingleSelectOptionType", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", + "WebhookProjectsV2ItemEditedPropChangesOneof0Type", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", + "WebhookProjectsV2ItemEditedPropChangesOneof1Type", + "WebhookProjectsV2ItemEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0718.py b/githubkit/versions/ghec_v2022_11_28/types/group_0718.py index b7f332265..4dc47b315 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0718.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0718.py @@ -9,950 +9,45 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0457 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0489 import ProjectsV2ItemType -class WebhookPullRequestAssignedType(TypedDict): - """pull_request assigned event""" +class WebhookProjectsV2ItemReorderedType(TypedDict): + """Projects v2 Item Reordered Event""" - action: Literal["assigned"] - assignee: Union[WebhooksUserType, None] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reordered"] + changes: WebhookProjectsV2ItemReorderedPropChangesType installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAssignedPropPullRequestType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookPullRequestAssignedPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): + """WebhookProjectsV2ItemReorderedPropChanges""" - links: WebhookPullRequestAssignedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + previous_projects_v2_item_node_id: NotRequired[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestAssignedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAssignedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( TypedDict ): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestAssignedPropPullRequestPropBaseType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAssignedPropPullRequestPropHeadType", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAssignedPropPullRequestPropLinksType", - "WebhookPullRequestAssignedPropPullRequestPropMergedByType", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropUserType", - "WebhookPullRequestAssignedPropPullRequestType", - "WebhookPullRequestAssignedType", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", + "WebhookProjectsV2ItemReorderedPropChangesType", + "WebhookProjectsV2ItemReorderedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0719.py b/githubkit/versions/ghec_v2022_11_28/types/group_0719.py index d572d628b..a59d872c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0719.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0719.py @@ -9,997 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0488 import WebhooksProjectChangesType +from .group_0489 import ProjectsV2ItemType -class WebhookPullRequestAutoMergeDisabledType(TypedDict): - """pull_request auto_merge_disabled event""" +class WebhookProjectsV2ItemRestoredType(TypedDict): + """Projects v2 Item Restored Event""" - action: Literal["auto_merge_disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["restored"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType - reason: str - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_discussions: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestType", - "WebhookPullRequestAutoMergeDisabledType", -) +__all__ = ("WebhookProjectsV2ItemRestoredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0720.py b/githubkit/versions/ghec_v2022_11_28/types/group_0720.py index 368eb3d66..0c9129b9d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0720.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0720.py @@ -9,987 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0487 import ProjectsV2Type -class WebhookPullRequestAutoMergeEnabledType(TypedDict): - """pull_request auto_merge_enabled event""" +class WebhookProjectsV2ProjectReopenedType(TypedDict): + """Projects v2 Project Reopened Event""" - action: Literal["auto_merge_enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType - reason: NotRequired[str] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserType -class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestType", - "WebhookPullRequestAutoMergeEnabledType", -) +__all__ = ("WebhookProjectsV2ProjectReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0721.py b/githubkit/versions/ghec_v2022_11_28/types/group_0721.py index d2136423f..413c7e73a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0721.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0721.py @@ -12,25 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0484 import PullRequestWebhookType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0490 import ProjectsV2StatusUpdateType -class WebhookPullRequestClosedType(TypedDict): - """pull_request closed event""" +class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): + """Projects v2 Status Update Created Event""" - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -__all__ = ("WebhookPullRequestClosedType",) +__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0722.py b/githubkit/versions/ghec_v2022_11_28/types/group_0722.py index d1cd5a3f7..0eb6ed355 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0722.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0722.py @@ -12,25 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0484 import PullRequestWebhookType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0490 import ProjectsV2StatusUpdateType -class WebhookPullRequestConvertedToDraftType(TypedDict): - """pull_request converted_to_draft event""" +class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): + """Projects v2 Status Update Deleted Event""" - action: Literal["converted_to_draft"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -__all__ = ("WebhookPullRequestConvertedToDraftType",) +__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0723.py b/githubkit/versions/ghec_v2022_11_28/types/group_0723.py index 9c0fdc3b0..db29fd517 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0723.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0723.py @@ -9,28 +9,77 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0129 import MilestoneType -from .group_0444 import EnterpriseWebhooksType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0486 import WebhooksPullRequest5Type +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0490 import ProjectsV2StatusUpdateType -class WebhookPullRequestDemilestonedType(TypedDict): - """pull_request demilestoned event""" +class WebhookProjectsV2StatusUpdateEditedType(TypedDict): + """Projects v2 Status Update Edited Event""" - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + action: Literal["edited"] + changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType + sender: SimpleUserType -__all__ = ("WebhookPullRequestDemilestonedType",) +class WebhookProjectsV2StatusUpdateEditedPropChangesType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChanges""" + + body: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType] + status: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType] + start_date: NotRequired[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType + ] + target_date: NotRequired[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType + ] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" + + from_: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + to: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" + + from_: NotRequired[Union[date, None]] + to: NotRequired[Union[date, None]] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" + + from_: NotRequired[Union[date, None]] + to: NotRequired[Union[date, None]] + + +__all__ = ( + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesType", + "WebhookProjectsV2StatusUpdateEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0724.py b/githubkit/versions/ghec_v2022_11_28/types/group_0724.py index 48f798e27..1b462dc4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0724.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0724.py @@ -9,961 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPullRequestDequeuedType(TypedDict): - """pull_request dequeued event""" +class WebhookPublicType(TypedDict): + """public event""" - action: Literal["dequeued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestDequeuedPropPullRequestType - reason: Literal[ - "UNKNOWN_REMOVAL_REASON", - "MANUAL", - "MERGE", - "MERGE_CONFLICT", - "CI_FAILURE", - "CI_TIMEOUT", - "ALREADY_MERGED", - "QUEUE_CLEARED", - "ROLL_BACK", - "BRANCH_PROTECTIONS", - "GIT_TREE_INVALID", - "INVALID_MERGE_COMMIT", - ] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestDequeuedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestDequeuedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestDequeuedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropBaseType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadType", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksType", - "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropUserType", - "WebhookPullRequestDequeuedPropPullRequestType", - "WebhookPullRequestDequeuedType", -) +__all__ = ("WebhookPublicType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0725.py b/githubkit/versions/ghec_v2022_11_28/types/group_0725.py index 5235d29b2..5ff75bf95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0725.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0725.py @@ -9,79 +9,950 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0484 import PullRequestWebhookType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0464 import WebhooksUserType -class WebhookPullRequestEditedType(TypedDict): - """pull_request edited event""" +class WebhookPullRequestAssignedType(TypedDict): + """pull_request assigned event""" - action: Literal["edited"] - changes: WebhookPullRequestEditedPropChangesType + action: Literal["assigned"] + assignee: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestAssignedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -class WebhookPullRequestEditedPropChangesType(TypedDict): - """WebhookPullRequestEditedPropChanges +class WebhookPullRequestAssignedPropPullRequestType(TypedDict): + """Pull Request""" - The changes to the comment if the action was `edited`. + links: WebhookPullRequestAssignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestAssignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAssignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ - base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] - body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] - title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str -class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBody""" +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" - from_: str + href: str -class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): - """WebhookPullRequestEditedPropChangesPropTitle""" +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" - from_: str + href: str -class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBase""" +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" - ref: WebhookPullRequestEditedPropChangesPropBasePropRefType - sha: WebhookPullRequestEditedPropChangesPropBasePropShaType + href: str -class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" +class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ - from_: str + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" - from_: str + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookPullRequestEditedPropChangesPropBasePropRefType", - "WebhookPullRequestEditedPropChangesPropBasePropShaType", - "WebhookPullRequestEditedPropChangesPropBaseType", - "WebhookPullRequestEditedPropChangesPropBodyType", - "WebhookPullRequestEditedPropChangesPropTitleType", - "WebhookPullRequestEditedPropChangesType", - "WebhookPullRequestEditedType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestAssignedPropPullRequestPropBaseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropHeadType", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAssignedPropPullRequestPropLinksType", + "WebhookPullRequestAssignedPropPullRequestPropMergedByType", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropUserType", + "WebhookPullRequestAssignedPropPullRequestType", + "WebhookPullRequestAssignedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0726.py b/githubkit/versions/ghec_v2022_11_28/types/group_0726.py index 4ebeef89b..842cf369a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0726.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0726.py @@ -13,37 +13,43 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPullRequestEnqueuedType(TypedDict): - """pull_request enqueued event""" +class WebhookPullRequestAutoMergeDisabledType(TypedDict): + """pull_request auto_merge_disabled event""" - action: Literal["enqueued"] + action: Literal["auto_merge_disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestEnqueuedPropPullRequestType + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType + reason: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -55,8 +61,10 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -68,11 +76,11 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -81,22 +89,24 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -106,10 +116,10 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,7 +146,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -162,7 +174,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict) url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -171,12 +183,13 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,7 +218,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -217,7 +230,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -244,7 +257,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -254,7 +267,8 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -270,7 +284,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -292,12 +308,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -321,12 +337,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -353,48 +369,58 @@ class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + comments: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType ) - review_comments: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -402,7 +428,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -410,29 +436,35 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -459,7 +491,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -502,10 +534,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): git_url: str has_downloads: bool has_issues: bool + has_discussions: bool has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -519,7 +551,8 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -534,10 +567,11 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -571,7 +605,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -583,7 +617,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -610,10 +646,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -622,17 +660,19 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -659,7 +699,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -719,7 +759,8 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -734,10 +775,11 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -771,7 +813,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -783,7 +825,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -810,10 +854,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -822,7 +868,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -831,30 +877,30 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] @@ -870,7 +916,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -885,7 +933,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -896,10 +944,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] html_url: str @@ -915,41 +965,41 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent __all__ = ( - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestType", - "WebhookPullRequestEnqueuedType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestType", + "WebhookPullRequestAutoMergeDisabledType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0727.py b/githubkit/versions/ghec_v2022_11_28/types/group_0727.py index 95d58ba1a..9ca2e5c38 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0727.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0727.py @@ -13,39 +13,43 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0461 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPullRequestLabeledType(TypedDict): - """pull_request labeled event""" +class WebhookPullRequestAutoMergeEnabledType(TypedDict): + """pull_request auto_merge_enabled event""" - action: Literal["labeled"] + action: Literal["auto_merge_enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLabeledPropPullRequestType + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType + reason: NotRequired[str] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestLabeledPropPullRequestType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestLabeledPropPullRequestPropLinksType + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +61,10 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLabeledPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -70,11 +76,11 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestLabeledPropPullRequestPropHeadType + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +89,24 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +116,10 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] -class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -133,12 +141,14 @@ class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -160,11 +170,11 @@ class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -173,12 +183,15 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -205,7 +218,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -217,7 +230,7 @@ class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -239,12 +252,12 @@ class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -254,7 +267,8 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -270,7 +284,9 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -297,7 +313,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -326,7 +342,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0T user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -353,54 +369,62 @@ class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -408,29 +432,33 @@ class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -457,7 +485,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -517,7 +545,8 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -532,10 +561,11 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -569,7 +599,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -581,7 +611,9 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -608,10 +640,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(Type user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -620,17 +652,46 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsTyp triage: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -690,7 +751,8 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -705,10 +767,11 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -742,7 +805,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -754,7 +817,9 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -781,10 +846,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(Type user_view_type: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -793,34 +858,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsTyp triage: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -837,7 +875,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1T node_id: str parent: NotRequired[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -848,11 +886,11 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1T url: str -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent """ description: Union[str, None] @@ -868,7 +906,9 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1P url: str -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -883,7 +923,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedD node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -894,10 +934,12 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedD url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ description: Union[str, None] html_url: str @@ -913,41 +955,41 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentT __all__ = ( - "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestLabeledPropPullRequestPropBaseType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLabeledPropPullRequestPropHeadType", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLabeledPropPullRequestPropLinksType", - "WebhookPullRequestLabeledPropPullRequestPropMergedByType", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropUserType", - "WebhookPullRequestLabeledPropPullRequestType", - "WebhookPullRequestLabeledType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestType", + "WebhookPullRequestAutoMergeEnabledType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0728.py b/githubkit/versions/ghec_v2022_11_28/types/group_0728.py index aed7edc00..1991a1698 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0728.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0728.py @@ -9,937 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0491 import PullRequestWebhookType -class WebhookPullRequestLockedType(TypedDict): - """pull_request locked event""" +class WebhookPullRequestClosedType(TypedDict): + """pull_request closed event""" - action: Literal["locked"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLockedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestLockedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLockedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLockedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestLockedPropPullRequestPropAssigneeType", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestLockedPropPullRequestPropBaseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLockedPropPullRequestPropHeadType", - "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLockedPropPullRequestPropLinksType", - "WebhookPullRequestLockedPropPullRequestPropMergedByType", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLockedPropPullRequestPropMilestoneType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLockedPropPullRequestPropUserType", - "WebhookPullRequestLockedPropPullRequestType", - "WebhookPullRequestLockedType", -) +__all__ = ("WebhookPullRequestClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0729.py b/githubkit/versions/ghec_v2022_11_28/types/group_0729.py index a45b2a79e..9254b3666 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0729.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0729.py @@ -12,25 +12,25 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0129 import MilestoneType -from .group_0444 import EnterpriseWebhooksType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0486 import WebhooksPullRequest5Type +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0491 import PullRequestWebhookType -class WebhookPullRequestMilestonedType(TypedDict): - """pull_request milestoned event""" +class WebhookPullRequestConvertedToDraftType(TypedDict): + """pull_request converted_to_draft event""" - action: Literal["milestoned"] + action: Literal["converted_to_draft"] enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] + installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookPullRequestMilestonedType",) +__all__ = ("WebhookPullRequestConvertedToDraftType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0730.py b/githubkit/versions/ghec_v2022_11_28/types/group_0730.py index a9e126470..c17995b8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0730.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0730.py @@ -12,25 +12,25 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0484 import PullRequestWebhookType +from .group_0003 import SimpleUserType +from .group_0136 import MilestoneType +from .group_0451 import EnterpriseWebhooksType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0493 import WebhooksPullRequest5Type -class WebhookPullRequestOpenedType(TypedDict): - """pull_request opened event""" +class WebhookPullRequestDemilestonedType(TypedDict): + """pull_request demilestoned event""" - action: Literal["opened"] + action: Literal["demilestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + milestone: NotRequired[MilestoneType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhooksPullRequest5Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookPullRequestOpenedType",) +__all__ = ("WebhookPullRequestDemilestonedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0731.py b/githubkit/versions/ghec_v2022_11_28/types/group_0731.py index 96aceef1e..46c085433 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0731.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0731.py @@ -9,28 +9,961 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0484 import PullRequestWebhookType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPullRequestReadyForReviewType(TypedDict): - """pull_request ready_for_review event""" +class WebhookPullRequestDequeuedType(TypedDict): + """pull_request dequeued event""" - action: Literal["ready_for_review"] + action: Literal["dequeued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestDequeuedPropPullRequestType + reason: Literal[ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT", + ] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPullRequestReadyForReviewType",) +class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestDequeuedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestDequeuedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropBaseType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadType", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksType", + "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropUserType", + "WebhookPullRequestDequeuedPropPullRequestType", + "WebhookPullRequestDequeuedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0732.py b/githubkit/versions/ghec_v2022_11_28/types/group_0732.py index 094755921..6c9e9e316 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0732.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0732.py @@ -12,25 +12,76 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0484 import PullRequestWebhookType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0491 import PullRequestWebhookType -class WebhookPullRequestReopenedType(TypedDict): - """pull_request reopened event""" +class WebhookPullRequestEditedType(TypedDict): + """pull_request edited event""" - action: Literal["reopened"] + action: Literal["edited"] + changes: WebhookPullRequestEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookPullRequestReopenedType",) +class WebhookPullRequestEditedPropChangesType(TypedDict): + """WebhookPullRequestEditedPropChanges + + The changes to the comment if the action was `edited`. + """ + + base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] + body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] + title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] + + +class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): + """WebhookPullRequestEditedPropChangesPropTitle""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBase""" + + ref: WebhookPullRequestEditedPropChangesPropBasePropRefType + sha: WebhookPullRequestEditedPropChangesPropBasePropShaType + + +class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" + + from_: str + + +__all__ = ( + "WebhookPullRequestEditedPropChangesPropBasePropRefType", + "WebhookPullRequestEditedPropChangesPropBasePropShaType", + "WebhookPullRequestEditedPropChangesPropBaseType", + "WebhookPullRequestEditedPropChangesPropBodyType", + "WebhookPullRequestEditedPropChangesPropTitleType", + "WebhookPullRequestEditedPropChangesType", + "WebhookPullRequestEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0733.py b/githubkit/versions/ghec_v2022_11_28/types/group_0733.py index a45b7f80a..25e60a564 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0733.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0733.py @@ -13,159 +13,37 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPullRequestReviewCommentCreatedType(TypedDict): - """pull_request_review_comment created event""" +class WebhookPullRequestEnqueuedType(TypedDict): + """pull_request enqueued event""" - action: Literal["created"] - comment: WebhookPullRequestReviewCommentCreatedPropCommentType + action: Literal["enqueued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType + pull_request: WebhookPullRequestEnqueuedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, None] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): - """Link""" +class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): + """Pull Request""" - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType + links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -177,56 +55,61 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType + draft: bool + head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -248,14 +131,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -277,11 +158,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsTyp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -290,13 +171,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -325,9 +205,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -339,7 +217,34 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -349,8 +254,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -366,9 +270,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -395,7 +297,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -419,12 +321,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -451,58 +353,48 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDic user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -510,7 +402,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -518,37 +410,29 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -575,9 +459,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -637,8 +519,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -653,11 +534,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -691,7 +571,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -703,9 +583,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -732,12 +610,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -746,23 +622,44 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" label: str ref: str - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None - ] + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -808,7 +705,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( has_pages: bool has_projects: bool has_wiki: bool - has_discussions: NotRequired[bool] + has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -822,8 +719,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -838,11 +734,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -876,7 +771,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -888,9 +783,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -917,12 +810,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -931,36 +822,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -969,30 +831,30 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] @@ -1008,9 +870,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -1025,7 +885,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1036,12 +896,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -1057,47 +915,41 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte __all__ = ( - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", - "WebhookPullRequestReviewCommentCreatedPropCommentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestType", + "WebhookPullRequestEnqueuedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0734.py b/githubkit/versions/ghec_v2022_11_28/types/group_0734.py index b2cc9ab72..91c704873 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0734.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0734.py @@ -13,42 +13,39 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0487 import WebhooksReviewCommentType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0468 import WebhooksLabelType -class WebhookPullRequestReviewCommentDeletedType(TypedDict): - """pull_request_review_comment deleted event""" +class WebhookPullRequestLabeledType(TypedDict): + """pull_request labeled event""" - action: Literal["deleted"] - comment: WebhooksReviewCommentType + action: Literal["labeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType + pull_request: WebhookPullRequestLabeledPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" +class WebhookPullRequestLabeledPropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType + links: WebhookPullRequestLabeledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -60,56 +57,61 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLabeledPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType + draft: bool + head: WebhookPullRequestLabeledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -131,14 +133,12 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -160,11 +160,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsTyp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -173,15 +173,12 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -208,9 +205,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -222,7 +217,34 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -232,8 +254,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -249,9 +270,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -273,12 +292,12 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCrea site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -302,12 +321,12 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -334,66 +353,54 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDic user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" +class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType ) - commits: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -401,37 +408,29 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" +class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -458,9 +457,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -520,8 +517,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -536,11 +532,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -574,7 +569,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -586,9 +581,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -615,12 +608,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -629,23 +620,17 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" +class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -705,8 +690,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -721,11 +705,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -759,7 +742,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -771,9 +754,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -800,12 +781,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -814,9 +793,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -843,7 +820,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -852,30 +829,30 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent """ description: Union[str, None] @@ -891,9 +868,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -908,7 +883,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -919,12 +894,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -940,40 +913,41 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte __all__ = ( - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestType", - "WebhookPullRequestReviewCommentDeletedType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestLabeledPropPullRequestPropBaseType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLabeledPropPullRequestPropHeadType", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLabeledPropPullRequestPropLinksType", + "WebhookPullRequestLabeledPropPullRequestPropMergedByType", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropUserType", + "WebhookPullRequestLabeledPropPullRequestType", + "WebhookPullRequestLabeledType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0735.py b/githubkit/versions/ghec_v2022_11_28/types/group_0735.py index f4e24b674..dc470268d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0735.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0735.py @@ -13,44 +13,37 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0465 import WebhooksChangesType -from .group_0487 import WebhooksReviewCommentType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPullRequestReviewCommentEditedType(TypedDict): - """pull_request_review_comment edited event""" +class WebhookPullRequestLockedType(TypedDict): + """pull_request locked event""" - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksReviewCommentType + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType + pull_request: WebhookPullRequestLockedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" +class WebhookPullRequestLockedPropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType + links: WebhookPullRequestLockedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -62,56 +55,61 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLockedPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType + draft: bool + head: WebhookPullRequestLockedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -138,9 +136,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -162,12 +158,11 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -176,15 +171,12 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(Type commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -211,9 +203,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabl user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -225,7 +215,34 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -235,8 +252,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(Type closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -252,9 +268,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(Type url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -276,12 +290,12 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreat site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -305,12 +319,12 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -333,108 +347,86 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict starred_url: NotRequired[str] subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - user_view_type: NotRequired[str] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType ) - commits: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -461,9 +453,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -523,8 +513,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -539,11 +528,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -577,9 +565,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): """License""" key: str @@ -589,9 +575,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLi url: Union[str, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -618,12 +602,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOw user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -632,23 +614,17 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPe triage: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -708,8 +684,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -724,11 +699,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -762,9 +736,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): """License""" key: str @@ -774,9 +746,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLi url: Union[str, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -803,12 +773,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOw user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -817,9 +785,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPe triage: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -846,7 +812,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -855,30 +821,30 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] @@ -894,9 +860,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -911,7 +875,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -922,12 +886,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -943,40 +905,41 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem __all__ = ( - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestType", - "WebhookPullRequestReviewCommentEditedType", + "WebhookPullRequestLockedPropPullRequestPropAssigneeType", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestLockedPropPullRequestPropBaseType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLockedPropPullRequestPropHeadType", + "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLockedPropPullRequestPropLinksType", + "WebhookPullRequestLockedPropPullRequestPropMergedByType", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLockedPropPullRequestPropMilestoneType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLockedPropPullRequestPropUserType", + "WebhookPullRequestLockedPropPullRequestType", + "WebhookPullRequestLockedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0736.py b/githubkit/versions/ghec_v2022_11_28/types/group_0736.py index e865f1ca9..598f0dda7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0736.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0736.py @@ -9,1024 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0136 import MilestoneType +from .group_0451 import EnterpriseWebhooksType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0493 import WebhooksPullRequest5Type -class WebhookPullRequestReviewDismissedType(TypedDict): - """pull_request_review dismissed event""" +class WebhookPullRequestMilestonedType(TypedDict): + """pull_request milestoned event""" - action: Literal["dismissed"] + action: Literal["milestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + milestone: NotRequired[MilestoneType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewDismissedPropPullRequestType + pull_request: WebhooksPullRequest5Type repository: RepositoryWebhooksType - review: WebhookPullRequestReviewDismissedPropReviewType - sender: SimpleUserType - - -class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): - """WebhookPullRequestReviewDismissedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: Literal["dismissed", "approved", "changes_requested"] - submitted_at: datetime - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksType", - "WebhookPullRequestReviewDismissedPropReviewPropUserType", - "WebhookPullRequestReviewDismissedPropReviewType", - "WebhookPullRequestReviewDismissedType", -) +__all__ = ("WebhookPullRequestMilestonedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0737.py b/githubkit/versions/ghec_v2022_11_28/types/group_0737.py index 50439ea5a..50e33858d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0737.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0737.py @@ -9,918 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0488 import WebhooksReviewType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0491 import PullRequestWebhookType -class WebhookPullRequestReviewEditedType(TypedDict): - """pull_request_review edited event""" +class WebhookPullRequestOpenedType(TypedDict): + """pull_request opened event""" - action: Literal["edited"] - changes: WebhookPullRequestReviewEditedPropChangesType + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewEditedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - review: WebhooksReviewType sender: SimpleUserType -class WebhookPullRequestReviewEditedPropChangesType(TypedDict): - """WebhookPullRequestReviewEditedPropChanges""" - - body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] - - -class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str - - -class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewEditedPropChangesPropBodyType", - "WebhookPullRequestReviewEditedPropChangesType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestType", - "WebhookPullRequestReviewEditedType", -) +__all__ = ("WebhookPullRequestOpenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0738.py b/githubkit/versions/ghec_v2022_11_28/types/group_0738.py index 432009fd0..c85300bc0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0738.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0738.py @@ -9,1068 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0491 import PullRequestWebhookType -class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestReadyForReviewType(TypedDict): + """pull_request ready_for_review event""" - action: Literal["review_request_removed"] + action: Literal["ready_for_review"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None - ] sender: SimpleUserType -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, - None, - ] - assignees: list[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, - None, - ] - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, - None, - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, - None, - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType - ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestRemovedOneof0Type", -) +__all__ = ("WebhookPullRequestReadyForReviewType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0739.py b/githubkit/versions/ghec_v2022_11_28/types/group_0739.py index 3e7108ff3..ea46c1e57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0739.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0739.py @@ -9,1084 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0491 import PullRequestWebhookType -class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReopenedType(TypedDict): + """pull_request reopened event""" - action: Literal["review_request_removed"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, - None, - ] - assignees: list[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, - None, - ] - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, - None, - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, - None, - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType - ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestRemovedOneof1Type", -) +__all__ = ("WebhookPullRequestReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0740.py b/githubkit/versions/ghec_v2022_11_28/types/group_0740.py index 18475470c..47bc792c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0740.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0740.py @@ -13,30 +13,88 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReviewCommentCreatedType(TypedDict): + """pull_request_review_comment created event""" - action: Literal["review_requested"] + action: Literal["created"] + comment: WebhookPullRequestReviewCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None - ] sender: SimpleUserType -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: Union[int, None] + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, None] + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -58,25 +116,54 @@ class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType + +class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -90,71 +177,56 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -181,7 +253,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -207,12 +279,9 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsTy subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -221,13 +290,13 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -256,7 +325,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -270,36 +339,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -309,7 +349,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -326,7 +366,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -355,7 +395,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCre user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -379,12 +419,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -411,26 +451,26 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -438,7 +478,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -446,7 +486,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -454,7 +494,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlTyp href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -462,7 +502,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueTy href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -470,7 +510,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -478,7 +518,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -486,7 +526,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfTyp href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -494,19 +534,19 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -535,7 +575,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -597,7 +637,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -613,11 +653,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -651,7 +691,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -663,7 +703,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -692,11 +732,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool @@ -706,48 +746,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -795,7 +808,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool + has_discussions: NotRequired[bool] homepage: Union[str, None] hooks_url: str html_url: str @@ -809,7 +822,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -825,11 +838,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -863,7 +876,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -875,7 +888,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -904,11 +917,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool @@ -918,7 +931,36 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -935,7 +977,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -946,11 +988,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -966,7 +1008,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -983,7 +1025,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -994,11 +1036,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -1015,42 +1057,47 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt __all__ = ( - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestedOneof0Type", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", + "WebhookPullRequestReviewCommentCreatedPropCommentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0741.py b/githubkit/versions/ghec_v2022_11_28/types/group_0741.py index 6ff409ea6..e26a8dd42 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0741.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0741.py @@ -13,82 +13,40 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0494 import WebhooksReviewCommentType -class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewCommentDeletedType(TypedDict): + """pull_request_review_comment deleted event""" - action: Literal["review_requested"] + action: Literal["deleted"] + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str +class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -102,71 +60,56 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -188,12 +131,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(Typ site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -217,14 +160,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsTy site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -233,13 +173,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -268,7 +208,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -282,36 +222,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -321,7 +232,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -338,7 +249,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -362,12 +273,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -396,7 +307,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -423,26 +334,26 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -450,7 +361,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -458,7 +369,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -466,7 +377,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlTyp href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -474,7 +385,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueTy href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -482,7 +393,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -490,7 +401,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -498,7 +409,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfTyp href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -506,19 +417,19 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -547,7 +458,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -609,7 +520,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -625,11 +536,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -663,7 +574,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -675,7 +586,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -704,11 +615,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool @@ -718,48 +629,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -821,7 +705,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -837,11 +721,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -875,7 +759,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -887,7 +771,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -916,11 +800,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool @@ -930,7 +814,36 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -947,7 +860,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -958,11 +871,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -978,7 +891,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -995,7 +908,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1006,11 +919,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -1027,43 +940,40 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt __all__ = ( - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestedOneof1Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestType", + "WebhookPullRequestReviewCommentDeletedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0742.py b/githubkit/versions/ghec_v2022_11_28/types/group_0742.py index 7476ee1cb..f3cfb603c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0742.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0742.py @@ -13,40 +13,43 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0488 import WebhooksReviewType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0472 import WebhooksChangesType +from .group_0494 import WebhooksReviewCommentType -class WebhookPullRequestReviewSubmittedType(TypedDict): - """pull_request_review submitted event""" +class WebhookPullRequestReviewCommentEditedType(TypedDict): + """pull_request_review_comment edited event""" - action: Literal["submitted"] + action: Literal["edited"] + changes: WebhooksChangesType + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType repository: RepositoryWebhooksType - review: WebhooksReviewType sender: SimpleUserType -class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, + None, ] ] author_association: Literal[ @@ -59,40 +62,44 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str commits_url: str created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType + ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -101,10 +108,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -126,12 +133,14 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -153,11 +162,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(Typ site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -166,13 +176,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDic commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -201,7 +211,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -213,7 +225,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedD url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -223,7 +235,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -240,7 +252,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -269,7 +281,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorTy user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -293,12 +305,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -321,28 +333,30 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): starred_url: NotRequired[str] subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] user_view_type: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType ) - review_comments: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -350,7 +364,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -358,19 +372,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -378,7 +396,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -386,13 +404,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -400,19 +420,21 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -439,7 +461,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -499,7 +523,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -515,11 +539,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -553,7 +577,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -565,7 +589,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -594,10 +618,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons + """ admin: bool maintain: NotRequired[bool] @@ -606,21 +632,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -680,7 +708,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -696,11 +724,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -734,7 +762,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -746,7 +774,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -775,10 +803,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons + """ admin: bool maintain: NotRequired[bool] @@ -787,7 +817,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -814,7 +846,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -823,30 +855,30 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] @@ -862,7 +894,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -879,7 +911,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -890,11 +922,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] @@ -911,40 +943,40 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro __all__ = ( - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestType", - "WebhookPullRequestReviewSubmittedType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestType", + "WebhookPullRequestReviewCommentEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0743.py b/githubkit/versions/ghec_v2022_11_28/types/group_0743.py index f7c67ab02..a399defbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0743.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0743.py @@ -13,40 +13,117 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPullRequestReviewThreadResolvedType(TypedDict): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewDismissedType(TypedDict): + """pull_request_review dismissed event""" - action: Literal["resolved"] + action: Literal["dismissed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + pull_request: WebhookPullRequestReviewDismissedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - thread: WebhookPullRequestReviewThreadResolvedPropThreadType + review: WebhookPullRequestReviewDismissedPropReviewType + sender: SimpleUserType -class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): + """WebhookPullRequestReviewDismissedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewDismissedPropReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: Literal["dismissed", "approved", "changes_requested"] + submitted_at: datetime + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] + + +class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" + + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): """Simple Pull Request""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None ] ] author_association: Literal[ @@ -60,9 +137,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -70,31 +147,29 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -103,10 +178,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -128,14 +203,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -157,11 +230,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsTyp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -170,13 +243,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,9 +278,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -219,7 +290,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -229,7 +300,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -246,7 +317,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -275,7 +346,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -304,7 +375,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -331,26 +402,24 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDic user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -358,7 +427,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -366,23 +435,19 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsT href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -390,7 +455,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -398,15 +463,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -414,21 +477,19 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -455,9 +516,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -517,10 +576,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -531,11 +592,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -544,6 +605,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -558,13 +623,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -576,7 +642,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -605,12 +671,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -619,23 +683,21 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -695,10 +757,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -709,11 +773,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -722,6 +786,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -736,13 +804,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -754,7 +823,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -783,12 +852,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -797,9 +864,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -826,7 +891,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -843,7 +908,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -854,11 +919,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] @@ -874,7 +939,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -891,7 +956,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -902,11 +967,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] @@ -922,189 +987,46 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str -class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: ( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - __all__ = ( - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadResolvedPropThreadType", - "WebhookPullRequestReviewThreadResolvedType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksType", + "WebhookPullRequestReviewDismissedPropReviewPropUserType", + "WebhookPullRequestReviewDismissedPropReviewType", + "WebhookPullRequestReviewDismissedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0744.py b/githubkit/versions/ghec_v2022_11_28/types/group_0744.py index b6cc5d8c1..d8df68207 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0744.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0744.py @@ -13,41 +13,50 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0495 import WebhooksReviewType -class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestReviewEditedType(TypedDict): + """pull_request_review edited event""" - action: Literal["unresolved"] + action: Literal["edited"] + changes: WebhookPullRequestReviewEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + pull_request: WebhookPullRequestReviewEditedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType + review: WebhooksReviewType + sender: SimpleUserType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewEditedPropChangesType(TypedDict): + """WebhookPullRequestReviewEditedPropChanges""" + + body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] + + +class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): """Simple Pull Request""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None - ] + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -60,9 +69,9 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -70,31 +79,29 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType + head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -103,14 +110,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -132,14 +135,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -161,28 +162,26 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsT site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. """ commit_message: Union[str, None] - commit_title: str + commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,9 +210,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -225,9 +222,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -237,8 +232,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -254,7 +248,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -278,12 +272,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCr site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -307,12 +301,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -334,63 +328,53 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedD site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType ) - commits: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -398,7 +382,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -406,38 +390,29 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, - None, - ] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -464,9 +439,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -512,7 +485,6 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -526,7 +498,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -540,11 +512,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -570,10 +541,9 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,7 +555,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -614,12 +584,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions - """ + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -628,51 +596,17 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -718,7 +652,6 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -732,7 +665,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -746,11 +679,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -776,10 +708,9 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -791,7 +722,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -820,12 +751,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions - """ + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -834,7 +763,34 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -843,30 +799,30 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] @@ -882,7 +838,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -899,7 +855,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -910,12 +866,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent - """ + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -930,191 +884,43 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: str -class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( - TypedDict -): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: ( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - __all__ = ( - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadType", - "WebhookPullRequestReviewThreadUnresolvedType", + "WebhookPullRequestReviewEditedPropChangesPropBodyType", + "WebhookPullRequestReviewEditedPropChangesType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestType", + "WebhookPullRequestReviewEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0745.py b/githubkit/versions/ghec_v2022_11_28/types/group_0745.py index 5cfa5a9da..f64c08ae6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0745.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0745.py @@ -13,39 +13,73 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPullRequestSynchronizeType(TypedDict): - """pull_request synchronize event""" +class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["synchronize"] - after: str - before: str + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestSynchronizePropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType repository: RepositoryWebhooksType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None + ] sender: SimpleUserType -class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, + None, + ] assignees: list[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -58,9 +92,10 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, + None, ] - base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +107,13 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,10 +122,14 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, + None, + ] ] milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, + None, ] node_id: str number: int @@ -96,13 +137,13 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -112,10 +153,14 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None + ] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -137,12 +182,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -164,11 +211,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDi site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -177,12 +227,13 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,7 +262,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -223,7 +276,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict) url: str -class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -250,7 +305,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -260,7 +317,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -276,7 +334,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -300,12 +358,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -329,12 +387,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -356,53 +416,63 @@ class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType ) - review_comments: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -410,7 +480,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -418,29 +488,42 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsTyp href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType + ) sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, + None, + ] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -467,7 +550,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -527,7 +612,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -543,10 +628,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -580,7 +666,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -592,7 +678,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -621,10 +707,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -633,17 +721,26 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType + ) sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, + None, + ] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -670,7 +767,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -730,7 +829,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -746,10 +845,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -783,7 +883,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -795,7 +895,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -824,10 +924,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -836,7 +938,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -853,7 +955,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -864,11 +966,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -884,7 +986,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -893,29 +995,31 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] html_url: str @@ -931,41 +1035,42 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropPar __all__ = ( - "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropBaseType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadType", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksType", - "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropUserType", - "WebhookPullRequestSynchronizePropPullRequestType", - "WebhookPullRequestSynchronizeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestRemovedOneof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0746.py b/githubkit/versions/ghec_v2022_11_28/types/group_0746.py index 4f0e192f8..b8f7eef52 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0746.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0746.py @@ -13,39 +13,88 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0469 import WebhooksUserMannequinType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPullRequestUnassignedType(TypedDict): - """pull_request unassigned event""" +class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof1""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnassignedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType + sender: SimpleUserType -class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, + None, + ] assignees: list[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -58,9 +107,10 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, + None, ] - base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +122,13 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,22 +137,28 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, + None, + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, + None, ] - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -110,10 +168,14 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None + ] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -135,12 +197,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -162,11 +226,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDic site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -175,12 +242,13 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -209,7 +277,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -221,7 +291,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -243,12 +315,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -258,7 +332,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -274,7 +349,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -298,12 +373,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -327,12 +402,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -354,53 +431,63 @@ class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType ) - review_comments: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -408,7 +495,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -416,29 +503,42 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" - label: Union[str, None] + label: str ref: str - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType + ) sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, + None, + ] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -465,7 +565,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict) user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -525,7 +627,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -540,10 +643,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -577,7 +681,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -589,7 +693,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -618,10 +722,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -630,17 +736,55 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType + ) sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, + None, + ] + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -700,7 +844,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -715,10 +860,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -752,7 +898,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -764,7 +910,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -793,10 +939,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -805,34 +953,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -849,7 +970,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -860,11 +981,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -880,36 +1001,40 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] html_url: str @@ -925,41 +1050,43 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropPare __all__ = ( - "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropBaseType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadType", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksType", - "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropUserType", - "WebhookPullRequestUnassignedPropPullRequestType", - "WebhookPullRequestUnassignedType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestRemovedOneof1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0747.py b/githubkit/versions/ghec_v2022_11_28/types/group_0747.py index 6baf0b987..b9d86b30a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0747.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0747.py @@ -13,39 +13,72 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0461 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPullRequestUnlabeledType(TypedDict): - """pull_request unlabeled event""" +class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["unlabeled"] + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlabeledPropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType repository: RepositoryWebhooksType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None + ] sender: SimpleUserType -class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +90,10 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -70,11 +105,13 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +120,26 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +149,12 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None + ] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -138,7 +181,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -162,9 +207,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -173,12 +221,13 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -207,7 +256,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -219,7 +270,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -246,7 +297,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -256,7 +309,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -272,7 +326,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -299,7 +355,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -323,12 +379,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -355,48 +411,58 @@ class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType ) - review_comments: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + commits: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -404,7 +470,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -412,29 +478,37 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -461,7 +535,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -521,7 +597,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -536,10 +613,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -573,7 +651,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,7 +663,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -614,10 +692,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -626,17 +706,50 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -696,7 +809,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -711,10 +825,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -748,7 +863,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -760,7 +875,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -789,10 +904,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -801,34 +918,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -845,7 +935,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -856,11 +946,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] @@ -876,7 +966,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -891,7 +983,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(Type node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -902,10 +994,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(Type url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] html_url: str @@ -921,41 +1015,42 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParen __all__ = ( - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestType", - "WebhookPullRequestUnlabeledType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestedOneof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0748.py b/githubkit/versions/ghec_v2022_11_28/types/group_0748.py index f2a948fe3..92708c475 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0748.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0748.py @@ -13,37 +13,84 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookPullRequestUnlockedType(TypedDict): - """pull_request unlocked event""" +class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof1""" - action: Literal["unlocked"] + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlockedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType repository: RepositoryWebhooksType + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -55,8 +102,10 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -68,11 +117,13 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -81,22 +132,26 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -106,10 +161,12 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None + ] -class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -131,12 +188,14 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -158,25 +217,29 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict) site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. """ commit_message: Union[str, None] - commit_title: str + commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,7 +268,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -217,7 +282,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -244,7 +309,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -254,7 +321,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -270,7 +338,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -292,12 +362,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -326,7 +396,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -348,53 +418,63 @@ class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType ) - review_comments: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + commits: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -402,7 +482,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -410,29 +490,37 @@ class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -459,7 +547,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -519,7 +609,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -534,10 +625,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -571,7 +663,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -583,7 +675,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -610,10 +704,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -622,17 +718,50 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" label: str ref: str - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + ] + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -692,7 +821,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -707,10 +837,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -744,7 +875,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -756,7 +887,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -783,10 +916,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -795,34 +930,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -839,7 +947,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -850,11 +958,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] @@ -870,7 +978,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -885,7 +995,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -896,10 +1006,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] html_url: str @@ -915,41 +1027,43 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent __all__ = ( - "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropBaseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadType", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksType", - "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropUserType", - "WebhookPullRequestUnlockedPropPullRequestType", - "WebhookPullRequestUnlockedType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestedOneof1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0749.py b/githubkit/versions/ghec_v2022_11_28/types/group_0749.py index d172ffef1..20b6c0615 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0749.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0749.py @@ -10,129 +10,436 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0495 import WebhooksReviewType -class WebhookPushType(TypedDict): - """push event""" +class WebhookPullRequestReviewSubmittedType(TypedDict): + """pull_request_review submitted event""" - after: str - base_ref: Union[str, None] - before: str - commits: list[WebhookPushPropCommitsItemsType] - compare: str - created: bool - deleted: bool + action: Literal["submitted"] enterprise: NotRequired[EnterpriseWebhooksType] - forced: bool - head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher: WebhookPushPropPusherType - ref: str - repository: WebhookPushPropRepositoryType - sender: NotRequired[SimpleUserType] - - -class WebhookPushPropHeadCommitType(TypedDict): - """Commit""" - - added: NotRequired[list[str]] - author: WebhookPushPropHeadCommitPropAuthorType - committer: WebhookPushPropHeadCommitPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[list[str]] - removed: NotRequired[list[str]] - timestamp: datetime - tree_id: str + pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + repository: RepositoryWebhooksType + review: WebhooksReviewType + sender: SimpleUserType + + +class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + ] + assignees: list[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str url: str + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] -class WebhookPushPropHeadCommitPropAuthorType(TypedDict): - """Committer +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" -class WebhookPushPropHeadCommitPropCommitterType(TypedDict): - """Committer + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] - Metaproperties for Git author/committer information. - """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + The status of auto merging a pull request. + """ -class WebhookPushPropPusherType(TypedDict): - """Committer + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] - Metaproperties for Git author/committer information. - """ - date: NotRequired[datetime] +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsType(TypedDict): - """Commit""" - - added: NotRequired[list[str]] - author: WebhookPushPropCommitsItemsPropAuthorType - committer: WebhookPushPropCommitsItemsPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[list[str]] - removed: NotRequired[list[str]] - timestamp: datetime - tree_id: str + node_id: str url: str -class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): - """Committer +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): + """Milestone - Metaproperties for Git author/committer information. + A collection of related issues and pull requests. """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): - """Committer +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str -class WebhookPushPropRepositoryType(TypedDict): + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -157,7 +464,6 @@ class WebhookPushPropRepositoryType(TypedDict): contents_url: str contributors_url: str created_at: Union[int, datetime] - custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] default_branch: str delete_branch_on_merge: NotRequired[bool] deployments_url: str @@ -192,8 +498,13 @@ class WebhookPushPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookPushPropRepositoryPropLicenseType, None] + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -203,8 +514,13 @@ class WebhookPushPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookPushPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + ] private: bool public: NotRequired[bool] pulls_url: str @@ -212,6 +528,10 @@ class WebhookPushPropRepositoryType(TypedDict): releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -226,22 +546,197 @@ class WebhookPushPropRepositoryType(TypedDict): trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -WebhookPushPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookPushPropRepositoryPropCustomProperties +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookPushPropRepositoryPropLicenseType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): """License""" key: str @@ -251,7 +746,9 @@ class WebhookPushPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookPushPropRepositoryPropOwnerType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -278,8 +775,10 @@ class WebhookPushPropRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookPushPropRepositoryPropPermissionsType(TypedDict): - """WebhookPushPropRepositoryPropPermissions""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -288,18 +787,164 @@ class WebhookPushPropRepositoryPropPermissionsType(TypedDict): triage: NotRequired[bool] +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookPushPropCommitsItemsPropAuthorType", - "WebhookPushPropCommitsItemsPropCommitterType", - "WebhookPushPropCommitsItemsType", - "WebhookPushPropHeadCommitPropAuthorType", - "WebhookPushPropHeadCommitPropCommitterType", - "WebhookPushPropHeadCommitType", - "WebhookPushPropPusherType", - "WebhookPushPropRepositoryPropCustomPropertiesType", - "WebhookPushPropRepositoryPropLicenseType", - "WebhookPushPropRepositoryPropOwnerType", - "WebhookPushPropRepositoryPropPermissionsType", - "WebhookPushPropRepositoryType", - "WebhookPushType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestType", + "WebhookPullRequestReviewSubmittedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0750.py b/githubkit/versions/ghec_v2022_11_28/types/group_0750.py index d9ca1417e..5d754afc6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0750.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0750.py @@ -9,27 +9,1102 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0751 import WebhookRegistryPackagePublishedPropRegistryPackageType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRegistryPackagePublishedType(TypedDict): - """WebhookRegistryPackagePublished""" +class WebhookPullRequestReviewThreadResolvedType(TypedDict): + """pull_request_review_thread resolved event""" - action: Literal["published"] + action: Literal["resolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] + thread: WebhookPullRequestReviewThreadResolvedPropThreadType -__all__ = ("WebhookRegistryPackagePublishedType",) +class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + ] + assignees: list[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType + ] + node_id: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: ( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: Union[int, None] + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +__all__ = ( + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadResolvedPropThreadType", + "WebhookPullRequestReviewThreadResolvedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0751.py b/githubkit/versions/ghec_v2022_11_28/types/group_0751.py index b459835e3..257e8dcd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0751.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0751.py @@ -9,71 +9,1112 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0752 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, -) +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): + """pull_request_review_thread unresolved event""" - created_at: Union[str, None] - description: Union[str, None] - ecosystem: str + action: Literal["unresolved"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] + thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None + ] + assignees: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType html_url: str id: int + issue_url: str + labels: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str - namespace: str - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType - package_type: str - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + node_id: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + None, ] - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + None, ] - updated_at: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" - avatar_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType + ] + node_id: str - about_url: NotRequired[str] + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( + TypedDict +): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: ( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - type: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - vendor: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", - "WebhookRegistryPackagePublishedPropRegistryPackageType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadType", + "WebhookPullRequestReviewThreadUnresolvedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0752.py b/githubkit/versions/ghec_v2022_11_28/types/group_0752.py index 369599ddf..ef380081a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0752.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0752.py @@ -9,479 +9,809 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0671 import WebhookRubygemsMetadataType - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType + + +class WebhookPullRequestSynchronizeType(TypedDict): + """pull_request synchronize event""" + + action: Literal["synchronize"] + after: str + before: str + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestSynchronizePropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserType + + +class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - body: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType - ] + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None ] - draft: NotRequired[bool] + base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestSynchronizePropPullRequestPropHeadType html_url: str id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + issue_url: str + labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, - None, - ] + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None ] - nuget_metadata: NotRequired[ + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ Union[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType - ], + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] - package_files: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + requested_teams: list[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" +class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): + """User""" - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - tags: NotRequired[list[str]] +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): + """Label""" -WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ - str, Any -] -"""WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata -Items -""" + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ +class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, - None, - ] - ] - bugs: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, - None, - ] - ] - dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, - None, - ] - ] - scripts: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[list[str]] - contributors: NotRequired[list[str]] - engines: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[list[str]] - files: NotRequired[list[str]] - bin_: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, - None, - ] - ] - os: NotRequired[list[str]] - cpu: NotRequired[list[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 +class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ +class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): + """User""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ +class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str - content_type: str - created_at: str - download_url: str + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository """ - labels: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + None, ] - manifest: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType ] - tag: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ - + """License""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ + """User""" - digest: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems - """ + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" - id: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, - int, - None, - ] - ] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ +class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + """License""" - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - ] - created_at: NotRequired[str] - draft: NotRequired[bool] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - prerelease: NotRequired[bool] - published_at: NotRequired[str] - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - url: NotRequired[str] + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -489,39 +819,153 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropBaseType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadType", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksType", + "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropUserType", + "WebhookPullRequestSynchronizePropPullRequestType", + "WebhookPullRequestSynchronizeType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0753.py b/githubkit/versions/ghec_v2022_11_28/types/group_0753.py index 690f75f72..fd768fea1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0753.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0753.py @@ -9,27 +9,957 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0754 import WebhookRegistryPackageUpdatedPropRegistryPackageType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0476 import WebhooksUserMannequinType -class WebhookRegistryPackageUpdatedType(TypedDict): - """WebhookRegistryPackageUpdated""" +class WebhookPullRequestUnassignedType(TypedDict): + """pull_request unassigned event""" - action: Literal["updated"] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + pull_request: WebhookPullRequestUnassignedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRegistryPackageUpdatedType",) +class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] + ref: str + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropBaseType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadType", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksType", + "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropUserType", + "WebhookPullRequestUnassignedPropPullRequestType", + "WebhookPullRequestUnassignedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0754.py b/githubkit/versions/ghec_v2022_11_28/types/group_0754.py index 956374b8d..52a53286a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0754.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0754.py @@ -9,65 +9,953 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0755 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, -) +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0468 import WebhooksLabelType + + +class WebhookPullRequestUnlabeledType(TypedDict): + """pull_request unlabeled event""" + + action: Literal["unlabeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnlabeledPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" +class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): + """Pull Request""" - created_at: str - description: None - ecosystem: str + links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType html_url: str id: int + issue_url: str + labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str - namespace: str - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType - package_type: str - package_version: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType - ) - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None + node_id: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None ] - updated_at: str + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" - avatar_url: str + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", - "WebhookRegistryPackageUpdatedPropRegistryPackageType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestType", + "WebhookPullRequestUnlabeledType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0755.py b/githubkit/versions/ghec_v2022_11_28/types/group_0755.py index 445e4584c..a71c9d256 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0755.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0755.py @@ -9,172 +9,947 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0671 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" +class WebhookPullRequestUnlockedType(TypedDict): + """pull_request unlocked event""" - author: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType - ) - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - list[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, - None, - ] + action: Literal["unlocked"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnlockedPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserType + + +class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] - draft: NotRequired[bool] + requested_teams: list[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - package_files: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] - avatar_url: str + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - login: str + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" - tags: NotRequired[list[str]] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] -WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ - str, Any -] -"""WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt -ems -""" +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems + """Team + + Groups of organization members that gives permissions on specified repositories. """ - content_type: NotRequired[str] - created_at: NotRequired[str] - download_url: NotRequired[str] - id: NotRequired[int] - md5: NotRequired[Union[str, None]] - name: NotRequired[str] - sha1: NotRequired[Union[str, None]] - sha256: NotRequired[str] - size: NotRequired[int] - state: NotRequired[str] - updated_at: NotRequired[str] + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - created_at: str - draft: bool + description: Union[str, None] html_url: str id: int + members_url: str name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str url: str -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + description: Union[str, None] html_url: str id: int - login: str + members_url: str + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str url: str - user_view_type: NotRequired[str] __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropBaseType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadType", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksType", + "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropUserType", + "WebhookPullRequestUnlockedPropPullRequestType", + "WebhookPullRequestUnlockedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0756.py b/githubkit/versions/ghec_v2022_11_28/types/group_0756.py index 3980cc429..6ac979f55 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0756.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0756.py @@ -9,27 +9,297 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0489 import WebhooksReleaseType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType -class WebhookReleaseCreatedType(TypedDict): - """release created event""" +class WebhookPushType(TypedDict): + """push event""" - action: Literal["created"] + after: str + base_ref: Union[str, None] + before: str + commits: list[WebhookPushPropCommitsItemsType] + compare: str + created: bool + deleted: bool enterprise: NotRequired[EnterpriseWebhooksType] + forced: bool + head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: SimpleUserType + pusher: WebhookPushPropPusherType + ref: str + repository: WebhookPushPropRepositoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookReleaseCreatedType",) +class WebhookPushPropHeadCommitType(TypedDict): + """Commit""" + + added: NotRequired[list[str]] + author: WebhookPushPropHeadCommitPropAuthorType + committer: WebhookPushPropHeadCommitPropCommitterType + distinct: bool + id: str + message: str + modified: NotRequired[list[str]] + removed: NotRequired[list[str]] + timestamp: datetime + tree_id: str + url: str + + +class WebhookPushPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropHeadCommitPropCommitterType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropPusherType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: NotRequired[Union[str, None]] + name: str + username: NotRequired[str] + + +class WebhookPushPropCommitsItemsType(TypedDict): + """Commit""" + + added: NotRequired[list[str]] + author: WebhookPushPropCommitsItemsPropAuthorType + committer: WebhookPushPropCommitsItemsPropCommitterType + distinct: bool + id: str + message: str + modified: NotRequired[list[str]] + removed: NotRequired[list[str]] + timestamp: datetime + tree_id: str + url: str + + +class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookPushPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookPushPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookPushPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookPushPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookPushPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPushPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPushPropRepositoryPropPermissionsType(TypedDict): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookPushPropCommitsItemsPropAuthorType", + "WebhookPushPropCommitsItemsPropCommitterType", + "WebhookPushPropCommitsItemsType", + "WebhookPushPropHeadCommitPropAuthorType", + "WebhookPushPropHeadCommitPropCommitterType", + "WebhookPushPropHeadCommitType", + "WebhookPushPropPusherType", + "WebhookPushPropRepositoryPropCustomPropertiesType", + "WebhookPushPropRepositoryPropLicenseType", + "WebhookPushPropRepositoryPropOwnerType", + "WebhookPushPropRepositoryPropPermissionsType", + "WebhookPushPropRepositoryType", + "WebhookPushType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0757.py b/githubkit/versions/ghec_v2022_11_28/types/group_0757.py index 06f06a003..f86788a34 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0757.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0757.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0489 import WebhooksReleaseType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0758 import WebhookRegistryPackagePublishedPropRegistryPackageType -class WebhookReleaseDeletedType(TypedDict): - """release deleted event""" +class WebhookRegistryPackagePublishedType(TypedDict): + """WebhookRegistryPackagePublished""" - action: Literal["deleted"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType + registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookReleaseDeletedType",) +__all__ = ("WebhookRegistryPackagePublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0758.py b/githubkit/versions/ghec_v2022_11_28/types/group_0758.py index 7bd45855b..d584e6795 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0758.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0758.py @@ -9,60 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0489 import WebhooksReleaseType - - -class WebhookReleaseEditedType(TypedDict): - """release edited event""" - - action: Literal["edited"] - changes: WebhookReleaseEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - - -class WebhookReleaseEditedPropChangesType(TypedDict): - """WebhookReleaseEditedPropChanges""" - - body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] - name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] - make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] - - -class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str - +from .group_0759 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, +) -class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - to: bool +class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackage""" + + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType + package_type: str + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + ] + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + ] + updated_at: Union[str, None] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: NotRequired[str] + name: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + vendor: NotRequired[str] __all__ = ( - "WebhookReleaseEditedPropChangesPropBodyType", - "WebhookReleaseEditedPropChangesPropMakeLatestType", - "WebhookReleaseEditedPropChangesPropNameType", - "WebhookReleaseEditedPropChangesType", - "WebhookReleaseEditedType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", + "WebhookRegistryPackagePublishedPropRegistryPackageType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0759.py b/githubkit/versions/ghec_v2022_11_28/types/group_0759.py index 47aac075b..0e7d5aee4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0759.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0759.py @@ -9,122 +9,479 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0678 import WebhookRubygemsMetadataType -class WebhookReleasePrereleasedType(TypedDict): - """release prereleased event""" - - action: Literal["prereleased"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleasePrereleasedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType + ] + body: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -class WebhookReleasePrereleasedPropReleaseType(TypedDict): - """Release - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" - assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] - assets_url: str - author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str html_url: str id: int - name: Union[str, None] + login: str node_id: str - prerelease: Literal[True] - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str url: str - zipball_url: Union[str, None] + user_view_type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ -class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset + tags: NotRequired[list[str]] - Data related to a release. + +WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ + str, Any +] +"""WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata +Items +""" + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, + None, + ] + ] + bugs: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, + None, + ] + ] + dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, + None, + ] + ] + scripts: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[list[str]] + contributors: NotRequired[list[str]] + engines: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType + ] + keywords: NotRequired[list[str]] + files: NotRequired[list[str]] + bin_: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType + ] + man: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, + None, + ] + ] + os: NotRequired[list[str]] + cpu: NotRequired[list[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems """ - browser_download_url: str content_type: str - created_at: datetime - download_count: int + created_at: str + download_url: str id: int - label: Union[str, None] + md5: Union[str, None] name: str - node_id: str + sha1: Union[str, None] + sha256: Union[str, None] size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + state: Union[str, None] + updated_at: str + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ + + labels: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType ] - url: str -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, + int, + None, + ] + ] + name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] -class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): - """User""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + ] + created_at: NotRequired[str] + draft: NotRequired[bool] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + prerelease: NotRequired[bool] + published_at: NotRequired[str] + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + url: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -132,31 +489,39 @@ class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - __all__ = ( - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", - "WebhookReleasePrereleasedPropReleasePropAuthorType", - "WebhookReleasePrereleasedPropReleasePropReactionsType", - "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0760.py b/githubkit/versions/ghec_v2022_11_28/types/group_0760.py index 0a9ea1877..41767afc6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0760.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0760.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0490 import WebhooksRelease1Type +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0761 import WebhookRegistryPackageUpdatedPropRegistryPackageType -class WebhookReleasePublishedType(TypedDict): - """release published event""" +class WebhookRegistryPackageUpdatedType(TypedDict): + """WebhookRegistryPackageUpdated""" - action: Literal["published"] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -__all__ = ("WebhookReleasePublishedType",) +__all__ = ("WebhookRegistryPackageUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0761.py b/githubkit/versions/ghec_v2022_11_28/types/group_0761.py index cfd136fc3..99af82dd9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0761.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0761.py @@ -9,27 +9,65 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0489 import WebhooksReleaseType +from .group_0762 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, +) -class WebhookReleaseReleasedType(TypedDict): - """release released event""" +class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" - action: Literal["released"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + created_at: str + description: None + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType + package_type: str + package_version: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType + ) + registry: Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None + ] + updated_at: str -__all__ = ("WebhookReleaseReleasedType",) +class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" + + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", + "WebhookRegistryPackageUpdatedPropRegistryPackageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0762.py b/githubkit/versions/ghec_v2022_11_28/types/group_0762.py index a18f4bfe9..4d67b25d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0762.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0762.py @@ -9,27 +9,172 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0490 import WebhooksRelease1Type +from .group_0678 import WebhookRubygemsMetadataType -class WebhookReleaseUnpublishedType(TypedDict): - """release unpublished event""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - action: Literal["unpublished"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + author: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType + ) + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + list[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, + None, + ] + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -__all__ = ("WebhookReleaseUnpublishedType",) +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + + tags: NotRequired[list[str]] + + +WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ + str, Any +] +"""WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt +ems +""" + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil + esItems + """ + + content_type: NotRequired[str] + created_at: NotRequired[str] + download_url: NotRequired[str] + id: NotRequired[int] + md5: NotRequired[Union[str, None]] + name: NotRequired[str] + sha1: NotRequired[Union[str, None]] + sha256: NotRequired[str] + size: NotRequired[int] + state: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + created_at: str + draft: bool + html_url: str + id: int + name: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro + pAuthor + """ + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0763.py b/githubkit/versions/ghec_v2022_11_28/types/group_0763.py index 3fa10b341..77c238b5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0763.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0763.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0197 import RepositoryAdvisoryType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0496 import WebhooksReleaseType -class WebhookRepositoryAdvisoryPublishedType(TypedDict): - """Repository advisory published event""" +class WebhookReleaseCreatedType(TypedDict): + """release created event""" - action: Literal["published"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookRepositoryAdvisoryPublishedType",) +__all__ = ("WebhookReleaseCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0764.py b/githubkit/versions/ghec_v2022_11_28/types/group_0764.py index c787b1f47..7cc833faa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0764.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0764.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0197 import RepositoryAdvisoryType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0496 import WebhooksReleaseType -class WebhookRepositoryAdvisoryReportedType(TypedDict): - """Repository advisory reported event""" +class WebhookReleaseDeletedType(TypedDict): + """release deleted event""" - action: Literal["reported"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookRepositoryAdvisoryReportedType",) +__all__ = ("WebhookReleaseDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0765.py b/githubkit/versions/ghec_v2022_11_28/types/group_0765.py index 0b521adec..f8d033851 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0765.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0765.py @@ -12,22 +12,57 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0496 import WebhooksReleaseType -class WebhookRepositoryArchivedType(TypedDict): - """repository archived event""" +class WebhookReleaseEditedType(TypedDict): + """release edited event""" - action: Literal["archived"] + action: Literal["edited"] + changes: WebhookReleaseEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryArchivedType",) +class WebhookReleaseEditedPropChangesType(TypedDict): + """WebhookReleaseEditedPropChanges""" + + body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] + name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] + make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] + + +class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool + + +__all__ = ( + "WebhookReleaseEditedPropChangesPropBodyType", + "WebhookReleaseEditedPropChangesPropMakeLatestType", + "WebhookReleaseEditedPropChangesPropNameType", + "WebhookReleaseEditedPropChangesType", + "WebhookReleaseEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0766.py b/githubkit/versions/ghec_v2022_11_28/types/group_0766.py index 2fd9b3e34..4d62fcd1d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0766.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0766.py @@ -9,25 +9,154 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryCreatedType(TypedDict): - """repository created event""" +class WebhookReleasePrereleasedType(TypedDict): + """release prereleased event""" - action: Literal["created"] + action: Literal["prereleased"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleasePrereleasedPropReleaseType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryCreatedType",) +class WebhookReleasePrereleasedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] + assets_url: str + author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: Literal[True] + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +__all__ = ( + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", + "WebhookReleasePrereleasedPropReleaseType", + "WebhookReleasePrereleasedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0767.py b/githubkit/versions/ghec_v2022_11_28/types/group_0767.py index eeec16872..d2c941a95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0767.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0767.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0497 import WebhooksRelease1Type -class WebhookRepositoryDeletedType(TypedDict): - """repository deleted event""" +class WebhookReleasePublishedType(TypedDict): + """release published event""" - action: Literal["deleted"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksRelease1Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryDeletedType",) +__all__ = ("WebhookReleasePublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0768.py b/githubkit/versions/ghec_v2022_11_28/types/group_0768.py index 7f5552f54..3d5fcaff4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0768.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0768.py @@ -9,38 +9,27 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0496 import WebhooksReleaseType -class WebhookRepositoryDispatchSampleType(TypedDict): - """repository_dispatch event""" +class WebhookReleaseReleasedType(TypedDict): + """release released event""" - action: str - branch: str - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] + action: Literal["released"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -WebhookRepositoryDispatchSamplePropClientPayloadType: TypeAlias = dict[str, Any] -"""WebhookRepositoryDispatchSamplePropClientPayload - -The `client_payload` that was specified in the `POST -/repos/{owner}/{repo}/dispatches` request body. -""" - - -__all__ = ( - "WebhookRepositoryDispatchSamplePropClientPayloadType", - "WebhookRepositoryDispatchSampleType", -) +__all__ = ("WebhookReleaseReleasedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0769.py b/githubkit/versions/ghec_v2022_11_28/types/group_0769.py index 31b096135..f0ebb5b2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0769.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0769.py @@ -9,66 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0497 import WebhooksRelease1Type -class WebhookRepositoryEditedType(TypedDict): - """repository edited event""" +class WebhookReleaseUnpublishedType(TypedDict): + """release unpublished event""" - action: Literal["edited"] - changes: WebhookRepositoryEditedPropChangesType + action: Literal["unpublished"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksRelease1Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -class WebhookRepositoryEditedPropChangesType(TypedDict): - """WebhookRepositoryEditedPropChanges""" - - default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] - description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] - homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] - topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] - - -class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str - - -class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] - - -class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] - - -class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: NotRequired[Union[list[str], None]] - - -__all__ = ( - "WebhookRepositoryEditedPropChangesPropDefaultBranchType", - "WebhookRepositoryEditedPropChangesPropDescriptionType", - "WebhookRepositoryEditedPropChangesPropHomepageType", - "WebhookRepositoryEditedPropChangesPropTopicsType", - "WebhookRepositoryEditedPropChangesType", - "WebhookRepositoryEditedType", -) +__all__ = ("WebhookReleaseUnpublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0770.py b/githubkit/versions/ghec_v2022_11_28/types/group_0770.py index f0f302a60..b9f98e2e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0770.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0770.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0204 import RepositoryAdvisoryType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryImportType(TypedDict): - """repository_import event""" +class WebhookRepositoryAdvisoryPublishedType(TypedDict): + """Repository advisory published event""" + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType - status: Literal["success", "cancelled", "failure"] + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryImportType",) +__all__ = ("WebhookRepositoryAdvisoryPublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0771.py b/githubkit/versions/ghec_v2022_11_28/types/group_0771.py index 3f94293db..fe291ea4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0771.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0771.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0204 import RepositoryAdvisoryType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryPrivatizedType(TypedDict): - """repository privatized event""" +class WebhookRepositoryAdvisoryReportedType(TypedDict): + """Repository advisory reported event""" - action: Literal["privatized"] + action: Literal["reported"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryPrivatizedType",) +__all__ = ("WebhookRepositoryAdvisoryReportedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0772.py b/githubkit/versions/ghec_v2022_11_28/types/group_0772.py index 2d095d0b7..8dc83c03e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0772.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0772.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryPublicizedType(TypedDict): - """repository publicized event""" +class WebhookRepositoryArchivedType(TypedDict): + """repository archived event""" - action: Literal["publicized"] + action: Literal["archived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryPublicizedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryPublicizedType",) +__all__ = ("WebhookRepositoryArchivedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0773.py b/githubkit/versions/ghec_v2022_11_28/types/group_0773.py index 3032751b2..0d76889bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0773.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0773.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryRenamedType(TypedDict): - """repository renamed event""" +class WebhookRepositoryCreatedType(TypedDict): + """repository created event""" - action: Literal["renamed"] - changes: WebhookRepositoryRenamedPropChangesType + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -31,27 +30,4 @@ class WebhookRepositoryRenamedType(TypedDict): sender: SimpleUserType -class WebhookRepositoryRenamedPropChangesType(TypedDict): - """WebhookRepositoryRenamedPropChanges""" - - repository: WebhookRepositoryRenamedPropChangesPropRepositoryType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str - - -__all__ = ( - "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", - "WebhookRepositoryRenamedPropChangesPropRepositoryType", - "WebhookRepositoryRenamedPropChangesType", - "WebhookRepositoryRenamedType", -) +__all__ = ("WebhookRepositoryCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0774.py b/githubkit/versions/ghec_v2022_11_28/types/group_0774.py index 132be53cd..4ad92acd7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0774.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0774.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0121 import RepositoryRulesetType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryRulesetCreatedType(TypedDict): - """repository ruleset created event""" +class WebhookRepositoryDeletedType(TypedDict): + """repository deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetCreatedType",) +__all__ = ("WebhookRepositoryDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0775.py b/githubkit/versions/ghec_v2022_11_28/types/group_0775.py index 62bb5e297..96890a8de 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0775.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0775.py @@ -9,27 +9,38 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0121 import RepositoryRulesetType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryRulesetDeletedType(TypedDict): - """repository ruleset deleted event""" +class WebhookRepositoryDispatchSampleType(TypedDict): + """repository_dispatch event""" - action: Literal["deleted"] + action: str + branch: str + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + installation: SimpleInstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetDeletedType",) +WebhookRepositoryDispatchSamplePropClientPayloadType: TypeAlias = dict[str, Any] +"""WebhookRepositoryDispatchSamplePropClientPayload + +The `client_payload` that was specified in the `POST +/repos/{owner}/{repo}/dispatches` request body. +""" + + +__all__ = ( + "WebhookRepositoryDispatchSamplePropClientPayloadType", + "WebhookRepositoryDispatchSampleType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0776.py b/githubkit/versions/ghec_v2022_11_28/types/group_0776.py index 302826d34..b58df0f31 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0776.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0776.py @@ -9,29 +9,66 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0121 import RepositoryRulesetType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0777 import WebhookRepositoryRulesetEditedPropChangesType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedType(TypedDict): - """repository ruleset edited event""" +class WebhookRepositoryEditedType(TypedDict): + """repository edited event""" action: Literal["edited"] + changes: WebhookRepositoryEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetEditedType",) +class WebhookRepositoryEditedPropChangesType(TypedDict): + """WebhookRepositoryEditedPropChanges""" + + default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] + description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] + homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] + topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] + + +class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + + from_: str + + +class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDescription""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: NotRequired[Union[list[str], None]] + + +__all__ = ( + "WebhookRepositoryEditedPropChangesPropDefaultBranchType", + "WebhookRepositoryEditedPropChangesPropDescriptionType", + "WebhookRepositoryEditedPropChangesPropHomepageType", + "WebhookRepositoryEditedPropChangesPropTopicsType", + "WebhookRepositoryEditedPropChangesType", + "WebhookRepositoryEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0777.py b/githubkit/versions/ghec_v2022_11_28/types/group_0777.py index 1fe13633e..46d1f6cbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0777.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0777.py @@ -9,37 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0778 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType -from .group_0780 import WebhookRepositoryRulesetEditedPropChangesPropRulesType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryImportType(TypedDict): + """repository_import event""" - name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] - enforcement: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropEnforcementType - ] - conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] - rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + status: Literal["success", "cancelled", "failure"] -class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", - "WebhookRepositoryRulesetEditedPropChangesPropNameType", - "WebhookRepositoryRulesetEditedPropChangesType", -) +__all__ = ("WebhookRepositoryImportType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0778.py b/githubkit/versions/ghec_v2022_11_28/types/group_0778.py index 105b7c649..2faefe527 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0778.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0778.py @@ -9,24 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0077 import RepositoryRulesetConditionsType -from .group_0779 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, -) +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" +class WebhookRepositoryPrivatizedType(TypedDict): + """repository privatized event""" - added: NotRequired[list[RepositoryRulesetConditionsType]] - deleted: NotRequired[list[RepositoryRulesetConditionsType]] - updated: NotRequired[ - list[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType - ] - ] + action: Literal["privatized"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) +__all__ = ("WebhookRepositoryPrivatizedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0779.py b/githubkit/versions/ghec_v2022_11_28/types/group_0779.py index 211a10a29..a40d10d13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0779.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0779.py @@ -9,88 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0077 import RepositoryRulesetConditionsType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class WebhookRepositoryPublicizedType(TypedDict): + """repository publicized event""" - condition: NotRequired[RepositoryRulesetConditionsType] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType - ] + action: Literal["publicized"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType - ] - target: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType - ] - include: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType - ] - exclude: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: NotRequired[list[str]] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: NotRequired[list[str]] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", -) +__all__ = ("WebhookRepositoryPublicizedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0780.py b/githubkit/versions/ghec_v2022_11_28/types/group_0780.py index 7570fc678..3ff76bfbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0780.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0780.py @@ -9,99 +9,49 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0087 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0088 import RepositoryRuleUpdateType -from .group_0090 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0091 import RepositoryRuleMergeQueueType -from .group_0093 import RepositoryRuleRequiredDeploymentsType -from .group_0096 import RepositoryRulePullRequestType -from .group_0098 import RepositoryRuleRequiredStatusChecksType -from .group_0100 import RepositoryRuleCommitMessagePatternType -from .group_0102 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0104 import RepositoryRuleCommitterEmailPatternType -from .group_0106 import RepositoryRuleBranchNamePatternType -from .group_0108 import RepositoryRuleTagNamePatternType -from .group_0111 import RepositoryRuleWorkflowsType -from .group_0113 import RepositoryRuleCodeScanningType -from .group_0115 import RepositoryRuleOneof18Type -from .group_0781 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, -) +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType + + +class WebhookRepositoryRenamedType(TypedDict): + """repository renamed event""" + + action: Literal["renamed"] + changes: WebhookRepositoryRenamedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +class WebhookRepositoryRenamedPropChangesType(TypedDict): + """WebhookRepositoryRenamedPropChanges""" + repository: WebhookRepositoryRenamedPropChangesPropRepositoryType -class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" - - added: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - deleted: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - updated: NotRequired[ - list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] - ] - - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) + +class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepository""" + + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType + + +class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" + + from_: str + + +__all__ = ( + "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", + "WebhookRepositoryRenamedPropChangesPropRepositoryType", + "WebhookRepositoryRenamedPropChangesType", + "WebhookRepositoryRenamedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0781.py b/githubkit/versions/ghec_v2022_11_28/types/group_0781.py index bb9ee7d36..775f0ad99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0781.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0781.py @@ -9,119 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0087 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0088 import RepositoryRuleUpdateType -from .group_0090 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0091 import RepositoryRuleMergeQueueType -from .group_0093 import RepositoryRuleRequiredDeploymentsType -from .group_0096 import RepositoryRulePullRequestType -from .group_0098 import RepositoryRuleRequiredStatusChecksType -from .group_0100 import RepositoryRuleCommitMessagePatternType -from .group_0102 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0104 import RepositoryRuleCommitterEmailPatternType -from .group_0106 import RepositoryRuleBranchNamePatternType -from .group_0108 import RepositoryRuleTagNamePatternType -from .group_0111 import RepositoryRuleWorkflowsType -from .group_0113 import RepositoryRuleCodeScanningType -from .group_0115 import RepositoryRuleOneof18Type +from .group_0003 import SimpleUserType +from .group_0128 import RepositoryRulesetType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" +class WebhookRepositoryRulesetCreatedType(TypedDict): + """repository ruleset created event""" - rule: NotRequired[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType - ] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType - ] - rule_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType - ] - pattern: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", -) +__all__ = ("WebhookRepositoryRulesetCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0782.py b/githubkit/versions/ghec_v2022_11_28/types/group_0782.py index d3b0a1697..354c436c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0782.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0782.py @@ -9,105 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0128 import RepositoryRulesetType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookRepositoryTransferredType(TypedDict): - """repository transferred event""" +class WebhookRepositoryRulesetDeletedType(TypedDict): + """repository ruleset deleted event""" - action: Literal["transferred"] - changes: WebhookRepositoryTransferredPropChangesType + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType sender: SimpleUserType -class WebhookRepositoryTransferredPropChangesType(TypedDict): - """WebhookRepositoryTransferredPropChanges""" - - owner: WebhookRepositoryTransferredPropChangesPropOwnerType - - -class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): - """WebhookRepositoryTransferredPropChangesPropOwner""" - - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - - organization: NotRequired[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType - ] - user: NotRequired[ - Union[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None - ] - ] - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( - TypedDict -): - """Organization""" - - avatar_url: str - description: Union[str, None] - events_url: str - hooks_url: str - html_url: NotRequired[str] - id: int - issues_url: str - login: str - members_url: str - node_id: str - public_members_url: str - repos_url: str - url: str - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", - "WebhookRepositoryTransferredPropChangesPropOwnerType", - "WebhookRepositoryTransferredPropChangesType", - "WebhookRepositoryTransferredType", -) +__all__ = ("WebhookRepositoryRulesetDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0783.py b/githubkit/versions/ghec_v2022_11_28/types/group_0783.py index e5eb5d705..c9520ac28 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0783.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0783.py @@ -12,22 +12,26 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0128 import RepositoryRulesetType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0784 import WebhookRepositoryRulesetEditedPropChangesType -class WebhookRepositoryUnarchivedType(TypedDict): - """repository unarchived event""" +class WebhookRepositoryRulesetEditedType(TypedDict): + """repository ruleset edited event""" - action: Literal["unarchived"] + action: Literal["edited"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] sender: SimpleUserType -__all__ = ("WebhookRepositoryUnarchivedType",) +__all__ = ("WebhookRepositoryRulesetEditedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0784.py b/githubkit/versions/ghec_v2022_11_28/types/group_0784.py index 97f2fdd29..7c8bac513 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0784.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0784.py @@ -9,27 +9,37 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0491 import WebhooksAlertType +from .group_0785 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType +from .group_0787 import WebhookRepositoryRulesetEditedPropChangesPropRulesType -class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): - """repository_vulnerability_alert create event""" +class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["create"] - alert: WebhooksAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] + enforcement: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropEnforcementType + ] + conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] + rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] -__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) +class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropName""" + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" + + from_: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", + "WebhookRepositoryRulesetEditedPropChangesPropNameType", + "WebhookRepositoryRulesetEditedPropChangesType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0785.py b/githubkit/versions/ghec_v2022_11_28/types/group_0785.py index f58ee9a30..2ed731dd6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0785.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0785.py @@ -9,86 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType - - -class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): - """repository_vulnerability_alert dismiss event""" - - action: Literal["dismiss"] - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - +from .group_0084 import RepositoryRulesetConditionsType +from .group_0786 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, +) -class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): - """Repository Vulnerability Alert Alert - The security alert of the vulnerable dependency. - """ +class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - affected_package_name: str - affected_range: str - created_at: str - dismiss_comment: NotRequired[Union[str, None]] - dismiss_reason: str - dismissed_at: str - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, None + added: NotRequired[list[RepositoryRulesetConditionsType]] + deleted: NotRequired[list[RepositoryRulesetConditionsType]] + updated: NotRequired[ + list[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType + ] ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["dismissed"] -class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", - "WebhookRepositoryVulnerabilityAlertDismissType", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0786.py b/githubkit/versions/ghec_v2022_11_28/types/group_0786.py index 5758fc0f7..cfa296610 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0786.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0786.py @@ -9,27 +9,88 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0491 import WebhooksAlertType +from .group_0084 import RepositoryRulesetConditionsType -class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): - """repository_vulnerability_alert reopen event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - action: Literal["reopen"] - alert: WebhooksAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + condition: NotRequired[RepositoryRulesetConditionsType] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType + ] -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ + + condition_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType + ] + target: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType + ] + include: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType + ] + exclude: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: NotRequired[list[str]] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: NotRequired[list[str]] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0787.py b/githubkit/versions/ghec_v2022_11_28/types/group_0787.py index a34ffd4cd..70f03c4f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0787.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0787.py @@ -9,86 +9,99 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType - - -class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): - """repository_vulnerability_alert resolve event""" - - action: Literal["resolve"] - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): - """Repository Vulnerability Alert Alert +from .group_0094 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0095 import RepositoryRuleUpdateType +from .group_0097 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0098 import RepositoryRuleMergeQueueType +from .group_0100 import RepositoryRuleRequiredDeploymentsType +from .group_0103 import RepositoryRulePullRequestType +from .group_0105 import RepositoryRuleRequiredStatusChecksType +from .group_0107 import RepositoryRuleCommitMessagePatternType +from .group_0109 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0111 import RepositoryRuleCommitterEmailPatternType +from .group_0113 import RepositoryRuleBranchNamePatternType +from .group_0115 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRuleCodeScanningType +from .group_0122 import RepositoryRuleOneof18Type +from .group_0788 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, +) - The security alert of the vulnerable dependency. - """ - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None +class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] ] ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["fixed", "open"] - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + deleted: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + updated: NotRequired[ + list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] + ] -__all__ = ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", - "WebhookRepositoryVulnerabilityAlertResolveType", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0788.py b/githubkit/versions/ghec_v2022_11_28/types/group_0788.py index a3b2be057..aae40fe97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0788.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0788.py @@ -9,27 +9,119 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0492 import SecretScanningAlertWebhookType +from .group_0094 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0095 import RepositoryRuleUpdateType +from .group_0097 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0098 import RepositoryRuleMergeQueueType +from .group_0100 import RepositoryRuleRequiredDeploymentsType +from .group_0103 import RepositoryRulePullRequestType +from .group_0105 import RepositoryRuleRequiredStatusChecksType +from .group_0107 import RepositoryRuleCommitMessagePatternType +from .group_0109 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0111 import RepositoryRuleCommitterEmailPatternType +from .group_0113 import RepositoryRuleBranchNamePatternType +from .group_0115 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRuleCodeScanningType +from .group_0122 import RepositoryRuleOneof18Type -class WebhookSecretScanningAlertCreatedType(TypedDict): - """secret_scanning_alert created event""" +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - action: Literal["created"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + rule: NotRequired[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType + ] -__all__ = ("WebhookSecretScanningAlertCreatedType",) +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType + ] + rule_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType + ] + pattern: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ + + from_: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0789.py b/githubkit/versions/ghec_v2022_11_28/types/group_0789.py index 92fe675f4..a799e57eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0789.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0789.py @@ -12,225 +12,102 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0492 import SecretScanningAlertWebhookType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookSecretScanningAlertLocationCreatedType(TypedDict): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryTransferredType(TypedDict): + """repository transferred event""" - action: Literal["created"] - alert: SecretScanningAlertWebhookType + action: Literal["transferred"] + changes: WebhookRepositoryTransferredPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class SecretScanningLocationType(TypedDict): - """SecretScanningLocation""" - - type: NotRequired[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] - details: NotRequired[ - Union[ - SecretScanningLocationCommitType, - SecretScanningLocationWikiCommitType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationIssueCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationPullRequestTitleType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestCommentType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationPullRequestReviewCommentType, - ] - ] - - -class SecretScanningLocationCommitType(TypedDict): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - blob_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationWikiCommitType(TypedDict): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - page_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationIssueTitleType(TypedDict): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str - - -class SecretScanningLocationIssueBodyType(TypedDict): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str - - -class SecretScanningLocationIssueCommentType(TypedDict): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str - +class WebhookRepositoryTransferredPropChangesType(TypedDict): + """WebhookRepositoryTransferredPropChanges""" -class SecretScanningLocationDiscussionTitleType(TypedDict): - """SecretScanningLocationDiscussionTitle + owner: WebhookRepositoryTransferredPropChangesPropOwnerType - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - discussion_title_url: str +class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwner""" + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType -class SecretScanningLocationDiscussionBodyType(TypedDict): - """SecretScanningLocationDiscussionBody - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - discussion_body_url: str - - -class SecretScanningLocationDiscussionCommentType(TypedDict): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str - - -class SecretScanningLocationPullRequestTitleType(TypedDict): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str - - -class SecretScanningLocationPullRequestBodyType(TypedDict): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str - - -class SecretScanningLocationPullRequestCommentType(TypedDict): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str - - -class SecretScanningLocationPullRequestReviewType(TypedDict): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str - - -class SecretScanningLocationPullRequestReviewCommentType(TypedDict): - """SecretScanningLocationPullRequestReviewComment + organization: NotRequired[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType + ] + user: NotRequired[ + Union[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None + ] + ] - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. - """ - pull_request_review_comment_url: str +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( + TypedDict +): + """Organization""" + + avatar_url: str + description: Union[str, None] + events_url: str + hooks_url: str + html_url: NotRequired[str] + id: int + issues_url: str + login: str + members_url: str + node_id: str + public_members_url: str + repos_url: str + url: str + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "SecretScanningLocationCommitType", - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestCommentType", - "SecretScanningLocationPullRequestReviewCommentType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationPullRequestTitleType", - "SecretScanningLocationType", - "SecretScanningLocationWikiCommitType", - "WebhookSecretScanningAlertLocationCreatedType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", + "WebhookRepositoryTransferredPropChangesPropOwnerType", + "WebhookRepositoryTransferredPropChangesType", + "WebhookRepositoryTransferredType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0790.py b/githubkit/versions/ghec_v2022_11_28/types/group_0790.py index 4c3c84e39..a41d00e14 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0790.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0790.py @@ -9,13 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): - """Secret Scanning Alert Location Created Event""" - payload: str +class WebhookRepositoryUnarchivedType(TypedDict): + """repository unarchived event""" + action: Literal["unarchived"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) + +__all__ = ("WebhookRepositoryUnarchivedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0791.py b/githubkit/versions/ghec_v2022_11_28/types/group_0791.py index 1f1279434..c6ec85be2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0791.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0791.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0492 import SecretScanningAlertWebhookType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0498 import WebhooksAlertType -class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): - """secret_scanning_alert publicly leaked event""" +class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): + """repository_vulnerability_alert create event""" - action: Literal["publicly_leaked"] - alert: SecretScanningAlertWebhookType + action: Literal["create"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertPubliclyLeakedType",) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0792.py b/githubkit/versions/ghec_v2022_11_28/types/group_0792.py index 93b1d8f79..49962cb7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0792.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0792.py @@ -9,27 +9,86 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0492 import SecretScanningAlertWebhookType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookSecretScanningAlertReopenedType(TypedDict): - """secret_scanning_alert reopened event""" +class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): + """repository_vulnerability_alert dismiss event""" - action: Literal["reopened"] - alert: SecretScanningAlertWebhookType + action: Literal["dismiss"] + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertReopenedType",) +class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str + affected_range: str + created_at: str + dismiss_comment: NotRequired[Union[str, None]] + dismiss_reason: str + dismissed_at: str + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, None + ] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["dismissed"] + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", + "WebhookRepositoryVulnerabilityAlertDismissType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0793.py b/githubkit/versions/ghec_v2022_11_28/types/group_0793.py index 4a39e83cb..140af1e83 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0793.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0793.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0492 import SecretScanningAlertWebhookType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0498 import WebhooksAlertType -class WebhookSecretScanningAlertResolvedType(TypedDict): - """secret_scanning_alert resolved event""" +class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): + """repository_vulnerability_alert reopen event""" - action: Literal["resolved"] - alert: SecretScanningAlertWebhookType + action: Literal["reopen"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertResolvedType",) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0794.py b/githubkit/versions/ghec_v2022_11_28/types/group_0794.py index 35433bc75..613e3e213 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0794.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0794.py @@ -9,27 +9,86 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0492 import SecretScanningAlertWebhookType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookSecretScanningAlertValidatedType(TypedDict): - """secret_scanning_alert validated event""" +class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): + """repository_vulnerability_alert resolve event""" - action: Literal["validated"] - alert: SecretScanningAlertWebhookType + action: Literal["resolve"] + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertValidatedType",) +class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[ + Union[ + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None + ] + ] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["fixed", "open"] + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", + "WebhookRepositoryVulnerabilityAlertResolveType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0795.py b/githubkit/versions/ghec_v2022_11_28/types/group_0795.py index 810e547d4..51a0781b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0795.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0795.py @@ -9,35 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType - - -class WebhookSecretScanningScanCompletedType(TypedDict): - """secret_scanning_scan completed event""" - - action: Literal["completed"] - type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] - source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] - started_at: datetime - completed_at: datetime - secret_types: NotRequired[Union[list[str], None]] - custom_pattern_name: NotRequired[Union[str, None]] - custom_pattern_scope: NotRequired[ - Union[None, Literal["repository", "organization", "enterprise"]] - ] - repository: NotRequired[RepositoryWebhooksType] +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0499 import SecretScanningAlertWebhookType + + +class WebhookSecretScanningAlertCreatedType(TypedDict): + """secret_scanning_alert created event""" + + action: Literal["created"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningScanCompletedType",) +__all__ = ("WebhookSecretScanningAlertCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0796.py b/githubkit/versions/ghec_v2022_11_28/types/group_0796.py index 81365cb7d..c3cd84f3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0796.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0796.py @@ -9,27 +9,228 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0493 import WebhooksSecurityAdvisoryType +from .group_0003 import SimpleUserType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0499 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryPublishedType(TypedDict): - """security_advisory published event""" +class WebhookSecretScanningAlertLocationCreatedType(TypedDict): + """Secret Scanning Alert Location Created Event""" - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] + alert: SecretScanningAlertWebhookType installation: NotRequired[SimpleInstallationType] + location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookSecurityAdvisoryPublishedType",) +class SecretScanningLocationType(TypedDict): + """SecretScanningLocation""" + + type: NotRequired[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] + ] + details: NotRequired[ + Union[ + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] + ] + + +class SecretScanningLocationCommitType(TypedDict): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + blob_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationWikiCommitType(TypedDict): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + page_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationIssueTitleType(TypedDict): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str + + +class SecretScanningLocationIssueBodyType(TypedDict): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str + + +class SecretScanningLocationIssueCommentType(TypedDict): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str + + +class SecretScanningLocationDiscussionTitleType(TypedDict): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str + + +class SecretScanningLocationDiscussionBodyType(TypedDict): + """SecretScanningLocationDiscussionBody + + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + + discussion_body_url: str + + +class SecretScanningLocationDiscussionCommentType(TypedDict): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str + + +class SecretScanningLocationPullRequestTitleType(TypedDict): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str + + +class SecretScanningLocationPullRequestBodyType(TypedDict): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str + + +class SecretScanningLocationPullRequestCommentType(TypedDict): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str + + +class SecretScanningLocationPullRequestReviewType(TypedDict): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str + + +class SecretScanningLocationPullRequestReviewCommentType(TypedDict): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str + + +__all__ = ( + "SecretScanningLocationCommitType", + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestCommentType", + "SecretScanningLocationPullRequestReviewCommentType", + "SecretScanningLocationPullRequestReviewType", + "SecretScanningLocationPullRequestTitleType", + "SecretScanningLocationType", + "SecretScanningLocationWikiCommitType", + "WebhookSecretScanningAlertLocationCreatedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0797.py b/githubkit/versions/ghec_v2022_11_28/types/group_0797.py index f5fb9e59a..4c3c84e39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0797.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0797.py @@ -9,27 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0493 import WebhooksSecurityAdvisoryType +class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): + """Secret Scanning Alert Location Created Event""" -class WebhookSecurityAdvisoryUpdatedType(TypedDict): - """security_advisory updated event""" + payload: str - action: Literal["updated"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType - sender: NotRequired[SimpleUserType] - -__all__ = ("WebhookSecurityAdvisoryUpdatedType",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0798.py b/githubkit/versions/ghec_v2022_11_28/types/group_0798.py index c9f03e927..89999247f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0798.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0798.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0799 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0499 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryWithdrawnType(TypedDict): - """security_advisory withdrawn event""" +class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): + """secret_scanning_alert publicly leaked event""" - action: Literal["withdrawn"] + action: Literal["publicly_leaked"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryWithdrawnType",) +__all__ = ("WebhookSecretScanningAlertPubliclyLeakedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0799.py b/githubkit/versions/ghec_v2022_11_28/types/group_0799.py index f38acab63..747110bc5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0799.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0799.py @@ -9,113 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0499 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +class WebhookSecretScanningAlertReopenedType(TypedDict): + """secret_scanning_alert reopened event""" - The details of the security advisory, including summary, description, and - severity. - """ + action: Literal["reopened"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType - ] - published_at: str - references: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType - ] - severity: str - summary: str - updated_at: str - vulnerabilities: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType - ] - withdrawn_at: str - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" - - url: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str - name: str - - -__all__ = ( - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", -) +__all__ = ("WebhookSecretScanningAlertReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0800.py b/githubkit/versions/ghec_v2022_11_28/types/group_0800.py index 0d06dd44c..8989b5639 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0800.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0800.py @@ -9,25 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0193 import FullRepositoryType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0801 import WebhookSecurityAndAnalysisPropChangesType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0499 import SecretScanningAlertWebhookType -class WebhookSecurityAndAnalysisType(TypedDict): - """security_and_analysis event""" +class WebhookSecretScanningAlertResolvedType(TypedDict): + """secret_scanning_alert resolved event""" - changes: WebhookSecurityAndAnalysisPropChangesType + action: Literal["resolved"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: FullRepositoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAndAnalysisType",) +__all__ = ("WebhookSecretScanningAlertResolvedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0801.py b/githubkit/versions/ghec_v2022_11_28/types/group_0801.py index fac0a4647..5aa451eb5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0801.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0801.py @@ -9,15 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0802 import WebhookSecurityAndAnalysisPropChangesPropFromType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0499 import SecretScanningAlertWebhookType -class WebhookSecurityAndAnalysisPropChangesType(TypedDict): - """WebhookSecurityAndAnalysisPropChanges""" +class WebhookSecretScanningAlertValidatedType(TypedDict): + """secret_scanning_alert validated event""" - from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] + action: Literal["validated"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) +__all__ = ("WebhookSecretScanningAlertValidatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0802.py b/githubkit/versions/ghec_v2022_11_28/types/group_0802.py index 216150fd7..b4cbde68b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0802.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0802.py @@ -9,16 +9,35 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0146 import SecurityAndAnalysisType - - -class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" - - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] - - -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType + + +class WebhookSecretScanningScanCompletedType(TypedDict): + """secret_scanning_scan completed event""" + + action: Literal["completed"] + type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] + source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] + started_at: datetime + completed_at: datetime + secret_types: NotRequired[Union[list[str], None]] + custom_pattern_name: NotRequired[Union[str, None]] + custom_pattern_scope: NotRequired[ + Union[None, Literal["repository", "organization", "enterprise"]] + ] + repository: NotRequired[RepositoryWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + sender: NotRequired[SimpleUserType] + + +__all__ = ("WebhookSecretScanningScanCompletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0803.py b/githubkit/versions/ghec_v2022_11_28/types/group_0803.py index 38d0f806d..f85f98392 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0803.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0803.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0494 import WebhooksSponsorshipType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0500 import WebhooksSecurityAdvisoryType -class WebhookSponsorshipCancelledType(TypedDict): - """sponsorship cancelled event""" +class WebhookSecurityAdvisoryPublishedType(TypedDict): + """security_advisory published event""" - action: Literal["cancelled"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhooksSecurityAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSponsorshipCancelledType",) +__all__ = ("WebhookSecurityAdvisoryPublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0804.py b/githubkit/versions/ghec_v2022_11_28/types/group_0804.py index faeba40fa..716aa7dc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0804.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0804.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0494 import WebhooksSponsorshipType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0500 import WebhooksSecurityAdvisoryType -class WebhookSponsorshipCreatedType(TypedDict): - """sponsorship created event""" +class WebhookSecurityAdvisoryUpdatedType(TypedDict): + """security_advisory updated event""" - action: Literal["created"] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhooksSecurityAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSponsorshipCreatedType",) +__all__ = ("WebhookSecurityAdvisoryUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0805.py b/githubkit/versions/ghec_v2022_11_28/types/group_0805.py index 9a91bada8..61164848d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0805.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0805.py @@ -12,41 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0494 import WebhooksSponsorshipType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0806 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType -class WebhookSponsorshipEditedType(TypedDict): - """sponsorship edited event""" +class WebhookSecurityAdvisoryWithdrawnType(TypedDict): + """security_advisory withdrawn event""" - action: Literal["edited"] - changes: WebhookSponsorshipEditedPropChangesType + action: Literal["withdrawn"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + sender: NotRequired[SimpleUserType] -class WebhookSponsorshipEditedPropChangesType(TypedDict): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str - - -__all__ = ( - "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", - "WebhookSponsorshipEditedPropChangesType", - "WebhookSponsorshipEditedType", -) +__all__ = ("WebhookSecurityAdvisoryWithdrawnType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0806.py b/githubkit/versions/ghec_v2022_11_28/types/group_0806.py index 08bc233f6..f38acab63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0806.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0806.py @@ -9,28 +9,113 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0494 import WebhooksSponsorshipType +from .group_0001 import CvssSeveritiesType -class WebhookSponsorshipPendingCancellationType(TypedDict): - """sponsorship pending_cancellation event""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - action: Literal["pending_cancellation"] - effective_date: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + The details of the security advisory, including summary, description, and + severity. + """ + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType + ] + published_at: str + references: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType + ] + severity: str + summary: str + updated_at: str + vulnerabilities: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType + ] + withdrawn_at: str -__all__ = ("WebhookSponsorshipPendingCancellationType",) + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str + name: str + + +__all__ = ( + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0807.py b/githubkit/versions/ghec_v2022_11_28/types/group_0807.py index 758dd6c91..38385fcb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0807.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0807.py @@ -9,30 +9,25 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0494 import WebhooksSponsorshipType -from .group_0495 import WebhooksChanges8Type +from .group_0003 import SimpleUserType +from .group_0200 import FullRepositoryType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0808 import WebhookSecurityAndAnalysisPropChangesType -class WebhookSponsorshipPendingTierChangeType(TypedDict): - """sponsorship pending_tier_change event""" +class WebhookSecurityAndAnalysisType(TypedDict): + """security_and_analysis event""" - action: Literal["pending_tier_change"] - changes: WebhooksChanges8Type - effective_date: NotRequired[str] + changes: WebhookSecurityAndAnalysisPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + repository: FullRepositoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSponsorshipPendingTierChangeType",) +__all__ = ("WebhookSecurityAndAnalysisType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0808.py b/githubkit/versions/ghec_v2022_11_28/types/group_0808.py index 9406180f3..4c0dbee5a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0808.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0808.py @@ -9,29 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0494 import WebhooksSponsorshipType -from .group_0495 import WebhooksChanges8Type +from .group_0809 import WebhookSecurityAndAnalysisPropChangesPropFromType -class WebhookSponsorshipTierChangedType(TypedDict): - """sponsorship tier_changed event""" +class WebhookSecurityAndAnalysisPropChangesType(TypedDict): + """WebhookSecurityAndAnalysisPropChanges""" - action: Literal["tier_changed"] - changes: WebhooksChanges8Type - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] -__all__ = ("WebhookSponsorshipTierChangedType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0809.py b/githubkit/versions/ghec_v2022_11_28/types/group_0809.py index 7aa3c3a13..2967cb229 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0809.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0809.py @@ -9,26 +9,16 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0153 import SecurityAndAnalysisType -class WebhookStarCreatedType(TypedDict): - """star created event""" +class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - starred_at: Union[str, None] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] -__all__ = ("WebhookStarCreatedType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0810.py b/githubkit/versions/ghec_v2022_11_28/types/group_0810.py index d8264a41e..af657ef87 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0810.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0810.py @@ -12,23 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0501 import WebhooksSponsorshipType -class WebhookStarDeletedType(TypedDict): - """star deleted event""" +class WebhookSponsorshipCancelledType(TypedDict): + """sponsorship cancelled event""" - action: Literal["deleted"] + action: Literal["cancelled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - starred_at: None + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStarDeletedType",) +__all__ = ("WebhookSponsorshipCancelledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0811.py b/githubkit/versions/ghec_v2022_11_28/types/group_0811.py index 4f7a8bab4..a2a0dd7a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0811.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0811.py @@ -9,202 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0501 import WebhooksSponsorshipType -class WebhookStatusType(TypedDict): - """status event""" +class WebhookSponsorshipCreatedType(TypedDict): + """sponsorship created event""" - avatar_url: NotRequired[Union[str, None]] - branches: list[WebhookStatusPropBranchesItemsType] - commit: WebhookStatusPropCommitType - context: str - created_at: str - description: Union[str, None] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] - id: int installation: NotRequired[SimpleInstallationType] - name: str organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - sha: str - state: Literal["pending", "success", "failure", "error"] - target_url: Union[str, None] - updated_at: str + sponsorship: WebhooksSponsorshipType -class WebhookStatusPropBranchesItemsType(TypedDict): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommitType - name: str - protected: bool - - -class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] - url: Union[str, None] - - -class WebhookStatusPropCommitType(TypedDict): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthorType, None] - comments_url: str - commit: WebhookStatusPropCommitPropCommitType - committer: Union[WebhookStatusPropCommitPropCommitterType, None] - html_url: str - node_id: str - parents: list[WebhookStatusPropCommitPropParentsItemsType] - sha: str - url: str - - -class WebhookStatusPropCommitPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropParentsItemsType(TypedDict): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitType(TypedDict): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthorType - comment_count: int - committer: WebhookStatusPropCommitPropCommitPropCommitterType - message: str - tree: WebhookStatusPropCommitPropCommitPropTreeType - url: str - verification: WebhookStatusPropCommitPropCommitPropVerificationType - - -class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] - signature: Union[str, None] - verified: bool - verified_at: NotRequired[Union[str, None]] - - -__all__ = ( - "WebhookStatusPropBranchesItemsPropCommitType", - "WebhookStatusPropBranchesItemsType", - "WebhookStatusPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropCommitterType", - "WebhookStatusPropCommitPropCommitPropTreeType", - "WebhookStatusPropCommitPropCommitPropVerificationType", - "WebhookStatusPropCommitPropCommitType", - "WebhookStatusPropCommitPropCommitterType", - "WebhookStatusPropCommitPropParentsItemsType", - "WebhookStatusPropCommitType", - "WebhookStatusType", -) +__all__ = ("WebhookSponsorshipCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0812.py b/githubkit/versions/ghec_v2022_11_28/types/group_0812.py index 31b2ed900..73285d287 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0812.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0812.py @@ -9,21 +9,44 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0501 import WebhooksSponsorshipType -class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipEditedType(TypedDict): + """sponsorship edited event""" - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + action: Literal["edited"] + changes: WebhookSponsorshipEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) +class WebhookSponsorshipEditedPropChangesType(TypedDict): + """WebhookSponsorshipEditedPropChanges""" + + privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] + + +class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" + + from_: str + + +__all__ = ( + "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", + "WebhookSponsorshipEditedPropChangesType", + "WebhookSponsorshipEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0813.py b/githubkit/versions/ghec_v2022_11_28/types/group_0813.py index eafde2845..94df4b14a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0813.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0813.py @@ -9,15 +9,28 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0501 import WebhooksSponsorshipType -class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +class WebhookSponsorshipPendingCancellationType(TypedDict): + """sponsorship pending_cancellation event""" + action: Literal["pending_cancellation"] + effective_date: NotRequired[str] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) + +__all__ = ("WebhookSponsorshipPendingCancellationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0814.py b/githubkit/versions/ghec_v2022_11_28/types/group_0814.py index e44b95c39..673fb8a05 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0814.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0814.py @@ -9,21 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0501 import WebhooksSponsorshipType +from .group_0502 import WebhooksChanges8Type -class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipPendingTierChangeType(TypedDict): + """sponsorship pending_tier_change event""" - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + action: Literal["pending_tier_change"] + changes: WebhooksChanges8Type + effective_date: NotRequired[str] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) +__all__ = ("WebhookSponsorshipPendingTierChangeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0815.py b/githubkit/versions/ghec_v2022_11_28/types/group_0815.py index a808e25ce..b17151e8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0815.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0815.py @@ -9,15 +9,29 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0501 import WebhooksSponsorshipType +from .group_0502 import WebhooksChanges8Type -class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +class WebhookSponsorshipTierChangedType(TypedDict): + """sponsorship tier_changed event""" + action: Literal["tier_changed"] + changes: WebhooksChanges8Type + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) + +__all__ = ("WebhookSponsorshipTierChangedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0816.py b/githubkit/versions/ghec_v2022_11_28/types/group_0816.py index 0ebd6cc74..e363bf3df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0816.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0816.py @@ -9,30 +9,26 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType -from .group_0131 import IssueType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookSubIssuesParentIssueAddedType(TypedDict): - """parent issue added event""" +class WebhookStarCreatedType(TypedDict): + """star created event""" - action: Literal["parent_issue_added"] - parent_issue_id: float - parent_issue: IssueType - parent_issue_repo: RepositoryType - sub_issue_id: float - sub_issue: IssueType + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType + starred_at: Union[str, None] -__all__ = ("WebhookSubIssuesParentIssueAddedType",) +__all__ = ("WebhookStarCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0817.py b/githubkit/versions/ghec_v2022_11_28/types/group_0817.py index 9fb963f56..744944d28 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0817.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0817.py @@ -12,27 +12,23 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType -from .group_0131 import IssueType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType - - -class WebhookSubIssuesParentIssueRemovedType(TypedDict): - """parent issue removed event""" - - action: Literal["parent_issue_removed"] - parent_issue_id: float - parent_issue: IssueType - parent_issue_repo: RepositoryType - sub_issue_id: float - sub_issue: IssueType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType + + +class WebhookStarDeletedType(TypedDict): + """star deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType + starred_at: None -__all__ = ("WebhookSubIssuesParentIssueRemovedType",) +__all__ = ("WebhookStarDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0818.py b/githubkit/versions/ghec_v2022_11_28/types/group_0818.py index e083426f0..83e4b5330 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0818.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0818.py @@ -9,30 +9,202 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType -from .group_0131 import IssueType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookSubIssuesSubIssueAddedType(TypedDict): - """sub-issue added event""" +class WebhookStatusType(TypedDict): + """status event""" - action: Literal["sub_issue_added"] - sub_issue_id: float - sub_issue: IssueType - sub_issue_repo: RepositoryType - parent_issue_id: float - parent_issue: IssueType + avatar_url: NotRequired[Union[str, None]] + branches: list[WebhookStatusPropBranchesItemsType] + commit: WebhookStatusPropCommitType + context: str + created_at: str + description: Union[str, None] + enterprise: NotRequired[EnterpriseWebhooksType] + id: int installation: NotRequired[SimpleInstallationType] + name: str organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType + sha: str + state: Literal["pending", "success", "failure", "error"] + target_url: Union[str, None] + updated_at: str -__all__ = ("WebhookSubIssuesSubIssueAddedType",) +class WebhookStatusPropBranchesItemsType(TypedDict): + """WebhookStatusPropBranchesItems""" + + commit: WebhookStatusPropBranchesItemsPropCommitType + name: str + protected: bool + + +class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): + """WebhookStatusPropBranchesItemsPropCommit""" + + sha: Union[str, None] + url: Union[str, None] + + +class WebhookStatusPropCommitType(TypedDict): + """WebhookStatusPropCommit""" + + author: Union[WebhookStatusPropCommitPropAuthorType, None] + comments_url: str + commit: WebhookStatusPropCommitPropCommitType + committer: Union[WebhookStatusPropCommitPropCommitterType, None] + html_url: str + node_id: str + parents: list[WebhookStatusPropCommitPropParentsItemsType] + sha: str + url: str + + +class WebhookStatusPropCommitPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookStatusPropCommitPropCommitterType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookStatusPropCommitPropParentsItemsType(TypedDict): + """WebhookStatusPropCommitPropParentsItems""" + + html_url: str + sha: str + url: str + + +class WebhookStatusPropCommitPropCommitType(TypedDict): + """WebhookStatusPropCommitPropCommit""" + + author: WebhookStatusPropCommitPropCommitPropAuthorType + comment_count: int + committer: WebhookStatusPropCommitPropCommitPropCommitterType + message: str + tree: WebhookStatusPropCommitPropCommitPropTreeType + url: str + verification: WebhookStatusPropCommitPropCommitPropVerificationType + + +class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthor""" + + date: datetime + email: str + name: str + username: NotRequired[str] + + +class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitter""" + + date: datetime + email: str + name: str + username: NotRequired[str] + + +class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): + """WebhookStatusPropCommitPropCommitPropTree""" + + sha: str + url: str + + +class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): + """WebhookStatusPropCommitPropCommitPropVerification""" + + payload: Union[str, None] + reason: Literal[ + "expired_key", + "not_signing_key", + "gpgverify_error", + "gpgverify_unavailable", + "unsigned", + "unknown_signature_type", + "no_user", + "unverified_email", + "bad_email", + "unknown_key", + "malformed_signature", + "invalid", + "valid", + "bad_cert", + "ocsp_pending", + ] + signature: Union[str, None] + verified: bool + verified_at: Union[str, None] + + +__all__ = ( + "WebhookStatusPropBranchesItemsPropCommitType", + "WebhookStatusPropBranchesItemsType", + "WebhookStatusPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitPropCommitterType", + "WebhookStatusPropCommitPropCommitPropTreeType", + "WebhookStatusPropCommitPropCommitPropVerificationType", + "WebhookStatusPropCommitPropCommitType", + "WebhookStatusPropCommitPropCommitterType", + "WebhookStatusPropCommitPropParentsItemsType", + "WebhookStatusPropCommitType", + "WebhookStatusType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0819.py b/githubkit/versions/ghec_v2022_11_28/types/group_0819.py index ca58c7aa4..31b2ed900 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0819.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0819.py @@ -9,30 +9,21 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType -from .group_0131 import IssueType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): + """Committer -class WebhookSubIssuesSubIssueRemovedType(TypedDict): - """sub-issue removed event""" + Metaproperties for Git author/committer information. + """ - action: Literal["sub_issue_removed"] - sub_issue_id: float - sub_issue: IssueType - sub_issue_repo: RepositoryType - parent_issue_id: float - parent_issue: IssueType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -__all__ = ("WebhookSubIssuesSubIssueRemovedType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0820.py b/githubkit/versions/ghec_v2022_11_28/types/group_0820.py index 6a6392aad..eafde2845 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0820.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0820.py @@ -11,23 +11,13 @@ from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0496 import WebhooksTeam1Type +class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" -class WebhookTeamAddType(TypedDict): - """team_add event""" + date: str + email: NotRequired[str] + name: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - team: WebhooksTeam1Type - -__all__ = ("WebhookTeamAddType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0821.py b/githubkit/versions/ghec_v2022_11_28/types/group_0821.py index 9fe52d82d..e44b95c39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0821.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0821.py @@ -10,193 +10,20 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0496 import WebhooksTeam1Type +class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): + """Committer -class WebhookTeamAddedToRepositoryType(TypedDict): - """team added_to_repository event""" - - action: Literal["added_to_repository"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] - sender: NotRequired[SimpleUserType] - team: WebhooksTeam1Type - - -class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository + Metaproperties for Git author/committer information. """ - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = dict[ - str, Any -] -"""WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str + date: NotRequired[datetime] + email: Union[str, None] name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + username: NotRequired[str] -__all__ = ( - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamAddedToRepositoryPropRepositoryType", - "WebhookTeamAddedToRepositoryType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0822.py b/githubkit/versions/ghec_v2022_11_28/types/group_0822.py index aa48748ab..a808e25ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0822.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0822.py @@ -9,190 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0496 import WebhooksTeam1Type +class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" -class WebhookTeamCreatedType(TypedDict): - """team created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamCreatedPropRepositoryType] - sender: SimpleUserType - team: WebhooksTeam1Type - - -class WebhookTeamCreatedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamCreatedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamCreatedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamCreatedPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + date: str + email: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] -__all__ = ( - "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", - "WebhookTeamCreatedPropRepositoryPropLicenseType", - "WebhookTeamCreatedPropRepositoryPropOwnerType", - "WebhookTeamCreatedPropRepositoryPropPermissionsType", - "WebhookTeamCreatedPropRepositoryType", - "WebhookTeamCreatedType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0823.py b/githubkit/versions/ghec_v2022_11_28/types/group_0823.py index 33f5861e3..27a5802e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0823.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0823.py @@ -9,190 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0496 import WebhooksTeam1Type - - -class WebhookTeamDeletedType(TypedDict): - """team deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType +from .group_0138 import IssueType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType + + +class WebhookSubIssuesParentIssueAddedType(TypedDict): + """parent issue added event""" + + action: Literal["parent_issue_added"] + parent_issue_id: float + parent_issue: IssueType + parent_issue_repo: RepositoryType + sub_issue_id: float + sub_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] - team: WebhooksTeam1Type - - -class WebhookTeamDeletedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamDeletedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamDeletedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamDeletedPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] -__all__ = ( - "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", - "WebhookTeamDeletedPropRepositoryPropLicenseType", - "WebhookTeamDeletedPropRepositoryPropOwnerType", - "WebhookTeamDeletedPropRepositoryPropPermissionsType", - "WebhookTeamDeletedPropRepositoryType", - "WebhookTeamDeletedType", -) +__all__ = ("WebhookSubIssuesParentIssueAddedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0824.py b/githubkit/versions/ghec_v2022_11_28/types/group_0824.py index a66e9476a..168bdae41 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0824.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0824.py @@ -9,258 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0496 import WebhooksTeam1Type - - -class WebhookTeamEditedType(TypedDict): - """team edited event""" - - action: Literal["edited"] - changes: WebhookTeamEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType +from .group_0138 import IssueType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType + + +class WebhookSubIssuesParentIssueRemovedType(TypedDict): + """parent issue removed event""" + + action: Literal["parent_issue_removed"] + parent_issue_id: float + parent_issue: IssueType + parent_issue_repo: RepositoryType + sub_issue_id: float + sub_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamEditedPropRepositoryType] - sender: SimpleUserType - team: WebhooksTeam1Type - - -class WebhookTeamEditedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamEditedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamEditedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamEditedPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamEditedPropChangesType(TypedDict): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookTeamEditedPropChangesPropNameType] - privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] - notification_setting: NotRequired[ - WebhookTeamEditedPropChangesPropNotificationSettingType - ] - repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] - - -class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNameType(TypedDict): - """WebhookTeamEditedPropChangesPropName""" - - from_: str - - -class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str - - -class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: NotRequired[bool] - pull: NotRequired[bool] - push: NotRequired[bool] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookTeamEditedPropChangesPropDescriptionType", - "WebhookTeamEditedPropChangesPropNameType", - "WebhookTeamEditedPropChangesPropNotificationSettingType", - "WebhookTeamEditedPropChangesPropPrivacyType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropChangesPropRepositoryType", - "WebhookTeamEditedPropChangesType", - "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", - "WebhookTeamEditedPropRepositoryPropLicenseType", - "WebhookTeamEditedPropRepositoryPropOwnerType", - "WebhookTeamEditedPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropRepositoryType", - "WebhookTeamEditedType", -) +__all__ = ("WebhookSubIssuesParentIssueRemovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0825.py b/githubkit/versions/ghec_v2022_11_28/types/group_0825.py index cca35222e..2d28c74dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0825.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0825.py @@ -9,194 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0496 import WebhooksTeam1Type - - -class WebhookTeamRemovedFromRepositoryType(TypedDict): - """team removed_from_repository event""" - - action: Literal["removed_from_repository"] - enterprise: NotRequired[EnterpriseWebhooksType] +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType +from .group_0138 import IssueType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType + + +class WebhookSubIssuesSubIssueAddedType(TypedDict): + """sub-issue added event""" + + action: Literal["sub_issue_added"] + sub_issue_id: float + sub_issue: IssueType + sub_issue_repo: RepositoryType + parent_issue_id: float + parent_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] - sender: SimpleUserType - team: WebhooksTeam1Type - - -class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = ( - dict[str, Any] -) -"""WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamRemovedFromRepositoryPropRepositoryType", - "WebhookTeamRemovedFromRepositoryType", -) +__all__ = ("WebhookSubIssuesSubIssueAddedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0826.py b/githubkit/versions/ghec_v2022_11_28/types/group_0826.py index d3119d21e..52efaa37e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0826.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0826.py @@ -12,22 +12,27 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType - - -class WebhookWatchStartedType(TypedDict): - """watch started event""" - - action: Literal["started"] - enterprise: NotRequired[EnterpriseWebhooksType] +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType +from .group_0138 import IssueType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType + + +class WebhookSubIssuesSubIssueRemovedType(TypedDict): + """sub-issue removed event""" + + action: Literal["sub_issue_removed"] + sub_issue_id: float + sub_issue: IssueType + sub_issue_repo: RepositoryType + parent_issue_id: float + parent_issue: IssueType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookWatchStartedType",) +__all__ = ("WebhookSubIssuesSubIssueRemovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0827.py b/githubkit/versions/ghec_v2022_11_28/types/group_0827.py index 3b493cb7b..20252a7f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0827.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0827.py @@ -9,35 +9,25 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0503 import WebhooksTeam1Type -class WebhookWorkflowDispatchType(TypedDict): - """workflow_dispatch event""" +class WebhookTeamAddType(TypedDict): + """team_add event""" enterprise: NotRequired[EnterpriseWebhooksType] - inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType - workflow: str + team: WebhooksTeam1Type -WebhookWorkflowDispatchPropInputsType: TypeAlias = dict[str, Any] -"""WebhookWorkflowDispatchPropInputs -""" - - -__all__ = ( - "WebhookWorkflowDispatchPropInputsType", - "WebhookWorkflowDispatchType", -) +__all__ = ("WebhookTeamAddType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0828.py b/githubkit/versions/ghec_v2022_11_28/types/group_0828.py index d8259b093..a7ce3401e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0828.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0828.py @@ -9,79 +9,194 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0227 import DeploymentType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0503 import WebhooksTeam1Type -class WebhookWorkflowJobCompletedType(TypedDict): - """workflow_job completed event""" +class WebhookTeamAddedToRepositoryType(TypedDict): + """team added_to_repository event""" - action: Literal["completed"] + action: Literal["added_to_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJob""" - - check_run_url: str - completed_at: str - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] + sender: NotRequired[SimpleUserType] + team: WebhooksTeam1Type + + +class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType ] - created_at: str - head_sha: str + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: list[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + +WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = dict[ + str, Any +] +"""WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] +class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", - "WebhookWorkflowJobCompletedPropWorkflowJobType", - "WebhookWorkflowJobCompletedType", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamAddedToRepositoryPropRepositoryType", + "WebhookTeamAddedToRepositoryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0829.py b/githubkit/versions/ghec_v2022_11_28/types/group_0829.py index d129fc90a..0398ec028 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0829.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0829.py @@ -9,65 +9,190 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0503 import WebhooksTeam1Type -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamCreatedType(TypedDict): + """team created event""" + + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamCreatedPropRepositoryType] + sender: SimpleUserType + team: WebhooksTeam1Type + + +class WebhookTeamCreatedPropRepositoryType(TypedDict): + """Repository + + A git repository """ - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamCreatedPropRepositoryPropCustomPropertiesType ] - created_at: str - head_sha: str + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: list[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamCreatedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookTeamCreatedPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" +class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): + """License""" - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", + "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", + "WebhookTeamCreatedPropRepositoryPropLicenseType", + "WebhookTeamCreatedPropRepositoryPropOwnerType", + "WebhookTeamCreatedPropRepositoryPropPermissionsType", + "WebhookTeamCreatedPropRepositoryType", + "WebhookTeamCreatedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0830.py b/githubkit/versions/ghec_v2022_11_28/types/group_0830.py index 92b2bfd6b..605a8e673 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0830.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0830.py @@ -9,57 +9,190 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: NotRequired[str] - completed_at: NotRequired[str] - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict + +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0503 import WebhooksTeam1Type + + +class WebhookTeamDeletedType(TypedDict): + """team deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + sender: NotRequired[SimpleUserType] + team: WebhooksTeam1Type + + +class WebhookTeamDeletedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamDeletedPropRepositoryPropCustomPropertiesType ] - created_at: NotRequired[str] - head_sha: NotRequired[str] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamDeletedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookTeamDeletedPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[list[Union[str, None]]] + id: int + login: str name: NotRequired[str] node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: NotRequired[ - list[ - Union[ - WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None - ] - ] - ] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] + +class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropPermissions""" -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", + "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", + "WebhookTeamDeletedPropRepositoryPropLicenseType", + "WebhookTeamDeletedPropRepositoryPropOwnerType", + "WebhookTeamDeletedPropRepositoryPropPermissionsType", + "WebhookTeamDeletedPropRepositoryType", + "WebhookTeamDeletedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0831.py b/githubkit/versions/ghec_v2022_11_28/types/group_0831.py index 5219390b7..838c3b026 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0831.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0831.py @@ -9,71 +9,258 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0227 import DeploymentType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0503 import WebhooksTeam1Type -class WebhookWorkflowJobInProgressType(TypedDict): - """workflow_job in_progress event""" +class WebhookTeamEditedType(TypedDict): + """team edited event""" - action: Literal["in_progress"] + action: Literal["edited"] + changes: WebhookTeamEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamEditedPropRepositoryType] sender: SimpleUserType - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType - deployment: NotRequired[DeploymentType] + team: WebhooksTeam1Type -class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJob""" +class WebhookTeamEditedPropRepositoryType(TypedDict): + """Repository - check_run_url: str - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] - created_at: str - head_sha: str + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamEditedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: list[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamEditedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookTeamEditedPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" +class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): + """License""" - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] + key: str name: str - number: int - started_at: Union[Union[str, None], None] - status: Literal["in_progress", "completed", "queued", "pending"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamEditedPropChangesType(TypedDict): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookTeamEditedPropChangesPropNameType] + privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] + notification_setting: NotRequired[ + WebhookTeamEditedPropChangesPropNotificationSettingType + ] + repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] + + +class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNameType(TypedDict): + """WebhookTeamEditedPropChangesPropName""" + + from_: str + + +class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str + + +class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: NotRequired[bool] + pull: NotRequired[bool] + push: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", - "WebhookWorkflowJobInProgressPropWorkflowJobType", - "WebhookWorkflowJobInProgressType", + "WebhookTeamEditedPropChangesPropDescriptionType", + "WebhookTeamEditedPropChangesPropNameType", + "WebhookTeamEditedPropChangesPropNotificationSettingType", + "WebhookTeamEditedPropChangesPropPrivacyType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropChangesPropRepositoryType", + "WebhookTeamEditedPropChangesType", + "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", + "WebhookTeamEditedPropRepositoryPropLicenseType", + "WebhookTeamEditedPropRepositoryPropOwnerType", + "WebhookTeamEditedPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropRepositoryType", + "WebhookTeamEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0832.py b/githubkit/versions/ghec_v2022_11_28/types/group_0832.py index 217bd7ee4..91282a5c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0832.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0832.py @@ -9,54 +9,194 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0503 import WebhooksTeam1Type -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamRemovedFromRepositoryType(TypedDict): + """team removed_from_repository event""" + + action: Literal["removed_from_repository"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] + sender: SimpleUserType + team: WebhooksTeam1Type + + +class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository """ - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] - created_at: str - head_sha: str + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: list[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = ( + dict[str, Any] +) +"""WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued", "pending"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamRemovedFromRepositoryPropRepositoryType", + "WebhookTeamRemovedFromRepositoryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0833.py b/githubkit/versions/ghec_v2022_11_28/types/group_0833.py index 7a741384f..98590ae05 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0833.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0833.py @@ -9,50 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - - check_run_url: NotRequired[str] - completed_at: NotRequired[Union[str, None]] - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[list[str]] - name: NotRequired[str] - node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: Literal["in_progress", "completed", "queued"] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] - url: NotRequired[str] - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[str, None] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "pending", "queued"] - - -__all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", -) + +class WebhookWatchStartedType(TypedDict): + """watch started event""" + + action: Literal["started"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookWatchStartedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0834.py b/githubkit/versions/ghec_v2022_11_28/types/group_0834.py index 35e459453..1d47a2dd9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0834.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0834.py @@ -9,72 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0227 import DeploymentType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookWorkflowJobQueuedType(TypedDict): - """workflow_job queued event""" +class WebhookWorkflowDispatchType(TypedDict): + """workflow_dispatch event""" - action: Literal["queued"] enterprise: NotRequired[EnterpriseWebhooksType] + inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType sender: SimpleUserType - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType - deployment: NotRequired[DeploymentType] + workflow: str -class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobQueuedPropWorkflowJob""" - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] - created_at: str - head_sha: str - html_url: str - id: int - labels: list[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: datetime - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] - url: str - - -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending"] +WebhookWorkflowDispatchPropInputsType: TypeAlias = dict[str, Any] +"""WebhookWorkflowDispatchPropInputs +""" __all__ = ( - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", - "WebhookWorkflowJobQueuedPropWorkflowJobType", - "WebhookWorkflowJobQueuedType", + "WebhookWorkflowDispatchPropInputsType", + "WebhookWorkflowDispatchType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0835.py b/githubkit/versions/ghec_v2022_11_28/types/group_0835.py index d9196cfcc..e387f8149 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0835.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0835.py @@ -9,37 +9,44 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0227 import DeploymentType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0234 import DeploymentType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookWorkflowJobWaitingType(TypedDict): - """workflow_job waiting event""" +class WebhookWorkflowJobCompletedType(TypedDict): + """workflow_job completed event""" - action: Literal["waiting"] + action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType deployment: NotRequired[DeploymentType] -class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobWaitingPropWorkflowJob""" +class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJob""" check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] + completed_at: str + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] created_at: str head_sha: str html_url: str @@ -50,31 +57,31 @@ class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): run_attempt: int run_id: int run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: datetime - head_branch: Union[str, None] - workflow_name: Union[str, None] + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str status: Literal["queued", "in_progress", "completed", "waiting"] - steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] url: str -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" +class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" completed_at: Union[str, None] conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str number: int started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", - "WebhookWorkflowJobWaitingPropWorkflowJobType", - "WebhookWorkflowJobWaitingType", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", + "WebhookWorkflowJobCompletedPropWorkflowJobType", + "WebhookWorkflowJobCompletedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0836.py b/githubkit/versions/ghec_v2022_11_28/types/group_0836.py index 32b3bea8a..d129fc90a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0836.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0836.py @@ -9,426 +9,65 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0454 import WebhooksWorkflowType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowRunCompletedType(TypedDict): - """workflow_run completed event""" - - action: Literal["completed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType - - -class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): - """Workflow Run""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str + check_run_url: str + completed_at: Union[str, None] conclusion: Union[ None, Literal[ - "action_required", - "cancelled", + "success", "failure", - "neutral", "skipped", - "stale", - "success", + "cancelled", + "action_required", + "neutral", "timed_out", - "startup_failure", ], ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + created_at: str head_sha: str html_url: str id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: list[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + labels: list[str] name: str node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int number: int - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0837.py b/githubkit/versions/ghec_v2022_11_28/types/group_0837.py index 7928eed3a..92b2bfd6b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0837.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0837.py @@ -9,424 +9,57 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0454 import WebhooksWorkflowType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" -class WebhookWorkflowRunInProgressType(TypedDict): - """workflow_run in_progress event""" - - action: Literal["in_progress"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType - - -class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: list[ - Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None - ] - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "pending"] - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: Union[str, None] - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None + check_run_url: NotRequired[str] + completed_at: NotRequired[str] + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + created_at: NotRequired[str] + head_sha: NotRequired[str] html_url: NotRequired[str] - id: int - login: str + id: NotRequired[int] + labels: NotRequired[list[Union[str, None]]] name: NotRequired[str] node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: NotRequired[str] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: NotRequired[ + list[ + Union[ + WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None + ] + ] ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" __all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0838.py b/githubkit/versions/ghec_v2022_11_28/types/group_0838.py index a107a6c12..2beebf4d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0838.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0838.py @@ -9,426 +9,71 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0444 import EnterpriseWebhooksType -from .group_0445 import SimpleInstallationType -from .group_0446 import OrganizationSimpleWebhooksType -from .group_0447 import RepositoryWebhooksType -from .group_0454 import WebhooksWorkflowType +from .group_0003 import SimpleUserType +from .group_0234 import DeploymentType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class WebhookWorkflowRunRequestedType(TypedDict): - """workflow_run requested event""" +class WebhookWorkflowJobInProgressType(TypedDict): + """workflow_job in_progress event""" - action: Literal["requested"] + action: Literal["in_progress"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType + deployment: NotRequired[DeploymentType] -class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): - """Workflow Run""" +class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJob""" - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType + check_run_url: str + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] + created_at: str head_sha: str html_url: str id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + labels: list[str] name: str node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] url: str -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int number: int - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + started_at: Union[Union[str, None], None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunType", - "WebhookWorkflowRunRequestedType", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", + "WebhookWorkflowJobInProgressPropWorkflowJobType", + "WebhookWorkflowJobInProgressType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0839.py b/githubkit/versions/ghec_v2022_11_28/types/group_0839.py index c6d3cdfae..217bd7ee4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0839.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0839.py @@ -9,34 +9,54 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0007 import IntegrationPropPermissionsType +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class AppManifestsCodeConversionsPostResponse201Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] + created_at: str + head_sha: str + html_url: str id: int - slug: NotRequired[str] + labels: list[str] + name: str node_id: str - client_id: str - owner: Union[None, SimpleUserType] + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] + url: str + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str - description: Union[str, None] - external_url: str - html_url: str - created_at: datetime - updated_at: datetime - permissions: IntegrationPropPermissionsType - events: list[str] - installations_count: NotRequired[int] - client_secret: str - webhook_secret: Union[Union[str, None], None] - pem: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued", "pending"] -__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0840.py b/githubkit/versions/ghec_v2022_11_28/types/group_0840.py index 528a915b7..7a741384f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0840.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0840.py @@ -9,17 +9,50 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict - - -class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201Allof1""" - - client_id: str - client_secret: str - webhook_secret: Union[str, None] - pem: str - - -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" + + check_run_url: NotRequired[str] + completed_at: NotRequired[Union[str, None]] + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + head_sha: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[list[str]] + name: NotRequired[str] + node_id: NotRequired[str] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: Literal["in_progress", "completed", "queued"] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] + url: NotRequired[str] + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[str, None] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "pending", "queued"] + + +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0841.py b/githubkit/versions/ghec_v2022_11_28/types/group_0841.py index 8f59ec945..81283dc74 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0841.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0841.py @@ -9,17 +9,72 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0234 import DeploymentType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class AppHookConfigPatchBodyType(TypedDict): - """AppHookConfigPatchBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] +class WebhookWorkflowJobQueuedType(TypedDict): + """workflow_job queued event""" + action: Literal["queued"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType + deployment: NotRequired[DeploymentType] -__all__ = ("AppHookConfigPatchBodyType",) + +class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + labels: list[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending"] + + +__all__ = ( + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowJobQueuedPropWorkflowJobType", + "WebhookWorkflowJobQueuedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0842.py b/githubkit/versions/ghec_v2022_11_28/types/group_0842.py index 24eb9bac1..afb142d24 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0842.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0842.py @@ -9,11 +9,72 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0234 import DeploymentType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" +class WebhookWorkflowJobWaitingType(TypedDict): + """workflow_job waiting event""" -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) + action: Literal["waiting"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + labels: list[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + head_branch: Union[str, None] + workflow_name: Union[str, None] + status: Literal["queued", "in_progress", "completed", "waiting"] + steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] + + +__all__ = ( + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowJobWaitingPropWorkflowJobType", + "WebhookWorkflowJobWaitingType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0843.py b/githubkit/versions/ghec_v2022_11_28/types/group_0843.py index e53ae18dc..9da1a58be 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0843.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0843.py @@ -9,17 +9,426 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0016 import AppPermissionsType +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0461 import WebhooksWorkflowType -class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): - """AppInstallationsInstallationIdAccessTokensPostBody""" +class WebhookWorkflowRunCompletedType(TypedDict): + """workflow_run completed event""" - repositories: NotRequired[list[str]] - repository_ids: NotRequired[list[int]] - permissions: NotRequired[AppPermissionsType] + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) +class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + "startup_failure", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: list[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunType", + "WebhookWorkflowRunCompletedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0844.py b/githubkit/versions/ghec_v2022_11_28/types/group_0844.py index fad60868e..65e05efa2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0844.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0844.py @@ -9,13 +9,424 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0461 import WebhooksWorkflowType -class ApplicationsClientIdGrantDeleteBodyType(TypedDict): - """ApplicationsClientIdGrantDeleteBody""" - access_token: str +class WebhookWorkflowRunInProgressType(TypedDict): + """workflow_run in_progress event""" + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType -__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) + +class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: list[ + Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None + ] + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "pending"] + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType + committer: ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType + ) + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: Union[str, None] + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunType", + "WebhookWorkflowRunInProgressType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0845.py b/githubkit/versions/ghec_v2022_11_28/types/group_0845.py index c0bad1ae1..7dd4fae9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0845.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0845.py @@ -9,13 +9,426 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0451 import EnterpriseWebhooksType +from .group_0452 import SimpleInstallationType +from .group_0453 import OrganizationSimpleWebhooksType +from .group_0454 import RepositoryWebhooksType +from .group_0461 import WebhooksWorkflowType -class ApplicationsClientIdTokenPostBodyType(TypedDict): - """ApplicationsClientIdTokenPostBody""" - access_token: str +class WebhookWorkflowRunRequestedType(TypedDict): + """workflow_run requested event""" + action: Literal["requested"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType -__all__ = ("ApplicationsClientIdTokenPostBodyType",) + +class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunType", + "WebhookWorkflowRunRequestedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0846.py b/githubkit/versions/ghec_v2022_11_28/types/group_0846.py index 8a68cb8df..5ba65712d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0846.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0846.py @@ -9,13 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ApplicationsClientIdTokenDeleteBodyType(TypedDict): - """ApplicationsClientIdTokenDeleteBody""" - - access_token: str - - -__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0008 import EnterpriseType +from .group_0009 import IntegrationPropPermissionsType + + +class AppManifestsCodeConversionsPostResponse201Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201""" + + id: int + slug: NotRequired[str] + node_id: str + client_id: str + owner: Union[SimpleUserType, EnterpriseType] + name: str + description: Union[str, None] + external_url: str + html_url: str + created_at: datetime + updated_at: datetime + permissions: IntegrationPropPermissionsType + events: list[str] + installations_count: NotRequired[int] + client_secret: str + webhook_secret: Union[Union[str, None], None] + pem: str + + +__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0847.py b/githubkit/versions/ghec_v2022_11_28/types/group_0847.py index 8e0b6ce68..528a915b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0847.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0847.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class ApplicationsClientIdTokenPatchBodyType(TypedDict): - """ApplicationsClientIdTokenPatchBody""" +class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201Allof1""" - access_token: str + client_id: str + client_secret: str + webhook_secret: Union[str, None] + pem: str -__all__ = ("ApplicationsClientIdTokenPatchBodyType",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0848.py b/githubkit/versions/ghec_v2022_11_28/types/group_0848.py index 84a716496..8f59ec945 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0848.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0848.py @@ -9,20 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0016 import AppPermissionsType +class AppHookConfigPatchBodyType(TypedDict): + """AppHookConfigPatchBody""" -class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): - """ApplicationsClientIdTokenScopedPostBody""" + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] - access_token: str - target: NotRequired[str] - target_id: NotRequired[int] - repositories: NotRequired[list[str]] - repository_ids: NotRequired[list[int]] - permissions: NotRequired[AppPermissionsType] - -__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) +__all__ = ("AppHookConfigPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0849.py b/githubkit/versions/ghec_v2022_11_28/types/group_0849.py index e3fd6e8a8..24eb9bac1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0849.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0849.py @@ -9,12 +9,11 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing_extensions import TypedDict -EmojisGetResponse200Type: TypeAlias = dict[str, Any] -"""EmojisGetResponse200 -""" + +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" -__all__ = ("EmojisGetResponse200Type",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0850.py b/githubkit/versions/ghec_v2022_11_28/types/group_0850.py index ed4fcf97f..e93cba9f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0850.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0850.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0017 import AppPermissionsType -class EnterprisesEnterpriseActionsPermissionsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsPermissionsPutBody""" - enabled_organizations: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] +class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): + """AppInstallationsInstallationIdAccessTokensPostBody""" + repositories: NotRequired[list[str]] + repository_ids: NotRequired[list[int]] + permissions: NotRequired[AppPermissionsType] -__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBodyType",) + +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0851.py b/githubkit/versions/ghec_v2022_11_28/types/group_0851.py index ea59b3562..fad60868e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0851.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0851.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0031 import OrganizationSimpleType +class ApplicationsClientIdGrantDeleteBodyType(TypedDict): + """ApplicationsClientIdGrantDeleteBody""" -class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + access_token: str - total_count: float - organizations: list[OrganizationSimpleType] - -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type",) +__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0852.py b/githubkit/versions/ghec_v2022_11_28/types/group_0852.py index e10af1aa1..c0bad1ae1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0852.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0852.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" +class ApplicationsClientIdTokenPostBodyType(TypedDict): + """ApplicationsClientIdTokenPostBody""" - selected_organization_ids: list[int] + access_token: str -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType",) +__all__ = ("ApplicationsClientIdTokenPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0853.py b/githubkit/versions/ghec_v2022_11_28/types/group_0853.py index 55afab864..8a68cb8df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0853.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0853.py @@ -9,33 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" +class ApplicationsClientIdTokenDeleteBodyType(TypedDict): + """ApplicationsClientIdTokenDeleteBody""" - total_count: float - runner_groups: list[RunnerGroupsEnterpriseType] + access_token: str -class RunnerGroupsEnterpriseType(TypedDict): - """RunnerGroupsEnterprise""" - - id: float - name: str - visibility: str - default: bool - selected_organizations_url: NotRequired[str] - runners_url: str - hosted_runners_url: NotRequired[str] - allows_public_repositories: bool - workflow_restrictions_read_only: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsEnterpriseType", -) +__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0854.py b/githubkit/versions/ghec_v2022_11_28/types/group_0854.py index 1be6a9c37..8e0b6ce68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0854.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0854.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" +class ApplicationsClientIdTokenPatchBodyType(TypedDict): + """ApplicationsClientIdTokenPatchBody""" - name: str - visibility: NotRequired[Literal["selected", "all"]] - selected_organization_ids: NotRequired[list[int]] - runners: NotRequired[list[int]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] + access_token: str -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",) +__all__ = ("ApplicationsClientIdTokenPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0855.py b/githubkit/versions/ghec_v2022_11_28/types/group_0855.py index 21d73d3f0..8351134ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0855.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0855.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0017 import AppPermissionsType -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" - name: NotRequired[str] - visibility: NotRequired[Literal["selected", "all"]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] +class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): + """ApplicationsClientIdTokenScopedPostBody""" + access_token: str + target: NotRequired[str] + target_id: NotRequired[int] + repositories: NotRequired[list[str]] + repository_ids: NotRequired[list[int]] + permissions: NotRequired[AppPermissionsType] -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType",) + +__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0856.py b/githubkit/versions/ghec_v2022_11_28/types/group_0856.py index 3afa48695..e3fd6e8a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0856.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0856.py @@ -9,20 +9,12 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import TypeAlias -from .group_0031 import OrganizationSimpleType - - -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" - - total_count: float - organizations: list[OrganizationSimpleType] +EmojisGetResponse200Type: TypeAlias = dict[str, Any] +"""EmojisGetResponse200 +""" -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", -) +__all__ = ("EmojisGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0857.py b/githubkit/versions/ghec_v2022_11_28/types/group_0857.py index ab43b41f7..041aa273c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0857.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0857.py @@ -11,15 +11,14 @@ from typing_extensions import TypedDict +from .group_0031 import ActionsHostedRunnerType -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" - selected_organization_ids: list[int] +class EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersGetResponse200""" + total_count: int + runners: list[ActionsHostedRunnerType] -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", -) + +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0858.py b/githubkit/versions/ghec_v2022_11_28/types/group_0858.py index 3fa2d3056..d8f90d3e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0858.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0858.py @@ -9,20 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0036 import RunnerType +class EnterprisesEnterpriseActionsHostedRunnersPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersPostBody""" -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + name: str + image: EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType + size: str + runner_group_id: int + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] - total_count: float - runners: list[RunnerType] + +class EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage + + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ + + id: NotRequired[str] + source: NotRequired[Literal["github", "partner", "custom"]] + version: NotRequired[Union[str, None]] __all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", + "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType", + "EnterprisesEnterpriseActionsHostedRunnersPostBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0859.py b/githubkit/versions/ghec_v2022_11_28/types/group_0859.py index f9cb41787..80161e9ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0859.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0859.py @@ -11,13 +11,18 @@ from typing_extensions import TypedDict +from .group_0032 import ActionsHostedRunnerImageType -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType( + +class EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type( TypedDict ): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" + """EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200""" - runners: list[int] + total_count: int + images: list[ActionsHostedRunnerImageType] -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) +__all__ = ( + "EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0860.py b/githubkit/versions/ghec_v2022_11_28/types/group_0860.py index 72c0c6329..b478dc35e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0860.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0860.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0036 import RunnerType +from .group_0032 import ActionsHostedRunnerImageType -class EnterprisesEnterpriseActionsRunnersGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersGetResponse200""" +class EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200""" - total_count: NotRequired[float] - runners: NotRequired[list[RunnerType]] + total_count: int + images: list[ActionsHostedRunnerImageType] -__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0861.py b/githubkit/versions/ghec_v2022_11_28/types/group_0861.py index 05462f38c..107964da3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0861.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0861.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0030 import ActionsHostedRunnerMachineSpecType -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" - name: str - runner_group_id: int - labels: list[str] - work_folder: NotRequired[str] +class EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200""" + total_count: int + machine_specs: list[ActionsHostedRunnerMachineSpecType] -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType",) + +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0862.py b/githubkit/versions/ghec_v2022_11_28/types/group_0862.py index 35fa09de5..1114dd36e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0862.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0862.py @@ -11,16 +11,12 @@ from typing_extensions import TypedDict -from .group_0036 import RunnerType +class EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200""" -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type( - TypedDict -): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" + total_count: int + platforms: list[str] - runner: RunnerType - encoded_jit_config: str - -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0863.py b/githubkit/versions/ghec_v2022_11_28/types/group_0863.py index 54058344d..929736d74 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0863.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0863.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0035 import RunnerLabelType +class EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" + name: NotRequired[str] + runner_group_id: NotRequired[int] + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] + image_version: NotRequired[Union[str, None]] - total_count: int - labels: list[RunnerLabelType] - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0864.py b/githubkit/versions/ghec_v2022_11_28/types/group_0864.py index a11685a46..ed4fcf97f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0864.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0864.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" +class EnterprisesEnterpriseActionsPermissionsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsPermissionsPutBody""" - labels: list[str] + enabled_organizations: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBodyType",) 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 55a7d1a67..fbbf5634a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0865.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0865.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0036 import OrganizationSimpleType -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] +class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + total_count: float + organizations: list[OrganizationSimpleType] -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType",) + +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type",) 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 f923c4258..e10af1aa1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0866.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0866.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0035 import RunnerLabelType +class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" + selected_organization_ids: list[int] - total_count: int - labels: list[RunnerLabelType] - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType",) 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 046aaeddc..5a30f5258 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0867.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0867.py @@ -9,41 +9,34 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0044 import ( - AmazonS3AccessKeysConfigType, - AzureBlobConfigType, - AzureHubConfigType, - GoogleCloudConfigType, +from typing_extensions import NotRequired, TypedDict + + +class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" + + total_count: float + runner_groups: list[RunnerGroupsEnterpriseType] + + +class RunnerGroupsEnterpriseType(TypedDict): + """RunnerGroupsEnterprise""" + + id: float + name: str + visibility: str + default: bool + selected_organizations_url: NotRequired[str] + runners_url: str + hosted_runners_url: NotRequired[str] + network_configuration_id: NotRequired[str] + allows_public_repositories: bool + workflow_restrictions_read_only: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + + +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", + "RunnerGroupsEnterpriseType", ) -from .group_0045 import AmazonS3OidcConfigType, SplunkConfigType -from .group_0046 import DatadogConfigType - - -class EnterprisesEnterpriseAuditLogStreamsPostBodyType(TypedDict): - """EnterprisesEnterpriseAuditLogStreamsPostBody""" - - enabled: bool - stream_type: Literal[ - "Azure Blob Storage", - "Azure Event Hubs", - "Amazon S3", - "Splunk", - "HTTPS Event Collector", - "Google Cloud Storage", - "Datadog", - ] - vendor_specific: Union[ - AzureBlobConfigType, - AzureHubConfigType, - AmazonS3OidcConfigType, - AmazonS3AccessKeysConfigType, - SplunkConfigType, - GoogleCloudConfigType, - DatadogConfigType, - ] - - -__all__ = ("EnterprisesEnterpriseAuditLogStreamsPostBodyType",) 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 75b580738..772221f28 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0868.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0868.py @@ -9,41 +9,21 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0044 import ( - AmazonS3AccessKeysConfigType, - AzureBlobConfigType, - AzureHubConfigType, - GoogleCloudConfigType, -) -from .group_0045 import AmazonS3OidcConfigType, SplunkConfigType -from .group_0046 import DatadogConfigType - - -class EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType(TypedDict): - """EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody""" - - enabled: bool - stream_type: Literal[ - "Azure Blob Storage", - "Azure Event Hubs", - "Amazon S3", - "Splunk", - "HTTPS Event Collector", - "Google Cloud Storage", - "Datadog", - ] - vendor_specific: Union[ - AzureBlobConfigType, - AzureHubConfigType, - AmazonS3OidcConfigType, - AmazonS3AccessKeysConfigType, - SplunkConfigType, - GoogleCloudConfigType, - DatadogConfigType, - ] - - -__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType",) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class EnterprisesEnterpriseActionsRunnerGroupsPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" + + name: str + visibility: NotRequired[Literal["selected", "all"]] + selected_organization_ids: NotRequired[list[int]] + runners: NotRequired[list[int]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + network_configuration_id: NotRequired[str] + + +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",) 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 ec679fcbf..7127368d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0869.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0869.py @@ -9,13 +9,19 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type(TypedDict): - """EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" - errors: NotRequired[list[str]] + name: NotRequired[str] + visibility: NotRequired[Literal["selected", "all"]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + network_configuration_id: NotRequired[Union[str, None]] -__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType",) 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 2bdddc34c..bbc5ea822 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0870.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0870.py @@ -9,15 +9,20 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0036 import OrganizationSimpleType -class EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type(TypedDict): - """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + total_count: float + organizations: list[OrganizationSimpleType] -__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",) + +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", +) 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 0c260062e..ab43b41f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0871.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0871.py @@ -9,60 +9,17 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0054 import CodeScanningDefaultSetupOptionsType - -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" - - name: str - description: str - advanced_security: NotRequired[Literal["enabled", "disabled"]] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - - -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType( TypedDict ): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu - bmitActionOptions - - Feature options for Automatic dependency submission - """ + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" - labeled_runners: NotRequired[bool] + selected_organization_ids: list[int] __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", ) 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 ef54cd7ca..7a7890a82 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0872.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0872.py @@ -9,62 +9,20 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0054 import CodeScanningDefaultSetupOptionsType +from .group_0041 import RunnerType -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType( +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type( TypedDict ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[Literal["enabled", "disabled"]] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen - dencyGraphAutosubmitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] + total_count: float + runners: list[RunnerType] __all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ) 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 ec6e0b6b9..f9cb41787 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0873.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0873.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType( +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType( TypedDict ): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - scope: Literal["all", "all_without_configurations"] + runners: list[int] -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", -) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) 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 47259f1fc..c98f8064a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0874.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0874.py @@ -9,20 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0041 import RunnerType -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] +class EnterprisesEnterpriseActionsRunnersGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersGetResponse200""" + total_count: NotRequired[float] + runners: NotRequired[list[RunnerType]] -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", -) + +__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",) 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 a835f63e3..05462f38c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0875.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0875.py @@ -9,25 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0053 import CodeSecurityConfigurationType +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons - e200 - """ + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] - configuration: NotRequired[CodeSecurityConfigurationType] - -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType",) 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 669b21726..dc1b4cf57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0876.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0876.py @@ -9,22 +9,18 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0041 import RunnerType -class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType(TypedDict): - """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" - advanced_security_enabled_for_new_repositories: NotRequired[bool] - advanced_security_enabled_new_user_namespace_repos: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - secret_scanning_non_provider_patterns_enabled_for_new_repositories: NotRequired[ - Union[bool, None] - ] +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type( + TypedDict +): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" + runner: RunnerType + encoded_jit_config: str -__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",) + +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type",) 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 510a39b93..c76b3c8f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0877.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0877.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0061 import CopilotSeatDetailsType +from .group_0040 import RunnerLabelType -class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" - total_seats: NotRequired[int] - seats: NotRequired[list[CopilotSeatDetailsType]] + total_count: int + labels: list[RunnerLabelType] -__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type",) 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 ce2db402f..a11685a46 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0878.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0878.py @@ -11,13 +11,11 @@ from typing_extensions import TypedDict -from .group_0070 import CustomPropertyType +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" -class EnterprisesEnterprisePropertiesSchemaPatchBodyType(TypedDict): - """EnterprisesEnterprisePropertiesSchemaPatchBody""" + labels: list[str] - properties: list[CustomPropertyType] - -__all__ = ("EnterprisesEnterprisePropertiesSchemaPatchBodyType",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType",) 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 08de29d50..55a7d1a67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0879.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0879.py @@ -9,83 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0072 import RepositoryRulesetBypassActorType -from .group_0083 import EnterpriseRulesetConditionsOneof0Type -from .group_0084 import EnterpriseRulesetConditionsOneof1Type -from .group_0085 import EnterpriseRulesetConditionsOneof2Type -from .group_0086 import EnterpriseRulesetConditionsOneof3Type -from .group_0087 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0088 import RepositoryRuleUpdateType -from .group_0090 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0091 import RepositoryRuleMergeQueueType -from .group_0093 import RepositoryRuleRequiredDeploymentsType -from .group_0096 import RepositoryRulePullRequestType -from .group_0098 import RepositoryRuleRequiredStatusChecksType -from .group_0100 import RepositoryRuleCommitMessagePatternType -from .group_0102 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0104 import RepositoryRuleCommitterEmailPatternType -from .group_0106 import RepositoryRuleBranchNamePatternType -from .group_0108 import RepositoryRuleTagNamePatternType -from .group_0111 import RepositoryRuleWorkflowsType -from .group_0113 import RepositoryRuleCodeScanningType -from .group_0115 import RepositoryRuleOneof18Type +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" -class EnterprisesEnterpriseRulesetsPostBodyType(TypedDict): - """EnterprisesEnterpriseRulesetsPostBody""" + labels: list[str] - name: str - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - EnterpriseRulesetConditionsOneof0Type, - EnterpriseRulesetConditionsOneof1Type, - EnterpriseRulesetConditionsOneof2Type, - EnterpriseRulesetConditionsOneof3Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("EnterprisesEnterpriseRulesetsPostBodyType",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType",) 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 a38360c9c..438f14e83 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0880.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0880.py @@ -9,83 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0072 import RepositoryRulesetBypassActorType -from .group_0083 import EnterpriseRulesetConditionsOneof0Type -from .group_0084 import EnterpriseRulesetConditionsOneof1Type -from .group_0085 import EnterpriseRulesetConditionsOneof2Type -from .group_0086 import EnterpriseRulesetConditionsOneof3Type -from .group_0087 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0088 import RepositoryRuleUpdateType -from .group_0090 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0091 import RepositoryRuleMergeQueueType -from .group_0093 import RepositoryRuleRequiredDeploymentsType -from .group_0096 import RepositoryRulePullRequestType -from .group_0098 import RepositoryRuleRequiredStatusChecksType -from .group_0100 import RepositoryRuleCommitMessagePatternType -from .group_0102 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0104 import RepositoryRuleCommitterEmailPatternType -from .group_0106 import RepositoryRuleBranchNamePatternType -from .group_0108 import RepositoryRuleTagNamePatternType -from .group_0111 import RepositoryRuleWorkflowsType -from .group_0113 import RepositoryRuleCodeScanningType -from .group_0115 import RepositoryRuleOneof18Type +from .group_0040 import RunnerLabelType -class EnterprisesEnterpriseRulesetsRulesetIdPutBodyType(TypedDict): - """EnterprisesEnterpriseRulesetsRulesetIdPutBody""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - EnterpriseRulesetConditionsOneof0Type, - EnterpriseRulesetConditionsOneof1Type, - EnterpriseRulesetConditionsOneof2Type, - EnterpriseRulesetConditionsOneof3Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] + total_count: int + labels: list[RunnerLabelType] -__all__ = ("EnterprisesEnterpriseRulesetsRulesetIdPutBodyType",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type",) 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 a578709c2..c1e82e197 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0881.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0881.py @@ -9,17 +9,41 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import TypedDict - -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType( - TypedDict -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" - - users: list[str] - - -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType", +from .group_0049 import ( + AmazonS3AccessKeysConfigType, + AzureBlobConfigType, + AzureHubConfigType, + GoogleCloudConfigType, ) +from .group_0050 import AmazonS3OidcConfigType, SplunkConfigType +from .group_0051 import DatadogConfigType + + +class EnterprisesEnterpriseAuditLogStreamsPostBodyType(TypedDict): + """EnterprisesEnterpriseAuditLogStreamsPostBody""" + + enabled: bool + stream_type: Literal[ + "Azure Blob Storage", + "Azure Event Hubs", + "Amazon S3", + "Splunk", + "HTTPS Event Collector", + "Google Cloud Storage", + "Datadog", + ] + vendor_specific: Union[ + AzureBlobConfigType, + AzureHubConfigType, + AmazonS3OidcConfigType, + AmazonS3AccessKeysConfigType, + SplunkConfigType, + GoogleCloudConfigType, + DatadogConfigType, + ] + + +__all__ = ("EnterprisesEnterpriseAuditLogStreamsPostBodyType",) 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 06bb4eff1..add822fe3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0882.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0882.py @@ -9,19 +9,41 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict - - -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type( - TypedDict -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 - 00 - """ - - message: NotRequired[str] - - -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type", +from typing import Literal, Union +from typing_extensions import TypedDict + +from .group_0049 import ( + AmazonS3AccessKeysConfigType, + AzureBlobConfigType, + AzureHubConfigType, + GoogleCloudConfigType, ) +from .group_0050 import AmazonS3OidcConfigType, SplunkConfigType +from .group_0051 import DatadogConfigType + + +class EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType(TypedDict): + """EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody""" + + enabled: bool + stream_type: Literal[ + "Azure Blob Storage", + "Azure Event Hubs", + "Amazon S3", + "Splunk", + "HTTPS Event Collector", + "Google Cloud Storage", + "Datadog", + ] + vendor_specific: Union[ + AzureBlobConfigType, + AzureHubConfigType, + AmazonS3OidcConfigType, + AmazonS3AccessKeysConfigType, + SplunkConfigType, + GoogleCloudConfigType, + DatadogConfigType, + ] + + +__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType",) 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 2cb1c690c..ec679fcbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0883.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0883.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType( - TypedDict -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" +class EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type(TypedDict): + """EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422""" - users: list[str] + errors: NotRequired[list[str]] -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType", -) +__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type",) 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 38414b976..2bdddc34c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0884.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0884.py @@ -12,16 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type( - TypedDict -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons - e200 - """ +class EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type(TypedDict): + """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" + code: NotRequired[str] message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type", -) +__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",) 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 2a811b378..696cc37ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0885.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0885.py @@ -9,29 +9,60 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0059 import CodeScanningDefaultSetupOptionsType -class GistsPostBodyType(TypedDict): - """GistsPostBody""" - description: NotRequired[str] - files: GistsPostBodyPropFilesType - public: NotRequired[Union[bool, Literal["true", "false"]]] +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + name: str + description: str + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -GistsPostBodyPropFilesType: TypeAlias = dict[str, Any] -"""GistsPostBodyPropFiles -Names and content for the files that make up the gist +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu + bmitActionOptions -Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} -""" + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] __all__ = ( - "GistsPostBodyPropFilesType", - "GistsPostBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", ) 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 cad5cbf2a..623ec3aba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0886.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0886.py @@ -9,27 +9,62 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0059 import CodeScanningDefaultSetupOptionsType -class GistsGistIdGetResponse403Type(TypedDict): - """GistsGistIdGetResponse403""" - block: NotRequired[GistsGistIdGetResponse403PropBlockType] - message: NotRequired[str] - documentation_url: NotRequired[str] +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -class GistsGistIdGetResponse403PropBlockType(TypedDict): - """GistsGistIdGetResponse403PropBlock""" - reason: NotRequired[str] - created_at: NotRequired[str] - html_url: NotRequired[Union[str, None]] +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen + dencyGraphAutosubmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] __all__ = ( - "GistsGistIdGetResponse403PropBlockType", - "GistsGistIdGetResponse403Type", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", ) 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 e5f3979ec..ec6e0b6b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0887.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0887.py @@ -9,35 +9,18 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class GistsGistIdPatchBodyType(TypedDict): - """GistsGistIdPatchBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - description: NotRequired[str] - files: NotRequired[GistsGistIdPatchBodyPropFilesType] - - -GistsGistIdPatchBodyPropFilesType: TypeAlias = dict[str, Any] -"""GistsGistIdPatchBodyPropFiles - -The gist files to be updated, renamed, or deleted. Each `key` must match the -current filename -(including extension) of the targeted gist file. For example: `hello.py`. - -To delete a file, set the whole file to null. For example: `hello.py : null`. -The file will also be -deleted if the specified object does not contain at least one of `content` or -`filename`. - -Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} -""" + scope: Literal["all", "all_without_configurations"] __all__ = ( - "GistsGistIdPatchBodyPropFilesType", - "GistsGistIdPatchBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ) 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 054661ac7..47259f1fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0888.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0888.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class GistsGistIdCommentsPostBodyType(TypedDict): - """GistsGistIdCommentsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - body: str + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] -__all__ = ("GistsGistIdCommentsPostBodyType",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", +) 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 39ac46ae2..e44c5c3a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0889.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0889.py @@ -9,13 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0058 import CodeSecurityConfigurationType -class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): - """GistsGistIdCommentsCommentIdPatchBody""" - body: str +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons + e200 + """ + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) + +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) 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 10e6b69c7..669b21726 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0890.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0890.py @@ -9,11 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class GistsGistIdStarGetResponse404Type(TypedDict): - """GistsGistIdStarGetResponse404""" +class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType(TypedDict): + """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" + advanced_security_enabled_for_new_repositories: NotRequired[bool] + advanced_security_enabled_new_user_namespace_repos: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] + secret_scanning_non_provider_patterns_enabled_for_new_repositories: NotRequired[ + Union[bool, None] + ] -__all__ = ("GistsGistIdStarGetResponse404Type",) + +__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",) 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 c8981b265..a4d1dd917 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0891.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0891.py @@ -11,15 +11,14 @@ from typing_extensions import NotRequired, TypedDict -from .group_0019 import RepositoryType +from .group_0066 import CopilotSeatDetailsType -class InstallationRepositoriesGetResponse200Type(TypedDict): - """InstallationRepositoriesGetResponse200""" +class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" - total_count: int - repositories: list[RepositoryType] - repository_selection: NotRequired[str] + total_seats: NotRequired[int] + seats: NotRequired[list[CopilotSeatDetailsType]] -__all__ = ("InstallationRepositoriesGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",) 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 cb94d812e..0828e2c81 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0892.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0892.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0075 import NetworkConfigurationType -class MarkdownPostBodyType(TypedDict): - """MarkdownPostBody""" - text: str - mode: NotRequired[Literal["markdown", "gfm"]] - context: NotRequired[str] +class EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseNetworkConfigurationsGetResponse200""" + total_count: int + network_configurations: list[NetworkConfigurationType] -__all__ = ("MarkdownPostBodyType",) + +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type",) 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 f9c51f36b..8140a1e62 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0893.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0893.py @@ -9,15 +9,16 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class NotificationsPutBodyType(TypedDict): - """NotificationsPutBody""" +class EnterprisesEnterpriseNetworkConfigurationsPostBodyType(TypedDict): + """EnterprisesEnterpriseNetworkConfigurationsPostBody""" - last_read_at: NotRequired[datetime] - read: NotRequired[bool] + name: str + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: list[str] -__all__ = ("NotificationsPutBodyType",) +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsPostBodyType",) 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 70705f433..021c97df5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0894.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0894.py @@ -9,13 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class NotificationsPutResponse202Type(TypedDict): - """NotificationsPutResponse202""" +class EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType( + TypedDict +): + """EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody""" - message: NotRequired[str] + name: NotRequired[str] + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: NotRequired[list[str]] -__all__ = ("NotificationsPutResponse202Type",) +__all__ = ( + "EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType", +) 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 0dbd53ac7..abc77b647 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0895.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0895.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0077 import CustomPropertyType -class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): - """NotificationsThreadsThreadIdSubscriptionPutBody""" - ignored: NotRequired[bool] +class EnterprisesEnterprisePropertiesSchemaPatchBodyType(TypedDict): + """EnterprisesEnterprisePropertiesSchemaPatchBody""" + properties: list[CustomPropertyType] -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) + +__all__ = ("EnterprisesEnterprisePropertiesSchemaPatchBodyType",) 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 c1da27ee4..78f7274a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0896.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0896.py @@ -9,16 +9,83 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0150 import OrganizationCustomRepositoryRoleType +from .group_0079 import RepositoryRulesetBypassActorType +from .group_0090 import EnterpriseRulesetConditionsOneof0Type +from .group_0091 import EnterpriseRulesetConditionsOneof1Type +from .group_0092 import EnterpriseRulesetConditionsOneof2Type +from .group_0093 import EnterpriseRulesetConditionsOneof3Type +from .group_0094 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0095 import RepositoryRuleUpdateType +from .group_0097 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0098 import RepositoryRuleMergeQueueType +from .group_0100 import RepositoryRuleRequiredDeploymentsType +from .group_0103 import RepositoryRulePullRequestType +from .group_0105 import RepositoryRuleRequiredStatusChecksType +from .group_0107 import RepositoryRuleCommitMessagePatternType +from .group_0109 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0111 import RepositoryRuleCommitterEmailPatternType +from .group_0113 import RepositoryRuleBranchNamePatternType +from .group_0115 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRuleCodeScanningType +from .group_0122 import RepositoryRuleOneof18Type -class OrganizationsOrganizationIdCustomRolesGetResponse200Type(TypedDict): - """OrganizationsOrganizationIdCustomRolesGetResponse200""" +class EnterprisesEnterpriseRulesetsPostBodyType(TypedDict): + """EnterprisesEnterpriseRulesetsPostBody""" - total_count: NotRequired[int] - custom_roles: NotRequired[list[OrganizationCustomRepositoryRoleType]] + name: str + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + EnterpriseRulesetConditionsOneof0Type, + EnterpriseRulesetConditionsOneof1Type, + EnterpriseRulesetConditionsOneof2Type, + EnterpriseRulesetConditionsOneof3Type, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseRulesetsPostBodyType",) 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 f0f3bfeba..d0d18bd7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0897.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0897.py @@ -9,48 +9,83 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0079 import RepositoryRulesetBypassActorType +from .group_0090 import EnterpriseRulesetConditionsOneof0Type +from .group_0091 import EnterpriseRulesetConditionsOneof1Type +from .group_0092 import EnterpriseRulesetConditionsOneof2Type +from .group_0093 import EnterpriseRulesetConditionsOneof3Type +from .group_0094 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0095 import RepositoryRuleUpdateType +from .group_0097 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0098 import RepositoryRuleMergeQueueType +from .group_0100 import RepositoryRuleRequiredDeploymentsType +from .group_0103 import RepositoryRulePullRequestType +from .group_0105 import RepositoryRuleRequiredStatusChecksType +from .group_0107 import RepositoryRuleCommitMessagePatternType +from .group_0109 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0111 import RepositoryRuleCommitterEmailPatternType +from .group_0113 import RepositoryRuleBranchNamePatternType +from .group_0115 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRuleCodeScanningType +from .group_0122 import RepositoryRuleOneof18Type -class OrgsOrgPatchBodyType(TypedDict): - """OrgsOrgPatchBody""" - billing_email: NotRequired[str] - company: NotRequired[str] - email: NotRequired[str] - twitter_username: NotRequired[str] - location: NotRequired[str] +class EnterprisesEnterpriseRulesetsRulesetIdPutBodyType(TypedDict): + """EnterprisesEnterpriseRulesetsRulesetIdPutBody""" + name: NotRequired[str] - description: NotRequired[str] - has_organization_projects: NotRequired[bool] - has_repository_projects: NotRequired[bool] - default_repository_permission: NotRequired[ - Literal["read", "write", "admin", "none"] + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + EnterpriseRulesetConditionsOneof0Type, + EnterpriseRulesetConditionsOneof1Type, + EnterpriseRulesetConditionsOneof2Type, + EnterpriseRulesetConditionsOneof3Type, + ] ] - members_can_create_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_public_repositories: NotRequired[bool] - members_allowed_repository_creation_type: NotRequired[ - Literal["all", "private", "none"] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - blog: NotRequired[str] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[str] - secret_scanning_validity_checks_enabled: NotRequired[bool] - deploy_keys_enabled_for_repositories: NotRequired[bool] - - -__all__ = ("OrgsOrgPatchBodyType",) + + +__all__ = ("EnterprisesEnterpriseRulesetsRulesetIdPutBodyType",) 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 c9f8884a9..a578709c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0898.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0898.py @@ -12,25 +12,14 @@ from typing_extensions import TypedDict -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" - total_count: int - repository_cache_usages: list[ActionsCacheUsageByRepositoryType] - - -class ActionsCacheUsageByRepositoryType(TypedDict): - """Actions Cache Usage by repository - - GitHub Actions Cache Usage by repository. - """ - - full_name: str - active_caches_size_in_bytes: int - active_caches_count: int + users: list[str] __all__ = ( - "ActionsCacheUsageByRepositoryType", - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType", ) 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 dfdea43ec..06bb4eff1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0899.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0899.py @@ -9,15 +9,19 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsPermissionsPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsPutBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 + 00 + """ - enabled_repositories: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + message: NotRequired[str] -__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type", +) 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 e3ced0e8f..2cb1c690c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0900.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0900.py @@ -11,14 +11,15 @@ from typing_extensions import TypedDict -from .group_0019 import RepositoryType +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" -class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + users: list[str] - total_count: float - repositories: list[RepositoryType] - -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType", +) 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 a2735688c..38414b976 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0901.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0901.py @@ -9,13 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons + e200 + """ - selected_repository_ids: list[int] + message: NotRequired[str] -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type", +) 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 9daaa8c91..2a811b378 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0902.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0902.py @@ -9,35 +9,29 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsGetResponse200""" +class GistsPostBodyType(TypedDict): + """GistsPostBody""" - total_count: float - runner_groups: list[RunnerGroupsOrgType] + description: NotRequired[str] + files: GistsPostBodyPropFilesType + public: NotRequired[Union[bool, Literal["true", "false"]]] -class RunnerGroupsOrgType(TypedDict): - """RunnerGroupsOrg""" +GistsPostBodyPropFilesType: TypeAlias = dict[str, Any] +"""GistsPostBodyPropFiles - id: float - name: str - visibility: str - default: bool - selected_repositories_url: NotRequired[str] - runners_url: str - hosted_runners_url: NotRequired[str] - inherited: bool - inherited_allows_public_repositories: NotRequired[bool] - allows_public_repositories: bool - workflow_restrictions_read_only: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] +Names and content for the files that make up the gist + +Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} +""" __all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsOrgType", + "GistsPostBodyPropFilesType", + "GistsPostBodyType", ) 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 0648fe2ea..cad5cbf2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0903.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0903.py @@ -9,20 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsPostBody""" +class GistsGistIdGetResponse403Type(TypedDict): + """GistsGistIdGetResponse403""" - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - selected_repository_ids: NotRequired[list[int]] - runners: NotRequired[list[int]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] + block: NotRequired[GistsGistIdGetResponse403PropBlockType] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) +class GistsGistIdGetResponse403PropBlockType(TypedDict): + """GistsGistIdGetResponse403PropBlock""" + + reason: NotRequired[str] + created_at: NotRequired[str] + html_url: NotRequired[Union[str, None]] + + +__all__ = ( + "GistsGistIdGetResponse403PropBlockType", + "GistsGistIdGetResponse403Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0904.py b/githubkit/versions/ghec_v2022_11_28/types/group_0904.py index fc632cf85..e5f3979ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0904.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0904.py @@ -9,18 +9,35 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" +class GistsGistIdPatchBodyType(TypedDict): + """GistsGistIdPatchBody""" - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] + description: NotRequired[str] + files: NotRequired[GistsGistIdPatchBodyPropFilesType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) +GistsGistIdPatchBodyPropFilesType: TypeAlias = dict[str, Any] +"""GistsGistIdPatchBodyPropFiles + +The gist files to be updated, renamed, or deleted. Each `key` must match the +current filename +(including extension) of the targeted gist file. For example: `hello.py`. + +To delete a file, set the whole file to null. For example: `hello.py : null`. +The file will also be +deleted if the specified object does not contain at least one of `content` or +`filename`. + +Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} +""" + + +__all__ = ( + "GistsGistIdPatchBodyPropFilesType", + "GistsGistIdPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0905.py b/githubkit/versions/ghec_v2022_11_28/types/group_0905.py index bf0d17a98..054661ac7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0905.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0905.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0147 import MinimalRepositoryType +class GistsGistIdCommentsPostBodyType(TypedDict): + """GistsGistIdCommentsPostBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + body: str - total_count: float - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) +__all__ = ("GistsGistIdCommentsPostBodyType",) 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 0ab50bd6d..39ac46ae2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0906.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0906.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" +class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): + """GistsGistIdCommentsCommentIdPatchBody""" - selected_repository_ids: list[int] + body: str -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) 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 132e5b55a..10e6b69c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0907.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0907.py @@ -11,14 +11,9 @@ from typing_extensions import TypedDict -from .group_0036 import RunnerType +class GistsGistIdStarGetResponse404Type(TypedDict): + """GistsGistIdStarGetResponse404""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - total_count: float - runners: list[RunnerType] - - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) +__all__ = ("GistsGistIdStarGetResponse404Type",) 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 bb10bbf9a..a168e4016 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0908.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0908.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0020 import RepositoryType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: list[int] +class InstallationRepositoriesGetResponse200Type(TypedDict): + """InstallationRepositoriesGetResponse200""" + total_count: int + repositories: list[RepositoryType] + repository_selection: NotRequired[str] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) + +__all__ = ("InstallationRepositoriesGetResponse200Type",) 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 b2bf59829..cb94d812e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0909.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0909.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0036 import RunnerType +class MarkdownPostBodyType(TypedDict): + """MarkdownPostBody""" -class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersGetResponse200""" + text: str + mode: NotRequired[Literal["markdown", "gfm"]] + context: NotRequired[str] - total_count: int - runners: list[RunnerType] - -__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) +__all__ = ("MarkdownPostBodyType",) 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 5e08d0dd4..f9c51f36b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0910.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0910.py @@ -9,16 +9,15 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class NotificationsPutBodyType(TypedDict): + """NotificationsPutBody""" - name: str - runner_group_id: int - labels: list[str] - work_folder: NotRequired[str] + last_read_at: NotRequired[datetime] + read: NotRequired[bool] -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("NotificationsPutBodyType",) 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 86d454795..70705f433 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0911.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0911.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class NotificationsPutResponse202Type(TypedDict): + """NotificationsPutResponse202""" - labels: list[str] + message: NotRequired[str] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("NotificationsPutResponse202Type",) 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 1e050b2e1..0dbd53ac7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0912.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0912.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" +class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): + """NotificationsThreadsThreadIdSubscriptionPutBody""" - labels: list[str] + ignored: NotRequired[bool] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) 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 f17121488..0921b3e7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0913.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0913.py @@ -9,32 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0157 import OrganizationCustomRepositoryRoleType -class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsGetResponse200""" - total_count: int - secrets: list[OrganizationActionsSecretType] +class OrganizationsOrganizationIdCustomRolesGetResponse200Type(TypedDict): + """OrganizationsOrganizationIdCustomRolesGetResponse200""" + total_count: NotRequired[int] + custom_roles: NotRequired[list[OrganizationCustomRepositoryRoleType]] -class OrganizationActionsSecretType(TypedDict): - """Actions Secret for an Organization - Secrets for GitHub Actions for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "OrganizationActionsSecretType", - "OrgsOrgActionsSecretsGetResponse200Type", -) +__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",) 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 e812089e8..f0f3bfeba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0914.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0914.py @@ -13,13 +13,44 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNamePutBody""" - - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] - - -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) +class OrgsOrgPatchBodyType(TypedDict): + """OrgsOrgPatchBody""" + + billing_email: NotRequired[str] + company: NotRequired[str] + email: NotRequired[str] + twitter_username: NotRequired[str] + location: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + default_repository_permission: NotRequired[ + Literal["read", "write", "admin", "none"] + ] + members_can_create_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_public_repositories: NotRequired[bool] + members_allowed_repository_creation_type: NotRequired[ + Literal["all", "private", "none"] + ] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + blog: NotRequired[str] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[str] + secret_scanning_validity_checks_enabled: NotRequired[bool] + deploy_keys_enabled_for_repositories: NotRequired[bool] + + +__all__ = ("OrgsOrgPatchBodyType",) 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 00aeaa41b..c9f8884a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0915.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0915.py @@ -11,14 +11,26 @@ from typing_extensions import TypedDict -from .group_0147 import MinimalRepositoryType - -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" total_count: int - repositories: list[MinimalRepositoryType] + repository_cache_usages: list[ActionsCacheUsageByRepositoryType] + + +class ActionsCacheUsageByRepositoryType(TypedDict): + """Actions Cache Usage by repository + + GitHub Actions Cache Usage by repository. + """ + + full_name: str + active_caches_size_in_bytes: int + active_caches_count: int -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ( + "ActionsCacheUsageByRepositoryType", + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", +) 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 91774da55..c6bcde5bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0916.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0916.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0031 import ActionsHostedRunnerType -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: list[int] +class OrgsOrgActionsHostedRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersGetResponse200""" + total_count: int + runners: list[ActionsHostedRunnerType] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200Type",) 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 feb95bc8c..0244f5750 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0917.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0917.py @@ -9,33 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesGetResponse200""" +class OrgsOrgActionsHostedRunnersPostBodyType(TypedDict): + """OrgsOrgActionsHostedRunnersPostBody""" - total_count: int - variables: list[OrganizationActionsVariableType] + name: str + image: OrgsOrgActionsHostedRunnersPostBodyPropImageType + size: str + runner_group_id: int + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] -class OrganizationActionsVariableType(TypedDict): - """Actions Variable for an Organization +class OrgsOrgActionsHostedRunnersPostBodyPropImageType(TypedDict): + """OrgsOrgActionsHostedRunnersPostBodyPropImage - Organization variable for GitHub Actions. + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. """ - name: str - value: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + id: NotRequired[str] + source: NotRequired[Literal["github", "partner", "custom"]] + version: NotRequired[Union[str, None]] __all__ = ( - "OrganizationActionsVariableType", - "OrgsOrgActionsVariablesGetResponse200Type", + "OrgsOrgActionsHostedRunnersPostBodyPropImageType", + "OrgsOrgActionsHostedRunnersPostBodyType", ) 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 35d9aa84a..40e9ab690 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0918.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0918.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0032 import ActionsHostedRunnerImageType -class OrgsOrgActionsVariablesPostBodyType(TypedDict): - """OrgsOrgActionsVariablesPostBody""" - name: str - value: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" + total_count: int + images: list[ActionsHostedRunnerImageType] -__all__ = ("OrgsOrgActionsVariablesPostBodyType",) + +__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type",) 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 32397b063..54fbcec10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0919.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0919.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0032 import ActionsHostedRunnerImageType -class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): - """OrgsOrgActionsVariablesNamePatchBody""" - name: NotRequired[str] - value: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" + total_count: int + images: list[ActionsHostedRunnerImageType] -__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) + +__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",) 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 06527537f..32724978e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0920.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0920.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0147 import MinimalRepositoryType +from .group_0030 import ActionsHostedRunnerMachineSpecType -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" +class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" total_count: int - repositories: list[MinimalRepositoryType] + machine_specs: list[ActionsHostedRunnerMachineSpecType] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",) 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 7b7f6fc84..f96c7b054 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0921.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0921.py @@ -12,10 +12,11 @@ from typing_extensions import TypedDict -class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" - selected_repository_ids: list[int] + total_count: int + platforms: list[str] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",) 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 5fba98e1e..363057afe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0922.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0922.py @@ -9,70 +9,18 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): - """OrgsOrgAttestationsSubjectDigestGetResponse200""" +class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): + """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" - attestations: NotRequired[ - list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] - ] + name: NotRequired[str] + runner_group_id: NotRequired[int] + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] + image_version: NotRequired[Union[str, None]] -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: NotRequired[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( - TypedDict -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType - ] - - -OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ - str, Any -] -"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro -pVerificationMaterial -""" - - -OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro -pDsseEnvelope -""" - - -__all__ = ( - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "OrgsOrgAttestationsSubjectDigestGetResponse200Type", -) +__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",) 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 fa4ce7e2f..dfdea43ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0923.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0923.py @@ -9,95 +9,15 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0054 import CodeScanningDefaultSetupOptionsType +class OrgsOrgActionsPermissionsPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsPutBody""" -class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsPostBody""" + enabled_repositories: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - name: str - description: str - advanced_security: NotRequired[Literal["enabled", "disabled"]] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti - ons - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - s - - Feature options for secret scanning delegated bypass - """ - - reviewers: NotRequired[ - list[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType - ] - ] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - sPropReviewersItems - """ - - reviewer_id: int - reviewer_type: Literal["TEAM", "ROLE"] - - -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyType", -) +__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) 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 a177d65ec..484b23498 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0924.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0924.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0020 import RepositoryType -class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + total_count: float + repositories: list[RepositoryType] -__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) + +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) 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 f878db4a0..a2735688c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0925.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0925.py @@ -9,95 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0054 import CodeScanningDefaultSetupOptionsType +class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + selected_repository_ids: list[int] - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[Literal["enabled", "disabled"]] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto - submitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: NotRequired[ - list[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType - ] - ] - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptionsPropReviewersItems - """ - - reviewer_id: int - reviewer_type: Literal["TEAM", "ROLE"] - - -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", -) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) 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 2ad011ac8..507ed1dee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0926.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0926.py @@ -9,17 +9,36 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsGetResponse200""" - scope: Literal[ - "all", "all_without_configurations", "public", "private_or_internal", "selected" - ] - selected_repository_ids: NotRequired[list[int]] + total_count: float + runner_groups: list[RunnerGroupsOrgType] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) +class RunnerGroupsOrgType(TypedDict): + """RunnerGroupsOrg""" + + id: float + name: str + visibility: str + default: bool + selected_repositories_url: NotRequired[str] + runners_url: str + hosted_runners_url: NotRequired[str] + network_configuration_id: NotRequired[str] + inherited: bool + inherited_allows_public_repositories: NotRequired[bool] + allows_public_repositories: bool + workflow_restrictions_read_only: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + + +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200Type", + "RunnerGroupsOrgType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0927.py b/githubkit/versions/ghec_v2022_11_28/types/group_0927.py index ed69b7f35..28b84e166 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0927.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0927.py @@ -13,12 +13,17 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsPostBody""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] + name: str + visibility: NotRequired[Literal["selected", "all", "private"]] + selected_repository_ids: NotRequired[list[int]] + runners: NotRequired[list[int]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + network_configuration_id: NotRequired[str] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) 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 f027c546f..d7ec24fe4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0928.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0928.py @@ -9,23 +9,19 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0053 import CodeSecurityConfigurationType +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" + name: str + visibility: NotRequired[Literal["selected", "all", "private"]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + network_configuration_id: NotRequired[Union[str, None]] - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] - configuration: NotRequired[CodeSecurityConfigurationType] - -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) 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 905b1751c..3542c5d01 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0929.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0929.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0157 import CodespaceType +from .group_0031 import ActionsHostedRunnerType -class OrgsOrgCodespacesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" - total_count: int - codespaces: list[CodespaceType] + total_count: float + runners: list[ActionsHostedRunnerType] -__all__ = ("OrgsOrgCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type",) 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 1234cdbd0..f14f09ffb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0930.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0930.py @@ -9,20 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0154 import MinimalRepositoryType -class OrgsOrgCodespacesAccessPutBodyType(TypedDict): - """OrgsOrgCodespacesAccessPutBody""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] - selected_usernames: NotRequired[list[str]] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + total_count: float + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) 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 214a3ca92..0ab50bd6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0931.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0931.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - selected_usernames: list[str] + selected_repository_ids: list[int] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) 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 1aec188b7..4b286a4c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0932.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0932.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0041 import RunnerType -class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - selected_usernames: list[str] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: float + runners: list[RunnerType] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) 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 b5051f775..bb10bbf9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0933.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0933.py @@ -9,32 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - total_count: int - secrets: list[CodespacesOrgSecretType] + runners: list[int] -class CodespacesOrgSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "CodespacesOrgSecretType", - "OrgsOrgCodespacesSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) 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 8eb7cb359..b2064758b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0934.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0934.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0041 import RunnerType -class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersGetResponse200""" + total_count: int + runners: list[RunnerType] -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) + +__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) 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 20abca0b8..5e08d0dd4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0935.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0935.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0147 import MinimalRepositoryType +class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) 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 9d6f25331..86d454795 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0936.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0936.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - selected_repository_ids: list[int] + labels: list[str] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) 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 753aa1983..1e050b2e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0937.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0937.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0061 import CopilotSeatDetailsType +class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" -class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSeatsGetResponse200""" + labels: list[str] - total_seats: NotRequired[int] - seats: NotRequired[list[CopilotSeatDetailsType]] - -__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) 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 a2e3b4a72..f17121488 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,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" +class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsGetResponse200""" - selected_teams: list[str] + total_count: int + secrets: list[OrganizationActionsSecretType] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) +class OrganizationActionsSecretType(TypedDict): + """Actions Secret for an Organization + + Secrets for GitHub Actions for an organization. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrganizationActionsSecretType", + "OrgsOrgActionsSecretsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0939.py b/githubkit/versions/ghec_v2022_11_28/types/group_0939.py index 76837fcdc..6f2b7d0ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0939.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0939.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNamePutBody""" - The total number of seats created for members of the specified team(s). - """ + encrypted_value: str + key_id: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) 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 dba449159..24bd5aa15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0940.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0940.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0154 import MinimalRepositoryType -class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - selected_teams: list[str] +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) + +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) 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 1b12f6a95..91774da55 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0941.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0941.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - The total number of seats set to "pending cancellation" for members of the - specified team(s). - """ + selected_repository_ids: list[int] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) 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 9a511ba2a..feb95bc8c 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,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesGetResponse200""" - selected_usernames: list[str] + total_count: int + variables: list[OrganizationActionsVariableType] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) +class OrganizationActionsVariableType(TypedDict): + """Actions Variable for an Organization + + Organization variable for GitHub Actions. + """ + + name: str + value: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrganizationActionsVariableType", + "OrgsOrgActionsVariablesGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0943.py b/githubkit/versions/ghec_v2022_11_28/types/group_0943.py index 651754049..35d9aa84a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0943.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0943.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgActionsVariablesPostBodyType(TypedDict): + """OrgsOrgActionsVariablesPostBody""" - The total number of seats created for the specified user(s). - """ + name: str + value: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) +__all__ = ("OrgsOrgActionsVariablesPostBodyType",) 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 dddfa0789..32397b063 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0944.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0944.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): + """OrgsOrgActionsVariablesNamePatchBody""" - selected_usernames: list[str] + name: NotRequired[str] + value: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) 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 b1510f36c..14fb667c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0945.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0945.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict +from .group_0154 import MinimalRepositoryType -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seats set to "pending cancellation" for the specified users. - """ +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" - seats_cancelled: int + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) 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 54a748f72..7b7f6fc84 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,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0150 import OrganizationCustomRepositoryRoleType +class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" -class OrgsOrgCustomRepositoryRolesGetResponse200Type(TypedDict): - """OrgsOrgCustomRepositoryRolesGetResponse200""" + selected_repository_ids: list[int] - total_count: NotRequired[int] - custom_roles: NotRequired[list[OrganizationCustomRepositoryRoleType]] - -__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200Type",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) 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 fef93ba69..5fba98e1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0947.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0947.py @@ -9,32 +9,70 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsGetResponse200""" +class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" - total_count: int - secrets: list[OrganizationDependabotSecretType] + attestations: NotRequired[ + list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] + ] -class OrganizationDependabotSecretType(TypedDict): - """Dependabot Secret for an Organization +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - Secrets for GitHub Dependabot for an organization. + bundle: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. """ - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + media_type: NotRequired[str] + verification_material: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro +pVerificationMaterial +""" + + +OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro +pDsseEnvelope +""" __all__ = ( - "OrganizationDependabotSecretType", - "OrgsOrgDependabotSecretsGetResponse200Type", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "OrgsOrgAttestationsSubjectDigestGetResponse200Type", ) 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 5ee895714..9baf3e788 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0948.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0948.py @@ -9,17 +9,95 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0059 import CodeScanningDefaultSetupOptionsType -class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[str]] +class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + name: str + description: str + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti + ons + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + s + + Feature options for secret scanning delegated bypass + """ + + reviewers: NotRequired[ + list[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType + ] + ] + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + sPropReviewersItems + """ + + reviewer_id: int + reviewer_type: Literal["TEAM", "ROLE"] + + +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", + "OrgsOrgCodeSecurityConfigurationsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0949.py b/githubkit/versions/ghec_v2022_11_28/types/group_0949.py index 7c177d454..a177d65ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0949.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0949.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0147 import MinimalRepositoryType +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: NotRequired[list[int]] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) 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 258f8e119..0f8505fc9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0950.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0950.py @@ -9,13 +9,95 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0059 import CodeScanningDefaultSetupOptionsType -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: list[int] +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto + submitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: NotRequired[ + list[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType + ] + ] + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptionsPropReviewersItems + """ + + reviewer_id: int + reviewer_type: Literal["TEAM", "ROLE"] + + +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0951.py b/githubkit/versions/ghec_v2022_11_28/types/group_0951.py index e99853b27..2ad011ac8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0951.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0951.py @@ -9,34 +9,17 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgHooksPostBodyType(TypedDict): - """OrgsOrgHooksPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - name: str - config: OrgsOrgHooksPostBodyPropConfigType - events: NotRequired[list[str]] - active: NotRequired[bool] + scope: Literal[ + "all", "all_without_configurations", "public", "private_or_internal", "selected" + ] + selected_repository_ids: NotRequired[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__ = ( - "OrgsOrgHooksPostBodyPropConfigType", - "OrgsOrgHooksPostBodyType", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) 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 19cc5034f..ed69b7f35 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0952.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0952.py @@ -9,32 +9,16 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgHooksHookIdPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] - events: NotRequired[list[str]] - active: NotRequired[bool] - name: NotRequired[str] + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] -class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "OrgsOrgHooksHookIdPatchBodyPropConfigType", - "OrgsOrgHooksHookIdPatchBodyType", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) 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 6399b7a4c..6302c4337 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0953.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0953.py @@ -9,17 +9,23 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0058 import CodeSecurityConfigurationType -class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdConfigPatchBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) + +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) 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 597402a80..9addd8267 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0954.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0954.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0017 import InstallationType +from .group_0164 import CodespaceType -class OrgsOrgInstallationsGetResponse200Type(TypedDict): - """OrgsOrgInstallationsGetResponse200""" +class OrgsOrgCodespacesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesGetResponse200""" total_count: int - installations: list[InstallationType] + codespaces: list[CodespaceType] -__all__ = ("OrgsOrgInstallationsGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesGetResponse200Type",) 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 5916d7d10..1234cdbd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0955.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0955.py @@ -9,11 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgCodespacesAccessPutBodyType(TypedDict): + """OrgsOrgCodespacesAccessPutBody""" + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] + selected_usernames: NotRequired[list[str]] -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) 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 2184fe8a4..214a3ca92 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0956.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0956.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgInvitationsPostBodyType(TypedDict): - """OrgsOrgInvitationsPostBody""" +class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - invitee_id: NotRequired[int] - email: NotRequired[str] - role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] - team_ids: NotRequired[list[int]] + selected_usernames: list[str] -__all__ = ("OrgsOrgInvitationsPostBodyType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) 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 79b857214..1aec188b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0957.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0957.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0157 import CodespaceType +class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" -class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + selected_usernames: list[str] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) 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 78a34c5ed..b5051f775 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0958.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0958.py @@ -9,14 +9,32 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsGetResponse200""" - role: NotRequired[Literal["admin", "member"]] + total_count: int + secrets: list[CodespacesOrgSecretType] -__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) +class CodespacesOrgSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "CodespacesOrgSecretType", + "OrgsOrgCodespacesSecretsGetResponse200Type", +) 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 242ce3795..8eb7cb359 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0959.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0959.py @@ -13,18 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgMigrationsPostBodyType(TypedDict): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - 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"]]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgMigrationsPostBodyType",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) 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 b7593464f..ad69a49e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0960.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0960.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0154 import MinimalRepositoryType -class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - async_: NotRequired[bool] +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) 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 5de4170f2..9d6f25331 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0961.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0961.py @@ -12,8 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" + selected_repository_ids: list[int] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) 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 f43c7d76b..706202c28 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0962.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0962.py @@ -11,12 +11,14 @@ from typing_extensions import NotRequired, TypedDict +from .group_0066 import CopilotSeatDetailsType -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - message: NotRequired[str] - documentation_url: NotRequired[str] +class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + total_seats: NotRequired[int] + seats: NotRequired[list[CopilotSeatDetailsType]] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) + +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200Type",) 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 a99cad652..a2e3b4a72 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0963.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0963.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - pat_request_ids: NotRequired[list[int]] - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + selected_teams: list[str] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) 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 f08e02365..76837fcdc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0964.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0964.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + The total number of seats created for members of the specified team(s). + """ + seats_created: int -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) 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 b2f0b1907..dba449159 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0965.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0965.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - action: Literal["revoke"] - pat_ids: list[int] + selected_teams: list[str] -__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) 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 32c37cd97..1b12f6a95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0966.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0966.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - action: Literal["revoke"] + The total number of seats set to "pending cancellation" for members of the + specified team(s). + """ + seats_cancelled: int -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) 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 015086720..9a511ba2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0967.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0967.py @@ -9,33 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgPrivateRegistriesGetResponse200Type(TypedDict): - """OrgsOrgPrivateRegistriesGetResponse200""" +class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - total_count: int - configurations: list[OrgPrivateRegistryConfigurationType] + selected_usernames: list[str] -class OrgPrivateRegistryConfigurationType(TypedDict): - """Organization private registry - - Private registry configuration for an organization - """ - - name: str - registry_type: Literal["maven_repository"] - username: NotRequired[Union[str, None]] - visibility: Literal["all", "private", "selected"] - created_at: datetime - updated_at: datetime - - -__all__ = ( - "OrgPrivateRegistryConfigurationType", - "OrgsOrgPrivateRegistriesGetResponse200Type", -) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) 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 1aa9cb63a..651754049 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0968.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0968.py @@ -9,19 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgPrivateRegistriesPostBodyType(TypedDict): - """OrgsOrgPrivateRegistriesPostBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - registry_type: Literal["maven_repository"] - username: NotRequired[Union[str, None]] - encrypted_value: str - key_id: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] + The total number of seats created for the specified user(s). + """ + seats_created: int -__all__ = ("OrgsOrgPrivateRegistriesPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) 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 95dc5e190..dddfa0789 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0969.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0969.py @@ -12,11 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type(TypedDict): - """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" +class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - key_id: str - key: str + selected_usernames: list[str] -__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) 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 e4ce35654..b1510f36c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0970.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0970.py @@ -9,19 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgPrivateRegistriesSecretNamePatchBodyType(TypedDict): - """OrgsOrgPrivateRegistriesSecretNamePatchBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - registry_type: NotRequired[Literal["maven_repository"]] - username: NotRequired[Union[str, None]] - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[list[int]] + The total number of seats set to "pending cancellation" for the specified users. + """ + seats_cancelled: int -__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) 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 1afe17554..ff7231da3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0971.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0971.py @@ -11,12 +11,14 @@ from typing_extensions import NotRequired, TypedDict +from .group_0157 import OrganizationCustomRepositoryRoleType -class OrgsOrgProjectsPostBodyType(TypedDict): - """OrgsOrgProjectsPostBody""" - name: str - body: NotRequired[str] +class OrgsOrgCustomRepositoryRolesGetResponse200Type(TypedDict): + """OrgsOrgCustomRepositoryRolesGetResponse200""" + total_count: NotRequired[int] + custom_roles: NotRequired[list[OrganizationCustomRepositoryRoleType]] -__all__ = ("OrgsOrgProjectsPostBodyType",) + +__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200Type",) 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 b438c8f97..fef93ba69 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0972.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0972.py @@ -9,15 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0070 import CustomPropertyType +class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsGetResponse200""" -class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): - """OrgsOrgPropertiesSchemaPatchBody""" + total_count: int + secrets: list[OrganizationDependabotSecretType] - properties: list[CustomPropertyType] +class OrganizationDependabotSecretType(TypedDict): + """Dependabot Secret for an Organization -__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) + Secrets for GitHub Dependabot for an organization. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrganizationDependabotSecretType", + "OrgsOrgDependabotSecretsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0973.py b/githubkit/versions/ghec_v2022_11_28/types/group_0973.py index b17e81d01..5ee895714 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0973.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0973.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0190 import CustomPropertyValueType +class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNamePutBody""" -class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): - """OrgsOrgPropertiesValuesPatchBody""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[str]] - repository_names: list[str] - properties: list[CustomPropertyValueType] - -__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) 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 9dda36fc3..911457a07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0974.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0974.py @@ -9,51 +9,16 @@ from __future__ import annotations -from typing import Any, Literal -from typing_extensions import NotRequired, TypeAlias, TypedDict - - -class OrgsOrgReposPostBodyType(TypedDict): - """OrgsOrgReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private", "internal"]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] - - -OrgsOrgReposPostBodyPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""OrgsOrgReposPostBodyPropCustomProperties - -The custom properties for the new repository. The keys are the custom property -names, and the values are the corresponding custom property values. -""" +from typing_extensions import TypedDict + +from .group_0154 import MinimalRepositoryType + + +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ( - "OrgsOrgReposPostBodyPropCustomPropertiesType", - "OrgsOrgReposPostBodyType", -) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) 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 f86460c6a..258f8e119 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0975.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0975.py @@ -9,81 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0072 import RepositoryRulesetBypassActorType -from .group_0087 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0088 import RepositoryRuleUpdateType -from .group_0090 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0091 import RepositoryRuleMergeQueueType -from .group_0093 import RepositoryRuleRequiredDeploymentsType -from .group_0096 import RepositoryRulePullRequestType -from .group_0098 import RepositoryRuleRequiredStatusChecksType -from .group_0100 import RepositoryRuleCommitMessagePatternType -from .group_0102 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0104 import RepositoryRuleCommitterEmailPatternType -from .group_0106 import RepositoryRuleBranchNamePatternType -from .group_0108 import RepositoryRuleTagNamePatternType -from .group_0111 import RepositoryRuleWorkflowsType -from .group_0113 import RepositoryRuleCodeScanningType -from .group_0115 import RepositoryRuleOneof18Type -from .group_0118 import OrgRulesetConditionsOneof0Type -from .group_0119 import OrgRulesetConditionsOneof1Type -from .group_0120 import OrgRulesetConditionsOneof2Type +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgRulesetsPostBodyType(TypedDict): - """OrgsOrgRulesetsPostBody""" + selected_repository_ids: list[int] - name: str - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("OrgsOrgRulesetsPostBodyType",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) 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 ac05de424..e99853b27 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0976.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0976.py @@ -9,81 +9,34 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0072 import RepositoryRulesetBypassActorType -from .group_0087 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0088 import RepositoryRuleUpdateType -from .group_0090 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0091 import RepositoryRuleMergeQueueType -from .group_0093 import RepositoryRuleRequiredDeploymentsType -from .group_0096 import RepositoryRulePullRequestType -from .group_0098 import RepositoryRuleRequiredStatusChecksType -from .group_0100 import RepositoryRuleCommitMessagePatternType -from .group_0102 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0104 import RepositoryRuleCommitterEmailPatternType -from .group_0106 import RepositoryRuleBranchNamePatternType -from .group_0108 import RepositoryRuleTagNamePatternType -from .group_0111 import RepositoryRuleWorkflowsType -from .group_0113 import RepositoryRuleCodeScanningType -from .group_0115 import RepositoryRuleOneof18Type -from .group_0118 import OrgRulesetConditionsOneof0Type -from .group_0119 import OrgRulesetConditionsOneof1Type -from .group_0120 import OrgRulesetConditionsOneof2Type +class OrgsOrgHooksPostBodyType(TypedDict): + """OrgsOrgHooksPostBody""" + + name: str + config: OrgsOrgHooksPostBodyPropConfigType + events: NotRequired[list[str]] + active: NotRequired[bool] -class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): - """OrgsOrgRulesetsRulesetIdPutBody""" - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] +class OrgsOrgHooksPostBodyPropConfigType(TypedDict): + """OrgsOrgHooksPostBodyPropConfig + Key/value pairs to provide settings for this webhook. + """ -__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + username: NotRequired[str] + password: NotRequired[str] + + +__all__ = ( + "OrgsOrgHooksPostBodyPropConfigType", + "OrgsOrgHooksPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0977.py b/githubkit/versions/ghec_v2022_11_28/types/group_0977.py index ccfb358e6..19cc5034f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0977.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0977.py @@ -9,23 +9,32 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsPostBodyType(TypedDict): - """OrgsOrgTeamsPostBody""" +class OrgsOrgHooksHookIdPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdPatchBody""" - name: str - description: NotRequired[str] - maintainers: NotRequired[list[str]] - repo_names: NotRequired[list[str]] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push"]] - parent_team_id: NotRequired[int] + config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] + events: NotRequired[list[str]] + active: NotRequired[bool] + name: NotRequired[str] -__all__ = ("OrgsOrgTeamsPostBodyType",) +class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): + """OrgsOrgHooksHookIdPatchBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ( + "OrgsOrgHooksHookIdPatchBodyPropConfigType", + "OrgsOrgHooksHookIdPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0978.py b/githubkit/versions/ghec_v2022_11_28/types/group_0978.py index c08c152bc..6399b7a4c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0978.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0978.py @@ -9,21 +9,17 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdConfigPatchBody""" - 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]] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) 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 cb961efbb..54372b1e4 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,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0018 import InstallationType -class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - title: str - body: str - private: NotRequired[bool] +class OrgsOrgInstallationsGetResponse200Type(TypedDict): + """OrgsOrgInstallationsGetResponse200""" + total_count: int + installations: list[InstallationType] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) + +__all__ = ("OrgsOrgInstallationsGetResponse200Type",) 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 db3011d85..5916d7d10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0980.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0980.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" - title: NotRequired[str] - body: NotRequired[str] - -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) 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 a05290583..2184fe8a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0981.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0981.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgInvitationsPostBodyType(TypedDict): + """OrgsOrgInvitationsPostBody""" - body: str + invitee_id: NotRequired[int] + email: NotRequired[str] + role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] + team_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("OrgsOrgInvitationsPostBodyType",) 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 a6b974137..5615f53a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0982.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0982.py @@ -11,15 +11,14 @@ from typing_extensions import TypedDict +from .group_0164 import CodespaceType -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - body: str +class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", -) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) 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 937b98f91..78a34c5ed 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,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgMembershipsUsernamePutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + role: NotRequired[Literal["admin", "member"]] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) 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 c71526f64..242ce3795 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0984.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0984.py @@ -10,15 +10,21 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgMigrationsPostBodyType(TypedDict): + """OrgsOrgMigrationsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + 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__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("OrgsOrgMigrationsPostBodyType",) 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 2c9744c1c..b7593464f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0985.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0985.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - group_id: int + async_: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) 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 b4d610e84..5de4170f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0986.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0986.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" - role: NotRequired[Literal["member", "maintainer"]] - -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) 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 8466dce90..f43c7d76b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0987.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0987.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - permission: NotRequired[Literal["read", "write", "admin"]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) 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 a637157e4..a99cad652 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0988.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0988.py @@ -9,14 +9,16 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + pat_request_ids: NotRequired[list[int]] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) 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 b42f638ac..f08e02365 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0989.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0989.py @@ -9,13 +9,15 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - permission: NotRequired[str] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) 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 7ecc032e3..b2f0b1907 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0990.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0990.py @@ -9,26 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" +class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPostBody""" - groups: NotRequired[ - list[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] - ] + action: Literal["revoke"] + pat_ids: list[int] -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str - group_name: str - group_description: str - - -__all__ = ( - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", -) +__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) 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 edc438335..32c37cd97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0991.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0991.py @@ -10,13 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): - """OrgsOrgSecurityProductEnablementPostBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - query_suite: NotRequired[Literal["default", "extended"]] + action: Literal["revoke"] -__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) 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 8710755b1..015086720 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0992.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0992.py @@ -9,15 +9,33 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class OrgsOrgPrivateRegistriesGetResponse200Type(TypedDict): + """OrgsOrgPrivateRegistriesGetResponse200""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + total_count: int + configurations: list[OrgPrivateRegistryConfigurationType] -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) +class OrgPrivateRegistryConfigurationType(TypedDict): + """Organization private registry + + Private registry configuration for an organization + """ + + name: str + registry_type: Literal["maven_repository"] + username: NotRequired[Union[str, None]] + visibility: Literal["all", "private", "selected"] + created_at: datetime + updated_at: datetime + + +__all__ = ( + "OrgPrivateRegistryConfigurationType", + "OrgsOrgPrivateRegistriesGetResponse200Type", +) 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 3481963bb..1aa9cb63a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0993.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0993.py @@ -9,15 +9,19 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): - """ProjectsColumnsCardsCardIdPatchBody""" +class OrgsOrgPrivateRegistriesPostBodyType(TypedDict): + """OrgsOrgPrivateRegistriesPostBody""" - note: NotRequired[Union[str, None]] - archived: NotRequired[bool] + registry_type: Literal["maven_repository"] + username: NotRequired[Union[str, None]] + encrypted_value: str + key_id: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) +__all__ = ("OrgsOrgPrivateRegistriesPostBodyType",) 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 ab2395816..95dc5e190 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0994.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0994.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type(TypedDict): + """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - position: str - column_id: NotRequired[int] + key_id: str + key: str -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) +__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",) 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 7c136f63a..e4ce35654 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0995.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0995.py @@ -9,11 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class OrgsOrgPrivateRegistriesSecretNamePatchBodyType(TypedDict): + """OrgsOrgPrivateRegistriesSecretNamePatchBody""" + registry_type: NotRequired[Literal["maven_repository"]] + username: NotRequired[Union[str, None]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) + +__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",) 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 2628f5b1a..1afe17554 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0996.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0996.py @@ -12,26 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class OrgsOrgProjectsPostBodyType(TypedDict): + """OrgsOrgProjectsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] - ] + name: str + body: NotRequired[str] -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - resource: NotRequired[str] - field: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", - "ProjectsColumnsCardsCardIdMovesPostResponse403Type", -) +__all__ = ("OrgsOrgProjectsPostBodyType",) 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 c4d1b64db..fa63a0159 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0997.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0997.py @@ -9,28 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0077 import CustomPropertyType -class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] - ] +class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): + """OrgsOrgPropertiesSchemaPatchBody""" + properties: list[CustomPropertyType] -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", - "ProjectsColumnsCardsCardIdMovesPostResponse503Type", -) +__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) 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 62ebaaaef..b491a8e90 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0998.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0998.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0197 import CustomPropertyValueType -class ProjectsColumnsColumnIdPatchBodyType(TypedDict): - """ProjectsColumnsColumnIdPatchBody""" - name: str +class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): + """OrgsOrgPropertiesValuesPatchBody""" + repository_names: list[str] + properties: list[CustomPropertyValueType] -__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) + +__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) 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 1fdc1bf2e..9dda36fc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0999.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0999.py @@ -9,14 +9,51 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict - - -class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - - note: Union[str, None] +from typing import Any, Literal +from typing_extensions import NotRequired, TypeAlias, TypedDict + + +class OrgsOrgReposPostBodyType(TypedDict): + """OrgsOrgReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private", "internal"]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] + + +OrgsOrgReposPostBodyPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""OrgsOrgReposPostBodyPropCustomProperties + +The custom properties for the new repository. The keys are the custom property +names, and the values are the corresponding custom property values. +""" -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) +__all__ = ( + "OrgsOrgReposPostBodyPropCustomPropertiesType", + "OrgsOrgReposPostBodyType", +) 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 93c271e2e..0dd11efc2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1000.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1000.py @@ -9,14 +9,81 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0079 import RepositoryRulesetBypassActorType +from .group_0094 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0095 import RepositoryRuleUpdateType +from .group_0097 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0098 import RepositoryRuleMergeQueueType +from .group_0100 import RepositoryRuleRequiredDeploymentsType +from .group_0103 import RepositoryRulePullRequestType +from .group_0105 import RepositoryRuleRequiredStatusChecksType +from .group_0107 import RepositoryRuleCommitMessagePatternType +from .group_0109 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0111 import RepositoryRuleCommitterEmailPatternType +from .group_0113 import RepositoryRuleBranchNamePatternType +from .group_0115 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRuleCodeScanningType +from .group_0122 import RepositoryRuleOneof18Type +from .group_0125 import OrgRulesetConditionsOneof0Type +from .group_0126 import OrgRulesetConditionsOneof1Type +from .group_0127 import OrgRulesetConditionsOneof2Type -class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - content_id: int - content_type: str +class OrgsOrgRulesetsPostBodyType(TypedDict): + """OrgsOrgRulesetsPostBody""" + name: str + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) + +__all__ = ("OrgsOrgRulesetsPostBodyType",) 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 4b4ed0962..222dd2855 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1001.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1001.py @@ -9,28 +9,81 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503""" - - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] - ] +from .group_0079 import RepositoryRulesetBypassActorType +from .group_0094 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0095 import RepositoryRuleUpdateType +from .group_0097 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0098 import RepositoryRuleMergeQueueType +from .group_0100 import RepositoryRuleRequiredDeploymentsType +from .group_0103 import RepositoryRulePullRequestType +from .group_0105 import RepositoryRuleRequiredStatusChecksType +from .group_0107 import RepositoryRuleCommitMessagePatternType +from .group_0109 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0111 import RepositoryRuleCommitterEmailPatternType +from .group_0113 import RepositoryRuleBranchNamePatternType +from .group_0115 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRuleCodeScanningType +from .group_0122 import RepositoryRuleOneof18Type +from .group_0125 import OrgRulesetConditionsOneof0Type +from .group_0126 import OrgRulesetConditionsOneof1Type +from .group_0127 import OrgRulesetConditionsOneof2Type -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" +class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): + """OrgsOrgRulesetsRulesetIdPutBody""" - code: NotRequired[str] - message: NotRequired[str] + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", - "ProjectsColumnsColumnIdCardsPostResponse503Type", -) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) 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 1eee63273..5e2d79a18 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1002.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1002.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0075 import NetworkConfigurationType -class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): - """ProjectsColumnsColumnIdMovesPostBody""" - position: str +class OrgsOrgSettingsNetworkConfigurationsGetResponse200Type(TypedDict): + """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" + total_count: int + network_configurations: list[NetworkConfigurationType] -__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) + +__all__ = ("OrgsOrgSettingsNetworkConfigurationsGetResponse200Type",) 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 7df563c61..c29f59c8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1003.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1003.py @@ -9,11 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class OrgsOrgSettingsNetworkConfigurationsPostBodyType(TypedDict): + """OrgsOrgSettingsNetworkConfigurationsPostBody""" + name: str + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: list[str] -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) + +__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",) 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 36d491ce7..cf5c73d09 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1004.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1004.py @@ -9,15 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdDeleteResponse403Type(TypedDict): - """ProjectsProjectIdDeleteResponse403""" +class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType( + TypedDict +): + """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + name: NotRequired[str] + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: NotRequired[list[str]] -__all__ = ("ProjectsProjectIdDeleteResponse403Type",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType",) 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 31f864cbd..ccfb358e6 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,23 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdPatchBodyType(TypedDict): - """ProjectsProjectIdPatchBody""" +class OrgsOrgTeamsPostBodyType(TypedDict): + """OrgsOrgTeamsPostBody""" - name: NotRequired[str] - body: NotRequired[Union[str, None]] - state: NotRequired[str] - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] + name: str + description: NotRequired[str] + maintainers: NotRequired[list[str]] + repo_names: NotRequired[list[str]] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push"]] + parent_team_id: NotRequired[int] -__all__ = ("ProjectsProjectIdPatchBodyType",) +__all__ = ("OrgsOrgTeamsPostBodyType",) 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 6e093b913..c08c152bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1006.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1006.py @@ -9,15 +9,21 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdPatchResponse403Type(TypedDict): - """ProjectsProjectIdPatchResponse403""" +class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + name: NotRequired[str] + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -__all__ = ("ProjectsProjectIdPatchResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) 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 e3cd89b33..cb961efbb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1007.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1007.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + title: str + body: str + private: NotRequired[bool] -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) 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 8c02d8953..db3011d85 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1008.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1008.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdColumnsPostBodyType(TypedDict): - """ProjectsProjectIdColumnsPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - name: str + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("ProjectsProjectIdColumnsPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) 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 a7224c5e8..a05290583 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1009.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1009.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoDeleteResponse403Type(TypedDict): - """ReposOwnerRepoDeleteResponse403""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + body: str -__all__ = ("ReposOwnerRepoDeleteResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) 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 908199a6e..a6b974137 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1010.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1010.py @@ -9,171 +9,17 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPatchBodyType(TypedDict): - """ReposOwnerRepoPatchBody""" - - 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] - - -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_ai_detection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType - ] - secret_scanning_non_provider_patterns: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType - ] - secret_scanning_validity_checks: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType - ] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: NotRequired[str] - - -class 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( +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( TypedDict ): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - - Use the `status` property to enable or disable secret scanning AI detection for - this repository. For more information, see "[Responsible detection of generic - secrets with AI](https://docs.github.com/enterprise-cloud@latest//code- - security/secret-scanning/using-advanced-secret-scanning-and-push-protection- - features/generic-secret-detection/responsible-ai-generic-secrets)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Supported secret - scanning patterns](/code-security/secret-scanning/introduction/supported-secret- - scanning-patterns#supported-secrets)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - - Use the `status` property to enable or disable secret scanning automatic - validity checks on supported partner tokens for this repository. - """ + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - status: NotRequired[str] + body: str __all__ = ( - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", - "ReposOwnerRepoPatchBodyType", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ) 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 0681b75b5..937b98f91 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1011.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1011.py @@ -9,16 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -from .group_0212 import ArtifactType +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ -class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] - total_count: int - artifacts: list[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) 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 8552ab8cf..c71526f64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1012.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1012.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" - enable_debug_logging: NotRequired[bool] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) 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 19c3d652d..2c9744c1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1013.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1013.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): - """Actions OIDC subject customization for a repository +class OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" - Actions OIDC subject customization for a repository - """ + group_id: int - use_default: bool - include_claim_keys: NotRequired[list[str]] - -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",) 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 7b6be180a..b4d610e84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1014.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1014.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0216 import ActionsSecretType +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + role: NotRequired[Literal["member", "maintainer"]] - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) 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 fd273a90b..8466dce90 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1015.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1015.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0217 import ActionsVariableType +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + permission: NotRequired[Literal["read", "write", "admin"]] - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) 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 fc3874a09..a637157e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1016.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1016.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): - """ReposOwnerRepoActionsPermissionsPutBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) 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 0e552e310..b42f638ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1017.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1017.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0036 import RunnerType +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" -class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunnersGetResponse200""" + permission: NotRequired[str] - total_count: int - runners: list[RunnerType] - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) 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 5036c414c..7ecc032e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1018.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1018.py @@ -12,13 +12,23 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" - name: str - runner_group_id: int - labels: list[str] - work_folder: NotRequired[str] + groups: NotRequired[ + list[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] + ] -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" + + group_id: str + group_name: str + group_description: str + + +__all__ = ( + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1019.py b/githubkit/versions/ghec_v2022_11_28/types/group_1019.py index 9ca36f6ff..edc438335 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1019.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1019.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): + """OrgsOrgSecurityProductEnablementPostBody""" - labels: list[str] + query_suite: NotRequired[Literal["default", "extended"]] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) 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 17c2e6d71..8710755b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1020.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1020.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - labels: list[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) 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 777f51945..3481963bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1021.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1021.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0222 import WorkflowRunType +class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): + """ProjectsColumnsCardsCardIdPatchBody""" -class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsGetResponse200""" + note: NotRequired[Union[str, None]] + archived: NotRequired[bool] - total_count: int - workflow_runs: list[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) 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 f5adf246b..ab2395816 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1022.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1022.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0212 import ArtifactType +class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostBody""" -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + position: str + column_id: NotRequired[int] - total_count: int - artifacts: list[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) 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 f81a387ad..7c136f63a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1023.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1023.py @@ -11,16 +11,9 @@ from typing_extensions import TypedDict -from .group_0214 import JobType +class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - total_count: int - jobs: list[JobType] - - -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) 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 f2e4b208e..2628f5b1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1024.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1024.py @@ -9,16 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0214 import JobType +class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + ] - total_count: int - jobs: list[JobType] +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) + code: NotRequired[str] + message: NotRequired[str] + resource: NotRequired[str] + field: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse403Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1025.py b/githubkit/versions/ghec_v2022_11_28/types/group_1025.py index 76bdf5b5d..c4d1b64db 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1025.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1025.py @@ -9,16 +9,28 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" - environment_ids: list[int] - state: Literal["approved", "rejected"] - comment: str + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + ] -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse503Type", +) 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 41d795f26..62ebaaaef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1026.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1026.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ProjectsColumnsColumnIdPatchBodyType(TypedDict): + """ProjectsColumnsColumnIdPatchBody""" - enable_debug_logging: NotRequired[bool] + name: str -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) 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 d27f156d2..1fdc1bf2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1027.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1027.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - enable_debug_logging: NotRequired[bool] + note: Union[str, None] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) 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 ac7727044..93c271e2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1028.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1028.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0216 import ActionsSecretType +class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" -class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsSecretsGetResponse200""" + content_id: int + content_type: str - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) 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 4892cd830..4b4ed0962 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1029.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1029.py @@ -12,11 +12,25 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] + ] -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", + "ProjectsColumnsColumnIdCardsPostResponse503Type", +) 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 cd06dedb8..1eee63273 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1030.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1030.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0217 import ActionsVariableType +class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): + """ProjectsColumnsColumnIdMovesPostBody""" -class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsVariablesGetResponse200""" + position: str - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) 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 a5b1bcda1..7df563c61 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1031.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1031.py @@ -12,11 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesPostBody""" +class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsColumnIdMovesPostResponse201""" - name: str - value: str - -__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) 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 9dc60de46..36d491ce7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1032.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1032.py @@ -12,11 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ProjectsProjectIdDeleteResponse403Type(TypedDict): + """ProjectsProjectIdDeleteResponse403""" - name: NotRequired[str] - value: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) +__all__ = ("ProjectsProjectIdDeleteResponse403Type",) 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 567412f15..31f864cbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1033.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1033.py @@ -9,40 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" +class ProjectsProjectIdPatchBodyType(TypedDict): + """ProjectsProjectIdPatchBody""" - total_count: int - workflows: list[WorkflowType] + name: NotRequired[str] + body: NotRequired[Union[str, None]] + state: NotRequired[str] + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] -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__ = ("ProjectsProjectIdPatchBodyType",) 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 3e172dbfe..6e093b913 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1034.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1034.py @@ -9,31 +9,15 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ProjectsProjectIdPatchResponse403Type(TypedDict): + """ProjectsProjectIdPatchResponse403""" - ref: str - inputs: NotRequired[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType - ] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] -ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType: TypeAlias = ( - dict[str, Any] -) -"""ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - -Input keys and values configured in the workflow file. The maximum number of -properties is 10. Any default properties configured in the workflow file will be -used when `inputs` are omitted. -""" - - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", -) +__all__ = ("ProjectsProjectIdPatchResponse403Type",) 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 0b2579154..e3cd89b33 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1035.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1035.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0222 import WorkflowRunType +class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + permission: NotRequired[Literal["read", "write", "admin"]] - total_count: int - workflow_runs: list[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) 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 e197b3b3a..8c02d8953 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1036.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1036.py @@ -9,51 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoAttestationsPostBodyType(TypedDict): - """ReposOwnerRepoAttestationsPostBody""" +class ProjectsProjectIdColumnsPostBodyType(TypedDict): + """ProjectsProjectIdColumnsPostBody""" - bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType + name: str -class ReposOwnerRepoAttestationsPostBodyPropBundleType(TypedDict): - """ReposOwnerRepoAttestationsPostBodyPropBundle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType - ] - - -ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType: TypeAlias = ( - dict[str, Any] -) -"""ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial -""" - - -ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope -""" - - -__all__ = ( - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", - "ReposOwnerRepoAttestationsPostBodyPropBundleType", - "ReposOwnerRepoAttestationsPostBodyType", -) +__all__ = ("ProjectsProjectIdColumnsPostBodyType",) 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 79c9aa002..a7224c5e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1037.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1037.py @@ -12,10 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoDeleteResponse403Type(TypedDict): + """ReposOwnerRepoDeleteResponse403""" - id: NotRequired[int] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) +__all__ = ("ReposOwnerRepoDeleteResponse403Type",) 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 8a6a46fe3..908199a6e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1038.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1038.py @@ -9,73 +9,171 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" +class ReposOwnerRepoPatchBodyType(TypedDict): + """ReposOwnerRepoPatchBody""" - attestations: NotRequired[ - list[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] + 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] + + +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_ai_detection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + secret_scanning_validity_checks: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType + ] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: NotRequired[str] + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + 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 ): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - bundle: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] + 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 ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType( TypedDict ): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndle + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - 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. + Use the `status` property to enable or disable secret scanning AI detection for + this repository. For more information, see "[Responsible detection of generic + secrets with AI](https://docs.github.com/enterprise-cloud@latest//code- + security/secret-scanning/using-advanced-secret-scanning-and-push-protection- + features/generic-secret-detection/responsible-ai-generic-secrets)." """ - media_type: NotRequired[str] - verification_material: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType - ] + status: NotRequired[str] -ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ - str, Any -] -"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu -ndlePropVerificationMaterial -""" +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Supported secret + scanning patterns](/code-security/secret-scanning/introduction/supported-secret- + scanning-patterns#supported-secrets)." + """ -ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu -ndlePropDsseEnvelope -""" + 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__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", + "ReposOwnerRepoPatchBodyType", ) 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 d3cf0850b..7859a8e7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1039.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1039.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0219 import ArtifactType -class ReposOwnerRepoAutolinksPostBodyType(TypedDict): - """ReposOwnerRepoAutolinksPostBody""" - key_prefix: str - url_template: str - is_alphanumeric: NotRequired[bool] +class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsArtifactsGetResponse200""" + total_count: int + artifacts: list[ArtifactType] -__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) 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 bca1d637c..8552ab8cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1040.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1040.py @@ -9,132 +9,13 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" +class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - 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] + enable_debug_logging: 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__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyType", -) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) 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 663ec3e19..19c3d652d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1041.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1041.py @@ -12,56 +12,14 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" +class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): + """Actions OIDC subject customization for a repository - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType - ] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. + Actions OIDC subject customization for a repository """ - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] + use_default: bool + include_claim_keys: NotRequired[list[str]] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", -) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) 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 0e57487fc..cf9318e69 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1042.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1042.py @@ -9,35 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0223 import ActionsSecretType -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - strict: NotRequired[bool] - contexts: NotRequired[list[str]] - checks: NotRequired[ - list[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType - ] - ] +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + total_count: int + secrets: list[ActionsSecretType] -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - context: str - app_id: NotRequired[int] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", -) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) 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 e1f78ac45..2cf006e5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1043.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1043.py @@ -11,19 +11,14 @@ from typing_extensions import TypedDict +from .group_0224 import ActionsVariableType -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" - contexts: list[str] + total_count: int + variables: list[ActionsVariableType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) 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 7953af035..fc3874a09 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1044.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1044.py @@ -9,21 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): + """ReposOwnerRepoActionsPermissionsPutBody""" - Examples: - {'contexts': ['contexts']} - """ + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - contexts: list[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) 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 b4a0d30f6..b02df41ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1045.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1045.py @@ -11,20 +11,14 @@ from typing_extensions import TypedDict +from .group_0041 import RunnerType -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunnersGetResponse200""" - contexts: list[str] + total_count: int + runners: list[RunnerType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) 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 1f154c587..5036c414c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1046.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1046.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - Examples: - {'apps': ['my-app']} - """ + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] - apps: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) 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 e8ab2de74..9ca36f6ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1047.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1047.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - Examples: - {'apps': ['my-app']} - """ + labels: list[str] - apps: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) 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 26bc12cd2..17c2e6d71 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1048.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1048.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - Examples: - {'apps': ['my-app']} - """ + labels: list[str] - apps: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) 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 db6c7e46c..ed41e6a6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1049.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1049.py @@ -11,17 +11,14 @@ from typing_extensions import TypedDict +from .group_0229 import WorkflowRunType -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - Examples: - {'teams': ['justice-league']} - """ +class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsGetResponse200""" - teams: list[str] + total_count: int + workflow_runs: list[WorkflowRunType] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) 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 d74b8d070..ca9c17465 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1050.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1050.py @@ -11,17 +11,14 @@ from typing_extensions import TypedDict +from .group_0219 import ArtifactType -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 - Examples: - {'teams': ['my-team']} - """ +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" - teams: list[str] + total_count: int + artifacts: list[ArtifactType] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) 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 85e315c26..dfc80059e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1051.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1051.py @@ -11,19 +11,16 @@ from typing_extensions import TypedDict +from .group_0221 import JobType -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( + +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 - - Examples: - {'teams': ['my-team']} - """ + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - teams: list[str] + total_count: int + jobs: list[JobType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) 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 14d747f27..8e77969c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1052.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1052.py @@ -11,15 +11,14 @@ from typing_extensions import TypedDict +from .group_0221 import JobType -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody - Examples: - {'users': ['mona']} - """ +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" - users: list[str] + total_count: int + jobs: list[JobType] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) 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 a879b8e99..76bdf5b5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1053.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1053.py @@ -9,17 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - Examples: - {'users': ['mona']} - """ + environment_ids: list[int] + state: Literal["approved", "rejected"] + comment: str - users: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) 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 88f98adfd..41d795f26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1054.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1054.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody +class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - Examples: - {'users': ['mona']} - """ + enable_debug_logging: NotRequired[bool] - users: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) 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 b46802659..d27f156d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1055.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1055.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - new_name: str + enable_debug_logging: NotRequired[bool] -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) 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 0e96d896e..ac21c97fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1056.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1056.py @@ -9,62 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0223 import ActionsSecretType -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 ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsSecretsGetResponse200""" - title: str - summary: str - text: NotRequired[str] - annotations: NotRequired[ - list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] - ] - images: NotRequired[ - list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] - ] + total_count: int + secrets: list[ActionsSecretType] -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str - start_line: int - end_line: int - start_column: NotRequired[int] - end_column: NotRequired[int] - annotation_level: Literal["notice", "warning", "failure"] - message: str - title: NotRequired[str] - raw_details: NotRequired[str] - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" - - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str - description: str - identifier: str - - -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputType", -) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) 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 e0f3e6254..335280e49 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1057.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1057.py @@ -9,38 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_1056 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsPostBodyPropOutputType, -) - - -class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: Literal["completed"] - started_at: NotRequired[datetime] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] - - -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) +from typing_extensions import TypedDict + + +class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" + + encrypted_value: str + key_id: str + + +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) 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 ca81c5afe..4b312619b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1058.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1058.py @@ -9,42 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_1056 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsPostBodyPropOutputType, -) - - -class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: NotRequired[ - Literal["queued", "in_progress", "waiting", "requested", "pending"] - ] - started_at: NotRequired[datetime] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] - - -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) +from typing_extensions import TypedDict + +from .group_0224 import ActionsVariableType + + +class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsVariablesGetResponse200""" + + total_count: int + variables: list[ActionsVariableType] + + +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) 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 cdd81f62e..a5b1bcda1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1059.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1059.py @@ -9,68 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput +class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesPostBody""" - 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 + value: str - title: NotRequired[str] - summary: str - text: NotRequired[str] - annotations: NotRequired[ - list[ - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType - ] - ] - 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] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( - TypedDict -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - - label: str - description: str - identifier: str - - -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", -) +__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) 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 79ea5a8e6..9dc60de46 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1060.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1060.py @@ -9,39 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1059 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, -) - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" +class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesNamePatchBody""" name: NotRequired[str] - details_url: NotRequired[str] - external_id: NotRequired[str] - started_at: NotRequired[datetime] - status: NotRequired[Literal["completed"]] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] - ] - - -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) + value: NotRequired[str] + + +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) 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 d4c1f7ddc..567412f15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1061.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1061.py @@ -13,37 +13,36 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1059 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, -) +class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" -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] + total_count: int + workflows: list[WorkflowType] + + +class WorkflowType(TypedDict): + """Workflow + + A GitHub Actions workflow + """ + + id: int + node_id: str + name: str + path: str + state: Literal[ + "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" ] + created_at: datetime + updated_at: datetime + url: str + html_url: str + badge_url: str + deleted_at: NotRequired[datetime] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) +__all__ = ( + "ReposOwnerRepoActionsWorkflowsGetResponse200Type", + "WorkflowType", +) 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 5d8ac49c1..3e172dbfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1062.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1062.py @@ -9,13 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - head_sha: str + ref: str + inputs: NotRequired[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + ] -__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) +ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType: TypeAlias = ( + dict[str, Any] +) +"""ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs + +Input keys and values configured in the workflow file. The maximum number of +properties is 10. Any default properties configured in the workflow file will be +used when `inputs` are omitted. +""" + + +__all__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", +) 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 5f72161c7..308ba0ba2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1063.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1063.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0229 import WorkflowRunType -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - auto_trigger_checks: NotRequired[ - list[ - ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType - ] - ] +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int + workflow_runs: list[WorkflowRunType] -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( - TypedDict -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - app_id: int - setting: bool - - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) 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 8eccc9f05..e197b3b3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1064.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1064.py @@ -9,16 +9,51 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0248 import CheckRunType +class ReposOwnerRepoAttestationsPostBodyType(TypedDict): + """ReposOwnerRepoAttestationsPostBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType - total_count: int - check_runs: list[CheckRunType] +class ReposOwnerRepoAttestationsPostBodyPropBundleType(TypedDict): + """ReposOwnerRepoAttestationsPostBodyPropBundle -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType + ] + + +ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType: TypeAlias = ( + dict[str, Any] +) +"""ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial +""" + + +ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope +""" + + +__all__ = ( + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsPostBodyPropBundleType", + "ReposOwnerRepoAttestationsPostBodyType", +) 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 a4c727bcd..79c9aa002 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1065.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1065.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): + """ReposOwnerRepoAttestationsPostResponse201""" - state: Literal["open", "dismissed"] - dismissed_reason: NotRequired[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] - dismissed_comment: NotRequired[Union[str, None]] + id: NotRequired[int] -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) 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 92c6c6183..8a6a46fe3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1066.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1066.py @@ -9,20 +9,73 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + attestations: NotRequired[ + list[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] ] - query_pack: str - repositories: list[str] - repository_lists: NotRequired[list[str]] - repository_owners: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu +ndlePropVerificationMaterial +""" + + +ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu +ndlePropDsseEnvelope +""" + + +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", +) 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 31a733d64..d3cf0850b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1067.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1067.py @@ -9,20 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoAutolinksPostBodyType(TypedDict): + """ReposOwnerRepoAutolinksPostBody""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack: str - repositories: NotRequired[list[str]] - repository_lists: list[str] - repository_owners: NotRequired[list[str]] + key_prefix: str + url_template: str + is_alphanumeric: NotRequired[bool] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) +__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) 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 92ee2d76b..bca1d637c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1068.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1068.py @@ -9,20 +9,132 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, None ] - query_pack: str - repositories: NotRequired[list[str]] - repository_lists: NotRequired[list[str]] - repository_owners: list[str] + 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 +): + """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__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyType", +) 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 e9eb27946..663ec3e19 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1069.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1069.py @@ -9,20 +9,59 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - commit_sha: str - ref: str - sarif: str - checkout_uri: NotRequired[str] - started_at: NotRequired[datetime] - tool_name: NotRequired[str] - validate_: NotRequired[bool] + 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 + ] -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", +) 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 584946f13..0e57487fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1070.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1070.py @@ -9,16 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0157 import CodespaceType +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" -class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesGetResponse200""" + strict: NotRequired[bool] + contexts: NotRequired[list[str]] + checks: NotRequired[ + list[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType + ] + ] - total_count: int - codespaces: list[CodespaceType] +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms + """ -__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) + context: str + app_id: NotRequired[int] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", +) 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 88f53eda8..e1f78ac45 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1071.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1071.py @@ -9,24 +9,21 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - 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] + Examples: + {'contexts': ['contexts']} + """ + contexts: list[str] -__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", +) 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 2b6a98e8b..7953af035 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1072.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1072.py @@ -9,29 +9,21 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - - total_count: int - devcontainers: list[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType - ] - - -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + + Examples: + {'contexts': ['contexts']} + """ - path: str - name: NotRequired[str] - display_name: NotRequired[str] + contexts: list[str] __all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ) 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 ff27e2537..b4a0d30f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1073.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1073.py @@ -11,14 +11,20 @@ from typing_extensions import TypedDict -from .group_0156 import CodespaceMachineType +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 -class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" + Examples: + {'contexts': ['contexts']} + """ - total_count: int - machines: list[CodespaceMachineType] + contexts: list[str] -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", +) 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 9c9db6dc4..1f154c587 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1074.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1074.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody -class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200""" + Examples: + {'apps': ['my-app']} + """ - billable_owner: NotRequired[SimpleUserType] - defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] + apps: list[str] -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str - devcontainer_path: Union[str, None] - - -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", - "ReposOwnerRepoCodespacesNewGetResponse200Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType",) 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 fe71c65ab..e8ab2de74 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1075.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1075.py @@ -9,29 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody - total_count: int - secrets: list[RepoCodespacesSecretType] - - -class RepoCodespacesSecretType(TypedDict): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. + Examples: + {'apps': ['my-app']} """ - name: str - created_at: datetime - updated_at: datetime + apps: list[str] -__all__ = ( - "RepoCodespacesSecretType", - "ReposOwnerRepoCodespacesSecretsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType",) 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 4e9617e8c..26bc12cd2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1076.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1076.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + Examples: + {'apps': ['my-app']} + """ + apps: list[str] -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType",) 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 4cccc4ae5..db6c7e46c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1077.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1077.py @@ -9,13 +9,19 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - permission: NotRequired[str] + Examples: + {'teams': ['justice-league']} + """ + teams: list[str] -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) 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 25f26d78b..d74b8d070 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1078.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1078.py @@ -12,10 +12,16 @@ from typing_extensions import TypedDict -class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 - body: str + Examples: + {'teams': ['my-team']} + """ + teams: list[str] -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) 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 ce91eec32..85e315c26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1079.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1079.py @@ -9,16 +9,21 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + Examples: + {'teams': ['my-team']} + """ + teams: list[str] -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", +) 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 36d63c915..14d747f27 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1080.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1080.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody - body: str - path: NotRequired[str] - position: NotRequired[int] - line: NotRequired[int] + Examples: + {'users': ['mona']} + """ + users: list[str] -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType",) 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 1843e8d97..a879b8e99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1081.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1081.py @@ -11,14 +11,15 @@ from typing_extensions import TypedDict -from .group_0248 import CheckRunType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + Examples: + {'users': ['mona']} + """ - total_count: int - check_runs: list[CheckRunType] + users: list[str] -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType",) 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 a33d63ac7..88f98adfd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1082.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1082.py @@ -9,45 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoContentsPathPutBodyType(TypedDict): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody - message: str - content: str - sha: NotRequired[str] - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] - - -class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropCommitter - - The person that committed the file. Default: the authenticated user. - """ - - name: str - email: str - date: NotRequired[str] - - -class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. + Examples: + {'users': ['mona']} """ - name: str - email: str - date: NotRequired[str] + users: list[str] -__all__ = ( - "ReposOwnerRepoContentsPathPutBodyPropAuthorType", - "ReposOwnerRepoContentsPathPutBodyPropCommitterType", - "ReposOwnerRepoContentsPathPutBodyType", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType",) 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 1a6415115..b46802659 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1083.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1083.py @@ -9,41 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBody""" +class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - message: str - sha: str - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] + new_name: str -class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - - object containing information about the committer. - """ - - name: NotRequired[str] - email: NotRequired[str] - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ - - name: NotRequired[str] - email: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", - "ReposOwnerRepoContentsPathDeleteBodyType", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) 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 b6eb59e50..0e96d896e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1084.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1084.py @@ -13,16 +13,58 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - - state: Literal["dismissed", "open"] - dismissed_reason: NotRequired[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] +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. + """ + + title: str + summary: str + text: NotRequired[str] + annotations: NotRequired[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] + ] + images: NotRequired[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] ] - dismissed_comment: NotRequired[str] -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1085.py b/githubkit/versions/ghec_v2022_11_28/types/group_1085.py index 61528dc95..ec979735d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1085.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1085.py @@ -10,28 +10,37 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict - - -class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoDependabotSecretsGetResponse200""" - - total_count: int - secrets: list[DependabotSecretType] +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_1084 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsPostBodyPropOutputType, +) -class DependabotSecretType(TypedDict): - """Dependabot Secret - Set secrets for Dependabot. - """ +class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "DependabotSecretType", - "ReposOwnerRepoDependabotSecretsGetResponse200Type", -) + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: Literal["completed"] + started_at: NotRequired[datetime] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) 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 95231af1a..bf78379b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1086.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1086.py @@ -9,14 +9,42 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict - -class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - - -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) +from .group_1084 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsPostBodyPropOutputType, +) + + +class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: NotRequired[ + Literal["queued", "in_progress", "waiting", "requested", "pending"] + ] + started_at: NotRequired[datetime] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) 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 6e9243ec2..cdd81f62e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1087.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1087.py @@ -9,16 +9,68 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - id: int - created_at: str - result: str + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: NotRequired[str] + summary: str + text: NotRequired[str] + annotations: NotRequired[ + list[ + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + ] + ] + images: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] + ] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( + 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__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", +) 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 149bc226e..5da781e3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1088.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1088.py @@ -9,32 +9,39 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_1087 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, +) -class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsPostBody""" - ref: str - task: NotRequired[str] - auto_merge: NotRequired[bool] - required_contexts: NotRequired[list[str]] - payload: NotRequired[ - Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["completed"]] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] ] - environment: NotRequired[str] - description: NotRequired[Union[str, None]] - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] - - -ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type: TypeAlias = dict[str, Any] -"""ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 -""" -__all__ = ( - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", - "ReposOwnerRepoDeploymentsPostBodyType", -) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) 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 8dce1979d..eb6bb7976 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1089.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1089.py @@ -9,13 +9,41 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict - -class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): - """ReposOwnerRepoDeploymentsPostResponse202""" - - message: NotRequired[str] - - -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) +from .group_1087 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["queued", "in_progress"]] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1090.py b/githubkit/versions/ghec_v2022_11_28/types/group_1090.py index cc93f9515..5d8ac49c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1090.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1090.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPostBody""" - 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] + head_sha: str -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) 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 d1e750ab3..5f72161c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1091.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1091.py @@ -9,27 +9,29 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - event_type: str - client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] + auto_trigger_checks: NotRequired[ + list[ + ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType + ] + ] -ReposOwnerRepoDispatchesPostBodyPropClientPayloadType: TypeAlias = dict[str, Any] -"""ReposOwnerRepoDispatchesPostBodyPropClientPayload +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( + TypedDict +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" -JSON payload with extra information about the webhook event that your action or -workflow may use. The maximum number of top-level properties is 10. The total -size of the JSON payload must be less than 64KB. -""" + app_id: int + setting: bool __all__ = ( - "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", - "ReposOwnerRepoDispatchesPostBodyType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", ) 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 81f70fde0..9048a1d18 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1092.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1092.py @@ -9,38 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0304 import DeploymentBranchPolicySettingsType +from .group_0255 import CheckRunType -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" - wait_timer: NotRequired[int] - prevent_self_review: NotRequired[bool] - reviewers: NotRequired[ - Union[ - list[ - ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType - ], - None, - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] + total_count: int + check_runs: list[CheckRunType] -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - - type: NotRequired[Literal["User", "Team"]] - id: NotRequired[int] - - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", -) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) 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 ab59e0b4e..a4c727bcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1093.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1093.py @@ -9,32 +9,18 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - total_count: int - branch_policies: list[DeploymentBranchPolicyType] + 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 DeploymentBranchPolicyType(TypedDict): - """Deployment branch policy - - Details of a deployment branch or tag policy. - """ - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - type: NotRequired[Literal["branch", "tag"]] - - -__all__ = ( - "DeploymentBranchPolicyType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) 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 bb2b4e614..92c6c6183 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1094.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1094.py @@ -9,17 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - integration_id: NotRequired[int] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] + query_pack: str + repositories: list[str] + repository_lists: NotRequired[list[str]] + repository_owners: NotRequired[list[str]] -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", -) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) 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 d0cd2535a..31a733d64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1095.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1095.py @@ -9,24 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0310 import CustomDeploymentRuleAppType +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ - - total_count: NotRequired[int] - available_custom_deployment_protection_rule_integrations: NotRequired[ - list[CustomDeploymentRuleAppType] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" ] + query_pack: str + repositories: NotRequired[list[str]] + repository_lists: list[str] + repository_owners: NotRequired[list[str]] -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) 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 1edc5c611..92ee2d76b 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,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0216 import ActionsSecretType +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + 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] - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) 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 3ec440fb1..e9eb27946 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1097.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1097.py @@ -9,14 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - encrypted_value: str - key_id: str + commit_sha: str + ref: str + sarif: str + checkout_uri: NotRequired[str] + started_at: NotRequired[datetime] + tool_name: NotRequired[str] + validate_: NotRequired[bool] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) 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 afed31ecd..d116f3ba4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1098.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1098.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0217 import ActionsVariableType +from .group_0164 import CodespaceType -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" +class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesGetResponse200""" total_count: int - variables: list[ActionsVariableType] + codespaces: list[CodespaceType] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) 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 f3a29926f..88f53eda8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1099.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1099.py @@ -9,14 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoCodespacesPostBody""" - name: str - value: 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__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) +__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) 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 adee73102..2b6a98e8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1100.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1100.py @@ -12,11 +12,26 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" + total_count: int + devcontainers: list[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType + ] + + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( + TypedDict +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + + path: str name: NotRequired[str] - value: NotRequired[str] + display_name: NotRequired[str] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", +) 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 eb686a699..c1f976d1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1101.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1101.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0163 import CodespaceMachineType -class ReposOwnerRepoForksPostBodyType(TypedDict): - """ReposOwnerRepoForksPostBody""" - organization: NotRequired[str] - name: NotRequired[str] - default_branch_only: NotRequired[bool] +class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + total_count: int + machines: list[CodespaceMachineType] -__all__ = ("ReposOwnerRepoForksPostBodyType",) + +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) 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 4c2ef3730..1da0f80f8 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,27 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): - """ReposOwnerRepoGitBlobsPostBody""" - content: str - encoding: NotRequired[str] +class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200""" + billable_owner: NotRequired[SimpleUserType] + defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] -__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) + +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + + location: str + devcontainer_path: Union[str, None] + + +__all__ = ( + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", + "ReposOwnerRepoCodespacesNewGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1103.py b/githubkit/versions/ghec_v2022_11_28/types/group_1103.py index 73106315f..fe71c65ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1103.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1103.py @@ -10,48 +10,28 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" - message: str - tree: str - parents: NotRequired[list[str]] - author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] - committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] - signature: NotRequired[str] + total_count: int + secrets: list[RepoCodespacesSecretType] -class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor +class RepoCodespacesSecretType(TypedDict): + """Codespaces Secret - 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. + Set repository secrets for GitHub Codespaces. """ 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] + created_at: datetime + updated_at: datetime __all__ = ( - "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", - "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", - "ReposOwnerRepoGitCommitsPostBodyType", + "RepoCodespacesSecretType", + "ReposOwnerRepoCodespacesSecretsGetResponse200Type", ) 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 aa4d83aff..4e9617e8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1104.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1104.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitRefsPostBodyType(TypedDict): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - ref: str - sha: str + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) 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 95219ce12..4cccc4ae5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1105.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1105.py @@ -12,11 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - sha: str - force: NotRequired[bool] + permission: NotRequired[str] -__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) 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 bf927c780..25f26d78b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1106.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1106.py @@ -9,33 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoGitTagsPostBodyType(TypedDict): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - tag: str - message: str - object_: str - type: Literal["commit", "tree", "blob"] - tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] + body: str -class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str - email: str - date: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoGitTagsPostBodyPropTaggerType", - "ReposOwnerRepoGitTagsPostBodyType", -) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) 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 62d4e64ac..ce91eec32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1107.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1107.py @@ -9,28 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoGitTreesPostBodyType(TypedDict): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] - base_tree: NotRequired[str] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: NotRequired[str] - mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] - type: NotRequired[Literal["blob", "tree", "commit"]] - sha: NotRequired[Union[str, None]] - content: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", - "ReposOwnerRepoGitTreesPostBodyType", -) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) 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 44bb98073..36d63c915 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1108.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1108.py @@ -9,32 +9,16 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoHooksPostBodyType(TypedDict): - """ReposOwnerRepoHooksPostBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - name: NotRequired[str] - config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] - events: NotRequired[list[str]] - active: NotRequired[bool] + body: str + path: NotRequired[str] + position: NotRequired[int] + line: NotRequired[int] -class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): - """ReposOwnerRepoHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "ReposOwnerRepoHooksPostBodyPropConfigType", - "ReposOwnerRepoHooksPostBodyType", -) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) 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 6fdcbd125..e0586705e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1109.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1109.py @@ -9,19 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0009 import WebhookConfigType +from .group_0255 import CheckRunType -class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdPatchBody""" +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" - config: NotRequired[WebhookConfigType] - events: NotRequired[list[str]] - add_events: NotRequired[list[str]] - remove_events: NotRequired[list[str]] - active: NotRequired[bool] + total_count: int + check_runs: list[CheckRunType] -__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) 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 2de12ce93..a33d63ac7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1110.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1110.py @@ -9,17 +9,45 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoContentsPathPutBodyType(TypedDict): + """ReposOwnerRepoContentsPathPutBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + message: str + content: str + sha: NotRequired[str] + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) +class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropCommitter + + The person that committed the file. Default: the authenticated user. + """ + + name: str + email: str + date: NotRequired[str] + + +class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str + email: str + date: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoContentsPathPutBodyPropAuthorType", + "ReposOwnerRepoContentsPathPutBodyPropCommitterType", + "ReposOwnerRepoContentsPathPutBodyType", +) 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 02673d9bf..1a6415115 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1111.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1111.py @@ -9,18 +9,41 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportPutBodyType(TypedDict): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBody""" - vcs_url: str - vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - tfvc_project: NotRequired[str] + message: str + sha: str + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] -__all__ = ("ReposOwnerRepoImportPutBodyType",) +class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter + + object containing information about the committer. + """ + + name: NotRequired[str] + email: NotRequired[str] + + +class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor + + object containing information about the author. + """ + + name: NotRequired[str] + email: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyType", +) 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 5f68422b7..b6eb59e50 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1112.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1112.py @@ -13,13 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportPatchBodyType(TypedDict): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] - tfvc_project: NotRequired[str] + state: Literal["dismissed", "open"] + dismissed_reason: NotRequired[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] + dismissed_comment: NotRequired[str] -__all__ = ("ReposOwnerRepoImportPatchBodyType",) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) 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 f2dee5034..61528dc95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1113.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1113.py @@ -9,14 +9,29 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - email: NotRequired[str] - name: NotRequired[str] + total_count: int + secrets: list[DependabotSecretType] -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) +class DependabotSecretType(TypedDict): + """Dependabot Secret + + Set secrets for Dependabot. + """ + + name: str + created_at: datetime + updated_at: datetime + + +__all__ = ( + "DependabotSecretType", + "ReposOwnerRepoDependabotSecretsGetResponse200Type", +) 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 f8207f6ea..95231af1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1114.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1114.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - use_lfs: Literal["opt_in", "opt_out"] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) 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 ca60a7364..6e9243ec2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1115.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1115.py @@ -12,8 +12,13 @@ from typing_extensions import TypedDict -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" + id: int + created_at: str + result: str + message: str -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) 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 9285f63d1..149bc226e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1116.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1116.py @@ -9,14 +9,32 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsPostBody""" - permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] + 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__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) +ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type: TypeAlias = dict[str, Any] +"""ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 +""" + + +__all__ = ( + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", + "ReposOwnerRepoDeploymentsPostBodyType", +) 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 e685abb43..8dce1979d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1117.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1117.py @@ -9,33 +9,13 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): + """ReposOwnerRepoDeploymentsPostResponse202""" - 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]] + message: NotRequired[str] -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - - -__all__ = ( - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", - "ReposOwnerRepoIssuesPostBodyType", -) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) 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 4b0c546c3..cc93f9515 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1118.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1118.py @@ -9,13 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - body: str + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] + target_url: NotRequired[str] + log_url: NotRequired[str] + description: NotRequired[str] + environment: NotRequired[str] + environment_url: NotRequired[str] + auto_inactive: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) 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 77f77960c..d1e750ab3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1119.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1119.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoDispatchesPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + event_type: str + client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) +ReposOwnerRepoDispatchesPostBodyPropClientPayloadType: TypeAlias = dict[str, Any] +"""ReposOwnerRepoDispatchesPostBodyPropClientPayload + +JSON payload with extra information about the webhook event that your action or +workflow may use. The maximum number of top-level properties is 10. The total +size of the JSON payload must be less than 64KB. +""" + + +__all__ = ( + "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", + "ReposOwnerRepoDispatchesPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1120.py b/githubkit/versions/ghec_v2022_11_28/types/group_1120.py index 2d97e4a7a..556b5f4a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1120.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1120.py @@ -12,38 +12,35 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0311 import DeploymentBranchPolicySettingsType -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 - ] +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + + wait_timer: NotRequired[int] + prevent_self_review: NotRequired[bool] + reviewers: NotRequired[ + Union[ + list[ + ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType + ], + None, ] ] - assignees: NotRequired[list[str]] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + type: NotRequired[Literal["User", "Team"]] id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] __all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", - "ReposOwnerRepoIssuesIssueNumberPatchBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", ) 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 0f0f4ae84..ab59e0b4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1121.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1121.py @@ -9,13 +9,32 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - assignees: NotRequired[list[str]] + total_count: int + branch_policies: list[DeploymentBranchPolicyType] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) +class DeploymentBranchPolicyType(TypedDict): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + type: NotRequired[Literal["branch", "tag"]] + + +__all__ = ( + "DeploymentBranchPolicyType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1122.py b/githubkit/versions/ghec_v2022_11_28/types/group_1122.py index 2795b587e..bb2b4e614 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1122.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1122.py @@ -12,10 +12,14 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - assignees: NotRequired[list[str]] + integration_id: NotRequired[int] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", +) 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 2585a1e0c..1386fdbab 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,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0317 import CustomDeploymentRuleAppType -class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - body: str +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ + total_count: NotRequired[int] + available_custom_deployment_protection_rule_integrations: NotRequired[ + list[CustomDeploymentRuleAppType] + ] -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", +) 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 8653eeddb..6eddb747b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1124.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1124.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0223 import ActionsSecretType -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - labels: NotRequired[list[str]] +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int + secrets: list[ActionsSecretType] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) 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 28a5135d1..3ec440fb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1125.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1125.py @@ -9,24 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - labels: NotRequired[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] - ] + encrypted_value: str + key_id: str -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) 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 4b61c7722..ed27fb2a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1126.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1126.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0224 import ActionsVariableType -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - name: str +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int + variables: list[ActionsVariableType] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) 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 a0fe1957d..f3a29926f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1127.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1127.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - labels: NotRequired[list[str]] + name: str + value: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) 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 672fc26ff..adee73102 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1128.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1128.py @@ -12,21 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - labels: NotRequired[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] - ] + name: NotRequired[str] + value: NotRequired[str] -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) 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 6872247a2..eb686a699 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1129.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1129.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoForksPostBodyType(TypedDict): + """ReposOwnerRepoForksPostBody""" - name: str + organization: NotRequired[str] + name: NotRequired[str] + default_branch_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) +__all__ = ("ReposOwnerRepoForksPostBodyType",) 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 392d8c14f..4c2ef3730 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1130.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1130.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): + """ReposOwnerRepoGitBlobsPostBody""" - lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] + content: str + encoding: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) +__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) 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 5d8ff2645..73106315f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1131.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1131.py @@ -9,16 +9,49 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): + """ReposOwnerRepoGitCommitsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + message: str + tree: str + parents: NotRequired[list[str]] + author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] + signature: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) +class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str + email: str + date: NotRequired[datetime] + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ + + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", + "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", + "ReposOwnerRepoGitCommitsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1132.py b/githubkit/versions/ghec_v2022_11_28/types/group_1132.py index 6e796683c..aa4d83aff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1132.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1132.py @@ -12,10 +12,11 @@ from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" +class ReposOwnerRepoGitRefsPostBodyType(TypedDict): + """ReposOwnerRepoGitRefsPostBody""" - sub_issue_id: int + ref: str + sha: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",) +__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) 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 294d951b6..95219ce12 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1133.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1133.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" +class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): + """ReposOwnerRepoGitRefsRefPatchBody""" - sub_issue_id: int - replace_parent: NotRequired[bool] + sha: str + force: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) 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 6ffa90a5b..bf927c780 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1134.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1134.py @@ -9,15 +9,33 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" +class ReposOwnerRepoGitTagsPostBodyType(TypedDict): + """ReposOwnerRepoGitTagsPostBody""" - sub_issue_id: int - after_id: NotRequired[int] - before_id: NotRequired[int] + tag: str + message: str + object_: str + type: Literal["commit", "tree", "blob"] + tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType",) +class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ + + name: str + email: str + date: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoGitTagsPostBodyPropTaggerType", + "ReposOwnerRepoGitTagsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1135.py b/githubkit/versions/ghec_v2022_11_28/types/group_1135.py index acb0bbfba..62d4e64ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1135.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1135.py @@ -9,15 +9,28 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoKeysPostBodyType(TypedDict): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoGitTreesPostBodyType(TypedDict): + """ReposOwnerRepoGitTreesPostBody""" - title: NotRequired[str] - key: str - read_only: NotRequired[bool] + tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] + base_tree: NotRequired[str] -__all__ = ("ReposOwnerRepoKeysPostBodyType",) +class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: NotRequired[str] + mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] + type: NotRequired[Literal["blob", "tree", "commit"]] + sha: NotRequired[Union[str, None]] + content: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", + "ReposOwnerRepoGitTreesPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1136.py b/githubkit/versions/ghec_v2022_11_28/types/group_1136.py index 7cc0b1b26..44bb98073 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1136.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1136.py @@ -9,15 +9,32 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoLabelsPostBodyType(TypedDict): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoHooksPostBodyType(TypedDict): + """ReposOwnerRepoHooksPostBody""" - name: str - color: NotRequired[str] - description: NotRequired[str] + name: NotRequired[str] + config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] + events: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("ReposOwnerRepoLabelsPostBodyType",) +class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): + """ReposOwnerRepoHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ( + "ReposOwnerRepoHooksPostBodyPropConfigType", + "ReposOwnerRepoHooksPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1137.py b/githubkit/versions/ghec_v2022_11_28/types/group_1137.py index 607085961..616829ef4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1137.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1137.py @@ -11,13 +11,17 @@ from typing_extensions import NotRequired, TypedDict +from .group_0011 import WebhookConfigType -class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): - """ReposOwnerRepoLabelsNamePatchBody""" - new_name: NotRequired[str] - color: NotRequired[str] - description: NotRequired[str] +class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdPatchBody""" + config: NotRequired[WebhookConfigType] + events: NotRequired[list[str]] + add_events: NotRequired[list[str]] + remove_events: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) 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 ac724c353..2de12ce93 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1138.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1138.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - branch: str + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) 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 f33bb6f09..02673d9bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1139.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1139.py @@ -9,15 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMergesPostBodyType(TypedDict): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoImportPutBodyType(TypedDict): + """ReposOwnerRepoImportPutBody""" - base: str - head: str - commit_message: NotRequired[str] + vcs_url: str + vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoMergesPostBodyType",) +__all__ = ("ReposOwnerRepoImportPutBodyType",) 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 17d426f88..5f68422b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1140.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1140.py @@ -9,18 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMilestonesPostBodyType(TypedDict): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoImportPatchBodyType(TypedDict): + """ReposOwnerRepoImportPatchBody""" - title: str - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) +__all__ = ("ReposOwnerRepoImportPatchBodyType",) 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 1eaa2807a..f2dee5034 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1141.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1141.py @@ -9,18 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - title: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + email: NotRequired[str] + name: NotRequired[str] -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) 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 c350dcdf7..f8207f6ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1142.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1142.py @@ -9,14 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoNotificationsPutBodyType(TypedDict): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): + """ReposOwnerRepoImportLfsPatchBody""" - last_read_at: NotRequired[datetime] + use_lfs: Literal["opt_in", "opt_out"] -__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) +__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) 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 7ab2c0401..ca60a7364 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1143.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1143.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - message: NotRequired[str] - url: NotRequired[str] - -__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) 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 cd3deab02..9285f63d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1144.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1144.py @@ -10,17 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - Update the source for the repository. Must include the branch name and path. - """ + permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] - branch: str - path: Literal["/", "/docs"] - -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) 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 f06e1147b..e685abb43 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1145.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1145.py @@ -9,25 +9,33 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_1144 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof0""" - - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] + title: Union[str, int] + body: NotRequired[str] + assignee: NotRequired[Union[str, None]] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] ] - public: NotRequired[bool] + assignees: NotRequired[list[str]] + + +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) +__all__ = ( + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", + "ReposOwnerRepoIssuesPostBodyType", +) 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 a399c2f35..4b0c546c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1146.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1146.py @@ -9,23 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_1144 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" -class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof1""" + body: str - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - public: NotRequired[bool] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) 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 d2fd1cc3f..77f77960c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1147.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1147.py @@ -9,25 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_1144 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof2""" - - cname: Union[str, None] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] - public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) 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 f15ee2427..2d97e4a7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1148.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1148.py @@ -12,22 +12,38 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1144 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" -class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof3""" - - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + 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 + ] ] ] - public: bool + 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__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", + "ReposOwnerRepoIssuesIssueNumberPatchBodyType", +) 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 dd2c41296..0f0f4ae84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1149.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1149.py @@ -9,25 +9,13 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1144 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof4""" + assignees: NotRequired[list[str]] - cname: NotRequired[Union[str, None]] - https_enforced: bool - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - public: NotRequired[bool] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) 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 1f79f8c8a..2795b587e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1150.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1150.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): - """ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - The source branch and directory used to publish your Pages site. - """ + assignees: NotRequired[list[str]] - branch: str - path: NotRequired[Literal["/", "/docs"]] - -__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) 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 d14feaa04..2585a1e0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1151.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1151.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_1150 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" -class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof0""" + body: str - build_type: NotRequired[Literal["legacy", "workflow"]] - source: ReposOwnerRepoPagesPostBodyPropSourceType - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) 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 db35effc5..8653eeddb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1152.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1152.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1150 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" -class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof1""" + labels: NotRequired[list[str]] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) 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 4bdb60454..28a5135d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1153.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1153.py @@ -12,17 +12,21 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoPagesDeploymentsPostBody +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - The object used to create GitHub Pages deployment - """ + labels: NotRequired[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] + ] - artifact_id: NotRequired[float] - artifact_url: NotRequired[str] - environment: NotRequired[str] - pages_build_version: str - oidc_token: str +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", +) 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 c22c267f3..4b61c7722 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1154.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1154.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - enabled: bool + name: str -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) 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 5d8355086..a0fe1957d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1155.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1155.py @@ -12,11 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoProjectsPostBodyType(TypedDict): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - name: str - body: NotRequired[str] + labels: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoProjectsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) 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 f88cfe170..672fc26ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1156.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1156.py @@ -9,15 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0190 import CustomPropertyValueType +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" -class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): - """ReposOwnerRepoPropertiesValuesPatchBody""" + labels: NotRequired[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] + ] - properties: list[CustomPropertyValueType] +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", +) 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 8e9e41f56..6872247a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1157.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1157.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - 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] + name: str -__all__ = ("ReposOwnerRepoPullsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) 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 160987b13..392d8c14f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1158.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1158.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - body: str + lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) 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 4dc9e5008..5d8ff2645 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1159.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1159.py @@ -13,12 +13,12 @@ from typing_extensions import TypedDict -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" content: Literal[ "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) 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 1bb472545..6e796683c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1160.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1160.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" - title: NotRequired[str] - body: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - base: NotRequired[str] - maintainer_can_modify: NotRequired[bool] + sub_issue_id: int -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",) 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 b0eda78e6..294d951b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1161.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1161.py @@ -9,23 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" - 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] + sub_issue_id: int + replace_parent: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",) 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 f15be5df1..6ffa90a5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1162.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1162.py @@ -9,23 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" - 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"]] + sub_issue_id: int + after_id: NotRequired[int] + before_id: NotRequired[int] -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType",) 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 fdc9c5a0e..acb0bbfba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1163.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1163.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoKeysPostBodyType(TypedDict): + """ReposOwnerRepoKeysPostBody""" - body: str + title: NotRequired[str] + key: str + read_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) +__all__ = ("ReposOwnerRepoKeysPostBodyType",) 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 743310547..7cc0b1b26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1164.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1164.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoLabelsPostBodyType(TypedDict): + """ReposOwnerRepoLabelsPostBody""" - commit_title: NotRequired[str] - commit_message: NotRequired[str] - sha: NotRequired[str] - merge_method: NotRequired[Literal["merge", "squash", "rebase"]] + name: str + color: NotRequired[str] + description: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) +__all__ = ("ReposOwnerRepoLabelsPostBodyType",) 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 797f629f0..607085961 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1165.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1165.py @@ -12,11 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): + """ReposOwnerRepoLabelsNamePatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + new_name: NotRequired[str] + color: NotRequired[str] + description: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) 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 8525d9950..ac724c353 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1166.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1166.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): + """ReposOwnerRepoMergeUpstreamPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + branch: str -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) 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 c92fe8585..f33bb6f09 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1167.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1167.py @@ -12,11 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoMergesPostBodyType(TypedDict): + """ReposOwnerRepoMergesPostBody""" - reviewers: list[str] - team_reviewers: NotRequired[list[str]] + base: str + head: str + commit_message: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoMergesPostBodyType",) 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 e461ce1cf..17d426f88 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1168.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1168.py @@ -9,14 +9,18 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoMilestonesPostBodyType(TypedDict): + """ReposOwnerRepoMilestonesPostBody""" - reviewers: NotRequired[list[str]] - team_reviewers: list[str] + title: str + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1169.py b/githubkit/versions/ghec_v2022_11_28/types/group_1169.py index 43201ae1f..1eaa2807a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1169.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1169.py @@ -9,14 +9,18 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - reviewers: list[str] - team_reviewers: NotRequired[list[str]] + title: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1170.py b/githubkit/versions/ghec_v2022_11_28/types/group_1170.py index bf17592a6..c350dcdf7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1170.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1170.py @@ -9,34 +9,14 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoNotificationsPutBodyType(TypedDict): + """ReposOwnerRepoNotificationsPutBody""" - commit_id: NotRequired[str] - body: NotRequired[str] - event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] - comments: NotRequired[ - list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] - ] + last_read_at: NotRequired[datetime] -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str - position: NotRequired[int] - body: str - line: NotRequired[int] - side: NotRequired[str] - start_line: NotRequired[int] - start_side: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", -) +__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1171.py b/githubkit/versions/ghec_v2022_11_28/types/group_1171.py index 05cccf0c0..7ab2c0401 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1171.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1171.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): + """ReposOwnerRepoNotificationsPutResponse202""" - body: str + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1172.py b/githubkit/versions/ghec_v2022_11_28/types/group_1172.py index 412543923..cd3deab02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1172.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1172.py @@ -10,14 +10,17 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - message: str - event: NotRequired[Literal["DISMISS"]] + Update the source for the repository. Must include the branch name and path. + """ + branch: str + path: Literal["/", "/docs"] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1173.py b/githubkit/versions/ghec_v2022_11_28/types/group_1173.py index d03c573ae..8ed2b1d75 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1173.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1173.py @@ -9,15 +9,25 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1172 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - body: NotRequired[str] - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] +class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof0""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: Literal["legacy", "workflow"] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1174.py b/githubkit/versions/ghec_v2022_11_28/types/group_1174.py index c102fe4d6..d7df4d89c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1174.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1174.py @@ -9,13 +9,23 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1172 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - expected_head_sha: NotRequired[str] +class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof1""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1175.py b/githubkit/versions/ghec_v2022_11_28/types/group_1175.py index e633d70f9..433d515e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1175.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1175.py @@ -9,14 +9,25 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1172 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - message: NotRequired[str] - url: NotRequired[str] +class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof2""" + cname: Union[str, None] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1176.py b/githubkit/versions/ghec_v2022_11_28/types/group_1176.py index 4065bba0c..ed009f29b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1176.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1176.py @@ -9,22 +9,25 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1172 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoReleasesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesPostBody""" - 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"]] +class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof3""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: bool -__all__ = ("ReposOwnerRepoReleasesPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1177.py b/githubkit/versions/ghec_v2022_11_28/types/group_1177.py index 0ddd0a8bf..a08b1118d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1177.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1177.py @@ -9,15 +9,25 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1172 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - name: NotRequired[str] - label: NotRequired[str] - state: NotRequired[str] +class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof4""" + cname: NotRequired[Union[str, None]] + https_enforced: bool + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1178.py b/githubkit/versions/ghec_v2022_11_28/types/group_1178.py index 2f21e468e..1f79f8c8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1178.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1178.py @@ -9,16 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): + """ReposOwnerRepoPagesPostBodyPropSource - tag_name: str - target_commitish: NotRequired[str] - previous_tag_name: NotRequired[str] - configuration_file_path: NotRequired[str] + The source branch and directory used to publish your Pages site. + """ + branch: str + path: NotRequired[Literal["/", "/docs"]] -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1179.py b/githubkit/versions/ghec_v2022_11_28/types/group_1179.py index 2300351d5..410bf86e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1179.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1179.py @@ -12,18 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1178 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" - 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] +class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof0""" + build_type: NotRequired[Literal["legacy", "workflow"]] + source: ReposOwnerRepoPagesPostBodyPropSourceType -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1180.py b/githubkit/versions/ghec_v2022_11_28/types/group_1180.py index d85bf8d37..1aab383ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1180.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1180.py @@ -10,13 +10,16 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_1178 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] +class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof1""" + build_type: Literal["legacy", "workflow"] + source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1181.py b/githubkit/versions/ghec_v2022_11_28/types/group_1181.py index 0f0cc2413..4bdb60454 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1181.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1181.py @@ -9,73 +9,20 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0072 import RepositoryRulesetBypassActorType -from .group_0077 import RepositoryRulesetConditionsType -from .group_0087 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0088 import RepositoryRuleUpdateType -from .group_0090 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0091 import RepositoryRuleMergeQueueType -from .group_0093 import RepositoryRuleRequiredDeploymentsType -from .group_0096 import RepositoryRulePullRequestType -from .group_0098 import RepositoryRuleRequiredStatusChecksType -from .group_0100 import RepositoryRuleCommitMessagePatternType -from .group_0102 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0104 import RepositoryRuleCommitterEmailPatternType -from .group_0106 import RepositoryRuleBranchNamePatternType -from .group_0108 import RepositoryRuleTagNamePatternType -from .group_0111 import RepositoryRuleWorkflowsType -from .group_0113 import RepositoryRuleCodeScanningType -from .group_0115 import RepositoryRuleOneof18Type +class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoPagesDeploymentsPostBody -class ReposOwnerRepoRulesetsPostBodyType(TypedDict): - """ReposOwnerRepoRulesetsPostBody""" + The object used to create GitHub Pages deployment + """ - name: str - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] + artifact_id: NotRequired[float] + artifact_url: NotRequired[str] + environment: NotRequired[str] + pages_build_version: str + oidc_token: str -__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1182.py b/githubkit/versions/ghec_v2022_11_28/types/group_1182.py index 6af3745a1..c22c267f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1182.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1182.py @@ -9,73 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0072 import RepositoryRulesetBypassActorType -from .group_0077 import RepositoryRulesetConditionsType -from .group_0087 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0088 import RepositoryRuleUpdateType -from .group_0090 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0091 import RepositoryRuleMergeQueueType -from .group_0093 import RepositoryRuleRequiredDeploymentsType -from .group_0096 import RepositoryRulePullRequestType -from .group_0098 import RepositoryRuleRequiredStatusChecksType -from .group_0100 import RepositoryRuleCommitMessagePatternType -from .group_0102 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0104 import RepositoryRuleCommitterEmailPatternType -from .group_0106 import RepositoryRuleBranchNamePatternType -from .group_0108 import RepositoryRuleTagNamePatternType -from .group_0111 import RepositoryRuleWorkflowsType -from .group_0113 import RepositoryRuleCodeScanningType -from .group_0115 import RepositoryRuleOneof18Type +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" -class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" + enabled: bool - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1183.py b/githubkit/versions/ghec_v2022_11_28/types/group_1183.py index a4f75ebc8..5d8355086 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1183.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1183.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoProjectsPostBodyType(TypedDict): + """ReposOwnerRepoProjectsPostBody""" - state: Literal["open", "resolved"] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolution_comment: NotRequired[Union[str, None]] + name: str + body: NotRequired[str] -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1184.py b/githubkit/versions/ghec_v2022_11_28/types/group_1184.py index ca4fd9976..96d2798f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1184.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1184.py @@ -9,15 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict +from .group_0197 import CustomPropertyValueType -class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType(TypedDict): - """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - reason: Literal["false_positive", "used_in_tests", "will_fix_later"] - placeholder_id: str +class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: list[CustomPropertyValueType] -__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType",) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1185.py b/githubkit/versions/ghec_v2022_11_28/types/group_1185.py index f5eb2b08d..8e9e41f56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1185.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1185.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoPullsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPostBody""" - state: Literal["error", "failure", "pending", "success"] - target_url: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - context: NotRequired[str] + title: NotRequired[str] + head: str + head_repo: NotRequired[str] + base: str + body: NotRequired[str] + maintainer_can_modify: NotRequired[bool] + draft: NotRequired[bool] + issue: NotRequired[int] -__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1186.py b/githubkit/versions/ghec_v2022_11_28/types/group_1186.py index bf3b98dcb..160987b13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1186.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1186.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - subscribed: NotRequired[bool] - ignored: NotRequired[bool] + body: str -__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1187.py b/githubkit/versions/ghec_v2022_11_28/types/group_1187.py index 492fdc91e..4dc9e5008 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1187.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1187.py @@ -9,13 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - pattern: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1188.py b/githubkit/versions/ghec_v2022_11_28/types/group_1188.py index f6f94cfa4..1bb472545 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1188.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1188.py @@ -9,13 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTopicsPutBodyType(TypedDict): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberPatchBody""" - names: list[str] + title: NotRequired[str] + body: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + base: NotRequired[str] + maintainer_can_modify: NotRequired[bool] -__all__ = ("ReposOwnerRepoTopicsPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1189.py b/githubkit/versions/ghec_v2022_11_28/types/group_1189.py index 4f00c0f54..b0eda78e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1189.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1189.py @@ -9,15 +9,23 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTransferPostBodyType(TypedDict): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - new_owner: str - new_name: NotRequired[str] - team_ids: NotRequired[list[int]] + 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__ = ("ReposOwnerRepoTransferPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1190.py b/githubkit/versions/ghec_v2022_11_28/types/group_1190.py index f8f62bc0c..f15be5df1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1190.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1190.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - owner: NotRequired[str] - name: str - description: NotRequired[str] - include_all_branches: NotRequired[bool] - private: NotRequired[bool] + 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__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1191.py b/githubkit/versions/ghec_v2022_11_28/types/group_1191.py index f4878ed75..fdc9c5a0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1191.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1191.py @@ -9,44 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ScimV2OrganizationsOrgUsersPostBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - 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] + body: str -class ScimV2OrganizationsOrgUsersPostBodyPropNameType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str - family_name: str - formatted: NotRequired[str] - - -class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" - - value: str - primary: NotRequired[bool] - type: NotRequired[str] - - -__all__ = ( - "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", - "ScimV2OrganizationsOrgUsersPostBodyPropNameType", - "ScimV2OrganizationsOrgUsersPostBodyType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1192.py b/githubkit/versions/ghec_v2022_11_28/types/group_1192.py index 7aaa7ebc8..743310547 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1192.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1192.py @@ -9,44 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" +class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - schemas: NotRequired[list[str]] - display_name: NotRequired[str] - external_id: NotRequired[str] - groups: NotRequired[list[str]] - active: NotRequired[bool] - user_name: str - name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType - emails: list[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType] + commit_title: NotRequired[str] + commit_message: NotRequired[str] + sha: NotRequired[str] + merge_method: NotRequired[Literal["merge", "squash", "rebase"]] -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str - family_name: str - formatted: NotRequired[str] - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" - - type: NotRequired[str] - value: str - primary: NotRequired[bool] - - -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1193.py b/githubkit/versions/ghec_v2022_11_28/types/group_1193.py index b3d378206..797f629f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1193.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1193.py @@ -9,61 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - schemas: NotRequired[list[str]] - operations: list[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType - ] + message: NotRequired[str] + documentation_url: NotRequired[str] -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" - - op: Literal["add", "remove", "replace"] - path: NotRequired[str] - value: NotRequired[ - Union[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, - list[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType - ], - str, - ] - ] - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type( - TypedDict -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" - - active: NotRequired[Union[bool, None]] - user_name: NotRequired[Union[str, None]] - external_id: NotRequired[Union[str, None]] - given_name: NotRequired[Union[str, None]] - family_name: NotRequired[Union[str, None]] - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType( - TypedDict -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 - Items - """ - - value: NotRequired[str] - primary: NotRequired[bool] - - -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1194.py b/githubkit/versions/ghec_v2022_11_28/types/group_1194.py index 6accad501..8525d9950 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1194.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1194.py @@ -9,21 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdPatchBodyType(TypedDict): - """TeamsTeamIdPatchBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - 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]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("TeamsTeamIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1195.py b/githubkit/versions/ghec_v2022_11_28/types/group_1195.py index 5fc734f17..c92fe8585 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1195.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1195.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - title: str - body: str - private: NotRequired[bool] + reviewers: list[str] + team_reviewers: NotRequired[list[str]] -__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1196.py b/githubkit/versions/ghec_v2022_11_28/types/group_1196.py index 97be26f9a..e461ce1cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1196.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1196.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - title: NotRequired[str] - body: NotRequired[str] + reviewers: NotRequired[list[str]] + team_reviewers: list[str] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1197.py b/githubkit/versions/ghec_v2022_11_28/types/group_1197.py index 49b6126e3..43201ae1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1197.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1197.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - body: str + reviewers: list[str] + team_reviewers: NotRequired[list[str]] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1198.py b/githubkit/versions/ghec_v2022_11_28/types/group_1198.py index aba26488a..bf17592a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1198.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1198.py @@ -9,15 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +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__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1199.py b/githubkit/versions/ghec_v2022_11_28/types/group_1199.py index ea06c9bbf..05cccf0c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1199.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1199.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + body: str -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1200.py b/githubkit/versions/ghec_v2022_11_28/types/group_1200.py index 02edb1cc8..412543923 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1200.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1200.py @@ -10,15 +10,14 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + message: str + event: NotRequired[Literal["DISMISS"]] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1201.py b/githubkit/versions/ghec_v2022_11_28/types/group_1201.py index 4c1b9ea73..d03c573ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1201.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1201.py @@ -13,10 +13,11 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): - """TeamsTeamIdMembershipsUsernamePutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - role: NotRequired[Literal["member", "maintainer"]] + body: NotRequired[str] + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] -__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1202.py b/githubkit/versions/ghec_v2022_11_28/types/group_1202.py index 0fc6bc372..c102fe4d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1202.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1202.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): - """TeamsTeamIdProjectsProjectIdPutBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + expected_head_sha: NotRequired[str] -__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1203.py b/githubkit/versions/ghec_v2022_11_28/types/group_1203.py index 27e574fd9..e633d70f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1203.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1203.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" message: NotRequired[str] - documentation_url: NotRequired[str] + url: NotRequired[str] -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1204.py b/githubkit/versions/ghec_v2022_11_28/types/group_1204.py index 218231963..4065bba0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1204.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1204.py @@ -13,10 +13,18 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): - """TeamsTeamIdReposOwnerRepoPutBody""" +class ReposOwnerRepoReleasesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesPostBody""" - permission: NotRequired[Literal["pull", "push", "admin"]] + tag_name: str + target_commitish: NotRequired[str] + name: NotRequired[str] + body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + discussion_category_name: NotRequired[str] + generate_release_notes: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] -__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) +__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1205.py b/githubkit/versions/ghec_v2022_11_28/types/group_1205.py index 55352f689..0ddd0a8bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1205.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1205.py @@ -12,25 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyType(TypedDict): - """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - 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] - description: NotRequired[str] + label: NotRequired[str] + state: NotRequired[str] -__all__ = ( - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", -) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1206.py b/githubkit/versions/ghec_v2022_11_28/types/group_1206.py index 0cc0c51fd..2f21e468e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1206.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1206.py @@ -9,21 +9,16 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class UserPatchBodyType(TypedDict): - """UserPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - 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] + tag_name: str + target_commitish: NotRequired[str] + previous_tag_name: NotRequired[str] + configuration_file_path: NotRequired[str] -__all__ = ("UserPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1207.py b/githubkit/versions/ghec_v2022_11_28/types/group_1207.py index 198e8ce8a..2300351d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1207.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1207.py @@ -9,16 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0157 import CodespaceType +class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" -class UserCodespacesGetResponse200Type(TypedDict): - """UserCodespacesGetResponse200""" + 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] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("UserCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1208.py b/githubkit/versions/ghec_v2022_11_28/types/group_1208.py index ca44ecf9e..d85bf8d37 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1208.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1208.py @@ -10,24 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserCodespacesPostBodyOneof0Type(TypedDict): - """UserCodespacesPostBodyOneof0""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - 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] + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] -__all__ = ("UserCodespacesPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1209.py b/githubkit/versions/ghec_v2022_11_28/types/group_1209.py index ad32a685a..b480ddce7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1209.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1209.py @@ -9,33 +9,73 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0079 import RepositoryRulesetBypassActorType +from .group_0084 import RepositoryRulesetConditionsType +from .group_0094 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0095 import RepositoryRuleUpdateType +from .group_0097 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0098 import RepositoryRuleMergeQueueType +from .group_0100 import RepositoryRuleRequiredDeploymentsType +from .group_0103 import RepositoryRulePullRequestType +from .group_0105 import RepositoryRuleRequiredStatusChecksType +from .group_0107 import RepositoryRuleCommitMessagePatternType +from .group_0109 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0111 import RepositoryRuleCommitterEmailPatternType +from .group_0113 import RepositoryRuleBranchNamePatternType +from .group_0115 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRuleCodeScanningType +from .group_0122 import RepositoryRuleOneof18Type -class UserCodespacesPostBodyOneof1Type(TypedDict): - """UserCodespacesPostBodyOneof1""" - - pull_request: UserCodespacesPostBodyOneof1PropPullRequestType - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - - -class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): - """UserCodespacesPostBodyOneof1PropPullRequest - Pull request number for this codespace - """ +class ReposOwnerRepoRulesetsPostBodyType(TypedDict): + """ReposOwnerRepoRulesetsPostBody""" - pull_request_number: int - repository_id: int + name: str + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ( - "UserCodespacesPostBodyOneof1PropPullRequestType", - "UserCodespacesPostBodyOneof1Type", -) +__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1210.py b/githubkit/versions/ghec_v2022_11_28/types/group_1210.py index 1e27e71b8..638ec2b1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1210.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1210.py @@ -9,32 +9,73 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import TypedDict - - -class UserCodespacesSecretsGetResponse200Type(TypedDict): - """UserCodespacesSecretsGetResponse200""" - - total_count: int - secrets: list[CodespacesSecretType] +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0079 import RepositoryRulesetBypassActorType +from .group_0084 import RepositoryRulesetConditionsType +from .group_0094 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0095 import RepositoryRuleUpdateType +from .group_0097 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0098 import RepositoryRuleMergeQueueType +from .group_0100 import RepositoryRuleRequiredDeploymentsType +from .group_0103 import RepositoryRulePullRequestType +from .group_0105 import RepositoryRuleRequiredStatusChecksType +from .group_0107 import RepositoryRuleCommitMessagePatternType +from .group_0109 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0111 import RepositoryRuleCommitterEmailPatternType +from .group_0113 import RepositoryRuleBranchNamePatternType +from .group_0115 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRuleCodeScanningType +from .group_0122 import RepositoryRuleOneof18Type -class CodespacesSecretType(TypedDict): - """Codespaces Secret - Secrets for a GitHub Codespace. - """ +class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: str + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ( - "CodespacesSecretType", - "UserCodespacesSecretsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1211.py b/githubkit/versions/ghec_v2022_11_28/types/group_1211.py index 6ec0707c1..a4f75ebc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1211.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1211.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): - """UserCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - encrypted_value: NotRequired[str] - key_id: str - selected_repository_ids: NotRequired[list[Union[int, 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__ = ("UserCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1212.py b/githubkit/versions/ghec_v2022_11_28/types/group_1212.py index 30df6131b..ca4fd9976 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1212.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1212.py @@ -9,16 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -from .group_0147 import MinimalRepositoryType +class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType(TypedDict): + """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + reason: Literal["false_positive", "used_in_tests", "will_fix_later"] + placeholder_id: str - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1213.py b/githubkit/versions/ghec_v2022_11_28/types/group_1213.py index 69b6c64de..f5eb2b08d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1213.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1213.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): + """ReposOwnerRepoStatusesShaPostBody""" - selected_repository_ids: list[int] + state: Literal["error", "failure", "pending", "success"] + target_url: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + context: NotRequired[str] -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1214.py b/githubkit/versions/ghec_v2022_11_28/types/group_1214.py index 73deadc8f..bf3b98dcb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1214.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1214.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class UserCodespacesCodespaceNamePatchBodyType(TypedDict): - """UserCodespacesCodespaceNamePatchBody""" +class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): + """ReposOwnerRepoSubscriptionPutBody""" - machine: NotRequired[str] - display_name: NotRequired[str] - recent_folders: NotRequired[list[str]] + subscribed: NotRequired[bool] + ignored: NotRequired[bool] -__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) +__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1215.py b/githubkit/versions/ghec_v2022_11_28/types/group_1215.py index a87fdbf14..492fdc91e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1215.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1215.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0156 import CodespaceMachineType +class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): + """ReposOwnerRepoTagsProtectionPostBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + pattern: str - total_count: int - machines: list[CodespaceMachineType] - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1216.py b/githubkit/versions/ghec_v2022_11_28/types/group_1216.py index 90f680aa4..f6f94cfa4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1216.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1216.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): - """UserCodespacesCodespaceNamePublishPostBody""" +class ReposOwnerRepoTopicsPutBodyType(TypedDict): + """ReposOwnerRepoTopicsPutBody""" - name: NotRequired[str] - private: NotRequired[bool] + names: list[str] -__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) +__all__ = ("ReposOwnerRepoTopicsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1217.py b/githubkit/versions/ghec_v2022_11_28/types/group_1217.py index 741f85377..4f00c0f54 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1217.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1217.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserEmailVisibilityPatchBodyType(TypedDict): - """UserEmailVisibilityPatchBody""" +class ReposOwnerRepoTransferPostBodyType(TypedDict): + """ReposOwnerRepoTransferPostBody""" - visibility: Literal["public", "private"] + new_owner: str + new_name: NotRequired[str] + team_ids: NotRequired[list[int]] -__all__ = ("UserEmailVisibilityPatchBodyType",) +__all__ = ("ReposOwnerRepoTransferPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1218.py b/githubkit/versions/ghec_v2022_11_28/types/group_1218.py index fa445ed2c..f8f62bc0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1218.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1218.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserEmailsPostBodyOneof0Type(TypedDict): - """UserEmailsPostBodyOneof0 +class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ + owner: NotRequired[str] + name: str + description: NotRequired[str] + include_all_branches: NotRequired[bool] + private: NotRequired[bool] - emails: list[str] - -__all__ = ("UserEmailsPostBodyOneof0Type",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1219.py b/githubkit/versions/ghec_v2022_11_28/types/group_1219.py index 85a754f60..f4878ed75 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1219.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1219.py @@ -9,22 +9,44 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserEmailsDeleteBodyOneof0Type(TypedDict): - """UserEmailsDeleteBodyOneof0 +class ScimV2OrganizationsOrgUsersPostBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBody""" - 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. + user_name: str + display_name: NotRequired[str] + name: ScimV2OrganizationsOrgUsersPostBodyPropNameType + emails: list[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType] + schemas: NotRequired[list[str]] + external_id: NotRequired[str] + groups: NotRequired[list[str]] + active: NotRequired[bool] + + +class ScimV2OrganizationsOrgUsersPostBodyPropNameType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBodyPropName Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} + {'givenName': 'Jane', 'familyName': 'User'} """ - emails: list[str] + given_name: str + family_name: str + formatted: NotRequired[str] + + +class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" + + value: str + primary: NotRequired[bool] + type: NotRequired[str] -__all__ = ("UserEmailsDeleteBodyOneof0Type",) +__all__ = ( + "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", + "ScimV2OrganizationsOrgUsersPostBodyPropNameType", + "ScimV2OrganizationsOrgUsersPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1220.py b/githubkit/versions/ghec_v2022_11_28/types/group_1220.py index bef46dc62..7aaa7ebc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1220.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1220.py @@ -12,11 +12,41 @@ from typing_extensions import NotRequired, TypedDict -class UserGpgKeysPostBodyType(TypedDict): - """UserGpgKeysPostBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - name: NotRequired[str] - armored_public_key: str + schemas: NotRequired[list[str]] + display_name: NotRequired[str] + external_id: NotRequired[str] + groups: NotRequired[list[str]] + active: NotRequired[bool] + user_name: str + name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType + emails: list[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType] -__all__ = ("UserGpgKeysPostBodyType",) +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str + family_name: str + formatted: NotRequired[str] + + +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" + + type: NotRequired[str] + value: str + primary: NotRequired[bool] + + +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1221.py b/githubkit/versions/ghec_v2022_11_28/types/group_1221.py index 05274655d..b3d378206 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1221.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1221.py @@ -9,16 +9,61 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0017 import InstallationType +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" -class UserInstallationsGetResponse200Type(TypedDict): - """UserInstallationsGetResponse200""" + schemas: NotRequired[list[str]] + operations: list[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType + ] - total_count: int - installations: list[InstallationType] +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" -__all__ = ("UserInstallationsGetResponse200Type",) + op: Literal["add", "remove", "replace"] + path: NotRequired[str] + value: NotRequired[ + Union[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, + list[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType + ], + str, + ] + ] + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type( + TypedDict +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" + + active: NotRequired[Union[bool, None]] + user_name: NotRequired[Union[str, None]] + external_id: NotRequired[Union[str, None]] + given_name: NotRequired[Union[str, None]] + family_name: NotRequired[Union[str, None]] + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType( + TypedDict +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 + Items + """ + + value: NotRequired[str] + primary: NotRequired[bool] + + +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1222.py b/githubkit/versions/ghec_v2022_11_28/types/group_1222.py index 2b0ca50aa..6accad501 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1222.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1222.py @@ -9,17 +9,21 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0019 import RepositoryType +class TeamsTeamIdPatchBodyType(TypedDict): + """TeamsTeamIdPatchBody""" -class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" + 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]] - total_count: int - repository_selection: NotRequired[str] - repositories: list[RepositoryType] - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) +__all__ = ("TeamsTeamIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1223.py b/githubkit/versions/ghec_v2022_11_28/types/group_1223.py index 9f9dd053b..5fc734f17 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1223.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1223.py @@ -9,11 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """UserInteractionLimitsGetResponse200Anyof1""" +class TeamsTeamIdDiscussionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsPostBody""" + title: str + body: str + private: NotRequired[bool] -__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1224.py b/githubkit/versions/ghec_v2022_11_28/types/group_1224.py index 5ec08a5e0..97be26f9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1224.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1224.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class UserKeysPostBodyType(TypedDict): - """UserKeysPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" title: NotRequired[str] - key: str + body: NotRequired[str] -__all__ = ("UserKeysPostBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1225.py b/githubkit/versions/ghec_v2022_11_28/types/group_1225.py index 718052573..49b6126e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1225.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1225.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class UserMembershipsOrgsOrgPatchBodyType(TypedDict): - """UserMembershipsOrgsOrgPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - state: Literal["active"] + body: str -__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1226.py b/githubkit/versions/ghec_v2022_11_28/types/group_1226.py index 586d41155..aba26488a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1226.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1226.py @@ -9,22 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserMigrationsPostBodyType(TypedDict): - """UserMigrationsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - 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] + body: str -__all__ = ("UserMigrationsPostBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1227.py b/githubkit/versions/ghec_v2022_11_28/types/group_1227.py index 6393094b2..ea06c9bbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1227.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1227.py @@ -9,15 +9,20 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class UserProjectsPostBodyType(TypedDict): - """UserProjectsPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - name: str - body: NotRequired[Union[str, None]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("UserProjectsPostBodyType",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1228.py b/githubkit/versions/ghec_v2022_11_28/types/group_1228.py index 354d7b410..02edb1cc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1228.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1228.py @@ -10,37 +10,15 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict - - -class UserReposPostBodyType(TypedDict): - """UserReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_discussions: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] +from typing_extensions import TypedDict + + +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" + + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] - 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",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1229.py b/githubkit/versions/ghec_v2022_11_28/types/group_1229.py index 7c5bf8edc..4c1b9ea73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1229.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1229.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class UserSocialAccountsPostBodyType(TypedDict): - """UserSocialAccountsPostBody +class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): + """TeamsTeamIdMembershipsUsernamePutBody""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ + role: NotRequired[Literal["member", "maintainer"]] - account_urls: list[str] - -__all__ = ("UserSocialAccountsPostBodyType",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1230.py b/githubkit/versions/ghec_v2022_11_28/types/group_1230.py index 5e8ecaf24..0fc6bc372 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1230.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1230.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class UserSocialAccountsDeleteBodyType(TypedDict): - """UserSocialAccountsDeleteBody +class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): + """TeamsTeamIdProjectsProjectIdPutBody""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ + permission: NotRequired[Literal["read", "write", "admin"]] - account_urls: list[str] - -__all__ = ("UserSocialAccountsDeleteBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1231.py b/githubkit/versions/ghec_v2022_11_28/types/group_1231.py index 712df953e..27e574fd9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1231.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1231.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class UserSshSigningKeysPostBodyType(TypedDict): - """UserSshSigningKeysPostBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - title: NotRequired[str] - key: str + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("UserSshSigningKeysPostBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1232.py b/githubkit/versions/ghec_v2022_11_28/types/group_1232.py index 2a9a086ef..218231963 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1232.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1232.py @@ -9,144 +9,14 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" +class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): + """TeamsTeamIdReposOwnerRepoPutBody""" - attestations: NotRequired[ - list[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] + permission: NotRequired[Literal["pull", "push", "admin"]] -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: NotRequired[SigstoreBundle0Type] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -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__ = ( - "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", - "SigstoreBundle0PropDsseEnvelopeType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", - "SigstoreBundle0PropVerificationMaterialType", - "SigstoreBundle0Type", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "UsersUsernameAttestationsSubjectDigestGetResponse200Type", -) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1233.py b/githubkit/versions/ghec_v2022_11_28/types/group_1233.py new file mode 100644 index 000000000..55352f689 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1233.py @@ -0,0 +1,36 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class 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] + description: NotRequired[str] + + +__all__ = ( + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1234.py b/githubkit/versions/ghec_v2022_11_28/types/group_1234.py new file mode 100644 index 000000000..0cc0c51fd --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1234.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union +from typing_extensions import NotRequired, TypedDict + + +class UserPatchBodyType(TypedDict): + """UserPatchBody""" + + 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] + + +__all__ = ("UserPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1235.py b/githubkit/versions/ghec_v2022_11_28/types/group_1235.py new file mode 100644 index 000000000..226463d69 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1235.py @@ -0,0 +1,24 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + +from .group_0164 import CodespaceType + + +class UserCodespacesGetResponse200Type(TypedDict): + """UserCodespacesGetResponse200""" + + total_count: int + codespaces: list[CodespaceType] + + +__all__ = ("UserCodespacesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1236.py b/githubkit/versions/ghec_v2022_11_28/types/group_1236.py new file mode 100644 index 000000000..ca44ecf9e --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1236.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +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] + + +__all__ = ("UserCodespacesPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1237.py b/githubkit/versions/ghec_v2022_11_28/types/group_1237.py new file mode 100644 index 000000000..ad32a685a --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1237.py @@ -0,0 +1,41 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class UserCodespacesPostBodyOneof1Type(TypedDict): + """UserCodespacesPostBodyOneof1""" + + pull_request: UserCodespacesPostBodyOneof1PropPullRequestType + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + + +class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): + """UserCodespacesPostBodyOneof1PropPullRequest + + Pull request number for this codespace + """ + + pull_request_number: int + repository_id: int + + +__all__ = ( + "UserCodespacesPostBodyOneof1PropPullRequestType", + "UserCodespacesPostBodyOneof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1238.py b/githubkit/versions/ghec_v2022_11_28/types/group_1238.py new file mode 100644 index 000000000..1e27e71b8 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1238.py @@ -0,0 +1,40 @@ +"""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 datetime import datetime +from typing import Literal +from typing_extensions import TypedDict + + +class UserCodespacesSecretsGetResponse200Type(TypedDict): + """UserCodespacesSecretsGetResponse200""" + + total_count: int + secrets: list[CodespacesSecretType] + + +class CodespacesSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: str + + +__all__ = ( + "CodespacesSecretType", + "UserCodespacesSecretsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1239.py b/githubkit/versions/ghec_v2022_11_28/types/group_1239.py new file mode 100644 index 000000000..6ec0707c1 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1239.py @@ -0,0 +1,24 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union +from typing_extensions import NotRequired, TypedDict + + +class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): + """UserCodespacesSecretsSecretNamePutBody""" + + encrypted_value: NotRequired[str] + key_id: str + selected_repository_ids: NotRequired[list[Union[int, str]]] + + +__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1240.py b/githubkit/versions/ghec_v2022_11_28/types/group_1240.py new file mode 100644 index 000000000..cd0e3932f --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1240.py @@ -0,0 +1,24 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + +from .group_0154 import MinimalRepositoryType + + +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + + total_count: int + repositories: list[MinimalRepositoryType] + + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1241.py b/githubkit/versions/ghec_v2022_11_28/types/group_1241.py new file mode 100644 index 000000000..69b6c64de --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1241.py @@ -0,0 +1,21 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" + + selected_repository_ids: list[int] + + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1242.py b/githubkit/versions/ghec_v2022_11_28/types/group_1242.py new file mode 100644 index 000000000..73deadc8f --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1242.py @@ -0,0 +1,23 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserCodespacesCodespaceNamePatchBodyType(TypedDict): + """UserCodespacesCodespaceNamePatchBody""" + + machine: NotRequired[str] + display_name: NotRequired[str] + recent_folders: NotRequired[list[str]] + + +__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1243.py b/githubkit/versions/ghec_v2022_11_28/types/group_1243.py new file mode 100644 index 000000000..9050e12a2 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1243.py @@ -0,0 +1,24 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + +from .group_0163 import CodespaceMachineType + + +class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + + total_count: int + machines: list[CodespaceMachineType] + + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1244.py b/githubkit/versions/ghec_v2022_11_28/types/group_1244.py new file mode 100644 index 000000000..90f680aa4 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1244.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): + """UserCodespacesCodespaceNamePublishPostBody""" + + name: NotRequired[str] + private: NotRequired[bool] + + +__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1245.py b/githubkit/versions/ghec_v2022_11_28/types/group_1245.py new file mode 100644 index 000000000..741f85377 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1245.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import TypedDict + + +class UserEmailVisibilityPatchBodyType(TypedDict): + """UserEmailVisibilityPatchBody""" + + visibility: Literal["public", "private"] + + +__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1246.py b/githubkit/versions/ghec_v2022_11_28/types/group_1246.py new file mode 100644 index 000000000..fa445ed2c --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1246.py @@ -0,0 +1,25 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserEmailsPostBodyOneof0Type(TypedDict): + """UserEmailsPostBodyOneof0 + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: list[str] + + +__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1247.py b/githubkit/versions/ghec_v2022_11_28/types/group_1247.py new file mode 100644 index 000000000..85a754f60 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1247.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserEmailsDeleteBodyOneof0Type(TypedDict): + """UserEmailsDeleteBodyOneof0 + + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: list[str] + + +__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1248.py b/githubkit/versions/ghec_v2022_11_28/types/group_1248.py new file mode 100644 index 000000000..bef46dc62 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1248.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserGpgKeysPostBodyType(TypedDict): + """UserGpgKeysPostBody""" + + name: NotRequired[str] + armored_public_key: str + + +__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1249.py b/githubkit/versions/ghec_v2022_11_28/types/group_1249.py new file mode 100644 index 000000000..069eb3383 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1249.py @@ -0,0 +1,24 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + +from .group_0018 import InstallationType + + +class UserInstallationsGetResponse200Type(TypedDict): + """UserInstallationsGetResponse200""" + + total_count: int + installations: list[InstallationType] + + +__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1250.py b/githubkit/versions/ghec_v2022_11_28/types/group_1250.py new file mode 100644 index 000000000..8e85a1d81 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1250.py @@ -0,0 +1,25 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + +from .group_0020 import RepositoryType + + +class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + + total_count: int + repository_selection: NotRequired[str] + repositories: list[RepositoryType] + + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1251.py b/githubkit/versions/ghec_v2022_11_28/types/group_1251.py new file mode 100644 index 000000000..9f9dd053b --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1251.py @@ -0,0 +1,19 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """UserInteractionLimitsGetResponse200Anyof1""" + + +__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1252.py b/githubkit/versions/ghec_v2022_11_28/types/group_1252.py new file mode 100644 index 000000000..5ec08a5e0 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1252.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserKeysPostBodyType(TypedDict): + """UserKeysPostBody""" + + title: NotRequired[str] + key: str + + +__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1253.py b/githubkit/versions/ghec_v2022_11_28/types/group_1253.py new file mode 100644 index 000000000..718052573 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1253.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import TypedDict + + +class UserMembershipsOrgsOrgPatchBodyType(TypedDict): + """UserMembershipsOrgsOrgPatchBody""" + + state: Literal["active"] + + +__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1254.py b/githubkit/versions/ghec_v2022_11_28/types/group_1254.py new file mode 100644 index 000000000..586d41155 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1254.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class UserMigrationsPostBodyType(TypedDict): + """UserMigrationsPostBody""" + + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[list[Literal["repositories"]]] + repositories: list[str] + + +__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1255.py b/githubkit/versions/ghec_v2022_11_28/types/group_1255.py new file mode 100644 index 000000000..6393094b2 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1255.py @@ -0,0 +1,23 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union +from typing_extensions import NotRequired, TypedDict + + +class UserProjectsPostBodyType(TypedDict): + """UserProjectsPostBody""" + + name: str + body: NotRequired[Union[str, None]] + + +__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1256.py b/githubkit/versions/ghec_v2022_11_28/types/group_1256.py new file mode 100644 index 000000000..354d7b410 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1256.py @@ -0,0 +1,46 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class UserReposPostBodyType(TypedDict): + """UserReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_discussions: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + + +__all__ = ("UserReposPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1257.py b/githubkit/versions/ghec_v2022_11_28/types/group_1257.py new file mode 100644 index 000000000..7c5bf8edc --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1257.py @@ -0,0 +1,26 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserSocialAccountsPostBodyType(TypedDict): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] + + +__all__ = ("UserSocialAccountsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1258.py b/githubkit/versions/ghec_v2022_11_28/types/group_1258.py new file mode 100644 index 000000000..5e8ecaf24 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1258.py @@ -0,0 +1,26 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserSocialAccountsDeleteBodyType(TypedDict): + """UserSocialAccountsDeleteBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] + + +__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1259.py b/githubkit/versions/ghec_v2022_11_28/types/group_1259.py new file mode 100644 index 000000000..712df953e --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1259.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserSshSigningKeysPostBodyType(TypedDict): + """UserSshSigningKeysPostBody""" + + title: NotRequired[str] + key: str + + +__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1260.py b/githubkit/versions/ghec_v2022_11_28/types/group_1260.py new file mode 100644 index 000000000..2a9a086ef --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1260.py @@ -0,0 +1,152 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union +from typing_extensions import NotRequired, TypedDict + + +class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: NotRequired[ + list[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[SigstoreBundle0Type] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +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__ = ( + "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", + "SigstoreBundle0PropDsseEnvelopeType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", + "SigstoreBundle0PropVerificationMaterialType", + "SigstoreBundle0Type", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", +) diff --git a/githubkit/versions/latest/models.py b/githubkit/versions/latest/models.py index 5265cb337..c8923b590 100644 --- a/githubkit/versions/latest/models.py +++ b/githubkit/versions/latest/models.py @@ -31,6 +31,24 @@ from githubkit.versions.v2022_11_28.models import ( ActionsGetDefaultWorkflowPermissions as ActionsGetDefaultWorkflowPermissions, ) + from githubkit.versions.v2022_11_28.models import ( + ActionsHostedRunner as ActionsHostedRunner, + ) + from githubkit.versions.v2022_11_28.models import ( + ActionsHostedRunnerImage as ActionsHostedRunnerImage, + ) + from githubkit.versions.v2022_11_28.models import ( + ActionsHostedRunnerLimits as ActionsHostedRunnerLimits, + ) + from githubkit.versions.v2022_11_28.models import ( + ActionsHostedRunnerLimitsPropPublicIps as ActionsHostedRunnerLimitsPropPublicIps, + ) + from githubkit.versions.v2022_11_28.models import ( + ActionsHostedRunnerMachineSpec as ActionsHostedRunnerMachineSpec, + ) + from githubkit.versions.v2022_11_28.models import ( + ActionsHostedRunnerPoolImage as ActionsHostedRunnerPoolImage, + ) from githubkit.versions.v2022_11_28.models import ( ActionsOrganizationPermissions as ActionsOrganizationPermissions, ) @@ -861,9 +879,6 @@ from githubkit.versions.v2022_11_28.models import ( GlobalAdvisoryPropCwesItems as GlobalAdvisoryPropCwesItems, ) - from githubkit.versions.v2022_11_28.models import ( - GlobalAdvisoryPropEpss as GlobalAdvisoryPropEpss, - ) from githubkit.versions.v2022_11_28.models import ( GlobalAdvisoryPropIdentifiersItems as GlobalAdvisoryPropIdentifiersItems, ) @@ -1039,6 +1054,10 @@ from githubkit.versions.v2022_11_28.models import ( MovedColumnInProjectIssueEventPropProjectCard as MovedColumnInProjectIssueEventPropProjectCard, ) + from githubkit.versions.v2022_11_28.models import ( + NetworkConfiguration as NetworkConfiguration, + ) + from githubkit.versions.v2022_11_28.models import NetworkSettings as NetworkSettings from githubkit.versions.v2022_11_28.models import ( NotificationsPutBody as NotificationsPutBody, ) @@ -1141,6 +1160,30 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200 as OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersGetResponse200 as OrgsOrgActionsHostedRunnersGetResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200 as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200 as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200 as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersPlatformsGetResponse200 as OrgsOrgActionsHostedRunnersPlatformsGetResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersPostBody as OrgsOrgActionsHostedRunnersPostBody, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsHostedRunnersPostBodyPropImage as OrgsOrgActionsHostedRunnersPostBodyPropImage, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) @@ -1156,6 +1199,9 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsRunnerGroupsPostBody as OrgsOrgActionsRunnerGroupsPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, ) @@ -1429,6 +1475,15 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgSettingsNetworkConfigurationsGetResponse200 as OrgsOrgSettingsNetworkConfigurationsGetResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgSettingsNetworkConfigurationsPostBody as OrgsOrgSettingsNetworkConfigurationsPostBody, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody, ) @@ -1703,6 +1758,7 @@ from githubkit.versions.v2022_11_28.models import ( ProtectedBranchRequiredStatusCheckPropChecksItems as ProtectedBranchRequiredStatusCheckPropChecksItems, ) + from githubkit.versions.v2022_11_28.models import PublicIp as PublicIp from githubkit.versions.v2022_11_28.models import PublicUser as PublicUser from githubkit.versions.v2022_11_28.models import ( PublicUserPropPlan as PublicUserPropPlan, @@ -2977,6 +3033,9 @@ from githubkit.versions.v2022_11_28.models import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1 as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1, ) + from githubkit.versions.v2022_11_28.models import ( + SecurityAdvisoryEpss as SecurityAdvisoryEpss, + ) from githubkit.versions.v2022_11_28.models import ( SecurityAndAnalysis as SecurityAndAnalysis, ) @@ -9630,17 +9689,18 @@ "CvssSeverities", "CvssSeveritiesPropCvssV3", "CvssSeveritiesPropCvssV4", + "SecurityAdvisoryEpss", "SimpleUser", "GlobalAdvisory", "GlobalAdvisoryPropIdentifiersItems", "GlobalAdvisoryPropCvss", "GlobalAdvisoryPropCwesItems", - "GlobalAdvisoryPropEpss", "Vulnerability", "VulnerabilityPropPackage", "GlobalAdvisoryPropCreditsItems", "BasicError", "ValidationErrorSimple", + "Enterprise", "IntegrationPropPermissions", "Integration", "WebhookConfig", @@ -9654,7 +9714,6 @@ "HookDeliveryPropRequestPropPayload", "HookDeliveryPropResponse", "HookDeliveryPropResponsePropHeaders", - "Enterprise", "IntegrationInstallationRequest", "AppPermissions", "Installation", @@ -9754,6 +9813,13 @@ "OrganizationFull", "OrganizationFullPropPlan", "ActionsCacheUsageOrgEnterprise", + "ActionsHostedRunnerMachineSpec", + "ActionsHostedRunner", + "ActionsHostedRunnerPoolImage", + "PublicIp", + "ActionsHostedRunnerImage", + "ActionsHostedRunnerLimits", + "ActionsHostedRunnerLimitsPropPublicIps", "OidcCustomSub", "ActionsOrganizationPermissions", "SelectedActions", @@ -9920,6 +9986,7 @@ "ActionsBillingUsagePropMinutesUsedBreakdown", "PackagesBillingUsage", "CombinedBillingUsage", + "NetworkSettings", "TeamFull", "TeamOrganization", "TeamOrganizationPropPlan", @@ -12536,6 +12603,14 @@ "OrgsOrgPatchBody", "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", + "OrgsOrgActionsHostedRunnersGetResponse200", + "OrgsOrgActionsHostedRunnersPostBody", + "OrgsOrgActionsHostedRunnersPostBodyPropImage", + "OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200", + "OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200", + "OrgsOrgActionsHostedRunnersMachineSizesGetResponse200", + "OrgsOrgActionsHostedRunnersPlatformsGetResponse200", + "OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody", "OrgsOrgActionsPermissionsPutBody", "OrgsOrgActionsPermissionsRepositoriesGetResponse200", "OrgsOrgActionsPermissionsRepositoriesPutBody", @@ -12543,6 +12618,7 @@ "RunnerGroupsOrg", "OrgsOrgActionsRunnerGroupsPostBody", "OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody", + "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200", "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200", "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody", "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", @@ -12634,6 +12710,10 @@ "OrgsOrgReposPostBodyPropCustomProperties", "OrgsOrgRulesetsPostBody", "OrgsOrgRulesetsRulesetIdPutBody", + "OrgsOrgSettingsNetworkConfigurationsGetResponse200", + "NetworkConfiguration", + "OrgsOrgSettingsNetworkConfigurationsPostBody", + "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody", "OrgsOrgTeamsPostBody", "OrgsOrgTeamsTeamSlugPatchBody", "OrgsOrgTeamsTeamSlugDiscussionsPostBody", diff --git a/githubkit/versions/latest/types.py b/githubkit/versions/latest/types.py index b34e5fe2a..8cb43a204 100644 --- a/githubkit/versions/latest/types.py +++ b/githubkit/versions/latest/types.py @@ -31,6 +31,24 @@ from githubkit.versions.v2022_11_28.types import ( ActionsGetDefaultWorkflowPermissionsType as ActionsGetDefaultWorkflowPermissionsType, ) + from githubkit.versions.v2022_11_28.types import ( + ActionsHostedRunnerImageType as ActionsHostedRunnerImageType, + ) + from githubkit.versions.v2022_11_28.types import ( + ActionsHostedRunnerLimitsPropPublicIpsType as ActionsHostedRunnerLimitsPropPublicIpsType, + ) + from githubkit.versions.v2022_11_28.types import ( + ActionsHostedRunnerLimitsType as ActionsHostedRunnerLimitsType, + ) + from githubkit.versions.v2022_11_28.types import ( + ActionsHostedRunnerMachineSpecType as ActionsHostedRunnerMachineSpecType, + ) + from githubkit.versions.v2022_11_28.types import ( + ActionsHostedRunnerPoolImageType as ActionsHostedRunnerPoolImageType, + ) + from githubkit.versions.v2022_11_28.types import ( + ActionsHostedRunnerType as ActionsHostedRunnerType, + ) from githubkit.versions.v2022_11_28.types import ( ActionsOrganizationPermissionsType as ActionsOrganizationPermissionsType, ) @@ -904,9 +922,6 @@ from githubkit.versions.v2022_11_28.types import ( GlobalAdvisoryPropCwesItemsType as GlobalAdvisoryPropCwesItemsType, ) - from githubkit.versions.v2022_11_28.types import ( - GlobalAdvisoryPropEpssType as GlobalAdvisoryPropEpssType, - ) from githubkit.versions.v2022_11_28.types import ( GlobalAdvisoryPropIdentifiersItemsType as GlobalAdvisoryPropIdentifiersItemsType, ) @@ -1103,6 +1118,12 @@ from githubkit.versions.v2022_11_28.types import ( MovedColumnInProjectIssueEventType as MovedColumnInProjectIssueEventType, ) + from githubkit.versions.v2022_11_28.types import ( + NetworkConfigurationType as NetworkConfigurationType, + ) + from githubkit.versions.v2022_11_28.types import ( + NetworkSettingsType as NetworkSettingsType, + ) from githubkit.versions.v2022_11_28.types import ( NotificationsPutBodyType as NotificationsPutBodyType, ) @@ -1209,6 +1230,30 @@ from githubkit.versions.v2022_11_28.types import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type as OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgActionsHostedRunnersGetResponse200Type as OrgsOrgActionsHostedRunnersGetResponse200Type, + ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, + ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, + ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, + ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, + ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type as OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, + ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgActionsHostedRunnersPostBodyPropImageType as OrgsOrgActionsHostedRunnersPostBodyPropImageType, + ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgActionsHostedRunnersPostBodyType as OrgsOrgActionsHostedRunnersPostBodyType, + ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) @@ -1224,6 +1269,9 @@ from githubkit.versions.v2022_11_28.types import ( OrgsOrgActionsRunnerGroupsPostBodyType as OrgsOrgActionsRunnerGroupsPostBodyType, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, + ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) @@ -1497,6 +1545,15 @@ from githubkit.versions.v2022_11_28.types import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgSettingsNetworkConfigurationsGetResponse200Type as OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, + ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgSettingsNetworkConfigurationsPostBodyType as OrgsOrgSettingsNetworkConfigurationsPostBodyType, + ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType, ) @@ -1789,6 +1846,7 @@ from githubkit.versions.v2022_11_28.types import ( ProtectedBranchType as ProtectedBranchType, ) + from githubkit.versions.v2022_11_28.types import PublicIpType as PublicIpType from githubkit.versions.v2022_11_28.types import ( PublicUserPropPlanType as PublicUserPropPlanType, ) @@ -3075,6 +3133,9 @@ from githubkit.versions.v2022_11_28.types import ( SecretScanningScanType as SecretScanningScanType, ) + from githubkit.versions.v2022_11_28.types import ( + SecurityAdvisoryEpssType as SecurityAdvisoryEpssType, + ) from githubkit.versions.v2022_11_28.types import ( SecurityAndAnalysisPropAdvancedSecurityType as SecurityAndAnalysisPropAdvancedSecurityType, ) @@ -9804,17 +9865,18 @@ "CvssSeveritiesType", "CvssSeveritiesPropCvssV3Type", "CvssSeveritiesPropCvssV4Type", + "SecurityAdvisoryEpssType", "SimpleUserType", "GlobalAdvisoryType", "GlobalAdvisoryPropIdentifiersItemsType", "GlobalAdvisoryPropCvssType", "GlobalAdvisoryPropCwesItemsType", - "GlobalAdvisoryPropEpssType", "VulnerabilityType", "VulnerabilityPropPackageType", "GlobalAdvisoryPropCreditsItemsType", "BasicErrorType", "ValidationErrorSimpleType", + "EnterpriseType", "IntegrationPropPermissionsType", "IntegrationType", "WebhookConfigType", @@ -9828,7 +9890,6 @@ "HookDeliveryPropRequestPropPayloadType", "HookDeliveryPropResponseType", "HookDeliveryPropResponsePropHeadersType", - "EnterpriseType", "IntegrationInstallationRequestType", "AppPermissionsType", "InstallationType", @@ -9928,6 +9989,13 @@ "OrganizationFullType", "OrganizationFullPropPlanType", "ActionsCacheUsageOrgEnterpriseType", + "ActionsHostedRunnerMachineSpecType", + "ActionsHostedRunnerType", + "ActionsHostedRunnerPoolImageType", + "PublicIpType", + "ActionsHostedRunnerImageType", + "ActionsHostedRunnerLimitsType", + "ActionsHostedRunnerLimitsPropPublicIpsType", "OidcCustomSubType", "ActionsOrganizationPermissionsType", "SelectedActionsType", @@ -10094,6 +10162,7 @@ "ActionsBillingUsagePropMinutesUsedBreakdownType", "PackagesBillingUsageType", "CombinedBillingUsageType", + "NetworkSettingsType", "TeamFullType", "TeamOrganizationType", "TeamOrganizationPropPlanType", @@ -12710,6 +12779,14 @@ "OrgsOrgPatchBodyType", "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", "ActionsCacheUsageByRepositoryType", + "OrgsOrgActionsHostedRunnersGetResponse200Type", + "OrgsOrgActionsHostedRunnersPostBodyType", + "OrgsOrgActionsHostedRunnersPostBodyPropImageType", + "OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type", + "OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type", + "OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type", + "OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type", + "OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType", "OrgsOrgActionsPermissionsPutBodyType", "OrgsOrgActionsPermissionsRepositoriesGetResponse200Type", "OrgsOrgActionsPermissionsRepositoriesPutBodyType", @@ -12717,6 +12794,7 @@ "RunnerGroupsOrgType", "OrgsOrgActionsRunnerGroupsPostBodyType", "OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType", + "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type", "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type", "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType", "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", @@ -12808,6 +12886,10 @@ "OrgsOrgReposPostBodyPropCustomPropertiesType", "OrgsOrgRulesetsPostBodyType", "OrgsOrgRulesetsRulesetIdPutBodyType", + "OrgsOrgSettingsNetworkConfigurationsGetResponse200Type", + "NetworkConfigurationType", + "OrgsOrgSettingsNetworkConfigurationsPostBodyType", + "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType", "OrgsOrgTeamsPostBodyType", "OrgsOrgTeamsTeamSlugPatchBodyType", "OrgsOrgTeamsTeamSlugDiscussionsPostBodyType", diff --git a/githubkit/versions/v2022_11_28/models/__init__.py b/githubkit/versions/v2022_11_28/models/__init__.py index e366fd7cc..a3bc8f0cf 100644 --- a/githubkit/versions/v2022_11_28/models/__init__.py +++ b/githubkit/versions/v2022_11_28/models/__init__.py @@ -14,8465 +14,8514 @@ from .group_0001 import CvssSeverities as CvssSeverities from .group_0001 import CvssSeveritiesPropCvssV3 as CvssSeveritiesPropCvssV3 from .group_0001 import CvssSeveritiesPropCvssV4 as CvssSeveritiesPropCvssV4 - from .group_0002 import SimpleUser as SimpleUser - from .group_0003 import GlobalAdvisory as GlobalAdvisory - from .group_0003 import GlobalAdvisoryPropCvss as GlobalAdvisoryPropCvss - from .group_0003 import GlobalAdvisoryPropCwesItems as GlobalAdvisoryPropCwesItems - from .group_0003 import GlobalAdvisoryPropEpss as GlobalAdvisoryPropEpss - from .group_0003 import ( + from .group_0002 import SecurityAdvisoryEpss as SecurityAdvisoryEpss + from .group_0003 import SimpleUser as SimpleUser + from .group_0004 import GlobalAdvisory as GlobalAdvisory + from .group_0004 import GlobalAdvisoryPropCvss as GlobalAdvisoryPropCvss + from .group_0004 import GlobalAdvisoryPropCwesItems as GlobalAdvisoryPropCwesItems + from .group_0004 import ( GlobalAdvisoryPropIdentifiersItems as GlobalAdvisoryPropIdentifiersItems, ) - from .group_0003 import Vulnerability as Vulnerability - from .group_0003 import VulnerabilityPropPackage as VulnerabilityPropPackage - from .group_0004 import ( + from .group_0004 import Vulnerability as Vulnerability + from .group_0004 import VulnerabilityPropPackage as VulnerabilityPropPackage + from .group_0005 import ( GlobalAdvisoryPropCreditsItems as GlobalAdvisoryPropCreditsItems, ) - from .group_0005 import BasicError as BasicError - from .group_0006 import ValidationErrorSimple as ValidationErrorSimple - from .group_0007 import IntegrationPropPermissions as IntegrationPropPermissions - from .group_0008 import Integration as Integration - from .group_0009 import WebhookConfig as WebhookConfig - from .group_0010 import HookDeliveryItem as HookDeliveryItem - from .group_0011 import ScimError as ScimError - from .group_0012 import ValidationError as ValidationError - from .group_0012 import ( + from .group_0006 import BasicError as BasicError + from .group_0007 import ValidationErrorSimple as ValidationErrorSimple + from .group_0008 import Enterprise as Enterprise + from .group_0009 import IntegrationPropPermissions as IntegrationPropPermissions + from .group_0010 import Integration as Integration + from .group_0011 import WebhookConfig as WebhookConfig + from .group_0012 import HookDeliveryItem as HookDeliveryItem + from .group_0013 import ScimError as ScimError + from .group_0014 import ValidationError as ValidationError + from .group_0014 import ( ValidationErrorPropErrorsItems as ValidationErrorPropErrorsItems, ) - from .group_0013 import HookDelivery as HookDelivery - from .group_0013 import HookDeliveryPropRequest as HookDeliveryPropRequest - from .group_0013 import ( + from .group_0015 import HookDelivery as HookDelivery + from .group_0015 import HookDeliveryPropRequest as HookDeliveryPropRequest + from .group_0015 import ( HookDeliveryPropRequestPropHeaders as HookDeliveryPropRequestPropHeaders, ) - from .group_0013 import ( + from .group_0015 import ( HookDeliveryPropRequestPropPayload as HookDeliveryPropRequestPropPayload, ) - from .group_0013 import HookDeliveryPropResponse as HookDeliveryPropResponse - from .group_0013 import ( + from .group_0015 import HookDeliveryPropResponse as HookDeliveryPropResponse + from .group_0015 import ( HookDeliveryPropResponsePropHeaders as HookDeliveryPropResponsePropHeaders, ) - from .group_0014 import Enterprise as Enterprise - from .group_0015 import ( + from .group_0016 import ( IntegrationInstallationRequest as IntegrationInstallationRequest, ) - from .group_0016 import AppPermissions as AppPermissions - from .group_0017 import Installation as Installation - from .group_0018 import LicenseSimple as LicenseSimple - from .group_0019 import Repository as Repository - from .group_0019 import RepositoryPropPermissions as RepositoryPropPermissions - from .group_0020 import InstallationToken as InstallationToken - from .group_0021 import ScopedInstallation as ScopedInstallation - from .group_0022 import Authorization as Authorization - from .group_0022 import AuthorizationPropApp as AuthorizationPropApp - from .group_0023 import SimpleClassroomRepository as SimpleClassroomRepository - from .group_0024 import Classroom as Classroom - from .group_0024 import ClassroomAssignment as ClassroomAssignment - from .group_0024 import SimpleClassroomOrganization as SimpleClassroomOrganization - from .group_0025 import ClassroomAcceptedAssignment as ClassroomAcceptedAssignment - from .group_0025 import SimpleClassroom as SimpleClassroom - from .group_0025 import SimpleClassroomAssignment as SimpleClassroomAssignment - from .group_0025 import SimpleClassroomUser as SimpleClassroomUser - from .group_0026 import ClassroomAssignmentGrade as ClassroomAssignmentGrade - from .group_0027 import CodeSecurityConfiguration as CodeSecurityConfiguration - from .group_0027 import ( + from .group_0017 import AppPermissions as AppPermissions + from .group_0018 import Installation as Installation + from .group_0019 import LicenseSimple as LicenseSimple + from .group_0020 import Repository as Repository + from .group_0020 import RepositoryPropPermissions as RepositoryPropPermissions + from .group_0021 import InstallationToken as InstallationToken + from .group_0022 import ScopedInstallation as ScopedInstallation + from .group_0023 import Authorization as Authorization + from .group_0023 import AuthorizationPropApp as AuthorizationPropApp + from .group_0024 import SimpleClassroomRepository as SimpleClassroomRepository + from .group_0025 import Classroom as Classroom + from .group_0025 import ClassroomAssignment as ClassroomAssignment + from .group_0025 import SimpleClassroomOrganization as SimpleClassroomOrganization + from .group_0026 import ClassroomAcceptedAssignment as ClassroomAcceptedAssignment + from .group_0026 import SimpleClassroom as SimpleClassroom + from .group_0026 import SimpleClassroomAssignment as SimpleClassroomAssignment + from .group_0026 import SimpleClassroomUser as SimpleClassroomUser + from .group_0027 import ClassroomAssignmentGrade as ClassroomAssignmentGrade + from .group_0028 import CodeSecurityConfiguration as CodeSecurityConfiguration + from .group_0028 import ( CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions as CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions, ) - from .group_0027 import ( + from .group_0028 import ( CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions as CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions, ) - from .group_0027 import ( + from .group_0028 import ( CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions as CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions, ) - from .group_0027 import ( + from .group_0028 import ( CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems as CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0028 import ( + from .group_0029 import ( CodeScanningDefaultSetupOptions as CodeScanningDefaultSetupOptions, ) - from .group_0029 import ( + from .group_0030 import ( CodeSecurityDefaultConfigurationsItems as CodeSecurityDefaultConfigurationsItems, ) - from .group_0030 import SimpleRepository as SimpleRepository - from .group_0031 import ( + from .group_0031 import SimpleRepository as SimpleRepository + from .group_0032 import ( CodeSecurityConfigurationRepositories as CodeSecurityConfigurationRepositories, ) - from .group_0032 import DependabotAlertPackage as DependabotAlertPackage - from .group_0033 import ( + from .group_0033 import DependabotAlertPackage as DependabotAlertPackage + from .group_0034 import ( DependabotAlertSecurityVulnerability as DependabotAlertSecurityVulnerability, ) - from .group_0033 import ( + from .group_0034 import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, ) - from .group_0034 import ( + from .group_0035 import ( DependabotAlertSecurityAdvisory as DependabotAlertSecurityAdvisory, ) - from .group_0034 import ( + from .group_0035 import ( DependabotAlertSecurityAdvisoryPropCvss as DependabotAlertSecurityAdvisoryPropCvss, ) - from .group_0034 import ( + from .group_0035 import ( DependabotAlertSecurityAdvisoryPropCwesItems as DependabotAlertSecurityAdvisoryPropCwesItems, ) - from .group_0034 import ( + from .group_0035 import ( DependabotAlertSecurityAdvisoryPropIdentifiersItems as DependabotAlertSecurityAdvisoryPropIdentifiersItems, ) - from .group_0034 import ( + from .group_0035 import ( DependabotAlertSecurityAdvisoryPropReferencesItems as DependabotAlertSecurityAdvisoryPropReferencesItems, ) - from .group_0035 import ( + from .group_0036 import ( DependabotAlertWithRepository as DependabotAlertWithRepository, ) - from .group_0036 import ( + from .group_0037 import ( DependabotAlertWithRepositoryPropDependency as DependabotAlertWithRepositoryPropDependency, ) - from .group_0037 import ( + from .group_0038 import ( OrganizationSecretScanningAlert as OrganizationSecretScanningAlert, ) - from .group_0038 import Milestone as Milestone - from .group_0039 import ReactionRollup as ReactionRollup - from .group_0040 import Issue as Issue - from .group_0040 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 - from .group_0040 import IssuePropPullRequest as IssuePropPullRequest - from .group_0040 import SubIssuesSummary as SubIssuesSummary - from .group_0041 import IssueComment as IssueComment - from .group_0042 import Actor as Actor - from .group_0042 import Event as Event - from .group_0042 import EventPropPayload as EventPropPayload - from .group_0042 import ( + from .group_0039 import Milestone as Milestone + from .group_0040 import ReactionRollup as ReactionRollup + from .group_0041 import Issue as Issue + from .group_0041 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 + from .group_0041 import IssuePropPullRequest as IssuePropPullRequest + from .group_0041 import SubIssuesSummary as SubIssuesSummary + from .group_0042 import IssueComment as IssueComment + from .group_0043 import Actor as Actor + from .group_0043 import Event as Event + from .group_0043 import EventPropPayload as EventPropPayload + from .group_0043 import ( EventPropPayloadPropPagesItems as EventPropPayloadPropPagesItems, ) - from .group_0042 import EventPropRepo as EventPropRepo - from .group_0043 import Feed as Feed - from .group_0043 import FeedPropLinks as FeedPropLinks - from .group_0043 import LinkWithType as LinkWithType - from .group_0044 import BaseGist as BaseGist - from .group_0044 import BaseGistPropFiles as BaseGistPropFiles - from .group_0045 import GistHistory as GistHistory - from .group_0045 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus - from .group_0045 import GistSimplePropForkOf as GistSimplePropForkOf - from .group_0045 import ( + from .group_0043 import EventPropRepo as EventPropRepo + from .group_0044 import Feed as Feed + from .group_0044 import FeedPropLinks as FeedPropLinks + from .group_0044 import LinkWithType as LinkWithType + from .group_0045 import BaseGist as BaseGist + from .group_0045 import BaseGistPropFiles as BaseGistPropFiles + from .group_0046 import GistHistory as GistHistory + from .group_0046 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus + from .group_0046 import GistSimplePropForkOf as GistSimplePropForkOf + from .group_0046 import ( GistSimplePropForkOfPropFiles as GistSimplePropForkOfPropFiles, ) - from .group_0046 import GistSimple as GistSimple - from .group_0046 import GistSimplePropFiles as GistSimplePropFiles - from .group_0046 import GistSimplePropForksItems as GistSimplePropForksItems - from .group_0046 import PublicUser as PublicUser - from .group_0046 import PublicUserPropPlan as PublicUserPropPlan - from .group_0047 import GistComment as GistComment - from .group_0048 import GistCommit as GistCommit - from .group_0048 import GistCommitPropChangeStatus as GistCommitPropChangeStatus - from .group_0049 import GitignoreTemplate as GitignoreTemplate - from .group_0050 import License as License - from .group_0051 import MarketplaceListingPlan as MarketplaceListingPlan - from .group_0052 import MarketplacePurchase as MarketplacePurchase - from .group_0053 import ( + from .group_0047 import GistSimple as GistSimple + from .group_0047 import GistSimplePropFiles as GistSimplePropFiles + from .group_0047 import GistSimplePropForksItems as GistSimplePropForksItems + from .group_0047 import PublicUser as PublicUser + from .group_0047 import PublicUserPropPlan as PublicUserPropPlan + from .group_0048 import GistComment as GistComment + from .group_0049 import GistCommit as GistCommit + from .group_0049 import GistCommitPropChangeStatus as GistCommitPropChangeStatus + from .group_0050 import GitignoreTemplate as GitignoreTemplate + from .group_0051 import License as License + from .group_0052 import MarketplaceListingPlan as MarketplaceListingPlan + from .group_0053 import MarketplacePurchase as MarketplacePurchase + from .group_0054 import ( MarketplacePurchasePropMarketplacePendingChange as MarketplacePurchasePropMarketplacePendingChange, ) - from .group_0053 import ( + from .group_0054 import ( MarketplacePurchasePropMarketplacePurchase as MarketplacePurchasePropMarketplacePurchase, ) - from .group_0054 import ApiOverview as ApiOverview - from .group_0054 import ApiOverviewPropDomains as ApiOverviewPropDomains - from .group_0054 import ( + from .group_0055 import ApiOverview as ApiOverview + from .group_0055 import ApiOverviewPropDomains as ApiOverviewPropDomains + from .group_0055 import ( ApiOverviewPropDomainsPropActionsInbound as ApiOverviewPropDomainsPropActionsInbound, ) - from .group_0054 import ( + from .group_0055 import ( ApiOverviewPropDomainsPropArtifactAttestations as ApiOverviewPropDomainsPropArtifactAttestations, ) - from .group_0054 import ( + from .group_0055 import ( ApiOverviewPropSshKeyFingerprints as ApiOverviewPropSshKeyFingerprints, ) - from .group_0055 import SecurityAndAnalysis as SecurityAndAnalysis - from .group_0055 import ( + from .group_0056 import SecurityAndAnalysis as SecurityAndAnalysis + from .group_0056 import ( SecurityAndAnalysisPropAdvancedSecurity as SecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0055 import ( + from .group_0056 import ( SecurityAndAnalysisPropDependabotSecurityUpdates as SecurityAndAnalysisPropDependabotSecurityUpdates, ) - from .group_0055 import ( + from .group_0056 import ( SecurityAndAnalysisPropSecretScanning as SecurityAndAnalysisPropSecretScanning, ) - from .group_0055 import ( + from .group_0056 import ( SecurityAndAnalysisPropSecretScanningAiDetection as SecurityAndAnalysisPropSecretScanningAiDetection, ) - from .group_0055 import ( + from .group_0056 import ( SecurityAndAnalysisPropSecretScanningNonProviderPatterns as SecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) - from .group_0055 import ( + from .group_0056 import ( SecurityAndAnalysisPropSecretScanningPushProtection as SecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0056 import CodeOfConduct as CodeOfConduct - from .group_0056 import MinimalRepository as MinimalRepository - from .group_0056 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense - from .group_0056 import ( + from .group_0057 import CodeOfConduct as CodeOfConduct + from .group_0057 import MinimalRepository as MinimalRepository + from .group_0057 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense + from .group_0057 import ( MinimalRepositoryPropPermissions as MinimalRepositoryPropPermissions, ) - from .group_0057 import Thread as Thread - from .group_0057 import ThreadPropSubject as ThreadPropSubject - from .group_0058 import ThreadSubscription as ThreadSubscription - from .group_0059 import OrganizationSimple as OrganizationSimple - from .group_0060 import BillingUsageReport as BillingUsageReport - from .group_0060 import ( + from .group_0058 import Thread as Thread + from .group_0058 import ThreadPropSubject as ThreadPropSubject + from .group_0059 import ThreadSubscription as ThreadSubscription + from .group_0060 import OrganizationSimple as OrganizationSimple + from .group_0061 import BillingUsageReport as BillingUsageReport + from .group_0061 import ( BillingUsageReportPropUsageItemsItems as BillingUsageReportPropUsageItemsItems, ) - from .group_0061 import OrganizationFull as OrganizationFull - from .group_0061 import OrganizationFullPropPlan as OrganizationFullPropPlan - from .group_0062 import ( + from .group_0062 import OrganizationFull as OrganizationFull + from .group_0062 import OrganizationFullPropPlan as OrganizationFullPropPlan + from .group_0063 import ( ActionsCacheUsageOrgEnterprise as ActionsCacheUsageOrgEnterprise, ) - from .group_0063 import OidcCustomSub as OidcCustomSub from .group_0064 import ( + ActionsHostedRunnerMachineSpec as ActionsHostedRunnerMachineSpec, + ) + from .group_0065 import ActionsHostedRunner as ActionsHostedRunner + from .group_0065 import ActionsHostedRunnerPoolImage as ActionsHostedRunnerPoolImage + from .group_0065 import PublicIp as PublicIp + from .group_0066 import ActionsHostedRunnerImage as ActionsHostedRunnerImage + from .group_0067 import ActionsHostedRunnerLimits as ActionsHostedRunnerLimits + from .group_0067 import ( + ActionsHostedRunnerLimitsPropPublicIps as ActionsHostedRunnerLimitsPropPublicIps, + ) + from .group_0068 import OidcCustomSub as OidcCustomSub + from .group_0069 import ( ActionsOrganizationPermissions as ActionsOrganizationPermissions, ) - from .group_0065 import SelectedActions as SelectedActions - from .group_0066 import ( + from .group_0070 import SelectedActions as SelectedActions + from .group_0071 import ( ActionsGetDefaultWorkflowPermissions as ActionsGetDefaultWorkflowPermissions, ) - from .group_0067 import ( + from .group_0072 import ( ActionsSetDefaultWorkflowPermissions as ActionsSetDefaultWorkflowPermissions, ) - from .group_0068 import RunnerLabel as RunnerLabel - from .group_0069 import Runner as Runner - from .group_0070 import RunnerApplication as RunnerApplication - from .group_0071 import AuthenticationToken as AuthenticationToken - from .group_0071 import ( + from .group_0073 import RunnerLabel as RunnerLabel + from .group_0074 import Runner as Runner + from .group_0075 import RunnerApplication as RunnerApplication + from .group_0076 import AuthenticationToken as AuthenticationToken + from .group_0076 import ( AuthenticationTokenPropPermissions as AuthenticationTokenPropPermissions, ) - from .group_0072 import ActionsPublicKey as ActionsPublicKey - from .group_0073 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary - from .group_0074 import CodeScanningAnalysisTool as CodeScanningAnalysisTool - from .group_0075 import CodeScanningAlertInstance as CodeScanningAlertInstance - from .group_0075 import ( + from .group_0077 import ActionsPublicKey as ActionsPublicKey + from .group_0078 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary + from .group_0079 import CodeScanningAnalysisTool as CodeScanningAnalysisTool + from .group_0080 import CodeScanningAlertInstance as CodeScanningAlertInstance + from .group_0080 import ( CodeScanningAlertInstancePropMessage as CodeScanningAlertInstancePropMessage, ) - from .group_0075 import CodeScanningAlertLocation as CodeScanningAlertLocation - from .group_0076 import ( + from .group_0080 import CodeScanningAlertLocation as CodeScanningAlertLocation + from .group_0081 import ( CodeScanningOrganizationAlertItems as CodeScanningOrganizationAlertItems, ) - from .group_0077 import CodespaceMachine as CodespaceMachine - from .group_0078 import Codespace as Codespace - from .group_0078 import CodespacePropGitStatus as CodespacePropGitStatus - from .group_0078 import ( + from .group_0082 import CodespaceMachine as CodespaceMachine + from .group_0083 import Codespace as Codespace + from .group_0083 import CodespacePropGitStatus as CodespacePropGitStatus + from .group_0083 import ( CodespacePropRuntimeConstraints as CodespacePropRuntimeConstraints, ) - from .group_0079 import CodespacesPublicKey as CodespacesPublicKey - from .group_0080 import CopilotOrganizationDetails as CopilotOrganizationDetails - from .group_0080 import CopilotSeatBreakdown as CopilotSeatBreakdown - from .group_0081 import TeamSimple as TeamSimple - from .group_0082 import Team as Team - from .group_0082 import TeamPropPermissions as TeamPropPermissions - from .group_0083 import CopilotSeatDetails as CopilotSeatDetails - from .group_0083 import EnterpriseTeam as EnterpriseTeam - from .group_0083 import ( + from .group_0084 import CodespacesPublicKey as CodespacesPublicKey + from .group_0085 import CopilotOrganizationDetails as CopilotOrganizationDetails + from .group_0085 import CopilotSeatBreakdown as CopilotSeatBreakdown + from .group_0086 import TeamSimple as TeamSimple + from .group_0087 import Team as Team + from .group_0087 import TeamPropPermissions as TeamPropPermissions + from .group_0088 import CopilotSeatDetails as CopilotSeatDetails + from .group_0088 import EnterpriseTeam as EnterpriseTeam + from .group_0088 import ( OrgsOrgCopilotBillingSeatsGetResponse200 as OrgsOrgCopilotBillingSeatsGetResponse200, ) - from .group_0084 import CopilotDotcomChat as CopilotDotcomChat - from .group_0084 import ( + from .group_0089 import CopilotDotcomChat as CopilotDotcomChat + from .group_0089 import ( CopilotDotcomChatPropModelsItems as CopilotDotcomChatPropModelsItems, ) - from .group_0084 import CopilotDotcomPullRequests as CopilotDotcomPullRequests - from .group_0084 import ( + from .group_0089 import CopilotDotcomPullRequests as CopilotDotcomPullRequests + from .group_0089 import ( CopilotDotcomPullRequestsPropRepositoriesItems as CopilotDotcomPullRequestsPropRepositoriesItems, ) - from .group_0084 import ( + from .group_0089 import ( CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems as CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems, ) - from .group_0084 import CopilotIdeChat as CopilotIdeChat - from .group_0084 import ( + from .group_0089 import CopilotIdeChat as CopilotIdeChat + from .group_0089 import ( CopilotIdeChatPropEditorsItems as CopilotIdeChatPropEditorsItems, ) - from .group_0084 import ( + from .group_0089 import ( CopilotIdeChatPropEditorsItemsPropModelsItems as CopilotIdeChatPropEditorsItemsPropModelsItems, ) - from .group_0084 import CopilotIdeCodeCompletions as CopilotIdeCodeCompletions - from .group_0084 import ( + from .group_0089 import CopilotIdeCodeCompletions as CopilotIdeCodeCompletions + from .group_0089 import ( CopilotIdeCodeCompletionsPropEditorsItems as CopilotIdeCodeCompletionsPropEditorsItems, ) - from .group_0084 import ( + from .group_0089 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems, ) - from .group_0084 import ( + from .group_0089 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems, ) - from .group_0084 import ( + from .group_0089 import ( CopilotIdeCodeCompletionsPropLanguagesItems as CopilotIdeCodeCompletionsPropLanguagesItems, ) - from .group_0084 import CopilotUsageMetricsDay as CopilotUsageMetricsDay - from .group_0085 import CopilotUsageMetrics as CopilotUsageMetrics - from .group_0085 import ( + from .group_0089 import CopilotUsageMetricsDay as CopilotUsageMetricsDay + from .group_0090 import CopilotUsageMetrics as CopilotUsageMetrics + from .group_0090 import ( CopilotUsageMetricsPropBreakdownItems as CopilotUsageMetricsPropBreakdownItems, ) - from .group_0086 import DependabotPublicKey as DependabotPublicKey - from .group_0087 import Package as Package - from .group_0088 import OrganizationInvitation as OrganizationInvitation - from .group_0089 import OrgHook as OrgHook - from .group_0089 import OrgHookPropConfig as OrgHookPropConfig - from .group_0090 import ApiInsightsRouteStatsItems as ApiInsightsRouteStatsItems - from .group_0091 import ApiInsightsSubjectStatsItems as ApiInsightsSubjectStatsItems - from .group_0092 import ApiInsightsSummaryStats as ApiInsightsSummaryStats - from .group_0093 import ApiInsightsTimeStatsItems as ApiInsightsTimeStatsItems - from .group_0094 import ApiInsightsUserStatsItems as ApiInsightsUserStatsItems - from .group_0095 import InteractionLimitResponse as InteractionLimitResponse - from .group_0096 import InteractionLimit as InteractionLimit - from .group_0097 import OrgMembership as OrgMembership - from .group_0097 import OrgMembershipPropPermissions as OrgMembershipPropPermissions - from .group_0098 import Migration as Migration - from .group_0099 import OrganizationRole as OrganizationRole - from .group_0099 import ( + from .group_0091 import DependabotPublicKey as DependabotPublicKey + from .group_0092 import Package as Package + from .group_0093 import OrganizationInvitation as OrganizationInvitation + from .group_0094 import OrgHook as OrgHook + from .group_0094 import OrgHookPropConfig as OrgHookPropConfig + from .group_0095 import ApiInsightsRouteStatsItems as ApiInsightsRouteStatsItems + from .group_0096 import ApiInsightsSubjectStatsItems as ApiInsightsSubjectStatsItems + from .group_0097 import ApiInsightsSummaryStats as ApiInsightsSummaryStats + from .group_0098 import ApiInsightsTimeStatsItems as ApiInsightsTimeStatsItems + from .group_0099 import ApiInsightsUserStatsItems as ApiInsightsUserStatsItems + from .group_0100 import InteractionLimitResponse as InteractionLimitResponse + from .group_0101 import InteractionLimit as InteractionLimit + from .group_0102 import OrgMembership as OrgMembership + from .group_0102 import OrgMembershipPropPermissions as OrgMembershipPropPermissions + from .group_0103 import Migration as Migration + from .group_0104 import OrganizationRole as OrganizationRole + from .group_0104 import ( OrgsOrgOrganizationRolesGetResponse200 as OrgsOrgOrganizationRolesGetResponse200, ) - from .group_0100 import TeamRoleAssignment as TeamRoleAssignment - from .group_0100 import ( + from .group_0105 import TeamRoleAssignment as TeamRoleAssignment + from .group_0105 import ( TeamRoleAssignmentPropPermissions as TeamRoleAssignmentPropPermissions, ) - from .group_0101 import UserRoleAssignment as UserRoleAssignment - from .group_0102 import PackageVersion as PackageVersion - from .group_0102 import PackageVersionPropMetadata as PackageVersionPropMetadata - from .group_0102 import ( + from .group_0106 import UserRoleAssignment as UserRoleAssignment + from .group_0107 import PackageVersion as PackageVersion + from .group_0107 import PackageVersionPropMetadata as PackageVersionPropMetadata + from .group_0107 import ( PackageVersionPropMetadataPropContainer as PackageVersionPropMetadataPropContainer, ) - from .group_0102 import ( + from .group_0107 import ( PackageVersionPropMetadataPropDocker as PackageVersionPropMetadataPropDocker, ) - from .group_0103 import ( + from .group_0108 import ( OrganizationProgrammaticAccessGrantRequest as OrganizationProgrammaticAccessGrantRequest, ) - from .group_0103 import ( + from .group_0108 import ( OrganizationProgrammaticAccessGrantRequestPropPermissions as OrganizationProgrammaticAccessGrantRequestPropPermissions, ) - from .group_0103 import ( + from .group_0108 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization, ) - from .group_0103 import ( + from .group_0108 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther, ) - from .group_0103 import ( + from .group_0108 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository, ) - from .group_0104 import ( + from .group_0109 import ( OrganizationProgrammaticAccessGrant as OrganizationProgrammaticAccessGrant, ) - from .group_0104 import ( + from .group_0109 import ( OrganizationProgrammaticAccessGrantPropPermissions as OrganizationProgrammaticAccessGrantPropPermissions, ) - from .group_0104 import ( + from .group_0109 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization, ) - from .group_0104 import ( + from .group_0109 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOther as OrganizationProgrammaticAccessGrantPropPermissionsPropOther, ) - from .group_0104 import ( + from .group_0109 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantPropPermissionsPropRepository, ) - from .group_0105 import ( + from .group_0110 import ( OrgPrivateRegistryConfigurationWithSelectedRepositories as OrgPrivateRegistryConfigurationWithSelectedRepositories, ) - from .group_0106 import Project as Project - from .group_0107 import CustomProperty as CustomProperty - from .group_0108 import CustomPropertySetPayload as CustomPropertySetPayload - from .group_0109 import CustomPropertyValue as CustomPropertyValue - from .group_0110 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues - from .group_0111 import CodeOfConductSimple as CodeOfConductSimple - from .group_0112 import FullRepository as FullRepository - from .group_0112 import ( + from .group_0111 import Project as Project + from .group_0112 import CustomProperty as CustomProperty + from .group_0113 import CustomPropertySetPayload as CustomPropertySetPayload + from .group_0114 import CustomPropertyValue as CustomPropertyValue + from .group_0115 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues + from .group_0116 import CodeOfConductSimple as CodeOfConductSimple + from .group_0117 import FullRepository as FullRepository + from .group_0117 import ( FullRepositoryPropCustomProperties as FullRepositoryPropCustomProperties, ) - from .group_0112 import ( + from .group_0117 import ( FullRepositoryPropPermissions as FullRepositoryPropPermissions, ) - from .group_0113 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor - from .group_0114 import RepositoryRulesetConditions as RepositoryRulesetConditions - from .group_0115 import ( + from .group_0118 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor + from .group_0119 import RepositoryRulesetConditions as RepositoryRulesetConditions + from .group_0120 import ( RepositoryRulesetConditionsPropRefName as RepositoryRulesetConditionsPropRefName, ) - from .group_0116 import ( + from .group_0121 import ( RepositoryRulesetConditionsRepositoryNameTarget as RepositoryRulesetConditionsRepositoryNameTarget, ) - from .group_0117 import ( + from .group_0122 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) - from .group_0118 import ( + from .group_0123 import ( RepositoryRulesetConditionsRepositoryIdTarget as RepositoryRulesetConditionsRepositoryIdTarget, ) - from .group_0119 import ( + from .group_0124 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId, ) - from .group_0120 import ( + from .group_0125 import ( RepositoryRulesetConditionsRepositoryPropertyTarget as RepositoryRulesetConditionsRepositoryPropertyTarget, ) - from .group_0121 import ( + from .group_0126 import ( RepositoryRulesetConditionsRepositoryPropertySpec as RepositoryRulesetConditionsRepositoryPropertySpec, ) - from .group_0121 import ( + from .group_0126 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) - from .group_0122 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 - from .group_0123 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 - from .group_0124 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 - from .group_0125 import RepositoryRuleCreation as RepositoryRuleCreation - from .group_0125 import RepositoryRuleDeletion as RepositoryRuleDeletion - from .group_0125 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward - from .group_0125 import RepositoryRuleOneof15 as RepositoryRuleOneof15 - from .group_0125 import ( + from .group_0127 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 + from .group_0128 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 + from .group_0129 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 + from .group_0130 import RepositoryRuleCreation as RepositoryRuleCreation + from .group_0130 import RepositoryRuleDeletion as RepositoryRuleDeletion + from .group_0130 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward + from .group_0130 import RepositoryRuleOneof15 as RepositoryRuleOneof15 + from .group_0130 import ( RepositoryRuleOneof15PropParameters as RepositoryRuleOneof15PropParameters, ) - from .group_0125 import RepositoryRuleOneof17 as RepositoryRuleOneof17 - from .group_0125 import ( + from .group_0130 import RepositoryRuleOneof17 as RepositoryRuleOneof17 + from .group_0130 import ( RepositoryRuleOneof17PropParameters as RepositoryRuleOneof17PropParameters, ) - from .group_0125 import ( + from .group_0130 import ( RepositoryRuleRequiredSignatures as RepositoryRuleRequiredSignatures, ) - from .group_0126 import RepositoryRuleUpdate as RepositoryRuleUpdate - from .group_0127 import ( + from .group_0131 import RepositoryRuleUpdate as RepositoryRuleUpdate + from .group_0132 import ( RepositoryRuleUpdatePropParameters as RepositoryRuleUpdatePropParameters, ) - from .group_0128 import RepositoryRuleOneof16 as RepositoryRuleOneof16 - from .group_0128 import ( + from .group_0133 import RepositoryRuleOneof16 as RepositoryRuleOneof16 + from .group_0133 import ( RepositoryRuleOneof16PropParameters as RepositoryRuleOneof16PropParameters, ) - from .group_0128 import ( + from .group_0133 import ( RepositoryRuleRequiredLinearHistory as RepositoryRuleRequiredLinearHistory, ) - from .group_0129 import RepositoryRuleMergeQueue as RepositoryRuleMergeQueue - from .group_0130 import ( + from .group_0134 import RepositoryRuleMergeQueue as RepositoryRuleMergeQueue + from .group_0135 import ( RepositoryRuleMergeQueuePropParameters as RepositoryRuleMergeQueuePropParameters, ) - from .group_0131 import ( + from .group_0136 import ( RepositoryRuleRequiredDeployments as RepositoryRuleRequiredDeployments, ) - from .group_0132 import ( + from .group_0137 import ( RepositoryRuleRequiredDeploymentsPropParameters as RepositoryRuleRequiredDeploymentsPropParameters, ) - from .group_0133 import ( + from .group_0138 import ( RepositoryRuleParamsRequiredReviewerConfiguration as RepositoryRuleParamsRequiredReviewerConfiguration, ) - from .group_0134 import RepositoryRulePullRequest as RepositoryRulePullRequest - from .group_0135 import ( + from .group_0139 import RepositoryRulePullRequest as RepositoryRulePullRequest + from .group_0140 import ( RepositoryRulePullRequestPropParameters as RepositoryRulePullRequestPropParameters, ) - from .group_0136 import ( + from .group_0141 import ( RepositoryRuleRequiredStatusChecks as RepositoryRuleRequiredStatusChecks, ) - from .group_0137 import ( + from .group_0142 import ( RepositoryRuleParamsStatusCheckConfiguration as RepositoryRuleParamsStatusCheckConfiguration, ) - from .group_0137 import ( + from .group_0142 import ( RepositoryRuleRequiredStatusChecksPropParameters as RepositoryRuleRequiredStatusChecksPropParameters, ) - from .group_0138 import ( + from .group_0143 import ( RepositoryRuleCommitMessagePattern as RepositoryRuleCommitMessagePattern, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryRuleCommitMessagePatternPropParameters as RepositoryRuleCommitMessagePatternPropParameters, ) - from .group_0140 import ( + from .group_0145 import ( RepositoryRuleCommitAuthorEmailPattern as RepositoryRuleCommitAuthorEmailPattern, ) - from .group_0141 import ( + from .group_0146 import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) - from .group_0142 import ( + from .group_0147 import ( RepositoryRuleCommitterEmailPattern as RepositoryRuleCommitterEmailPattern, ) - from .group_0143 import ( + from .group_0148 import ( RepositoryRuleCommitterEmailPatternPropParameters as RepositoryRuleCommitterEmailPatternPropParameters, ) - from .group_0144 import ( + from .group_0149 import ( RepositoryRuleBranchNamePattern as RepositoryRuleBranchNamePattern, ) - from .group_0145 import ( + from .group_0150 import ( RepositoryRuleBranchNamePatternPropParameters as RepositoryRuleBranchNamePatternPropParameters, ) - from .group_0146 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern - from .group_0147 import ( + from .group_0151 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern + from .group_0152 import ( RepositoryRuleTagNamePatternPropParameters as RepositoryRuleTagNamePatternPropParameters, ) - from .group_0148 import ( + from .group_0153 import ( RepositoryRuleParamsRestrictedCommits as RepositoryRuleParamsRestrictedCommits, ) - from .group_0149 import RepositoryRuleWorkflows as RepositoryRuleWorkflows - from .group_0150 import ( + from .group_0154 import RepositoryRuleWorkflows as RepositoryRuleWorkflows + from .group_0155 import ( RepositoryRuleParamsWorkflowFileReference as RepositoryRuleParamsWorkflowFileReference, ) - from .group_0150 import ( + from .group_0155 import ( RepositoryRuleWorkflowsPropParameters as RepositoryRuleWorkflowsPropParameters, ) - from .group_0151 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning - from .group_0152 import ( + from .group_0156 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning + from .group_0157 import ( RepositoryRuleCodeScanningPropParameters as RepositoryRuleCodeScanningPropParameters, ) - from .group_0152 import ( + from .group_0157 import ( RepositoryRuleParamsCodeScanningTool as RepositoryRuleParamsCodeScanningTool, ) - from .group_0153 import RepositoryRuleOneof18 as RepositoryRuleOneof18 - from .group_0153 import ( + from .group_0158 import RepositoryRuleOneof18 as RepositoryRuleOneof18 + from .group_0158 import ( RepositoryRuleOneof18PropParameters as RepositoryRuleOneof18PropParameters, ) - from .group_0154 import RepositoryRuleset as RepositoryRuleset - from .group_0154 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks - from .group_0154 import ( + from .group_0159 import RepositoryRuleset as RepositoryRuleset + from .group_0159 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks + from .group_0159 import ( RepositoryRulesetPropLinksPropHtml as RepositoryRulesetPropLinksPropHtml, ) - from .group_0154 import ( + from .group_0159 import ( RepositoryRulesetPropLinksPropSelf as RepositoryRulesetPropLinksPropSelf, ) - from .group_0155 import RuleSuitesItems as RuleSuitesItems - from .group_0156 import RuleSuite as RuleSuite - from .group_0156 import ( + from .group_0160 import RuleSuitesItems as RuleSuitesItems + from .group_0161 import RuleSuite as RuleSuite + from .group_0161 import ( RuleSuitePropRuleEvaluationsItems as RuleSuitePropRuleEvaluationsItems, ) - from .group_0156 import ( + from .group_0161 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSource as RuleSuitePropRuleEvaluationsItemsPropRuleSource, ) - from .group_0157 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit - from .group_0158 import RepositoryAdvisory as RepositoryAdvisory - from .group_0158 import ( + from .group_0162 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit + from .group_0163 import RepositoryAdvisory as RepositoryAdvisory + from .group_0163 import ( RepositoryAdvisoryPropCreditsItems as RepositoryAdvisoryPropCreditsItems, ) - from .group_0158 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss - from .group_0158 import ( + from .group_0163 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss + from .group_0163 import ( RepositoryAdvisoryPropCwesItems as RepositoryAdvisoryPropCwesItems, ) - from .group_0158 import ( + from .group_0163 import ( RepositoryAdvisoryPropIdentifiersItems as RepositoryAdvisoryPropIdentifiersItems, ) - from .group_0158 import ( + from .group_0163 import ( RepositoryAdvisoryPropSubmission as RepositoryAdvisoryPropSubmission, ) - from .group_0158 import ( + from .group_0163 import ( RepositoryAdvisoryVulnerability as RepositoryAdvisoryVulnerability, ) - from .group_0158 import ( + from .group_0163 import ( RepositoryAdvisoryVulnerabilityPropPackage as RepositoryAdvisoryVulnerabilityPropPackage, ) - from .group_0159 import ActionsBillingUsage as ActionsBillingUsage - from .group_0159 import ( + from .group_0164 import ActionsBillingUsage as ActionsBillingUsage + from .group_0164 import ( ActionsBillingUsagePropMinutesUsedBreakdown as ActionsBillingUsagePropMinutesUsedBreakdown, ) - from .group_0160 import PackagesBillingUsage as PackagesBillingUsage - from .group_0161 import CombinedBillingUsage as CombinedBillingUsage - from .group_0162 import TeamFull as TeamFull - from .group_0162 import TeamOrganization as TeamOrganization - from .group_0162 import TeamOrganizationPropPlan as TeamOrganizationPropPlan - from .group_0163 import TeamDiscussion as TeamDiscussion - from .group_0164 import TeamDiscussionComment as TeamDiscussionComment - from .group_0165 import Reaction as Reaction - from .group_0166 import TeamMembership as TeamMembership - from .group_0167 import TeamProject as TeamProject - from .group_0167 import TeamProjectPropPermissions as TeamProjectPropPermissions - from .group_0168 import TeamRepository as TeamRepository - from .group_0168 import ( + from .group_0165 import PackagesBillingUsage as PackagesBillingUsage + from .group_0166 import CombinedBillingUsage as CombinedBillingUsage + from .group_0167 import NetworkSettings as NetworkSettings + from .group_0168 import TeamFull as TeamFull + from .group_0168 import TeamOrganization as TeamOrganization + from .group_0168 import TeamOrganizationPropPlan as TeamOrganizationPropPlan + from .group_0169 import TeamDiscussion as TeamDiscussion + from .group_0170 import TeamDiscussionComment as TeamDiscussionComment + from .group_0171 import Reaction as Reaction + from .group_0172 import TeamMembership as TeamMembership + from .group_0173 import TeamProject as TeamProject + from .group_0173 import TeamProjectPropPermissions as TeamProjectPropPermissions + from .group_0174 import TeamRepository as TeamRepository + from .group_0174 import ( TeamRepositoryPropPermissions as TeamRepositoryPropPermissions, ) - from .group_0169 import ProjectCard as ProjectCard - from .group_0170 import ProjectColumn as ProjectColumn - from .group_0171 import ( + from .group_0175 import ProjectCard as ProjectCard + from .group_0176 import ProjectColumn as ProjectColumn + from .group_0177 import ( ProjectCollaboratorPermission as ProjectCollaboratorPermission, ) - from .group_0172 import RateLimit as RateLimit - from .group_0173 import RateLimitOverview as RateLimitOverview - from .group_0174 import ( + from .group_0178 import RateLimit as RateLimit + from .group_0179 import RateLimitOverview as RateLimitOverview + from .group_0180 import ( RateLimitOverviewPropResources as RateLimitOverviewPropResources, ) - from .group_0175 import Artifact as Artifact - from .group_0175 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun - from .group_0176 import ActionsCacheList as ActionsCacheList - from .group_0176 import ( + from .group_0181 import Artifact as Artifact + from .group_0181 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun + from .group_0182 import ActionsCacheList as ActionsCacheList + from .group_0182 import ( ActionsCacheListPropActionsCachesItems as ActionsCacheListPropActionsCachesItems, ) - from .group_0177 import Job as Job - from .group_0177 import JobPropStepsItems as JobPropStepsItems - from .group_0178 import OidcCustomSubRepo as OidcCustomSubRepo - from .group_0179 import ActionsSecret as ActionsSecret - from .group_0180 import ActionsVariable as ActionsVariable - from .group_0181 import ActionsRepositoryPermissions as ActionsRepositoryPermissions - from .group_0182 import ( + from .group_0183 import Job as Job + from .group_0183 import JobPropStepsItems as JobPropStepsItems + from .group_0184 import OidcCustomSubRepo as OidcCustomSubRepo + from .group_0185 import ActionsSecret as ActionsSecret + from .group_0186 import ActionsVariable as ActionsVariable + from .group_0187 import ActionsRepositoryPermissions as ActionsRepositoryPermissions + from .group_0188 import ( ActionsWorkflowAccessToRepository as ActionsWorkflowAccessToRepository, ) - from .group_0183 import PullRequestMinimal as PullRequestMinimal - from .group_0183 import PullRequestMinimalPropBase as PullRequestMinimalPropBase - from .group_0183 import ( + from .group_0189 import PullRequestMinimal as PullRequestMinimal + from .group_0189 import PullRequestMinimalPropBase as PullRequestMinimalPropBase + from .group_0189 import ( PullRequestMinimalPropBasePropRepo as PullRequestMinimalPropBasePropRepo, ) - from .group_0183 import PullRequestMinimalPropHead as PullRequestMinimalPropHead - from .group_0183 import ( + from .group_0189 import PullRequestMinimalPropHead as PullRequestMinimalPropHead + from .group_0189 import ( PullRequestMinimalPropHeadPropRepo as PullRequestMinimalPropHeadPropRepo, ) - from .group_0184 import SimpleCommit as SimpleCommit - from .group_0184 import SimpleCommitPropAuthor as SimpleCommitPropAuthor - from .group_0184 import SimpleCommitPropCommitter as SimpleCommitPropCommitter - from .group_0185 import ReferencedWorkflow as ReferencedWorkflow - from .group_0185 import WorkflowRun as WorkflowRun - from .group_0186 import EnvironmentApprovals as EnvironmentApprovals - from .group_0186 import ( + from .group_0190 import SimpleCommit as SimpleCommit + from .group_0190 import SimpleCommitPropAuthor as SimpleCommitPropAuthor + from .group_0190 import SimpleCommitPropCommitter as SimpleCommitPropCommitter + from .group_0191 import ReferencedWorkflow as ReferencedWorkflow + from .group_0191 import WorkflowRun as WorkflowRun + from .group_0192 import EnvironmentApprovals as EnvironmentApprovals + from .group_0192 import ( EnvironmentApprovalsPropEnvironmentsItems as EnvironmentApprovalsPropEnvironmentsItems, ) - from .group_0187 import ( + from .group_0193 import ( ReviewCustomGatesCommentRequired as ReviewCustomGatesCommentRequired, ) - from .group_0188 import ( + from .group_0194 import ( ReviewCustomGatesStateRequired as ReviewCustomGatesStateRequired, ) - from .group_0189 import PendingDeployment as PendingDeployment - from .group_0189 import ( + from .group_0195 import PendingDeployment as PendingDeployment + from .group_0195 import ( PendingDeploymentPropEnvironment as PendingDeploymentPropEnvironment, ) - from .group_0189 import ( + from .group_0195 import ( PendingDeploymentPropReviewersItems as PendingDeploymentPropReviewersItems, ) - from .group_0190 import Deployment as Deployment - from .group_0190 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 - from .group_0191 import WorkflowRunUsage as WorkflowRunUsage - from .group_0191 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable - from .group_0191 import ( + from .group_0196 import Deployment as Deployment + from .group_0196 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 + from .group_0197 import WorkflowRunUsage as WorkflowRunUsage + from .group_0197 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable + from .group_0197 import ( WorkflowRunUsagePropBillablePropMacos as WorkflowRunUsagePropBillablePropMacos, ) - from .group_0191 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) - from .group_0191 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropUbuntu as WorkflowRunUsagePropBillablePropUbuntu, ) - from .group_0191 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems, ) - from .group_0191 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropWindows as WorkflowRunUsagePropBillablePropWindows, ) - from .group_0191 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems, ) - from .group_0192 import WorkflowUsage as WorkflowUsage - from .group_0192 import WorkflowUsagePropBillable as WorkflowUsagePropBillable - from .group_0192 import ( + from .group_0198 import WorkflowUsage as WorkflowUsage + from .group_0198 import WorkflowUsagePropBillable as WorkflowUsagePropBillable + from .group_0198 import ( WorkflowUsagePropBillablePropMacos as WorkflowUsagePropBillablePropMacos, ) - from .group_0192 import ( + from .group_0198 import ( WorkflowUsagePropBillablePropUbuntu as WorkflowUsagePropBillablePropUbuntu, ) - from .group_0192 import ( + from .group_0198 import ( WorkflowUsagePropBillablePropWindows as WorkflowUsagePropBillablePropWindows, ) - from .group_0193 import Activity as Activity - from .group_0194 import Autolink as Autolink - from .group_0195 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes - from .group_0196 import ( + from .group_0199 import Activity as Activity + from .group_0200 import Autolink as Autolink + from .group_0201 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes + from .group_0202 import ( ProtectedBranchPullRequestReview as ProtectedBranchPullRequestReview, ) - from .group_0197 import ( + from .group_0203 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, ) - from .group_0197 import ( + from .group_0203 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictions as ProtectedBranchPullRequestReviewPropDismissalRestrictions, ) - from .group_0198 import BranchRestrictionPolicy as BranchRestrictionPolicy - from .group_0198 import ( + from .group_0204 import BranchRestrictionPolicy as BranchRestrictionPolicy + from .group_0204 import ( BranchRestrictionPolicyPropAppsItems as BranchRestrictionPolicyPropAppsItems, ) - from .group_0198 import ( + from .group_0204 import ( BranchRestrictionPolicyPropAppsItemsPropOwner as BranchRestrictionPolicyPropAppsItemsPropOwner, ) - from .group_0198 import ( + from .group_0204 import ( BranchRestrictionPolicyPropAppsItemsPropPermissions as BranchRestrictionPolicyPropAppsItemsPropPermissions, ) - from .group_0198 import ( + from .group_0204 import ( BranchRestrictionPolicyPropTeamsItems as BranchRestrictionPolicyPropTeamsItems, ) - from .group_0198 import ( + from .group_0204 import ( BranchRestrictionPolicyPropUsersItems as BranchRestrictionPolicyPropUsersItems, ) - from .group_0199 import BranchProtection as BranchProtection - from .group_0199 import ( + from .group_0205 import BranchProtection as BranchProtection + from .group_0205 import ( BranchProtectionPropAllowDeletions as BranchProtectionPropAllowDeletions, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropAllowForcePushes as BranchProtectionPropAllowForcePushes, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropAllowForkSyncing as BranchProtectionPropAllowForkSyncing, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropBlockCreations as BranchProtectionPropBlockCreations, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropLockBranch as BranchProtectionPropLockBranch, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropRequiredConversationResolution as BranchProtectionPropRequiredConversationResolution, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropRequiredLinearHistory as BranchProtectionPropRequiredLinearHistory, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropRequiredSignatures as BranchProtectionPropRequiredSignatures, ) - from .group_0199 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced - from .group_0199 import ( + from .group_0205 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced + from .group_0205 import ( ProtectedBranchRequiredStatusCheck as ProtectedBranchRequiredStatusCheck, ) - from .group_0199 import ( + from .group_0205 import ( ProtectedBranchRequiredStatusCheckPropChecksItems as ProtectedBranchRequiredStatusCheckPropChecksItems, ) - from .group_0200 import ShortBranch as ShortBranch - from .group_0200 import ShortBranchPropCommit as ShortBranchPropCommit - from .group_0201 import GitUser as GitUser - from .group_0202 import Verification as Verification - from .group_0203 import DiffEntry as DiffEntry - from .group_0204 import Commit as Commit - from .group_0204 import CommitPropParentsItems as CommitPropParentsItems - from .group_0204 import CommitPropStats as CommitPropStats - from .group_0204 import EmptyObject as EmptyObject - from .group_0205 import CommitPropCommit as CommitPropCommit - from .group_0205 import CommitPropCommitPropTree as CommitPropCommitPropTree - from .group_0206 import BranchWithProtection as BranchWithProtection - from .group_0206 import ( + from .group_0206 import ShortBranch as ShortBranch + from .group_0206 import ShortBranchPropCommit as ShortBranchPropCommit + from .group_0207 import GitUser as GitUser + from .group_0208 import Verification as Verification + from .group_0209 import DiffEntry as DiffEntry + from .group_0210 import Commit as Commit + from .group_0210 import CommitPropParentsItems as CommitPropParentsItems + from .group_0210 import CommitPropStats as CommitPropStats + from .group_0210 import EmptyObject as EmptyObject + from .group_0211 import CommitPropCommit as CommitPropCommit + from .group_0211 import CommitPropCommitPropTree as CommitPropCommitPropTree + from .group_0212 import BranchWithProtection as BranchWithProtection + from .group_0212 import ( BranchWithProtectionPropLinks as BranchWithProtectionPropLinks, ) - from .group_0207 import ProtectedBranch as ProtectedBranch - from .group_0207 import ( + from .group_0213 import ProtectedBranch as ProtectedBranch + from .group_0213 import ( ProtectedBranchPropAllowDeletions as ProtectedBranchPropAllowDeletions, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropAllowForcePushes as ProtectedBranchPropAllowForcePushes, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropAllowForkSyncing as ProtectedBranchPropAllowForkSyncing, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropBlockCreations as ProtectedBranchPropBlockCreations, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropEnforceAdmins as ProtectedBranchPropEnforceAdmins, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropLockBranch as ProtectedBranchPropLockBranch, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropRequiredConversationResolution as ProtectedBranchPropRequiredConversationResolution, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropRequiredLinearHistory as ProtectedBranchPropRequiredLinearHistory, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropRequiredSignatures as ProtectedBranchPropRequiredSignatures, ) - from .group_0207 import StatusCheckPolicy as StatusCheckPolicy - from .group_0207 import ( + from .group_0213 import StatusCheckPolicy as StatusCheckPolicy + from .group_0213 import ( StatusCheckPolicyPropChecksItems as StatusCheckPolicyPropChecksItems, ) - from .group_0208 import ( + from .group_0214 import ( ProtectedBranchPropRequiredPullRequestReviews as ProtectedBranchPropRequiredPullRequestReviews, ) - from .group_0209 import ( + from .group_0215 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0209 import ( + from .group_0215 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0210 import DeploymentSimple as DeploymentSimple - from .group_0211 import CheckRun as CheckRun - from .group_0211 import CheckRunPropCheckSuite as CheckRunPropCheckSuite - from .group_0211 import CheckRunPropOutput as CheckRunPropOutput - from .group_0212 import CheckAnnotation as CheckAnnotation - from .group_0213 import CheckSuite as CheckSuite - from .group_0213 import ( + from .group_0216 import DeploymentSimple as DeploymentSimple + from .group_0217 import CheckRun as CheckRun + from .group_0217 import CheckRunPropCheckSuite as CheckRunPropCheckSuite + from .group_0217 import CheckRunPropOutput as CheckRunPropOutput + from .group_0218 import CheckAnnotation as CheckAnnotation + from .group_0219 import CheckSuite as CheckSuite + from .group_0219 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200 as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200, ) - from .group_0214 import CheckSuitePreference as CheckSuitePreference - from .group_0214 import ( + from .group_0220 import CheckSuitePreference as CheckSuitePreference + from .group_0220 import ( CheckSuitePreferencePropPreferences as CheckSuitePreferencePropPreferences, ) - from .group_0214 import ( + from .group_0220 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems, ) - from .group_0215 import CodeScanningAlertItems as CodeScanningAlertItems - from .group_0216 import CodeScanningAlert as CodeScanningAlert - from .group_0216 import CodeScanningAlertRule as CodeScanningAlertRule - from .group_0217 import CodeScanningAutofix as CodeScanningAutofix - from .group_0218 import CodeScanningAutofixCommits as CodeScanningAutofixCommits - from .group_0219 import ( + from .group_0221 import CodeScanningAlertItems as CodeScanningAlertItems + from .group_0222 import CodeScanningAlert as CodeScanningAlert + from .group_0222 import CodeScanningAlertRule as CodeScanningAlertRule + from .group_0223 import CodeScanningAutofix as CodeScanningAutofix + from .group_0224 import CodeScanningAutofixCommits as CodeScanningAutofixCommits + from .group_0225 import ( CodeScanningAutofixCommitsResponse as CodeScanningAutofixCommitsResponse, ) - from .group_0220 import CodeScanningAnalysis as CodeScanningAnalysis - from .group_0221 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion - from .group_0222 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase - from .group_0223 import ( + from .group_0226 import CodeScanningAnalysis as CodeScanningAnalysis + from .group_0227 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion + from .group_0228 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase + from .group_0229 import ( CodeScanningVariantAnalysisRepository as CodeScanningVariantAnalysisRepository, ) - from .group_0224 import ( + from .group_0230 import ( CodeScanningVariantAnalysisSkippedRepoGroup as CodeScanningVariantAnalysisSkippedRepoGroup, ) - from .group_0225 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis - from .group_0226 import ( + from .group_0231 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis + from .group_0232 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItems as CodeScanningVariantAnalysisPropScannedRepositoriesItems, ) - from .group_0227 import ( + from .group_0233 import ( CodeScanningVariantAnalysisPropSkippedRepositories as CodeScanningVariantAnalysisPropSkippedRepositories, ) - from .group_0227 import ( + from .group_0233 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos, ) - from .group_0228 import ( + from .group_0234 import ( CodeScanningVariantAnalysisRepoTask as CodeScanningVariantAnalysisRepoTask, ) - from .group_0229 import CodeScanningDefaultSetup as CodeScanningDefaultSetup - from .group_0230 import ( + from .group_0235 import CodeScanningDefaultSetup as CodeScanningDefaultSetup + from .group_0236 import ( CodeScanningDefaultSetupUpdate as CodeScanningDefaultSetupUpdate, ) - from .group_0231 import ( + from .group_0237 import ( CodeScanningDefaultSetupUpdateResponse as CodeScanningDefaultSetupUpdateResponse, ) - from .group_0232 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt - from .group_0233 import CodeScanningSarifsStatus as CodeScanningSarifsStatus - from .group_0234 import ( + from .group_0238 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt + from .group_0239 import CodeScanningSarifsStatus as CodeScanningSarifsStatus + from .group_0240 import ( CodeSecurityConfigurationForRepository as CodeSecurityConfigurationForRepository, ) - from .group_0235 import CodeownersErrors as CodeownersErrors - from .group_0235 import ( + from .group_0241 import CodeownersErrors as CodeownersErrors + from .group_0241 import ( CodeownersErrorsPropErrorsItems as CodeownersErrorsPropErrorsItems, ) - from .group_0236 import ( + from .group_0242 import ( CodespacesPermissionsCheckForDevcontainer as CodespacesPermissionsCheckForDevcontainer, ) - from .group_0237 import RepositoryInvitation as RepositoryInvitation - from .group_0238 import Collaborator as Collaborator - from .group_0238 import CollaboratorPropPermissions as CollaboratorPropPermissions - from .group_0238 import ( + from .group_0243 import RepositoryInvitation as RepositoryInvitation + from .group_0244 import Collaborator as Collaborator + from .group_0244 import CollaboratorPropPermissions as CollaboratorPropPermissions + from .group_0244 import ( RepositoryCollaboratorPermission as RepositoryCollaboratorPermission, ) - from .group_0239 import CommitComment as CommitComment - from .group_0239 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent - from .group_0240 import BranchShort as BranchShort - from .group_0240 import BranchShortPropCommit as BranchShortPropCommit - from .group_0241 import Link as Link - from .group_0242 import AutoMerge as AutoMerge - from .group_0243 import PullRequestSimple as PullRequestSimple - from .group_0243 import ( + from .group_0245 import CommitComment as CommitComment + from .group_0245 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent + from .group_0246 import BranchShort as BranchShort + from .group_0246 import BranchShortPropCommit as BranchShortPropCommit + from .group_0247 import Link as Link + from .group_0248 import AutoMerge as AutoMerge + from .group_0249 import PullRequestSimple as PullRequestSimple + from .group_0249 import ( PullRequestSimplePropLabelsItems as PullRequestSimplePropLabelsItems, ) - from .group_0244 import PullRequestSimplePropBase as PullRequestSimplePropBase - from .group_0244 import PullRequestSimplePropHead as PullRequestSimplePropHead - from .group_0245 import PullRequestSimplePropLinks as PullRequestSimplePropLinks - from .group_0246 import CombinedCommitStatus as CombinedCommitStatus - from .group_0246 import SimpleCommitStatus as SimpleCommitStatus - from .group_0247 import Status as Status - from .group_0248 import CommunityHealthFile as CommunityHealthFile - from .group_0248 import CommunityProfile as CommunityProfile - from .group_0248 import CommunityProfilePropFiles as CommunityProfilePropFiles - from .group_0249 import CommitComparison as CommitComparison - from .group_0250 import ContentTree as ContentTree - from .group_0250 import ContentTreePropEntriesItems as ContentTreePropEntriesItems - from .group_0250 import ( + from .group_0250 import PullRequestSimplePropBase as PullRequestSimplePropBase + from .group_0250 import PullRequestSimplePropHead as PullRequestSimplePropHead + from .group_0251 import PullRequestSimplePropLinks as PullRequestSimplePropLinks + from .group_0252 import CombinedCommitStatus as CombinedCommitStatus + from .group_0252 import SimpleCommitStatus as SimpleCommitStatus + from .group_0253 import Status as Status + from .group_0254 import CommunityHealthFile as CommunityHealthFile + from .group_0254 import CommunityProfile as CommunityProfile + from .group_0254 import CommunityProfilePropFiles as CommunityProfilePropFiles + from .group_0255 import CommitComparison as CommitComparison + from .group_0256 import ContentTree as ContentTree + from .group_0256 import ContentTreePropEntriesItems as ContentTreePropEntriesItems + from .group_0256 import ( ContentTreePropEntriesItemsPropLinks as ContentTreePropEntriesItemsPropLinks, ) - from .group_0250 import ContentTreePropLinks as ContentTreePropLinks - from .group_0251 import ContentDirectoryItems as ContentDirectoryItems - from .group_0251 import ( + from .group_0256 import ContentTreePropLinks as ContentTreePropLinks + from .group_0257 import ContentDirectoryItems as ContentDirectoryItems + from .group_0257 import ( ContentDirectoryItemsPropLinks as ContentDirectoryItemsPropLinks, ) - from .group_0252 import ContentFile as ContentFile - from .group_0252 import ContentFilePropLinks as ContentFilePropLinks - from .group_0253 import ContentSymlink as ContentSymlink - from .group_0253 import ContentSymlinkPropLinks as ContentSymlinkPropLinks - from .group_0254 import ContentSubmodule as ContentSubmodule - from .group_0254 import ContentSubmodulePropLinks as ContentSubmodulePropLinks - from .group_0255 import FileCommit as FileCommit - from .group_0255 import FileCommitPropCommit as FileCommitPropCommit - from .group_0255 import ( + from .group_0258 import ContentFile as ContentFile + from .group_0258 import ContentFilePropLinks as ContentFilePropLinks + from .group_0259 import ContentSymlink as ContentSymlink + from .group_0259 import ContentSymlinkPropLinks as ContentSymlinkPropLinks + from .group_0260 import ContentSubmodule as ContentSubmodule + from .group_0260 import ContentSubmodulePropLinks as ContentSubmodulePropLinks + from .group_0261 import FileCommit as FileCommit + from .group_0261 import FileCommitPropCommit as FileCommitPropCommit + from .group_0261 import ( FileCommitPropCommitPropAuthor as FileCommitPropCommitPropAuthor, ) - from .group_0255 import ( + from .group_0261 import ( FileCommitPropCommitPropCommitter as FileCommitPropCommitPropCommitter, ) - from .group_0255 import ( + from .group_0261 import ( FileCommitPropCommitPropParentsItems as FileCommitPropCommitPropParentsItems, ) - from .group_0255 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree - from .group_0255 import ( + from .group_0261 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree + from .group_0261 import ( FileCommitPropCommitPropVerification as FileCommitPropCommitPropVerification, ) - from .group_0255 import FileCommitPropContent as FileCommitPropContent - from .group_0255 import ( + from .group_0261 import FileCommitPropContent as FileCommitPropContent + from .group_0261 import ( FileCommitPropContentPropLinks as FileCommitPropContentPropLinks, ) - from .group_0256 import RepositoryRuleViolationError as RepositoryRuleViolationError - from .group_0256 import ( + from .group_0262 import RepositoryRuleViolationError as RepositoryRuleViolationError + from .group_0262 import ( RepositoryRuleViolationErrorPropMetadata as RepositoryRuleViolationErrorPropMetadata, ) - from .group_0256 import ( + from .group_0262 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanning as RepositoryRuleViolationErrorPropMetadataPropSecretScanning, ) - from .group_0256 import ( + from .group_0262 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems as RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems, ) - from .group_0257 import Contributor as Contributor - from .group_0258 import DependabotAlert as DependabotAlert - from .group_0259 import ( + from .group_0263 import Contributor as Contributor + from .group_0264 import DependabotAlert as DependabotAlert + from .group_0265 import ( DependabotAlertPropDependency as DependabotAlertPropDependency, ) - from .group_0260 import DependencyGraphDiffItems as DependencyGraphDiffItems - from .group_0260 import ( + from .group_0266 import DependencyGraphDiffItems as DependencyGraphDiffItems + from .group_0266 import ( DependencyGraphDiffItemsPropVulnerabilitiesItems as DependencyGraphDiffItemsPropVulnerabilitiesItems, ) - from .group_0261 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom - from .group_0261 import ( + from .group_0267 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom + from .group_0267 import ( DependencyGraphSpdxSbomPropSbom as DependencyGraphSpdxSbomPropSbom, ) - from .group_0261 import ( + from .group_0267 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfo as DependencyGraphSpdxSbomPropSbomPropCreationInfo, ) - from .group_0261 import ( + from .group_0267 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItems as DependencyGraphSpdxSbomPropSbomPropPackagesItems, ) - from .group_0261 import ( + from .group_0267 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems, ) - from .group_0261 import ( + from .group_0267 import ( DependencyGraphSpdxSbomPropSbomPropRelationshipsItems as DependencyGraphSpdxSbomPropSbomPropRelationshipsItems, ) - from .group_0262 import Metadata as Metadata - from .group_0263 import Dependency as Dependency - from .group_0264 import Manifest as Manifest - from .group_0264 import ManifestPropFile as ManifestPropFile - from .group_0264 import ManifestPropResolved as ManifestPropResolved - from .group_0265 import Snapshot as Snapshot - from .group_0265 import SnapshotPropDetector as SnapshotPropDetector - from .group_0265 import SnapshotPropJob as SnapshotPropJob - from .group_0265 import SnapshotPropManifests as SnapshotPropManifests - from .group_0266 import DeploymentStatus as DeploymentStatus - from .group_0267 import ( + from .group_0268 import Metadata as Metadata + from .group_0269 import Dependency as Dependency + from .group_0270 import Manifest as Manifest + from .group_0270 import ManifestPropFile as ManifestPropFile + from .group_0270 import ManifestPropResolved as ManifestPropResolved + from .group_0271 import Snapshot as Snapshot + from .group_0271 import SnapshotPropDetector as SnapshotPropDetector + from .group_0271 import SnapshotPropJob as SnapshotPropJob + from .group_0271 import SnapshotPropManifests as SnapshotPropManifests + from .group_0272 import DeploymentStatus as DeploymentStatus + from .group_0273 import ( DeploymentBranchPolicySettings as DeploymentBranchPolicySettings, ) - from .group_0268 import Environment as Environment - from .group_0268 import ( + from .group_0274 import Environment as Environment + from .group_0274 import ( EnvironmentPropProtectionRulesItemsAnyof0 as EnvironmentPropProtectionRulesItemsAnyof0, ) - from .group_0268 import ( + from .group_0274 import ( EnvironmentPropProtectionRulesItemsAnyof2 as EnvironmentPropProtectionRulesItemsAnyof2, ) - from .group_0268 import ( + from .group_0274 import ( ReposOwnerRepoEnvironmentsGetResponse200 as ReposOwnerRepoEnvironmentsGetResponse200, ) - from .group_0269 import ( + from .group_0275 import ( EnvironmentPropProtectionRulesItemsAnyof1 as EnvironmentPropProtectionRulesItemsAnyof1, ) - from .group_0270 import ( + from .group_0276 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems, ) - from .group_0271 import ( + from .group_0277 import ( DeploymentBranchPolicyNamePatternWithType as DeploymentBranchPolicyNamePatternWithType, ) - from .group_0272 import ( + from .group_0278 import ( DeploymentBranchPolicyNamePattern as DeploymentBranchPolicyNamePattern, ) - from .group_0273 import CustomDeploymentRuleApp as CustomDeploymentRuleApp - from .group_0274 import DeploymentProtectionRule as DeploymentProtectionRule - from .group_0274 import ( + from .group_0279 import CustomDeploymentRuleApp as CustomDeploymentRuleApp + from .group_0280 import DeploymentProtectionRule as DeploymentProtectionRule + from .group_0280 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200, ) - from .group_0275 import ShortBlob as ShortBlob - from .group_0276 import Blob as Blob - from .group_0277 import GitCommit as GitCommit - from .group_0277 import GitCommitPropAuthor as GitCommitPropAuthor - from .group_0277 import GitCommitPropCommitter as GitCommitPropCommitter - from .group_0277 import GitCommitPropParentsItems as GitCommitPropParentsItems - from .group_0277 import GitCommitPropTree as GitCommitPropTree - from .group_0277 import GitCommitPropVerification as GitCommitPropVerification - from .group_0278 import GitRef as GitRef - from .group_0278 import GitRefPropObject as GitRefPropObject - from .group_0279 import GitTag as GitTag - from .group_0279 import GitTagPropObject as GitTagPropObject - from .group_0279 import GitTagPropTagger as GitTagPropTagger - from .group_0280 import GitTree as GitTree - from .group_0280 import GitTreePropTreeItems as GitTreePropTreeItems - from .group_0281 import HookResponse as HookResponse - from .group_0282 import Hook as Hook - from .group_0283 import Import as Import - from .group_0283 import ( + from .group_0281 import ShortBlob as ShortBlob + from .group_0282 import Blob as Blob + from .group_0283 import GitCommit as GitCommit + from .group_0283 import GitCommitPropAuthor as GitCommitPropAuthor + from .group_0283 import GitCommitPropCommitter as GitCommitPropCommitter + from .group_0283 import GitCommitPropParentsItems as GitCommitPropParentsItems + from .group_0283 import GitCommitPropTree as GitCommitPropTree + from .group_0283 import GitCommitPropVerification as GitCommitPropVerification + from .group_0284 import GitRef as GitRef + from .group_0284 import GitRefPropObject as GitRefPropObject + from .group_0285 import GitTag as GitTag + from .group_0285 import GitTagPropObject as GitTagPropObject + from .group_0285 import GitTagPropTagger as GitTagPropTagger + from .group_0286 import GitTree as GitTree + from .group_0286 import GitTreePropTreeItems as GitTreePropTreeItems + from .group_0287 import HookResponse as HookResponse + from .group_0288 import Hook as Hook + from .group_0289 import Import as Import + from .group_0289 import ( ImportPropProjectChoicesItems as ImportPropProjectChoicesItems, ) - from .group_0284 import PorterAuthor as PorterAuthor - from .group_0285 import PorterLargeFile as PorterLargeFile - from .group_0286 import IssueEvent as IssueEvent - from .group_0286 import IssueEventDismissedReview as IssueEventDismissedReview - from .group_0286 import IssueEventLabel as IssueEventLabel - from .group_0286 import IssueEventMilestone as IssueEventMilestone - from .group_0286 import IssueEventProjectCard as IssueEventProjectCard - from .group_0286 import IssueEventRename as IssueEventRename - from .group_0287 import LabeledIssueEvent as LabeledIssueEvent - from .group_0287 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel - from .group_0288 import UnlabeledIssueEvent as UnlabeledIssueEvent - from .group_0288 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel - from .group_0289 import AssignedIssueEvent as AssignedIssueEvent - from .group_0290 import UnassignedIssueEvent as UnassignedIssueEvent - from .group_0291 import MilestonedIssueEvent as MilestonedIssueEvent - from .group_0291 import ( + from .group_0290 import PorterAuthor as PorterAuthor + from .group_0291 import PorterLargeFile as PorterLargeFile + from .group_0292 import IssueEvent as IssueEvent + from .group_0292 import IssueEventDismissedReview as IssueEventDismissedReview + from .group_0292 import IssueEventLabel as IssueEventLabel + from .group_0292 import IssueEventMilestone as IssueEventMilestone + from .group_0292 import IssueEventProjectCard as IssueEventProjectCard + from .group_0292 import IssueEventRename as IssueEventRename + from .group_0293 import LabeledIssueEvent as LabeledIssueEvent + from .group_0293 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel + from .group_0294 import UnlabeledIssueEvent as UnlabeledIssueEvent + from .group_0294 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel + from .group_0295 import AssignedIssueEvent as AssignedIssueEvent + from .group_0296 import UnassignedIssueEvent as UnassignedIssueEvent + from .group_0297 import MilestonedIssueEvent as MilestonedIssueEvent + from .group_0297 import ( MilestonedIssueEventPropMilestone as MilestonedIssueEventPropMilestone, ) - from .group_0292 import DemilestonedIssueEvent as DemilestonedIssueEvent - from .group_0292 import ( + from .group_0298 import DemilestonedIssueEvent as DemilestonedIssueEvent + from .group_0298 import ( DemilestonedIssueEventPropMilestone as DemilestonedIssueEventPropMilestone, ) - from .group_0293 import RenamedIssueEvent as RenamedIssueEvent - from .group_0293 import RenamedIssueEventPropRename as RenamedIssueEventPropRename - from .group_0294 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent - from .group_0295 import ( + from .group_0299 import RenamedIssueEvent as RenamedIssueEvent + from .group_0299 import RenamedIssueEventPropRename as RenamedIssueEventPropRename + from .group_0300 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent + from .group_0301 import ( ReviewRequestRemovedIssueEvent as ReviewRequestRemovedIssueEvent, ) - from .group_0296 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent - from .group_0296 import ( + from .group_0302 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent + from .group_0302 import ( ReviewDismissedIssueEventPropDismissedReview as ReviewDismissedIssueEventPropDismissedReview, ) - from .group_0297 import LockedIssueEvent as LockedIssueEvent - from .group_0298 import AddedToProjectIssueEvent as AddedToProjectIssueEvent - from .group_0298 import ( + from .group_0303 import LockedIssueEvent as LockedIssueEvent + from .group_0304 import AddedToProjectIssueEvent as AddedToProjectIssueEvent + from .group_0304 import ( AddedToProjectIssueEventPropProjectCard as AddedToProjectIssueEventPropProjectCard, ) - from .group_0299 import ( + from .group_0305 import ( MovedColumnInProjectIssueEvent as MovedColumnInProjectIssueEvent, ) - from .group_0299 import ( + from .group_0305 import ( MovedColumnInProjectIssueEventPropProjectCard as MovedColumnInProjectIssueEventPropProjectCard, ) - from .group_0300 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent - from .group_0300 import ( + from .group_0306 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent + from .group_0306 import ( RemovedFromProjectIssueEventPropProjectCard as RemovedFromProjectIssueEventPropProjectCard, ) - from .group_0301 import ( + from .group_0307 import ( ConvertedNoteToIssueIssueEvent as ConvertedNoteToIssueIssueEvent, ) - from .group_0301 import ( + from .group_0307 import ( ConvertedNoteToIssueIssueEventPropProjectCard as ConvertedNoteToIssueIssueEventPropProjectCard, ) - from .group_0302 import TimelineCommentEvent as TimelineCommentEvent - from .group_0303 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent - from .group_0304 import ( + from .group_0308 import TimelineCommentEvent as TimelineCommentEvent + from .group_0309 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent + from .group_0310 import ( TimelineCrossReferencedEventPropSource as TimelineCrossReferencedEventPropSource, ) - from .group_0305 import TimelineCommittedEvent as TimelineCommittedEvent - from .group_0305 import ( + from .group_0311 import TimelineCommittedEvent as TimelineCommittedEvent + from .group_0311 import ( TimelineCommittedEventPropAuthor as TimelineCommittedEventPropAuthor, ) - from .group_0305 import ( + from .group_0311 import ( TimelineCommittedEventPropCommitter as TimelineCommittedEventPropCommitter, ) - from .group_0305 import ( + from .group_0311 import ( TimelineCommittedEventPropParentsItems as TimelineCommittedEventPropParentsItems, ) - from .group_0305 import ( + from .group_0311 import ( TimelineCommittedEventPropTree as TimelineCommittedEventPropTree, ) - from .group_0305 import ( + from .group_0311 import ( TimelineCommittedEventPropVerification as TimelineCommittedEventPropVerification, ) - from .group_0306 import TimelineReviewedEvent as TimelineReviewedEvent - from .group_0306 import ( + from .group_0312 import TimelineReviewedEvent as TimelineReviewedEvent + from .group_0312 import ( TimelineReviewedEventPropLinks as TimelineReviewedEventPropLinks, ) - from .group_0306 import ( + from .group_0312 import ( TimelineReviewedEventPropLinksPropHtml as TimelineReviewedEventPropLinksPropHtml, ) - from .group_0306 import ( + from .group_0312 import ( TimelineReviewedEventPropLinksPropPullRequest as TimelineReviewedEventPropLinksPropPullRequest, ) - from .group_0307 import PullRequestReviewComment as PullRequestReviewComment - from .group_0307 import ( + from .group_0313 import PullRequestReviewComment as PullRequestReviewComment + from .group_0313 import ( PullRequestReviewCommentPropLinks as PullRequestReviewCommentPropLinks, ) - from .group_0307 import ( + from .group_0313 import ( PullRequestReviewCommentPropLinksPropHtml as PullRequestReviewCommentPropLinksPropHtml, ) - from .group_0307 import ( + from .group_0313 import ( PullRequestReviewCommentPropLinksPropPullRequest as PullRequestReviewCommentPropLinksPropPullRequest, ) - from .group_0307 import ( + from .group_0313 import ( PullRequestReviewCommentPropLinksPropSelf as PullRequestReviewCommentPropLinksPropSelf, ) - from .group_0307 import TimelineLineCommentedEvent as TimelineLineCommentedEvent - from .group_0308 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent - from .group_0309 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent - from .group_0310 import StateChangeIssueEvent as StateChangeIssueEvent - from .group_0311 import DeployKey as DeployKey - from .group_0312 import Language as Language - from .group_0313 import LicenseContent as LicenseContent - from .group_0313 import LicenseContentPropLinks as LicenseContentPropLinks - from .group_0314 import MergedUpstream as MergedUpstream - from .group_0315 import Page as Page - from .group_0315 import PagesHttpsCertificate as PagesHttpsCertificate - from .group_0315 import PagesSourceHash as PagesSourceHash - from .group_0316 import PageBuild as PageBuild - from .group_0316 import PageBuildPropError as PageBuildPropError - from .group_0317 import PageBuildStatus as PageBuildStatus - from .group_0318 import PageDeployment as PageDeployment - from .group_0319 import PagesDeploymentStatus as PagesDeploymentStatus - from .group_0320 import PagesHealthCheck as PagesHealthCheck - from .group_0320 import ( + from .group_0313 import TimelineLineCommentedEvent as TimelineLineCommentedEvent + from .group_0314 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent + from .group_0315 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent + from .group_0316 import StateChangeIssueEvent as StateChangeIssueEvent + from .group_0317 import DeployKey as DeployKey + from .group_0318 import Language as Language + from .group_0319 import LicenseContent as LicenseContent + from .group_0319 import LicenseContentPropLinks as LicenseContentPropLinks + from .group_0320 import MergedUpstream as MergedUpstream + from .group_0321 import Page as Page + from .group_0321 import PagesHttpsCertificate as PagesHttpsCertificate + from .group_0321 import PagesSourceHash as PagesSourceHash + from .group_0322 import PageBuild as PageBuild + from .group_0322 import PageBuildPropError as PageBuildPropError + from .group_0323 import PageBuildStatus as PageBuildStatus + from .group_0324 import PageDeployment as PageDeployment + from .group_0325 import PagesDeploymentStatus as PagesDeploymentStatus + from .group_0326 import PagesHealthCheck as PagesHealthCheck + from .group_0326 import ( PagesHealthCheckPropAltDomain as PagesHealthCheckPropAltDomain, ) - from .group_0320 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain - from .group_0321 import PullRequest as PullRequest - from .group_0322 import PullRequestPropLabelsItems as PullRequestPropLabelsItems - from .group_0323 import PullRequestPropBase as PullRequestPropBase - from .group_0323 import PullRequestPropHead as PullRequestPropHead - from .group_0324 import PullRequestPropLinks as PullRequestPropLinks - from .group_0325 import PullRequestMergeResult as PullRequestMergeResult - from .group_0326 import PullRequestReviewRequest as PullRequestReviewRequest - from .group_0327 import PullRequestReview as PullRequestReview - from .group_0327 import PullRequestReviewPropLinks as PullRequestReviewPropLinks - from .group_0327 import ( + from .group_0326 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain + from .group_0327 import PullRequest as PullRequest + from .group_0328 import PullRequestPropLabelsItems as PullRequestPropLabelsItems + from .group_0329 import PullRequestPropBase as PullRequestPropBase + from .group_0329 import PullRequestPropHead as PullRequestPropHead + from .group_0330 import PullRequestPropLinks as PullRequestPropLinks + from .group_0331 import PullRequestMergeResult as PullRequestMergeResult + from .group_0332 import PullRequestReviewRequest as PullRequestReviewRequest + from .group_0333 import PullRequestReview as PullRequestReview + from .group_0333 import PullRequestReviewPropLinks as PullRequestReviewPropLinks + from .group_0333 import ( PullRequestReviewPropLinksPropHtml as PullRequestReviewPropLinksPropHtml, ) - from .group_0327 import ( + from .group_0333 import ( PullRequestReviewPropLinksPropPullRequest as PullRequestReviewPropLinksPropPullRequest, ) - from .group_0328 import ReviewComment as ReviewComment - from .group_0329 import ReviewCommentPropLinks as ReviewCommentPropLinks - from .group_0330 import ReleaseAsset as ReleaseAsset - from .group_0331 import Release as Release - from .group_0332 import ReleaseNotesContent as ReleaseNotesContent - from .group_0333 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo - from .group_0334 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 - from .group_0335 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 - from .group_0336 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 - from .group_0337 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 - from .group_0338 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 - from .group_0339 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 - from .group_0340 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 - from .group_0341 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 - from .group_0342 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 - from .group_0343 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 - from .group_0344 import ( + from .group_0334 import ReviewComment as ReviewComment + from .group_0335 import ReviewCommentPropLinks as ReviewCommentPropLinks + from .group_0336 import ReleaseAsset as ReleaseAsset + from .group_0337 import Release as Release + from .group_0338 import ReleaseNotesContent as ReleaseNotesContent + from .group_0339 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo + from .group_0340 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 + from .group_0341 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 + from .group_0342 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 + from .group_0343 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 + from .group_0344 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 + from .group_0345 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 + from .group_0346 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 + from .group_0347 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 + from .group_0348 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 + from .group_0349 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 + from .group_0350 import ( RepositoryRuleDetailedOneof10 as RepositoryRuleDetailedOneof10, ) - from .group_0345 import ( + from .group_0351 import ( RepositoryRuleDetailedOneof11 as RepositoryRuleDetailedOneof11, ) - from .group_0346 import ( + from .group_0352 import ( RepositoryRuleDetailedOneof12 as RepositoryRuleDetailedOneof12, ) - from .group_0347 import ( + from .group_0353 import ( RepositoryRuleDetailedOneof13 as RepositoryRuleDetailedOneof13, ) - from .group_0348 import ( + from .group_0354 import ( RepositoryRuleDetailedOneof14 as RepositoryRuleDetailedOneof14, ) - from .group_0349 import ( + from .group_0355 import ( RepositoryRuleDetailedOneof15 as RepositoryRuleDetailedOneof15, ) - from .group_0350 import ( + from .group_0356 import ( RepositoryRuleDetailedOneof16 as RepositoryRuleDetailedOneof16, ) - from .group_0351 import SecretScanningAlert as SecretScanningAlert - from .group_0352 import ( + from .group_0357 import SecretScanningAlert as SecretScanningAlert + from .group_0358 import ( SecretScanningPushProtectionBypass as SecretScanningPushProtectionBypass, ) - from .group_0353 import SecretScanningScan as SecretScanningScan - from .group_0353 import SecretScanningScanHistory as SecretScanningScanHistory - from .group_0353 import ( + from .group_0359 import SecretScanningScan as SecretScanningScan + from .group_0359 import SecretScanningScanHistory as SecretScanningScanHistory + from .group_0359 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItems as SecretScanningScanHistoryPropCustomPatternBackfillScansItems, ) - from .group_0354 import ( + from .group_0360 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1 as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1, ) - from .group_0355 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate - from .group_0355 import ( + from .group_0361 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate + from .group_0361 import ( RepositoryAdvisoryCreatePropCreditsItems as RepositoryAdvisoryCreatePropCreditsItems, ) - from .group_0355 import ( + from .group_0361 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItems as RepositoryAdvisoryCreatePropVulnerabilitiesItems, ) - from .group_0355 import ( + from .group_0361 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0356 import ( + from .group_0362 import ( PrivateVulnerabilityReportCreate as PrivateVulnerabilityReportCreate, ) - from .group_0356 import ( + from .group_0362 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItems as PrivateVulnerabilityReportCreatePropVulnerabilitiesItems, ) - from .group_0356 import ( + from .group_0362 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0357 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate - from .group_0357 import ( + from .group_0363 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate + from .group_0363 import ( RepositoryAdvisoryUpdatePropCreditsItems as RepositoryAdvisoryUpdatePropCreditsItems, ) - from .group_0357 import ( + from .group_0363 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItems as RepositoryAdvisoryUpdatePropVulnerabilitiesItems, ) - from .group_0357 import ( + from .group_0363 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage, ) - from .group_0358 import Stargazer as Stargazer - from .group_0359 import CommitActivity as CommitActivity - from .group_0360 import ContributorActivity as ContributorActivity - from .group_0360 import ( + from .group_0364 import Stargazer as Stargazer + from .group_0365 import CommitActivity as CommitActivity + from .group_0366 import ContributorActivity as ContributorActivity + from .group_0366 import ( ContributorActivityPropWeeksItems as ContributorActivityPropWeeksItems, ) - from .group_0361 import ParticipationStats as ParticipationStats - from .group_0362 import RepositorySubscription as RepositorySubscription - from .group_0363 import Tag as Tag - from .group_0363 import TagPropCommit as TagPropCommit - from .group_0364 import TagProtection as TagProtection - from .group_0365 import Topic as Topic - from .group_0366 import Traffic as Traffic - from .group_0367 import CloneTraffic as CloneTraffic - from .group_0368 import ContentTraffic as ContentTraffic - from .group_0369 import ReferrerTraffic as ReferrerTraffic - from .group_0370 import ViewTraffic as ViewTraffic - from .group_0371 import SearchResultTextMatchesItems as SearchResultTextMatchesItems - from .group_0371 import ( + from .group_0367 import ParticipationStats as ParticipationStats + from .group_0368 import RepositorySubscription as RepositorySubscription + from .group_0369 import Tag as Tag + from .group_0369 import TagPropCommit as TagPropCommit + from .group_0370 import TagProtection as TagProtection + from .group_0371 import Topic as Topic + from .group_0372 import Traffic as Traffic + from .group_0373 import CloneTraffic as CloneTraffic + from .group_0374 import ContentTraffic as ContentTraffic + from .group_0375 import ReferrerTraffic as ReferrerTraffic + from .group_0376 import ViewTraffic as ViewTraffic + from .group_0377 import SearchResultTextMatchesItems as SearchResultTextMatchesItems + from .group_0377 import ( SearchResultTextMatchesItemsPropMatchesItems as SearchResultTextMatchesItemsPropMatchesItems, ) - from .group_0372 import CodeSearchResultItem as CodeSearchResultItem - from .group_0372 import SearchCodeGetResponse200 as SearchCodeGetResponse200 - from .group_0373 import CommitSearchResultItem as CommitSearchResultItem - from .group_0373 import ( + from .group_0378 import CodeSearchResultItem as CodeSearchResultItem + from .group_0378 import SearchCodeGetResponse200 as SearchCodeGetResponse200 + from .group_0379 import CommitSearchResultItem as CommitSearchResultItem + from .group_0379 import ( CommitSearchResultItemPropParentsItems as CommitSearchResultItemPropParentsItems, ) - from .group_0373 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 - from .group_0374 import ( + from .group_0379 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 + from .group_0380 import ( CommitSearchResultItemPropCommit as CommitSearchResultItemPropCommit, ) - from .group_0374 import ( + from .group_0380 import ( CommitSearchResultItemPropCommitPropAuthor as CommitSearchResultItemPropCommitPropAuthor, ) - from .group_0374 import ( + from .group_0380 import ( CommitSearchResultItemPropCommitPropTree as CommitSearchResultItemPropCommitPropTree, ) - from .group_0375 import IssueSearchResultItem as IssueSearchResultItem - from .group_0375 import ( + from .group_0381 import IssueSearchResultItem as IssueSearchResultItem + from .group_0381 import ( IssueSearchResultItemPropLabelsItems as IssueSearchResultItemPropLabelsItems, ) - from .group_0375 import ( + from .group_0381 import ( IssueSearchResultItemPropPullRequest as IssueSearchResultItemPropPullRequest, ) - from .group_0375 import ( + from .group_0381 import ( IssueSearchResultItemPropSubIssuesSummary as IssueSearchResultItemPropSubIssuesSummary, ) - from .group_0375 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 - from .group_0376 import LabelSearchResultItem as LabelSearchResultItem - from .group_0376 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 - from .group_0377 import RepoSearchResultItem as RepoSearchResultItem - from .group_0377 import ( + from .group_0381 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 + from .group_0382 import LabelSearchResultItem as LabelSearchResultItem + from .group_0382 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 + from .group_0383 import RepoSearchResultItem as RepoSearchResultItem + from .group_0383 import ( RepoSearchResultItemPropPermissions as RepoSearchResultItemPropPermissions, ) - from .group_0377 import ( + from .group_0383 import ( SearchRepositoriesGetResponse200 as SearchRepositoriesGetResponse200, ) - from .group_0378 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 - from .group_0378 import TopicSearchResultItem as TopicSearchResultItem - from .group_0378 import ( + from .group_0384 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 + from .group_0384 import TopicSearchResultItem as TopicSearchResultItem + from .group_0384 import ( TopicSearchResultItemPropAliasesItems as TopicSearchResultItemPropAliasesItems, ) - from .group_0378 import ( + from .group_0384 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelation as TopicSearchResultItemPropAliasesItemsPropTopicRelation, ) - from .group_0378 import ( + from .group_0384 import ( TopicSearchResultItemPropRelatedItems as TopicSearchResultItemPropRelatedItems, ) - from .group_0378 import ( + from .group_0384 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelation as TopicSearchResultItemPropRelatedItemsPropTopicRelation, ) - from .group_0379 import SearchUsersGetResponse200 as SearchUsersGetResponse200 - from .group_0379 import UserSearchResultItem as UserSearchResultItem - from .group_0380 import PrivateUser as PrivateUser - from .group_0380 import PrivateUserPropPlan as PrivateUserPropPlan - from .group_0381 import CodespacesUserPublicKey as CodespacesUserPublicKey - from .group_0382 import CodespaceExportDetails as CodespaceExportDetails - from .group_0383 import CodespaceWithFullRepository as CodespaceWithFullRepository - from .group_0383 import ( + from .group_0385 import SearchUsersGetResponse200 as SearchUsersGetResponse200 + from .group_0385 import UserSearchResultItem as UserSearchResultItem + from .group_0386 import PrivateUser as PrivateUser + from .group_0386 import PrivateUserPropPlan as PrivateUserPropPlan + from .group_0387 import CodespacesUserPublicKey as CodespacesUserPublicKey + from .group_0388 import CodespaceExportDetails as CodespaceExportDetails + from .group_0389 import CodespaceWithFullRepository as CodespaceWithFullRepository + from .group_0389 import ( CodespaceWithFullRepositoryPropGitStatus as CodespaceWithFullRepositoryPropGitStatus, ) - from .group_0383 import ( + from .group_0389 import ( CodespaceWithFullRepositoryPropRuntimeConstraints as CodespaceWithFullRepositoryPropRuntimeConstraints, ) - from .group_0384 import Email as Email - from .group_0385 import GpgKey as GpgKey - from .group_0385 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems - from .group_0385 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems - from .group_0385 import ( + from .group_0390 import Email as Email + from .group_0391 import GpgKey as GpgKey + from .group_0391 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems + from .group_0391 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems + from .group_0391 import ( GpgKeyPropSubkeysItemsPropEmailsItems as GpgKeyPropSubkeysItemsPropEmailsItems, ) - from .group_0386 import Key as Key - from .group_0387 import MarketplaceAccount as MarketplaceAccount - from .group_0387 import UserMarketplacePurchase as UserMarketplacePurchase - from .group_0388 import SocialAccount as SocialAccount - from .group_0389 import SshSigningKey as SshSigningKey - from .group_0390 import StarredRepository as StarredRepository - from .group_0391 import Hovercard as Hovercard - from .group_0391 import HovercardPropContextsItems as HovercardPropContextsItems - from .group_0392 import KeySimple as KeySimple - from .group_0393 import EnterpriseWebhooks as EnterpriseWebhooks - from .group_0394 import SimpleInstallation as SimpleInstallation - from .group_0395 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks - from .group_0396 import RepositoryWebhooks as RepositoryWebhooks - from .group_0396 import ( + from .group_0392 import Key as Key + from .group_0393 import MarketplaceAccount as MarketplaceAccount + from .group_0393 import UserMarketplacePurchase as UserMarketplacePurchase + from .group_0394 import SocialAccount as SocialAccount + from .group_0395 import SshSigningKey as SshSigningKey + from .group_0396 import StarredRepository as StarredRepository + from .group_0397 import Hovercard as Hovercard + from .group_0397 import HovercardPropContextsItems as HovercardPropContextsItems + from .group_0398 import KeySimple as KeySimple + from .group_0399 import EnterpriseWebhooks as EnterpriseWebhooks + from .group_0400 import SimpleInstallation as SimpleInstallation + from .group_0401 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks + from .group_0402 import RepositoryWebhooks as RepositoryWebhooks + from .group_0402 import ( RepositoryWebhooksPropCustomProperties as RepositoryWebhooksPropCustomProperties, ) - from .group_0396 import ( + from .group_0402 import ( RepositoryWebhooksPropPermissions as RepositoryWebhooksPropPermissions, ) - from .group_0396 import ( + from .group_0402 import ( RepositoryWebhooksPropTemplateRepository as RepositoryWebhooksPropTemplateRepository, ) - from .group_0396 import ( + from .group_0402 import ( RepositoryWebhooksPropTemplateRepositoryPropOwner as RepositoryWebhooksPropTemplateRepositoryPropOwner, ) - from .group_0396 import ( + from .group_0402 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissions as RepositoryWebhooksPropTemplateRepositoryPropPermissions, ) - from .group_0397 import WebhooksRule as WebhooksRule - from .group_0398 import SimpleCheckSuite as SimpleCheckSuite - from .group_0399 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite - from .group_0399 import ( + from .group_0403 import WebhooksRule as WebhooksRule + from .group_0404 import SimpleCheckSuite as SimpleCheckSuite + from .group_0405 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite + from .group_0405 import ( CheckRunWithSimpleCheckSuitePropOutput as CheckRunWithSimpleCheckSuitePropOutput, ) - from .group_0400 import WebhooksDeployKey as WebhooksDeployKey - from .group_0401 import WebhooksWorkflow as WebhooksWorkflow - from .group_0402 import WebhooksApprover as WebhooksApprover - from .group_0402 import WebhooksReviewersItems as WebhooksReviewersItems - from .group_0402 import ( + from .group_0406 import WebhooksDeployKey as WebhooksDeployKey + from .group_0407 import WebhooksWorkflow as WebhooksWorkflow + from .group_0408 import WebhooksApprover as WebhooksApprover + from .group_0408 import WebhooksReviewersItems as WebhooksReviewersItems + from .group_0408 import ( WebhooksReviewersItemsPropReviewer as WebhooksReviewersItemsPropReviewer, ) - from .group_0403 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun - from .group_0404 import WebhooksUser as WebhooksUser - from .group_0405 import WebhooksAnswer as WebhooksAnswer - from .group_0405 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions - from .group_0405 import WebhooksAnswerPropUser as WebhooksAnswerPropUser - from .group_0406 import Discussion as Discussion - from .group_0406 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy - from .group_0406 import DiscussionPropCategory as DiscussionPropCategory - from .group_0406 import DiscussionPropReactions as DiscussionPropReactions - from .group_0406 import DiscussionPropUser as DiscussionPropUser - from .group_0406 import Label as Label - from .group_0407 import WebhooksComment as WebhooksComment - from .group_0407 import WebhooksCommentPropReactions as WebhooksCommentPropReactions - from .group_0407 import WebhooksCommentPropUser as WebhooksCommentPropUser - from .group_0408 import WebhooksLabel as WebhooksLabel - from .group_0409 import WebhooksRepositoriesItems as WebhooksRepositoriesItems - from .group_0410 import ( + from .group_0409 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun + from .group_0410 import WebhooksUser as WebhooksUser + from .group_0411 import WebhooksAnswer as WebhooksAnswer + from .group_0411 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions + from .group_0411 import WebhooksAnswerPropUser as WebhooksAnswerPropUser + from .group_0412 import Discussion as Discussion + from .group_0412 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy + from .group_0412 import DiscussionPropCategory as DiscussionPropCategory + from .group_0412 import DiscussionPropReactions as DiscussionPropReactions + from .group_0412 import DiscussionPropUser as DiscussionPropUser + from .group_0412 import Label as Label + from .group_0413 import WebhooksComment as WebhooksComment + from .group_0413 import WebhooksCommentPropReactions as WebhooksCommentPropReactions + from .group_0413 import WebhooksCommentPropUser as WebhooksCommentPropUser + from .group_0414 import WebhooksLabel as WebhooksLabel + from .group_0415 import WebhooksRepositoriesItems as WebhooksRepositoriesItems + from .group_0416 import ( WebhooksRepositoriesAddedItems as WebhooksRepositoriesAddedItems, ) - from .group_0411 import WebhooksIssueComment as WebhooksIssueComment - from .group_0411 import ( + from .group_0417 import WebhooksIssueComment as WebhooksIssueComment + from .group_0417 import ( WebhooksIssueCommentPropReactions as WebhooksIssueCommentPropReactions, ) - from .group_0411 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser - from .group_0412 import WebhooksChanges as WebhooksChanges - from .group_0412 import WebhooksChangesPropBody as WebhooksChangesPropBody - from .group_0413 import WebhooksIssue as WebhooksIssue - from .group_0413 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee - from .group_0413 import ( + from .group_0417 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser + from .group_0418 import WebhooksChanges as WebhooksChanges + from .group_0418 import WebhooksChangesPropBody as WebhooksChangesPropBody + from .group_0419 import WebhooksIssue as WebhooksIssue + from .group_0419 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee + from .group_0419 import ( WebhooksIssuePropAssigneesItems as WebhooksIssuePropAssigneesItems, ) - from .group_0413 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems - from .group_0413 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone - from .group_0413 import ( + from .group_0419 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems + from .group_0419 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone + from .group_0419 import ( WebhooksIssuePropMilestonePropCreator as WebhooksIssuePropMilestonePropCreator, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropPerformedViaGithubApp as WebhooksIssuePropPerformedViaGithubApp, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropPerformedViaGithubAppPropOwner as WebhooksIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissions as WebhooksIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0413 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest - from .group_0413 import WebhooksIssuePropReactions as WebhooksIssuePropReactions - from .group_0413 import ( + from .group_0419 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest + from .group_0419 import WebhooksIssuePropReactions as WebhooksIssuePropReactions + from .group_0419 import ( WebhooksIssuePropSubIssuesSummary as WebhooksIssuePropSubIssuesSummary, ) - from .group_0413 import WebhooksIssuePropUser as WebhooksIssuePropUser - from .group_0414 import WebhooksMilestone as WebhooksMilestone - from .group_0414 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator - from .group_0415 import WebhooksIssue2 as WebhooksIssue2 - from .group_0415 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee - from .group_0415 import ( + from .group_0419 import WebhooksIssuePropUser as WebhooksIssuePropUser + from .group_0420 import WebhooksMilestone as WebhooksMilestone + from .group_0420 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator + from .group_0421 import WebhooksIssue2 as WebhooksIssue2 + from .group_0421 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee + from .group_0421 import ( WebhooksIssue2PropAssigneesItems as WebhooksIssue2PropAssigneesItems, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropLabelsItems as WebhooksIssue2PropLabelsItems, ) - from .group_0415 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone - from .group_0415 import ( + from .group_0421 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone + from .group_0421 import ( WebhooksIssue2PropMilestonePropCreator as WebhooksIssue2PropMilestonePropCreator, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropPerformedViaGithubApp as WebhooksIssue2PropPerformedViaGithubApp, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwner as WebhooksIssue2PropPerformedViaGithubAppPropOwner, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissions as WebhooksIssue2PropPerformedViaGithubAppPropPermissions, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropPullRequest as WebhooksIssue2PropPullRequest, ) - from .group_0415 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions - from .group_0415 import ( + from .group_0421 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions + from .group_0421 import ( WebhooksIssue2PropSubIssuesSummary as WebhooksIssue2PropSubIssuesSummary, ) - from .group_0415 import WebhooksIssue2PropUser as WebhooksIssue2PropUser - from .group_0416 import WebhooksUserMannequin as WebhooksUserMannequin - from .group_0417 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase - from .group_0417 import ( + from .group_0421 import WebhooksIssue2PropUser as WebhooksIssue2PropUser + from .group_0422 import WebhooksUserMannequin as WebhooksUserMannequin + from .group_0423 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase + from .group_0423 import ( WebhooksMarketplacePurchasePropAccount as WebhooksMarketplacePurchasePropAccount, ) - from .group_0417 import ( + from .group_0423 import ( WebhooksMarketplacePurchasePropPlan as WebhooksMarketplacePurchasePropPlan, ) - from .group_0418 import ( + from .group_0424 import ( WebhooksPreviousMarketplacePurchase as WebhooksPreviousMarketplacePurchase, ) - from .group_0418 import ( + from .group_0424 import ( WebhooksPreviousMarketplacePurchasePropAccount as WebhooksPreviousMarketplacePurchasePropAccount, ) - from .group_0418 import ( + from .group_0424 import ( WebhooksPreviousMarketplacePurchasePropPlan as WebhooksPreviousMarketplacePurchasePropPlan, ) - from .group_0419 import WebhooksTeam as WebhooksTeam - from .group_0419 import WebhooksTeamPropParent as WebhooksTeamPropParent - from .group_0420 import MergeGroup as MergeGroup - from .group_0421 import WebhooksMilestone3 as WebhooksMilestone3 - from .group_0421 import ( + from .group_0425 import WebhooksTeam as WebhooksTeam + from .group_0425 import WebhooksTeamPropParent as WebhooksTeamPropParent + from .group_0426 import MergeGroup as MergeGroup + from .group_0427 import WebhooksMilestone3 as WebhooksMilestone3 + from .group_0427 import ( WebhooksMilestone3PropCreator as WebhooksMilestone3PropCreator, ) - from .group_0422 import WebhooksMembership as WebhooksMembership - from .group_0422 import WebhooksMembershipPropUser as WebhooksMembershipPropUser - from .group_0423 import PersonalAccessTokenRequest as PersonalAccessTokenRequest - from .group_0423 import ( + from .group_0428 import WebhooksMembership as WebhooksMembership + from .group_0428 import WebhooksMembershipPropUser as WebhooksMembershipPropUser + from .group_0429 import PersonalAccessTokenRequest as PersonalAccessTokenRequest + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsAdded as PersonalAccessTokenRequestPropPermissionsAdded, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOther as PersonalAccessTokenRequestPropPermissionsAddedPropOther, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepository as PersonalAccessTokenRequestPropPermissionsAddedPropRepository, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsResult as PersonalAccessTokenRequestPropPermissionsResult, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganization as PersonalAccessTokenRequestPropPermissionsResultPropOrganization, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsResultPropOther as PersonalAccessTokenRequestPropPermissionsResultPropOther, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepository as PersonalAccessTokenRequestPropPermissionsResultPropRepository, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsUpgraded as PersonalAccessTokenRequestPropPermissionsUpgraded, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOther as PersonalAccessTokenRequestPropPermissionsUpgradedPropOther, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropRepositoriesItems as PersonalAccessTokenRequestPropRepositoriesItems, ) - from .group_0424 import WebhooksProjectCard as WebhooksProjectCard - from .group_0424 import ( + from .group_0430 import WebhooksProjectCard as WebhooksProjectCard + from .group_0430 import ( WebhooksProjectCardPropCreator as WebhooksProjectCardPropCreator, ) - from .group_0425 import WebhooksProject as WebhooksProject - from .group_0425 import WebhooksProjectPropCreator as WebhooksProjectPropCreator - from .group_0426 import WebhooksProjectColumn as WebhooksProjectColumn - from .group_0427 import ProjectsV2 as ProjectsV2 - from .group_0428 import WebhooksProjectChanges as WebhooksProjectChanges - from .group_0428 import ( + from .group_0431 import WebhooksProject as WebhooksProject + from .group_0431 import WebhooksProjectPropCreator as WebhooksProjectPropCreator + from .group_0432 import WebhooksProjectColumn as WebhooksProjectColumn + from .group_0433 import ProjectsV2 as ProjectsV2 + from .group_0434 import WebhooksProjectChanges as WebhooksProjectChanges + from .group_0434 import ( WebhooksProjectChangesPropArchivedAt as WebhooksProjectChangesPropArchivedAt, ) - from .group_0429 import ProjectsV2Item as ProjectsV2Item - from .group_0430 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate - from .group_0431 import PullRequestWebhook as PullRequestWebhook - from .group_0432 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 - from .group_0433 import WebhooksPullRequest5 as WebhooksPullRequest5 - from .group_0433 import ( + from .group_0435 import ProjectsV2Item as ProjectsV2Item + from .group_0436 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate + from .group_0437 import PullRequestWebhook as PullRequestWebhook + from .group_0438 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 + from .group_0439 import WebhooksPullRequest5 as WebhooksPullRequest5 + from .group_0439 import ( WebhooksPullRequest5PropAssignee as WebhooksPullRequest5PropAssignee, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropAssigneesItems as WebhooksPullRequest5PropAssigneesItems, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropAutoMerge as WebhooksPullRequest5PropAutoMerge, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropAutoMergePropEnabledBy as WebhooksPullRequest5PropAutoMergePropEnabledBy, ) - from .group_0433 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase - from .group_0433 import ( + from .group_0439 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase + from .group_0439 import ( WebhooksPullRequest5PropBasePropRepo as WebhooksPullRequest5PropBasePropRepo, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropBasePropRepoPropLicense as WebhooksPullRequest5PropBasePropRepoPropLicense, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropBasePropRepoPropOwner as WebhooksPullRequest5PropBasePropRepoPropOwner, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropBasePropRepoPropPermissions as WebhooksPullRequest5PropBasePropRepoPropPermissions, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropBasePropUser as WebhooksPullRequest5PropBasePropUser, ) - from .group_0433 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead - from .group_0433 import ( + from .group_0439 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead + from .group_0439 import ( WebhooksPullRequest5PropHeadPropRepo as WebhooksPullRequest5PropHeadPropRepo, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropHeadPropRepoPropLicense as WebhooksPullRequest5PropHeadPropRepoPropLicense, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropHeadPropRepoPropOwner as WebhooksPullRequest5PropHeadPropRepoPropOwner, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissions as WebhooksPullRequest5PropHeadPropRepoPropPermissions, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropHeadPropUser as WebhooksPullRequest5PropHeadPropUser, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLabelsItems as WebhooksPullRequest5PropLabelsItems, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinks as WebhooksPullRequest5PropLinks, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropComments as WebhooksPullRequest5PropLinksPropComments, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropCommits as WebhooksPullRequest5PropLinksPropCommits, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropHtml as WebhooksPullRequest5PropLinksPropHtml, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropIssue as WebhooksPullRequest5PropLinksPropIssue, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropReviewComment as WebhooksPullRequest5PropLinksPropReviewComment, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropReviewComments as WebhooksPullRequest5PropLinksPropReviewComments, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropSelf as WebhooksPullRequest5PropLinksPropSelf, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropStatuses as WebhooksPullRequest5PropLinksPropStatuses, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropMergedBy as WebhooksPullRequest5PropMergedBy, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropMilestone as WebhooksPullRequest5PropMilestone, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropMilestonePropCreator as WebhooksPullRequest5PropMilestonePropCreator, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0 as WebhooksPullRequest5PropRequestedReviewersItemsOneof0, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1 as WebhooksPullRequest5PropRequestedReviewersItemsOneof1, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropRequestedTeamsItems as WebhooksPullRequest5PropRequestedTeamsItems, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParent as WebhooksPullRequest5PropRequestedTeamsItemsPropParent, ) - from .group_0433 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser - from .group_0434 import WebhooksReviewComment as WebhooksReviewComment - from .group_0434 import ( + from .group_0439 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser + from .group_0440 import WebhooksReviewComment as WebhooksReviewComment + from .group_0440 import ( WebhooksReviewCommentPropLinks as WebhooksReviewCommentPropLinks, ) - from .group_0434 import ( + from .group_0440 import ( WebhooksReviewCommentPropLinksPropHtml as WebhooksReviewCommentPropLinksPropHtml, ) - from .group_0434 import ( + from .group_0440 import ( WebhooksReviewCommentPropLinksPropPullRequest as WebhooksReviewCommentPropLinksPropPullRequest, ) - from .group_0434 import ( + from .group_0440 import ( WebhooksReviewCommentPropLinksPropSelf as WebhooksReviewCommentPropLinksPropSelf, ) - from .group_0434 import ( + from .group_0440 import ( WebhooksReviewCommentPropReactions as WebhooksReviewCommentPropReactions, ) - from .group_0434 import ( + from .group_0440 import ( WebhooksReviewCommentPropUser as WebhooksReviewCommentPropUser, ) - from .group_0435 import WebhooksReview as WebhooksReview - from .group_0435 import WebhooksReviewPropLinks as WebhooksReviewPropLinks - from .group_0435 import ( + from .group_0441 import WebhooksReview as WebhooksReview + from .group_0441 import WebhooksReviewPropLinks as WebhooksReviewPropLinks + from .group_0441 import ( WebhooksReviewPropLinksPropHtml as WebhooksReviewPropLinksPropHtml, ) - from .group_0435 import ( + from .group_0441 import ( WebhooksReviewPropLinksPropPullRequest as WebhooksReviewPropLinksPropPullRequest, ) - from .group_0435 import WebhooksReviewPropUser as WebhooksReviewPropUser - from .group_0436 import WebhooksRelease as WebhooksRelease - from .group_0436 import ( + from .group_0441 import WebhooksReviewPropUser as WebhooksReviewPropUser + from .group_0442 import WebhooksRelease as WebhooksRelease + from .group_0442 import ( WebhooksReleasePropAssetsItems as WebhooksReleasePropAssetsItems, ) - from .group_0436 import ( + from .group_0442 import ( WebhooksReleasePropAssetsItemsPropUploader as WebhooksReleasePropAssetsItemsPropUploader, ) - from .group_0436 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor - from .group_0436 import WebhooksReleasePropReactions as WebhooksReleasePropReactions - from .group_0437 import WebhooksRelease1 as WebhooksRelease1 - from .group_0437 import ( + from .group_0442 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor + from .group_0442 import WebhooksReleasePropReactions as WebhooksReleasePropReactions + from .group_0443 import WebhooksRelease1 as WebhooksRelease1 + from .group_0443 import ( WebhooksRelease1PropAssetsItems as WebhooksRelease1PropAssetsItems, ) - from .group_0437 import ( + from .group_0443 import ( WebhooksRelease1PropAssetsItemsPropUploader as WebhooksRelease1PropAssetsItemsPropUploader, ) - from .group_0437 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor - from .group_0437 import ( + from .group_0443 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor + from .group_0443 import ( WebhooksRelease1PropReactions as WebhooksRelease1PropReactions, ) - from .group_0438 import WebhooksAlert as WebhooksAlert - from .group_0438 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser - from .group_0439 import SecretScanningAlertWebhook as SecretScanningAlertWebhook - from .group_0440 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory - from .group_0440 import ( + from .group_0444 import WebhooksAlert as WebhooksAlert + from .group_0444 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser + from .group_0445 import SecretScanningAlertWebhook as SecretScanningAlertWebhook + from .group_0446 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory + from .group_0446 import ( WebhooksSecurityAdvisoryPropCvss as WebhooksSecurityAdvisoryPropCvss, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropCwesItems as WebhooksSecurityAdvisoryPropCwesItems, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropIdentifiersItems as WebhooksSecurityAdvisoryPropIdentifiersItems, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropReferencesItems as WebhooksSecurityAdvisoryPropReferencesItems, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItems as WebhooksSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0441 import WebhooksSponsorship as WebhooksSponsorship - from .group_0441 import ( + from .group_0447 import WebhooksSponsorship as WebhooksSponsorship + from .group_0447 import ( WebhooksSponsorshipPropMaintainer as WebhooksSponsorshipPropMaintainer, ) - from .group_0441 import ( + from .group_0447 import ( WebhooksSponsorshipPropSponsor as WebhooksSponsorshipPropSponsor, ) - from .group_0441 import ( + from .group_0447 import ( WebhooksSponsorshipPropSponsorable as WebhooksSponsorshipPropSponsorable, ) - from .group_0441 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier - from .group_0442 import WebhooksChanges8 as WebhooksChanges8 - from .group_0442 import WebhooksChanges8PropTier as WebhooksChanges8PropTier - from .group_0442 import ( + from .group_0447 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier + from .group_0448 import WebhooksChanges8 as WebhooksChanges8 + from .group_0448 import WebhooksChanges8PropTier as WebhooksChanges8PropTier + from .group_0448 import ( WebhooksChanges8PropTierPropFrom as WebhooksChanges8PropTierPropFrom, ) - from .group_0443 import WebhooksTeam1 as WebhooksTeam1 - from .group_0443 import WebhooksTeam1PropParent as WebhooksTeam1PropParent - from .group_0444 import ( + from .group_0449 import WebhooksTeam1 as WebhooksTeam1 + from .group_0449 import WebhooksTeam1PropParent as WebhooksTeam1PropParent + from .group_0450 import ( WebhookBranchProtectionConfigurationDisabled as WebhookBranchProtectionConfigurationDisabled, ) - from .group_0445 import ( + from .group_0451 import ( WebhookBranchProtectionConfigurationEnabled as WebhookBranchProtectionConfigurationEnabled, ) - from .group_0446 import ( + from .group_0452 import ( WebhookBranchProtectionRuleCreated as WebhookBranchProtectionRuleCreated, ) - from .group_0447 import ( + from .group_0453 import ( WebhookBranchProtectionRuleDeleted as WebhookBranchProtectionRuleDeleted, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEdited as WebhookBranchProtectionRuleEdited, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChanges as WebhookBranchProtectionRuleEditedPropChanges, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval, ) - from .group_0449 import WebhookCheckRunCompleted as WebhookCheckRunCompleted - from .group_0450 import ( + from .group_0455 import WebhookCheckRunCompleted as WebhookCheckRunCompleted + from .group_0456 import ( WebhookCheckRunCompletedFormEncoded as WebhookCheckRunCompletedFormEncoded, ) - from .group_0451 import WebhookCheckRunCreated as WebhookCheckRunCreated - from .group_0452 import ( + from .group_0457 import WebhookCheckRunCreated as WebhookCheckRunCreated + from .group_0458 import ( WebhookCheckRunCreatedFormEncoded as WebhookCheckRunCreatedFormEncoded, ) - from .group_0453 import ( + from .group_0459 import ( WebhookCheckRunRequestedAction as WebhookCheckRunRequestedAction, ) - from .group_0453 import ( + from .group_0459 import ( WebhookCheckRunRequestedActionPropRequestedAction as WebhookCheckRunRequestedActionPropRequestedAction, ) - from .group_0454 import ( + from .group_0460 import ( WebhookCheckRunRequestedActionFormEncoded as WebhookCheckRunRequestedActionFormEncoded, ) - from .group_0455 import WebhookCheckRunRerequested as WebhookCheckRunRerequested - from .group_0456 import ( + from .group_0461 import WebhookCheckRunRerequested as WebhookCheckRunRerequested + from .group_0462 import ( WebhookCheckRunRerequestedFormEncoded as WebhookCheckRunRerequestedFormEncoded, ) - from .group_0457 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted - from .group_0457 import ( + from .group_0463 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuite as WebhookCheckSuiteCompletedPropCheckSuite, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropApp as WebhookCheckSuiteCompletedPropCheckSuitePropApp, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0458 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested - from .group_0458 import ( + from .group_0464 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuite as WebhookCheckSuiteRequestedPropCheckSuite, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropApp as WebhookCheckSuiteRequestedPropCheckSuitePropApp, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0459 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested - from .group_0459 import ( + from .group_0465 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropApp as WebhookCheckSuiteRerequestedPropCheckSuitePropApp, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranch as WebhookCodeScanningAlertAppearedInBranch, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlert as WebhookCodeScanningAlertAppearedInBranchPropAlert, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool as WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUser as WebhookCodeScanningAlertClosedByUser, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlert as WebhookCodeScanningAlertClosedByUserPropAlert, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRule as WebhookCodeScanningAlertClosedByUserPropAlertPropRule, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropTool as WebhookCodeScanningAlertClosedByUserPropAlertPropTool, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreated as WebhookCodeScanningAlertCreated, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedPropAlert as WebhookCodeScanningAlertCreatedPropAlert, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedPropAlertPropRule as WebhookCodeScanningAlertCreatedPropAlertPropRule, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedPropAlertPropTool as WebhookCodeScanningAlertCreatedPropAlertPropTool, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixed as WebhookCodeScanningAlertFixed, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlert as WebhookCodeScanningAlertFixedPropAlert, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedBy as WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertPropRule as WebhookCodeScanningAlertFixedPropAlertPropRule, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertPropTool as WebhookCodeScanningAlertFixedPropAlertPropTool, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopened as WebhookCodeScanningAlertReopened, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlert as WebhookCodeScanningAlertReopenedPropAlert, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy as WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertPropRule as WebhookCodeScanningAlertReopenedPropAlertPropRule, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertPropTool as WebhookCodeScanningAlertReopenedPropAlertPropTool, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUser as WebhookCodeScanningAlertReopenedByUser, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserPropAlert as WebhookCodeScanningAlertReopenedByUserPropAlert, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRule as WebhookCodeScanningAlertReopenedByUserPropAlertPropRule, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropTool as WebhookCodeScanningAlertReopenedByUserPropAlertPropTool, ) - from .group_0466 import WebhookCommitCommentCreated as WebhookCommitCommentCreated - from .group_0466 import ( + from .group_0472 import WebhookCommitCommentCreated as WebhookCommitCommentCreated + from .group_0472 import ( WebhookCommitCommentCreatedPropComment as WebhookCommitCommentCreatedPropComment, ) - from .group_0466 import ( + from .group_0472 import ( WebhookCommitCommentCreatedPropCommentPropReactions as WebhookCommitCommentCreatedPropCommentPropReactions, ) - from .group_0466 import ( + from .group_0472 import ( WebhookCommitCommentCreatedPropCommentPropUser as WebhookCommitCommentCreatedPropCommentPropUser, ) - from .group_0467 import WebhookCreate as WebhookCreate - from .group_0468 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated - from .group_0469 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted - from .group_0469 import ( + from .group_0473 import WebhookCreate as WebhookCreate + from .group_0474 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated + from .group_0475 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted + from .group_0475 import ( WebhookCustomPropertyDeletedPropDefinition as WebhookCustomPropertyDeletedPropDefinition, ) - from .group_0470 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated - from .group_0471 import ( + from .group_0476 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated + from .group_0477 import ( WebhookCustomPropertyValuesUpdated as WebhookCustomPropertyValuesUpdated, ) - from .group_0472 import WebhookDelete as WebhookDelete - from .group_0473 import ( + from .group_0478 import WebhookDelete as WebhookDelete + from .group_0479 import ( WebhookDependabotAlertAutoDismissed as WebhookDependabotAlertAutoDismissed, ) - from .group_0474 import ( + from .group_0480 import ( WebhookDependabotAlertAutoReopened as WebhookDependabotAlertAutoReopened, ) - from .group_0475 import ( + from .group_0481 import ( WebhookDependabotAlertCreated as WebhookDependabotAlertCreated, ) - from .group_0476 import ( + from .group_0482 import ( WebhookDependabotAlertDismissed as WebhookDependabotAlertDismissed, ) - from .group_0477 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed - from .group_0478 import ( + from .group_0483 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed + from .group_0484 import ( WebhookDependabotAlertReintroduced as WebhookDependabotAlertReintroduced, ) - from .group_0479 import ( + from .group_0485 import ( WebhookDependabotAlertReopened as WebhookDependabotAlertReopened, ) - from .group_0480 import WebhookDeployKeyCreated as WebhookDeployKeyCreated - from .group_0481 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted - from .group_0482 import WebhookDeploymentCreated as WebhookDeploymentCreated - from .group_0482 import ( + from .group_0486 import WebhookDeployKeyCreated as WebhookDeployKeyCreated + from .group_0487 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted + from .group_0488 import WebhookDeploymentCreated as WebhookDeploymentCreated + from .group_0488 import ( WebhookDeploymentCreatedPropDeployment as WebhookDeploymentCreatedPropDeployment, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropDeploymentPropCreator as WebhookDeploymentCreatedPropDeploymentPropCreator, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRun as WebhookDeploymentCreatedPropWorkflowRun, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropActor as WebhookDeploymentCreatedPropWorkflowRunPropActor, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepository as WebhookDeploymentCreatedPropWorkflowRunPropRepository, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0483 import ( + from .group_0489 import ( WebhookDeploymentProtectionRuleRequested as WebhookDeploymentProtectionRuleRequested, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApproved as WebhookDeploymentReviewApproved, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRun as WebhookDeploymentReviewApprovedPropWorkflowRun, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejected as WebhookDeploymentReviewRejected, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRun as WebhookDeploymentReviewRejectedPropWorkflowRun, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequested as WebhookDeploymentReviewRequested, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropReviewersItems as WebhookDeploymentReviewRequestedPropReviewersItems, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRun as WebhookDeploymentReviewRequestedPropWorkflowJobRun, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRun as WebhookDeploymentReviewRequestedPropWorkflowRun, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreated as WebhookDeploymentStatusCreated, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropCheckRun as WebhookDeploymentStatusCreatedPropCheckRun, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeployment as WebhookDeploymentStatusCreatedPropDeployment, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreator as WebhookDeploymentStatusCreatedPropDeploymentPropCreator, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentStatus as WebhookDeploymentStatusCreatedPropDeploymentStatus, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRun as WebhookDeploymentStatusCreatedPropWorkflowRun, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0488 import WebhookDiscussionAnswered as WebhookDiscussionAnswered - from .group_0489 import ( + from .group_0494 import WebhookDiscussionAnswered as WebhookDiscussionAnswered + from .group_0495 import ( WebhookDiscussionCategoryChanged as WebhookDiscussionCategoryChanged, ) - from .group_0489 import ( + from .group_0495 import ( WebhookDiscussionCategoryChangedPropChanges as WebhookDiscussionCategoryChangedPropChanges, ) - from .group_0489 import ( + from .group_0495 import ( WebhookDiscussionCategoryChangedPropChangesPropCategory as WebhookDiscussionCategoryChangedPropChangesPropCategory, ) - from .group_0489 import ( + from .group_0495 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom, ) - from .group_0490 import WebhookDiscussionClosed as WebhookDiscussionClosed - from .group_0491 import ( + from .group_0496 import WebhookDiscussionClosed as WebhookDiscussionClosed + from .group_0497 import ( WebhookDiscussionCommentCreated as WebhookDiscussionCommentCreated, ) - from .group_0492 import ( + from .group_0498 import ( WebhookDiscussionCommentDeleted as WebhookDiscussionCommentDeleted, ) - from .group_0493 import ( + from .group_0499 import ( WebhookDiscussionCommentEdited as WebhookDiscussionCommentEdited, ) - from .group_0493 import ( + from .group_0499 import ( WebhookDiscussionCommentEditedPropChanges as WebhookDiscussionCommentEditedPropChanges, ) - from .group_0493 import ( + from .group_0499 import ( WebhookDiscussionCommentEditedPropChangesPropBody as WebhookDiscussionCommentEditedPropChangesPropBody, ) - from .group_0494 import WebhookDiscussionCreated as WebhookDiscussionCreated - from .group_0495 import WebhookDiscussionDeleted as WebhookDiscussionDeleted - from .group_0496 import WebhookDiscussionEdited as WebhookDiscussionEdited - from .group_0496 import ( + from .group_0500 import WebhookDiscussionCreated as WebhookDiscussionCreated + from .group_0501 import WebhookDiscussionDeleted as WebhookDiscussionDeleted + from .group_0502 import WebhookDiscussionEdited as WebhookDiscussionEdited + from .group_0502 import ( WebhookDiscussionEditedPropChanges as WebhookDiscussionEditedPropChanges, ) - from .group_0496 import ( + from .group_0502 import ( WebhookDiscussionEditedPropChangesPropBody as WebhookDiscussionEditedPropChangesPropBody, ) - from .group_0496 import ( + from .group_0502 import ( WebhookDiscussionEditedPropChangesPropTitle as WebhookDiscussionEditedPropChangesPropTitle, ) - from .group_0497 import WebhookDiscussionLabeled as WebhookDiscussionLabeled - from .group_0498 import WebhookDiscussionLocked as WebhookDiscussionLocked - from .group_0499 import WebhookDiscussionPinned as WebhookDiscussionPinned - from .group_0500 import WebhookDiscussionReopened as WebhookDiscussionReopened - from .group_0501 import WebhookDiscussionTransferred as WebhookDiscussionTransferred - from .group_0502 import ( + from .group_0503 import WebhookDiscussionLabeled as WebhookDiscussionLabeled + from .group_0504 import WebhookDiscussionLocked as WebhookDiscussionLocked + from .group_0505 import WebhookDiscussionPinned as WebhookDiscussionPinned + from .group_0506 import WebhookDiscussionReopened as WebhookDiscussionReopened + from .group_0507 import WebhookDiscussionTransferred as WebhookDiscussionTransferred + from .group_0508 import ( WebhookDiscussionTransferredPropChanges as WebhookDiscussionTransferredPropChanges, ) - from .group_0503 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered - from .group_0504 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled - from .group_0505 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked - from .group_0506 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned - from .group_0507 import WebhookFork as WebhookFork - from .group_0508 import WebhookForkPropForkee as WebhookForkPropForkee - from .group_0508 import ( + from .group_0509 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered + from .group_0510 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled + from .group_0511 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked + from .group_0512 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned + from .group_0513 import WebhookFork as WebhookFork + from .group_0514 import WebhookForkPropForkee as WebhookForkPropForkee + from .group_0514 import ( WebhookForkPropForkeeMergedLicense as WebhookForkPropForkeeMergedLicense, ) - from .group_0508 import ( + from .group_0514 import ( WebhookForkPropForkeeMergedOwner as WebhookForkPropForkeeMergedOwner, ) - from .group_0509 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 - from .group_0509 import ( + from .group_0515 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 + from .group_0515 import ( WebhookForkPropForkeeAllof0PropLicense as WebhookForkPropForkeeAllof0PropLicense, ) - from .group_0509 import ( + from .group_0515 import ( WebhookForkPropForkeeAllof0PropOwner as WebhookForkPropForkeeAllof0PropOwner, ) - from .group_0510 import ( + from .group_0516 import ( WebhookForkPropForkeeAllof0PropPermissions as WebhookForkPropForkeeAllof0PropPermissions, ) - from .group_0511 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 - from .group_0511 import ( + from .group_0517 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 + from .group_0517 import ( WebhookForkPropForkeeAllof1PropLicense as WebhookForkPropForkeeAllof1PropLicense, ) - from .group_0511 import ( + from .group_0517 import ( WebhookForkPropForkeeAllof1PropOwner as WebhookForkPropForkeeAllof1PropOwner, ) - from .group_0512 import ( + from .group_0518 import ( WebhookGithubAppAuthorizationRevoked as WebhookGithubAppAuthorizationRevoked, ) - from .group_0513 import WebhookGollum as WebhookGollum - from .group_0513 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems - from .group_0514 import WebhookInstallationCreated as WebhookInstallationCreated - from .group_0515 import WebhookInstallationDeleted as WebhookInstallationDeleted - from .group_0516 import ( + from .group_0519 import WebhookGollum as WebhookGollum + from .group_0519 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems + from .group_0520 import WebhookInstallationCreated as WebhookInstallationCreated + from .group_0521 import WebhookInstallationDeleted as WebhookInstallationDeleted + from .group_0522 import ( WebhookInstallationNewPermissionsAccepted as WebhookInstallationNewPermissionsAccepted, ) - from .group_0517 import ( + from .group_0523 import ( WebhookInstallationRepositoriesAdded as WebhookInstallationRepositoriesAdded, ) - from .group_0517 import ( + from .group_0523 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems, ) - from .group_0518 import ( + from .group_0524 import ( WebhookInstallationRepositoriesRemoved as WebhookInstallationRepositoriesRemoved, ) - from .group_0518 import ( + from .group_0524 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems, ) - from .group_0519 import WebhookInstallationSuspend as WebhookInstallationSuspend - from .group_0520 import ( + from .group_0525 import WebhookInstallationSuspend as WebhookInstallationSuspend + from .group_0526 import ( WebhookInstallationTargetRenamed as WebhookInstallationTargetRenamed, ) - from .group_0520 import ( + from .group_0526 import ( WebhookInstallationTargetRenamedPropAccount as WebhookInstallationTargetRenamedPropAccount, ) - from .group_0520 import ( + from .group_0526 import ( WebhookInstallationTargetRenamedPropChanges as WebhookInstallationTargetRenamedPropChanges, ) - from .group_0520 import ( + from .group_0526 import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) - from .group_0520 import ( + from .group_0526 import ( WebhookInstallationTargetRenamedPropChangesPropSlug as WebhookInstallationTargetRenamedPropChangesPropSlug, ) - from .group_0521 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend - from .group_0522 import WebhookIssueCommentCreated as WebhookIssueCommentCreated - from .group_0523 import ( + from .group_0527 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend + from .group_0528 import WebhookIssueCommentCreated as WebhookIssueCommentCreated + from .group_0529 import ( WebhookIssueCommentCreatedPropComment as WebhookIssueCommentCreatedPropComment, ) - from .group_0523 import ( + from .group_0529 import ( WebhookIssueCommentCreatedPropCommentPropReactions as WebhookIssueCommentCreatedPropCommentPropReactions, ) - from .group_0523 import ( + from .group_0529 import ( WebhookIssueCommentCreatedPropCommentPropUser as WebhookIssueCommentCreatedPropCommentPropUser, ) - from .group_0524 import ( + from .group_0530 import ( WebhookIssueCommentCreatedPropIssue as WebhookIssueCommentCreatedPropIssue, ) - from .group_0524 import ( + from .group_0530 import ( WebhookIssueCommentCreatedPropIssueMergedAssignees as WebhookIssueCommentCreatedPropIssueMergedAssignees, ) - from .group_0524 import ( + from .group_0530 import ( WebhookIssueCommentCreatedPropIssueMergedReactions as WebhookIssueCommentCreatedPropIssueMergedReactions, ) - from .group_0524 import ( + from .group_0530 import ( WebhookIssueCommentCreatedPropIssueMergedUser as WebhookIssueCommentCreatedPropIssueMergedUser, ) - from .group_0525 import ( + from .group_0531 import ( WebhookIssueCommentCreatedPropIssueAllof0 as WebhookIssueCommentCreatedPropIssueAllof0, ) - from .group_0525 import ( + from .group_0531 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, ) - from .group_0525 import ( + from .group_0531 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactions as WebhookIssueCommentCreatedPropIssueAllof0PropReactions, ) - from .group_0525 import ( + from .group_0531 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUser as WebhookIssueCommentCreatedPropIssueAllof0PropUser, ) - from .group_0526 import ( + from .group_0532 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssignee as WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, ) - from .group_0526 import ( + from .group_0532 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, ) - from .group_0526 import ( + from .group_0532 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0528 import ( + from .group_0534 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestone as WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, ) - from .group_0529 import ( + from .group_0535 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0529 import ( + from .group_0535 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0530 import ( + from .group_0536 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0531 import ( + from .group_0537 import ( WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1 as WebhookIssueCommentCreatedPropIssueAllof1, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssignee as WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestone as WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactions as WebhookIssueCommentCreatedPropIssueAllof1PropReactions, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUser as WebhookIssueCommentCreatedPropIssueAllof1PropUser, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssueCommentCreatedPropIssueMergedMilestone as WebhookIssueCommentCreatedPropIssueMergedMilestone, ) - from .group_0534 import ( + from .group_0540 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, ) - from .group_0535 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted - from .group_0536 import ( + from .group_0541 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted + from .group_0542 import ( WebhookIssueCommentDeletedPropIssue as WebhookIssueCommentDeletedPropIssue, ) - from .group_0536 import ( + from .group_0542 import ( WebhookIssueCommentDeletedPropIssueMergedAssignees as WebhookIssueCommentDeletedPropIssueMergedAssignees, ) - from .group_0536 import ( + from .group_0542 import ( WebhookIssueCommentDeletedPropIssueMergedReactions as WebhookIssueCommentDeletedPropIssueMergedReactions, ) - from .group_0536 import ( + from .group_0542 import ( WebhookIssueCommentDeletedPropIssueMergedUser as WebhookIssueCommentDeletedPropIssueMergedUser, ) - from .group_0537 import ( + from .group_0543 import ( WebhookIssueCommentDeletedPropIssueAllof0 as WebhookIssueCommentDeletedPropIssueAllof0, ) - from .group_0537 import ( + from .group_0543 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, ) - from .group_0537 import ( + from .group_0543 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactions as WebhookIssueCommentDeletedPropIssueAllof0PropReactions, ) - from .group_0537 import ( + from .group_0543 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUser as WebhookIssueCommentDeletedPropIssueAllof0PropUser, ) - from .group_0538 import ( + from .group_0544 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee as WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, ) - from .group_0538 import ( + from .group_0544 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, ) - from .group_0538 import ( + from .group_0544 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0540 import ( + from .group_0546 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestone as WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, ) - from .group_0541 import ( + from .group_0547 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0541 import ( + from .group_0547 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1 as WebhookIssueCommentDeletedPropIssueAllof1, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssignee as WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestone as WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactions as WebhookIssueCommentDeletedPropIssueAllof1PropReactions, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUser as WebhookIssueCommentDeletedPropIssueAllof1PropUser, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssueCommentDeletedPropIssueMergedMilestone as WebhookIssueCommentDeletedPropIssueMergedMilestone, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, ) - from .group_0547 import WebhookIssueCommentEdited as WebhookIssueCommentEdited - from .group_0548 import ( + from .group_0553 import WebhookIssueCommentEdited as WebhookIssueCommentEdited + from .group_0554 import ( WebhookIssueCommentEditedPropIssue as WebhookIssueCommentEditedPropIssue, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssueCommentEditedPropIssueMergedAssignees as WebhookIssueCommentEditedPropIssueMergedAssignees, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssueCommentEditedPropIssueMergedReactions as WebhookIssueCommentEditedPropIssueMergedReactions, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssueCommentEditedPropIssueMergedUser as WebhookIssueCommentEditedPropIssueMergedUser, ) - from .group_0549 import ( + from .group_0555 import ( WebhookIssueCommentEditedPropIssueAllof0 as WebhookIssueCommentEditedPropIssueAllof0, ) - from .group_0549 import ( + from .group_0555 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, ) - from .group_0549 import ( + from .group_0555 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactions as WebhookIssueCommentEditedPropIssueAllof0PropReactions, ) - from .group_0549 import ( + from .group_0555 import ( WebhookIssueCommentEditedPropIssueAllof0PropUser as WebhookIssueCommentEditedPropIssueAllof0PropUser, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee as WebhookIssueCommentEditedPropIssueAllof0PropAssignee, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequest as WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0552 import ( + from .group_0558 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestone as WebhookIssueCommentEditedPropIssueAllof0PropMilestone, ) - from .group_0553 import ( + from .group_0559 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0553 import ( + from .group_0559 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0555 import ( + from .group_0561 import ( WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1 as WebhookIssueCommentEditedPropIssueAllof1, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssignee as WebhookIssueCommentEditedPropIssueAllof1PropAssignee, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestone as WebhookIssueCommentEditedPropIssueAllof1PropMilestone, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactions as WebhookIssueCommentEditedPropIssueAllof1PropReactions, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropUser as WebhookIssueCommentEditedPropIssueAllof1PropUser, ) - from .group_0557 import ( + from .group_0563 import ( WebhookIssueCommentEditedPropIssueMergedMilestone as WebhookIssueCommentEditedPropIssueMergedMilestone, ) - from .group_0558 import ( + from .group_0564 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, ) - from .group_0559 import WebhookIssuesAssigned as WebhookIssuesAssigned - from .group_0560 import WebhookIssuesClosed as WebhookIssuesClosed - from .group_0561 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue - from .group_0561 import ( + from .group_0565 import WebhookIssuesAssigned as WebhookIssuesAssigned + from .group_0566 import WebhookIssuesClosed as WebhookIssuesClosed + from .group_0567 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue + from .group_0567 import ( WebhookIssuesClosedPropIssueMergedAssignee as WebhookIssuesClosedPropIssueMergedAssignee, ) - from .group_0561 import ( + from .group_0567 import ( WebhookIssuesClosedPropIssueMergedAssignees as WebhookIssuesClosedPropIssueMergedAssignees, ) - from .group_0561 import ( + from .group_0567 import ( WebhookIssuesClosedPropIssueMergedLabels as WebhookIssuesClosedPropIssueMergedLabels, ) - from .group_0561 import ( + from .group_0567 import ( WebhookIssuesClosedPropIssueMergedReactions as WebhookIssuesClosedPropIssueMergedReactions, ) - from .group_0561 import ( + from .group_0567 import ( WebhookIssuesClosedPropIssueMergedUser as WebhookIssuesClosedPropIssueMergedUser, ) - from .group_0562 import ( + from .group_0568 import ( WebhookIssuesClosedPropIssueAllof0 as WebhookIssuesClosedPropIssueAllof0, ) - from .group_0562 import ( + from .group_0568 import ( WebhookIssuesClosedPropIssueAllof0PropAssignee as WebhookIssuesClosedPropIssueAllof0PropAssignee, ) - from .group_0562 import ( + from .group_0568 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItems as WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, ) - from .group_0562 import ( + from .group_0568 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItems as WebhookIssuesClosedPropIssueAllof0PropLabelsItems, ) - from .group_0562 import ( + from .group_0568 import ( WebhookIssuesClosedPropIssueAllof0PropReactions as WebhookIssuesClosedPropIssueAllof0PropReactions, ) - from .group_0562 import ( + from .group_0568 import ( WebhookIssuesClosedPropIssueAllof0PropUser as WebhookIssuesClosedPropIssueAllof0PropUser, ) - from .group_0563 import ( + from .group_0569 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0564 import ( + from .group_0570 import ( WebhookIssuesClosedPropIssueAllof0PropMilestone as WebhookIssuesClosedPropIssueAllof0PropMilestone, ) - from .group_0565 import ( + from .group_0571 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0565 import ( + from .group_0571 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0566 import ( + from .group_0572 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0567 import ( + from .group_0573 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequest as WebhookIssuesClosedPropIssueAllof0PropPullRequest, ) - from .group_0567 import ( + from .group_0573 import ( WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1 as WebhookIssuesClosedPropIssueAllof1, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropAssignee as WebhookIssuesClosedPropIssueAllof1PropAssignee, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItems as WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItems as WebhookIssuesClosedPropIssueAllof1PropLabelsItems, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropMilestone as WebhookIssuesClosedPropIssueAllof1PropMilestone, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropReactions as WebhookIssuesClosedPropIssueAllof1PropReactions, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropUser as WebhookIssuesClosedPropIssueAllof1PropUser, ) - from .group_0569 import ( + from .group_0575 import ( WebhookIssuesClosedPropIssueMergedMilestone as WebhookIssuesClosedPropIssueMergedMilestone, ) - from .group_0570 import ( + from .group_0576 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp as WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, ) - from .group_0571 import WebhookIssuesDeleted as WebhookIssuesDeleted - from .group_0571 import ( + from .group_0577 import WebhookIssuesDeleted as WebhookIssuesDeleted + from .group_0577 import ( WebhookIssuesDeletedPropIssue as WebhookIssuesDeletedPropIssue, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropAssignee as WebhookIssuesDeletedPropIssuePropAssignee, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropAssigneesItems as WebhookIssuesDeletedPropIssuePropAssigneesItems, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropLabelsItems as WebhookIssuesDeletedPropIssuePropLabelsItems, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropMilestone as WebhookIssuesDeletedPropIssuePropMilestone, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreator as WebhookIssuesDeletedPropIssuePropMilestonePropCreator, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp as WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropPullRequest as WebhookIssuesDeletedPropIssuePropPullRequest, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropSubIssuesSummary as WebhookIssuesDeletedPropIssuePropSubIssuesSummary, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropUser as WebhookIssuesDeletedPropIssuePropUser, ) - from .group_0572 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned - from .group_0572 import ( + from .group_0578 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned + from .group_0578 import ( WebhookIssuesDemilestonedPropIssue as WebhookIssuesDemilestonedPropIssue, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropAssignee as WebhookIssuesDemilestonedPropIssuePropAssignee, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItems as WebhookIssuesDemilestonedPropIssuePropAssigneesItems, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItems as WebhookIssuesDemilestonedPropIssuePropLabelsItems, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropMilestone as WebhookIssuesDemilestonedPropIssuePropMilestone, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropPullRequest as WebhookIssuesDemilestonedPropIssuePropPullRequest, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, ) - from .group_0573 import WebhookIssuesEdited as WebhookIssuesEdited - from .group_0573 import ( + from .group_0579 import WebhookIssuesEdited as WebhookIssuesEdited + from .group_0579 import ( WebhookIssuesEditedPropChanges as WebhookIssuesEditedPropChanges, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropChangesPropBody as WebhookIssuesEditedPropChangesPropBody, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropChangesPropTitle as WebhookIssuesEditedPropChangesPropTitle, ) - from .group_0573 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue - from .group_0573 import ( + from .group_0579 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue + from .group_0579 import ( WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropAssigneesItems as WebhookIssuesEditedPropIssuePropAssigneesItems, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropLabelsItems as WebhookIssuesEditedPropIssuePropLabelsItems, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropMilestone as WebhookIssuesEditedPropIssuePropMilestone, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreator as WebhookIssuesEditedPropIssuePropMilestonePropCreator, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubApp as WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropPullRequest as WebhookIssuesEditedPropIssuePropPullRequest, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropReactions as WebhookIssuesEditedPropIssuePropReactions, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropSubIssuesSummary as WebhookIssuesEditedPropIssuePropSubIssuesSummary, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) - from .group_0574 import WebhookIssuesLabeled as WebhookIssuesLabeled - from .group_0574 import ( + from .group_0580 import WebhookIssuesLabeled as WebhookIssuesLabeled + from .group_0580 import ( WebhookIssuesLabeledPropIssue as WebhookIssuesLabeledPropIssue, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropAssignee as WebhookIssuesLabeledPropIssuePropAssignee, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropLabelsItems as WebhookIssuesLabeledPropIssuePropLabelsItems, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreator as WebhookIssuesLabeledPropIssuePropMilestonePropCreator, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp as WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropPullRequest as WebhookIssuesLabeledPropIssuePropPullRequest, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropSubIssuesSummary as WebhookIssuesLabeledPropIssuePropSubIssuesSummary, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropUser as WebhookIssuesLabeledPropIssuePropUser, ) - from .group_0575 import WebhookIssuesLocked as WebhookIssuesLocked - from .group_0575 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue - from .group_0575 import ( + from .group_0581 import WebhookIssuesLocked as WebhookIssuesLocked + from .group_0581 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue + from .group_0581 import ( WebhookIssuesLockedPropIssuePropAssignee as WebhookIssuesLockedPropIssuePropAssignee, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropAssigneesItems as WebhookIssuesLockedPropIssuePropAssigneesItems, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropLabelsItems as WebhookIssuesLockedPropIssuePropLabelsItems, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropMilestone as WebhookIssuesLockedPropIssuePropMilestone, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreator as WebhookIssuesLockedPropIssuePropMilestonePropCreator, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubApp as WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropPullRequest as WebhookIssuesLockedPropIssuePropPullRequest, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropSubIssuesSummary as WebhookIssuesLockedPropIssuePropSubIssuesSummary, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, ) - from .group_0576 import WebhookIssuesMilestoned as WebhookIssuesMilestoned - from .group_0576 import ( + from .group_0582 import WebhookIssuesMilestoned as WebhookIssuesMilestoned + from .group_0582 import ( WebhookIssuesMilestonedPropIssue as WebhookIssuesMilestonedPropIssue, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropAssignee as WebhookIssuesMilestonedPropIssuePropAssignee, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItems as WebhookIssuesMilestonedPropIssuePropAssigneesItems, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropLabelsItems as WebhookIssuesMilestonedPropIssuePropLabelsItems, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropMilestone as WebhookIssuesMilestonedPropIssuePropMilestone, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreator as WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropPullRequest as WebhookIssuesMilestonedPropIssuePropPullRequest, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropSubIssuesSummary as WebhookIssuesMilestonedPropIssuePropSubIssuesSummary, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, ) - from .group_0577 import WebhookIssuesOpened as WebhookIssuesOpened - from .group_0577 import ( + from .group_0583 import WebhookIssuesOpened as WebhookIssuesOpened + from .group_0583 import ( WebhookIssuesOpenedPropChanges as WebhookIssuesOpenedPropChanges, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssue as WebhookIssuesOpenedPropChangesPropOldIssue, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee as WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldRepository as WebhookIssuesOpenedPropChangesPropOldRepository, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions, ) - from .group_0577 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue - from .group_0577 import ( + from .group_0583 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropAssignee as WebhookIssuesOpenedPropIssuePropAssignee, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropAssigneesItems as WebhookIssuesOpenedPropIssuePropAssigneesItems, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropLabelsItems as WebhookIssuesOpenedPropIssuePropLabelsItems, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropMilestone as WebhookIssuesOpenedPropIssuePropMilestone, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreator as WebhookIssuesOpenedPropIssuePropMilestonePropCreator, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropPullRequest as WebhookIssuesOpenedPropIssuePropPullRequest, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropReactions as WebhookIssuesOpenedPropIssuePropReactions, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropSubIssuesSummary as WebhookIssuesOpenedPropIssuePropSubIssuesSummary, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropUser as WebhookIssuesOpenedPropIssuePropUser, ) - from .group_0578 import WebhookIssuesPinned as WebhookIssuesPinned - from .group_0579 import WebhookIssuesReopened as WebhookIssuesReopened - from .group_0579 import ( + from .group_0584 import WebhookIssuesPinned as WebhookIssuesPinned + from .group_0585 import WebhookIssuesReopened as WebhookIssuesReopened + from .group_0585 import ( WebhookIssuesReopenedPropIssue as WebhookIssuesReopenedPropIssue, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropAssignee as WebhookIssuesReopenedPropIssuePropAssignee, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropAssigneesItems as WebhookIssuesReopenedPropIssuePropAssigneesItems, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropLabelsItems as WebhookIssuesReopenedPropIssuePropLabelsItems, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropMilestone as WebhookIssuesReopenedPropIssuePropMilestone, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreator as WebhookIssuesReopenedPropIssuePropMilestonePropCreator, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp as WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropPullRequest as WebhookIssuesReopenedPropIssuePropPullRequest, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropSubIssuesSummary as WebhookIssuesReopenedPropIssuePropSubIssuesSummary, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) - from .group_0580 import WebhookIssuesTransferred as WebhookIssuesTransferred - from .group_0580 import ( + from .group_0586 import WebhookIssuesTransferred as WebhookIssuesTransferred + from .group_0586 import ( WebhookIssuesTransferredPropChanges as WebhookIssuesTransferredPropChanges, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssue as WebhookIssuesTransferredPropChangesPropNewIssue, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewRepository as WebhookIssuesTransferredPropChangesPropNewRepository, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions, ) - from .group_0581 import WebhookIssuesUnassigned as WebhookIssuesUnassigned - from .group_0582 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled - from .group_0583 import WebhookIssuesUnlocked as WebhookIssuesUnlocked - from .group_0583 import ( + from .group_0587 import WebhookIssuesUnassigned as WebhookIssuesUnassigned + from .group_0588 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled + from .group_0589 import WebhookIssuesUnlocked as WebhookIssuesUnlocked + from .group_0589 import ( WebhookIssuesUnlockedPropIssue as WebhookIssuesUnlockedPropIssue, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropAssignee as WebhookIssuesUnlockedPropIssuePropAssignee, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItems as WebhookIssuesUnlockedPropIssuePropAssigneesItems, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropLabelsItems as WebhookIssuesUnlockedPropIssuePropLabelsItems, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropMilestone as WebhookIssuesUnlockedPropIssuePropMilestone, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropPullRequest as WebhookIssuesUnlockedPropIssuePropPullRequest, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropSubIssuesSummary as WebhookIssuesUnlockedPropIssuePropSubIssuesSummary, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) - from .group_0584 import WebhookIssuesUnpinned as WebhookIssuesUnpinned - from .group_0585 import WebhookLabelCreated as WebhookLabelCreated - from .group_0586 import WebhookLabelDeleted as WebhookLabelDeleted - from .group_0587 import WebhookLabelEdited as WebhookLabelEdited - from .group_0587 import ( + from .group_0590 import WebhookIssuesUnpinned as WebhookIssuesUnpinned + from .group_0591 import WebhookLabelCreated as WebhookLabelCreated + from .group_0592 import WebhookLabelDeleted as WebhookLabelDeleted + from .group_0593 import WebhookLabelEdited as WebhookLabelEdited + from .group_0593 import ( WebhookLabelEditedPropChanges as WebhookLabelEditedPropChanges, ) - from .group_0587 import ( + from .group_0593 import ( WebhookLabelEditedPropChangesPropColor as WebhookLabelEditedPropChangesPropColor, ) - from .group_0587 import ( + from .group_0593 import ( WebhookLabelEditedPropChangesPropDescription as WebhookLabelEditedPropChangesPropDescription, ) - from .group_0587 import ( + from .group_0593 import ( WebhookLabelEditedPropChangesPropName as WebhookLabelEditedPropChangesPropName, ) - from .group_0588 import ( + from .group_0594 import ( WebhookMarketplacePurchaseCancelled as WebhookMarketplacePurchaseCancelled, ) - from .group_0589 import ( + from .group_0595 import ( WebhookMarketplacePurchaseChanged as WebhookMarketplacePurchaseChanged, ) - from .group_0589 import ( + from .group_0595 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase, ) - from .group_0589 import ( + from .group_0595 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount, ) - from .group_0589 import ( + from .group_0595 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan, ) - from .group_0590 import ( + from .group_0596 import ( WebhookMarketplacePurchasePendingChange as WebhookMarketplacePurchasePendingChange, ) - from .group_0590 import ( + from .group_0596 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase, ) - from .group_0590 import ( + from .group_0596 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount, ) - from .group_0590 import ( + from .group_0596 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan, ) - from .group_0591 import ( + from .group_0597 import ( WebhookMarketplacePurchasePendingChangeCancelled as WebhookMarketplacePurchasePendingChangeCancelled, ) - from .group_0591 import ( + from .group_0597 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, ) - from .group_0591 import ( + from .group_0597 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount, ) - from .group_0591 import ( + from .group_0597 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan, ) - from .group_0592 import ( + from .group_0598 import ( WebhookMarketplacePurchasePurchased as WebhookMarketplacePurchasePurchased, ) - from .group_0593 import WebhookMemberAdded as WebhookMemberAdded - from .group_0593 import ( + from .group_0599 import WebhookMemberAdded as WebhookMemberAdded + from .group_0599 import ( WebhookMemberAddedPropChanges as WebhookMemberAddedPropChanges, ) - from .group_0593 import ( + from .group_0599 import ( WebhookMemberAddedPropChangesPropPermission as WebhookMemberAddedPropChangesPropPermission, ) - from .group_0593 import ( + from .group_0599 import ( WebhookMemberAddedPropChangesPropRoleName as WebhookMemberAddedPropChangesPropRoleName, ) - from .group_0594 import WebhookMemberEdited as WebhookMemberEdited - from .group_0594 import ( + from .group_0600 import WebhookMemberEdited as WebhookMemberEdited + from .group_0600 import ( WebhookMemberEditedPropChanges as WebhookMemberEditedPropChanges, ) - from .group_0594 import ( + from .group_0600 import ( WebhookMemberEditedPropChangesPropOldPermission as WebhookMemberEditedPropChangesPropOldPermission, ) - from .group_0594 import ( + from .group_0600 import ( WebhookMemberEditedPropChangesPropPermission as WebhookMemberEditedPropChangesPropPermission, ) - from .group_0595 import WebhookMemberRemoved as WebhookMemberRemoved - from .group_0596 import WebhookMembershipAdded as WebhookMembershipAdded - from .group_0596 import ( + from .group_0601 import WebhookMemberRemoved as WebhookMemberRemoved + from .group_0602 import WebhookMembershipAdded as WebhookMembershipAdded + from .group_0602 import ( WebhookMembershipAddedPropSender as WebhookMembershipAddedPropSender, ) - from .group_0597 import WebhookMembershipRemoved as WebhookMembershipRemoved - from .group_0597 import ( + from .group_0603 import WebhookMembershipRemoved as WebhookMembershipRemoved + from .group_0603 import ( WebhookMembershipRemovedPropSender as WebhookMembershipRemovedPropSender, ) - from .group_0598 import ( + from .group_0604 import ( WebhookMergeGroupChecksRequested as WebhookMergeGroupChecksRequested, ) - from .group_0599 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed - from .group_0600 import WebhookMetaDeleted as WebhookMetaDeleted - from .group_0600 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook - from .group_0600 import ( + from .group_0605 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed + from .group_0606 import WebhookMetaDeleted as WebhookMetaDeleted + from .group_0606 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook + from .group_0606 import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) - from .group_0601 import WebhookMilestoneClosed as WebhookMilestoneClosed - from .group_0602 import WebhookMilestoneCreated as WebhookMilestoneCreated - from .group_0603 import WebhookMilestoneDeleted as WebhookMilestoneDeleted - from .group_0604 import WebhookMilestoneEdited as WebhookMilestoneEdited - from .group_0604 import ( + from .group_0607 import WebhookMilestoneClosed as WebhookMilestoneClosed + from .group_0608 import WebhookMilestoneCreated as WebhookMilestoneCreated + from .group_0609 import WebhookMilestoneDeleted as WebhookMilestoneDeleted + from .group_0610 import WebhookMilestoneEdited as WebhookMilestoneEdited + from .group_0610 import ( WebhookMilestoneEditedPropChanges as WebhookMilestoneEditedPropChanges, ) - from .group_0604 import ( + from .group_0610 import ( WebhookMilestoneEditedPropChangesPropDescription as WebhookMilestoneEditedPropChangesPropDescription, ) - from .group_0604 import ( + from .group_0610 import ( WebhookMilestoneEditedPropChangesPropDueOn as WebhookMilestoneEditedPropChangesPropDueOn, ) - from .group_0604 import ( + from .group_0610 import ( WebhookMilestoneEditedPropChangesPropTitle as WebhookMilestoneEditedPropChangesPropTitle, ) - from .group_0605 import WebhookMilestoneOpened as WebhookMilestoneOpened - from .group_0606 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked - from .group_0607 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked - from .group_0608 import WebhookOrganizationDeleted as WebhookOrganizationDeleted - from .group_0609 import ( + from .group_0611 import WebhookMilestoneOpened as WebhookMilestoneOpened + from .group_0612 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked + from .group_0613 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked + from .group_0614 import WebhookOrganizationDeleted as WebhookOrganizationDeleted + from .group_0615 import ( WebhookOrganizationMemberAdded as WebhookOrganizationMemberAdded, ) - from .group_0610 import ( + from .group_0616 import ( WebhookOrganizationMemberInvited as WebhookOrganizationMemberInvited, ) - from .group_0610 import ( + from .group_0616 import ( WebhookOrganizationMemberInvitedPropInvitation as WebhookOrganizationMemberInvitedPropInvitation, ) - from .group_0610 import ( + from .group_0616 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviter as WebhookOrganizationMemberInvitedPropInvitationPropInviter, ) - from .group_0611 import ( + from .group_0617 import ( WebhookOrganizationMemberRemoved as WebhookOrganizationMemberRemoved, ) - from .group_0612 import WebhookOrganizationRenamed as WebhookOrganizationRenamed - from .group_0612 import ( + from .group_0618 import WebhookOrganizationRenamed as WebhookOrganizationRenamed + from .group_0618 import ( WebhookOrganizationRenamedPropChanges as WebhookOrganizationRenamedPropChanges, ) - from .group_0612 import ( + from .group_0618 import ( WebhookOrganizationRenamedPropChangesPropLogin as WebhookOrganizationRenamedPropChangesPropLogin, ) - from .group_0613 import WebhookRubygemsMetadata as WebhookRubygemsMetadata - from .group_0613 import ( + from .group_0619 import WebhookRubygemsMetadata as WebhookRubygemsMetadata + from .group_0619 import ( WebhookRubygemsMetadataPropDependenciesItems as WebhookRubygemsMetadataPropDependenciesItems, ) - from .group_0613 import ( + from .group_0619 import ( WebhookRubygemsMetadataPropMetadata as WebhookRubygemsMetadataPropMetadata, ) - from .group_0613 import ( + from .group_0619 import ( WebhookRubygemsMetadataPropVersionInfo as WebhookRubygemsMetadataPropVersionInfo, ) - from .group_0614 import WebhookPackagePublished as WebhookPackagePublished - from .group_0615 import ( + from .group_0620 import WebhookPackagePublished as WebhookPackagePublished + from .group_0621 import ( WebhookPackagePublishedPropPackage as WebhookPackagePublishedPropPackage, ) - from .group_0615 import ( + from .group_0621 import ( WebhookPackagePublishedPropPackagePropOwner as WebhookPackagePublishedPropPackagePropOwner, ) - from .group_0615 import ( + from .group_0621 import ( WebhookPackagePublishedPropPackagePropRegistry as WebhookPackagePublishedPropPackagePropRegistry, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersion as WebhookPackagePublishedPropPackagePropPackageVersion, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1 as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropRelease as WebhookPackagePublishedPropPackagePropPackageVersionPropRelease, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0617 import WebhookPackageUpdated as WebhookPackageUpdated - from .group_0618 import ( + from .group_0623 import WebhookPackageUpdated as WebhookPackageUpdated + from .group_0624 import ( WebhookPackageUpdatedPropPackage as WebhookPackageUpdatedPropPackage, ) - from .group_0618 import ( + from .group_0624 import ( WebhookPackageUpdatedPropPackagePropOwner as WebhookPackageUpdatedPropPackagePropOwner, ) - from .group_0618 import ( + from .group_0624 import ( WebhookPackageUpdatedPropPackagePropRegistry as WebhookPackageUpdatedPropPackagePropRegistry, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersion as WebhookPackageUpdatedPropPackagePropPackageVersion, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease as WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0620 import WebhookPageBuild as WebhookPageBuild - from .group_0620 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild - from .group_0620 import ( + from .group_0626 import WebhookPageBuild as WebhookPageBuild + from .group_0626 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild + from .group_0626 import ( WebhookPageBuildPropBuildPropError as WebhookPageBuildPropBuildPropError, ) - from .group_0620 import ( + from .group_0626 import ( WebhookPageBuildPropBuildPropPusher as WebhookPageBuildPropBuildPropPusher, ) - from .group_0621 import ( + from .group_0627 import ( WebhookPersonalAccessTokenRequestApproved as WebhookPersonalAccessTokenRequestApproved, ) - from .group_0622 import ( + from .group_0628 import ( WebhookPersonalAccessTokenRequestCancelled as WebhookPersonalAccessTokenRequestCancelled, ) - from .group_0623 import ( + from .group_0629 import ( WebhookPersonalAccessTokenRequestCreated as WebhookPersonalAccessTokenRequestCreated, ) - from .group_0624 import ( + from .group_0630 import ( WebhookPersonalAccessTokenRequestDenied as WebhookPersonalAccessTokenRequestDenied, ) - from .group_0625 import WebhookPing as WebhookPing - from .group_0626 import WebhookPingPropHook as WebhookPingPropHook - from .group_0626 import ( + from .group_0631 import WebhookPing as WebhookPing + from .group_0632 import WebhookPingPropHook as WebhookPingPropHook + from .group_0632 import ( WebhookPingPropHookPropConfig as WebhookPingPropHookPropConfig, ) - from .group_0627 import WebhookPingFormEncoded as WebhookPingFormEncoded - from .group_0628 import WebhookProjectCardConverted as WebhookProjectCardConverted - from .group_0628 import ( + from .group_0633 import WebhookPingFormEncoded as WebhookPingFormEncoded + from .group_0634 import WebhookProjectCardConverted as WebhookProjectCardConverted + from .group_0634 import ( WebhookProjectCardConvertedPropChanges as WebhookProjectCardConvertedPropChanges, ) - from .group_0628 import ( + from .group_0634 import ( WebhookProjectCardConvertedPropChangesPropNote as WebhookProjectCardConvertedPropChangesPropNote, ) - from .group_0629 import WebhookProjectCardCreated as WebhookProjectCardCreated - from .group_0630 import WebhookProjectCardDeleted as WebhookProjectCardDeleted - from .group_0630 import ( + from .group_0635 import WebhookProjectCardCreated as WebhookProjectCardCreated + from .group_0636 import WebhookProjectCardDeleted as WebhookProjectCardDeleted + from .group_0636 import ( WebhookProjectCardDeletedPropProjectCard as WebhookProjectCardDeletedPropProjectCard, ) - from .group_0630 import ( + from .group_0636 import ( WebhookProjectCardDeletedPropProjectCardPropCreator as WebhookProjectCardDeletedPropProjectCardPropCreator, ) - from .group_0631 import WebhookProjectCardEdited as WebhookProjectCardEdited - from .group_0631 import ( + from .group_0637 import WebhookProjectCardEdited as WebhookProjectCardEdited + from .group_0637 import ( WebhookProjectCardEditedPropChanges as WebhookProjectCardEditedPropChanges, ) - from .group_0631 import ( + from .group_0637 import ( WebhookProjectCardEditedPropChangesPropNote as WebhookProjectCardEditedPropChangesPropNote, ) - from .group_0632 import WebhookProjectCardMoved as WebhookProjectCardMoved - from .group_0632 import ( + from .group_0638 import WebhookProjectCardMoved as WebhookProjectCardMoved + from .group_0638 import ( WebhookProjectCardMovedPropChanges as WebhookProjectCardMovedPropChanges, ) - from .group_0632 import ( + from .group_0638 import ( WebhookProjectCardMovedPropChangesPropColumnId as WebhookProjectCardMovedPropChangesPropColumnId, ) - from .group_0632 import ( + from .group_0638 import ( WebhookProjectCardMovedPropProjectCard as WebhookProjectCardMovedPropProjectCard, ) - from .group_0632 import ( + from .group_0638 import ( WebhookProjectCardMovedPropProjectCardMergedCreator as WebhookProjectCardMovedPropProjectCardMergedCreator, ) - from .group_0633 import ( + from .group_0639 import ( WebhookProjectCardMovedPropProjectCardAllof0 as WebhookProjectCardMovedPropProjectCardAllof0, ) - from .group_0633 import ( + from .group_0639 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreator as WebhookProjectCardMovedPropProjectCardAllof0PropCreator, ) - from .group_0634 import ( + from .group_0640 import ( WebhookProjectCardMovedPropProjectCardAllof1 as WebhookProjectCardMovedPropProjectCardAllof1, ) - from .group_0634 import ( + from .group_0640 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreator as WebhookProjectCardMovedPropProjectCardAllof1PropCreator, ) - from .group_0635 import WebhookProjectClosed as WebhookProjectClosed - from .group_0636 import WebhookProjectColumnCreated as WebhookProjectColumnCreated - from .group_0637 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted - from .group_0638 import WebhookProjectColumnEdited as WebhookProjectColumnEdited - from .group_0638 import ( + from .group_0641 import WebhookProjectClosed as WebhookProjectClosed + from .group_0642 import WebhookProjectColumnCreated as WebhookProjectColumnCreated + from .group_0643 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted + from .group_0644 import WebhookProjectColumnEdited as WebhookProjectColumnEdited + from .group_0644 import ( WebhookProjectColumnEditedPropChanges as WebhookProjectColumnEditedPropChanges, ) - from .group_0638 import ( + from .group_0644 import ( WebhookProjectColumnEditedPropChangesPropName as WebhookProjectColumnEditedPropChangesPropName, ) - from .group_0639 import WebhookProjectColumnMoved as WebhookProjectColumnMoved - from .group_0640 import WebhookProjectCreated as WebhookProjectCreated - from .group_0641 import WebhookProjectDeleted as WebhookProjectDeleted - from .group_0642 import WebhookProjectEdited as WebhookProjectEdited - from .group_0642 import ( + from .group_0645 import WebhookProjectColumnMoved as WebhookProjectColumnMoved + from .group_0646 import WebhookProjectCreated as WebhookProjectCreated + from .group_0647 import WebhookProjectDeleted as WebhookProjectDeleted + from .group_0648 import WebhookProjectEdited as WebhookProjectEdited + from .group_0648 import ( WebhookProjectEditedPropChanges as WebhookProjectEditedPropChanges, ) - from .group_0642 import ( + from .group_0648 import ( WebhookProjectEditedPropChangesPropBody as WebhookProjectEditedPropChangesPropBody, ) - from .group_0642 import ( + from .group_0648 import ( WebhookProjectEditedPropChangesPropName as WebhookProjectEditedPropChangesPropName, ) - from .group_0643 import WebhookProjectReopened as WebhookProjectReopened - from .group_0644 import ( + from .group_0649 import WebhookProjectReopened as WebhookProjectReopened + from .group_0650 import ( WebhookProjectsV2ProjectClosed as WebhookProjectsV2ProjectClosed, ) - from .group_0645 import ( + from .group_0651 import ( WebhookProjectsV2ProjectCreated as WebhookProjectsV2ProjectCreated, ) - from .group_0646 import ( + from .group_0652 import ( WebhookProjectsV2ProjectDeleted as WebhookProjectsV2ProjectDeleted, ) - from .group_0647 import ( + from .group_0653 import ( WebhookProjectsV2ProjectEdited as WebhookProjectsV2ProjectEdited, ) - from .group_0647 import ( + from .group_0653 import ( WebhookProjectsV2ProjectEditedPropChanges as WebhookProjectsV2ProjectEditedPropChanges, ) - from .group_0647 import ( + from .group_0653 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescription as WebhookProjectsV2ProjectEditedPropChangesPropDescription, ) - from .group_0647 import ( + from .group_0653 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublic as WebhookProjectsV2ProjectEditedPropChangesPropPublic, ) - from .group_0647 import ( + from .group_0653 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescription as WebhookProjectsV2ProjectEditedPropChangesPropShortDescription, ) - from .group_0647 import ( + from .group_0653 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitle as WebhookProjectsV2ProjectEditedPropChangesPropTitle, ) - from .group_0648 import ( + from .group_0654 import ( WebhookProjectsV2ItemArchived as WebhookProjectsV2ItemArchived, ) - from .group_0649 import ( + from .group_0655 import ( WebhookProjectsV2ItemConverted as WebhookProjectsV2ItemConverted, ) - from .group_0649 import ( + from .group_0655 import ( WebhookProjectsV2ItemConvertedPropChanges as WebhookProjectsV2ItemConvertedPropChanges, ) - from .group_0649 import ( + from .group_0655 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentType as WebhookProjectsV2ItemConvertedPropChangesPropContentType, ) - from .group_0650 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated - from .group_0651 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted - from .group_0652 import ProjectsV2IterationSetting as ProjectsV2IterationSetting - from .group_0652 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption - from .group_0652 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited - from .group_0652 import ( + from .group_0656 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated + from .group_0657 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted + from .group_0658 import ProjectsV2IterationSetting as ProjectsV2IterationSetting + from .group_0658 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption + from .group_0658 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited + from .group_0658 import ( WebhookProjectsV2ItemEditedPropChangesOneof0 as WebhookProjectsV2ItemEditedPropChangesOneof0, ) - from .group_0652 import ( + from .group_0658 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue, ) - from .group_0652 import ( + from .group_0658 import ( WebhookProjectsV2ItemEditedPropChangesOneof1 as WebhookProjectsV2ItemEditedPropChangesOneof1, ) - from .group_0652 import ( + from .group_0658 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBody as WebhookProjectsV2ItemEditedPropChangesOneof1PropBody, ) - from .group_0653 import ( + from .group_0659 import ( WebhookProjectsV2ItemReordered as WebhookProjectsV2ItemReordered, ) - from .group_0653 import ( + from .group_0659 import ( WebhookProjectsV2ItemReorderedPropChanges as WebhookProjectsV2ItemReorderedPropChanges, ) - from .group_0653 import ( + from .group_0659 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId, ) - from .group_0654 import ( + from .group_0660 import ( WebhookProjectsV2ItemRestored as WebhookProjectsV2ItemRestored, ) - from .group_0655 import ( + from .group_0661 import ( WebhookProjectsV2ProjectReopened as WebhookProjectsV2ProjectReopened, ) - from .group_0656 import ( + from .group_0662 import ( WebhookProjectsV2StatusUpdateCreated as WebhookProjectsV2StatusUpdateCreated, ) - from .group_0657 import ( + from .group_0663 import ( WebhookProjectsV2StatusUpdateDeleted as WebhookProjectsV2StatusUpdateDeleted, ) - from .group_0658 import ( + from .group_0664 import ( WebhookProjectsV2StatusUpdateEdited as WebhookProjectsV2StatusUpdateEdited, ) - from .group_0658 import ( + from .group_0664 import ( WebhookProjectsV2StatusUpdateEditedPropChanges as WebhookProjectsV2StatusUpdateEditedPropChanges, ) - from .group_0658 import ( + from .group_0664 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropBody as WebhookProjectsV2StatusUpdateEditedPropChangesPropBody, ) - from .group_0658 import ( + from .group_0664 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate, ) - from .group_0658 import ( + from .group_0664 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus, ) - from .group_0658 import ( + from .group_0664 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate, ) - from .group_0659 import WebhookPublic as WebhookPublic - from .group_0660 import WebhookPullRequestAssigned as WebhookPullRequestAssigned - from .group_0660 import ( + from .group_0665 import WebhookPublic as WebhookPublic + from .group_0666 import WebhookPullRequestAssigned as WebhookPullRequestAssigned + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequest as WebhookPullRequestAssignedPropPullRequest, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropAssignee as WebhookPullRequestAssignedPropPullRequestPropAssignee, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItems as WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMerge as WebhookPullRequestAssignedPropPullRequestPropAutoMerge, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepo as WebhookPullRequestAssignedPropPullRequestPropBasePropRepo, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUser as WebhookPullRequestAssignedPropPullRequestPropBasePropUser, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropHead as WebhookPullRequestAssignedPropPullRequestPropHead, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUser as WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItems as WebhookPullRequestAssignedPropPullRequestPropLabelsItems, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinks as WebhookPullRequestAssignedPropPullRequestPropLinks, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropComments, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropMergedBy as WebhookPullRequestAssignedPropPullRequestPropMergedBy, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropMilestone as WebhookPullRequestAssignedPropPullRequestPropMilestone, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropUser as WebhookPullRequestAssignedPropPullRequestPropUser, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabled as WebhookPullRequestAutoMergeDisabled, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequest as WebhookPullRequestAutoMergeDisabledPropPullRequest, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabled as WebhookPullRequestAutoMergeEnabled, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequest as WebhookPullRequestAutoMergeEnabledPropPullRequest, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, ) - from .group_0663 import WebhookPullRequestClosed as WebhookPullRequestClosed - from .group_0664 import ( + from .group_0669 import WebhookPullRequestClosed as WebhookPullRequestClosed + from .group_0670 import ( WebhookPullRequestConvertedToDraft as WebhookPullRequestConvertedToDraft, ) - from .group_0665 import ( + from .group_0671 import ( WebhookPullRequestDemilestoned as WebhookPullRequestDemilestoned, ) - from .group_0666 import WebhookPullRequestDequeued as WebhookPullRequestDequeued - from .group_0666 import ( + from .group_0672 import WebhookPullRequestDequeued as WebhookPullRequestDequeued + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequest as WebhookPullRequestDequeuedPropPullRequest, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropAssignee as WebhookPullRequestDequeuedPropPullRequestPropAssignee, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMerge as WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropBase as WebhookPullRequestDequeuedPropPullRequestPropBase, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUser as WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropHead as WebhookPullRequestDequeuedPropPullRequestPropHead, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItems as WebhookPullRequestDequeuedPropPullRequestPropLabelsItems, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinks as WebhookPullRequestDequeuedPropPullRequestPropLinks, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedBy as WebhookPullRequestDequeuedPropPullRequestPropMergedBy, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestone as WebhookPullRequestDequeuedPropPullRequestPropMilestone, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropUser as WebhookPullRequestDequeuedPropPullRequestPropUser, ) - from .group_0667 import WebhookPullRequestEdited as WebhookPullRequestEdited - from .group_0667 import ( + from .group_0673 import WebhookPullRequestEdited as WebhookPullRequestEdited + from .group_0673 import ( WebhookPullRequestEditedPropChanges as WebhookPullRequestEditedPropChanges, ) - from .group_0667 import ( + from .group_0673 import ( WebhookPullRequestEditedPropChangesPropBase as WebhookPullRequestEditedPropChangesPropBase, ) - from .group_0667 import ( + from .group_0673 import ( WebhookPullRequestEditedPropChangesPropBasePropRef as WebhookPullRequestEditedPropChangesPropBasePropRef, ) - from .group_0667 import ( + from .group_0673 import ( WebhookPullRequestEditedPropChangesPropBasePropSha as WebhookPullRequestEditedPropChangesPropBasePropSha, ) - from .group_0667 import ( + from .group_0673 import ( WebhookPullRequestEditedPropChangesPropBody as WebhookPullRequestEditedPropChangesPropBody, ) - from .group_0667 import ( + from .group_0673 import ( WebhookPullRequestEditedPropChangesPropTitle as WebhookPullRequestEditedPropChangesPropTitle, ) - from .group_0668 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued - from .group_0668 import ( + from .group_0674 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequest as WebhookPullRequestEnqueuedPropPullRequest, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssignee as WebhookPullRequestEnqueuedPropPullRequestPropAssignee, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge as WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropBase as WebhookPullRequestEnqueuedPropPullRequestPropBase, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropHead as WebhookPullRequestEnqueuedPropPullRequestPropHead, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinks as WebhookPullRequestEnqueuedPropPullRequestPropLinks, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedBy as WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestone as WebhookPullRequestEnqueuedPropPullRequestPropMilestone, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropUser as WebhookPullRequestEnqueuedPropPullRequestPropUser, ) - from .group_0669 import WebhookPullRequestLabeled as WebhookPullRequestLabeled - from .group_0669 import ( + from .group_0675 import WebhookPullRequestLabeled as WebhookPullRequestLabeled + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequest as WebhookPullRequestLabeledPropPullRequest, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropAssignee as WebhookPullRequestLabeledPropPullRequestPropAssignee, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItems as WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMerge as WebhookPullRequestLabeledPropPullRequestPropAutoMerge, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropBase as WebhookPullRequestLabeledPropPullRequestPropBase, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepo as WebhookPullRequestLabeledPropPullRequestPropBasePropRepo, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUser as WebhookPullRequestLabeledPropPullRequestPropBasePropUser, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropHead as WebhookPullRequestLabeledPropPullRequestPropHead, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUser as WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItems as WebhookPullRequestLabeledPropPullRequestPropLabelsItems, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinks as WebhookPullRequestLabeledPropPullRequestPropLinks, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropComments, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropMergedBy as WebhookPullRequestLabeledPropPullRequestPropMergedBy, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropMilestone as WebhookPullRequestLabeledPropPullRequestPropMilestone, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropUser as WebhookPullRequestLabeledPropPullRequestPropUser, ) - from .group_0670 import WebhookPullRequestLocked as WebhookPullRequestLocked - from .group_0670 import ( + from .group_0676 import WebhookPullRequestLocked as WebhookPullRequestLocked + from .group_0676 import ( WebhookPullRequestLockedPropPullRequest as WebhookPullRequestLockedPropPullRequest, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropAssignee as WebhookPullRequestLockedPropPullRequestPropAssignee, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItems as WebhookPullRequestLockedPropPullRequestPropAssigneesItems, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropAutoMerge as WebhookPullRequestLockedPropPullRequestPropAutoMerge, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropBase as WebhookPullRequestLockedPropPullRequestPropBase, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepo as WebhookPullRequestLockedPropPullRequestPropBasePropRepo, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUser as WebhookPullRequestLockedPropPullRequestPropBasePropUser, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropHead as WebhookPullRequestLockedPropPullRequestPropHead, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepo as WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUser as WebhookPullRequestLockedPropPullRequestPropHeadPropUser, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItems as WebhookPullRequestLockedPropPullRequestPropLabelsItems, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinks as WebhookPullRequestLockedPropPullRequestPropLinks, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropComments as WebhookPullRequestLockedPropPullRequestPropLinksPropComments, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommits as WebhookPullRequestLockedPropPullRequestPropLinksPropCommits, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtml as WebhookPullRequestLockedPropPullRequestPropLinksPropHtml, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssue as WebhookPullRequestLockedPropPullRequestPropLinksPropIssue, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelf as WebhookPullRequestLockedPropPullRequestPropLinksPropSelf, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropMergedBy as WebhookPullRequestLockedPropPullRequestPropMergedBy, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropMilestone as WebhookPullRequestLockedPropPullRequestPropMilestone, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropUser as WebhookPullRequestLockedPropPullRequestPropUser, ) - from .group_0671 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned - from .group_0672 import WebhookPullRequestOpened as WebhookPullRequestOpened - from .group_0673 import ( + from .group_0677 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned + from .group_0678 import WebhookPullRequestOpened as WebhookPullRequestOpened + from .group_0679 import ( WebhookPullRequestReadyForReview as WebhookPullRequestReadyForReview, ) - from .group_0674 import WebhookPullRequestReopened as WebhookPullRequestReopened - from .group_0675 import ( + from .group_0680 import WebhookPullRequestReopened as WebhookPullRequestReopened + from .group_0681 import ( WebhookPullRequestReviewCommentCreated as WebhookPullRequestReviewCommentCreated, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropComment as WebhookPullRequestReviewCommentCreatedPropComment, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinks as WebhookPullRequestReviewCommentCreatedPropCommentPropLinks, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactions as WebhookPullRequestReviewCommentCreatedPropCommentPropReactions, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUser as WebhookPullRequestReviewCommentCreatedPropCommentPropUser, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequest as WebhookPullRequestReviewCommentCreatedPropPullRequest, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeleted as WebhookPullRequestReviewCommentDeleted, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequest as WebhookPullRequestReviewCommentDeletedPropPullRequest, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEdited as WebhookPullRequestReviewCommentEdited, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequest as WebhookPullRequestReviewCommentEditedPropPullRequest, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBase as WebhookPullRequestReviewCommentEditedPropPullRequestPropBase, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHead as WebhookPullRequestReviewCommentEditedPropPullRequestPropHead, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissed as WebhookPullRequestReviewDismissed, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequest as WebhookPullRequestReviewDismissedPropPullRequest, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssignee as WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBase as WebhookPullRequestReviewDismissedPropPullRequestPropBase, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHead as WebhookPullRequestReviewDismissedPropPullRequestPropHead, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinks as WebhookPullRequestReviewDismissedPropPullRequestPropLinks, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestone as WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropUser, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropReview as WebhookPullRequestReviewDismissedPropReview, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropReviewPropLinks as WebhookPullRequestReviewDismissedPropReviewPropLinks, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropReviewPropUser as WebhookPullRequestReviewDismissedPropReviewPropUser, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEdited as WebhookPullRequestReviewEdited, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropChanges as WebhookPullRequestReviewEditedPropChanges, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropChangesPropBody as WebhookPullRequestReviewEditedPropChangesPropBody, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequest as WebhookPullRequestReviewEditedPropPullRequest, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssignee as WebhookPullRequestReviewEditedPropPullRequestPropAssignee, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropBase as WebhookPullRequestReviewEditedPropPullRequestPropBase, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropHead as WebhookPullRequestReviewEditedPropPullRequestPropHead, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinks as WebhookPullRequestReviewEditedPropPullRequestPropLinks, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestone as WebhookPullRequestReviewEditedPropPullRequestPropMilestone, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropUser as WebhookPullRequestReviewEditedPropPullRequestPropUser, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0 as WebhookPullRequestReviewRequestRemovedOneof0, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1 as WebhookPullRequestReviewRequestRemovedOneof1, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0 as WebhookPullRequestReviewRequestedOneof0, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequest as WebhookPullRequestReviewRequestedOneof0PropPullRequest, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1 as WebhookPullRequestReviewRequestedOneof1, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequest as WebhookPullRequestReviewRequestedOneof1PropPullRequest, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestedOneof1PropRequestedTeam, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmitted as WebhookPullRequestReviewSubmitted, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequest as WebhookPullRequestReviewSubmittedPropPullRequest, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee as WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBase as WebhookPullRequestReviewSubmittedPropPullRequestPropBase, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHead as WebhookPullRequestReviewSubmittedPropPullRequestPropHead, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinks as WebhookPullRequestReviewSubmittedPropPullRequestPropLinks, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropUser, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolved as WebhookPullRequestReviewThreadResolved, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequest as WebhookPullRequestReviewThreadResolvedPropPullRequest, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThread as WebhookPullRequestReviewThreadResolvedPropThread, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolved as WebhookPullRequestReviewThreadUnresolved, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropPullRequest, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThread as WebhookPullRequestReviewThreadUnresolvedPropThread, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronize as WebhookPullRequestSynchronize, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequest as WebhookPullRequestSynchronizePropPullRequest, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropAssignee as WebhookPullRequestSynchronizePropPullRequestPropAssignee, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMerge as WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropBase as WebhookPullRequestSynchronizePropPullRequestPropBase, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUser as WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropHead as WebhookPullRequestSynchronizePropPullRequestPropHead, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItems as WebhookPullRequestSynchronizePropPullRequestPropLabelsItems, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinks as WebhookPullRequestSynchronizePropPullRequestPropLinks, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedBy as WebhookPullRequestSynchronizePropPullRequestPropMergedBy, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestone as WebhookPullRequestSynchronizePropPullRequestPropMilestone, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropUser as WebhookPullRequestSynchronizePropPullRequestPropUser, ) - from .group_0688 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned - from .group_0688 import ( + from .group_0694 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequest as WebhookPullRequestUnassignedPropPullRequest, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropAssignee as WebhookPullRequestUnassignedPropPullRequestPropAssignee, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMerge as WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropBase as WebhookPullRequestUnassignedPropPullRequestPropBase, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUser as WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropHead as WebhookPullRequestUnassignedPropPullRequestPropHead, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItems as WebhookPullRequestUnassignedPropPullRequestPropLabelsItems, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedBy as WebhookPullRequestUnassignedPropPullRequestPropMergedBy, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestone as WebhookPullRequestUnassignedPropPullRequestPropMilestone, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropUser as WebhookPullRequestUnassignedPropPullRequestPropUser, ) - from .group_0689 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled - from .group_0689 import ( + from .group_0695 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequest as WebhookPullRequestUnlabeledPropPullRequest, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssignee as WebhookPullRequestUnlabeledPropPullRequestPropAssignee, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge as WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropBase as WebhookPullRequestUnlabeledPropPullRequestPropBase, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropHead as WebhookPullRequestUnlabeledPropPullRequestPropHead, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinks as WebhookPullRequestUnlabeledPropPullRequestPropLinks, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedBy as WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestone as WebhookPullRequestUnlabeledPropPullRequestPropMilestone, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropUser as WebhookPullRequestUnlabeledPropPullRequestPropUser, ) - from .group_0690 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked - from .group_0690 import ( + from .group_0696 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequest as WebhookPullRequestUnlockedPropPullRequest, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropAssignee as WebhookPullRequestUnlockedPropPullRequestPropAssignee, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMerge as WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropBase as WebhookPullRequestUnlockedPropPullRequestPropBase, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUser as WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropHead as WebhookPullRequestUnlockedPropPullRequestPropHead, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItems as WebhookPullRequestUnlockedPropPullRequestPropLabelsItems, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinks as WebhookPullRequestUnlockedPropPullRequestPropLinks, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedBy as WebhookPullRequestUnlockedPropPullRequestPropMergedBy, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestone as WebhookPullRequestUnlockedPropPullRequestPropMilestone, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropUser as WebhookPullRequestUnlockedPropPullRequestPropUser, ) - from .group_0691 import WebhookPush as WebhookPush - from .group_0691 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems - from .group_0691 import ( + from .group_0697 import WebhookPush as WebhookPush + from .group_0697 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems + from .group_0697 import ( WebhookPushPropCommitsItemsPropAuthor as WebhookPushPropCommitsItemsPropAuthor, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropCommitsItemsPropCommitter as WebhookPushPropCommitsItemsPropCommitter, ) - from .group_0691 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit - from .group_0691 import ( + from .group_0697 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit + from .group_0697 import ( WebhookPushPropHeadCommitPropAuthor as WebhookPushPropHeadCommitPropAuthor, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropHeadCommitPropCommitter as WebhookPushPropHeadCommitPropCommitter, ) - from .group_0691 import WebhookPushPropPusher as WebhookPushPropPusher - from .group_0691 import WebhookPushPropRepository as WebhookPushPropRepository - from .group_0691 import ( + from .group_0697 import WebhookPushPropPusher as WebhookPushPropPusher + from .group_0697 import WebhookPushPropRepository as WebhookPushPropRepository + from .group_0697 import ( WebhookPushPropRepositoryPropCustomProperties as WebhookPushPropRepositoryPropCustomProperties, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropRepositoryPropLicense as WebhookPushPropRepositoryPropLicense, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropRepositoryPropOwner as WebhookPushPropRepositoryPropOwner, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropRepositoryPropPermissions as WebhookPushPropRepositoryPropPermissions, ) - from .group_0692 import ( + from .group_0698 import ( WebhookRegistryPackagePublished as WebhookRegistryPackagePublished, ) - from .group_0693 import ( + from .group_0699 import ( WebhookRegistryPackagePublishedPropRegistryPackage as WebhookRegistryPackagePublishedPropRegistryPackage, ) - from .group_0693 import ( + from .group_0699 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwner as WebhookRegistryPackagePublishedPropRegistryPackagePropOwner, ) - from .group_0693 import ( + from .group_0699 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0695 import ( + from .group_0701 import ( WebhookRegistryPackageUpdated as WebhookRegistryPackageUpdated, ) - from .group_0696 import ( + from .group_0702 import ( WebhookRegistryPackageUpdatedPropRegistryPackage as WebhookRegistryPackageUpdatedPropRegistryPackage, ) - from .group_0696 import ( + from .group_0702 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner, ) - from .group_0696 import ( + from .group_0702 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0698 import WebhookReleaseCreated as WebhookReleaseCreated - from .group_0699 import WebhookReleaseDeleted as WebhookReleaseDeleted - from .group_0700 import WebhookReleaseEdited as WebhookReleaseEdited - from .group_0700 import ( + from .group_0704 import WebhookReleaseCreated as WebhookReleaseCreated + from .group_0705 import WebhookReleaseDeleted as WebhookReleaseDeleted + from .group_0706 import WebhookReleaseEdited as WebhookReleaseEdited + from .group_0706 import ( WebhookReleaseEditedPropChanges as WebhookReleaseEditedPropChanges, ) - from .group_0700 import ( + from .group_0706 import ( WebhookReleaseEditedPropChangesPropBody as WebhookReleaseEditedPropChangesPropBody, ) - from .group_0700 import ( + from .group_0706 import ( WebhookReleaseEditedPropChangesPropMakeLatest as WebhookReleaseEditedPropChangesPropMakeLatest, ) - from .group_0700 import ( + from .group_0706 import ( WebhookReleaseEditedPropChangesPropName as WebhookReleaseEditedPropChangesPropName, ) - from .group_0701 import WebhookReleasePrereleased as WebhookReleasePrereleased - from .group_0701 import ( + from .group_0707 import WebhookReleasePrereleased as WebhookReleasePrereleased + from .group_0707 import ( WebhookReleasePrereleasedPropRelease as WebhookReleasePrereleasedPropRelease, ) - from .group_0701 import ( + from .group_0707 import ( WebhookReleasePrereleasedPropReleasePropAssetsItems as WebhookReleasePrereleasedPropReleasePropAssetsItems, ) - from .group_0701 import ( + from .group_0707 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, ) - from .group_0701 import ( + from .group_0707 import ( WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) - from .group_0701 import ( + from .group_0707 import ( WebhookReleasePrereleasedPropReleasePropReactions as WebhookReleasePrereleasedPropReleasePropReactions, ) - from .group_0702 import WebhookReleasePublished as WebhookReleasePublished - from .group_0703 import WebhookReleaseReleased as WebhookReleaseReleased - from .group_0704 import WebhookReleaseUnpublished as WebhookReleaseUnpublished - from .group_0705 import ( + from .group_0708 import WebhookReleasePublished as WebhookReleasePublished + from .group_0709 import WebhookReleaseReleased as WebhookReleaseReleased + from .group_0710 import WebhookReleaseUnpublished as WebhookReleaseUnpublished + from .group_0711 import ( WebhookRepositoryAdvisoryPublished as WebhookRepositoryAdvisoryPublished, ) - from .group_0706 import ( + from .group_0712 import ( WebhookRepositoryAdvisoryReported as WebhookRepositoryAdvisoryReported, ) - from .group_0707 import WebhookRepositoryArchived as WebhookRepositoryArchived - from .group_0708 import WebhookRepositoryCreated as WebhookRepositoryCreated - from .group_0709 import WebhookRepositoryDeleted as WebhookRepositoryDeleted - from .group_0710 import ( + from .group_0713 import WebhookRepositoryArchived as WebhookRepositoryArchived + from .group_0714 import WebhookRepositoryCreated as WebhookRepositoryCreated + from .group_0715 import WebhookRepositoryDeleted as WebhookRepositoryDeleted + from .group_0716 import ( WebhookRepositoryDispatchSample as WebhookRepositoryDispatchSample, ) - from .group_0710 import ( + from .group_0716 import ( WebhookRepositoryDispatchSamplePropClientPayload as WebhookRepositoryDispatchSamplePropClientPayload, ) - from .group_0711 import WebhookRepositoryEdited as WebhookRepositoryEdited - from .group_0711 import ( + from .group_0717 import WebhookRepositoryEdited as WebhookRepositoryEdited + from .group_0717 import ( WebhookRepositoryEditedPropChanges as WebhookRepositoryEditedPropChanges, ) - from .group_0711 import ( + from .group_0717 import ( WebhookRepositoryEditedPropChangesPropDefaultBranch as WebhookRepositoryEditedPropChangesPropDefaultBranch, ) - from .group_0711 import ( + from .group_0717 import ( WebhookRepositoryEditedPropChangesPropDescription as WebhookRepositoryEditedPropChangesPropDescription, ) - from .group_0711 import ( + from .group_0717 import ( WebhookRepositoryEditedPropChangesPropHomepage as WebhookRepositoryEditedPropChangesPropHomepage, ) - from .group_0711 import ( + from .group_0717 import ( WebhookRepositoryEditedPropChangesPropTopics as WebhookRepositoryEditedPropChangesPropTopics, ) - from .group_0712 import WebhookRepositoryImport as WebhookRepositoryImport - from .group_0713 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized - from .group_0714 import WebhookRepositoryPublicized as WebhookRepositoryPublicized - from .group_0715 import WebhookRepositoryRenamed as WebhookRepositoryRenamed - from .group_0715 import ( + from .group_0718 import WebhookRepositoryImport as WebhookRepositoryImport + from .group_0719 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized + from .group_0720 import WebhookRepositoryPublicized as WebhookRepositoryPublicized + from .group_0721 import WebhookRepositoryRenamed as WebhookRepositoryRenamed + from .group_0721 import ( WebhookRepositoryRenamedPropChanges as WebhookRepositoryRenamedPropChanges, ) - from .group_0715 import ( + from .group_0721 import ( WebhookRepositoryRenamedPropChangesPropRepository as WebhookRepositoryRenamedPropChangesPropRepository, ) - from .group_0715 import ( + from .group_0721 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropName as WebhookRepositoryRenamedPropChangesPropRepositoryPropName, ) - from .group_0716 import ( + from .group_0722 import ( WebhookRepositoryRulesetCreated as WebhookRepositoryRulesetCreated, ) - from .group_0717 import ( + from .group_0723 import ( WebhookRepositoryRulesetDeleted as WebhookRepositoryRulesetDeleted, ) - from .group_0718 import ( + from .group_0724 import ( WebhookRepositoryRulesetEdited as WebhookRepositoryRulesetEdited, ) - from .group_0719 import ( + from .group_0725 import ( WebhookRepositoryRulesetEditedPropChanges as WebhookRepositoryRulesetEditedPropChanges, ) - from .group_0719 import ( + from .group_0725 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcement as WebhookRepositoryRulesetEditedPropChangesPropEnforcement, ) - from .group_0719 import ( + from .group_0725 import ( WebhookRepositoryRulesetEditedPropChangesPropName as WebhookRepositoryRulesetEditedPropChangesPropName, ) - from .group_0720 import ( + from .group_0726 import ( WebhookRepositoryRulesetEditedPropChangesPropConditions as WebhookRepositoryRulesetEditedPropChangesPropConditions, ) - from .group_0721 import ( + from .group_0727 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, ) - from .group_0721 import ( + from .group_0727 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) - from .group_0721 import ( + from .group_0727 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType, ) - from .group_0721 import ( + from .group_0727 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude, ) - from .group_0721 import ( + from .group_0727 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude, ) - from .group_0721 import ( + from .group_0727 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget, ) - from .group_0722 import ( + from .group_0728 import ( WebhookRepositoryRulesetEditedPropChangesPropRules as WebhookRepositoryRulesetEditedPropChangesPropRules, ) - from .group_0723 import ( + from .group_0729 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, ) - from .group_0723 import ( + from .group_0729 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges, ) - from .group_0723 import ( + from .group_0729 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration, ) - from .group_0723 import ( + from .group_0729 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern, ) - from .group_0723 import ( + from .group_0729 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType, ) - from .group_0724 import WebhookRepositoryTransferred as WebhookRepositoryTransferred - from .group_0724 import ( + from .group_0730 import WebhookRepositoryTransferred as WebhookRepositoryTransferred + from .group_0730 import ( WebhookRepositoryTransferredPropChanges as WebhookRepositoryTransferredPropChanges, ) - from .group_0724 import ( + from .group_0730 import ( WebhookRepositoryTransferredPropChangesPropOwner as WebhookRepositoryTransferredPropChangesPropOwner, ) - from .group_0724 import ( + from .group_0730 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFrom as WebhookRepositoryTransferredPropChangesPropOwnerPropFrom, ) - from .group_0724 import ( + from .group_0730 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization, ) - from .group_0724 import ( + from .group_0730 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, ) - from .group_0725 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived - from .group_0726 import ( + from .group_0731 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived + from .group_0732 import ( WebhookRepositoryVulnerabilityAlertCreate as WebhookRepositoryVulnerabilityAlertCreate, ) - from .group_0727 import ( + from .group_0733 import ( WebhookRepositoryVulnerabilityAlertDismiss as WebhookRepositoryVulnerabilityAlertDismiss, ) - from .group_0727 import ( + from .group_0733 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlert as WebhookRepositoryVulnerabilityAlertDismissPropAlert, ) - from .group_0727 import ( + from .group_0733 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, ) - from .group_0728 import ( + from .group_0734 import ( WebhookRepositoryVulnerabilityAlertReopen as WebhookRepositoryVulnerabilityAlertReopen, ) - from .group_0729 import ( + from .group_0735 import ( WebhookRepositoryVulnerabilityAlertResolve as WebhookRepositoryVulnerabilityAlertResolve, ) - from .group_0729 import ( + from .group_0735 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlert as WebhookRepositoryVulnerabilityAlertResolvePropAlert, ) - from .group_0729 import ( + from .group_0735 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, ) - from .group_0730 import ( + from .group_0736 import ( WebhookSecretScanningAlertCreated as WebhookSecretScanningAlertCreated, ) - from .group_0731 import SecretScanningLocation as SecretScanningLocation - from .group_0731 import SecretScanningLocationCommit as SecretScanningLocationCommit - from .group_0731 import ( + from .group_0737 import SecretScanningLocation as SecretScanningLocation + from .group_0737 import SecretScanningLocationCommit as SecretScanningLocationCommit + from .group_0737 import ( SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationDiscussionComment as SecretScanningLocationDiscussionComment, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationDiscussionTitle as SecretScanningLocationDiscussionTitle, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationIssueComment as SecretScanningLocationIssueComment, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationIssueTitle as SecretScanningLocationIssueTitle, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationPullRequestBody as SecretScanningLocationPullRequestBody, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationPullRequestComment as SecretScanningLocationPullRequestComment, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationPullRequestReview as SecretScanningLocationPullRequestReview, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationPullRequestReviewComment as SecretScanningLocationPullRequestReviewComment, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationPullRequestTitle as SecretScanningLocationPullRequestTitle, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationWikiCommit as SecretScanningLocationWikiCommit, ) - from .group_0731 import ( + from .group_0737 import ( WebhookSecretScanningAlertLocationCreated as WebhookSecretScanningAlertLocationCreated, ) - from .group_0732 import ( + from .group_0738 import ( WebhookSecretScanningAlertLocationCreatedFormEncoded as WebhookSecretScanningAlertLocationCreatedFormEncoded, ) - from .group_0733 import ( + from .group_0739 import ( WebhookSecretScanningAlertPubliclyLeaked as WebhookSecretScanningAlertPubliclyLeaked, ) - from .group_0734 import ( + from .group_0740 import ( WebhookSecretScanningAlertReopened as WebhookSecretScanningAlertReopened, ) - from .group_0735 import ( + from .group_0741 import ( WebhookSecretScanningAlertResolved as WebhookSecretScanningAlertResolved, ) - from .group_0736 import ( + from .group_0742 import ( WebhookSecretScanningAlertValidated as WebhookSecretScanningAlertValidated, ) - from .group_0737 import ( + from .group_0743 import ( WebhookSecretScanningScanCompleted as WebhookSecretScanningScanCompleted, ) - from .group_0738 import ( + from .group_0744 import ( WebhookSecurityAdvisoryPublished as WebhookSecurityAdvisoryPublished, ) - from .group_0739 import ( + from .group_0745 import ( WebhookSecurityAdvisoryUpdated as WebhookSecurityAdvisoryUpdated, ) - from .group_0740 import ( + from .group_0746 import ( WebhookSecurityAdvisoryWithdrawn as WebhookSecurityAdvisoryWithdrawn, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0742 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis - from .group_0743 import ( + from .group_0748 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis + from .group_0749 import ( WebhookSecurityAndAnalysisPropChanges as WebhookSecurityAndAnalysisPropChanges, ) - from .group_0744 import ( + from .group_0750 import ( WebhookSecurityAndAnalysisPropChangesPropFrom as WebhookSecurityAndAnalysisPropChangesPropFrom, ) - from .group_0745 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled - from .group_0746 import WebhookSponsorshipCreated as WebhookSponsorshipCreated - from .group_0747 import WebhookSponsorshipEdited as WebhookSponsorshipEdited - from .group_0747 import ( + from .group_0751 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled + from .group_0752 import WebhookSponsorshipCreated as WebhookSponsorshipCreated + from .group_0753 import WebhookSponsorshipEdited as WebhookSponsorshipEdited + from .group_0753 import ( WebhookSponsorshipEditedPropChanges as WebhookSponsorshipEditedPropChanges, ) - from .group_0747 import ( + from .group_0753 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevel as WebhookSponsorshipEditedPropChangesPropPrivacyLevel, ) - from .group_0748 import ( + from .group_0754 import ( WebhookSponsorshipPendingCancellation as WebhookSponsorshipPendingCancellation, ) - from .group_0749 import ( + from .group_0755 import ( WebhookSponsorshipPendingTierChange as WebhookSponsorshipPendingTierChange, ) - from .group_0750 import ( + from .group_0756 import ( WebhookSponsorshipTierChanged as WebhookSponsorshipTierChanged, ) - from .group_0751 import WebhookStarCreated as WebhookStarCreated - from .group_0752 import WebhookStarDeleted as WebhookStarDeleted - from .group_0753 import WebhookStatus as WebhookStatus - from .group_0753 import ( + from .group_0757 import WebhookStarCreated as WebhookStarCreated + from .group_0758 import WebhookStarDeleted as WebhookStarDeleted + from .group_0759 import WebhookStatus as WebhookStatus + from .group_0759 import ( WebhookStatusPropBranchesItems as WebhookStatusPropBranchesItems, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropBranchesItemsPropCommit as WebhookStatusPropBranchesItemsPropCommit, ) - from .group_0753 import WebhookStatusPropCommit as WebhookStatusPropCommit - from .group_0753 import ( + from .group_0759 import WebhookStatusPropCommit as WebhookStatusPropCommit + from .group_0759 import ( WebhookStatusPropCommitPropAuthor as WebhookStatusPropCommitPropAuthor, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropCommit as WebhookStatusPropCommitPropCommit, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropCommitPropAuthor as WebhookStatusPropCommitPropCommitPropAuthor, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropCommitPropCommitter as WebhookStatusPropCommitPropCommitPropCommitter, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropCommitPropTree as WebhookStatusPropCommitPropCommitPropTree, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropCommitPropVerification as WebhookStatusPropCommitPropCommitPropVerification, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropCommitter as WebhookStatusPropCommitPropCommitter, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropParentsItems as WebhookStatusPropCommitPropParentsItems, ) - from .group_0754 import ( + from .group_0760 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0 as WebhookStatusPropCommitPropCommitPropAuthorAllof0, ) - from .group_0755 import ( + from .group_0761 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1 as WebhookStatusPropCommitPropCommitPropAuthorAllof1, ) - from .group_0756 import ( + from .group_0762 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0 as WebhookStatusPropCommitPropCommitPropCommitterAllof0, ) - from .group_0757 import ( + from .group_0763 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1 as WebhookStatusPropCommitPropCommitPropCommitterAllof1, ) - from .group_0758 import ( + from .group_0764 import ( WebhookSubIssuesParentIssueAdded as WebhookSubIssuesParentIssueAdded, ) - from .group_0759 import ( + from .group_0765 import ( WebhookSubIssuesParentIssueRemoved as WebhookSubIssuesParentIssueRemoved, ) - from .group_0760 import ( + from .group_0766 import ( WebhookSubIssuesSubIssueAdded as WebhookSubIssuesSubIssueAdded, ) - from .group_0761 import ( + from .group_0767 import ( WebhookSubIssuesSubIssueRemoved as WebhookSubIssuesSubIssueRemoved, ) - from .group_0762 import WebhookTeamAdd as WebhookTeamAdd - from .group_0763 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository - from .group_0763 import ( + from .group_0768 import WebhookTeamAdd as WebhookTeamAdd + from .group_0769 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository + from .group_0769 import ( WebhookTeamAddedToRepositoryPropRepository as WebhookTeamAddedToRepositoryPropRepository, ) - from .group_0763 import ( + from .group_0769 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties as WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties, ) - from .group_0763 import ( + from .group_0769 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicense as WebhookTeamAddedToRepositoryPropRepositoryPropLicense, ) - from .group_0763 import ( + from .group_0769 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwner as WebhookTeamAddedToRepositoryPropRepositoryPropOwner, ) - from .group_0763 import ( + from .group_0769 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissions as WebhookTeamAddedToRepositoryPropRepositoryPropPermissions, ) - from .group_0764 import WebhookTeamCreated as WebhookTeamCreated - from .group_0764 import ( + from .group_0770 import WebhookTeamCreated as WebhookTeamCreated + from .group_0770 import ( WebhookTeamCreatedPropRepository as WebhookTeamCreatedPropRepository, ) - from .group_0764 import ( + from .group_0770 import ( WebhookTeamCreatedPropRepositoryPropCustomProperties as WebhookTeamCreatedPropRepositoryPropCustomProperties, ) - from .group_0764 import ( + from .group_0770 import ( WebhookTeamCreatedPropRepositoryPropLicense as WebhookTeamCreatedPropRepositoryPropLicense, ) - from .group_0764 import ( + from .group_0770 import ( WebhookTeamCreatedPropRepositoryPropOwner as WebhookTeamCreatedPropRepositoryPropOwner, ) - from .group_0764 import ( + from .group_0770 import ( WebhookTeamCreatedPropRepositoryPropPermissions as WebhookTeamCreatedPropRepositoryPropPermissions, ) - from .group_0765 import WebhookTeamDeleted as WebhookTeamDeleted - from .group_0765 import ( + from .group_0771 import WebhookTeamDeleted as WebhookTeamDeleted + from .group_0771 import ( WebhookTeamDeletedPropRepository as WebhookTeamDeletedPropRepository, ) - from .group_0765 import ( + from .group_0771 import ( WebhookTeamDeletedPropRepositoryPropCustomProperties as WebhookTeamDeletedPropRepositoryPropCustomProperties, ) - from .group_0765 import ( + from .group_0771 import ( WebhookTeamDeletedPropRepositoryPropLicense as WebhookTeamDeletedPropRepositoryPropLicense, ) - from .group_0765 import ( + from .group_0771 import ( WebhookTeamDeletedPropRepositoryPropOwner as WebhookTeamDeletedPropRepositoryPropOwner, ) - from .group_0765 import ( + from .group_0771 import ( WebhookTeamDeletedPropRepositoryPropPermissions as WebhookTeamDeletedPropRepositoryPropPermissions, ) - from .group_0766 import WebhookTeamEdited as WebhookTeamEdited - from .group_0766 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges - from .group_0766 import ( + from .group_0772 import WebhookTeamEdited as WebhookTeamEdited + from .group_0772 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges + from .group_0772 import ( WebhookTeamEditedPropChangesPropDescription as WebhookTeamEditedPropChangesPropDescription, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesPropName as WebhookTeamEditedPropChangesPropName, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesPropNotificationSetting as WebhookTeamEditedPropChangesPropNotificationSetting, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesPropPrivacy as WebhookTeamEditedPropChangesPropPrivacy, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesPropRepository as WebhookTeamEditedPropChangesPropRepository, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissions as WebhookTeamEditedPropChangesPropRepositoryPropPermissions, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropRepository as WebhookTeamEditedPropRepository, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropRepositoryPropCustomProperties as WebhookTeamEditedPropRepositoryPropCustomProperties, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropRepositoryPropLicense as WebhookTeamEditedPropRepositoryPropLicense, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropRepositoryPropOwner as WebhookTeamEditedPropRepositoryPropOwner, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropRepositoryPropPermissions as WebhookTeamEditedPropRepositoryPropPermissions, ) - from .group_0767 import ( + from .group_0773 import ( WebhookTeamRemovedFromRepository as WebhookTeamRemovedFromRepository, ) - from .group_0767 import ( + from .group_0773 import ( WebhookTeamRemovedFromRepositoryPropRepository as WebhookTeamRemovedFromRepositoryPropRepository, ) - from .group_0767 import ( + from .group_0773 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties, ) - from .group_0767 import ( + from .group_0773 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, ) - from .group_0767 import ( + from .group_0773 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, ) - from .group_0767 import ( + from .group_0773 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions, ) - from .group_0768 import WebhookWatchStarted as WebhookWatchStarted - from .group_0769 import WebhookWorkflowDispatch as WebhookWorkflowDispatch - from .group_0769 import ( + from .group_0774 import WebhookWatchStarted as WebhookWatchStarted + from .group_0775 import WebhookWorkflowDispatch as WebhookWorkflowDispatch + from .group_0775 import ( WebhookWorkflowDispatchPropInputs as WebhookWorkflowDispatchPropInputs, ) - from .group_0770 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted - from .group_0770 import ( + from .group_0776 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted + from .group_0776 import ( WebhookWorkflowJobCompletedPropWorkflowJob as WebhookWorkflowJobCompletedPropWorkflowJob, ) - from .group_0770 import ( + from .group_0776 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps as WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps, ) - from .group_0771 import ( + from .group_0777 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0 as WebhookWorkflowJobCompletedPropWorkflowJobAllof0, ) - from .group_0771 import ( + from .group_0777 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems, ) - from .group_0772 import ( + from .group_0778 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1 as WebhookWorkflowJobCompletedPropWorkflowJobAllof1, ) - from .group_0772 import ( + from .group_0778 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, ) - from .group_0773 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress - from .group_0773 import ( + from .group_0779 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress + from .group_0779 import ( WebhookWorkflowJobInProgressPropWorkflowJob as WebhookWorkflowJobInProgressPropWorkflowJob, ) - from .group_0773 import ( + from .group_0779 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps as WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps, ) - from .group_0774 import ( + from .group_0780 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0 as WebhookWorkflowJobInProgressPropWorkflowJobAllof0, ) - from .group_0774 import ( + from .group_0780 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, ) - from .group_0775 import ( + from .group_0781 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1 as WebhookWorkflowJobInProgressPropWorkflowJobAllof1, ) - from .group_0775 import ( + from .group_0781 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, ) - from .group_0776 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued - from .group_0776 import ( + from .group_0782 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued + from .group_0782 import ( WebhookWorkflowJobQueuedPropWorkflowJob as WebhookWorkflowJobQueuedPropWorkflowJob, ) - from .group_0776 import ( + from .group_0782 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems, ) - from .group_0777 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting - from .group_0777 import ( + from .group_0783 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting + from .group_0783 import ( WebhookWorkflowJobWaitingPropWorkflowJob as WebhookWorkflowJobWaitingPropWorkflowJob, ) - from .group_0777 import ( + from .group_0783 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems, ) - from .group_0778 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted - from .group_0778 import ( + from .group_0784 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRun as WebhookWorkflowRunCompletedPropWorkflowRun, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActor as WebhookWorkflowRunCompletedPropWorkflowRunPropActor, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropRepository, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, ) - from .group_0779 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress - from .group_0779 import ( + from .group_0785 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRun as WebhookWorkflowRunInProgressPropWorkflowRun, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActor as WebhookWorkflowRunInProgressPropWorkflowRunPropActor, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropRepository, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) - from .group_0780 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested - from .group_0780 import ( + from .group_0786 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRun as WebhookWorkflowRunRequestedPropWorkflowRun, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActor as WebhookWorkflowRunRequestedPropWorkflowRunPropActor, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropRepository, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0781 import ( + from .group_0787 import ( AppManifestsCodeConversionsPostResponse201 as AppManifestsCodeConversionsPostResponse201, ) - from .group_0782 import ( + from .group_0788 import ( AppManifestsCodeConversionsPostResponse201Allof1 as AppManifestsCodeConversionsPostResponse201Allof1, ) - from .group_0783 import AppHookConfigPatchBody as AppHookConfigPatchBody - from .group_0784 import ( + from .group_0789 import AppHookConfigPatchBody as AppHookConfigPatchBody + from .group_0790 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202 as AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) - from .group_0785 import ( + from .group_0791 import ( AppInstallationsInstallationIdAccessTokensPostBody as AppInstallationsInstallationIdAccessTokensPostBody, ) - from .group_0786 import ( + from .group_0792 import ( ApplicationsClientIdGrantDeleteBody as ApplicationsClientIdGrantDeleteBody, ) - from .group_0787 import ( + from .group_0793 import ( ApplicationsClientIdTokenPostBody as ApplicationsClientIdTokenPostBody, ) - from .group_0788 import ( + from .group_0794 import ( ApplicationsClientIdTokenDeleteBody as ApplicationsClientIdTokenDeleteBody, ) - from .group_0789 import ( + from .group_0795 import ( ApplicationsClientIdTokenPatchBody as ApplicationsClientIdTokenPatchBody, ) - from .group_0790 import ( + from .group_0796 import ( ApplicationsClientIdTokenScopedPostBody as ApplicationsClientIdTokenScopedPostBody, ) - from .group_0791 import EmojisGetResponse200 as EmojisGetResponse200 - from .group_0792 import ( + from .group_0797 import EmojisGetResponse200 as EmojisGetResponse200 + from .group_0798 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBody as EnterprisesEnterpriseCodeSecurityConfigurationsPostBody, ) - from .group_0792 import ( + from .group_0798 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0793 import ( + from .group_0799 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_0793 import ( + from .group_0799 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0794 import ( + from .group_0800 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_0795 import ( + from .group_0801 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0796 import ( + from .group_0802 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0797 import ( + from .group_0803 import ( EnterprisesEnterpriseSecretScanningAlertsGetResponse503 as EnterprisesEnterpriseSecretScanningAlertsGetResponse503, ) - from .group_0798 import GistsPostBody as GistsPostBody - from .group_0798 import GistsPostBodyPropFiles as GistsPostBodyPropFiles - from .group_0799 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 - from .group_0799 import ( + from .group_0804 import GistsPostBody as GistsPostBody + from .group_0804 import GistsPostBodyPropFiles as GistsPostBodyPropFiles + from .group_0805 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 + from .group_0805 import ( GistsGistIdGetResponse403PropBlock as GistsGistIdGetResponse403PropBlock, ) - from .group_0800 import GistsGistIdPatchBody as GistsGistIdPatchBody - from .group_0800 import ( + from .group_0806 import GistsGistIdPatchBody as GistsGistIdPatchBody + from .group_0806 import ( GistsGistIdPatchBodyPropFiles as GistsGistIdPatchBodyPropFiles, ) - from .group_0801 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody - from .group_0802 import ( + from .group_0807 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody + from .group_0808 import ( GistsGistIdCommentsCommentIdPatchBody as GistsGistIdCommentsCommentIdPatchBody, ) - from .group_0803 import ( + from .group_0809 import ( GistsGistIdStarGetResponse404 as GistsGistIdStarGetResponse404, ) - from .group_0804 import ( + from .group_0810 import ( InstallationRepositoriesGetResponse200 as InstallationRepositoriesGetResponse200, ) - from .group_0805 import MarkdownPostBody as MarkdownPostBody - from .group_0806 import NotificationsPutBody as NotificationsPutBody - from .group_0807 import NotificationsPutResponse202 as NotificationsPutResponse202 - from .group_0808 import ( + from .group_0811 import MarkdownPostBody as MarkdownPostBody + from .group_0812 import NotificationsPutBody as NotificationsPutBody + from .group_0813 import NotificationsPutResponse202 as NotificationsPutResponse202 + from .group_0814 import ( NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody, ) - from .group_0809 import OrgsOrgPatchBody as OrgsOrgPatchBody - from .group_0810 import ( + from .group_0815 import OrgsOrgPatchBody as OrgsOrgPatchBody + from .group_0816 import ( ActionsCacheUsageByRepository as ActionsCacheUsageByRepository, ) - from .group_0810 import ( + from .group_0816 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200 as OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) - from .group_0811 import ( + from .group_0817 import ( + OrgsOrgActionsHostedRunnersGetResponse200 as OrgsOrgActionsHostedRunnersGetResponse200, + ) + from .group_0818 import ( + OrgsOrgActionsHostedRunnersPostBody as OrgsOrgActionsHostedRunnersPostBody, + ) + from .group_0818 import ( + OrgsOrgActionsHostedRunnersPostBodyPropImage as OrgsOrgActionsHostedRunnersPostBodyPropImage, + ) + from .group_0819 import ( + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200 as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + ) + from .group_0820 import ( + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200 as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + ) + from .group_0821 import ( + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200 as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + ) + from .group_0822 import ( + OrgsOrgActionsHostedRunnersPlatformsGetResponse200 as OrgsOrgActionsHostedRunnersPlatformsGetResponse200, + ) + from .group_0823 import ( + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, + ) + from .group_0824 import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) - from .group_0812 import ( + from .group_0825 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200 as OrgsOrgActionsPermissionsRepositoriesGetResponse200, ) - from .group_0813 import ( + from .group_0826 import ( OrgsOrgActionsPermissionsRepositoriesPutBody as OrgsOrgActionsPermissionsRepositoriesPutBody, ) - from .group_0814 import ( + from .group_0827 import ( OrgsOrgActionsRunnerGroupsGetResponse200 as OrgsOrgActionsRunnerGroupsGetResponse200, ) - from .group_0814 import RunnerGroupsOrg as RunnerGroupsOrg - from .group_0815 import ( + from .group_0827 import RunnerGroupsOrg as RunnerGroupsOrg + from .group_0828 import ( OrgsOrgActionsRunnerGroupsPostBody as OrgsOrgActionsRunnerGroupsPostBody, ) - from .group_0816 import ( + from .group_0829 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0817 import ( + from .group_0830 import ( + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + ) + from .group_0831 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200, ) - from .group_0818 import ( + from .group_0832 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody, ) - from .group_0819 import ( + from .group_0833 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0820 import ( + from .group_0834 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0821 import ( + from .group_0835 import ( OrgsOrgActionsRunnersGetResponse200 as OrgsOrgActionsRunnersGetResponse200, ) - from .group_0822 import ( + from .group_0836 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBody as OrgsOrgActionsRunnersGenerateJitconfigPostBody, ) - from .group_0823 import ( + from .group_0837 import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201 as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201, ) - from .group_0824 import ( + from .group_0838 import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200, ) - from .group_0825 import ( + from .group_0839 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBody as OrgsOrgActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0826 import ( + from .group_0840 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBody as OrgsOrgActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0827 import ( + from .group_0841 import ( OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200, ) - from .group_0828 import OrganizationActionsSecret as OrganizationActionsSecret - from .group_0828 import ( + from .group_0842 import OrganizationActionsSecret as OrganizationActionsSecret + from .group_0842 import ( OrgsOrgActionsSecretsGetResponse200 as OrgsOrgActionsSecretsGetResponse200, ) - from .group_0829 import ( + from .group_0843 import ( OrgsOrgActionsSecretsSecretNamePutBody as OrgsOrgActionsSecretsSecretNamePutBody, ) - from .group_0830 import ( + from .group_0844 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0831 import ( + from .group_0845 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBody as OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, ) - from .group_0832 import OrganizationActionsVariable as OrganizationActionsVariable - from .group_0832 import ( + from .group_0846 import OrganizationActionsVariable as OrganizationActionsVariable + from .group_0846 import ( OrgsOrgActionsVariablesGetResponse200 as OrgsOrgActionsVariablesGetResponse200, ) - from .group_0833 import ( + from .group_0847 import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) - from .group_0834 import ( + from .group_0848 import ( OrgsOrgActionsVariablesNamePatchBody as OrgsOrgActionsVariablesNamePatchBody, ) - from .group_0835 import ( + from .group_0849 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200 as OrgsOrgActionsVariablesNameRepositoriesGetResponse200, ) - from .group_0836 import ( + from .group_0850 import ( OrgsOrgActionsVariablesNameRepositoriesPutBody as OrgsOrgActionsVariablesNameRepositoriesPutBody, ) - from .group_0837 import ( + from .group_0851 import ( OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, ) - from .group_0837 import ( + from .group_0851 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_0837 import ( + from .group_0851 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_0837 import ( + from .group_0851 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_0837 import ( + from .group_0851 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) - from .group_0838 import ( + from .group_0852 import ( OrgsOrgCodeSecurityConfigurationsPostBody as OrgsOrgCodeSecurityConfigurationsPostBody, ) - from .group_0838 import ( + from .group_0852 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions as OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0838 import ( + from .group_0852 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions, ) - from .group_0838 import ( + from .group_0852 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0839 import ( + from .group_0853 import ( OrgsOrgCodeSecurityConfigurationsDetachDeleteBody as OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, ) - from .group_0840 import ( + from .group_0854 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_0840 import ( + from .group_0854 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0840 import ( + from .group_0854 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions, ) - from .group_0840 import ( + from .group_0854 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0841 import ( + from .group_0855 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_0842 import ( + from .group_0856 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0843 import ( + from .group_0857 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0844 import ( + from .group_0858 import ( OrgsOrgCodespacesGetResponse200 as OrgsOrgCodespacesGetResponse200, ) - from .group_0845 import ( + from .group_0859 import ( OrgsOrgCodespacesAccessPutBody as OrgsOrgCodespacesAccessPutBody, ) - from .group_0846 import ( + from .group_0860 import ( OrgsOrgCodespacesAccessSelectedUsersPostBody as OrgsOrgCodespacesAccessSelectedUsersPostBody, ) - from .group_0847 import ( + from .group_0861 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) - from .group_0848 import CodespacesOrgSecret as CodespacesOrgSecret - from .group_0848 import ( + from .group_0862 import CodespacesOrgSecret as CodespacesOrgSecret + from .group_0862 import ( OrgsOrgCodespacesSecretsGetResponse200 as OrgsOrgCodespacesSecretsGetResponse200, ) - from .group_0849 import ( + from .group_0863 import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) - from .group_0850 import ( + from .group_0864 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0851 import ( + from .group_0865 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_0852 import ( + from .group_0866 import ( OrgsOrgCopilotBillingSelectedTeamsPostBody as OrgsOrgCopilotBillingSelectedTeamsPostBody, ) - from .group_0853 import ( + from .group_0867 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) - from .group_0854 import ( + from .group_0868 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBody as OrgsOrgCopilotBillingSelectedTeamsDeleteBody, ) - from .group_0855 import ( + from .group_0869 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, ) - from .group_0856 import ( + from .group_0870 import ( OrgsOrgCopilotBillingSelectedUsersPostBody as OrgsOrgCopilotBillingSelectedUsersPostBody, ) - from .group_0857 import ( + from .group_0871 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201, ) - from .group_0858 import ( + from .group_0872 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBody as OrgsOrgCopilotBillingSelectedUsersDeleteBody, ) - from .group_0859 import ( + from .group_0873 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, ) - from .group_0860 import OrganizationDependabotSecret as OrganizationDependabotSecret - from .group_0860 import ( + from .group_0874 import OrganizationDependabotSecret as OrganizationDependabotSecret + from .group_0874 import ( OrgsOrgDependabotSecretsGetResponse200 as OrgsOrgDependabotSecretsGetResponse200, ) - from .group_0861 import ( + from .group_0875 import ( OrgsOrgDependabotSecretsSecretNamePutBody as OrgsOrgDependabotSecretsSecretNamePutBody, ) - from .group_0862 import ( + from .group_0876 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0863 import ( + from .group_0877 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody, ) - from .group_0864 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody - from .group_0864 import ( + from .group_0878 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody + from .group_0878 import ( OrgsOrgHooksPostBodyPropConfig as OrgsOrgHooksPostBodyPropConfig, ) - from .group_0865 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody - from .group_0865 import ( + from .group_0879 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody + from .group_0879 import ( OrgsOrgHooksHookIdPatchBodyPropConfig as OrgsOrgHooksHookIdPatchBodyPropConfig, ) - from .group_0866 import ( + from .group_0880 import ( OrgsOrgHooksHookIdConfigPatchBody as OrgsOrgHooksHookIdConfigPatchBody, ) - from .group_0867 import ( + from .group_0881 import ( OrgsOrgInstallationsGetResponse200 as OrgsOrgInstallationsGetResponse200, ) - from .group_0868 import ( + from .group_0882 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1 as OrgsOrgInteractionLimitsGetResponse200Anyof1, ) - from .group_0869 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody - from .group_0870 import ( + from .group_0883 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody + from .group_0884 import ( OrgsOrgMembersUsernameCodespacesGetResponse200 as OrgsOrgMembersUsernameCodespacesGetResponse200, ) - from .group_0871 import ( + from .group_0885 import ( OrgsOrgMembershipsUsernamePutBody as OrgsOrgMembershipsUsernamePutBody, ) - from .group_0872 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody - from .group_0873 import ( + from .group_0886 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody + from .group_0887 import ( OrgsOrgOutsideCollaboratorsUsernamePutBody as OrgsOrgOutsideCollaboratorsUsernamePutBody, ) - from .group_0874 import ( + from .group_0888 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202 as OrgsOrgOutsideCollaboratorsUsernamePutResponse202, ) - from .group_0875 import ( + from .group_0889 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422 as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422, ) - from .group_0876 import ( + from .group_0890 import ( OrgsOrgPersonalAccessTokenRequestsPostBody as OrgsOrgPersonalAccessTokenRequestsPostBody, ) - from .group_0877 import ( + from .group_0891 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) - from .group_0878 import ( + from .group_0892 import ( OrgsOrgPersonalAccessTokensPostBody as OrgsOrgPersonalAccessTokensPostBody, ) - from .group_0879 import ( + from .group_0893 import ( OrgsOrgPersonalAccessTokensPatIdPostBody as OrgsOrgPersonalAccessTokensPatIdPostBody, ) - from .group_0880 import ( + from .group_0894 import ( OrgPrivateRegistryConfiguration as OrgPrivateRegistryConfiguration, ) - from .group_0880 import ( + from .group_0894 import ( OrgsOrgPrivateRegistriesGetResponse200 as OrgsOrgPrivateRegistriesGetResponse200, ) - from .group_0881 import ( + from .group_0895 import ( OrgsOrgPrivateRegistriesPostBody as OrgsOrgPrivateRegistriesPostBody, ) - from .group_0882 import ( + from .group_0896 import ( OrgsOrgPrivateRegistriesPublicKeyGetResponse200 as OrgsOrgPrivateRegistriesPublicKeyGetResponse200, ) - from .group_0883 import ( + from .group_0897 import ( OrgsOrgPrivateRegistriesSecretNamePatchBody as OrgsOrgPrivateRegistriesSecretNamePatchBody, ) - from .group_0884 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody - from .group_0885 import ( + from .group_0898 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody + from .group_0899 import ( OrgsOrgPropertiesSchemaPatchBody as OrgsOrgPropertiesSchemaPatchBody, ) - from .group_0886 import ( + from .group_0900 import ( OrgsOrgPropertiesValuesPatchBody as OrgsOrgPropertiesValuesPatchBody, ) - from .group_0887 import OrgsOrgReposPostBody as OrgsOrgReposPostBody - from .group_0887 import ( + from .group_0901 import OrgsOrgReposPostBody as OrgsOrgReposPostBody + from .group_0901 import ( OrgsOrgReposPostBodyPropCustomProperties as OrgsOrgReposPostBodyPropCustomProperties, ) - from .group_0888 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody - from .group_0889 import ( + from .group_0902 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody + from .group_0903 import ( OrgsOrgRulesetsRulesetIdPutBody as OrgsOrgRulesetsRulesetIdPutBody, ) - from .group_0890 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody - from .group_0891 import ( + from .group_0904 import NetworkConfiguration as NetworkConfiguration + from .group_0904 import ( + OrgsOrgSettingsNetworkConfigurationsGetResponse200 as OrgsOrgSettingsNetworkConfigurationsGetResponse200, + ) + from .group_0905 import ( + OrgsOrgSettingsNetworkConfigurationsPostBody as OrgsOrgSettingsNetworkConfigurationsPostBody, + ) + from .group_0906 import ( + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, + ) + from .group_0907 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody + from .group_0908 import ( OrgsOrgTeamsTeamSlugPatchBody as OrgsOrgTeamsTeamSlugPatchBody, ) - from .group_0892 import ( + from .group_0909 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsPostBody, ) - from .group_0893 import ( + from .group_0910 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, ) - from .group_0894 import ( + from .group_0911 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_0895 import ( + from .group_0912 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_0896 import ( + from .group_0913 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_0897 import ( + from .group_0914 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_0898 import ( + from .group_0915 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, ) - from .group_0899 import ( + from .group_0916 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, ) - from .group_0900 import ( + from .group_0917 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403 as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403, ) - from .group_0901 import ( + from .group_0918 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, ) - from .group_0902 import ( + from .group_0919 import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) - from .group_0903 import ( + from .group_0920 import ( ProjectsColumnsCardsCardIdDeleteResponse403 as ProjectsColumnsCardsCardIdDeleteResponse403, ) - from .group_0904 import ( + from .group_0921 import ( ProjectsColumnsCardsCardIdPatchBody as ProjectsColumnsCardsCardIdPatchBody, ) - from .group_0905 import ( + from .group_0922 import ( ProjectsColumnsCardsCardIdMovesPostBody as ProjectsColumnsCardsCardIdMovesPostBody, ) - from .group_0906 import ( + from .group_0923 import ( ProjectsColumnsCardsCardIdMovesPostResponse201 as ProjectsColumnsCardsCardIdMovesPostResponse201, ) - from .group_0907 import ( + from .group_0924 import ( ProjectsColumnsCardsCardIdMovesPostResponse403 as ProjectsColumnsCardsCardIdMovesPostResponse403, ) - from .group_0907 import ( + from .group_0924 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems, ) - from .group_0908 import ( + from .group_0925 import ( ProjectsColumnsCardsCardIdMovesPostResponse503 as ProjectsColumnsCardsCardIdMovesPostResponse503, ) - from .group_0908 import ( + from .group_0925 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems, ) - from .group_0909 import ( + from .group_0926 import ( ProjectsColumnsColumnIdPatchBody as ProjectsColumnsColumnIdPatchBody, ) - from .group_0910 import ( + from .group_0927 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0 as ProjectsColumnsColumnIdCardsPostBodyOneof0, ) - from .group_0911 import ( + from .group_0928 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1 as ProjectsColumnsColumnIdCardsPostBodyOneof1, ) - from .group_0912 import ( + from .group_0929 import ( ProjectsColumnsColumnIdCardsPostResponse503 as ProjectsColumnsColumnIdCardsPostResponse503, ) - from .group_0912 import ( + from .group_0929 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems, ) - from .group_0913 import ( + from .group_0930 import ( ProjectsColumnsColumnIdMovesPostBody as ProjectsColumnsColumnIdMovesPostBody, ) - from .group_0914 import ( + from .group_0931 import ( ProjectsColumnsColumnIdMovesPostResponse201 as ProjectsColumnsColumnIdMovesPostResponse201, ) - from .group_0915 import ( + from .group_0932 import ( ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403, ) - from .group_0916 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody - from .group_0917 import ( + from .group_0933 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody + from .group_0934 import ( ProjectsProjectIdPatchResponse403 as ProjectsProjectIdPatchResponse403, ) - from .group_0918 import ( + from .group_0935 import ( ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody, ) - from .group_0919 import ( + from .group_0936 import ( ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody, ) - from .group_0920 import ( + from .group_0937 import ( ReposOwnerRepoDeleteResponse403 as ReposOwnerRepoDeleteResponse403, ) - from .group_0921 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody - from .group_0921 import ( + from .group_0938 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_0938 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysis as ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, ) - from .group_0921 import ( + from .group_0938 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0921 import ( + from .group_0938 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning, ) - from .group_0921 import ( + from .group_0938 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection, ) - from .group_0921 import ( + from .group_0938 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) - from .group_0921 import ( + from .group_0938 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0922 import ( + from .group_0939 import ( ReposOwnerRepoActionsArtifactsGetResponse200 as ReposOwnerRepoActionsArtifactsGetResponse200, ) - from .group_0923 import ( + from .group_0940 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBody as ReposOwnerRepoActionsJobsJobIdRerunPostBody, ) - from .group_0924 import ( + from .group_0941 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBody as ReposOwnerRepoActionsOidcCustomizationSubPutBody, ) - from .group_0925 import ( + from .group_0942 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200 as ReposOwnerRepoActionsOrganizationSecretsGetResponse200, ) - from .group_0926 import ( + from .group_0943 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200 as ReposOwnerRepoActionsOrganizationVariablesGetResponse200, ) - from .group_0927 import ( + from .group_0944 import ( ReposOwnerRepoActionsPermissionsPutBody as ReposOwnerRepoActionsPermissionsPutBody, ) - from .group_0928 import ( + from .group_0945 import ( ReposOwnerRepoActionsRunnersGetResponse200 as ReposOwnerRepoActionsRunnersGetResponse200, ) - from .group_0929 import ( + from .group_0946 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, ) - from .group_0930 import ( + from .group_0947 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0931 import ( + from .group_0948 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0932 import ( + from .group_0949 import ( ReposOwnerRepoActionsRunsGetResponse200 as ReposOwnerRepoActionsRunsGetResponse200, ) - from .group_0933 import ( + from .group_0950 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200 as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200, ) - from .group_0934 import ( + from .group_0951 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200, ) - from .group_0935 import ( + from .group_0952 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200, ) - from .group_0936 import ( + from .group_0953 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, ) - from .group_0937 import ( + from .group_0954 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBody as ReposOwnerRepoActionsRunsRunIdRerunPostBody, ) - from .group_0938 import ( + from .group_0955 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) - from .group_0939 import ( + from .group_0956 import ( ReposOwnerRepoActionsSecretsGetResponse200 as ReposOwnerRepoActionsSecretsGetResponse200, ) - from .group_0940 import ( + from .group_0957 import ( ReposOwnerRepoActionsSecretsSecretNamePutBody as ReposOwnerRepoActionsSecretsSecretNamePutBody, ) - from .group_0941 import ( + from .group_0958 import ( ReposOwnerRepoActionsVariablesGetResponse200 as ReposOwnerRepoActionsVariablesGetResponse200, ) - from .group_0942 import ( + from .group_0959 import ( ReposOwnerRepoActionsVariablesPostBody as ReposOwnerRepoActionsVariablesPostBody, ) - from .group_0943 import ( + from .group_0960 import ( ReposOwnerRepoActionsVariablesNamePatchBody as ReposOwnerRepoActionsVariablesNamePatchBody, ) - from .group_0944 import ( + from .group_0961 import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) - from .group_0944 import Workflow as Workflow - from .group_0945 import ( + from .group_0961 import Workflow as Workflow + from .group_0962 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, ) - from .group_0945 import ( + from .group_0962 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) - from .group_0946 import ( + from .group_0963 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200 as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200, ) - from .group_0947 import ( + from .group_0964 import ( ReposOwnerRepoAttestationsPostBody as ReposOwnerRepoAttestationsPostBody, ) - from .group_0947 import ( + from .group_0964 import ( ReposOwnerRepoAttestationsPostBodyPropBundle as ReposOwnerRepoAttestationsPostBodyPropBundle, ) - from .group_0947 import ( + from .group_0964 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope, ) - from .group_0947 import ( + from .group_0964 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial, ) - from .group_0948 import ( + from .group_0965 import ( ReposOwnerRepoAttestationsPostResponse201 as ReposOwnerRepoAttestationsPostResponse201, ) - from .group_0949 import ( + from .group_0966 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200 as ReposOwnerRepoAttestationsSubjectDigestGetResponse200, ) - from .group_0949 import ( + from .group_0966 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_0949 import ( + from .group_0966 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_0949 import ( + from .group_0966 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_0949 import ( + from .group_0966 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) - from .group_0950 import ( + from .group_0967 import ( ReposOwnerRepoAutolinksPostBody as ReposOwnerRepoAutolinksPostBody, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBody as ReposOwnerRepoBranchesBranchProtectionPutBody, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, ) - from .group_0952 import ( + from .group_0969 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody, ) - from .group_0952 import ( + from .group_0969 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances, ) - from .group_0952 import ( + from .group_0969 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions, ) - from .group_0953 import ( + from .group_0970 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody, ) - from .group_0953 import ( + from .group_0970 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) - from .group_0954 import ( + from .group_0971 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) - from .group_0955 import ( + from .group_0972 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0, ) - from .group_0956 import ( + from .group_0973 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0, ) - from .group_0957 import ( + from .group_0974 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody, ) - from .group_0958 import ( + from .group_0975 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody, ) - from .group_0959 import ( + from .group_0976 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody, ) - from .group_0960 import ( + from .group_0977 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0, ) - from .group_0961 import ( + from .group_0978 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0, ) - from .group_0962 import ( + from .group_0979 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0, ) - from .group_0963 import ( + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody, ) - from .group_0964 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody, ) - from .group_0965 import ( + from .group_0982 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody, ) - from .group_0966 import ( + from .group_0983 import ( ReposOwnerRepoBranchesBranchRenamePostBody as ReposOwnerRepoBranchesBranchRenamePostBody, ) - from .group_0967 import ( + from .group_0984 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems as ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) - from .group_0967 import ( + from .group_0984 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) - from .group_0967 import ( + from .group_0984 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems, ) - from .group_0967 import ( + from .group_0984 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems, ) - from .group_0968 import ( + from .group_0985 import ( ReposOwnerRepoCheckRunsPostBodyOneof0 as ReposOwnerRepoCheckRunsPostBodyOneof0, ) - from .group_0969 import ( + from .group_0986 import ( ReposOwnerRepoCheckRunsPostBodyOneof1 as ReposOwnerRepoCheckRunsPostBodyOneof1, ) - from .group_0970 import ( + from .group_0987 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) - from .group_0970 import ( + from .group_0987 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) - from .group_0970 import ( + from .group_0987 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems, ) - from .group_0970 import ( + from .group_0987 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems, ) - from .group_0971 import ( + from .group_0988 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0, ) - from .group_0972 import ( + from .group_0989 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1, ) - from .group_0973 import ( + from .group_0990 import ( ReposOwnerRepoCheckSuitesPostBody as ReposOwnerRepoCheckSuitesPostBody, ) - from .group_0974 import ( + from .group_0991 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBody as ReposOwnerRepoCheckSuitesPreferencesPatchBody, ) - from .group_0974 import ( + from .group_0991 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) - from .group_0975 import ( + from .group_0992 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) - from .group_0976 import ( + from .group_0993 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody, ) - from .group_0977 import ( + from .group_0994 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0, ) - from .group_0978 import ( + from .group_0995 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1, ) - from .group_0979 import ( + from .group_0996 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2, ) - from .group_0980 import ( + from .group_0997 import ( ReposOwnerRepoCodeScanningSarifsPostBody as ReposOwnerRepoCodeScanningSarifsPostBody, ) - from .group_0981 import ( + from .group_0998 import ( ReposOwnerRepoCodespacesGetResponse200 as ReposOwnerRepoCodespacesGetResponse200, ) - from .group_0982 import ( + from .group_0999 import ( ReposOwnerRepoCodespacesPostBody as ReposOwnerRepoCodespacesPostBody, ) - from .group_0983 import ( + from .group_1000 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200 as ReposOwnerRepoCodespacesDevcontainersGetResponse200, ) - from .group_0983 import ( + from .group_1000 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems, ) - from .group_0984 import ( + from .group_1001 import ( ReposOwnerRepoCodespacesMachinesGetResponse200 as ReposOwnerRepoCodespacesMachinesGetResponse200, ) - from .group_0985 import ( + from .group_1002 import ( ReposOwnerRepoCodespacesNewGetResponse200 as ReposOwnerRepoCodespacesNewGetResponse200, ) - from .group_0985 import ( + from .group_1002 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) - from .group_0986 import RepoCodespacesSecret as RepoCodespacesSecret - from .group_0986 import ( + from .group_1003 import RepoCodespacesSecret as RepoCodespacesSecret + from .group_1003 import ( ReposOwnerRepoCodespacesSecretsGetResponse200 as ReposOwnerRepoCodespacesSecretsGetResponse200, ) - from .group_0987 import ( + from .group_1004 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBody as ReposOwnerRepoCodespacesSecretsSecretNamePutBody, ) - from .group_0988 import ( + from .group_1005 import ( ReposOwnerRepoCollaboratorsUsernamePutBody as ReposOwnerRepoCollaboratorsUsernamePutBody, ) - from .group_0989 import ( + from .group_1006 import ( ReposOwnerRepoCommentsCommentIdPatchBody as ReposOwnerRepoCommentsCommentIdPatchBody, ) - from .group_0990 import ( + from .group_1007 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBody as ReposOwnerRepoCommentsCommentIdReactionsPostBody, ) - from .group_0991 import ( + from .group_1008 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBody as ReposOwnerRepoCommitsCommitShaCommentsPostBody, ) - from .group_0992 import ( + from .group_1009 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200 as ReposOwnerRepoCommitsRefCheckRunsGetResponse200, ) - from .group_0993 import ( + from .group_1010 import ( ReposOwnerRepoContentsPathPutBody as ReposOwnerRepoContentsPathPutBody, ) - from .group_0993 import ( + from .group_1010 import ( ReposOwnerRepoContentsPathPutBodyPropAuthor as ReposOwnerRepoContentsPathPutBodyPropAuthor, ) - from .group_0993 import ( + from .group_1010 import ( ReposOwnerRepoContentsPathPutBodyPropCommitter as ReposOwnerRepoContentsPathPutBodyPropCommitter, ) - from .group_0994 import ( + from .group_1011 import ( ReposOwnerRepoContentsPathDeleteBody as ReposOwnerRepoContentsPathDeleteBody, ) - from .group_0994 import ( + from .group_1011 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthor as ReposOwnerRepoContentsPathDeleteBodyPropAuthor, ) - from .group_0994 import ( + from .group_1011 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitter as ReposOwnerRepoContentsPathDeleteBodyPropCommitter, ) - from .group_0995 import ( + from .group_1012 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBody as ReposOwnerRepoDependabotAlertsAlertNumberPatchBody, ) - from .group_0996 import DependabotSecret as DependabotSecret - from .group_0996 import ( + from .group_1013 import DependabotSecret as DependabotSecret + from .group_1013 import ( ReposOwnerRepoDependabotSecretsGetResponse200 as ReposOwnerRepoDependabotSecretsGetResponse200, ) - from .group_0997 import ( + from .group_1014 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBody as ReposOwnerRepoDependabotSecretsSecretNamePutBody, ) - from .group_0998 import ( + from .group_1015 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201 as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201, ) - from .group_0999 import ( + from .group_1016 import ( ReposOwnerRepoDeploymentsPostBody as ReposOwnerRepoDeploymentsPostBody, ) - from .group_0999 import ( + from .group_1016 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, ) - from .group_1000 import ( + from .group_1017 import ( ReposOwnerRepoDeploymentsPostResponse202 as ReposOwnerRepoDeploymentsPostResponse202, ) - from .group_1001 import ( + from .group_1018 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, ) - from .group_1002 import ( + from .group_1019 import ( ReposOwnerRepoDispatchesPostBody as ReposOwnerRepoDispatchesPostBody, ) - from .group_1002 import ( + from .group_1019 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayload as ReposOwnerRepoDispatchesPostBodyPropClientPayload, ) - from .group_1003 import ( + from .group_1020 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, ) - from .group_1003 import ( + from .group_1020 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems, ) - from .group_1004 import DeploymentBranchPolicy as DeploymentBranchPolicy - from .group_1004 import ( + from .group_1021 import DeploymentBranchPolicy as DeploymentBranchPolicy + from .group_1021 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) - from .group_1005 import ( + from .group_1022 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) - from .group_1006 import ( + from .group_1023 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) - from .group_1007 import ( + from .group_1024 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200, ) - from .group_1008 import ( + from .group_1025 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, ) - from .group_1009 import ( + from .group_1026 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200, ) - from .group_1010 import ( + from .group_1027 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, ) - from .group_1011 import ( + from .group_1028 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) - from .group_1012 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody - from .group_1013 import ( + from .group_1029 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody + from .group_1030 import ( ReposOwnerRepoGitBlobsPostBody as ReposOwnerRepoGitBlobsPostBody, ) - from .group_1014 import ( + from .group_1031 import ( ReposOwnerRepoGitCommitsPostBody as ReposOwnerRepoGitCommitsPostBody, ) - from .group_1014 import ( + from .group_1031 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthor as ReposOwnerRepoGitCommitsPostBodyPropAuthor, ) - from .group_1014 import ( + from .group_1031 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitter as ReposOwnerRepoGitCommitsPostBodyPropCommitter, ) - from .group_1015 import ( + from .group_1032 import ( ReposOwnerRepoGitRefsPostBody as ReposOwnerRepoGitRefsPostBody, ) - from .group_1016 import ( + from .group_1033 import ( ReposOwnerRepoGitRefsRefPatchBody as ReposOwnerRepoGitRefsRefPatchBody, ) - from .group_1017 import ( + from .group_1034 import ( ReposOwnerRepoGitTagsPostBody as ReposOwnerRepoGitTagsPostBody, ) - from .group_1017 import ( + from .group_1034 import ( ReposOwnerRepoGitTagsPostBodyPropTagger as ReposOwnerRepoGitTagsPostBodyPropTagger, ) - from .group_1018 import ( + from .group_1035 import ( ReposOwnerRepoGitTreesPostBody as ReposOwnerRepoGitTreesPostBody, ) - from .group_1018 import ( + from .group_1035 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItems as ReposOwnerRepoGitTreesPostBodyPropTreeItems, ) - from .group_1019 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody - from .group_1019 import ( + from .group_1036 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody + from .group_1036 import ( ReposOwnerRepoHooksPostBodyPropConfig as ReposOwnerRepoHooksPostBodyPropConfig, ) - from .group_1020 import ( + from .group_1037 import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) - from .group_1021 import ( + from .group_1038 import ( ReposOwnerRepoHooksHookIdConfigPatchBody as ReposOwnerRepoHooksHookIdConfigPatchBody, ) - from .group_1022 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody - from .group_1023 import ( + from .group_1039 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody + from .group_1040 import ( ReposOwnerRepoImportPatchBody as ReposOwnerRepoImportPatchBody, ) - from .group_1024 import ( + from .group_1041 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) - from .group_1025 import ( + from .group_1042 import ( ReposOwnerRepoImportLfsPatchBody as ReposOwnerRepoImportLfsPatchBody, ) - from .group_1026 import ( + from .group_1043 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1 as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1, ) - from .group_1027 import ( + from .group_1044 import ( ReposOwnerRepoInvitationsInvitationIdPatchBody as ReposOwnerRepoInvitationsInvitationIdPatchBody, ) - from .group_1028 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody - from .group_1028 import ( + from .group_1045 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody + from .group_1045 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1, ) - from .group_1029 import ( + from .group_1046 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBody as ReposOwnerRepoIssuesCommentsCommentIdPatchBody, ) - from .group_1030 import ( + from .group_1047 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody, ) - from .group_1031 import ( + from .group_1048 import ( ReposOwnerRepoIssuesIssueNumberPatchBody as ReposOwnerRepoIssuesIssueNumberPatchBody, ) - from .group_1031 import ( + from .group_1048 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1, ) - from .group_1032 import ( + from .group_1049 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBody as ReposOwnerRepoIssuesIssueNumberAssigneesPostBody, ) - from .group_1033 import ( + from .group_1050 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody, ) - from .group_1034 import ( + from .group_1051 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBody as ReposOwnerRepoIssuesIssueNumberCommentsPostBody, ) - from .group_1035 import ( + from .group_1052 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0, ) - from .group_1036 import ( + from .group_1053 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) - from .group_1036 import ( + from .group_1053 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems, ) - from .group_1037 import ( + from .group_1054 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items, ) - from .group_1038 import ( + from .group_1055 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0, ) - from .group_1039 import ( + from .group_1056 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2, ) - from .group_1039 import ( + from .group_1056 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems, ) - from .group_1040 import ( + from .group_1057 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) - from .group_1041 import ( + from .group_1058 import ( ReposOwnerRepoIssuesIssueNumberLockPutBody as ReposOwnerRepoIssuesIssueNumberLockPutBody, ) - from .group_1042 import ( + from .group_1059 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBody as ReposOwnerRepoIssuesIssueNumberReactionsPostBody, ) - from .group_1043 import ( + from .group_1060 import ( ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody as ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody, ) - from .group_1044 import ( + from .group_1061 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody as ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody, ) - from .group_1045 import ( + from .group_1062 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody as ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody, ) - from .group_1046 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody - from .group_1047 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody - from .group_1048 import ( + from .group_1063 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody + from .group_1064 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody + from .group_1065 import ( ReposOwnerRepoLabelsNamePatchBody as ReposOwnerRepoLabelsNamePatchBody, ) - from .group_1049 import ( + from .group_1066 import ( ReposOwnerRepoMergeUpstreamPostBody as ReposOwnerRepoMergeUpstreamPostBody, ) - from .group_1050 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody - from .group_1051 import ( + from .group_1067 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody + from .group_1068 import ( ReposOwnerRepoMilestonesPostBody as ReposOwnerRepoMilestonesPostBody, ) - from .group_1052 import ( + from .group_1069 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBody as ReposOwnerRepoMilestonesMilestoneNumberPatchBody, ) - from .group_1053 import ( + from .group_1070 import ( ReposOwnerRepoNotificationsPutBody as ReposOwnerRepoNotificationsPutBody, ) - from .group_1054 import ( + from .group_1071 import ( ReposOwnerRepoNotificationsPutResponse202 as ReposOwnerRepoNotificationsPutResponse202, ) - from .group_1055 import ( + from .group_1072 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1 as ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ) - from .group_1056 import ( + from .group_1073 import ( ReposOwnerRepoPagesPutBodyAnyof0 as ReposOwnerRepoPagesPutBodyAnyof0, ) - from .group_1057 import ( + from .group_1074 import ( ReposOwnerRepoPagesPutBodyAnyof1 as ReposOwnerRepoPagesPutBodyAnyof1, ) - from .group_1058 import ( + from .group_1075 import ( ReposOwnerRepoPagesPutBodyAnyof2 as ReposOwnerRepoPagesPutBodyAnyof2, ) - from .group_1059 import ( + from .group_1076 import ( ReposOwnerRepoPagesPutBodyAnyof3 as ReposOwnerRepoPagesPutBodyAnyof3, ) - from .group_1060 import ( + from .group_1077 import ( ReposOwnerRepoPagesPutBodyAnyof4 as ReposOwnerRepoPagesPutBodyAnyof4, ) - from .group_1061 import ( + from .group_1078 import ( ReposOwnerRepoPagesPostBodyPropSource as ReposOwnerRepoPagesPostBodyPropSource, ) - from .group_1062 import ( + from .group_1079 import ( ReposOwnerRepoPagesPostBodyAnyof0 as ReposOwnerRepoPagesPostBodyAnyof0, ) - from .group_1063 import ( + from .group_1080 import ( ReposOwnerRepoPagesPostBodyAnyof1 as ReposOwnerRepoPagesPostBodyAnyof1, ) - from .group_1064 import ( + from .group_1081 import ( ReposOwnerRepoPagesDeploymentsPostBody as ReposOwnerRepoPagesDeploymentsPostBody, ) - from .group_1065 import ( + from .group_1082 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200 as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ) - from .group_1066 import ( + from .group_1083 import ( ReposOwnerRepoProjectsPostBody as ReposOwnerRepoProjectsPostBody, ) - from .group_1067 import ( + from .group_1084 import ( ReposOwnerRepoPropertiesValuesPatchBody as ReposOwnerRepoPropertiesValuesPatchBody, ) - from .group_1068 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody - from .group_1069 import ( + from .group_1085 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody + from .group_1086 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBody as ReposOwnerRepoPullsCommentsCommentIdPatchBody, ) - from .group_1070 import ( + from .group_1087 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody, ) - from .group_1071 import ( + from .group_1088 import ( ReposOwnerRepoPullsPullNumberPatchBody as ReposOwnerRepoPullsPullNumberPatchBody, ) - from .group_1072 import ( + from .group_1089 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBody as ReposOwnerRepoPullsPullNumberCodespacesPostBody, ) - from .group_1073 import ( + from .group_1090 import ( ReposOwnerRepoPullsPullNumberCommentsPostBody as ReposOwnerRepoPullsPullNumberCommentsPostBody, ) - from .group_1074 import ( + from .group_1091 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody, ) - from .group_1075 import ( + from .group_1092 import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from .group_1076 import ( + from .group_1093 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405 as ReposOwnerRepoPullsPullNumberMergePutResponse405, ) - from .group_1077 import ( + from .group_1094 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409 as ReposOwnerRepoPullsPullNumberMergePutResponse409, ) - from .group_1078 import ( + from .group_1095 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0, ) - from .group_1079 import ( + from .group_1096 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1, ) - from .group_1080 import ( + from .group_1097 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody, ) - from .group_1081 import ( + from .group_1098 import ( ReposOwnerRepoPullsPullNumberReviewsPostBody as ReposOwnerRepoPullsPullNumberReviewsPostBody, ) - from .group_1081 import ( + from .group_1098 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems, ) - from .group_1082 import ( + from .group_1099 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody, ) - from .group_1083 import ( + from .group_1100 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody, ) - from .group_1084 import ( + from .group_1101 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody, ) - from .group_1085 import ( + from .group_1102 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBody as ReposOwnerRepoPullsPullNumberUpdateBranchPutBody, ) - from .group_1086 import ( + from .group_1103 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202 as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202, ) - from .group_1087 import ( + from .group_1104 import ( ReposOwnerRepoReleasesPostBody as ReposOwnerRepoReleasesPostBody, ) - from .group_1088 import ( + from .group_1105 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBody as ReposOwnerRepoReleasesAssetsAssetIdPatchBody, ) - from .group_1089 import ( + from .group_1106 import ( ReposOwnerRepoReleasesGenerateNotesPostBody as ReposOwnerRepoReleasesGenerateNotesPostBody, ) - from .group_1090 import ( + from .group_1107 import ( ReposOwnerRepoReleasesReleaseIdPatchBody as ReposOwnerRepoReleasesReleaseIdPatchBody, ) - from .group_1091 import ( + from .group_1108 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBody as ReposOwnerRepoReleasesReleaseIdReactionsPostBody, ) - from .group_1092 import ( + from .group_1109 import ( ReposOwnerRepoRulesetsPostBody as ReposOwnerRepoRulesetsPostBody, ) - from .group_1093 import ( + from .group_1110 import ( ReposOwnerRepoRulesetsRulesetIdPutBody as ReposOwnerRepoRulesetsRulesetIdPutBody, ) - from .group_1094 import ( + from .group_1111 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, ) - from .group_1095 import ( + from .group_1112 import ( ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody as ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody, ) - from .group_1096 import ( + from .group_1113 import ( ReposOwnerRepoStatusesShaPostBody as ReposOwnerRepoStatusesShaPostBody, ) - from .group_1097 import ( + from .group_1114 import ( ReposOwnerRepoSubscriptionPutBody as ReposOwnerRepoSubscriptionPutBody, ) - from .group_1098 import ( + from .group_1115 import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) - from .group_1099 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody - from .group_1100 import ( + from .group_1116 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody + from .group_1117 import ( ReposOwnerRepoTransferPostBody as ReposOwnerRepoTransferPostBody, ) - from .group_1101 import ( + from .group_1118 import ( ReposTemplateOwnerTemplateRepoGeneratePostBody as ReposTemplateOwnerTemplateRepoGeneratePostBody, ) - from .group_1102 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody - from .group_1103 import ( + from .group_1119 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody + from .group_1120 import ( TeamsTeamIdDiscussionsPostBody as TeamsTeamIdDiscussionsPostBody, ) - from .group_1104 import ( + from .group_1121 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberPatchBody, ) - from .group_1105 import ( + from .group_1122 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_1106 import ( + from .group_1123 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_1107 import ( + from .group_1124 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_1108 import ( + from .group_1125 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_1109 import ( + from .group_1126 import ( TeamsTeamIdMembershipsUsernamePutBody as TeamsTeamIdMembershipsUsernamePutBody, ) - from .group_1110 import ( + from .group_1127 import ( TeamsTeamIdProjectsProjectIdPutBody as TeamsTeamIdProjectsProjectIdPutBody, ) - from .group_1111 import ( + from .group_1128 import ( TeamsTeamIdProjectsProjectIdPutResponse403 as TeamsTeamIdProjectsProjectIdPutResponse403, ) - from .group_1112 import ( + from .group_1129 import ( TeamsTeamIdReposOwnerRepoPutBody as TeamsTeamIdReposOwnerRepoPutBody, ) - from .group_1113 import UserPatchBody as UserPatchBody - from .group_1114 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 - from .group_1115 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 - from .group_1116 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 - from .group_1116 import ( + from .group_1130 import UserPatchBody as UserPatchBody + from .group_1131 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 + from .group_1132 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 + from .group_1133 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 + from .group_1133 import ( UserCodespacesPostBodyOneof1PropPullRequest as UserCodespacesPostBodyOneof1PropPullRequest, ) - from .group_1117 import CodespacesSecret as CodespacesSecret - from .group_1117 import ( + from .group_1134 import CodespacesSecret as CodespacesSecret + from .group_1134 import ( UserCodespacesSecretsGetResponse200 as UserCodespacesSecretsGetResponse200, ) - from .group_1118 import ( + from .group_1135 import ( UserCodespacesSecretsSecretNamePutBody as UserCodespacesSecretsSecretNamePutBody, ) - from .group_1119 import ( + from .group_1136 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200 as UserCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1120 import ( + from .group_1137 import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_1121 import ( + from .group_1138 import ( UserCodespacesCodespaceNamePatchBody as UserCodespacesCodespaceNamePatchBody, ) - from .group_1122 import ( + from .group_1139 import ( UserCodespacesCodespaceNameMachinesGetResponse200 as UserCodespacesCodespaceNameMachinesGetResponse200, ) - from .group_1123 import ( + from .group_1140 import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) - from .group_1124 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody - from .group_1125 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 - from .group_1126 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 - from .group_1127 import UserGpgKeysPostBody as UserGpgKeysPostBody - from .group_1128 import ( + from .group_1141 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody + from .group_1142 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 + from .group_1143 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 + from .group_1144 import UserGpgKeysPostBody as UserGpgKeysPostBody + from .group_1145 import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) - from .group_1129 import ( + from .group_1146 import ( UserInstallationsInstallationIdRepositoriesGetResponse200 as UserInstallationsInstallationIdRepositoriesGetResponse200, ) - from .group_1130 import ( + from .group_1147 import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) - from .group_1131 import UserKeysPostBody as UserKeysPostBody - from .group_1132 import ( + from .group_1148 import UserKeysPostBody as UserKeysPostBody + from .group_1149 import ( UserMembershipsOrgsOrgPatchBody as UserMembershipsOrgsOrgPatchBody, ) - from .group_1133 import UserMigrationsPostBody as UserMigrationsPostBody - from .group_1134 import UserProjectsPostBody as UserProjectsPostBody - from .group_1135 import UserReposPostBody as UserReposPostBody - from .group_1136 import UserSocialAccountsPostBody as UserSocialAccountsPostBody - from .group_1137 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody - from .group_1138 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody - from .group_1139 import SigstoreBundle0 as SigstoreBundle0 - from .group_1139 import ( + from .group_1150 import UserMigrationsPostBody as UserMigrationsPostBody + from .group_1151 import UserProjectsPostBody as UserProjectsPostBody + from .group_1152 import UserReposPostBody as UserReposPostBody + from .group_1153 import UserSocialAccountsPostBody as UserSocialAccountsPostBody + from .group_1154 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody + from .group_1155 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody + from .group_1156 import SigstoreBundle0 as SigstoreBundle0 + from .group_1156 import ( SigstoreBundle0PropDsseEnvelope as SigstoreBundle0PropDsseEnvelope, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropDsseEnvelopePropSignaturesItems as SigstoreBundle0PropDsseEnvelopePropSignaturesItems, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterial as SigstoreBundle0PropVerificationMaterial, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChain as SigstoreBundle0PropVerificationMaterialPropX509CertificateChain, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems, ) - from .group_1139 import ( + from .group_1156 import ( UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, ) - from .group_1139 import ( + from .group_1156 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) else: @@ -8483,29 +8532,30 @@ "CvssSeveritiesPropCvssV3", "CvssSeveritiesPropCvssV4", ), - ".group_0002": ("SimpleUser",), - ".group_0003": ( + ".group_0002": ("SecurityAdvisoryEpss",), + ".group_0003": ("SimpleUser",), + ".group_0004": ( "GlobalAdvisory", "GlobalAdvisoryPropIdentifiersItems", "GlobalAdvisoryPropCvss", "GlobalAdvisoryPropCwesItems", - "GlobalAdvisoryPropEpss", "Vulnerability", "VulnerabilityPropPackage", ), - ".group_0004": ("GlobalAdvisoryPropCreditsItems",), - ".group_0005": ("BasicError",), - ".group_0006": ("ValidationErrorSimple",), - ".group_0007": ("IntegrationPropPermissions",), - ".group_0008": ("Integration",), - ".group_0009": ("WebhookConfig",), - ".group_0010": ("HookDeliveryItem",), - ".group_0011": ("ScimError",), - ".group_0012": ( + ".group_0005": ("GlobalAdvisoryPropCreditsItems",), + ".group_0006": ("BasicError",), + ".group_0007": ("ValidationErrorSimple",), + ".group_0008": ("Enterprise",), + ".group_0009": ("IntegrationPropPermissions",), + ".group_0010": ("Integration",), + ".group_0011": ("WebhookConfig",), + ".group_0012": ("HookDeliveryItem",), + ".group_0013": ("ScimError",), + ".group_0014": ( "ValidationError", "ValidationErrorPropErrorsItems", ), - ".group_0013": ( + ".group_0015": ( "HookDelivery", "HookDeliveryPropRequest", "HookDeliveryPropRequestPropHeaders", @@ -8513,119 +8563,118 @@ "HookDeliveryPropResponse", "HookDeliveryPropResponsePropHeaders", ), - ".group_0014": ("Enterprise",), - ".group_0015": ("IntegrationInstallationRequest",), - ".group_0016": ("AppPermissions",), - ".group_0017": ("Installation",), - ".group_0018": ("LicenseSimple",), - ".group_0019": ( + ".group_0016": ("IntegrationInstallationRequest",), + ".group_0017": ("AppPermissions",), + ".group_0018": ("Installation",), + ".group_0019": ("LicenseSimple",), + ".group_0020": ( "Repository", "RepositoryPropPermissions", ), - ".group_0020": ("InstallationToken",), - ".group_0021": ("ScopedInstallation",), - ".group_0022": ( + ".group_0021": ("InstallationToken",), + ".group_0022": ("ScopedInstallation",), + ".group_0023": ( "Authorization", "AuthorizationPropApp", ), - ".group_0023": ("SimpleClassroomRepository",), - ".group_0024": ( + ".group_0024": ("SimpleClassroomRepository",), + ".group_0025": ( "ClassroomAssignment", "Classroom", "SimpleClassroomOrganization", ), - ".group_0025": ( + ".group_0026": ( "ClassroomAcceptedAssignment", "SimpleClassroomUser", "SimpleClassroomAssignment", "SimpleClassroom", ), - ".group_0026": ("ClassroomAssignmentGrade",), - ".group_0027": ( + ".group_0027": ("ClassroomAssignmentGrade",), + ".group_0028": ( "CodeSecurityConfiguration", "CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions", "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0028": ("CodeScanningDefaultSetupOptions",), - ".group_0029": ("CodeSecurityDefaultConfigurationsItems",), - ".group_0030": ("SimpleRepository",), - ".group_0031": ("CodeSecurityConfigurationRepositories",), - ".group_0032": ("DependabotAlertPackage",), - ".group_0033": ( + ".group_0029": ("CodeScanningDefaultSetupOptions",), + ".group_0030": ("CodeSecurityDefaultConfigurationsItems",), + ".group_0031": ("SimpleRepository",), + ".group_0032": ("CodeSecurityConfigurationRepositories",), + ".group_0033": ("DependabotAlertPackage",), + ".group_0034": ( "DependabotAlertSecurityVulnerability", "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", ), - ".group_0034": ( + ".group_0035": ( "DependabotAlertSecurityAdvisory", "DependabotAlertSecurityAdvisoryPropCvss", "DependabotAlertSecurityAdvisoryPropCwesItems", "DependabotAlertSecurityAdvisoryPropIdentifiersItems", "DependabotAlertSecurityAdvisoryPropReferencesItems", ), - ".group_0035": ("DependabotAlertWithRepository",), - ".group_0036": ("DependabotAlertWithRepositoryPropDependency",), - ".group_0037": ("OrganizationSecretScanningAlert",), - ".group_0038": ("Milestone",), - ".group_0039": ("ReactionRollup",), - ".group_0040": ( + ".group_0036": ("DependabotAlertWithRepository",), + ".group_0037": ("DependabotAlertWithRepositoryPropDependency",), + ".group_0038": ("OrganizationSecretScanningAlert",), + ".group_0039": ("Milestone",), + ".group_0040": ("ReactionRollup",), + ".group_0041": ( "Issue", "SubIssuesSummary", "IssuePropLabelsItemsOneof1", "IssuePropPullRequest", ), - ".group_0041": ("IssueComment",), - ".group_0042": ( + ".group_0042": ("IssueComment",), + ".group_0043": ( "EventPropPayload", "EventPropPayloadPropPagesItems", "Event", "Actor", "EventPropRepo", ), - ".group_0043": ( + ".group_0044": ( "Feed", "FeedPropLinks", "LinkWithType", ), - ".group_0044": ( + ".group_0045": ( "BaseGist", "BaseGistPropFiles", ), - ".group_0045": ( + ".group_0046": ( "GistHistory", "GistHistoryPropChangeStatus", "GistSimplePropForkOf", "GistSimplePropForkOfPropFiles", ), - ".group_0046": ( + ".group_0047": ( "GistSimple", "GistSimplePropFiles", "GistSimplePropForksItems", "PublicUser", "PublicUserPropPlan", ), - ".group_0047": ("GistComment",), - ".group_0048": ( + ".group_0048": ("GistComment",), + ".group_0049": ( "GistCommit", "GistCommitPropChangeStatus", ), - ".group_0049": ("GitignoreTemplate",), - ".group_0050": ("License",), - ".group_0051": ("MarketplaceListingPlan",), - ".group_0052": ("MarketplacePurchase",), - ".group_0053": ( + ".group_0050": ("GitignoreTemplate",), + ".group_0051": ("License",), + ".group_0052": ("MarketplaceListingPlan",), + ".group_0053": ("MarketplacePurchase",), + ".group_0054": ( "MarketplacePurchasePropMarketplacePendingChange", "MarketplacePurchasePropMarketplacePurchase", ), - ".group_0054": ( + ".group_0055": ( "ApiOverview", "ApiOverviewPropSshKeyFingerprints", "ApiOverviewPropDomains", "ApiOverviewPropDomainsPropActionsInbound", "ApiOverviewPropDomainsPropArtifactAttestations", ), - ".group_0055": ( + ".group_0056": ( "SecurityAndAnalysis", "SecurityAndAnalysisPropAdvancedSecurity", "SecurityAndAnalysisPropDependabotSecurityUpdates", @@ -8634,70 +8683,81 @@ "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", "SecurityAndAnalysisPropSecretScanningAiDetection", ), - ".group_0056": ( + ".group_0057": ( "MinimalRepository", "CodeOfConduct", "MinimalRepositoryPropPermissions", "MinimalRepositoryPropLicense", ), - ".group_0057": ( + ".group_0058": ( "Thread", "ThreadPropSubject", ), - ".group_0058": ("ThreadSubscription",), - ".group_0059": ("OrganizationSimple",), - ".group_0060": ( + ".group_0059": ("ThreadSubscription",), + ".group_0060": ("OrganizationSimple",), + ".group_0061": ( "BillingUsageReport", "BillingUsageReportPropUsageItemsItems", ), - ".group_0061": ( + ".group_0062": ( "OrganizationFull", "OrganizationFullPropPlan", ), - ".group_0062": ("ActionsCacheUsageOrgEnterprise",), - ".group_0063": ("OidcCustomSub",), - ".group_0064": ("ActionsOrganizationPermissions",), - ".group_0065": ("SelectedActions",), - ".group_0066": ("ActionsGetDefaultWorkflowPermissions",), - ".group_0067": ("ActionsSetDefaultWorkflowPermissions",), - ".group_0068": ("RunnerLabel",), - ".group_0069": ("Runner",), - ".group_0070": ("RunnerApplication",), - ".group_0071": ( + ".group_0063": ("ActionsCacheUsageOrgEnterprise",), + ".group_0064": ("ActionsHostedRunnerMachineSpec",), + ".group_0065": ( + "ActionsHostedRunner", + "ActionsHostedRunnerPoolImage", + "PublicIp", + ), + ".group_0066": ("ActionsHostedRunnerImage",), + ".group_0067": ( + "ActionsHostedRunnerLimits", + "ActionsHostedRunnerLimitsPropPublicIps", + ), + ".group_0068": ("OidcCustomSub",), + ".group_0069": ("ActionsOrganizationPermissions",), + ".group_0070": ("SelectedActions",), + ".group_0071": ("ActionsGetDefaultWorkflowPermissions",), + ".group_0072": ("ActionsSetDefaultWorkflowPermissions",), + ".group_0073": ("RunnerLabel",), + ".group_0074": ("Runner",), + ".group_0075": ("RunnerApplication",), + ".group_0076": ( "AuthenticationToken", "AuthenticationTokenPropPermissions", ), - ".group_0072": ("ActionsPublicKey",), - ".group_0073": ("CodeScanningAlertRuleSummary",), - ".group_0074": ("CodeScanningAnalysisTool",), - ".group_0075": ( + ".group_0077": ("ActionsPublicKey",), + ".group_0078": ("CodeScanningAlertRuleSummary",), + ".group_0079": ("CodeScanningAnalysisTool",), + ".group_0080": ( "CodeScanningAlertInstance", "CodeScanningAlertLocation", "CodeScanningAlertInstancePropMessage", ), - ".group_0076": ("CodeScanningOrganizationAlertItems",), - ".group_0077": ("CodespaceMachine",), - ".group_0078": ( + ".group_0081": ("CodeScanningOrganizationAlertItems",), + ".group_0082": ("CodespaceMachine",), + ".group_0083": ( "Codespace", "CodespacePropGitStatus", "CodespacePropRuntimeConstraints", ), - ".group_0079": ("CodespacesPublicKey",), - ".group_0080": ( + ".group_0084": ("CodespacesPublicKey",), + ".group_0085": ( "CopilotOrganizationDetails", "CopilotSeatBreakdown", ), - ".group_0081": ("TeamSimple",), - ".group_0082": ( + ".group_0086": ("TeamSimple",), + ".group_0087": ( "Team", "TeamPropPermissions", ), - ".group_0083": ( + ".group_0088": ( "CopilotSeatDetails", "EnterpriseTeam", "OrgsOrgCopilotBillingSeatsGetResponse200", ), - ".group_0084": ( + ".group_0089": ( "CopilotUsageMetricsDay", "CopilotDotcomChat", "CopilotDotcomChatPropModelsItems", @@ -8713,90 +8773,90 @@ "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", ), - ".group_0085": ( + ".group_0090": ( "CopilotUsageMetrics", "CopilotUsageMetricsPropBreakdownItems", ), - ".group_0086": ("DependabotPublicKey",), - ".group_0087": ("Package",), - ".group_0088": ("OrganizationInvitation",), - ".group_0089": ( + ".group_0091": ("DependabotPublicKey",), + ".group_0092": ("Package",), + ".group_0093": ("OrganizationInvitation",), + ".group_0094": ( "OrgHook", "OrgHookPropConfig", ), - ".group_0090": ("ApiInsightsRouteStatsItems",), - ".group_0091": ("ApiInsightsSubjectStatsItems",), - ".group_0092": ("ApiInsightsSummaryStats",), - ".group_0093": ("ApiInsightsTimeStatsItems",), - ".group_0094": ("ApiInsightsUserStatsItems",), - ".group_0095": ("InteractionLimitResponse",), - ".group_0096": ("InteractionLimit",), - ".group_0097": ( + ".group_0095": ("ApiInsightsRouteStatsItems",), + ".group_0096": ("ApiInsightsSubjectStatsItems",), + ".group_0097": ("ApiInsightsSummaryStats",), + ".group_0098": ("ApiInsightsTimeStatsItems",), + ".group_0099": ("ApiInsightsUserStatsItems",), + ".group_0100": ("InteractionLimitResponse",), + ".group_0101": ("InteractionLimit",), + ".group_0102": ( "OrgMembership", "OrgMembershipPropPermissions", ), - ".group_0098": ("Migration",), - ".group_0099": ( + ".group_0103": ("Migration",), + ".group_0104": ( "OrganizationRole", "OrgsOrgOrganizationRolesGetResponse200", ), - ".group_0100": ( + ".group_0105": ( "TeamRoleAssignment", "TeamRoleAssignmentPropPermissions", ), - ".group_0101": ("UserRoleAssignment",), - ".group_0102": ( + ".group_0106": ("UserRoleAssignment",), + ".group_0107": ( "PackageVersion", "PackageVersionPropMetadata", "PackageVersionPropMetadataPropContainer", "PackageVersionPropMetadataPropDocker", ), - ".group_0103": ( + ".group_0108": ( "OrganizationProgrammaticAccessGrantRequest", "OrganizationProgrammaticAccessGrantRequestPropPermissions", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", ), - ".group_0104": ( + ".group_0109": ( "OrganizationProgrammaticAccessGrant", "OrganizationProgrammaticAccessGrantPropPermissions", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", ), - ".group_0105": ("OrgPrivateRegistryConfigurationWithSelectedRepositories",), - ".group_0106": ("Project",), - ".group_0107": ("CustomProperty",), - ".group_0108": ("CustomPropertySetPayload",), - ".group_0109": ("CustomPropertyValue",), - ".group_0110": ("OrgRepoCustomPropertyValues",), - ".group_0111": ("CodeOfConductSimple",), - ".group_0112": ( + ".group_0110": ("OrgPrivateRegistryConfigurationWithSelectedRepositories",), + ".group_0111": ("Project",), + ".group_0112": ("CustomProperty",), + ".group_0113": ("CustomPropertySetPayload",), + ".group_0114": ("CustomPropertyValue",), + ".group_0115": ("OrgRepoCustomPropertyValues",), + ".group_0116": ("CodeOfConductSimple",), + ".group_0117": ( "FullRepository", "FullRepositoryPropPermissions", "FullRepositoryPropCustomProperties", ), - ".group_0113": ("RepositoryRulesetBypassActor",), - ".group_0114": ("RepositoryRulesetConditions",), - ".group_0115": ("RepositoryRulesetConditionsPropRefName",), - ".group_0116": ("RepositoryRulesetConditionsRepositoryNameTarget",), - ".group_0117": ( + ".group_0118": ("RepositoryRulesetBypassActor",), + ".group_0119": ("RepositoryRulesetConditions",), + ".group_0120": ("RepositoryRulesetConditionsPropRefName",), + ".group_0121": ("RepositoryRulesetConditionsRepositoryNameTarget",), + ".group_0122": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName", ), - ".group_0118": ("RepositoryRulesetConditionsRepositoryIdTarget",), - ".group_0119": ( + ".group_0123": ("RepositoryRulesetConditionsRepositoryIdTarget",), + ".group_0124": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId", ), - ".group_0120": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), - ".group_0121": ( + ".group_0125": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), + ".group_0126": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", "RepositoryRulesetConditionsRepositoryPropertySpec", ), - ".group_0122": ("OrgRulesetConditionsOneof0",), - ".group_0123": ("OrgRulesetConditionsOneof1",), - ".group_0124": ("OrgRulesetConditionsOneof2",), - ".group_0125": ( + ".group_0127": ("OrgRulesetConditionsOneof0",), + ".group_0128": ("OrgRulesetConditionsOneof1",), + ".group_0129": ("OrgRulesetConditionsOneof2",), + ".group_0130": ( "RepositoryRuleCreation", "RepositoryRuleDeletion", "RepositoryRuleRequiredSignatures", @@ -8806,64 +8866,64 @@ "RepositoryRuleOneof17", "RepositoryRuleOneof17PropParameters", ), - ".group_0126": ("RepositoryRuleUpdate",), - ".group_0127": ("RepositoryRuleUpdatePropParameters",), - ".group_0128": ( + ".group_0131": ("RepositoryRuleUpdate",), + ".group_0132": ("RepositoryRuleUpdatePropParameters",), + ".group_0133": ( "RepositoryRuleRequiredLinearHistory", "RepositoryRuleOneof16", "RepositoryRuleOneof16PropParameters", ), - ".group_0129": ("RepositoryRuleMergeQueue",), - ".group_0130": ("RepositoryRuleMergeQueuePropParameters",), - ".group_0131": ("RepositoryRuleRequiredDeployments",), - ".group_0132": ("RepositoryRuleRequiredDeploymentsPropParameters",), - ".group_0133": ("RepositoryRuleParamsRequiredReviewerConfiguration",), - ".group_0134": ("RepositoryRulePullRequest",), - ".group_0135": ("RepositoryRulePullRequestPropParameters",), - ".group_0136": ("RepositoryRuleRequiredStatusChecks",), - ".group_0137": ( + ".group_0134": ("RepositoryRuleMergeQueue",), + ".group_0135": ("RepositoryRuleMergeQueuePropParameters",), + ".group_0136": ("RepositoryRuleRequiredDeployments",), + ".group_0137": ("RepositoryRuleRequiredDeploymentsPropParameters",), + ".group_0138": ("RepositoryRuleParamsRequiredReviewerConfiguration",), + ".group_0139": ("RepositoryRulePullRequest",), + ".group_0140": ("RepositoryRulePullRequestPropParameters",), + ".group_0141": ("RepositoryRuleRequiredStatusChecks",), + ".group_0142": ( "RepositoryRuleRequiredStatusChecksPropParameters", "RepositoryRuleParamsStatusCheckConfiguration", ), - ".group_0138": ("RepositoryRuleCommitMessagePattern",), - ".group_0139": ("RepositoryRuleCommitMessagePatternPropParameters",), - ".group_0140": ("RepositoryRuleCommitAuthorEmailPattern",), - ".group_0141": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), - ".group_0142": ("RepositoryRuleCommitterEmailPattern",), - ".group_0143": ("RepositoryRuleCommitterEmailPatternPropParameters",), - ".group_0144": ("RepositoryRuleBranchNamePattern",), - ".group_0145": ("RepositoryRuleBranchNamePatternPropParameters",), - ".group_0146": ("RepositoryRuleTagNamePattern",), - ".group_0147": ("RepositoryRuleTagNamePatternPropParameters",), - ".group_0148": ("RepositoryRuleParamsRestrictedCommits",), - ".group_0149": ("RepositoryRuleWorkflows",), - ".group_0150": ( + ".group_0143": ("RepositoryRuleCommitMessagePattern",), + ".group_0144": ("RepositoryRuleCommitMessagePatternPropParameters",), + ".group_0145": ("RepositoryRuleCommitAuthorEmailPattern",), + ".group_0146": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), + ".group_0147": ("RepositoryRuleCommitterEmailPattern",), + ".group_0148": ("RepositoryRuleCommitterEmailPatternPropParameters",), + ".group_0149": ("RepositoryRuleBranchNamePattern",), + ".group_0150": ("RepositoryRuleBranchNamePatternPropParameters",), + ".group_0151": ("RepositoryRuleTagNamePattern",), + ".group_0152": ("RepositoryRuleTagNamePatternPropParameters",), + ".group_0153": ("RepositoryRuleParamsRestrictedCommits",), + ".group_0154": ("RepositoryRuleWorkflows",), + ".group_0155": ( "RepositoryRuleWorkflowsPropParameters", "RepositoryRuleParamsWorkflowFileReference", ), - ".group_0151": ("RepositoryRuleCodeScanning",), - ".group_0152": ( + ".group_0156": ("RepositoryRuleCodeScanning",), + ".group_0157": ( "RepositoryRuleCodeScanningPropParameters", "RepositoryRuleParamsCodeScanningTool", ), - ".group_0153": ( + ".group_0158": ( "RepositoryRuleOneof18", "RepositoryRuleOneof18PropParameters", ), - ".group_0154": ( + ".group_0159": ( "RepositoryRuleset", "RepositoryRulesetPropLinks", "RepositoryRulesetPropLinksPropSelf", "RepositoryRulesetPropLinksPropHtml", ), - ".group_0155": ("RuleSuitesItems",), - ".group_0156": ( + ".group_0160": ("RuleSuitesItems",), + ".group_0161": ( "RuleSuite", "RuleSuitePropRuleEvaluationsItems", "RuleSuitePropRuleEvaluationsItemsPropRuleSource", ), - ".group_0157": ("RepositoryAdvisoryCredit",), - ".group_0158": ( + ".group_0162": ("RepositoryAdvisoryCredit",), + ".group_0163": ( "RepositoryAdvisory", "RepositoryAdvisoryPropIdentifiersItems", "RepositoryAdvisoryPropSubmission", @@ -8873,84 +8933,85 @@ "RepositoryAdvisoryVulnerability", "RepositoryAdvisoryVulnerabilityPropPackage", ), - ".group_0159": ( + ".group_0164": ( "ActionsBillingUsage", "ActionsBillingUsagePropMinutesUsedBreakdown", ), - ".group_0160": ("PackagesBillingUsage",), - ".group_0161": ("CombinedBillingUsage",), - ".group_0162": ( + ".group_0165": ("PackagesBillingUsage",), + ".group_0166": ("CombinedBillingUsage",), + ".group_0167": ("NetworkSettings",), + ".group_0168": ( "TeamFull", "TeamOrganization", "TeamOrganizationPropPlan", ), - ".group_0163": ("TeamDiscussion",), - ".group_0164": ("TeamDiscussionComment",), - ".group_0165": ("Reaction",), - ".group_0166": ("TeamMembership",), - ".group_0167": ( + ".group_0169": ("TeamDiscussion",), + ".group_0170": ("TeamDiscussionComment",), + ".group_0171": ("Reaction",), + ".group_0172": ("TeamMembership",), + ".group_0173": ( "TeamProject", "TeamProjectPropPermissions", ), - ".group_0168": ( + ".group_0174": ( "TeamRepository", "TeamRepositoryPropPermissions", ), - ".group_0169": ("ProjectCard",), - ".group_0170": ("ProjectColumn",), - ".group_0171": ("ProjectCollaboratorPermission",), - ".group_0172": ("RateLimit",), - ".group_0173": ("RateLimitOverview",), - ".group_0174": ("RateLimitOverviewPropResources",), - ".group_0175": ( + ".group_0175": ("ProjectCard",), + ".group_0176": ("ProjectColumn",), + ".group_0177": ("ProjectCollaboratorPermission",), + ".group_0178": ("RateLimit",), + ".group_0179": ("RateLimitOverview",), + ".group_0180": ("RateLimitOverviewPropResources",), + ".group_0181": ( "Artifact", "ArtifactPropWorkflowRun", ), - ".group_0176": ( + ".group_0182": ( "ActionsCacheList", "ActionsCacheListPropActionsCachesItems", ), - ".group_0177": ( + ".group_0183": ( "Job", "JobPropStepsItems", ), - ".group_0178": ("OidcCustomSubRepo",), - ".group_0179": ("ActionsSecret",), - ".group_0180": ("ActionsVariable",), - ".group_0181": ("ActionsRepositoryPermissions",), - ".group_0182": ("ActionsWorkflowAccessToRepository",), - ".group_0183": ( + ".group_0184": ("OidcCustomSubRepo",), + ".group_0185": ("ActionsSecret",), + ".group_0186": ("ActionsVariable",), + ".group_0187": ("ActionsRepositoryPermissions",), + ".group_0188": ("ActionsWorkflowAccessToRepository",), + ".group_0189": ( "PullRequestMinimal", "PullRequestMinimalPropHead", "PullRequestMinimalPropHeadPropRepo", "PullRequestMinimalPropBase", "PullRequestMinimalPropBasePropRepo", ), - ".group_0184": ( + ".group_0190": ( "SimpleCommit", "SimpleCommitPropAuthor", "SimpleCommitPropCommitter", ), - ".group_0185": ( + ".group_0191": ( "WorkflowRun", "ReferencedWorkflow", ), - ".group_0186": ( + ".group_0192": ( "EnvironmentApprovals", "EnvironmentApprovalsPropEnvironmentsItems", ), - ".group_0187": ("ReviewCustomGatesCommentRequired",), - ".group_0188": ("ReviewCustomGatesStateRequired",), - ".group_0189": ( + ".group_0193": ("ReviewCustomGatesCommentRequired",), + ".group_0194": ("ReviewCustomGatesStateRequired",), + ".group_0195": ( "PendingDeploymentPropReviewersItems", "PendingDeployment", "PendingDeploymentPropEnvironment", ), - ".group_0190": ( + ".group_0196": ( "Deployment", "DeploymentPropPayloadOneof0", ), - ".group_0191": ( + ".group_0197": ( "WorkflowRunUsage", "WorkflowRunUsagePropBillable", "WorkflowRunUsagePropBillablePropUbuntu", @@ -8960,22 +9021,22 @@ "WorkflowRunUsagePropBillablePropWindows", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", ), - ".group_0192": ( + ".group_0198": ( "WorkflowUsage", "WorkflowUsagePropBillable", "WorkflowUsagePropBillablePropUbuntu", "WorkflowUsagePropBillablePropMacos", "WorkflowUsagePropBillablePropWindows", ), - ".group_0193": ("Activity",), - ".group_0194": ("Autolink",), - ".group_0195": ("CheckAutomatedSecurityFixes",), - ".group_0196": ("ProtectedBranchPullRequestReview",), - ".group_0197": ( + ".group_0199": ("Activity",), + ".group_0200": ("Autolink",), + ".group_0201": ("CheckAutomatedSecurityFixes",), + ".group_0202": ("ProtectedBranchPullRequestReview",), + ".group_0203": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictions", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", ), - ".group_0198": ( + ".group_0204": ( "BranchRestrictionPolicy", "BranchRestrictionPolicyPropUsersItems", "BranchRestrictionPolicyPropTeamsItems", @@ -8983,7 +9044,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwner", "BranchRestrictionPolicyPropAppsItemsPropPermissions", ), - ".group_0199": ( + ".group_0205": ( "BranchProtection", "ProtectedBranchAdminEnforced", "BranchProtectionPropRequiredLinearHistory", @@ -8997,28 +9058,28 @@ "ProtectedBranchRequiredStatusCheck", "ProtectedBranchRequiredStatusCheckPropChecksItems", ), - ".group_0200": ( + ".group_0206": ( "ShortBranch", "ShortBranchPropCommit", ), - ".group_0201": ("GitUser",), - ".group_0202": ("Verification",), - ".group_0203": ("DiffEntry",), - ".group_0204": ( + ".group_0207": ("GitUser",), + ".group_0208": ("Verification",), + ".group_0209": ("DiffEntry",), + ".group_0210": ( "Commit", "EmptyObject", "CommitPropParentsItems", "CommitPropStats", ), - ".group_0205": ( + ".group_0211": ( "CommitPropCommit", "CommitPropCommitPropTree", ), - ".group_0206": ( + ".group_0212": ( "BranchWithProtection", "BranchWithProtectionPropLinks", ), - ".group_0207": ( + ".group_0213": ( "ProtectedBranch", "ProtectedBranchPropRequiredSignatures", "ProtectedBranchPropEnforceAdmins", @@ -9032,117 +9093,117 @@ "StatusCheckPolicy", "StatusCheckPolicyPropChecksItems", ), - ".group_0208": ("ProtectedBranchPropRequiredPullRequestReviews",), - ".group_0209": ( + ".group_0214": ("ProtectedBranchPropRequiredPullRequestReviews",), + ".group_0215": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", ), - ".group_0210": ("DeploymentSimple",), - ".group_0211": ( + ".group_0216": ("DeploymentSimple",), + ".group_0217": ( "CheckRun", "CheckRunPropOutput", "CheckRunPropCheckSuite", ), - ".group_0212": ("CheckAnnotation",), - ".group_0213": ( + ".group_0218": ("CheckAnnotation",), + ".group_0219": ( "CheckSuite", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", ), - ".group_0214": ( + ".group_0220": ( "CheckSuitePreference", "CheckSuitePreferencePropPreferences", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", ), - ".group_0215": ("CodeScanningAlertItems",), - ".group_0216": ( + ".group_0221": ("CodeScanningAlertItems",), + ".group_0222": ( "CodeScanningAlert", "CodeScanningAlertRule", ), - ".group_0217": ("CodeScanningAutofix",), - ".group_0218": ("CodeScanningAutofixCommits",), - ".group_0219": ("CodeScanningAutofixCommitsResponse",), - ".group_0220": ("CodeScanningAnalysis",), - ".group_0221": ("CodeScanningAnalysisDeletion",), - ".group_0222": ("CodeScanningCodeqlDatabase",), - ".group_0223": ("CodeScanningVariantAnalysisRepository",), - ".group_0224": ("CodeScanningVariantAnalysisSkippedRepoGroup",), - ".group_0225": ("CodeScanningVariantAnalysis",), - ".group_0226": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), - ".group_0227": ( + ".group_0223": ("CodeScanningAutofix",), + ".group_0224": ("CodeScanningAutofixCommits",), + ".group_0225": ("CodeScanningAutofixCommitsResponse",), + ".group_0226": ("CodeScanningAnalysis",), + ".group_0227": ("CodeScanningAnalysisDeletion",), + ".group_0228": ("CodeScanningCodeqlDatabase",), + ".group_0229": ("CodeScanningVariantAnalysisRepository",), + ".group_0230": ("CodeScanningVariantAnalysisSkippedRepoGroup",), + ".group_0231": ("CodeScanningVariantAnalysis",), + ".group_0232": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), + ".group_0233": ( "CodeScanningVariantAnalysisPropSkippedRepositories", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", ), - ".group_0228": ("CodeScanningVariantAnalysisRepoTask",), - ".group_0229": ("CodeScanningDefaultSetup",), - ".group_0230": ("CodeScanningDefaultSetupUpdate",), - ".group_0231": ("CodeScanningDefaultSetupUpdateResponse",), - ".group_0232": ("CodeScanningSarifsReceipt",), - ".group_0233": ("CodeScanningSarifsStatus",), - ".group_0234": ("CodeSecurityConfigurationForRepository",), - ".group_0235": ( + ".group_0234": ("CodeScanningVariantAnalysisRepoTask",), + ".group_0235": ("CodeScanningDefaultSetup",), + ".group_0236": ("CodeScanningDefaultSetupUpdate",), + ".group_0237": ("CodeScanningDefaultSetupUpdateResponse",), + ".group_0238": ("CodeScanningSarifsReceipt",), + ".group_0239": ("CodeScanningSarifsStatus",), + ".group_0240": ("CodeSecurityConfigurationForRepository",), + ".group_0241": ( "CodeownersErrors", "CodeownersErrorsPropErrorsItems", ), - ".group_0236": ("CodespacesPermissionsCheckForDevcontainer",), - ".group_0237": ("RepositoryInvitation",), - ".group_0238": ( + ".group_0242": ("CodespacesPermissionsCheckForDevcontainer",), + ".group_0243": ("RepositoryInvitation",), + ".group_0244": ( "RepositoryCollaboratorPermission", "Collaborator", "CollaboratorPropPermissions", ), - ".group_0239": ( + ".group_0245": ( "CommitComment", "TimelineCommitCommentedEvent", ), - ".group_0240": ( + ".group_0246": ( "BranchShort", "BranchShortPropCommit", ), - ".group_0241": ("Link",), - ".group_0242": ("AutoMerge",), - ".group_0243": ( + ".group_0247": ("Link",), + ".group_0248": ("AutoMerge",), + ".group_0249": ( "PullRequestSimple", "PullRequestSimplePropLabelsItems", ), - ".group_0244": ( + ".group_0250": ( "PullRequestSimplePropHead", "PullRequestSimplePropBase", ), - ".group_0245": ("PullRequestSimplePropLinks",), - ".group_0246": ( + ".group_0251": ("PullRequestSimplePropLinks",), + ".group_0252": ( "CombinedCommitStatus", "SimpleCommitStatus", ), - ".group_0247": ("Status",), - ".group_0248": ( + ".group_0253": ("Status",), + ".group_0254": ( "CommunityProfilePropFiles", "CommunityHealthFile", "CommunityProfile", ), - ".group_0249": ("CommitComparison",), - ".group_0250": ( + ".group_0255": ("CommitComparison",), + ".group_0256": ( "ContentTree", "ContentTreePropLinks", "ContentTreePropEntriesItems", "ContentTreePropEntriesItemsPropLinks", ), - ".group_0251": ( + ".group_0257": ( "ContentDirectoryItems", "ContentDirectoryItemsPropLinks", ), - ".group_0252": ( + ".group_0258": ( "ContentFile", "ContentFilePropLinks", ), - ".group_0253": ( + ".group_0259": ( "ContentSymlink", "ContentSymlinkPropLinks", ), - ".group_0254": ( + ".group_0260": ( "ContentSubmodule", "ContentSubmodulePropLinks", ), - ".group_0255": ( + ".group_0261": ( "FileCommit", "FileCommitPropContent", "FileCommitPropContentPropLinks", @@ -9153,20 +9214,20 @@ "FileCommitPropCommitPropParentsItems", "FileCommitPropCommitPropVerification", ), - ".group_0256": ( + ".group_0262": ( "RepositoryRuleViolationError", "RepositoryRuleViolationErrorPropMetadata", "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", ), - ".group_0257": ("Contributor",), - ".group_0258": ("DependabotAlert",), - ".group_0259": ("DependabotAlertPropDependency",), - ".group_0260": ( + ".group_0263": ("Contributor",), + ".group_0264": ("DependabotAlert",), + ".group_0265": ("DependabotAlertPropDependency",), + ".group_0266": ( "DependencyGraphDiffItems", "DependencyGraphDiffItemsPropVulnerabilitiesItems", ), - ".group_0261": ( + ".group_0267": ( "DependencyGraphSpdxSbom", "DependencyGraphSpdxSbomPropSbom", "DependencyGraphSpdxSbomPropSbomPropCreationInfo", @@ -9174,39 +9235,39 @@ "DependencyGraphSpdxSbomPropSbomPropPackagesItems", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", ), - ".group_0262": ("Metadata",), - ".group_0263": ("Dependency",), - ".group_0264": ( + ".group_0268": ("Metadata",), + ".group_0269": ("Dependency",), + ".group_0270": ( "Manifest", "ManifestPropFile", "ManifestPropResolved", ), - ".group_0265": ( + ".group_0271": ( "Snapshot", "SnapshotPropJob", "SnapshotPropDetector", "SnapshotPropManifests", ), - ".group_0266": ("DeploymentStatus",), - ".group_0267": ("DeploymentBranchPolicySettings",), - ".group_0268": ( + ".group_0272": ("DeploymentStatus",), + ".group_0273": ("DeploymentBranchPolicySettings",), + ".group_0274": ( "Environment", "EnvironmentPropProtectionRulesItemsAnyof0", "EnvironmentPropProtectionRulesItemsAnyof2", "ReposOwnerRepoEnvironmentsGetResponse200", ), - ".group_0269": ("EnvironmentPropProtectionRulesItemsAnyof1",), - ".group_0270": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), - ".group_0271": ("DeploymentBranchPolicyNamePatternWithType",), - ".group_0272": ("DeploymentBranchPolicyNamePattern",), - ".group_0273": ("CustomDeploymentRuleApp",), - ".group_0274": ( + ".group_0275": ("EnvironmentPropProtectionRulesItemsAnyof1",), + ".group_0276": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), + ".group_0277": ("DeploymentBranchPolicyNamePatternWithType",), + ".group_0278": ("DeploymentBranchPolicyNamePattern",), + ".group_0279": ("CustomDeploymentRuleApp",), + ".group_0280": ( "DeploymentProtectionRule", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ), - ".group_0275": ("ShortBlob",), - ".group_0276": ("Blob",), - ".group_0277": ( + ".group_0281": ("ShortBlob",), + ".group_0282": ("Blob",), + ".group_0283": ( "GitCommit", "GitCommitPropAuthor", "GitCommitPropCommitter", @@ -9214,28 +9275,28 @@ "GitCommitPropParentsItems", "GitCommitPropVerification", ), - ".group_0278": ( + ".group_0284": ( "GitRef", "GitRefPropObject", ), - ".group_0279": ( + ".group_0285": ( "GitTag", "GitTagPropTagger", "GitTagPropObject", ), - ".group_0280": ( + ".group_0286": ( "GitTree", "GitTreePropTreeItems", ), - ".group_0281": ("HookResponse",), - ".group_0282": ("Hook",), - ".group_0283": ( + ".group_0287": ("HookResponse",), + ".group_0288": ("Hook",), + ".group_0289": ( "Import", "ImportPropProjectChoicesItems", ), - ".group_0284": ("PorterAuthor",), - ".group_0285": ("PorterLargeFile",), - ".group_0286": ( + ".group_0290": ("PorterAuthor",), + ".group_0291": ("PorterLargeFile",), + ".group_0292": ( "IssueEvent", "IssueEventLabel", "IssueEventDismissedReview", @@ -9243,55 +9304,55 @@ "IssueEventProjectCard", "IssueEventRename", ), - ".group_0287": ( + ".group_0293": ( "LabeledIssueEvent", "LabeledIssueEventPropLabel", ), - ".group_0288": ( + ".group_0294": ( "UnlabeledIssueEvent", "UnlabeledIssueEventPropLabel", ), - ".group_0289": ("AssignedIssueEvent",), - ".group_0290": ("UnassignedIssueEvent",), - ".group_0291": ( + ".group_0295": ("AssignedIssueEvent",), + ".group_0296": ("UnassignedIssueEvent",), + ".group_0297": ( "MilestonedIssueEvent", "MilestonedIssueEventPropMilestone", ), - ".group_0292": ( + ".group_0298": ( "DemilestonedIssueEvent", "DemilestonedIssueEventPropMilestone", ), - ".group_0293": ( + ".group_0299": ( "RenamedIssueEvent", "RenamedIssueEventPropRename", ), - ".group_0294": ("ReviewRequestedIssueEvent",), - ".group_0295": ("ReviewRequestRemovedIssueEvent",), - ".group_0296": ( + ".group_0300": ("ReviewRequestedIssueEvent",), + ".group_0301": ("ReviewRequestRemovedIssueEvent",), + ".group_0302": ( "ReviewDismissedIssueEvent", "ReviewDismissedIssueEventPropDismissedReview", ), - ".group_0297": ("LockedIssueEvent",), - ".group_0298": ( + ".group_0303": ("LockedIssueEvent",), + ".group_0304": ( "AddedToProjectIssueEvent", "AddedToProjectIssueEventPropProjectCard", ), - ".group_0299": ( + ".group_0305": ( "MovedColumnInProjectIssueEvent", "MovedColumnInProjectIssueEventPropProjectCard", ), - ".group_0300": ( + ".group_0306": ( "RemovedFromProjectIssueEvent", "RemovedFromProjectIssueEventPropProjectCard", ), - ".group_0301": ( + ".group_0307": ( "ConvertedNoteToIssueIssueEvent", "ConvertedNoteToIssueIssueEventPropProjectCard", ), - ".group_0302": ("TimelineCommentEvent",), - ".group_0303": ("TimelineCrossReferencedEvent",), - ".group_0304": ("TimelineCrossReferencedEventPropSource",), - ".group_0305": ( + ".group_0308": ("TimelineCommentEvent",), + ".group_0309": ("TimelineCrossReferencedEvent",), + ".group_0310": ("TimelineCrossReferencedEventPropSource",), + ".group_0311": ( "TimelineCommittedEvent", "TimelineCommittedEventPropAuthor", "TimelineCommittedEventPropCommitter", @@ -9299,13 +9360,13 @@ "TimelineCommittedEventPropParentsItems", "TimelineCommittedEventPropVerification", ), - ".group_0306": ( + ".group_0312": ( "TimelineReviewedEvent", "TimelineReviewedEventPropLinks", "TimelineReviewedEventPropLinksPropHtml", "TimelineReviewedEventPropLinksPropPullRequest", ), - ".group_0307": ( + ".group_0313": ( "PullRequestReviewComment", "PullRequestReviewCommentPropLinks", "PullRequestReviewCommentPropLinksPropSelf", @@ -9313,152 +9374,152 @@ "PullRequestReviewCommentPropLinksPropPullRequest", "TimelineLineCommentedEvent", ), - ".group_0308": ("TimelineAssignedIssueEvent",), - ".group_0309": ("TimelineUnassignedIssueEvent",), - ".group_0310": ("StateChangeIssueEvent",), - ".group_0311": ("DeployKey",), - ".group_0312": ("Language",), - ".group_0313": ( + ".group_0314": ("TimelineAssignedIssueEvent",), + ".group_0315": ("TimelineUnassignedIssueEvent",), + ".group_0316": ("StateChangeIssueEvent",), + ".group_0317": ("DeployKey",), + ".group_0318": ("Language",), + ".group_0319": ( "LicenseContent", "LicenseContentPropLinks", ), - ".group_0314": ("MergedUpstream",), - ".group_0315": ( + ".group_0320": ("MergedUpstream",), + ".group_0321": ( "Page", "PagesSourceHash", "PagesHttpsCertificate", ), - ".group_0316": ( + ".group_0322": ( "PageBuild", "PageBuildPropError", ), - ".group_0317": ("PageBuildStatus",), - ".group_0318": ("PageDeployment",), - ".group_0319": ("PagesDeploymentStatus",), - ".group_0320": ( + ".group_0323": ("PageBuildStatus",), + ".group_0324": ("PageDeployment",), + ".group_0325": ("PagesDeploymentStatus",), + ".group_0326": ( "PagesHealthCheck", "PagesHealthCheckPropDomain", "PagesHealthCheckPropAltDomain", ), - ".group_0321": ("PullRequest",), - ".group_0322": ("PullRequestPropLabelsItems",), - ".group_0323": ( + ".group_0327": ("PullRequest",), + ".group_0328": ("PullRequestPropLabelsItems",), + ".group_0329": ( "PullRequestPropHead", "PullRequestPropBase", ), - ".group_0324": ("PullRequestPropLinks",), - ".group_0325": ("PullRequestMergeResult",), - ".group_0326": ("PullRequestReviewRequest",), - ".group_0327": ( + ".group_0330": ("PullRequestPropLinks",), + ".group_0331": ("PullRequestMergeResult",), + ".group_0332": ("PullRequestReviewRequest",), + ".group_0333": ( "PullRequestReview", "PullRequestReviewPropLinks", "PullRequestReviewPropLinksPropHtml", "PullRequestReviewPropLinksPropPullRequest", ), - ".group_0328": ("ReviewComment",), - ".group_0329": ("ReviewCommentPropLinks",), - ".group_0330": ("ReleaseAsset",), - ".group_0331": ("Release",), - ".group_0332": ("ReleaseNotesContent",), - ".group_0333": ("RepositoryRuleRulesetInfo",), - ".group_0334": ("RepositoryRuleDetailedOneof0",), - ".group_0335": ("RepositoryRuleDetailedOneof1",), - ".group_0336": ("RepositoryRuleDetailedOneof2",), - ".group_0337": ("RepositoryRuleDetailedOneof3",), - ".group_0338": ("RepositoryRuleDetailedOneof4",), - ".group_0339": ("RepositoryRuleDetailedOneof5",), - ".group_0340": ("RepositoryRuleDetailedOneof6",), - ".group_0341": ("RepositoryRuleDetailedOneof7",), - ".group_0342": ("RepositoryRuleDetailedOneof8",), - ".group_0343": ("RepositoryRuleDetailedOneof9",), - ".group_0344": ("RepositoryRuleDetailedOneof10",), - ".group_0345": ("RepositoryRuleDetailedOneof11",), - ".group_0346": ("RepositoryRuleDetailedOneof12",), - ".group_0347": ("RepositoryRuleDetailedOneof13",), - ".group_0348": ("RepositoryRuleDetailedOneof14",), - ".group_0349": ("RepositoryRuleDetailedOneof15",), - ".group_0350": ("RepositoryRuleDetailedOneof16",), - ".group_0351": ("SecretScanningAlert",), - ".group_0352": ("SecretScanningPushProtectionBypass",), - ".group_0353": ( + ".group_0334": ("ReviewComment",), + ".group_0335": ("ReviewCommentPropLinks",), + ".group_0336": ("ReleaseAsset",), + ".group_0337": ("Release",), + ".group_0338": ("ReleaseNotesContent",), + ".group_0339": ("RepositoryRuleRulesetInfo",), + ".group_0340": ("RepositoryRuleDetailedOneof0",), + ".group_0341": ("RepositoryRuleDetailedOneof1",), + ".group_0342": ("RepositoryRuleDetailedOneof2",), + ".group_0343": ("RepositoryRuleDetailedOneof3",), + ".group_0344": ("RepositoryRuleDetailedOneof4",), + ".group_0345": ("RepositoryRuleDetailedOneof5",), + ".group_0346": ("RepositoryRuleDetailedOneof6",), + ".group_0347": ("RepositoryRuleDetailedOneof7",), + ".group_0348": ("RepositoryRuleDetailedOneof8",), + ".group_0349": ("RepositoryRuleDetailedOneof9",), + ".group_0350": ("RepositoryRuleDetailedOneof10",), + ".group_0351": ("RepositoryRuleDetailedOneof11",), + ".group_0352": ("RepositoryRuleDetailedOneof12",), + ".group_0353": ("RepositoryRuleDetailedOneof13",), + ".group_0354": ("RepositoryRuleDetailedOneof14",), + ".group_0355": ("RepositoryRuleDetailedOneof15",), + ".group_0356": ("RepositoryRuleDetailedOneof16",), + ".group_0357": ("SecretScanningAlert",), + ".group_0358": ("SecretScanningPushProtectionBypass",), + ".group_0359": ( "SecretScanningScanHistory", "SecretScanningScan", "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", ), - ".group_0354": ( + ".group_0360": ( "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1", ), - ".group_0355": ( + ".group_0361": ( "RepositoryAdvisoryCreate", "RepositoryAdvisoryCreatePropCreditsItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0356": ( + ".group_0362": ( "PrivateVulnerabilityReportCreate", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0357": ( + ".group_0363": ( "RepositoryAdvisoryUpdate", "RepositoryAdvisoryUpdatePropCreditsItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", ), - ".group_0358": ("Stargazer",), - ".group_0359": ("CommitActivity",), - ".group_0360": ( + ".group_0364": ("Stargazer",), + ".group_0365": ("CommitActivity",), + ".group_0366": ( "ContributorActivity", "ContributorActivityPropWeeksItems", ), - ".group_0361": ("ParticipationStats",), - ".group_0362": ("RepositorySubscription",), - ".group_0363": ( + ".group_0367": ("ParticipationStats",), + ".group_0368": ("RepositorySubscription",), + ".group_0369": ( "Tag", "TagPropCommit", ), - ".group_0364": ("TagProtection",), - ".group_0365": ("Topic",), - ".group_0366": ("Traffic",), - ".group_0367": ("CloneTraffic",), - ".group_0368": ("ContentTraffic",), - ".group_0369": ("ReferrerTraffic",), - ".group_0370": ("ViewTraffic",), - ".group_0371": ( + ".group_0370": ("TagProtection",), + ".group_0371": ("Topic",), + ".group_0372": ("Traffic",), + ".group_0373": ("CloneTraffic",), + ".group_0374": ("ContentTraffic",), + ".group_0375": ("ReferrerTraffic",), + ".group_0376": ("ViewTraffic",), + ".group_0377": ( "SearchResultTextMatchesItems", "SearchResultTextMatchesItemsPropMatchesItems", ), - ".group_0372": ( + ".group_0378": ( "CodeSearchResultItem", "SearchCodeGetResponse200", ), - ".group_0373": ( + ".group_0379": ( "CommitSearchResultItem", "CommitSearchResultItemPropParentsItems", "SearchCommitsGetResponse200", ), - ".group_0374": ( + ".group_0380": ( "CommitSearchResultItemPropCommit", "CommitSearchResultItemPropCommitPropAuthor", "CommitSearchResultItemPropCommitPropTree", ), - ".group_0375": ( + ".group_0381": ( "IssueSearchResultItem", "IssueSearchResultItemPropLabelsItems", "IssueSearchResultItemPropSubIssuesSummary", "IssueSearchResultItemPropPullRequest", "SearchIssuesGetResponse200", ), - ".group_0376": ( + ".group_0382": ( "LabelSearchResultItem", "SearchLabelsGetResponse200", ), - ".group_0377": ( + ".group_0383": ( "RepoSearchResultItem", "RepoSearchResultItemPropPermissions", "SearchRepositoriesGetResponse200", ), - ".group_0378": ( + ".group_0384": ( "TopicSearchResultItem", "TopicSearchResultItemPropRelatedItems", "TopicSearchResultItemPropRelatedItemsPropTopicRelation", @@ -9466,45 +9527,45 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelation", "SearchTopicsGetResponse200", ), - ".group_0379": ( + ".group_0385": ( "UserSearchResultItem", "SearchUsersGetResponse200", ), - ".group_0380": ( + ".group_0386": ( "PrivateUser", "PrivateUserPropPlan", ), - ".group_0381": ("CodespacesUserPublicKey",), - ".group_0382": ("CodespaceExportDetails",), - ".group_0383": ( + ".group_0387": ("CodespacesUserPublicKey",), + ".group_0388": ("CodespaceExportDetails",), + ".group_0389": ( "CodespaceWithFullRepository", "CodespaceWithFullRepositoryPropGitStatus", "CodespaceWithFullRepositoryPropRuntimeConstraints", ), - ".group_0384": ("Email",), - ".group_0385": ( + ".group_0390": ("Email",), + ".group_0391": ( "GpgKey", "GpgKeyPropEmailsItems", "GpgKeyPropSubkeysItems", "GpgKeyPropSubkeysItemsPropEmailsItems", ), - ".group_0386": ("Key",), - ".group_0387": ( + ".group_0392": ("Key",), + ".group_0393": ( "UserMarketplacePurchase", "MarketplaceAccount", ), - ".group_0388": ("SocialAccount",), - ".group_0389": ("SshSigningKey",), - ".group_0390": ("StarredRepository",), - ".group_0391": ( + ".group_0394": ("SocialAccount",), + ".group_0395": ("SshSigningKey",), + ".group_0396": ("StarredRepository",), + ".group_0397": ( "Hovercard", "HovercardPropContextsItems", ), - ".group_0392": ("KeySimple",), - ".group_0393": ("EnterpriseWebhooks",), - ".group_0394": ("SimpleInstallation",), - ".group_0395": ("OrganizationSimpleWebhooks",), - ".group_0396": ( + ".group_0398": ("KeySimple",), + ".group_0399": ("EnterpriseWebhooks",), + ".group_0400": ("SimpleInstallation",), + ".group_0401": ("OrganizationSimpleWebhooks",), + ".group_0402": ( "RepositoryWebhooks", "RepositoryWebhooksPropPermissions", "RepositoryWebhooksPropCustomProperties", @@ -9512,27 +9573,27 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwner", "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ), - ".group_0397": ("WebhooksRule",), - ".group_0398": ("SimpleCheckSuite",), - ".group_0399": ( + ".group_0403": ("WebhooksRule",), + ".group_0404": ("SimpleCheckSuite",), + ".group_0405": ( "CheckRunWithSimpleCheckSuite", "CheckRunWithSimpleCheckSuitePropOutput", ), - ".group_0400": ("WebhooksDeployKey",), - ".group_0401": ("WebhooksWorkflow",), - ".group_0402": ( + ".group_0406": ("WebhooksDeployKey",), + ".group_0407": ("WebhooksWorkflow",), + ".group_0408": ( "WebhooksApprover", "WebhooksReviewersItems", "WebhooksReviewersItemsPropReviewer", ), - ".group_0403": ("WebhooksWorkflowJobRun",), - ".group_0404": ("WebhooksUser",), - ".group_0405": ( + ".group_0409": ("WebhooksWorkflowJobRun",), + ".group_0410": ("WebhooksUser",), + ".group_0411": ( "WebhooksAnswer", "WebhooksAnswerPropReactions", "WebhooksAnswerPropUser", ), - ".group_0406": ( + ".group_0412": ( "Discussion", "Label", "DiscussionPropAnswerChosenBy", @@ -9540,24 +9601,24 @@ "DiscussionPropReactions", "DiscussionPropUser", ), - ".group_0407": ( + ".group_0413": ( "WebhooksComment", "WebhooksCommentPropReactions", "WebhooksCommentPropUser", ), - ".group_0408": ("WebhooksLabel",), - ".group_0409": ("WebhooksRepositoriesItems",), - ".group_0410": ("WebhooksRepositoriesAddedItems",), - ".group_0411": ( + ".group_0414": ("WebhooksLabel",), + ".group_0415": ("WebhooksRepositoriesItems",), + ".group_0416": ("WebhooksRepositoriesAddedItems",), + ".group_0417": ( "WebhooksIssueComment", "WebhooksIssueCommentPropReactions", "WebhooksIssueCommentPropUser", ), - ".group_0412": ( + ".group_0418": ( "WebhooksChanges", "WebhooksChangesPropBody", ), - ".group_0413": ( + ".group_0419": ( "WebhooksIssue", "WebhooksIssuePropAssignee", "WebhooksIssuePropAssigneesItems", @@ -9572,11 +9633,11 @@ "WebhooksIssuePropSubIssuesSummary", "WebhooksIssuePropUser", ), - ".group_0414": ( + ".group_0420": ( "WebhooksMilestone", "WebhooksMilestonePropCreator", ), - ".group_0415": ( + ".group_0421": ( "WebhooksIssue2", "WebhooksIssue2PropAssignee", "WebhooksIssue2PropAssigneesItems", @@ -9591,31 +9652,31 @@ "WebhooksIssue2PropSubIssuesSummary", "WebhooksIssue2PropUser", ), - ".group_0416": ("WebhooksUserMannequin",), - ".group_0417": ( + ".group_0422": ("WebhooksUserMannequin",), + ".group_0423": ( "WebhooksMarketplacePurchase", "WebhooksMarketplacePurchasePropAccount", "WebhooksMarketplacePurchasePropPlan", ), - ".group_0418": ( + ".group_0424": ( "WebhooksPreviousMarketplacePurchase", "WebhooksPreviousMarketplacePurchasePropAccount", "WebhooksPreviousMarketplacePurchasePropPlan", ), - ".group_0419": ( + ".group_0425": ( "WebhooksTeam", "WebhooksTeamPropParent", ), - ".group_0420": ("MergeGroup",), - ".group_0421": ( + ".group_0426": ("MergeGroup",), + ".group_0427": ( "WebhooksMilestone3", "WebhooksMilestone3PropCreator", ), - ".group_0422": ( + ".group_0428": ( "WebhooksMembership", "WebhooksMembershipPropUser", ), - ".group_0423": ( + ".group_0429": ( "PersonalAccessTokenRequest", "PersonalAccessTokenRequestPropRepositoriesItems", "PersonalAccessTokenRequestPropPermissionsAdded", @@ -9631,25 +9692,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepository", "PersonalAccessTokenRequestPropPermissionsResultPropOther", ), - ".group_0424": ( + ".group_0430": ( "WebhooksProjectCard", "WebhooksProjectCardPropCreator", ), - ".group_0425": ( + ".group_0431": ( "WebhooksProject", "WebhooksProjectPropCreator", ), - ".group_0426": ("WebhooksProjectColumn",), - ".group_0427": ("ProjectsV2",), - ".group_0428": ( + ".group_0432": ("WebhooksProjectColumn",), + ".group_0433": ("ProjectsV2",), + ".group_0434": ( "WebhooksProjectChanges", "WebhooksProjectChangesPropArchivedAt", ), - ".group_0429": ("ProjectsV2Item",), - ".group_0430": ("ProjectsV2StatusUpdate",), - ".group_0431": ("PullRequestWebhook",), - ".group_0432": ("PullRequestWebhookAllof1",), - ".group_0433": ( + ".group_0435": ("ProjectsV2Item",), + ".group_0436": ("ProjectsV2StatusUpdate",), + ".group_0437": ("PullRequestWebhook",), + ".group_0438": ("PullRequestWebhookAllof1",), + ".group_0439": ( "WebhooksPullRequest5", "WebhooksPullRequest5PropAssignee", "WebhooksPullRequest5PropAssigneesItems", @@ -9687,7 +9748,7 @@ "WebhooksPullRequest5PropRequestedTeamsItems", "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", ), - ".group_0434": ( + ".group_0440": ( "WebhooksReviewComment", "WebhooksReviewCommentPropReactions", "WebhooksReviewCommentPropUser", @@ -9696,33 +9757,33 @@ "WebhooksReviewCommentPropLinksPropPullRequest", "WebhooksReviewCommentPropLinksPropSelf", ), - ".group_0435": ( + ".group_0441": ( "WebhooksReview", "WebhooksReviewPropUser", "WebhooksReviewPropLinks", "WebhooksReviewPropLinksPropHtml", "WebhooksReviewPropLinksPropPullRequest", ), - ".group_0436": ( + ".group_0442": ( "WebhooksRelease", "WebhooksReleasePropAuthor", "WebhooksReleasePropReactions", "WebhooksReleasePropAssetsItems", "WebhooksReleasePropAssetsItemsPropUploader", ), - ".group_0437": ( + ".group_0443": ( "WebhooksRelease1", "WebhooksRelease1PropAssetsItems", "WebhooksRelease1PropAssetsItemsPropUploader", "WebhooksRelease1PropAuthor", "WebhooksRelease1PropReactions", ), - ".group_0438": ( + ".group_0444": ( "WebhooksAlert", "WebhooksAlertPropDismisser", ), - ".group_0439": ("SecretScanningAlertWebhook",), - ".group_0440": ( + ".group_0445": ("SecretScanningAlertWebhook",), + ".group_0446": ( "WebhooksSecurityAdvisory", "WebhooksSecurityAdvisoryPropCvss", "WebhooksSecurityAdvisoryPropCwesItems", @@ -9732,27 +9793,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0441": ( + ".group_0447": ( "WebhooksSponsorship", "WebhooksSponsorshipPropMaintainer", "WebhooksSponsorshipPropSponsor", "WebhooksSponsorshipPropSponsorable", "WebhooksSponsorshipPropTier", ), - ".group_0442": ( + ".group_0448": ( "WebhooksChanges8", "WebhooksChanges8PropTier", "WebhooksChanges8PropTierPropFrom", ), - ".group_0443": ( + ".group_0449": ( "WebhooksTeam1", "WebhooksTeam1PropParent", ), - ".group_0444": ("WebhookBranchProtectionConfigurationDisabled",), - ".group_0445": ("WebhookBranchProtectionConfigurationEnabled",), - ".group_0446": ("WebhookBranchProtectionRuleCreated",), - ".group_0447": ("WebhookBranchProtectionRuleDeleted",), - ".group_0448": ( + ".group_0450": ("WebhookBranchProtectionConfigurationDisabled",), + ".group_0451": ("WebhookBranchProtectionConfigurationEnabled",), + ".group_0452": ("WebhookBranchProtectionRuleCreated",), + ".group_0453": ("WebhookBranchProtectionRuleDeleted",), + ".group_0454": ( "WebhookBranchProtectionRuleEdited", "WebhookBranchProtectionRuleEditedPropChanges", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", @@ -9767,18 +9828,18 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", ), - ".group_0449": ("WebhookCheckRunCompleted",), - ".group_0450": ("WebhookCheckRunCompletedFormEncoded",), - ".group_0451": ("WebhookCheckRunCreated",), - ".group_0452": ("WebhookCheckRunCreatedFormEncoded",), - ".group_0453": ( + ".group_0455": ("WebhookCheckRunCompleted",), + ".group_0456": ("WebhookCheckRunCompletedFormEncoded",), + ".group_0457": ("WebhookCheckRunCreated",), + ".group_0458": ("WebhookCheckRunCreatedFormEncoded",), + ".group_0459": ( "WebhookCheckRunRequestedAction", "WebhookCheckRunRequestedActionPropRequestedAction", ), - ".group_0454": ("WebhookCheckRunRequestedActionFormEncoded",), - ".group_0455": ("WebhookCheckRunRerequested",), - ".group_0456": ("WebhookCheckRunRerequestedFormEncoded",), - ".group_0457": ( + ".group_0460": ("WebhookCheckRunRequestedActionFormEncoded",), + ".group_0461": ("WebhookCheckRunRerequested",), + ".group_0462": ("WebhookCheckRunRerequestedFormEncoded",), + ".group_0463": ( "WebhookCheckSuiteCompleted", "WebhookCheckSuiteCompletedPropCheckSuite", "WebhookCheckSuiteCompletedPropCheckSuitePropApp", @@ -9793,7 +9854,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0458": ( + ".group_0464": ( "WebhookCheckSuiteRequested", "WebhookCheckSuiteRequestedPropCheckSuite", "WebhookCheckSuiteRequestedPropCheckSuitePropApp", @@ -9808,7 +9869,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0459": ( + ".group_0465": ( "WebhookCheckSuiteRerequested", "WebhookCheckSuiteRerequestedPropCheckSuite", "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", @@ -9823,7 +9884,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0460": ( + ".group_0466": ( "WebhookCodeScanningAlertAppearedInBranch", "WebhookCodeScanningAlertAppearedInBranchPropAlert", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", @@ -9833,7 +9894,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ), - ".group_0461": ( + ".group_0467": ( "WebhookCodeScanningAlertClosedByUser", "WebhookCodeScanningAlertClosedByUserPropAlert", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", @@ -9843,7 +9904,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ), - ".group_0462": ( + ".group_0468": ( "WebhookCodeScanningAlertCreated", "WebhookCodeScanningAlertCreatedPropAlert", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", @@ -9852,7 +9913,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRule", "WebhookCodeScanningAlertCreatedPropAlertPropTool", ), - ".group_0463": ( + ".group_0469": ( "WebhookCodeScanningAlertFixed", "WebhookCodeScanningAlertFixedPropAlert", "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", @@ -9862,7 +9923,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRule", "WebhookCodeScanningAlertFixedPropAlertPropTool", ), - ".group_0464": ( + ".group_0470": ( "WebhookCodeScanningAlertReopened", "WebhookCodeScanningAlertReopenedPropAlert", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", @@ -9872,7 +9933,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRule", "WebhookCodeScanningAlertReopenedPropAlertPropTool", ), - ".group_0465": ( + ".group_0471": ( "WebhookCodeScanningAlertReopenedByUser", "WebhookCodeScanningAlertReopenedByUserPropAlert", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", @@ -9881,31 +9942,31 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", ), - ".group_0466": ( + ".group_0472": ( "WebhookCommitCommentCreated", "WebhookCommitCommentCreatedPropComment", "WebhookCommitCommentCreatedPropCommentPropReactions", "WebhookCommitCommentCreatedPropCommentPropUser", ), - ".group_0467": ("WebhookCreate",), - ".group_0468": ("WebhookCustomPropertyCreated",), - ".group_0469": ( + ".group_0473": ("WebhookCreate",), + ".group_0474": ("WebhookCustomPropertyCreated",), + ".group_0475": ( "WebhookCustomPropertyDeleted", "WebhookCustomPropertyDeletedPropDefinition", ), - ".group_0470": ("WebhookCustomPropertyUpdated",), - ".group_0471": ("WebhookCustomPropertyValuesUpdated",), - ".group_0472": ("WebhookDelete",), - ".group_0473": ("WebhookDependabotAlertAutoDismissed",), - ".group_0474": ("WebhookDependabotAlertAutoReopened",), - ".group_0475": ("WebhookDependabotAlertCreated",), - ".group_0476": ("WebhookDependabotAlertDismissed",), - ".group_0477": ("WebhookDependabotAlertFixed",), - ".group_0478": ("WebhookDependabotAlertReintroduced",), - ".group_0479": ("WebhookDependabotAlertReopened",), - ".group_0480": ("WebhookDeployKeyCreated",), - ".group_0481": ("WebhookDeployKeyDeleted",), - ".group_0482": ( + ".group_0476": ("WebhookCustomPropertyUpdated",), + ".group_0477": ("WebhookCustomPropertyValuesUpdated",), + ".group_0478": ("WebhookDelete",), + ".group_0479": ("WebhookDependabotAlertAutoDismissed",), + ".group_0480": ("WebhookDependabotAlertAutoReopened",), + ".group_0481": ("WebhookDependabotAlertCreated",), + ".group_0482": ("WebhookDependabotAlertDismissed",), + ".group_0483": ("WebhookDependabotAlertFixed",), + ".group_0484": ("WebhookDependabotAlertReintroduced",), + ".group_0485": ("WebhookDependabotAlertReopened",), + ".group_0486": ("WebhookDeployKeyCreated",), + ".group_0487": ("WebhookDeployKeyDeleted",), + ".group_0488": ( "WebhookDeploymentCreated", "WebhookDeploymentCreatedPropDeployment", "WebhookDeploymentCreatedPropDeploymentPropCreator", @@ -9927,8 +9988,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0483": ("WebhookDeploymentProtectionRuleRequested",), - ".group_0484": ( + ".group_0489": ("WebhookDeploymentProtectionRuleRequested",), + ".group_0490": ( "WebhookDeploymentReviewApproved", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", "WebhookDeploymentReviewApprovedPropWorkflowRun", @@ -9946,7 +10007,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0485": ( + ".group_0491": ( "WebhookDeploymentReviewRejected", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", "WebhookDeploymentReviewRejectedPropWorkflowRun", @@ -9964,7 +10025,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0486": ( + ".group_0492": ( "WebhookDeploymentReviewRequested", "WebhookDeploymentReviewRequestedPropWorkflowJobRun", "WebhookDeploymentReviewRequestedPropReviewersItems", @@ -9984,7 +10045,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0487": ( + ".group_0493": ( "WebhookDeploymentStatusCreated", "WebhookDeploymentStatusCreatedPropCheckRun", "WebhookDeploymentStatusCreatedPropDeployment", @@ -10012,119 +10073,119 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0488": ("WebhookDiscussionAnswered",), - ".group_0489": ( + ".group_0494": ("WebhookDiscussionAnswered",), + ".group_0495": ( "WebhookDiscussionCategoryChanged", "WebhookDiscussionCategoryChangedPropChanges", "WebhookDiscussionCategoryChangedPropChangesPropCategory", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ), - ".group_0490": ("WebhookDiscussionClosed",), - ".group_0491": ("WebhookDiscussionCommentCreated",), - ".group_0492": ("WebhookDiscussionCommentDeleted",), - ".group_0493": ( + ".group_0496": ("WebhookDiscussionClosed",), + ".group_0497": ("WebhookDiscussionCommentCreated",), + ".group_0498": ("WebhookDiscussionCommentDeleted",), + ".group_0499": ( "WebhookDiscussionCommentEdited", "WebhookDiscussionCommentEditedPropChanges", "WebhookDiscussionCommentEditedPropChangesPropBody", ), - ".group_0494": ("WebhookDiscussionCreated",), - ".group_0495": ("WebhookDiscussionDeleted",), - ".group_0496": ( + ".group_0500": ("WebhookDiscussionCreated",), + ".group_0501": ("WebhookDiscussionDeleted",), + ".group_0502": ( "WebhookDiscussionEdited", "WebhookDiscussionEditedPropChanges", "WebhookDiscussionEditedPropChangesPropBody", "WebhookDiscussionEditedPropChangesPropTitle", ), - ".group_0497": ("WebhookDiscussionLabeled",), - ".group_0498": ("WebhookDiscussionLocked",), - ".group_0499": ("WebhookDiscussionPinned",), - ".group_0500": ("WebhookDiscussionReopened",), - ".group_0501": ("WebhookDiscussionTransferred",), - ".group_0502": ("WebhookDiscussionTransferredPropChanges",), - ".group_0503": ("WebhookDiscussionUnanswered",), - ".group_0504": ("WebhookDiscussionUnlabeled",), - ".group_0505": ("WebhookDiscussionUnlocked",), - ".group_0506": ("WebhookDiscussionUnpinned",), - ".group_0507": ("WebhookFork",), - ".group_0508": ( + ".group_0503": ("WebhookDiscussionLabeled",), + ".group_0504": ("WebhookDiscussionLocked",), + ".group_0505": ("WebhookDiscussionPinned",), + ".group_0506": ("WebhookDiscussionReopened",), + ".group_0507": ("WebhookDiscussionTransferred",), + ".group_0508": ("WebhookDiscussionTransferredPropChanges",), + ".group_0509": ("WebhookDiscussionUnanswered",), + ".group_0510": ("WebhookDiscussionUnlabeled",), + ".group_0511": ("WebhookDiscussionUnlocked",), + ".group_0512": ("WebhookDiscussionUnpinned",), + ".group_0513": ("WebhookFork",), + ".group_0514": ( "WebhookForkPropForkee", "WebhookForkPropForkeeMergedLicense", "WebhookForkPropForkeeMergedOwner", ), - ".group_0509": ( + ".group_0515": ( "WebhookForkPropForkeeAllof0", "WebhookForkPropForkeeAllof0PropLicense", "WebhookForkPropForkeeAllof0PropOwner", ), - ".group_0510": ("WebhookForkPropForkeeAllof0PropPermissions",), - ".group_0511": ( + ".group_0516": ("WebhookForkPropForkeeAllof0PropPermissions",), + ".group_0517": ( "WebhookForkPropForkeeAllof1", "WebhookForkPropForkeeAllof1PropLicense", "WebhookForkPropForkeeAllof1PropOwner", ), - ".group_0512": ("WebhookGithubAppAuthorizationRevoked",), - ".group_0513": ( + ".group_0518": ("WebhookGithubAppAuthorizationRevoked",), + ".group_0519": ( "WebhookGollum", "WebhookGollumPropPagesItems", ), - ".group_0514": ("WebhookInstallationCreated",), - ".group_0515": ("WebhookInstallationDeleted",), - ".group_0516": ("WebhookInstallationNewPermissionsAccepted",), - ".group_0517": ( + ".group_0520": ("WebhookInstallationCreated",), + ".group_0521": ("WebhookInstallationDeleted",), + ".group_0522": ("WebhookInstallationNewPermissionsAccepted",), + ".group_0523": ( "WebhookInstallationRepositoriesAdded", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", ), - ".group_0518": ( + ".group_0524": ( "WebhookInstallationRepositoriesRemoved", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ), - ".group_0519": ("WebhookInstallationSuspend",), - ".group_0520": ( + ".group_0525": ("WebhookInstallationSuspend",), + ".group_0526": ( "WebhookInstallationTargetRenamed", "WebhookInstallationTargetRenamedPropAccount", "WebhookInstallationTargetRenamedPropChanges", "WebhookInstallationTargetRenamedPropChangesPropLogin", "WebhookInstallationTargetRenamedPropChangesPropSlug", ), - ".group_0521": ("WebhookInstallationUnsuspend",), - ".group_0522": ("WebhookIssueCommentCreated",), - ".group_0523": ( + ".group_0527": ("WebhookInstallationUnsuspend",), + ".group_0528": ("WebhookIssueCommentCreated",), + ".group_0529": ( "WebhookIssueCommentCreatedPropComment", "WebhookIssueCommentCreatedPropCommentPropReactions", "WebhookIssueCommentCreatedPropCommentPropUser", ), - ".group_0524": ( + ".group_0530": ( "WebhookIssueCommentCreatedPropIssue", "WebhookIssueCommentCreatedPropIssueMergedAssignees", "WebhookIssueCommentCreatedPropIssueMergedReactions", "WebhookIssueCommentCreatedPropIssueMergedUser", ), - ".group_0525": ( + ".group_0531": ( "WebhookIssueCommentCreatedPropIssueAllof0", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ), - ".group_0526": ( + ".group_0532": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", ), - ".group_0527": ( + ".group_0533": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0528": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), - ".group_0529": ( + ".group_0534": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), + ".group_0535": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0530": ( + ".group_0536": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0531": ( + ".group_0537": ( "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0532": ( + ".group_0538": ( "WebhookIssueCommentCreatedPropIssueAllof1", "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", @@ -10134,43 +10195,43 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ), - ".group_0533": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), - ".group_0534": ( + ".group_0539": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), + ".group_0540": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp", ), - ".group_0535": ("WebhookIssueCommentDeleted",), - ".group_0536": ( + ".group_0541": ("WebhookIssueCommentDeleted",), + ".group_0542": ( "WebhookIssueCommentDeletedPropIssue", "WebhookIssueCommentDeletedPropIssueMergedAssignees", "WebhookIssueCommentDeletedPropIssueMergedReactions", "WebhookIssueCommentDeletedPropIssueMergedUser", ), - ".group_0537": ( + ".group_0543": ( "WebhookIssueCommentDeletedPropIssueAllof0", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ), - ".group_0538": ( + ".group_0544": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", ), - ".group_0539": ( + ".group_0545": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0540": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), - ".group_0541": ( + ".group_0546": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), + ".group_0547": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0542": ( + ".group_0548": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0543": ( + ".group_0549": ( "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0544": ( + ".group_0550": ( "WebhookIssueCommentDeletedPropIssueAllof1", "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", @@ -10180,43 +10241,43 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ), - ".group_0545": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), - ".group_0546": ( + ".group_0551": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), + ".group_0552": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp", ), - ".group_0547": ("WebhookIssueCommentEdited",), - ".group_0548": ( + ".group_0553": ("WebhookIssueCommentEdited",), + ".group_0554": ( "WebhookIssueCommentEditedPropIssue", "WebhookIssueCommentEditedPropIssueMergedAssignees", "WebhookIssueCommentEditedPropIssueMergedReactions", "WebhookIssueCommentEditedPropIssueMergedUser", ), - ".group_0549": ( + ".group_0555": ( "WebhookIssueCommentEditedPropIssueAllof0", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentEditedPropIssueAllof0PropReactions", "WebhookIssueCommentEditedPropIssueAllof0PropUser", ), - ".group_0550": ( + ".group_0556": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", ), - ".group_0551": ( + ".group_0557": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0552": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), - ".group_0553": ( + ".group_0558": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), + ".group_0559": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0554": ( + ".group_0560": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0555": ( + ".group_0561": ( "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0556": ( + ".group_0562": ( "WebhookIssueCommentEditedPropIssueAllof1", "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", @@ -10226,13 +10287,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactions", "WebhookIssueCommentEditedPropIssueAllof1PropUser", ), - ".group_0557": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), - ".group_0558": ( + ".group_0563": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), + ".group_0564": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp", ), - ".group_0559": ("WebhookIssuesAssigned",), - ".group_0560": ("WebhookIssuesClosed",), - ".group_0561": ( + ".group_0565": ("WebhookIssuesAssigned",), + ".group_0566": ("WebhookIssuesClosed",), + ".group_0567": ( "WebhookIssuesClosedPropIssue", "WebhookIssuesClosedPropIssueMergedAssignee", "WebhookIssuesClosedPropIssueMergedAssignees", @@ -10240,7 +10301,7 @@ "WebhookIssuesClosedPropIssueMergedReactions", "WebhookIssuesClosedPropIssueMergedUser", ), - ".group_0562": ( + ".group_0568": ( "WebhookIssuesClosedPropIssueAllof0", "WebhookIssuesClosedPropIssueAllof0PropAssignee", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", @@ -10248,18 +10309,18 @@ "WebhookIssuesClosedPropIssueAllof0PropReactions", "WebhookIssuesClosedPropIssueAllof0PropUser", ), - ".group_0563": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), - ".group_0564": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), - ".group_0565": ( + ".group_0569": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), + ".group_0570": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), + ".group_0571": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0566": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), - ".group_0567": ( + ".group_0572": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), + ".group_0573": ( "WebhookIssuesClosedPropIssueAllof0PropPullRequest", "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0568": ( + ".group_0574": ( "WebhookIssuesClosedPropIssueAllof1", "WebhookIssuesClosedPropIssueAllof1PropAssignee", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", @@ -10269,9 +10330,9 @@ "WebhookIssuesClosedPropIssueAllof1PropReactions", "WebhookIssuesClosedPropIssueAllof1PropUser", ), - ".group_0569": ("WebhookIssuesClosedPropIssueMergedMilestone",), - ".group_0570": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), - ".group_0571": ( + ".group_0575": ("WebhookIssuesClosedPropIssueMergedMilestone",), + ".group_0576": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), + ".group_0577": ( "WebhookIssuesDeleted", "WebhookIssuesDeletedPropIssue", "WebhookIssuesDeletedPropIssuePropAssignee", @@ -10287,7 +10348,7 @@ "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", "WebhookIssuesDeletedPropIssuePropUser", ), - ".group_0572": ( + ".group_0578": ( "WebhookIssuesDemilestoned", "WebhookIssuesDemilestonedPropIssue", "WebhookIssuesDemilestonedPropIssuePropAssignee", @@ -10303,7 +10364,7 @@ "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesDemilestonedPropIssuePropUser", ), - ".group_0573": ( + ".group_0579": ( "WebhookIssuesEdited", "WebhookIssuesEditedPropChanges", "WebhookIssuesEditedPropChangesPropBody", @@ -10322,7 +10383,7 @@ "WebhookIssuesEditedPropIssuePropSubIssuesSummary", "WebhookIssuesEditedPropIssuePropUser", ), - ".group_0574": ( + ".group_0580": ( "WebhookIssuesLabeled", "WebhookIssuesLabeledPropIssue", "WebhookIssuesLabeledPropIssuePropAssignee", @@ -10338,7 +10399,7 @@ "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", "WebhookIssuesLabeledPropIssuePropUser", ), - ".group_0575": ( + ".group_0581": ( "WebhookIssuesLocked", "WebhookIssuesLockedPropIssue", "WebhookIssuesLockedPropIssuePropAssignee", @@ -10354,7 +10415,7 @@ "WebhookIssuesLockedPropIssuePropSubIssuesSummary", "WebhookIssuesLockedPropIssuePropUser", ), - ".group_0576": ( + ".group_0582": ( "WebhookIssuesMilestoned", "WebhookIssuesMilestonedPropIssue", "WebhookIssuesMilestonedPropIssuePropAssignee", @@ -10370,7 +10431,7 @@ "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesMilestonedPropIssuePropUser", ), - ".group_0577": ( + ".group_0583": ( "WebhookIssuesOpened", "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", @@ -10405,8 +10466,8 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ), - ".group_0578": ("WebhookIssuesPinned",), - ".group_0579": ( + ".group_0584": ("WebhookIssuesPinned",), + ".group_0585": ( "WebhookIssuesReopened", "WebhookIssuesReopenedPropIssue", "WebhookIssuesReopenedPropIssuePropAssignee", @@ -10422,7 +10483,7 @@ "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", "WebhookIssuesReopenedPropIssuePropUser", ), - ".group_0580": ( + ".group_0586": ( "WebhookIssuesTransferred", "WebhookIssuesTransferredPropChanges", "WebhookIssuesTransferredPropChangesPropNewIssue", @@ -10444,9 +10505,9 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ), - ".group_0581": ("WebhookIssuesUnassigned",), - ".group_0582": ("WebhookIssuesUnlabeled",), - ".group_0583": ( + ".group_0587": ("WebhookIssuesUnassigned",), + ".group_0588": ("WebhookIssuesUnlabeled",), + ".group_0589": ( "WebhookIssuesUnlocked", "WebhookIssuesUnlockedPropIssue", "WebhookIssuesUnlockedPropIssuePropAssignee", @@ -10462,103 +10523,103 @@ "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", "WebhookIssuesUnlockedPropIssuePropUser", ), - ".group_0584": ("WebhookIssuesUnpinned",), - ".group_0585": ("WebhookLabelCreated",), - ".group_0586": ("WebhookLabelDeleted",), - ".group_0587": ( + ".group_0590": ("WebhookIssuesUnpinned",), + ".group_0591": ("WebhookLabelCreated",), + ".group_0592": ("WebhookLabelDeleted",), + ".group_0593": ( "WebhookLabelEdited", "WebhookLabelEditedPropChanges", "WebhookLabelEditedPropChangesPropColor", "WebhookLabelEditedPropChangesPropDescription", "WebhookLabelEditedPropChangesPropName", ), - ".group_0588": ("WebhookMarketplacePurchaseCancelled",), - ".group_0589": ( + ".group_0594": ("WebhookMarketplacePurchaseCancelled",), + ".group_0595": ( "WebhookMarketplacePurchaseChanged", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ), - ".group_0590": ( + ".group_0596": ( "WebhookMarketplacePurchasePendingChange", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ), - ".group_0591": ( + ".group_0597": ( "WebhookMarketplacePurchasePendingChangeCancelled", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ), - ".group_0592": ("WebhookMarketplacePurchasePurchased",), - ".group_0593": ( + ".group_0598": ("WebhookMarketplacePurchasePurchased",), + ".group_0599": ( "WebhookMemberAdded", "WebhookMemberAddedPropChanges", "WebhookMemberAddedPropChangesPropPermission", "WebhookMemberAddedPropChangesPropRoleName", ), - ".group_0594": ( + ".group_0600": ( "WebhookMemberEdited", "WebhookMemberEditedPropChanges", "WebhookMemberEditedPropChangesPropOldPermission", "WebhookMemberEditedPropChangesPropPermission", ), - ".group_0595": ("WebhookMemberRemoved",), - ".group_0596": ( + ".group_0601": ("WebhookMemberRemoved",), + ".group_0602": ( "WebhookMembershipAdded", "WebhookMembershipAddedPropSender", ), - ".group_0597": ( + ".group_0603": ( "WebhookMembershipRemoved", "WebhookMembershipRemovedPropSender", ), - ".group_0598": ("WebhookMergeGroupChecksRequested",), - ".group_0599": ("WebhookMergeGroupDestroyed",), - ".group_0600": ( + ".group_0604": ("WebhookMergeGroupChecksRequested",), + ".group_0605": ("WebhookMergeGroupDestroyed",), + ".group_0606": ( "WebhookMetaDeleted", "WebhookMetaDeletedPropHook", "WebhookMetaDeletedPropHookPropConfig", ), - ".group_0601": ("WebhookMilestoneClosed",), - ".group_0602": ("WebhookMilestoneCreated",), - ".group_0603": ("WebhookMilestoneDeleted",), - ".group_0604": ( + ".group_0607": ("WebhookMilestoneClosed",), + ".group_0608": ("WebhookMilestoneCreated",), + ".group_0609": ("WebhookMilestoneDeleted",), + ".group_0610": ( "WebhookMilestoneEdited", "WebhookMilestoneEditedPropChanges", "WebhookMilestoneEditedPropChangesPropDescription", "WebhookMilestoneEditedPropChangesPropDueOn", "WebhookMilestoneEditedPropChangesPropTitle", ), - ".group_0605": ("WebhookMilestoneOpened",), - ".group_0606": ("WebhookOrgBlockBlocked",), - ".group_0607": ("WebhookOrgBlockUnblocked",), - ".group_0608": ("WebhookOrganizationDeleted",), - ".group_0609": ("WebhookOrganizationMemberAdded",), - ".group_0610": ( + ".group_0611": ("WebhookMilestoneOpened",), + ".group_0612": ("WebhookOrgBlockBlocked",), + ".group_0613": ("WebhookOrgBlockUnblocked",), + ".group_0614": ("WebhookOrganizationDeleted",), + ".group_0615": ("WebhookOrganizationMemberAdded",), + ".group_0616": ( "WebhookOrganizationMemberInvited", "WebhookOrganizationMemberInvitedPropInvitation", "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ), - ".group_0611": ("WebhookOrganizationMemberRemoved",), - ".group_0612": ( + ".group_0617": ("WebhookOrganizationMemberRemoved",), + ".group_0618": ( "WebhookOrganizationRenamed", "WebhookOrganizationRenamedPropChanges", "WebhookOrganizationRenamedPropChangesPropLogin", ), - ".group_0613": ( + ".group_0619": ( "WebhookRubygemsMetadata", "WebhookRubygemsMetadataPropVersionInfo", "WebhookRubygemsMetadataPropMetadata", "WebhookRubygemsMetadataPropDependenciesItems", ), - ".group_0614": ("WebhookPackagePublished",), - ".group_0615": ( + ".group_0620": ("WebhookPackagePublished",), + ".group_0621": ( "WebhookPackagePublishedPropPackage", "WebhookPackagePublishedPropPackagePropOwner", "WebhookPackagePublishedPropPackagePropRegistry", ), - ".group_0616": ( + ".group_0622": ( "WebhookPackagePublishedPropPackagePropPackageVersion", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", @@ -10590,13 +10651,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0617": ("WebhookPackageUpdated",), - ".group_0618": ( + ".group_0623": ("WebhookPackageUpdated",), + ".group_0624": ( "WebhookPackageUpdatedPropPackage", "WebhookPackageUpdatedPropPackagePropOwner", "WebhookPackageUpdatedPropPackagePropRegistry", ), - ".group_0619": ( + ".group_0625": ( "WebhookPackageUpdatedPropPackagePropPackageVersion", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", @@ -10605,75 +10666,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0620": ( + ".group_0626": ( "WebhookPageBuild", "WebhookPageBuildPropBuild", "WebhookPageBuildPropBuildPropError", "WebhookPageBuildPropBuildPropPusher", ), - ".group_0621": ("WebhookPersonalAccessTokenRequestApproved",), - ".group_0622": ("WebhookPersonalAccessTokenRequestCancelled",), - ".group_0623": ("WebhookPersonalAccessTokenRequestCreated",), - ".group_0624": ("WebhookPersonalAccessTokenRequestDenied",), - ".group_0625": ("WebhookPing",), - ".group_0626": ( + ".group_0627": ("WebhookPersonalAccessTokenRequestApproved",), + ".group_0628": ("WebhookPersonalAccessTokenRequestCancelled",), + ".group_0629": ("WebhookPersonalAccessTokenRequestCreated",), + ".group_0630": ("WebhookPersonalAccessTokenRequestDenied",), + ".group_0631": ("WebhookPing",), + ".group_0632": ( "WebhookPingPropHook", "WebhookPingPropHookPropConfig", ), - ".group_0627": ("WebhookPingFormEncoded",), - ".group_0628": ( + ".group_0633": ("WebhookPingFormEncoded",), + ".group_0634": ( "WebhookProjectCardConverted", "WebhookProjectCardConvertedPropChanges", "WebhookProjectCardConvertedPropChangesPropNote", ), - ".group_0629": ("WebhookProjectCardCreated",), - ".group_0630": ( + ".group_0635": ("WebhookProjectCardCreated",), + ".group_0636": ( "WebhookProjectCardDeleted", "WebhookProjectCardDeletedPropProjectCard", "WebhookProjectCardDeletedPropProjectCardPropCreator", ), - ".group_0631": ( + ".group_0637": ( "WebhookProjectCardEdited", "WebhookProjectCardEditedPropChanges", "WebhookProjectCardEditedPropChangesPropNote", ), - ".group_0632": ( + ".group_0638": ( "WebhookProjectCardMoved", "WebhookProjectCardMovedPropChanges", "WebhookProjectCardMovedPropChangesPropColumnId", "WebhookProjectCardMovedPropProjectCard", "WebhookProjectCardMovedPropProjectCardMergedCreator", ), - ".group_0633": ( + ".group_0639": ( "WebhookProjectCardMovedPropProjectCardAllof0", "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ), - ".group_0634": ( + ".group_0640": ( "WebhookProjectCardMovedPropProjectCardAllof1", "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ), - ".group_0635": ("WebhookProjectClosed",), - ".group_0636": ("WebhookProjectColumnCreated",), - ".group_0637": ("WebhookProjectColumnDeleted",), - ".group_0638": ( + ".group_0641": ("WebhookProjectClosed",), + ".group_0642": ("WebhookProjectColumnCreated",), + ".group_0643": ("WebhookProjectColumnDeleted",), + ".group_0644": ( "WebhookProjectColumnEdited", "WebhookProjectColumnEditedPropChanges", "WebhookProjectColumnEditedPropChangesPropName", ), - ".group_0639": ("WebhookProjectColumnMoved",), - ".group_0640": ("WebhookProjectCreated",), - ".group_0641": ("WebhookProjectDeleted",), - ".group_0642": ( + ".group_0645": ("WebhookProjectColumnMoved",), + ".group_0646": ("WebhookProjectCreated",), + ".group_0647": ("WebhookProjectDeleted",), + ".group_0648": ( "WebhookProjectEdited", "WebhookProjectEditedPropChanges", "WebhookProjectEditedPropChangesPropBody", "WebhookProjectEditedPropChangesPropName", ), - ".group_0643": ("WebhookProjectReopened",), - ".group_0644": ("WebhookProjectsV2ProjectClosed",), - ".group_0645": ("WebhookProjectsV2ProjectCreated",), - ".group_0646": ("WebhookProjectsV2ProjectDeleted",), - ".group_0647": ( + ".group_0649": ("WebhookProjectReopened",), + ".group_0650": ("WebhookProjectsV2ProjectClosed",), + ".group_0651": ("WebhookProjectsV2ProjectCreated",), + ".group_0652": ("WebhookProjectsV2ProjectDeleted",), + ".group_0653": ( "WebhookProjectsV2ProjectEdited", "WebhookProjectsV2ProjectEditedPropChanges", "WebhookProjectsV2ProjectEditedPropChangesPropDescription", @@ -10681,15 +10742,15 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ), - ".group_0648": ("WebhookProjectsV2ItemArchived",), - ".group_0649": ( + ".group_0654": ("WebhookProjectsV2ItemArchived",), + ".group_0655": ( "WebhookProjectsV2ItemConverted", "WebhookProjectsV2ItemConvertedPropChanges", "WebhookProjectsV2ItemConvertedPropChangesPropContentType", ), - ".group_0650": ("WebhookProjectsV2ItemCreated",), - ".group_0651": ("WebhookProjectsV2ItemDeleted",), - ".group_0652": ( + ".group_0656": ("WebhookProjectsV2ItemCreated",), + ".group_0657": ("WebhookProjectsV2ItemDeleted",), + ".group_0658": ( "WebhookProjectsV2ItemEdited", "WebhookProjectsV2ItemEditedPropChangesOneof0", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", @@ -10698,16 +10759,16 @@ "WebhookProjectsV2ItemEditedPropChangesOneof1", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ), - ".group_0653": ( + ".group_0659": ( "WebhookProjectsV2ItemReordered", "WebhookProjectsV2ItemReorderedPropChanges", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ), - ".group_0654": ("WebhookProjectsV2ItemRestored",), - ".group_0655": ("WebhookProjectsV2ProjectReopened",), - ".group_0656": ("WebhookProjectsV2StatusUpdateCreated",), - ".group_0657": ("WebhookProjectsV2StatusUpdateDeleted",), - ".group_0658": ( + ".group_0660": ("WebhookProjectsV2ItemRestored",), + ".group_0661": ("WebhookProjectsV2ProjectReopened",), + ".group_0662": ("WebhookProjectsV2StatusUpdateCreated",), + ".group_0663": ("WebhookProjectsV2StatusUpdateDeleted",), + ".group_0664": ( "WebhookProjectsV2StatusUpdateEdited", "WebhookProjectsV2StatusUpdateEditedPropChanges", "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", @@ -10715,8 +10776,8 @@ "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", ), - ".group_0659": ("WebhookPublic",), - ".group_0660": ( + ".group_0665": ("WebhookPublic",), + ".group_0666": ( "WebhookPullRequestAssigned", "WebhookPullRequestAssignedPropPullRequest", "WebhookPullRequestAssignedPropPullRequestPropAssignee", @@ -10755,7 +10816,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0661": ( + ".group_0667": ( "WebhookPullRequestAutoMergeDisabled", "WebhookPullRequestAutoMergeDisabledPropPullRequest", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", @@ -10794,7 +10855,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0662": ( + ".group_0668": ( "WebhookPullRequestAutoMergeEnabled", "WebhookPullRequestAutoMergeEnabledPropPullRequest", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", @@ -10833,10 +10894,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0663": ("WebhookPullRequestClosed",), - ".group_0664": ("WebhookPullRequestConvertedToDraft",), - ".group_0665": ("WebhookPullRequestDemilestoned",), - ".group_0666": ( + ".group_0669": ("WebhookPullRequestClosed",), + ".group_0670": ("WebhookPullRequestConvertedToDraft",), + ".group_0671": ("WebhookPullRequestDemilestoned",), + ".group_0672": ( "WebhookPullRequestDequeued", "WebhookPullRequestDequeuedPropPullRequest", "WebhookPullRequestDequeuedPropPullRequestPropAssignee", @@ -10875,7 +10936,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0667": ( + ".group_0673": ( "WebhookPullRequestEdited", "WebhookPullRequestEditedPropChanges", "WebhookPullRequestEditedPropChangesPropBody", @@ -10884,7 +10945,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRef", "WebhookPullRequestEditedPropChangesPropBasePropSha", ), - ".group_0668": ( + ".group_0674": ( "WebhookPullRequestEnqueued", "WebhookPullRequestEnqueuedPropPullRequest", "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", @@ -10923,7 +10984,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0669": ( + ".group_0675": ( "WebhookPullRequestLabeled", "WebhookPullRequestLabeledPropPullRequest", "WebhookPullRequestLabeledPropPullRequestPropAssignee", @@ -10962,7 +11023,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0670": ( + ".group_0676": ( "WebhookPullRequestLocked", "WebhookPullRequestLockedPropPullRequest", "WebhookPullRequestLockedPropPullRequestPropAssignee", @@ -11001,11 +11062,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0671": ("WebhookPullRequestMilestoned",), - ".group_0672": ("WebhookPullRequestOpened",), - ".group_0673": ("WebhookPullRequestReadyForReview",), - ".group_0674": ("WebhookPullRequestReopened",), - ".group_0675": ( + ".group_0677": ("WebhookPullRequestMilestoned",), + ".group_0678": ("WebhookPullRequestOpened",), + ".group_0679": ("WebhookPullRequestReadyForReview",), + ".group_0680": ("WebhookPullRequestReopened",), + ".group_0681": ( "WebhookPullRequestReviewCommentCreated", "WebhookPullRequestReviewCommentCreatedPropComment", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", @@ -11050,7 +11111,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0676": ( + ".group_0682": ( "WebhookPullRequestReviewCommentDeleted", "WebhookPullRequestReviewCommentDeletedPropPullRequest", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", @@ -11088,7 +11149,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0677": ( + ".group_0683": ( "WebhookPullRequestReviewCommentEdited", "WebhookPullRequestReviewCommentEditedPropPullRequest", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", @@ -11126,7 +11187,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0678": ( + ".group_0684": ( "WebhookPullRequestReviewDismissed", "WebhookPullRequestReviewDismissedPropReview", "WebhookPullRequestReviewDismissedPropReviewPropUser", @@ -11169,7 +11230,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0679": ( + ".group_0685": ( "WebhookPullRequestReviewEdited", "WebhookPullRequestReviewEditedPropChanges", "WebhookPullRequestReviewEditedPropChangesPropBody", @@ -11209,7 +11270,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0680": ( + ".group_0686": ( "WebhookPullRequestReviewRequestRemovedOneof0", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", @@ -11249,7 +11310,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0681": ( + ".group_0687": ( "WebhookPullRequestReviewRequestRemovedOneof1", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", @@ -11290,7 +11351,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0682": ( + ".group_0688": ( "WebhookPullRequestReviewRequestedOneof0", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestedOneof0PropPullRequest", @@ -11330,7 +11391,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0683": ( + ".group_0689": ( "WebhookPullRequestReviewRequestedOneof1", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", @@ -11371,7 +11432,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0684": ( + ".group_0690": ( "WebhookPullRequestReviewSubmitted", "WebhookPullRequestReviewSubmittedPropPullRequest", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", @@ -11409,7 +11470,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0685": ( + ".group_0691": ( "WebhookPullRequestReviewThreadResolved", "WebhookPullRequestReviewThreadResolvedPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", @@ -11455,7 +11516,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0686": ( + ".group_0692": ( "WebhookPullRequestReviewThreadUnresolved", "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", @@ -11501,7 +11562,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0687": ( + ".group_0693": ( "WebhookPullRequestSynchronize", "WebhookPullRequestSynchronizePropPullRequest", "WebhookPullRequestSynchronizePropPullRequestPropAssignee", @@ -11540,7 +11601,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0688": ( + ".group_0694": ( "WebhookPullRequestUnassigned", "WebhookPullRequestUnassignedPropPullRequest", "WebhookPullRequestUnassignedPropPullRequestPropAssignee", @@ -11579,7 +11640,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0689": ( + ".group_0695": ( "WebhookPullRequestUnlabeled", "WebhookPullRequestUnlabeledPropPullRequest", "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", @@ -11618,7 +11679,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0690": ( + ".group_0696": ( "WebhookPullRequestUnlocked", "WebhookPullRequestUnlockedPropPullRequest", "WebhookPullRequestUnlockedPropPullRequestPropAssignee", @@ -11657,7 +11718,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0691": ( + ".group_0697": ( "WebhookPush", "WebhookPushPropHeadCommit", "WebhookPushPropHeadCommitPropAuthor", @@ -11672,13 +11733,13 @@ "WebhookPushPropRepositoryPropOwner", "WebhookPushPropRepositoryPropPermissions", ), - ".group_0692": ("WebhookRegistryPackagePublished",), - ".group_0693": ( + ".group_0698": ("WebhookRegistryPackagePublished",), + ".group_0699": ( "WebhookRegistryPackagePublishedPropRegistryPackage", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ), - ".group_0694": ( + ".group_0700": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", @@ -11709,13 +11770,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0695": ("WebhookRegistryPackageUpdated",), - ".group_0696": ( + ".group_0701": ("WebhookRegistryPackageUpdated",), + ".group_0702": ( "WebhookRegistryPackageUpdatedPropRegistryPackage", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ), - ".group_0697": ( + ".group_0703": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", @@ -11724,16 +11785,16 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0698": ("WebhookReleaseCreated",), - ".group_0699": ("WebhookReleaseDeleted",), - ".group_0700": ( + ".group_0704": ("WebhookReleaseCreated",), + ".group_0705": ("WebhookReleaseDeleted",), + ".group_0706": ( "WebhookReleaseEdited", "WebhookReleaseEditedPropChanges", "WebhookReleaseEditedPropChangesPropBody", "WebhookReleaseEditedPropChangesPropName", "WebhookReleaseEditedPropChangesPropMakeLatest", ), - ".group_0701": ( + ".group_0707": ( "WebhookReleasePrereleased", "WebhookReleasePrereleasedPropRelease", "WebhookReleasePrereleasedPropReleasePropAssetsItems", @@ -11741,19 +11802,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthor", "WebhookReleasePrereleasedPropReleasePropReactions", ), - ".group_0702": ("WebhookReleasePublished",), - ".group_0703": ("WebhookReleaseReleased",), - ".group_0704": ("WebhookReleaseUnpublished",), - ".group_0705": ("WebhookRepositoryAdvisoryPublished",), - ".group_0706": ("WebhookRepositoryAdvisoryReported",), - ".group_0707": ("WebhookRepositoryArchived",), - ".group_0708": ("WebhookRepositoryCreated",), - ".group_0709": ("WebhookRepositoryDeleted",), - ".group_0710": ( + ".group_0708": ("WebhookReleasePublished",), + ".group_0709": ("WebhookReleaseReleased",), + ".group_0710": ("WebhookReleaseUnpublished",), + ".group_0711": ("WebhookRepositoryAdvisoryPublished",), + ".group_0712": ("WebhookRepositoryAdvisoryReported",), + ".group_0713": ("WebhookRepositoryArchived",), + ".group_0714": ("WebhookRepositoryCreated",), + ".group_0715": ("WebhookRepositoryDeleted",), + ".group_0716": ( "WebhookRepositoryDispatchSample", "WebhookRepositoryDispatchSamplePropClientPayload", ), - ".group_0711": ( + ".group_0717": ( "WebhookRepositoryEdited", "WebhookRepositoryEditedPropChanges", "WebhookRepositoryEditedPropChangesPropDefaultBranch", @@ -11761,25 +11822,25 @@ "WebhookRepositoryEditedPropChangesPropHomepage", "WebhookRepositoryEditedPropChangesPropTopics", ), - ".group_0712": ("WebhookRepositoryImport",), - ".group_0713": ("WebhookRepositoryPrivatized",), - ".group_0714": ("WebhookRepositoryPublicized",), - ".group_0715": ( + ".group_0718": ("WebhookRepositoryImport",), + ".group_0719": ("WebhookRepositoryPrivatized",), + ".group_0720": ("WebhookRepositoryPublicized",), + ".group_0721": ( "WebhookRepositoryRenamed", "WebhookRepositoryRenamedPropChanges", "WebhookRepositoryRenamedPropChangesPropRepository", "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ), - ".group_0716": ("WebhookRepositoryRulesetCreated",), - ".group_0717": ("WebhookRepositoryRulesetDeleted",), - ".group_0718": ("WebhookRepositoryRulesetEdited",), - ".group_0719": ( + ".group_0722": ("WebhookRepositoryRulesetCreated",), + ".group_0723": ("WebhookRepositoryRulesetDeleted",), + ".group_0724": ("WebhookRepositoryRulesetEdited",), + ".group_0725": ( "WebhookRepositoryRulesetEditedPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropName", "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", ), - ".group_0720": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), - ".group_0721": ( + ".group_0726": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), + ".group_0727": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", @@ -11787,15 +11848,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", ), - ".group_0722": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), - ".group_0723": ( + ".group_0728": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), + ".group_0729": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ), - ".group_0724": ( + ".group_0730": ( "WebhookRepositoryTransferred", "WebhookRepositoryTransferredPropChanges", "WebhookRepositoryTransferredPropChangesPropOwner", @@ -11803,21 +11864,21 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ), - ".group_0725": ("WebhookRepositoryUnarchived",), - ".group_0726": ("WebhookRepositoryVulnerabilityAlertCreate",), - ".group_0727": ( + ".group_0731": ("WebhookRepositoryUnarchived",), + ".group_0732": ("WebhookRepositoryVulnerabilityAlertCreate",), + ".group_0733": ( "WebhookRepositoryVulnerabilityAlertDismiss", "WebhookRepositoryVulnerabilityAlertDismissPropAlert", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", ), - ".group_0728": ("WebhookRepositoryVulnerabilityAlertReopen",), - ".group_0729": ( + ".group_0734": ("WebhookRepositoryVulnerabilityAlertReopen",), + ".group_0735": ( "WebhookRepositoryVulnerabilityAlertResolve", "WebhookRepositoryVulnerabilityAlertResolvePropAlert", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", ), - ".group_0730": ("WebhookSecretScanningAlertCreated",), - ".group_0731": ( + ".group_0736": ("WebhookSecretScanningAlertCreated",), + ".group_0737": ( "WebhookSecretScanningAlertLocationCreated", "SecretScanningLocation", "SecretScanningLocationCommit", @@ -11834,16 +11895,16 @@ "SecretScanningLocationPullRequestReview", "SecretScanningLocationPullRequestReviewComment", ), - ".group_0732": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), - ".group_0733": ("WebhookSecretScanningAlertPubliclyLeaked",), - ".group_0734": ("WebhookSecretScanningAlertReopened",), - ".group_0735": ("WebhookSecretScanningAlertResolved",), - ".group_0736": ("WebhookSecretScanningAlertValidated",), - ".group_0737": ("WebhookSecretScanningScanCompleted",), - ".group_0738": ("WebhookSecurityAdvisoryPublished",), - ".group_0739": ("WebhookSecurityAdvisoryUpdated",), - ".group_0740": ("WebhookSecurityAdvisoryWithdrawn",), - ".group_0741": ( + ".group_0738": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), + ".group_0739": ("WebhookSecretScanningAlertPubliclyLeaked",), + ".group_0740": ("WebhookSecretScanningAlertReopened",), + ".group_0741": ("WebhookSecretScanningAlertResolved",), + ".group_0742": ("WebhookSecretScanningAlertValidated",), + ".group_0743": ("WebhookSecretScanningScanCompleted",), + ".group_0744": ("WebhookSecurityAdvisoryPublished",), + ".group_0745": ("WebhookSecurityAdvisoryUpdated",), + ".group_0746": ("WebhookSecurityAdvisoryWithdrawn",), + ".group_0747": ( "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", @@ -11853,22 +11914,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0742": ("WebhookSecurityAndAnalysis",), - ".group_0743": ("WebhookSecurityAndAnalysisPropChanges",), - ".group_0744": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), - ".group_0745": ("WebhookSponsorshipCancelled",), - ".group_0746": ("WebhookSponsorshipCreated",), - ".group_0747": ( + ".group_0748": ("WebhookSecurityAndAnalysis",), + ".group_0749": ("WebhookSecurityAndAnalysisPropChanges",), + ".group_0750": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), + ".group_0751": ("WebhookSponsorshipCancelled",), + ".group_0752": ("WebhookSponsorshipCreated",), + ".group_0753": ( "WebhookSponsorshipEdited", "WebhookSponsorshipEditedPropChanges", "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", ), - ".group_0748": ("WebhookSponsorshipPendingCancellation",), - ".group_0749": ("WebhookSponsorshipPendingTierChange",), - ".group_0750": ("WebhookSponsorshipTierChanged",), - ".group_0751": ("WebhookStarCreated",), - ".group_0752": ("WebhookStarDeleted",), - ".group_0753": ( + ".group_0754": ("WebhookSponsorshipPendingCancellation",), + ".group_0755": ("WebhookSponsorshipPendingTierChange",), + ".group_0756": ("WebhookSponsorshipTierChanged",), + ".group_0757": ("WebhookStarCreated",), + ".group_0758": ("WebhookStarDeleted",), + ".group_0759": ( "WebhookStatus", "WebhookStatusPropBranchesItems", "WebhookStatusPropBranchesItemsPropCommit", @@ -11882,16 +11943,16 @@ "WebhookStatusPropCommitPropCommitPropTree", "WebhookStatusPropCommitPropCommitPropVerification", ), - ".group_0754": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), - ".group_0755": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), - ".group_0756": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), - ".group_0757": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), - ".group_0758": ("WebhookSubIssuesParentIssueAdded",), - ".group_0759": ("WebhookSubIssuesParentIssueRemoved",), - ".group_0760": ("WebhookSubIssuesSubIssueAdded",), - ".group_0761": ("WebhookSubIssuesSubIssueRemoved",), - ".group_0762": ("WebhookTeamAdd",), - ".group_0763": ( + ".group_0760": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), + ".group_0761": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), + ".group_0762": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), + ".group_0763": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), + ".group_0764": ("WebhookSubIssuesParentIssueAdded",), + ".group_0765": ("WebhookSubIssuesParentIssueRemoved",), + ".group_0766": ("WebhookSubIssuesSubIssueAdded",), + ".group_0767": ("WebhookSubIssuesSubIssueRemoved",), + ".group_0768": ("WebhookTeamAdd",), + ".group_0769": ( "WebhookTeamAddedToRepository", "WebhookTeamAddedToRepositoryPropRepository", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", @@ -11899,7 +11960,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", ), - ".group_0764": ( + ".group_0770": ( "WebhookTeamCreated", "WebhookTeamCreatedPropRepository", "WebhookTeamCreatedPropRepositoryPropCustomProperties", @@ -11907,7 +11968,7 @@ "WebhookTeamCreatedPropRepositoryPropOwner", "WebhookTeamCreatedPropRepositoryPropPermissions", ), - ".group_0765": ( + ".group_0771": ( "WebhookTeamDeleted", "WebhookTeamDeletedPropRepository", "WebhookTeamDeletedPropRepositoryPropCustomProperties", @@ -11915,7 +11976,7 @@ "WebhookTeamDeletedPropRepositoryPropOwner", "WebhookTeamDeletedPropRepositoryPropPermissions", ), - ".group_0766": ( + ".group_0772": ( "WebhookTeamEdited", "WebhookTeamEditedPropRepository", "WebhookTeamEditedPropRepositoryPropCustomProperties", @@ -11931,7 +11992,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", ), - ".group_0767": ( + ".group_0773": ( "WebhookTeamRemovedFromRepository", "WebhookTeamRemovedFromRepositoryPropRepository", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", @@ -11939,48 +12000,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ), - ".group_0768": ("WebhookWatchStarted",), - ".group_0769": ( + ".group_0774": ("WebhookWatchStarted",), + ".group_0775": ( "WebhookWorkflowDispatch", "WebhookWorkflowDispatchPropInputs", ), - ".group_0770": ( + ".group_0776": ( "WebhookWorkflowJobCompleted", "WebhookWorkflowJobCompletedPropWorkflowJob", "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ), - ".group_0771": ( + ".group_0777": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ), - ".group_0772": ( + ".group_0778": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ), - ".group_0773": ( + ".group_0779": ( "WebhookWorkflowJobInProgress", "WebhookWorkflowJobInProgressPropWorkflowJob", "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ), - ".group_0774": ( + ".group_0780": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ), - ".group_0775": ( + ".group_0781": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ), - ".group_0776": ( + ".group_0782": ( "WebhookWorkflowJobQueued", "WebhookWorkflowJobQueuedPropWorkflowJob", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", ), - ".group_0777": ( + ".group_0783": ( "WebhookWorkflowJobWaiting", "WebhookWorkflowJobWaitingPropWorkflowJob", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", ), - ".group_0778": ( + ".group_0784": ( "WebhookWorkflowRunCompleted", "WebhookWorkflowRunCompletedPropWorkflowRun", "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", @@ -11999,7 +12060,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0779": ( + ".group_0785": ( "WebhookWorkflowRunInProgress", "WebhookWorkflowRunInProgressPropWorkflowRun", "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", @@ -12018,7 +12079,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0780": ( + ".group_0786": ( "WebhookWorkflowRunRequested", "WebhookWorkflowRunRequestedPropWorkflowRun", "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", @@ -12037,245 +12098,266 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0781": ("AppManifestsCodeConversionsPostResponse201",), - ".group_0782": ("AppManifestsCodeConversionsPostResponse201Allof1",), - ".group_0783": ("AppHookConfigPatchBody",), - ".group_0784": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), - ".group_0785": ("AppInstallationsInstallationIdAccessTokensPostBody",), - ".group_0786": ("ApplicationsClientIdGrantDeleteBody",), - ".group_0787": ("ApplicationsClientIdTokenPostBody",), - ".group_0788": ("ApplicationsClientIdTokenDeleteBody",), - ".group_0789": ("ApplicationsClientIdTokenPatchBody",), - ".group_0790": ("ApplicationsClientIdTokenScopedPostBody",), - ".group_0791": ("EmojisGetResponse200",), - ".group_0792": ( + ".group_0787": ("AppManifestsCodeConversionsPostResponse201",), + ".group_0788": ("AppManifestsCodeConversionsPostResponse201Allof1",), + ".group_0789": ("AppHookConfigPatchBody",), + ".group_0790": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), + ".group_0791": ("AppInstallationsInstallationIdAccessTokensPostBody",), + ".group_0792": ("ApplicationsClientIdGrantDeleteBody",), + ".group_0793": ("ApplicationsClientIdTokenPostBody",), + ".group_0794": ("ApplicationsClientIdTokenDeleteBody",), + ".group_0795": ("ApplicationsClientIdTokenPatchBody",), + ".group_0796": ("ApplicationsClientIdTokenScopedPostBody",), + ".group_0797": ("EmojisGetResponse200",), + ".group_0798": ( "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", ), - ".group_0793": ( + ".group_0799": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", ), - ".group_0794": ( + ".group_0800": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0795": ( + ".group_0801": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0796": ( + ".group_0802": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0797": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",), - ".group_0798": ( + ".group_0803": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",), + ".group_0804": ( "GistsPostBody", "GistsPostBodyPropFiles", ), - ".group_0799": ( + ".group_0805": ( "GistsGistIdGetResponse403", "GistsGistIdGetResponse403PropBlock", ), - ".group_0800": ( + ".group_0806": ( "GistsGistIdPatchBody", "GistsGistIdPatchBodyPropFiles", ), - ".group_0801": ("GistsGistIdCommentsPostBody",), - ".group_0802": ("GistsGistIdCommentsCommentIdPatchBody",), - ".group_0803": ("GistsGistIdStarGetResponse404",), - ".group_0804": ("InstallationRepositoriesGetResponse200",), - ".group_0805": ("MarkdownPostBody",), - ".group_0806": ("NotificationsPutBody",), - ".group_0807": ("NotificationsPutResponse202",), - ".group_0808": ("NotificationsThreadsThreadIdSubscriptionPutBody",), - ".group_0809": ("OrgsOrgPatchBody",), - ".group_0810": ( + ".group_0807": ("GistsGistIdCommentsPostBody",), + ".group_0808": ("GistsGistIdCommentsCommentIdPatchBody",), + ".group_0809": ("GistsGistIdStarGetResponse404",), + ".group_0810": ("InstallationRepositoriesGetResponse200",), + ".group_0811": ("MarkdownPostBody",), + ".group_0812": ("NotificationsPutBody",), + ".group_0813": ("NotificationsPutResponse202",), + ".group_0814": ("NotificationsThreadsThreadIdSubscriptionPutBody",), + ".group_0815": ("OrgsOrgPatchBody",), + ".group_0816": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", ), - ".group_0811": ("OrgsOrgActionsPermissionsPutBody",), - ".group_0812": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), - ".group_0813": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), - ".group_0814": ( + ".group_0817": ("OrgsOrgActionsHostedRunnersGetResponse200",), + ".group_0818": ( + "OrgsOrgActionsHostedRunnersPostBody", + "OrgsOrgActionsHostedRunnersPostBodyPropImage", + ), + ".group_0819": ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",), + ".group_0820": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",), + ".group_0821": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",), + ".group_0822": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",), + ".group_0823": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",), + ".group_0824": ("OrgsOrgActionsPermissionsPutBody",), + ".group_0825": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), + ".group_0826": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), + ".group_0827": ( "OrgsOrgActionsRunnerGroupsGetResponse200", "RunnerGroupsOrg", ), - ".group_0815": ("OrgsOrgActionsRunnerGroupsPostBody",), - ".group_0816": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), - ".group_0817": ( + ".group_0828": ("OrgsOrgActionsRunnerGroupsPostBody",), + ".group_0829": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), + ".group_0830": ( + "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200", + ), + ".group_0831": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200", ), - ".group_0818": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), - ".group_0819": ( + ".group_0832": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), + ".group_0833": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0820": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), - ".group_0821": ("OrgsOrgActionsRunnersGetResponse200",), - ".group_0822": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), - ".group_0823": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",), - ".group_0824": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",), - ".group_0825": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), - ".group_0826": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), - ".group_0827": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",), - ".group_0828": ( + ".group_0834": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), + ".group_0835": ("OrgsOrgActionsRunnersGetResponse200",), + ".group_0836": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), + ".group_0837": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",), + ".group_0838": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",), + ".group_0839": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), + ".group_0840": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), + ".group_0841": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",), + ".group_0842": ( "OrgsOrgActionsSecretsGetResponse200", "OrganizationActionsSecret", ), - ".group_0829": ("OrgsOrgActionsSecretsSecretNamePutBody",), - ".group_0830": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), - ".group_0831": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), - ".group_0832": ( + ".group_0843": ("OrgsOrgActionsSecretsSecretNamePutBody",), + ".group_0844": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), + ".group_0845": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), + ".group_0846": ( "OrgsOrgActionsVariablesGetResponse200", "OrganizationActionsVariable", ), - ".group_0833": ("OrgsOrgActionsVariablesPostBody",), - ".group_0834": ("OrgsOrgActionsVariablesNamePatchBody",), - ".group_0835": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), - ".group_0836": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), - ".group_0837": ( + ".group_0847": ("OrgsOrgActionsVariablesPostBody",), + ".group_0848": ("OrgsOrgActionsVariablesNamePatchBody",), + ".group_0849": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), + ".group_0850": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), + ".group_0851": ( "OrgsOrgAttestationsSubjectDigestGetResponse200", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_0838": ( + ".group_0852": ( "OrgsOrgCodeSecurityConfigurationsPostBody", "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0839": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), - ".group_0840": ( + ".group_0853": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), + ".group_0854": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0841": ( + ".group_0855": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0842": ( + ".group_0856": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0843": ( + ".group_0857": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0844": ("OrgsOrgCodespacesGetResponse200",), - ".group_0845": ("OrgsOrgCodespacesAccessPutBody",), - ".group_0846": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), - ".group_0847": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), - ".group_0848": ( + ".group_0858": ("OrgsOrgCodespacesGetResponse200",), + ".group_0859": ("OrgsOrgCodespacesAccessPutBody",), + ".group_0860": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), + ".group_0861": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), + ".group_0862": ( "OrgsOrgCodespacesSecretsGetResponse200", "CodespacesOrgSecret", ), - ".group_0849": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), - ".group_0850": ( + ".group_0863": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), + ".group_0864": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0851": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_0852": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), - ".group_0853": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), - ".group_0854": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), - ".group_0855": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), - ".group_0856": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), - ".group_0857": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), - ".group_0858": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), - ".group_0859": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), - ".group_0860": ( + ".group_0865": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_0866": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), + ".group_0867": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), + ".group_0868": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), + ".group_0869": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), + ".group_0870": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), + ".group_0871": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), + ".group_0872": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), + ".group_0873": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), + ".group_0874": ( "OrgsOrgDependabotSecretsGetResponse200", "OrganizationDependabotSecret", ), - ".group_0861": ("OrgsOrgDependabotSecretsSecretNamePutBody",), - ".group_0862": ( + ".group_0875": ("OrgsOrgDependabotSecretsSecretNamePutBody",), + ".group_0876": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0863": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), - ".group_0864": ( + ".group_0877": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), + ".group_0878": ( "OrgsOrgHooksPostBody", "OrgsOrgHooksPostBodyPropConfig", ), - ".group_0865": ( + ".group_0879": ( "OrgsOrgHooksHookIdPatchBody", "OrgsOrgHooksHookIdPatchBodyPropConfig", ), - ".group_0866": ("OrgsOrgHooksHookIdConfigPatchBody",), - ".group_0867": ("OrgsOrgInstallationsGetResponse200",), - ".group_0868": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), - ".group_0869": ("OrgsOrgInvitationsPostBody",), - ".group_0870": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), - ".group_0871": ("OrgsOrgMembershipsUsernamePutBody",), - ".group_0872": ("OrgsOrgMigrationsPostBody",), - ".group_0873": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), - ".group_0874": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), - ".group_0875": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), - ".group_0876": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), - ".group_0877": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), - ".group_0878": ("OrgsOrgPersonalAccessTokensPostBody",), - ".group_0879": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), - ".group_0880": ( + ".group_0880": ("OrgsOrgHooksHookIdConfigPatchBody",), + ".group_0881": ("OrgsOrgInstallationsGetResponse200",), + ".group_0882": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), + ".group_0883": ("OrgsOrgInvitationsPostBody",), + ".group_0884": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), + ".group_0885": ("OrgsOrgMembershipsUsernamePutBody",), + ".group_0886": ("OrgsOrgMigrationsPostBody",), + ".group_0887": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), + ".group_0888": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), + ".group_0889": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), + ".group_0890": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), + ".group_0891": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), + ".group_0892": ("OrgsOrgPersonalAccessTokensPostBody",), + ".group_0893": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), + ".group_0894": ( "OrgsOrgPrivateRegistriesGetResponse200", "OrgPrivateRegistryConfiguration", ), - ".group_0881": ("OrgsOrgPrivateRegistriesPostBody",), - ".group_0882": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",), - ".group_0883": ("OrgsOrgPrivateRegistriesSecretNamePatchBody",), - ".group_0884": ("OrgsOrgProjectsPostBody",), - ".group_0885": ("OrgsOrgPropertiesSchemaPatchBody",), - ".group_0886": ("OrgsOrgPropertiesValuesPatchBody",), - ".group_0887": ( + ".group_0895": ("OrgsOrgPrivateRegistriesPostBody",), + ".group_0896": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",), + ".group_0897": ("OrgsOrgPrivateRegistriesSecretNamePatchBody",), + ".group_0898": ("OrgsOrgProjectsPostBody",), + ".group_0899": ("OrgsOrgPropertiesSchemaPatchBody",), + ".group_0900": ("OrgsOrgPropertiesValuesPatchBody",), + ".group_0901": ( "OrgsOrgReposPostBody", "OrgsOrgReposPostBodyPropCustomProperties", ), - ".group_0888": ("OrgsOrgRulesetsPostBody",), - ".group_0889": ("OrgsOrgRulesetsRulesetIdPutBody",), - ".group_0890": ("OrgsOrgTeamsPostBody",), - ".group_0891": ("OrgsOrgTeamsTeamSlugPatchBody",), - ".group_0892": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), - ".group_0893": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), - ".group_0894": ( + ".group_0902": ("OrgsOrgRulesetsPostBody",), + ".group_0903": ("OrgsOrgRulesetsRulesetIdPutBody",), + ".group_0904": ( + "OrgsOrgSettingsNetworkConfigurationsGetResponse200", + "NetworkConfiguration", + ), + ".group_0905": ("OrgsOrgSettingsNetworkConfigurationsPostBody",), + ".group_0906": ( + "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody", + ), + ".group_0907": ("OrgsOrgTeamsPostBody",), + ".group_0908": ("OrgsOrgTeamsTeamSlugPatchBody",), + ".group_0909": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), + ".group_0910": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), + ".group_0911": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody", ), - ".group_0895": ( + ".group_0912": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_0896": ( + ".group_0913": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_0897": ( + ".group_0914": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody", ), - ".group_0898": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), - ".group_0899": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), - ".group_0900": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), - ".group_0901": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), - ".group_0902": ("OrgsOrgSecurityProductEnablementPostBody",), - ".group_0903": ("ProjectsColumnsCardsCardIdDeleteResponse403",), - ".group_0904": ("ProjectsColumnsCardsCardIdPatchBody",), - ".group_0905": ("ProjectsColumnsCardsCardIdMovesPostBody",), - ".group_0906": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), - ".group_0907": ( + ".group_0915": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), + ".group_0916": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), + ".group_0917": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), + ".group_0918": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), + ".group_0919": ("OrgsOrgSecurityProductEnablementPostBody",), + ".group_0920": ("ProjectsColumnsCardsCardIdDeleteResponse403",), + ".group_0921": ("ProjectsColumnsCardsCardIdPatchBody",), + ".group_0922": ("ProjectsColumnsCardsCardIdMovesPostBody",), + ".group_0923": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), + ".group_0924": ( "ProjectsColumnsCardsCardIdMovesPostResponse403", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ), - ".group_0908": ( + ".group_0925": ( "ProjectsColumnsCardsCardIdMovesPostResponse503", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ), - ".group_0909": ("ProjectsColumnsColumnIdPatchBody",), - ".group_0910": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), - ".group_0911": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), - ".group_0912": ( + ".group_0926": ("ProjectsColumnsColumnIdPatchBody",), + ".group_0927": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), + ".group_0928": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), + ".group_0929": ( "ProjectsColumnsColumnIdCardsPostResponse503", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ), - ".group_0913": ("ProjectsColumnsColumnIdMovesPostBody",), - ".group_0914": ("ProjectsColumnsColumnIdMovesPostResponse201",), - ".group_0915": ("ProjectsProjectIdDeleteResponse403",), - ".group_0916": ("ProjectsProjectIdPatchBody",), - ".group_0917": ("ProjectsProjectIdPatchResponse403",), - ".group_0918": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), - ".group_0919": ("ProjectsProjectIdColumnsPostBody",), - ".group_0920": ("ReposOwnerRepoDeleteResponse403",), - ".group_0921": ( + ".group_0930": ("ProjectsColumnsColumnIdMovesPostBody",), + ".group_0931": ("ProjectsColumnsColumnIdMovesPostResponse201",), + ".group_0932": ("ProjectsProjectIdDeleteResponse403",), + ".group_0933": ("ProjectsProjectIdPatchBody",), + ".group_0934": ("ProjectsProjectIdPatchResponse403",), + ".group_0935": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), + ".group_0936": ("ProjectsProjectIdColumnsPostBody",), + ".group_0937": ("ReposOwnerRepoDeleteResponse403",), + ".group_0938": ( "ReposOwnerRepoPatchBody", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", @@ -12284,55 +12366,55 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", ), - ".group_0922": ("ReposOwnerRepoActionsArtifactsGetResponse200",), - ".group_0923": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), - ".group_0924": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), - ".group_0925": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), - ".group_0926": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), - ".group_0927": ("ReposOwnerRepoActionsPermissionsPutBody",), - ".group_0928": ("ReposOwnerRepoActionsRunnersGetResponse200",), - ".group_0929": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), - ".group_0930": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), - ".group_0931": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), - ".group_0932": ("ReposOwnerRepoActionsRunsGetResponse200",), - ".group_0933": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), - ".group_0934": ( + ".group_0939": ("ReposOwnerRepoActionsArtifactsGetResponse200",), + ".group_0940": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), + ".group_0941": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), + ".group_0942": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), + ".group_0943": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), + ".group_0944": ("ReposOwnerRepoActionsPermissionsPutBody",), + ".group_0945": ("ReposOwnerRepoActionsRunnersGetResponse200",), + ".group_0946": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), + ".group_0947": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), + ".group_0948": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), + ".group_0949": ("ReposOwnerRepoActionsRunsGetResponse200",), + ".group_0950": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), + ".group_0951": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200", ), - ".group_0935": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), - ".group_0936": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), - ".group_0937": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), - ".group_0938": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), - ".group_0939": ("ReposOwnerRepoActionsSecretsGetResponse200",), - ".group_0940": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), - ".group_0941": ("ReposOwnerRepoActionsVariablesGetResponse200",), - ".group_0942": ("ReposOwnerRepoActionsVariablesPostBody",), - ".group_0943": ("ReposOwnerRepoActionsVariablesNamePatchBody",), - ".group_0944": ( + ".group_0952": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), + ".group_0953": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), + ".group_0954": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), + ".group_0955": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), + ".group_0956": ("ReposOwnerRepoActionsSecretsGetResponse200",), + ".group_0957": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), + ".group_0958": ("ReposOwnerRepoActionsVariablesGetResponse200",), + ".group_0959": ("ReposOwnerRepoActionsVariablesPostBody",), + ".group_0960": ("ReposOwnerRepoActionsVariablesNamePatchBody",), + ".group_0961": ( "ReposOwnerRepoActionsWorkflowsGetResponse200", "Workflow", ), - ".group_0945": ( + ".group_0962": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ), - ".group_0946": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), - ".group_0947": ( + ".group_0963": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), + ".group_0964": ( "ReposOwnerRepoAttestationsPostBody", "ReposOwnerRepoAttestationsPostBodyPropBundle", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", ), - ".group_0948": ("ReposOwnerRepoAttestationsPostResponse201",), - ".group_0949": ( + ".group_0965": ("ReposOwnerRepoAttestationsPostResponse201",), + ".group_0966": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_0950": ("ReposOwnerRepoAutolinksPostBody",), - ".group_0951": ( + ".group_0967": ("ReposOwnerRepoAutolinksPostBody",), + ".group_0968": ( "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", @@ -12341,336 +12423,336 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ), - ".group_0952": ( + ".group_0969": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ), - ".group_0953": ( + ".group_0970": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ), - ".group_0954": ( + ".group_0971": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ), - ".group_0955": ( + ".group_0972": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ), - ".group_0956": ( + ".group_0973": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ), - ".group_0957": ( + ".group_0974": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody", ), - ".group_0958": ( + ".group_0975": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody", ), - ".group_0959": ( + ".group_0976": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody", ), - ".group_0960": ( + ".group_0977": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0", ), - ".group_0961": ( + ".group_0978": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0", ), - ".group_0962": ( + ".group_0979": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0", ), - ".group_0963": ( + ".group_0980": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody", ), - ".group_0964": ( + ".group_0981": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody", ), - ".group_0965": ( + ".group_0982": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody", ), - ".group_0966": ("ReposOwnerRepoBranchesBranchRenamePostBody",), - ".group_0967": ( + ".group_0983": ("ReposOwnerRepoBranchesBranchRenamePostBody",), + ".group_0984": ( "ReposOwnerRepoCheckRunsPostBodyPropOutput", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ), - ".group_0968": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), - ".group_0969": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), - ".group_0970": ( + ".group_0985": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), + ".group_0986": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), + ".group_0987": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", ), - ".group_0971": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), - ".group_0972": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), - ".group_0973": ("ReposOwnerRepoCheckSuitesPostBody",), - ".group_0974": ( + ".group_0988": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), + ".group_0989": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), + ".group_0990": ("ReposOwnerRepoCheckSuitesPostBody",), + ".group_0991": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBody", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ), - ".group_0975": ( + ".group_0992": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200", ), - ".group_0976": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), - ".group_0977": ( + ".group_0993": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), + ".group_0994": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0", ), - ".group_0978": ( + ".group_0995": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1", ), - ".group_0979": ( + ".group_0996": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2", ), - ".group_0980": ("ReposOwnerRepoCodeScanningSarifsPostBody",), - ".group_0981": ("ReposOwnerRepoCodespacesGetResponse200",), - ".group_0982": ("ReposOwnerRepoCodespacesPostBody",), - ".group_0983": ( + ".group_0997": ("ReposOwnerRepoCodeScanningSarifsPostBody",), + ".group_0998": ("ReposOwnerRepoCodespacesGetResponse200",), + ".group_0999": ("ReposOwnerRepoCodespacesPostBody",), + ".group_1000": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ), - ".group_0984": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), - ".group_0985": ( + ".group_1001": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), + ".group_1002": ( "ReposOwnerRepoCodespacesNewGetResponse200", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ), - ".group_0986": ( + ".group_1003": ( "ReposOwnerRepoCodespacesSecretsGetResponse200", "RepoCodespacesSecret", ), - ".group_0987": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), - ".group_0988": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), - ".group_0989": ("ReposOwnerRepoCommentsCommentIdPatchBody",), - ".group_0990": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), - ".group_0991": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), - ".group_0992": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), - ".group_0993": ( + ".group_1004": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), + ".group_1005": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), + ".group_1006": ("ReposOwnerRepoCommentsCommentIdPatchBody",), + ".group_1007": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), + ".group_1008": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), + ".group_1009": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), + ".group_1010": ( "ReposOwnerRepoContentsPathPutBody", "ReposOwnerRepoContentsPathPutBodyPropCommitter", "ReposOwnerRepoContentsPathPutBodyPropAuthor", ), - ".group_0994": ( + ".group_1011": ( "ReposOwnerRepoContentsPathDeleteBody", "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ), - ".group_0995": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), - ".group_0996": ( + ".group_1012": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), + ".group_1013": ( "ReposOwnerRepoDependabotSecretsGetResponse200", "DependabotSecret", ), - ".group_0997": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), - ".group_0998": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), - ".group_0999": ( + ".group_1014": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), + ".group_1015": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), + ".group_1016": ( "ReposOwnerRepoDeploymentsPostBody", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ), - ".group_1000": ("ReposOwnerRepoDeploymentsPostResponse202",), - ".group_1001": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), - ".group_1002": ( + ".group_1017": ("ReposOwnerRepoDeploymentsPostResponse202",), + ".group_1018": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), + ".group_1019": ( "ReposOwnerRepoDispatchesPostBody", "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ), - ".group_1003": ( + ".group_1020": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ), - ".group_1004": ( + ".group_1021": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", "DeploymentBranchPolicy", ), - ".group_1005": ( + ".group_1022": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ), - ".group_1006": ( + ".group_1023": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ), - ".group_1007": ( + ".group_1024": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200", ), - ".group_1008": ( + ".group_1025": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody", ), - ".group_1009": ( + ".group_1026": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200", ), - ".group_1010": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), - ".group_1011": ( + ".group_1027": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), + ".group_1028": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody", ), - ".group_1012": ("ReposOwnerRepoForksPostBody",), - ".group_1013": ("ReposOwnerRepoGitBlobsPostBody",), - ".group_1014": ( + ".group_1029": ("ReposOwnerRepoForksPostBody",), + ".group_1030": ("ReposOwnerRepoGitBlobsPostBody",), + ".group_1031": ( "ReposOwnerRepoGitCommitsPostBody", "ReposOwnerRepoGitCommitsPostBodyPropAuthor", "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ), - ".group_1015": ("ReposOwnerRepoGitRefsPostBody",), - ".group_1016": ("ReposOwnerRepoGitRefsRefPatchBody",), - ".group_1017": ( + ".group_1032": ("ReposOwnerRepoGitRefsPostBody",), + ".group_1033": ("ReposOwnerRepoGitRefsRefPatchBody",), + ".group_1034": ( "ReposOwnerRepoGitTagsPostBody", "ReposOwnerRepoGitTagsPostBodyPropTagger", ), - ".group_1018": ( + ".group_1035": ( "ReposOwnerRepoGitTreesPostBody", "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ), - ".group_1019": ( + ".group_1036": ( "ReposOwnerRepoHooksPostBody", "ReposOwnerRepoHooksPostBodyPropConfig", ), - ".group_1020": ("ReposOwnerRepoHooksHookIdPatchBody",), - ".group_1021": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), - ".group_1022": ("ReposOwnerRepoImportPutBody",), - ".group_1023": ("ReposOwnerRepoImportPatchBody",), - ".group_1024": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), - ".group_1025": ("ReposOwnerRepoImportLfsPatchBody",), - ".group_1026": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), - ".group_1027": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), - ".group_1028": ( + ".group_1037": ("ReposOwnerRepoHooksHookIdPatchBody",), + ".group_1038": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), + ".group_1039": ("ReposOwnerRepoImportPutBody",), + ".group_1040": ("ReposOwnerRepoImportPatchBody",), + ".group_1041": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), + ".group_1042": ("ReposOwnerRepoImportLfsPatchBody",), + ".group_1043": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), + ".group_1044": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), + ".group_1045": ( "ReposOwnerRepoIssuesPostBody", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", ), - ".group_1029": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), - ".group_1030": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), - ".group_1031": ( + ".group_1046": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), + ".group_1047": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), + ".group_1048": ( "ReposOwnerRepoIssuesIssueNumberPatchBody", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", ), - ".group_1032": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), - ".group_1033": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), - ".group_1034": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), - ".group_1035": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), - ".group_1036": ( + ".group_1049": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), + ".group_1050": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), + ".group_1051": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), + ".group_1052": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), + ".group_1053": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", ), - ".group_1037": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), - ".group_1038": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), - ".group_1039": ( + ".group_1054": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), + ".group_1055": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), + ".group_1056": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", ), - ".group_1040": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), - ".group_1041": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), - ".group_1042": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), - ".group_1043": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",), - ".group_1044": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",), - ".group_1045": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",), - ".group_1046": ("ReposOwnerRepoKeysPostBody",), - ".group_1047": ("ReposOwnerRepoLabelsPostBody",), - ".group_1048": ("ReposOwnerRepoLabelsNamePatchBody",), - ".group_1049": ("ReposOwnerRepoMergeUpstreamPostBody",), - ".group_1050": ("ReposOwnerRepoMergesPostBody",), - ".group_1051": ("ReposOwnerRepoMilestonesPostBody",), - ".group_1052": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), - ".group_1053": ("ReposOwnerRepoNotificationsPutBody",), - ".group_1054": ("ReposOwnerRepoNotificationsPutResponse202",), - ".group_1055": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), - ".group_1056": ("ReposOwnerRepoPagesPutBodyAnyof0",), - ".group_1057": ("ReposOwnerRepoPagesPutBodyAnyof1",), - ".group_1058": ("ReposOwnerRepoPagesPutBodyAnyof2",), - ".group_1059": ("ReposOwnerRepoPagesPutBodyAnyof3",), - ".group_1060": ("ReposOwnerRepoPagesPutBodyAnyof4",), - ".group_1061": ("ReposOwnerRepoPagesPostBodyPropSource",), - ".group_1062": ("ReposOwnerRepoPagesPostBodyAnyof0",), - ".group_1063": ("ReposOwnerRepoPagesPostBodyAnyof1",), - ".group_1064": ("ReposOwnerRepoPagesDeploymentsPostBody",), - ".group_1065": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), - ".group_1066": ("ReposOwnerRepoProjectsPostBody",), - ".group_1067": ("ReposOwnerRepoPropertiesValuesPatchBody",), - ".group_1068": ("ReposOwnerRepoPullsPostBody",), - ".group_1069": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), - ".group_1070": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), - ".group_1071": ("ReposOwnerRepoPullsPullNumberPatchBody",), - ".group_1072": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), - ".group_1073": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), - ".group_1074": ( + ".group_1057": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), + ".group_1058": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), + ".group_1059": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), + ".group_1060": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",), + ".group_1061": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",), + ".group_1062": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",), + ".group_1063": ("ReposOwnerRepoKeysPostBody",), + ".group_1064": ("ReposOwnerRepoLabelsPostBody",), + ".group_1065": ("ReposOwnerRepoLabelsNamePatchBody",), + ".group_1066": ("ReposOwnerRepoMergeUpstreamPostBody",), + ".group_1067": ("ReposOwnerRepoMergesPostBody",), + ".group_1068": ("ReposOwnerRepoMilestonesPostBody",), + ".group_1069": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), + ".group_1070": ("ReposOwnerRepoNotificationsPutBody",), + ".group_1071": ("ReposOwnerRepoNotificationsPutResponse202",), + ".group_1072": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), + ".group_1073": ("ReposOwnerRepoPagesPutBodyAnyof0",), + ".group_1074": ("ReposOwnerRepoPagesPutBodyAnyof1",), + ".group_1075": ("ReposOwnerRepoPagesPutBodyAnyof2",), + ".group_1076": ("ReposOwnerRepoPagesPutBodyAnyof3",), + ".group_1077": ("ReposOwnerRepoPagesPutBodyAnyof4",), + ".group_1078": ("ReposOwnerRepoPagesPostBodyPropSource",), + ".group_1079": ("ReposOwnerRepoPagesPostBodyAnyof0",), + ".group_1080": ("ReposOwnerRepoPagesPostBodyAnyof1",), + ".group_1081": ("ReposOwnerRepoPagesDeploymentsPostBody",), + ".group_1082": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), + ".group_1083": ("ReposOwnerRepoProjectsPostBody",), + ".group_1084": ("ReposOwnerRepoPropertiesValuesPatchBody",), + ".group_1085": ("ReposOwnerRepoPullsPostBody",), + ".group_1086": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), + ".group_1087": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), + ".group_1088": ("ReposOwnerRepoPullsPullNumberPatchBody",), + ".group_1089": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), + ".group_1090": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), + ".group_1091": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody", ), - ".group_1075": ("ReposOwnerRepoPullsPullNumberMergePutBody",), - ".group_1076": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), - ".group_1077": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), - ".group_1078": ( + ".group_1092": ("ReposOwnerRepoPullsPullNumberMergePutBody",), + ".group_1093": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), + ".group_1094": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), + ".group_1095": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0", ), - ".group_1079": ( + ".group_1096": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1", ), - ".group_1080": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), - ".group_1081": ( + ".group_1097": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), + ".group_1098": ( "ReposOwnerRepoPullsPullNumberReviewsPostBody", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", ), - ".group_1082": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), - ".group_1083": ( + ".group_1099": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), + ".group_1100": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody", ), - ".group_1084": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), - ".group_1085": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), - ".group_1086": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), - ".group_1087": ("ReposOwnerRepoReleasesPostBody",), - ".group_1088": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), - ".group_1089": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), - ".group_1090": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), - ".group_1091": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), - ".group_1092": ("ReposOwnerRepoRulesetsPostBody",), - ".group_1093": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), - ".group_1094": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), - ".group_1095": ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",), - ".group_1096": ("ReposOwnerRepoStatusesShaPostBody",), - ".group_1097": ("ReposOwnerRepoSubscriptionPutBody",), - ".group_1098": ("ReposOwnerRepoTagsProtectionPostBody",), - ".group_1099": ("ReposOwnerRepoTopicsPutBody",), - ".group_1100": ("ReposOwnerRepoTransferPostBody",), - ".group_1101": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), - ".group_1102": ("TeamsTeamIdPatchBody",), - ".group_1103": ("TeamsTeamIdDiscussionsPostBody",), - ".group_1104": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), - ".group_1105": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), - ".group_1106": ( + ".group_1101": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), + ".group_1102": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), + ".group_1103": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), + ".group_1104": ("ReposOwnerRepoReleasesPostBody",), + ".group_1105": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), + ".group_1106": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), + ".group_1107": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), + ".group_1108": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), + ".group_1109": ("ReposOwnerRepoRulesetsPostBody",), + ".group_1110": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), + ".group_1111": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), + ".group_1112": ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",), + ".group_1113": ("ReposOwnerRepoStatusesShaPostBody",), + ".group_1114": ("ReposOwnerRepoSubscriptionPutBody",), + ".group_1115": ("ReposOwnerRepoTagsProtectionPostBody",), + ".group_1116": ("ReposOwnerRepoTopicsPutBody",), + ".group_1117": ("ReposOwnerRepoTransferPostBody",), + ".group_1118": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), + ".group_1119": ("TeamsTeamIdPatchBody",), + ".group_1120": ("TeamsTeamIdDiscussionsPostBody",), + ".group_1121": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), + ".group_1122": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), + ".group_1123": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1107": ( + ".group_1124": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1108": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), - ".group_1109": ("TeamsTeamIdMembershipsUsernamePutBody",), - ".group_1110": ("TeamsTeamIdProjectsProjectIdPutBody",), - ".group_1111": ("TeamsTeamIdProjectsProjectIdPutResponse403",), - ".group_1112": ("TeamsTeamIdReposOwnerRepoPutBody",), - ".group_1113": ("UserPatchBody",), - ".group_1114": ("UserCodespacesGetResponse200",), - ".group_1115": ("UserCodespacesPostBodyOneof0",), - ".group_1116": ( + ".group_1125": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), + ".group_1126": ("TeamsTeamIdMembershipsUsernamePutBody",), + ".group_1127": ("TeamsTeamIdProjectsProjectIdPutBody",), + ".group_1128": ("TeamsTeamIdProjectsProjectIdPutResponse403",), + ".group_1129": ("TeamsTeamIdReposOwnerRepoPutBody",), + ".group_1130": ("UserPatchBody",), + ".group_1131": ("UserCodespacesGetResponse200",), + ".group_1132": ("UserCodespacesPostBodyOneof0",), + ".group_1133": ( "UserCodespacesPostBodyOneof1", "UserCodespacesPostBodyOneof1PropPullRequest", ), - ".group_1117": ( + ".group_1134": ( "UserCodespacesSecretsGetResponse200", "CodespacesSecret", ), - ".group_1118": ("UserCodespacesSecretsSecretNamePutBody",), - ".group_1119": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), - ".group_1120": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1121": ("UserCodespacesCodespaceNamePatchBody",), - ".group_1122": ("UserCodespacesCodespaceNameMachinesGetResponse200",), - ".group_1123": ("UserCodespacesCodespaceNamePublishPostBody",), - ".group_1124": ("UserEmailVisibilityPatchBody",), - ".group_1125": ("UserEmailsPostBodyOneof0",), - ".group_1126": ("UserEmailsDeleteBodyOneof0",), - ".group_1127": ("UserGpgKeysPostBody",), - ".group_1128": ("UserInstallationsGetResponse200",), - ".group_1129": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), - ".group_1130": ("UserInteractionLimitsGetResponse200Anyof1",), - ".group_1131": ("UserKeysPostBody",), - ".group_1132": ("UserMembershipsOrgsOrgPatchBody",), - ".group_1133": ("UserMigrationsPostBody",), - ".group_1134": ("UserProjectsPostBody",), - ".group_1135": ("UserReposPostBody",), - ".group_1136": ("UserSocialAccountsPostBody",), - ".group_1137": ("UserSocialAccountsDeleteBody",), - ".group_1138": ("UserSshSigningKeysPostBody",), - ".group_1139": ( + ".group_1135": ("UserCodespacesSecretsSecretNamePutBody",), + ".group_1136": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), + ".group_1137": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1138": ("UserCodespacesCodespaceNamePatchBody",), + ".group_1139": ("UserCodespacesCodespaceNameMachinesGetResponse200",), + ".group_1140": ("UserCodespacesCodespaceNamePublishPostBody",), + ".group_1141": ("UserEmailVisibilityPatchBody",), + ".group_1142": ("UserEmailsPostBodyOneof0",), + ".group_1143": ("UserEmailsDeleteBodyOneof0",), + ".group_1144": ("UserGpgKeysPostBody",), + ".group_1145": ("UserInstallationsGetResponse200",), + ".group_1146": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), + ".group_1147": ("UserInteractionLimitsGetResponse200Anyof1",), + ".group_1148": ("UserKeysPostBody",), + ".group_1149": ("UserMembershipsOrgsOrgPatchBody",), + ".group_1150": ("UserMigrationsPostBody",), + ".group_1151": ("UserProjectsPostBody",), + ".group_1152": ("UserReposPostBody",), + ".group_1153": ("UserSocialAccountsPostBody",), + ".group_1154": ("UserSocialAccountsDeleteBody",), + ".group_1155": ("UserSshSigningKeysPostBody",), + ".group_1156": ( "UsersUsernameAttestationsSubjectDigestGetResponse200", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", "SigstoreBundle0", diff --git a/githubkit/versions/v2022_11_28/models/group_0002.py b/githubkit/versions/v2022_11_28/models/group_0002.py index b3fc247ac..96476de55 100644 --- a/githubkit/versions/v2022_11_28/models/group_0002.py +++ b/githubkit/versions/v2022_11_28/models/group_0002.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,36 +16,17 @@ from githubkit.utils import UNSET -class SimpleUser(GitHubModel): - """Simple User +class SecurityAdvisoryEpss(GitHubModel): + """SecurityAdvisoryEpss - A GitHub user. + The EPSS scores as calculated by the [Exploit Prediction Scoring + System](https://www.first.org/epss). """ - name: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - starred_at: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(SimpleUser) - -__all__ = ("SimpleUser",) + percentage: Missing[float] = Field(le=100.0, default=UNSET) + percentile: Missing[float] = Field(le=100.0, default=UNSET) + + +model_rebuild(SecurityAdvisoryEpss) + +__all__ = ("SecurityAdvisoryEpss",) diff --git a/githubkit/versions/v2022_11_28/models/group_0003.py b/githubkit/versions/v2022_11_28/models/group_0003.py index 5c621fcd5..b3fc247ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0003.py +++ b/githubkit/versions/v2022_11_28/models/group_0003.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Union from pydantic import Field @@ -18,160 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities -from .group_0004 import GlobalAdvisoryPropCreditsItems +class SimpleUser(GitHubModel): + """Simple User -class GlobalAdvisory(GitHubModel): - """GlobalAdvisory - - A GitHub Security Advisory. - """ - - ghsa_id: str = Field(description="The GitHub Security Advisory ID.") - cve_id: Union[str, None] = Field( - description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - url: str = Field(description="The API URL for the advisory.") - html_url: str = Field(description="The URL for the advisory.") - repository_advisory_url: Union[str, None] = Field( - description="The API URL for the repository advisory." - ) - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: Union[Annotated[str, Field(max_length=65535)], None] = Field( - description="A detailed description of what the advisory entails." - ) - type: Literal["reviewed", "unreviewed", "malware"] = Field( - description="The type of advisory." - ) - severity: Literal["critical", "high", "medium", "low", "unknown"] = Field( - description="The severity of the advisory." - ) - source_code_location: Union[str, None] = Field( - description="The URL of the advisory's source code." - ) - identifiers: Union[list[GlobalAdvisoryPropIdentifiersItems], None] = Field() - references: Union[list[str], None] = Field() - published_at: datetime = Field( - description="The date and time of when the advisory was published, in ISO 8601 format." - ) - updated_at: datetime = Field( - description="The date and time of when the advisory was last updated, in ISO 8601 format." - ) - github_reviewed_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format." - ) - nvd_published_at: Union[datetime, None] = Field( - description="The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database." - ) - withdrawn_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was withdrawn, in ISO 8601 format." - ) - vulnerabilities: Union[list[Vulnerability], None] = Field( - description="The products and respective version ranges affected by the advisory." - ) - cvss: Union[GlobalAdvisoryPropCvss, None] = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: Union[list[GlobalAdvisoryPropCwesItems], None] = Field() - epss: Missing[Union[GlobalAdvisoryPropEpss, None]] = Field(default=UNSET) - credits_: Union[list[GlobalAdvisoryPropCreditsItems], None] = Field( - alias="credits", description="The users who contributed to the advisory." - ) - - -class GlobalAdvisoryPropIdentifiersItems(GitHubModel): - """GlobalAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") - value: str = Field(description="The identifier value.") - - -class GlobalAdvisoryPropCvss(GitHubModel): - """GlobalAdvisoryPropCvss""" - - vector_string: Union[str, None] = Field(description="The CVSS vector.") - score: Union[Annotated[float, Field(le=10.0)], None] = Field( - description="The CVSS score." - ) - - -class GlobalAdvisoryPropCwesItems(GitHubModel): - """GlobalAdvisoryPropCwesItems""" - - cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") - name: str = Field(description="The name of the CWE.") - - -class GlobalAdvisoryPropEpss(GitHubModel): - """GlobalAdvisoryPropEpss""" - - percentage: Missing[float] = Field(default=UNSET) - percentile: Missing[float] = Field(default=UNSET) - - -class Vulnerability(GitHubModel): - """Vulnerability - - A vulnerability describing the product and its affected versions within a GitHub - Security Advisory. + A GitHub user. """ - package: Union[VulnerabilityPropPackage, None] = Field( - description="The name of the package affected by the vulnerability." - ) - vulnerable_version_range: Union[str, None] = Field( - description="The range of the package versions affected by the vulnerability." - ) - first_patched_version: Union[str, None] = Field( - description="The package version that resolves the vulnerability." - ) - vulnerable_functions: Union[list[str], None] = Field( - description="The functions in the package that are affected by the vulnerability." - ) - - -class VulnerabilityPropPackage(GitHubModel): - """VulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Union[str, None] = Field( - description="The unique package name within its ecosystem." - ) - - -model_rebuild(GlobalAdvisory) -model_rebuild(GlobalAdvisoryPropIdentifiersItems) -model_rebuild(GlobalAdvisoryPropCvss) -model_rebuild(GlobalAdvisoryPropCwesItems) -model_rebuild(GlobalAdvisoryPropEpss) -model_rebuild(Vulnerability) -model_rebuild(VulnerabilityPropPackage) - -__all__ = ( - "GlobalAdvisory", - "GlobalAdvisoryPropCvss", - "GlobalAdvisoryPropCwesItems", - "GlobalAdvisoryPropEpss", - "GlobalAdvisoryPropIdentifiersItems", - "Vulnerability", - "VulnerabilityPropPackage", -) + name: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + login: str = Field() + id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + starred_at: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(SimpleUser) + +__all__ = ("SimpleUser",) diff --git a/githubkit/versions/v2022_11_28/models/group_0004.py b/githubkit/versions/v2022_11_28/models/group_0004.py index 23cadae10..1a33659e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0004.py +++ b/githubkit/versions/v2022_11_28/models/group_0004.py @@ -9,33 +9,164 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0001 import CvssSeverities +from .group_0002 import SecurityAdvisoryEpss +from .group_0005 import GlobalAdvisoryPropCreditsItems -class GlobalAdvisoryPropCreditsItems(GitHubModel): - """GlobalAdvisoryPropCreditsItems""" +class GlobalAdvisory(GitHubModel): + """GlobalAdvisory - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", + A GitHub Security Advisory. + """ + + ghsa_id: str = Field(description="The GitHub Security Advisory ID.") + cve_id: Union[str, None] = Field( + description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + url: str = Field(description="The API URL for the advisory.") + html_url: str = Field(description="The URL for the advisory.") + repository_advisory_url: Union[str, None] = Field( + description="The API URL for the repository advisory." + ) + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: Union[Annotated[str, Field(max_length=65535)], None] = Field( + description="A detailed description of what the advisory entails." + ) + type: Literal["reviewed", "unreviewed", "malware"] = Field( + description="The type of advisory." + ) + severity: Literal["critical", "high", "medium", "low", "unknown"] = Field( + description="The severity of the advisory." + ) + source_code_location: Union[str, None] = Field( + description="The URL of the advisory's source code." + ) + identifiers: Union[list[GlobalAdvisoryPropIdentifiersItems], None] = Field() + references: Union[list[str], None] = Field() + published_at: datetime = Field( + description="The date and time of when the advisory was published, in ISO 8601 format." + ) + updated_at: datetime = Field( + description="The date and time of when the advisory was last updated, in ISO 8601 format." + ) + github_reviewed_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format." + ) + nvd_published_at: Union[datetime, None] = Field( + description="The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database." + ) + withdrawn_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was withdrawn, in ISO 8601 format." + ) + vulnerabilities: Union[list[Vulnerability], None] = Field( + description="The products and respective version ranges affected by the advisory." + ) + cvss: Union[GlobalAdvisoryPropCvss, None] = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + epss: Missing[Union[SecurityAdvisoryEpss, None]] = Field( + default=UNSET, + description="The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + ) + cwes: Union[list[GlobalAdvisoryPropCwesItems], None] = Field() + credits_: Union[list[GlobalAdvisoryPropCreditsItems], None] = Field( + alias="credits", description="The users who contributed to the advisory." + ) + + +class GlobalAdvisoryPropIdentifiersItems(GitHubModel): + """GlobalAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") + value: str = Field(description="The identifier value.") + + +class GlobalAdvisoryPropCvss(GitHubModel): + """GlobalAdvisoryPropCvss""" + + vector_string: Union[str, None] = Field(description="The CVSS vector.") + score: Union[Annotated[float, Field(le=10.0)], None] = Field( + description="The CVSS score." + ) + + +class GlobalAdvisoryPropCwesItems(GitHubModel): + """GlobalAdvisoryPropCwesItems""" + + cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") + name: str = Field(description="The name of the CWE.") + + +class Vulnerability(GitHubModel): + """Vulnerability + + A vulnerability describing the product and its affected versions within a GitHub + Security Advisory. + """ + + package: Union[VulnerabilityPropPackage, None] = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Union[str, None] = Field( + description="The range of the package versions affected by the vulnerability." + ) + first_patched_version: Union[str, None] = Field( + description="The package version that resolves the vulnerability." + ) + vulnerable_functions: Union[list[str], None] = Field( + description="The functions in the package that are affected by the vulnerability." + ) + + +class VulnerabilityPropPackage(GitHubModel): + """VulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", "other", - ] = Field(description="The type of credit the user is receiving.") + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Union[str, None] = Field( + description="The unique package name within its ecosystem." + ) -model_rebuild(GlobalAdvisoryPropCreditsItems) +model_rebuild(GlobalAdvisory) +model_rebuild(GlobalAdvisoryPropIdentifiersItems) +model_rebuild(GlobalAdvisoryPropCvss) +model_rebuild(GlobalAdvisoryPropCwesItems) +model_rebuild(Vulnerability) +model_rebuild(VulnerabilityPropPackage) -__all__ = ("GlobalAdvisoryPropCreditsItems",) +__all__ = ( + "GlobalAdvisory", + "GlobalAdvisoryPropCvss", + "GlobalAdvisoryPropCwesItems", + "GlobalAdvisoryPropIdentifiersItems", + "Vulnerability", + "VulnerabilityPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0005.py b/githubkit/versions/v2022_11_28/models/group_0005.py index 3cd3645dd..e9904f33d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0005.py +++ b/githubkit/versions/v2022_11_28/models/group_0005.py @@ -9,25 +9,33 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class BasicError(GitHubModel): - """Basic Error - Basic Error - """ +class GlobalAdvisoryPropCreditsItems(GitHubModel): + """GlobalAdvisoryPropCreditsItems""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") -model_rebuild(BasicError) +model_rebuild(GlobalAdvisoryPropCreditsItems) -__all__ = ("BasicError",) +__all__ = ("GlobalAdvisoryPropCreditsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0006.py b/githubkit/versions/v2022_11_28/models/group_0006.py index 3a0a5796a..3cd3645dd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0006.py +++ b/githubkit/versions/v2022_11_28/models/group_0006.py @@ -16,17 +16,18 @@ from githubkit.utils import UNSET -class ValidationErrorSimple(GitHubModel): - """Validation Error Simple +class BasicError(GitHubModel): + """Basic Error - Validation Error Simple + Basic Error """ - message: str = Field() - documentation_url: str = Field() - errors: Missing[list[str]] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) -model_rebuild(ValidationErrorSimple) +model_rebuild(BasicError) -__all__ = ("ValidationErrorSimple",) +__all__ = ("BasicError",) diff --git a/githubkit/versions/v2022_11_28/models/group_0007.py b/githubkit/versions/v2022_11_28/models/group_0007.py index f287adffa..3a0a5796a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0007.py +++ b/githubkit/versions/v2022_11_28/models/group_0007.py @@ -11,27 +11,22 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class IntegrationPropPermissions(ExtraGitHubModel): - """IntegrationPropPermissions +class ValidationErrorSimple(GitHubModel): + """Validation Error Simple - The set of permissions for the GitHub app - - Examples: - {'issues': 'read', 'deployments': 'write'} + Validation Error Simple """ - issues: Missing[str] = Field(default=UNSET) - checks: Missing[str] = Field(default=UNSET) - metadata: Missing[str] = Field(default=UNSET) - contents: Missing[str] = Field(default=UNSET) - deployments: Missing[str] = Field(default=UNSET) + message: str = Field() + documentation_url: str = Field() + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(IntegrationPropPermissions) +model_rebuild(ValidationErrorSimple) -__all__ = ("IntegrationPropPermissions",) +__all__ = ("ValidationErrorSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0008.py b/githubkit/versions/v2022_11_28/models/group_0008.py index 6d3bf9586..08f537dcb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0008.py +++ b/githubkit/versions/v2022_11_28/models/group_0008.py @@ -18,45 +18,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0007 import IntegrationPropPermissions +class Enterprise(GitHubModel): + """Enterprise -class Integration(GitHubModel): - """GitHub app - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + An enterprise on GitHub. """ - id: int = Field(description="Unique identifier of the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the enterprise." ) - node_id: str = Field() - client_id: Missing[str] = Field(default=UNSET) - owner: Union[None, SimpleUser] = Field() - name: str = Field(description="The name of the GitHub app") - description: Union[str, None] = Field() - external_url: str = Field() html_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: IntegrationPropPermissions = Field( - description="The set of permissions for the GitHub app" + website_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The enterprise's website URL." ) - events: list[str] = Field(description="The list of events for the GitHub app") - installations_count: Missing[int] = Field( - default=UNSET, - description="The number of installations associated with the GitHub app", - ) - client_secret: Missing[str] = Field(default=UNSET) - webhook_secret: Missing[Union[str, None]] = Field(default=UNSET) - pem: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the enterprise") + node_id: str = Field() + name: str = Field(description="The name of the enterprise.") + slug: str = Field(description="The slug url identifier for the enterprise.") + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + avatar_url: str = Field() -model_rebuild(Integration) +model_rebuild(Enterprise) -__all__ = ("Integration",) +__all__ = ("Enterprise",) diff --git a/githubkit/versions/v2022_11_28/models/group_0009.py b/githubkit/versions/v2022_11_28/models/group_0009.py index 53c6ab1fd..f287adffa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0009.py +++ b/githubkit/versions/v2022_11_28/models/group_0009.py @@ -9,35 +9,29 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class WebhookConfig(GitHubModel): - """Webhook Configuration +class IntegrationPropPermissions(ExtraGitHubModel): + """IntegrationPropPermissions + + The set of permissions for the GitHub app - Configuration object of the webhook + Examples: + {'issues': 'read', 'deployments': 'write'} """ - 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) + issues: Missing[str] = Field(default=UNSET) + checks: Missing[str] = Field(default=UNSET) + metadata: Missing[str] = Field(default=UNSET) + contents: Missing[str] = Field(default=UNSET) + deployments: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookConfig) +model_rebuild(IntegrationPropPermissions) -__all__ = ("WebhookConfig",) +__all__ = ("IntegrationPropPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0010.py b/githubkit/versions/v2022_11_28/models/group_0010.py index 158388e9d..c5a0ce797 100644 --- a/githubkit/versions/v2022_11_28/models/group_0010.py +++ b/githubkit/versions/v2022_11_28/models/group_0010.py @@ -18,43 +18,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0008 import Enterprise +from .group_0009 import IntegrationPropPermissions -class HookDeliveryItem(GitHubModel): - """Simple webhook delivery - Delivery made by a webhook, without request and response information. +class Integration(GitHubModel): + """GitHub app + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - id: int = Field(description="Unique identifier of the webhook delivery.") - guid: str = Field( - description="Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event)." - ) - delivered_at: datetime = Field( - description="Time when the webhook delivery occurred." - ) - redelivery: bool = Field( - description="Whether the webhook delivery is a redelivery." - ) - duration: float = Field(description="Time spent delivering.") - status: str = Field( - description="Describes the response returned after attempting the delivery." - ) - status_code: int = Field(description="Status code received when delivery was made.") - event: str = Field(description="The event that triggered the delivery.") - action: Union[str, None] = Field( - description="The type of activity for the event that triggered the delivery." - ) - installation_id: Union[int, None] = Field( - description="The id of the GitHub App installation associated with this event." + id: int = Field(description="Unique identifier of the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - repository_id: Union[int, None] = Field( - description="The id of the repository associated with this event." + node_id: str = Field() + client_id: Missing[str] = Field(default=UNSET) + owner: Union[SimpleUser, Enterprise] = Field() + name: str = Field(description="The name of the GitHub app") + description: Union[str, None] = Field() + external_url: str = Field() + html_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: IntegrationPropPermissions = Field( + description="The set of permissions for the GitHub app" ) - throttled_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Time when the webhook delivery was throttled." + events: list[str] = Field(description="The list of events for the GitHub app") + installations_count: Missing[int] = Field( + default=UNSET, + description="The number of installations associated with the GitHub app", ) + client_secret: Missing[str] = Field(default=UNSET) + webhook_secret: Missing[Union[str, None]] = Field(default=UNSET) + pem: Missing[str] = Field(default=UNSET) -model_rebuild(HookDeliveryItem) +model_rebuild(Integration) -__all__ = ("HookDeliveryItem",) +__all__ = ("Integration",) diff --git a/githubkit/versions/v2022_11_28/models/group_0011.py b/githubkit/versions/v2022_11_28/models/group_0011.py index 8097b13ec..53c6ab1fd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0011.py +++ b/githubkit/versions/v2022_11_28/models/group_0011.py @@ -18,20 +18,26 @@ from githubkit.utils import UNSET -class ScimError(GitHubModel): - """Scim Error +class WebhookConfig(GitHubModel): + """Webhook Configuration - Scim Error + Configuration object of the webhook """ - message: Missing[Union[str, None]] = Field(default=UNSET) - documentation_url: Missing[Union[str, None]] = Field(default=UNSET) - detail: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[int] = Field(default=UNSET) - scim_type: Missing[Union[str, None]] = Field(default=UNSET, alias="scimType") - schemas: Missing[list[str]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ScimError) +model_rebuild(WebhookConfig) -__all__ = ("ScimError",) +__all__ = ("WebhookConfig",) diff --git a/githubkit/versions/v2022_11_28/models/group_0012.py b/githubkit/versions/v2022_11_28/models/group_0012.py index d347d5d9a..158388e9d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0012.py +++ b/githubkit/versions/v2022_11_28/models/group_0012.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -18,32 +19,42 @@ from githubkit.utils import UNSET -class ValidationError(GitHubModel): - """Validation Error +class HookDeliveryItem(GitHubModel): + """Simple webhook delivery - Validation Error + Delivery made by a webhook, without request and response information. """ - message: str = Field() - documentation_url: str = Field() - errors: Missing[list[ValidationErrorPropErrorsItems]] = Field(default=UNSET) - - -class ValidationErrorPropErrorsItems(GitHubModel): - """ValidationErrorPropErrorsItems""" - - resource: Missing[str] = Field(default=UNSET) - field: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - code: str = Field() - index: Missing[int] = Field(default=UNSET) - value: Missing[Union[str, None, int, None, list[str], None]] = Field(default=UNSET) - - -model_rebuild(ValidationError) -model_rebuild(ValidationErrorPropErrorsItems) - -__all__ = ( - "ValidationError", - "ValidationErrorPropErrorsItems", -) + id: int = Field(description="Unique identifier of the webhook delivery.") + guid: str = Field( + description="Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event)." + ) + delivered_at: datetime = Field( + description="Time when the webhook delivery occurred." + ) + redelivery: bool = Field( + description="Whether the webhook delivery is a redelivery." + ) + duration: float = Field(description="Time spent delivering.") + status: str = Field( + description="Describes the response returned after attempting the delivery." + ) + status_code: int = Field(description="Status code received when delivery was made.") + event: str = Field(description="The event that triggered the delivery.") + action: Union[str, None] = Field( + description="The type of activity for the event that triggered the delivery." + ) + installation_id: Union[int, None] = Field( + description="The id of the GitHub App installation associated with this event." + ) + repository_id: Union[int, None] = Field( + description="The id of the repository associated with this event." + ) + throttled_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Time when the webhook delivery was throttled." + ) + + +model_rebuild(HookDeliveryItem) + +__all__ = ("HookDeliveryItem",) diff --git a/githubkit/versions/v2022_11_28/models/group_0013.py b/githubkit/versions/v2022_11_28/models/group_0013.py index 68fb1bd10..8097b13ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0013.py +++ b/githubkit/versions/v2022_11_28/models/group_0013.py @@ -9,106 +9,29 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class HookDelivery(GitHubModel): - """Webhook delivery +class ScimError(GitHubModel): + """Scim Error - Delivery made by a webhook. + Scim Error """ - id: int = Field(description="Unique identifier of the delivery.") - guid: str = Field( - description="Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event)." - ) - delivered_at: datetime = Field(description="Time when the delivery was delivered.") - redelivery: bool = Field(description="Whether the delivery is a redelivery.") - duration: float = Field(description="Time spent delivering.") - status: str = Field( - description="Description of the status of the attempted delivery" - ) - status_code: int = Field(description="Status code received when delivery was made.") - event: str = Field(description="The event that triggered the delivery.") - action: Union[str, None] = Field( - description="The type of activity for the event that triggered the delivery." - ) - installation_id: Union[int, None] = Field( - description="The id of the GitHub App installation associated with this event." - ) - repository_id: Union[int, None] = Field( - description="The id of the repository associated with this event." - ) - throttled_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Time when the webhook delivery was throttled." - ) - url: Missing[str] = Field( - default=UNSET, description="The URL target of the delivery." - ) - request: HookDeliveryPropRequest = Field() - response: HookDeliveryPropResponse = Field() + message: Missing[Union[str, None]] = Field(default=UNSET) + documentation_url: Missing[Union[str, None]] = Field(default=UNSET) + detail: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[int] = Field(default=UNSET) + scim_type: Missing[Union[str, None]] = Field(default=UNSET, alias="scimType") + schemas: Missing[list[str]] = Field(default=UNSET) -class HookDeliveryPropRequest(GitHubModel): - """HookDeliveryPropRequest""" +model_rebuild(ScimError) - headers: Union[HookDeliveryPropRequestPropHeaders, None] = Field( - description="The request headers sent with the webhook delivery." - ) - payload: Union[HookDeliveryPropRequestPropPayload, None] = Field( - description="The webhook payload." - ) - - -class HookDeliveryPropRequestPropHeaders(ExtraGitHubModel): - """HookDeliveryPropRequestPropHeaders - - The request headers sent with the webhook delivery. - """ - - -class HookDeliveryPropRequestPropPayload(ExtraGitHubModel): - """HookDeliveryPropRequestPropPayload - - The webhook payload. - """ - - -class HookDeliveryPropResponse(GitHubModel): - """HookDeliveryPropResponse""" - - headers: Union[HookDeliveryPropResponsePropHeaders, None] = Field( - description="The response headers received when the delivery was made." - ) - payload: Union[str, None] = Field(description="The response payload received.") - - -class HookDeliveryPropResponsePropHeaders(ExtraGitHubModel): - """HookDeliveryPropResponsePropHeaders - - The response headers received when the delivery was made. - """ - - -model_rebuild(HookDelivery) -model_rebuild(HookDeliveryPropRequest) -model_rebuild(HookDeliveryPropRequestPropHeaders) -model_rebuild(HookDeliveryPropRequestPropPayload) -model_rebuild(HookDeliveryPropResponse) -model_rebuild(HookDeliveryPropResponsePropHeaders) - -__all__ = ( - "HookDelivery", - "HookDeliveryPropRequest", - "HookDeliveryPropRequestPropHeaders", - "HookDeliveryPropRequestPropPayload", - "HookDeliveryPropResponse", - "HookDeliveryPropResponsePropHeaders", -) +__all__ = ("ScimError",) diff --git a/githubkit/versions/v2022_11_28/models/group_0014.py b/githubkit/versions/v2022_11_28/models/group_0014.py index 08f537dcb..d347d5d9a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0014.py +++ b/githubkit/versions/v2022_11_28/models/group_0014.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -19,28 +18,32 @@ from githubkit.utils import UNSET -class Enterprise(GitHubModel): - """Enterprise +class ValidationError(GitHubModel): + """Validation Error - An enterprise on GitHub. + Validation Error """ - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the enterprise." - ) - html_url: str = Field() - website_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The enterprise's website URL." - ) - id: int = Field(description="Unique identifier of the enterprise") - node_id: str = Field() - name: str = Field(description="The name of the enterprise.") - slug: str = Field(description="The slug url identifier for the enterprise.") - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - avatar_url: str = Field() - - -model_rebuild(Enterprise) - -__all__ = ("Enterprise",) + message: str = Field() + documentation_url: str = Field() + errors: Missing[list[ValidationErrorPropErrorsItems]] = Field(default=UNSET) + + +class ValidationErrorPropErrorsItems(GitHubModel): + """ValidationErrorPropErrorsItems""" + + resource: Missing[str] = Field(default=UNSET) + field: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + code: str = Field() + index: Missing[int] = Field(default=UNSET) + value: Missing[Union[str, None, int, None, list[str], None]] = Field(default=UNSET) + + +model_rebuild(ValidationError) +model_rebuild(ValidationErrorPropErrorsItems) + +__all__ = ( + "ValidationError", + "ValidationErrorPropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0015.py b/githubkit/versions/v2022_11_28/models/group_0015.py index 62e357419..68fb1bd10 100644 --- a/githubkit/versions/v2022_11_28/models/group_0015.py +++ b/githubkit/versions/v2022_11_28/models/group_0015.py @@ -14,27 +14,101 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0014 import Enterprise +class HookDelivery(GitHubModel): + """Webhook delivery -class IntegrationInstallationRequest(GitHubModel): - """Integration Installation Request + Delivery made by a webhook. + """ + + id: int = Field(description="Unique identifier of the delivery.") + guid: str = Field( + description="Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event)." + ) + delivered_at: datetime = Field(description="Time when the delivery was delivered.") + redelivery: bool = Field(description="Whether the delivery is a redelivery.") + duration: float = Field(description="Time spent delivering.") + status: str = Field( + description="Description of the status of the attempted delivery" + ) + status_code: int = Field(description="Status code received when delivery was made.") + event: str = Field(description="The event that triggered the delivery.") + action: Union[str, None] = Field( + description="The type of activity for the event that triggered the delivery." + ) + installation_id: Union[int, None] = Field( + description="The id of the GitHub App installation associated with this event." + ) + repository_id: Union[int, None] = Field( + description="The id of the repository associated with this event." + ) + throttled_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Time when the webhook delivery was throttled." + ) + url: Missing[str] = Field( + default=UNSET, description="The URL target of the delivery." + ) + request: HookDeliveryPropRequest = Field() + response: HookDeliveryPropResponse = Field() + + +class HookDeliveryPropRequest(GitHubModel): + """HookDeliveryPropRequest""" + + headers: Union[HookDeliveryPropRequestPropHeaders, None] = Field( + description="The request headers sent with the webhook delivery." + ) + payload: Union[HookDeliveryPropRequestPropPayload, None] = Field( + description="The webhook payload." + ) - Request to install an integration on a target + +class HookDeliveryPropRequestPropHeaders(ExtraGitHubModel): + """HookDeliveryPropRequestPropHeaders + + The request headers sent with the webhook delivery. """ - id: int = Field(description="Unique identifier of the request installation.") - node_id: Missing[str] = Field(default=UNSET) - account: Union[SimpleUser, Enterprise] = Field() - requester: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: datetime = Field() + +class HookDeliveryPropRequestPropPayload(ExtraGitHubModel): + """HookDeliveryPropRequestPropPayload + + The webhook payload. + """ + + +class HookDeliveryPropResponse(GitHubModel): + """HookDeliveryPropResponse""" + + headers: Union[HookDeliveryPropResponsePropHeaders, None] = Field( + description="The response headers received when the delivery was made." + ) + payload: Union[str, None] = Field(description="The response payload received.") + + +class HookDeliveryPropResponsePropHeaders(ExtraGitHubModel): + """HookDeliveryPropResponsePropHeaders + + The response headers received when the delivery was made. + """ -model_rebuild(IntegrationInstallationRequest) +model_rebuild(HookDelivery) +model_rebuild(HookDeliveryPropRequest) +model_rebuild(HookDeliveryPropRequestPropHeaders) +model_rebuild(HookDeliveryPropRequestPropPayload) +model_rebuild(HookDeliveryPropResponse) +model_rebuild(HookDeliveryPropResponsePropHeaders) -__all__ = ("IntegrationInstallationRequest",) +__all__ = ( + "HookDelivery", + "HookDeliveryPropRequest", + "HookDeliveryPropRequestPropHeaders", + "HookDeliveryPropRequestPropPayload", + "HookDeliveryPropResponse", + "HookDeliveryPropResponsePropHeaders", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0016.py b/githubkit/versions/v2022_11_28/models/group_0016.py index bdbe051a1..55f20d66b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0016.py +++ b/githubkit/versions/v2022_11_28/models/group_0016.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,213 +18,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0008 import Enterprise -class AppPermissions(GitHubModel): - """App Permissions - The permissions granted to the user access token. +class IntegrationInstallationRequest(GitHubModel): + """Integration Installation Request - Examples: - {'contents': 'read', 'issues': 'read', 'deployments': 'write', 'single_file': - 'read'} + Request to install an integration on a target """ - actions: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.", - ) - administration: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.", - ) - checks: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for checks on code.", - ) - codespaces: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to create, edit, delete, and list Codespaces.", - ) - contents: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.", - ) - dependabot_secrets: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The leve of permission to grant the access token to manage Dependabot secrets.", - ) - deployments: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for deployments and deployment statuses.", - ) - environments: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for managing repository environments.", - ) - issues: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.", - ) - metadata: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.", - ) - packages: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for packages published to GitHub Packages.", - ) - pages: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.", - ) - pull_requests: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.", - ) - repository_custom_properties: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property.", - ) - repository_hooks: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage the post-receive hooks for a repository.", - ) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage repository projects, columns, and cards.", - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage secret scanning alerts.", - ) - secrets: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage repository secrets.", - ) - security_events: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage security events like code scanning alerts.", - ) - single_file: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage just a single file.", - ) - statuses: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for commit statuses.", - ) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage Dependabot alerts.", - ) - workflows: Missing[Literal["write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to update GitHub Actions workflow files.", - ) - members: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for organization teams and members.", - ) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage access to an organization.", - ) - organization_custom_roles: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for custom repository roles management.", - ) - organization_custom_org_roles: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for custom organization roles management.", - ) - organization_custom_properties: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for custom property management.", - ) - organization_copilot_seat_management: Missing[Literal["write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change.", - ) - organization_announcement_banners: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage announcement banners for an organization.", - ) - organization_events: Missing[Literal["read"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view events triggered by an activity in an organization.", - ) - organization_hooks: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage the post-receive hooks for an organization.", - ) - organization_personal_access_tokens: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization.", - ) - organization_personal_access_token_requests: Missing[Literal["read", "write"]] = ( - Field( - default=UNSET, - description="The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization.", - ) - ) - organization_plan: Missing[Literal["read"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for viewing an organization's plan.", - ) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage organization projects and projects public preview (where available).", - ) - organization_packages: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token for organization packages published to GitHub Packages.", - ) - organization_secrets: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage organization secrets.", - ) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.", - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage users blocked by the organization.", - ) - team_discussions: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage team discussions and related comments.", - ) - email_addresses: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage the email addresses belonging to a user.", - ) - followers: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage the followers belonging to a user.", - ) - git_ssh_keys: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage git SSH keys.", - ) - gpg_keys: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage GPG keys belonging to a user.", - ) - interaction_limits: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to view and manage interaction limits on a repository.", - ) - profile: Missing[Literal["write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to manage the profile settings belonging to a user.", - ) - starring: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The level of permission to grant the access token to list and manage repositories a user is starring.", - ) + id: int = Field(description="Unique identifier of the request installation.") + node_id: Missing[str] = Field(default=UNSET) + account: Union[SimpleUser, Enterprise] = Field() + requester: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: datetime = Field() -model_rebuild(AppPermissions) +model_rebuild(IntegrationInstallationRequest) -__all__ = ("AppPermissions",) +__all__ = ("IntegrationInstallationRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0017.py b/githubkit/versions/v2022_11_28/models/group_0017.py index eeb506dc5..bdbe051a1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0017.py +++ b/githubkit/versions/v2022_11_28/models/group_0017.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,46 +17,213 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0014 import Enterprise -from .group_0016 import AppPermissions +class AppPermissions(GitHubModel): + """App Permissions -class Installation(GitHubModel): - """Installation + The permissions granted to the user access token. - Installation + Examples: + {'contents': 'read', 'issues': 'read', 'deployments': 'write', 'single_file': + 'read'} """ - id: int = Field(description="The ID of the installation.") - account: Union[SimpleUser, Enterprise, None] = Field() - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - access_tokens_url: str = Field() - repositories_url: str = Field() - html_url: str = Field() - app_id: int = Field() - target_id: int = Field( - description="The ID of the user or organization this token is being scoped to." - ) - target_type: str = Field() - permissions: AppPermissions = Field( - title="App Permissions", - description="The permissions granted to the user access token.", - ) - events: list[str] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - single_file_name: Union[str, None] = Field() - has_multiple_single_files: Missing[bool] = Field(default=UNSET) - single_file_paths: Missing[list[str]] = Field(default=UNSET) - app_slug: str = Field() - suspended_by: Union[None, SimpleUser] = Field() - suspended_at: Union[datetime, None] = Field() - contact_email: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(Installation) - -__all__ = ("Installation",) + actions: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.", + ) + administration: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.", + ) + checks: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for checks on code.", + ) + codespaces: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to create, edit, delete, and list Codespaces.", + ) + contents: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.", + ) + dependabot_secrets: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The leve of permission to grant the access token to manage Dependabot secrets.", + ) + deployments: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for deployments and deployment statuses.", + ) + environments: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for managing repository environments.", + ) + issues: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.", + ) + metadata: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.", + ) + packages: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for packages published to GitHub Packages.", + ) + pages: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.", + ) + pull_requests: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.", + ) + repository_custom_properties: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property.", + ) + repository_hooks: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage the post-receive hooks for a repository.", + ) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage repository projects, columns, and cards.", + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage secret scanning alerts.", + ) + secrets: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage repository secrets.", + ) + security_events: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage security events like code scanning alerts.", + ) + single_file: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage just a single file.", + ) + statuses: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for commit statuses.", + ) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage Dependabot alerts.", + ) + workflows: Missing[Literal["write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to update GitHub Actions workflow files.", + ) + members: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for organization teams and members.", + ) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage access to an organization.", + ) + organization_custom_roles: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for custom repository roles management.", + ) + organization_custom_org_roles: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for custom organization roles management.", + ) + organization_custom_properties: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for custom property management.", + ) + organization_copilot_seat_management: Missing[Literal["write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change.", + ) + organization_announcement_banners: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage announcement banners for an organization.", + ) + organization_events: Missing[Literal["read"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view events triggered by an activity in an organization.", + ) + organization_hooks: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage the post-receive hooks for an organization.", + ) + organization_personal_access_tokens: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization.", + ) + organization_personal_access_token_requests: Missing[Literal["read", "write"]] = ( + Field( + default=UNSET, + description="The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization.", + ) + ) + organization_plan: Missing[Literal["read"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for viewing an organization's plan.", + ) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage organization projects and projects public preview (where available).", + ) + organization_packages: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token for organization packages published to GitHub Packages.", + ) + organization_secrets: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage organization secrets.", + ) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.", + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage users blocked by the organization.", + ) + team_discussions: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage team discussions and related comments.", + ) + email_addresses: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage the email addresses belonging to a user.", + ) + followers: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage the followers belonging to a user.", + ) + git_ssh_keys: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage git SSH keys.", + ) + gpg_keys: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage GPG keys belonging to a user.", + ) + interaction_limits: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to view and manage interaction limits on a repository.", + ) + profile: Missing[Literal["write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to manage the profile settings belonging to a user.", + ) + starring: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The level of permission to grant the access token to list and manage repositories a user is starring.", + ) + + +model_rebuild(AppPermissions) + +__all__ = ("AppPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0018.py b/githubkit/versions/v2022_11_28/models/group_0018.py index 4c49d07bf..82c855392 100644 --- a/githubkit/versions/v2022_11_28/models/group_0018.py +++ b/githubkit/versions/v2022_11_28/models/group_0018.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,21 +18,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0008 import Enterprise +from .group_0017 import AppPermissions -class LicenseSimple(GitHubModel): - """License Simple - License Simple - """ - - key: str = Field() - name: str = Field() - url: Union[str, None] = Field() - spdx_id: Union[str, None] = Field() - node_id: str = Field() - html_url: Missing[str] = Field(default=UNSET) +class Installation(GitHubModel): + """Installation + Installation + """ -model_rebuild(LicenseSimple) - -__all__ = ("LicenseSimple",) + id: int = Field(description="The ID of the installation.") + account: Union[SimpleUser, Enterprise, None] = Field() + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" + ) + access_tokens_url: str = Field() + repositories_url: str = Field() + html_url: str = Field() + app_id: int = Field() + target_id: int = Field( + description="The ID of the user or organization this token is being scoped to." + ) + target_type: str = Field() + permissions: AppPermissions = Field( + title="App Permissions", + description="The permissions granted to the user access token.", + ) + events: list[str] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + single_file_name: Union[str, None] = Field() + has_multiple_single_files: Missing[bool] = Field(default=UNSET) + single_file_paths: Missing[list[str]] = Field(default=UNSET) + app_slug: str = Field() + suspended_by: Union[None, SimpleUser] = Field() + suspended_at: Union[datetime, None] = Field() + contact_email: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(Installation) + +__all__ = ("Installation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0019.py b/githubkit/versions/v2022_11_28/models/group_0019.py index edb494eca..4c49d07bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0019.py +++ b/githubkit/versions/v2022_11_28/models/group_0019.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,189 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0018 import LicenseSimple +class LicenseSimple(GitHubModel): + """License Simple -class Repository(GitHubModel): - """Repository - - A repository on GitHub. + License Simple """ - id: int = Field(description="Unique identifier of the repository") + key: str = Field() + name: str = Field() + url: Union[str, None] = Field() + spdx_id: Union[str, None] = Field() node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - forks: int = Field() - permissions: Missing[RepositoryPropPermissions] = Field(default=UNSET) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field( - default=False, description="Whether the repository is private or public." - ) - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - starred_at: Missing[str] = Field(default=UNSET) - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether anonymous git access is enabled for this repository", - ) - - -class RepositoryPropPermissions(GitHubModel): - """RepositoryPropPermissions""" - - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) -model_rebuild(Repository) -model_rebuild(RepositoryPropPermissions) +model_rebuild(LicenseSimple) -__all__ = ( - "Repository", - "RepositoryPropPermissions", -) +__all__ = ("LicenseSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0020.py b/githubkit/versions/v2022_11_28/models/group_0020.py index 84d6f5bf7..4db4f77ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0020.py +++ b/githubkit/versions/v2022_11_28/models/group_0020.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,30 +18,189 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0016 import AppPermissions -from .group_0019 import Repository +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple -class InstallationToken(GitHubModel): - """Installation Token +class Repository(GitHubModel): + """Repository - Authentication token for a GitHub App installed on a user or org. + A repository on GitHub. """ - token: str = Field() - expires_at: str = Field() - permissions: Missing[AppPermissions] = Field( + id: int = Field(description="Unique identifier of the repository") + node_id: str = Field() + name: str = Field(description="The name of the repository.") + full_name: str = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + forks: int = Field() + permissions: Missing[RepositoryPropPermissions] = Field(default=UNSET) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field( + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + ) + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + description="The repository visibility: public, private, or internal.", ) - repository_selection: Missing[Literal["all", "selected"]] = Field(default=UNSET) - repositories: Missing[list[Repository]] = Field(default=UNSET) - single_file: Missing[str] = Field(default=UNSET) - has_multiple_single_files: Missing[bool] = Field(default=UNSET) - single_file_paths: Missing[list[str]] = Field(default=UNSET) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + starred_at: Missing[str] = Field(default=UNSET) + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether anonymous git access is enabled for this repository", + ) + + +class RepositoryPropPermissions(GitHubModel): + """RepositoryPropPermissions""" + + admin: bool = Field() + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) -model_rebuild(InstallationToken) +model_rebuild(Repository) +model_rebuild(RepositoryPropPermissions) -__all__ = ("InstallationToken",) +__all__ = ( + "Repository", + "RepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0021.py b/githubkit/versions/v2022_11_28/models/group_0021.py index 2be05670d..18250d0ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0021.py +++ b/githubkit/versions/v2022_11_28/models/group_0021.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,27 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0016 import AppPermissions +from .group_0017 import AppPermissions +from .group_0020 import Repository -class ScopedInstallation(GitHubModel): - """Scoped Installation""" +class InstallationToken(GitHubModel): + """Installation Token - permissions: AppPermissions = Field( + Authentication token for a GitHub App installed on a user or org. + """ + + token: str = Field() + expires_at: str = Field() + permissions: Missing[AppPermissions] = Field( + default=UNSET, title="App Permissions", description="The permissions granted to the user access token.", ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - single_file_name: Union[str, None] = Field() + repository_selection: Missing[Literal["all", "selected"]] = Field(default=UNSET) + repositories: Missing[list[Repository]] = Field(default=UNSET) + single_file: Missing[str] = Field(default=UNSET) has_multiple_single_files: Missing[bool] = Field(default=UNSET) single_file_paths: Missing[list[str]] = Field(default=UNSET) - repositories_url: str = Field() - account: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(ScopedInstallation) +model_rebuild(InstallationToken) -__all__ = ("ScopedInstallation",) +__all__ = ("InstallationToken",) diff --git a/githubkit/versions/v2022_11_28/models/group_0022.py b/githubkit/versions/v2022_11_28/models/group_0022.py index 9cd38aea3..0567361e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0022.py +++ b/githubkit/versions/v2022_11_28/models/group_0022.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,47 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0021 import ScopedInstallation +from .group_0003 import SimpleUser +from .group_0017 import AppPermissions -class Authorization(GitHubModel): - """Authorization +class ScopedInstallation(GitHubModel): + """Scoped Installation""" - The authorization for an OAuth app, GitHub App, or a Personal Access Token. - """ - - id: int = Field() - url: str = Field() - scopes: Union[list[str], None] = Field( - description="A list of scopes that this authorization is in." + permissions: AppPermissions = Field( + title="App Permissions", + description="The permissions granted to the user access token.", ) - token: str = Field() - token_last_eight: Union[str, None] = Field() - hashed_token: Union[str, None] = Field() - app: AuthorizationPropApp = Field() - note: Union[str, None] = Field() - note_url: Union[str, None] = Field() - updated_at: datetime = Field() - created_at: datetime = Field() - fingerprint: Union[str, None] = Field() - user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - installation: Missing[Union[None, ScopedInstallation]] = Field(default=UNSET) - expires_at: Union[datetime, None] = Field() - - -class AuthorizationPropApp(GitHubModel): - """AuthorizationPropApp""" - - client_id: str = Field() - name: str = Field() - url: str = Field() + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" + ) + single_file_name: Union[str, None] = Field() + has_multiple_single_files: Missing[bool] = Field(default=UNSET) + single_file_paths: Missing[list[str]] = Field(default=UNSET) + repositories_url: str = Field() + account: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(Authorization) -model_rebuild(AuthorizationPropApp) +model_rebuild(ScopedInstallation) -__all__ = ( - "Authorization", - "AuthorizationPropApp", -) +__all__ = ("ScopedInstallation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0023.py b/githubkit/versions/v2022_11_28/models/group_0023.py index d3be8c786..4438f1145 100644 --- a/githubkit/versions/v2022_11_28/models/group_0023.py +++ b/githubkit/versions/v2022_11_28/models/group_0023.py @@ -9,27 +9,56 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0022 import ScopedInstallation -class SimpleClassroomRepository(GitHubModel): - """Simple Classroom Repository +class Authorization(GitHubModel): + """Authorization - A GitHub repository view for Classroom + The authorization for an OAuth app, GitHub App, or a Personal Access Token. """ - id: int = Field(description="A unique identifier of the repository.") - full_name: str = Field( - description="The full, globally unique name of the repository." + id: int = Field() + url: str = Field() + scopes: Union[list[str], None] = Field( + description="A list of scopes that this authorization is in." ) - html_url: str = Field(description="The URL to view the repository on GitHub.com.") - node_id: str = Field(description="The GraphQL identifier of the repository.") - private: bool = Field(description="Whether the repository is private.") - default_branch: str = Field(description="The default branch for the repository.") + token: str = Field() + token_last_eight: Union[str, None] = Field() + hashed_token: Union[str, None] = Field() + app: AuthorizationPropApp = Field() + note: Union[str, None] = Field() + note_url: Union[str, None] = Field() + updated_at: datetime = Field() + created_at: datetime = Field() + fingerprint: Union[str, None] = Field() + user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + installation: Missing[Union[None, ScopedInstallation]] = Field(default=UNSET) + expires_at: Union[datetime, None] = Field() + + +class AuthorizationPropApp(GitHubModel): + """AuthorizationPropApp""" + + client_id: str = Field() + name: str = Field() + url: str = Field() -model_rebuild(SimpleClassroomRepository) +model_rebuild(Authorization) +model_rebuild(AuthorizationPropApp) -__all__ = ("SimpleClassroomRepository",) +__all__ = ( + "Authorization", + "AuthorizationPropApp", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0024.py b/githubkit/versions/v2022_11_28/models/group_0024.py index c8fefba16..d3be8c786 100644 --- a/githubkit/versions/v2022_11_28/models/group_0024.py +++ b/githubkit/versions/v2022_11_28/models/group_0024.py @@ -9,109 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0023 import SimpleClassroomRepository - -class ClassroomAssignment(GitHubModel): - """Classroom Assignment +class SimpleClassroomRepository(GitHubModel): + """Simple Classroom Repository - A GitHub Classroom assignment + A GitHub repository view for Classroom """ - id: int = Field(description="Unique identifier of the repository.") - public_repo: bool = Field( - description="Whether an accepted assignment creates a public repository." - ) - title: str = Field(description="Assignment title.") - type: Literal["individual", "group"] = Field( - description="Whether it's a group assignment or individual assignment." - ) - invite_link: str = Field( - description="The link that a student can use to accept the assignment." - ) - invitations_enabled: bool = Field( - description="Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment." - ) - slug: str = Field(description="Sluggified name of the assignment.") - students_are_repo_admins: bool = Field( - description="Whether students are admins on created repository when a student accepts the assignment." - ) - feedback_pull_requests_enabled: bool = Field( - description="Whether feedback pull request will be created when a student accepts the assignment." - ) - max_teams: Union[int, None] = Field( - description="The maximum allowable teams for the assignment." - ) - max_members: Union[int, None] = Field( - description="The maximum allowable members per team." - ) - editor: str = Field(description="The selected editor for the assignment.") - accepted: int = Field( - description="The number of students that have accepted the assignment." - ) - submitted: int = Field( - description="The number of students that have submitted the assignment." - ) - passing: int = Field( - description="The number of students that have passed the assignment." - ) - language: str = Field( - description="The programming language used in the assignment." - ) - deadline: Union[datetime, None] = Field( - description="The time at which the assignment is due." + id: int = Field(description="A unique identifier of the repository.") + full_name: str = Field( + description="The full, globally unique name of the repository." ) - starter_code_repository: SimpleClassroomRepository = Field( - title="Simple Classroom Repository", - description="A GitHub repository view for Classroom", - ) - classroom: Classroom = Field( - title="Classroom", description="A GitHub Classroom classroom" - ) - - -class Classroom(GitHubModel): - """Classroom - - A GitHub Classroom classroom - """ - - id: int = Field(description="Unique identifier of the classroom.") - name: str = Field(description="The name of the classroom.") - archived: bool = Field(description="Whether classroom is archived.") - organization: SimpleClassroomOrganization = Field( - title="Organization Simple for Classroom", description="A GitHub organization." - ) - url: str = Field(description="The URL of the classroom on GitHub Classroom.") - - -class SimpleClassroomOrganization(GitHubModel): - """Organization Simple for Classroom - - A GitHub organization. - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - html_url: str = Field() - name: Union[str, None] = Field() - avatar_url: str = Field() + html_url: str = Field(description="The URL to view the repository on GitHub.com.") + node_id: str = Field(description="The GraphQL identifier of the repository.") + private: bool = Field(description="Whether the repository is private.") + default_branch: str = Field(description="The default branch for the repository.") -model_rebuild(ClassroomAssignment) -model_rebuild(Classroom) -model_rebuild(SimpleClassroomOrganization) +model_rebuild(SimpleClassroomRepository) -__all__ = ( - "Classroom", - "ClassroomAssignment", - "SimpleClassroomOrganization", -) +__all__ = ("SimpleClassroomRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0025.py b/githubkit/versions/v2022_11_28/models/group_0025.py index 0205436c8..4c0d8dd53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0025.py +++ b/githubkit/versions/v2022_11_28/models/group_0025.py @@ -15,49 +15,12 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0023 import SimpleClassroomRepository +from .group_0024 import SimpleClassroomRepository -class ClassroomAcceptedAssignment(GitHubModel): - """Classroom Accepted Assignment - - A GitHub Classroom accepted assignment - """ - - id: int = Field(description="Unique identifier of the repository.") - submitted: bool = Field( - description="Whether an accepted assignment has been submitted." - ) - passing: bool = Field(description="Whether a submission passed.") - commit_count: int = Field(description="Count of student commits.") - grade: str = Field(description="Most recent grade.") - students: list[SimpleClassroomUser] = Field() - repository: SimpleClassroomRepository = Field( - title="Simple Classroom Repository", - description="A GitHub repository view for Classroom", - ) - assignment: SimpleClassroomAssignment = Field( - title="Simple Classroom Assignment", description="A GitHub Classroom assignment" - ) - - -class SimpleClassroomUser(GitHubModel): - """Simple Classroom User - - A GitHub user simplified for Classroom. - """ - - id: int = Field() - login: str = Field() - avatar_url: str = Field() - html_url: str = Field() - - -class SimpleClassroomAssignment(GitHubModel): - """Simple Classroom Assignment +class ClassroomAssignment(GitHubModel): + """Classroom Assignment A GitHub Classroom assignment """ @@ -68,7 +31,7 @@ class SimpleClassroomAssignment(GitHubModel): ) title: str = Field(description="Assignment title.") type: Literal["individual", "group"] = Field( - description="Whether it's a Group Assignment or Individual Assignment." + description="Whether it's a group assignment or individual assignment." ) invite_link: str = Field( description="The link that a student can use to accept the assignment." @@ -78,61 +41,77 @@ class SimpleClassroomAssignment(GitHubModel): ) slug: str = Field(description="Sluggified name of the assignment.") students_are_repo_admins: bool = Field( - description="Whether students are admins on created repository on accepted assignment." + description="Whether students are admins on created repository when a student accepts the assignment." ) feedback_pull_requests_enabled: bool = Field( - description="Whether feedback pull request will be created on assignment acceptance." + description="Whether feedback pull request will be created when a student accepts the assignment." ) - max_teams: Missing[Union[int, None]] = Field( - default=UNSET, description="The maximum allowable teams for the assignment." + max_teams: Union[int, None] = Field( + description="The maximum allowable teams for the assignment." ) - max_members: Missing[Union[int, None]] = Field( - default=UNSET, description="The maximum allowable members per team." - ) - editor: Union[str, None] = Field( - description="The selected editor for the assignment." + max_members: Union[int, None] = Field( + description="The maximum allowable members per team." ) + editor: str = Field(description="The selected editor for the assignment.") accepted: int = Field( description="The number of students that have accepted the assignment." ) - submitted: Missing[int] = Field( - default=UNSET, - description="The number of students that have submitted the assignment.", + submitted: int = Field( + description="The number of students that have submitted the assignment." ) passing: int = Field( description="The number of students that have passed the assignment." ) - language: Union[str, None] = Field( + language: str = Field( description="The programming language used in the assignment." ) deadline: Union[datetime, None] = Field( description="The time at which the assignment is due." ) - classroom: SimpleClassroom = Field( - title="Simple Classroom", description="A GitHub Classroom classroom" + starter_code_repository: SimpleClassroomRepository = Field( + title="Simple Classroom Repository", + description="A GitHub repository view for Classroom", + ) + classroom: Classroom = Field( + title="Classroom", description="A GitHub Classroom classroom" ) -class SimpleClassroom(GitHubModel): - """Simple Classroom +class Classroom(GitHubModel): + """Classroom A GitHub Classroom classroom """ id: int = Field(description="Unique identifier of the classroom.") name: str = Field(description="The name of the classroom.") - archived: bool = Field(description="Returns whether classroom is archived or not.") - url: str = Field(description="The url of the classroom on GitHub Classroom.") + archived: bool = Field(description="Whether classroom is archived.") + organization: SimpleClassroomOrganization = Field( + title="Organization Simple for Classroom", description="A GitHub organization." + ) + url: str = Field(description="The URL of the classroom on GitHub Classroom.") + + +class SimpleClassroomOrganization(GitHubModel): + """Organization Simple for Classroom + + A GitHub organization. + """ + + id: int = Field() + login: str = Field() + node_id: str = Field() + html_url: str = Field() + name: Union[str, None] = Field() + avatar_url: str = Field() -model_rebuild(ClassroomAcceptedAssignment) -model_rebuild(SimpleClassroomUser) -model_rebuild(SimpleClassroomAssignment) -model_rebuild(SimpleClassroom) +model_rebuild(ClassroomAssignment) +model_rebuild(Classroom) +model_rebuild(SimpleClassroomOrganization) __all__ = ( - "ClassroomAcceptedAssignment", - "SimpleClassroom", - "SimpleClassroomAssignment", - "SimpleClassroomUser", + "Classroom", + "ClassroomAssignment", + "SimpleClassroomOrganization", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0026.py b/githubkit/versions/v2022_11_28/models/group_0026.py index 5af18ec3b..3596233bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0026.py +++ b/githubkit/versions/v2022_11_28/models/group_0026.py @@ -9,45 +9,130 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0024 import SimpleClassroomRepository + + +class ClassroomAcceptedAssignment(GitHubModel): + """Classroom Accepted Assignment + + A GitHub Classroom accepted assignment + """ + + id: int = Field(description="Unique identifier of the repository.") + submitted: bool = Field( + description="Whether an accepted assignment has been submitted." + ) + passing: bool = Field(description="Whether a submission passed.") + commit_count: int = Field(description="Count of student commits.") + grade: str = Field(description="Most recent grade.") + students: list[SimpleClassroomUser] = Field() + repository: SimpleClassroomRepository = Field( + title="Simple Classroom Repository", + description="A GitHub repository view for Classroom", + ) + assignment: SimpleClassroomAssignment = Field( + title="Simple Classroom Assignment", description="A GitHub Classroom assignment" + ) + + +class SimpleClassroomUser(GitHubModel): + """Simple Classroom User + + A GitHub user simplified for Classroom. + """ + + id: int = Field() + login: str = Field() + avatar_url: str = Field() + html_url: str = Field() + -class ClassroomAssignmentGrade(GitHubModel): - """Classroom Assignment Grade +class SimpleClassroomAssignment(GitHubModel): + """Simple Classroom Assignment - Grade for a student or groups GitHub Classroom assignment + A GitHub Classroom assignment """ - assignment_name: str = Field(description="Name of the assignment") - assignment_url: str = Field(description="URL of the assignment") - starter_code_url: str = Field( - description="URL of the starter code for the assignment" + id: int = Field(description="Unique identifier of the repository.") + public_repo: bool = Field( + description="Whether an accepted assignment creates a public repository." ) - github_username: str = Field(description="GitHub username of the student") - roster_identifier: str = Field(description="Roster identifier of the student") - student_repository_name: str = Field( - description="Name of the student's assignment repository" + title: str = Field(description="Assignment title.") + type: Literal["individual", "group"] = Field( + description="Whether it's a Group Assignment or Individual Assignment." ) - student_repository_url: str = Field( - description="URL of the student's assignment repository" + invite_link: str = Field( + description="The link that a student can use to accept the assignment." ) - submission_timestamp: str = Field( - description="Timestamp of the student's assignment submission" + invitations_enabled: bool = Field( + description="Whether the invitation link is enabled. Visiting an enabled invitation link will accept the assignment." ) - points_awarded: int = Field(description="Number of points awarded to the student") - points_available: int = Field( - description="Number of points available for the assignment" + slug: str = Field(description="Sluggified name of the assignment.") + students_are_repo_admins: bool = Field( + description="Whether students are admins on created repository on accepted assignment." ) - group_name: Missing[str] = Field( + feedback_pull_requests_enabled: bool = Field( + description="Whether feedback pull request will be created on assignment acceptance." + ) + max_teams: Missing[Union[int, None]] = Field( + default=UNSET, description="The maximum allowable teams for the assignment." + ) + max_members: Missing[Union[int, None]] = Field( + default=UNSET, description="The maximum allowable members per team." + ) + editor: Union[str, None] = Field( + description="The selected editor for the assignment." + ) + accepted: int = Field( + description="The number of students that have accepted the assignment." + ) + submitted: Missing[int] = Field( default=UNSET, - description="If a group assignment, name of the group the student is in", + description="The number of students that have submitted the assignment.", + ) + passing: int = Field( + description="The number of students that have passed the assignment." + ) + language: Union[str, None] = Field( + description="The programming language used in the assignment." ) + deadline: Union[datetime, None] = Field( + description="The time at which the assignment is due." + ) + classroom: SimpleClassroom = Field( + title="Simple Classroom", description="A GitHub Classroom classroom" + ) + + +class SimpleClassroom(GitHubModel): + """Simple Classroom + + A GitHub Classroom classroom + """ + + id: int = Field(description="Unique identifier of the classroom.") + name: str = Field(description="The name of the classroom.") + archived: bool = Field(description="Returns whether classroom is archived or not.") + url: str = Field(description="The url of the classroom on GitHub Classroom.") -model_rebuild(ClassroomAssignmentGrade) +model_rebuild(ClassroomAcceptedAssignment) +model_rebuild(SimpleClassroomUser) +model_rebuild(SimpleClassroomAssignment) +model_rebuild(SimpleClassroom) -__all__ = ("ClassroomAssignmentGrade",) +__all__ = ( + "ClassroomAcceptedAssignment", + "SimpleClassroom", + "SimpleClassroomAssignment", + "SimpleClassroomUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0027.py b/githubkit/versions/v2022_11_28/models/group_0027.py index 4dca29397..5af18ec3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0027.py +++ b/githubkit/versions/v2022_11_28/models/group_0027.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,185 +16,38 @@ from githubkit.utils import UNSET -class CodeSecurityConfiguration(GitHubModel): - """CodeSecurityConfiguration +class ClassroomAssignmentGrade(GitHubModel): + """Classroom Assignment Grade - A code security configuration + Grade for a student or groups GitHub Classroom assignment """ - id: Missing[int] = Field( - default=UNSET, description="The ID of the code security configuration" - ) - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique within the organization.", - ) - target_type: Missing[Literal["global", "organization", "enterprise"]] = Field( - default=UNSET, description="The type of the code security configuration." - ) - description: Missing[str] = Field( - 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" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) + assignment_name: str = Field(description="Name of the assignment") + assignment_url: str = Field(description="URL of the assignment") + starter_code_url: str = Field( + description="URL of the starter code for the assignment" ) - code_scanning_default_setup_options: Missing[ - Union[CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" + github_username: str = Field(description="GitHub username of the student") + roster_identifier: str = Field(description="Roster identifier of the student") + student_repository_name: str = Field( + description="Name of the student's assignment repository" ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" + student_repository_url: str = Field( + description="URL of the student's assignment repository" ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", + submission_timestamp: str = Field( + description="Timestamp of the student's assignment submission" ) - secret_scanning_delegated_bypass_options: Missing[ - CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", + points_awarded: int = Field(description="Number of points awarded to the student") + points_available: int = Field( + description="Number of points available for the assignment" ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( + group_name: Missing[str] = Field( default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - 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" - ) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - - -class CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions(GitHubModel): - """CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) - - -class CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions(GitHubModel): - """CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions - - Feature options for code scanning default setup - """ - - runner_type: Missing[Union[None, Literal["standard", "labeled", "not_set"]]] = ( - Field( - default=UNSET, - description="Whether to use labeled runners or standard GitHub runners.", - ) - ) - runner_label: Missing[Union[str, None]] = Field( - default=UNSET, - description="The label of the runner to use for code scanning when runner_type is 'labeled'.", - ) - - -class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions(GitHubModel): - """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: Missing[ - list[ - CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems - ] - ] = Field( - default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) - - -class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersIt - ems - """ - - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" + description="If a group assignment, name of the group the student is in", ) -model_rebuild(CodeSecurityConfiguration) -model_rebuild(CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions) -model_rebuild(CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions) -model_rebuild(CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions) -model_rebuild( - CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(ClassroomAssignmentGrade) -__all__ = ( - "CodeSecurityConfiguration", - "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions", - "CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions", - "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions", - "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("ClassroomAssignmentGrade",) diff --git a/githubkit/versions/v2022_11_28/models/group_0028.py b/githubkit/versions/v2022_11_28/models/group_0028.py index a49412509..4dca29397 100644 --- a/githubkit/versions/v2022_11_28/models/group_0028.py +++ b/githubkit/versions/v2022_11_28/models/group_0028.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,22 +19,185 @@ from githubkit.utils import UNSET -class CodeScanningDefaultSetupOptions(GitHubModel): - """CodeScanningDefaultSetupOptions +class CodeSecurityConfiguration(GitHubModel): + """CodeSecurityConfiguration - Feature options for code scanning default setup + A code security configuration """ - runner_type: Missing[Literal["standard", "labeled", "not_set"]] = Field( + id: Missing[int] = Field( + default=UNSET, description="The ID of the code security configuration" + ) + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique within the organization.", + ) + target_type: Missing[Literal["global", "organization", "enterprise"]] = Field( + default=UNSET, description="The type of the code security configuration." + ) + description: Missing[str] = Field( + 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" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for 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_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated bypass", + ) + secret_scanning_delegated_bypass_options: Missing[ + CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions + ] = Field( + default=UNSET, + description="Feature options for secret scanning delegated bypass", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="Whether to use labeled runners or standard GitHub runners.", + description="The enablement status of secret scanning non-provider patterns", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + 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" + ) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + + +class CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions(GitHubModel): + """CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) + + +class CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions(GitHubModel): + """CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions + + Feature options for code scanning default setup + """ + + runner_type: Missing[Union[None, Literal["standard", "labeled", "not_set"]]] = ( + Field( + default=UNSET, + description="Whether to use labeled runners or standard GitHub runners.", + ) ) runner_label: Missing[Union[str, None]] = Field( default=UNSET, - description="The label of the runner to use for code scanning default setup when runner_type is 'labeled'.", + description="The label of the runner to use for code scanning when runner_type is 'labeled'.", + ) + + +class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions(GitHubModel): + """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: Missing[ + list[ + CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems + ] + ] = Field( + default=UNSET, + description="The bypass reviewers for secret scanning delegated bypass", + ) + + +class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems( + GitHubModel +): + """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersIt + ems + """ + + reviewer_id: int = Field( + description="The ID of the team or role selected as a bypass reviewer" + ) + reviewer_type: Literal["TEAM", "ROLE"] = Field( + description="The type of the bypass reviewer" ) -model_rebuild(CodeScanningDefaultSetupOptions) +model_rebuild(CodeSecurityConfiguration) +model_rebuild(CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions) +model_rebuild(CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions) +model_rebuild(CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions) +model_rebuild( + CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) -__all__ = ("CodeScanningDefaultSetupOptions",) +__all__ = ( + "CodeSecurityConfiguration", + "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions", + "CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions", + "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions", + "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0029.py b/githubkit/versions/v2022_11_28/models/group_0029.py index 47fac603a..a49412509 100644 --- a/githubkit/versions/v2022_11_28/models/group_0029.py +++ b/githubkit/versions/v2022_11_28/models/group_0029.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,23 +17,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0027 import CodeSecurityConfiguration +class CodeScanningDefaultSetupOptions(GitHubModel): + """CodeScanningDefaultSetupOptions -class CodeSecurityDefaultConfigurationsItems(GitHubModel): - """CodeSecurityDefaultConfigurationsItems""" + Feature options for code scanning default setup + """ - default_for_new_repos: Missing[Literal["public", "private_and_internal", "all"]] = ( - Field( - default=UNSET, - description="The visibility of newly created repositories for which the code security configuration will be applied to by default", - ) + runner_type: Missing[Literal["standard", "labeled", "not_set"]] = Field( + default=UNSET, + description="Whether to use labeled runners or standard GitHub runners.", ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + runner_label: Missing[Union[str, None]] = Field( + default=UNSET, + description="The label of the runner to use for code scanning default setup when runner_type is 'labeled'.", ) -model_rebuild(CodeSecurityDefaultConfigurationsItems) +model_rebuild(CodeScanningDefaultSetupOptions) -__all__ = ("CodeSecurityDefaultConfigurationsItems",) +__all__ = ("CodeScanningDefaultSetupOptions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0030.py b/githubkit/versions/v2022_11_28/models/group_0030.py index 6bd40aa61..39e215284 100644 --- a/githubkit/versions/v2022_11_28/models/group_0030.py +++ b/githubkit/versions/v2022_11_28/models/group_0030.py @@ -9,145 +9,31 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0028 import CodeSecurityConfiguration -class SimpleRepository(GitHubModel): - """Simple Repository +class CodeSecurityDefaultConfigurationsItems(GitHubModel): + """CodeSecurityDefaultConfigurationsItems""" - A GitHub repository. - """ - - id: int = Field(description="A unique identifier of the repository.") - node_id: str = Field(description="The GraphQL identifier of the repository.") - name: str = Field(description="The name of the repository.") - full_name: str = Field( - description="The full, globally unique, name of the repository." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field(description="Whether the repository is private.") - html_url: str = Field(description="The URL to view the repository on GitHub.com.") - description: Union[str, None] = Field(description="The repository description.") - fork: bool = Field(description="Whether the repository is a fork.") - url: str = Field( - description="The URL to get more information about the repository from the GitHub API." - ) - archive_url: str = Field( - description="A template for the API URL to download the repository as an archive." - ) - assignees_url: str = Field( - description="A template for the API URL to list the available assignees for issues in the repository." - ) - blobs_url: str = Field( - description="A template for the API URL to create or retrieve a raw Git blob in the repository." - ) - branches_url: str = Field( - description="A template for the API URL to get information about branches in the repository." - ) - collaborators_url: str = Field( - description="A template for the API URL to get information about collaborators of the repository." - ) - comments_url: str = Field( - description="A template for the API URL to get information about comments on the repository." - ) - commits_url: str = Field( - description="A template for the API URL to get information about commits on the repository." - ) - compare_url: str = Field( - description="A template for the API URL to compare two commits or refs." - ) - contents_url: str = Field( - description="A template for the API URL to get the contents of the repository." - ) - contributors_url: str = Field( - description="A template for the API URL to list the contributors to the repository." - ) - deployments_url: str = Field( - description="The API URL to list the deployments of the repository." - ) - downloads_url: str = Field( - description="The API URL to list the downloads on the repository." - ) - events_url: str = Field( - description="The API URL to list the events of the repository." - ) - forks_url: str = Field( - description="The API URL to list the forks of the repository." - ) - git_commits_url: str = Field( - description="A template for the API URL to get information about Git commits of the repository." - ) - git_refs_url: str = Field( - description="A template for the API URL to get information about Git refs of the repository." - ) - git_tags_url: str = Field( - description="A template for the API URL to get information about Git tags of the repository." - ) - issue_comment_url: str = Field( - description="A template for the API URL to get information about issue comments on the repository." - ) - issue_events_url: str = Field( - description="A template for the API URL to get information about issue events on the repository." - ) - issues_url: str = Field( - description="A template for the API URL to get information about issues on the repository." - ) - keys_url: str = Field( - description="A template for the API URL to get information about deploy keys on the repository." - ) - labels_url: str = Field( - description="A template for the API URL to get information about labels of the repository." - ) - languages_url: str = Field( - description="The API URL to get information about the languages of the repository." - ) - merges_url: str = Field( - description="The API URL to merge branches in the repository." - ) - milestones_url: str = Field( - description="A template for the API URL to get information about milestones of the repository." - ) - notifications_url: str = Field( - description="A template for the API URL to get information about notifications on the repository." - ) - pulls_url: str = Field( - description="A template for the API URL to get information about pull requests on the repository." - ) - releases_url: str = Field( - description="A template for the API URL to get information about releases on the repository." - ) - stargazers_url: str = Field( - description="The API URL to list the stargazers on the repository." - ) - statuses_url: str = Field( - description="A template for the API URL to get information about statuses of a commit." - ) - subscribers_url: str = Field( - description="The API URL to list the subscribers on the repository." - ) - subscription_url: str = Field( - description="The API URL to subscribe to notifications for this repository." - ) - tags_url: str = Field( - description="The API URL to get information about tags on the repository." - ) - teams_url: str = Field( - description="The API URL to list the teams on the repository." - ) - trees_url: str = Field( - description="A template for the API URL to create or retrieve a raw Git tree of the repository." + default_for_new_repos: Missing[Literal["public", "private_and_internal", "all"]] = ( + Field( + default=UNSET, + description="The visibility of newly created repositories for which the code security configuration will be applied to by default", + ) ) - hooks_url: str = Field( - description="The API URL to list the hooks on the repository." + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" ) -model_rebuild(SimpleRepository) +model_rebuild(CodeSecurityDefaultConfigurationsItems) -__all__ = ("SimpleRepository",) +__all__ = ("CodeSecurityDefaultConfigurationsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0031.py b/githubkit/versions/v2022_11_28/models/group_0031.py index 1e23f1b5d..919d352a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0031.py +++ b/githubkit/versions/v2022_11_28/models/group_0031.py @@ -9,43 +9,145 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0030 import SimpleRepository +from .group_0003 import SimpleUser -class CodeSecurityConfigurationRepositories(GitHubModel): - """CodeSecurityConfigurationRepositories +class SimpleRepository(GitHubModel): + """Simple Repository - Repositories associated with a code security configuration and attachment status + A GitHub repository. """ - status: Missing[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] = Field( - default=UNSET, - description="The attachment status of the code security configuration on the repository.", + id: int = Field(description="A unique identifier of the repository.") + node_id: str = Field(description="The GraphQL identifier of the repository.") + name: str = Field(description="The name of the repository.") + full_name: str = Field( + description="The full, globally unique, name of the repository." ) - repository: Missing[SimpleRepository] = Field( - default=UNSET, title="Simple Repository", description="A GitHub repository." + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field(description="Whether the repository is private.") + html_url: str = Field(description="The URL to view the repository on GitHub.com.") + description: Union[str, None] = Field(description="The repository description.") + fork: bool = Field(description="Whether the repository is a fork.") + url: str = Field( + description="The URL to get more information about the repository from the GitHub API." + ) + archive_url: str = Field( + description="A template for the API URL to download the repository as an archive." + ) + assignees_url: str = Field( + description="A template for the API URL to list the available assignees for issues in the repository." + ) + blobs_url: str = Field( + description="A template for the API URL to create or retrieve a raw Git blob in the repository." + ) + branches_url: str = Field( + description="A template for the API URL to get information about branches in the repository." + ) + collaborators_url: str = Field( + description="A template for the API URL to get information about collaborators of the repository." + ) + comments_url: str = Field( + description="A template for the API URL to get information about comments on the repository." + ) + commits_url: str = Field( + description="A template for the API URL to get information about commits on the repository." + ) + compare_url: str = Field( + description="A template for the API URL to compare two commits or refs." + ) + contents_url: str = Field( + description="A template for the API URL to get the contents of the repository." + ) + contributors_url: str = Field( + description="A template for the API URL to list the contributors to the repository." + ) + deployments_url: str = Field( + description="The API URL to list the deployments of the repository." + ) + downloads_url: str = Field( + description="The API URL to list the downloads on the repository." + ) + events_url: str = Field( + description="The API URL to list the events of the repository." + ) + forks_url: str = Field( + description="The API URL to list the forks of the repository." + ) + git_commits_url: str = Field( + description="A template for the API URL to get information about Git commits of the repository." + ) + git_refs_url: str = Field( + description="A template for the API URL to get information about Git refs of the repository." + ) + git_tags_url: str = Field( + description="A template for the API URL to get information about Git tags of the repository." + ) + issue_comment_url: str = Field( + description="A template for the API URL to get information about issue comments on the repository." + ) + issue_events_url: str = Field( + description="A template for the API URL to get information about issue events on the repository." + ) + issues_url: str = Field( + description="A template for the API URL to get information about issues on the repository." + ) + keys_url: str = Field( + description="A template for the API URL to get information about deploy keys on the repository." + ) + labels_url: str = Field( + description="A template for the API URL to get information about labels of the repository." + ) + languages_url: str = Field( + description="The API URL to get information about the languages of the repository." + ) + merges_url: str = Field( + description="The API URL to merge branches in the repository." + ) + milestones_url: str = Field( + description="A template for the API URL to get information about milestones of the repository." + ) + notifications_url: str = Field( + description="A template for the API URL to get information about notifications on the repository." + ) + pulls_url: str = Field( + description="A template for the API URL to get information about pull requests on the repository." + ) + releases_url: str = Field( + description="A template for the API URL to get information about releases on the repository." + ) + stargazers_url: str = Field( + description="The API URL to list the stargazers on the repository." + ) + statuses_url: str = Field( + description="A template for the API URL to get information about statuses of a commit." + ) + subscribers_url: str = Field( + description="The API URL to list the subscribers on the repository." + ) + subscription_url: str = Field( + description="The API URL to subscribe to notifications for this repository." + ) + tags_url: str = Field( + description="The API URL to get information about tags on the repository." + ) + teams_url: str = Field( + description="The API URL to list the teams on the repository." + ) + trees_url: str = Field( + description="A template for the API URL to create or retrieve a raw Git tree of the repository." + ) + hooks_url: str = Field( + description="The API URL to list the hooks on the repository." ) -model_rebuild(CodeSecurityConfigurationRepositories) +model_rebuild(SimpleRepository) -__all__ = ("CodeSecurityConfigurationRepositories",) +__all__ = ("SimpleRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0032.py b/githubkit/versions/v2022_11_28/models/group_0032.py index ff820726e..807348aa1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0032.py +++ b/githubkit/versions/v2022_11_28/models/group_0032.py @@ -9,23 +9,43 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0031 import SimpleRepository -class DependabotAlertPackage(GitHubModel): - """DependabotAlertPackage +class CodeSecurityConfigurationRepositories(GitHubModel): + """CodeSecurityConfigurationRepositories - Details for the vulnerable package. + Repositories associated with a code security configuration and attachment status """ - ecosystem: str = Field( - description="The package's language or package management ecosystem." + status: Missing[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] + ] = Field( + default=UNSET, + description="The attachment status of the code security configuration on the repository.", + ) + repository: Missing[SimpleRepository] = Field( + default=UNSET, title="Simple Repository", description="A GitHub repository." ) - name: str = Field(description="The unique package name within its ecosystem.") -model_rebuild(DependabotAlertPackage) +model_rebuild(CodeSecurityConfigurationRepositories) -__all__ = ("DependabotAlertPackage",) +__all__ = ("CodeSecurityConfigurationRepositories",) diff --git a/githubkit/versions/v2022_11_28/models/group_0033.py b/githubkit/versions/v2022_11_28/models/group_0033.py index a70eae3d4..ff820726e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0033.py +++ b/githubkit/versions/v2022_11_28/models/group_0033.py @@ -9,52 +9,23 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0032 import DependabotAlertPackage - - -class DependabotAlertSecurityVulnerability(GitHubModel): - """DependabotAlertSecurityVulnerability - - Details pertaining to one vulnerable version range for the advisory. - """ - - package: DependabotAlertPackage = Field( - description="Details for the vulnerable package." - ) - severity: Literal["low", "medium", "high", "critical"] = Field( - description="The severity of the vulnerability." - ) - vulnerable_version_range: str = Field( - description="Conditions that identify vulnerable versions of this vulnerability's package." - ) - first_patched_version: Union[ - DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, None - ] = Field( - description="Details pertaining to the package version that patches this vulnerability." - ) - -class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion(GitHubModel): - """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion +class DependabotAlertPackage(GitHubModel): + """DependabotAlertPackage - Details pertaining to the package version that patches this vulnerability. + Details for the vulnerable package. """ - identifier: str = Field( - description="The package version that patches this vulnerability." + ecosystem: str = Field( + description="The package's language or package management ecosystem." ) + name: str = Field(description="The unique package name within its ecosystem.") -model_rebuild(DependabotAlertSecurityVulnerability) -model_rebuild(DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion) +model_rebuild(DependabotAlertPackage) -__all__ = ( - "DependabotAlertSecurityVulnerability", - "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", -) +__all__ = ("DependabotAlertPackage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0034.py b/githubkit/versions/v2022_11_28/models/group_0034.py index 8e246771b..4fb8a9514 100644 --- a/githubkit/versions/v2022_11_28/models/group_0034.py +++ b/githubkit/versions/v2022_11_28/models/group_0034.py @@ -9,118 +9,52 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0001 import CvssSeverities -from .group_0033 import DependabotAlertSecurityVulnerability +from .group_0033 import DependabotAlertPackage -class DependabotAlertSecurityAdvisory(GitHubModel): - """DependabotAlertSecurityAdvisory +class DependabotAlertSecurityVulnerability(GitHubModel): + """DependabotAlertSecurityVulnerability - Details for the GitHub Security Advisory. + Details pertaining to one vulnerable version range for the advisory. """ - ghsa_id: str = Field( - description="The unique GitHub Security Advisory ID assigned to the advisory." - ) - cve_id: Union[str, None] = Field( - description="The unique CVE ID assigned to the advisory." - ) - summary: str = Field( - max_length=1024, description="A short, plain text summary of the advisory." - ) - description: str = Field( - description="A long-form Markdown-supported description of the advisory." - ) - vulnerabilities: list[DependabotAlertSecurityVulnerability] = Field( - description="Vulnerable version range information for the advisory." + package: DependabotAlertPackage = Field( + description="Details for the vulnerable package." ) severity: Literal["low", "medium", "high", "critical"] = Field( - description="The severity of the advisory." - ) - cvss: DependabotAlertSecurityAdvisoryPropCvss = Field( - description="Details for the advisory pertaining to the Common Vulnerability Scoring System." - ) - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[DependabotAlertSecurityAdvisoryPropCwesItems] = Field( - description="Details for the advisory pertaining to Common Weakness Enumeration." + description="The severity of the vulnerability." ) - identifiers: list[DependabotAlertSecurityAdvisoryPropIdentifiersItems] = Field( - description="Values that identify this advisory among security information sources." + vulnerable_version_range: str = Field( + description="Conditions that identify vulnerable versions of this vulnerability's package." ) - references: list[DependabotAlertSecurityAdvisoryPropReferencesItems] = Field( - description="Links to additional advisory information." - ) - published_at: datetime = Field( - description="The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: datetime = Field( - description="The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - withdrawn_at: Union[datetime, None] = Field( - description="The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + first_patched_version: Union[ + DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, None + ] = Field( + description="Details pertaining to the package version that patches this vulnerability." ) -class DependabotAlertSecurityAdvisoryPropCvss(GitHubModel): - """DependabotAlertSecurityAdvisoryPropCvss +class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion(GitHubModel): + """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion - Details for the advisory pertaining to the Common Vulnerability Scoring System. + Details pertaining to the package version that patches this vulnerability. """ - score: float = Field(le=10.0, description="The overall CVSS score of the advisory.") - vector_string: Union[str, None] = Field( - description="The full CVSS vector string for the advisory." + identifier: str = Field( + description="The package version that patches this vulnerability." ) -class DependabotAlertSecurityAdvisoryPropCwesItems(GitHubModel): - """DependabotAlertSecurityAdvisoryPropCwesItems - - A CWE weakness assigned to the advisory. - """ - - cwe_id: str = Field(description="The unique CWE ID.") - name: str = Field(description="The short, plain text name of the CWE.") - - -class DependabotAlertSecurityAdvisoryPropIdentifiersItems(GitHubModel): - """DependabotAlertSecurityAdvisoryPropIdentifiersItems - - An advisory identifier. - """ - - type: Literal["CVE", "GHSA"] = Field(description="The type of advisory identifier.") - value: str = Field(description="The value of the advisory identifer.") - - -class DependabotAlertSecurityAdvisoryPropReferencesItems(GitHubModel): - """DependabotAlertSecurityAdvisoryPropReferencesItems - - A link to additional advisory information. - """ - - url: str = Field(description="The URL of the reference.") - - -model_rebuild(DependabotAlertSecurityAdvisory) -model_rebuild(DependabotAlertSecurityAdvisoryPropCvss) -model_rebuild(DependabotAlertSecurityAdvisoryPropCwesItems) -model_rebuild(DependabotAlertSecurityAdvisoryPropIdentifiersItems) -model_rebuild(DependabotAlertSecurityAdvisoryPropReferencesItems) +model_rebuild(DependabotAlertSecurityVulnerability) +model_rebuild(DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion) __all__ = ( - "DependabotAlertSecurityAdvisory", - "DependabotAlertSecurityAdvisoryPropCvss", - "DependabotAlertSecurityAdvisoryPropCwesItems", - "DependabotAlertSecurityAdvisoryPropIdentifiersItems", - "DependabotAlertSecurityAdvisoryPropReferencesItems", + "DependabotAlertSecurityVulnerability", + "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0035.py b/githubkit/versions/v2022_11_28/models/group_0035.py index 81e03f30e..e053f0362 100644 --- a/githubkit/versions/v2022_11_28/models/group_0035.py +++ b/githubkit/versions/v2022_11_28/models/group_0035.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,65 +18,114 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0030 import SimpleRepository -from .group_0033 import DependabotAlertSecurityVulnerability -from .group_0034 import DependabotAlertSecurityAdvisory -from .group_0036 import DependabotAlertWithRepositoryPropDependency +from .group_0001 import CvssSeverities +from .group_0002 import SecurityAdvisoryEpss +from .group_0034 import DependabotAlertSecurityVulnerability -class DependabotAlertWithRepository(GitHubModel): - """DependabotAlertWithRepository +class DependabotAlertSecurityAdvisory(GitHubModel): + """DependabotAlertSecurityAdvisory - A Dependabot alert. + Details for the GitHub Security Advisory. """ - number: int = Field(description="The security alert number.") - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( - description="The state of the Dependabot alert." + ghsa_id: str = Field( + description="The unique GitHub Security Advisory ID assigned to the advisory." ) - dependency: DependabotAlertWithRepositoryPropDependency = Field( - description="Details for the vulnerable dependency." + cve_id: Union[str, None] = Field( + description="The unique CVE ID assigned to the advisory." ) - security_advisory: DependabotAlertSecurityAdvisory = Field( - description="Details for the GitHub Security Advisory." + summary: str = Field( + max_length=1024, description="A short, plain text summary of the advisory." ) - security_vulnerability: DependabotAlertSecurityVulnerability = Field( - description="Details pertaining to one vulnerable version range for the advisory." + description: str = Field( + description="A long-form Markdown-supported description of the advisory." ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + vulnerabilities: list[DependabotAlertSecurityVulnerability] = Field( + description="Vulnerable version range information for the advisory." ) - updated_at: datetime = Field( - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + severity: Literal["low", "medium", "high", "critical"] = Field( + description="The severity of the advisory." + ) + cvss: DependabotAlertSecurityAdvisoryPropCvss = Field( + description="Details for the advisory pertaining to the Common Vulnerability Scoring System." ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + epss: Missing[Union[SecurityAdvisoryEpss, None]] = Field( + default=UNSET, + description="The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] = Field(description="The reason that the alert was dismissed.") - dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( - description="An optional comment associated with the alert's dismissal." + cwes: list[DependabotAlertSecurityAdvisoryPropCwesItems] = Field( + description="Details for the advisory pertaining to Common Weakness Enumeration." ) - fixed_at: Union[datetime, None] = Field( - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + identifiers: list[DependabotAlertSecurityAdvisoryPropIdentifiersItems] = Field( + description="Values that identify this advisory among security information sources." ) - auto_dismissed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + references: list[DependabotAlertSecurityAdvisoryPropReferencesItems] = Field( + description="Links to additional advisory information." + ) + published_at: datetime = Field( + description="The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: datetime = Field( + description="The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." + withdrawn_at: Union[datetime, None] = Field( + description="The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) -model_rebuild(DependabotAlertWithRepository) +class DependabotAlertSecurityAdvisoryPropCvss(GitHubModel): + """DependabotAlertSecurityAdvisoryPropCvss + + Details for the advisory pertaining to the Common Vulnerability Scoring System. + """ + + score: float = Field(le=10.0, description="The overall CVSS score of the advisory.") + vector_string: Union[str, None] = Field( + description="The full CVSS vector string for the advisory." + ) + + +class DependabotAlertSecurityAdvisoryPropCwesItems(GitHubModel): + """DependabotAlertSecurityAdvisoryPropCwesItems + + A CWE weakness assigned to the advisory. + """ + + cwe_id: str = Field(description="The unique CWE ID.") + name: str = Field(description="The short, plain text name of the CWE.") + + +class DependabotAlertSecurityAdvisoryPropIdentifiersItems(GitHubModel): + """DependabotAlertSecurityAdvisoryPropIdentifiersItems + + An advisory identifier. + """ + + type: Literal["CVE", "GHSA"] = Field(description="The type of advisory identifier.") + value: str = Field(description="The value of the advisory identifer.") + + +class DependabotAlertSecurityAdvisoryPropReferencesItems(GitHubModel): + """DependabotAlertSecurityAdvisoryPropReferencesItems + + A link to additional advisory information. + """ + + url: str = Field(description="The URL of the reference.") + + +model_rebuild(DependabotAlertSecurityAdvisory) +model_rebuild(DependabotAlertSecurityAdvisoryPropCvss) +model_rebuild(DependabotAlertSecurityAdvisoryPropCwesItems) +model_rebuild(DependabotAlertSecurityAdvisoryPropIdentifiersItems) +model_rebuild(DependabotAlertSecurityAdvisoryPropReferencesItems) -__all__ = ("DependabotAlertWithRepository",) +__all__ = ( + "DependabotAlertSecurityAdvisory", + "DependabotAlertSecurityAdvisoryPropCvss", + "DependabotAlertSecurityAdvisoryPropCwesItems", + "DependabotAlertSecurityAdvisoryPropIdentifiersItems", + "DependabotAlertSecurityAdvisoryPropReferencesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0036.py b/githubkit/versions/v2022_11_28/models/group_0036.py index 46ea14f49..f46160bda 100644 --- a/githubkit/versions/v2022_11_28/models/group_0036.py +++ b/githubkit/versions/v2022_11_28/models/group_0036.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,27 +18,65 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0032 import DependabotAlertPackage +from .group_0003 import SimpleUser +from .group_0031 import SimpleRepository +from .group_0034 import DependabotAlertSecurityVulnerability +from .group_0035 import DependabotAlertSecurityAdvisory +from .group_0037 import DependabotAlertWithRepositoryPropDependency -class DependabotAlertWithRepositoryPropDependency(GitHubModel): - """DependabotAlertWithRepositoryPropDependency +class DependabotAlertWithRepository(GitHubModel): + """DependabotAlertWithRepository - Details for the vulnerable dependency. + A Dependabot alert. """ - package: Missing[DependabotAlertPackage] = Field( - default=UNSET, description="Details for the vulnerable package." + number: int = Field(description="The security alert number.") + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( + description="The state of the Dependabot alert." ) - manifest_path: Missing[str] = Field( + dependency: DependabotAlertWithRepositoryPropDependency = Field( + description="Details for the vulnerable dependency." + ) + security_advisory: DependabotAlertSecurityAdvisory = Field( + description="Details for the GitHub Security Advisory." + ) + security_vulnerability: DependabotAlertSecurityVulnerability = Field( + description="Details pertaining to one vulnerable version range for the advisory." + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: datetime = Field( + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] = Field(description="The reason that the alert was dismissed.") + dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( + description="An optional comment associated with the alert's dismissal." + ) + fixed_at: Union[datetime, None] = Field( + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + auto_dismissed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The full path to the dependency manifest file, relative to the root of the repository.", + description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." ) -model_rebuild(DependabotAlertWithRepositoryPropDependency) +model_rebuild(DependabotAlertWithRepository) -__all__ = ("DependabotAlertWithRepositoryPropDependency",) +__all__ = ("DependabotAlertWithRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0037.py b/githubkit/versions/v2022_11_28/models/group_0037.py index d4236ab14..46736066b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0037.py +++ b/githubkit/versions/v2022_11_28/models/group_0037.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,98 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0030 import SimpleRepository +from .group_0033 import DependabotAlertPackage -class OrganizationSecretScanningAlert(GitHubModel): - """OrganizationSecretScanningAlert""" +class DependabotAlertWithRepositoryPropDependency(GitHubModel): + """DependabotAlertWithRepositoryPropDependency - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - secret: Missing[str] = Field( - default=UNSET, description="The secret that was detected." - ) - repository: Missing[SimpleRepository] = Field( - default=UNSET, title="Simple Repository", description="A GitHub repository." - ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", - ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( - default=UNSET - ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when reviewing a push protection bypass.", - ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when requesting a push protection bypass.", - ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." + Details for the vulnerable dependency. + """ + + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." ) - resolution_comment: Missing[Union[str, None]] = Field( + manifest_path: Missing[str] = Field( default=UNSET, - description="The comment that was optionally added when this alert was closed", + description="The full path to the dependency manifest file, relative to the root of the repository.", ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." - ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the secret was publicly leaked." - ) - multi_repo: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.", + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." ) -model_rebuild(OrganizationSecretScanningAlert) +model_rebuild(DependabotAlertWithRepositoryPropDependency) -__all__ = ("OrganizationSecretScanningAlert",) +__all__ = ("DependabotAlertWithRepositoryPropDependency",) diff --git a/githubkit/versions/v2022_11_28/models/group_0038.py b/githubkit/versions/v2022_11_28/models/group_0038.py index ad32b90b7..2e5ff4ab4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0038.py +++ b/githubkit/versions/v2022_11_28/models/group_0038.py @@ -15,36 +15,101 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0031 import SimpleRepository -class Milestone(GitHubModel): - """Milestone +class OrganizationSecretScanningAlert(GitHubModel): + """OrganizationSecretScanningAlert""" - A collection of related issues and pull requests. - """ - - url: str = Field() - html_url: str = Field() - labels_url: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - state: Literal["open", "closed"] = Field( - default="open", description="The state of the milestone." + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", + ) + state: Missing[Literal["open", "resolved"]] = Field( + default=UNSET, + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + ) + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( + default=UNSET, + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + secret: Missing[str] = Field( + default=UNSET, description="The secret that was detected." + ) + repository: Missing[SimpleRepository] = Field( + default=UNSET, title="Simple Repository", description="A GitHub repository." + ) + push_protection_bypassed: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether push protection was bypassed for the detected secret.", + ) + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + default=UNSET + ) + push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when reviewing a push protection bypass.", + ) + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when requesting a push protection bypass.", + ) + push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The URL to a push protection bypass request." + ) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment that was optionally added when this alert was closed", + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) + publicly_leaked: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether the secret was publicly leaked." + ) + multi_repo: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.", ) - title: str = Field(description="The title of the milestone.") - description: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() - open_issues: int = Field() - closed_issues: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - due_on: Union[datetime, None] = Field() -model_rebuild(Milestone) +model_rebuild(OrganizationSecretScanningAlert) -__all__ = ("Milestone",) +__all__ = ("OrganizationSecretScanningAlert",) diff --git a/githubkit/versions/v2022_11_28/models/group_0039.py b/githubkit/versions/v2022_11_28/models/group_0039.py index fd85f1373..5c7ac6985 100644 --- a/githubkit/versions/v2022_11_28/models/group_0039.py +++ b/githubkit/versions/v2022_11_28/models/group_0039.py @@ -9,26 +9,42 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser -class ReactionRollup(GitHubModel): - """Reaction Rollup""" - - url: str = Field() - total_count: int = Field() - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - laugh: int = Field() - confused: int = Field() - heart: int = Field() - hooray: int = Field() - eyes: int = Field() - rocket: int = Field() +class Milestone(GitHubModel): + """Milestone -model_rebuild(ReactionRollup) + A collection of related issues and pull requests. + """ -__all__ = ("ReactionRollup",) + url: str = Field() + html_url: str = Field() + labels_url: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + state: Literal["open", "closed"] = Field( + default="open", description="The state of the milestone." + ) + title: str = Field(description="The title of the milestone.") + description: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + open_issues: int = Field() + closed_issues: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + due_on: Union[datetime, None] = Field() + + +model_rebuild(Milestone) + +__all__ = ("Milestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0040.py b/githubkit/versions/v2022_11_28/models/group_0040.py index 24313cf96..fd85f1373 100644 --- a/githubkit/versions/v2022_11_28/models/group_0040.py +++ b/githubkit/versions/v2022_11_28/models/group_0040.py @@ -9,130 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0019 import Repository -from .group_0038 import Milestone -from .group_0039 import ReactionRollup - - -class Issue(GitHubModel): - """Issue - - Issues are a great way to keep track of tasks, enhancements, and bugs for your - projects. - """ - - id: int = Field() - node_id: str = Field() - url: str = Field(description="URL for the issue") - repository_url: str = Field() - labels_url: str = Field() - comments_url: str = Field() - events_url: str = Field() - html_url: str = Field() - number: int = Field( - description="Number uniquely identifying the issue within its repository" - ) - state: str = Field(description="State of the issue; either 'open' or 'closed'") - state_reason: Missing[ - Union[None, Literal["completed", "reopened", "not_planned"]] - ] = Field(default=UNSET, description="The reason for the current state") - title: str = Field(description="Title of the issue") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Contents of the issue" - ) - user: Union[None, SimpleUser] = Field() - labels: list[Union[str, IssuePropLabelsItemsOneof1]] = Field( - description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" - ) - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - milestone: Union[None, Milestone] = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - comments: int = Field() - pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - sub_issues_summary: Missing[SubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - - -class SubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class IssuePropLabelsItemsOneof1(GitHubModel): - """IssuePropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - default: Missing[bool] = Field(default=UNSET) -class IssuePropPullRequest(GitHubModel): - """IssuePropPullRequest""" +class ReactionRollup(GitHubModel): + """Reaction Rollup""" - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - diff_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - patch_url: Union[str, None] = Field() - url: Union[str, None] = Field() + url: str = Field() + total_count: int = Field() + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + laugh: int = Field() + confused: int = Field() + heart: int = Field() + hooray: int = Field() + eyes: int = Field() + rocket: int = Field() -model_rebuild(Issue) -model_rebuild(SubIssuesSummary) -model_rebuild(IssuePropLabelsItemsOneof1) -model_rebuild(IssuePropPullRequest) +model_rebuild(ReactionRollup) -__all__ = ( - "Issue", - "IssuePropLabelsItemsOneof1", - "IssuePropPullRequest", - "SubIssuesSummary", -) +__all__ = ("ReactionRollup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0041.py b/githubkit/versions/v2022_11_28/models/group_0041.py index 667117fb9..a5a014d52 100644 --- a/githubkit/versions/v2022_11_28/models/group_0041.py +++ b/githubkit/versions/v2022_11_28/models/group_0041.py @@ -18,30 +18,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0039 import ReactionRollup +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0020 import Repository +from .group_0039 import Milestone +from .group_0040 import ReactionRollup -class IssueComment(GitHubModel): - """Issue Comment +class Issue(GitHubModel): + """Issue - Comments provide a way for people to collaborate on an issue. + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ - id: int = Field(description="Unique identifier of the issue comment") + id: int = Field() node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" - ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) + url: str = Field(description="URL for the issue") + repository_url: str = Field() + labels_url: str = Field() + comments_url: str = Field() + events_url: str = Field() html_url: str = Field() + number: int = Field( + description="Number uniquely identifying the issue within its repository" + ) + state: str = Field(description="State of the issue; either 'open' or 'closed'") + state_reason: Missing[ + Union[None, Literal["completed", "reopened", "not_planned"]] + ] = Field(default=UNSET, description="The reason for the current state") + title: str = Field(description="Title of the issue") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Contents of the issue" + ) user: Union[None, SimpleUser] = Field() + labels: list[Union[str, IssuePropLabelsItemsOneof1]] = Field( + description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" + ) + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + milestone: Union[None, Milestone] = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + comments: int = Field() + pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() created_at: datetime = Field() updated_at: datetime = Field() - issue_url: str = Field() + draft: Missing[bool] = Field(default=UNSET) + closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -55,12 +89,50 @@ class IssueComment(GitHubModel): title="author_association", description="How the author is associated with the repository.", ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + + +class SubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class IssuePropLabelsItemsOneof1(GitHubModel): + """IssuePropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) + default: Missing[bool] = Field(default=UNSET) + + +class IssuePropPullRequest(GitHubModel): + """IssuePropPullRequest""" + + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() -model_rebuild(IssueComment) +model_rebuild(Issue) +model_rebuild(SubIssuesSummary) +model_rebuild(IssuePropLabelsItemsOneof1) +model_rebuild(IssuePropPullRequest) -__all__ = ("IssueComment",) +__all__ = ( + "Issue", + "IssuePropLabelsItemsOneof1", + "IssuePropPullRequest", + "SubIssuesSummary", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0042.py b/githubkit/versions/v2022_11_28/models/group_0042.py index c16cbac32..d975d0179 100644 --- a/githubkit/versions/v2022_11_28/models/group_0042.py +++ b/githubkit/versions/v2022_11_28/models/group_0042.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,86 +18,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import Issue -from .group_0041 import IssueComment +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0040 import ReactionRollup -class EventPropPayload(GitHubModel): - """EventPropPayload""" +class IssueComment(GitHubModel): + """Issue Comment - action: Missing[str] = Field(default=UNSET) - issue: Missing[Issue] = Field( - default=UNSET, - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - comment: Missing[IssueComment] = Field( - default=UNSET, - title="Issue Comment", - description="Comments provide a way for people to collaborate on an issue.", - ) - pages: Missing[list[EventPropPayloadPropPagesItems]] = Field(default=UNSET) - - -class EventPropPayloadPropPagesItems(GitHubModel): - """EventPropPayloadPropPagesItems""" - - page_name: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - summary: Missing[Union[str, None]] = Field(default=UNSET) - action: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - - -class Event(GitHubModel): - """Event - - Event + Comments provide a way for people to collaborate on an issue. """ - id: str = Field() - type: Union[str, None] = Field() - actor: Actor = Field(title="Actor", description="Actor") - repo: EventPropRepo = Field() - org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") - payload: EventPropPayload = Field() - public: bool = Field() - created_at: Union[datetime, None] = Field() - - -class Actor(GitHubModel): - """Actor - - Actor - """ - - id: int = Field() - login: str = Field() - display_login: Missing[str] = Field(default=UNSET) - gravatar_id: Union[str, None] = Field() - url: str = Field() - avatar_url: str = Field() - - -class EventPropRepo(GitHubModel): - """EventPropRepo""" - - id: int = Field() - name: str = Field() - url: str = Field() + id: int = Field(description="Unique identifier of the issue comment") + node_id: str = Field() + url: str = Field(description="URL for the issue comment") + body: Missing[str] = Field( + default=UNSET, description="Contents of the issue comment" + ) + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + html_url: str = Field() + user: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + issue_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(EventPropPayload) -model_rebuild(EventPropPayloadPropPagesItems) -model_rebuild(Event) -model_rebuild(Actor) -model_rebuild(EventPropRepo) +model_rebuild(IssueComment) -__all__ = ( - "Actor", - "Event", - "EventPropPayload", - "EventPropPayloadPropPagesItems", - "EventPropRepo", -) +__all__ = ("IssueComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0043.py b/githubkit/versions/v2022_11_28/models/group_0043.py index a40a69c97..96b46a43c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0043.py +++ b/githubkit/versions/v2022_11_28/models/group_0043.py @@ -9,86 +9,95 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0041 import Issue +from .group_0042 import IssueComment -class Feed(GitHubModel): - """Feed - Feed - """ +class EventPropPayload(GitHubModel): + """EventPropPayload""" - timeline_url: str = Field() - user_url: str = Field() - current_user_public_url: Missing[str] = Field(default=UNSET) - current_user_url: Missing[str] = Field(default=UNSET) - current_user_actor_url: Missing[str] = Field(default=UNSET) - current_user_organization_url: Missing[str] = Field(default=UNSET) - current_user_organization_urls: Missing[list[str]] = Field(default=UNSET) - security_advisories_url: Missing[str] = Field(default=UNSET) - repository_discussions_url: Missing[str] = Field( - default=UNSET, description="A feed of discussions for a given repository." + action: Missing[str] = Field(default=UNSET) + issue: Missing[Issue] = Field( + default=UNSET, + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) - repository_discussions_category_url: Missing[str] = Field( + comment: Missing[IssueComment] = Field( default=UNSET, - description="A feed of discussions for a given repository and category.", + title="Issue Comment", + description="Comments provide a way for people to collaborate on an issue.", ) - links: FeedPropLinks = Field(alias="_links") + pages: Missing[list[EventPropPayloadPropPagesItems]] = Field(default=UNSET) -class FeedPropLinks(GitHubModel): - """FeedPropLinks""" +class EventPropPayloadPropPagesItems(GitHubModel): + """EventPropPayloadPropPagesItems""" - timeline: LinkWithType = Field( - title="Link With Type", description="Hypermedia Link with Type" - ) - user: LinkWithType = Field( - title="Link With Type", description="Hypermedia Link with Type" - ) - security_advisories: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - current_user: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - current_user_public: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - current_user_actor: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - current_user_organization: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - current_user_organizations: Missing[list[LinkWithType]] = Field(default=UNSET) - repository_discussions: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - repository_discussions_category: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) + page_name: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + summary: Missing[Union[str, None]] = Field(default=UNSET) + action: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + + +class Event(GitHubModel): + """Event + + Event + """ + + id: str = Field() + type: Union[str, None] = Field() + actor: Actor = Field(title="Actor", description="Actor") + repo: EventPropRepo = Field() + org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") + payload: EventPropPayload = Field() + public: bool = Field() + created_at: Union[datetime, None] = Field() -class LinkWithType(GitHubModel): - """Link With Type +class Actor(GitHubModel): + """Actor - Hypermedia Link with Type + Actor """ - href: str = Field() - type: str = Field() + id: int = Field() + login: str = Field() + display_login: Missing[str] = Field(default=UNSET) + gravatar_id: Union[str, None] = Field() + url: str = Field() + avatar_url: str = Field() + + +class EventPropRepo(GitHubModel): + """EventPropRepo""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(Feed) -model_rebuild(FeedPropLinks) -model_rebuild(LinkWithType) +model_rebuild(EventPropPayload) +model_rebuild(EventPropPayloadPropPagesItems) +model_rebuild(Event) +model_rebuild(Actor) +model_rebuild(EventPropRepo) __all__ = ( - "Feed", - "FeedPropLinks", - "LinkWithType", + "Actor", + "Event", + "EventPropPayload", + "EventPropPayloadPropPagesItems", + "EventPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0044.py b/githubkit/versions/v2022_11_28/models/group_0044.py index 96d916fe9..a40a69c97 100644 --- a/githubkit/versions/v2022_11_28/models/group_0044.py +++ b/githubkit/versions/v2022_11_28/models/group_0044.py @@ -9,57 +9,86 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser - -class BaseGist(GitHubModel): - """Base Gist +class Feed(GitHubModel): + """Feed - Base Gist + Feed """ - url: str = Field() - forks_url: str = Field() - commits_url: str = Field() - id: str = Field() - node_id: str = Field() - git_pull_url: str = Field() - git_push_url: str = Field() - html_url: str = Field() - files: BaseGistPropFiles = Field() - public: bool = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + timeline_url: str = Field() + user_url: str = Field() + current_user_public_url: Missing[str] = Field(default=UNSET) + current_user_url: Missing[str] = Field(default=UNSET) + current_user_actor_url: Missing[str] = Field(default=UNSET) + current_user_organization_url: Missing[str] = Field(default=UNSET) + current_user_organization_urls: Missing[list[str]] = Field(default=UNSET) + security_advisories_url: Missing[str] = Field(default=UNSET) + repository_discussions_url: Missing[str] = Field( + default=UNSET, description="A feed of discussions for a given repository." + ) + repository_discussions_category_url: Missing[str] = Field( + default=UNSET, + description="A feed of discussions for a given repository and category.", + ) + links: FeedPropLinks = Field(alias="_links") + + +class FeedPropLinks(GitHubModel): + """FeedPropLinks""" + + timeline: LinkWithType = Field( + title="Link With Type", description="Hypermedia Link with Type" + ) + user: LinkWithType = Field( + title="Link With Type", description="Hypermedia Link with Type" + ) + security_advisories: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" ) - truncated: Missing[bool] = Field(default=UNSET) - forks: Missing[list[Any]] = Field(default=UNSET) - history: Missing[list[Any]] = Field(default=UNSET) + current_user: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_public: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_actor: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_organization: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_organizations: Missing[list[LinkWithType]] = Field(default=UNSET) + repository_discussions: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + repository_discussions_category: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + +class LinkWithType(GitHubModel): + """Link With Type + + Hypermedia Link with Type + """ -class BaseGistPropFiles(ExtraGitHubModel): - """BaseGistPropFiles""" + href: str = Field() + type: str = Field() -model_rebuild(BaseGist) -model_rebuild(BaseGistPropFiles) +model_rebuild(Feed) +model_rebuild(FeedPropLinks) +model_rebuild(LinkWithType) __all__ = ( - "BaseGist", - "BaseGistPropFiles", + "Feed", + "FeedPropLinks", + "LinkWithType", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0045.py b/githubkit/versions/v2022_11_28/models/group_0045.py index d863ee760..f2be178a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0045.py +++ b/githubkit/versions/v2022_11_28/models/group_0045.py @@ -18,34 +18,13 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser -class GistHistory(GitHubModel): - """Gist History +class BaseGist(GitHubModel): + """Base Gist - Gist History - """ - - user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - committed_at: Missing[datetime] = Field(default=UNSET) - change_status: Missing[GistHistoryPropChangeStatus] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class GistHistoryPropChangeStatus(GitHubModel): - """GistHistoryPropChangeStatus""" - - total: Missing[int] = Field(default=UNSET) - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) - - -class GistSimplePropForkOf(GitHubModel): - """Gist - - Gist + Base Gist """ url: str = Field() @@ -56,7 +35,7 @@ class GistSimplePropForkOf(GitHubModel): git_pull_url: str = Field() git_push_url: str = Field() html_url: str = Field() - files: GistSimplePropForkOfPropFiles = Field() + files: BaseGistPropFiles = Field() public: bool = Field() created_at: datetime = Field() updated_at: datetime = Field() @@ -65,24 +44,22 @@ class GistSimplePropForkOf(GitHubModel): comments_enabled: Missing[bool] = Field(default=UNSET) user: Union[None, SimpleUser] = Field() comments_url: str = Field() - owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) truncated: Missing[bool] = Field(default=UNSET) forks: Missing[list[Any]] = Field(default=UNSET) history: Missing[list[Any]] = Field(default=UNSET) -class GistSimplePropForkOfPropFiles(ExtraGitHubModel): - """GistSimplePropForkOfPropFiles""" +class BaseGistPropFiles(ExtraGitHubModel): + """BaseGistPropFiles""" -model_rebuild(GistHistory) -model_rebuild(GistHistoryPropChangeStatus) -model_rebuild(GistSimplePropForkOf) -model_rebuild(GistSimplePropForkOfPropFiles) +model_rebuild(BaseGist) +model_rebuild(BaseGistPropFiles) __all__ = ( - "GistHistory", - "GistHistoryPropChangeStatus", - "GistSimplePropForkOf", - "GistSimplePropForkOfPropFiles", + "BaseGist", + "BaseGistPropFiles", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0046.py b/githubkit/versions/v2022_11_28/models/group_0046.py index 8b9971f8f..825cce14c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0046.py +++ b/githubkit/versions/v2022_11_28/models/group_0046.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Any, Union from pydantic import Field @@ -18,127 +18,71 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0045 import GistHistory, GistSimplePropForkOf +from .group_0003 import SimpleUser -class GistSimple(GitHubModel): - """Gist Simple +class GistHistory(GitHubModel): + """Gist History - Gist Simple + Gist History """ - forks: Missing[Union[list[GistSimplePropForksItems], None]] = Field(default=UNSET) - history: Missing[Union[list[GistHistory], None]] = Field(default=UNSET) - fork_of: Missing[Union[GistSimplePropForkOf, None]] = Field( - default=UNSET, title="Gist", description="Gist" - ) + user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + committed_at: Missing[datetime] = Field(default=UNSET) + change_status: Missing[GistHistoryPropChangeStatus] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - git_pull_url: Missing[str] = Field(default=UNSET) - git_push_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - files: Missing[GistSimplePropFiles] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Missing[Union[str, None]] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - truncated: Missing[bool] = Field(default=UNSET) - -class GistSimplePropFiles(ExtraGitHubModel): - """GistSimplePropFiles""" +class GistHistoryPropChangeStatus(GitHubModel): + """GistHistoryPropChangeStatus""" -class GistSimplePropForksItems(GitHubModel): - """GistSimplePropForksItems""" - - id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[PublicUser] = Field( - default=UNSET, title="Public User", description="Public User" - ) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) + total: Missing[int] = Field(default=UNSET) + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) -class PublicUser(GitHubModel): - """Public User +class GistSimplePropForkOf(GitHubModel): + """Gist - Public User + Gist """ - login: str = Field() - id: int = Field() - user_view_type: Missing[str] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() url: str = Field() + forks_url: str = Field() + commits_url: str = Field() + id: str = Field() + node_id: str = Field() + git_pull_url: str = Field() + git_push_url: str = Field() html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - name: Union[str, None] = Field() - company: Union[str, None] = Field() - blog: Union[str, None] = Field() - location: Union[str, None] = Field() - email: Union[str, None] = Field() - notification_email: Missing[Union[str, None]] = Field(default=UNSET) - hireable: Union[bool, None] = Field() - bio: Union[str, None] = Field() - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() + files: GistSimplePropForkOfPropFiles = Field() + public: bool = Field() created_at: datetime = Field() updated_at: datetime = Field() - plan: Missing[PublicUserPropPlan] = Field(default=UNSET) - private_gists: Missing[int] = Field(default=UNSET) - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - disk_usage: Missing[int] = Field(default=UNSET) - collaborators: Missing[int] = Field(default=UNSET) - + description: Union[str, None] = Field() + comments: int = Field() + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + comments_url: str = Field() + owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + truncated: Missing[bool] = Field(default=UNSET) + forks: Missing[list[Any]] = Field(default=UNSET) + history: Missing[list[Any]] = Field(default=UNSET) -class PublicUserPropPlan(GitHubModel): - """PublicUserPropPlan""" - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() +class GistSimplePropForkOfPropFiles(ExtraGitHubModel): + """GistSimplePropForkOfPropFiles""" -model_rebuild(GistSimple) -model_rebuild(GistSimplePropFiles) -model_rebuild(GistSimplePropForksItems) -model_rebuild(PublicUser) -model_rebuild(PublicUserPropPlan) +model_rebuild(GistHistory) +model_rebuild(GistHistoryPropChangeStatus) +model_rebuild(GistSimplePropForkOf) +model_rebuild(GistSimplePropForkOfPropFiles) __all__ = ( - "GistSimple", - "GistSimplePropFiles", - "GistSimplePropForksItems", - "PublicUser", - "PublicUserPropPlan", + "GistHistory", + "GistHistoryPropChangeStatus", + "GistSimplePropForkOf", + "GistSimplePropForkOfPropFiles", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0047.py b/githubkit/versions/v2022_11_28/models/group_0047.py index 567155e3e..dac1fb29c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0047.py +++ b/githubkit/versions/v2022_11_28/models/group_0047.py @@ -10,43 +10,135 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0046 import GistHistory, GistSimplePropForkOf -class GistComment(GitHubModel): - """Gist Comment +class GistSimple(GitHubModel): + """Gist Simple - A comment made to a gist. + Gist Simple """ + forks: Missing[Union[list[GistSimplePropForksItems], None]] = Field(default=UNSET) + history: Missing[Union[list[GistHistory], None]] = Field(default=UNSET) + fork_of: Missing[Union[GistSimplePropForkOf, None]] = Field( + default=UNSET, title="Gist", description="Gist" + ) + url: Missing[str] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + git_pull_url: Missing[str] = Field(default=UNSET) + git_push_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + files: Missing[GistSimplePropFiles] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Missing[Union[str, None]] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + truncated: Missing[bool] = Field(default=UNSET) + + +class GistSimplePropFiles(ExtraGitHubModel): + """GistSimplePropFiles""" + + +class GistSimplePropForksItems(GitHubModel): + """GistSimplePropForksItems""" + + id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[PublicUser] = Field( + default=UNSET, title="Public User", description="Public User" + ) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + + +class PublicUser(GitHubModel): + """Public User + + Public User + """ + + login: str = Field() id: int = Field() + user_view_type: Missing[str] = Field(default=UNSET) node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() url: str = Field() - body: str = Field(max_length=65535, description="The comment text.") - user: Union[None, SimpleUser] = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + name: Union[str, None] = Field() + company: Union[str, None] = Field() + blog: Union[str, None] = Field() + location: Union[str, None] = Field() + email: Union[str, None] = Field() + notification_email: Missing[Union[str, None]] = Field(default=UNSET) + hireable: Union[bool, None] = Field() + bio: Union[str, None] = Field() + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() created_at: datetime = Field() updated_at: datetime = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) + plan: Missing[PublicUserPropPlan] = Field(default=UNSET) + private_gists: Missing[int] = Field(default=UNSET) + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + disk_usage: Missing[int] = Field(default=UNSET) + collaborators: Missing[int] = Field(default=UNSET) + + +class PublicUserPropPlan(GitHubModel): + """PublicUserPropPlan""" + + collaborators: int = Field() + name: str = Field() + space: int = Field() + private_repos: int = Field() -model_rebuild(GistComment) +model_rebuild(GistSimple) +model_rebuild(GistSimplePropFiles) +model_rebuild(GistSimplePropForksItems) +model_rebuild(PublicUser) +model_rebuild(PublicUserPropPlan) -__all__ = ("GistComment",) +__all__ = ( + "GistSimple", + "GistSimplePropFiles", + "GistSimplePropForksItems", + "PublicUser", + "PublicUserPropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0048.py b/githubkit/versions/v2022_11_28/models/group_0048.py index 4ffb411e9..429704889 100644 --- a/githubkit/versions/v2022_11_28/models/group_0048.py +++ b/githubkit/versions/v2022_11_28/models/group_0048.py @@ -10,42 +10,43 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser -class GistCommit(GitHubModel): - """Gist Commit +class GistComment(GitHubModel): + """Gist Comment - Gist Commit + A comment made to a gist. """ + id: int = Field() + node_id: str = Field() url: str = Field() - version: str = Field() + body: str = Field(max_length=65535, description="The comment text.") user: Union[None, SimpleUser] = Field() - change_status: GistCommitPropChangeStatus = Field() - committed_at: datetime = Field() - - -class GistCommitPropChangeStatus(GitHubModel): - """GistCommitPropChangeStatus""" - - total: Missing[int] = Field(default=UNSET) - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) - - -model_rebuild(GistCommit) -model_rebuild(GistCommitPropChangeStatus) - -__all__ = ( - "GistCommit", - "GistCommitPropChangeStatus", -) + created_at: datetime = Field() + updated_at: datetime = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + + +model_rebuild(GistComment) + +__all__ = ("GistComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0049.py b/githubkit/versions/v2022_11_28/models/group_0049.py index 68fca7a2b..d417526bd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0049.py +++ b/githubkit/versions/v2022_11_28/models/group_0049.py @@ -9,21 +9,43 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser -class GitignoreTemplate(GitHubModel): - """Gitignore Template +class GistCommit(GitHubModel): + """Gist Commit - Gitignore Template + Gist Commit """ - name: str = Field() - source: str = Field() + url: str = Field() + version: str = Field() + user: Union[None, SimpleUser] = Field() + change_status: GistCommitPropChangeStatus = Field() + committed_at: datetime = Field() + + +class GistCommitPropChangeStatus(GitHubModel): + """GistCommitPropChangeStatus""" + + total: Missing[int] = Field(default=UNSET) + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) -model_rebuild(GitignoreTemplate) +model_rebuild(GistCommit) +model_rebuild(GistCommitPropChangeStatus) -__all__ = ("GitignoreTemplate",) +__all__ = ( + "GistCommit", + "GistCommitPropChangeStatus", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0050.py b/githubkit/versions/v2022_11_28/models/group_0050.py index 783d62fbc..68fca7a2b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0050.py +++ b/githubkit/versions/v2022_11_28/models/group_0050.py @@ -9,34 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class License(GitHubModel): - """License +class GitignoreTemplate(GitHubModel): + """Gitignore Template - License + Gitignore Template """ - key: str = Field() name: str = Field() - spdx_id: Union[str, None] = Field() - url: Union[str, None] = Field() - node_id: str = Field() - html_url: str = Field() - description: str = Field() - implementation: str = Field() - permissions: list[str] = Field() - conditions: list[str] = Field() - limitations: list[str] = Field() - body: str = Field() - featured: bool = Field() - - -model_rebuild(License) - -__all__ = ("License",) + source: str = Field() + + +model_rebuild(GitignoreTemplate) + +__all__ = ("GitignoreTemplate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0051.py b/githubkit/versions/v2022_11_28/models/group_0051.py index f13661e40..783d62fbc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0051.py +++ b/githubkit/versions/v2022_11_28/models/group_0051.py @@ -9,34 +9,34 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class MarketplaceListingPlan(GitHubModel): - """Marketplace Listing Plan +class License(GitHubModel): + """License - Marketplace Listing Plan + License """ - url: str = Field() - accounts_url: str = Field() - id: int = Field() - number: int = Field() + key: str = Field() name: str = Field() + spdx_id: Union[str, None] = Field() + url: Union[str, None] = Field() + node_id: str = Field() + html_url: str = Field() description: str = Field() - monthly_price_in_cents: int = Field() - yearly_price_in_cents: int = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - has_free_trial: bool = Field() - unit_name: Union[str, None] = Field() - state: str = Field() - bullets: list[str] = Field() + implementation: str = Field() + permissions: list[str] = Field() + conditions: list[str] = Field() + limitations: list[str] = Field() + body: str = Field() + featured: bool = Field() -model_rebuild(MarketplaceListingPlan) +model_rebuild(License) -__all__ = ("MarketplaceListingPlan",) +__all__ = ("License",) diff --git a/githubkit/versions/v2022_11_28/models/group_0052.py b/githubkit/versions/v2022_11_28/models/group_0052.py index 8498fa7ca..f13661e40 100644 --- a/githubkit/versions/v2022_11_28/models/group_0052.py +++ b/githubkit/versions/v2022_11_28/models/group_0052.py @@ -9,38 +9,34 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0053 import ( - MarketplacePurchasePropMarketplacePendingChange, - MarketplacePurchasePropMarketplacePurchase, -) +class MarketplaceListingPlan(GitHubModel): + """Marketplace Listing Plan -class MarketplacePurchase(GitHubModel): - """Marketplace Purchase - - Marketplace Purchase + Marketplace Listing Plan """ url: str = Field() - type: str = Field() + accounts_url: str = Field() id: int = Field() - login: str = Field() - organization_billing_email: Missing[str] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - marketplace_pending_change: Missing[ - Union[MarketplacePurchasePropMarketplacePendingChange, None] - ] = Field(default=UNSET) - marketplace_purchase: MarketplacePurchasePropMarketplacePurchase = Field() + number: int = Field() + name: str = Field() + description: str = Field() + monthly_price_in_cents: int = Field() + yearly_price_in_cents: int = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + has_free_trial: bool = Field() + unit_name: Union[str, None] = Field() + state: str = Field() + bullets: list[str] = Field() -model_rebuild(MarketplacePurchase) +model_rebuild(MarketplaceListingPlan) -__all__ = ("MarketplacePurchase",) +__all__ = ("MarketplaceListingPlan",) diff --git a/githubkit/versions/v2022_11_28/models/group_0053.py b/githubkit/versions/v2022_11_28/models/group_0053.py index 746cdfc48..b5aa563c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0053.py +++ b/githubkit/versions/v2022_11_28/models/group_0053.py @@ -17,44 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0051 import MarketplaceListingPlan - - -class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): - """MarketplacePurchasePropMarketplacePendingChange""" - - is_installed: Missing[bool] = Field(default=UNSET) - effective_date: Missing[str] = Field(default=UNSET) - unit_count: Missing[Union[int, None]] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - plan: Missing[MarketplaceListingPlan] = Field( - default=UNSET, - title="Marketplace Listing Plan", - description="Marketplace Listing Plan", - ) - - -class MarketplacePurchasePropMarketplacePurchase(GitHubModel): - """MarketplacePurchasePropMarketplacePurchase""" - - billing_cycle: Missing[str] = Field(default=UNSET) - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - is_installed: Missing[bool] = Field(default=UNSET) - unit_count: Missing[Union[int, None]] = Field(default=UNSET) - on_free_trial: Missing[bool] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - plan: Missing[MarketplaceListingPlan] = Field( - default=UNSET, - title="Marketplace Listing Plan", - description="Marketplace Listing Plan", - ) - - -model_rebuild(MarketplacePurchasePropMarketplacePendingChange) -model_rebuild(MarketplacePurchasePropMarketplacePurchase) - -__all__ = ( - "MarketplacePurchasePropMarketplacePendingChange", - "MarketplacePurchasePropMarketplacePurchase", +from .group_0054 import ( + MarketplacePurchasePropMarketplacePendingChange, + MarketplacePurchasePropMarketplacePurchase, ) + + +class MarketplacePurchase(GitHubModel): + """Marketplace Purchase + + Marketplace Purchase + """ + + url: str = Field() + type: str = Field() + id: int = Field() + login: str = Field() + organization_billing_email: Missing[str] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + marketplace_pending_change: Missing[ + Union[MarketplacePurchasePropMarketplacePendingChange, None] + ] = Field(default=UNSET) + marketplace_purchase: MarketplacePurchasePropMarketplacePurchase = Field() + + +model_rebuild(MarketplacePurchase) + +__all__ = ("MarketplacePurchase",) diff --git a/githubkit/versions/v2022_11_28/models/group_0054.py b/githubkit/versions/v2022_11_28/models/group_0054.py index b8030b113..709202d65 100644 --- a/githubkit/versions/v2022_11_28/models/group_0054.py +++ b/githubkit/versions/v2022_11_28/models/group_0054.py @@ -9,89 +9,52 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0052 import MarketplaceListingPlan -class ApiOverview(GitHubModel): - """Api Overview - Api Overview - """ +class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): + """MarketplacePurchasePropMarketplacePendingChange""" - verifiable_password_authentication: bool = Field() - ssh_key_fingerprints: Missing[ApiOverviewPropSshKeyFingerprints] = Field( - default=UNSET - ) - ssh_keys: Missing[list[str]] = Field(default=UNSET) - hooks: Missing[list[str]] = Field(default=UNSET) - github_enterprise_importer: Missing[list[str]] = Field(default=UNSET) - web: Missing[list[str]] = Field(default=UNSET) - api: Missing[list[str]] = Field(default=UNSET) - git: Missing[list[str]] = Field(default=UNSET) - packages: Missing[list[str]] = Field(default=UNSET) - pages: Missing[list[str]] = Field(default=UNSET) - importer: Missing[list[str]] = Field(default=UNSET) - actions: Missing[list[str]] = Field(default=UNSET) - actions_macos: Missing[list[str]] = Field(default=UNSET) - codespaces: Missing[list[str]] = Field(default=UNSET) - dependabot: Missing[list[str]] = Field(default=UNSET) - copilot: Missing[list[str]] = Field(default=UNSET) - domains: Missing[ApiOverviewPropDomains] = Field(default=UNSET) - - -class ApiOverviewPropSshKeyFingerprints(GitHubModel): - """ApiOverviewPropSshKeyFingerprints""" - - sha256_rsa: Missing[str] = Field(default=UNSET, alias="SHA256_RSA") - sha256_dsa: Missing[str] = Field(default=UNSET, alias="SHA256_DSA") - sha256_ecdsa: Missing[str] = Field(default=UNSET, alias="SHA256_ECDSA") - sha256_ed25519: Missing[str] = Field(default=UNSET, alias="SHA256_ED25519") - - -class ApiOverviewPropDomains(GitHubModel): - """ApiOverviewPropDomains""" - - website: Missing[list[str]] = Field(default=UNSET) - codespaces: Missing[list[str]] = Field(default=UNSET) - copilot: Missing[list[str]] = Field(default=UNSET) - packages: Missing[list[str]] = Field(default=UNSET) - actions: Missing[list[str]] = Field(default=UNSET) - actions_inbound: Missing[ApiOverviewPropDomainsPropActionsInbound] = Field( - default=UNSET + is_installed: Missing[bool] = Field(default=UNSET) + effective_date: Missing[str] = Field(default=UNSET) + unit_count: Missing[Union[int, None]] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + plan: Missing[MarketplaceListingPlan] = Field( + default=UNSET, + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", ) - artifact_attestations: Missing[ApiOverviewPropDomainsPropArtifactAttestations] = ( - Field(default=UNSET) - ) - -class ApiOverviewPropDomainsPropActionsInbound(GitHubModel): - """ApiOverviewPropDomainsPropActionsInbound""" - full_domains: Missing[list[str]] = Field(default=UNSET) - wildcard_domains: Missing[list[str]] = Field(default=UNSET) - - -class ApiOverviewPropDomainsPropArtifactAttestations(GitHubModel): - """ApiOverviewPropDomainsPropArtifactAttestations""" - - trust_domain: Missing[str] = Field(default=UNSET) - services: Missing[list[str]] = Field(default=UNSET) +class MarketplacePurchasePropMarketplacePurchase(GitHubModel): + """MarketplacePurchasePropMarketplacePurchase""" + + billing_cycle: Missing[str] = Field(default=UNSET) + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + is_installed: Missing[bool] = Field(default=UNSET) + unit_count: Missing[Union[int, None]] = Field(default=UNSET) + on_free_trial: Missing[bool] = Field(default=UNSET) + free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + plan: Missing[MarketplaceListingPlan] = Field( + default=UNSET, + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", + ) -model_rebuild(ApiOverview) -model_rebuild(ApiOverviewPropSshKeyFingerprints) -model_rebuild(ApiOverviewPropDomains) -model_rebuild(ApiOverviewPropDomainsPropActionsInbound) -model_rebuild(ApiOverviewPropDomainsPropArtifactAttestations) +model_rebuild(MarketplacePurchasePropMarketplacePendingChange) +model_rebuild(MarketplacePurchasePropMarketplacePurchase) __all__ = ( - "ApiOverview", - "ApiOverviewPropDomains", - "ApiOverviewPropDomainsPropActionsInbound", - "ApiOverviewPropDomainsPropArtifactAttestations", - "ApiOverviewPropSshKeyFingerprints", + "MarketplacePurchasePropMarketplacePendingChange", + "MarketplacePurchasePropMarketplacePurchase", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0055.py b/githubkit/versions/v2022_11_28/models/group_0055.py index 7c8ef3b62..b8030b113 100644 --- a/githubkit/versions/v2022_11_28/models/group_0055.py +++ b/githubkit/versions/v2022_11_28/models/group_0055.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,88 +16,82 @@ from githubkit.utils import UNSET -class SecurityAndAnalysis(GitHubModel): - """SecurityAndAnalysis""" +class ApiOverview(GitHubModel): + """Api Overview + + Api Overview + """ - advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( + verifiable_password_authentication: bool = Field() + ssh_key_fingerprints: Missing[ApiOverviewPropSshKeyFingerprints] = Field( default=UNSET ) - dependabot_security_updates: Missing[ - SecurityAndAnalysisPropDependabotSecurityUpdates - ] = Field( - default=UNSET, - description="Enable or disable Dependabot security updates for the repository.", - ) - secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( + ssh_keys: Missing[list[str]] = Field(default=UNSET) + hooks: Missing[list[str]] = Field(default=UNSET) + github_enterprise_importer: Missing[list[str]] = Field(default=UNSET) + web: Missing[list[str]] = Field(default=UNSET) + api: Missing[list[str]] = Field(default=UNSET) + git: Missing[list[str]] = Field(default=UNSET) + packages: Missing[list[str]] = Field(default=UNSET) + pages: Missing[list[str]] = Field(default=UNSET) + importer: Missing[list[str]] = Field(default=UNSET) + actions: Missing[list[str]] = Field(default=UNSET) + actions_macos: Missing[list[str]] = Field(default=UNSET) + codespaces: Missing[list[str]] = Field(default=UNSET) + dependabot: Missing[list[str]] = Field(default=UNSET) + copilot: Missing[list[str]] = Field(default=UNSET) + domains: Missing[ApiOverviewPropDomains] = Field(default=UNSET) + + +class ApiOverviewPropSshKeyFingerprints(GitHubModel): + """ApiOverviewPropSshKeyFingerprints""" + + sha256_rsa: Missing[str] = Field(default=UNSET, alias="SHA256_RSA") + sha256_dsa: Missing[str] = Field(default=UNSET, alias="SHA256_DSA") + sha256_ecdsa: Missing[str] = Field(default=UNSET, alias="SHA256_ECDSA") + sha256_ed25519: Missing[str] = Field(default=UNSET, alias="SHA256_ED25519") + + +class ApiOverviewPropDomains(GitHubModel): + """ApiOverviewPropDomains""" + + website: Missing[list[str]] = Field(default=UNSET) + codespaces: Missing[list[str]] = Field(default=UNSET) + copilot: Missing[list[str]] = Field(default=UNSET) + packages: Missing[list[str]] = Field(default=UNSET) + actions: Missing[list[str]] = Field(default=UNSET) + actions_inbound: Missing[ApiOverviewPropDomainsPropActionsInbound] = Field( default=UNSET ) - secret_scanning_push_protection: Missing[ - SecurityAndAnalysisPropSecretScanningPushProtection - ] = Field(default=UNSET) - secret_scanning_non_provider_patterns: Missing[ - SecurityAndAnalysisPropSecretScanningNonProviderPatterns - ] = Field(default=UNSET) - secret_scanning_ai_detection: Missing[ - SecurityAndAnalysisPropSecretScanningAiDetection - ] = Field(default=UNSET) - - -class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): - """SecurityAndAnalysisPropDependabotSecurityUpdates - - Enable or disable Dependabot security updates for the repository. - """ - - status: Missing[Literal["enabled", "disabled"]] = Field( - default=UNSET, - description="The enablement status of Dependabot security updates for the repository.", + artifact_attestations: Missing[ApiOverviewPropDomainsPropArtifactAttestations] = ( + Field(default=UNSET) ) -class SecurityAndAnalysisPropSecretScanning(GitHubModel): - """SecurityAndAnalysisPropSecretScanning""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningPushProtection(GitHubModel): - """SecurityAndAnalysisPropSecretScanningPushProtection""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningNonProviderPatterns(GitHubModel): - """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" +class ApiOverviewPropDomainsPropActionsInbound(GitHubModel): + """ApiOverviewPropDomainsPropActionsInbound""" - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + full_domains: Missing[list[str]] = Field(default=UNSET) + wildcard_domains: Missing[list[str]] = Field(default=UNSET) -class SecurityAndAnalysisPropSecretScanningAiDetection(GitHubModel): - """SecurityAndAnalysisPropSecretScanningAiDetection""" +class ApiOverviewPropDomainsPropArtifactAttestations(GitHubModel): + """ApiOverviewPropDomainsPropArtifactAttestations""" - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + trust_domain: Missing[str] = Field(default=UNSET) + services: Missing[list[str]] = Field(default=UNSET) -model_rebuild(SecurityAndAnalysis) -model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) -model_rebuild(SecurityAndAnalysisPropSecretScanning) -model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) -model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) -model_rebuild(SecurityAndAnalysisPropSecretScanningAiDetection) +model_rebuild(ApiOverview) +model_rebuild(ApiOverviewPropSshKeyFingerprints) +model_rebuild(ApiOverviewPropDomains) +model_rebuild(ApiOverviewPropDomainsPropActionsInbound) +model_rebuild(ApiOverviewPropDomainsPropArtifactAttestations) __all__ = ( - "SecurityAndAnalysis", - "SecurityAndAnalysisPropAdvancedSecurity", - "SecurityAndAnalysisPropDependabotSecurityUpdates", - "SecurityAndAnalysisPropSecretScanning", - "SecurityAndAnalysisPropSecretScanningAiDetection", - "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "SecurityAndAnalysisPropSecretScanningPushProtection", + "ApiOverview", + "ApiOverviewPropDomains", + "ApiOverviewPropDomainsPropActionsInbound", + "ApiOverviewPropDomainsPropArtifactAttestations", + "ApiOverviewPropSshKeyFingerprints", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0056.py b/githubkit/versions/v2022_11_28/models/group_0056.py index 1e1db03fc..7c8ef3b62 100644 --- a/githubkit/versions/v2022_11_28/models/group_0056.py +++ b/githubkit/versions/v2022_11_28/models/group_0056.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,155 +17,89 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0055 import SecurityAndAnalysis +class SecurityAndAnalysis(GitHubModel): + """SecurityAndAnalysis""" -class MinimalRepository(GitHubModel): - """Minimal Repository - - Minimal Repository - """ - - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: str = Field() - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field( - default=UNSET, - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", - ) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[Union[datetime, None]] = Field(default=UNSET) - created_at: Missing[Union[datetime, None]] = Field(default=UNSET) - updated_at: Missing[Union[datetime, None]] = Field(default=UNSET) - permissions: Missing[MinimalRepositoryPropPermissions] = Field(default=UNSET) - role_name: Missing[str] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - code_of_conduct: Missing[CodeOfConduct] = Field( - default=UNSET, title="Code Of Conduct", description="Code Of Conduct" + advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( + default=UNSET ) - license_: Missing[Union[MinimalRepositoryPropLicense, None]] = Field( - default=UNSET, alias="license" + dependabot_security_updates: Missing[ + SecurityAndAnalysisPropDependabotSecurityUpdates + ] = Field( + default=UNSET, + description="Enable or disable Dependabot security updates for the repository.", ) - forks: Missing[int] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( default=UNSET ) + secret_scanning_push_protection: Missing[ + SecurityAndAnalysisPropSecretScanningPushProtection + ] = Field(default=UNSET) + secret_scanning_non_provider_patterns: Missing[ + SecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field(default=UNSET) + secret_scanning_ai_detection: Missing[ + SecurityAndAnalysisPropSecretScanningAiDetection + ] = Field(default=UNSET) + + +class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """SecurityAndAnalysisPropAdvancedSecurity""" + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) -class CodeOfConduct(GitHubModel): - """Code Of Conduct - Code Of Conduct +class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. """ - key: str = Field() - name: str = Field() - url: str = Field() - body: Missing[str] = Field(default=UNSET) - html_url: Union[str, None] = Field() + status: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, + description="The enablement status of Dependabot security updates for the repository.", + ) + + +class SecurityAndAnalysisPropSecretScanning(GitHubModel): + """SecurityAndAnalysisPropSecretScanning""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningPushProtection(GitHubModel): + """SecurityAndAnalysisPropSecretScanningPushProtection""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) -class MinimalRepositoryPropPermissions(GitHubModel): - """MinimalRepositoryPropPermissions""" +class SecurityAndAnalysisPropSecretScanningNonProviderPatterns(GitHubModel): + """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) -class MinimalRepositoryPropLicense(GitHubModel): - """MinimalRepositoryPropLicense""" +class SecurityAndAnalysisPropSecretScanningAiDetection(GitHubModel): + """SecurityAndAnalysisPropSecretScanningAiDetection""" - key: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - spdx_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) -model_rebuild(MinimalRepository) -model_rebuild(CodeOfConduct) -model_rebuild(MinimalRepositoryPropPermissions) -model_rebuild(MinimalRepositoryPropLicense) +model_rebuild(SecurityAndAnalysis) +model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) +model_rebuild(SecurityAndAnalysisPropSecretScanning) +model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) +model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) +model_rebuild(SecurityAndAnalysisPropSecretScanningAiDetection) __all__ = ( - "CodeOfConduct", - "MinimalRepository", - "MinimalRepositoryPropLicense", - "MinimalRepositoryPropPermissions", + "SecurityAndAnalysis", + "SecurityAndAnalysisPropAdvancedSecurity", + "SecurityAndAnalysisPropDependabotSecurityUpdates", + "SecurityAndAnalysisPropSecretScanning", + "SecurityAndAnalysisPropSecretScanningAiDetection", + "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "SecurityAndAnalysisPropSecretScanningPushProtection", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0057.py b/githubkit/versions/v2022_11_28/models/group_0057.py index c371f43d2..213e73b79 100644 --- a/githubkit/versions/v2022_11_28/models/group_0057.py +++ b/githubkit/versions/v2022_11_28/models/group_0057.py @@ -9,47 +9,164 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0056 import MinimalRepository +from .group_0003 import SimpleUser +from .group_0056 import SecurityAndAnalysis -class Thread(GitHubModel): - """Thread +class MinimalRepository(GitHubModel): + """Minimal Repository - Thread + Minimal Repository """ - id: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - subject: ThreadPropSubject = Field() - reason: str = Field() - unread: bool = Field() - updated_at: str = Field() - last_read_at: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: Missing[str] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: str = Field() + svn_url: Missing[str] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + size: Missing[int] = Field( + default=UNSET, + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", + ) + default_branch: Missing[str] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_discussions: Missing[bool] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + pushed_at: Missing[Union[datetime, None]] = Field(default=UNSET) + created_at: Missing[Union[datetime, None]] = Field(default=UNSET) + updated_at: Missing[Union[datetime, None]] = Field(default=UNSET) + permissions: Missing[MinimalRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + code_of_conduct: Missing[CodeOfConduct] = Field( + default=UNSET, title="Code Of Conduct", description="Code Of Conduct" + ) + license_: Missing[Union[MinimalRepositoryPropLicense, None]] = Field( + default=UNSET, alias="license" + ) + forks: Missing[int] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET + ) + +class CodeOfConduct(GitHubModel): + """Code Of Conduct -class ThreadPropSubject(GitHubModel): - """ThreadPropSubject""" + Code Of Conduct + """ - title: str = Field() + key: str = Field() + name: str = Field() url: str = Field() - latest_comment_url: str = Field() - type: str = Field() + body: Missing[str] = Field(default=UNSET) + html_url: Union[str, None] = Field() + + +class MinimalRepositoryPropPermissions(GitHubModel): + """MinimalRepositoryPropPermissions""" + + admin: Missing[bool] = Field(default=UNSET) + maintain: Missing[bool] = Field(default=UNSET) + push: Missing[bool] = Field(default=UNSET) + triage: Missing[bool] = Field(default=UNSET) + pull: Missing[bool] = Field(default=UNSET) + + +class MinimalRepositoryPropLicense(GitHubModel): + """MinimalRepositoryPropLicense""" + + key: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + spdx_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) -model_rebuild(Thread) -model_rebuild(ThreadPropSubject) +model_rebuild(MinimalRepository) +model_rebuild(CodeOfConduct) +model_rebuild(MinimalRepositoryPropPermissions) +model_rebuild(MinimalRepositoryPropLicense) __all__ = ( - "Thread", - "ThreadPropSubject", + "CodeOfConduct", + "MinimalRepository", + "MinimalRepositoryPropLicense", + "MinimalRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0058.py b/githubkit/versions/v2022_11_28/models/group_0058.py index 3f78547c4..a404c4a80 100644 --- a/githubkit/versions/v2022_11_28/models/group_0058.py +++ b/githubkit/versions/v2022_11_28/models/group_0058.py @@ -9,31 +9,47 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0057 import MinimalRepository -class ThreadSubscription(GitHubModel): - """Thread Subscription - Thread Subscription +class Thread(GitHubModel): + """Thread + + Thread """ - subscribed: bool = Field() - ignored: bool = Field() - reason: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() + id: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + subject: ThreadPropSubject = Field() + reason: str = Field() + unread: bool = Field() + updated_at: str = Field() + last_read_at: Union[str, None] = Field() + url: str = Field() + subscription_url: str = Field() + + +class ThreadPropSubject(GitHubModel): + """ThreadPropSubject""" + + title: str = Field() url: str = Field() - thread_url: Missing[str] = Field(default=UNSET) - repository_url: Missing[str] = Field(default=UNSET) + latest_comment_url: str = Field() + type: str = Field() -model_rebuild(ThreadSubscription) +model_rebuild(Thread) +model_rebuild(ThreadPropSubject) -__all__ = ("ThreadSubscription",) +__all__ = ( + "Thread", + "ThreadPropSubject", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0059.py b/githubkit/versions/v2022_11_28/models/group_0059.py index d86ab3170..3f78547c4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0059.py +++ b/githubkit/versions/v2022_11_28/models/group_0059.py @@ -9,33 +9,31 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrganizationSimple(GitHubModel): - """Organization Simple +class ThreadSubscription(GitHubModel): + """Thread Subscription - A GitHub organization. + Thread Subscription """ - login: str = Field() - id: int = Field() - node_id: str = Field() + subscribed: bool = Field() + ignored: bool = Field() + reason: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() + thread_url: Missing[str] = Field(default=UNSET) + repository_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrganizationSimple) +model_rebuild(ThreadSubscription) -__all__ = ("OrganizationSimple",) +__all__ = ("ThreadSubscription",) diff --git a/githubkit/versions/v2022_11_28/models/group_0060.py b/githubkit/versions/v2022_11_28/models/group_0060.py index 856ee3686..d86ab3170 100644 --- a/githubkit/versions/v2022_11_28/models/group_0060.py +++ b/githubkit/versions/v2022_11_28/models/group_0060.py @@ -9,55 +9,33 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class BillingUsageReport(GitHubModel): - """BillingUsageReport""" - - usage_items: Missing[list[BillingUsageReportPropUsageItemsItems]] = Field( - default=UNSET, alias="usageItems" - ) - - -class BillingUsageReportPropUsageItemsItems(GitHubModel): - """BillingUsageReportPropUsageItemsItems""" - - date: str = Field(description="Date of the usage line item.") - product: str = Field(description="Product name.") - sku: str = Field(description="SKU name.") - quantity: int = Field(description="Quantity of the usage line item.") - unit_type: str = Field( - alias="unitType", description="Unit type of the usage line item." - ) - price_per_unit: float = Field( - alias="pricePerUnit", description="Price per unit of the usage line item." - ) - gross_amount: float = Field( - alias="grossAmount", description="Gross amount of the usage line item." - ) - discount_amount: float = Field( - alias="discountAmount", description="Discount amount of the usage line item." - ) - net_amount: float = Field( - alias="netAmount", description="Net amount of the usage line item." - ) - organization_name: str = Field( - alias="organizationName", description="Name of the organization." - ) - repository_name: Missing[str] = Field( - default=UNSET, alias="repositoryName", description="Name of the repository." - ) - - -model_rebuild(BillingUsageReport) -model_rebuild(BillingUsageReportPropUsageItemsItems) - -__all__ = ( - "BillingUsageReport", - "BillingUsageReportPropUsageItemsItems", -) + + +class OrganizationSimple(GitHubModel): + """Organization Simple + + A GitHub organization. + """ + + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() + + +model_rebuild(OrganizationSimple) + +__all__ = ("OrganizationSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0061.py b/githubkit/versions/v2022_11_28/models/group_0061.py index ebb98c8af..856ee3686 100644 --- a/githubkit/versions/v2022_11_28/models/group_0061.py +++ b/githubkit/versions/v2022_11_28/models/group_0061.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,118 +16,48 @@ from githubkit.utils import UNSET -class OrganizationFull(GitHubModel): - """Organization Full - - Organization Full - """ +class BillingUsageReport(GitHubModel): + """BillingUsageReport""" - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - blog: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - is_verified: Missing[bool] = Field(default=UNSET) - has_organization_projects: bool = Field() - has_repository_projects: bool = Field() - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - html_url: str = Field() - type: str = Field() - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - private_gists: Missing[Union[int, None]] = Field(default=UNSET) - disk_usage: Missing[Union[int, None]] = Field(default=UNSET) - collaborators: Missing[Union[int, None]] = Field( - default=UNSET, - description="The number of collaborators on private repositories.\n\nThis field may be null if the number of private repositories is over 50,000.", - ) - billing_email: Missing[Union[str, None]] = Field(default=UNSET) - plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) - default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( - default=UNSET + usage_items: Missing[list[BillingUsageReportPropUsageItemsItems]] = Field( + default=UNSET, alias="usageItems" ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + + +class BillingUsageReportPropUsageItemsItems(GitHubModel): + """BillingUsageReportPropUsageItemsItems""" + + date: str = Field(description="Date of the usage line item.") + product: str = Field(description="Product name.") + sku: str = Field(description="SKU name.") + quantity: int = Field(description="Quantity of the usage line item.") + unit_type: str = Field( + alias="unitType", description="Unit type of the usage line item." ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + price_per_unit: float = Field( + alias="pricePerUnit", description="Price per unit of the usage line item." ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + gross_amount: float = Field( + alias="grossAmount", description="Gross amount of the usage line item." ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + discount_amount: float = Field( + alias="discountAmount", description="Discount amount of the usage line item." ) - secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", + net_amount: float = Field( + alias="netAmount", description="Net amount of the usage line item." ) - secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional URL string to display to contributors who are blocked from pushing a secret.", + organization_name: str = Field( + alias="organizationName", description="Name of the organization." ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() - deploy_keys_enabled_for_repositories: Missing[bool] = Field( - default=UNSET, - description="Controls whether or not deploy keys may be added and used for repositories in the organization.", + repository_name: Missing[str] = Field( + default=UNSET, alias="repositoryName", description="Name of the repository." ) -class OrganizationFullPropPlan(GitHubModel): - """OrganizationFullPropPlan""" - - name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) - - -model_rebuild(OrganizationFull) -model_rebuild(OrganizationFullPropPlan) +model_rebuild(BillingUsageReport) +model_rebuild(BillingUsageReportPropUsageItemsItems) __all__ = ( - "OrganizationFull", - "OrganizationFullPropPlan", + "BillingUsageReport", + "BillingUsageReportPropUsageItemsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0062.py b/githubkit/versions/v2022_11_28/models/group_0062.py index 0faeb8276..ebb98c8af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0062.py +++ b/githubkit/versions/v2022_11_28/models/group_0062.py @@ -9,22 +9,128 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class OrganizationFull(GitHubModel): + """Organization Full -class ActionsCacheUsageOrgEnterprise(GitHubModel): - """ActionsCacheUsageOrgEnterprise""" + Organization Full + """ - total_active_caches_count: int = Field( - description="The count of active caches across all repositories of an enterprise or an organization." + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + blog: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + is_verified: Missing[bool] = Field(default=UNSET) + has_organization_projects: bool = Field() + has_repository_projects: bool = Field() + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + html_url: str = Field() + type: str = Field() + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + private_gists: Missing[Union[int, None]] = Field(default=UNSET) + disk_usage: Missing[Union[int, None]] = Field(default=UNSET) + collaborators: Missing[Union[int, None]] = Field( + default=UNSET, + description="The number of collaborators on private repositories.\n\nThis field may be null if the number of private repositories is over 50,000.", + ) + billing_email: Missing[Union[str, None]] = Field(default=UNSET) + plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) + default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET + ) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) - total_active_caches_size_in_bytes: int = Field( - description="The total size in bytes of all active cache items across all repositories of an enterprise or an organization." + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", + ) + secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional URL string to display to contributors who are blocked from pushing a secret.", + ) + created_at: datetime = Field() + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() + deploy_keys_enabled_for_repositories: Missing[bool] = Field( + default=UNSET, + description="Controls whether or not deploy keys may be added and used for repositories in the organization.", + ) + + +class OrganizationFullPropPlan(GitHubModel): + """OrganizationFullPropPlan""" + + name: str = Field() + space: int = Field() + private_repos: int = Field() + filled_seats: Missing[int] = Field(default=UNSET) + seats: Missing[int] = Field(default=UNSET) -model_rebuild(ActionsCacheUsageOrgEnterprise) +model_rebuild(OrganizationFull) +model_rebuild(OrganizationFullPropPlan) -__all__ = ("ActionsCacheUsageOrgEnterprise",) +__all__ = ( + "OrganizationFull", + "OrganizationFullPropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0063.py b/githubkit/versions/v2022_11_28/models/group_0063.py index e3255a143..0faeb8276 100644 --- a/githubkit/versions/v2022_11_28/models/group_0063.py +++ b/githubkit/versions/v2022_11_28/models/group_0063.py @@ -14,17 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class OidcCustomSub(GitHubModel): - """Actions OIDC Subject customization +class ActionsCacheUsageOrgEnterprise(GitHubModel): + """ActionsCacheUsageOrgEnterprise""" - Actions OIDC Subject customization - """ - - include_claim_keys: list[str] = Field( - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." + total_active_caches_count: int = Field( + description="The count of active caches across all repositories of an enterprise or an organization." + ) + total_active_caches_size_in_bytes: int = Field( + description="The total size in bytes of all active cache items across all repositories of an enterprise or an organization." ) -model_rebuild(OidcCustomSub) +model_rebuild(ActionsCacheUsageOrgEnterprise) -__all__ = ("OidcCustomSub",) +__all__ = ("ActionsCacheUsageOrgEnterprise",) diff --git a/githubkit/versions/v2022_11_28/models/group_0064.py b/githubkit/versions/v2022_11_28/models/group_0064.py index 3efa01ac1..76b6d2db7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0064.py +++ b/githubkit/versions/v2022_11_28/models/group_0064.py @@ -9,35 +9,27 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ActionsOrganizationPermissions(GitHubModel): - """ActionsOrganizationPermissions""" +class ActionsHostedRunnerMachineSpec(GitHubModel): + """Github-owned VM details. - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." - ) - selected_repositories_url: Missing[str] = Field( - default=UNSET, - description="The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`.", - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + Provides details of a particular machine spec. + """ + + id: str = Field( + description="The ID used for the `size` parameter when creating a new runner." ) - selected_actions_url: Missing[str] = Field( - default=UNSET, - description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", + cpu_cores: int = Field(description="The number of cores.") + memory_gb: int = Field(description="The available RAM for the machine spec.") + storage_gb: int = Field( + description="The available SSD storage for the machine spec." ) -model_rebuild(ActionsOrganizationPermissions) +model_rebuild(ActionsHostedRunnerMachineSpec) -__all__ = ("ActionsOrganizationPermissions",) +__all__ = ("ActionsHostedRunnerMachineSpec",) diff --git a/githubkit/versions/v2022_11_28/models/group_0065.py b/githubkit/versions/v2022_11_28/models/group_0065.py index 00b241299..6640035fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0065.py +++ b/githubkit/versions/v2022_11_28/models/group_0065.py @@ -9,30 +9,96 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0064 import ActionsHostedRunnerMachineSpec + + +class ActionsHostedRunner(GitHubModel): + """GitHub-hosted hosted runner -class SelectedActions(GitHubModel): - """SelectedActions""" + A Github-hosted hosted runner. + """ - github_owned_allowed: Missing[bool] = Field( + id: int = Field(description="The unique identifier of the hosted runner.") + name: str = Field(description="The name of the hosted runner.") + runner_group_id: Missing[int] = Field( default=UNSET, - description="Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.", + description="The unique identifier of the group that the hosted runner belongs to.", ) - verified_allowed: Missing[bool] = Field( + image_details: Union[None, ActionsHostedRunnerPoolImage] = Field() + machine_size_details: ActionsHostedRunnerMachineSpec = Field( + title="Github-owned VM details.", + description="Provides details of a particular machine spec.", + ) + status: Literal["Ready", "Provisioning", "Shutdown", "Deleting", "Stuck"] = Field( + description="The status of the runner." + ) + platform: str = Field(description="The operating system of the image.") + maximum_runners: Missing[int] = Field( default=UNSET, - description="Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.", + description="The maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost.", + ) + public_ip_enabled: bool = Field( + description="Whether public IP is enabled for the hosted runners." ) - patterns_allowed: Missing[list[str]] = Field( + public_ips: Missing[list[PublicIp]] = Field( default=UNSET, - description="Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\n\n> [!NOTE]\n> The `patterns_allowed` setting only applies to public repositories.", + description="The public IP ranges when public IP is enabled for the hosted runners.", + ) + last_active_on: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time at which the runner was last used, in ISO 8601 format.", + ) + + +class ActionsHostedRunnerPoolImage(GitHubModel): + """GitHub-hosted runner image details. + + Provides details of a hosted runner image + """ + + id: str = Field( + description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner." + ) + size_gb: int = Field(description="Image size in GB.") + display_name: str = Field(description="Display name for this image.") + source: Literal["github", "partner", "custom"] = Field( + description="The image provider." + ) + version: str = Field(description="The image version of the hosted runner pool.") + + +class PublicIp(GitHubModel): + """Public IP for a GitHub-hosted larger runners. + + Provides details of Public IP for a GitHub-hosted larger runners + """ + + enabled: Missing[bool] = Field( + default=UNSET, description="Whether public IP is enabled." + ) + prefix: Missing[str] = Field( + default=UNSET, description="The prefix for the public IP." + ) + length: Missing[int] = Field( + default=UNSET, description="The length of the IP prefix." ) -model_rebuild(SelectedActions) +model_rebuild(ActionsHostedRunner) +model_rebuild(ActionsHostedRunnerPoolImage) +model_rebuild(PublicIp) -__all__ = ("SelectedActions",) +__all__ = ( + "ActionsHostedRunner", + "ActionsHostedRunnerPoolImage", + "PublicIp", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0066.py b/githubkit/versions/v2022_11_28/models/group_0066.py index 0ec430210..c1d2acd07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0066.py +++ b/githubkit/versions/v2022_11_28/models/group_0066.py @@ -16,17 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ActionsGetDefaultWorkflowPermissions(GitHubModel): - """ActionsGetDefaultWorkflowPermissions""" +class ActionsHostedRunnerImage(GitHubModel): + """GitHub-hosted runner image details. - default_workflow_permissions: Literal["read", "write"] = Field( - description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows." + Provides details of a hosted runner image + """ + + id: str = Field( + description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner." ) - can_approve_pull_request_reviews: bool = Field( - description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk." + platform: str = Field(description="The operating system of the image.") + size_gb: int = Field(description="Image size in GB.") + display_name: str = Field(description="Display name for this image.") + source: Literal["github", "partner", "custom"] = Field( + description="The image provider." ) -model_rebuild(ActionsGetDefaultWorkflowPermissions) +model_rebuild(ActionsHostedRunnerImage) -__all__ = ("ActionsGetDefaultWorkflowPermissions",) +__all__ = ("ActionsHostedRunnerImage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0067.py b/githubkit/versions/v2022_11_28/models/group_0067.py index b91f2faf0..423e6714f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0067.py +++ b/githubkit/versions/v2022_11_28/models/group_0067.py @@ -9,28 +9,38 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ActionsSetDefaultWorkflowPermissions(GitHubModel): - """ActionsSetDefaultWorkflowPermissions""" +class ActionsHostedRunnerLimits(GitHubModel): + """ActionsHostedRunnerLimits""" + + public_ips: ActionsHostedRunnerLimitsPropPublicIps = Field( + title="Static public IP Limits for GitHub-hosted Hosted Runners.", + description="Provides details of static public IP limits for GitHub-hosted Hosted Runners", + ) + + +class ActionsHostedRunnerLimitsPropPublicIps(GitHubModel): + """Static public IP Limits for GitHub-hosted Hosted Runners. + + Provides details of static public IP limits for GitHub-hosted Hosted Runners + """ - default_workflow_permissions: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows.", + maximum: int = Field( + description="The maximum number of static public IP addresses that can be used for Hosted Runners." ) - can_approve_pull_request_reviews: Missing[bool] = Field( - default=UNSET, - description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.", + current_usage: int = Field( + description="The current number of static public IP addresses in use by Hosted Runners." ) -model_rebuild(ActionsSetDefaultWorkflowPermissions) +model_rebuild(ActionsHostedRunnerLimits) +model_rebuild(ActionsHostedRunnerLimitsPropPublicIps) -__all__ = ("ActionsSetDefaultWorkflowPermissions",) +__all__ = ( + "ActionsHostedRunnerLimits", + "ActionsHostedRunnerLimitsPropPublicIps", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0068.py b/githubkit/versions/v2022_11_28/models/group_0068.py index 305c99aaa..e3255a143 100644 --- a/githubkit/versions/v2022_11_28/models/group_0068.py +++ b/githubkit/versions/v2022_11_28/models/group_0068.py @@ -9,31 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RunnerLabel(GitHubModel): - """Self hosted runner label +class OidcCustomSub(GitHubModel): + """Actions OIDC Subject customization - A label for a self hosted runner + Actions OIDC Subject customization """ - id: Missing[int] = Field( - default=UNSET, description="Unique identifier of the label." - ) - name: str = Field(description="Name of the label.") - type: Missing[Literal["read-only", "custom"]] = Field( - default=UNSET, - description="The type of label. Read-only labels are applied automatically when the runner is configured.", + include_claim_keys: list[str] = Field( + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." ) -model_rebuild(RunnerLabel) +model_rebuild(OidcCustomSub) -__all__ = ("RunnerLabel",) +__all__ = ("OidcCustomSub",) diff --git a/githubkit/versions/v2022_11_28/models/group_0069.py b/githubkit/versions/v2022_11_28/models/group_0069.py index ea3e5994c..3efa01ac1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0069.py +++ b/githubkit/versions/v2022_11_28/models/group_0069.py @@ -9,32 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0068 import RunnerLabel - - -class Runner(GitHubModel): - """Self hosted runners - A self hosted runner - """ +class ActionsOrganizationPermissions(GitHubModel): + """ActionsOrganizationPermissions""" - id: int = Field(description="The id of the runner.") - runner_group_id: Missing[int] = Field( - default=UNSET, description="The id of the runner group." + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." + ) + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`.", + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + ) + selected_actions_url: Missing[str] = Field( + default=UNSET, + description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", ) - name: str = Field(description="The name of the runner.") - os: str = Field(description="The Operating System of the runner.") - status: str = Field(description="The status of the runner.") - busy: bool = Field() - labels: list[RunnerLabel] = Field() -model_rebuild(Runner) +model_rebuild(ActionsOrganizationPermissions) -__all__ = ("Runner",) +__all__ = ("ActionsOrganizationPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0070.py b/githubkit/versions/v2022_11_28/models/group_0070.py index c4eff90af..00b241299 100644 --- a/githubkit/versions/v2022_11_28/models/group_0070.py +++ b/githubkit/versions/v2022_11_28/models/group_0070.py @@ -16,23 +16,23 @@ from githubkit.utils import UNSET -class RunnerApplication(GitHubModel): - """Runner Application +class SelectedActions(GitHubModel): + """SelectedActions""" - Runner Application - """ - - os: str = Field() - architecture: str = Field() - download_url: str = Field() - filename: str = Field() - temp_download_token: Missing[str] = Field( + github_owned_allowed: Missing[bool] = Field( + default=UNSET, + description="Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.", + ) + verified_allowed: Missing[bool] = Field( + default=UNSET, + description="Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.", + ) + patterns_allowed: Missing[list[str]] = Field( default=UNSET, - description="A short lived bearer token used to download the runner, if needed.", + description="Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\n\n> [!NOTE]\n> The `patterns_allowed` setting only applies to public repositories.", ) - sha256_checksum: Missing[str] = Field(default=UNSET) -model_rebuild(RunnerApplication) +model_rebuild(SelectedActions) -__all__ = ("RunnerApplication",) +__all__ = ("SelectedActions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0071.py b/githubkit/versions/v2022_11_28/models/group_0071.py index d559f3196..0ec430210 100644 --- a/githubkit/versions/v2022_11_28/models/group_0071.py +++ b/githubkit/versions/v2022_11_28/models/group_0071.py @@ -9,49 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0019 import Repository +class ActionsGetDefaultWorkflowPermissions(GitHubModel): + """ActionsGetDefaultWorkflowPermissions""" -class AuthenticationToken(GitHubModel): - """Authentication Token - - Authentication Token - """ - - token: str = Field(description="The token used for authentication") - expires_at: datetime = Field(description="The time this token expires") - permissions: Missing[AuthenticationTokenPropPermissions] = Field(default=UNSET) - repositories: Missing[list[Repository]] = Field( - default=UNSET, description="The repositories this token has access to" + default_workflow_permissions: Literal["read", "write"] = Field( + description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows." ) - single_file: Missing[Union[str, None]] = Field(default=UNSET) - repository_selection: Missing[Literal["all", "selected"]] = Field( - default=UNSET, - description="Describe whether all repositories have been selected or there's a selection involved", + can_approve_pull_request_reviews: bool = Field( + description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk." ) -class AuthenticationTokenPropPermissions(GitHubModel): - """AuthenticationTokenPropPermissions - - Examples: - {'issues': 'read', 'deployments': 'write'} - """ - - -model_rebuild(AuthenticationToken) -model_rebuild(AuthenticationTokenPropPermissions) +model_rebuild(ActionsGetDefaultWorkflowPermissions) -__all__ = ( - "AuthenticationToken", - "AuthenticationTokenPropPermissions", -) +__all__ = ("ActionsGetDefaultWorkflowPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0072.py b/githubkit/versions/v2022_11_28/models/group_0072.py index 9d8938959..b91f2faf0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0072.py +++ b/githubkit/versions/v2022_11_28/models/group_0072.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,20 +18,19 @@ from githubkit.utils import UNSET -class ActionsPublicKey(GitHubModel): - """ActionsPublicKey - - The public key used for setting Actions Secrets. - """ +class ActionsSetDefaultWorkflowPermissions(GitHubModel): + """ActionsSetDefaultWorkflowPermissions""" - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - id: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) + default_workflow_permissions: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows.", + ) + can_approve_pull_request_reviews: Missing[bool] = Field( + default=UNSET, + description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.", + ) -model_rebuild(ActionsPublicKey) +model_rebuild(ActionsSetDefaultWorkflowPermissions) -__all__ = ("ActionsPublicKey",) +__all__ = ("ActionsSetDefaultWorkflowPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0073.py b/githubkit/versions/v2022_11_28/models/group_0073.py index 7aa158d05..305c99aaa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0073.py +++ b/githubkit/versions/v2022_11_28/models/group_0073.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,43 +18,22 @@ from githubkit.utils import UNSET -class CodeScanningAlertRuleSummary(GitHubModel): - """CodeScanningAlertRuleSummary""" +class RunnerLabel(GitHubModel): + """Self hosted runner label - id: Missing[Union[str, None]] = Field( - default=UNSET, - description="A unique identifier for the rule used to detect the alert.", - ) - name: Missing[str] = Field( - default=UNSET, description="The name of the rule used to detect the alert." - ) - severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( - default=UNSET, description="The severity of the alert." - ) - security_severity_level: Missing[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] = Field(default=UNSET, description="The security severity of the alert.") - description: Missing[str] = Field( - default=UNSET, - description="A short description of the rule used to detect the alert.", - ) - full_description: Missing[str] = Field( - default=UNSET, description="A description of the rule used to detect the alert." - ) - tags: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A set of tags applicable for the rule." - ) - help_: Missing[Union[str, None]] = Field( - default=UNSET, - alias="help", - description="Detailed documentation for the rule as GitHub Flavored Markdown.", + A label for a self hosted runner + """ + + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the label." ) - help_uri: Missing[Union[str, None]] = Field( + name: str = Field(description="Name of the label.") + type: Missing[Literal["read-only", "custom"]] = Field( default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", + description="The type of label. Read-only labels are applied automatically when the runner is configured.", ) -model_rebuild(CodeScanningAlertRuleSummary) +model_rebuild(RunnerLabel) -__all__ = ("CodeScanningAlertRuleSummary",) +__all__ = ("RunnerLabel",) diff --git a/githubkit/versions/v2022_11_28/models/group_0074.py b/githubkit/versions/v2022_11_28/models/group_0074.py index f49c4a62a..3b873b734 100644 --- a/githubkit/versions/v2022_11_28/models/group_0074.py +++ b/githubkit/versions/v2022_11_28/models/group_0074.py @@ -9,32 +9,32 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0073 import RunnerLabel -class CodeScanningAnalysisTool(GitHubModel): - """CodeScanningAnalysisTool""" - name: Missing[str] = Field( - default=UNSET, - description="The name of the tool used to generate the code scanning analysis.", - ) - version: Missing[Union[str, None]] = Field( - default=UNSET, - description="The version of the tool used to generate the code scanning analysis.", - ) - guid: Missing[Union[str, None]] = Field( - default=UNSET, - description="The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data.", +class Runner(GitHubModel): + """Self hosted runners + + A self hosted runner + """ + + id: int = Field(description="The id of the runner.") + runner_group_id: Missing[int] = Field( + default=UNSET, description="The id of the runner group." ) + name: str = Field(description="The name of the runner.") + os: str = Field(description="The Operating System of the runner.") + status: str = Field(description="The status of the runner.") + busy: bool = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(CodeScanningAnalysisTool) +model_rebuild(Runner) -__all__ = ("CodeScanningAnalysisTool",) +__all__ = ("Runner",) diff --git a/githubkit/versions/v2022_11_28/models/group_0075.py b/githubkit/versions/v2022_11_28/models/group_0075.py index 96f2e8baa..c4eff90af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0075.py +++ b/githubkit/versions/v2022_11_28/models/group_0075.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,67 +16,23 @@ from githubkit.utils import UNSET -class CodeScanningAlertInstance(GitHubModel): - """CodeScanningAlertInstance""" +class RunnerApplication(GitHubModel): + """Runner Application - ref: Missing[str] = Field( - default=UNSET, - description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``.", - ) - analysis_key: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed.", - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", - ) - state: Missing[Union[None, Literal["open", "dismissed", "fixed"]]] = Field( - default=UNSET, description="State of a code scanning alert." - ) - commit_sha: Missing[str] = Field(default=UNSET) - message: Missing[CodeScanningAlertInstancePropMessage] = Field(default=UNSET) - location: Missing[CodeScanningAlertLocation] = Field( - default=UNSET, description="Describe a region within a file for the alert." - ) - html_url: Missing[str] = Field(default=UNSET) - classifications: Missing[ - list[Union[None, Literal["source", "generated", "test", "library"]]] - ] = Field( - default=UNSET, - description="Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file.", - ) - - -class CodeScanningAlertLocation(GitHubModel): - """CodeScanningAlertLocation - - Describe a region within a file for the alert. + Runner Application """ - path: Missing[str] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - end_column: Missing[int] = Field(default=UNSET) - - -class CodeScanningAlertInstancePropMessage(GitHubModel): - """CodeScanningAlertInstancePropMessage""" - - text: Missing[str] = Field(default=UNSET) + os: str = Field() + architecture: str = Field() + download_url: str = Field() + filename: str = Field() + temp_download_token: Missing[str] = Field( + default=UNSET, + description="A short lived bearer token used to download the runner, if needed.", + ) + sha256_checksum: Missing[str] = Field(default=UNSET) -model_rebuild(CodeScanningAlertInstance) -model_rebuild(CodeScanningAlertLocation) -model_rebuild(CodeScanningAlertInstancePropMessage) +model_rebuild(RunnerApplication) -__all__ = ( - "CodeScanningAlertInstance", - "CodeScanningAlertInstancePropMessage", - "CodeScanningAlertLocation", -) +__all__ = ("RunnerApplication",) diff --git a/githubkit/versions/v2022_11_28/models/group_0076.py b/githubkit/versions/v2022_11_28/models/group_0076.py index 7257cdbd9..bb8ab2b85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0076.py +++ b/githubkit/versions/v2022_11_28/models/group_0076.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,59 +18,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0030 import SimpleRepository -from .group_0073 import CodeScanningAlertRuleSummary -from .group_0074 import CodeScanningAnalysisTool -from .group_0075 import CodeScanningAlertInstance +from .group_0020 import Repository -class CodeScanningOrganizationAlertItems(GitHubModel): - """CodeScanningOrganizationAlertItems""" +class AuthenticationToken(GitHubModel): + """Authentication Token - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." - ) - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert." + Authentication Token + """ + + token: str = Field(description="The token used for authentication") + expires_at: datetime = Field(description="The time this token expires") + permissions: Missing[AuthenticationTokenPropPermissions] = Field(default=UNSET) + repositories: Missing[list[Repository]] = Field( + default=UNSET, description="The repositories this token has access to" ) - fixed_at: Missing[Union[datetime, None]] = Field( + single_file: Missing[Union[str, None]] = Field(default=UNSET) + repository_selection: Missing[Literal["all", "selected"]] = Field( default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - rule: CodeScanningAlertRuleSummary = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." + description="Describe whether all repositories have been selected or there's a selection involved", ) -model_rebuild(CodeScanningOrganizationAlertItems) +class AuthenticationTokenPropPermissions(GitHubModel): + """AuthenticationTokenPropPermissions + + Examples: + {'issues': 'read', 'deployments': 'write'} + """ + + +model_rebuild(AuthenticationToken) +model_rebuild(AuthenticationTokenPropPermissions) -__all__ = ("CodeScanningOrganizationAlertItems",) +__all__ = ( + "AuthenticationToken", + "AuthenticationTokenPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0077.py b/githubkit/versions/v2022_11_28/models/group_0077.py index db250979c..9d8938959 100644 --- a/githubkit/versions/v2022_11_28/models/group_0077.py +++ b/githubkit/versions/v2022_11_28/models/group_0077.py @@ -9,36 +9,27 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodespaceMachine(GitHubModel): - """Codespace machine +class ActionsPublicKey(GitHubModel): + """ActionsPublicKey - A description of the machine powering a codespace. + The public key used for setting Actions Secrets. """ - name: str = Field(description="The name of the machine.") - display_name: str = Field( - description="The display name of the machine includes cores, memory, and storage." - ) - operating_system: str = Field(description="The operating system of the machine.") - storage_in_bytes: int = Field( - description="How much storage is available to the codespace." - ) - memory_in_bytes: int = Field( - description="How much memory is available to the codespace." - ) - cpus: int = Field(description="How many cores are available to the codespace.") - prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field( - description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' - ) - - -model_rebuild(CodespaceMachine) - -__all__ = ("CodespaceMachine",) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") + id: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + + +model_rebuild(ActionsPublicKey) + +__all__ = ("ActionsPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0078.py b/githubkit/versions/v2022_11_28/models/group_0078.py index 5461870c4..7aa158d05 100644 --- a/githubkit/versions/v2022_11_28/models/group_0078.py +++ b/githubkit/versions/v2022_11_28/models/group_0078.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,157 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0056 import MinimalRepository -from .group_0077 import CodespaceMachine +class CodeScanningAlertRuleSummary(GitHubModel): + """CodeScanningAlertRuleSummary""" -class Codespace(GitHubModel): - """Codespace - - A codespace. - """ - - id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( - default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", - ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespacePropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." - ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." - ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." - ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( + id: Missing[Union[str, None]] = Field( default=UNSET, - description="API URL to publish this codespace to a new repository.", + description="A unique identifier for the rule used to detect the alert.", ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." + name: Missing[str] = Field( + default=UNSET, description="The name of the rule used to detect the alert." ) - recent_folders: list[str] = Field() - runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", + severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( + default=UNSET, description="The severity of the alert." ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( + security_severity_level: Missing[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] = Field(default=UNSET, description="The security severity of the alert.") + description: Missing[str] = Field( default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", + description="A short description of the rule used to detect the alert.", ) - idle_timeout_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + full_description: Missing[str] = Field( + default=UNSET, description="A description of the rule used to detect the alert." ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + tags: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A set of tags applicable for the rule." ) - retention_expires_at: Missing[Union[datetime, None]] = Field( + help_: Missing[Union[str, None]] = Field( default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', + alias="help", + description="Detailed documentation for the rule as GitHub Flavored Markdown.", ) - last_known_stop_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="The text to display to a user when a codespace has been stopped for a potentially actionable reason.", - ) - - -class CodespacePropGitStatus(GitHubModel): - """CodespacePropGitStatus - - Details about the codespace's git repository. - """ - - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", - ) - - -class CodespacePropRuntimeConstraints(GitHubModel): - """CodespacePropRuntimeConstraints""" - - allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( + help_uri: Missing[Union[str, None]] = Field( default=UNSET, - description="The privacy settings a user can select from when forwarding a port.", + description="A link to the documentation for the rule used to detect the alert.", ) -model_rebuild(Codespace) -model_rebuild(CodespacePropGitStatus) -model_rebuild(CodespacePropRuntimeConstraints) +model_rebuild(CodeScanningAlertRuleSummary) -__all__ = ( - "Codespace", - "CodespacePropGitStatus", - "CodespacePropRuntimeConstraints", -) +__all__ = ("CodeScanningAlertRuleSummary",) diff --git a/githubkit/versions/v2022_11_28/models/group_0079.py b/githubkit/versions/v2022_11_28/models/group_0079.py index 1a40b558a..f49c4a62a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0079.py +++ b/githubkit/versions/v2022_11_28/models/group_0079.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,20 +18,23 @@ from githubkit.utils import UNSET -class CodespacesPublicKey(GitHubModel): - """CodespacesPublicKey - - The public key used for setting Codespaces secrets. - """ +class CodeScanningAnalysisTool(GitHubModel): + """CodeScanningAnalysisTool""" - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - id: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, + description="The name of the tool used to generate the code scanning analysis.", + ) + version: Missing[Union[str, None]] = Field( + default=UNSET, + description="The version of the tool used to generate the code scanning analysis.", + ) + guid: Missing[Union[str, None]] = Field( + default=UNSET, + description="The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data.", + ) -model_rebuild(CodespacesPublicKey) +model_rebuild(CodeScanningAnalysisTool) -__all__ = ("CodespacesPublicKey",) +__all__ = ("CodeScanningAnalysisTool",) diff --git a/githubkit/versions/v2022_11_28/models/group_0080.py b/githubkit/versions/v2022_11_28/models/group_0080.py index 063a394c8..96f2e8baa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0080.py +++ b/githubkit/versions/v2022_11_28/models/group_0080.py @@ -9,87 +9,76 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class CopilotOrganizationDetails(ExtraGitHubModel): - """Copilot Organization Details +class CodeScanningAlertInstance(GitHubModel): + """CodeScanningAlertInstance""" - Information about the seat breakdown and policies set for an organization with a - Copilot Business or Copilot Enterprise subscription. - """ - - seat_breakdown: CopilotSeatBreakdown = Field( - title="Copilot Business Seat Breakdown", - description="The breakdown of Copilot Business seats for the organization.", - ) - public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] = ( - Field( - description="The organization policy for allowing or disallowing Copilot to make suggestions that match public code." - ) + ref: Missing[str] = Field( + default=UNSET, + description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``.", ) - ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + analysis_key: Missing[str] = Field( default=UNSET, - description="The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.", + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.", ) - platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + environment: Missing[str] = Field( default=UNSET, - description="The organization policy for allowing or disallowing organization members to use Copilot features within github.com.", + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed.", ) - cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + category: Missing[str] = Field( default=UNSET, - description="The organization policy for allowing or disallowing organization members to use Copilot within their CLI.", + description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", + ) + state: Missing[Union[None, Literal["open", "dismissed", "fixed"]]] = Field( + default=UNSET, description="State of a code scanning alert." ) - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" - ] = Field(description="The mode of assigning new seats.") - plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( + commit_sha: Missing[str] = Field(default=UNSET) + message: Missing[CodeScanningAlertInstancePropMessage] = Field(default=UNSET) + location: Missing[CodeScanningAlertLocation] = Field( + default=UNSET, description="Describe a region within a file for the alert." + ) + html_url: Missing[str] = Field(default=UNSET) + classifications: Missing[ + list[Union[None, Literal["source", "generated", "test", "library"]]] + ] = Field( default=UNSET, - description="The Copilot plan of the organization, or the parent enterprise, when applicable.", + description="Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file.", ) -class CopilotSeatBreakdown(GitHubModel): - """Copilot Business Seat Breakdown +class CodeScanningAlertLocation(GitHubModel): + """CodeScanningAlertLocation - The breakdown of Copilot Business seats for the organization. + Describe a region within a file for the alert. """ - total: Missing[int] = Field( - default=UNSET, - description="The total number of seats being billed for the organization as of the current billing cycle.", - ) - added_this_cycle: Missing[int] = Field( - default=UNSET, description="Seats added during the current billing cycle." - ) - pending_cancellation: Missing[int] = Field( - default=UNSET, - description="The number of seats that are pending cancellation at the end of the current billing cycle.", - ) - pending_invitation: Missing[int] = Field( - default=UNSET, - description="The number of seats that have been assigned to users that have not yet accepted an invitation to this organization.", - ) - active_this_cycle: Missing[int] = Field( - default=UNSET, - description="The number of seats that have used Copilot during the current billing cycle.", - ) - inactive_this_cycle: Missing[int] = Field( - default=UNSET, - description="The number of seats that have not used Copilot during the current billing cycle.", - ) + path: Missing[str] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + end_column: Missing[int] = Field(default=UNSET) + + +class CodeScanningAlertInstancePropMessage(GitHubModel): + """CodeScanningAlertInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) -model_rebuild(CopilotOrganizationDetails) -model_rebuild(CopilotSeatBreakdown) +model_rebuild(CodeScanningAlertInstance) +model_rebuild(CodeScanningAlertLocation) +model_rebuild(CodeScanningAlertInstancePropMessage) __all__ = ( - "CopilotOrganizationDetails", - "CopilotSeatBreakdown", + "CodeScanningAlertInstance", + "CodeScanningAlertInstancePropMessage", + "CodeScanningAlertLocation", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0081.py b/githubkit/versions/v2022_11_28/models/group_0081.py index 51fd6a419..7fc91633c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0081.py +++ b/githubkit/versions/v2022_11_28/models/group_0081.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,37 +18,59 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0031 import SimpleRepository +from .group_0078 import CodeScanningAlertRuleSummary +from .group_0079 import CodeScanningAnalysisTool +from .group_0080 import CodeScanningAlertInstance -class TeamSimple(GitHubModel): - """Team Simple - Groups of organization members that gives permissions on specified repositories. - """ +class CodeScanningOrganizationAlertItems(GitHubModel): + """CodeScanningOrganizationAlertItems""" - id: int = Field(description="Unique identifier of the team") - node_id: str = Field() - url: str = Field(description="URL for the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - description: Union[str, None] = Field(description="Description of the team") - permission: str = Field( - description="Permission that the team will have for its repositories" + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - privacy: Missing[str] = Field( - default=UNSET, description="The level of privacy this team should have" + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." ) - notification_setting: Missing[str] = Field( - default=UNSET, description="The notification setting the team has set" + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." ) - html_url: str = Field() - repositories_url: str = Field() - slug: str = Field() - ldap_dn: Missing[str] = Field( + fixed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Distinguished Name (DN) that team maps to within LDAP environment", + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." ) -model_rebuild(TeamSimple) +model_rebuild(CodeScanningOrganizationAlertItems) -__all__ = ("TeamSimple",) +__all__ = ("CodeScanningOrganizationAlertItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0082.py b/githubkit/versions/v2022_11_28/models/group_0082.py index ae33dc40a..db250979c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0082.py +++ b/githubkit/versions/v2022_11_28/models/group_0082.py @@ -9,53 +9,36 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0081 import TeamSimple +class CodespaceMachine(GitHubModel): + """Codespace machine -class Team(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. + A description of the machine powering a codespace. """ - id: int = Field() - node_id: str = Field() - name: str = Field() - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[str] = Field(default=UNSET) - notification_setting: Missing[str] = Field(default=UNSET) - permission: str = Field() - permissions: Missing[TeamPropPermissions] = Field(default=UNSET) - url: str = Field() - html_url: str = Field() - members_url: str = Field() - repositories_url: str = Field() - parent: Union[None, TeamSimple] = Field() - - -class TeamPropPermissions(GitHubModel): - """TeamPropPermissions""" - - pull: bool = Field() - triage: bool = Field() - push: bool = Field() - maintain: bool = Field() - admin: bool = Field() - - -model_rebuild(Team) -model_rebuild(TeamPropPermissions) - -__all__ = ( - "Team", - "TeamPropPermissions", -) + name: str = Field(description="The name of the machine.") + display_name: str = Field( + description="The display name of the machine includes cores, memory, and storage." + ) + operating_system: str = Field(description="The operating system of the machine.") + storage_in_bytes: int = Field( + description="How much storage is available to the codespace." + ) + memory_in_bytes: int = Field( + description="How much memory is available to the codespace." + ) + cpus: int = Field(description="How many cores are available to the codespace.") + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field( + description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' + ) + + +model_rebuild(CodespaceMachine) + +__all__ = ("CodespaceMachine",) diff --git a/githubkit/versions/v2022_11_28/models/group_0083.py b/githubkit/versions/v2022_11_28/models/group_0083.py index e1335ca15..456d489a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0083.py +++ b/githubkit/versions/v2022_11_28/models/group_0083.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import date, datetime +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,84 +18,157 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0059 import OrganizationSimple -from .group_0082 import Team +from .group_0003 import SimpleUser +from .group_0057 import MinimalRepository +from .group_0082 import CodespaceMachine -class CopilotSeatDetails(GitHubModel): - """Copilot Business Seat Detail +class Codespace(GitHubModel): + """Codespace - Information about a Copilot Business seat assignment for a user, team, or - organization. + A codespace. """ - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - organization: Missing[Union[None, OrganizationSimple]] = Field(default=UNSET) - assigning_team: Missing[Union[Team, EnterpriseTeam, None]] = Field( + id: int = Field() + name: str = Field(description="Automatically generated name of this codespace.") + display_name: Missing[Union[str, None]] = Field( + default=UNSET, description="Display name for this codespace." + ) + environment_id: Union[str, None] = Field( + description="UUID identifying this codespace's environment." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + billable_owner: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + machine: Union[None, CodespaceMachine] = Field() + devcontainer_path: Missing[Union[str, None]] = Field( default=UNSET, - description="The team through which the assignee is granted access to GitHub Copilot, if applicable.", + description="Path to devcontainer.json from repo root used to create Codespace.", + ) + prebuild: Union[bool, None] = Field( + description="Whether the codespace was created from a prebuild." ) - pending_cancellation_date: Missing[Union[date, None]] = Field( + created_at: datetime = Field() + updated_at: datetime = Field() + last_used_at: datetime = Field( + description="Last known time this codespace was started." + ) + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] = Field(description="State of this codespace.") + url: str = Field(description="API URL for this codespace.") + git_status: CodespacePropGitStatus = Field( + description="Details about the codespace's git repository." + ) + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( + description="The initally assigned location of a new codespace." + ) + idle_timeout_minutes: Union[int, None] = Field( + description="The number of minutes of inactivity after which this codespace will be automatically stopped." + ) + web_url: str = Field(description="URL to access this codespace on the web.") + machines_url: str = Field( + description="API URL to access available alternate machine types for this codespace." + ) + start_url: str = Field(description="API URL to start this codespace.") + stop_url: str = Field(description="API URL to stop this codespace.") + publish_url: Missing[Union[str, None]] = Field( default=UNSET, - description="The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.", + description="API URL to publish this codespace to a new repository.", + ) + pulls_url: Union[str, None] = Field( + description="API URL for the Pull Request associated with this codespace, if any." ) - last_activity_at: Missing[Union[datetime, None]] = Field( + recent_folders: list[str] = Field() + runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) + pending_operation: Missing[Union[bool, None]] = Field( default=UNSET, - description="Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.", + description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", ) - last_activity_editor: Missing[Union[str, None]] = Field( + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( default=UNSET, - description="Last editor that was used by the user for a GitHub Copilot completion.", + description="Text to show user when codespace is disabled by a pending operation", ) - created_at: datetime = Field( - description="Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format." + idle_timeout_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", ) - updated_at: Missing[datetime] = Field( + retention_period_minutes: Missing[Union[int, None]] = Field( default=UNSET, - description="**Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", + 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).", ) - plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( + retention_expires_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The Copilot plan of the organization, or the parent enterprise, when applicable.", + description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', + ) + last_known_stop_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="The text to display to a user when a codespace has been stopped for a potentially actionable reason.", ) -class EnterpriseTeam(GitHubModel): - """Enterprise Team +class CodespacePropGitStatus(GitHubModel): + """CodespacePropGitStatus - Group of enterprise owners and/or members + Details about the codespace's git repository. """ - id: int = Field() - name: str = Field() - slug: str = Field() - url: str = Field() - sync_to_organizations: str = Field() - group_id: Missing[Union[str, None]] = Field(default=UNSET) - group_name: Missing[Union[str, None]] = Field(default=UNSET) - html_url: str = Field() - members_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() + ahead: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is ahead of the remote.", + ) + behind: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is behind the remote.", + ) + has_unpushed_changes: Missing[bool] = Field( + default=UNSET, description="Whether the local repository has unpushed changes." + ) + has_uncommitted_changes: Missing[bool] = Field( + default=UNSET, + description="Whether the local repository has uncommitted changes.", + ) + ref: Missing[str] = Field( + default=UNSET, + description="The current branch (or SHA if in detached HEAD state) of the local repository.", + ) -class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): - """OrgsOrgCopilotBillingSeatsGetResponse200""" +class CodespacePropRuntimeConstraints(GitHubModel): + """CodespacePropRuntimeConstraints""" - total_seats: Missing[int] = Field( + allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( default=UNSET, - description="Total number of Copilot seats for the organization currently being billed.", + description="The privacy settings a user can select from when forwarding a port.", ) - seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(CopilotSeatDetails) -model_rebuild(EnterpriseTeam) -model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) +model_rebuild(Codespace) +model_rebuild(CodespacePropGitStatus) +model_rebuild(CodespacePropRuntimeConstraints) __all__ = ( - "CopilotSeatDetails", - "EnterpriseTeam", - "OrgsOrgCopilotBillingSeatsGetResponse200", + "Codespace", + "CodespacePropGitStatus", + "CodespacePropRuntimeConstraints", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0084.py b/githubkit/versions/v2022_11_28/models/group_0084.py index b4aadfbe1..1a40b558a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0084.py +++ b/githubkit/versions/v2022_11_28/models/group_0084.py @@ -9,350 +9,27 @@ from __future__ import annotations -from datetime import date -from typing import Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class CopilotUsageMetricsDay(ExtraGitHubModel): - """Copilot Usage Metrics - - Copilot usage metrics for a given day. - """ - - date: date = Field( - description="The date for which the usage metrics are aggregated, in `YYYY-MM-DD` format." - ) - total_active_users: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot users with activity belonging to any Copilot feature, globally, for the given day. Includes passive activity such as receiving a code suggestion, as well as engagement activity such as accepting a code suggestion or prompting chat. Does not include authentication events. Is not limited to the individual features detailed on the endpoint.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot users who engaged with any Copilot feature, for the given day. Examples include but are not limited to accepting a code suggestion, prompting Copilot chat, or triggering a PR Summary. Does not include authentication events. Is not limited to the individual features detailed on the endpoint.", - ) - copilot_ide_code_completions: Missing[Union[CopilotIdeCodeCompletions, None]] = ( - Field( - default=UNSET, - description="Usage metrics for Copilot editor code completions in the IDE.", - ) - ) - copilot_ide_chat: Missing[Union[CopilotIdeChat, None]] = Field( - default=UNSET, description="Usage metrics for Copilot Chat in the IDE." - ) - copilot_dotcom_chat: Missing[Union[CopilotDotcomChat, None]] = Field( - default=UNSET, description="Usage metrics for Copilot Chat in github.com" - ) - copilot_dotcom_pull_requests: Missing[Union[CopilotDotcomPullRequests, None]] = ( - Field(default=UNSET, description="Usage metrics for Copilot for pull requests.") - ) - - -class CopilotDotcomChat(ExtraGitHubModel): - """CopilotDotcomChat - - Usage metrics for Copilot Chat in github.com - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Total number of users who prompted Copilot Chat on github.com at least once.", - ) - models: Missing[list[CopilotDotcomChatPropModelsItems]] = Field( - default=UNSET, - description="List of model metrics for a custom models and the default model.", - ) - - -class CopilotDotcomChatPropModelsItems(GitHubModel): - """CopilotDotcomChatPropModelsItems""" - - name: Missing[str] = Field( - default=UNSET, - description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, - description="The training date for the custom model (if applicable).", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Total number of users who prompted Copilot Chat on github.com at least once for each model.", - ) - total_chats: Missing[int] = Field( - default=UNSET, - description="Total number of chats initiated by users on github.com.", - ) - - -class CopilotIdeChat(ExtraGitHubModel): - """CopilotIdeChat - - Usage metrics for Copilot Chat in the IDE. - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Total number of users who prompted Copilot Chat in the IDE.", - ) - editors: Missing[list[CopilotIdeChatPropEditorsItems]] = Field(default=UNSET) - - -class CopilotIdeChatPropEditorsItems(GitHubModel): - """CopilotIdeChatPropEditorsItems - - Copilot Chat metrics, for active editors. - """ - - name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who prompted Copilot Chat in the specified editor.", - ) - models: Missing[list[CopilotIdeChatPropEditorsItemsPropModelsItems]] = Field( - default=UNSET, - description="List of model metrics for custom models and the default model.", - ) - - -class CopilotIdeChatPropEditorsItemsPropModelsItems(GitHubModel): - """CopilotIdeChatPropEditorsItemsPropModelsItems""" - - name: Missing[str] = Field( - default=UNSET, - description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who prompted Copilot Chat in the given editor and model.", - ) - total_chats: Missing[int] = Field( - default=UNSET, - description="The total number of chats initiated by users in the given editor and model.", - ) - total_chat_insertion_events: Missing[int] = Field( - default=UNSET, - description="The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor.", - ) - total_chat_copy_events: Missing[int] = Field( - default=UNSET, - description="The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor.", - ) - - -class CopilotDotcomPullRequests(ExtraGitHubModel): - """CopilotDotcomPullRequests - - Usage metrics for Copilot for pull requests. - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once.", - ) - repositories: Missing[list[CopilotDotcomPullRequestsPropRepositoriesItems]] = Field( - default=UNSET, - description="Repositories in which users used Copilot for Pull Requests to generate pull request summaries", - ) - - -class CopilotDotcomPullRequestsPropRepositoriesItems(GitHubModel): - """CopilotDotcomPullRequestsPropRepositoriesItems""" - - name: Missing[str] = Field(default=UNSET, description="Repository name") - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository.", - ) - models: Missing[ - list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems] - ] = Field( - default=UNSET, - description="List of model metrics for custom models and the default model.", - ) - - -class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems(GitHubModel): - """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" - - name: Missing[str] = Field( - default=UNSET, - description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." - ) - total_pr_summaries_created: Missing[int] = Field( - default=UNSET, - description="The number of pull request summaries generated using Copilot for Pull Requests in the given repository.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model.", - ) - - -class CopilotIdeCodeCompletions(ExtraGitHubModel): - """CopilotIdeCodeCompletions - - Usage metrics for Copilot editor code completions in the IDE. - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances.", - ) - languages: Missing[list[CopilotIdeCodeCompletionsPropLanguagesItems]] = Field( - default=UNSET, description="Code completion metrics for active languages." - ) - editors: Missing[list[CopilotIdeCodeCompletionsPropEditorsItems]] = Field( - default=UNSET - ) - - -class CopilotIdeCodeCompletionsPropLanguagesItems(GitHubModel): - """CopilotIdeCodeCompletionsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. - """ - - name: Missing[str] = Field( - default=UNSET, - description="Name of the language used for Copilot code completion suggestions.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances.", - ) - - -class CopilotIdeCodeCompletionsPropEditorsItems(ExtraGitHubModel): - """CopilotIdeCodeCompletionsPropEditorsItems - - Copilot code completion metrics for active editors. - """ - - name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given editor. Includes both full and partial acceptances.", - ) - models: Missing[list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems]] = ( - Field( - default=UNSET, - description="List of model metrics for custom models and the default model.", - ) - ) - - -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems(GitHubModel): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" - - name: Missing[str] = Field( - default=UNSET, - description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language and model. Includes both full and partial acceptances.", - ) - languages: Missing[ - list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems] - ] = Field( - default=UNSET, - description="Code completion metrics for active languages, for the given editor.", - ) - - -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems( - GitHubModel -): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems +class CodespacesPublicKey(GitHubModel): + """CodespacesPublicKey - Usage metrics for a given language for the given editor for Copilot code - completions. + The public key used for setting Codespaces secrets. """ - name: Missing[str] = Field( - default=UNSET, - description="Name of the language used for Copilot code completion suggestions, for the given editor.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language. Includes both full and partial acceptances.", - ) - total_code_suggestions: Missing[int] = Field( - default=UNSET, - description="The number of Copilot code suggestions generated for the given editor, for the given language.", - ) - total_code_acceptances: Missing[int] = Field( - default=UNSET, - description="The number of Copilot code suggestions accepted for the given editor, for the given language. Includes both full and partial acceptances.", - ) - total_code_lines_suggested: Missing[int] = Field( - default=UNSET, - description="The number of lines of code suggested by Copilot code completions for the given editor, for the given language.", - ) - total_code_lines_accepted: Missing[int] = Field( - default=UNSET, - description="The number of lines of code accepted from Copilot code suggestions for the given editor, for the given language.", - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") + id: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) -model_rebuild(CopilotUsageMetricsDay) -model_rebuild(CopilotDotcomChat) -model_rebuild(CopilotDotcomChatPropModelsItems) -model_rebuild(CopilotIdeChat) -model_rebuild(CopilotIdeChatPropEditorsItems) -model_rebuild(CopilotIdeChatPropEditorsItemsPropModelsItems) -model_rebuild(CopilotDotcomPullRequests) -model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItems) -model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems) -model_rebuild(CopilotIdeCodeCompletions) -model_rebuild(CopilotIdeCodeCompletionsPropLanguagesItems) -model_rebuild(CopilotIdeCodeCompletionsPropEditorsItems) -model_rebuild(CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems) -model_rebuild( - CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems -) +model_rebuild(CodespacesPublicKey) -__all__ = ( - "CopilotDotcomChat", - "CopilotDotcomChatPropModelsItems", - "CopilotDotcomPullRequests", - "CopilotDotcomPullRequestsPropRepositoriesItems", - "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems", - "CopilotIdeChat", - "CopilotIdeChatPropEditorsItems", - "CopilotIdeChatPropEditorsItemsPropModelsItems", - "CopilotIdeCodeCompletions", - "CopilotIdeCodeCompletionsPropEditorsItems", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", - "CopilotIdeCodeCompletionsPropLanguagesItems", - "CopilotUsageMetricsDay", -) +__all__ = ("CodespacesPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0085.py b/githubkit/versions/v2022_11_28/models/group_0085.py index cdfccad9a..063a394c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0085.py +++ b/githubkit/versions/v2022_11_28/models/group_0085.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import date -from typing import Union +from typing import Literal from pydantic import Field @@ -19,92 +18,78 @@ from githubkit.utils import UNSET -class CopilotUsageMetrics(GitHubModel): - """Copilot Usage Metrics +class CopilotOrganizationDetails(ExtraGitHubModel): + """Copilot Organization Details - Summary of Copilot usage. + Information about the seat breakdown and policies set for an organization with a + Copilot Business or Copilot Enterprise subscription. """ - day: date = Field( - description="The date for which the usage metrics are reported, in `YYYY-MM-DD` format." + seat_breakdown: CopilotSeatBreakdown = Field( + title="Copilot Business Seat Breakdown", + description="The breakdown of Copilot Business seats for the organization.", ) - total_suggestions_count: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot code completion suggestions shown to users.", - ) - total_acceptances_count: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot code completion suggestions accepted by users.", + public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] = ( + Field( + description="The organization policy for allowing or disallowing Copilot to make suggestions that match public code." + ) ) - total_lines_suggested: Missing[int] = Field( + ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( default=UNSET, - description="The total number of lines of code completions suggested by Copilot.", + description="The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.", ) - total_lines_accepted: Missing[int] = Field( + platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( default=UNSET, - description="The total number of lines of code completions accepted by users.", + description="The organization policy for allowing or disallowing organization members to use Copilot features within github.com.", ) - total_active_users: Missing[int] = Field( + cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( default=UNSET, - description="The total number of users who were shown Copilot code completion suggestions during the day specified.", + description="The organization policy for allowing or disallowing organization members to use Copilot within their CLI.", ) - total_chat_acceptances: Missing[int] = Field( + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] = Field(description="The mode of assigning new seats.") + plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( default=UNSET, - description="The total instances of users who accepted code suggested by Copilot Chat in the IDE (panel and inline).", - ) - total_chat_turns: Missing[int] = Field( - default=UNSET, - description="The total number of chat turns (prompt and response pairs) sent between users and Copilot Chat in the IDE.", - ) - total_active_chat_users: Missing[int] = Field( - default=UNSET, - description="The total number of users who interacted with Copilot Chat in the IDE during the day specified.", - ) - breakdown: Union[list[CopilotUsageMetricsPropBreakdownItems], None] = Field( - description="Breakdown of Copilot code completions usage by language and editor" + description="The Copilot plan of the organization, or the parent enterprise, when applicable.", ) -class CopilotUsageMetricsPropBreakdownItems(ExtraGitHubModel): - """CopilotUsageMetricsPropBreakdownItems +class CopilotSeatBreakdown(GitHubModel): + """Copilot Business Seat Breakdown - Breakdown of Copilot usage by editor for this language + The breakdown of Copilot Business seats for the organization. """ - language: Missing[str] = Field( + total: Missing[int] = Field( default=UNSET, - description="The language in which Copilot suggestions were shown to users in the specified editor.", + description="The total number of seats being billed for the organization as of the current billing cycle.", ) - editor: Missing[str] = Field( - default=UNSET, - description="The editor in which Copilot suggestions were shown to users for the specified language.", - ) - suggestions_count: Missing[int] = Field( - default=UNSET, - description="The number of Copilot suggestions shown to users in the editor specified during the day specified.", + added_this_cycle: Missing[int] = Field( + default=UNSET, description="Seats added during the current billing cycle." ) - acceptances_count: Missing[int] = Field( + pending_cancellation: Missing[int] = Field( default=UNSET, - description="The number of Copilot suggestions accepted by users in the editor specified during the day specified.", + description="The number of seats that are pending cancellation at the end of the current billing cycle.", ) - lines_suggested: Missing[int] = Field( + pending_invitation: Missing[int] = Field( default=UNSET, - description="The number of lines of code suggested by Copilot in the editor specified during the day specified.", + description="The number of seats that have been assigned to users that have not yet accepted an invitation to this organization.", ) - lines_accepted: Missing[int] = Field( + active_this_cycle: Missing[int] = Field( default=UNSET, - description="The number of lines of code accepted by users in the editor specified during the day specified.", + description="The number of seats that have used Copilot during the current billing cycle.", ) - active_users: Missing[int] = Field( + inactive_this_cycle: Missing[int] = Field( default=UNSET, - description="The number of users who were shown Copilot completion suggestions in the editor specified during the day specified.", + description="The number of seats that have not used Copilot during the current billing cycle.", ) -model_rebuild(CopilotUsageMetrics) -model_rebuild(CopilotUsageMetricsPropBreakdownItems) +model_rebuild(CopilotOrganizationDetails) +model_rebuild(CopilotSeatBreakdown) __all__ = ( - "CopilotUsageMetrics", - "CopilotUsageMetricsPropBreakdownItems", + "CopilotOrganizationDetails", + "CopilotSeatBreakdown", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0086.py b/githubkit/versions/v2022_11_28/models/group_0086.py index a7dfe2e7d..51fd6a419 100644 --- a/githubkit/versions/v2022_11_28/models/group_0086.py +++ b/githubkit/versions/v2022_11_28/models/group_0086.py @@ -9,21 +9,45 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class DependabotPublicKey(GitHubModel): - """DependabotPublicKey +class TeamSimple(GitHubModel): + """Team Simple - The public key used for setting Dependabot Secrets. + Groups of organization members that gives permissions on specified repositories. """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - - -model_rebuild(DependabotPublicKey) - -__all__ = ("DependabotPublicKey",) + id: int = Field(description="Unique identifier of the team") + node_id: str = Field() + url: str = Field(description="URL for the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + description: Union[str, None] = Field(description="Description of the team") + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Missing[str] = Field( + default=UNSET, description="The level of privacy this team should have" + ) + notification_setting: Missing[str] = Field( + default=UNSET, description="The notification setting the team has set" + ) + html_url: str = Field() + repositories_url: str = Field() + slug: str = Field() + ldap_dn: Missing[str] = Field( + default=UNSET, + description="Distinguished Name (DN) that team maps to within LDAP environment", + ) + + +model_rebuild(TeamSimple) + +__all__ = ("TeamSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0087.py b/githubkit/versions/v2022_11_28/models/group_0087.py index 13e9b98d1..da5fd7a8d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0087.py +++ b/githubkit/versions/v2022_11_28/models/group_0087.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,31 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0056 import MinimalRepository +from .group_0086 import TeamSimple -class Package(GitHubModel): - """Package +class Team(GitHubModel): + """Team - A software package + Groups of organization members that gives permissions on specified repositories. """ - id: int = Field(description="Unique identifier of the package.") - name: str = Field(description="The name of the package.") - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() + id: int = Field() + node_id: str = Field() + name: str = Field() + slug: str = Field() + description: Union[str, None] = Field() + privacy: Missing[str] = Field(default=UNSET) + notification_setting: Missing[str] = Field(default=UNSET) + permission: str = Field() + permissions: Missing[TeamPropPermissions] = Field(default=UNSET) url: str = Field() html_url: str = Field() - version_count: int = Field(description="The number of versions of the package.") - visibility: Literal["private", "public"] = Field() - owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - repository: Missing[Union[None, MinimalRepository]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() + members_url: str = Field() + repositories_url: str = Field() + parent: Union[None, TeamSimple] = Field() -model_rebuild(Package) +class TeamPropPermissions(GitHubModel): + """TeamPropPermissions""" -__all__ = ("Package",) + pull: bool = Field() + triage: bool = Field() + push: bool = Field() + maintain: bool = Field() + admin: bool = Field() + + +model_rebuild(Team) +model_rebuild(TeamPropPermissions) + +__all__ = ( + "Team", + "TeamPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0088.py b/githubkit/versions/v2022_11_28/models/group_0088.py index e545907ba..387e4f0be 100644 --- a/githubkit/versions/v2022_11_28/models/group_0088.py +++ b/githubkit/versions/v2022_11_28/models/group_0088.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import date, datetime +from typing import Literal, Union from pydantic import Field @@ -17,29 +18,84 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0060 import OrganizationSimple +from .group_0087 import Team -class OrganizationInvitation(GitHubModel): - """Organization Invitation +class CopilotSeatDetails(GitHubModel): + """Copilot Business Seat Detail - Organization Invitation + Information about a Copilot Business seat assignment for a user, team, or + organization. + """ + + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + organization: Missing[Union[None, OrganizationSimple]] = Field(default=UNSET) + assigning_team: Missing[Union[Team, EnterpriseTeam, None]] = Field( + default=UNSET, + description="The team through which the assignee is granted access to GitHub Copilot, if applicable.", + ) + pending_cancellation_date: Missing[Union[date, None]] = Field( + default=UNSET, + description="The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.", + ) + last_activity_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.", + ) + last_activity_editor: Missing[Union[str, None]] = Field( + default=UNSET, + description="Last editor that was used by the user for a GitHub Copilot completion.", + ) + created_at: datetime = Field( + description="Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="**Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", + ) + plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( + default=UNSET, + description="The Copilot plan of the organization, or the parent enterprise, when applicable.", + ) + + +class EnterpriseTeam(GitHubModel): + """Enterprise Team + + Group of enterprise owners and/or members """ id: int = Field() - login: Union[str, None] = Field() - email: Union[str, None] = Field() - role: str = Field() - created_at: str = Field() - failed_at: Missing[Union[str, None]] = Field(default=UNSET) - failed_reason: Missing[Union[str, None]] = Field(default=UNSET) - inviter: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team_count: int = Field() - node_id: str = Field() - invitation_teams_url: str = Field() - invitation_source: Missing[str] = Field(default=UNSET) - - -model_rebuild(OrganizationInvitation) - -__all__ = ("OrganizationInvitation",) + name: str = Field() + slug: str = Field() + url: str = Field() + sync_to_organizations: str = Field() + group_id: Missing[Union[str, None]] = Field(default=UNSET) + group_name: Missing[Union[str, None]] = Field(default=UNSET) + html_url: str = Field() + members_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + + +class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + + total_seats: Missing[int] = Field( + default=UNSET, + description="Total number of Copilot seats for the organization currently being billed.", + ) + seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) + + +model_rebuild(CopilotSeatDetails) +model_rebuild(EnterpriseTeam) +model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) + +__all__ = ( + "CopilotSeatDetails", + "EnterpriseTeam", + "OrgsOrgCopilotBillingSeatsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0089.py b/githubkit/versions/v2022_11_28/models/group_0089.py index c07e88da1..3afdf11cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0089.py +++ b/githubkit/versions/v2022_11_28/models/group_0089.py @@ -9,47 +9,350 @@ from __future__ import annotations -from datetime import datetime +from datetime import date +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgHook(GitHubModel): - """Org Hook +class CopilotUsageMetricsDay(ExtraGitHubModel): + """Copilot Usage Metrics - Org Hook + Copilot usage metrics for a given day. """ - id: int = Field() - url: str = Field() - ping_url: str = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - name: str = Field() - events: list[str] = Field() - active: bool = Field() - config: OrgHookPropConfig = Field() - updated_at: datetime = Field() - created_at: datetime = Field() - type: str = Field() + date: date = Field( + description="The date for which the usage metrics are aggregated, in `YYYY-MM-DD` format." + ) + total_active_users: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot users with activity belonging to any Copilot feature, globally, for the given day. Includes passive activity such as receiving a code suggestion, as well as engagement activity such as accepting a code suggestion or prompting chat. Does not include authentication events. Is not limited to the individual features detailed on the endpoint.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot users who engaged with any Copilot feature, for the given day. Examples include but are not limited to accepting a code suggestion, prompting Copilot chat, or triggering a PR Summary. Does not include authentication events. Is not limited to the individual features detailed on the endpoint.", + ) + copilot_ide_code_completions: Missing[Union[CopilotIdeCodeCompletions, None]] = ( + Field( + default=UNSET, + description="Usage metrics for Copilot editor code completions in the IDE.", + ) + ) + copilot_ide_chat: Missing[Union[CopilotIdeChat, None]] = Field( + default=UNSET, description="Usage metrics for Copilot Chat in the IDE." + ) + copilot_dotcom_chat: Missing[Union[CopilotDotcomChat, None]] = Field( + default=UNSET, description="Usage metrics for Copilot Chat in GitHub.com" + ) + copilot_dotcom_pull_requests: Missing[Union[CopilotDotcomPullRequests, None]] = ( + Field(default=UNSET, description="Usage metrics for Copilot for pull requests.") + ) -class OrgHookPropConfig(GitHubModel): - """OrgHookPropConfig""" +class CopilotDotcomChat(ExtraGitHubModel): + """CopilotDotcomChat + + Usage metrics for Copilot Chat in GitHub.com + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat on github.com at least once.", + ) + models: Missing[list[CopilotDotcomChatPropModelsItems]] = Field( + default=UNSET, + description="List of model metrics for a custom models and the default model.", + ) + + +class CopilotDotcomChatPropModelsItems(GitHubModel): + """CopilotDotcomChatPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, + description="The training date for the custom model (if applicable).", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat on github.com at least once for each model.", + ) + total_chats: Missing[int] = Field( + default=UNSET, + description="Total number of chats initiated by users on github.com.", + ) + + +class CopilotIdeChat(ExtraGitHubModel): + """CopilotIdeChat + + Usage metrics for Copilot Chat in the IDE. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat in the IDE.", + ) + editors: Missing[list[CopilotIdeChatPropEditorsItems]] = Field(default=UNSET) + + +class CopilotIdeChatPropEditorsItems(GitHubModel): + """CopilotIdeChatPropEditorsItems + + Copilot Chat metrics, for active editors. + """ + + name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who prompted Copilot Chat in the specified editor.", + ) + models: Missing[list[CopilotIdeChatPropEditorsItemsPropModelsItems]] = Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) + + +class CopilotIdeChatPropEditorsItemsPropModelsItems(GitHubModel): + """CopilotIdeChatPropEditorsItemsPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who prompted Copilot Chat in the given editor and model.", + ) + total_chats: Missing[int] = Field( + default=UNSET, + description="The total number of chats initiated by users in the given editor and model.", + ) + total_chat_insertion_events: Missing[int] = Field( + default=UNSET, + description="The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor.", + ) + total_chat_copy_events: Missing[int] = Field( + default=UNSET, + description="The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor.", + ) + + +class CopilotDotcomPullRequests(ExtraGitHubModel): + """CopilotDotcomPullRequests + + Usage metrics for Copilot for pull requests. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once.", + ) + repositories: Missing[list[CopilotDotcomPullRequestsPropRepositoriesItems]] = Field( + default=UNSET, + description="Repositories in which users used Copilot for Pull Requests to generate pull request summaries", + ) + + +class CopilotDotcomPullRequestsPropRepositoriesItems(GitHubModel): + """CopilotDotcomPullRequestsPropRepositoriesItems""" + + name: Missing[str] = Field(default=UNSET, description="Repository name") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository.", + ) + models: Missing[ + list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems] + ] = Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) - url: Missing[str] = Field(default=UNSET) - insecure_ssl: Missing[str] = Field(default=UNSET) - content_type: Missing[str] = Field(default=UNSET) - secret: Missing[str] = Field(default=UNSET) +class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems(GitHubModel): + """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" -model_rebuild(OrgHook) -model_rebuild(OrgHookPropConfig) + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_pr_summaries_created: Missing[int] = Field( + default=UNSET, + description="The number of pull request summaries generated using Copilot for Pull Requests in the given repository.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model.", + ) + + +class CopilotIdeCodeCompletions(ExtraGitHubModel): + """CopilotIdeCodeCompletions + + Usage metrics for Copilot editor code completions in the IDE. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances.", + ) + languages: Missing[list[CopilotIdeCodeCompletionsPropLanguagesItems]] = Field( + default=UNSET, description="Code completion metrics for active languages." + ) + editors: Missing[list[CopilotIdeCodeCompletionsPropEditorsItems]] = Field( + default=UNSET + ) + + +class CopilotIdeCodeCompletionsPropLanguagesItems(GitHubModel): + """CopilotIdeCodeCompletionsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: Missing[str] = Field( + default=UNSET, + description="Name of the language used for Copilot code completion suggestions.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances.", + ) + + +class CopilotIdeCodeCompletionsPropEditorsItems(ExtraGitHubModel): + """CopilotIdeCodeCompletionsPropEditorsItems + + Copilot code completion metrics for active editors. + """ + + name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given editor. Includes both full and partial acceptances.", + ) + models: Missing[list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems]] = ( + Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) + ) + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems(GitHubModel): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language and model. Includes both full and partial acceptances.", + ) + languages: Missing[ + list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems] + ] = Field( + default=UNSET, + description="Code completion metrics for active languages, for the given editor.", + ) + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems( + GitHubModel +): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: Missing[str] = Field( + default=UNSET, + description="Name of the language used for Copilot code completion suggestions, for the given editor.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language. Includes both full and partial acceptances.", + ) + total_code_suggestions: Missing[int] = Field( + default=UNSET, + description="The number of Copilot code suggestions generated for the given editor, for the given language.", + ) + total_code_acceptances: Missing[int] = Field( + default=UNSET, + description="The number of Copilot code suggestions accepted for the given editor, for the given language. Includes both full and partial acceptances.", + ) + total_code_lines_suggested: Missing[int] = Field( + default=UNSET, + description="The number of lines of code suggested by Copilot code completions for the given editor, for the given language.", + ) + total_code_lines_accepted: Missing[int] = Field( + default=UNSET, + description="The number of lines of code accepted from Copilot code suggestions for the given editor, for the given language.", + ) + + +model_rebuild(CopilotUsageMetricsDay) +model_rebuild(CopilotDotcomChat) +model_rebuild(CopilotDotcomChatPropModelsItems) +model_rebuild(CopilotIdeChat) +model_rebuild(CopilotIdeChatPropEditorsItems) +model_rebuild(CopilotIdeChatPropEditorsItemsPropModelsItems) +model_rebuild(CopilotDotcomPullRequests) +model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItems) +model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems) +model_rebuild(CopilotIdeCodeCompletions) +model_rebuild(CopilotIdeCodeCompletionsPropLanguagesItems) +model_rebuild(CopilotIdeCodeCompletionsPropEditorsItems) +model_rebuild(CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems) +model_rebuild( + CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems +) __all__ = ( - "OrgHook", - "OrgHookPropConfig", + "CopilotDotcomChat", + "CopilotDotcomChatPropModelsItems", + "CopilotDotcomPullRequests", + "CopilotDotcomPullRequestsPropRepositoriesItems", + "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems", + "CopilotIdeChat", + "CopilotIdeChatPropEditorsItems", + "CopilotIdeChatPropEditorsItemsPropModelsItems", + "CopilotIdeCodeCompletions", + "CopilotIdeCodeCompletionsPropEditorsItems", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", + "CopilotIdeCodeCompletionsPropLanguagesItems", + "CopilotUsageMetricsDay", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0090.py b/githubkit/versions/v2022_11_28/models/group_0090.py index 0a96c6c73..cdfccad9a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0090.py +++ b/githubkit/versions/v2022_11_28/models/group_0090.py @@ -9,34 +9,102 @@ from __future__ import annotations +from datetime import date from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ApiInsightsRouteStatsItems(GitHubModel): - """ApiInsightsRouteStatsItems""" +class CopilotUsageMetrics(GitHubModel): + """Copilot Usage Metrics - http_method: Missing[str] = Field(default=UNSET, description="The HTTP method") - api_route: Missing[str] = Field( - default=UNSET, description="The API path's route template" + Summary of Copilot usage. + """ + + day: date = Field( + description="The date for which the usage metrics are reported, in `YYYY-MM-DD` format." + ) + total_suggestions_count: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot code completion suggestions shown to users.", + ) + total_acceptances_count: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot code completion suggestions accepted by users.", + ) + total_lines_suggested: Missing[int] = Field( + default=UNSET, + description="The total number of lines of code completions suggested by Copilot.", + ) + total_lines_accepted: Missing[int] = Field( + default=UNSET, + description="The total number of lines of code completions accepted by users.", + ) + total_active_users: Missing[int] = Field( + default=UNSET, + description="The total number of users who were shown Copilot code completion suggestions during the day specified.", + ) + total_chat_acceptances: Missing[int] = Field( + default=UNSET, + description="The total instances of users who accepted code suggested by Copilot Chat in the IDE (panel and inline).", + ) + total_chat_turns: Missing[int] = Field( + default=UNSET, + description="The total number of chat turns (prompt and response pairs) sent between users and Copilot Chat in the IDE.", + ) + total_active_chat_users: Missing[int] = Field( + default=UNSET, + description="The total number of users who interacted with Copilot Chat in the IDE during the day specified.", + ) + breakdown: Union[list[CopilotUsageMetricsPropBreakdownItems], None] = Field( + description="Breakdown of Copilot code completions usage by language and editor" + ) + + +class CopilotUsageMetricsPropBreakdownItems(ExtraGitHubModel): + """CopilotUsageMetricsPropBreakdownItems + + Breakdown of Copilot usage by editor for this language + """ + + language: Missing[str] = Field( + default=UNSET, + description="The language in which Copilot suggestions were shown to users in the specified editor.", + ) + editor: Missing[str] = Field( + default=UNSET, + description="The editor in which Copilot suggestions were shown to users for the specified language.", + ) + suggestions_count: Missing[int] = Field( + default=UNSET, + description="The number of Copilot suggestions shown to users in the editor specified during the day specified.", + ) + acceptances_count: Missing[int] = Field( + default=UNSET, + description="The number of Copilot suggestions accepted by users in the editor specified during the day specified.", + ) + lines_suggested: Missing[int] = Field( + default=UNSET, + description="The number of lines of code suggested by Copilot in the editor specified during the day specified.", ) - total_request_count: Missing[int] = Field( + lines_accepted: Missing[int] = Field( default=UNSET, - description="The total number of requests within the queried time period", + description="The number of lines of code accepted by users in the editor specified during the day specified.", ) - rate_limited_request_count: Missing[int] = Field( + active_users: Missing[int] = Field( default=UNSET, - description="The total number of requests that were rate limited within the queried time period", + description="The number of users who were shown Copilot completion suggestions in the editor specified during the day specified.", ) - last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) - last_request_timestamp: Missing[str] = Field(default=UNSET) -model_rebuild(ApiInsightsRouteStatsItems) +model_rebuild(CopilotUsageMetrics) +model_rebuild(CopilotUsageMetricsPropBreakdownItems) -__all__ = ("ApiInsightsRouteStatsItems",) +__all__ = ( + "CopilotUsageMetrics", + "CopilotUsageMetricsPropBreakdownItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0091.py b/githubkit/versions/v2022_11_28/models/group_0091.py index 4d268bc1d..a7dfe2e7d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0091.py +++ b/githubkit/versions/v2022_11_28/models/group_0091.py @@ -9,27 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ApiInsightsSubjectStatsItems(GitHubModel): - """ApiInsightsSubjectStatsItems""" +class DependabotPublicKey(GitHubModel): + """DependabotPublicKey + + The public key used for setting Dependabot Secrets. + """ - subject_type: Missing[str] = Field(default=UNSET) - subject_name: Missing[str] = Field(default=UNSET) - subject_id: Missing[int] = Field(default=UNSET) - total_request_count: Missing[int] = Field(default=UNSET) - rate_limited_request_count: Missing[int] = Field(default=UNSET) - last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) - last_request_timestamp: Missing[str] = Field(default=UNSET) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(ApiInsightsSubjectStatsItems) +model_rebuild(DependabotPublicKey) -__all__ = ("ApiInsightsSubjectStatsItems",) +__all__ = ("DependabotPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0092.py b/githubkit/versions/v2022_11_28/models/group_0092.py index 43562dec3..797ed4fc4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0092.py +++ b/githubkit/versions/v2022_11_28/models/group_0092.py @@ -9,29 +9,40 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0057 import MinimalRepository + -class ApiInsightsSummaryStats(GitHubModel): - """Summary Stats +class Package(GitHubModel): + """Package - API Insights usage summary stats for an organization + A software package """ - total_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests within the queried time period", - ) - rate_limited_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests that were rate limited within the queried time period", - ) + id: int = Field(description="Unique identifier of the package.") + name: str = Field(description="The name of the package.") + package_type: Literal[ + "npm", "maven", "rubygems", "docker", "nuget", "container" + ] = Field() + url: str = Field() + html_url: str = Field() + version_count: int = Field(description="The number of versions of the package.") + visibility: Literal["private", "public"] = Field() + owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + repository: Missing[Union[None, MinimalRepository]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ApiInsightsSummaryStats) +model_rebuild(Package) -__all__ = ("ApiInsightsSummaryStats",) +__all__ = ("Package",) diff --git a/githubkit/versions/v2022_11_28/models/group_0093.py b/githubkit/versions/v2022_11_28/models/group_0093.py index 1e53263ef..a7a2456e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0093.py +++ b/githubkit/versions/v2022_11_28/models/group_0093.py @@ -9,21 +9,37 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser + + +class OrganizationInvitation(GitHubModel): + """Organization Invitation -class ApiInsightsTimeStatsItems(GitHubModel): - """ApiInsightsTimeStatsItems""" + Organization Invitation + """ - timestamp: Missing[str] = Field(default=UNSET) - total_request_count: Missing[int] = Field(default=UNSET) - rate_limited_request_count: Missing[int] = Field(default=UNSET) + id: int = Field() + login: Union[str, None] = Field() + email: Union[str, None] = Field() + role: str = Field() + created_at: str = Field() + failed_at: Missing[Union[str, None]] = Field(default=UNSET) + failed_reason: Missing[Union[str, None]] = Field(default=UNSET) + inviter: SimpleUser = Field(title="Simple User", description="A GitHub user.") + team_count: int = Field() + node_id: str = Field() + invitation_teams_url: str = Field() + invitation_source: Missing[str] = Field(default=UNSET) -model_rebuild(ApiInsightsTimeStatsItems) +model_rebuild(OrganizationInvitation) -__all__ = ("ApiInsightsTimeStatsItems",) +__all__ = ("OrganizationInvitation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0094.py b/githubkit/versions/v2022_11_28/models/group_0094.py index 3b86770cc..c07e88da1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0094.py +++ b/githubkit/versions/v2022_11_28/models/group_0094.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from pydantic import Field @@ -18,20 +18,38 @@ from githubkit.utils import UNSET -class ApiInsightsUserStatsItems(GitHubModel): - """ApiInsightsUserStatsItems""" +class OrgHook(GitHubModel): + """Org Hook - actor_type: Missing[str] = Field(default=UNSET) - actor_name: Missing[str] = Field(default=UNSET) - actor_id: Missing[int] = Field(default=UNSET) - integration_id: Missing[Union[int, None]] = Field(default=UNSET) - oauth_application_id: Missing[Union[int, None]] = Field(default=UNSET) - total_request_count: Missing[int] = Field(default=UNSET) - rate_limited_request_count: Missing[int] = Field(default=UNSET) - last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) - last_request_timestamp: Missing[str] = Field(default=UNSET) + Org Hook + """ + id: int = Field() + url: str = Field() + ping_url: str = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + name: str = Field() + events: list[str] = Field() + active: bool = Field() + config: OrgHookPropConfig = Field() + updated_at: datetime = Field() + created_at: datetime = Field() + type: str = Field() -model_rebuild(ApiInsightsUserStatsItems) -__all__ = ("ApiInsightsUserStatsItems",) +class OrgHookPropConfig(GitHubModel): + """OrgHookPropConfig""" + + url: Missing[str] = Field(default=UNSET) + insecure_ssl: Missing[str] = Field(default=UNSET) + content_type: Missing[str] = Field(default=UNSET) + secret: Missing[str] = Field(default=UNSET) + + +model_rebuild(OrgHook) +model_rebuild(OrgHookPropConfig) + +__all__ = ( + "OrgHook", + "OrgHookPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0095.py b/githubkit/versions/v2022_11_28/models/group_0095.py index 1f7c3f84d..0a96c6c73 100644 --- a/githubkit/versions/v2022_11_28/models/group_0095.py +++ b/githubkit/versions/v2022_11_28/models/group_0095.py @@ -9,27 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class InteractionLimitResponse(GitHubModel): - """Interaction Limits +class ApiInsightsRouteStatsItems(GitHubModel): + """ApiInsightsRouteStatsItems""" - Interaction limit settings. - """ - - limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( - description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." + http_method: Missing[str] = Field(default=UNSET, description="The HTTP method") + api_route: Missing[str] = Field( + default=UNSET, description="The API path's route template" + ) + total_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests within the queried time period", + ) + rate_limited_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests that were rate limited within the queried time period", ) - origin: str = Field() - expires_at: datetime = Field() + last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) + last_request_timestamp: Missing[str] = Field(default=UNSET) -model_rebuild(InteractionLimitResponse) +model_rebuild(ApiInsightsRouteStatsItems) -__all__ = ("InteractionLimitResponse",) +__all__ = ("ApiInsightsRouteStatsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0096.py b/githubkit/versions/v2022_11_28/models/group_0096.py index 341c1cb09..4d268bc1d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0096.py +++ b/githubkit/versions/v2022_11_28/models/group_0096.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,23 +18,18 @@ from githubkit.utils import UNSET -class InteractionLimit(GitHubModel): - """Interaction Restrictions +class ApiInsightsSubjectStatsItems(GitHubModel): + """ApiInsightsSubjectStatsItems""" - Limit interactions to a specific type of user for a specified duration - """ + subject_type: Missing[str] = Field(default=UNSET) + subject_name: Missing[str] = Field(default=UNSET) + subject_id: Missing[int] = Field(default=UNSET) + total_request_count: Missing[int] = Field(default=UNSET) + rate_limited_request_count: Missing[int] = Field(default=UNSET) + last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) + last_request_timestamp: Missing[str] = Field(default=UNSET) - limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( - description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." - ) - expiry: Missing[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] = Field( - default=UNSET, - description="The duration of the interaction restriction. Default: `one_day`.", - ) +model_rebuild(ApiInsightsSubjectStatsItems) -model_rebuild(InteractionLimit) - -__all__ = ("InteractionLimit",) +__all__ = ("ApiInsightsSubjectStatsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0097.py b/githubkit/versions/v2022_11_28/models/group_0097.py index 63cbd93da..43562dec3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0097.py +++ b/githubkit/versions/v2022_11_28/models/group_0097.py @@ -9,49 +9,29 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0059 import OrganizationSimple - -class OrgMembership(GitHubModel): - """Org Membership +class ApiInsightsSummaryStats(GitHubModel): + """Summary Stats - Org Membership + API Insights usage summary stats for an organization """ - url: str = Field() - state: Literal["active", "pending"] = Field( - description="The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation." - ) - role: Literal["admin", "member", "billing_manager"] = Field( - description="The user's membership type in the organization." + total_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests within the queried time period", ) - organization_url: str = Field() - organization: OrganizationSimple = Field( - title="Organization Simple", description="A GitHub organization." + rate_limited_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests that were rate limited within the queried time period", ) - user: Union[None, SimpleUser] = Field() - permissions: Missing[OrgMembershipPropPermissions] = Field(default=UNSET) - - -class OrgMembershipPropPermissions(GitHubModel): - """OrgMembershipPropPermissions""" - - can_create_repository: bool = Field() -model_rebuild(OrgMembership) -model_rebuild(OrgMembershipPropPermissions) +model_rebuild(ApiInsightsSummaryStats) -__all__ = ( - "OrgMembership", - "OrgMembershipPropPermissions", -) +__all__ = ("ApiInsightsSummaryStats",) diff --git a/githubkit/versions/v2022_11_28/models/group_0098.py b/githubkit/versions/v2022_11_28/models/group_0098.py index 57198dca2..1e53263ef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0098.py +++ b/githubkit/versions/v2022_11_28/models/group_0098.py @@ -9,50 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0019 import Repository - - -class Migration(GitHubModel): - """Migration - - A migration. - """ - - id: int = Field() - owner: Union[None, SimpleUser] = Field() - guid: str = Field() - state: str = Field() - lock_repositories: bool = Field() - exclude_metadata: bool = Field() - exclude_git_data: bool = Field() - exclude_attachments: bool = Field() - exclude_releases: bool = Field() - exclude_owner_projects: bool = Field() - org_metadata_only: bool = Field() - repositories: list[Repository] = Field( - description="The repositories included in the migration. Only returned for export migrations." - ) - url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - node_id: str = Field() - archive_url: Missing[str] = Field(default=UNSET) - exclude: Missing[list[str]] = Field( - default=UNSET, - description='Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.', - ) - - -model_rebuild(Migration) - -__all__ = ("Migration",) + +class ApiInsightsTimeStatsItems(GitHubModel): + """ApiInsightsTimeStatsItems""" + + timestamp: Missing[str] = Field(default=UNSET) + total_request_count: Missing[int] = Field(default=UNSET) + rate_limited_request_count: Missing[int] = Field(default=UNSET) + + +model_rebuild(ApiInsightsTimeStatsItems) + +__all__ = ("ApiInsightsTimeStatsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0099.py b/githubkit/versions/v2022_11_28/models/group_0099.py index 9a6087f0e..3b86770cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0099.py +++ b/githubkit/versions/v2022_11_28/models/group_0099.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,60 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class ApiInsightsUserStatsItems(GitHubModel): + """ApiInsightsUserStatsItems""" -class OrganizationRole(GitHubModel): - """Organization Role + actor_type: Missing[str] = Field(default=UNSET) + actor_name: Missing[str] = Field(default=UNSET) + actor_id: Missing[int] = Field(default=UNSET) + integration_id: Missing[Union[int, None]] = Field(default=UNSET) + oauth_application_id: Missing[Union[int, None]] = Field(default=UNSET) + total_request_count: Missing[int] = Field(default=UNSET) + rate_limited_request_count: Missing[int] = Field(default=UNSET) + last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) + last_request_timestamp: Missing[str] = Field(default=UNSET) - Organization roles - """ - id: int = Field(description="The unique identifier of the role.") - name: str = Field(description="The name of the role.") - description: Missing[Union[str, None]] = Field( - default=UNSET, - description="A short description about who this role is for or what permissions it grants.", - ) - base_role: Missing[ - Union[None, Literal["read", "triage", "write", "maintain", "admin"]] - ] = Field( - default=UNSET, - description="The system role from which this role inherits permissions.", - ) - source: Missing[ - Union[None, Literal["Organization", "Enterprise", "Predefined"]] - ] = Field( - default=UNSET, - description='Source answers the question, "where did this role come from?"', - ) - permissions: list[str] = Field( - description="A list of permissions included in this role." - ) - organization: Union[None, SimpleUser] = Field() - created_at: datetime = Field(description="The date and time the role was created.") - updated_at: datetime = Field( - description="The date and time the role was last updated." - ) +model_rebuild(ApiInsightsUserStatsItems) - -class OrgsOrgOrganizationRolesGetResponse200(GitHubModel): - """OrgsOrgOrganizationRolesGetResponse200""" - - total_count: Missing[int] = Field( - default=UNSET, - description="The total number of organization roles available to the organization.", - ) - roles: Missing[list[OrganizationRole]] = Field( - default=UNSET, - description="The list of organization roles available to the organization.", - ) - - -model_rebuild(OrganizationRole) -model_rebuild(OrgsOrgOrganizationRolesGetResponse200) - -__all__ = ( - "OrganizationRole", - "OrgsOrgOrganizationRolesGetResponse200", -) +__all__ = ("ApiInsightsUserStatsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0100.py b/githubkit/versions/v2022_11_28/models/group_0100.py index ac53f0cb6..1f7c3f84d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0100.py +++ b/githubkit/versions/v2022_11_28/models/group_0100.py @@ -9,57 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0081 import TeamSimple +class InteractionLimitResponse(GitHubModel): + """Interaction Limits -class TeamRoleAssignment(GitHubModel): - """A Role Assignment for a Team - - The Relationship a Team has with a role. + Interaction limit settings. """ - assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( - default=UNSET, - description="Determines if the team has a direct, indirect, or mixed relationship to a role", + limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( + description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." ) - id: int = Field() - node_id: str = Field() - name: str = Field() - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[str] = Field(default=UNSET) - notification_setting: Missing[str] = Field(default=UNSET) - permission: str = Field() - permissions: Missing[TeamRoleAssignmentPropPermissions] = Field(default=UNSET) - url: str = Field() - html_url: str = Field() - members_url: str = Field() - repositories_url: str = Field() - parent: Union[None, TeamSimple] = Field() - - -class TeamRoleAssignmentPropPermissions(GitHubModel): - """TeamRoleAssignmentPropPermissions""" - - pull: bool = Field() - triage: bool = Field() - push: bool = Field() - maintain: bool = Field() - admin: bool = Field() + origin: str = Field() + expires_at: datetime = Field() -model_rebuild(TeamRoleAssignment) -model_rebuild(TeamRoleAssignmentPropPermissions) +model_rebuild(InteractionLimitResponse) -__all__ = ( - "TeamRoleAssignment", - "TeamRoleAssignmentPropPermissions", -) +__all__ = ("InteractionLimitResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0101.py b/githubkit/versions/v2022_11_28/models/group_0101.py index 172b25644..341c1cb09 100644 --- a/githubkit/versions/v2022_11_28/models/group_0101.py +++ b/githubkit/versions/v2022_11_28/models/group_0101.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,46 +17,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0081 import TeamSimple +class InteractionLimit(GitHubModel): + """Interaction Restrictions -class UserRoleAssignment(GitHubModel): - """A Role Assignment for a User - - The Relationship a User has with a role. + Limit interactions to a specific type of user for a specified duration """ - assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( - default=UNSET, - description="Determines if the user has a direct, indirect, or mixed relationship to a role", + limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( + description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." ) - inherited_from: Missing[list[TeamSimple]] = Field( - default=UNSET, description="Team the user has gotten the role through" + expiry: Missing[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] + ] = Field( + default=UNSET, + description="The duration of the interaction restriction. Default: `one_day`.", ) - name: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - starred_at: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(UserRoleAssignment) - -__all__ = ("UserRoleAssignment",) + + +model_rebuild(InteractionLimit) + +__all__ = ("InteractionLimit",) diff --git a/githubkit/versions/v2022_11_28/models/group_0102.py b/githubkit/versions/v2022_11_28/models/group_0102.py index fe0d0f426..bfad7669a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0102.py +++ b/githubkit/versions/v2022_11_28/models/group_0102.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,62 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0060 import OrganizationSimple -class PackageVersion(GitHubModel): - """Package Version - A version of a software package +class OrgMembership(GitHubModel): + """Org Membership + + Org Membership """ - id: int = Field(description="Unique identifier of the package version.") - name: str = Field(description="The name of the package version.") url: str = Field() - package_html_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - description: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) - metadata: Missing[PackageVersionPropMetadata] = Field( - default=UNSET, title="Package Version Metadata" + state: Literal["active", "pending"] = Field( + description="The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation." ) - - -class PackageVersionPropMetadata(GitHubModel): - """Package Version Metadata""" - - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() - container: Missing[PackageVersionPropMetadataPropContainer] = Field( - default=UNSET, title="Container Metadata" + role: Literal["admin", "member", "billing_manager"] = Field( + description="The user's membership type in the organization." ) - docker: Missing[PackageVersionPropMetadataPropDocker] = Field( - default=UNSET, title="Docker Metadata" + organization_url: str = Field() + organization: OrganizationSimple = Field( + title="Organization Simple", description="A GitHub organization." ) + user: Union[None, SimpleUser] = Field() + permissions: Missing[OrgMembershipPropPermissions] = Field(default=UNSET) -class PackageVersionPropMetadataPropContainer(GitHubModel): - """Container Metadata""" - - tags: list[str] = Field() - - -class PackageVersionPropMetadataPropDocker(GitHubModel): - """Docker Metadata""" +class OrgMembershipPropPermissions(GitHubModel): + """OrgMembershipPropPermissions""" - tag: Missing[list[str]] = Field(default=UNSET) + can_create_repository: bool = Field() -model_rebuild(PackageVersion) -model_rebuild(PackageVersionPropMetadata) -model_rebuild(PackageVersionPropMetadataPropContainer) -model_rebuild(PackageVersionPropMetadataPropDocker) +model_rebuild(OrgMembership) +model_rebuild(OrgMembershipPropPermissions) __all__ = ( - "PackageVersion", - "PackageVersionPropMetadata", - "PackageVersionPropMetadataPropContainer", - "PackageVersionPropMetadataPropDocker", + "OrgMembership", + "OrgMembershipPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0103.py b/githubkit/versions/v2022_11_28/models/group_0103.py index a43aee224..64aae139a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0103.py +++ b/githubkit/versions/v2022_11_28/models/group_0103.py @@ -9,103 +9,50 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0020 import Repository -class OrganizationProgrammaticAccessGrantRequest(GitHubModel): - """Simple Organization Programmatic Access Grant Request +class Migration(GitHubModel): + """Migration - Minimal representation of an organization programmatic access grant request for - enumerations + A migration. """ - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests." - ) - reason: Union[str, None] = Field(description="Reason for requesting access.") - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repositories_url: str = Field( - description="URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`." - ) - permissions: OrganizationProgrammaticAccessGrantRequestPropPermissions = Field( - description="Permissions requested, categorized by type of permission." - ) - created_at: str = Field( - description="Date and time when the request for access was created." - ) - token_id: int = Field( - description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." - ) - token_name: str = Field( - description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - - -class OrganizationProgrammaticAccessGrantRequestPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantRequestPropPermissions - - Permissions requested, categorized by type of permission. - """ - - organization: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository - ] = Field(default=UNSET) - other: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther - ] = Field(default=UNSET) - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" - - -model_rebuild(OrganizationProgrammaticAccessGrantRequest) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) - -__all__ = ( - "OrganizationProgrammaticAccessGrantRequest", - "OrganizationProgrammaticAccessGrantRequestPropPermissions", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", -) + id: int = Field() + owner: Union[None, SimpleUser] = Field() + guid: str = Field() + state: str = Field() + lock_repositories: bool = Field() + exclude_metadata: bool = Field() + exclude_git_data: bool = Field() + exclude_attachments: bool = Field() + exclude_releases: bool = Field() + exclude_owner_projects: bool = Field() + org_metadata_only: bool = Field() + repositories: list[Repository] = Field( + description="The repositories included in the migration. Only returned for export migrations." + ) + url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + node_id: str = Field() + archive_url: Missing[str] = Field(default=UNSET) + exclude: Missing[list[str]] = Field( + default=UNSET, + description='Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.', + ) + + +model_rebuild(Migration) + +__all__ = ("Migration",) diff --git a/githubkit/versions/v2022_11_28/models/group_0104.py b/githubkit/versions/v2022_11_28/models/group_0104.py index f6b0e4ae0..c78f983ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0104.py +++ b/githubkit/versions/v2022_11_28/models/group_0104.py @@ -9,100 +9,69 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser -class OrganizationProgrammaticAccessGrant(GitHubModel): - """Organization Programmatic Access Grant +class OrganizationRole(GitHubModel): + """Organization Role - Minimal representation of an organization programmatic access grant for - enumerations + Organization roles """ - id: int = Field( - description="Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token." + id: int = Field(description="The unique identifier of the role.") + name: str = Field(description="The name of the role.") + description: Missing[Union[str, None]] = Field( + default=UNSET, + description="A short description about who this role is for or what permissions it grants.", ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." + base_role: Missing[ + Union[None, Literal["read", "triage", "write", "maintain", "admin"]] + ] = Field( + default=UNSET, + description="The system role from which this role inherits permissions.", ) - repositories_url: str = Field( - description="URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`." + source: Missing[ + Union[None, Literal["Organization", "Enterprise", "Predefined"]] + ] = Field( + default=UNSET, + description='Source answers the question, "where did this role come from?"', ) - permissions: OrganizationProgrammaticAccessGrantPropPermissions = Field( - description="Permissions requested, categorized by type of permission." + permissions: list[str] = Field( + description="A list of permissions included in this role." ) - access_granted_at: str = Field( - description="Date and time when the fine-grained personal access token was approved to access the organization." + organization: Union[None, SimpleUser] = Field() + created_at: datetime = Field(description="The date and time the role was created.") + updated_at: datetime = Field( + description="The date and time the role was last updated." ) - token_id: int = Field( - description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." - ) - token_name: str = Field( - description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - -class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissions - Permissions requested, categorized by type of permission. - """ +class OrgsOrgOrganizationRolesGetResponse200(GitHubModel): + """OrgsOrgOrganizationRolesGetResponse200""" - organization: Missing[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepository - ] = Field(default=UNSET) - other: Missing[OrganizationProgrammaticAccessGrantPropPermissionsPropOther] = Field( - default=UNSET + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of organization roles available to the organization.", + ) + roles: Missing[list[OrganizationRole]] = Field( + default=UNSET, + description="The list of organization roles available to the organization.", ) -class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" - - -model_rebuild(OrganizationProgrammaticAccessGrant) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) +model_rebuild(OrganizationRole) +model_rebuild(OrgsOrgOrganizationRolesGetResponse200) __all__ = ( - "OrganizationProgrammaticAccessGrant", - "OrganizationProgrammaticAccessGrantPropPermissions", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", + "OrganizationRole", + "OrgsOrgOrganizationRolesGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0105.py b/githubkit/versions/v2022_11_28/models/group_0105.py index e458bf37e..94ead455d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0105.py +++ b/githubkit/versions/v2022_11_28/models/group_0105.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,30 +17,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0086 import TeamSimple -class OrgPrivateRegistryConfigurationWithSelectedRepositories(GitHubModel): - """Organization private registry - Private registry configuration for an organization +class TeamRoleAssignment(GitHubModel): + """A Role Assignment for a Team + + The Relationship a Team has with a role. """ - name: str = Field(description="The name of the private registry configuration.") - registry_type: Literal["maven_repository"] = Field(description="The registry type.") - username: Missing[str] = Field( - default=UNSET, - description="The username to use when authenticating with the private registry.", - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." - ) - selected_repository_ids: Missing[list[int]] = Field( + assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( default=UNSET, - description="An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`.", + description="Determines if the team has a direct, indirect, or mixed relationship to a role", ) - created_at: datetime = Field() - updated_at: datetime = Field() + id: int = Field() + node_id: str = Field() + name: str = Field() + slug: str = Field() + description: Union[str, None] = Field() + privacy: Missing[str] = Field(default=UNSET) + notification_setting: Missing[str] = Field(default=UNSET) + permission: str = Field() + permissions: Missing[TeamRoleAssignmentPropPermissions] = Field(default=UNSET) + url: str = Field() + html_url: str = Field() + members_url: str = Field() + repositories_url: str = Field() + parent: Union[None, TeamSimple] = Field() + + +class TeamRoleAssignmentPropPermissions(GitHubModel): + """TeamRoleAssignmentPropPermissions""" + + pull: bool = Field() + triage: bool = Field() + push: bool = Field() + maintain: bool = Field() + admin: bool = Field() -model_rebuild(OrgPrivateRegistryConfigurationWithSelectedRepositories) +model_rebuild(TeamRoleAssignment) +model_rebuild(TeamRoleAssignmentPropPermissions) -__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositories",) +__all__ = ( + "TeamRoleAssignment", + "TeamRoleAssignmentPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0106.py b/githubkit/versions/v2022_11_28/models/group_0106.py index ff2a11ce4..863dcb49e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0106.py +++ b/githubkit/versions/v2022_11_28/models/group_0106.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,38 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0086 import TeamSimple -class Project(GitHubModel): - """Project +class UserRoleAssignment(GitHubModel): + """A Role Assignment for a User - Projects are a way to organize columns and cards of work. + The Relationship a User has with a role. """ - owner_url: str = Field() - url: str = Field() - html_url: str = Field() - columns_url: str = Field() - id: int = Field() - node_id: str = Field() - name: str = Field(description="Name of the project") - body: Union[str, None] = Field(description="Body of the project") - number: int = Field() - state: str = Field(description="State of the project; either 'open' or 'closed'") - creator: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( default=UNSET, - description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", + description="Determines if the user has a direct, indirect, or mixed relationship to a role", ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", + inherited_from: Missing[list[TeamSimple]] = Field( + default=UNSET, description="Team the user has gotten the role through" ) - - -model_rebuild(Project) - -__all__ = ("Project",) + name: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + login: str = Field() + id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + starred_at: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(UserRoleAssignment) + +__all__ = ("UserRoleAssignment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0107.py b/githubkit/versions/v2022_11_28/models/group_0107.py index e7f7856d5..fe0d0f426 100644 --- a/githubkit/versions/v2022_11_28/models/group_0107.py +++ b/githubkit/versions/v2022_11_28/models/group_0107.py @@ -9,58 +9,71 @@ from __future__ import annotations -from typing import Annotated, Literal, Union +from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class CustomProperty(GitHubModel): - """Organization Custom Property +class PackageVersion(GitHubModel): + """Package Version - Custom property defined on an organization + A version of a software package """ - property_name: str = Field(description="The name of the property") - url: Missing[str] = Field( - default=UNSET, - description="The URL that can be used to fetch, update, or delete info about this property via the API.", + id: int = Field(description="Unique identifier of the package version.") + name: str = Field(description="The name of the package version.") + url: str = Field() + package_html_url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + description: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + deleted_at: Missing[datetime] = Field(default=UNSET) + metadata: Missing[PackageVersionPropMetadata] = Field( + default=UNSET, title="Package Version Metadata" ) - source_type: Missing[Literal["organization", "enterprise"]] = Field( - default=UNSET, description="The source type of the property" - ) - value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( - Field(description="The type of the value for the property") - ) - required: Missing[bool] = Field( - default=UNSET, description="Whether the property is required." - ) - default_value: Missing[Union[str, list[str], None]] = Field( - default=UNSET, description="Default value of the property" - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" + + +class PackageVersionPropMetadata(GitHubModel): + """Package Version Metadata""" + + package_type: Literal[ + "npm", "maven", "rubygems", "docker", "nuget", "container" + ] = Field() + container: Missing[PackageVersionPropMetadataPropContainer] = Field( + default=UNSET, title="Container Metadata" ) - allowed_values: Missing[ - Union[ - Annotated[ - list[Annotated[str, Field(max_length=75)]], - Field(max_length=200 if PYDANTIC_V2 else None), - ], - None, - ] - ] = Field( - default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + docker: Missing[PackageVersionPropMetadataPropDocker] = Field( + default=UNSET, title="Docker Metadata" ) - values_editable_by: Missing[ - Union[None, Literal["org_actors", "org_and_repo_actors"]] - ] = Field(default=UNSET, description="Who can edit the values of the property") -model_rebuild(CustomProperty) +class PackageVersionPropMetadataPropContainer(GitHubModel): + """Container Metadata""" + + tags: list[str] = Field() + + +class PackageVersionPropMetadataPropDocker(GitHubModel): + """Docker Metadata""" + + tag: Missing[list[str]] = Field(default=UNSET) + + +model_rebuild(PackageVersion) +model_rebuild(PackageVersionPropMetadata) +model_rebuild(PackageVersionPropMetadataPropContainer) +model_rebuild(PackageVersionPropMetadataPropDocker) -__all__ = ("CustomProperty",) +__all__ = ( + "PackageVersion", + "PackageVersionPropMetadata", + "PackageVersionPropMetadataPropContainer", + "PackageVersionPropMetadataPropDocker", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0108.py b/githubkit/versions/v2022_11_28/models/group_0108.py index 2df8226aa..c7a2781c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0108.py +++ b/githubkit/versions/v2022_11_28/models/group_0108.py @@ -9,47 +9,103 @@ from __future__ import annotations -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class CustomPropertySetPayload(GitHubModel): - """Custom Property Set Payload - Custom property set payload +class OrganizationProgrammaticAccessGrantRequest(GitHubModel): + """Simple Organization Programmatic Access Grant Request + + Minimal representation of an organization programmatic access grant request for + enumerations """ - value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( - Field(description="The type of the value for the property") + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests." + ) + reason: Union[str, None] = Field(description="Reason for requesting access.") + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repositories_url: str = Field( + description="URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`." + ) + permissions: OrganizationProgrammaticAccessGrantRequestPropPermissions = Field( + description="Permissions requested, categorized by type of permission." + ) + created_at: str = Field( + description="Date and time when the request for access was created." ) - required: Missing[bool] = Field( - default=UNSET, description="Whether the property is required." + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." ) - default_value: Missing[Union[str, list[str], None]] = Field( - default=UNSET, description="Default value of the property" + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." ) - allowed_values: Missing[ - Union[ - Annotated[ - list[Annotated[str, Field(max_length=75)]], - Field(max_length=200 if PYDANTIC_V2 else None), - ], - None, - ] - ] = Field( - default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class OrganizationProgrammaticAccessGrantRequestPropPermissions(GitHubModel): + """OrganizationProgrammaticAccessGrantRequestPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository + ] = Field(default=UNSET) + other: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther + ] = Field(default=UNSET) + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" -model_rebuild(CustomPropertySetPayload) +model_rebuild(OrganizationProgrammaticAccessGrantRequest) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) -__all__ = ("CustomPropertySetPayload",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequest", + "OrganizationProgrammaticAccessGrantRequestPropPermissions", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0109.py b/githubkit/versions/v2022_11_28/models/group_0109.py index 323c1ba32..9cc3f78de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0109.py +++ b/githubkit/versions/v2022_11_28/models/group_0109.py @@ -9,25 +9,100 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class CustomPropertyValue(GitHubModel): - """Custom Property Value - Custom property name and associated value +class OrganizationProgrammaticAccessGrant(GitHubModel): + """Organization Programmatic Access Grant + + Minimal representation of an organization programmatic access grant for + enumerations + """ + + id: int = Field( + description="Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repositories_url: str = Field( + description="URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`." + ) + permissions: OrganizationProgrammaticAccessGrantPropPermissions = Field( + description="Permissions requested, categorized by type of permission." + ) + access_granted_at: str = Field( + description="Date and time when the fine-grained personal access token was approved to access the organization." + ) + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." + ) + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." + ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): + """OrganizationProgrammaticAccessGrantPropPermissions + + Permissions requested, categorized by type of permission. """ - property_name: str = Field(description="The name of the property") - value: Union[str, list[str], None] = Field( - description="The value assigned to the property" + organization: Missing[ + OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + OrganizationProgrammaticAccessGrantPropPermissionsPropRepository + ] = Field(default=UNSET) + other: Missing[OrganizationProgrammaticAccessGrantPropPermissionsPropOther] = Field( + default=UNSET ) -model_rebuild(CustomPropertyValue) +class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" + + +model_rebuild(OrganizationProgrammaticAccessGrant) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) -__all__ = ("CustomPropertyValue",) +__all__ = ( + "OrganizationProgrammaticAccessGrant", + "OrganizationProgrammaticAccessGrantPropPermissions", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0110.py b/githubkit/versions/v2022_11_28/models/group_0110.py index 0d0978eb5..e458bf37e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0110.py +++ b/githubkit/versions/v2022_11_28/models/group_0110.py @@ -9,27 +9,39 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0109 import CustomPropertyValue +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgRepoCustomPropertyValues(GitHubModel): - """Organization Repository Custom Property Values +class OrgPrivateRegistryConfigurationWithSelectedRepositories(GitHubModel): + """Organization private registry - List of custom property values for a repository + Private registry configuration for an organization """ - repository_id: int = Field() - repository_name: str = Field() - repository_full_name: str = Field() - properties: list[CustomPropertyValue] = Field( - description="List of custom property names and associated values" + name: str = Field(description="The name of the private registry configuration.") + registry_type: Literal["maven_repository"] = Field(description="The registry type.") + username: Missing[str] = Field( + default=UNSET, + description="The username to use when authenticating with the private registry.", + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`.", ) + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(OrgRepoCustomPropertyValues) +model_rebuild(OrgPrivateRegistryConfigurationWithSelectedRepositories) -__all__ = ("OrgRepoCustomPropertyValues",) +__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositories",) diff --git a/githubkit/versions/v2022_11_28/models/group_0111.py b/githubkit/versions/v2022_11_28/models/group_0111.py index 35b60a16d..a7a52f64e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0111.py +++ b/githubkit/versions/v2022_11_28/models/group_0111.py @@ -9,25 +9,47 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class CodeOfConductSimple(GitHubModel): - """Code Of Conduct Simple - Code of Conduct Simple +class Project(GitHubModel): + """Project + + Projects are a way to organize columns and cards of work. """ + owner_url: str = Field() url: str = Field() - key: str = Field() - name: str = Field() - html_url: Union[str, None] = Field() - - -model_rebuild(CodeOfConductSimple) - -__all__ = ("CodeOfConductSimple",) + html_url: str = Field() + columns_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="Name of the project") + body: Union[str, None] = Field(description="Body of the project") + number: int = Field() + state: str = Field(description="State of the project; either 'open' or 'closed'") + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + default=UNSET, + description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", + ) + + +model_rebuild(Project) + +__all__ = ("Project",) diff --git a/githubkit/versions/v2022_11_28/models/group_0112.py b/githubkit/versions/v2022_11_28/models/group_0112.py index cc31444da..e7f7856d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0112.py +++ b/githubkit/versions/v2022_11_28/models/group_0112.py @@ -9,196 +9,58 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Annotated, Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0018 import LicenseSimple -from .group_0019 import Repository -from .group_0055 import SecurityAndAnalysis -from .group_0111 import CodeOfConductSimple +class CustomProperty(GitHubModel): + """Organization Custom Property -class FullRepository(GitHubModel): - """Full Repository - - Full Repository + Custom property defined on an organization """ - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field() - open_issues_count: int = Field() - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: bool = Field() - has_projects: bool = Field() - has_wiki: bool = Field() - has_pages: bool = Field() - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: bool = Field() - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: datetime = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + property_name: str = Field(description="The name of the property") + url: Missing[str] = Field( default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + description="The URL that can be used to fetch, update, or delete info about this property via the API.", ) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - subscribers_count: int = Field() - network_count: int = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - parent: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." + source_type: Missing[Literal["organization", "enterprise"]] = Field( + default=UNSET, description="The source type of the property" ) - source: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." + value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( + Field(description="The type of the value for the property") ) - forks: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, description="Whether anonymous git access is allowed." + required: Missing[bool] = Field( + default=UNSET, description="Whether the property is required." ) - code_of_conduct: Missing[CodeOfConductSimple] = Field( - default=UNSET, - title="Code Of Conduct Simple", - description="Code of Conduct Simple", + default_value: Missing[Union[str, list[str], None]] = Field( + default=UNSET, description="Default value of the property" ) - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the property" ) - custom_properties: Missing[FullRepositoryPropCustomProperties] = Field( + allowed_values: Missing[ + Union[ + Annotated[ + list[Annotated[str, Field(max_length=75)]], + Field(max_length=200 if PYDANTIC_V2 else None), + ], + None, + ] + ] = Field( default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", ) + values_editable_by: Missing[ + Union[None, Literal["org_actors", "org_and_repo_actors"]] + ] = Field(default=UNSET, description="Who can edit the values of the property") -class FullRepositoryPropPermissions(GitHubModel): - """FullRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - - -class FullRepositoryPropCustomProperties(ExtraGitHubModel): - """FullRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -model_rebuild(FullRepository) -model_rebuild(FullRepositoryPropPermissions) -model_rebuild(FullRepositoryPropCustomProperties) +model_rebuild(CustomProperty) -__all__ = ( - "FullRepository", - "FullRepositoryPropCustomProperties", - "FullRepositoryPropPermissions", -) +__all__ = ("CustomProperty",) diff --git a/githubkit/versions/v2022_11_28/models/group_0113.py b/githubkit/versions/v2022_11_28/models/group_0113.py index 72e9651e6..2df8226aa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0113.py +++ b/githubkit/versions/v2022_11_28/models/group_0113.py @@ -9,34 +9,47 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Annotated, Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class RepositoryRulesetBypassActor(GitHubModel): - """Repository Ruleset Bypass Actor +class CustomPropertySetPayload(GitHubModel): + """Custom Property Set Payload - An actor that can bypass rules in a ruleset + Custom property set payload """ - actor_id: Missing[Union[int, None]] = Field( - default=UNSET, - description="The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.", + 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" ) - actor_type: Literal[ - "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" - ] = Field(description="The type of actor that can bypass a ruleset.") - bypass_mode: Missing[Literal["always", "pull_request"]] = Field( + allowed_values: Missing[ + Union[ + Annotated[ + list[Annotated[str, Field(max_length=75)]], + Field(max_length=200 if PYDANTIC_V2 else None), + ], + None, + ] + ] = Field( default=UNSET, - description="When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", ) -model_rebuild(RepositoryRulesetBypassActor) +model_rebuild(CustomPropertySetPayload) -__all__ = ("RepositoryRulesetBypassActor",) +__all__ = ("CustomPropertySetPayload",) diff --git a/githubkit/versions/v2022_11_28/models/group_0114.py b/githubkit/versions/v2022_11_28/models/group_0114.py index 8477feb54..323c1ba32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0114.py +++ b/githubkit/versions/v2022_11_28/models/group_0114.py @@ -9,24 +9,25 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0115 import RepositoryRulesetConditionsPropRefName -class RepositoryRulesetConditions(GitHubModel): - """Repository ruleset conditions for ref names +class CustomPropertyValue(GitHubModel): + """Custom Property Value - Parameters for a repository ruleset ref name condition + Custom property name and associated value """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + property_name: str = Field(description="The name of the property") + value: Union[str, list[str], None] = Field( + description="The value assigned to the property" + ) -model_rebuild(RepositoryRulesetConditions) +model_rebuild(CustomPropertyValue) -__all__ = ("RepositoryRulesetConditions",) +__all__ = ("CustomPropertyValue",) diff --git a/githubkit/versions/v2022_11_28/models/group_0115.py b/githubkit/versions/v2022_11_28/models/group_0115.py index 1ca843cd5..516f82bb7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0115.py +++ b/githubkit/versions/v2022_11_28/models/group_0115.py @@ -12,23 +12,24 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0114 import CustomPropertyValue -class RepositoryRulesetConditionsPropRefName(GitHubModel): - """RepositoryRulesetConditionsPropRefName""" - include: Missing[list[str]] = Field( - default=UNSET, - description="Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.", - ) - exclude: Missing[list[str]] = Field( - default=UNSET, - description="Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.", +class OrgRepoCustomPropertyValues(GitHubModel): + """Organization Repository Custom Property Values + + List of custom property values for a repository + """ + + repository_id: int = Field() + repository_name: str = Field() + repository_full_name: str = Field() + properties: list[CustomPropertyValue] = Field( + description="List of custom property names and associated values" ) -model_rebuild(RepositoryRulesetConditionsPropRefName) +model_rebuild(OrgRepoCustomPropertyValues) -__all__ = ("RepositoryRulesetConditionsPropRefName",) +__all__ = ("OrgRepoCustomPropertyValues",) diff --git a/githubkit/versions/v2022_11_28/models/group_0116.py b/githubkit/versions/v2022_11_28/models/group_0116.py index 610c81b36..35b60a16d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0116.py +++ b/githubkit/versions/v2022_11_28/models/group_0116.py @@ -9,24 +9,25 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0117 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) - -class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): - """Repository ruleset conditions for repository names +class CodeOfConductSimple(GitHubModel): + """Code Of Conduct Simple - Parameters for a repository name condition + Code of Conduct Simple """ - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + url: str = Field() + key: str = Field() + name: str = Field() + html_url: Union[str, None] = Field() -model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) +model_rebuild(CodeOfConductSimple) -__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) +__all__ = ("CodeOfConductSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0117.py b/githubkit/versions/v2022_11_28/models/group_0117.py index 45d8e8310..7dbfbc0b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0117.py +++ b/githubkit/versions/v2022_11_28/models/group_0117.py @@ -9,30 +9,196 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple +from .group_0020 import Repository +from .group_0056 import SecurityAndAnalysis +from .group_0116 import CodeOfConductSimple + + +class FullRepository(GitHubModel): + """Full Repository -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" + Full Repository + """ - include: Missing[list[str]] = Field( + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field( + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + ) + default_branch: str = Field() + open_issues_count: int = Field() + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field() + has_projects: bool = Field() + has_wiki: bool = Field() + has_pages: bool = Field() + has_downloads: Missing[bool] = Field(default=UNSET) + has_discussions: bool = Field() + archived: bool = Field() + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: datetime = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + allow_update_branch: Missing[bool] = Field(default=UNSET) + use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( default=UNSET, - description="Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.", + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + subscribers_count: int = Field() + network_count: int = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + parent: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + source: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." ) - exclude: Missing[list[str]] = Field( + forks: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, description="Whether anonymous git access is allowed." + ) + code_of_conduct: Missing[CodeOfConductSimple] = Field( default=UNSET, - description="Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.", + title="Code Of Conduct Simple", + description="Code of Conduct Simple", + ) + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET ) - protected: Missing[bool] = Field( + custom_properties: Missing[FullRepositoryPropCustomProperties] = Field( default=UNSET, - description="Whether renaming of target repositories is prevented.", + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) -model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) +class FullRepositoryPropPermissions(GitHubModel): + """FullRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + + +class FullRepositoryPropCustomProperties(ExtraGitHubModel): + """FullRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +model_rebuild(FullRepository) +model_rebuild(FullRepositoryPropPermissions) +model_rebuild(FullRepositoryPropCustomProperties) -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) +__all__ = ( + "FullRepository", + "FullRepositoryPropCustomProperties", + "FullRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0118.py b/githubkit/versions/v2022_11_28/models/group_0118.py index 0c51d6942..72e9651e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0118.py +++ b/githubkit/versions/v2022_11_28/models/group_0118.py @@ -9,24 +9,34 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0119 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): - """Repository ruleset conditions for repository IDs +class RepositoryRulesetBypassActor(GitHubModel): + """Repository Ruleset Bypass Actor - Parameters for a repository ID condition + An actor that can bypass rules in a ruleset """ - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( - Field() + actor_id: Missing[Union[int, None]] = Field( + default=UNSET, + description="The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.", + ) + actor_type: Literal[ + "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" + ] = Field(description="The type of actor that can bypass a ruleset.") + bypass_mode: Missing[Literal["always", "pull_request"]] = Field( + default=UNSET, + description="When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", ) -model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) +model_rebuild(RepositoryRulesetBypassActor) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) +__all__ = ("RepositoryRulesetBypassActor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0119.py b/githubkit/versions/v2022_11_28/models/group_0119.py index fd9df3d90..807f90736 100644 --- a/githubkit/versions/v2022_11_28/models/group_0119.py +++ b/githubkit/versions/v2022_11_28/models/group_0119.py @@ -15,16 +15,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0120 import RepositoryRulesetConditionsPropRefName -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" - repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", - ) +class RepositoryRulesetConditions(GitHubModel): + """Repository ruleset conditions for ref names + Parameters for a repository ruleset ref name condition + """ -model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) + +model_rebuild(RepositoryRulesetConditions) + +__all__ = ("RepositoryRulesetConditions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0120.py b/githubkit/versions/v2022_11_28/models/group_0120.py index 23e2dc8d3..1ca843cd5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0120.py +++ b/githubkit/versions/v2022_11_28/models/group_0120.py @@ -12,21 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0121 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, -) +class RepositoryRulesetConditionsPropRefName(GitHubModel): + """RepositoryRulesetConditionsPropRefName""" -class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): - """Repository ruleset conditions for repository properties + include: Missing[list[str]] = Field( + default=UNSET, + description="Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.", + ) + exclude: Missing[list[str]] = Field( + default=UNSET, + description="Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.", + ) - Parameters for a repository property condition - """ - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() +model_rebuild(RepositoryRulesetConditionsPropRefName) - -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) - -__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) +__all__ = ("RepositoryRulesetConditionsPropRefName",) diff --git a/githubkit/versions/v2022_11_28/models/group_0121.py b/githubkit/versions/v2022_11_28/models/group_0121.py index de1e60e46..86af3f8f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0121.py +++ b/githubkit/versions/v2022_11_28/models/group_0121.py @@ -9,50 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty( - GitHubModel -): - """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" - include: Missing[list[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( - default=UNSET, - description="The repository properties and values to include. All of these properties must match for the condition to pass.", - ) - exclude: Missing[list[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( - default=UNSET, - description="The repository properties and values to exclude. The condition will not pass if any of these properties match.", - ) +from .group_0122 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) -class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): - """Repository ruleset property targeting definition +class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): + """Repository ruleset conditions for repository names - Parameters for a targeting a repository property + Parameters for a repository name condition """ - name: str = Field(description="The name of the repository property to target") - property_values: list[str] = Field( - description="The values to match for the repository property" - ) - source: Missing[Literal["custom", "system"]] = Field( - default=UNSET, - description="The source of the repository property. Defaults to 'custom' if not specified.", - ) + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) -model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) +model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertySpec", - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", -) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) diff --git a/githubkit/versions/v2022_11_28/models/group_0122.py b/githubkit/versions/v2022_11_28/models/group_0122.py index 92d27b7fa..45d8e8310 100644 --- a/githubkit/versions/v2022_11_28/models/group_0122.py +++ b/githubkit/versions/v2022_11_28/models/group_0122.py @@ -15,22 +15,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0115 import RepositoryRulesetConditionsPropRefName -from .group_0117 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" -class OrgRulesetConditionsOneof0(GitHubModel): - """repository_name_and_ref_name + include: Missing[list[str]] = Field( + default=UNSET, + description="Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.", + ) + exclude: Missing[list[str]] = Field( + default=UNSET, + description="Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.", + ) + protected: Missing[bool] = Field( + default=UNSET, + description="Whether renaming of target repositories is prevented.", + ) - Conditions to target repositories by name and refs by name - """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() +model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) - -model_rebuild(OrgRulesetConditionsOneof0) - -__all__ = ("OrgRulesetConditionsOneof0",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) diff --git a/githubkit/versions/v2022_11_28/models/group_0123.py b/githubkit/versions/v2022_11_28/models/group_0123.py index d7499c4e0..93fe18531 100644 --- a/githubkit/versions/v2022_11_28/models/group_0123.py +++ b/githubkit/versions/v2022_11_28/models/group_0123.py @@ -12,25 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0115 import RepositoryRulesetConditionsPropRefName -from .group_0119 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId +from .group_0124 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class OrgRulesetConditionsOneof1(GitHubModel): - """repository_id_and_ref_name +class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): + """Repository ruleset conditions for repository IDs - Conditions to target repositories by id and refs by name + Parameters for a repository ID condition """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( Field() ) -model_rebuild(OrgRulesetConditionsOneof1) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) -__all__ = ("OrgRulesetConditionsOneof1",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) diff --git a/githubkit/versions/v2022_11_28/models/group_0124.py b/githubkit/versions/v2022_11_28/models/group_0124.py index 050aae24d..fd9df3d90 100644 --- a/githubkit/versions/v2022_11_28/models/group_0124.py +++ b/githubkit/versions/v2022_11_28/models/group_0124.py @@ -15,22 +15,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0115 import RepositoryRulesetConditionsPropRefName -from .group_0121 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, -) +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" -class OrgRulesetConditionsOneof2(GitHubModel): - """repository_property_and_ref_name + repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", + ) - Conditions to target repositories by property and refs by name - """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() +model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) - -model_rebuild(OrgRulesetConditionsOneof2) - -__all__ = ("OrgRulesetConditionsOneof2",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) diff --git a/githubkit/versions/v2022_11_28/models/group_0125.py b/githubkit/versions/v2022_11_28/models/group_0125.py index 34a8b6a51..017f92b74 100644 --- a/githubkit/versions/v2022_11_28/models/group_0125.py +++ b/githubkit/versions/v2022_11_28/models/group_0125.py @@ -9,105 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class RepositoryRuleCreation(GitHubModel): - """creation - - Only allow users with bypass permission to create matching refs. - """ - - type: Literal["creation"] = Field() - - -class RepositoryRuleDeletion(GitHubModel): - """deletion - - Only allow users with bypass permissions to delete matching refs. - """ - - type: Literal["deletion"] = Field() - - -class RepositoryRuleRequiredSignatures(GitHubModel): - """required_signatures - - Commits pushed to matching refs must have verified signatures. - """ - - type: Literal["required_signatures"] = Field() - -class RepositoryRuleNonFastForward(GitHubModel): - """non_fast_forward - - Prevent users with push access from force pushing to refs. - """ - - type: Literal["non_fast_forward"] = Field() - - -class RepositoryRuleOneof15(GitHubModel): - """file_path_restriction - - Prevent commits that include changes in specified file paths from being pushed - to the commit graph. - """ - - type: Literal["file_path_restriction"] = Field() - parameters: Missing[RepositoryRuleOneof15PropParameters] = Field(default=UNSET) - - -class RepositoryRuleOneof15PropParameters(GitHubModel): - """RepositoryRuleOneof15PropParameters""" - - restricted_file_paths: list[str] = Field( - description="The file paths that are restricted from being pushed to the commit graph." - ) +from .group_0126 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) -class RepositoryRuleOneof17(GitHubModel): - """file_extension_restriction +class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): + """Repository ruleset conditions for repository properties - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. + Parameters for a repository property condition """ - type: Literal["file_extension_restriction"] = Field() - parameters: Missing[RepositoryRuleOneof17PropParameters] = Field(default=UNSET) + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() -class RepositoryRuleOneof17PropParameters(GitHubModel): - """RepositoryRuleOneof17PropParameters""" +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) - restricted_file_extensions: list[str] = Field( - description="The file extensions that are restricted from being pushed to the commit graph." - ) - - -model_rebuild(RepositoryRuleCreation) -model_rebuild(RepositoryRuleDeletion) -model_rebuild(RepositoryRuleRequiredSignatures) -model_rebuild(RepositoryRuleNonFastForward) -model_rebuild(RepositoryRuleOneof15) -model_rebuild(RepositoryRuleOneof15PropParameters) -model_rebuild(RepositoryRuleOneof17) -model_rebuild(RepositoryRuleOneof17PropParameters) - -__all__ = ( - "RepositoryRuleCreation", - "RepositoryRuleDeletion", - "RepositoryRuleNonFastForward", - "RepositoryRuleOneof15", - "RepositoryRuleOneof15PropParameters", - "RepositoryRuleOneof17", - "RepositoryRuleOneof17PropParameters", - "RepositoryRuleRequiredSignatures", -) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) diff --git a/githubkit/versions/v2022_11_28/models/group_0126.py b/githubkit/versions/v2022_11_28/models/group_0126.py index 5f3e9fc9b..de1e60e46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0126.py +++ b/githubkit/versions/v2022_11_28/models/group_0126.py @@ -17,19 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0127 import RepositoryRuleUpdatePropParameters +class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty( + GitHubModel +): + """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" -class RepositoryRuleUpdate(GitHubModel): - """update + include: Missing[list[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + default=UNSET, + description="The repository properties and values to include. All of these properties must match for the condition to pass.", + ) + exclude: Missing[list[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + default=UNSET, + description="The repository properties and values to exclude. The condition will not pass if any of these properties match.", + ) - Only allow users with bypass permission to update matching refs. + +class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): + """Repository ruleset property targeting definition + + Parameters for a targeting a repository property """ - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) + name: str = Field(description="The name of the repository property to target") + property_values: list[str] = Field( + description="The values to match for the repository property" + ) + source: Missing[Literal["custom", "system"]] = Field( + default=UNSET, + description="The source of the repository property. Defaults to 'custom' if not specified.", + ) -model_rebuild(RepositoryRuleUpdate) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) -__all__ = ("RepositoryRuleUpdate",) +__all__ = ( + "RepositoryRulesetConditionsRepositoryPropertySpec", + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0127.py b/githubkit/versions/v2022_11_28/models/group_0127.py index 24be869ac..c6bae7d40 100644 --- a/githubkit/versions/v2022_11_28/models/group_0127.py +++ b/githubkit/versions/v2022_11_28/models/group_0127.py @@ -12,16 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0120 import RepositoryRulesetConditionsPropRefName +from .group_0122 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) -class RepositoryRuleUpdatePropParameters(GitHubModel): - """RepositoryRuleUpdatePropParameters""" - update_allows_fetch_and_merge: bool = Field( - description="Branch can pull changes from its upstream repository" - ) +class OrgRulesetConditionsOneof0(GitHubModel): + """repository_name_and_ref_name + Conditions to target repositories by name and refs by name + """ -model_rebuild(RepositoryRuleUpdatePropParameters) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -__all__ = ("RepositoryRuleUpdatePropParameters",) + +model_rebuild(OrgRulesetConditionsOneof0) + +__all__ = ("OrgRulesetConditionsOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0128.py b/githubkit/versions/v2022_11_28/models/group_0128.py index 081a8320b..a4f4e8f49 100644 --- a/githubkit/versions/v2022_11_28/models/group_0128.py +++ b/githubkit/versions/v2022_11_28/models/group_0128.py @@ -9,51 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class RepositoryRuleRequiredLinearHistory(GitHubModel): - """required_linear_history - - Prevent merge commits from being pushed to matching refs. - """ - - type: Literal["required_linear_history"] = Field() +from .group_0120 import RepositoryRulesetConditionsPropRefName +from .group_0124 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class RepositoryRuleOneof16(GitHubModel): - """max_file_path_length +class OrgRulesetConditionsOneof1(GitHubModel): + """repository_id_and_ref_name - Prevent commits that include file paths that exceed a specified character limit - from being pushed to the commit graph. + Conditions to target repositories by id and refs by name """ - type: Literal["max_file_path_length"] = Field() - parameters: Missing[RepositoryRuleOneof16PropParameters] = Field(default=UNSET) - - -class RepositoryRuleOneof16PropParameters(GitHubModel): - """RepositoryRuleOneof16PropParameters""" - - max_file_path_length: int = Field( - le=256.0, - ge=1.0, - description="The maximum amount of characters allowed in file paths", + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( + Field() ) -model_rebuild(RepositoryRuleRequiredLinearHistory) -model_rebuild(RepositoryRuleOneof16) -model_rebuild(RepositoryRuleOneof16PropParameters) +model_rebuild(OrgRulesetConditionsOneof1) -__all__ = ( - "RepositoryRuleOneof16", - "RepositoryRuleOneof16PropParameters", - "RepositoryRuleRequiredLinearHistory", -) +__all__ = ("OrgRulesetConditionsOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0129.py b/githubkit/versions/v2022_11_28/models/group_0129.py index 1ac0648da..cee3b6868 100644 --- a/githubkit/versions/v2022_11_28/models/group_0129.py +++ b/githubkit/versions/v2022_11_28/models/group_0129.py @@ -9,27 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0130 import RepositoryRuleMergeQueuePropParameters +from .group_0120 import RepositoryRulesetConditionsPropRefName +from .group_0126 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) -class RepositoryRuleMergeQueue(GitHubModel): - """merge_queue +class OrgRulesetConditionsOneof2(GitHubModel): + """repository_property_and_ref_name - Merges must be performed via a merge queue. + Conditions to target repositories by property and refs by name """ - type: Literal["merge_queue"] = Field() - parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() -model_rebuild(RepositoryRuleMergeQueue) +model_rebuild(OrgRulesetConditionsOneof2) -__all__ = ("RepositoryRuleMergeQueue",) +__all__ = ("OrgRulesetConditionsOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0130.py b/githubkit/versions/v2022_11_28/models/group_0130.py index 152d1eb45..34a8b6a51 100644 --- a/githubkit/versions/v2022_11_28/models/group_0130.py +++ b/githubkit/versions/v2022_11_28/models/group_0130.py @@ -14,40 +14,100 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRuleMergeQueuePropParameters(GitHubModel): - """RepositoryRuleMergeQueuePropParameters""" +class RepositoryRuleCreation(GitHubModel): + """creation - check_response_timeout_minutes: int = Field( - le=360.0, - ge=1.0, - description="Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed", - ) - grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] = Field( - description="When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." - ) - max_entries_to_build: int = Field( - le=100.0, - description="Limit the number of queued pull requests requesting checks and workflow runs at the same time.", - ) - max_entries_to_merge: int = Field( - le=100.0, - description="The maximum number of PRs that will be merged together in a group.", - ) - merge_method: Literal["MERGE", "SQUASH", "REBASE"] = Field( - description="Method to use when merging changes from queued pull requests." - ) - min_entries_to_merge: int = Field( - le=100.0, - description="The minimum number of PRs that will be merged together in a group.", + Only allow users with bypass permission to create matching refs. + """ + + type: Literal["creation"] = Field() + + +class RepositoryRuleDeletion(GitHubModel): + """deletion + + Only allow users with bypass permissions to delete matching refs. + """ + + type: Literal["deletion"] = Field() + + +class RepositoryRuleRequiredSignatures(GitHubModel): + """required_signatures + + Commits pushed to matching refs must have verified signatures. + """ + + type: Literal["required_signatures"] = Field() + + +class RepositoryRuleNonFastForward(GitHubModel): + """non_fast_forward + + Prevent users with push access from force pushing to refs. + """ + + type: Literal["non_fast_forward"] = Field() + + +class RepositoryRuleOneof15(GitHubModel): + """file_path_restriction + + Prevent commits that include changes in specified file paths from being pushed + to the commit graph. + """ + + type: Literal["file_path_restriction"] = Field() + parameters: Missing[RepositoryRuleOneof15PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof15PropParameters(GitHubModel): + """RepositoryRuleOneof15PropParameters""" + + restricted_file_paths: list[str] = Field( + description="The file paths that are restricted from being pushed to the commit graph." ) - min_entries_to_merge_wait_minutes: int = Field( - le=360.0, - description="The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.", + + +class RepositoryRuleOneof17(GitHubModel): + """file_extension_restriction + + Prevent commits that include files with specified file extensions from being + pushed to the commit graph. + """ + + type: Literal["file_extension_restriction"] = Field() + parameters: Missing[RepositoryRuleOneof17PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof17PropParameters(GitHubModel): + """RepositoryRuleOneof17PropParameters""" + + restricted_file_extensions: list[str] = Field( + description="The file extensions that are restricted from being pushed to the commit graph." ) -model_rebuild(RepositoryRuleMergeQueuePropParameters) +model_rebuild(RepositoryRuleCreation) +model_rebuild(RepositoryRuleDeletion) +model_rebuild(RepositoryRuleRequiredSignatures) +model_rebuild(RepositoryRuleNonFastForward) +model_rebuild(RepositoryRuleOneof15) +model_rebuild(RepositoryRuleOneof15PropParameters) +model_rebuild(RepositoryRuleOneof17) +model_rebuild(RepositoryRuleOneof17PropParameters) -__all__ = ("RepositoryRuleMergeQueuePropParameters",) +__all__ = ( + "RepositoryRuleCreation", + "RepositoryRuleDeletion", + "RepositoryRuleNonFastForward", + "RepositoryRuleOneof15", + "RepositoryRuleOneof15PropParameters", + "RepositoryRuleOneof17", + "RepositoryRuleOneof17PropParameters", + "RepositoryRuleRequiredSignatures", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0131.py b/githubkit/versions/v2022_11_28/models/group_0131.py index 7b10043bb..438146fe4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0131.py +++ b/githubkit/versions/v2022_11_28/models/group_0131.py @@ -17,22 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0132 import RepositoryRuleRequiredDeploymentsPropParameters +from .group_0132 import RepositoryRuleUpdatePropParameters -class RepositoryRuleRequiredDeployments(GitHubModel): - """required_deployments +class RepositoryRuleUpdate(GitHubModel): + """update - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. + Only allow users with bypass permission to update matching refs. """ - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET - ) + type: Literal["update"] = Field() + parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleRequiredDeployments) +model_rebuild(RepositoryRuleUpdate) -__all__ = ("RepositoryRuleRequiredDeployments",) +__all__ = ("RepositoryRuleUpdate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0132.py b/githubkit/versions/v2022_11_28/models/group_0132.py index d174bdf82..24be869ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0132.py +++ b/githubkit/versions/v2022_11_28/models/group_0132.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): - """RepositoryRuleRequiredDeploymentsPropParameters""" +class RepositoryRuleUpdatePropParameters(GitHubModel): + """RepositoryRuleUpdatePropParameters""" - required_deployment_environments: list[str] = Field( - description="The environments that must be successfully deployed to before branches can be merged." + update_allows_fetch_and_merge: bool = Field( + description="Branch can pull changes from its upstream repository" ) -model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) +model_rebuild(RepositoryRuleUpdatePropParameters) -__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) +__all__ = ("RepositoryRuleUpdatePropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0133.py b/githubkit/versions/v2022_11_28/models/group_0133.py index 1d219c7c5..081a8320b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0133.py +++ b/githubkit/versions/v2022_11_28/models/group_0133.py @@ -9,29 +9,51 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRuleParamsRequiredReviewerConfiguration(GitHubModel): - """RequiredReviewerConfiguration +class RepositoryRuleRequiredLinearHistory(GitHubModel): + """required_linear_history - A reviewing team, and file patterns describing which files they must approve - changes to. + Prevent merge commits from being pushed to matching refs. """ - file_patterns: list[str] = Field( - description="Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use the same syntax as `.gitignore` files." - ) - minimum_approvals: int = Field( - description="Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional." - ) - reviewer_id: str = Field( - description="Node ID of the team which must review changes to matching files." + type: Literal["required_linear_history"] = Field() + + +class RepositoryRuleOneof16(GitHubModel): + """max_file_path_length + + Prevent commits that include file paths that exceed a specified character limit + from being pushed to the commit graph. + """ + + type: Literal["max_file_path_length"] = Field() + parameters: Missing[RepositoryRuleOneof16PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof16PropParameters(GitHubModel): + """RepositoryRuleOneof16PropParameters""" + + max_file_path_length: int = Field( + le=256.0, + ge=1.0, + description="The maximum amount of characters allowed in file paths", ) -model_rebuild(RepositoryRuleParamsRequiredReviewerConfiguration) +model_rebuild(RepositoryRuleRequiredLinearHistory) +model_rebuild(RepositoryRuleOneof16) +model_rebuild(RepositoryRuleOneof16PropParameters) -__all__ = ("RepositoryRuleParamsRequiredReviewerConfiguration",) +__all__ = ( + "RepositoryRuleOneof16", + "RepositoryRuleOneof16PropParameters", + "RepositoryRuleRequiredLinearHistory", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0134.py b/githubkit/versions/v2022_11_28/models/group_0134.py index 1f9de6652..ce3745a71 100644 --- a/githubkit/versions/v2022_11_28/models/group_0134.py +++ b/githubkit/versions/v2022_11_28/models/group_0134.py @@ -17,20 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0135 import RepositoryRulePullRequestPropParameters +from .group_0135 import RepositoryRuleMergeQueuePropParameters -class RepositoryRulePullRequest(GitHubModel): - """pull_request +class RepositoryRuleMergeQueue(GitHubModel): + """merge_queue - Require all commits be made to a non-target branch and submitted via a pull - request before they can be merged. + Merges must be performed via a merge queue. """ - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) + type: Literal["merge_queue"] = Field() + parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRulePullRequest) +model_rebuild(RepositoryRuleMergeQueue) -__all__ = ("RepositoryRulePullRequest",) +__all__ = ("RepositoryRuleMergeQueue",) diff --git a/githubkit/versions/v2022_11_28/models/group_0135.py b/githubkit/versions/v2022_11_28/models/group_0135.py index f8d05002a..152d1eb45 100644 --- a/githubkit/versions/v2022_11_28/models/group_0135.py +++ b/githubkit/versions/v2022_11_28/models/group_0135.py @@ -9,38 +9,45 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RepositoryRulePullRequestPropParameters(GitHubModel): - """RepositoryRulePullRequestPropParameters""" +class RepositoryRuleMergeQueuePropParameters(GitHubModel): + """RepositoryRuleMergeQueuePropParameters""" - allowed_merge_methods: Missing[list[str]] = Field( - default=UNSET, - description="When merging pull requests, you can allow any combination of merge commits, squashing, or rebasing. At least one option must be enabled.", + check_response_timeout_minutes: int = Field( + le=360.0, + ge=1.0, + description="Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed", + ) + grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] = Field( + description="When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." ) - dismiss_stale_reviews_on_push: bool = Field( - description="New, reviewable commits pushed will dismiss previous pull request review approvals." + max_entries_to_build: int = Field( + le=100.0, + description="Limit the number of queued pull requests requesting checks and workflow runs at the same time.", ) - require_code_owner_review: bool = Field( - description="Require an approving review in pull requests that modify files that have a designated code owner." + max_entries_to_merge: int = Field( + le=100.0, + description="The maximum number of PRs that will be merged together in a group.", ) - require_last_push_approval: bool = Field( - description="Whether the most recent reviewable push must be approved by someone other than the person who pushed it." + merge_method: Literal["MERGE", "SQUASH", "REBASE"] = Field( + description="Method to use when merging changes from queued pull requests." ) - required_approving_review_count: int = Field( - le=10.0, - description="The number of approving reviews that are required before a pull request can be merged.", + min_entries_to_merge: int = Field( + le=100.0, + description="The minimum number of PRs that will be merged together in a group.", ) - required_review_thread_resolution: bool = Field( - description="All conversations on code must be resolved before a pull request can be merged." + min_entries_to_merge_wait_minutes: int = Field( + le=360.0, + description="The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.", ) -model_rebuild(RepositoryRulePullRequestPropParameters) +model_rebuild(RepositoryRuleMergeQueuePropParameters) -__all__ = ("RepositoryRulePullRequestPropParameters",) +__all__ = ("RepositoryRuleMergeQueuePropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0136.py b/githubkit/versions/v2022_11_28/models/group_0136.py index d9146938a..b3baaee5a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0136.py +++ b/githubkit/versions/v2022_11_28/models/group_0136.py @@ -17,22 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0137 import RepositoryRuleRequiredStatusChecksPropParameters +from .group_0137 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleRequiredStatusChecks(GitHubModel): - """required_status_checks +class RepositoryRuleRequiredDeployments(GitHubModel): + """required_deployments - Choose which status checks must pass before the ref is updated. When enabled, - commits must first be pushed to another ref where the checks pass. + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. """ - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( + type: Literal["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleRequiredStatusChecks) +model_rebuild(RepositoryRuleRequiredDeployments) -__all__ = ("RepositoryRuleRequiredStatusChecks",) +__all__ = ("RepositoryRuleRequiredDeployments",) diff --git a/githubkit/versions/v2022_11_28/models/group_0137.py b/githubkit/versions/v2022_11_28/models/group_0137.py index 83288089b..d174bdf82 100644 --- a/githubkit/versions/v2022_11_28/models/group_0137.py +++ b/githubkit/versions/v2022_11_28/models/group_0137.py @@ -12,44 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): - """RepositoryRuleRequiredStatusChecksPropParameters""" +class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): + """RepositoryRuleRequiredDeploymentsPropParameters""" - do_not_enforce_on_create: Missing[bool] = Field( - default=UNSET, - description="Allow repositories and branches to be created if a check would otherwise prohibit it.", - ) - required_status_checks: list[RepositoryRuleParamsStatusCheckConfiguration] = Field( - description="Status checks that are required." - ) - strict_required_status_checks_policy: bool = Field( - description="Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled." - ) - - -class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): - """StatusCheckConfiguration - - Required status check - """ - - context: str = Field( - description="The status check context name that must be present on the commit." - ) - integration_id: Missing[int] = Field( - default=UNSET, - description="The optional integration ID that this status check must originate from.", + required_deployment_environments: list[str] = Field( + description="The environments that must be successfully deployed to before branches can be merged." ) -model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) -model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) +model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) -__all__ = ( - "RepositoryRuleParamsStatusCheckConfiguration", - "RepositoryRuleRequiredStatusChecksPropParameters", -) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0138.py b/githubkit/versions/v2022_11_28/models/group_0138.py index 0b4c77d50..1d219c7c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0138.py +++ b/githubkit/versions/v2022_11_28/models/group_0138.py @@ -9,29 +9,29 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0139 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleCommitMessagePattern(GitHubModel): - """commit_message_pattern +class RepositoryRuleParamsRequiredReviewerConfiguration(GitHubModel): + """RequiredReviewerConfiguration - Parameters to be used for the commit_message_pattern rule + A reviewing team, and file patterns describing which files they must approve + changes to. """ - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( - default=UNSET + file_patterns: list[str] = Field( + description="Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use the same syntax as `.gitignore` files." + ) + minimum_approvals: int = Field( + description="Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional." + ) + reviewer_id: str = Field( + description="Node ID of the team which must review changes to matching files." ) -model_rebuild(RepositoryRuleCommitMessagePattern) +model_rebuild(RepositoryRuleParamsRequiredReviewerConfiguration) -__all__ = ("RepositoryRuleCommitMessagePattern",) +__all__ = ("RepositoryRuleParamsRequiredReviewerConfiguration",) diff --git a/githubkit/versions/v2022_11_28/models/group_0139.py b/githubkit/versions/v2022_11_28/models/group_0139.py index 982c7c60e..a9787209b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0139.py +++ b/githubkit/versions/v2022_11_28/models/group_0139.py @@ -17,22 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0140 import RepositoryRulePullRequestPropParameters -class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): - """RepositoryRuleCommitMessagePatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." - ) - pattern: str = Field(description="The pattern to match with.") +class RepositoryRulePullRequest(GitHubModel): + """pull_request + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. + """ -model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) -__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) + +model_rebuild(RepositoryRulePullRequest) + +__all__ = ("RepositoryRulePullRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0140.py b/githubkit/versions/v2022_11_28/models/group_0140.py index 17e55fbdf..f8d05002a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0140.py +++ b/githubkit/versions/v2022_11_28/models/group_0140.py @@ -9,29 +9,38 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0141 import RepositoryRuleCommitAuthorEmailPatternPropParameters - -class RepositoryRuleCommitAuthorEmailPattern(GitHubModel): - """commit_author_email_pattern +class RepositoryRulePullRequestPropParameters(GitHubModel): + """RepositoryRulePullRequestPropParameters""" - Parameters to be used for the commit_author_email_pattern rule - """ - - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( - default=UNSET + allowed_merge_methods: Missing[list[str]] = Field( + default=UNSET, + description="When merging pull requests, you can allow any combination of merge commits, squashing, or rebasing. At least one option must be enabled.", + ) + dismiss_stale_reviews_on_push: bool = Field( + description="New, reviewable commits pushed will dismiss previous pull request review approvals." + ) + require_code_owner_review: bool = Field( + description="Require an approving review in pull requests that modify files that have a designated code owner." + ) + require_last_push_approval: bool = Field( + description="Whether the most recent reviewable push must be approved by someone other than the person who pushed it." + ) + required_approving_review_count: int = Field( + le=10.0, + description="The number of approving reviews that are required before a pull request can be merged.", + ) + required_review_thread_resolution: bool = Field( + description="All conversations on code must be resolved before a pull request can be merged." ) -model_rebuild(RepositoryRuleCommitAuthorEmailPattern) +model_rebuild(RepositoryRulePullRequestPropParameters) -__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) +__all__ = ("RepositoryRulePullRequestPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0141.py b/githubkit/versions/v2022_11_28/models/group_0141.py index a402d7764..a64239528 100644 --- a/githubkit/versions/v2022_11_28/models/group_0141.py +++ b/githubkit/versions/v2022_11_28/models/group_0141.py @@ -17,22 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0142 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." +class RepositoryRuleRequiredStatusChecks(GitHubModel): + """required_status_checks + + Choose which status checks must pass before the ref is updated. When enabled, + commits must first be pushed to another ref where the checks pass. + """ + + type: Literal["required_status_checks"] = Field() + parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( + default=UNSET ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) +model_rebuild(RepositoryRuleRequiredStatusChecks) -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) +__all__ = ("RepositoryRuleRequiredStatusChecks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0142.py b/githubkit/versions/v2022_11_28/models/group_0142.py index 322a78efc..83288089b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0142.py +++ b/githubkit/versions/v2022_11_28/models/group_0142.py @@ -9,29 +9,47 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0143 import RepositoryRuleCommitterEmailPatternPropParameters +class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): + """RepositoryRuleRequiredStatusChecksPropParameters""" -class RepositoryRuleCommitterEmailPattern(GitHubModel): - """committer_email_pattern + do_not_enforce_on_create: Missing[bool] = Field( + default=UNSET, + description="Allow repositories and branches to be created if a check would otherwise prohibit it.", + ) + required_status_checks: list[RepositoryRuleParamsStatusCheckConfiguration] = Field( + description="Status checks that are required." + ) + strict_required_status_checks_policy: bool = Field( + description="Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled." + ) - Parameters to be used for the committer_email_pattern rule + +class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): + """StatusCheckConfiguration + + Required status check """ - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( - default=UNSET + context: str = Field( + description="The status check context name that must be present on the commit." + ) + integration_id: Missing[int] = Field( + default=UNSET, + description="The optional integration ID that this status check must originate from.", ) -model_rebuild(RepositoryRuleCommitterEmailPattern) +model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) +model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) -__all__ = ("RepositoryRuleCommitterEmailPattern",) +__all__ = ( + "RepositoryRuleParamsStatusCheckConfiguration", + "RepositoryRuleRequiredStatusChecksPropParameters", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0143.py b/githubkit/versions/v2022_11_28/models/group_0143.py index 7652318a1..2353dbd53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0143.py +++ b/githubkit/versions/v2022_11_28/models/group_0143.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0144 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): - """RepositoryRuleCommitterEmailPatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." +class RepositoryRuleCommitMessagePattern(GitHubModel): + """commit_message_pattern + + Parameters to be used for the commit_message_pattern rule + """ + + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( + default=UNSET ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) +model_rebuild(RepositoryRuleCommitMessagePattern) -__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) +__all__ = ("RepositoryRuleCommitMessagePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0144.py b/githubkit/versions/v2022_11_28/models/group_0144.py index a907a9d1a..982c7c60e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0144.py +++ b/githubkit/versions/v2022_11_28/models/group_0144.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0145 import RepositoryRuleBranchNamePatternPropParameters +class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): + """RepositoryRuleCommitMessagePatternPropParameters""" -class RepositoryRuleBranchNamePattern(GitHubModel): - """branch_name_pattern - - Parameters to be used for the branch_name_pattern rule - """ - - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( - default=UNSET + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." + ) + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." + ) + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleBranchNamePattern) +model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) -__all__ = ("RepositoryRuleBranchNamePattern",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0145.py b/githubkit/versions/v2022_11_28/models/group_0145.py index b85419b00..bead3a1d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0145.py +++ b/githubkit/versions/v2022_11_28/models/group_0145.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0146 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): - """RepositoryRuleBranchNamePatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." +class RepositoryRuleCommitAuthorEmailPattern(GitHubModel): + """commit_author_email_pattern + + Parameters to be used for the commit_author_email_pattern rule + """ + + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( + default=UNSET ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleBranchNamePatternPropParameters) +model_rebuild(RepositoryRuleCommitAuthorEmailPattern) -__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) +__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0146.py b/githubkit/versions/v2022_11_28/models/group_0146.py index de1032bcc..a402d7764 100644 --- a/githubkit/versions/v2022_11_28/models/group_0146.py +++ b/githubkit/versions/v2022_11_28/models/group_0146.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0147 import RepositoryRuleTagNamePatternPropParameters +class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" -class RepositoryRuleTagNamePattern(GitHubModel): - """tag_name_pattern - - Parameters to be used for the tag_name_pattern rule - """ - - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( - default=UNSET + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." + ) + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." + ) + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleTagNamePattern) +model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) -__all__ = ("RepositoryRuleTagNamePattern",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0147.py b/githubkit/versions/v2022_11_28/models/group_0147.py index c8e4fb0a0..6c7c2c59a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0147.py +++ b/githubkit/versions/v2022_11_28/models/group_0147.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0148 import RepositoryRuleCommitterEmailPatternPropParameters -class RepositoryRuleTagNamePatternPropParameters(GitHubModel): - """RepositoryRuleTagNamePatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." +class RepositoryRuleCommitterEmailPattern(GitHubModel): + """committer_email_pattern + + Parameters to be used for the committer_email_pattern rule + """ + + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + default=UNSET ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleTagNamePatternPropParameters) +model_rebuild(RepositoryRuleCommitterEmailPattern) -__all__ = ("RepositoryRuleTagNamePatternPropParameters",) +__all__ = ("RepositoryRuleCommitterEmailPattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0148.py b/githubkit/versions/v2022_11_28/models/group_0148.py index 2482237a7..7652318a1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0148.py +++ b/githubkit/versions/v2022_11_28/models/group_0148.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,16 +18,21 @@ from githubkit.utils import UNSET -class RepositoryRuleParamsRestrictedCommits(GitHubModel): - """RestrictedCommits - - Restricted commit - """ +class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitterEmailPatternPropParameters""" - oid: str = Field(description="Full or abbreviated commit hash to reject") - reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." + ) + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." + ) + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." + ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleParamsRestrictedCommits) +model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) -__all__ = ("RepositoryRuleParamsRestrictedCommits",) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0149.py b/githubkit/versions/v2022_11_28/models/group_0149.py index 4229a2473..f232ce0f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0149.py +++ b/githubkit/versions/v2022_11_28/models/group_0149.py @@ -17,20 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import RepositoryRuleWorkflowsPropParameters +from .group_0150 import RepositoryRuleBranchNamePatternPropParameters -class RepositoryRuleWorkflows(GitHubModel): - """workflows +class RepositoryRuleBranchNamePattern(GitHubModel): + """branch_name_pattern - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. + Parameters to be used for the branch_name_pattern rule """ - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + default=UNSET + ) -model_rebuild(RepositoryRuleWorkflows) +model_rebuild(RepositoryRuleBranchNamePattern) -__all__ = ("RepositoryRuleWorkflows",) +__all__ = ("RepositoryRuleBranchNamePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0150.py b/githubkit/versions/v2022_11_28/models/group_0150.py index 56d86ff5b..b85419b00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0150.py +++ b/githubkit/versions/v2022_11_28/models/group_0150.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,40 +18,21 @@ from githubkit.utils import UNSET -class RepositoryRuleWorkflowsPropParameters(GitHubModel): - """RepositoryRuleWorkflowsPropParameters""" - - do_not_enforce_on_create: Missing[bool] = Field( - default=UNSET, - description="Allow repositories and branches to be created if a check would otherwise prohibit it.", - ) - workflows: list[RepositoryRuleParamsWorkflowFileReference] = Field( - description="Workflows that must pass for this rule to pass." - ) - - -class RepositoryRuleParamsWorkflowFileReference(GitHubModel): - """WorkflowFileReference - - A workflow that must run for this rule to pass - """ +class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): + """RepositoryRuleBranchNamePatternPropParameters""" - path: str = Field(description="The path to the workflow file") - ref: Missing[str] = Field( - default=UNSET, description="The ref (branch or tag) of the workflow file to use" + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." ) - repository_id: int = Field( - description="The ID of the repository where the workflow is defined" + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." ) - sha: Missing[str] = Field( - default=UNSET, description="The commit SHA of the workflow file to use" + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleWorkflowsPropParameters) -model_rebuild(RepositoryRuleParamsWorkflowFileReference) +model_rebuild(RepositoryRuleBranchNamePatternPropParameters) -__all__ = ( - "RepositoryRuleParamsWorkflowFileReference", - "RepositoryRuleWorkflowsPropParameters", -) +__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0151.py b/githubkit/versions/v2022_11_28/models/group_0151.py index 36b31069b..740b20634 100644 --- a/githubkit/versions/v2022_11_28/models/group_0151.py +++ b/githubkit/versions/v2022_11_28/models/group_0151.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0152 import RepositoryRuleCodeScanningPropParameters +from .group_0152 import RepositoryRuleTagNamePatternPropParameters -class RepositoryRuleCodeScanning(GitHubModel): - """code_scanning +class RepositoryRuleTagNamePattern(GitHubModel): + """tag_name_pattern - Choose which tools must provide code scanning results before the reference is - updated. When configured, code scanning must be enabled and have results for - both the commit and the reference being updated. + Parameters to be used for the tag_name_pattern rule """ - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + default=UNSET + ) -model_rebuild(RepositoryRuleCodeScanning) +model_rebuild(RepositoryRuleTagNamePattern) -__all__ = ("RepositoryRuleCodeScanning",) +__all__ = ("RepositoryRuleTagNamePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0152.py b/githubkit/versions/v2022_11_28/models/group_0152.py index 7ef71df16..c8e4fb0a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0152.py +++ b/githubkit/versions/v2022_11_28/models/group_0152.py @@ -14,37 +14,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRuleCodeScanningPropParameters(GitHubModel): - """RepositoryRuleCodeScanningPropParameters""" +class RepositoryRuleTagNamePatternPropParameters(GitHubModel): + """RepositoryRuleTagNamePatternPropParameters""" - code_scanning_tools: list[RepositoryRuleParamsCodeScanningTool] = Field( - description="Tools that must provide code scanning results for this rule to pass." + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." ) - - -class RepositoryRuleParamsCodeScanningTool(GitHubModel): - """CodeScanningTool - - A tool that must provide code scanning results for this rule to pass. - """ - - alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] = Field( - description='The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." ) - security_alerts_threshold: Literal[ - "none", "critical", "high_or_higher", "medium_or_higher", "all" - ] = Field( - description='The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) - tool: str = Field(description="The name of a code scanning tool") + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCodeScanningPropParameters) -model_rebuild(RepositoryRuleParamsCodeScanningTool) +model_rebuild(RepositoryRuleTagNamePatternPropParameters) -__all__ = ( - "RepositoryRuleCodeScanningPropParameters", - "RepositoryRuleParamsCodeScanningTool", -) +__all__ = ("RepositoryRuleTagNamePatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0153.py b/githubkit/versions/v2022_11_28/models/group_0153.py index b69749297..2482237a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0153.py +++ b/githubkit/versions/v2022_11_28/models/group_0153.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,31 +16,16 @@ from githubkit.utils import UNSET -class RepositoryRuleOneof18(GitHubModel): - """max_file_size +class RepositoryRuleParamsRestrictedCommits(GitHubModel): + """RestrictedCommits - Prevent commits that exceed a specified file size limit from being pushed to the - commit. + Restricted commit """ - type: Literal["max_file_size"] = Field() - parameters: Missing[RepositoryRuleOneof18PropParameters] = Field(default=UNSET) - - -class RepositoryRuleOneof18PropParameters(GitHubModel): - """RepositoryRuleOneof18PropParameters""" - - max_file_size: int = Field( - le=100.0, - ge=1.0, - description="The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).", - ) + oid: str = Field(description="Full or abbreviated commit hash to reject") + reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") -model_rebuild(RepositoryRuleOneof18) -model_rebuild(RepositoryRuleOneof18PropParameters) +model_rebuild(RepositoryRuleParamsRestrictedCommits) -__all__ = ( - "RepositoryRuleOneof18", - "RepositoryRuleOneof18PropParameters", -) +__all__ = ("RepositoryRuleParamsRestrictedCommits",) diff --git a/githubkit/versions/v2022_11_28/models/group_0154.py b/githubkit/versions/v2022_11_28/models/group_0154.py index f17ec2347..62e4caf35 100644 --- a/githubkit/versions/v2022_11_28/models/group_0154.py +++ b/githubkit/versions/v2022_11_28/models/group_0154.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,136 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0113 import RepositoryRulesetBypassActor -from .group_0114 import RepositoryRulesetConditions -from .group_0122 import OrgRulesetConditionsOneof0 -from .group_0123 import OrgRulesetConditionsOneof1 -from .group_0124 import OrgRulesetConditionsOneof2 -from .group_0125 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0126 import RepositoryRuleUpdate -from .group_0128 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0129 import RepositoryRuleMergeQueue -from .group_0131 import RepositoryRuleRequiredDeployments -from .group_0134 import RepositoryRulePullRequest -from .group_0136 import RepositoryRuleRequiredStatusChecks -from .group_0138 import RepositoryRuleCommitMessagePattern -from .group_0140 import RepositoryRuleCommitAuthorEmailPattern -from .group_0142 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleBranchNamePattern -from .group_0146 import RepositoryRuleTagNamePattern -from .group_0149 import RepositoryRuleWorkflows -from .group_0151 import RepositoryRuleCodeScanning -from .group_0153 import RepositoryRuleOneof18 +from .group_0155 import RepositoryRuleWorkflowsPropParameters -class RepositoryRuleset(GitHubModel): - """Repository ruleset +class RepositoryRuleWorkflows(GitHubModel): + """workflows - A set of rules to apply when specified conditions are met. + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - id: int = Field(description="The ID of the ruleset") - name: str = Field(description="The name of the ruleset") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - source_type: Missing[Literal["Repository", "Organization", "Enterprise"]] = Field( - default=UNSET, description="The type of the source of the ruleset" - ) - source: str = Field(description="The name of the source") - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - current_user_can_bypass: Missing[ - Literal["always", "pull_requests_only", "never"] - ] = Field( - default=UNSET, - description="The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.", - ) - node_id: Missing[str] = Field(default=UNSET) - links: Missing[RepositoryRulesetPropLinks] = Field(default=UNSET, alias="_links") - conditions: Missing[ - Union[ - RepositoryRulesetConditions, - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - None, - ] - ] = Field(default=UNSET) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) -class RepositoryRulesetPropLinks(GitHubModel): - """RepositoryRulesetPropLinks""" +model_rebuild(RepositoryRuleWorkflows) - self_: Missing[RepositoryRulesetPropLinksPropSelf] = Field( - default=UNSET, alias="self" - ) - html: Missing[Union[RepositoryRulesetPropLinksPropHtml, None]] = Field( - default=UNSET - ) - - -class RepositoryRulesetPropLinksPropSelf(GitHubModel): - """RepositoryRulesetPropLinksPropSelf""" - - href: Missing[str] = Field(default=UNSET, description="The URL of the ruleset") - - -class RepositoryRulesetPropLinksPropHtml(GitHubModel): - """RepositoryRulesetPropLinksPropHtml""" - - href: Missing[str] = Field(default=UNSET, description="The html URL of the ruleset") - - -model_rebuild(RepositoryRuleset) -model_rebuild(RepositoryRulesetPropLinks) -model_rebuild(RepositoryRulesetPropLinksPropSelf) -model_rebuild(RepositoryRulesetPropLinksPropHtml) - -__all__ = ( - "RepositoryRuleset", - "RepositoryRulesetPropLinks", - "RepositoryRulesetPropLinksPropHtml", - "RepositoryRulesetPropLinksPropSelf", -) +__all__ = ("RepositoryRuleWorkflows",) diff --git a/githubkit/versions/v2022_11_28/models/group_0155.py b/githubkit/versions/v2022_11_28/models/group_0155.py index a9156b530..56d86ff5b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0155.py +++ b/githubkit/versions/v2022_11_28/models/group_0155.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,46 +16,40 @@ from githubkit.utils import UNSET -class RuleSuitesItems(GitHubModel): - """RuleSuitesItems""" +class RepositoryRuleWorkflowsPropParameters(GitHubModel): + """RepositoryRuleWorkflowsPropParameters""" - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." - ) - actor_id: Missing[int] = Field( - default=UNSET, description="The number that identifies the user." - ) - actor_name: Missing[str] = Field( - default=UNSET, description="The handle for the GitHub user account." - ) - before_sha: Missing[str] = Field( - default=UNSET, description="The first commit sha before the push evaluation." + do_not_enforce_on_create: Missing[bool] = Field( + default=UNSET, + description="Allow repositories and branches to be created if a check would otherwise prohibit it.", ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." + workflows: list[RepositoryRuleParamsWorkflowFileReference] = Field( + description="Workflows that must pass for this rule to pass." ) + + +class RepositoryRuleParamsWorkflowFileReference(GitHubModel): + """WorkflowFileReference + + A workflow that must run for this rule to pass + """ + + path: str = Field(description="The path to the workflow file") ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository associated with the rule evaluation.", + default=UNSET, description="The ref (branch or tag) of the workflow file to use" ) - repository_name: Missing[str] = Field( - default=UNSET, - description="The name of the repository without the `.git` extension.", + repository_id: int = Field( + description="The ID of the repository where the workflow is defined" ) - pushed_at: Missing[datetime] = Field(default=UNSET) - result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` enforcement status.", - ) - evaluation_result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", + sha: Missing[str] = Field( + default=UNSET, description="The commit SHA of the workflow file to use" ) -model_rebuild(RuleSuitesItems) +model_rebuild(RepositoryRuleWorkflowsPropParameters) +model_rebuild(RepositoryRuleParamsWorkflowFileReference) -__all__ = ("RuleSuitesItems",) +__all__ = ( + "RepositoryRuleParamsWorkflowFileReference", + "RepositoryRuleWorkflowsPropParameters", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0156.py b/githubkit/versions/v2022_11_28/models/group_0156.py index 41bb0279e..738928edb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0156.py +++ b/githubkit/versions/v2022_11_28/models/group_0156.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,91 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0157 import RepositoryRuleCodeScanningPropParameters -class RuleSuite(GitHubModel): - """Rule Suite - Response - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." - ) - actor_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The number that identifies the user." - ) - actor_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The handle for the GitHub user account." - ) - before_sha: Missing[str] = Field( - default=UNSET, description="The first commit sha before the push evaluation." - ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." - ) - ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository associated with the rule evaluation.", - ) - repository_name: Missing[str] = Field( - default=UNSET, - description="The name of the repository without the `.git` extension.", - ) - pushed_at: Missing[datetime] = Field(default=UNSET) - result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` enforcement status.", - ) - evaluation_result: Missing[Union[None, Literal["pass", "fail", "bypass"]]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run.", - ) - rule_evaluations: Missing[list[RuleSuitePropRuleEvaluationsItems]] = Field( - default=UNSET, description="Details on the evaluated rules." - ) - - -class RuleSuitePropRuleEvaluationsItems(GitHubModel): - """RuleSuitePropRuleEvaluationsItems""" +class RepositoryRuleCodeScanning(GitHubModel): + """code_scanning - rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( - default=UNSET - ) - enforcement: Missing[Literal["active", "evaluate", "deleted ruleset"]] = Field( - default=UNSET, description="The enforcement level of this rule source." - ) - result: Missing[Literal["pass", "fail"]] = Field( - default=UNSET, - description="The result of the evaluation of the individual rule.", - ) - rule_type: Missing[str] = Field(default=UNSET, description="The type of rule.") - details: Missing[Union[str, None]] = Field( - default=UNSET, - description="The detailed failure message for the rule. Null if the rule passed.", - ) - - -class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + Choose which tools must provide code scanning results before the reference is + updated. When configured, code scanning must be enabled and have results for + both the commit and the reference being updated. + """ - type: Missing[str] = Field(default=UNSET, description="The type of rule source.") - id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of the rule source." - ) - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the rule source." - ) + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) -model_rebuild(RuleSuite) -model_rebuild(RuleSuitePropRuleEvaluationsItems) -model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) +model_rebuild(RepositoryRuleCodeScanning) -__all__ = ( - "RuleSuite", - "RuleSuitePropRuleEvaluationsItems", - "RuleSuitePropRuleEvaluationsItemsPropRuleSource", -) +__all__ = ("RepositoryRuleCodeScanning",) diff --git a/githubkit/versions/v2022_11_28/models/group_0157.py b/githubkit/versions/v2022_11_28/models/group_0157.py index 15db65155..7ef71df16 100644 --- a/githubkit/versions/v2022_11_28/models/group_0157.py +++ b/githubkit/versions/v2022_11_28/models/group_0157.py @@ -15,33 +15,36 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser +class RepositoryRuleCodeScanningPropParameters(GitHubModel): + """RepositoryRuleCodeScanningPropParameters""" + + code_scanning_tools: list[RepositoryRuleParamsCodeScanningTool] = Field( + description="Tools that must provide code scanning results for this rule to pass." + ) -class RepositoryAdvisoryCredit(GitHubModel): - """RepositoryAdvisoryCredit - A credit given to a user for a repository security advisory. +class RepositoryRuleParamsCodeScanningTool(GitHubModel): + """CodeScanningTool + + A tool that must provide code scanning results for this rule to pass. """ - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - state: Literal["accepted", "declined", "pending"] = Field( - description="The state of the user's acceptance of the credit." + alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] = Field( + description='The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + ) + security_alerts_threshold: Literal[ + "none", "critical", "high_or_higher", "medium_or_higher", "all" + ] = Field( + description='The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' ) + tool: str = Field(description="The name of a code scanning tool") -model_rebuild(RepositoryAdvisoryCredit) +model_rebuild(RepositoryRuleCodeScanningPropParameters) +model_rebuild(RepositoryRuleParamsCodeScanningTool) -__all__ = ("RepositoryAdvisoryCredit",) +__all__ = ( + "RepositoryRuleCodeScanningPropParameters", + "RepositoryRuleParamsCodeScanningTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0158.py b/githubkit/versions/v2022_11_28/models/group_0158.py index fecbd92d0..b69749297 100644 --- a/githubkit/versions/v2022_11_28/models/group_0158.py +++ b/githubkit/versions/v2022_11_28/models/group_0158.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal from pydantic import Field @@ -18,191 +17,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities -from .group_0002 import SimpleUser -from .group_0082 import Team -from .group_0157 import RepositoryAdvisoryCredit +class RepositoryRuleOneof18(GitHubModel): + """max_file_size -class RepositoryAdvisory(GitHubModel): - """RepositoryAdvisory - - A repository security advisory. + Prevent commits that exceed a specified file size limit from being pushed to the + commit. """ - ghsa_id: str = Field(description="The GitHub Security Advisory ID.") - cve_id: Union[str, None] = Field( - description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - url: str = Field(description="The API URL for the advisory.") - html_url: str = Field(description="The URL for the advisory.") - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: Union[Annotated[str, Field(max_length=65535)], None] = Field( - description="A detailed description of what the advisory entails." - ) - severity: Union[None, Literal["critical", "high", "medium", "low"]] = Field( - description="The severity of the advisory." - ) - author: None = Field(description="The author of the advisory.") - publisher: None = Field(description="The publisher of the advisory.") - identifiers: list[RepositoryAdvisoryPropIdentifiersItems] = Field() - state: Literal["published", "closed", "withdrawn", "draft", "triage"] = Field( - description="The state of the advisory." - ) - created_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was created, in ISO 8601 format." - ) - updated_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was last updated, in ISO 8601 format." - ) - published_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was published, in ISO 8601 format." - ) - closed_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was closed, in ISO 8601 format." - ) - withdrawn_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was withdrawn, in ISO 8601 format." - ) - submission: Union[RepositoryAdvisoryPropSubmission, None] = Field() - vulnerabilities: Union[list[RepositoryAdvisoryVulnerability], None] = Field() - cvss: Union[RepositoryAdvisoryPropCvss, None] = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: Union[list[RepositoryAdvisoryPropCwesItems], None] = Field() - cwe_ids: Union[list[str], None] = Field(description="A list of only the CWE IDs.") - credits_: Union[list[RepositoryAdvisoryPropCreditsItems], None] = Field( - alias="credits" - ) - credits_detailed: Union[list[RepositoryAdvisoryCredit], None] = Field() - collaborating_users: Union[list[SimpleUser], None] = Field( - description="A list of users that collaborate on the advisory." - ) - collaborating_teams: Union[list[Team], None] = Field( - description="A list of teams that collaborate on the advisory." - ) - private_fork: None = Field( - description="A temporary private fork of the advisory's repository for collaborating on a fix." - ) - + type: Literal["max_file_size"] = Field() + parameters: Missing[RepositoryRuleOneof18PropParameters] = Field(default=UNSET) -class RepositoryAdvisoryPropIdentifiersItems(GitHubModel): - """RepositoryAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") - value: str = Field(description="The identifier value.") - - -class RepositoryAdvisoryPropSubmission(GitHubModel): - """RepositoryAdvisoryPropSubmission""" - - accepted: bool = Field( - description="Whether a private vulnerability report was accepted by the repository's administrators." - ) +class RepositoryRuleOneof18PropParameters(GitHubModel): + """RepositoryRuleOneof18PropParameters""" -class RepositoryAdvisoryPropCvss(GitHubModel): - """RepositoryAdvisoryPropCvss""" - - vector_string: Union[str, None] = Field(description="The CVSS vector.") - score: Union[Annotated[float, Field(le=10.0)], None] = Field( - description="The CVSS score." - ) - - -class RepositoryAdvisoryPropCwesItems(GitHubModel): - """RepositoryAdvisoryPropCwesItems""" - - cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") - name: str = Field(description="The name of the CWE.") - - -class RepositoryAdvisoryPropCreditsItems(GitHubModel): - """RepositoryAdvisoryPropCreditsItems""" - - login: Missing[str] = Field( - default=UNSET, description="The username of the user credited." - ) - type: Missing[ - Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - ] = Field(default=UNSET, description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryVulnerability(GitHubModel): - """RepositoryAdvisoryVulnerability - - A product affected by the vulnerability detailed in a repository security - advisory. - """ - - package: Union[RepositoryAdvisoryVulnerabilityPropPackage, None] = Field( - description="The name of the package affected by the vulnerability." - ) - vulnerable_version_range: Union[str, None] = Field( - description="The range of the package versions affected by the vulnerability." - ) - patched_versions: Union[str, None] = Field( - description="The package version(s) that resolve the vulnerability." - ) - vulnerable_functions: Union[list[str], None] = Field( - description="The functions in the package that are affected." - ) - - -class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): - """RepositoryAdvisoryVulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Union[str, None] = Field( - description="The unique package name within its ecosystem." + max_file_size: int = Field( + le=100.0, + ge=1.0, + description="The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).", ) -model_rebuild(RepositoryAdvisory) -model_rebuild(RepositoryAdvisoryPropIdentifiersItems) -model_rebuild(RepositoryAdvisoryPropSubmission) -model_rebuild(RepositoryAdvisoryPropCvss) -model_rebuild(RepositoryAdvisoryPropCwesItems) -model_rebuild(RepositoryAdvisoryPropCreditsItems) -model_rebuild(RepositoryAdvisoryVulnerability) -model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) +model_rebuild(RepositoryRuleOneof18) +model_rebuild(RepositoryRuleOneof18PropParameters) __all__ = ( - "RepositoryAdvisory", - "RepositoryAdvisoryPropCreditsItems", - "RepositoryAdvisoryPropCvss", - "RepositoryAdvisoryPropCwesItems", - "RepositoryAdvisoryPropIdentifiersItems", - "RepositoryAdvisoryPropSubmission", - "RepositoryAdvisoryVulnerability", - "RepositoryAdvisoryVulnerabilityPropPackage", + "RepositoryRuleOneof18", + "RepositoryRuleOneof18PropParameters", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0159.py b/githubkit/versions/v2022_11_28/models/group_0159.py index 6546dd05e..7cbaaa08d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0159.py +++ b/githubkit/versions/v2022_11_28/models/group_0159.py @@ -9,99 +9,145 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0118 import RepositoryRulesetBypassActor +from .group_0119 import RepositoryRulesetConditions +from .group_0127 import OrgRulesetConditionsOneof0 +from .group_0128 import OrgRulesetConditionsOneof1 +from .group_0129 import OrgRulesetConditionsOneof2 +from .group_0130 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0131 import RepositoryRuleUpdate +from .group_0133 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0134 import RepositoryRuleMergeQueue +from .group_0136 import RepositoryRuleRequiredDeployments +from .group_0139 import RepositoryRulePullRequest +from .group_0141 import RepositoryRuleRequiredStatusChecks +from .group_0143 import RepositoryRuleCommitMessagePattern +from .group_0145 import RepositoryRuleCommitAuthorEmailPattern +from .group_0147 import RepositoryRuleCommitterEmailPattern +from .group_0149 import RepositoryRuleBranchNamePattern +from .group_0151 import RepositoryRuleTagNamePattern +from .group_0154 import RepositoryRuleWorkflows +from .group_0156 import RepositoryRuleCodeScanning +from .group_0158 import RepositoryRuleOneof18 -class ActionsBillingUsage(GitHubModel): - """ActionsBillingUsage""" - total_minutes_used: int = Field( - description="The sum of the free and paid GitHub Actions minutes used." - ) - total_paid_minutes_used: int = Field( - description="The total paid GitHub Actions minutes used." - ) - included_minutes: int = Field( - description="The amount of free GitHub Actions minutes available." - ) - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() +class RepositoryRuleset(GitHubModel): + """Repository ruleset + A set of rules to apply when specified conditions are met. + """ -class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): - """ActionsBillingUsagePropMinutesUsedBreakdown""" - - ubuntu: Missing[int] = Field( - default=UNSET, - alias="UBUNTU", - description="Total minutes used on Ubuntu runner machines.", - ) - macos: Missing[int] = Field( - default=UNSET, - alias="MACOS", - description="Total minutes used on macOS runner machines.", - ) - windows: Missing[int] = Field( - default=UNSET, - alias="WINDOWS", - description="Total minutes used on Windows runner machines.", - ) - ubuntu_4_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 4 core runner machines.", - ) - ubuntu_8_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 8 core runner machines.", - ) - ubuntu_16_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 16 core runner machines.", - ) - ubuntu_32_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 32 core runner machines.", + id: int = Field(description="The ID of the ruleset") + name: str = Field(description="The name of the ruleset") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" ) - ubuntu_64_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 64 core runner machines.", + source_type: Missing[Literal["Repository", "Organization", "Enterprise"]] = Field( + default=UNSET, description="The type of the source of the ruleset" ) - windows_4_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 4 core runner machines.", - ) - windows_8_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 8 core runner machines.", - ) - windows_16_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 16 core runner machines.", - ) - windows_32_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 32 core runner machines.", + source: str = Field(description="The name of the source") + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." ) - windows_64_core: Missing[int] = Field( + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="Total minutes used on Windows 64 core runner machines.", + description="The actors that can bypass the rules in this ruleset", ) - macos_12_core: Missing[int] = Field( + current_user_can_bypass: Missing[ + Literal["always", "pull_requests_only", "never"] + ] = Field( default=UNSET, - description="Total minutes used on macOS 12 core runner machines.", + description="The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.", + ) + node_id: Missing[str] = Field(default=UNSET) + links: Missing[RepositoryRulesetPropLinks] = Field(default=UNSET, alias="_links") + conditions: Missing[ + Union[ + RepositoryRulesetConditions, + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + None, + ] + ] = Field(default=UNSET) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + + +class RepositoryRulesetPropLinks(GitHubModel): + """RepositoryRulesetPropLinks""" + + self_: Missing[RepositoryRulesetPropLinksPropSelf] = Field( + default=UNSET, alias="self" ) - total: Missing[int] = Field( - default=UNSET, description="Total minutes used on all runner machines." + html: Missing[Union[RepositoryRulesetPropLinksPropHtml, None]] = Field( + default=UNSET ) -model_rebuild(ActionsBillingUsage) -model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) +class RepositoryRulesetPropLinksPropSelf(GitHubModel): + """RepositoryRulesetPropLinksPropSelf""" + + href: Missing[str] = Field(default=UNSET, description="The URL of the ruleset") + + +class RepositoryRulesetPropLinksPropHtml(GitHubModel): + """RepositoryRulesetPropLinksPropHtml""" + + href: Missing[str] = Field(default=UNSET, description="The html URL of the ruleset") + + +model_rebuild(RepositoryRuleset) +model_rebuild(RepositoryRulesetPropLinks) +model_rebuild(RepositoryRulesetPropLinksPropSelf) +model_rebuild(RepositoryRulesetPropLinksPropHtml) __all__ = ( - "ActionsBillingUsage", - "ActionsBillingUsagePropMinutesUsedBreakdown", + "RepositoryRuleset", + "RepositoryRulesetPropLinks", + "RepositoryRulesetPropLinksPropHtml", + "RepositoryRulesetPropLinksPropSelf", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0160.py b/githubkit/versions/v2022_11_28/models/group_0160.py index b7be403af..a9156b530 100644 --- a/githubkit/versions/v2022_11_28/models/group_0160.py +++ b/githubkit/versions/v2022_11_28/models/group_0160.py @@ -9,25 +9,56 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PackagesBillingUsage(GitHubModel): - """PackagesBillingUsage""" +class RuleSuitesItems(GitHubModel): + """RuleSuitesItems""" - total_gigabytes_bandwidth_used: int = Field( - description="Sum of the free and paid storage space (GB) for GitHuub Packages." + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." + ) + actor_id: Missing[int] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[str] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", ) - total_paid_gigabytes_bandwidth_used: int = Field( - description="Total paid storage space (GB) for GitHuub Packages." + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", ) - included_gigabytes_bandwidth: int = Field( - description="Free storage space (GB) for GitHub Packages." + evaluation_result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", ) -model_rebuild(PackagesBillingUsage) +model_rebuild(RuleSuitesItems) -__all__ = ("PackagesBillingUsage",) +__all__ = ("RuleSuitesItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0161.py b/githubkit/versions/v2022_11_28/models/group_0161.py index 7f2b2b444..41bb0279e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0161.py +++ b/githubkit/versions/v2022_11_28/models/group_0161.py @@ -9,25 +9,100 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class RuleSuite(GitHubModel): + """Rule Suite + + Response + """ + + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." + ) + actor_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", + ) + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", + ) + evaluation_result: Missing[Union[None, Literal["pass", "fail", "bypass"]]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run.", + ) + rule_evaluations: Missing[list[RuleSuitePropRuleEvaluationsItems]] = Field( + default=UNSET, description="Details on the evaluated rules." + ) -class CombinedBillingUsage(GitHubModel): - """CombinedBillingUsage""" +class RuleSuitePropRuleEvaluationsItems(GitHubModel): + """RuleSuitePropRuleEvaluationsItems""" - days_left_in_billing_cycle: int = Field( - description="Numbers of days left in billing cycle." + rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( + default=UNSET + ) + enforcement: Missing[Literal["active", "evaluate", "deleted ruleset"]] = Field( + default=UNSET, description="The enforcement level of this rule source." ) - estimated_paid_storage_for_month: int = Field( - description="Estimated storage space (GB) used in billing cycle." + result: Missing[Literal["pass", "fail"]] = Field( + default=UNSET, + description="The result of the evaluation of the individual rule.", + ) + rule_type: Missing[str] = Field(default=UNSET, description="The type of rule.") + details: Missing[Union[str, None]] = Field( + default=UNSET, + description="The detailed failure message for the rule. Null if the rule passed.", + ) + + +class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + + type: Missing[str] = Field(default=UNSET, description="The type of rule source.") + id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of the rule source." ) - estimated_storage_for_month: int = Field( - description="Estimated sum of free and paid storage space (GB) used in billing cycle." + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the rule source." ) -model_rebuild(CombinedBillingUsage) +model_rebuild(RuleSuite) +model_rebuild(RuleSuitePropRuleEvaluationsItems) +model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) -__all__ = ("CombinedBillingUsage",) +__all__ = ( + "RuleSuite", + "RuleSuitePropRuleEvaluationsItems", + "RuleSuitePropRuleEvaluationsItemsPropRuleSource", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0162.py b/githubkit/versions/v2022_11_28/models/group_0162.py index 482e0ed96..6eb920317 100644 --- a/githubkit/versions/v2022_11_28/models/group_0162.py +++ b/githubkit/versions/v2022_11_28/models/group_0162.py @@ -9,131 +9,39 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0081 import TeamSimple +from .group_0003 import SimpleUser -class TeamFull(GitHubModel): - """Full Team +class RepositoryAdvisoryCredit(GitHubModel): + """RepositoryAdvisoryCredit - Groups of organization members that gives permissions on specified repositories. + A credit given to a user for a repository security advisory. """ - id: int = Field(description="Unique identifier of the team") - node_id: str = Field() - url: str = Field(description="URL for the team") - html_url: str = Field() - name: str = Field(description="Name of the team") - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[Literal["closed", "secret"]] = Field( - default=UNSET, description="The level of privacy this team should have" + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + state: Literal["accepted", "declined", "pending"] = Field( + description="The state of the user's acceptance of the credit." ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET, description="The notification setting the team has set") - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - members_url: str = Field() - repositories_url: str = Field() - parent: Missing[Union[None, TeamSimple]] = Field(default=UNSET) - members_count: int = Field() - repos_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - organization: TeamOrganization = Field( - title="Team Organization", description="Team Organization" - ) - ldap_dn: Missing[str] = Field( - default=UNSET, - description="Distinguished Name (DN) that team maps to within LDAP environment", - ) - - -class TeamOrganization(GitHubModel): - """Team Organization - - Team Organization - """ - - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - blog: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - is_verified: Missing[bool] = Field(default=UNSET) - has_organization_projects: bool = Field() - has_repository_projects: bool = Field() - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - html_url: str = Field() - created_at: datetime = Field() - type: str = Field() - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - private_gists: Missing[Union[int, None]] = Field(default=UNSET) - disk_usage: Missing[Union[int, None]] = Field(default=UNSET) - collaborators: Missing[Union[int, None]] = Field(default=UNSET) - billing_email: Missing[Union[str, None]] = Field(default=UNSET) - plan: Missing[TeamOrganizationPropPlan] = Field(default=UNSET) - default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( - default=UNSET - ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() - - -class TeamOrganizationPropPlan(GitHubModel): - """TeamOrganizationPropPlan""" - - name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) -model_rebuild(TeamFull) -model_rebuild(TeamOrganization) -model_rebuild(TeamOrganizationPropPlan) +model_rebuild(RepositoryAdvisoryCredit) -__all__ = ( - "TeamFull", - "TeamOrganization", - "TeamOrganizationPropPlan", -) +__all__ = ("RepositoryAdvisoryCredit",) diff --git a/githubkit/versions/v2022_11_28/models/group_0163.py b/githubkit/versions/v2022_11_28/models/group_0163.py index ac165bb95..d8055fe4a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0163.py +++ b/githubkit/versions/v2022_11_28/models/group_0163.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,43 +18,191 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0039 import ReactionRollup +from .group_0001 import CvssSeverities +from .group_0003 import SimpleUser +from .group_0087 import Team +from .group_0162 import RepositoryAdvisoryCredit -class TeamDiscussion(GitHubModel): - """Team Discussion +class RepositoryAdvisory(GitHubModel): + """RepositoryAdvisory - A team discussion is a persistent record of a free-form conversation within a - team. + A repository security advisory. """ - author: Union[None, SimpleUser] = Field() - body: str = Field(description="The main text of the discussion.") - body_html: str = Field() - body_version: str = Field( - description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ghsa_id: str = Field(description="The GitHub Security Advisory ID.") + cve_id: Union[str, None] = Field( + description="The Common Vulnerabilities and Exposures (CVE) ID." ) - comments_count: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - last_edited_at: Union[datetime, None] = Field() - html_url: str = Field() - node_id: str = Field() - number: int = Field(description="The unique sequence number of a team discussion.") - pinned: bool = Field( - description="Whether or not this discussion should be pinned for easy retrieval." + url: str = Field(description="The API URL for the advisory.") + html_url: str = Field(description="The URL for the advisory.") + summary: str = Field( + max_length=1024, description="A short summary of the advisory." ) - private: bool = Field( - description="Whether or not this discussion should be restricted to team members and organization owners." + description: Union[Annotated[str, Field(max_length=65535)], None] = Field( + description="A detailed description of what the advisory entails." + ) + severity: Union[None, Literal["critical", "high", "medium", "low"]] = Field( + description="The severity of the advisory." + ) + author: None = Field(description="The author of the advisory.") + publisher: None = Field(description="The publisher of the advisory.") + identifiers: list[RepositoryAdvisoryPropIdentifiersItems] = Field() + state: Literal["published", "closed", "withdrawn", "draft", "triage"] = Field( + description="The state of the advisory." + ) + created_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was created, in ISO 8601 format." + ) + updated_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was last updated, in ISO 8601 format." + ) + published_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was published, in ISO 8601 format." + ) + closed_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was closed, in ISO 8601 format." + ) + withdrawn_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was withdrawn, in ISO 8601 format." + ) + submission: Union[RepositoryAdvisoryPropSubmission, None] = Field() + vulnerabilities: Union[list[RepositoryAdvisoryVulnerability], None] = Field() + cvss: Union[RepositoryAdvisoryPropCvss, None] = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + cwes: Union[list[RepositoryAdvisoryPropCwesItems], None] = Field() + cwe_ids: Union[list[str], None] = Field(description="A list of only the CWE IDs.") + credits_: Union[list[RepositoryAdvisoryPropCreditsItems], None] = Field( + alias="credits" + ) + credits_detailed: Union[list[RepositoryAdvisoryCredit], None] = Field() + collaborating_users: Union[list[SimpleUser], None] = Field( + description="A list of users that collaborate on the advisory." + ) + collaborating_teams: Union[list[Team], None] = Field( + description="A list of teams that collaborate on the advisory." + ) + private_fork: None = Field( + description="A temporary private fork of the advisory's repository for collaborating on a fix." + ) + + +class RepositoryAdvisoryPropIdentifiersItems(GitHubModel): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") + value: str = Field(description="The identifier value.") + + +class RepositoryAdvisoryPropSubmission(GitHubModel): + """RepositoryAdvisoryPropSubmission""" + + accepted: bool = Field( + description="Whether a private vulnerability report was accepted by the repository's administrators." + ) + + +class RepositoryAdvisoryPropCvss(GitHubModel): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] = Field(description="The CVSS vector.") + score: Union[Annotated[float, Field(le=10.0)], None] = Field( + description="The CVSS score." + ) + + +class RepositoryAdvisoryPropCwesItems(GitHubModel): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") + name: str = Field(description="The name of the CWE.") + + +class RepositoryAdvisoryPropCreditsItems(GitHubModel): + """RepositoryAdvisoryPropCreditsItems""" + + login: Missing[str] = Field( + default=UNSET, description="The username of the user credited." + ) + type: Missing[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] = Field(default=UNSET, description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryVulnerability(GitHubModel): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackage, None] = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Union[str, None] = Field( + description="The range of the package versions affected by the vulnerability." + ) + patched_versions: Union[str, None] = Field( + description="The package version(s) that resolve the vulnerability." + ) + vulnerable_functions: Union[list[str], None] = Field( + description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Union[str, None] = Field( + description="The unique package name within its ecosystem." ) - team_url: str = Field() - title: str = Field(description="The title of the discussion.") - updated_at: datetime = Field() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamDiscussion) +model_rebuild(RepositoryAdvisory) +model_rebuild(RepositoryAdvisoryPropIdentifiersItems) +model_rebuild(RepositoryAdvisoryPropSubmission) +model_rebuild(RepositoryAdvisoryPropCvss) +model_rebuild(RepositoryAdvisoryPropCwesItems) +model_rebuild(RepositoryAdvisoryPropCreditsItems) +model_rebuild(RepositoryAdvisoryVulnerability) +model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) -__all__ = ("TeamDiscussion",) +__all__ = ( + "RepositoryAdvisory", + "RepositoryAdvisoryPropCreditsItems", + "RepositoryAdvisoryPropCvss", + "RepositoryAdvisoryPropCwesItems", + "RepositoryAdvisoryPropIdentifiersItems", + "RepositoryAdvisoryPropSubmission", + "RepositoryAdvisoryVulnerability", + "RepositoryAdvisoryVulnerabilityPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0164.py b/githubkit/versions/v2022_11_28/models/group_0164.py index 09ee80adb..6546dd05e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0164.py +++ b/githubkit/versions/v2022_11_28/models/group_0164.py @@ -9,44 +9,99 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0039 import ReactionRollup +class ActionsBillingUsage(GitHubModel): + """ActionsBillingUsage""" + + total_minutes_used: int = Field( + description="The sum of the free and paid GitHub Actions minutes used." + ) + total_paid_minutes_used: int = Field( + description="The total paid GitHub Actions minutes used." + ) + included_minutes: int = Field( + description="The amount of free GitHub Actions minutes available." + ) + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() -class TeamDiscussionComment(GitHubModel): - """Team Discussion Comment - A reply to a discussion within a team. - """ +class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): + """ActionsBillingUsagePropMinutesUsedBreakdown""" - author: Union[None, SimpleUser] = Field() - body: str = Field(description="The main text of the comment.") - body_html: str = Field() - body_version: str = Field( - description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ubuntu: Missing[int] = Field( + default=UNSET, + alias="UBUNTU", + description="Total minutes used on Ubuntu runner machines.", + ) + macos: Missing[int] = Field( + default=UNSET, + alias="MACOS", + description="Total minutes used on macOS runner machines.", + ) + windows: Missing[int] = Field( + default=UNSET, + alias="WINDOWS", + description="Total minutes used on Windows runner machines.", + ) + ubuntu_4_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 4 core runner machines.", + ) + ubuntu_8_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 8 core runner machines.", + ) + ubuntu_16_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 16 core runner machines.", + ) + ubuntu_32_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 32 core runner machines.", + ) + ubuntu_64_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 64 core runner machines.", + ) + windows_4_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 4 core runner machines.", + ) + windows_8_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 8 core runner machines.", + ) + windows_16_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 16 core runner machines.", + ) + windows_32_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 32 core runner machines.", + ) + windows_64_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 64 core runner machines.", + ) + macos_12_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on macOS 12 core runner machines.", ) - created_at: datetime = Field() - last_edited_at: Union[datetime, None] = Field() - discussion_url: str = Field() - html_url: str = Field() - node_id: str = Field() - number: int = Field( - description="The unique sequence number of a team discussion comment." + total: Missing[int] = Field( + default=UNSET, description="Total minutes used on all runner machines." ) - updated_at: datetime = Field() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamDiscussionComment) +model_rebuild(ActionsBillingUsage) +model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) -__all__ = ("TeamDiscussionComment",) +__all__ = ( + "ActionsBillingUsage", + "ActionsBillingUsagePropMinutesUsedBreakdown", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0165.py b/githubkit/versions/v2022_11_28/models/group_0165.py index 694480c6d..b7be403af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0165.py +++ b/githubkit/versions/v2022_11_28/models/group_0165.py @@ -9,32 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser - - -class Reaction(GitHubModel): - """Reaction - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. - """ +class PackagesBillingUsage(GitHubModel): + """PackagesBillingUsage""" - id: int = Field() - node_id: str = Field() - user: Union[None, SimpleUser] = Field() - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field(description="The reaction to use") - created_at: datetime = Field() + total_gigabytes_bandwidth_used: int = Field( + description="Sum of the free and paid storage space (GB) for GitHuub Packages." + ) + total_paid_gigabytes_bandwidth_used: int = Field( + description="Total paid storage space (GB) for GitHuub Packages." + ) + included_gigabytes_bandwidth: int = Field( + description="Free storage space (GB) for GitHub Packages." + ) -model_rebuild(Reaction) +model_rebuild(PackagesBillingUsage) -__all__ = ("Reaction",) +__all__ = ("PackagesBillingUsage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0166.py b/githubkit/versions/v2022_11_28/models/group_0166.py index bf5d392cb..7f2b2b444 100644 --- a/githubkit/versions/v2022_11_28/models/group_0166.py +++ b/githubkit/versions/v2022_11_28/models/group_0166.py @@ -9,28 +9,25 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class TeamMembership(GitHubModel): - """Team Membership - - Team Membership - """ +class CombinedBillingUsage(GitHubModel): + """CombinedBillingUsage""" - url: str = Field() - role: Literal["member", "maintainer"] = Field( - default="member", description="The role of the user in the team." + days_left_in_billing_cycle: int = Field( + description="Numbers of days left in billing cycle." + ) + estimated_paid_storage_for_month: int = Field( + description="Estimated storage space (GB) used in billing cycle." ) - state: Literal["active", "pending"] = Field( - description="The state of the user's membership in the team." + estimated_storage_for_month: int = Field( + description="Estimated sum of free and paid storage space (GB) used in billing cycle." ) -model_rebuild(TeamMembership) +model_rebuild(CombinedBillingUsage) -__all__ = ("TeamMembership",) +__all__ = ("CombinedBillingUsage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0167.py b/githubkit/versions/v2022_11_28/models/group_0167.py index fb58fa012..cd1bede75 100644 --- a/githubkit/versions/v2022_11_28/models/group_0167.py +++ b/githubkit/versions/v2022_11_28/models/group_0167.py @@ -9,59 +9,35 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser - -class TeamProject(GitHubModel): - """Team Project +class NetworkSettings(GitHubModel): + """Hosted compute network settings resource - A team's access to a project. + A hosted compute network settings resource. """ - owner_url: str = Field() - url: str = Field() - html_url: str = Field() - columns_url: str = Field() - id: int = Field() - node_id: str = Field() - name: str = Field() - body: Union[str, None] = Field() - number: int = Field() - state: str = Field() - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: str = Field() - updated_at: str = Field() - organization_permission: Missing[str] = Field( - default=UNSET, - description="The organization permission for this project. Only present when owner is an organization.", + id: str = Field( + description="The unique identifier of the network settings resource." ) - private: Missing[bool] = Field( + network_configuration_id: Missing[str] = Field( default=UNSET, - description="Whether the project is private or not. Only present when owner is an organization.", + description="The identifier of the network configuration that is using this settings resource.", + ) + name: str = Field(description="The name of the network settings resource.") + subnet_id: str = Field( + description="The subnet this network settings resource is configured for." + ) + region: str = Field( + description="The location of the subnet this network settings resource is configured for." ) - permissions: TeamProjectPropPermissions = Field() - - -class TeamProjectPropPermissions(GitHubModel): - """TeamProjectPropPermissions""" - - read: bool = Field() - write: bool = Field() - admin: bool = Field() -model_rebuild(TeamProject) -model_rebuild(TeamProjectPropPermissions) +model_rebuild(NetworkSettings) -__all__ = ( - "TeamProject", - "TeamProjectPropPermissions", -) +__all__ = ("NetworkSettings",) diff --git a/githubkit/versions/v2022_11_28/models/group_0168.py b/githubkit/versions/v2022_11_28/models/group_0168.py index 3a0036823..87b722953 100644 --- a/githubkit/versions/v2022_11_28/models/group_0168.py +++ b/githubkit/versions/v2022_11_28/models/group_0168.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,154 +18,122 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0018 import LicenseSimple +from .group_0086 import TeamSimple -class TeamRepository(GitHubModel): - """Team Repository +class TeamFull(GitHubModel): + """Full Team - A team's access to a repository. + Groups of organization members that gives permissions on specified repositories. """ - id: int = Field(description="Unique identifier of the repository") + id: int = Field(description="Unique identifier of the team") node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - forks: int = Field() - permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) - role_name: Missing[str] = Field(default=UNSET) - owner: Union[None, SimpleUser] = Field() - private: bool = Field( - default=False, description="Whether the repository is private or public." - ) + url: str = Field(description="URL for the team") html_url: str = Field() + name: str = Field(description="Name of the team") + slug: str = Field() description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field() - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + privacy: Missing[Literal["closed", "secret"]] = Field( + default=UNSET, description="The level of privacy this team should have" ) - archived: bool = Field( - default=False, description="Whether the repository is archived." + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET, description="The notification setting the team has set") + permission: str = Field( + description="Permission that the team will have for its repositories" ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." + members_url: str = Field() + repositories_url: str = Field() + parent: Missing[Union[None, TeamSimple]] = Field(default=UNSET) + members_count: int = Field() + repos_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + organization: TeamOrganization = Field( + title="Team Organization", description="Team Organization" ) - visibility: Missing[str] = Field( + ldap_dn: Missing[str] = Field( default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." + description="Distinguished Name (DN) that team maps to within LDAP environment", ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + + +class TeamOrganization(GitHubModel): + """Team Organization + + Team Organization + """ + + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + blog: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + is_verified: Missing[bool] = Field(default=UNSET) + has_organization_projects: bool = Field() + has_repository_projects: bool = Field() + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + html_url: str = Field() + created_at: datetime = Field() + type: str = Field() + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + private_gists: Missing[Union[int, None]] = Field(default=UNSET) + disk_usage: Missing[Union[int, None]] = Field(default=UNSET) + collaborators: Missing[Union[int, None]] = Field(default=UNSET) + billing_email: Missing[Union[str, None]] = Field(default=UNSET) + plan: Missing[TeamOrganizationPropPlan] = Field(default=UNSET) + default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET ) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() -class TeamRepositoryPropPermissions(GitHubModel): - """TeamRepositoryPropPermissions""" +class TeamOrganizationPropPlan(GitHubModel): + """TeamOrganizationPropPlan""" - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) + name: str = Field() + space: int = Field() + private_repos: int = Field() + filled_seats: Missing[int] = Field(default=UNSET) + seats: Missing[int] = Field(default=UNSET) -model_rebuild(TeamRepository) -model_rebuild(TeamRepositoryPropPermissions) +model_rebuild(TeamFull) +model_rebuild(TeamOrganization) +model_rebuild(TeamOrganizationPropPlan) __all__ = ( - "TeamRepository", - "TeamRepositoryPropPermissions", + "TeamFull", + "TeamOrganization", + "TeamOrganizationPropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0169.py b/githubkit/versions/v2022_11_28/models/group_0169.py index 664ab555c..82b09c202 100644 --- a/githubkit/versions/v2022_11_28/models/group_0169.py +++ b/githubkit/versions/v2022_11_28/models/group_0169.py @@ -18,32 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0040 import ReactionRollup -class ProjectCard(GitHubModel): - """Project Card +class TeamDiscussion(GitHubModel): + """Team Discussion - Project cards represent a scope of work. + A team discussion is a persistent record of a free-form conversation within a + team. """ - url: str = Field() - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() + author: Union[None, SimpleUser] = Field() + body: str = Field(description="The main text of the discussion.") + body_html: str = Field() + body_version: str = Field( + description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ) + comments_count: int = Field() + comments_url: str = Field() created_at: datetime = Field() - updated_at: datetime = Field() - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" + last_edited_at: Union[datetime, None] = Field() + html_url: str = Field() + node_id: str = Field() + number: int = Field(description="The unique sequence number of a team discussion.") + pinned: bool = Field( + description="Whether or not this discussion should be pinned for easy retrieval." + ) + private: bool = Field( + description="Whether or not this discussion should be restricted to team members and organization owners." ) - column_name: Missing[str] = Field(default=UNSET) - project_id: Missing[str] = Field(default=UNSET) - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - project_url: str = Field() + team_url: str = Field() + title: str = Field(description="The title of the discussion.") + updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(ProjectCard) +model_rebuild(TeamDiscussion) -__all__ = ("ProjectCard",) +__all__ = ("TeamDiscussion",) diff --git a/githubkit/versions/v2022_11_28/models/group_0170.py b/githubkit/versions/v2022_11_28/models/group_0170.py index 08e6fd84f..521db1548 100644 --- a/githubkit/versions/v2022_11_28/models/group_0170.py +++ b/githubkit/versions/v2022_11_28/models/group_0170.py @@ -10,28 +10,43 @@ from __future__ import annotations from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0040 import ReactionRollup -class ProjectColumn(GitHubModel): - """Project Column - Project columns contain cards of work. +class TeamDiscussionComment(GitHubModel): + """Team Discussion Comment + + A reply to a discussion within a team. """ - url: str = Field() - project_url: str = Field() - cards_url: str = Field() - id: int = Field(description="The unique identifier of the project column") - node_id: str = Field() - name: str = Field(description="Name of the project column") + author: Union[None, SimpleUser] = Field() + body: str = Field(description="The main text of the comment.") + body_html: str = Field() + body_version: str = Field( + description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ) created_at: datetime = Field() + last_edited_at: Union[datetime, None] = Field() + discussion_url: str = Field() + html_url: str = Field() + node_id: str = Field() + number: int = Field( + description="The unique sequence number of a team discussion comment." + ) updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(ProjectColumn) +model_rebuild(TeamDiscussionComment) -__all__ = ("ProjectColumn",) +__all__ = ("TeamDiscussionComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0171.py b/githubkit/versions/v2022_11_28/models/group_0171.py index ac1506dc3..b14e4e21d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0171.py +++ b/githubkit/versions/v2022_11_28/models/group_0171.py @@ -9,25 +9,32 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser -class ProjectCollaboratorPermission(GitHubModel): - """Project Collaborator Permission +class Reaction(GitHubModel): + """Reaction - Project Collaborator Permission + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - permission: str = Field() + id: int = Field() + node_id: str = Field() user: Union[None, SimpleUser] = Field() + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field(description="The reaction to use") + created_at: datetime = Field() -model_rebuild(ProjectCollaboratorPermission) +model_rebuild(Reaction) -__all__ = ("ProjectCollaboratorPermission",) +__all__ = ("Reaction",) diff --git a/githubkit/versions/v2022_11_28/models/group_0172.py b/githubkit/versions/v2022_11_28/models/group_0172.py index 335b1a1b9..bf5d392cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0172.py +++ b/githubkit/versions/v2022_11_28/models/group_0172.py @@ -9,20 +9,28 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class RateLimit(GitHubModel): - """Rate Limit""" +class TeamMembership(GitHubModel): + """Team Membership + + Team Membership + """ - limit: int = Field() - remaining: int = Field() - reset: int = Field() - used: int = Field() + url: str = Field() + role: Literal["member", "maintainer"] = Field( + default="member", description="The role of the user in the team." + ) + state: Literal["active", "pending"] = Field( + description="The state of the user's membership in the team." + ) -model_rebuild(RateLimit) +model_rebuild(TeamMembership) -__all__ = ("RateLimit",) +__all__ = ("TeamMembership",) diff --git a/githubkit/versions/v2022_11_28/models/group_0173.py b/githubkit/versions/v2022_11_28/models/group_0173.py index fbfbf35f1..0c9701f5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0173.py +++ b/githubkit/versions/v2022_11_28/models/group_0173.py @@ -9,24 +9,59 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0172 import RateLimit -from .group_0174 import RateLimitOverviewPropResources +from .group_0003 import SimpleUser -class RateLimitOverview(GitHubModel): - """Rate Limit Overview +class TeamProject(GitHubModel): + """Team Project - Rate Limit Overview + A team's access to a project. """ - resources: RateLimitOverviewPropResources = Field() - rate: RateLimit = Field(title="Rate Limit") + owner_url: str = Field() + url: str = Field() + html_url: str = Field() + columns_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field() + body: Union[str, None] = Field() + number: int = Field() + state: str = Field() + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: str = Field() + updated_at: str = Field() + organization_permission: Missing[str] = Field( + default=UNSET, + description="The organization permission for this project. Only present when owner is an organization.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether the project is private or not. Only present when owner is an organization.", + ) + permissions: TeamProjectPropPermissions = Field() + + +class TeamProjectPropPermissions(GitHubModel): + """TeamProjectPropPermissions""" + + read: bool = Field() + write: bool = Field() + admin: bool = Field() -model_rebuild(RateLimitOverview) +model_rebuild(TeamProject) +model_rebuild(TeamProjectPropPermissions) -__all__ = ("RateLimitOverview",) +__all__ = ( + "TeamProject", + "TeamProjectPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0174.py b/githubkit/versions/v2022_11_28/models/group_0174.py index 9f3ccd300..640d1e96a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0174.py +++ b/githubkit/versions/v2022_11_28/models/group_0174.py @@ -9,33 +9,163 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0172 import RateLimit +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple + +class TeamRepository(GitHubModel): + """Team Repository -class RateLimitOverviewPropResources(GitHubModel): - """RateLimitOverviewPropResources""" + A team's access to a repository. + """ - core: RateLimit = Field(title="Rate Limit") - graphql: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - search: RateLimit = Field(title="Rate Limit") - code_search: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - source_import: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - integration_manifest: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - code_scanning_upload: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - actions_runner_registration: Missing[RateLimit] = Field( - default=UNSET, title="Rate Limit" + id: int = Field(description="Unique identifier of the repository") + node_id: str = Field() + name: str = Field(description="The name of the repository.") + full_name: str = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + forks: int = Field() + permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + owner: Union[None, SimpleUser] = Field() + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field() + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - scim: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - dependency_snapshots: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - code_scanning_autofix: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + + +class TeamRepositoryPropPermissions(GitHubModel): + """TeamRepositoryPropPermissions""" + + admin: bool = Field() + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) -model_rebuild(RateLimitOverviewPropResources) +model_rebuild(TeamRepository) +model_rebuild(TeamRepositoryPropPermissions) -__all__ = ("RateLimitOverviewPropResources",) +__all__ = ( + "TeamRepository", + "TeamRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0175.py b/githubkit/versions/v2022_11_28/models/group_0175.py index b73f0a010..8cdb479b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0175.py +++ b/githubkit/versions/v2022_11_28/models/group_0175.py @@ -18,40 +18,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class Artifact(GitHubModel): - """Artifact - An artifact +class ProjectCard(GitHubModel): + """Project Card + + Project cards represent a scope of work. """ - id: int = Field() - node_id: str = Field() - name: str = Field(description="The name of the artifact.") - size_in_bytes: int = Field(description="The size in bytes of the artifact.") url: str = Field() - archive_download_url: str = Field() - expired: bool = Field(description="Whether or not the artifact has expired.") - created_at: Union[datetime, None] = Field() - expires_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) - - -class ArtifactPropWorkflowRun(GitHubModel): - """ArtifactPropWorkflowRun""" - - id: Missing[int] = Field(default=UNSET) - repository_id: Missing[int] = Field(default=UNSET) - head_repository_id: Missing[int] = Field(default=UNSET) - head_branch: Missing[str] = Field(default=UNSET) - head_sha: Missing[str] = Field(default=UNSET) - - -model_rebuild(Artifact) -model_rebuild(ArtifactPropWorkflowRun) - -__all__ = ( - "Artifact", - "ArtifactPropWorkflowRun", -) + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" + ) + column_name: Missing[str] = Field(default=UNSET) + project_id: Missing[str] = Field(default=UNSET) + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + project_url: str = Field() + + +model_rebuild(ProjectCard) + +__all__ = ("ProjectCard",) diff --git a/githubkit/versions/v2022_11_28/models/group_0176.py b/githubkit/versions/v2022_11_28/models/group_0176.py index e8023d141..08e6fd84f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0176.py +++ b/githubkit/versions/v2022_11_28/models/group_0176.py @@ -14,38 +14,24 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ActionsCacheList(GitHubModel): - """Repository actions caches +class ProjectColumn(GitHubModel): + """Project Column - Repository actions caches + Project columns contain cards of work. """ - total_count: int = Field(description="Total number of caches") - actions_caches: list[ActionsCacheListPropActionsCachesItems] = Field( - description="Array of caches" - ) + url: str = Field() + project_url: str = Field() + cards_url: str = Field() + id: int = Field(description="The unique identifier of the project column") + node_id: str = Field() + name: str = Field(description="Name of the project column") + created_at: datetime = Field() + updated_at: datetime = Field() -class ActionsCacheListPropActionsCachesItems(GitHubModel): - """ActionsCacheListPropActionsCachesItems""" +model_rebuild(ProjectColumn) - id: Missing[int] = Field(default=UNSET) - ref: Missing[str] = Field(default=UNSET) - key: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - last_accessed_at: Missing[datetime] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - size_in_bytes: Missing[int] = Field(default=UNSET) - - -model_rebuild(ActionsCacheList) -model_rebuild(ActionsCacheListPropActionsCachesItems) - -__all__ = ( - "ActionsCacheList", - "ActionsCacheListPropActionsCachesItems", -) +__all__ = ("ProjectColumn",) diff --git a/githubkit/versions/v2022_11_28/models/group_0177.py b/githubkit/versions/v2022_11_28/models/group_0177.py index 2a7eb2be6..8665206a9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0177.py +++ b/githubkit/versions/v2022_11_28/models/group_0177.py @@ -9,102 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class Job(GitHubModel): - """Job - Information of a job execution in a workflow run - """ - - id: int = Field(description="The id of the job.") - run_id: int = Field(description="The id of the associated workflow run.") - run_url: str = Field() - run_attempt: Missing[int] = Field( - default=UNSET, - description="Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.", - ) - node_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being run.") - url: str = Field() - html_url: Union[str, None] = Field() - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] = Field(description="The phase of the lifecycle that the job is currently in.") - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field(description="The outcome of the job.") - created_at: datetime = Field( - description="The time that the job created, in ISO 8601 format." - ) - started_at: datetime = Field( - description="The time that the job started, in ISO 8601 format." - ) - completed_at: Union[datetime, None] = Field( - description="The time that the job finished, in ISO 8601 format." - ) - name: str = Field(description="The name of the job.") - steps: Missing[list[JobPropStepsItems]] = Field( - default=UNSET, description="Steps in this job." - ) - check_run_url: str = Field() - labels: list[str] = Field( - description='Labels for the workflow job. Specified by the "runs_on" attribute in the action\'s workflow file.' - ) - runner_id: Union[int, None] = Field( - description="The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_name: Union[str, None] = Field( - description="The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - head_branch: Union[str, None] = Field(description="The name of the current branch.") +class ProjectCollaboratorPermission(GitHubModel): + """Project Collaborator Permission + Project Collaborator Permission + """ -class JobPropStepsItems(GitHubModel): - """JobPropStepsItems""" - - status: Literal["queued", "in_progress", "completed"] = Field( - description="The phase of the lifecycle that the job is currently in." - ) - conclusion: Union[str, None] = Field(description="The outcome of the job.") - name: str = Field(description="The name of the job.") - number: int = Field() - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="The time that the step started, in ISO 8601 format." - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="The time that the job finished, in ISO 8601 format." - ) + permission: str = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(Job) -model_rebuild(JobPropStepsItems) +model_rebuild(ProjectCollaboratorPermission) -__all__ = ( - "Job", - "JobPropStepsItems", -) +__all__ = ("ProjectCollaboratorPermission",) diff --git a/githubkit/versions/v2022_11_28/models/group_0178.py b/githubkit/versions/v2022_11_28/models/group_0178.py index cceb6bb55..335b1a1b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0178.py +++ b/githubkit/versions/v2022_11_28/models/group_0178.py @@ -12,25 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OidcCustomSubRepo(GitHubModel): - """Actions OIDC subject customization for a repository +class RateLimit(GitHubModel): + """Rate Limit""" - Actions OIDC subject customization for a repository - """ + limit: int = Field() + remaining: int = Field() + reset: int = Field() + used: int = 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(RateLimit) -model_rebuild(OidcCustomSubRepo) - -__all__ = ("OidcCustomSubRepo",) +__all__ = ("RateLimit",) diff --git a/githubkit/versions/v2022_11_28/models/group_0179.py b/githubkit/versions/v2022_11_28/models/group_0179.py index 4e5c3a572..8866aeee5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0179.py +++ b/githubkit/versions/v2022_11_28/models/group_0179.py @@ -9,24 +9,24 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0178 import RateLimit +from .group_0180 import RateLimitOverviewPropResources + -class ActionsSecret(GitHubModel): - """Actions Secret +class RateLimitOverview(GitHubModel): + """Rate Limit Overview - Set secrets for GitHub Actions. + Rate Limit Overview """ - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + resources: RateLimitOverviewPropResources = Field() + rate: RateLimit = Field(title="Rate Limit") -model_rebuild(ActionsSecret) +model_rebuild(RateLimitOverview) -__all__ = ("ActionsSecret",) +__all__ = ("RateLimitOverview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0180.py b/githubkit/versions/v2022_11_28/models/group_0180.py index cb0c0f09c..13d52223e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0180.py +++ b/githubkit/versions/v2022_11_28/models/group_0180.py @@ -9,26 +9,33 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0178 import RateLimit -class ActionsVariable(GitHubModel): - """Actions Variable""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." +class RateLimitOverviewPropResources(GitHubModel): + """RateLimitOverviewPropResources""" + + core: RateLimit = Field(title="Rate Limit") + graphql: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + search: RateLimit = Field(title="Rate Limit") + code_search: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + source_import: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + integration_manifest: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + code_scanning_upload: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + actions_runner_registration: Missing[RateLimit] = Field( + default=UNSET, title="Rate Limit" ) + scim: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + dependency_snapshots: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + code_scanning_autofix: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") -model_rebuild(ActionsVariable) +model_rebuild(RateLimitOverviewPropResources) -__all__ = ("ActionsVariable",) +__all__ = ("RateLimitOverviewPropResources",) diff --git a/githubkit/versions/v2022_11_28/models/group_0181.py b/githubkit/versions/v2022_11_28/models/group_0181.py index 5079bcff0..b73f0a010 100644 --- a/githubkit/versions/v2022_11_28/models/group_0181.py +++ b/githubkit/versions/v2022_11_28/models/group_0181.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -18,22 +19,39 @@ from githubkit.utils import UNSET -class ActionsRepositoryPermissions(GitHubModel): - """ActionsRepositoryPermissions""" +class Artifact(GitHubModel): + """Artifact - 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.", - ) - selected_actions_url: Missing[str] = Field( - default=UNSET, - description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", - ) + An artifact + """ + id: int = Field() + node_id: str = Field() + name: str = Field(description="The name of the artifact.") + size_in_bytes: int = Field(description="The size in bytes of the artifact.") + url: str = Field() + archive_download_url: str = Field() + expired: bool = Field(description="Whether or not the artifact has expired.") + created_at: Union[datetime, None] = Field() + expires_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) -model_rebuild(ActionsRepositoryPermissions) -__all__ = ("ActionsRepositoryPermissions",) +class ArtifactPropWorkflowRun(GitHubModel): + """ArtifactPropWorkflowRun""" + + id: Missing[int] = Field(default=UNSET) + repository_id: Missing[int] = Field(default=UNSET) + head_repository_id: Missing[int] = Field(default=UNSET) + head_branch: Missing[str] = Field(default=UNSET) + head_sha: Missing[str] = Field(default=UNSET) + + +model_rebuild(Artifact) +model_rebuild(ArtifactPropWorkflowRun) + +__all__ = ( + "Artifact", + "ArtifactPropWorkflowRun", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0182.py b/githubkit/versions/v2022_11_28/models/group_0182.py index 3a917b352..e8023d141 100644 --- a/githubkit/versions/v2022_11_28/models/group_0182.py +++ b/githubkit/versions/v2022_11_28/models/group_0182.py @@ -9,21 +9,43 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ActionsWorkflowAccessToRepository(GitHubModel): - """ActionsWorkflowAccessToRepository""" +class ActionsCacheList(GitHubModel): + """Repository actions caches - access_level: Literal["none", "user", "organization"] = Field( - description="Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization." + Repository actions caches + """ + + total_count: int = Field(description="Total number of caches") + actions_caches: list[ActionsCacheListPropActionsCachesItems] = Field( + description="Array of caches" ) -model_rebuild(ActionsWorkflowAccessToRepository) +class ActionsCacheListPropActionsCachesItems(GitHubModel): + """ActionsCacheListPropActionsCachesItems""" + + id: Missing[int] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET) + key: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + last_accessed_at: Missing[datetime] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + size_in_bytes: Missing[int] = Field(default=UNSET) + + +model_rebuild(ActionsCacheList) +model_rebuild(ActionsCacheListPropActionsCachesItems) -__all__ = ("ActionsWorkflowAccessToRepository",) +__all__ = ( + "ActionsCacheList", + "ActionsCacheListPropActionsCachesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0183.py b/githubkit/versions/v2022_11_28/models/group_0183.py index 7ce075884..2a7eb2be6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0183.py +++ b/githubkit/versions/v2022_11_28/models/group_0183.py @@ -9,63 +9,102 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PullRequestMinimal(GitHubModel): - """Pull Request Minimal""" - - id: int = Field() - number: int = Field() - url: str = Field() - head: PullRequestMinimalPropHead = Field() - base: PullRequestMinimalPropBase = Field() - - -class PullRequestMinimalPropHead(GitHubModel): - """PullRequestMinimalPropHead""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropHeadPropRepo = Field() - +class Job(GitHubModel): + """Job -class PullRequestMinimalPropHeadPropRepo(GitHubModel): - """PullRequestMinimalPropHeadPropRepo""" + Information of a job execution in a workflow run + """ - id: int = Field() + id: int = Field(description="The id of the job.") + run_id: int = Field(description="The id of the associated workflow run.") + run_url: str = Field() + run_attempt: Missing[int] = Field( + default=UNSET, + description="Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.", + ) + node_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being run.") url: str = Field() - name: str = Field() - - -class PullRequestMinimalPropBase(GitHubModel): - """PullRequestMinimalPropBase""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropBasePropRepo = Field() - - -class PullRequestMinimalPropBasePropRepo(GitHubModel): - """PullRequestMinimalPropBasePropRepo""" - - id: int = Field() - url: str = Field() - name: str = Field() + html_url: Union[str, None] = Field() + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] = Field(description="The phase of the lifecycle that the job is currently in.") + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field(description="The outcome of the job.") + created_at: datetime = Field( + description="The time that the job created, in ISO 8601 format." + ) + started_at: datetime = Field( + description="The time that the job started, in ISO 8601 format." + ) + completed_at: Union[datetime, None] = Field( + description="The time that the job finished, in ISO 8601 format." + ) + name: str = Field(description="The name of the job.") + steps: Missing[list[JobPropStepsItems]] = Field( + default=UNSET, description="Steps in this job." + ) + check_run_url: str = Field() + labels: list[str] = Field( + description='Labels for the workflow job. Specified by the "runs_on" attribute in the action\'s workflow file.' + ) + runner_id: Union[int, None] = Field( + description="The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_name: Union[str, None] = Field( + description="The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + head_branch: Union[str, None] = Field(description="The name of the current branch.") + + +class JobPropStepsItems(GitHubModel): + """JobPropStepsItems""" + + status: Literal["queued", "in_progress", "completed"] = Field( + description="The phase of the lifecycle that the job is currently in." + ) + conclusion: Union[str, None] = Field(description="The outcome of the job.") + name: str = Field(description="The name of the job.") + number: int = Field() + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="The time that the step started, in ISO 8601 format." + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="The time that the job finished, in ISO 8601 format." + ) -model_rebuild(PullRequestMinimal) -model_rebuild(PullRequestMinimalPropHead) -model_rebuild(PullRequestMinimalPropHeadPropRepo) -model_rebuild(PullRequestMinimalPropBase) -model_rebuild(PullRequestMinimalPropBasePropRepo) +model_rebuild(Job) +model_rebuild(JobPropStepsItems) __all__ = ( - "PullRequestMinimal", - "PullRequestMinimalPropBase", - "PullRequestMinimalPropBasePropRepo", - "PullRequestMinimalPropHead", - "PullRequestMinimalPropHeadPropRepo", + "Job", + "JobPropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0184.py b/githubkit/versions/v2022_11_28/models/group_0184.py index 29f15097a..cceb6bb55 100644 --- a/githubkit/versions/v2022_11_28/models/group_0184.py +++ b/githubkit/versions/v2022_11_28/models/group_0184.py @@ -9,58 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class SimpleCommit(GitHubModel): - """Simple Commit +class OidcCustomSubRepo(GitHubModel): + """Actions OIDC subject customization for a repository - A commit. + Actions OIDC subject customization for a repository """ - id: str = Field(description="SHA for the commit") - tree_id: str = Field(description="SHA for the commit's tree") - message: str = Field(description="Message describing the purpose of the commit") - timestamp: datetime = Field(description="Timestamp of the commit") - author: Union[SimpleCommitPropAuthor, None] = Field( - description="Information about the Git author" + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." ) - committer: Union[SimpleCommitPropCommitter, None] = Field( - description="Information about the Git committer" + include_claim_keys: Missing[list[str]] = Field( + default=UNSET, + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", ) -class SimpleCommitPropAuthor(GitHubModel): - """SimpleCommitPropAuthor - - Information about the Git author - """ - - name: str = Field(description="Name of the commit's author") - email: str = Field(description="Git email address of the commit's author") - - -class SimpleCommitPropCommitter(GitHubModel): - """SimpleCommitPropCommitter - - Information about the Git committer - """ - - name: str = Field(description="Name of the commit's committer") - email: str = Field(description="Git email address of the commit's committer") - - -model_rebuild(SimpleCommit) -model_rebuild(SimpleCommitPropAuthor) -model_rebuild(SimpleCommitPropCommitter) +model_rebuild(OidcCustomSubRepo) -__all__ = ( - "SimpleCommit", - "SimpleCommitPropAuthor", - "SimpleCommitPropCommitter", -) +__all__ = ("OidcCustomSubRepo",) diff --git a/githubkit/versions/v2022_11_28/models/group_0185.py b/githubkit/versions/v2022_11_28/models/group_0185.py index 74354118b..4e5c3a572 100644 --- a/githubkit/versions/v2022_11_28/models/group_0185.py +++ b/githubkit/versions/v2022_11_28/models/group_0185.py @@ -10,115 +10,23 @@ from __future__ import annotations from datetime import datetime -from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0056 import MinimalRepository -from .group_0183 import PullRequestMinimal -from .group_0184 import SimpleCommit +class ActionsSecret(GitHubModel): + """Actions Secret -class WorkflowRun(GitHubModel): - """Workflow Run - - An invocation of a workflow + Set secrets for GitHub Actions. """ - id: int = Field(description="The ID of the workflow run.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow run." - ) - node_id: str = Field() - check_suite_id: Missing[int] = Field( - default=UNSET, description="The ID of the associated check suite." - ) - check_suite_node_id: Missing[str] = Field( - default=UNSET, description="The node ID of the associated check suite." - ) - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that points to the version of the workflow being run." - ) - path: str = Field(description="The full path of the workflow") - run_number: int = Field( - description="The auto incrementing run number for the workflow run." - ) - run_attempt: Missing[int] = Field( - default=UNSET, - description="Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.", - ) - referenced_workflows: Missing[Union[list[ReferencedWorkflow], None]] = Field( - default=UNSET - ) - event: str = Field() - status: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - workflow_id: int = Field(description="The ID of the parent workflow.") - url: str = Field(description="The URL to the workflow run.") - html_url: str = Field() - pull_requests: Union[list[PullRequestMinimal], None] = Field( - description="Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run." - ) + name: str = Field(description="The name of the secret.") created_at: datetime = Field() updated_at: datetime = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - triggering_actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - run_started_at: Missing[datetime] = Field( - default=UNSET, description="The start time of the latest run. Resets on re-run." - ) - jobs_url: str = Field(description="The URL to the jobs for the workflow run.") - logs_url: str = Field( - description="The URL to download the logs for the workflow run." - ) - check_suite_url: str = Field(description="The URL to the associated check suite.") - artifacts_url: str = Field( - description="The URL to the artifacts for the workflow run." - ) - cancel_url: str = Field(description="The URL to cancel the workflow run.") - rerun_url: str = Field(description="The URL to rerun the workflow run.") - previous_attempt_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="The URL to the previous attempted run of this workflow, if one exists.", - ) - workflow_url: str = Field(description="The URL to the workflow.") - head_commit: Union[None, SimpleCommit] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - head_repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - head_repository_id: Missing[int] = Field(default=UNSET) - display_title: str = Field( - description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow." - ) - - -class ReferencedWorkflow(GitHubModel): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str = Field() - sha: str = Field() - ref: Missing[str] = Field(default=UNSET) -model_rebuild(WorkflowRun) -model_rebuild(ReferencedWorkflow) +model_rebuild(ActionsSecret) -__all__ = ( - "ReferencedWorkflow", - "WorkflowRun", -) +__all__ = ("ActionsSecret",) diff --git a/githubkit/versions/v2022_11_28/models/group_0186.py b/githubkit/versions/v2022_11_28/models/group_0186.py index e5d5dd672..cb0c0f09c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0186.py +++ b/githubkit/versions/v2022_11_28/models/group_0186.py @@ -10,57 +10,25 @@ from __future__ import annotations from datetime import datetime -from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class ActionsVariable(GitHubModel): + """Actions Variable""" -class EnvironmentApprovals(GitHubModel): - """Environment Approval - - An entry in the reviews log for environment deployments - """ - - environments: list[EnvironmentApprovalsPropEnvironmentsItems] = Field( - description="The list of environments that were approved or rejected" - ) - state: Literal["approved", "rejected", "pending"] = Field( - description="Whether deployment to the environment(s) was approved or rejected or pending (with comments)" - ) - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - comment: str = Field(description="The comment submitted with the deployment review") - - -class EnvironmentApprovalsPropEnvironmentsItems(GitHubModel): - """EnvironmentApprovalsPropEnvironmentsItems""" - - id: Missing[int] = Field(default=UNSET, description="The id of the environment.") - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, description="The name of the environment." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the environment was created, in ISO 8601 format.", + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + created_at: datetime = Field( + description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the environment was last updated, in ISO 8601 format.", + updated_at: datetime = Field( + description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) -model_rebuild(EnvironmentApprovals) -model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) +model_rebuild(ActionsVariable) -__all__ = ( - "EnvironmentApprovals", - "EnvironmentApprovalsPropEnvironmentsItems", -) +__all__ = ("ActionsVariable",) diff --git a/githubkit/versions/v2022_11_28/models/group_0187.py b/githubkit/versions/v2022_11_28/models/group_0187.py index 831ca354e..5079bcff0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0187.py +++ b/githubkit/versions/v2022_11_28/models/group_0187.py @@ -9,22 +9,31 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReviewCustomGatesCommentRequired(GitHubModel): - """ReviewCustomGatesCommentRequired""" +class ActionsRepositoryPermissions(GitHubModel): + """ActionsRepositoryPermissions""" - environment_name: str = Field( - description="The name of the environment to approve or reject." + 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.", ) - comment: str = Field( - description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" + selected_actions_url: Missing[str] = Field( + default=UNSET, + description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", ) -model_rebuild(ReviewCustomGatesCommentRequired) +model_rebuild(ActionsRepositoryPermissions) -__all__ = ("ReviewCustomGatesCommentRequired",) +__all__ = ("ActionsRepositoryPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0188.py b/githubkit/versions/v2022_11_28/models/group_0188.py index 382e4485a..3a917b352 100644 --- a/githubkit/versions/v2022_11_28/models/group_0188.py +++ b/githubkit/versions/v2022_11_28/models/group_0188.py @@ -14,24 +14,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReviewCustomGatesStateRequired(GitHubModel): - """ReviewCustomGatesStateRequired""" +class ActionsWorkflowAccessToRepository(GitHubModel): + """ActionsWorkflowAccessToRepository""" - environment_name: str = Field( - description="The name of the environment to approve or reject." - ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." - ) - comment: Missing[str] = Field( - default=UNSET, description="Optional comment to include with the review." + access_level: Literal["none", "user", "organization"] = Field( + description="Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization." ) -model_rebuild(ReviewCustomGatesStateRequired) +model_rebuild(ActionsWorkflowAccessToRepository) -__all__ = ("ReviewCustomGatesStateRequired",) +__all__ = ("ActionsWorkflowAccessToRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0189.py b/githubkit/versions/v2022_11_28/models/group_0189.py index aee6d5463..7ce075884 100644 --- a/githubkit/versions/v2022_11_28/models/group_0189.py +++ b/githubkit/versions/v2022_11_28/models/group_0189.py @@ -9,65 +9,63 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0082 import Team +class PullRequestMinimal(GitHubModel): + """Pull Request Minimal""" + + id: int = Field() + number: int = Field() + url: str = Field() + head: PullRequestMinimalPropHead = Field() + base: PullRequestMinimalPropBase = Field() + + +class PullRequestMinimalPropHead(GitHubModel): + """PullRequestMinimalPropHead""" + + ref: str = Field() + sha: str = Field() + repo: PullRequestMinimalPropHeadPropRepo = Field() -class PendingDeploymentPropReviewersItems(GitHubModel): - """PendingDeploymentPropReviewersItems""" - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." - ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) +class PullRequestMinimalPropHeadPropRepo(GitHubModel): + """PullRequestMinimalPropHeadPropRepo""" + id: int = Field() + url: str = Field() + name: str = Field() -class PendingDeployment(GitHubModel): - """Pending Deployment - Details of a deployment that is waiting for protection rules to pass - """ +class PullRequestMinimalPropBase(GitHubModel): + """PullRequestMinimalPropBase""" - environment: PendingDeploymentPropEnvironment = Field() - wait_timer: int = Field(description="The set duration of the wait timer") - wait_timer_started_at: Union[datetime, None] = Field( - description="The time that the wait timer began." - ) - current_user_can_approve: bool = Field( - description="Whether the currently authenticated user can approve the deployment" - ) - reviewers: list[PendingDeploymentPropReviewersItems] = Field( - description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed." - ) + ref: str = Field() + sha: str = Field() + repo: PullRequestMinimalPropBasePropRepo = Field() -class PendingDeploymentPropEnvironment(GitHubModel): - """PendingDeploymentPropEnvironment""" +class PullRequestMinimalPropBasePropRepo(GitHubModel): + """PullRequestMinimalPropBasePropRepo""" - id: Missing[int] = Field(default=UNSET, description="The id of the environment.") - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, description="The name of the environment." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + url: str = Field() + name: str = Field() -model_rebuild(PendingDeploymentPropReviewersItems) -model_rebuild(PendingDeployment) -model_rebuild(PendingDeploymentPropEnvironment) +model_rebuild(PullRequestMinimal) +model_rebuild(PullRequestMinimalPropHead) +model_rebuild(PullRequestMinimalPropHeadPropRepo) +model_rebuild(PullRequestMinimalPropBase) +model_rebuild(PullRequestMinimalPropBasePropRepo) __all__ = ( - "PendingDeployment", - "PendingDeploymentPropEnvironment", - "PendingDeploymentPropReviewersItems", + "PullRequestMinimal", + "PullRequestMinimalPropBase", + "PullRequestMinimalPropBasePropRepo", + "PullRequestMinimalPropHead", + "PullRequestMinimalPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0190.py b/githubkit/versions/v2022_11_28/models/group_0190.py index 9e8156e8c..29f15097a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0190.py +++ b/githubkit/versions/v2022_11_28/models/group_0190.py @@ -14,58 +14,53 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0008 import Integration +class SimpleCommit(GitHubModel): + """Simple Commit -class Deployment(GitHubModel): - """Deployment - - A request for a specific ref(branch,sha,tag) to be deployed + A commit. """ - url: str = Field() - id: int = Field(description="Unique identifier of the deployment") - node_id: str = Field() - sha: str = Field() - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or sha." - ) - task: str = Field(description="Parameter to specify a task to execute") - payload: Union[DeploymentPropPayloadOneof0, str] = Field() - original_environment: Missing[str] = Field(default=UNSET) - environment: str = Field(description="Name for the target deployment environment.") - description: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - statuses_url: str = Field() - repository_url: str = Field() - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: false.", + id: str = Field(description="SHA for the commit") + tree_id: str = Field(description="SHA for the commit's tree") + message: str = Field(description="Message describing the purpose of the commit") + timestamp: datetime = Field(description="Timestamp of the commit") + author: Union[SimpleCommitPropAuthor, None] = Field( + description="Information about the Git author" ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + committer: Union[SimpleCommitPropCommitter, None] = Field( + description="Information about the Git committer" ) -class DeploymentPropPayloadOneof0(ExtraGitHubModel): - """DeploymentPropPayloadOneof0""" +class SimpleCommitPropAuthor(GitHubModel): + """SimpleCommitPropAuthor + + Information about the Git author + """ + + name: str = Field(description="Name of the commit's author") + email: str = Field(description="Git email address of the commit's author") + + +class SimpleCommitPropCommitter(GitHubModel): + """SimpleCommitPropCommitter + + Information about the Git committer + """ + + name: str = Field(description="Name of the commit's committer") + email: str = Field(description="Git email address of the commit's committer") -model_rebuild(Deployment) -model_rebuild(DeploymentPropPayloadOneof0) +model_rebuild(SimpleCommit) +model_rebuild(SimpleCommitPropAuthor) +model_rebuild(SimpleCommitPropCommitter) __all__ = ( - "Deployment", - "DeploymentPropPayloadOneof0", + "SimpleCommit", + "SimpleCommitPropAuthor", + "SimpleCommitPropCommitter", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0191.py b/githubkit/versions/v2022_11_28/models/group_0191.py index c81b4fcb7..35cf8c76c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0191.py +++ b/githubkit/versions/v2022_11_28/models/group_0191.py @@ -9,104 +9,116 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0057 import MinimalRepository +from .group_0189 import PullRequestMinimal +from .group_0190 import SimpleCommit -class WorkflowRunUsage(GitHubModel): - """Workflow Run Usage - - Workflow Run Usage - """ - billable: WorkflowRunUsagePropBillable = Field() - run_duration_ms: Missing[int] = Field(default=UNSET) +class WorkflowRun(GitHubModel): + """Workflow Run + An invocation of a workflow + """ -class WorkflowRunUsagePropBillable(GitHubModel): - """WorkflowRunUsagePropBillable""" - - ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" + id: int = Field(description="The ID of the workflow run.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow run." ) - macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" + node_id: str = Field() + check_suite_id: Missing[int] = Field( + default=UNSET, description="The ID of the associated check suite." ) - windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" + check_suite_node_id: Missing[str] = Field( + default=UNSET, description="The node ID of the associated check suite." ) - - -class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntu""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( - Field(default=UNSET) + head_branch: Union[str, None] = Field() + head_sha: str = Field( + description="The SHA of the head commit that points to the version of the workflow being run." ) - - -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -class WorkflowRunUsagePropBillablePropMacos(GitHubModel): - """WorkflowRunUsagePropBillablePropMacos""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( - Field(default=UNSET) + path: str = Field(description="The full path of the workflow") + run_number: int = Field( + description="The auto incrementing run number for the workflow run." ) - - -class WorkflowRunUsagePropBillablePropMacosPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -class WorkflowRunUsagePropBillablePropWindows(GitHubModel): - """WorkflowRunUsagePropBillablePropWindows""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems]] = ( - Field(default=UNSET) + run_attempt: Missing[int] = Field( + default=UNSET, + description="Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.", + ) + referenced_workflows: Missing[Union[list[ReferencedWorkflow], None]] = Field( + default=UNSET + ) + event: str = Field() + status: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + workflow_id: int = Field(description="The ID of the parent workflow.") + url: str = Field(description="The URL to the workflow run.") + html_url: str = Field() + pull_requests: Union[list[PullRequestMinimal], None] = Field( + description="Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + triggering_actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + run_started_at: Missing[datetime] = Field( + default=UNSET, description="The start time of the latest run. Resets on re-run." + ) + jobs_url: str = Field(description="The URL to the jobs for the workflow run.") + logs_url: str = Field( + description="The URL to download the logs for the workflow run." + ) + check_suite_url: str = Field(description="The URL to the associated check suite.") + artifacts_url: str = Field( + description="The URL to the artifacts for the workflow run." + ) + cancel_url: str = Field(description="The URL to cancel the workflow run.") + rerun_url: str = Field(description="The URL to rerun the workflow run.") + previous_attempt_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The URL to the previous attempted run of this workflow, if one exists.", + ) + workflow_url: str = Field(description="The URL to the workflow.") + head_commit: Union[None, SimpleCommit] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + head_repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + head_repository_id: Missing[int] = Field(default=UNSET) + display_title: str = Field( + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow." ) -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" +class ReferencedWorkflow(GitHubModel): + """Referenced workflow + + A workflow referenced/reused by the initial caller workflow + """ - job_id: int = Field() - duration_ms: int = Field() + path: str = Field() + sha: str = Field() + ref: Missing[str] = Field(default=UNSET) -model_rebuild(WorkflowRunUsage) -model_rebuild(WorkflowRunUsagePropBillable) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropMacos) -model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropWindows) -model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) +model_rebuild(WorkflowRun) +model_rebuild(ReferencedWorkflow) __all__ = ( - "WorkflowRunUsage", - "WorkflowRunUsagePropBillable", - "WorkflowRunUsagePropBillablePropMacos", - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", - "WorkflowRunUsagePropBillablePropUbuntu", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", - "WorkflowRunUsagePropBillablePropWindows", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", + "ReferencedWorkflow", + "WorkflowRun", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0192.py b/githubkit/versions/v2022_11_28/models/group_0192.py index f5831c47a..f9c274d60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0192.py +++ b/githubkit/versions/v2022_11_28/models/group_0192.py @@ -9,64 +9,58 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser + -class WorkflowUsage(GitHubModel): - """Workflow Usage +class EnvironmentApprovals(GitHubModel): + """Environment Approval - Workflow Usage + An entry in the reviews log for environment deployments """ - billable: WorkflowUsagePropBillable = Field() + environments: list[EnvironmentApprovalsPropEnvironmentsItems] = Field( + description="The list of environments that were approved or rejected" + ) + state: Literal["approved", "rejected", "pending"] = Field( + description="Whether deployment to the environment(s) was approved or rejected or pending (with comments)" + ) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + comment: str = Field(description="The comment submitted with the deployment review") -class WorkflowUsagePropBillable(GitHubModel): - """WorkflowUsagePropBillable""" +class EnvironmentApprovalsPropEnvironmentsItems(GitHubModel): + """EnvironmentApprovalsPropEnvironmentsItems""" - ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" + id: Missing[int] = Field(default=UNSET, description="The id of the environment.") + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, description="The name of the environment." ) - macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the environment was created, in ISO 8601 format.", ) - windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the environment was last updated, in ISO 8601 format.", ) -class WorkflowUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowUsagePropBillablePropUbuntu""" - - total_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowUsagePropBillablePropMacos(GitHubModel): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowUsagePropBillablePropWindows(GitHubModel): - """WorkflowUsagePropBillablePropWindows""" - - total_ms: Missing[int] = Field(default=UNSET) - - -model_rebuild(WorkflowUsage) -model_rebuild(WorkflowUsagePropBillable) -model_rebuild(WorkflowUsagePropBillablePropUbuntu) -model_rebuild(WorkflowUsagePropBillablePropMacos) -model_rebuild(WorkflowUsagePropBillablePropWindows) +model_rebuild(EnvironmentApprovals) +model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) __all__ = ( - "WorkflowUsage", - "WorkflowUsagePropBillable", - "WorkflowUsagePropBillablePropMacos", - "WorkflowUsagePropBillablePropUbuntu", - "WorkflowUsagePropBillablePropWindows", + "EnvironmentApprovals", + "EnvironmentApprovalsPropEnvironmentsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0193.py b/githubkit/versions/v2022_11_28/models/group_0193.py index cbeafcc6d..831ca354e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0193.py +++ b/githubkit/versions/v2022_11_28/models/group_0193.py @@ -9,41 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser - -class Activity(GitHubModel): - """Activity +class ReviewCustomGatesCommentRequired(GitHubModel): + """ReviewCustomGatesCommentRequired""" - Activity - """ - - id: int = Field() - node_id: str = Field() - before: str = Field(description="The SHA of the commit before the activity.") - after: str = Field(description="The SHA of the commit after the activity.") - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + environment_name: str = Field( + description="The name of the environment to approve or reject." + ) + comment: str = Field( + description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" ) - timestamp: datetime = Field(description="The time when the activity occurred.") - activity_type: Literal[ - "push", - "force_push", - "branch_deletion", - "branch_creation", - "pr_merge", - "merge_queue_merge", - ] = Field(description="The type of the activity that was performed.") - actor: Union[None, SimpleUser] = Field() -model_rebuild(Activity) +model_rebuild(ReviewCustomGatesCommentRequired) -__all__ = ("Activity",) +__all__ = ("ReviewCustomGatesCommentRequired",) diff --git a/githubkit/versions/v2022_11_28/models/group_0194.py b/githubkit/versions/v2022_11_28/models/group_0194.py index 245d14611..382e4485a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0194.py +++ b/githubkit/versions/v2022_11_28/models/group_0194.py @@ -9,27 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class Autolink(GitHubModel): - """Autolink reference - - An autolink reference. - """ +class ReviewCustomGatesStateRequired(GitHubModel): + """ReviewCustomGatesStateRequired""" - id: int = Field() - key_prefix: str = Field(description="The prefix of a key that is linkified.") - url_template: str = Field( - description="A template for the target URL that is generated if a key was found." + environment_name: str = Field( + description="The name of the environment to approve or reject." + ) + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." ) - is_alphanumeric: bool = Field( - description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." + comment: Missing[str] = Field( + default=UNSET, description="Optional comment to include with the review." ) -model_rebuild(Autolink) +model_rebuild(ReviewCustomGatesStateRequired) -__all__ = ("Autolink",) +__all__ = ("ReviewCustomGatesStateRequired",) diff --git a/githubkit/versions/v2022_11_28/models/group_0195.py b/githubkit/versions/v2022_11_28/models/group_0195.py index 481ac164d..1962a4587 100644 --- a/githubkit/versions/v2022_11_28/models/group_0195.py +++ b/githubkit/versions/v2022_11_28/models/group_0195.py @@ -9,25 +9,65 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0087 import Team + + +class PendingDeploymentPropReviewersItems(GitHubModel): + """PendingDeploymentPropReviewersItems""" + + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." + ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -class CheckAutomatedSecurityFixes(GitHubModel): - """Check Dependabot security updates +class PendingDeployment(GitHubModel): + """Pending Deployment - Check Dependabot security updates + Details of a deployment that is waiting for protection rules to pass """ - enabled: bool = Field( - description="Whether Dependabot security updates are enabled for the repository." + environment: PendingDeploymentPropEnvironment = Field() + wait_timer: int = Field(description="The set duration of the wait timer") + wait_timer_started_at: Union[datetime, None] = Field( + description="The time that the wait timer began." ) - paused: bool = Field( - description="Whether Dependabot security updates are paused for the repository." + current_user_can_approve: bool = Field( + description="Whether the currently authenticated user can approve the deployment" + ) + reviewers: list[PendingDeploymentPropReviewersItems] = Field( + description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed." + ) + + +class PendingDeploymentPropEnvironment(GitHubModel): + """PendingDeploymentPropEnvironment""" + + id: Missing[int] = Field(default=UNSET, description="The id of the environment.") + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, description="The name of the environment." ) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) -model_rebuild(CheckAutomatedSecurityFixes) +model_rebuild(PendingDeploymentPropReviewersItems) +model_rebuild(PendingDeployment) +model_rebuild(PendingDeploymentPropEnvironment) -__all__ = ("CheckAutomatedSecurityFixes",) +__all__ = ( + "PendingDeployment", + "PendingDeploymentPropEnvironment", + "PendingDeploymentPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0196.py b/githubkit/versions/v2022_11_28/models/group_0196.py index a60776ded..37c49059f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0196.py +++ b/githubkit/versions/v2022_11_28/models/group_0196.py @@ -9,43 +9,63 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0197 import ( - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, - ProtectedBranchPullRequestReviewPropDismissalRestrictions, -) +from .group_0003 import SimpleUser +from .group_0010 import Integration -class ProtectedBranchPullRequestReview(GitHubModel): - """Protected Branch Pull Request Review +class Deployment(GitHubModel): + """Deployment - Protected Branch Pull Request Review + A request for a specific ref(branch,sha,tag) to be deployed """ - url: Missing[str] = Field(default=UNSET) - dismissal_restrictions: Missing[ - ProtectedBranchPullRequestReviewPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - ] = Field( + url: str = Field() + id: int = Field(description="Unique identifier of the deployment") + node_id: str = Field() + sha: str = Field() + ref: str = Field( + description="The ref to deploy. This can be a branch, tag, or sha." + ) + task: str = Field(description="Parameter to specify a task to execute") + payload: Union[DeploymentPropPayloadOneof0, str] = Field() + original_environment: Missing[str] = Field(default=UNSET) + environment: str = Field(description="Name for the target deployment environment.") + description: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + statuses_url: str = Field() + repository_url: str = Field() + transient_environment: Missing[bool] = Field( default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", + description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", ) - dismiss_stale_reviews: bool = Field() - require_code_owner_reviews: bool = Field() - required_approving_review_count: Missing[int] = Field(le=6.0, default=UNSET) - require_last_push_approval: Missing[bool] = Field( + production_environment: Missing[bool] = Field( default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it.", + description="Specifies if the given environment is one that end-users directly interact with. Default: false.", + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) -model_rebuild(ProtectedBranchPullRequestReview) +class DeploymentPropPayloadOneof0(ExtraGitHubModel): + """DeploymentPropPayloadOneof0""" -__all__ = ("ProtectedBranchPullRequestReview",) + +model_rebuild(Deployment) +model_rebuild(DeploymentPropPayloadOneof0) + +__all__ = ( + "Deployment", + "DeploymentPropPayloadOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0197.py b/githubkit/versions/v2022_11_28/models/group_0197.py index 37ae72eaa..c81b4fcb7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0197.py +++ b/githubkit/versions/v2022_11_28/models/group_0197.py @@ -9,60 +9,104 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0082 import Team + +class WorkflowRunUsage(GitHubModel): + """Workflow Run Usage + + Workflow Run Usage + """ + + billable: WorkflowRunUsagePropBillable = Field() + run_duration_ms: Missing[int] = Field(default=UNSET) -class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" +class WorkflowRunUsagePropBillable(GitHubModel): + """WorkflowRunUsagePropBillable""" - users: Missing[list[SimpleUser]] = Field( - default=UNSET, description="The list of users with review dismissal access." + ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" ) - teams: Missing[list[Team]] = Field( - default=UNSET, description="The list of teams with review dismissal access." + macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" ) - apps: Missing[list[Union[Integration, None]]] = Field( - default=UNSET, description="The list of apps with review dismissal access." + windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" ) - url: Missing[str] = Field(default=UNSET) - users_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) -class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances(GitHubModel): - """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances +class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntu""" - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[list[SimpleUser]] = Field( - default=UNSET, - description="The list of users allowed to bypass pull request requirements.", + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( + Field(default=UNSET) ) - teams: Missing[list[Team]] = Field( - default=UNSET, - description="The list of teams allowed to bypass pull request requirements.", + + +class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropMacos(GitHubModel): + """WorkflowRunUsagePropBillablePropMacos""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( + Field(default=UNSET) ) - apps: Missing[list[Union[Integration, None]]] = Field( - default=UNSET, - description="The list of apps allowed to bypass pull request requirements.", + + +class WorkflowRunUsagePropBillablePropMacosPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropWindows(GitHubModel): + """WorkflowRunUsagePropBillablePropWindows""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems]] = ( + Field(default=UNSET) ) -model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) -model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +model_rebuild(WorkflowRunUsage) +model_rebuild(WorkflowRunUsagePropBillable) +model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) +model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) +model_rebuild(WorkflowRunUsagePropBillablePropMacos) +model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) +model_rebuild(WorkflowRunUsagePropBillablePropWindows) +model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) __all__ = ( - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", - "ProtectedBranchPullRequestReviewPropDismissalRestrictions", + "WorkflowRunUsage", + "WorkflowRunUsagePropBillable", + "WorkflowRunUsagePropBillablePropMacos", + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", + "WorkflowRunUsagePropBillablePropUbuntu", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", + "WorkflowRunUsagePropBillablePropWindows", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0198.py b/githubkit/versions/v2022_11_28/models/group_0198.py index b02082cc4..f5831c47a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0198.py +++ b/githubkit/versions/v2022_11_28/models/group_0198.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,133 +16,57 @@ from githubkit.utils import UNSET -class BranchRestrictionPolicy(GitHubModel): - """Branch Restriction Policy +class WorkflowUsage(GitHubModel): + """Workflow Usage - Branch Restriction Policy + Workflow Usage """ - url: str = Field() - users_url: str = Field() - teams_url: str = Field() - apps_url: str = Field() - users: list[BranchRestrictionPolicyPropUsersItems] = Field() - teams: list[BranchRestrictionPolicyPropTeamsItems] = Field() - apps: list[BranchRestrictionPolicyPropAppsItems] = Field() - - -class BranchRestrictionPolicyPropUsersItems(GitHubModel): - """BranchRestrictionPolicyPropUsersItems""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropTeamsItems(GitHubModel): - """BranchRestrictionPolicyPropTeamsItems""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - privacy: Missing[str] = Field(default=UNSET) - notification_setting: Missing[str] = Field(default=UNSET) - permission: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - parent: Missing[Union[str, None]] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItems(GitHubModel): - """BranchRestrictionPolicyPropAppsItems""" - - id: Missing[int] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - owner: Missing[BranchRestrictionPolicyPropAppsItemsPropOwner] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - client_id: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - external_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[BranchRestrictionPolicyPropAppsItemsPropPermissions] = Field( - default=UNSET + billable: WorkflowUsagePropBillable = Field() + + +class WorkflowUsagePropBillable(GitHubModel): + """WorkflowUsagePropBillable""" + + ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" + ) + macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" ) - events: Missing[list[str]] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropOwner(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: Missing[str] = Field(default=UNSET) - contents: Missing[str] = Field(default=UNSET) - issues: Missing[str] = Field(default=UNSET) - single_file: Missing[str] = Field(default=UNSET) - - -model_rebuild(BranchRestrictionPolicy) -model_rebuild(BranchRestrictionPolicyPropUsersItems) -model_rebuild(BranchRestrictionPolicyPropTeamsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) + windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" + ) + + +class WorkflowUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowUsagePropBillablePropUbuntu""" + + total_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowUsagePropBillablePropMacos(GitHubModel): + """WorkflowUsagePropBillablePropMacos""" + + total_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowUsagePropBillablePropWindows(GitHubModel): + """WorkflowUsagePropBillablePropWindows""" + + total_ms: Missing[int] = Field(default=UNSET) + + +model_rebuild(WorkflowUsage) +model_rebuild(WorkflowUsagePropBillable) +model_rebuild(WorkflowUsagePropBillablePropUbuntu) +model_rebuild(WorkflowUsagePropBillablePropMacos) +model_rebuild(WorkflowUsagePropBillablePropWindows) __all__ = ( - "BranchRestrictionPolicy", - "BranchRestrictionPolicyPropAppsItems", - "BranchRestrictionPolicyPropAppsItemsPropOwner", - "BranchRestrictionPolicyPropAppsItemsPropPermissions", - "BranchRestrictionPolicyPropTeamsItems", - "BranchRestrictionPolicyPropUsersItems", + "WorkflowUsage", + "WorkflowUsagePropBillable", + "WorkflowUsagePropBillablePropMacos", + "WorkflowUsagePropBillablePropUbuntu", + "WorkflowUsagePropBillablePropWindows", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0199.py b/githubkit/versions/v2022_11_28/models/group_0199.py index 3c43413e2..49966c29c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0199.py +++ b/githubkit/versions/v2022_11_28/models/group_0199.py @@ -9,184 +9,41 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0196 import ProtectedBranchPullRequestReview -from .group_0198 import BranchRestrictionPolicy +from .group_0003 import SimpleUser -class BranchProtection(GitHubModel): - """Branch Protection +class Activity(GitHubModel): + """Activity - Branch Protection + Activity """ - url: Missing[str] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) - required_status_checks: Missing[ProtectedBranchRequiredStatusCheck] = Field( - default=UNSET, - title="Protected Branch Required Status Check", - description="Protected Branch Required Status Check", + id: int = Field() + node_id: str = Field() + before: str = Field(description="The SHA of the commit before the activity.") + after: str = Field(description="The SHA of the commit after the activity.") + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." ) - enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( - default=UNSET, - title="Protected Branch Admin Enforced", - description="Protected Branch Admin Enforced", - ) - required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( - default=UNSET, - title="Protected Branch Pull Request Review", - description="Protected Branch Pull Request Review", - ) - restrictions: Missing[BranchRestrictionPolicy] = Field( - default=UNSET, - title="Branch Restriction Policy", - description="Branch Restriction Policy", - ) - required_linear_history: Missing[BranchProtectionPropRequiredLinearHistory] = Field( - default=UNSET - ) - allow_force_pushes: Missing[BranchProtectionPropAllowForcePushes] = Field( - default=UNSET - ) - allow_deletions: Missing[BranchProtectionPropAllowDeletions] = Field(default=UNSET) - block_creations: Missing[BranchProtectionPropBlockCreations] = Field(default=UNSET) - required_conversation_resolution: Missing[ - BranchProtectionPropRequiredConversationResolution - ] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - protection_url: Missing[str] = Field(default=UNSET) - required_signatures: Missing[BranchProtectionPropRequiredSignatures] = Field( - default=UNSET - ) - lock_branch: Missing[BranchProtectionPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - - -class ProtectedBranchAdminEnforced(GitHubModel): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced - """ - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropRequiredLinearHistory(GitHubModel): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForcePushes(GitHubModel): - """BranchProtectionPropAllowForcePushes""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowDeletions(GitHubModel): - """BranchProtectionPropAllowDeletions""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropBlockCreations(GitHubModel): - """BranchProtectionPropBlockCreations""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredConversationResolution(GitHubModel): - """BranchProtectionPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredSignatures(GitHubModel): - """BranchProtectionPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropLockBranch(GitHubModel): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForkSyncing(GitHubModel): - """BranchProtectionPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheck(GitHubModel): - """Protected Branch Required Status Check - - Protected Branch Required Status Check - """ - - url: Missing[str] = Field(default=UNSET) - enforcement_level: Missing[str] = Field(default=UNSET) - contexts: list[str] = Field() - checks: list[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() - contexts_url: Missing[str] = Field(default=UNSET) - strict: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() + timestamp: datetime = Field(description="The time when the activity occurred.") + activity_type: Literal[ + "push", + "force_push", + "branch_deletion", + "branch_creation", + "pr_merge", + "merge_queue_merge", + ] = Field(description="The type of the activity that was performed.") + actor: Union[None, SimpleUser] = Field() -model_rebuild(BranchProtection) -model_rebuild(ProtectedBranchAdminEnforced) -model_rebuild(BranchProtectionPropRequiredLinearHistory) -model_rebuild(BranchProtectionPropAllowForcePushes) -model_rebuild(BranchProtectionPropAllowDeletions) -model_rebuild(BranchProtectionPropBlockCreations) -model_rebuild(BranchProtectionPropRequiredConversationResolution) -model_rebuild(BranchProtectionPropRequiredSignatures) -model_rebuild(BranchProtectionPropLockBranch) -model_rebuild(BranchProtectionPropAllowForkSyncing) -model_rebuild(ProtectedBranchRequiredStatusCheck) -model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) +model_rebuild(Activity) -__all__ = ( - "BranchProtection", - "BranchProtectionPropAllowDeletions", - "BranchProtectionPropAllowForcePushes", - "BranchProtectionPropAllowForkSyncing", - "BranchProtectionPropBlockCreations", - "BranchProtectionPropLockBranch", - "BranchProtectionPropRequiredConversationResolution", - "BranchProtectionPropRequiredLinearHistory", - "BranchProtectionPropRequiredSignatures", - "ProtectedBranchAdminEnforced", - "ProtectedBranchRequiredStatusCheck", - "ProtectedBranchRequiredStatusCheckPropChecksItems", -) +__all__ = ("Activity",) diff --git a/githubkit/versions/v2022_11_28/models/group_0200.py b/githubkit/versions/v2022_11_28/models/group_0200.py index b27604c05..245d14611 100644 --- a/githubkit/versions/v2022_11_28/models/group_0200.py +++ b/githubkit/versions/v2022_11_28/models/group_0200.py @@ -12,38 +12,24 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0199 import BranchProtection +class Autolink(GitHubModel): + """Autolink reference -class ShortBranch(GitHubModel): - """Short Branch - - Short Branch + An autolink reference. """ - name: str = Field() - commit: ShortBranchPropCommit = Field() - protected: bool = Field() - protection: Missing[BranchProtection] = Field( - default=UNSET, title="Branch Protection", description="Branch Protection" + id: int = Field() + key_prefix: str = Field(description="The prefix of a key that is linkified.") + url_template: str = Field( + description="A template for the target URL that is generated if a key was found." + ) + is_alphanumeric: bool = Field( + description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." ) - protection_url: Missing[str] = Field(default=UNSET) - - -class ShortBranchPropCommit(GitHubModel): - """ShortBranchPropCommit""" - - sha: str = Field() - url: str = Field() -model_rebuild(ShortBranch) -model_rebuild(ShortBranchPropCommit) +model_rebuild(Autolink) -__all__ = ( - "ShortBranch", - "ShortBranchPropCommit", -) +__all__ = ("Autolink",) diff --git a/githubkit/versions/v2022_11_28/models/group_0201.py b/githubkit/versions/v2022_11_28/models/group_0201.py index ef77ee3a3..481ac164d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0201.py +++ b/githubkit/versions/v2022_11_28/models/group_0201.py @@ -12,21 +12,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class GitUser(GitHubModel): - """Git User +class CheckAutomatedSecurityFixes(GitHubModel): + """Check Dependabot security updates - Metaproperties for Git author/committer information. + Check Dependabot security updates """ - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - date: Missing[str] = Field(default=UNSET) + enabled: bool = Field( + description="Whether Dependabot security updates are enabled for the repository." + ) + paused: bool = Field( + description="Whether Dependabot security updates are paused for the repository." + ) -model_rebuild(GitUser) +model_rebuild(CheckAutomatedSecurityFixes) -__all__ = ("GitUser",) +__all__ = ("CheckAutomatedSecurityFixes",) diff --git a/githubkit/versions/v2022_11_28/models/group_0202.py b/githubkit/versions/v2022_11_28/models/group_0202.py index b177fcee6..4ea0482b5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0202.py +++ b/githubkit/versions/v2022_11_28/models/group_0202.py @@ -9,25 +9,43 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0203 import ( + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, + ProtectedBranchPullRequestReviewPropDismissalRestrictions, +) + + +class ProtectedBranchPullRequestReview(GitHubModel): + """Protected Branch Pull Request Review -class Verification(GitHubModel): - """Verification""" + Protected Branch Pull Request Review + """ - verified: bool = Field() - reason: str = Field() - payload: Union[str, None] = Field() - signature: Union[str, None] = Field() - verified_at: Missing[Union[str, None]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + dismissal_restrictions: Missing[ + ProtectedBranchPullRequestReviewPropDismissalRestrictions + ] = Field(default=UNSET) + bypass_pull_request_allowances: Missing[ + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + dismiss_stale_reviews: bool = Field() + require_code_owner_reviews: bool = Field() + required_approving_review_count: Missing[int] = Field(le=6.0, default=UNSET) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it.", + ) -model_rebuild(Verification) +model_rebuild(ProtectedBranchPullRequestReview) -__all__ = ("Verification",) +__all__ = ("ProtectedBranchPullRequestReview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0203.py b/githubkit/versions/v2022_11_28/models/group_0203.py index 45bf64eea..e3675fdb7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0203.py +++ b/githubkit/versions/v2022_11_28/models/group_0203.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,28 +17,52 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0087 import Team -class DiffEntry(GitHubModel): - """Diff Entry - Diff Entry +class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + + users: Missing[list[SimpleUser]] = Field( + default=UNSET, description="The list of users with review dismissal access." + ) + teams: Missing[list[Team]] = Field( + default=UNSET, description="The list of teams with review dismissal access." + ) + apps: Missing[list[Union[Integration, None]]] = Field( + default=UNSET, description="The list of apps with review dismissal access." + ) + url: Missing[str] = Field(default=UNSET) + users_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + + +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances(GitHubModel): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - sha: str = Field() - filename: str = Field() - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" - ] = Field() - additions: int = Field() - deletions: int = Field() - changes: int = Field() - blob_url: Union[str, None] = Field() - raw_url: Union[str, None] = Field() - contents_url: str = Field() - patch: Missing[str] = Field(default=UNSET) - previous_filename: Missing[str] = Field(default=UNSET) + users: Missing[list[SimpleUser]] = Field( + default=UNSET, + description="The list of users allowed to bypass pull request requirements.", + ) + teams: Missing[list[Team]] = Field( + default=UNSET, + description="The list of teams allowed to bypass pull request requirements.", + ) + apps: Missing[list[Union[Integration, None]]] = Field( + default=UNSET, + description="The list of apps allowed to bypass pull request requirements.", + ) -model_rebuild(DiffEntry) +model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) +model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) -__all__ = ("DiffEntry",) +__all__ = ( + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", + "ProtectedBranchPullRequestReviewPropDismissalRestrictions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0204.py b/githubkit/versions/v2022_11_28/models/group_0204.py index 097300e87..b02082cc4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0204.py +++ b/githubkit/versions/v2022_11_28/models/group_0204.py @@ -17,61 +17,134 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0203 import DiffEntry -from .group_0205 import CommitPropCommit +class BranchRestrictionPolicy(GitHubModel): + """Branch Restriction Policy -class Commit(GitHubModel): - """Commit - - Commit + Branch Restriction Policy """ url: str = Field() - sha: str = Field() - node_id: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitPropCommit = Field() - author: Union[SimpleUser, EmptyObject, None] = Field() - committer: Union[SimpleUser, EmptyObject, None] = Field() - parents: list[CommitPropParentsItems] = Field() - stats: Missing[CommitPropStats] = Field(default=UNSET) - files: Missing[list[DiffEntry]] = Field(default=UNSET) - - -class EmptyObject(GitHubModel): - """Empty Object - - An object without any properties. - """ - - -class CommitPropParentsItems(GitHubModel): - """CommitPropParentsItems""" - - sha: str = Field() - url: str = Field() + users_url: str = Field() + teams_url: str = Field() + apps_url: str = Field() + users: list[BranchRestrictionPolicyPropUsersItems] = Field() + teams: list[BranchRestrictionPolicyPropTeamsItems] = Field() + apps: list[BranchRestrictionPolicyPropAppsItems] = Field() + + +class BranchRestrictionPolicyPropUsersItems(GitHubModel): + """BranchRestrictionPolicyPropUsersItems""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - - -class CommitPropStats(GitHubModel): - """CommitPropStats""" - - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) - total: Missing[int] = Field(default=UNSET) - - -model_rebuild(Commit) -model_rebuild(EmptyObject) -model_rebuild(CommitPropParentsItems) -model_rebuild(CommitPropStats) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropTeamsItems(GitHubModel): + """BranchRestrictionPolicyPropTeamsItems""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + privacy: Missing[str] = Field(default=UNSET) + notification_setting: Missing[str] = Field(default=UNSET) + permission: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + parent: Missing[Union[str, None]] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropAppsItems(GitHubModel): + """BranchRestrictionPolicyPropAppsItems""" + + id: Missing[int] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + owner: Missing[BranchRestrictionPolicyPropAppsItemsPropOwner] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + client_id: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + external_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + permissions: Missing[BranchRestrictionPolicyPropAppsItemsPropPermissions] = Field( + default=UNSET + ) + events: Missing[list[str]] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropAppsItemsPropOwner(GitHubModel): + """BranchRestrictionPolicyPropAppsItemsPropOwner""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) + public_members_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): + """BranchRestrictionPolicyPropAppsItemsPropPermissions""" + + metadata: Missing[str] = Field(default=UNSET) + contents: Missing[str] = Field(default=UNSET) + issues: Missing[str] = Field(default=UNSET) + single_file: Missing[str] = Field(default=UNSET) + + +model_rebuild(BranchRestrictionPolicy) +model_rebuild(BranchRestrictionPolicyPropUsersItems) +model_rebuild(BranchRestrictionPolicyPropTeamsItems) +model_rebuild(BranchRestrictionPolicyPropAppsItems) +model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) +model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) __all__ = ( - "Commit", - "CommitPropParentsItems", - "CommitPropStats", - "EmptyObject", + "BranchRestrictionPolicy", + "BranchRestrictionPolicyPropAppsItems", + "BranchRestrictionPolicyPropAppsItemsPropOwner", + "BranchRestrictionPolicyPropAppsItemsPropPermissions", + "BranchRestrictionPolicyPropTeamsItems", + "BranchRestrictionPolicyPropUsersItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0205.py b/githubkit/versions/v2022_11_28/models/group_0205.py index ee545f753..465e9017b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0205.py +++ b/githubkit/versions/v2022_11_28/models/group_0205.py @@ -17,33 +17,176 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0201 import GitUser -from .group_0202 import Verification +from .group_0202 import ProtectedBranchPullRequestReview +from .group_0204 import BranchRestrictionPolicy + + +class BranchProtection(GitHubModel): + """Branch Protection + + Branch Protection + """ + + url: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + required_status_checks: Missing[ProtectedBranchRequiredStatusCheck] = Field( + default=UNSET, + title="Protected Branch Required Status Check", + description="Protected Branch Required Status Check", + ) + enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( + default=UNSET, + title="Protected Branch Admin Enforced", + description="Protected Branch Admin Enforced", + ) + required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( + default=UNSET, + title="Protected Branch Pull Request Review", + description="Protected Branch Pull Request Review", + ) + restrictions: Missing[BranchRestrictionPolicy] = Field( + default=UNSET, + title="Branch Restriction Policy", + description="Branch Restriction Policy", + ) + required_linear_history: Missing[BranchProtectionPropRequiredLinearHistory] = Field( + default=UNSET + ) + allow_force_pushes: Missing[BranchProtectionPropAllowForcePushes] = Field( + default=UNSET + ) + allow_deletions: Missing[BranchProtectionPropAllowDeletions] = Field(default=UNSET) + block_creations: Missing[BranchProtectionPropBlockCreations] = Field(default=UNSET) + required_conversation_resolution: Missing[ + BranchProtectionPropRequiredConversationResolution + ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + protection_url: Missing[str] = Field(default=UNSET) + required_signatures: Missing[BranchProtectionPropRequiredSignatures] = Field( + default=UNSET + ) + lock_branch: Missing[BranchProtectionPropLockBranch] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", + ) + allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", + ) + + +class ProtectedBranchAdminEnforced(GitHubModel): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced + """ + url: str = Field() + enabled: bool = Field() -class CommitPropCommit(GitHubModel): - """CommitPropCommit""" - url: str = Field() - author: Union[None, GitUser] = Field() - committer: Union[None, GitUser] = Field() - message: str = Field() - comment_count: int = Field() - tree: CommitPropCommitPropTree = Field() - verification: Missing[Verification] = Field(default=UNSET, title="Verification") +class BranchProtectionPropRequiredLinearHistory(GitHubModel): + """BranchProtectionPropRequiredLinearHistory""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowForcePushes(GitHubModel): + """BranchProtectionPropAllowForcePushes""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowDeletions(GitHubModel): + """BranchProtectionPropAllowDeletions""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropBlockCreations(GitHubModel): + """BranchProtectionPropBlockCreations""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropRequiredConversationResolution(GitHubModel): + """BranchProtectionPropRequiredConversationResolution""" + + enabled: Missing[bool] = Field(default=UNSET) -class CommitPropCommitPropTree(GitHubModel): - """CommitPropCommitPropTree""" +class BranchProtectionPropRequiredSignatures(GitHubModel): + """BranchProtectionPropRequiredSignatures""" - sha: str = Field() url: str = Field() + enabled: bool = Field() + + +class BranchProtectionPropLockBranch(GitHubModel): + """BranchProtectionPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowForkSyncing(GitHubModel): + """BranchProtectionPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchRequiredStatusCheck(GitHubModel): + """Protected Branch Required Status Check + + Protected Branch Required Status Check + """ + + url: Missing[str] = Field(default=UNSET) + enforcement_level: Missing[str] = Field(default=UNSET) + contexts: list[str] = Field() + checks: list[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() + contexts_url: Missing[str] = Field(default=UNSET) + strict: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" + + context: str = Field() + app_id: Union[int, None] = Field() -model_rebuild(CommitPropCommit) -model_rebuild(CommitPropCommitPropTree) +model_rebuild(BranchProtection) +model_rebuild(ProtectedBranchAdminEnforced) +model_rebuild(BranchProtectionPropRequiredLinearHistory) +model_rebuild(BranchProtectionPropAllowForcePushes) +model_rebuild(BranchProtectionPropAllowDeletions) +model_rebuild(BranchProtectionPropBlockCreations) +model_rebuild(BranchProtectionPropRequiredConversationResolution) +model_rebuild(BranchProtectionPropRequiredSignatures) +model_rebuild(BranchProtectionPropLockBranch) +model_rebuild(BranchProtectionPropAllowForkSyncing) +model_rebuild(ProtectedBranchRequiredStatusCheck) +model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) __all__ = ( - "CommitPropCommit", - "CommitPropCommitPropTree", + "BranchProtection", + "BranchProtectionPropAllowDeletions", + "BranchProtectionPropAllowForcePushes", + "BranchProtectionPropAllowForkSyncing", + "BranchProtectionPropBlockCreations", + "BranchProtectionPropLockBranch", + "BranchProtectionPropRequiredConversationResolution", + "BranchProtectionPropRequiredLinearHistory", + "BranchProtectionPropRequiredSignatures", + "ProtectedBranchAdminEnforced", + "ProtectedBranchRequiredStatusCheck", + "ProtectedBranchRequiredStatusCheckPropChecksItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0206.py b/githubkit/versions/v2022_11_28/models/group_0206.py index 1b6d2b84c..1acf52e9f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0206.py +++ b/githubkit/versions/v2022_11_28/models/group_0206.py @@ -15,39 +15,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0199 import BranchProtection -from .group_0204 import Commit +from .group_0205 import BranchProtection -class BranchWithProtection(GitHubModel): - """Branch With Protection +class ShortBranch(GitHubModel): + """Short Branch - Branch With Protection + Short Branch """ name: str = Field() - commit: Commit = Field(title="Commit", description="Commit") - links: BranchWithProtectionPropLinks = Field(alias="_links") + commit: ShortBranchPropCommit = Field() protected: bool = Field() - protection: BranchProtection = Field( - title="Branch Protection", description="Branch Protection" + protection: Missing[BranchProtection] = Field( + default=UNSET, title="Branch Protection", description="Branch Protection" ) - protection_url: str = Field() - pattern: Missing[str] = Field(default=UNSET) - required_approving_review_count: Missing[int] = Field(default=UNSET) + protection_url: Missing[str] = Field(default=UNSET) -class BranchWithProtectionPropLinks(GitHubModel): - """BranchWithProtectionPropLinks""" +class ShortBranchPropCommit(GitHubModel): + """ShortBranchPropCommit""" - html: str = Field() - self_: str = Field(alias="self") + sha: str = Field() + url: str = Field() -model_rebuild(BranchWithProtection) -model_rebuild(BranchWithProtectionPropLinks) +model_rebuild(ShortBranch) +model_rebuild(ShortBranchPropCommit) __all__ = ( - "BranchWithProtection", - "BranchWithProtectionPropLinks", + "ShortBranch", + "ShortBranchPropCommit", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0207.py b/githubkit/versions/v2022_11_28/models/group_0207.py index 3530d826a..ef77ee3a3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0207.py +++ b/githubkit/versions/v2022_11_28/models/group_0207.py @@ -9,169 +9,24 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0198 import BranchRestrictionPolicy -from .group_0208 import ProtectedBranchPropRequiredPullRequestReviews - -class ProtectedBranch(GitHubModel): - """Protected Branch +class GitUser(GitHubModel): + """Git User - Branch protections protect branches + Metaproperties for Git author/committer information. """ - url: str = Field() - required_status_checks: Missing[StatusCheckPolicy] = Field( - default=UNSET, title="Status Check Policy", description="Status Check Policy" - ) - required_pull_request_reviews: Missing[ - ProtectedBranchPropRequiredPullRequestReviews - ] = Field(default=UNSET) - required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( - default=UNSET - ) - enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) - required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( - default=UNSET - ) - allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( - default=UNSET - ) - allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) - restrictions: Missing[BranchRestrictionPolicy] = Field( - default=UNSET, - title="Branch Restriction Policy", - description="Branch Restriction Policy", - ) - required_conversation_resolution: Missing[ - ProtectedBranchPropRequiredConversationResolution - ] = Field(default=UNSET) - block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) - lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - - -class ProtectedBranchPropRequiredSignatures(GitHubModel): - """ProtectedBranchPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class ProtectedBranchPropEnforceAdmins(GitHubModel): - """ProtectedBranchPropEnforceAdmins""" - - url: str = Field() - enabled: bool = Field() - - -class ProtectedBranchPropRequiredLinearHistory(GitHubModel): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool = Field() - - -class ProtectedBranchPropAllowForcePushes(GitHubModel): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool = Field() - - -class ProtectedBranchPropAllowDeletions(GitHubModel): - """ProtectedBranchPropAllowDeletions""" - - enabled: bool = Field() - - -class ProtectedBranchPropRequiredConversationResolution(GitHubModel): - """ProtectedBranchPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchPropBlockCreations(GitHubModel): - """ProtectedBranchPropBlockCreations""" - - enabled: bool = Field() - - -class ProtectedBranchPropLockBranch(GitHubModel): - """ProtectedBranchPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchPropAllowForkSyncing(GitHubModel): - """ProtectedBranchPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class StatusCheckPolicy(GitHubModel): - """Status Check Policy - - Status Check Policy - """ - - url: str = Field() - strict: bool = Field() - contexts: list[str] = Field() - checks: list[StatusCheckPolicyPropChecksItems] = Field() - contexts_url: str = Field() - - -class StatusCheckPolicyPropChecksItems(GitHubModel): - """StatusCheckPolicyPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + date: Missing[str] = Field(default=UNSET) -model_rebuild(ProtectedBranch) -model_rebuild(ProtectedBranchPropRequiredSignatures) -model_rebuild(ProtectedBranchPropEnforceAdmins) -model_rebuild(ProtectedBranchPropRequiredLinearHistory) -model_rebuild(ProtectedBranchPropAllowForcePushes) -model_rebuild(ProtectedBranchPropAllowDeletions) -model_rebuild(ProtectedBranchPropRequiredConversationResolution) -model_rebuild(ProtectedBranchPropBlockCreations) -model_rebuild(ProtectedBranchPropLockBranch) -model_rebuild(ProtectedBranchPropAllowForkSyncing) -model_rebuild(StatusCheckPolicy) -model_rebuild(StatusCheckPolicyPropChecksItems) +model_rebuild(GitUser) -__all__ = ( - "ProtectedBranch", - "ProtectedBranchPropAllowDeletions", - "ProtectedBranchPropAllowForcePushes", - "ProtectedBranchPropAllowForkSyncing", - "ProtectedBranchPropBlockCreations", - "ProtectedBranchPropEnforceAdmins", - "ProtectedBranchPropLockBranch", - "ProtectedBranchPropRequiredConversationResolution", - "ProtectedBranchPropRequiredLinearHistory", - "ProtectedBranchPropRequiredSignatures", - "StatusCheckPolicy", - "StatusCheckPolicyPropChecksItems", -) +__all__ = ("GitUser",) diff --git a/githubkit/versions/v2022_11_28/models/group_0208.py b/githubkit/versions/v2022_11_28/models/group_0208.py index 20b964507..1c8f9d7fa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0208.py +++ b/githubkit/versions/v2022_11_28/models/group_0208.py @@ -9,37 +9,23 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0209 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, -) -class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): - """ProtectedBranchPropRequiredPullRequestReviews""" +class Verification(GitHubModel): + """Verification""" - url: str = Field() - dismiss_stale_reviews: Missing[bool] = Field(default=UNSET) - require_code_owner_reviews: Missing[bool] = Field(default=UNSET) - required_approving_review_count: Missing[int] = Field(default=UNSET) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it.", - ) - dismissal_restrictions: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field(default=UNSET) + verified: bool = Field() + reason: str = Field() + payload: Union[str, None] = Field() + signature: Union[str, None] = Field() + verified_at: Union[str, None] = Field() -model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) +model_rebuild(Verification) -__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) +__all__ = ("Verification",) diff --git a/githubkit/versions/v2022_11_28/models/group_0209.py b/githubkit/versions/v2022_11_28/models/group_0209.py index 539d9e1ce..45bf64eea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0209.py +++ b/githubkit/versions/v2022_11_28/models/group_0209.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,40 +17,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0082 import Team +class DiffEntry(GitHubModel): + """Diff Entry -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" + Diff Entry + """ - url: str = Field() - users_url: str = Field() - teams_url: str = Field() - users: list[SimpleUser] = Field() - teams: list[Team] = Field() - apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + sha: str = Field() + filename: str = Field() + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + ] = Field() + additions: int = Field() + deletions: int = Field() + changes: int = Field() + blob_url: Union[str, None] = Field() + raw_url: Union[str, None] = Field() + contents_url: str = Field() + patch: Missing[str] = Field(default=UNSET) + previous_filename: Missing[str] = Field(default=UNSET) -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" +model_rebuild(DiffEntry) - users: list[SimpleUser] = Field() - teams: list[Team] = Field() - apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) - - -model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) -model_rebuild( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) - -__all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", -) +__all__ = ("DiffEntry",) diff --git a/githubkit/versions/v2022_11_28/models/group_0210.py b/githubkit/versions/v2022_11_28/models/group_0210.py index 440a13d1b..354693208 100644 --- a/githubkit/versions/v2022_11_28/models/group_0210.py +++ b/githubkit/versions/v2022_11_28/models/group_0210.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,40 +17,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0209 import DiffEntry +from .group_0211 import CommitPropCommit -class DeploymentSimple(GitHubModel): - """Deployment +class Commit(GitHubModel): + """Commit - A deployment created as the result of an Actions check run from a workflow that - references an environment + Commit """ url: str = Field() - id: int = Field(description="Unique identifier of the deployment") + sha: str = Field() node_id: str = Field() - task: str = Field(description="Parameter to specify a task to execute") - original_environment: Missing[str] = Field(default=UNSET) - environment: str = Field(description="Name for the target deployment environment.") - description: Union[str, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - statuses_url: str = Field() - repository_url: str = Field() - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: false.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - - -model_rebuild(DeploymentSimple) - -__all__ = ("DeploymentSimple",) + html_url: str = Field() + comments_url: str = Field() + commit: CommitPropCommit = Field() + author: Union[SimpleUser, EmptyObject, None] = Field() + committer: Union[SimpleUser, EmptyObject, None] = Field() + parents: list[CommitPropParentsItems] = Field() + stats: Missing[CommitPropStats] = Field(default=UNSET) + files: Missing[list[DiffEntry]] = Field(default=UNSET) + + +class EmptyObject(GitHubModel): + """Empty Object + + An object without any properties. + """ + + +class CommitPropParentsItems(GitHubModel): + """CommitPropParentsItems""" + + sha: str = Field() + url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + + +class CommitPropStats(GitHubModel): + """CommitPropStats""" + + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) + total: Missing[int] = Field(default=UNSET) + + +model_rebuild(Commit) +model_rebuild(EmptyObject) +model_rebuild(CommitPropParentsItems) +model_rebuild(CommitPropStats) + +__all__ = ( + "Commit", + "CommitPropParentsItems", + "CommitPropStats", + "EmptyObject", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0211.py b/githubkit/versions/v2022_11_28/models/group_0211.py index 430bebd98..123916abe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0211.py +++ b/githubkit/versions/v2022_11_28/models/group_0211.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,79 +17,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0008 import Integration -from .group_0183 import PullRequestMinimal -from .group_0210 import DeploymentSimple +from .group_0207 import GitUser +from .group_0208 import Verification -class CheckRun(GitHubModel): - """CheckRun +class CommitPropCommit(GitHubModel): + """CommitPropCommit""" - A check performed on the code of a given code change - """ + url: str = Field() + author: Union[None, GitUser] = Field() + committer: Union[None, GitUser] = Field() + message: str = Field() + comment_count: int = Field() + tree: CommitPropCommitPropTree = Field() + verification: Missing[Verification] = Field(default=UNSET, title="Verification") + + +class CommitPropCommitPropTree(GitHubModel): + """CommitPropCommitPropTree""" - id: int = Field(description="The id of the check.") - head_sha: str = Field(description="The SHA of the commit that is being checked.") - node_id: str = Field() - external_id: Union[str, None] = Field() + sha: str = Field() url: str = Field() - html_url: Union[str, None] = Field() - details_url: Union[str, None] = Field() - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] = Field( - description="The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs." - ) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - started_at: Union[datetime, None] = Field() - completed_at: Union[datetime, None] = Field() - output: CheckRunPropOutput = Field() - name: str = Field(description="The name of the check.") - check_suite: Union[CheckRunPropCheckSuite, None] = Field() - app: Union[None, Integration, None] = Field() - pull_requests: list[PullRequestMinimal] = Field( - description="Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check." - ) - deployment: Missing[DeploymentSimple] = Field( - default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", - ) - - -class CheckRunPropOutput(GitHubModel): - """CheckRunPropOutput""" - - title: Union[str, None] = Field() - summary: Union[str, None] = Field() - text: Union[str, None] = Field() - annotations_count: int = Field() - annotations_url: str = Field() - - -class CheckRunPropCheckSuite(GitHubModel): - """CheckRunPropCheckSuite""" - - id: int = Field() - - -model_rebuild(CheckRun) -model_rebuild(CheckRunPropOutput) -model_rebuild(CheckRunPropCheckSuite) + + +model_rebuild(CommitPropCommit) +model_rebuild(CommitPropCommitPropTree) __all__ = ( - "CheckRun", - "CheckRunPropCheckSuite", - "CheckRunPropOutput", + "CommitPropCommit", + "CommitPropCommitPropTree", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0212.py b/githubkit/versions/v2022_11_28/models/group_0212.py index 2dfb0cd0e..402d81ce0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0212.py +++ b/githubkit/versions/v2022_11_28/models/group_0212.py @@ -9,31 +9,45 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0205 import BranchProtection +from .group_0210 import Commit -class CheckAnnotation(GitHubModel): - """Check Annotation +class BranchWithProtection(GitHubModel): + """Branch With Protection - Check Annotation + Branch With Protection """ - path: str = Field() - start_line: int = Field() - end_line: int = Field() - start_column: Union[int, None] = Field() - end_column: Union[int, None] = Field() - annotation_level: Union[str, None] = Field() - title: Union[str, None] = Field() - message: Union[str, None] = Field() - raw_details: Union[str, None] = Field() - blob_href: str = Field() + name: str = Field() + commit: Commit = Field(title="Commit", description="Commit") + links: BranchWithProtectionPropLinks = Field(alias="_links") + protected: bool = Field() + protection: BranchProtection = Field( + title="Branch Protection", description="Branch Protection" + ) + protection_url: str = Field() + pattern: Missing[str] = Field(default=UNSET) + required_approving_review_count: Missing[int] = Field(default=UNSET) + + +class BranchWithProtectionPropLinks(GitHubModel): + """BranchWithProtectionPropLinks""" + + html: str = Field() + self_: str = Field(alias="self") -model_rebuild(CheckAnnotation) +model_rebuild(BranchWithProtection) +model_rebuild(BranchWithProtectionPropLinks) -__all__ = ("CheckAnnotation",) +__all__ = ( + "BranchWithProtection", + "BranchWithProtectionPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0213.py b/githubkit/versions/v2022_11_28/models/group_0213.py index 080151eb6..593b901e0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0213.py +++ b/githubkit/versions/v2022_11_28/models/group_0213.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,74 +17,161 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0008 import Integration -from .group_0056 import MinimalRepository -from .group_0183 import PullRequestMinimal -from .group_0184 import SimpleCommit +from .group_0204 import BranchRestrictionPolicy +from .group_0214 import ProtectedBranchPropRequiredPullRequestReviews -class CheckSuite(GitHubModel): - """CheckSuite +class ProtectedBranch(GitHubModel): + """Protected Branch - A suite of checks performed on the code of a given code change + Branch protections protect branches """ - id: int = Field() - node_id: str = Field() - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that is being checked." + url: str = Field() + required_status_checks: Missing[StatusCheckPolicy] = Field( + default=UNSET, title="Status Check Policy", description="Status Check Policy" ) - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], - ] = Field( - description="The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." + required_pull_request_reviews: Missing[ + ProtectedBranchPropRequiredPullRequestReviews + ] = Field(default=UNSET) + required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( + default=UNSET ) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "startup_failure", - "stale", - ], - ] = Field() - url: Union[str, None] = Field() - before: Union[str, None] = Field() - after: Union[str, None] = Field() - pull_requests: Union[list[PullRequestMinimal], None] = Field() - app: Union[None, Integration, None] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) + required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( + default=UNSET ) - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") - latest_check_runs_count: int = Field() - check_runs_url: str = Field() - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) + allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( + default=UNSET + ) + allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) + restrictions: Missing[BranchRestrictionPolicy] = Field( + default=UNSET, + title="Branch Restriction Policy", + description="Branch Restriction Policy", + ) + required_conversation_resolution: Missing[ + ProtectedBranchPropRequiredConversationResolution + ] = Field(default=UNSET) + block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) + lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", + ) + allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", + ) + + +class ProtectedBranchPropRequiredSignatures(GitHubModel): + """ProtectedBranchPropRequiredSignatures""" + + url: str = Field() + enabled: bool = Field() + + +class ProtectedBranchPropEnforceAdmins(GitHubModel): + """ProtectedBranchPropEnforceAdmins""" + + url: str = Field() + enabled: bool = Field() + + +class ProtectedBranchPropRequiredLinearHistory(GitHubModel): + """ProtectedBranchPropRequiredLinearHistory""" + + enabled: bool = Field() + + +class ProtectedBranchPropAllowForcePushes(GitHubModel): + """ProtectedBranchPropAllowForcePushes""" + + enabled: bool = Field() + + +class ProtectedBranchPropAllowDeletions(GitHubModel): + """ProtectedBranchPropAllowDeletions""" + + enabled: bool = Field() + + +class ProtectedBranchPropRequiredConversationResolution(GitHubModel): + """ProtectedBranchPropRequiredConversationResolution""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchPropBlockCreations(GitHubModel): + """ProtectedBranchPropBlockCreations""" + + enabled: bool = Field() + + +class ProtectedBranchPropLockBranch(GitHubModel): + """ProtectedBranchPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchPropAllowForkSyncing(GitHubModel): + """ProtectedBranchPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class StatusCheckPolicy(GitHubModel): + """Status Check Policy + + Status Check Policy + """ + + url: str = Field() + strict: bool = Field() + contexts: list[str] = Field() + checks: list[StatusCheckPolicyPropChecksItems] = Field() + contexts_url: str = Field() -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" +class StatusCheckPolicyPropChecksItems(GitHubModel): + """StatusCheckPolicyPropChecksItems""" - total_count: int = Field() - check_suites: list[CheckSuite] = Field() + context: str = Field() + app_id: Union[int, None] = Field() -model_rebuild(CheckSuite) -model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) +model_rebuild(ProtectedBranch) +model_rebuild(ProtectedBranchPropRequiredSignatures) +model_rebuild(ProtectedBranchPropEnforceAdmins) +model_rebuild(ProtectedBranchPropRequiredLinearHistory) +model_rebuild(ProtectedBranchPropAllowForcePushes) +model_rebuild(ProtectedBranchPropAllowDeletions) +model_rebuild(ProtectedBranchPropRequiredConversationResolution) +model_rebuild(ProtectedBranchPropBlockCreations) +model_rebuild(ProtectedBranchPropLockBranch) +model_rebuild(ProtectedBranchPropAllowForkSyncing) +model_rebuild(StatusCheckPolicy) +model_rebuild(StatusCheckPolicyPropChecksItems) __all__ = ( - "CheckSuite", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", + "ProtectedBranch", + "ProtectedBranchPropAllowDeletions", + "ProtectedBranchPropAllowForcePushes", + "ProtectedBranchPropAllowForkSyncing", + "ProtectedBranchPropBlockCreations", + "ProtectedBranchPropEnforceAdmins", + "ProtectedBranchPropLockBranch", + "ProtectedBranchPropRequiredConversationResolution", + "ProtectedBranchPropRequiredLinearHistory", + "ProtectedBranchPropRequiredSignatures", + "StatusCheckPolicy", + "StatusCheckPolicyPropChecksItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0214.py b/githubkit/versions/v2022_11_28/models/group_0214.py index f1206d8d4..0150f32d4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0214.py +++ b/githubkit/versions/v2022_11_28/models/group_0214.py @@ -15,42 +15,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0056 import MinimalRepository - +from .group_0215 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, +) -class CheckSuitePreference(GitHubModel): - """Check Suite Preference - Check suite configuration preferences for a repository. - """ +class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): + """ProtectedBranchPropRequiredPullRequestReviews""" - preferences: CheckSuitePreferencePropPreferences = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + url: str = Field() + dismiss_stale_reviews: Missing[bool] = Field(default=UNSET) + require_code_owner_reviews: Missing[bool] = Field(default=UNSET) + required_approving_review_count: Missing[int] = Field(default=UNSET) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it.", ) - - -class CheckSuitePreferencePropPreferences(GitHubModel): - """CheckSuitePreferencePropPreferences""" - - auto_trigger_checks: Missing[ - list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] + dismissal_restrictions: Missing[ + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field(default=UNSET) + bypass_pull_request_allowances: Missing[ + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances ] = Field(default=UNSET) -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int = Field() - setting: bool = Field() - - -model_rebuild(CheckSuitePreference) -model_rebuild(CheckSuitePreferencePropPreferences) -model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) +model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) -__all__ = ( - "CheckSuitePreference", - "CheckSuitePreferencePropPreferences", - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", -) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) diff --git a/githubkit/versions/v2022_11_28/models/group_0215.py b/githubkit/versions/v2022_11_28/models/group_0215.py index 1858fdfb6..2c6ef296a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0215.py +++ b/githubkit/versions/v2022_11_28/models/group_0215.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Union from pydantic import Field @@ -18,55 +17,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0073 import CodeScanningAlertRuleSummary -from .group_0074 import CodeScanningAnalysisTool -from .group_0075 import CodeScanningAlertInstance - - -class CodeScanningAlertItems(GitHubModel): - """CodeScanningAlertItems""" - - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." - ) - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert." - ) - fixed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - rule: CodeScanningAlertRuleSummary = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - - -model_rebuild(CodeScanningAlertItems) - -__all__ = ("CodeScanningAlertItems",) +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0087 import Team + + +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" + + url: str = Field() + users_url: str = Field() + teams_url: str = Field() + users: list[SimpleUser] = Field() + teams: list[Team] = Field() + apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + + +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" + + users: list[SimpleUser] = Field() + teams: list[Team] = Field() + apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + + +model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) +model_rebuild( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) + +__all__ = ( + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0216.py b/githubkit/versions/v2022_11_28/models/group_0216.py index f84dace13..7a0f9e876 100644 --- a/githubkit/versions/v2022_11_28/models/group_0216.py +++ b/githubkit/versions/v2022_11_28/models/group_0216.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Union from pydantic import Field @@ -18,95 +18,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0074 import CodeScanningAnalysisTool -from .group_0075 import CodeScanningAlertInstance +from .group_0010 import Integration -class CodeScanningAlert(GitHubModel): - """CodeScanningAlert""" +class DeploymentSimple(GitHubModel): + """Deployment - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." - ) - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert." - ) - fixed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - rule: CodeScanningAlertRule = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() + A deployment created as the result of an Actions check run from a workflow that + references an environment + """ - -class CodeScanningAlertRule(GitHubModel): - """CodeScanningAlertRule""" - - id: Missing[Union[str, None]] = Field( + url: str = Field() + id: int = Field(description="Unique identifier of the deployment") + node_id: str = Field() + task: str = Field(description="Parameter to specify a task to execute") + original_environment: Missing[str] = Field(default=UNSET) + environment: str = Field(description="Name for the target deployment environment.") + description: Union[str, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + statuses_url: str = Field() + repository_url: str = Field() + transient_environment: Missing[bool] = Field( default=UNSET, - description="A unique identifier for the rule used to detect the alert.", - ) - name: Missing[str] = Field( - default=UNSET, description="The name of the rule used to detect the alert." + description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", ) - severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( - default=UNSET, description="The severity of the alert." - ) - security_severity_level: Missing[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] = Field(default=UNSET, description="The security severity of the alert.") - description: Missing[str] = Field( + production_environment: Missing[bool] = Field( default=UNSET, - description="A short description of the rule used to detect the alert.", - ) - full_description: Missing[str] = Field( - default=UNSET, description="A description of the rule used to detect the alert." + description="Specifies if the given environment is one that end-users directly interact with. Default: false.", ) - tags: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A set of tags applicable for the rule." - ) - help_: Missing[Union[str, None]] = Field( - default=UNSET, - alias="help", - description="Detailed documentation for the rule as GitHub Flavored Markdown.", - ) - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) -model_rebuild(CodeScanningAlert) -model_rebuild(CodeScanningAlertRule) +model_rebuild(DeploymentSimple) -__all__ = ( - "CodeScanningAlert", - "CodeScanningAlertRule", -) +__all__ = ("DeploymentSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0217.py b/githubkit/versions/v2022_11_28/models/group_0217.py index 9ae48ea96..a948d0e5e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0217.py +++ b/githubkit/versions/v2022_11_28/models/group_0217.py @@ -15,20 +15,82 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0189 import PullRequestMinimal +from .group_0216 import DeploymentSimple -class CodeScanningAutofix(GitHubModel): - """CodeScanningAutofix""" - status: Literal["pending", "error", "success", "outdated"] = Field( - description="The status of an autofix." +class CheckRun(GitHubModel): + """CheckRun + + A check performed on the code of a given code change + """ + + id: int = Field(description="The id of the check.") + head_sha: str = Field(description="The SHA of the commit that is being checked.") + node_id: str = Field() + external_id: Union[str, None] = Field() + url: str = Field() + html_url: Union[str, None] = Field() + details_url: Union[str, None] = Field() + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] = Field( + description="The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs." + ) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + started_at: Union[datetime, None] = Field() + completed_at: Union[datetime, None] = Field() + output: CheckRunPropOutput = Field() + name: str = Field(description="The name of the check.") + check_suite: Union[CheckRunPropCheckSuite, None] = Field() + app: Union[None, Integration, None] = Field() + pull_requests: list[PullRequestMinimal] = Field( + description="Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check." ) - description: Union[str, None] = Field(description="The description of an autofix.") - started_at: datetime = Field( - description="The start time of an autofix in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + deployment: Missing[DeploymentSimple] = Field( + default=UNSET, + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", ) -model_rebuild(CodeScanningAutofix) +class CheckRunPropOutput(GitHubModel): + """CheckRunPropOutput""" + + title: Union[str, None] = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + annotations_count: int = Field() + annotations_url: str = Field() + + +class CheckRunPropCheckSuite(GitHubModel): + """CheckRunPropCheckSuite""" + + id: int = Field() + + +model_rebuild(CheckRun) +model_rebuild(CheckRunPropOutput) +model_rebuild(CheckRunPropCheckSuite) -__all__ = ("CodeScanningAutofix",) +__all__ = ( + "CheckRun", + "CheckRunPropCheckSuite", + "CheckRunPropOutput", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0218.py b/githubkit/versions/v2022_11_28/models/group_0218.py index c0777bd5b..2dfb0cd0e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0218.py +++ b/githubkit/versions/v2022_11_28/models/group_0218.py @@ -9,28 +9,31 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class CodeScanningAutofixCommits(GitHubModel): - """CodeScanningAutofixCommits +class CheckAnnotation(GitHubModel): + """Check Annotation - Commit an autofix for a code scanning alert + Check Annotation """ - target_ref: Missing[str] = Field( - default=UNSET, - description='The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', - ) - message: Missing[str] = Field( - default=UNSET, description="Commit message to be used." - ) + path: str = Field() + start_line: int = Field() + end_line: int = Field() + start_column: Union[int, None] = Field() + end_column: Union[int, None] = Field() + annotation_level: Union[str, None] = Field() + title: Union[str, None] = Field() + message: Union[str, None] = Field() + raw_details: Union[str, None] = Field() + blob_href: str = Field() -model_rebuild(CodeScanningAutofixCommits) +model_rebuild(CheckAnnotation) -__all__ = ("CodeScanningAutofixCommits",) +__all__ = ("CheckAnnotation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0219.py b/githubkit/versions/v2022_11_28/models/group_0219.py index 02e796aba..21c6d7029 100644 --- a/githubkit/versions/v2022_11_28/models/group_0219.py +++ b/githubkit/versions/v2022_11_28/models/group_0219.py @@ -9,23 +9,83 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0057 import MinimalRepository +from .group_0189 import PullRequestMinimal +from .group_0190 import SimpleCommit + -class CodeScanningAutofixCommitsResponse(GitHubModel): - """CodeScanningAutofixCommitsResponse""" +class CheckSuite(GitHubModel): + """CheckSuite - target_ref: Missing[str] = Field( - default=UNSET, - description='The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', + A suite of checks performed on the code of a given code change + """ + + id: int = Field() + node_id: str = Field() + head_branch: Union[str, None] = Field() + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], + ] = Field( + description="The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." ) - sha: Missing[str] = Field(default=UNSET, description="SHA of commit with autofix.") + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "startup_failure", + "stale", + ], + ] = Field() + url: Union[str, None] = Field() + before: Union[str, None] = Field() + after: Union[str, None] = Field() + pull_requests: Union[list[PullRequestMinimal], None] = Field() + app: Union[None, Integration, None] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + latest_check_runs_count: int = Field() + check_runs_url: str = Field() + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int = Field() + check_suites: list[CheckSuite] = Field() -model_rebuild(CodeScanningAutofixCommitsResponse) +model_rebuild(CheckSuite) +model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) -__all__ = ("CodeScanningAutofixCommitsResponse",) +__all__ = ( + "CheckSuite", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0220.py b/githubkit/versions/v2022_11_28/models/group_0220.py index 656f79b2a..d86e28c78 100644 --- a/githubkit/versions/v2022_11_28/models/group_0220.py +++ b/githubkit/versions/v2022_11_28/models/group_0220.py @@ -9,57 +9,48 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0074 import CodeScanningAnalysisTool +from .group_0057 import MinimalRepository -class CodeScanningAnalysis(GitHubModel): - """CodeScanningAnalysis""" +class CheckSuitePreference(GitHubModel): + """Check Suite Preference - ref: str = Field( - description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." - ) - commit_sha: str = Field( - min_length=40, - max_length=40, - pattern="^[0-9a-fA-F]+$", - description="The SHA of the commit to which the analysis you are uploading relates.", - ) - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - environment: str = Field( - description="Identifies the variable values associated with the environment in which this analysis was performed." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", - ) - error: str = Field() - created_at: datetime = Field( - description="The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - results_count: int = Field( - description="The total number of results in the analysis." - ) - rules_count: int = Field( - description="The total number of rules used in the analysis." + Check suite configuration preferences for a repository. + """ + + preferences: CheckSuitePreferencePropPreferences = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - id: int = Field(description="Unique identifier for this analysis.") - url: str = Field(description="The REST API URL of the analysis resource.") - sarif_id: str = Field(description="An identifier for the upload.") - tool: CodeScanningAnalysisTool = Field() - deletable: bool = Field() - warning: str = Field(description="Warning generated when processing the analysis") -model_rebuild(CodeScanningAnalysis) +class CheckSuitePreferencePropPreferences(GitHubModel): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: Missing[ + list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] + ] = Field(default=UNSET) + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int = Field() + setting: bool = Field() + + +model_rebuild(CheckSuitePreference) +model_rebuild(CheckSuitePreferencePropPreferences) +model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) -__all__ = ("CodeScanningAnalysis",) +__all__ = ( + "CheckSuitePreference", + "CheckSuitePreferencePropPreferences", + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0221.py b/githubkit/versions/v2022_11_28/models/group_0221.py index d589823d8..28a3ee5f2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0221.py +++ b/githubkit/versions/v2022_11_28/models/group_0221.py @@ -9,27 +9,64 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0078 import CodeScanningAlertRuleSummary +from .group_0079 import CodeScanningAnalysisTool +from .group_0080 import CodeScanningAlertInstance -class CodeScanningAnalysisDeletion(GitHubModel): - """Analysis deletion - Successful deletion of a code scanning analysis - """ +class CodeScanningAlertItems(GitHubModel): + """CodeScanningAlertItems""" - next_analysis_url: Union[str, None] = Field( - description="Next deletable analysis in chain, without last analysis deletion confirmation" + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - confirm_delete_url: Union[str, None] = Field( - description="Next deletable analysis in chain, with last analysis deletion confirmation" + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." + ) + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." + ) + fixed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() -model_rebuild(CodeScanningAnalysisDeletion) +model_rebuild(CodeScanningAlertItems) -__all__ = ("CodeScanningAnalysisDeletion",) +__all__ = ("CodeScanningAlertItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0222.py b/githubkit/versions/v2022_11_28/models/group_0222.py index 09f2e7d66..47b51d4d8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0222.py +++ b/githubkit/versions/v2022_11_28/models/group_0222.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,36 +18,95 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0079 import CodeScanningAnalysisTool +from .group_0080 import CodeScanningAlertInstance -class CodeScanningCodeqlDatabase(GitHubModel): - """CodeQL Database +class CodeScanningAlert(GitHubModel): + """CodeScanningAlert""" - A CodeQL database. - """ - - id: int = Field(description="The ID of the CodeQL database.") - name: str = Field(description="The name of the CodeQL database.") - language: str = Field(description="The language of the CodeQL database.") - uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") - content_type: str = Field(description="The MIME type of the CodeQL database file.") - size: int = Field(description="The size of the CodeQL database file in bytes.") + number: int = Field(description="The security alert number.") created_at: datetime = Field( - description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - updated_at: datetime = Field( - description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." + ) + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." + ) + fixed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - url: str = Field( - description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + rule: CodeScanningAlertRule = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + + +class CodeScanningAlertRule(GitHubModel): + """CodeScanningAlertRule""" + + id: Missing[Union[str, None]] = Field( + default=UNSET, + description="A unique identifier for the rule used to detect the alert.", + ) + name: Missing[str] = Field( + default=UNSET, description="The name of the rule used to detect the alert." + ) + severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( + default=UNSET, description="The severity of the alert." + ) + security_severity_level: Missing[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] = Field(default=UNSET, description="The security severity of the alert.") + description: Missing[str] = Field( + default=UNSET, + description="A short description of the rule used to detect the alert.", + ) + full_description: Missing[str] = Field( + default=UNSET, description="A description of the rule used to detect the alert." + ) + tags: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A set of tags applicable for the rule." + ) + help_: Missing[Union[str, None]] = Field( + default=UNSET, + alias="help", + description="Detailed documentation for the rule as GitHub Flavored Markdown.", ) - commit_oid: Missing[Union[str, None]] = Field( + help_uri: Missing[Union[str, None]] = Field( default=UNSET, - description="The commit SHA of the repository at the time the CodeQL database was created.", + description="A link to the documentation for the rule used to detect the alert.", ) -model_rebuild(CodeScanningCodeqlDatabase) +model_rebuild(CodeScanningAlert) +model_rebuild(CodeScanningAlertRule) -__all__ = ("CodeScanningCodeqlDatabase",) +__all__ = ( + "CodeScanningAlert", + "CodeScanningAlertRule", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0223.py b/githubkit/versions/v2022_11_28/models/group_0223.py index 4561ffbb1..9ae48ea96 100644 --- a/githubkit/versions/v2022_11_28/models/group_0223.py +++ b/githubkit/versions/v2022_11_28/models/group_0223.py @@ -10,29 +10,25 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class CodeScanningVariantAnalysisRepository(GitHubModel): - """Repository Identifier +class CodeScanningAutofix(GitHubModel): + """CodeScanningAutofix""" - Repository Identifier - """ - - id: int = Field(description="A unique identifier of the repository.") - name: str = Field(description="The name of the repository.") - full_name: str = Field( - description="The full, globally unique, name of the repository." + status: Literal["pending", "error", "success", "outdated"] = Field( + description="The status of an autofix." + ) + description: Union[str, None] = Field(description="The description of an autofix.") + started_at: datetime = Field( + description="The start time of an autofix in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - private: bool = Field(description="Whether the repository is private.") - stargazers_count: int = Field() - updated_at: Union[datetime, None] = Field() -model_rebuild(CodeScanningVariantAnalysisRepository) +model_rebuild(CodeScanningAutofix) -__all__ = ("CodeScanningVariantAnalysisRepository",) +__all__ = ("CodeScanningAutofix",) diff --git a/githubkit/versions/v2022_11_28/models/group_0224.py b/githubkit/versions/v2022_11_28/models/group_0224.py index 7e64cec62..c0777bd5b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0224.py +++ b/githubkit/versions/v2022_11_28/models/group_0224.py @@ -12,21 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0223 import CodeScanningVariantAnalysisRepository +class CodeScanningAutofixCommits(GitHubModel): + """CodeScanningAutofixCommits -class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): - """CodeScanningVariantAnalysisSkippedRepoGroup""" + Commit an autofix for a code scanning alert + """ - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." + target_ref: Missing[str] = Field( + default=UNSET, + description='The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', ) - repositories: list[CodeScanningVariantAnalysisRepository] = Field( - description="A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it." + message: Missing[str] = Field( + default=UNSET, description="Commit message to be used." ) -model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) +model_rebuild(CodeScanningAutofixCommits) -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) +__all__ = ("CodeScanningAutofixCommits",) diff --git a/githubkit/versions/v2022_11_28/models/group_0225.py b/githubkit/versions/v2022_11_28/models/group_0225.py index eacb41591..02e796aba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0225.py +++ b/githubkit/versions/v2022_11_28/models/group_0225.py @@ -9,70 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0030 import SimpleRepository -from .group_0226 import CodeScanningVariantAnalysisPropScannedRepositoriesItems -from .group_0227 import CodeScanningVariantAnalysisPropSkippedRepositories - -class CodeScanningVariantAnalysis(GitHubModel): - """Variant Analysis +class CodeScanningAutofixCommitsResponse(GitHubModel): + """CodeScanningAutofixCommitsResponse""" - A run of a CodeQL query against one or more repositories. - """ - - id: int = Field(description="The ID of the variant analysis.") - controller_repo: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." - ) - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack_url: str = Field(description="The download url for the query pack.") - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", - ) - status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() - actions_workflow_run_id: Missing[int] = Field( - default=UNSET, - description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", - ) - failure_reason: Missing[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] = Field( - default=UNSET, - description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", - ) - scanned_repositories: Missing[ - list[CodeScanningVariantAnalysisPropScannedRepositoriesItems] - ] = Field(default=UNSET) - skipped_repositories: Missing[ - CodeScanningVariantAnalysisPropSkippedRepositories - ] = Field( + target_ref: Missing[str] = Field( default=UNSET, - description="Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis.", + description='The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', ) + sha: Missing[str] = Field(default=UNSET, description="SHA of commit with autofix.") -model_rebuild(CodeScanningVariantAnalysis) +model_rebuild(CodeScanningAutofixCommitsResponse) -__all__ = ("CodeScanningVariantAnalysis",) +__all__ = ("CodeScanningAutofixCommitsResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0226.py b/githubkit/versions/v2022_11_28/models/group_0226.py index dae6be239..06d391926 100644 --- a/githubkit/versions/v2022_11_28/models/group_0226.py +++ b/githubkit/versions/v2022_11_28/models/group_0226.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field @@ -17,34 +17,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0223 import CodeScanningVariantAnalysisRepository +from .group_0079 import CodeScanningAnalysisTool -class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningAnalysis(GitHubModel): + """CodeScanningAnalysis""" - repository: CodeScanningVariantAnalysisRepository = Field( - title="Repository Identifier", description="Repository Identifier" + ref: str = Field( + description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." ) - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] = Field( - description="The new status of the CodeQL variant analysis repository task." + 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.", ) - result_count: Missing[int] = Field( - default=UNSET, - description="The number of results in the case of a successful analysis. This is only available for successful analyses.", + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." ) - artifact_size_in_bytes: Missing[int] = Field( - default=UNSET, - description="The size of the artifact. This is only available for successful analyses.", + environment: str = Field( + description="Identifies the variable values associated with the environment in which this analysis was performed." ) - failure_message: Missing[str] = Field( + category: Missing[str] = Field( default=UNSET, - description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", + ) + error: str = Field() + created_at: datetime = Field( + description="The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + results_count: int = Field( + description="The total number of results in the analysis." + ) + rules_count: int = Field( + description="The total number of rules used in the analysis." ) + id: int = Field(description="Unique identifier for this analysis.") + url: str = Field(description="The REST API URL of the analysis resource.") + sarif_id: str = Field(description="An identifier for the upload.") + tool: CodeScanningAnalysisTool = Field() + deletable: bool = Field() + warning: str = Field(description="Warning generated when processing the analysis") -model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) +model_rebuild(CodeScanningAnalysis) -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) +__all__ = ("CodeScanningAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0227.py b/githubkit/versions/v2022_11_28/models/group_0227.py index 2d35993cf..d589823d8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0227.py +++ b/githubkit/versions/v2022_11_28/models/group_0227.py @@ -9,41 +9,27 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0224 import CodeScanningVariantAnalysisSkippedRepoGroup - -class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningAnalysisDeletion(GitHubModel): + """Analysis deletion - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + Successful deletion of a code scanning analysis """ - access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - not_found_repos: CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos = Field() - no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - - -class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" - - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." + next_analysis_url: Union[str, None] = Field( + description="Next deletable analysis in chain, without last analysis deletion confirmation" ) - repository_full_names: list[str] = Field( - description="A list of full repository names that were skipped. This list may not include all repositories that were skipped." + confirm_delete_url: Union[str, None] = Field( + description="Next deletable analysis in chain, with last analysis deletion confirmation" ) -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) +model_rebuild(CodeScanningAnalysisDeletion) -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositories", - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", -) +__all__ = ("CodeScanningAnalysisDeletion",) diff --git a/githubkit/versions/v2022_11_28/models/group_0228.py b/githubkit/versions/v2022_11_28/models/group_0228.py index 94f3461d0..03bb03a35 100644 --- a/githubkit/versions/v2022_11_28/models/group_0228.py +++ b/githubkit/versions/v2022_11_28/models/group_0228.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,46 +18,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0030 import SimpleRepository +from .group_0003 import SimpleUser -class CodeScanningVariantAnalysisRepoTask(GitHubModel): - """CodeScanningVariantAnalysisRepoTask""" +class CodeScanningCodeqlDatabase(GitHubModel): + """CodeQL Database - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." - ) - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] = Field( - description="The new status of the CodeQL variant analysis repository task." - ) - artifact_size_in_bytes: Missing[int] = Field( - default=UNSET, - description="The size of the artifact. This is only available for successful analyses.", - ) - result_count: Missing[int] = Field( - default=UNSET, - description="The number of results in the case of a successful analysis. This is only available for successful analyses.", + A CodeQL database. + """ + + id: int = Field(description="The ID of the CodeQL database.") + name: str = Field(description="The name of the CodeQL database.") + language: str = Field(description="The language of the CodeQL database.") + uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") + content_type: str = Field(description="The MIME type of the CodeQL database file.") + size: int = Field(description="The size of the CodeQL database file in bytes.") + created_at: datetime = Field( + description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - failure_message: Missing[str] = Field( - default=UNSET, - description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + updated_at: datetime = Field( + description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - database_commit_sha: Missing[str] = Field( - default=UNSET, - description="The SHA of the commit the CodeQL database was built against. This is only available for successful analyses.", - ) - source_location_prefix: Missing[str] = Field( - default=UNSET, - description="The source location prefix to use. This is only available for successful analyses.", + url: str = Field( + description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." ) - artifact_url: Missing[str] = Field( + commit_oid: Missing[Union[str, None]] = Field( default=UNSET, - description="The URL of the artifact. This is only available for successful analyses.", + description="The commit SHA of the repository at the time the CodeQL database was created.", ) -model_rebuild(CodeScanningVariantAnalysisRepoTask) +model_rebuild(CodeScanningCodeqlDatabase) -__all__ = ("CodeScanningVariantAnalysisRepoTask",) +__all__ = ("CodeScanningCodeqlDatabase",) diff --git a/githubkit/versions/v2022_11_28/models/group_0229.py b/githubkit/versions/v2022_11_28/models/group_0229.py index db0cf7ba2..4561ffbb1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0229.py +++ b/githubkit/versions/v2022_11_28/models/group_0229.py @@ -10,60 +10,29 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class CodeScanningDefaultSetup(GitHubModel): - """CodeScanningDefaultSetup +class CodeScanningVariantAnalysisRepository(GitHubModel): + """Repository Identifier - Configuration for code scanning default setup. + Repository Identifier """ - state: Missing[Literal["configured", "not-configured"]] = Field( - default=UNSET, - description="Code scanning default setup has been configured or not.", - ) - languages: Missing[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] - ] = Field(default=UNSET, description="Languages to be analyzed.") - runner_type: Missing[Union[None, Literal["standard", "labeled"]]] = Field( - default=UNSET, description="Runner type to be used." - ) - runner_label: Missing[Union[str, None]] = Field( - default=UNSET, - description="Runner label to be used if the runner type is labeled.", - ) - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." - ) - updated_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Timestamp of latest configuration update." - ) - schedule: Missing[Union[None, Literal["weekly"]]] = Field( - default=UNSET, description="The frequency of the periodic analysis." + id: int = Field(description="A unique identifier of the repository.") + name: str = Field(description="The name of the repository.") + full_name: str = Field( + description="The full, globally unique, name of the repository." ) + private: bool = Field(description="Whether the repository is private.") + stargazers_count: int = Field() + updated_at: Union[datetime, None] = Field() -model_rebuild(CodeScanningDefaultSetup) +model_rebuild(CodeScanningVariantAnalysisRepository) -__all__ = ("CodeScanningDefaultSetup",) +__all__ = ("CodeScanningVariantAnalysisRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0230.py b/githubkit/versions/v2022_11_28/models/group_0230.py index 089b0befc..46717c136 100644 --- a/githubkit/versions/v2022_11_28/models/group_0230.py +++ b/githubkit/versions/v2022_11_28/models/group_0230.py @@ -9,51 +9,24 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0229 import CodeScanningVariantAnalysisRepository -class CodeScanningDefaultSetupUpdate(GitHubModel): - """CodeScanningDefaultSetupUpdate - Configuration for code scanning default setup. - """ +class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - state: Missing[Literal["configured", "not-configured"]] = Field( - default=UNSET, description="The desired state of code scanning default setup." - ) - runner_type: Missing[Literal["standard", "labeled"]] = Field( - default=UNSET, description="Runner type to be used." - ) - runner_label: Missing[Union[str, None]] = Field( - default=UNSET, - description="Runner label to be used if the runner type is labeled.", + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." + repositories: list[CodeScanningVariantAnalysisRepository] = Field( + description="A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it." ) - languages: Missing[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] - ] = Field(default=UNSET, description="CodeQL languages to be analyzed.") - - -model_rebuild(CodeScanningDefaultSetupUpdate) - -__all__ = ("CodeScanningDefaultSetupUpdate",) + + +model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) + +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0231.py b/githubkit/versions/v2022_11_28/models/group_0231.py index 4bb252bf7..6292d1ecb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0231.py +++ b/githubkit/versions/v2022_11_28/models/group_0231.py @@ -9,29 +9,70 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0031 import SimpleRepository +from .group_0232 import CodeScanningVariantAnalysisPropScannedRepositoriesItems +from .group_0233 import CodeScanningVariantAnalysisPropSkippedRepositories + -class CodeScanningDefaultSetupUpdateResponse(GitHubModel): - """CodeScanningDefaultSetupUpdateResponse +class CodeScanningVariantAnalysis(GitHubModel): + """Variant Analysis - You can use `run_url` to track the status of the run. This includes a property - status and conclusion. - You should not rely on this always being an actions workflow run object. + A run of a CodeQL query against one or more repositories. """ - run_id: Missing[int] = Field( - default=UNSET, description="ID of the corresponding run." + id: int = Field(description="The ID of the variant analysis.") + controller_repo: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack_url: str = Field(description="The download url for the query pack.") + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", + ) + status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() + actions_workflow_run_id: Missing[int] = Field( + default=UNSET, + description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", + ) + failure_reason: Missing[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] = Field( + default=UNSET, + description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", ) - run_url: Missing[str] = Field( - default=UNSET, description="URL of the corresponding run." + scanned_repositories: Missing[ + list[CodeScanningVariantAnalysisPropScannedRepositoriesItems] + ] = Field(default=UNSET) + skipped_repositories: Missing[ + CodeScanningVariantAnalysisPropSkippedRepositories + ] = Field( + default=UNSET, + description="Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis.", ) -model_rebuild(CodeScanningDefaultSetupUpdateResponse) +model_rebuild(CodeScanningVariantAnalysis) -__all__ = ("CodeScanningDefaultSetupUpdateResponse",) +__all__ = ("CodeScanningVariantAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0232.py b/githubkit/versions/v2022_11_28/models/group_0232.py index a7508c529..93e6b8a57 100644 --- a/githubkit/versions/v2022_11_28/models/group_0232.py +++ b/githubkit/versions/v2022_11_28/models/group_0232.py @@ -9,23 +9,42 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0229 import CodeScanningVariantAnalysisRepository + -class CodeScanningSarifsReceipt(GitHubModel): - """CodeScanningSarifsReceipt""" +class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" - id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") - url: Missing[str] = Field( + repository: CodeScanningVariantAnalysisRepository = Field( + title="Repository Identifier", description="Repository Identifier" + ) + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] = Field( + description="The new status of the CodeQL variant analysis repository task." + ) + result_count: Missing[int] = Field( + default=UNSET, + description="The number of results in the case of a successful analysis. This is only available for successful analyses.", + ) + artifact_size_in_bytes: Missing[int] = Field( + default=UNSET, + description="The size of the artifact. This is only available for successful analyses.", + ) + failure_message: Missing[str] = Field( default=UNSET, - description="The REST API URL for checking the status of the upload.", + description="The reason of the failure of this repo task. This is only available if the repository task has failed.", ) -model_rebuild(CodeScanningSarifsReceipt) +model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) -__all__ = ("CodeScanningSarifsReceipt",) +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0233.py b/githubkit/versions/v2022_11_28/models/group_0233.py index 525bd5e50..7b40ab9d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0233.py +++ b/githubkit/versions/v2022_11_28/models/group_0233.py @@ -9,32 +9,41 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0230 import CodeScanningVariantAnalysisSkippedRepoGroup -class CodeScanningSarifsStatus(GitHubModel): - """CodeScanningSarifsStatus""" - processing_status: Missing[Literal["pending", "complete", "failed"]] = Field( - default=UNSET, - description="`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.", - ) - analyses_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="The REST API URL for getting the analyses associated with the upload.", +class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositories + + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. + """ + + access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + not_found_repos: CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos = Field() + no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + + +class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" + + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - errors: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="Any errors that ocurred during processing of the delivery.", + repository_full_names: list[str] = Field( + description="A list of full repository names that were skipped. This list may not include all repositories that were skipped." ) -model_rebuild(CodeScanningSarifsStatus) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) -__all__ = ("CodeScanningSarifsStatus",) +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositories", + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0234.py b/githubkit/versions/v2022_11_28/models/group_0234.py index 6fb042711..cd4b0204d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0234.py +++ b/githubkit/versions/v2022_11_28/models/group_0234.py @@ -17,35 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0027 import CodeSecurityConfiguration - - -class CodeSecurityConfigurationForRepository(GitHubModel): - """CodeSecurityConfigurationForRepository - - Code security configuration associated with a repository and attachment status - """ - - status: Missing[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] +from .group_0031 import SimpleRepository + + +class CodeScanningVariantAnalysisRepoTask(GitHubModel): + """CodeScanningVariantAnalysisRepoTask""" + + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" ] = Field( + description="The new status of the CodeQL variant analysis repository task." + ) + artifact_size_in_bytes: Missing[int] = Field( + default=UNSET, + description="The size of the artifact. This is only available for successful analyses.", + ) + result_count: Missing[int] = Field( default=UNSET, - description="The attachment status of the code security configuration on the repository.", + description="The number of results in the case of a successful analysis. This is only available for successful analyses.", ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + failure_message: Missing[str] = Field( + default=UNSET, + description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + ) + database_commit_sha: Missing[str] = Field( + default=UNSET, + description="The SHA of the commit the CodeQL database was built against. This is only available for successful analyses.", + ) + source_location_prefix: Missing[str] = Field( + default=UNSET, + description="The source location prefix to use. This is only available for successful analyses.", + ) + artifact_url: Missing[str] = Field( + default=UNSET, + description="The URL of the artifact. This is only available for successful analyses.", ) -model_rebuild(CodeSecurityConfigurationForRepository) +model_rebuild(CodeScanningVariantAnalysisRepoTask) -__all__ = ("CodeSecurityConfigurationForRepository",) +__all__ = ("CodeScanningVariantAnalysisRepoTask",) diff --git a/githubkit/versions/v2022_11_28/models/group_0235.py b/githubkit/versions/v2022_11_28/models/group_0235.py index b356aafc8..db0cf7ba2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0235.py +++ b/githubkit/versions/v2022_11_28/models/group_0235.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,38 +19,51 @@ from githubkit.utils import UNSET -class CodeownersErrors(GitHubModel): - """CODEOWNERS errors +class CodeScanningDefaultSetup(GitHubModel): + """CodeScanningDefaultSetup - A list of errors found in a repo's CODEOWNERS file + Configuration for code scanning default setup. """ - errors: list[CodeownersErrorsPropErrorsItems] = Field() - - -class CodeownersErrorsPropErrorsItems(GitHubModel): - """CodeownersErrorsPropErrorsItems""" - - line: int = Field(description="The line number where this errors occurs.") - column: int = Field(description="The column number where this errors occurs.") - source: Missing[str] = Field( - default=UNSET, description="The contents of the line where the error occurs." + state: Missing[Literal["configured", "not-configured"]] = Field( + default=UNSET, + description="Code scanning default setup has been configured or not.", ) - kind: str = Field(description="The type of error.") - suggestion: Missing[Union[str, None]] = Field( + languages: Missing[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] = Field(default=UNSET, description="Languages to be analyzed.") + runner_type: Missing[Union[None, Literal["standard", "labeled"]]] = Field( + default=UNSET, description="Runner type to be used." + ) + runner_label: Missing[Union[str, None]] = Field( default=UNSET, - description="Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.", + description="Runner label to be used if the runner type is labeled.", + ) + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." + ) + updated_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Timestamp of latest configuration update." ) - message: str = Field( - description="A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting)." + schedule: Missing[Union[None, Literal["weekly"]]] = Field( + default=UNSET, description="The frequency of the periodic analysis." ) - path: str = Field(description="The path of the file where the error occured.") -model_rebuild(CodeownersErrors) -model_rebuild(CodeownersErrorsPropErrorsItems) +model_rebuild(CodeScanningDefaultSetup) -__all__ = ( - "CodeownersErrors", - "CodeownersErrorsPropErrorsItems", -) +__all__ = ("CodeScanningDefaultSetup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0236.py b/githubkit/versions/v2022_11_28/models/group_0236.py index de6f0cf08..089b0befc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0236.py +++ b/githubkit/versions/v2022_11_28/models/group_0236.py @@ -9,22 +9,51 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodespacesPermissionsCheckForDevcontainer(GitHubModel): - """Codespaces Permissions Check +class CodeScanningDefaultSetupUpdate(GitHubModel): + """CodeScanningDefaultSetupUpdate - Permission check result for a given devcontainer config. + Configuration for code scanning default setup. """ - accepted: bool = Field( - description="Whether the user has accepted the permissions defined by the devcontainer config" + state: Missing[Literal["configured", "not-configured"]] = Field( + default=UNSET, description="The desired state of code scanning default setup." ) - - -model_rebuild(CodespacesPermissionsCheckForDevcontainer) - -__all__ = ("CodespacesPermissionsCheckForDevcontainer",) + runner_type: Missing[Literal["standard", "labeled"]] = Field( + default=UNSET, description="Runner type to be used." + ) + runner_label: Missing[Union[str, None]] = Field( + default=UNSET, + description="Runner label to be used if the runner type is labeled.", + ) + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." + ) + languages: Missing[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "python", + "ruby", + "swift", + ] + ] + ] = Field(default=UNSET, description="CodeQL languages to be analyzed.") + + +model_rebuild(CodeScanningDefaultSetupUpdate) + +__all__ = ("CodeScanningDefaultSetupUpdate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0237.py b/githubkit/versions/v2022_11_28/models/group_0237.py index 1b3f4d702..4bb252bf7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0237.py +++ b/githubkit/versions/v2022_11_28/models/group_0237.py @@ -9,43 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0056 import MinimalRepository - -class RepositoryInvitation(GitHubModel): - """Repository Invitation +class CodeScanningDefaultSetupUpdateResponse(GitHubModel): + """CodeScanningDefaultSetupUpdateResponse - Repository invitations let you manage who you collaborate with. + You can use `run_url` to track the status of the run. This includes a property + status and conclusion. + You should not rely on this always being an actions workflow run object. """ - id: int = Field(description="Unique identifier of the repository invitation.") - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - invitee: Union[None, SimpleUser] = Field() - inviter: Union[None, SimpleUser] = Field() - permissions: Literal["read", "write", "admin", "triage", "maintain"] = Field( - description="The permission associated with the invitation." + run_id: Missing[int] = Field( + default=UNSET, description="ID of the corresponding run." ) - created_at: datetime = Field() - expired: Missing[bool] = Field( - default=UNSET, description="Whether or not the invitation has expired" + run_url: Missing[str] = Field( + default=UNSET, description="URL of the corresponding run." ) - url: str = Field(description="URL for the repository invitation") - html_url: str = Field() - node_id: str = Field() -model_rebuild(RepositoryInvitation) +model_rebuild(CodeScanningDefaultSetupUpdateResponse) -__all__ = ("RepositoryInvitation",) +__all__ = ("CodeScanningDefaultSetupUpdateResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0238.py b/githubkit/versions/v2022_11_28/models/group_0238.py index ba71473fc..a7508c529 100644 --- a/githubkit/versions/v2022_11_28/models/group_0238.py +++ b/githubkit/versions/v2022_11_28/models/group_0238.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,64 +16,16 @@ from githubkit.utils import UNSET -class RepositoryCollaboratorPermission(GitHubModel): - """Repository Collaborator Permission - - Repository Collaborator Permission - """ - - permission: str = Field() - role_name: str = Field() - user: Union[None, Collaborator] = Field() - - -class Collaborator(GitHubModel): - """Collaborator - - Collaborator - """ - - login: str = Field() - id: int = Field() - email: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - permissions: Missing[CollaboratorPropPermissions] = Field(default=UNSET) - role_name: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -class CollaboratorPropPermissions(GitHubModel): - """CollaboratorPropPermissions""" +class CodeScanningSarifsReceipt(GitHubModel): + """CodeScanningSarifsReceipt""" - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - admin: bool = Field() + id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") + url: Missing[str] = Field( + default=UNSET, + description="The REST API URL for checking the status of the upload.", + ) -model_rebuild(RepositoryCollaboratorPermission) -model_rebuild(Collaborator) -model_rebuild(CollaboratorPropPermissions) +model_rebuild(CodeScanningSarifsReceipt) -__all__ = ( - "Collaborator", - "CollaboratorPropPermissions", - "RepositoryCollaboratorPermission", -) +__all__ = ("CodeScanningSarifsReceipt",) diff --git a/githubkit/versions/v2022_11_28/models/group_0239.py b/githubkit/versions/v2022_11_28/models/group_0239.py index 07be9e9ec..525bd5e50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0239.py +++ b/githubkit/versions/v2022_11_28/models/group_0239.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,60 +17,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0039 import ReactionRollup +class CodeScanningSarifsStatus(GitHubModel): + """CodeScanningSarifsStatus""" -class CommitComment(GitHubModel): - """Commit Comment - - Commit Comment - """ - - html_url: str = Field() - url: str = Field() - id: int = Field() - node_id: str = Field() - body: str = Field() - path: Union[str, None] = Field() - position: Union[int, None] = Field() - line: Union[int, None] = Field() - commit_id: str = Field() - user: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + processing_status: Missing[Literal["pending", "complete", "failed"]] = Field( + default=UNSET, + description="`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.", + ) + analyses_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The REST API URL for getting the analyses associated with the upload.", + ) + errors: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="Any errors that ocurred during processing of the delivery.", ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - - -class TimelineCommitCommentedEvent(GitHubModel): - """Timeline Commit Commented Event - - Timeline Commit Commented Event - """ - - event: Missing[Literal["commit_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - commit_id: Missing[str] = Field(default=UNSET) - comments: Missing[list[CommitComment]] = Field(default=UNSET) -model_rebuild(CommitComment) -model_rebuild(TimelineCommitCommentedEvent) +model_rebuild(CodeScanningSarifsStatus) -__all__ = ( - "CommitComment", - "TimelineCommitCommentedEvent", -) +__all__ = ("CodeScanningSarifsStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0240.py b/githubkit/versions/v2022_11_28/models/group_0240.py index 1899117e7..a6444ae1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0240.py +++ b/githubkit/versions/v2022_11_28/models/group_0240.py @@ -9,33 +9,43 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0028 import CodeSecurityConfiguration -class BranchShort(GitHubModel): - """Branch Short - - Branch Short - """ - - name: str = Field() - commit: BranchShortPropCommit = Field() - protected: bool = Field() - - -class BranchShortPropCommit(GitHubModel): - """BranchShortPropCommit""" - sha: str = Field() - url: str = Field() +class CodeSecurityConfigurationForRepository(GitHubModel): + """CodeSecurityConfigurationForRepository + Code security configuration associated with a repository and attachment status + """ -model_rebuild(BranchShort) -model_rebuild(BranchShortPropCommit) - -__all__ = ( - "BranchShort", - "BranchShortPropCommit", -) + status: Missing[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] + ] = Field( + default=UNSET, + description="The attachment status of the code security configuration on the repository.", + ) + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" + ) + + +model_rebuild(CodeSecurityConfigurationForRepository) + +__all__ = ("CodeSecurityConfigurationForRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0241.py b/githubkit/versions/v2022_11_28/models/group_0241.py index b537858f8..b356aafc8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0241.py +++ b/githubkit/versions/v2022_11_28/models/group_0241.py @@ -9,20 +9,47 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class Link(GitHubModel): - """Link +class CodeownersErrors(GitHubModel): + """CODEOWNERS errors - Hypermedia Link + A list of errors found in a repo's CODEOWNERS file """ - href: str = Field() + errors: list[CodeownersErrorsPropErrorsItems] = Field() + + +class CodeownersErrorsPropErrorsItems(GitHubModel): + """CodeownersErrorsPropErrorsItems""" + + line: int = Field(description="The line number where this errors occurs.") + column: int = Field(description="The column number where this errors occurs.") + source: Missing[str] = Field( + default=UNSET, description="The contents of the line where the error occurs." + ) + kind: str = Field(description="The type of error.") + suggestion: Missing[Union[str, None]] = Field( + default=UNSET, + description="Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.", + ) + message: str = Field( + description="A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting)." + ) + path: str = Field(description="The path of the file where the error occured.") -model_rebuild(Link) +model_rebuild(CodeownersErrors) +model_rebuild(CodeownersErrorsPropErrorsItems) -__all__ = ("Link",) +__all__ = ( + "CodeownersErrors", + "CodeownersErrorsPropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0242.py b/githubkit/versions/v2022_11_28/models/group_0242.py index 264fa15ca..de6f0cf08 100644 --- a/githubkit/versions/v2022_11_28/models/group_0242.py +++ b/githubkit/versions/v2022_11_28/models/group_0242.py @@ -9,33 +9,22 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser - -class AutoMerge(GitHubModel): - """Auto merge +class CodespacesPermissionsCheckForDevcontainer(GitHubModel): + """Codespaces Permissions Check - The status of auto merging a pull request. + Permission check result for a given devcontainer config. """ - enabled_by: SimpleUser = Field(title="Simple User", description="A GitHub user.") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." + accepted: bool = Field( + description="Whether the user has accepted the permissions defined by the devcontainer config" ) -model_rebuild(AutoMerge) +model_rebuild(CodespacesPermissionsCheckForDevcontainer) -__all__ = ("AutoMerge",) +__all__ = ("CodespacesPermissionsCheckForDevcontainer",) diff --git a/githubkit/versions/v2022_11_28/models/group_0243.py b/githubkit/versions/v2022_11_28/models/group_0243.py index e74fd4bd5..757c79aac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0243.py +++ b/githubkit/versions/v2022_11_28/models/group_0243.py @@ -18,91 +18,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0038 import Milestone -from .group_0082 import Team -from .group_0242 import AutoMerge -from .group_0244 import PullRequestSimplePropBase, PullRequestSimplePropHead -from .group_0245 import PullRequestSimplePropLinks +from .group_0003 import SimpleUser +from .group_0057 import MinimalRepository -class PullRequestSimple(GitHubModel): - """Pull Request Simple +class RepositoryInvitation(GitHubModel): + """Repository Invitation - Pull Request Simple + Repository invitations let you manage who you collaborate with. """ - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field() - state: str = Field() - locked: bool = Field() - title: str = Field() - user: Union[None, SimpleUser] = Field() - body: Union[str, None] = Field() - labels: list[PullRequestSimplePropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[list[Team], None]] = Field(default=UNSET) - head: PullRequestSimplePropHead = Field() - base: PullRequestSimplePropBase = Field() - links: PullRequestSimplePropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + id: int = Field(description="Unique identifier of the repository invitation.") + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." + invitee: Union[None, SimpleUser] = Field() + inviter: Union[None, SimpleUser] = Field() + permissions: Literal["read", "write", "admin", "triage", "maintain"] = Field( + description="The permission associated with the invitation." ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", + created_at: datetime = Field() + expired: Missing[bool] = Field( + default=UNSET, description="Whether or not the invitation has expired" ) - - -class PullRequestSimplePropLabelsItems(GitHubModel): - """PullRequestSimplePropLabelsItems""" - - id: int = Field() + url: str = Field(description="URL for the repository invitation") + html_url: str = Field() node_id: str = Field() - url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() -model_rebuild(PullRequestSimple) -model_rebuild(PullRequestSimplePropLabelsItems) +model_rebuild(RepositoryInvitation) -__all__ = ( - "PullRequestSimple", - "PullRequestSimplePropLabelsItems", -) +__all__ = ("RepositoryInvitation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0244.py b/githubkit/versions/v2022_11_28/models/group_0244.py index 6941ced32..ba71473fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0244.py +++ b/githubkit/versions/v2022_11_28/models/group_0244.py @@ -14,35 +14,68 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0002 import SimpleUser -from .group_0019 import Repository - - -class PullRequestSimplePropHead(GitHubModel): - """PullRequestSimplePropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[None, Repository] = Field() - sha: str = Field() - user: Union[None, SimpleUser] = Field() - - -class PullRequestSimplePropBase(GitHubModel): - """PullRequestSimplePropBase""" - - label: str = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") - sha: str = Field() - user: Union[None, SimpleUser] = Field() - - -model_rebuild(PullRequestSimplePropHead) -model_rebuild(PullRequestSimplePropBase) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class RepositoryCollaboratorPermission(GitHubModel): + """Repository Collaborator Permission + + Repository Collaborator Permission + """ + + permission: str = Field() + role_name: str = Field() + user: Union[None, Collaborator] = Field() + + +class Collaborator(GitHubModel): + """Collaborator + + Collaborator + """ + + login: str = Field() + id: int = Field() + email: Missing[Union[str, None]] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + permissions: Missing[CollaboratorPropPermissions] = Field(default=UNSET) + role_name: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class CollaboratorPropPermissions(GitHubModel): + """CollaboratorPropPermissions""" + + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + admin: bool = Field() + + +model_rebuild(RepositoryCollaboratorPermission) +model_rebuild(Collaborator) +model_rebuild(CollaboratorPropPermissions) __all__ = ( - "PullRequestSimplePropBase", - "PullRequestSimplePropHead", + "Collaborator", + "CollaboratorPropPermissions", + "RepositoryCollaboratorPermission", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0245.py b/githubkit/versions/v2022_11_28/models/group_0245.py index 7bd7ec026..de526f725 100644 --- a/githubkit/versions/v2022_11_28/models/group_0245.py +++ b/githubkit/versions/v2022_11_28/models/group_0245.py @@ -9,26 +9,69 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0040 import ReactionRollup + + +class CommitComment(GitHubModel): + """Commit Comment + + Commit Comment + """ + + html_url: str = Field() + url: str = Field() + id: int = Field() + node_id: str = Field() + body: str = Field() + path: Union[str, None] = Field() + position: Union[int, None] = Field() + line: Union[int, None] = Field() + commit_id: str = Field() + user: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -from .group_0241 import Link +class TimelineCommitCommentedEvent(GitHubModel): + """Timeline Commit Commented Event -class PullRequestSimplePropLinks(GitHubModel): - """PullRequestSimplePropLinks""" + Timeline Commit Commented Event + """ - comments: Link = Field(title="Link", description="Hypermedia Link") - commits: Link = Field(title="Link", description="Hypermedia Link") - statuses: Link = Field(title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - issue: Link = Field(title="Link", description="Hypermedia Link") - review_comments: Link = Field(title="Link", description="Hypermedia Link") - review_comment: Link = Field(title="Link", description="Hypermedia Link") - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + event: Missing[Literal["commit_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + commit_id: Missing[str] = Field(default=UNSET) + comments: Missing[list[CommitComment]] = Field(default=UNSET) -model_rebuild(PullRequestSimplePropLinks) +model_rebuild(CommitComment) +model_rebuild(TimelineCommitCommentedEvent) -__all__ = ("PullRequestSimplePropLinks",) +__all__ = ( + "CommitComment", + "TimelineCommitCommentedEvent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0246.py b/githubkit/versions/v2022_11_28/models/group_0246.py index c4fea8b07..1899117e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0246.py +++ b/githubkit/versions/v2022_11_28/models/group_0246.py @@ -9,55 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0056 import MinimalRepository -class CombinedCommitStatus(GitHubModel): - """Combined Commit Status +class BranchShort(GitHubModel): + """Branch Short - Combined Commit Status + Branch Short """ - state: str = Field() - statuses: list[SimpleCommitStatus] = Field() - sha: str = Field() - total_count: int = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - commit_url: str = Field() - url: str = Field() + name: str = Field() + commit: BranchShortPropCommit = Field() + protected: bool = Field() -class SimpleCommitStatus(GitHubModel): - """Simple Commit Status""" +class BranchShortPropCommit(GitHubModel): + """BranchShortPropCommit""" - description: Union[str, None] = Field() - id: int = Field() - node_id: str = Field() - state: str = Field() - context: str = Field() - target_url: Union[str, None] = Field() - required: Missing[Union[bool, None]] = Field(default=UNSET) - avatar_url: Union[str, None] = Field() + sha: str = Field() url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() -model_rebuild(CombinedCommitStatus) -model_rebuild(SimpleCommitStatus) +model_rebuild(BranchShort) +model_rebuild(BranchShortPropCommit) __all__ = ( - "CombinedCommitStatus", - "SimpleCommitStatus", + "BranchShort", + "BranchShortPropCommit", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0247.py b/githubkit/versions/v2022_11_28/models/group_0247.py index 90acabe2a..b537858f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0247.py +++ b/githubkit/versions/v2022_11_28/models/group_0247.py @@ -9,34 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser - -class Status(GitHubModel): - """Status +class Link(GitHubModel): + """Link - The status of a commit. + Hypermedia Link """ - url: str = Field() - avatar_url: Union[str, None] = Field() - id: int = Field() - node_id: str = Field() - state: str = Field() - description: Union[str, None] = Field() - target_url: Union[str, None] = Field() - context: str = Field() - created_at: str = Field() - updated_at: str = Field() - creator: Union[None, SimpleUser] = Field() + href: str = Field() -model_rebuild(Status) +model_rebuild(Link) -__all__ = ("Status",) +__all__ = ("Link",) diff --git a/githubkit/versions/v2022_11_28/models/group_0248.py b/githubkit/versions/v2022_11_28/models/group_0248.py index 577ab068d..48491e4bb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0248.py +++ b/githubkit/versions/v2022_11_28/models/group_0248.py @@ -9,58 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0018 import LicenseSimple -from .group_0111 import CodeOfConductSimple +from .group_0003 import SimpleUser -class CommunityProfilePropFiles(GitHubModel): - """CommunityProfilePropFiles""" +class AutoMerge(GitHubModel): + """Auto merge - code_of_conduct: Union[None, CodeOfConductSimple] = Field() - code_of_conduct_file: Union[None, CommunityHealthFile] = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - contributing: Union[None, CommunityHealthFile] = Field() - readme: Union[None, CommunityHealthFile] = Field() - issue_template: Union[None, CommunityHealthFile] = Field() - pull_request_template: Union[None, CommunityHealthFile] = Field() - - -class CommunityHealthFile(GitHubModel): - """Community Health File""" - - url: str = Field() - html_url: str = Field() - - -class CommunityProfile(GitHubModel): - """Community Profile - - Community Profile + The status of auto merging a pull request. """ - health_percentage: int = Field() - description: Union[str, None] = Field() - documentation: Union[str, None] = Field() - files: CommunityProfilePropFiles = Field() - updated_at: Union[datetime, None] = Field() - content_reports_enabled: Missing[bool] = Field(default=UNSET) + enabled_by: SimpleUser = Field(title="Simple User", description="A GitHub user.") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) -model_rebuild(CommunityProfilePropFiles) -model_rebuild(CommunityHealthFile) -model_rebuild(CommunityProfile) +model_rebuild(AutoMerge) -__all__ = ( - "CommunityHealthFile", - "CommunityProfile", - "CommunityProfilePropFiles", -) +__all__ = ("AutoMerge",) diff --git a/githubkit/versions/v2022_11_28/models/group_0249.py b/githubkit/versions/v2022_11_28/models/group_0249.py index 457c48854..b55d43bdc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0249.py +++ b/githubkit/versions/v2022_11_28/models/group_0249.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,31 +18,91 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0203 import DiffEntry -from .group_0204 import Commit +from .group_0003 import SimpleUser +from .group_0039 import Milestone +from .group_0087 import Team +from .group_0248 import AutoMerge +from .group_0250 import PullRequestSimplePropBase, PullRequestSimplePropHead +from .group_0251 import PullRequestSimplePropLinks -class CommitComparison(GitHubModel): - """Commit Comparison +class PullRequestSimple(GitHubModel): + """Pull Request Simple - Commit Comparison + Pull Request Simple """ url: str = Field() + id: int = Field() + node_id: str = Field() html_url: str = Field() - permalink_url: str = Field() diff_url: str = Field() patch_url: str = Field() - base_commit: Commit = Field(title="Commit", description="Commit") - merge_base_commit: Commit = Field(title="Commit", description="Commit") - status: Literal["diverged", "ahead", "behind", "identical"] = Field() - ahead_by: int = Field() - behind_by: int = Field() - total_commits: int = Field() - commits: list[Commit] = Field() - files: Missing[list[DiffEntry]] = Field(default=UNSET) + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field() + state: str = Field() + locked: bool = Field() + title: str = Field() + user: Union[None, SimpleUser] = Field() + body: Union[str, None] = Field() + labels: list[PullRequestSimplePropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[list[Team], None]] = Field(default=UNSET) + head: PullRequestSimplePropHead = Field() + base: PullRequestSimplePropBase = Field() + links: PullRequestSimplePropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) -model_rebuild(CommitComparison) +class PullRequestSimplePropLabelsItems(GitHubModel): + """PullRequestSimplePropLabelsItems""" -__all__ = ("CommitComparison",) + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() + description: Union[str, None] = Field() + color: str = Field() + default: bool = Field() + + +model_rebuild(PullRequestSimple) +model_rebuild(PullRequestSimplePropLabelsItems) + +__all__ = ( + "PullRequestSimple", + "PullRequestSimplePropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0250.py b/githubkit/versions/v2022_11_28/models/group_0250.py index 445f68e5f..f7a7c23e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0250.py +++ b/githubkit/versions/v2022_11_28/models/group_0250.py @@ -14,69 +14,35 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0020 import Repository -class ContentTree(GitHubModel): - """Content Tree - Content Tree - """ +class PullRequestSimplePropHead(GitHubModel): + """PullRequestSimplePropHead""" - type: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[None, Repository] = Field() sha: str = Field() - content: Missing[str] = Field(default=UNSET) - url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - entries: Missing[list[ContentTreePropEntriesItems]] = Field(default=UNSET) - links: ContentTreePropLinks = Field(alias="_links") + user: Union[None, SimpleUser] = Field() -class ContentTreePropLinks(GitHubModel): - """ContentTreePropLinks""" +class PullRequestSimplePropBase(GitHubModel): + """PullRequestSimplePropBase""" - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") - - -class ContentTreePropEntriesItems(GitHubModel): - """ContentTreePropEntriesItems""" - - type: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() + label: str = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") sha: str = Field() - url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentTreePropEntriesItemsPropLinks = Field(alias="_links") - - -class ContentTreePropEntriesItemsPropLinks(GitHubModel): - """ContentTreePropEntriesItemsPropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + user: Union[None, SimpleUser] = Field() -model_rebuild(ContentTree) -model_rebuild(ContentTreePropLinks) -model_rebuild(ContentTreePropEntriesItems) -model_rebuild(ContentTreePropEntriesItemsPropLinks) +model_rebuild(PullRequestSimplePropHead) +model_rebuild(PullRequestSimplePropBase) __all__ = ( - "ContentTree", - "ContentTreePropEntriesItems", - "ContentTreePropEntriesItemsPropLinks", - "ContentTreePropLinks", + "PullRequestSimplePropBase", + "PullRequestSimplePropHead", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0251.py b/githubkit/versions/v2022_11_28/models/group_0251.py index b3b3e9366..f821daa22 100644 --- a/githubkit/versions/v2022_11_28/models/group_0251.py +++ b/githubkit/versions/v2022_11_28/models/group_0251.py @@ -9,43 +9,26 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ContentDirectoryItems(GitHubModel): - """ContentDirectoryItems""" - type: Literal["dir", "file", "submodule", "symlink"] = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: Missing[str] = Field(default=UNSET) - sha: str = Field() - url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentDirectoryItemsPropLinks = Field(alias="_links") +from .group_0247 import Link -class ContentDirectoryItemsPropLinks(GitHubModel): - """ContentDirectoryItemsPropLinks""" +class PullRequestSimplePropLinks(GitHubModel): + """PullRequestSimplePropLinks""" - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + comments: Link = Field(title="Link", description="Hypermedia Link") + commits: Link = Field(title="Link", description="Hypermedia Link") + statuses: Link = Field(title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + issue: Link = Field(title="Link", description="Hypermedia Link") + review_comments: Link = Field(title="Link", description="Hypermedia Link") + review_comment: Link = Field(title="Link", description="Hypermedia Link") + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") -model_rebuild(ContentDirectoryItems) -model_rebuild(ContentDirectoryItemsPropLinks) +model_rebuild(PullRequestSimplePropLinks) -__all__ = ( - "ContentDirectoryItems", - "ContentDirectoryItemsPropLinks", -) +__all__ = ("PullRequestSimplePropLinks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0252.py b/githubkit/versions/v2022_11_28/models/group_0252.py index 15cd134fc..5f33c4e99 100644 --- a/githubkit/versions/v2022_11_28/models/group_0252.py +++ b/githubkit/versions/v2022_11_28/models/group_0252.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,41 +18,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0057 import MinimalRepository -class ContentFile(GitHubModel): - """Content File - Content File +class CombinedCommitStatus(GitHubModel): + """Combined Commit Status + + Combined Commit Status """ - type: Literal["file"] = Field() - encoding: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: str = Field() + state: str = Field() + statuses: list[SimpleCommitStatus] = Field() sha: str = Field() + total_count: int = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + commit_url: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentFilePropLinks = Field(alias="_links") - target: Missing[str] = Field(default=UNSET) - submodule_git_url: Missing[str] = Field(default=UNSET) -class ContentFilePropLinks(GitHubModel): - """ContentFilePropLinks""" +class SimpleCommitStatus(GitHubModel): + """Simple Commit Status""" - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + description: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + state: str = Field() + context: str = Field() + target_url: Union[str, None] = Field() + required: Missing[Union[bool, None]] = Field(default=UNSET) + avatar_url: Union[str, None] = Field() + url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ContentFile) -model_rebuild(ContentFilePropLinks) +model_rebuild(CombinedCommitStatus) +model_rebuild(SimpleCommitStatus) __all__ = ( - "ContentFile", - "ContentFilePropLinks", + "CombinedCommitStatus", + "SimpleCommitStatus", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0253.py b/githubkit/versions/v2022_11_28/models/group_0253.py index bc90348f6..d233ecff0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0253.py +++ b/githubkit/versions/v2022_11_28/models/group_0253.py @@ -9,44 +9,34 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser -class ContentSymlink(GitHubModel): - """Symlink Content - An object describing a symlink +class Status(GitHubModel): + """Status + + The status of a commit. """ - type: Literal["symlink"] = Field() - target: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - sha: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentSymlinkPropLinks = Field(alias="_links") - - -class ContentSymlinkPropLinks(GitHubModel): - """ContentSymlinkPropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + avatar_url: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + state: str = Field() + description: Union[str, None] = Field() + target_url: Union[str, None] = Field() + context: str = Field() + created_at: str = Field() + updated_at: str = Field() + creator: Union[None, SimpleUser] = Field() -model_rebuild(ContentSymlink) -model_rebuild(ContentSymlinkPropLinks) +model_rebuild(Status) -__all__ = ( - "ContentSymlink", - "ContentSymlinkPropLinks", -) +__all__ = ("Status",) diff --git a/githubkit/versions/v2022_11_28/models/group_0254.py b/githubkit/versions/v2022_11_28/models/group_0254.py index 99580ae80..ae36b689a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0254.py +++ b/githubkit/versions/v2022_11_28/models/group_0254.py @@ -9,44 +9,58 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0019 import LicenseSimple +from .group_0116 import CodeOfConductSimple -class ContentSubmodule(GitHubModel): - """Submodule Content - An object describing a submodule - """ +class CommunityProfilePropFiles(GitHubModel): + """CommunityProfilePropFiles""" + + code_of_conduct: Union[None, CodeOfConductSimple] = Field() + code_of_conduct_file: Union[None, CommunityHealthFile] = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + contributing: Union[None, CommunityHealthFile] = Field() + readme: Union[None, CommunityHealthFile] = Field() + issue_template: Union[None, CommunityHealthFile] = Field() + pull_request_template: Union[None, CommunityHealthFile] = Field() + + +class CommunityHealthFile(GitHubModel): + """Community Health File""" - type: Literal["submodule"] = Field() - submodule_git_url: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - sha: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentSubmodulePropLinks = Field(alias="_links") + html_url: str = Field() + +class CommunityProfile(GitHubModel): + """Community Profile -class ContentSubmodulePropLinks(GitHubModel): - """ContentSubmodulePropLinks""" + Community Profile + """ - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + health_percentage: int = Field() + description: Union[str, None] = Field() + documentation: Union[str, None] = Field() + files: CommunityProfilePropFiles = Field() + updated_at: Union[datetime, None] = Field() + content_reports_enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(ContentSubmodule) -model_rebuild(ContentSubmodulePropLinks) +model_rebuild(CommunityProfilePropFiles) +model_rebuild(CommunityHealthFile) +model_rebuild(CommunityProfile) __all__ = ( - "ContentSubmodule", - "ContentSubmodulePropLinks", + "CommunityHealthFile", + "CommunityProfile", + "CommunityProfilePropFiles", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0255.py b/githubkit/versions/v2022_11_28/models/group_0255.py index 446b6612c..04693ef15 100644 --- a/githubkit/versions/v2022_11_28/models/group_0255.py +++ b/githubkit/versions/v2022_11_28/models/group_0255.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,116 +17,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0209 import DiffEntry +from .group_0210 import Commit -class FileCommit(GitHubModel): - """File Commit - File Commit - """ - - content: Union[FileCommitPropContent, None] = Field() - commit: FileCommitPropCommit = Field() - - -class FileCommitPropContent(GitHubModel): - """FileCommitPropContent""" - - name: Missing[str] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - links: Missing[FileCommitPropContentPropLinks] = Field( - default=UNSET, alias="_links" - ) - - -class FileCommitPropContentPropLinks(GitHubModel): - """FileCommitPropContentPropLinks""" - - self_: Missing[str] = Field(default=UNSET, alias="self") - git: Missing[str] = Field(default=UNSET) - html: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommit(GitHubModel): - """FileCommitPropCommit""" - - sha: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - author: Missing[FileCommitPropCommitPropAuthor] = Field(default=UNSET) - committer: Missing[FileCommitPropCommitPropCommitter] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - tree: Missing[FileCommitPropCommitPropTree] = Field(default=UNSET) - parents: Missing[list[FileCommitPropCommitPropParentsItems]] = Field(default=UNSET) - verification: Missing[FileCommitPropCommitPropVerification] = Field(default=UNSET) - - -class FileCommitPropCommitPropAuthor(GitHubModel): - """FileCommitPropCommitPropAuthor""" +class CommitComparison(GitHubModel): + """Commit Comparison - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropCommitter(GitHubModel): - """FileCommitPropCommitPropCommitter""" - - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropTree(GitHubModel): - """FileCommitPropCommitPropTree""" - - url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropParentsItems(GitHubModel): - """FileCommitPropCommitPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropVerification(GitHubModel): - """FileCommitPropCommitPropVerification""" + Commit Comparison + """ - verified: Missing[bool] = Field(default=UNSET) - reason: Missing[str] = Field(default=UNSET) - signature: Missing[Union[str, None]] = Field(default=UNSET) - payload: Missing[Union[str, None]] = Field(default=UNSET) - verified_at: Missing[Union[str, None]] = Field(default=UNSET) + url: str = Field() + html_url: str = Field() + permalink_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + base_commit: Commit = Field(title="Commit", description="Commit") + merge_base_commit: Commit = Field(title="Commit", description="Commit") + status: Literal["diverged", "ahead", "behind", "identical"] = Field() + ahead_by: int = Field() + behind_by: int = Field() + total_commits: int = Field() + commits: list[Commit] = Field() + files: Missing[list[DiffEntry]] = Field(default=UNSET) -model_rebuild(FileCommit) -model_rebuild(FileCommitPropContent) -model_rebuild(FileCommitPropContentPropLinks) -model_rebuild(FileCommitPropCommit) -model_rebuild(FileCommitPropCommitPropAuthor) -model_rebuild(FileCommitPropCommitPropCommitter) -model_rebuild(FileCommitPropCommitPropTree) -model_rebuild(FileCommitPropCommitPropParentsItems) -model_rebuild(FileCommitPropCommitPropVerification) +model_rebuild(CommitComparison) -__all__ = ( - "FileCommit", - "FileCommitPropCommit", - "FileCommitPropCommitPropAuthor", - "FileCommitPropCommitPropCommitter", - "FileCommitPropCommitPropParentsItems", - "FileCommitPropCommitPropTree", - "FileCommitPropCommitPropVerification", - "FileCommitPropContent", - "FileCommitPropContentPropLinks", -) +__all__ = ("CommitComparison",) diff --git a/githubkit/versions/v2022_11_28/models/group_0256.py b/githubkit/versions/v2022_11_28/models/group_0256.py index 97c97b542..445f68e5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0256.py +++ b/githubkit/versions/v2022_11_28/models/group_0256.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,60 +18,65 @@ from githubkit.utils import UNSET -class RepositoryRuleViolationError(GitHubModel): - """RepositoryRuleViolationError +class ContentTree(GitHubModel): + """Content Tree - Repository rule violation was detected + Content Tree """ - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - metadata: Missing[RepositoryRuleViolationErrorPropMetadata] = Field(default=UNSET) + type: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + content: Missing[str] = Field(default=UNSET) + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + entries: Missing[list[ContentTreePropEntriesItems]] = Field(default=UNSET) + links: ContentTreePropLinks = Field(alias="_links") -class RepositoryRuleViolationErrorPropMetadata(GitHubModel): - """RepositoryRuleViolationErrorPropMetadata""" +class ContentTreePropLinks(GitHubModel): + """ContentTreePropLinks""" - secret_scanning: Missing[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanning - ] = Field(default=UNSET) + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -class RepositoryRuleViolationErrorPropMetadataPropSecretScanning(GitHubModel): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" +class ContentTreePropEntriesItems(GitHubModel): + """ContentTreePropEntriesItems""" - bypass_placeholders: Missing[ - list[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems - ] - ] = Field(default=UNSET) + type: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentTreePropEntriesItemsPropLinks = Field(alias="_links") -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems( - GitHubModel -): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders - Items - """ +class ContentTreePropEntriesItemsPropLinks(GitHubModel): + """ContentTreePropEntriesItemsPropLinks""" - placeholder_id: Missing[str] = Field( - default=UNSET, - description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes.", - ) - token_type: Missing[str] = Field(default=UNSET) + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -model_rebuild(RepositoryRuleViolationError) -model_rebuild(RepositoryRuleViolationErrorPropMetadata) -model_rebuild(RepositoryRuleViolationErrorPropMetadataPropSecretScanning) -model_rebuild( - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems -) +model_rebuild(ContentTree) +model_rebuild(ContentTreePropLinks) +model_rebuild(ContentTreePropEntriesItems) +model_rebuild(ContentTreePropEntriesItemsPropLinks) __all__ = ( - "RepositoryRuleViolationError", - "RepositoryRuleViolationErrorPropMetadata", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", + "ContentTree", + "ContentTreePropEntriesItems", + "ContentTreePropEntriesItemsPropLinks", + "ContentTreePropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0257.py b/githubkit/versions/v2022_11_28/models/group_0257.py index fcc5e341f..b3b3e9366 100644 --- a/githubkit/versions/v2022_11_28/models/group_0257.py +++ b/githubkit/versions/v2022_11_28/models/group_0257.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,36 +18,34 @@ from githubkit.utils import UNSET -class Contributor(GitHubModel): - """Contributor - - Contributor - """ - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[Union[str, None]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: str = Field() - site_admin: Missing[bool] = Field(default=UNSET) - contributions: int = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(Contributor) - -__all__ = ("Contributor",) +class ContentDirectoryItems(GitHubModel): + """ContentDirectoryItems""" + + type: Literal["dir", "file", "submodule", "symlink"] = Field() + size: int = Field() + name: str = Field() + path: str = Field() + content: Missing[str] = Field(default=UNSET) + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentDirectoryItemsPropLinks = Field(alias="_links") + + +class ContentDirectoryItemsPropLinks(GitHubModel): + """ContentDirectoryItemsPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentDirectoryItems) +model_rebuild(ContentDirectoryItemsPropLinks) + +__all__ = ( + "ContentDirectoryItems", + "ContentDirectoryItemsPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0258.py b/githubkit/versions/v2022_11_28/models/group_0258.py index 1f5860bd8..15cd134fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0258.py +++ b/githubkit/versions/v2022_11_28/models/group_0258.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,61 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0033 import DependabotAlertSecurityVulnerability -from .group_0034 import DependabotAlertSecurityAdvisory -from .group_0259 import DependabotAlertPropDependency +class ContentFile(GitHubModel): + """Content File -class DependabotAlert(GitHubModel): - """DependabotAlert - - A Dependabot alert. + Content File """ - number: int = Field(description="The security alert number.") - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( - description="The state of the Dependabot alert." - ) - dependency: DependabotAlertPropDependency = Field( - description="Details for the vulnerable dependency." - ) - security_advisory: DependabotAlertSecurityAdvisory = Field( - description="Details for the GitHub Security Advisory." - ) - security_vulnerability: DependabotAlertSecurityVulnerability = Field( - description="Details pertaining to one vulnerable version range for the advisory." - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: datetime = Field( - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] = Field(description="The reason that the alert was dismissed.") - dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( - description="An optional comment associated with the alert's dismissal." - ) - fixed_at: Union[datetime, None] = Field( - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - auto_dismissed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -model_rebuild(DependabotAlert) - -__all__ = ("DependabotAlert",) + type: Literal["file"] = Field() + encoding: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + content: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentFilePropLinks = Field(alias="_links") + target: Missing[str] = Field(default=UNSET) + submodule_git_url: Missing[str] = Field(default=UNSET) + + +class ContentFilePropLinks(GitHubModel): + """ContentFilePropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentFile) +model_rebuild(ContentFilePropLinks) + +__all__ = ( + "ContentFile", + "ContentFilePropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0259.py b/githubkit/versions/v2022_11_28/models/group_0259.py index fc31688b8..bc90348f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0259.py +++ b/githubkit/versions/v2022_11_28/models/group_0259.py @@ -14,30 +14,39 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0032 import DependabotAlertPackage +class ContentSymlink(GitHubModel): + """Symlink Content -class DependabotAlertPropDependency(GitHubModel): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + An object describing a symlink """ - package: Missing[DependabotAlertPackage] = Field( - default=UNSET, description="Details for the vulnerable package." - ) - manifest_path: Missing[str] = Field( - default=UNSET, - description="The full path to the dependency manifest file, relative to the root of the repository.", - ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." - ) + type: Literal["symlink"] = Field() + target: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentSymlinkPropLinks = Field(alias="_links") + + +class ContentSymlinkPropLinks(GitHubModel): + """ContentSymlinkPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -model_rebuild(DependabotAlertPropDependency) +model_rebuild(ContentSymlink) +model_rebuild(ContentSymlinkPropLinks) -__all__ = ("DependabotAlertPropDependency",) +__all__ = ( + "ContentSymlink", + "ContentSymlinkPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0260.py b/githubkit/versions/v2022_11_28/models/group_0260.py index 9f05df69c..99580ae80 100644 --- a/githubkit/versions/v2022_11_28/models/group_0260.py +++ b/githubkit/versions/v2022_11_28/models/group_0260.py @@ -16,36 +16,37 @@ from githubkit.compat import GitHubModel, model_rebuild -class DependencyGraphDiffItems(GitHubModel): - """DependencyGraphDiffItems""" +class ContentSubmodule(GitHubModel): + """Submodule Content - change_type: Literal["added", "removed"] = Field() - manifest: str = Field() - ecosystem: str = Field() + An object describing a submodule + """ + + type: Literal["submodule"] = Field() + submodule_git_url: str = Field() + size: int = Field() name: str = Field() - version: str = Field() - package_url: Union[str, None] = Field() - license_: Union[str, None] = Field(alias="license") - source_repository_url: Union[str, None] = Field() - vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItems] = Field() - scope: Literal["unknown", "runtime", "development"] = Field( - description="Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment." - ) + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentSubmodulePropLinks = Field(alias="_links") -class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" +class ContentSubmodulePropLinks(GitHubModel): + """ContentSubmodulePropLinks""" - severity: str = Field() - advisory_ghsa_id: str = Field() - advisory_summary: str = Field() - advisory_url: str = Field() + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -model_rebuild(DependencyGraphDiffItems) -model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) +model_rebuild(ContentSubmodule) +model_rebuild(ContentSubmodulePropLinks) __all__ = ( - "DependencyGraphDiffItems", - "DependencyGraphDiffItemsPropVulnerabilitiesItems", + "ContentSubmodule", + "ContentSubmodulePropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0261.py b/githubkit/versions/v2022_11_28/models/group_0261.py index b7506354d..446b6612c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0261.py +++ b/githubkit/versions/v2022_11_28/models/group_0261.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,153 +18,115 @@ from githubkit.utils import UNSET -class DependencyGraphSpdxSbom(GitHubModel): - """Dependency Graph SPDX SBOM +class FileCommit(GitHubModel): + """File Commit - A schema for the SPDX JSON format returned by the Dependency Graph. + File Commit """ - sbom: DependencyGraphSpdxSbomPropSbom = Field() + content: Union[FileCommitPropContent, None] = Field() + commit: FileCommitPropCommit = Field() -class DependencyGraphSpdxSbomPropSbom(GitHubModel): - """DependencyGraphSpdxSbomPropSbom""" +class FileCommitPropContent(GitHubModel): + """FileCommitPropContent""" - spdxid: str = Field( - alias="SPDXID", description="The SPDX identifier for the SPDX document." - ) - spdx_version: str = Field( - alias="spdxVersion", - description="The version of the SPDX specification that this document conforms to.", - ) - comment: Missing[str] = Field( - default=UNSET, description="An optional comment about the SPDX document." - ) - creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfo = Field( - alias="creationInfo" + name: Missing[str] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + download_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + links: Missing[FileCommitPropContentPropLinks] = Field( + default=UNSET, alias="_links" ) - name: str = Field(description="The name of the SPDX document.") - data_license: str = Field( - alias="dataLicense", - description="The license under which the SPDX document is licensed.", - ) - document_namespace: str = Field( - alias="documentNamespace", description="The namespace for the SPDX document." - ) - packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItems] = Field() - relationships: Missing[ - list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItems] - ] = Field(default=UNSET) -class DependencyGraphSpdxSbomPropSbomPropCreationInfo(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" +class FileCommitPropContentPropLinks(GitHubModel): + """FileCommitPropContentPropLinks""" - created: str = Field(description="The date and time the SPDX document was created.") - creators: list[str] = Field( - description="The tools that were used to generate the SPDX document." - ) + self_: Missing[str] = Field(default=UNSET, alias="self") + git: Missing[str] = Field(default=UNSET) + html: Missing[str] = Field(default=UNSET) -class DependencyGraphSpdxSbomPropSbomPropRelationshipsItems(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" +class FileCommitPropCommit(GitHubModel): + """FileCommitPropCommit""" - relationship_type: Missing[str] = Field( - default=UNSET, - alias="relationshipType", - description="The type of relationship between the two SPDX elements.", - ) - spdx_element_id: Missing[str] = Field( - default=UNSET, - alias="spdxElementId", - description="The SPDX identifier of the package that is the source of the relationship.", - ) - related_spdx_element: Missing[str] = Field( - default=UNSET, - alias="relatedSpdxElement", - description="The SPDX identifier of the package that is the target of the relationship.", - ) + sha: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + author: Missing[FileCommitPropCommitPropAuthor] = Field(default=UNSET) + committer: Missing[FileCommitPropCommitPropCommitter] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + tree: Missing[FileCommitPropCommitPropTree] = Field(default=UNSET) + parents: Missing[list[FileCommitPropCommitPropParentsItems]] = Field(default=UNSET) + verification: Missing[FileCommitPropCommitPropVerification] = Field(default=UNSET) -class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" +class FileCommitPropCommitPropAuthor(GitHubModel): + """FileCommitPropCommitPropAuthor""" - spdxid: Missing[str] = Field( - default=UNSET, - alias="SPDXID", - description="A unique SPDX identifier for the package.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the package.") - version_info: Missing[str] = Field( - default=UNSET, - alias="versionInfo", - description="The version of the package. If the package does not have an exact version specified,\na version range is given.", - ) - download_location: Missing[str] = Field( - default=UNSET, - alias="downloadLocation", - description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", - ) - files_analyzed: Missing[bool] = Field( - default=UNSET, - alias="filesAnalyzed", - description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", - ) - license_concluded: Missing[str] = Field( - default=UNSET, - alias="licenseConcluded", - description="The license of the package as determined while creating the SPDX document.", - ) - license_declared: Missing[str] = Field( - default=UNSET, - alias="licenseDeclared", - description="The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created.", - ) - supplier: Missing[str] = Field( - default=UNSET, - description="The distribution source of this package, or NOASSERTION if this was not determined.", - ) - copyright_text: Missing[str] = Field( - default=UNSET, - alias="copyrightText", - description="The copyright holders of the package, and any dates present with those notices, if available.", - ) - external_refs: Missing[ - list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems] - ] = Field(default=UNSET, alias="externalRefs") + date: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems( - GitHubModel -): - """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" +class FileCommitPropCommitPropCommitter(GitHubModel): + """FileCommitPropCommitPropCommitter""" - reference_category: str = Field( - alias="referenceCategory", - description="The category of reference to an external resource this reference refers to.", - ) - reference_locator: str = Field( - alias="referenceLocator", - description="A locator for the particular external resource this reference refers to.", - ) - reference_type: str = Field( - alias="referenceType", - description="The category of reference to an external resource this reference refers to.", - ) + date: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropTree(GitHubModel): + """FileCommitPropCommitPropTree""" + + url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropParentsItems(GitHubModel): + """FileCommitPropCommitPropParentsItems""" + + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropVerification(GitHubModel): + """FileCommitPropCommitPropVerification""" + + verified: Missing[bool] = Field(default=UNSET) + reason: Missing[str] = Field(default=UNSET) + signature: Missing[Union[str, None]] = Field(default=UNSET) + payload: Missing[Union[str, None]] = Field(default=UNSET) + verified_at: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(DependencyGraphSpdxSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropRelationshipsItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) +model_rebuild(FileCommit) +model_rebuild(FileCommitPropContent) +model_rebuild(FileCommitPropContentPropLinks) +model_rebuild(FileCommitPropCommit) +model_rebuild(FileCommitPropCommitPropAuthor) +model_rebuild(FileCommitPropCommitPropCommitter) +model_rebuild(FileCommitPropCommitPropTree) +model_rebuild(FileCommitPropCommitPropParentsItems) +model_rebuild(FileCommitPropCommitPropVerification) __all__ = ( - "DependencyGraphSpdxSbom", - "DependencyGraphSpdxSbomPropSbom", - "DependencyGraphSpdxSbomPropSbomPropCreationInfo", - "DependencyGraphSpdxSbomPropSbomPropPackagesItems", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", - "DependencyGraphSpdxSbomPropSbomPropRelationshipsItems", + "FileCommit", + "FileCommitPropCommit", + "FileCommitPropCommitPropAuthor", + "FileCommitPropCommitPropCommitter", + "FileCommitPropCommitPropParentsItems", + "FileCommitPropCommitPropTree", + "FileCommitPropCommitPropVerification", + "FileCommitPropContent", + "FileCommitPropContentPropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0262.py b/githubkit/versions/v2022_11_28/models/group_0262.py index ffac1fb50..97c97b542 100644 --- a/githubkit/versions/v2022_11_28/models/group_0262.py +++ b/githubkit/versions/v2022_11_28/models/group_0262.py @@ -9,17 +9,67 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from pydantic import Field +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class Metadata(ExtraGitHubModel): - """metadata - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. +class RepositoryRuleViolationError(GitHubModel): + """RepositoryRuleViolationError + + Repository rule violation was detected + """ + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + metadata: Missing[RepositoryRuleViolationErrorPropMetadata] = Field(default=UNSET) + + +class RepositoryRuleViolationErrorPropMetadata(GitHubModel): + """RepositoryRuleViolationErrorPropMetadata""" + + secret_scanning: Missing[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanning + ] = Field(default=UNSET) + + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanning(GitHubModel): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" + + bypass_placeholders: Missing[ + list[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems + ] + ] = Field(default=UNSET) + + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems( + GitHubModel +): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders + Items """ + placeholder_id: Missing[str] = Field( + default=UNSET, + description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes.", + ) + token_type: Missing[str] = Field(default=UNSET) + -model_rebuild(Metadata) +model_rebuild(RepositoryRuleViolationError) +model_rebuild(RepositoryRuleViolationErrorPropMetadata) +model_rebuild(RepositoryRuleViolationErrorPropMetadataPropSecretScanning) +model_rebuild( + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems +) -__all__ = ("Metadata",) +__all__ = ( + "RepositoryRuleViolationError", + "RepositoryRuleViolationErrorPropMetadata", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0263.py b/githubkit/versions/v2022_11_28/models/group_0263.py index ad49c09ef..fcc5e341f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0263.py +++ b/githubkit/versions/v2022_11_28/models/group_0263.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,36 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0262 import Metadata - - -class Dependency(GitHubModel): - """Dependency""" - - package_url: Missing[str] = Field( - pattern="^pkg", - default=UNSET, - description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.", - ) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", - ) - relationship: Missing[Literal["direct", "indirect"]] = Field( - default=UNSET, - description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", - ) - scope: Missing[Literal["runtime", "development"]] = Field( - default=UNSET, - description="A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes.", - ) - dependencies: Missing[list[str]] = Field( - default=UNSET, - description="Array of package-url (PURLs) of direct child dependencies.", - ) - - -model_rebuild(Dependency) - -__all__ = ("Dependency",) + +class Contributor(GitHubModel): + """Contributor + + Contributor + """ + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[Union[str, None]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: str = Field() + site_admin: Missing[bool] = Field(default=UNSET) + contributions: int = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(Contributor) + +__all__ = ("Contributor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0264.py b/githubkit/versions/v2022_11_28/models/group_0264.py index 88f2284e4..c092b6018 100644 --- a/githubkit/versions/v2022_11_28/models/group_0264.py +++ b/githubkit/versions/v2022_11_28/models/group_0264.py @@ -9,52 +9,70 @@ from __future__ import annotations +from datetime import datetime +from typing import Annotated, Literal, Union + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0262 import Metadata +from .group_0003 import SimpleUser +from .group_0034 import DependabotAlertSecurityVulnerability +from .group_0035 import DependabotAlertSecurityAdvisory +from .group_0265 import DependabotAlertPropDependency -class Manifest(GitHubModel): - """Manifest""" +class DependabotAlert(GitHubModel): + """DependabotAlert - name: str = Field(description="The name of the manifest.") - file: Missing[ManifestPropFile] = Field(default=UNSET) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + A Dependabot alert. + """ + + number: int = Field(description="The security alert number.") + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( + description="The state of the Dependabot alert." ) - resolved: Missing[ManifestPropResolved] = Field( - default=UNSET, description="A collection of resolved package dependencies." + dependency: DependabotAlertPropDependency = Field( + description="Details for the vulnerable dependency." ) - - -class ManifestPropFile(GitHubModel): - """ManifestPropFile""" - - source_location: Missing[str] = Field( + security_advisory: DependabotAlertSecurityAdvisory = Field( + description="Details for the GitHub Security Advisory." + ) + security_vulnerability: DependabotAlertSecurityVulnerability = Field( + description="Details pertaining to one vulnerable version range for the advisory." + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: datetime = Field( + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] = Field(description="The reason that the alert was dismissed.") + dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( + description="An optional comment associated with the alert's dismissal." + ) + fixed_at: Union[datetime, None] = Field( + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + auto_dismissed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The path of the manifest file relative to the root of the Git repository.", + description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -class ManifestPropResolved(ExtraGitHubModel): - """ManifestPropResolved - - A collection of resolved package dependencies. - """ - - -model_rebuild(Manifest) -model_rebuild(ManifestPropFile) -model_rebuild(ManifestPropResolved) +model_rebuild(DependabotAlert) -__all__ = ( - "Manifest", - "ManifestPropFile", - "ManifestPropResolved", -) +__all__ = ("DependabotAlert",) diff --git a/githubkit/versions/v2022_11_28/models/group_0265.py b/githubkit/versions/v2022_11_28/models/group_0265.py index dde572f4d..4935eb434 100644 --- a/githubkit/versions/v2022_11_28/models/group_0265.py +++ b/githubkit/versions/v2022_11_28/models/group_0265.py @@ -9,88 +9,35 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0262 import Metadata +from .group_0033 import DependabotAlertPackage -class Snapshot(GitHubModel): - """snapshot +class DependabotAlertPropDependency(GitHubModel): + """DependabotAlertPropDependency - Create a new snapshot of a repository's dependencies. + Details for the vulnerable dependency. """ - version: int = Field( - description="The version of the repository snapshot submission." + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." ) - job: SnapshotPropJob = Field() - sha: str = Field( - min_length=40, - max_length=40, - description="The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.", - ) - ref: str = Field( - pattern="^refs/", - description="The repository branch that triggered this snapshot.", - ) - detector: SnapshotPropDetector = Field( - description="A description of the detector used." - ) - metadata: Missing[Metadata] = Field( + manifest_path: Missing[str] = Field( default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + description="The full path to the dependency manifest file, relative to the root of the repository.", ) - manifests: Missing[SnapshotPropManifests] = Field( - default=UNSET, - description="A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.", + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." ) - scanned: datetime = Field(description="The time at which the snapshot was scanned.") - - -class SnapshotPropJob(GitHubModel): - """SnapshotPropJob""" - - id: str = Field(description="The external ID of the job.") - correlator: str = Field( - description="Correlator provides a key that is used to group snapshots submitted over time. Only the \"latest\" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given \"wave\" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation." - ) - html_url: Missing[str] = Field(default=UNSET, description="The url for the job.") - - -class SnapshotPropDetector(GitHubModel): - """SnapshotPropDetector - - A description of the detector used. - """ - - name: str = Field(description="The name of the detector used.") - version: str = Field(description="The version of the detector used.") - url: str = Field(description="The url of the detector used.") - - -class SnapshotPropManifests(ExtraGitHubModel): - """SnapshotPropManifests - - A collection of package manifests, which are a collection of related - dependencies declared in a file or representing a logical group of dependencies. - """ -model_rebuild(Snapshot) -model_rebuild(SnapshotPropJob) -model_rebuild(SnapshotPropDetector) -model_rebuild(SnapshotPropManifests) +model_rebuild(DependabotAlertPropDependency) -__all__ = ( - "Snapshot", - "SnapshotPropDetector", - "SnapshotPropJob", - "SnapshotPropManifests", -) +__all__ = ("DependabotAlertPropDependency",) diff --git a/githubkit/versions/v2022_11_28/models/group_0266.py b/githubkit/versions/v2022_11_28/models/group_0266.py index 4a7ddcef0..9f05df69c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0266.py +++ b/githubkit/versions/v2022_11_28/models/group_0266.py @@ -9,58 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +class DependencyGraphDiffItems(GitHubModel): + """DependencyGraphDiffItems""" + + change_type: Literal["added", "removed"] = Field() + manifest: str = Field() + ecosystem: str = Field() + name: str = Field() + version: str = Field() + package_url: Union[str, None] = Field() + license_: Union[str, None] = Field(alias="license") + source_repository_url: Union[str, None] = Field() + vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItems] = Field() + scope: Literal["unknown", "runtime", "development"] = Field( + description="Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment." + ) -class DeploymentStatus(GitHubModel): - """Deployment Status - The status of a deployment. - """ +class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" - url: str = Field() - id: int = Field() - node_id: str = Field() - state: Literal[ - "error", "failure", "inactive", "pending", "success", "queued", "in_progress" - ] = Field(description="The state of the status.") - creator: Union[None, SimpleUser] = Field() - description: str = Field( - max_length=140, default="", description="A short description of the status." - ) - environment: Missing[str] = Field( - default=UNSET, - description="The environment of the deployment that the status is for.", - ) - target_url: str = Field( - default="", - description="Closing down notice: the URL to associate with this status.", - ) - created_at: datetime = Field() - updated_at: datetime = Field() - deployment_url: str = Field() - repository_url: str = Field() - environment_url: Missing[str] = Field( - default=UNSET, description="The URL for accessing your environment." - ) - log_url: Missing[str] = Field( - default=UNSET, description="The URL to associate with this status." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) + severity: str = Field() + advisory_ghsa_id: str = Field() + advisory_summary: str = Field() + advisory_url: str = Field() -model_rebuild(DeploymentStatus) +model_rebuild(DependencyGraphDiffItems) +model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) -__all__ = ("DeploymentStatus",) +__all__ = ( + "DependencyGraphDiffItems", + "DependencyGraphDiffItemsPropVulnerabilitiesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0267.py b/githubkit/versions/v2022_11_28/models/group_0267.py index 2969bea8b..b7506354d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0267.py +++ b/githubkit/versions/v2022_11_28/models/group_0267.py @@ -12,23 +12,157 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class DeploymentBranchPolicySettings(GitHubModel): - """DeploymentBranchPolicySettings +class DependencyGraphSpdxSbom(GitHubModel): + """Dependency Graph SPDX SBOM - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. + A schema for the SPDX JSON format returned by the Dependency Graph. """ - protected_branches: bool = Field( - description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." + sbom: DependencyGraphSpdxSbomPropSbom = Field() + + +class DependencyGraphSpdxSbomPropSbom(GitHubModel): + """DependencyGraphSpdxSbomPropSbom""" + + spdxid: str = Field( + alias="SPDXID", description="The SPDX identifier for the SPDX document." + ) + spdx_version: str = Field( + alias="spdxVersion", + description="The version of the SPDX specification that this document conforms to.", + ) + comment: Missing[str] = Field( + default=UNSET, description="An optional comment about the SPDX document." + ) + creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfo = Field( + alias="creationInfo" + ) + name: str = Field(description="The name of the SPDX document.") + data_license: str = Field( + alias="dataLicense", + description="The license under which the SPDX document is licensed.", + ) + document_namespace: str = Field( + alias="documentNamespace", description="The namespace for the SPDX document." + ) + packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItems] = Field() + relationships: Missing[ + list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItems] + ] = Field(default=UNSET) + + +class DependencyGraphSpdxSbomPropSbomPropCreationInfo(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" + + created: str = Field(description="The date and time the SPDX document was created.") + creators: list[str] = Field( + description="The tools that were used to generate the SPDX document." + ) + + +class DependencyGraphSpdxSbomPropSbomPropRelationshipsItems(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" + + relationship_type: Missing[str] = Field( + default=UNSET, + alias="relationshipType", + description="The type of relationship between the two SPDX elements.", + ) + spdx_element_id: Missing[str] = Field( + default=UNSET, + alias="spdxElementId", + description="The SPDX identifier of the package that is the source of the relationship.", + ) + related_spdx_element: Missing[str] = Field( + default=UNSET, + alias="relatedSpdxElement", + description="The SPDX identifier of the package that is the target of the relationship.", + ) + + +class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" + + spdxid: Missing[str] = Field( + default=UNSET, + alias="SPDXID", + description="A unique SPDX identifier for the package.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the package.") + version_info: Missing[str] = Field( + default=UNSET, + alias="versionInfo", + description="The version of the package. If the package does not have an exact version specified,\na version range is given.", + ) + download_location: Missing[str] = Field( + default=UNSET, + alias="downloadLocation", + description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", + ) + files_analyzed: Missing[bool] = Field( + default=UNSET, + alias="filesAnalyzed", + description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", + ) + license_concluded: Missing[str] = Field( + default=UNSET, + alias="licenseConcluded", + description="The license of the package as determined while creating the SPDX document.", + ) + license_declared: Missing[str] = Field( + default=UNSET, + alias="licenseDeclared", + description="The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created.", + ) + supplier: Missing[str] = Field( + default=UNSET, + description="The distribution source of this package, or NOASSERTION if this was not determined.", + ) + copyright_text: Missing[str] = Field( + default=UNSET, + alias="copyrightText", + description="The copyright holders of the package, and any dates present with those notices, if available.", + ) + external_refs: Missing[ + list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems] + ] = Field(default=UNSET, alias="externalRefs") + + +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems( + GitHubModel +): + """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" + + reference_category: str = Field( + alias="referenceCategory", + description="The category of reference to an external resource this reference refers to.", + ) + reference_locator: str = Field( + alias="referenceLocator", + description="A locator for the particular external resource this reference refers to.", ) - custom_branch_policies: bool = Field( - description="Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`." + reference_type: str = Field( + alias="referenceType", + description="The category of reference to an external resource this reference refers to.", ) -model_rebuild(DeploymentBranchPolicySettings) +model_rebuild(DependencyGraphSpdxSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropRelationshipsItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) -__all__ = ("DeploymentBranchPolicySettings",) +__all__ = ( + "DependencyGraphSpdxSbom", + "DependencyGraphSpdxSbomPropSbom", + "DependencyGraphSpdxSbomPropSbomPropCreationInfo", + "DependencyGraphSpdxSbomPropSbomPropPackagesItems", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", + "DependencyGraphSpdxSbomPropSbomPropRelationshipsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0268.py b/githubkit/versions/v2022_11_28/models/group_0268.py index e1cbde506..ffac1fb50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0268.py +++ b/githubkit/versions/v2022_11_28/models/group_0268.py @@ -9,93 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +class Metadata(ExtraGitHubModel): + """metadata -from .group_0267 import DeploymentBranchPolicySettings -from .group_0269 import EnvironmentPropProtectionRulesItemsAnyof1 - - -class Environment(GitHubModel): - """Environment - - Details of a deployment environment + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. """ - id: int = Field(description="The id of the environment.") - node_id: str = Field() - name: str = Field(description="The name of the environment.") - url: str = Field() - html_url: str = Field() - created_at: datetime = Field( - description="The time that the environment was created, in ISO 8601 format." - ) - updated_at: datetime = Field( - description="The time that the environment was last updated, in ISO 8601 format." - ) - protection_rules: Missing[ - list[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0, - EnvironmentPropProtectionRulesItemsAnyof1, - EnvironmentPropProtectionRulesItemsAnyof2, - ] - ] - ] = Field( - default=UNSET, - description="Built-in deployment protection rules for the environment.", - ) - deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( - Field( - default=UNSET, - description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", - ) - ) - - -class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof0""" - - id: int = Field() - node_id: str = Field() - type: str = Field() - wait_timer: Missing[int] = Field( - default=UNSET, - description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", - ) - - -class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof2""" - - id: int = Field() - node_id: str = Field() - type: str = Field() - - -class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsGetResponse200""" - - total_count: Missing[int] = Field( - default=UNSET, description="The number of environments in this repository" - ) - environments: Missing[list[Environment]] = Field(default=UNSET) - -model_rebuild(Environment) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) -model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) +model_rebuild(Metadata) -__all__ = ( - "Environment", - "EnvironmentPropProtectionRulesItemsAnyof0", - "EnvironmentPropProtectionRulesItemsAnyof2", - "ReposOwnerRepoEnvironmentsGetResponse200", -) +__all__ = ("Metadata",) diff --git a/githubkit/versions/v2022_11_28/models/group_0269.py b/githubkit/versions/v2022_11_28/models/group_0269.py index e3136da1a..ecbefcac8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0269.py +++ b/githubkit/versions/v2022_11_28/models/group_0269.py @@ -9,33 +9,44 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0270 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems +from .group_0268 import Metadata -class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1""" +class Dependency(GitHubModel): + """Dependency""" - id: int = Field() - node_id: str = Field() - prevent_self_review: Missing[bool] = Field( + package_url: Missing[str] = Field( + pattern="^pkg", + default=UNSET, + description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.", + ) + metadata: Missing[Metadata] = Field( + default=UNSET, + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + ) + relationship: Missing[Literal["direct", "indirect"]] = Field( + default=UNSET, + description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", + ) + scope: Missing[Literal["runtime", "development"]] = Field( default=UNSET, - description="Whether deployments to this environment can be approved by the user who created the deployment.", + description="A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes.", ) - type: str = Field() - reviewers: Missing[ - list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems] - ] = Field( + dependencies: Missing[list[str]] = Field( default=UNSET, - description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + description="Array of package-url (PURLs) of direct child dependencies.", ) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) +model_rebuild(Dependency) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) +__all__ = ("Dependency",) diff --git a/githubkit/versions/v2022_11_28/models/group_0270.py b/githubkit/versions/v2022_11_28/models/group_0270.py index ee0027559..ded92e094 100644 --- a/githubkit/versions/v2022_11_28/models/group_0270.py +++ b/githubkit/versions/v2022_11_28/models/group_0270.py @@ -9,27 +9,52 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0082 import Team +from .group_0268 import Metadata -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class Manifest(GitHubModel): + """Manifest""" - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." + name: str = Field(description="The name of the manifest.") + file: Missing[ManifestPropFile] = Field(default=UNSET) + metadata: Missing[Metadata] = Field( + default=UNSET, + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + ) + resolved: Missing[ManifestPropResolved] = Field( + default=UNSET, description="A collection of resolved package dependencies." ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) +class ManifestPropFile(GitHubModel): + """ManifestPropFile""" + + source_location: Missing[str] = Field( + default=UNSET, + description="The path of the manifest file relative to the root of the Git repository.", + ) + + +class ManifestPropResolved(ExtraGitHubModel): + """ManifestPropResolved + + A collection of resolved package dependencies. + """ + + +model_rebuild(Manifest) +model_rebuild(ManifestPropFile) +model_rebuild(ManifestPropResolved) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) +__all__ = ( + "Manifest", + "ManifestPropFile", + "ManifestPropResolved", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0271.py b/githubkit/versions/v2022_11_28/models/group_0271.py index 2e5fcc0db..68d6392cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0271.py +++ b/githubkit/versions/v2022_11_28/models/group_0271.py @@ -9,26 +9,88 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0268 import Metadata -class DeploymentBranchPolicyNamePatternWithType(GitHubModel): - """Deployment branch and tag policy name pattern""" - name: str = Field( - description="The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." +class Snapshot(GitHubModel): + """snapshot + + Create a new snapshot of a repository's dependencies. + """ + + version: int = Field( + description="The version of the repository snapshot submission." + ) + job: SnapshotPropJob = Field() + sha: str = Field( + min_length=40, + max_length=40, + description="The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.", + ) + ref: str = Field( + pattern="^refs/", + description="The repository branch that triggered this snapshot.", + ) + detector: SnapshotPropDetector = Field( + description="A description of the detector used." ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag" + metadata: Missing[Metadata] = Field( + default=UNSET, + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", ) + manifests: Missing[SnapshotPropManifests] = Field( + default=UNSET, + description="A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.", + ) + scanned: datetime = Field(description="The time at which the snapshot was scanned.") + + +class SnapshotPropJob(GitHubModel): + """SnapshotPropJob""" + + id: str = Field(description="The external ID of the job.") + correlator: str = Field( + description="Correlator provides a key that is used to group snapshots submitted over time. Only the \"latest\" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given \"wave\" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation." + ) + html_url: Missing[str] = Field(default=UNSET, description="The url for the job.") + + +class SnapshotPropDetector(GitHubModel): + """SnapshotPropDetector + + A description of the detector used. + """ + + name: str = Field(description="The name of the detector used.") + version: str = Field(description="The version of the detector used.") + url: str = Field(description="The url of the detector used.") + + +class SnapshotPropManifests(ExtraGitHubModel): + """SnapshotPropManifests + + A collection of package manifests, which are a collection of related + dependencies declared in a file or representing a logical group of dependencies. + """ -model_rebuild(DeploymentBranchPolicyNamePatternWithType) +model_rebuild(Snapshot) +model_rebuild(SnapshotPropJob) +model_rebuild(SnapshotPropDetector) +model_rebuild(SnapshotPropManifests) -__all__ = ("DeploymentBranchPolicyNamePatternWithType",) +__all__ = ( + "Snapshot", + "SnapshotPropDetector", + "SnapshotPropJob", + "SnapshotPropManifests", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0272.py b/githubkit/versions/v2022_11_28/models/group_0272.py index 11e46307f..38a74a74a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0272.py +++ b/githubkit/versions/v2022_11_28/models/group_0272.py @@ -9,19 +9,58 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0010 import Integration -class DeploymentBranchPolicyNamePattern(GitHubModel): - """Deployment branch policy name pattern""" +class DeploymentStatus(GitHubModel): + """Deployment Status - name: str = Field( - description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + The status of a deployment. + """ + + url: str = Field() + id: int = Field() + node_id: str = Field() + state: Literal[ + "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + ] = Field(description="The state of the status.") + creator: Union[None, SimpleUser] = Field() + description: str = Field( + max_length=140, default="", description="A short description of the status." + ) + environment: Missing[str] = Field( + default=UNSET, + description="The environment of the deployment that the status is for.", + ) + target_url: str = Field( + default="", + description="Closing down notice: the URL to associate with this status.", + ) + created_at: datetime = Field() + updated_at: datetime = Field() + deployment_url: str = Field() + repository_url: str = Field() + environment_url: Missing[str] = Field( + default=UNSET, description="The URL for accessing your environment." + ) + log_url: Missing[str] = Field( + default=UNSET, description="The URL to associate with this status." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) -model_rebuild(DeploymentBranchPolicyNamePattern) +model_rebuild(DeploymentStatus) -__all__ = ("DeploymentBranchPolicyNamePattern",) +__all__ = ("DeploymentStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0273.py b/githubkit/versions/v2022_11_28/models/group_0273.py index ec57f6950..2969bea8b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0273.py +++ b/githubkit/versions/v2022_11_28/models/group_0273.py @@ -14,26 +14,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class CustomDeploymentRuleApp(GitHubModel): - """Custom deployment protection rule app +class DeploymentBranchPolicySettings(GitHubModel): + """DeploymentBranchPolicySettings - A GitHub App that is providing a custom deployment protection rule. + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. """ - id: int = Field( - description="The unique identifier of the deployment protection rule integration." + protected_branches: bool = Field( + description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." ) - slug: str = Field( - description="The slugified name of the deployment protection rule integration." - ) - integration_url: str = Field( - description="The URL for the endpoint to get details about the app." - ) - node_id: str = Field( - description="The node ID for the deployment protection rule integration." + custom_branch_policies: bool = Field( + description="Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`." ) -model_rebuild(CustomDeploymentRuleApp) +model_rebuild(DeploymentBranchPolicySettings) -__all__ = ("CustomDeploymentRuleApp",) +__all__ = ("DeploymentBranchPolicySettings",) diff --git a/githubkit/versions/v2022_11_28/models/group_0274.py b/githubkit/versions/v2022_11_28/models/group_0274.py index 3ee3f7779..6ff427c36 100644 --- a/githubkit/versions/v2022_11_28/models/group_0274.py +++ b/githubkit/versions/v2022_11_28/models/group_0274.py @@ -9,58 +9,93 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0273 import CustomDeploymentRuleApp +from .group_0273 import DeploymentBranchPolicySettings +from .group_0275 import EnvironmentPropProtectionRulesItemsAnyof1 -class DeploymentProtectionRule(GitHubModel): - """Deployment protection rule +class Environment(GitHubModel): + """Environment - Deployment protection rule + Details of a deployment environment """ - id: int = Field( - description="The unique identifier for the deployment protection rule." + id: int = Field(description="The id of the environment.") + node_id: str = Field() + name: str = Field(description="The name of the environment.") + url: str = Field() + html_url: str = Field() + created_at: datetime = Field( + description="The time that the environment was created, in ISO 8601 format." + ) + updated_at: datetime = Field( + description="The time that the environment was last updated, in ISO 8601 format." ) - node_id: str = Field(description="The node ID for the deployment protection rule.") - enabled: bool = Field( - description="Whether the deployment protection rule is enabled for the environment." + protection_rules: Missing[ + list[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0, + EnvironmentPropProtectionRulesItemsAnyof1, + EnvironmentPropProtectionRulesItemsAnyof2, + ] + ] + ] = Field( + default=UNSET, + description="Built-in deployment protection rules for the environment.", ) - app: CustomDeploymentRuleApp = Field( - title="Custom deployment protection rule app", - description="A GitHub App that is providing a custom deployment protection rule.", + 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 ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 +class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof0""" - Examples: - {'$ref': '#/components/examples/deployment-protection-rules'} - """ - - total_count: Missing[int] = Field( + id: int = Field() + node_id: str = Field() + type: str = Field() + wait_timer: Missing[int] = Field( default=UNSET, - description="The number of enabled custom deployment protection rules for this environment", + 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).", ) - custom_deployment_protection_rules: Missing[list[DeploymentProtectionRule]] = Field( - default=UNSET + + +class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int = Field() + node_id: str = Field() + type: str = Field() + + +class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsGetResponse200""" + + total_count: Missing[int] = Field( + default=UNSET, description="The number of environments in this repository" ) + environments: Missing[list[Environment]] = Field(default=UNSET) -model_rebuild(DeploymentProtectionRule) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -) +model_rebuild(Environment) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) +model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) __all__ = ( - "DeploymentProtectionRule", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", + "Environment", + "EnvironmentPropProtectionRulesItemsAnyof0", + "EnvironmentPropProtectionRulesItemsAnyof2", + "ReposOwnerRepoEnvironmentsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0275.py b/githubkit/versions/v2022_11_28/models/group_0275.py index 23227f8fe..a4bbbdc21 100644 --- a/githubkit/versions/v2022_11_28/models/group_0275.py +++ b/githubkit/versions/v2022_11_28/models/group_0275.py @@ -12,18 +12,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0276 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems -class ShortBlob(GitHubModel): - """Short Blob - Short Blob - """ +class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1""" - url: str = Field() - sha: str = Field() + id: int = Field() + node_id: str = Field() + prevent_self_review: Missing[bool] = Field( + default=UNSET, + description="Whether deployments to this environment can be approved by the user who created the deployment.", + ) + type: str = Field() + reviewers: Missing[ + list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems] + ] = Field( + default=UNSET, + description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + ) -model_rebuild(ShortBlob) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) -__all__ = ("ShortBlob",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0276.py b/githubkit/versions/v2022_11_28/models/group_0276.py index 048d8d3ff..460bfc606 100644 --- a/githubkit/versions/v2022_11_28/models/group_0276.py +++ b/githubkit/versions/v2022_11_28/models/group_0276.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,22 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0087 import Team -class Blob(GitHubModel): - """Blob - Blob - """ +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - content: str = Field() - encoding: str = Field() - url: str = Field() - sha: str = Field() - size: Union[int, None] = Field() - node_id: str = Field() - highlighted_content: Missing[str] = Field(default=UNSET) + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." + ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(Blob) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) -__all__ = ("Blob",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0277.py b/githubkit/versions/v2022_11_28/models/group_0277.py index 5bdb8d149..2e5fcc0db 100644 --- a/githubkit/versions/v2022_11_28/models/group_0277.py +++ b/githubkit/versions/v2022_11_28/models/group_0277.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -19,87 +18,17 @@ from githubkit.utils import UNSET -class GitCommit(GitHubModel): - """Git Commit +class DeploymentBranchPolicyNamePatternWithType(GitHubModel): + """Deployment branch and tag policy name pattern""" - Low-level Git commit operations within a repository - """ - - sha: str = Field(description="SHA for the commit") - node_id: str = Field() - url: str = Field() - author: GitCommitPropAuthor = Field( - description="Identifying information for the git-user" + name: str = Field( + description="The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." ) - committer: GitCommitPropCommitter = Field( - description="Identifying information for the git-user" + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag" ) - message: str = Field(description="Message describing the purpose of the commit") - tree: GitCommitPropTree = Field() - parents: list[GitCommitPropParentsItems] = Field() - verification: GitCommitPropVerification = Field() - html_url: str = Field() - - -class GitCommitPropAuthor(GitHubModel): - """GitCommitPropAuthor - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class GitCommitPropCommitter(GitHubModel): - """GitCommitPropCommitter - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class GitCommitPropTree(GitHubModel): - """GitCommitPropTree""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - - -class GitCommitPropParentsItems(GitHubModel): - """GitCommitPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class GitCommitPropVerification(GitHubModel): - """GitCommitPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() - verified_at: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(GitCommit) -model_rebuild(GitCommitPropAuthor) -model_rebuild(GitCommitPropCommitter) -model_rebuild(GitCommitPropTree) -model_rebuild(GitCommitPropParentsItems) -model_rebuild(GitCommitPropVerification) +model_rebuild(DeploymentBranchPolicyNamePatternWithType) -__all__ = ( - "GitCommit", - "GitCommitPropAuthor", - "GitCommitPropCommitter", - "GitCommitPropParentsItems", - "GitCommitPropTree", - "GitCommitPropVerification", -) +__all__ = ("DeploymentBranchPolicyNamePatternWithType",) diff --git a/githubkit/versions/v2022_11_28/models/group_0278.py b/githubkit/versions/v2022_11_28/models/group_0278.py index ee31507d1..11e46307f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0278.py +++ b/githubkit/versions/v2022_11_28/models/group_0278.py @@ -14,30 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class GitRef(GitHubModel): - """Git Reference +class DeploymentBranchPolicyNamePattern(GitHubModel): + """Deployment branch policy name pattern""" - Git references within a repository - """ + name: str = Field( + description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + ) - ref: str = Field() - node_id: str = Field() - url: str = Field() - object_: GitRefPropObject = Field(alias="object") +model_rebuild(DeploymentBranchPolicyNamePattern) -class GitRefPropObject(GitHubModel): - """GitRefPropObject""" - - type: str = Field() - sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") - url: str = Field() - - -model_rebuild(GitRef) -model_rebuild(GitRefPropObject) - -__all__ = ( - "GitRef", - "GitRefPropObject", -) +__all__ = ("DeploymentBranchPolicyNamePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0279.py b/githubkit/versions/v2022_11_28/models/group_0279.py index 438079edf..ec57f6950 100644 --- a/githubkit/versions/v2022_11_28/models/group_0279.py +++ b/githubkit/versions/v2022_11_28/models/group_0279.py @@ -12,50 +12,28 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0202 import Verification +class CustomDeploymentRuleApp(GitHubModel): + """Custom deployment protection rule app -class GitTag(GitHubModel): - """Git Tag - - Metadata for a Git tag + A GitHub App that is providing a custom deployment protection rule. """ - node_id: str = Field() - tag: str = Field(description="Name of the tag") - sha: str = Field() - url: str = Field(description="URL for the tag") - message: str = Field(description="Message describing the purpose of the tag") - tagger: GitTagPropTagger = Field() - object_: GitTagPropObject = Field(alias="object") - verification: Missing[Verification] = Field(default=UNSET, title="Verification") - - -class GitTagPropTagger(GitHubModel): - """GitTagPropTagger""" - - date: str = Field() - email: str = Field() - name: str = Field() - - -class GitTagPropObject(GitHubModel): - """GitTagPropObject""" - - sha: str = Field() - type: str = Field() - url: str = Field() + id: int = Field( + description="The unique identifier of the deployment protection rule integration." + ) + slug: str = Field( + description="The slugified name of the deployment protection rule integration." + ) + integration_url: str = Field( + description="The URL for the endpoint to get details about the app." + ) + node_id: str = Field( + description="The node ID for the deployment protection rule integration." + ) -model_rebuild(GitTag) -model_rebuild(GitTagPropTagger) -model_rebuild(GitTagPropObject) +model_rebuild(CustomDeploymentRuleApp) -__all__ = ( - "GitTag", - "GitTagPropObject", - "GitTagPropTagger", -) +__all__ = ("CustomDeploymentRuleApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0280.py b/githubkit/versions/v2022_11_28/models/group_0280.py index be970677c..ba64e9eb4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0280.py +++ b/githubkit/versions/v2022_11_28/models/group_0280.py @@ -15,36 +15,52 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0279 import CustomDeploymentRuleApp -class GitTree(GitHubModel): - """Git Tree - The hierarchy between files in a Git repository. +class DeploymentProtectionRule(GitHubModel): + """Deployment protection rule + + Deployment protection rule """ - sha: str = Field() - url: str = Field() - truncated: bool = Field() - tree: list[GitTreePropTreeItems] = Field( - description="Objects specifying a tree structure" + id: int = Field( + description="The unique identifier for the deployment protection rule." + ) + node_id: str = Field(description="The node ID for the deployment protection rule.") + enabled: bool = Field( + description="Whether the deployment protection rule is enabled for the environment." ) + app: CustomDeploymentRuleApp = Field( + title="Custom deployment protection rule app", + description="A GitHub App that is providing a custom deployment protection rule.", + ) + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -class GitTreePropTreeItems(GitHubModel): - """GitTreePropTreeItems""" + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} + """ - path: Missing[str] = Field(default=UNSET) - mode: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + total_count: Missing[int] = Field( + default=UNSET, + description="The number of enabled custom deployment protection rules for this environment", + ) + custom_deployment_protection_rules: Missing[list[DeploymentProtectionRule]] = Field( + default=UNSET + ) -model_rebuild(GitTree) -model_rebuild(GitTreePropTreeItems) +model_rebuild(DeploymentProtectionRule) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 +) __all__ = ( - "GitTree", - "GitTreePropTreeItems", + "DeploymentProtectionRule", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0281.py b/githubkit/versions/v2022_11_28/models/group_0281.py index 544751a06..23227f8fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0281.py +++ b/githubkit/versions/v2022_11_28/models/group_0281.py @@ -9,21 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class HookResponse(GitHubModel): - """Hook Response""" +class ShortBlob(GitHubModel): + """Short Blob + + Short Blob + """ - code: Union[int, None] = Field() - status: Union[str, None] = Field() - message: Union[str, None] = Field() + url: str = Field() + sha: str = Field() -model_rebuild(HookResponse) +model_rebuild(ShortBlob) -__all__ = ("HookResponse",) +__all__ = ("ShortBlob",) diff --git a/githubkit/versions/v2022_11_28/models/group_0282.py b/githubkit/versions/v2022_11_28/models/group_0282.py index 111d7245b..048d8d3ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0282.py +++ b/githubkit/versions/v2022_11_28/models/group_0282.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field @@ -17,39 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0009 import WebhookConfig -from .group_0281 import HookResponse +class Blob(GitHubModel): + """Blob -class Hook(GitHubModel): - """Webhook - - Webhooks for repositories. + Blob """ - type: str = Field() - id: int = Field(description="Unique identifier of the webhook.") - name: str = Field( - description="The name of a valid service, use 'web' for a webhook." - ) - active: bool = Field( - description="Determines whether the hook is actually triggered on pushes." - ) - events: list[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." - ) - config: WebhookConfig = Field( - title="Webhook Configuration", description="Configuration object of the webhook" - ) - updated_at: datetime = Field() - created_at: datetime = Field() + content: str = Field() + encoding: str = Field() url: str = Field() - test_url: str = Field() - ping_url: str = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - last_response: HookResponse = Field(title="Hook Response") + sha: str = Field() + size: Union[int, None] = Field() + node_id: str = Field() + highlighted_content: Missing[str] = Field(default=UNSET) -model_rebuild(Hook) +model_rebuild(Blob) -__all__ = ("Hook",) +__all__ = ("Blob",) diff --git a/githubkit/versions/v2022_11_28/models/group_0283.py b/githubkit/versions/v2022_11_28/models/group_0283.py index dc0d94e75..36b9120b4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0283.py +++ b/githubkit/versions/v2022_11_28/models/group_0283.py @@ -9,75 +9,95 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class Import(GitHubModel): - """Import +class GitCommit(GitHubModel): + """Git Commit - A repository import from an external source. + Low-level Git commit operations within a repository """ - vcs: Union[str, None] = Field() - use_lfs: Missing[bool] = Field(default=UNSET) - vcs_url: str = Field(description="The URL of the originating repository.") - svc_root: Missing[str] = Field(default=UNSET) - tfvc_project: Missing[str] = Field(default=UNSET) - status: Literal[ - "auth", - "error", - "none", - "detecting", - "choose", - "auth_failed", - "importing", - "mapping", - "waiting_to_push", - "pushing", - "complete", - "setup", - "unknown", - "detection_found_multiple", - "detection_found_nothing", - "detection_needs_auth", - ] = Field() - status_text: Missing[Union[str, None]] = Field(default=UNSET) - failed_step: Missing[Union[str, None]] = Field(default=UNSET) - error_message: Missing[Union[str, None]] = Field(default=UNSET) - import_percent: Missing[Union[int, None]] = Field(default=UNSET) - commit_count: Missing[Union[int, None]] = Field(default=UNSET) - push_percent: Missing[Union[int, None]] = Field(default=UNSET) - has_large_files: Missing[bool] = Field(default=UNSET) - large_files_size: Missing[int] = Field(default=UNSET) - large_files_count: Missing[int] = Field(default=UNSET) - project_choices: Missing[list[ImportPropProjectChoicesItems]] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - authors_count: Missing[Union[int, None]] = Field(default=UNSET) + sha: str = Field(description="SHA for the commit") + node_id: str = Field() url: str = Field() + author: GitCommitPropAuthor = Field( + description="Identifying information for the git-user" + ) + committer: GitCommitPropCommitter = Field( + description="Identifying information for the git-user" + ) + message: str = Field(description="Message describing the purpose of the commit") + tree: GitCommitPropTree = Field() + parents: list[GitCommitPropParentsItems] = Field() + verification: GitCommitPropVerification = Field() html_url: str = Field() - authors_url: str = Field() - repository_url: str = Field() - svn_root: Missing[str] = Field(default=UNSET) -class ImportPropProjectChoicesItems(GitHubModel): - """ImportPropProjectChoicesItems""" +class GitCommitPropAuthor(GitHubModel): + """GitCommitPropAuthor - vcs: Missing[str] = Field(default=UNSET) - tfvc_project: Missing[str] = Field(default=UNSET) - human_name: Missing[str] = Field(default=UNSET) + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class GitCommitPropCommitter(GitHubModel): + """GitCommitPropCommitter + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class GitCommitPropTree(GitHubModel): + """GitCommitPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + + +class GitCommitPropParentsItems(GitHubModel): + """GitCommitPropParentsItems""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() + + +class GitCommitPropVerification(GitHubModel): + """GitCommitPropVerification""" + + verified: bool = Field() + reason: str = Field() + signature: Union[str, None] = Field() + payload: Union[str, None] = Field() + verified_at: Union[str, None] = Field() -model_rebuild(Import) -model_rebuild(ImportPropProjectChoicesItems) +model_rebuild(GitCommit) +model_rebuild(GitCommitPropAuthor) +model_rebuild(GitCommitPropCommitter) +model_rebuild(GitCommitPropTree) +model_rebuild(GitCommitPropParentsItems) +model_rebuild(GitCommitPropVerification) __all__ = ( - "Import", - "ImportPropProjectChoicesItems", + "GitCommit", + "GitCommitPropAuthor", + "GitCommitPropCommitter", + "GitCommitPropParentsItems", + "GitCommitPropTree", + "GitCommitPropVerification", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0284.py b/githubkit/versions/v2022_11_28/models/group_0284.py index 7ed1d272d..ee31507d1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0284.py +++ b/githubkit/versions/v2022_11_28/models/group_0284.py @@ -14,21 +14,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class PorterAuthor(GitHubModel): - """Porter Author +class GitRef(GitHubModel): + """Git Reference - Porter Author + Git references within a repository """ - id: int = Field() - remote_id: str = Field() - remote_name: str = Field() - email: str = Field() - name: str = Field() + ref: str = Field() + node_id: str = Field() url: str = Field() - import_url: str = Field() + object_: GitRefPropObject = Field(alias="object") -model_rebuild(PorterAuthor) +class GitRefPropObject(GitHubModel): + """GitRefPropObject""" -__all__ = ("PorterAuthor",) + type: str = Field() + sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") + url: str = Field() + + +model_rebuild(GitRef) +model_rebuild(GitRefPropObject) + +__all__ = ( + "GitRef", + "GitRefPropObject", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0285.py b/githubkit/versions/v2022_11_28/models/group_0285.py index c54f24120..d6e412c2c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0285.py +++ b/githubkit/versions/v2022_11_28/models/group_0285.py @@ -12,20 +12,50 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0208 import Verification -class PorterLargeFile(GitHubModel): - """Porter Large File - Porter Large File +class GitTag(GitHubModel): + """Git Tag + + Metadata for a Git tag """ - ref_name: str = Field() - path: str = Field() - oid: str = Field() - size: int = Field() + node_id: str = Field() + tag: str = Field(description="Name of the tag") + sha: str = Field() + url: str = Field(description="URL for the tag") + message: str = Field(description="Message describing the purpose of the tag") + tagger: GitTagPropTagger = Field() + object_: GitTagPropObject = Field(alias="object") + verification: Missing[Verification] = Field(default=UNSET, title="Verification") + + +class GitTagPropTagger(GitHubModel): + """GitTagPropTagger""" + + date: str = Field() + email: str = Field() + name: str = Field() + + +class GitTagPropObject(GitHubModel): + """GitTagPropObject""" + + sha: str = Field() + type: str = Field() + url: str = Field() -model_rebuild(PorterLargeFile) +model_rebuild(GitTag) +model_rebuild(GitTagPropTagger) +model_rebuild(GitTagPropObject) -__all__ = ("PorterLargeFile",) +__all__ = ( + "GitTag", + "GitTagPropObject", + "GitTagPropTagger", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0286.py b/githubkit/versions/v2022_11_28/models/group_0286.py index 9e343f977..be970677c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0286.py +++ b/githubkit/versions/v2022_11_28/models/group_0286.py @@ -9,150 +9,42 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0040 import Issue -from .group_0082 import Team - -class IssueEvent(GitHubModel): - """Issue Event +class GitTree(GitHubModel): + """Git Tree - Issue Event + The hierarchy between files in a Git repository. """ - id: int = Field() - node_id: str = Field() + sha: str = Field() url: str = Field() - actor: Union[None, SimpleUser] = Field() - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: datetime = Field() - issue: Missing[Union[None, Issue]] = Field(default=UNSET) - label: Missing[IssueEventLabel] = Field( - default=UNSET, title="Issue Event Label", description="Issue Event Label" - ) - assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - assigner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - review_requester: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - requested_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - dismissed_review: Missing[IssueEventDismissedReview] = Field( - default=UNSET, title="Issue Event Dismissed Review" - ) - milestone: Missing[IssueEventMilestone] = Field( - default=UNSET, - title="Issue Event Milestone", - description="Issue Event Milestone", - ) - project_card: Missing[IssueEventProjectCard] = Field( - default=UNSET, - title="Issue Event Project Card", - description="Issue Event Project Card", - ) - rename: Missing[IssueEventRename] = Field( - default=UNSET, title="Issue Event Rename", description="Issue Event Rename" - ) - author_association: Missing[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] = Field( - default=UNSET, - title="author_association", - description="How the author is associated with the repository.", + truncated: bool = Field() + tree: list[GitTreePropTreeItems] = Field( + description="Objects specifying a tree structure" ) - lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - - -class IssueEventLabel(GitHubModel): - """Issue Event Label - - Issue Event Label - """ - - name: Union[str, None] = Field() - color: Union[str, None] = Field() - -class IssueEventDismissedReview(GitHubModel): - """Issue Event Dismissed Review""" - state: str = Field() - review_id: int = Field() - dismissal_message: Union[str, None] = Field() - dismissal_commit_id: Missing[Union[str, None]] = Field(default=UNSET) - - -class IssueEventMilestone(GitHubModel): - """Issue Event Milestone - - Issue Event Milestone - """ - - title: str = Field() - - -class IssueEventProjectCard(GitHubModel): - """Issue Event Project Card - - Issue Event Project Card - """ - - url: str = Field() - id: int = Field() - project_url: str = Field() - project_id: int = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -class IssueEventRename(GitHubModel): - """Issue Event Rename - - Issue Event Rename - """ +class GitTreePropTreeItems(GitHubModel): + """GitTreePropTreeItems""" - from_: str = Field(alias="from") - to: str = Field() + path: Missing[str] = Field(default=UNSET) + mode: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(IssueEvent) -model_rebuild(IssueEventLabel) -model_rebuild(IssueEventDismissedReview) -model_rebuild(IssueEventMilestone) -model_rebuild(IssueEventProjectCard) -model_rebuild(IssueEventRename) +model_rebuild(GitTree) +model_rebuild(GitTreePropTreeItems) __all__ = ( - "IssueEvent", - "IssueEventDismissedReview", - "IssueEventLabel", - "IssueEventMilestone", - "IssueEventProjectCard", - "IssueEventRename", + "GitTree", + "GitTreePropTreeItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0287.py b/githubkit/versions/v2022_11_28/models/group_0287.py index ad04fd4c6..544751a06 100644 --- a/githubkit/versions/v2022_11_28/models/group_0287.py +++ b/githubkit/versions/v2022_11_28/models/group_0287.py @@ -9,45 +9,21 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0008 import Integration +class HookResponse(GitHubModel): + """Hook Response""" -class LabeledIssueEvent(GitHubModel): - """Labeled Issue Event + code: Union[int, None] = Field() + status: Union[str, None] = Field() + message: Union[str, None] = Field() - Labeled Issue Event - """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["labeled"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - label: LabeledIssueEventPropLabel = Field() +model_rebuild(HookResponse) - -class LabeledIssueEventPropLabel(GitHubModel): - """LabeledIssueEventPropLabel""" - - name: str = Field() - color: str = Field() - - -model_rebuild(LabeledIssueEvent) -model_rebuild(LabeledIssueEventPropLabel) - -__all__ = ( - "LabeledIssueEvent", - "LabeledIssueEventPropLabel", -) +__all__ = ("HookResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0288.py b/githubkit/versions/v2022_11_28/models/group_0288.py index 6fbb85cdb..ea53e7ddc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0288.py +++ b/githubkit/versions/v2022_11_28/models/group_0288.py @@ -9,45 +9,47 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0011 import WebhookConfig +from .group_0287 import HookResponse -class UnlabeledIssueEvent(GitHubModel): - """Unlabeled Issue Event +class Hook(GitHubModel): + """Webhook - Unlabeled Issue Event + Webhooks for repositories. """ - id: int = Field() - node_id: str = Field() + type: str = Field() + id: int = Field(description="Unique identifier of the webhook.") + name: str = Field( + description="The name of a valid service, use 'web' for a webhook." + ) + active: bool = Field( + description="Determines whether the hook is actually triggered on pushes." + ) + events: list[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." + ) + config: WebhookConfig = Field( + title="Webhook Configuration", description="Configuration object of the webhook" + ) + updated_at: datetime = Field() + created_at: datetime = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["unlabeled"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - label: UnlabeledIssueEventPropLabel = Field() + test_url: str = Field() + ping_url: str = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + last_response: HookResponse = Field(title="Hook Response") -class UnlabeledIssueEventPropLabel(GitHubModel): - """UnlabeledIssueEventPropLabel""" +model_rebuild(Hook) - name: str = Field() - color: str = Field() - - -model_rebuild(UnlabeledIssueEvent) -model_rebuild(UnlabeledIssueEventPropLabel) - -__all__ = ( - "UnlabeledIssueEvent", - "UnlabeledIssueEventPropLabel", -) +__all__ = ("Hook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0289.py b/githubkit/versions/v2022_11_28/models/group_0289.py index 399a86d8a..dc0d94e75 100644 --- a/githubkit/versions/v2022_11_28/models/group_0289.py +++ b/githubkit/versions/v2022_11_28/models/group_0289.py @@ -9,38 +9,75 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +class Import(GitHubModel): + """Import -class AssignedIssueEvent(GitHubModel): - """Assigned Issue Event - - Assigned Issue Event + A repository import from an external source. """ - id: int = Field() - node_id: str = Field() + vcs: Union[str, None] = Field() + use_lfs: Missing[bool] = Field(default=UNSET) + vcs_url: str = Field(description="The URL of the originating repository.") + svc_root: Missing[str] = Field(default=UNSET) + tfvc_project: Missing[str] = Field(default=UNSET) + status: Literal[ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth", + ] = Field() + status_text: Missing[Union[str, None]] = Field(default=UNSET) + failed_step: Missing[Union[str, None]] = Field(default=UNSET) + error_message: Missing[Union[str, None]] = Field(default=UNSET) + import_percent: Missing[Union[int, None]] = Field(default=UNSET) + commit_count: Missing[Union[int, None]] = Field(default=UNSET) + push_percent: Missing[Union[int, None]] = Field(default=UNSET) + has_large_files: Missing[bool] = Field(default=UNSET) + large_files_size: Missing[int] = Field(default=UNSET) + large_files_count: Missing[int] = Field(default=UNSET) + project_choices: Missing[list[ImportPropProjectChoicesItems]] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + authors_count: Missing[Union[int, None]] = Field(default=UNSET) url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(AssignedIssueEvent) - -__all__ = ("AssignedIssueEvent",) + html_url: str = Field() + authors_url: str = Field() + repository_url: str = Field() + svn_root: Missing[str] = Field(default=UNSET) + + +class ImportPropProjectChoicesItems(GitHubModel): + """ImportPropProjectChoicesItems""" + + vcs: Missing[str] = Field(default=UNSET) + tfvc_project: Missing[str] = Field(default=UNSET) + human_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(Import) +model_rebuild(ImportPropProjectChoicesItems) + +__all__ = ( + "Import", + "ImportPropProjectChoicesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0290.py b/githubkit/versions/v2022_11_28/models/group_0290.py index 519eb1642..7ed1d272d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0290.py +++ b/githubkit/versions/v2022_11_28/models/group_0290.py @@ -9,35 +9,26 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0008 import Integration - -class UnassignedIssueEvent(GitHubModel): - """Unassigned Issue Event +class PorterAuthor(GitHubModel): + """Porter Author - Unassigned Issue Event + Porter Author """ id: int = Field() - node_id: str = Field() + remote_id: str = Field() + remote_name: str = Field() + email: str = Field() + name: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + import_url: str = Field() -model_rebuild(UnassignedIssueEvent) +model_rebuild(PorterAuthor) -__all__ = ("UnassignedIssueEvent",) +__all__ = ("PorterAuthor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0291.py b/githubkit/versions/v2022_11_28/models/group_0291.py index 18e6066a2..c54f24120 100644 --- a/githubkit/versions/v2022_11_28/models/group_0291.py +++ b/githubkit/versions/v2022_11_28/models/group_0291.py @@ -9,44 +9,23 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0008 import Integration - -class MilestonedIssueEvent(GitHubModel): - """Milestoned Issue Event +class PorterLargeFile(GitHubModel): + """Porter Large File - Milestoned Issue Event + Porter Large File """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["milestoned"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - milestone: MilestonedIssueEventPropMilestone = Field() - - -class MilestonedIssueEventPropMilestone(GitHubModel): - """MilestonedIssueEventPropMilestone""" - - title: str = Field() + ref_name: str = Field() + path: str = Field() + oid: str = Field() + size: int = Field() -model_rebuild(MilestonedIssueEvent) -model_rebuild(MilestonedIssueEventPropMilestone) +model_rebuild(PorterLargeFile) -__all__ = ( - "MilestonedIssueEvent", - "MilestonedIssueEventPropMilestone", -) +__all__ = ("PorterLargeFile",) diff --git a/githubkit/versions/v2022_11_28/models/group_0292.py b/githubkit/versions/v2022_11_28/models/group_0292.py index 4eedce907..268d01347 100644 --- a/githubkit/versions/v2022_11_28/models/group_0292.py +++ b/githubkit/versions/v2022_11_28/models/group_0292.py @@ -9,44 +9,150 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0041 import Issue +from .group_0087 import Team -class DemilestonedIssueEvent(GitHubModel): - """Demilestoned Issue Event +class IssueEvent(GitHubModel): + """Issue Event - Demilestoned Issue Event + Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["demilestoned"] = Field() + actor: Union[None, SimpleUser] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - milestone: DemilestonedIssueEventPropMilestone = Field() + created_at: datetime = Field() + issue: Missing[Union[None, Issue]] = Field(default=UNSET) + label: Missing[IssueEventLabel] = Field( + default=UNSET, title="Issue Event Label", description="Issue Event Label" + ) + assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + assigner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + review_requester: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + requested_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + dismissed_review: Missing[IssueEventDismissedReview] = Field( + default=UNSET, title="Issue Event Dismissed Review" + ) + milestone: Missing[IssueEventMilestone] = Field( + default=UNSET, + title="Issue Event Milestone", + description="Issue Event Milestone", + ) + project_card: Missing[IssueEventProjectCard] = Field( + default=UNSET, + title="Issue Event Project Card", + description="Issue Event Project Card", + ) + rename: Missing[IssueEventRename] = Field( + default=UNSET, title="Issue Event Rename", description="Issue Event Rename" + ) + author_association: Missing[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] = Field( + default=UNSET, + title="author_association", + description="How the author is associated with the repository.", + ) + lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + + +class IssueEventLabel(GitHubModel): + """Issue Event Label + + Issue Event Label + """ + + name: Union[str, None] = Field() + color: Union[str, None] = Field() + + +class IssueEventDismissedReview(GitHubModel): + """Issue Event Dismissed Review""" + + state: str = Field() + review_id: int = Field() + dismissal_message: Union[str, None] = Field() + dismissal_commit_id: Missing[Union[str, None]] = Field(default=UNSET) -class DemilestonedIssueEventPropMilestone(GitHubModel): - """DemilestonedIssueEventPropMilestone""" +class IssueEventMilestone(GitHubModel): + """Issue Event Milestone + + Issue Event Milestone + """ title: str = Field() -model_rebuild(DemilestonedIssueEvent) -model_rebuild(DemilestonedIssueEventPropMilestone) +class IssueEventProjectCard(GitHubModel): + """Issue Event Project Card + + Issue Event Project Card + """ + + url: str = Field() + id: int = Field() + project_url: str = Field() + project_id: int = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +class IssueEventRename(GitHubModel): + """Issue Event Rename + + Issue Event Rename + """ + + from_: str = Field(alias="from") + to: str = Field() + + +model_rebuild(IssueEvent) +model_rebuild(IssueEventLabel) +model_rebuild(IssueEventDismissedReview) +model_rebuild(IssueEventMilestone) +model_rebuild(IssueEventProjectCard) +model_rebuild(IssueEventRename) __all__ = ( - "DemilestonedIssueEvent", - "DemilestonedIssueEventPropMilestone", + "IssueEvent", + "IssueEventDismissedReview", + "IssueEventLabel", + "IssueEventMilestone", + "IssueEventProjectCard", + "IssueEventRename", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0293.py b/githubkit/versions/v2022_11_28/models/group_0293.py index 9c56bf2bf..3ec22fb63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0293.py +++ b/githubkit/versions/v2022_11_28/models/group_0293.py @@ -15,39 +15,39 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration -class RenamedIssueEvent(GitHubModel): - """Renamed Issue Event +class LabeledIssueEvent(GitHubModel): + """Labeled Issue Event - Renamed Issue Event + Labeled Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["renamed"] = Field() + event: Literal["labeled"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - rename: RenamedIssueEventPropRename = Field() + label: LabeledIssueEventPropLabel = Field() -class RenamedIssueEventPropRename(GitHubModel): - """RenamedIssueEventPropRename""" +class LabeledIssueEventPropLabel(GitHubModel): + """LabeledIssueEventPropLabel""" - from_: str = Field(alias="from") - to: str = Field() + name: str = Field() + color: str = Field() -model_rebuild(RenamedIssueEvent) -model_rebuild(RenamedIssueEventPropRename) +model_rebuild(LabeledIssueEvent) +model_rebuild(LabeledIssueEventPropLabel) __all__ = ( - "RenamedIssueEvent", - "RenamedIssueEventPropRename", + "LabeledIssueEvent", + "LabeledIssueEventPropLabel", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0294.py b/githubkit/versions/v2022_11_28/models/group_0294.py index 5af6c444a..695ea4a4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0294.py +++ b/githubkit/versions/v2022_11_28/models/group_0294.py @@ -14,42 +14,40 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0082 import Team +from .group_0003 import SimpleUser +from .group_0010 import Integration -class ReviewRequestedIssueEvent(GitHubModel): - """Review Requested Issue Event +class UnlabeledIssueEvent(GitHubModel): + """Unlabeled Issue Event - Review Requested Issue Event + Unlabeled Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_requested"] = Field() + event: Literal["unlabeled"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - review_requester: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - requested_reviewer: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(ReviewRequestedIssueEvent) - -__all__ = ("ReviewRequestedIssueEvent",) + label: UnlabeledIssueEventPropLabel = Field() + + +class UnlabeledIssueEventPropLabel(GitHubModel): + """UnlabeledIssueEventPropLabel""" + + name: str = Field() + color: str = Field() + + +model_rebuild(UnlabeledIssueEvent) +model_rebuild(UnlabeledIssueEventPropLabel) + +__all__ = ( + "UnlabeledIssueEvent", + "UnlabeledIssueEventPropLabel", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0295.py b/githubkit/versions/v2022_11_28/models/group_0295.py index e7f87c62e..34f35669c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0295.py +++ b/githubkit/versions/v2022_11_28/models/group_0295.py @@ -9,47 +9,38 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0082 import Team +from .group_0003 import SimpleUser +from .group_0010 import Integration -class ReviewRequestRemovedIssueEvent(GitHubModel): - """Review Request Removed Issue Event +class AssignedIssueEvent(GitHubModel): + """Assigned Issue Event - Review Request Removed Issue Event + Assigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_request_removed"] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - review_requester: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - requested_reviewer: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(ReviewRequestRemovedIssueEvent) +model_rebuild(AssignedIssueEvent) -__all__ = ("ReviewRequestRemovedIssueEvent",) +__all__ = ("AssignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0296.py b/githubkit/versions/v2022_11_28/models/group_0296.py index 4dea4a8f3..d36e83286 100644 --- a/githubkit/versions/v2022_11_28/models/group_0296.py +++ b/githubkit/versions/v2022_11_28/models/group_0296.py @@ -9,49 +9,35 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration -class ReviewDismissedIssueEvent(GitHubModel): - """Review Dismissed Issue Event +class UnassignedIssueEvent(GitHubModel): + """Unassigned Issue Event - Review Dismissed Issue Event + Unassigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_dismissed"] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): - """ReviewDismissedIssueEventPropDismissedReview""" +model_rebuild(UnassignedIssueEvent) - state: str = Field() - review_id: int = Field() - dismissal_message: Union[str, None] = Field() - dismissal_commit_id: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReviewDismissedIssueEvent) -model_rebuild(ReviewDismissedIssueEventPropDismissedReview) - -__all__ = ( - "ReviewDismissedIssueEvent", - "ReviewDismissedIssueEventPropDismissedReview", -) +__all__ = ("UnassignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0297.py b/githubkit/versions/v2022_11_28/models/group_0297.py index 4cb21fe2e..734796d8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0297.py +++ b/githubkit/versions/v2022_11_28/models/group_0297.py @@ -15,28 +15,38 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration -class LockedIssueEvent(GitHubModel): - """Locked Issue Event +class MilestonedIssueEvent(GitHubModel): + """Milestoned Issue Event - Locked Issue Event + Milestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["locked"] = Field() + event: Literal["milestoned"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - lock_reason: Union[str, None] = Field() + milestone: MilestonedIssueEventPropMilestone = Field() -model_rebuild(LockedIssueEvent) +class MilestonedIssueEventPropMilestone(GitHubModel): + """MilestonedIssueEventPropMilestone""" -__all__ = ("LockedIssueEvent",) + title: str = Field() + + +model_rebuild(MilestonedIssueEvent) +model_rebuild(MilestonedIssueEventPropMilestone) + +__all__ = ( + "MilestonedIssueEvent", + "MilestonedIssueEventPropMilestone", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0298.py b/githubkit/versions/v2022_11_28/models/group_0298.py index 30d0e4da1..1b03cd99a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0298.py +++ b/githubkit/versions/v2022_11_28/models/group_0298.py @@ -14,48 +14,39 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration -class AddedToProjectIssueEvent(GitHubModel): - """Added to Project Issue Event +class DemilestonedIssueEvent(GitHubModel): + """Demilestoned Issue Event - Added to Project Issue Event + Demilestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["added_to_project"] = Field() + event: Literal["demilestoned"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + milestone: DemilestonedIssueEventPropMilestone = Field() -class AddedToProjectIssueEventPropProjectCard(GitHubModel): - """AddedToProjectIssueEventPropProjectCard""" +class DemilestonedIssueEventPropMilestone(GitHubModel): + """DemilestonedIssueEventPropMilestone""" - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) + title: str = Field() -model_rebuild(AddedToProjectIssueEvent) -model_rebuild(AddedToProjectIssueEventPropProjectCard) +model_rebuild(DemilestonedIssueEvent) +model_rebuild(DemilestonedIssueEventPropMilestone) __all__ = ( - "AddedToProjectIssueEvent", - "AddedToProjectIssueEventPropProjectCard", + "DemilestonedIssueEvent", + "DemilestonedIssueEventPropMilestone", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0299.py b/githubkit/versions/v2022_11_28/models/group_0299.py index 28fe20c0c..234895caf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0299.py +++ b/githubkit/versions/v2022_11_28/models/group_0299.py @@ -14,48 +14,40 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration -class MovedColumnInProjectIssueEvent(GitHubModel): - """Moved Column in Project Issue Event +class RenamedIssueEvent(GitHubModel): + """Renamed Issue Event - Moved Column in Project Issue Event + Renamed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["moved_columns_in_project"] = Field() + event: Literal["renamed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + rename: RenamedIssueEventPropRename = Field() -class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): - """MovedColumnInProjectIssueEventPropProjectCard""" +class RenamedIssueEventPropRename(GitHubModel): + """RenamedIssueEventPropRename""" - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) + from_: str = Field(alias="from") + to: str = Field() -model_rebuild(MovedColumnInProjectIssueEvent) -model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) +model_rebuild(RenamedIssueEvent) +model_rebuild(RenamedIssueEventPropRename) __all__ = ( - "MovedColumnInProjectIssueEvent", - "MovedColumnInProjectIssueEventPropProjectCard", + "RenamedIssueEvent", + "RenamedIssueEventPropRename", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0300.py b/githubkit/versions/v2022_11_28/models/group_0300.py index b138bfd32..d9a220f66 100644 --- a/githubkit/versions/v2022_11_28/models/group_0300.py +++ b/githubkit/versions/v2022_11_28/models/group_0300.py @@ -17,45 +17,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0087 import Team -class RemovedFromProjectIssueEvent(GitHubModel): - """Removed from Project Issue Event +class ReviewRequestedIssueEvent(GitHubModel): + """Review Requested Issue Event - Removed from Project Issue Event + Review Requested Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["removed_from_project"] = Field() + event: Literal["review_requested"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[RemovedFromProjectIssueEventPropProjectCard] = Field( - default=UNSET + review_requester: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + requested_reviewer: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): - """RemovedFromProjectIssueEventPropProjectCard""" - - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(RemovedFromProjectIssueEvent) -model_rebuild(RemovedFromProjectIssueEventPropProjectCard) +model_rebuild(ReviewRequestedIssueEvent) -__all__ = ( - "RemovedFromProjectIssueEvent", - "RemovedFromProjectIssueEventPropProjectCard", -) +__all__ = ("ReviewRequestedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0301.py b/githubkit/versions/v2022_11_28/models/group_0301.py index 72954e807..e252a199c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0301.py +++ b/githubkit/versions/v2022_11_28/models/group_0301.py @@ -17,48 +17,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0087 import Team -class ConvertedNoteToIssueIssueEvent(GitHubModel): - """Converted Note to Issue Issue Event +class ReviewRequestRemovedIssueEvent(GitHubModel): + """Review Request Removed Issue Event - Converted Note to Issue Issue Event + Review Request Removed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["converted_note_to_issue"] = Field() + event: Literal["review_request_removed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + performed_via_github_app: Union[None, Integration, None] = Field() + review_requester: SimpleUser = Field( + title="Simple User", description="A GitHub user." ) - project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( - default=UNSET + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + requested_reviewer: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): - """ConvertedNoteToIssueIssueEventPropProjectCard""" - - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(ConvertedNoteToIssueIssueEvent) -model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) +model_rebuild(ReviewRequestRemovedIssueEvent) -__all__ = ( - "ConvertedNoteToIssueIssueEvent", - "ConvertedNoteToIssueIssueEventPropProjectCard", -) +__all__ = ("ReviewRequestRemovedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0302.py b/githubkit/versions/v2022_11_28/models/group_0302.py index e81215439..bc686e09d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0302.py +++ b/githubkit/versions/v2022_11_28/models/group_0302.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,51 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0039 import ReactionRollup +from .group_0003 import SimpleUser +from .group_0010 import Integration -class TimelineCommentEvent(GitHubModel): - """Timeline Comment Event +class ReviewDismissedIssueEvent(GitHubModel): + """Review Dismissed Issue Event - Timeline Comment Event + Review Dismissed Issue Event """ - event: Literal["commented"] = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - id: int = Field(description="Unique identifier of the issue comment") + id: int = Field() node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" - ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - html_url: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: datetime = Field() - updated_at: datetime = Field() - issue_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - - -model_rebuild(TimelineCommentEvent) - -__all__ = ("TimelineCommentEvent",) + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["review_dismissed"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() + + +class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): + """ReviewDismissedIssueEventPropDismissedReview""" + + state: str = Field() + review_id: int = Field() + dismissal_message: Union[str, None] = Field() + dismissal_commit_id: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReviewDismissedIssueEvent) +model_rebuild(ReviewDismissedIssueEventPropDismissedReview) + +__all__ = ( + "ReviewDismissedIssueEvent", + "ReviewDismissedIssueEventPropDismissedReview", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0303.py b/githubkit/versions/v2022_11_28/models/group_0303.py index 785526b8a..e0130f152 100644 --- a/githubkit/versions/v2022_11_28/models/group_0303.py +++ b/githubkit/versions/v2022_11_28/models/group_0303.py @@ -9,34 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0304 import TimelineCrossReferencedEventPropSource +from .group_0003 import SimpleUser +from .group_0010 import Integration -class TimelineCrossReferencedEvent(GitHubModel): - """Timeline Cross Referenced Event +class LockedIssueEvent(GitHubModel): + """Locked Issue Event - Timeline Cross Referenced Event + Locked Issue Event """ - event: Literal["cross-referenced"] = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - source: TimelineCrossReferencedEventPropSource = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["locked"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + lock_reason: Union[str, None] = Field() -model_rebuild(TimelineCrossReferencedEvent) +model_rebuild(LockedIssueEvent) -__all__ = ("TimelineCrossReferencedEvent",) +__all__ = ("LockedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0304.py b/githubkit/versions/v2022_11_28/models/group_0304.py index 5c4df1a8f..cf2b6b5f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0304.py +++ b/githubkit/versions/v2022_11_28/models/group_0304.py @@ -9,26 +9,53 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import Issue +from .group_0003 import SimpleUser +from .group_0010 import Integration + +class AddedToProjectIssueEvent(GitHubModel): + """Added to Project Issue Event -class TimelineCrossReferencedEventPropSource(GitHubModel): - """TimelineCrossReferencedEventPropSource""" + Added to Project Issue Event + """ - type: Missing[str] = Field(default=UNSET) - issue: Missing[Issue] = Field( - default=UNSET, - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["added_to_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( + default=UNSET ) -model_rebuild(TimelineCrossReferencedEventPropSource) +class AddedToProjectIssueEventPropProjectCard(GitHubModel): + """AddedToProjectIssueEventPropProjectCard""" + + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(AddedToProjectIssueEvent) +model_rebuild(AddedToProjectIssueEventPropProjectCard) -__all__ = ("TimelineCrossReferencedEventPropSource",) +__all__ = ( + "AddedToProjectIssueEvent", + "AddedToProjectIssueEventPropProjectCard", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0305.py b/githubkit/versions/v2022_11_28/models/group_0305.py index 2adea8706..5d2b15f17 100644 --- a/githubkit/versions/v2022_11_28/models/group_0305.py +++ b/githubkit/versions/v2022_11_28/models/group_0305.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,89 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration -class TimelineCommittedEvent(GitHubModel): - """Timeline Committed Event - Timeline Committed Event +class MovedColumnInProjectIssueEvent(GitHubModel): + """Moved Column in Project Issue Event + + Moved Column in Project Issue Event """ - event: Missing[Literal["committed"]] = Field(default=UNSET) - sha: str = Field(description="SHA for the commit") + id: int = Field() node_id: str = Field() url: str = Field() - author: TimelineCommittedEventPropAuthor = Field( - description="Identifying information for the git-user" - ) - committer: TimelineCommittedEventPropCommitter = Field( - description="Identifying information for the git-user" + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["moved_columns_in_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( + default=UNSET ) - message: str = Field(description="Message describing the purpose of the commit") - tree: TimelineCommittedEventPropTree = Field() - parents: list[TimelineCommittedEventPropParentsItems] = Field() - verification: TimelineCommittedEventPropVerification = Field() - html_url: str = Field() - - -class TimelineCommittedEventPropAuthor(GitHubModel): - """TimelineCommittedEventPropAuthor - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - -class TimelineCommittedEventPropCommitter(GitHubModel): - """TimelineCommittedEventPropCommitter - - Identifying information for the git-user - """ - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") +class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): + """MovedColumnInProjectIssueEventPropProjectCard""" - -class TimelineCommittedEventPropTree(GitHubModel): - """TimelineCommittedEventPropTree""" - - sha: str = Field(description="SHA for the commit") + id: int = Field() url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) -class TimelineCommittedEventPropParentsItems(GitHubModel): - """TimelineCommittedEventPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class TimelineCommittedEventPropVerification(GitHubModel): - """TimelineCommittedEventPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() - verified_at: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(TimelineCommittedEvent) -model_rebuild(TimelineCommittedEventPropAuthor) -model_rebuild(TimelineCommittedEventPropCommitter) -model_rebuild(TimelineCommittedEventPropTree) -model_rebuild(TimelineCommittedEventPropParentsItems) -model_rebuild(TimelineCommittedEventPropVerification) +model_rebuild(MovedColumnInProjectIssueEvent) +model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) __all__ = ( - "TimelineCommittedEvent", - "TimelineCommittedEventPropAuthor", - "TimelineCommittedEventPropCommitter", - "TimelineCommittedEventPropParentsItems", - "TimelineCommittedEventPropTree", - "TimelineCommittedEventPropVerification", + "MovedColumnInProjectIssueEvent", + "MovedColumnInProjectIssueEventPropProjectCard", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0306.py b/githubkit/versions/v2022_11_28/models/group_0306.py index 1801a16a7..3bd6fbf40 100644 --- a/githubkit/versions/v2022_11_28/models/group_0306.py +++ b/githubkit/versions/v2022_11_28/models/group_0306.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,70 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0010 import Integration -class TimelineReviewedEvent(GitHubModel): - """Timeline Reviewed Event +class RemovedFromProjectIssueEvent(GitHubModel): + """Removed from Project Issue Event - Timeline Reviewed Event + Removed from Project Issue Event """ - event: Literal["reviewed"] = Field() - id: int = Field(description="Unique identifier of the review") + id: int = Field() node_id: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field(description="The text of the review.") - state: str = Field() - html_url: str = Field() - pull_request_url: str = Field() - links: TimelineReviewedEventPropLinks = Field(alias="_links") - submitted_at: Missing[datetime] = Field(default=UNSET) - commit_id: str = Field(description="A commit SHA for the review.") - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["removed_from_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[RemovedFromProjectIssueEventPropProjectCard] = Field( + default=UNSET ) -class TimelineReviewedEventPropLinks(GitHubModel): - """TimelineReviewedEventPropLinks""" +class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): + """RemovedFromProjectIssueEventPropProjectCard""" - html: TimelineReviewedEventPropLinksPropHtml = Field() - pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) -class TimelineReviewedEventPropLinksPropHtml(GitHubModel): - """TimelineReviewedEventPropLinksPropHtml""" - - href: str = Field() - - -class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): - """TimelineReviewedEventPropLinksPropPullRequest""" - - href: str = Field() - - -model_rebuild(TimelineReviewedEvent) -model_rebuild(TimelineReviewedEventPropLinks) -model_rebuild(TimelineReviewedEventPropLinksPropHtml) -model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) +model_rebuild(RemovedFromProjectIssueEvent) +model_rebuild(RemovedFromProjectIssueEventPropProjectCard) __all__ = ( - "TimelineReviewedEvent", - "TimelineReviewedEventPropLinks", - "TimelineReviewedEventPropLinksPropHtml", - "TimelineReviewedEventPropLinksPropPullRequest", + "RemovedFromProjectIssueEvent", + "RemovedFromProjectIssueEventPropProjectCard", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0307.py b/githubkit/versions/v2022_11_28/models/group_0307.py index d9c276c2d..d4894ad61 100644 --- a/githubkit/versions/v2022_11_28/models/group_0307.py +++ b/githubkit/versions/v2022_11_28/models/group_0307.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,150 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0039 import ReactionRollup +from .group_0003 import SimpleUser +from .group_0010 import Integration -class PullRequestReviewComment(GitHubModel): - """Pull Request Review Comment +class ConvertedNoteToIssueIssueEvent(GitHubModel): + """Converted Note to Issue Issue Event - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Converted Note to Issue Issue Event """ - url: str = Field(description="URL for the pull request review comment") - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["converted_note_to_issue"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - id: int = Field(description="The ID of the pull request review comment.") - node_id: str = Field(description="The node ID of the pull request review comment.") - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." + project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( + default=UNSET ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Missing[int] = Field( - default=UNSET, - description="The line index in the diff to which the comment applies. This field is closing down; use `line` instead.", - ) - original_position: Missing[int] = Field( - default=UNSET, - description="The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.", - ) - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: str = Field(description="The text of the comment.") - created_at: datetime = Field() - updated_at: datetime = Field() - html_url: str = Field(description="HTML URL for the pull request review comment.") - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - links: PullRequestReviewCommentPropLinks = Field(alias="_links") - start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - original_start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - original_line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description="The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) -class PullRequestReviewCommentPropLinks(GitHubModel): - """PullRequestReviewCommentPropLinks""" - - self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") - html: PullRequestReviewCommentPropLinksPropHtml = Field() - pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() - - -class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): - """PullRequestReviewCommentPropLinksPropSelf""" - - href: str = Field() - - -class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): - """PullRequestReviewCommentPropLinksPropHtml""" - - href: str = Field() - - -class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewCommentPropLinksPropPullRequest""" - - href: str = Field() - - -class TimelineLineCommentedEvent(GitHubModel): - """Timeline Line Commented Event - - Timeline Line Commented Event - """ +class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): + """ConvertedNoteToIssueIssueEventPropProjectCard""" - event: Missing[Literal["line_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - comments: Missing[list[PullRequestReviewComment]] = Field(default=UNSET) + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) -model_rebuild(PullRequestReviewComment) -model_rebuild(PullRequestReviewCommentPropLinks) -model_rebuild(PullRequestReviewCommentPropLinksPropSelf) -model_rebuild(PullRequestReviewCommentPropLinksPropHtml) -model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) -model_rebuild(TimelineLineCommentedEvent) +model_rebuild(ConvertedNoteToIssueIssueEvent) +model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) __all__ = ( - "PullRequestReviewComment", - "PullRequestReviewCommentPropLinks", - "PullRequestReviewCommentPropLinksPropHtml", - "PullRequestReviewCommentPropLinksPropPullRequest", - "PullRequestReviewCommentPropLinksPropSelf", - "TimelineLineCommentedEvent", + "ConvertedNoteToIssueIssueEvent", + "ConvertedNoteToIssueIssueEventPropProjectCard", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0308.py b/githubkit/versions/v2022_11_28/models/group_0308.py index 8f48b820e..e7473f734 100644 --- a/githubkit/versions/v2022_11_28/models/group_0308.py +++ b/githubkit/versions/v2022_11_28/models/group_0308.py @@ -9,34 +9,60 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0040 import ReactionRollup -class TimelineAssignedIssueEvent(GitHubModel): - """Timeline Assigned Issue Event +class TimelineCommentEvent(GitHubModel): + """Timeline Comment Event - Timeline Assigned Issue Event + Timeline Comment Event """ - id: int = Field() - node_id: str = Field() - url: str = Field() + event: Literal["commented"] = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["assigned"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + id: int = Field(description="Unique identifier of the issue comment") + node_id: str = Field() + url: str = Field(description="URL for the issue comment") + body: Missing[str] = Field( + default=UNSET, description="Contents of the issue comment" + ) + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + html_url: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: datetime = Field() + updated_at: datetime = Field() + issue_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TimelineAssignedIssueEvent) +model_rebuild(TimelineCommentEvent) -__all__ = ("TimelineAssignedIssueEvent",) +__all__ = ("TimelineCommentEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0309.py b/githubkit/versions/v2022_11_28/models/group_0309.py index 42ac45389..a8462f0b7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0309.py +++ b/githubkit/versions/v2022_11_28/models/group_0309.py @@ -9,34 +9,34 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0310 import TimelineCrossReferencedEventPropSource -class TimelineUnassignedIssueEvent(GitHubModel): - """Timeline Unassigned Issue Event +class TimelineCrossReferencedEvent(GitHubModel): + """Timeline Cross Referenced Event - Timeline Unassigned Issue Event + Timeline Cross Referenced Event """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["unassigned"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["cross-referenced"] = Field() + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + source: TimelineCrossReferencedEventPropSource = Field() -model_rebuild(TimelineUnassignedIssueEvent) +model_rebuild(TimelineCrossReferencedEvent) -__all__ = ("TimelineUnassignedIssueEvent",) +__all__ = ("TimelineCrossReferencedEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0310.py b/githubkit/versions/v2022_11_28/models/group_0310.py index 856edc75b..814e41603 100644 --- a/githubkit/versions/v2022_11_28/models/group_0310.py +++ b/githubkit/versions/v2022_11_28/models/group_0310.py @@ -9,36 +9,26 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0008 import Integration - +from .group_0041 import Issue -class StateChangeIssueEvent(GitHubModel): - """State Change Issue Event - State Change Issue Event - """ +class TimelineCrossReferencedEventPropSource(GitHubModel): + """TimelineCrossReferencedEventPropSource""" - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + issue: Missing[Issue] = Field( + default=UNSET, + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) -model_rebuild(StateChangeIssueEvent) +model_rebuild(TimelineCrossReferencedEventPropSource) -__all__ = ("StateChangeIssueEvent",) +__all__ = ("TimelineCrossReferencedEventPropSource",) diff --git a/githubkit/versions/v2022_11_28/models/group_0311.py b/githubkit/versions/v2022_11_28/models/group_0311.py index 25f7eb3a3..3333d74a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0311.py +++ b/githubkit/versions/v2022_11_28/models/group_0311.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,24 +19,88 @@ from githubkit.utils import UNSET -class DeployKey(GitHubModel): - """Deploy Key +class TimelineCommittedEvent(GitHubModel): + """Timeline Committed Event - An SSH key granting access to a single repository. + Timeline Committed Event """ - id: int = Field() - key: str = Field() + event: Missing[Literal["committed"]] = Field(default=UNSET) + sha: str = Field(description="SHA for the commit") + node_id: str = Field() url: str = Field() - title: str = Field() + author: TimelineCommittedEventPropAuthor = Field( + description="Identifying information for the git-user" + ) + committer: TimelineCommittedEventPropCommitter = Field( + description="Identifying information for the git-user" + ) + message: str = Field(description="Message describing the purpose of the commit") + tree: TimelineCommittedEventPropTree = Field() + parents: list[TimelineCommittedEventPropParentsItems] = Field() + verification: TimelineCommittedEventPropVerification = Field() + html_url: str = Field() + + +class TimelineCommittedEventPropAuthor(GitHubModel): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class TimelineCommittedEventPropCommitter(GitHubModel): + """TimelineCommittedEventPropCommitter + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class TimelineCommittedEventPropTree(GitHubModel): + """TimelineCommittedEventPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + + +class TimelineCommittedEventPropParentsItems(GitHubModel): + """TimelineCommittedEventPropParentsItems""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() + + +class TimelineCommittedEventPropVerification(GitHubModel): + """TimelineCommittedEventPropVerification""" + verified: bool = Field() - created_at: str = Field() - read_only: bool = Field() - added_by: Missing[Union[str, None]] = Field(default=UNSET) - last_used: Missing[Union[str, None]] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) + reason: str = Field() + signature: Union[str, None] = Field() + payload: Union[str, None] = Field() + verified_at: Union[str, None] = Field() -model_rebuild(DeployKey) +model_rebuild(TimelineCommittedEvent) +model_rebuild(TimelineCommittedEventPropAuthor) +model_rebuild(TimelineCommittedEventPropCommitter) +model_rebuild(TimelineCommittedEventPropTree) +model_rebuild(TimelineCommittedEventPropParentsItems) +model_rebuild(TimelineCommittedEventPropVerification) -__all__ = ("DeployKey",) +__all__ = ( + "TimelineCommittedEvent", + "TimelineCommittedEventPropAuthor", + "TimelineCommittedEventPropCommitter", + "TimelineCommittedEventPropParentsItems", + "TimelineCommittedEventPropTree", + "TimelineCommittedEventPropVerification", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0312.py b/githubkit/versions/v2022_11_28/models/group_0312.py index 58247c327..a6060bb80 100644 --- a/githubkit/versions/v2022_11_28/models/group_0312.py +++ b/githubkit/versions/v2022_11_28/models/group_0312.py @@ -9,16 +9,79 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from datetime import datetime +from typing import Literal, Union +from pydantic import Field -class Language(ExtraGitHubModel): - """Language +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET - Language +from .group_0003 import SimpleUser + + +class TimelineReviewedEvent(GitHubModel): + """Timeline Reviewed Event + + Timeline Reviewed Event """ + event: Literal["reviewed"] = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: TimelineReviewedEventPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: str = Field(description="A commit SHA for the review.") + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + + +class TimelineReviewedEventPropLinks(GitHubModel): + """TimelineReviewedEventPropLinks""" + + html: TimelineReviewedEventPropLinksPropHtml = Field() + pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() + + +class TimelineReviewedEventPropLinksPropHtml(GitHubModel): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str = Field() + + +class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str = Field() + -model_rebuild(Language) +model_rebuild(TimelineReviewedEvent) +model_rebuild(TimelineReviewedEventPropLinks) +model_rebuild(TimelineReviewedEventPropLinksPropHtml) +model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) -__all__ = ("Language",) +__all__ = ( + "TimelineReviewedEvent", + "TimelineReviewedEventPropLinks", + "TimelineReviewedEventPropLinksPropHtml", + "TimelineReviewedEventPropLinksPropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0313.py b/githubkit/versions/v2022_11_28/models/group_0313.py index 58f0ec9f2..ad6fc32a6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0313.py +++ b/githubkit/versions/v2022_11_28/models/group_0313.py @@ -9,48 +9,159 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0018 import LicenseSimple +from .group_0003 import SimpleUser +from .group_0040 import ReactionRollup -class LicenseContent(GitHubModel): - """License Content +class PullRequestReviewComment(GitHubModel): + """Pull Request Review Comment - License Content + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. """ - name: str = Field() - path: str = Field() - sha: str = Field() - size: int = Field() - url: str = Field() - html_url: Union[str, None] = Field() - git_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - type: str = Field() - content: str = Field() - encoding: str = Field() - links: LicenseContentPropLinks = Field(alias="_links") - license_: Union[None, LicenseSimple] = Field(alias="license") - - -class LicenseContentPropLinks(GitHubModel): - """LicenseContentPropLinks""" + url: str = Field(description="URL for the pull request review comment") + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + id: int = Field(description="The ID of the pull request review comment.") + node_id: str = Field(description="The node ID of the pull request review comment.") + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Missing[int] = Field( + default=UNSET, + description="The line index in the diff to which the comment applies. This field is closing down; use `line` instead.", + ) + original_position: Missing[int] = Field( + default=UNSET, + description="The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.", + ) + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: str = Field(description="The text of the comment.") + created_at: datetime = Field() + updated_at: datetime = Field() + html_url: str = Field(description="HTML URL for the pull request review comment.") + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + links: PullRequestReviewCommentPropLinks = Field(alias="_links") + start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + original_start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + original_line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description="The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + + +class PullRequestReviewCommentPropLinks(GitHubModel): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") + html: PullRequestReviewCommentPropLinksPropHtml = Field() + pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() + + +class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str = Field() + + +class TimelineLineCommentedEvent(GitHubModel): + """Timeline Line Commented Event + + Timeline Line Commented Event + """ - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + event: Missing[Literal["line_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + comments: Missing[list[PullRequestReviewComment]] = Field(default=UNSET) -model_rebuild(LicenseContent) -model_rebuild(LicenseContentPropLinks) +model_rebuild(PullRequestReviewComment) +model_rebuild(PullRequestReviewCommentPropLinks) +model_rebuild(PullRequestReviewCommentPropLinksPropSelf) +model_rebuild(PullRequestReviewCommentPropLinksPropHtml) +model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) +model_rebuild(TimelineLineCommentedEvent) __all__ = ( - "LicenseContent", - "LicenseContentPropLinks", + "PullRequestReviewComment", + "PullRequestReviewCommentPropLinks", + "PullRequestReviewCommentPropLinksPropHtml", + "PullRequestReviewCommentPropLinksPropPullRequest", + "PullRequestReviewCommentPropLinksPropSelf", + "TimelineLineCommentedEvent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0314.py b/githubkit/versions/v2022_11_28/models/group_0314.py index 21374a5f3..c45a39f8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0314.py +++ b/githubkit/versions/v2022_11_28/models/group_0314.py @@ -9,26 +9,34 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration -class MergedUpstream(GitHubModel): - """Merged upstream - Results of a successful merge upstream request +class TimelineAssignedIssueEvent(GitHubModel): + """Timeline Assigned Issue Event + + Timeline Assigned Issue Event """ - message: Missing[str] = Field(default=UNSET) - merge_type: Missing[Literal["merge", "fast-forward", "none"]] = Field(default=UNSET) - base_branch: Missing[str] = Field(default=UNSET) + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["assigned"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(MergedUpstream) +model_rebuild(TimelineAssignedIssueEvent) -__all__ = ("MergedUpstream",) +__all__ = ("TimelineAssignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0315.py b/githubkit/versions/v2022_11_28/models/group_0315.py index 771963487..420f91c26 100644 --- a/githubkit/versions/v2022_11_28/models/group_0315.py +++ b/githubkit/versions/v2022_11_28/models/group_0315.py @@ -9,92 +9,34 @@ from __future__ import annotations -from datetime import date, datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration -class Page(GitHubModel): - """GitHub Pages - The configuration for GitHub Pages for a repository. - """ - - url: str = Field(description="The API address for accessing this Page resource.") - status: Union[None, Literal["built", "building", "errored"]] = Field( - description="The status of the most recent build of the Page." - ) - cname: Union[str, None] = Field(description="The Pages site's custom domain") - protected_domain_state: Missing[ - Union[None, Literal["pending", "verified", "unverified"]] - ] = Field(default=UNSET, description="The state if the domain is verified") - pending_domain_unverified_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The timestamp when a pending domain becomes unverified.", - ) - custom_404: bool = Field( - default=False, description="Whether the Page has a custom 404 page." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The web address the Page can be accessed from." - ) - build_type: Missing[Union[None, Literal["legacy", "workflow"]]] = Field( - default=UNSET, description="The process in which the Page will be built." - ) - source: Missing[PagesSourceHash] = Field(default=UNSET, title="Pages Source Hash") - public: bool = Field( - description="Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site." - ) - https_certificate: Missing[PagesHttpsCertificate] = Field( - default=UNSET, title="Pages Https Certificate" - ) - https_enforced: Missing[bool] = Field( - default=UNSET, description="Whether https is enabled on the domain" - ) - - -class PagesSourceHash(GitHubModel): - """Pages Source Hash""" +class TimelineUnassignedIssueEvent(GitHubModel): + """Timeline Unassigned Issue Event - branch: str = Field() - path: str = Field() - - -class PagesHttpsCertificate(GitHubModel): - """Pages Https Certificate""" + Timeline Unassigned Issue Event + """ - state: Literal[ - "new", - "authorization_created", - "authorization_pending", - "authorized", - "authorization_revoked", - "issued", - "uploaded", - "approved", - "errored", - "bad_authz", - "destroy_pending", - "dns_changed", - ] = Field() - description: str = Field() - domains: list[str] = Field( - description="Array of the domain set and its alternate name (if it is configured)" - ) - expires_at: Missing[date] = Field(default=UNSET) + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["unassigned"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(Page) -model_rebuild(PagesSourceHash) -model_rebuild(PagesHttpsCertificate) +model_rebuild(TimelineUnassignedIssueEvent) -__all__ = ( - "Page", - "PagesHttpsCertificate", - "PagesSourceHash", -) +__all__ = ("TimelineUnassignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0316.py b/githubkit/versions/v2022_11_28/models/group_0316.py index 4be66a8fd..799278e56 100644 --- a/githubkit/versions/v2022_11_28/models/group_0316.py +++ b/githubkit/versions/v2022_11_28/models/group_0316.py @@ -9,42 +9,36 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser +from .group_0010 import Integration -class PageBuild(GitHubModel): - """Page Build +class StateChangeIssueEvent(GitHubModel): + """State Change Issue Event - Page Build + State Change Issue Event """ + id: int = Field() + node_id: str = Field() url: str = Field() - status: str = Field() - error: PageBuildPropError = Field() - pusher: Union[None, SimpleUser] = Field() - commit: str = Field() - duration: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: str = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + state_reason: Missing[Union[str, None]] = Field(default=UNSET) -class PageBuildPropError(GitHubModel): - """PageBuildPropError""" +model_rebuild(StateChangeIssueEvent) - message: Union[str, None] = Field() - - -model_rebuild(PageBuild) -model_rebuild(PageBuildPropError) - -__all__ = ( - "PageBuild", - "PageBuildPropError", -) +__all__ = ("StateChangeIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0317.py b/githubkit/versions/v2022_11_28/models/group_0317.py index 4b54230bc..25f7eb3a3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0317.py +++ b/githubkit/versions/v2022_11_28/models/group_0317.py @@ -9,21 +9,33 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PageBuildStatus(GitHubModel): - """Page Build Status +class DeployKey(GitHubModel): + """Deploy Key - Page Build Status + An SSH key granting access to a single repository. """ + id: int = Field() + key: str = Field() url: str = Field() - status: str = Field() + title: str = Field() + verified: bool = Field() + created_at: str = Field() + read_only: bool = Field() + added_by: Missing[Union[str, None]] = Field(default=UNSET) + last_used: Missing[Union[str, None]] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(PageBuildStatus) +model_rebuild(DeployKey) -__all__ = ("PageBuildStatus",) +__all__ = ("DeployKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0318.py b/githubkit/versions/v2022_11_28/models/group_0318.py index c3d88e76b..58247c327 100644 --- a/githubkit/versions/v2022_11_28/models/group_0318.py +++ b/githubkit/versions/v2022_11_28/models/group_0318.py @@ -9,33 +9,16 @@ from __future__ import annotations -from typing import Union +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +class Language(ExtraGitHubModel): + """Language - -class PageDeployment(GitHubModel): - """GitHub Pages - - The GitHub Pages deployment status. + Language """ - id: Union[int, str] = Field( - description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." - ) - status_url: str = Field( - description="The URI to monitor GitHub Pages deployment status." - ) - page_url: str = Field(description="The URI to the deployed GitHub Pages.") - preview_url: Missing[str] = Field( - default=UNSET, description="The URI to the deployed GitHub Pages preview." - ) - -model_rebuild(PageDeployment) +model_rebuild(Language) -__all__ = ("PageDeployment",) +__all__ = ("Language",) diff --git a/githubkit/versions/v2022_11_28/models/group_0319.py b/githubkit/versions/v2022_11_28/models/group_0319.py index f79d28414..5f83fdf69 100644 --- a/githubkit/versions/v2022_11_28/models/group_0319.py +++ b/githubkit/versions/v2022_11_28/models/group_0319.py @@ -9,35 +9,48 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0019 import LicenseSimple -class PagesDeploymentStatus(GitHubModel): - """GitHub Pages deployment status""" - status: Missing[ - Literal[ - "deployment_in_progress", - "syncing_files", - "finished_file_sync", - "updating_pages", - "purging_cdn", - "deployment_cancelled", - "deployment_failed", - "deployment_content_failed", - "deployment_attempt_error", - "deployment_lost", - "succeed", - ] - ] = Field(default=UNSET, description="The current status of the deployment.") +class LicenseContent(GitHubModel): + """License Content + License Content + """ -model_rebuild(PagesDeploymentStatus) + name: str = Field() + path: str = Field() + sha: str = Field() + size: int = Field() + url: str = Field() + html_url: Union[str, None] = Field() + git_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + type: str = Field() + content: str = Field() + encoding: str = Field() + links: LicenseContentPropLinks = Field(alias="_links") + license_: Union[None, LicenseSimple] = Field(alias="license") -__all__ = ("PagesDeploymentStatus",) + +class LicenseContentPropLinks(GitHubModel): + """LicenseContentPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(LicenseContent) +model_rebuild(LicenseContentPropLinks) + +__all__ = ( + "LicenseContent", + "LicenseContentPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0320.py b/githubkit/versions/v2022_11_28/models/group_0320.py index b7d3c727b..21374a5f3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0320.py +++ b/githubkit/versions/v2022_11_28/models/group_0320.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,94 +18,17 @@ from githubkit.utils import UNSET -class PagesHealthCheck(GitHubModel): - """Pages Health Check Status +class MergedUpstream(GitHubModel): + """Merged upstream - Pages Health Check Status + Results of a successful merge upstream request """ - domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) - alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( - default=UNSET - ) + message: Missing[str] = Field(default=UNSET) + merge_type: Missing[Literal["merge", "fast-forward", "none"]] = Field(default=UNSET) + base_branch: Missing[str] = Field(default=UNSET) -class PagesHealthCheckPropDomain(GitHubModel): - """PagesHealthCheckPropDomain""" +model_rebuild(MergedUpstream) - host: Missing[str] = Field(default=UNSET) - uri: Missing[str] = Field(default=UNSET) - nameservers: Missing[str] = Field(default=UNSET) - dns_resolves: Missing[bool] = Field(default=UNSET) - is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) - is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) - is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid_domain: Missing[bool] = Field(default=UNSET) - is_apex_domain: Missing[bool] = Field(default=UNSET) - should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( - default=UNSET - ) - is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) - is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_pages_domain: Missing[bool] = Field(default=UNSET) - is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid: Missing[bool] = Field(default=UNSET) - reason: Missing[Union[str, None]] = Field(default=UNSET) - responds_to_https: Missing[bool] = Field(default=UNSET) - enforces_https: Missing[bool] = Field(default=UNSET) - https_error: Missing[Union[str, None]] = Field(default=UNSET) - is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) - caa_error: Missing[Union[str, None]] = Field(default=UNSET) - - -class PagesHealthCheckPropAltDomain(GitHubModel): - """PagesHealthCheckPropAltDomain""" - - host: Missing[str] = Field(default=UNSET) - uri: Missing[str] = Field(default=UNSET) - nameservers: Missing[str] = Field(default=UNSET) - dns_resolves: Missing[bool] = Field(default=UNSET) - is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) - is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) - is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid_domain: Missing[bool] = Field(default=UNSET) - is_apex_domain: Missing[bool] = Field(default=UNSET) - should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( - default=UNSET - ) - is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) - is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_pages_domain: Missing[bool] = Field(default=UNSET) - is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid: Missing[bool] = Field(default=UNSET) - reason: Missing[Union[str, None]] = Field(default=UNSET) - responds_to_https: Missing[bool] = Field(default=UNSET) - enforces_https: Missing[bool] = Field(default=UNSET) - https_error: Missing[Union[str, None]] = Field(default=UNSET) - is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) - caa_error: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(PagesHealthCheck) -model_rebuild(PagesHealthCheckPropDomain) -model_rebuild(PagesHealthCheckPropAltDomain) - -__all__ = ( - "PagesHealthCheck", - "PagesHealthCheckPropAltDomain", - "PagesHealthCheckPropDomain", -) +__all__ = ("MergedUpstream",) diff --git a/githubkit/versions/v2022_11_28/models/group_0321.py b/githubkit/versions/v2022_11_28/models/group_0321.py index 04fa854b3..771963487 100644 --- a/githubkit/versions/v2022_11_28/models/group_0321.py +++ b/githubkit/versions/v2022_11_28/models/group_0321.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from datetime import date, datetime from typing import Literal, Union from pydantic import Field @@ -18,97 +18,83 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0038 import Milestone -from .group_0081 import TeamSimple -from .group_0242 import AutoMerge -from .group_0322 import PullRequestPropLabelsItems -from .group_0323 import PullRequestPropBase, PullRequestPropHead -from .group_0324 import PullRequestPropLinks +class Page(GitHubModel): + """GitHub Pages -class PullRequest(GitHubModel): - """Pull Request - - Pull requests let you tell others about changes you've pushed to a repository on - GitHub. Once a pull request is sent, interested parties can review the set of - changes, discuss potential modifications, and even push follow-up commits if - necessary. + The configuration for GitHub Pages for a repository. """ - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." + url: str = Field(description="The API address for accessing this Page resource.") + status: Union[None, Literal["built", "building", "errored"]] = Field( + description="The status of the most recent build of the Page." ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." + cname: Union[str, None] = Field(description="The Pages site's custom domain") + protected_domain_state: Missing[ + Union[None, Literal["pending", "verified", "unverified"]] + ] = Field(default=UNSET, description="The state if the domain is verified") + pending_domain_unverified_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The timestamp when a pending domain becomes unverified.", ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: list[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + custom_404: bool = Field( + default=False, description="Whether the Page has a custom 404 page." ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." + html_url: Missing[str] = Field( + default=UNSET, description="The web address the Page can be accessed from." ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", + build_type: Missing[Union[None, Literal["legacy", "workflow"]]] = Field( + default=UNSET, description="The process in which the Page will be built." + ) + source: Missing[PagesSourceHash] = Field(default=UNSET, title="Pages Source Hash") + public: bool = Field( + description="Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site." + ) + https_certificate: Missing[PagesHttpsCertificate] = Field( + default=UNSET, title="Pages Https Certificate" + ) + https_enforced: Missing[bool] = Field( + default=UNSET, description="Whether https is enabled on the domain" ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." + + +class PagesSourceHash(GitHubModel): + """Pages Source Hash""" + + branch: str = Field() + path: str = Field() + + +class PagesHttpsCertificate(GitHubModel): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", + ] = Field() + description: str = Field() + domains: list[str] = Field( + description="Array of the domain set and its alternate name (if it is configured)" ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() + expires_at: Missing[date] = Field(default=UNSET) -model_rebuild(PullRequest) +model_rebuild(Page) +model_rebuild(PagesSourceHash) +model_rebuild(PagesHttpsCertificate) -__all__ = ("PullRequest",) +__all__ = ( + "Page", + "PagesHttpsCertificate", + "PagesSourceHash", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0322.py b/githubkit/versions/v2022_11_28/models/group_0322.py index cf1d160e5..c05e5b837 100644 --- a/githubkit/versions/v2022_11_28/models/group_0322.py +++ b/githubkit/versions/v2022_11_28/models/group_0322.py @@ -9,25 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser -class PullRequestPropLabelsItems(GitHubModel): - """PullRequestPropLabelsItems""" - id: int = Field() - node_id: str = Field() +class PageBuild(GitHubModel): + """Page Build + + Page Build + """ + url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() + status: str = Field() + error: PageBuildPropError = Field() + pusher: Union[None, SimpleUser] = Field() + commit: str = Field() + duration: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + + +class PageBuildPropError(GitHubModel): + """PageBuildPropError""" + + message: Union[str, None] = Field() -model_rebuild(PullRequestPropLabelsItems) +model_rebuild(PageBuild) +model_rebuild(PageBuildPropError) -__all__ = ("PullRequestPropLabelsItems",) +__all__ = ( + "PageBuild", + "PageBuildPropError", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0323.py b/githubkit/versions/v2022_11_28/models/group_0323.py index affc4f394..4b54230bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0323.py +++ b/githubkit/versions/v2022_11_28/models/group_0323.py @@ -9,40 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0019 import Repository - - -class PullRequestPropHead(GitHubModel): - """PullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") - sha: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") +class PageBuildStatus(GitHubModel): + """Page Build Status -class PullRequestPropBase(GitHubModel): - """PullRequestPropBase""" + Page Build Status + """ - label: str = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") - sha: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: str = Field() + status: str = Field() -model_rebuild(PullRequestPropHead) -model_rebuild(PullRequestPropBase) +model_rebuild(PageBuildStatus) -__all__ = ( - "PullRequestPropBase", - "PullRequestPropHead", -) +__all__ = ("PageBuildStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0324.py b/githubkit/versions/v2022_11_28/models/group_0324.py index d607d18d5..c3d88e76b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0324.py +++ b/githubkit/versions/v2022_11_28/models/group_0324.py @@ -9,26 +9,33 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0241 import Link +class PageDeployment(GitHubModel): + """GitHub Pages -class PullRequestPropLinks(GitHubModel): - """PullRequestPropLinks""" + The GitHub Pages deployment status. + """ - comments: Link = Field(title="Link", description="Hypermedia Link") - commits: Link = Field(title="Link", description="Hypermedia Link") - statuses: Link = Field(title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - issue: Link = Field(title="Link", description="Hypermedia Link") - review_comments: Link = Field(title="Link", description="Hypermedia Link") - review_comment: Link = Field(title="Link", description="Hypermedia Link") - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + id: Union[int, str] = Field( + description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." + ) + status_url: str = Field( + description="The URI to monitor GitHub Pages deployment status." + ) + page_url: str = Field(description="The URI to the deployed GitHub Pages.") + preview_url: Missing[str] = Field( + default=UNSET, description="The URI to the deployed GitHub Pages preview." + ) -model_rebuild(PullRequestPropLinks) +model_rebuild(PageDeployment) -__all__ = ("PullRequestPropLinks",) +__all__ = ("PageDeployment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0325.py b/githubkit/versions/v2022_11_28/models/group_0325.py index da433b3b8..f79d28414 100644 --- a/githubkit/versions/v2022_11_28/models/group_0325.py +++ b/githubkit/versions/v2022_11_28/models/group_0325.py @@ -9,22 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PullRequestMergeResult(GitHubModel): - """Pull Request Merge Result - - Pull Request Merge Result - """ +class PagesDeploymentStatus(GitHubModel): + """GitHub Pages deployment status""" - sha: str = Field() - merged: bool = Field() - message: str = Field() + status: Missing[ + Literal[ + "deployment_in_progress", + "syncing_files", + "finished_file_sync", + "updating_pages", + "purging_cdn", + "deployment_cancelled", + "deployment_failed", + "deployment_content_failed", + "deployment_attempt_error", + "deployment_lost", + "succeed", + ] + ] = Field(default=UNSET, description="The current status of the deployment.") -model_rebuild(PullRequestMergeResult) +model_rebuild(PagesDeploymentStatus) -__all__ = ("PullRequestMergeResult",) +__all__ = ("PagesDeploymentStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0326.py b/githubkit/versions/v2022_11_28/models/group_0326.py index 6d297ead2..b7d3c727b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0326.py +++ b/githubkit/versions/v2022_11_28/models/group_0326.py @@ -9,24 +9,103 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0002 import SimpleUser -from .group_0082 import Team +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PullRequestReviewRequest(GitHubModel): - """Pull Request Review Request +class PagesHealthCheck(GitHubModel): + """Pages Health Check Status - Pull Request Review Request + Pages Health Check Status """ - users: list[SimpleUser] = Field() - teams: list[Team] = Field() + domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) + alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( + default=UNSET + ) + + +class PagesHealthCheckPropDomain(GitHubModel): + """PagesHealthCheckPropDomain""" + + host: Missing[str] = Field(default=UNSET) + uri: Missing[str] = Field(default=UNSET) + nameservers: Missing[str] = Field(default=UNSET) + dns_resolves: Missing[bool] = Field(default=UNSET) + is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) + is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) + is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid_domain: Missing[bool] = Field(default=UNSET) + is_apex_domain: Missing[bool] = Field(default=UNSET) + should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( + default=UNSET + ) + is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) + is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_pages_domain: Missing[bool] = Field(default=UNSET) + is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid: Missing[bool] = Field(default=UNSET) + reason: Missing[Union[str, None]] = Field(default=UNSET) + responds_to_https: Missing[bool] = Field(default=UNSET) + enforces_https: Missing[bool] = Field(default=UNSET) + https_error: Missing[Union[str, None]] = Field(default=UNSET) + is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) + caa_error: Missing[Union[str, None]] = Field(default=UNSET) + + +class PagesHealthCheckPropAltDomain(GitHubModel): + """PagesHealthCheckPropAltDomain""" + + host: Missing[str] = Field(default=UNSET) + uri: Missing[str] = Field(default=UNSET) + nameservers: Missing[str] = Field(default=UNSET) + dns_resolves: Missing[bool] = Field(default=UNSET) + is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) + is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) + is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid_domain: Missing[bool] = Field(default=UNSET) + is_apex_domain: Missing[bool] = Field(default=UNSET) + should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( + default=UNSET + ) + is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) + is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_pages_domain: Missing[bool] = Field(default=UNSET) + is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid: Missing[bool] = Field(default=UNSET) + reason: Missing[Union[str, None]] = Field(default=UNSET) + responds_to_https: Missing[bool] = Field(default=UNSET) + enforces_https: Missing[bool] = Field(default=UNSET) + https_error: Missing[Union[str, None]] = Field(default=UNSET) + is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) + caa_error: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(PullRequestReviewRequest) +model_rebuild(PagesHealthCheck) +model_rebuild(PagesHealthCheckPropDomain) +model_rebuild(PagesHealthCheckPropAltDomain) -__all__ = ("PullRequestReviewRequest",) +__all__ = ( + "PagesHealthCheck", + "PagesHealthCheckPropAltDomain", + "PagesHealthCheckPropDomain", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0327.py b/githubkit/versions/v2022_11_28/models/group_0327.py index 5efad26e4..bf1f4951f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0327.py +++ b/githubkit/versions/v2022_11_28/models/group_0327.py @@ -18,29 +18,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser - - -class PullRequestReview(GitHubModel): - """Pull Request Review - - Pull Request Reviews are reviews on pull requests. +from .group_0003 import SimpleUser +from .group_0039 import Milestone +from .group_0086 import TeamSimple +from .group_0248 import AutoMerge +from .group_0328 import PullRequestPropLabelsItems +from .group_0329 import PullRequestPropBase, PullRequestPropHead +from .group_0330 import PullRequestPropLinks + + +class PullRequest(GitHubModel): + """Pull Request + + Pull requests let you tell others about changes you've pushed to a repository on + GitHub. Once a pull request is sent, interested parties can review the set of + changes, discuss potential modifications, and even push follow-up commits if + necessary. """ - id: int = Field(description="Unique identifier of the review") + url: str = Field() + id: int = Field() node_id: str = Field() - user: Union[None, SimpleUser] = Field() - body: str = Field(description="The text of the review.") - state: str = Field() html_url: str = Field() - pull_request_url: str = Field() - links: PullRequestReviewPropLinks = Field(alias="_links") - submitted_at: Missing[datetime] = Field(default=UNSET) - commit_id: Union[str, None] = Field( - description="A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`." + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." ) - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: list[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -54,35 +86,29 @@ class PullRequestReview(GitHubModel): title="author_association", description="How the author is associated with the repository.", ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) + merged: bool = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." + ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() -class PullRequestReviewPropLinks(GitHubModel): - """PullRequestReviewPropLinks""" - - html: PullRequestReviewPropLinksPropHtml = Field() - pull_request: PullRequestReviewPropLinksPropPullRequest = Field() - - -class PullRequestReviewPropLinksPropHtml(GitHubModel): - """PullRequestReviewPropLinksPropHtml""" - - href: str = Field() - - -class PullRequestReviewPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewPropLinksPropPullRequest""" - - href: str = Field() - - -model_rebuild(PullRequestReview) -model_rebuild(PullRequestReviewPropLinks) -model_rebuild(PullRequestReviewPropLinksPropHtml) -model_rebuild(PullRequestReviewPropLinksPropPullRequest) +model_rebuild(PullRequest) -__all__ = ( - "PullRequestReview", - "PullRequestReviewPropLinks", - "PullRequestReviewPropLinksPropHtml", - "PullRequestReviewPropLinksPropPullRequest", -) +__all__ = ("PullRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0328.py b/githubkit/versions/v2022_11_28/models/group_0328.py index 7100371ff..cf1d160e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0328.py +++ b/githubkit/versions/v2022_11_28/models/group_0328.py @@ -9,86 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0039 import ReactionRollup -from .group_0329 import ReviewCommentPropLinks +class PullRequestPropLabelsItems(GitHubModel): + """PullRequestPropLabelsItems""" -class ReviewComment(GitHubModel): - """Legacy Review Comment - - Legacy Review Comment - """ - - url: str = Field() - pull_request_review_id: Union[int, None] = Field() id: int = Field() node_id: str = Field() - diff_hunk: str = Field() - path: str = Field() - position: Union[int, None] = Field() - original_position: int = Field() - commit_id: str = Field() - original_commit_id: str = Field() - in_reply_to_id: Missing[int] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - body: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - html_url: str = Field() - pull_request_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - links: ReviewCommentPropLinks = Field(alias="_links") - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - original_line: Missing[int] = Field( - default=UNSET, - description="The original line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - original_start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The original first line of the range for a multi-line comment.", - ) + url: str = Field() + name: str = Field() + description: Union[str, None] = Field() + color: str = Field() + default: bool = Field() -model_rebuild(ReviewComment) +model_rebuild(PullRequestPropLabelsItems) -__all__ = ("ReviewComment",) +__all__ = ("PullRequestPropLabelsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0329.py b/githubkit/versions/v2022_11_28/models/group_0329.py index a5fb556b1..33f91d783 100644 --- a/githubkit/versions/v2022_11_28/models/group_0329.py +++ b/githubkit/versions/v2022_11_28/models/group_0329.py @@ -9,21 +9,40 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0241 import Link +from .group_0003 import SimpleUser +from .group_0020 import Repository + + +class PullRequestPropHead(GitHubModel): + """PullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") + sha: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class ReviewCommentPropLinks(GitHubModel): - """ReviewCommentPropLinks""" +class PullRequestPropBase(GitHubModel): + """PullRequestPropBase""" - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - pull_request: Link = Field(title="Link", description="Hypermedia Link") + label: str = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") + sha: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(ReviewCommentPropLinks) +model_rebuild(PullRequestPropHead) +model_rebuild(PullRequestPropBase) -__all__ = ("ReviewCommentPropLinks",) +__all__ = ( + "PullRequestPropBase", + "PullRequestPropHead", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0330.py b/githubkit/versions/v2022_11_28/models/group_0330.py index 0b599e467..076f4a634 100644 --- a/githubkit/versions/v2022_11_28/models/group_0330.py +++ b/githubkit/versions/v2022_11_28/models/group_0330.py @@ -9,39 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser - +from .group_0247 import Link -class ReleaseAsset(GitHubModel): - """Release Asset - Data related to a release. - """ +class PullRequestPropLinks(GitHubModel): + """PullRequestPropLinks""" - url: str = Field() - browser_download_url: str = Field() - id: int = Field() - node_id: str = Field() - name: str = Field(description="The file name of the asset.") - label: Union[str, None] = Field() - state: Literal["uploaded", "open"] = Field( - description="State of the release asset." - ) - content_type: str = Field() - size: int = Field() - download_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - uploader: Union[None, SimpleUser] = Field() + comments: Link = Field(title="Link", description="Hypermedia Link") + commits: Link = Field(title="Link", description="Hypermedia Link") + statuses: Link = Field(title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + issue: Link = Field(title="Link", description="Hypermedia Link") + review_comments: Link = Field(title="Link", description="Hypermedia Link") + review_comment: Link = Field(title="Link", description="Hypermedia Link") + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") -model_rebuild(ReleaseAsset) +model_rebuild(PullRequestPropLinks) -__all__ = ("ReleaseAsset",) +__all__ = ("PullRequestPropLinks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0331.py b/githubkit/versions/v2022_11_28/models/group_0331.py index a6eeab1e5..da433b3b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0331.py +++ b/githubkit/versions/v2022_11_28/models/group_0331.py @@ -9,59 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0039 import ReactionRollup -from .group_0330 import ReleaseAsset -class Release(GitHubModel): - """Release +class PullRequestMergeResult(GitHubModel): + """Pull Request Merge Result - A release. + Pull Request Merge Result """ - url: str = Field() - html_url: str = Field() - assets_url: str = Field() - upload_url: str = Field() - tarball_url: Union[str, None] = Field() - zipball_url: Union[str, None] = Field() - id: int = Field() - node_id: str = Field() - tag_name: str = Field(description="The name of the tag.") - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - name: Union[str, None] = Field() - body: Missing[Union[str, None]] = Field(default=UNSET) - draft: bool = Field( - description="true to create a draft (unpublished) release, false to create a published one." - ) - prerelease: bool = Field( - description="Whether to identify the release as a prerelease or a full release." - ) - created_at: datetime = Field() - published_at: Union[datetime, None] = Field() - author: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assets: list[ReleaseAsset] = Field() - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - mentions_count: Missing[int] = Field(default=UNSET) - discussion_url: Missing[str] = Field( - default=UNSET, description="The URL of the release discussion." - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + sha: str = Field() + merged: bool = Field() + message: str = Field() -model_rebuild(Release) +model_rebuild(PullRequestMergeResult) -__all__ = ("Release",) +__all__ = ("PullRequestMergeResult",) diff --git a/githubkit/versions/v2022_11_28/models/group_0332.py b/githubkit/versions/v2022_11_28/models/group_0332.py index e30bd3be3..7d062372a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0332.py +++ b/githubkit/versions/v2022_11_28/models/group_0332.py @@ -13,19 +13,20 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser +from .group_0087 import Team -class ReleaseNotesContent(GitHubModel): - """Generated Release Notes Content - Generated name and body describing a release +class PullRequestReviewRequest(GitHubModel): + """Pull Request Review Request + + Pull Request Review Request """ - name: str = Field(description="The generated name of the release") - body: str = Field( - description="The generated body describing the contents of the release supporting markdown formatting" - ) + users: list[SimpleUser] = Field() + teams: list[Team] = Field() -model_rebuild(ReleaseNotesContent) +model_rebuild(PullRequestReviewRequest) -__all__ = ("ReleaseNotesContent",) +__all__ = ("PullRequestReviewRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0333.py b/githubkit/versions/v2022_11_28/models/group_0333.py index 0e31221c5..d7938b075 100644 --- a/githubkit/versions/v2022_11_28/models/group_0333.py +++ b/githubkit/versions/v2022_11_28/models/group_0333.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,27 +18,71 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class RepositoryRuleRulesetInfo(GitHubModel): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. +class PullRequestReview(GitHubModel): + """Pull Request Review + + Pull Request Reviews are reviews on pull requests. """ - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + user: Union[None, SimpleUser] = Field() + body: str = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: PullRequestReviewPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: Union[str, None] = Field( + description="A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`." ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", ) -model_rebuild(RepositoryRuleRulesetInfo) +class PullRequestReviewPropLinks(GitHubModel): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtml = Field() + pull_request: PullRequestReviewPropLinksPropPullRequest = Field() + + +class PullRequestReviewPropLinksPropHtml(GitHubModel): + """PullRequestReviewPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str = Field() + + +model_rebuild(PullRequestReview) +model_rebuild(PullRequestReviewPropLinks) +model_rebuild(PullRequestReviewPropLinksPropHtml) +model_rebuild(PullRequestReviewPropLinksPropPullRequest) -__all__ = ("RepositoryRuleRulesetInfo",) +__all__ = ( + "PullRequestReview", + "PullRequestReviewPropLinks", + "PullRequestReviewPropLinksPropHtml", + "PullRequestReviewPropLinksPropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0334.py b/githubkit/versions/v2022_11_28/models/group_0334.py index 7929bea32..070d92fe2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0334.py +++ b/githubkit/versions/v2022_11_28/models/group_0334.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,24 +18,77 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0040 import ReactionRollup +from .group_0335 import ReviewCommentPropLinks -class RepositoryRuleDetailedOneof0(GitHubModel): - """RepositoryRuleDetailedOneof0""" - type: Literal["creation"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( +class ReviewComment(GitHubModel): + """Legacy Review Comment + + Legacy Review Comment + """ + + url: str = Field() + pull_request_review_id: Union[int, None] = Field() + id: int = Field() + node_id: str = Field() + diff_hunk: str = Field() + path: str = Field() + position: Union[int, None] = Field() + original_position: int = Field() + commit_id: str = Field() + original_commit_id: str = Field() + in_reply_to_id: Missing[int] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + body: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + html_url: str = Field() + pull_request_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + links: ReviewCommentPropLinks = Field(alias="_links") + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( default=UNSET, - description="The type of source for the ruleset that includes this rule.", + description="The side of the first line of the range for a multi-line comment.", ) - ruleset_source: Missing[str] = Field( + line: Missing[int] = Field( default=UNSET, - description="The name of the source of the ruleset that includes this rule.", + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + original_line: Missing[int] = Field( + default=UNSET, + description="The original line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + original_start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The original first line of the range for a multi-line comment.", ) -model_rebuild(RepositoryRuleDetailedOneof0) +model_rebuild(ReviewComment) -__all__ = ("RepositoryRuleDetailedOneof0",) +__all__ = ("ReviewComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0335.py b/githubkit/versions/v2022_11_28/models/group_0335.py index d9c9bf943..291ea380b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0335.py +++ b/githubkit/versions/v2022_11_28/models/group_0335.py @@ -9,35 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0127 import RepositoryRuleUpdatePropParameters +from .group_0247 import Link -class RepositoryRuleDetailedOneof1(GitHubModel): - """RepositoryRuleDetailedOneof1""" +class ReviewCommentPropLinks(GitHubModel): + """ReviewCommentPropLinks""" - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." - ) + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + pull_request: Link = Field(title="Link", description="Hypermedia Link") -model_rebuild(RepositoryRuleDetailedOneof1) +model_rebuild(ReviewCommentPropLinks) -__all__ = ("RepositoryRuleDetailedOneof1",) +__all__ = ("ReviewCommentPropLinks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0336.py b/githubkit/versions/v2022_11_28/models/group_0336.py index ff93ecfb1..276401f0d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0336.py +++ b/githubkit/versions/v2022_11_28/models/group_0336.py @@ -9,32 +9,39 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class RepositoryRuleDetailedOneof2(GitHubModel): - """RepositoryRuleDetailedOneof2""" - type: Literal["deletion"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." +class ReleaseAsset(GitHubModel): + """Release Asset + + Data related to a release. + """ + + url: str = Field() + browser_download_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="The file name of the asset.") + label: Union[str, None] = Field() + state: Literal["uploaded", "open"] = Field( + description="State of the release asset." ) + content_type: str = Field() + size: int = Field() + download_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + uploader: Union[None, SimpleUser] = Field() -model_rebuild(RepositoryRuleDetailedOneof2) +model_rebuild(ReleaseAsset) -__all__ = ("RepositoryRuleDetailedOneof2",) +__all__ = ("ReleaseAsset",) diff --git a/githubkit/versions/v2022_11_28/models/group_0337.py b/githubkit/versions/v2022_11_28/models/group_0337.py index 7db86577f..7ee0b7183 100644 --- a/githubkit/versions/v2022_11_28/models/group_0337.py +++ b/githubkit/versions/v2022_11_28/models/group_0337.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,24 +18,50 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0040 import ReactionRollup +from .group_0336 import ReleaseAsset -class RepositoryRuleDetailedOneof3(GitHubModel): - """RepositoryRuleDetailedOneof3""" - type: Literal["required_linear_history"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", +class Release(GitHubModel): + """Release + + A release. + """ + + url: str = Field() + html_url: str = Field() + assets_url: str = Field() + upload_url: str = Field() + tarball_url: Union[str, None] = Field() + zipball_url: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + tag_name: str = Field(description="The name of the tag.") + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + name: Union[str, None] = Field() + body: Missing[Union[str, None]] = Field(default=UNSET) + draft: bool = Field( + description="true to create a draft (unpublished) release, false to create a published one." ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", + prerelease: bool = Field( + description="Whether to identify the release as a prerelease or a full release." ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + created_at: datetime = Field() + published_at: Union[datetime, None] = Field() + author: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assets: list[ReleaseAsset] = Field() + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + mentions_count: Missing[int] = Field(default=UNSET) + discussion_url: Missing[str] = Field( + default=UNSET, description="The URL of the release discussion." ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(RepositoryRuleDetailedOneof3) +model_rebuild(Release) -__all__ = ("RepositoryRuleDetailedOneof3",) +__all__ = ("Release",) diff --git a/githubkit/versions/v2022_11_28/models/group_0338.py b/githubkit/versions/v2022_11_28/models/group_0338.py index ef5681780..e30bd3be3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0338.py +++ b/githubkit/versions/v2022_11_28/models/group_0338.py @@ -9,35 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0130 import RepositoryRuleMergeQueuePropParameters +class ReleaseNotesContent(GitHubModel): + """Generated Release Notes Content -class RepositoryRuleDetailedOneof4(GitHubModel): - """RepositoryRuleDetailedOneof4""" + Generated name and body describing a release + """ - type: Literal["merge_queue"] = Field() - parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + name: str = Field(description="The generated name of the release") + body: str = Field( + description="The generated body describing the contents of the release supporting markdown formatting" ) -model_rebuild(RepositoryRuleDetailedOneof4) +model_rebuild(ReleaseNotesContent) -__all__ = ("RepositoryRuleDetailedOneof4",) +__all__ = ("ReleaseNotesContent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0339.py b/githubkit/versions/v2022_11_28/models/group_0339.py index b319878e4..0e31221c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0339.py +++ b/githubkit/versions/v2022_11_28/models/group_0339.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0132 import RepositoryRuleRequiredDeploymentsPropParameters +class RepositoryRuleRulesetInfo(GitHubModel): + """repository ruleset data for rule -class RepositoryRuleDetailedOneof5(GitHubModel): - """RepositoryRuleDetailedOneof5""" + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET - ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof5(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof5) +model_rebuild(RepositoryRuleRulesetInfo) -__all__ = ("RepositoryRuleDetailedOneof5",) +__all__ = ("RepositoryRuleRulesetInfo",) diff --git a/githubkit/versions/v2022_11_28/models/group_0340.py b/githubkit/versions/v2022_11_28/models/group_0340.py index e9b15495d..7929bea32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0340.py +++ b/githubkit/versions/v2022_11_28/models/group_0340.py @@ -18,10 +18,10 @@ from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof6(GitHubModel): - """RepositoryRuleDetailedOneof6""" +class RepositoryRuleDetailedOneof0(GitHubModel): + """RepositoryRuleDetailedOneof0""" - type: Literal["required_signatures"] = Field() + type: Literal["creation"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +35,6 @@ class RepositoryRuleDetailedOneof6(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof6) +model_rebuild(RepositoryRuleDetailedOneof0) -__all__ = ("RepositoryRuleDetailedOneof6",) +__all__ = ("RepositoryRuleDetailedOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0341.py b/githubkit/versions/v2022_11_28/models/group_0341.py index a0b16c088..264a6d28a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0341.py +++ b/githubkit/versions/v2022_11_28/models/group_0341.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0135 import RepositoryRulePullRequestPropParameters +from .group_0132 import RepositoryRuleUpdatePropParameters -class RepositoryRuleDetailedOneof7(GitHubModel): - """RepositoryRuleDetailedOneof7""" +class RepositoryRuleDetailedOneof1(GitHubModel): + """RepositoryRuleDetailedOneof1""" - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) + type: Literal["update"] = Field() + parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +38,6 @@ class RepositoryRuleDetailedOneof7(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof7) +model_rebuild(RepositoryRuleDetailedOneof1) -__all__ = ("RepositoryRuleDetailedOneof7",) +__all__ = ("RepositoryRuleDetailedOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0342.py b/githubkit/versions/v2022_11_28/models/group_0342.py index 0e7a764f7..ff93ecfb1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0342.py +++ b/githubkit/versions/v2022_11_28/models/group_0342.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0137 import RepositoryRuleRequiredStatusChecksPropParameters +class RepositoryRuleDetailedOneof2(GitHubModel): + """RepositoryRuleDetailedOneof2""" -class RepositoryRuleDetailedOneof8(GitHubModel): - """RepositoryRuleDetailedOneof8""" - - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( - default=UNSET - ) + type: Literal["deletion"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof8(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof8) +model_rebuild(RepositoryRuleDetailedOneof2) -__all__ = ("RepositoryRuleDetailedOneof8",) +__all__ = ("RepositoryRuleDetailedOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0343.py b/githubkit/versions/v2022_11_28/models/group_0343.py index 3f83e7bc3..7db86577f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0343.py +++ b/githubkit/versions/v2022_11_28/models/group_0343.py @@ -18,10 +18,10 @@ from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof9(GitHubModel): - """RepositoryRuleDetailedOneof9""" +class RepositoryRuleDetailedOneof3(GitHubModel): + """RepositoryRuleDetailedOneof3""" - type: Literal["non_fast_forward"] = Field() + type: Literal["required_linear_history"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +35,6 @@ class RepositoryRuleDetailedOneof9(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof9) +model_rebuild(RepositoryRuleDetailedOneof3) -__all__ = ("RepositoryRuleDetailedOneof9",) +__all__ = ("RepositoryRuleDetailedOneof3",) diff --git a/githubkit/versions/v2022_11_28/models/group_0344.py b/githubkit/versions/v2022_11_28/models/group_0344.py index fe2168093..6e060d700 100644 --- a/githubkit/versions/v2022_11_28/models/group_0344.py +++ b/githubkit/versions/v2022_11_28/models/group_0344.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0139 import RepositoryRuleCommitMessagePatternPropParameters +from .group_0135 import RepositoryRuleMergeQueuePropParameters -class RepositoryRuleDetailedOneof10(GitHubModel): - """RepositoryRuleDetailedOneof10""" +class RepositoryRuleDetailedOneof4(GitHubModel): + """RepositoryRuleDetailedOneof4""" - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["merge_queue"] = Field() + parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof10(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof10) +model_rebuild(RepositoryRuleDetailedOneof4) -__all__ = ("RepositoryRuleDetailedOneof10",) +__all__ = ("RepositoryRuleDetailedOneof4",) diff --git a/githubkit/versions/v2022_11_28/models/group_0345.py b/githubkit/versions/v2022_11_28/models/group_0345.py index b5bce938d..8d74b8f82 100644 --- a/githubkit/versions/v2022_11_28/models/group_0345.py +++ b/githubkit/versions/v2022_11_28/models/group_0345.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0141 import RepositoryRuleCommitAuthorEmailPatternPropParameters +from .group_0137 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleDetailedOneof11(GitHubModel): - """RepositoryRuleDetailedOneof11""" +class RepositoryRuleDetailedOneof5(GitHubModel): + """RepositoryRuleDetailedOneof5""" - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( + type: Literal["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof11(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof11) +model_rebuild(RepositoryRuleDetailedOneof5) -__all__ = ("RepositoryRuleDetailedOneof11",) +__all__ = ("RepositoryRuleDetailedOneof5",) diff --git a/githubkit/versions/v2022_11_28/models/group_0346.py b/githubkit/versions/v2022_11_28/models/group_0346.py index 097117919..e9b15495d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0346.py +++ b/githubkit/versions/v2022_11_28/models/group_0346.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0143 import RepositoryRuleCommitterEmailPatternPropParameters +class RepositoryRuleDetailedOneof6(GitHubModel): + """RepositoryRuleDetailedOneof6""" -class RepositoryRuleDetailedOneof12(GitHubModel): - """RepositoryRuleDetailedOneof12""" - - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( - default=UNSET - ) + type: Literal["required_signatures"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof12(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof12) +model_rebuild(RepositoryRuleDetailedOneof6) -__all__ = ("RepositoryRuleDetailedOneof12",) +__all__ = ("RepositoryRuleDetailedOneof6",) diff --git a/githubkit/versions/v2022_11_28/models/group_0347.py b/githubkit/versions/v2022_11_28/models/group_0347.py index c99e73fa9..8c2e084bd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0347.py +++ b/githubkit/versions/v2022_11_28/models/group_0347.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0145 import RepositoryRuleBranchNamePatternPropParameters +from .group_0140 import RepositoryRulePullRequestPropParameters -class RepositoryRuleDetailedOneof13(GitHubModel): - """RepositoryRuleDetailedOneof13""" +class RepositoryRuleDetailedOneof7(GitHubModel): + """RepositoryRuleDetailedOneof7""" - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof13(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof13) +model_rebuild(RepositoryRuleDetailedOneof7) -__all__ = ("RepositoryRuleDetailedOneof13",) +__all__ = ("RepositoryRuleDetailedOneof7",) diff --git a/githubkit/versions/v2022_11_28/models/group_0348.py b/githubkit/versions/v2022_11_28/models/group_0348.py index 6408c0c85..9cd7d5eab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0348.py +++ b/githubkit/versions/v2022_11_28/models/group_0348.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0147 import RepositoryRuleTagNamePatternPropParameters +from .group_0142 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleDetailedOneof14(GitHubModel): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof8(GitHubModel): + """RepositoryRuleDetailedOneof8""" - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + type: Literal["required_status_checks"] = Field() + parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof14(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof14) +model_rebuild(RepositoryRuleDetailedOneof8) -__all__ = ("RepositoryRuleDetailedOneof14",) +__all__ = ("RepositoryRuleDetailedOneof8",) diff --git a/githubkit/versions/v2022_11_28/models/group_0349.py b/githubkit/versions/v2022_11_28/models/group_0349.py index b352e9cf1..3f83e7bc3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0349.py +++ b/githubkit/versions/v2022_11_28/models/group_0349.py @@ -17,14 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import RepositoryRuleWorkflowsPropParameters +class RepositoryRuleDetailedOneof9(GitHubModel): + """RepositoryRuleDetailedOneof9""" -class RepositoryRuleDetailedOneof15(GitHubModel): - """RepositoryRuleDetailedOneof15""" - - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + type: Literal["non_fast_forward"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +35,6 @@ class RepositoryRuleDetailedOneof15(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof15) +model_rebuild(RepositoryRuleDetailedOneof9) -__all__ = ("RepositoryRuleDetailedOneof15",) +__all__ = ("RepositoryRuleDetailedOneof9",) diff --git a/githubkit/versions/v2022_11_28/models/group_0350.py b/githubkit/versions/v2022_11_28/models/group_0350.py index 7e0e2ac3e..b7f95ee8b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0350.py +++ b/githubkit/versions/v2022_11_28/models/group_0350.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0152 import RepositoryRuleCodeScanningPropParameters +from .group_0144 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleDetailedOneof16(GitHubModel): - """RepositoryRuleDetailedOneof16""" +class RepositoryRuleDetailedOneof10(GitHubModel): + """RepositoryRuleDetailedOneof10""" - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof16(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof16) +model_rebuild(RepositoryRuleDetailedOneof10) -__all__ = ("RepositoryRuleDetailedOneof16",) +__all__ = ("RepositoryRuleDetailedOneof10",) diff --git a/githubkit/versions/v2022_11_28/models/group_0351.py b/githubkit/versions/v2022_11_28/models/group_0351.py index a4839b509..699a49939 100644 --- a/githubkit/versions/v2022_11_28/models/group_0351.py +++ b/githubkit/versions/v2022_11_28/models/group_0351.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,93 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0146 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class SecretScanningAlert(GitHubModel): - """SecretScanningAlert""" +class RepositoryRuleDetailedOneof11(GitHubModel): + """RepositoryRuleDetailedOneof11""" - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." - ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - secret: Missing[str] = Field( - default=UNSET, description="The secret that was detected." - ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", - ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( default=UNSET ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="An optional comment when reviewing a push protection bypass.", + description="The type of source for the ruleset that includes this rule.", ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="An optional comment when requesting a push protection bypass.", - ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." + description="The name of the source of the ruleset that includes this rule.", ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." - ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the detected secret was publicly leaked." - ) - multi_repo: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether the detected secret was found in multiple repositories under the same organization or enterprise.", + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningAlert) +model_rebuild(RepositoryRuleDetailedOneof11) -__all__ = ("SecretScanningAlert",) +__all__ = ("RepositoryRuleDetailedOneof11",) diff --git a/githubkit/versions/v2022_11_28/models/group_0352.py b/githubkit/versions/v2022_11_28/models/group_0352.py index fa37297f6..d57402383 100644 --- a/githubkit/versions/v2022_11_28/models/group_0352.py +++ b/githubkit/versions/v2022_11_28/models/group_0352.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,22 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0148 import RepositoryRuleCommitterEmailPatternPropParameters -class SecretScanningPushProtectionBypass(GitHubModel): - """SecretScanningPushProtectionBypass""" - reason: Missing[Literal["false_positive", "used_in_tests", "will_fix_later"]] = ( - Field(default=UNSET, description="The reason for bypassing push protection.") +class RepositoryRuleDetailedOneof12(GitHubModel): + """RepositoryRuleDetailedOneof12""" + + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + default=UNSET + ) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( + default=UNSET, + description="The type of source for the ruleset that includes this rule.", ) - expire_at: Missing[Union[datetime, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The name of the source of the ruleset that includes this rule.", ) - token_type: Missing[str] = Field( - default=UNSET, description="The token type this bypass is for." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningPushProtectionBypass) +model_rebuild(RepositoryRuleDetailedOneof12) -__all__ = ("SecretScanningPushProtectionBypass",) +__all__ = ("RepositoryRuleDetailedOneof12",) diff --git a/githubkit/versions/v2022_11_28/models/group_0353.py b/githubkit/versions/v2022_11_28/models/group_0353.py index 11ebab9e4..cb526463c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0353.py +++ b/githubkit/versions/v2022_11_28/models/group_0353.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,70 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0150 import RepositoryRuleBranchNamePatternPropParameters -class SecretScanningScanHistory(GitHubModel): - """SecretScanningScanHistory""" - incremental_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) - pattern_update_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) - backfill_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) - custom_pattern_backfill_scans: Missing[ - list[SecretScanningScanHistoryPropCustomPatternBackfillScansItems] - ] = Field(default=UNSET) +class RepositoryRuleDetailedOneof13(GitHubModel): + """RepositoryRuleDetailedOneof13""" - -class SecretScanningScan(GitHubModel): - """SecretScanningScan - - Information on a single scan performed by secret scanning on the repository - """ - - type: Missing[str] = Field(default=UNSET, description="The type of scan") - status: Missing[str] = Field( - default=UNSET, - description='The state of the scan. Either "completed", "running", or "pending"', + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + default=UNSET ) - completed_at: Missing[Union[datetime, None]] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The time that the scan was completed. Empty if the scan is running", + description="The type of source for the ruleset that includes this rule.", ) - started_at: Missing[Union[datetime, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The time that the scan was started. Empty if the scan is pending", + description="The name of the source of the ruleset that includes this rule.", ) - - -class SecretScanningScanHistoryPropCustomPatternBackfillScansItems(GitHubModel): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - - type: Missing[str] = Field(default=UNSET, description="The type of scan") - status: Missing[str] = Field( - default=UNSET, - description='The state of the scan. Either "completed", "running", or "pending"', - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was completed. Empty if the scan is running", - ) - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was started. Empty if the scan is pending", - ) - pattern_name: Missing[str] = Field( - default=UNSET, description="Name of the custom pattern for custom pattern scans" - ) - pattern_scope: Missing[str] = Field( - default=UNSET, - description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningScanHistory) -model_rebuild(SecretScanningScan) -model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItems) +model_rebuild(RepositoryRuleDetailedOneof13) -__all__ = ( - "SecretScanningScan", - "SecretScanningScanHistory", - "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", -) +__all__ = ("RepositoryRuleDetailedOneof13",) diff --git a/githubkit/versions/v2022_11_28/models/group_0354.py b/githubkit/versions/v2022_11_28/models/group_0354.py index 947f5d932..faa6bdd98 100644 --- a/githubkit/versions/v2022_11_28/models/group_0354.py +++ b/githubkit/versions/v2022_11_28/models/group_0354.py @@ -9,25 +9,37 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0152 import RepositoryRuleTagNamePatternPropParameters + -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1(GitHubModel): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" +class RepositoryRuleDetailedOneof14(GitHubModel): + """RepositoryRuleDetailedOneof14""" - pattern_name: Missing[str] = Field( - default=UNSET, description="Name of the custom pattern for custom pattern scans" + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + default=UNSET ) - pattern_scope: Missing[str] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + description="The type of source for the ruleset that includes this rule.", + ) + ruleset_source: Missing[str] = Field( + default=UNSET, + description="The name of the source of the ruleset that includes this rule.", + ) + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1) +model_rebuild(RepositoryRuleDetailedOneof14) -__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1",) +__all__ = ("RepositoryRuleDetailedOneof14",) diff --git a/githubkit/versions/v2022_11_28/models/group_0355.py b/githubkit/versions/v2022_11_28/models/group_0355.py index b09ea6fff..6a5e68c5b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0355.py +++ b/githubkit/versions/v2022_11_28/models/group_0355.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,120 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0155 import RepositoryRuleWorkflowsPropParameters -class RepositoryAdvisoryCreate(GitHubModel): - """RepositoryAdvisoryCreate""" - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: str = Field( - max_length=65535, - description="A detailed description of what the advisory impacts.", - ) - cve_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItems] = Field( - description="A product affected by the vulnerability detailed in a repository security advisory." - ) - cwe_ids: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - credits_: Missing[Union[list[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( - Field( - default=UNSET, - alias="credits", - description="A list of users receiving credit for their participation in the security advisory.", - ) - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - start_private_fork: Missing[bool] = Field( - default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", - ) +class RepositoryRuleDetailedOneof15(GitHubModel): + """RepositoryRuleDetailedOneof15""" - -class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryCreatePropCreditsItems""" - - login: str = Field(description="The username of the user credited.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." - ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The type of source for the ruleset that includes this rule.", ) - patched_versions: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", + description="The name of the source of the ruleset that includes this rule.", ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." - ) - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(RepositoryAdvisoryCreate) -model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryRuleDetailedOneof15) -__all__ = ( - "RepositoryAdvisoryCreate", - "RepositoryAdvisoryCreatePropCreditsItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("RepositoryRuleDetailedOneof15",) diff --git a/githubkit/versions/v2022_11_28/models/group_0356.py b/githubkit/versions/v2022_11_28/models/group_0356.py index db0858ff6..ed158dbce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0356.py +++ b/githubkit/versions/v2022_11_28/models/group_0356.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,93 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0157 import RepositoryRuleCodeScanningPropParameters -class PrivateVulnerabilityReportCreate(GitHubModel): - """PrivateVulnerabilityReportCreate""" - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: str = Field( - max_length=65535, - description="A detailed description of what the advisory impacts.", - ) - vulnerabilities: Missing[ - Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItems], None] - ] = Field( - default=UNSET, - description="An array of products affected by the vulnerability detailed in a repository security advisory.", - ) - cwe_ids: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - start_private_fork: Missing[bool] = Field( - default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", - ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItems(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" +class RepositoryRuleDetailedOneof16(GitHubModel): + """RepositoryRuleDetailedOneof16""" - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( - Field(description="The name of the package affected by the vulnerability.") - ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The type of source for the ruleset that includes this rule.", ) - patched_versions: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." + description="The name of the source of the ruleset that includes this rule.", ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(PrivateVulnerabilityReportCreate) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryRuleDetailedOneof16) -__all__ = ( - "PrivateVulnerabilityReportCreate", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("RepositoryRuleDetailedOneof16",) diff --git a/githubkit/versions/v2022_11_28/models/group_0357.py b/githubkit/versions/v2022_11_28/models/group_0357.py index b379d895d..1bc194f53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0357.py +++ b/githubkit/versions/v2022_11_28/models/group_0357.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,131 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class RepositoryAdvisoryUpdate(GitHubModel): - """RepositoryAdvisoryUpdate""" - summary: Missing[str] = Field( - max_length=1024, default=UNSET, description="A short summary of the advisory." +class SecretScanningAlert(GitHubModel): + """SecretScanningAlert""" + + number: Missing[int] = Field( + default=UNSET, description="The security alert number." ) - description: Missing[str] = Field( - max_length=65535, + created_at: Missing[datetime] = Field( default=UNSET, - description="A detailed description of what the advisory impacts.", - ) - cve_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - vulnerabilities: Missing[list[RepositoryAdvisoryUpdatePropVulnerabilitiesItems]] = ( - Field( - default=UNSET, - description="A product affected by the vulnerability detailed in a repository security advisory.", - ) - ) - cwe_ids: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - credits_: Missing[Union[list[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( - Field( - default=UNSET, - alias="credits", - description="A list of users receiving credit for their participation in the security advisory.", - ) - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + description="The REST API URL of the code locations for this alert.", ) - state: Missing[Literal["published", "closed", "draft"]] = Field( - default=UNSET, description="The state of the advisory." + state: Missing[Literal["open", "resolved"]] = Field( + default=UNSET, + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", ) - collaborating_users: Missing[Union[list[str], None]] = Field( + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( default=UNSET, - description="A list of usernames who have been granted write access to the advisory.", + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - collaborating_teams: Missing[Union[list[str], None]] = Field( + resolved_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="A list of team slugs which have been granted write access to the advisory.", + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - - -class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryUpdatePropCreditsItems""" - - login: str = Field(description="The username of the user credited.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + secret: Missing[str] = Field( + default=UNSET, description="The secret that was detected." ) - patched_versions: Missing[Union[str, None]] = Field( + push_protection_bypassed: Missing[Union[bool, None]] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", + description="Whether push protection was bypassed for the detected secret.", ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + default=UNSET + ) + push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when reviewing a push protection bypass.", + ) + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when requesting a push protection bypass.", + ) + push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The URL to a push protection bypass request." + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) + publicly_leaked: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether the detected secret was publicly leaked." + ) + multi_repo: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether the detected secret was found in multiple repositories under the same organization or enterprise.", ) -model_rebuild(RepositoryAdvisoryUpdate) -model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) +model_rebuild(SecretScanningAlert) -__all__ = ( - "RepositoryAdvisoryUpdate", - "RepositoryAdvisoryUpdatePropCreditsItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("SecretScanningAlert",) diff --git a/githubkit/versions/v2022_11_28/models/group_0358.py b/githubkit/versions/v2022_11_28/models/group_0358.py index c3f111958..fa37297f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0358.py +++ b/githubkit/versions/v2022_11_28/models/group_0358.py @@ -10,25 +10,30 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class SecretScanningPushProtectionBypass(GitHubModel): + """SecretScanningPushProtectionBypass""" -class Stargazer(GitHubModel): - """Stargazer + reason: Missing[Literal["false_positive", "used_in_tests", "will_fix_later"]] = ( + Field(default=UNSET, description="The reason for bypassing push protection.") + ) + expire_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + token_type: Missing[str] = Field( + default=UNSET, description="The token type this bypass is for." + ) - Stargazer - """ - starred_at: datetime = Field() - user: Union[None, SimpleUser] = Field() +model_rebuild(SecretScanningPushProtectionBypass) - -model_rebuild(Stargazer) - -__all__ = ("Stargazer",) +__all__ = ("SecretScanningPushProtectionBypass",) diff --git a/githubkit/versions/v2022_11_28/models/group_0359.py b/githubkit/versions/v2022_11_28/models/group_0359.py index 9fc28af36..11ebab9e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0359.py +++ b/githubkit/versions/v2022_11_28/models/group_0359.py @@ -9,22 +9,79 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class SecretScanningScanHistory(GitHubModel): + """SecretScanningScanHistory""" + + incremental_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) + pattern_update_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) + backfill_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) + custom_pattern_backfill_scans: Missing[ + list[SecretScanningScanHistoryPropCustomPatternBackfillScansItems] + ] = Field(default=UNSET) -class CommitActivity(GitHubModel): - """Commit Activity +class SecretScanningScan(GitHubModel): + """SecretScanningScan - Commit Activity + Information on a single scan performed by secret scanning on the repository """ - days: list[int] = Field() - total: int = Field() - week: int = Field() + type: Missing[str] = Field(default=UNSET, description="The type of scan") + status: Missing[str] = Field( + default=UNSET, + description='The state of the scan. Either "completed", "running", or "pending"', + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was completed. Empty if the scan is running", + ) + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was started. Empty if the scan is pending", + ) + + +class SecretScanningScanHistoryPropCustomPatternBackfillScansItems(GitHubModel): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" + + type: Missing[str] = Field(default=UNSET, description="The type of scan") + status: Missing[str] = Field( + default=UNSET, + description='The state of the scan. Either "completed", "running", or "pending"', + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was completed. Empty if the scan is running", + ) + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was started. Empty if the scan is pending", + ) + pattern_name: Missing[str] = Field( + default=UNSET, description="Name of the custom pattern for custom pattern scans" + ) + pattern_scope: Missing[str] = Field( + default=UNSET, + description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + ) -model_rebuild(CommitActivity) +model_rebuild(SecretScanningScanHistory) +model_rebuild(SecretScanningScan) +model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItems) -__all__ = ("CommitActivity",) +__all__ = ( + "SecretScanningScan", + "SecretScanningScanHistory", + "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0360.py b/githubkit/versions/v2022_11_28/models/group_0360.py index 5e19dff98..947f5d932 100644 --- a/githubkit/versions/v2022_11_28/models/group_0360.py +++ b/githubkit/versions/v2022_11_28/models/group_0360.py @@ -9,41 +9,25 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser - - -class ContributorActivity(GitHubModel): - """Contributor Activity - - Contributor Activity - """ - - author: Union[None, SimpleUser] = Field() - total: int = Field() - weeks: list[ContributorActivityPropWeeksItems] = Field() - -class ContributorActivityPropWeeksItems(GitHubModel): - """ContributorActivityPropWeeksItems""" +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1(GitHubModel): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - w: Missing[int] = Field(default=UNSET) - a: Missing[int] = Field(default=UNSET) - d: Missing[int] = Field(default=UNSET) - c: Missing[int] = Field(default=UNSET) + pattern_name: Missing[str] = Field( + default=UNSET, description="Name of the custom pattern for custom pattern scans" + ) + pattern_scope: Missing[str] = Field( + default=UNSET, + description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + ) -model_rebuild(ContributorActivity) -model_rebuild(ContributorActivityPropWeeksItems) +model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1) -__all__ = ( - "ContributorActivity", - "ContributorActivityPropWeeksItems", -) +__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0361.py b/githubkit/versions/v2022_11_28/models/group_0361.py index 43efe1baa..b09ea6fff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0361.py +++ b/githubkit/versions/v2022_11_28/models/group_0361.py @@ -9,18 +9,128 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class RepositoryAdvisoryCreate(GitHubModel): + """RepositoryAdvisoryCreate""" + + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: str = Field( + max_length=65535, + description="A detailed description of what the advisory impacts.", + ) + cve_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItems] = Field( + description="A product affected by the vulnerability detailed in a repository security advisory." + ) + cwe_ids: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + credits_: Missing[Union[list[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( + Field( + default=UNSET, + alias="credits", + description="A list of users receiving credit for their participation in the security advisory.", + ) + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + start_private_fork: Missing[bool] = Field( + default=UNSET, + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + ) + + +class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryCreatePropCreditsItems""" + + login: str = Field(description="The username of the user credited.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[list[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage -class ParticipationStats(GitHubModel): - """Participation Stats""" + The name of the package affected by the vulnerability. + """ - all_: list[int] = Field(alias="all") - owner: list[int] = Field() + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." + ) -model_rebuild(ParticipationStats) +model_rebuild(RepositoryAdvisoryCreate) +model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) -__all__ = ("ParticipationStats",) +__all__ = ( + "RepositoryAdvisoryCreate", + "RepositoryAdvisoryCreatePropCreditsItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0362.py b/githubkit/versions/v2022_11_28/models/group_0362.py index 146a849ce..db0858ff6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0362.py +++ b/githubkit/versions/v2022_11_28/models/group_0362.py @@ -9,32 +9,101 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositorySubscription(GitHubModel): - """Repository Invitation +class PrivateVulnerabilityReportCreate(GitHubModel): + """PrivateVulnerabilityReportCreate""" + + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: str = Field( + max_length=65535, + description="A detailed description of what the advisory impacts.", + ) + vulnerabilities: Missing[ + Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItems], None] + ] = Field( + default=UNSET, + description="An array of products affected by the vulnerability detailed in a repository security advisory.", + ) + cwe_ids: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + start_private_fork: Missing[bool] = Field( + default=UNSET, + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + ) - Repository invitations let you manage who you collaborate with. - """ - subscribed: bool = Field( - description="Determines if notifications should be received from this repository." +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItems(GitHubModel): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" + + package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( + Field(description="The name of the package affected by the vulnerability.") + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", ) - ignored: bool = Field( - description="Determines if all notifications should be blocked from this repository." + vulnerable_functions: Missing[Union[list[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." ) - reason: Union[str, None] = Field() - created_at: datetime = Field() - url: str = Field() - repository_url: str = Field() -model_rebuild(RepositorySubscription) +model_rebuild(PrivateVulnerabilityReportCreate) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) -__all__ = ("RepositorySubscription",) +__all__ = ( + "PrivateVulnerabilityReportCreate", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0363.py b/githubkit/versions/v2022_11_28/models/group_0363.py index c5f394186..b379d895d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0363.py +++ b/githubkit/versions/v2022_11_28/models/group_0363.py @@ -9,35 +9,139 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class Tag(GitHubModel): - """Tag - - Tag +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class RepositoryAdvisoryUpdate(GitHubModel): + """RepositoryAdvisoryUpdate""" + + summary: Missing[str] = Field( + max_length=1024, default=UNSET, description="A short summary of the advisory." + ) + description: Missing[str] = Field( + max_length=65535, + default=UNSET, + description="A detailed description of what the advisory impacts.", + ) + cve_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + vulnerabilities: Missing[list[RepositoryAdvisoryUpdatePropVulnerabilitiesItems]] = ( + Field( + default=UNSET, + description="A product affected by the vulnerability detailed in a repository security advisory.", + ) + ) + cwe_ids: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + credits_: Missing[Union[list[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( + Field( + default=UNSET, + alias="credits", + description="A list of users receiving credit for their participation in the security advisory.", + ) + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + state: Missing[Literal["published", "closed", "draft"]] = Field( + default=UNSET, description="The state of the advisory." + ) + collaborating_users: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="A list of usernames who have been granted write access to the advisory.", + ) + collaborating_teams: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="A list of team slugs which have been granted write access to the advisory.", + ) + + +class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryUpdatePropCreditsItems""" + + login: str = Field(description="The username of the user credited.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[list[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - name: str = Field() - commit: TagPropCommit = Field() - zipball_url: str = Field() - tarball_url: str = Field() - node_id: str = Field() - - -class TagPropCommit(GitHubModel): - """TagPropCommit""" - - sha: str = Field() - url: str = Field() - - -model_rebuild(Tag) -model_rebuild(TagPropCommit) + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." + ) + + +model_rebuild(RepositoryAdvisoryUpdate) +model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) __all__ = ( - "Tag", - "TagPropCommit", + "RepositoryAdvisoryUpdate", + "RepositoryAdvisoryUpdatePropCreditsItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0364.py b/githubkit/versions/v2022_11_28/models/group_0364.py index 527c8ec3d..e8f958a86 100644 --- a/githubkit/versions/v2022_11_28/models/group_0364.py +++ b/githubkit/versions/v2022_11_28/models/group_0364.py @@ -9,26 +9,26 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0003 import SimpleUser -class TagProtection(GitHubModel): - """Tag protection +class Stargazer(GitHubModel): + """Stargazer - Tag protection + Stargazer """ - id: Missing[int] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) - pattern: str = Field() + starred_at: datetime = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(TagProtection) +model_rebuild(Stargazer) -__all__ = ("TagProtection",) +__all__ = ("Stargazer",) diff --git a/githubkit/versions/v2022_11_28/models/group_0365.py b/githubkit/versions/v2022_11_28/models/group_0365.py index 72e23363a..9fc28af36 100644 --- a/githubkit/versions/v2022_11_28/models/group_0365.py +++ b/githubkit/versions/v2022_11_28/models/group_0365.py @@ -14,15 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class Topic(GitHubModel): - """Topic +class CommitActivity(GitHubModel): + """Commit Activity - A topic aggregates entities that are related to a subject. + Commit Activity """ - names: list[str] = Field() + days: list[int] = Field() + total: int = Field() + week: int = Field() -model_rebuild(Topic) +model_rebuild(CommitActivity) -__all__ = ("Topic",) +__all__ = ("CommitActivity",) diff --git a/githubkit/versions/v2022_11_28/models/group_0366.py b/githubkit/versions/v2022_11_28/models/group_0366.py index 8f9d3f9f8..60311444a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0366.py +++ b/githubkit/versions/v2022_11_28/models/group_0366.py @@ -9,21 +9,41 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class Traffic(GitHubModel): - """Traffic""" - timestamp: datetime = Field() - uniques: int = Field() - count: int = Field() +class ContributorActivity(GitHubModel): + """Contributor Activity + Contributor Activity + """ -model_rebuild(Traffic) + author: Union[None, SimpleUser] = Field() + total: int = Field() + weeks: list[ContributorActivityPropWeeksItems] = Field() -__all__ = ("Traffic",) + +class ContributorActivityPropWeeksItems(GitHubModel): + """ContributorActivityPropWeeksItems""" + + w: Missing[int] = Field(default=UNSET) + a: Missing[int] = Field(default=UNSET) + d: Missing[int] = Field(default=UNSET) + c: Missing[int] = Field(default=UNSET) + + +model_rebuild(ContributorActivity) +model_rebuild(ContributorActivityPropWeeksItems) + +__all__ = ( + "ContributorActivity", + "ContributorActivityPropWeeksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0367.py b/githubkit/versions/v2022_11_28/models/group_0367.py index de90f0d96..43efe1baa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0367.py +++ b/githubkit/versions/v2022_11_28/models/group_0367.py @@ -13,20 +13,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0366 import Traffic +class ParticipationStats(GitHubModel): + """Participation Stats""" -class CloneTraffic(GitHubModel): - """Clone Traffic + all_: list[int] = Field(alias="all") + owner: list[int] = Field() - Clone Traffic - """ - count: int = Field() - uniques: int = Field() - clones: list[Traffic] = Field() +model_rebuild(ParticipationStats) - -model_rebuild(CloneTraffic) - -__all__ = ("CloneTraffic",) +__all__ = ("ParticipationStats",) diff --git a/githubkit/versions/v2022_11_28/models/group_0368.py b/githubkit/versions/v2022_11_28/models/group_0368.py index 97ab65074..146a849ce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0368.py +++ b/githubkit/versions/v2022_11_28/models/group_0368.py @@ -9,23 +9,32 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ContentTraffic(GitHubModel): - """Content Traffic +class RepositorySubscription(GitHubModel): + """Repository Invitation - Content Traffic + Repository invitations let you manage who you collaborate with. """ - path: str = Field() - title: str = Field() - count: int = Field() - uniques: int = Field() + subscribed: bool = Field( + description="Determines if notifications should be received from this repository." + ) + ignored: bool = Field( + description="Determines if all notifications should be blocked from this repository." + ) + reason: Union[str, None] = Field() + created_at: datetime = Field() + url: str = Field() + repository_url: str = Field() -model_rebuild(ContentTraffic) +model_rebuild(RepositorySubscription) -__all__ = ("ContentTraffic",) +__all__ = ("RepositorySubscription",) diff --git a/githubkit/versions/v2022_11_28/models/group_0369.py b/githubkit/versions/v2022_11_28/models/group_0369.py index 7ced93dd8..c5f394186 100644 --- a/githubkit/versions/v2022_11_28/models/group_0369.py +++ b/githubkit/versions/v2022_11_28/models/group_0369.py @@ -14,17 +14,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReferrerTraffic(GitHubModel): - """Referrer Traffic +class Tag(GitHubModel): + """Tag - Referrer Traffic + Tag """ - referrer: str = Field() - count: int = Field() - uniques: int = Field() + name: str = Field() + commit: TagPropCommit = Field() + zipball_url: str = Field() + tarball_url: str = Field() + node_id: str = Field() -model_rebuild(ReferrerTraffic) +class TagPropCommit(GitHubModel): + """TagPropCommit""" -__all__ = ("ReferrerTraffic",) + sha: str = Field() + url: str = Field() + + +model_rebuild(Tag) +model_rebuild(TagPropCommit) + +__all__ = ( + "Tag", + "TagPropCommit", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0370.py b/githubkit/versions/v2022_11_28/models/group_0370.py index 90e15f11a..527c8ec3d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0370.py +++ b/githubkit/versions/v2022_11_28/models/group_0370.py @@ -12,21 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0366 import Traffic +class TagProtection(GitHubModel): + """Tag protection -class ViewTraffic(GitHubModel): - """View Traffic - - View Traffic + Tag protection """ - count: int = Field() - uniques: int = Field() - views: list[Traffic] = Field() + id: Missing[int] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + pattern: str = Field() -model_rebuild(ViewTraffic) +model_rebuild(TagProtection) -__all__ = ("ViewTraffic",) +__all__ = ("TagProtection",) diff --git a/githubkit/versions/v2022_11_28/models/group_0371.py b/githubkit/versions/v2022_11_28/models/group_0371.py index 46d30061f..72e23363a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0371.py +++ b/githubkit/versions/v2022_11_28/models/group_0371.py @@ -9,38 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class SearchResultTextMatchesItems(GitHubModel): - """SearchResultTextMatchesItems""" - object_url: Missing[str] = Field(default=UNSET) - object_type: Missing[Union[str, None]] = Field(default=UNSET) - property_: Missing[str] = Field(default=UNSET, alias="property") - fragment: Missing[str] = Field(default=UNSET) - matches: Missing[list[SearchResultTextMatchesItemsPropMatchesItems]] = Field( - default=UNSET - ) +class Topic(GitHubModel): + """Topic -class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): - """SearchResultTextMatchesItemsPropMatchesItems""" + A topic aggregates entities that are related to a subject. + """ - text: Missing[str] = Field(default=UNSET) - indices: Missing[list[int]] = Field(default=UNSET) + names: list[str] = Field() -model_rebuild(SearchResultTextMatchesItems) -model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) +model_rebuild(Topic) -__all__ = ( - "SearchResultTextMatchesItems", - "SearchResultTextMatchesItemsPropMatchesItems", -) +__all__ = ("Topic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0372.py b/githubkit/versions/v2022_11_28/models/group_0372.py index 5072b9ce0..8f9d3f9f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0372.py +++ b/githubkit/versions/v2022_11_28/models/group_0372.py @@ -10,55 +10,20 @@ from __future__ import annotations from datetime import datetime -from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0056 import MinimalRepository -from .group_0371 import SearchResultTextMatchesItems +class Traffic(GitHubModel): + """Traffic""" -class CodeSearchResultItem(GitHubModel): - """Code Search Result Item + timestamp: datetime = Field() + uniques: int = Field() + count: int = Field() - Code Search Result Item - """ - name: str = Field() - path: str = Field() - sha: str = Field() - url: str = Field() - git_url: str = Field() - html_url: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - score: float = Field() - file_size: Missing[int] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - last_modified_at: Missing[datetime] = Field(default=UNSET) - line_numbers: Missing[list[str]] = Field(default=UNSET) - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) +model_rebuild(Traffic) - -class SearchCodeGetResponse200(GitHubModel): - """SearchCodeGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: list[CodeSearchResultItem] = Field() - - -model_rebuild(CodeSearchResultItem) -model_rebuild(SearchCodeGetResponse200) - -__all__ = ( - "CodeSearchResultItem", - "SearchCodeGetResponse200", -) +__all__ = ("Traffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0373.py b/githubkit/versions/v2022_11_28/models/group_0373.py index cd47c11ec..8d3b2d9aa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0373.py +++ b/githubkit/versions/v2022_11_28/models/group_0373.py @@ -9,67 +9,24 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0056 import MinimalRepository -from .group_0201 import GitUser -from .group_0371 import SearchResultTextMatchesItems -from .group_0374 import CommitSearchResultItemPropCommit +from .group_0372 import Traffic -class CommitSearchResultItem(GitHubModel): - """Commit Search Result Item +class CloneTraffic(GitHubModel): + """Clone Traffic - Commit Search Result Item + Clone Traffic """ - url: str = Field() - sha: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitSearchResultItemPropCommit = Field() - author: Union[None, SimpleUser] = Field() - committer: Union[None, GitUser] = Field() - parents: list[CommitSearchResultItemPropParentsItems] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - score: float = Field() - node_id: str = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - - -class CommitSearchResultItemPropParentsItems(GitHubModel): - """CommitSearchResultItemPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class SearchCommitsGetResponse200(GitHubModel): - """SearchCommitsGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: list[CommitSearchResultItem] = Field() + count: int = Field() + uniques: int = Field() + clones: list[Traffic] = Field() -model_rebuild(CommitSearchResultItem) -model_rebuild(CommitSearchResultItemPropParentsItems) -model_rebuild(SearchCommitsGetResponse200) +model_rebuild(CloneTraffic) -__all__ = ( - "CommitSearchResultItem", - "CommitSearchResultItemPropParentsItems", - "SearchCommitsGetResponse200", -) +__all__ = ("CloneTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0374.py b/githubkit/versions/v2022_11_28/models/group_0374.py index bece95d86..97ab65074 100644 --- a/githubkit/versions/v2022_11_28/models/group_0374.py +++ b/githubkit/versions/v2022_11_28/models/group_0374.py @@ -9,52 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0201 import GitUser -from .group_0202 import Verification - - -class CommitSearchResultItemPropCommit(GitHubModel): - """CommitSearchResultItemPropCommit""" - - author: CommitSearchResultItemPropCommitPropAuthor = Field() - committer: Union[None, GitUser] = Field() - comment_count: int = Field() - message: str = Field() - tree: CommitSearchResultItemPropCommitPropTree = Field() - url: str = Field() - verification: Missing[Verification] = Field(default=UNSET, title="Verification") - - -class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): - """CommitSearchResultItemPropCommitPropAuthor""" - name: str = Field() - email: str = Field() - date: datetime = Field() +class ContentTraffic(GitHubModel): + """Content Traffic -class CommitSearchResultItemPropCommitPropTree(GitHubModel): - """CommitSearchResultItemPropCommitPropTree""" + Content Traffic + """ - sha: str = Field() - url: str = Field() + path: str = Field() + title: str = Field() + count: int = Field() + uniques: int = Field() -model_rebuild(CommitSearchResultItemPropCommit) -model_rebuild(CommitSearchResultItemPropCommitPropAuthor) -model_rebuild(CommitSearchResultItemPropCommitPropTree) +model_rebuild(ContentTraffic) -__all__ = ( - "CommitSearchResultItemPropCommit", - "CommitSearchResultItemPropCommitPropAuthor", - "CommitSearchResultItemPropCommitPropTree", -) +__all__ = ("ContentTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0375.py b/githubkit/versions/v2022_11_28/models/group_0375.py index ed2c43838..7ced93dd8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0375.py +++ b/githubkit/versions/v2022_11_28/models/group_0375.py @@ -9,135 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0008 import Integration -from .group_0019 import Repository -from .group_0038 import Milestone -from .group_0039 import ReactionRollup -from .group_0371 import SearchResultTextMatchesItems -class IssueSearchResultItem(GitHubModel): - """Issue Search Result Item +class ReferrerTraffic(GitHubModel): + """Referrer Traffic - Issue Search Result Item + Referrer Traffic """ - url: str = Field() - repository_url: str = Field() - labels_url: str = Field() - comments_url: str = Field() - events_url: str = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - title: str = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - labels: list[IssueSearchResultItemPropLabelsItems] = Field() - sub_issues_summary: Missing[IssueSearchResultItemPropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: str = Field() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[None, SimpleUser] = Field() - milestone: Union[None, Milestone] = Field() - comments: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) - body: Missing[str] = Field(default=UNSET) - score: float = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - draft: Missing[bool] = Field(default=UNSET) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - - -class IssueSearchResultItemPropLabelsItems(GitHubModel): - """IssueSearchResultItemPropLabelsItems""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - color: Missing[str] = Field(default=UNSET) - default: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - - -class IssueSearchResultItemPropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class IssueSearchResultItemPropPullRequest(GitHubModel): - """IssueSearchResultItemPropPullRequest""" - - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - diff_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - patch_url: Union[str, None] = Field() - url: Union[str, None] = Field() - - -class SearchIssuesGetResponse200(GitHubModel): - """SearchIssuesGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: list[IssueSearchResultItem] = Field() + referrer: str = Field() + count: int = Field() + uniques: int = Field() -model_rebuild(IssueSearchResultItem) -model_rebuild(IssueSearchResultItemPropLabelsItems) -model_rebuild(IssueSearchResultItemPropSubIssuesSummary) -model_rebuild(IssueSearchResultItemPropPullRequest) -model_rebuild(SearchIssuesGetResponse200) +model_rebuild(ReferrerTraffic) -__all__ = ( - "IssueSearchResultItem", - "IssueSearchResultItemPropLabelsItems", - "IssueSearchResultItemPropPullRequest", - "IssueSearchResultItemPropSubIssuesSummary", - "SearchIssuesGetResponse200", -) +__all__ = ("ReferrerTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0376.py b/githubkit/versions/v2022_11_28/models/group_0376.py index 0ce5bb6f2..8747311ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0376.py +++ b/githubkit/versions/v2022_11_28/models/group_0376.py @@ -9,48 +9,24 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0371 import SearchResultTextMatchesItems +from .group_0372 import Traffic -class LabelSearchResultItem(GitHubModel): - """Label Search Result Item +class ViewTraffic(GitHubModel): + """View Traffic - Label Search Result Item + View Traffic """ - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - color: str = Field() - default: bool = Field() - description: Union[str, None] = Field() - score: float = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - - -class SearchLabelsGetResponse200(GitHubModel): - """SearchLabelsGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: list[LabelSearchResultItem] = Field() + count: int = Field() + uniques: int = Field() + views: list[Traffic] = Field() -model_rebuild(LabelSearchResultItem) -model_rebuild(SearchLabelsGetResponse200) +model_rebuild(ViewTraffic) -__all__ = ( - "LabelSearchResultItem", - "SearchLabelsGetResponse200", -) +__all__ = ("ViewTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0377.py b/githubkit/versions/v2022_11_28/models/group_0377.py index 0cbd6e7d2..46d30061f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0377.py +++ b/githubkit/versions/v2022_11_28/models/group_0377.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,139 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0018 import LicenseSimple -from .group_0371 import SearchResultTextMatchesItems - - -class RepoSearchResultItem(GitHubModel): - """Repo Search Result Item - - Repo Search Result Item - """ - - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: Union[None, SimpleUser] = Field() - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - pushed_at: datetime = Field() - homepage: Union[str, None] = Field() - size: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - open_issues_count: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - default_branch: str = Field() - score: float = Field() - forks_url: str = Field() - keys_url: str = Field() - collaborators_url: str = Field() - teams_url: str = Field() - hooks_url: str = Field() - issue_events_url: str = Field() - events_url: str = Field() - assignees_url: str = Field() - branches_url: str = Field() - tags_url: str = Field() - blobs_url: str = Field() - git_tags_url: str = Field() - git_refs_url: str = Field() - trees_url: str = Field() - statuses_url: str = Field() - languages_url: str = Field() - stargazers_url: str = Field() - contributors_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - commits_url: str = Field() - git_commits_url: str = Field() - comments_url: str = Field() - issue_comment_url: str = Field() - contents_url: str = Field() - compare_url: str = Field() - merges_url: str = Field() - archive_url: str = Field() - downloads_url: str = Field() - issues_url: str = Field() - pulls_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - labels_url: str = Field() - releases_url: str = Field() - deployments_url: str = Field() - git_url: str = Field() - ssh_url: str = Field() - clone_url: str = Field() - svn_url: str = Field() - forks: int = Field() - open_issues: int = Field() - watchers: int = Field() - topics: Missing[list[str]] = Field(default=UNSET) - mirror_url: Union[str, None] = Field() - has_issues: bool = Field() - has_projects: bool = Field() - has_pages: bool = Field() - has_wiki: bool = Field() - has_downloads: bool = Field() - has_discussions: Missing[bool] = Field(default=UNSET) - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - license_: Union[None, LicenseSimple] = Field(alias="license") - permissions: Missing[RepoSearchResultItemPropPermissions] = Field(default=UNSET) - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_forking: Missing[bool] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) +class SearchResultTextMatchesItems(GitHubModel): + """SearchResultTextMatchesItems""" -class RepoSearchResultItemPropPermissions(GitHubModel): - """RepoSearchResultItemPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() + object_url: Missing[str] = Field(default=UNSET) + object_type: Missing[Union[str, None]] = Field(default=UNSET) + property_: Missing[str] = Field(default=UNSET, alias="property") + fragment: Missing[str] = Field(default=UNSET) + matches: Missing[list[SearchResultTextMatchesItemsPropMatchesItems]] = Field( + default=UNSET + ) -class SearchRepositoriesGetResponse200(GitHubModel): - """SearchRepositoriesGetResponse200""" +class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): + """SearchResultTextMatchesItemsPropMatchesItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[RepoSearchResultItem] = Field() + text: Missing[str] = Field(default=UNSET) + indices: Missing[list[int]] = Field(default=UNSET) -model_rebuild(RepoSearchResultItem) -model_rebuild(RepoSearchResultItemPropPermissions) -model_rebuild(SearchRepositoriesGetResponse200) +model_rebuild(SearchResultTextMatchesItems) +model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) __all__ = ( - "RepoSearchResultItem", - "RepoSearchResultItemPropPermissions", - "SearchRepositoriesGetResponse200", + "SearchResultTextMatchesItems", + "SearchResultTextMatchesItemsPropMatchesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0378.py b/githubkit/versions/v2022_11_28/models/group_0378.py index e8aea0732..ff0181762 100644 --- a/githubkit/versions/v2022_11_28/models/group_0378.py +++ b/githubkit/versions/v2022_11_28/models/group_0378.py @@ -18,93 +18,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0371 import SearchResultTextMatchesItems +from .group_0057 import MinimalRepository +from .group_0377 import SearchResultTextMatchesItems -class TopicSearchResultItem(GitHubModel): - """Topic Search Result Item +class CodeSearchResultItem(GitHubModel): + """Code Search Result Item - Topic Search Result Item + Code Search Result Item """ name: str = Field() - display_name: Union[str, None] = Field() - short_description: Union[str, None] = Field() - description: Union[str, None] = Field() - created_by: Union[str, None] = Field() - released: Union[str, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - featured: bool = Field() - curated: bool = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: str = Field() + html_url: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) score: float = Field() - repository_count: Missing[Union[int, None]] = Field(default=UNSET) - logo_url: Missing[Union[str, None]] = Field(default=UNSET) + file_size: Missing[int] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + last_modified_at: Missing[datetime] = Field(default=UNSET) + line_numbers: Missing[list[str]] = Field(default=UNSET) text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - related: Missing[Union[list[TopicSearchResultItemPropRelatedItems], None]] = Field( - default=UNSET - ) - aliases: Missing[Union[list[TopicSearchResultItemPropAliasesItems], None]] = Field( - default=UNSET - ) - - -class TopicSearchResultItemPropRelatedItems(GitHubModel): - """TopicSearchResultItemPropRelatedItems""" - - topic_relation: Missing[TopicSearchResultItemPropRelatedItemsPropTopicRelation] = ( - Field(default=UNSET) - ) - - -class TopicSearchResultItemPropRelatedItemsPropTopicRelation(GitHubModel): - """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - topic_id: Missing[int] = Field(default=UNSET) - relation_type: Missing[str] = Field(default=UNSET) - - -class TopicSearchResultItemPropAliasesItems(GitHubModel): - """TopicSearchResultItemPropAliasesItems""" - - topic_relation: Missing[TopicSearchResultItemPropAliasesItemsPropTopicRelation] = ( - Field(default=UNSET) - ) - - -class TopicSearchResultItemPropAliasesItemsPropTopicRelation(GitHubModel): - """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - topic_id: Missing[int] = Field(default=UNSET) - relation_type: Missing[str] = Field(default=UNSET) -class SearchTopicsGetResponse200(GitHubModel): - """SearchTopicsGetResponse200""" +class SearchCodeGetResponse200(GitHubModel): + """SearchCodeGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[TopicSearchResultItem] = Field() + items: list[CodeSearchResultItem] = Field() -model_rebuild(TopicSearchResultItem) -model_rebuild(TopicSearchResultItemPropRelatedItems) -model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) -model_rebuild(TopicSearchResultItemPropAliasesItems) -model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) -model_rebuild(SearchTopicsGetResponse200) +model_rebuild(CodeSearchResultItem) +model_rebuild(SearchCodeGetResponse200) __all__ = ( - "SearchTopicsGetResponse200", - "TopicSearchResultItem", - "TopicSearchResultItemPropAliasesItems", - "TopicSearchResultItemPropAliasesItemsPropTopicRelation", - "TopicSearchResultItemPropRelatedItems", - "TopicSearchResultItemPropRelatedItemsPropTopicRelation", + "CodeSearchResultItem", + "SearchCodeGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0379.py b/githubkit/versions/v2022_11_28/models/group_0379.py index 69cfa60f1..b3a20add7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0379.py +++ b/githubkit/versions/v2022_11_28/models/group_0379.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,66 +17,59 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0371 import SearchResultTextMatchesItems +from .group_0003 import SimpleUser +from .group_0057 import MinimalRepository +from .group_0207 import GitUser +from .group_0377 import SearchResultTextMatchesItems +from .group_0380 import CommitSearchResultItemPropCommit -class UserSearchResultItem(GitHubModel): - """User Search Result Item +class CommitSearchResultItem(GitHubModel): + """Commit Search Result Item - User Search Result Item + Commit Search Result Item """ - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() url: str = Field() + sha: str = Field() html_url: str = Field() - followers_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - received_events_url: str = Field() - type: str = Field() + comments_url: str = Field() + commit: CommitSearchResultItemPropCommit = Field() + author: Union[None, SimpleUser] = Field() + committer: Union[None, GitUser] = Field() + parents: list[CommitSearchResultItemPropParentsItems] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) score: float = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - events_url: str = Field() - public_repos: Missing[int] = Field(default=UNSET) - public_gists: Missing[int] = Field(default=UNSET) - followers: Missing[int] = Field(default=UNSET) - following: Missing[int] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - bio: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - site_admin: bool = Field() - hireable: Missing[Union[bool, None]] = Field(default=UNSET) + node_id: str = Field() text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - blog: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class SearchUsersGetResponse200(GitHubModel): - """SearchUsersGetResponse200""" +class CommitSearchResultItemPropParentsItems(GitHubModel): + """CommitSearchResultItemPropParentsItems""" + + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + + +class SearchCommitsGetResponse200(GitHubModel): + """SearchCommitsGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[UserSearchResultItem] = Field() + items: list[CommitSearchResultItem] = Field() -model_rebuild(UserSearchResultItem) -model_rebuild(SearchUsersGetResponse200) +model_rebuild(CommitSearchResultItem) +model_rebuild(CommitSearchResultItemPropParentsItems) +model_rebuild(SearchCommitsGetResponse200) __all__ = ( - "SearchUsersGetResponse200", - "UserSearchResultItem", + "CommitSearchResultItem", + "CommitSearchResultItemPropParentsItems", + "SearchCommitsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0380.py b/githubkit/versions/v2022_11_28/models/group_0380.py index c4b785265..cd3375981 100644 --- a/githubkit/versions/v2022_11_28/models/group_0380.py +++ b/githubkit/versions/v2022_11_28/models/group_0380.py @@ -18,71 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0207 import GitUser +from .group_0208 import Verification -class PrivateUser(GitHubModel): - """Private User - Private User - """ +class CommitSearchResultItemPropCommit(GitHubModel): + """CommitSearchResultItemPropCommit""" - login: str = Field() - id: int = Field() - user_view_type: Missing[str] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() + author: CommitSearchResultItemPropCommitPropAuthor = Field() + committer: Union[None, GitUser] = Field() + comment_count: int = Field() + message: str = Field() + tree: CommitSearchResultItemPropCommitPropTree = Field() url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - name: Union[str, None] = Field() - company: Union[str, None] = Field() - blog: Union[str, None] = Field() - location: Union[str, None] = Field() - email: Union[str, None] = Field() - notification_email: Missing[Union[str, None]] = Field(default=UNSET) - hireable: Union[bool, None] = Field() - bio: Union[str, None] = Field() - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - private_gists: int = Field() - total_private_repos: int = Field() - owned_private_repos: int = Field() - disk_usage: int = Field() - collaborators: int = Field() - two_factor_authentication: bool = Field() - plan: Missing[PrivateUserPropPlan] = Field(default=UNSET) - business_plus: Missing[bool] = Field(default=UNSET) - ldap_dn: Missing[str] = Field(default=UNSET) - - -class PrivateUserPropPlan(GitHubModel): - """PrivateUserPropPlan""" - - collaborators: int = Field() + verification: Missing[Verification] = Field(default=UNSET, title="Verification") + + +class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): + """CommitSearchResultItemPropCommitPropAuthor""" + name: str = Field() - space: int = Field() - private_repos: int = Field() + email: str = Field() + date: datetime = Field() + + +class CommitSearchResultItemPropCommitPropTree(GitHubModel): + """CommitSearchResultItemPropCommitPropTree""" + + sha: str = Field() + url: str = Field() -model_rebuild(PrivateUser) -model_rebuild(PrivateUserPropPlan) +model_rebuild(CommitSearchResultItemPropCommit) +model_rebuild(CommitSearchResultItemPropCommitPropAuthor) +model_rebuild(CommitSearchResultItemPropCommitPropTree) __all__ = ( - "PrivateUser", - "PrivateUserPropPlan", + "CommitSearchResultItemPropCommit", + "CommitSearchResultItemPropCommitPropAuthor", + "CommitSearchResultItemPropCommitPropTree", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0381.py b/githubkit/versions/v2022_11_28/models/group_0381.py index f6bee6e63..d6bf55f50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0381.py +++ b/githubkit/versions/v2022_11_28/models/group_0381.py @@ -9,21 +9,135 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0020 import Repository +from .group_0039 import Milestone +from .group_0040 import ReactionRollup +from .group_0377 import SearchResultTextMatchesItems -class CodespacesUserPublicKey(GitHubModel): - """CodespacesUserPublicKey +class IssueSearchResultItem(GitHubModel): + """Issue Search Result Item - The public key used for setting user Codespaces' Secrets. + Issue Search Result Item """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + url: str = Field() + repository_url: str = Field() + labels_url: str = Field() + comments_url: str = Field() + events_url: str = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + title: str = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + labels: list[IssueSearchResultItemPropLabelsItems] = Field() + sub_issues_summary: Missing[IssueSearchResultItemPropSubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: str = Field() + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[None, SimpleUser] = Field() + milestone: Union[None, Milestone] = Field() + comments: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) + body: Missing[str] = Field(default=UNSET) + score: float = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + draft: Missing[bool] = Field(default=UNSET) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +class IssueSearchResultItemPropLabelsItems(GitHubModel): + """IssueSearchResultItemPropLabelsItems""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + color: Missing[str] = Field(default=UNSET) + default: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + + +class IssueSearchResultItemPropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class IssueSearchResultItemPropPullRequest(GitHubModel): + """IssueSearchResultItemPropPullRequest""" + + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() + + +class SearchIssuesGetResponse200(GitHubModel): + """SearchIssuesGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[IssueSearchResultItem] = Field() -model_rebuild(CodespacesUserPublicKey) +model_rebuild(IssueSearchResultItem) +model_rebuild(IssueSearchResultItemPropLabelsItems) +model_rebuild(IssueSearchResultItemPropSubIssuesSummary) +model_rebuild(IssueSearchResultItemPropPullRequest) +model_rebuild(SearchIssuesGetResponse200) -__all__ = ("CodespacesUserPublicKey",) +__all__ = ( + "IssueSearchResultItem", + "IssueSearchResultItemPropLabelsItems", + "IssueSearchResultItemPropPullRequest", + "IssueSearchResultItemPropSubIssuesSummary", + "SearchIssuesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0382.py b/githubkit/versions/v2022_11_28/models/group_0382.py index 48a2ada39..ac106c579 100644 --- a/githubkit/versions/v2022_11_28/models/group_0382.py +++ b/githubkit/versions/v2022_11_28/models/group_0382.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,35 +17,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0377 import SearchResultTextMatchesItems -class CodespaceExportDetails(GitHubModel): - """Fetches information about an export of a codespace. - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest +class LabelSearchResultItem(GitHubModel): + """Label Search Result Item + + Label Search Result Item """ - state: Missing[Union[str, None]] = Field( - default=UNSET, description="State of the latest export" - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Completion time of the last export operation" - ) - branch: Missing[Union[str, None]] = Field( - default=UNSET, description="Name of the exported branch" - ) - sha: Missing[Union[str, None]] = Field( - default=UNSET, description="Git commit SHA of the exported branch" - ) - id: Missing[str] = Field(default=UNSET, description="Id for the export details") - export_url: Missing[str] = Field( - default=UNSET, description="Url for fetching export details" - ) - html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="Web url for the exported branch" + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() + color: str = Field() + default: bool = Field() + description: Union[str, None] = Field() + score: float = Field() + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" ) -model_rebuild(CodespaceExportDetails) +class SearchLabelsGetResponse200(GitHubModel): + """SearchLabelsGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[LabelSearchResultItem] = Field() + + +model_rebuild(LabelSearchResultItem) +model_rebuild(SearchLabelsGetResponse200) -__all__ = ("CodespaceExportDetails",) +__all__ = ( + "LabelSearchResultItem", + "SearchLabelsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0383.py b/githubkit/versions/v2022_11_28/models/group_0383.py index 9bf6ac8e6..6868fa84c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0383.py +++ b/githubkit/versions/v2022_11_28/models/group_0383.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,155 +18,139 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0077 import CodespaceMachine -from .group_0112 import FullRepository +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple +from .group_0377 import SearchResultTextMatchesItems -class CodespaceWithFullRepository(GitHubModel): - """Codespace +class RepoSearchResultItem(GitHubModel): + """Repo Search Result Item - A codespace. + Repo Search Result Item """ id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( - default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", - ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: Union[None, SimpleUser] = Field() + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() created_at: datetime = Field() updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespaceWithFullRepositoryPropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." - ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." - ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." - ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="API URL to publish this codespace to a new repository.", - ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: list[str] = Field() - runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( - Field(default=UNSET) - ) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( + pushed_at: datetime = Field() + homepage: Union[str, None] = Field() + size: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + open_issues_count: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + default_branch: str = Field() + score: float = Field() + forks_url: str = Field() + keys_url: str = Field() + collaborators_url: str = Field() + teams_url: str = Field() + hooks_url: str = Field() + issue_events_url: str = Field() + events_url: str = Field() + assignees_url: str = Field() + branches_url: str = Field() + tags_url: str = Field() + blobs_url: str = Field() + git_tags_url: str = Field() + git_refs_url: str = Field() + trees_url: str = Field() + statuses_url: str = Field() + languages_url: str = Field() + stargazers_url: str = Field() + contributors_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + commits_url: str = Field() + git_commits_url: str = Field() + comments_url: str = Field() + issue_comment_url: str = Field() + contents_url: str = Field() + compare_url: str = Field() + merges_url: str = Field() + archive_url: str = Field() + downloads_url: str = Field() + issues_url: str = Field() + pulls_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + labels_url: str = Field() + releases_url: str = Field() + deployments_url: str = Field() + git_url: str = Field() + ssh_url: str = Field() + clone_url: str = Field() + svn_url: str = Field() + forks: int = Field() + open_issues: int = Field() + watchers: int = Field() + topics: Missing[list[str]] = Field(default=UNSET) + mirror_url: Union[str, None] = Field() + has_issues: bool = Field() + has_projects: bool = Field() + has_pages: bool = Field() + has_wiki: bool = Field() + has_downloads: bool = Field() + has_discussions: Missing[bool] = Field(default=UNSET) + archived: bool = Field() + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", + description="The repository visibility: public, private, or internal.", ) - idle_timeout_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", - ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - retention_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', + license_: Union[None, LicenseSimple] = Field(alias="license") + permissions: Missing[RepoSearchResultItemPropPermissions] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_forking: Missing[bool] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) -class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): - """CodespaceWithFullRepositoryPropGitStatus +class RepoSearchResultItemPropPermissions(GitHubModel): + """RepoSearchResultItemPropPermissions""" - Details about the codespace's git repository. - """ - - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", - ) + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() -class CodespaceWithFullRepositoryPropRuntimeConstraints(GitHubModel): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" +class SearchRepositoriesGetResponse200(GitHubModel): + """SearchRepositoriesGetResponse200""" - allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="The privacy settings a user can select from when forwarding a port.", - ) + total_count: int = Field() + incomplete_results: bool = Field() + items: list[RepoSearchResultItem] = Field() -model_rebuild(CodespaceWithFullRepository) -model_rebuild(CodespaceWithFullRepositoryPropGitStatus) -model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) +model_rebuild(RepoSearchResultItem) +model_rebuild(RepoSearchResultItemPropPermissions) +model_rebuild(SearchRepositoriesGetResponse200) __all__ = ( - "CodespaceWithFullRepository", - "CodespaceWithFullRepositoryPropGitStatus", - "CodespaceWithFullRepositoryPropRuntimeConstraints", + "RepoSearchResultItem", + "RepoSearchResultItemPropPermissions", + "SearchRepositoriesGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0384.py b/githubkit/versions/v2022_11_28/models/group_0384.py index 1fb1f3941..bf9891163 100644 --- a/githubkit/versions/v2022_11_28/models/group_0384.py +++ b/githubkit/versions/v2022_11_28/models/group_0384.py @@ -9,25 +9,102 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0377 import SearchResultTextMatchesItems -class Email(GitHubModel): - """Email - Email +class TopicSearchResultItem(GitHubModel): + """Topic Search Result Item + + Topic Search Result Item """ - email: str = Field() - primary: bool = Field() - verified: bool = Field() - visibility: Union[str, None] = Field() + name: str = Field() + display_name: Union[str, None] = Field() + short_description: Union[str, None] = Field() + description: Union[str, None] = Field() + created_by: Union[str, None] = Field() + released: Union[str, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + featured: bool = Field() + curated: bool = Field() + score: float = Field() + repository_count: Missing[Union[int, None]] = Field(default=UNSET) + logo_url: Missing[Union[str, None]] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + related: Missing[Union[list[TopicSearchResultItemPropRelatedItems], None]] = Field( + default=UNSET + ) + aliases: Missing[Union[list[TopicSearchResultItemPropAliasesItems], None]] = Field( + default=UNSET + ) + + +class TopicSearchResultItemPropRelatedItems(GitHubModel): + """TopicSearchResultItemPropRelatedItems""" + + topic_relation: Missing[TopicSearchResultItemPropRelatedItemsPropTopicRelation] = ( + Field(default=UNSET) + ) + + +class TopicSearchResultItemPropRelatedItemsPropTopicRelation(GitHubModel): + """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + topic_id: Missing[int] = Field(default=UNSET) + relation_type: Missing[str] = Field(default=UNSET) + + +class TopicSearchResultItemPropAliasesItems(GitHubModel): + """TopicSearchResultItemPropAliasesItems""" + + topic_relation: Missing[TopicSearchResultItemPropAliasesItemsPropTopicRelation] = ( + Field(default=UNSET) + ) + + +class TopicSearchResultItemPropAliasesItemsPropTopicRelation(GitHubModel): + """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + topic_id: Missing[int] = Field(default=UNSET) + relation_type: Missing[str] = Field(default=UNSET) + + +class SearchTopicsGetResponse200(GitHubModel): + """SearchTopicsGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[TopicSearchResultItem] = Field() -model_rebuild(Email) +model_rebuild(TopicSearchResultItem) +model_rebuild(TopicSearchResultItemPropRelatedItems) +model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) +model_rebuild(TopicSearchResultItemPropAliasesItems) +model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) +model_rebuild(SearchTopicsGetResponse200) -__all__ = ("Email",) +__all__ = ( + "SearchTopicsGetResponse200", + "TopicSearchResultItem", + "TopicSearchResultItemPropAliasesItems", + "TopicSearchResultItemPropAliasesItemsPropTopicRelation", + "TopicSearchResultItemPropRelatedItems", + "TopicSearchResultItemPropRelatedItemsPropTopicRelation", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0385.py b/githubkit/versions/v2022_11_28/models/group_0385.py index f58661fe1..df5aab902 100644 --- a/githubkit/versions/v2022_11_28/models/group_0385.py +++ b/githubkit/versions/v2022_11_28/models/group_0385.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Union from pydantic import Field @@ -18,71 +18,66 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0377 import SearchResultTextMatchesItems -class GpgKey(GitHubModel): - """GPG Key - A unique encryption key +class UserSearchResultItem(GitHubModel): + """User Search Result Item + + User Search Result Item """ + login: str = Field() id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + received_events_url: str = Field() + type: str = Field() + score: float = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + events_url: str = Field() + public_repos: Missing[int] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) name: Missing[Union[str, None]] = Field(default=UNSET) - primary_key_id: Union[int, None] = Field() - key_id: str = Field() - public_key: str = Field() - emails: list[GpgKeyPropEmailsItems] = Field() - subkeys: list[GpgKeyPropSubkeysItems] = Field() - can_sign: bool = Field() - can_encrypt_comms: bool = Field() - can_encrypt_storage: bool = Field() - can_certify: bool = Field() - created_at: datetime = Field() - expires_at: Union[datetime, None] = Field() - revoked: bool = Field() - raw_key: Union[str, None] = Field() - - -class GpgKeyPropEmailsItems(GitHubModel): - """GpgKeyPropEmailsItems""" - - email: Missing[str] = Field(default=UNSET) - verified: Missing[bool] = Field(default=UNSET) - - -class GpgKeyPropSubkeysItems(GitHubModel): - """GpgKeyPropSubkeysItems""" - - id: Missing[int] = Field(default=UNSET) - primary_key_id: Missing[int] = Field(default=UNSET) - key_id: Missing[str] = Field(default=UNSET) - public_key: Missing[str] = Field(default=UNSET) - emails: Missing[list[GpgKeyPropSubkeysItemsPropEmailsItems]] = Field(default=UNSET) - subkeys: Missing[list[Any]] = Field(default=UNSET) - can_sign: Missing[bool] = Field(default=UNSET) - can_encrypt_comms: Missing[bool] = Field(default=UNSET) - can_encrypt_storage: Missing[bool] = Field(default=UNSET) - can_certify: Missing[bool] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - expires_at: Missing[Union[str, None]] = Field(default=UNSET) - raw_key: Missing[Union[str, None]] = Field(default=UNSET) - revoked: Missing[bool] = Field(default=UNSET) - - -class GpgKeyPropSubkeysItemsPropEmailsItems(GitHubModel): - """GpgKeyPropSubkeysItemsPropEmailsItems""" - - email: Missing[str] = Field(default=UNSET) - verified: Missing[bool] = Field(default=UNSET) - - -model_rebuild(GpgKey) -model_rebuild(GpgKeyPropEmailsItems) -model_rebuild(GpgKeyPropSubkeysItems) -model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) + bio: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + site_admin: bool = Field() + hireable: Missing[Union[bool, None]] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + blog: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class SearchUsersGetResponse200(GitHubModel): + """SearchUsersGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[UserSearchResultItem] = Field() + + +model_rebuild(UserSearchResultItem) +model_rebuild(SearchUsersGetResponse200) __all__ = ( - "GpgKey", - "GpgKeyPropEmailsItems", - "GpgKeyPropSubkeysItems", - "GpgKeyPropSubkeysItemsPropEmailsItems", + "SearchUsersGetResponse200", + "UserSearchResultItem", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0386.py b/githubkit/versions/v2022_11_28/models/group_0386.py index f75f4e54d..c4b785265 100644 --- a/githubkit/versions/v2022_11_28/models/group_0386.py +++ b/githubkit/versions/v2022_11_28/models/group_0386.py @@ -10,27 +10,79 @@ from __future__ import annotations from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class Key(GitHubModel): - """Key +class PrivateUser(GitHubModel): + """Private User - Key + Private User """ - key: str = Field() + login: str = Field() id: int = Field() + user_view_type: Missing[str] = Field(default=UNSET) + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() url: str = Field() - title: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + name: Union[str, None] = Field() + company: Union[str, None] = Field() + blog: Union[str, None] = Field() + location: Union[str, None] = Field() + email: Union[str, None] = Field() + notification_email: Missing[Union[str, None]] = Field(default=UNSET) + hireable: Union[bool, None] = Field() + bio: Union[str, None] = Field() + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() created_at: datetime = Field() - verified: bool = Field() - read_only: bool = Field() + updated_at: datetime = Field() + private_gists: int = Field() + total_private_repos: int = Field() + owned_private_repos: int = Field() + disk_usage: int = Field() + collaborators: int = Field() + two_factor_authentication: bool = Field() + plan: Missing[PrivateUserPropPlan] = Field(default=UNSET) + business_plus: Missing[bool] = Field(default=UNSET) + ldap_dn: Missing[str] = Field(default=UNSET) -model_rebuild(Key) +class PrivateUserPropPlan(GitHubModel): + """PrivateUserPropPlan""" -__all__ = ("Key",) + collaborators: int = Field() + name: str = Field() + space: int = Field() + private_repos: int = Field() + + +model_rebuild(PrivateUser) +model_rebuild(PrivateUserPropPlan) + +__all__ = ( + "PrivateUser", + "PrivateUserPropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0387.py b/githubkit/versions/v2022_11_28/models/group_0387.py index 2fa4dde41..f6bee6e63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0387.py +++ b/githubkit/versions/v2022_11_28/models/group_0387.py @@ -9,52 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0051 import MarketplaceListingPlan -class UserMarketplacePurchase(GitHubModel): - """User Marketplace Purchase +class CodespacesUserPublicKey(GitHubModel): + """CodespacesUserPublicKey - User Marketplace Purchase + The public key used for setting user Codespaces' Secrets. """ - billing_cycle: str = Field() - next_billing_date: Union[datetime, None] = Field() - unit_count: Union[int, None] = Field() - on_free_trial: bool = Field() - free_trial_ends_on: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - account: MarketplaceAccount = Field(title="Marketplace Account") - plan: MarketplaceListingPlan = Field( - title="Marketplace Listing Plan", description="Marketplace Listing Plan" - ) - - -class MarketplaceAccount(GitHubModel): - """Marketplace Account""" - - url: str = Field() - id: int = Field() - type: str = Field() - node_id: Missing[str] = Field(default=UNSET) - login: str = Field() - email: Missing[Union[str, None]] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(UserMarketplacePurchase) -model_rebuild(MarketplaceAccount) - -__all__ = ( - "MarketplaceAccount", - "UserMarketplacePurchase", -) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") + + +model_rebuild(CodespacesUserPublicKey) + +__all__ = ("CodespacesUserPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0388.py b/githubkit/versions/v2022_11_28/models/group_0388.py index cae25bb86..48a2ada39 100644 --- a/githubkit/versions/v2022_11_28/models/group_0388.py +++ b/githubkit/versions/v2022_11_28/models/group_0388.py @@ -9,21 +9,44 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class SocialAccount(GitHubModel): - """Social account +class CodespaceExportDetails(GitHubModel): + """Fetches information about an export of a codespace. - Social media account + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - provider: str = Field() - url: str = Field() - - -model_rebuild(SocialAccount) - -__all__ = ("SocialAccount",) + state: Missing[Union[str, None]] = Field( + default=UNSET, description="State of the latest export" + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Completion time of the last export operation" + ) + branch: Missing[Union[str, None]] = Field( + default=UNSET, description="Name of the exported branch" + ) + sha: Missing[Union[str, None]] = Field( + default=UNSET, description="Git commit SHA of the exported branch" + ) + id: Missing[str] = Field(default=UNSET, description="Id for the export details") + export_url: Missing[str] = Field( + default=UNSET, description="Url for fetching export details" + ) + html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="Web url for the exported branch" + ) + + +model_rebuild(CodespaceExportDetails) + +__all__ = ("CodespaceExportDetails",) diff --git a/githubkit/versions/v2022_11_28/models/group_0389.py b/githubkit/versions/v2022_11_28/models/group_0389.py index e6313b836..c1c495614 100644 --- a/githubkit/versions/v2022_11_28/models/group_0389.py +++ b/githubkit/versions/v2022_11_28/models/group_0389.py @@ -10,24 +10,163 @@ from __future__ import annotations from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0082 import CodespaceMachine +from .group_0117 import FullRepository -class SshSigningKey(GitHubModel): - """SSH Signing Key - A public SSH key used to sign Git commits +class CodespaceWithFullRepository(GitHubModel): + """Codespace + + A codespace. """ - key: str = Field() id: int = Field() - title: str = Field() + name: str = Field(description="Automatically generated name of this codespace.") + display_name: Missing[Union[str, None]] = Field( + default=UNSET, description="Display name for this codespace." + ) + environment_id: Union[str, None] = Field( + description="UUID identifying this codespace's environment." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + billable_owner: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" + ) + machine: Union[None, CodespaceMachine] = Field() + devcontainer_path: Missing[Union[str, None]] = Field( + default=UNSET, + description="Path to devcontainer.json from repo root used to create Codespace.", + ) + prebuild: Union[bool, None] = Field( + description="Whether the codespace was created from a prebuild." + ) created_at: datetime = Field() + updated_at: datetime = Field() + last_used_at: datetime = Field( + description="Last known time this codespace was started." + ) + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] = Field(description="State of this codespace.") + url: str = Field(description="API URL for this codespace.") + git_status: CodespaceWithFullRepositoryPropGitStatus = Field( + description="Details about the codespace's git repository." + ) + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( + description="The initally assigned location of a new codespace." + ) + idle_timeout_minutes: Union[int, None] = Field( + description="The number of minutes of inactivity after which this codespace will be automatically stopped." + ) + web_url: str = Field(description="URL to access this codespace on the web.") + machines_url: str = Field( + description="API URL to access available alternate machine types for this codespace." + ) + start_url: str = Field(description="API URL to start this codespace.") + stop_url: str = Field(description="API URL to stop this codespace.") + publish_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="API URL to publish this codespace to a new repository.", + ) + pulls_url: Union[str, None] = Field( + description="API URL for the Pull Request associated with this codespace, if any." + ) + recent_folders: list[str] = Field() + runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( + Field(default=UNSET) + ) + pending_operation: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", + ) + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace is disabled by a pending operation", + ) + idle_timeout_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + ) + retention_period_minutes: Missing[Union[int, None]] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) + retention_expires_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', + ) + + +class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): + """CodespaceWithFullRepositoryPropGitStatus + + Details about the codespace's git repository. + """ + + ahead: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is ahead of the remote.", + ) + behind: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is behind the remote.", + ) + has_unpushed_changes: Missing[bool] = Field( + default=UNSET, description="Whether the local repository has unpushed changes." + ) + has_uncommitted_changes: Missing[bool] = Field( + default=UNSET, + description="Whether the local repository has uncommitted changes.", + ) + ref: Missing[str] = Field( + default=UNSET, + description="The current branch (or SHA if in detached HEAD state) of the local repository.", + ) + + +class CodespaceWithFullRepositoryPropRuntimeConstraints(GitHubModel): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" + + allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="The privacy settings a user can select from when forwarding a port.", + ) -model_rebuild(SshSigningKey) +model_rebuild(CodespaceWithFullRepository) +model_rebuild(CodespaceWithFullRepositoryPropGitStatus) +model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) -__all__ = ("SshSigningKey",) +__all__ = ( + "CodespaceWithFullRepository", + "CodespaceWithFullRepositoryPropGitStatus", + "CodespaceWithFullRepositoryPropRuntimeConstraints", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0390.py b/githubkit/versions/v2022_11_28/models/group_0390.py index 5a93a9886..1fb1f3941 100644 --- a/githubkit/versions/v2022_11_28/models/group_0390.py +++ b/githubkit/versions/v2022_11_28/models/group_0390.py @@ -9,25 +9,25 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0019 import Repository +class Email(GitHubModel): + """Email -class StarredRepository(GitHubModel): - """Starred Repository - - Starred Repository + Email """ - starred_at: datetime = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") + email: str = Field() + primary: bool = Field() + verified: bool = Field() + visibility: Union[str, None] = Field() -model_rebuild(StarredRepository) +model_rebuild(Email) -__all__ = ("StarredRepository",) +__all__ = ("Email",) diff --git a/githubkit/versions/v2022_11_28/models/group_0391.py b/githubkit/versions/v2022_11_28/models/group_0391.py index 2258e2d95..f58661fe1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0391.py +++ b/githubkit/versions/v2022_11_28/models/group_0391.py @@ -9,31 +9,80 @@ from __future__ import annotations +from datetime import datetime +from typing import Any, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class Hovercard(GitHubModel): - """Hovercard +class GpgKey(GitHubModel): + """GPG Key - Hovercard + A unique encryption key """ - contexts: list[HovercardPropContextsItems] = Field() - - -class HovercardPropContextsItems(GitHubModel): - """HovercardPropContextsItems""" - - message: str = Field() - octicon: str = Field() - - -model_rebuild(Hovercard) -model_rebuild(HovercardPropContextsItems) + id: int = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + primary_key_id: Union[int, None] = Field() + key_id: str = Field() + public_key: str = Field() + emails: list[GpgKeyPropEmailsItems] = Field() + subkeys: list[GpgKeyPropSubkeysItems] = Field() + can_sign: bool = Field() + can_encrypt_comms: bool = Field() + can_encrypt_storage: bool = Field() + can_certify: bool = Field() + created_at: datetime = Field() + expires_at: Union[datetime, None] = Field() + revoked: bool = Field() + raw_key: Union[str, None] = Field() + + +class GpgKeyPropEmailsItems(GitHubModel): + """GpgKeyPropEmailsItems""" + + email: Missing[str] = Field(default=UNSET) + verified: Missing[bool] = Field(default=UNSET) + + +class GpgKeyPropSubkeysItems(GitHubModel): + """GpgKeyPropSubkeysItems""" + + id: Missing[int] = Field(default=UNSET) + primary_key_id: Missing[int] = Field(default=UNSET) + key_id: Missing[str] = Field(default=UNSET) + public_key: Missing[str] = Field(default=UNSET) + emails: Missing[list[GpgKeyPropSubkeysItemsPropEmailsItems]] = Field(default=UNSET) + subkeys: Missing[list[Any]] = Field(default=UNSET) + can_sign: Missing[bool] = Field(default=UNSET) + can_encrypt_comms: Missing[bool] = Field(default=UNSET) + can_encrypt_storage: Missing[bool] = Field(default=UNSET) + can_certify: Missing[bool] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + expires_at: Missing[Union[str, None]] = Field(default=UNSET) + raw_key: Missing[Union[str, None]] = Field(default=UNSET) + revoked: Missing[bool] = Field(default=UNSET) + + +class GpgKeyPropSubkeysItemsPropEmailsItems(GitHubModel): + """GpgKeyPropSubkeysItemsPropEmailsItems""" + + email: Missing[str] = Field(default=UNSET) + verified: Missing[bool] = Field(default=UNSET) + + +model_rebuild(GpgKey) +model_rebuild(GpgKeyPropEmailsItems) +model_rebuild(GpgKeyPropSubkeysItems) +model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) __all__ = ( - "Hovercard", - "HovercardPropContextsItems", + "GpgKey", + "GpgKeyPropEmailsItems", + "GpgKeyPropSubkeysItems", + "GpgKeyPropSubkeysItemsPropEmailsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0392.py b/githubkit/versions/v2022_11_28/models/group_0392.py index fd0411072..f75f4e54d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0392.py +++ b/githubkit/versions/v2022_11_28/models/group_0392.py @@ -9,21 +9,28 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class KeySimple(GitHubModel): - """Key Simple +class Key(GitHubModel): + """Key - Key Simple + Key """ - id: int = Field() key: str = Field() + id: int = Field() + url: str = Field() + title: str = Field() + created_at: datetime = Field() + verified: bool = Field() + read_only: bool = Field() -model_rebuild(KeySimple) +model_rebuild(Key) -__all__ = ("KeySimple",) +__all__ = ("Key",) diff --git a/githubkit/versions/v2022_11_28/models/group_0393.py b/githubkit/versions/v2022_11_28/models/group_0393.py index 0ac8d891b..cf85eed37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0393.py +++ b/githubkit/versions/v2022_11_28/models/group_0393.py @@ -18,34 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0052 import MarketplaceListingPlan -class EnterpriseWebhooks(GitHubModel): - """Enterprise - An enterprise on GitHub. Webhook payloads contain the `enterprise` property when - the webhook is configured - on an enterprise account or an organization that's part of an enterprise - account. For more information, - see "[About enterprise accounts](https://docs.github.com/admin/overview/about- - enterprise-accounts)." +class UserMarketplacePurchase(GitHubModel): + """User Marketplace Purchase + + User Marketplace Purchase """ - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the enterprise." - ) - html_url: str = Field() - website_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The enterprise's website URL." - ) - id: int = Field(description="Unique identifier of the enterprise") - node_id: str = Field() - name: str = Field(description="The name of the enterprise.") - slug: str = Field(description="The slug url identifier for the enterprise.") - created_at: Union[datetime, None] = Field() + billing_cycle: str = Field() + next_billing_date: Union[datetime, None] = Field() + unit_count: Union[int, None] = Field() + on_free_trial: bool = Field() + free_trial_ends_on: Union[datetime, None] = Field() updated_at: Union[datetime, None] = Field() - avatar_url: str = Field() + account: MarketplaceAccount = Field(title="Marketplace Account") + plan: MarketplaceListingPlan = Field( + title="Marketplace Listing Plan", description="Marketplace Listing Plan" + ) + + +class MarketplaceAccount(GitHubModel): + """Marketplace Account""" + + url: str = Field() + id: int = Field() + type: str = Field() + node_id: Missing[str] = Field(default=UNSET) + login: str = Field() + email: Missing[Union[str, None]] = Field(default=UNSET) + organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(EnterpriseWebhooks) +model_rebuild(UserMarketplacePurchase) +model_rebuild(MarketplaceAccount) -__all__ = ("EnterpriseWebhooks",) +__all__ = ( + "MarketplaceAccount", + "UserMarketplacePurchase", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0394.py b/githubkit/versions/v2022_11_28/models/group_0394.py index 8f356bd76..cae25bb86 100644 --- a/githubkit/versions/v2022_11_28/models/group_0394.py +++ b/githubkit/versions/v2022_11_28/models/group_0394.py @@ -14,20 +14,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class SimpleInstallation(GitHubModel): - """Simple Installation - - The GitHub App installation. Webhook payloads contain the `installation` - property when the event is configured - for and sent to a GitHub App. For more information, - see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating- - github-apps/registering-a-github-app/using-webhooks-with-github-apps)." +class SocialAccount(GitHubModel): + """Social account + + Social media account """ - id: int = Field(description="The ID of the installation.") - node_id: str = Field(description="The global node ID of the installation.") + provider: str = Field() + url: str = Field() -model_rebuild(SimpleInstallation) +model_rebuild(SocialAccount) -__all__ = ("SimpleInstallation",) +__all__ = ("SocialAccount",) diff --git a/githubkit/versions/v2022_11_28/models/group_0395.py b/githubkit/versions/v2022_11_28/models/group_0395.py index 29be5dd8a..e6313b836 100644 --- a/githubkit/versions/v2022_11_28/models/group_0395.py +++ b/githubkit/versions/v2022_11_28/models/group_0395.py @@ -9,36 +9,25 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrganizationSimpleWebhooks(GitHubModel): - """Organization Simple +class SshSigningKey(GitHubModel): + """SSH Signing Key - A GitHub organization. Webhook payloads contain the `organization` property when - the webhook is configured for an - organization, or when the event occurs from activity in a repository owned by an - organization. + A public SSH key used to sign Git commits """ - login: str = Field() + key: str = Field() id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() + title: str = Field() + created_at: datetime = Field() -model_rebuild(OrganizationSimpleWebhooks) +model_rebuild(SshSigningKey) -__all__ = ("OrganizationSimpleWebhooks",) +__all__ = ("SshSigningKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0396.py b/githubkit/versions/v2022_11_28/models/group_0396.py index f0b50da78..3c3baecb3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0396.py +++ b/githubkit/versions/v2022_11_28/models/group_0396.py @@ -10,371 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_0002 import SimpleUser -from .group_0018 import LicenseSimple +from .group_0020 import Repository -class RepositoryWebhooks(GitHubModel): - """Repository +class StarredRepository(GitHubModel): + """Starred Repository - The repository on GitHub where the event occurred. Webhook payloads contain the - `repository` property - when the event occurs from activity in a repository. + Starred Repository """ - id: int = Field(description="Unique identifier of the repository") - node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - forks: int = Field() - permissions: Missing[RepositoryWebhooksPropPermissions] = Field(default=UNSET) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field( - default=False, description="Whether the repository is private or public." - ) - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[list[str]] = Field(default=UNSET) - custom_properties: Missing[RepositoryWebhooksPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - template_repository: Missing[ - Union[RepositoryWebhooksPropTemplateRepository, None] - ] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - starred_at: Missing[str] = Field(default=UNSET) - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether anonymous git access is enabled for this repository", - ) + starred_at: datetime = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") -class RepositoryWebhooksPropPermissions(GitHubModel): - """RepositoryWebhooksPropPermissions""" +model_rebuild(StarredRepository) - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - - -class RepositoryWebhooksPropCustomProperties(ExtraGitHubModel): - """RepositoryWebhooksPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class RepositoryWebhooksPropTemplateRepository(GitHubModel): - """RepositoryWebhooksPropTemplateRepository""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( - default=UNSET - ) - private: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - language: Missing[str] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[RepositoryWebhooksPropTemplateRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) - - -model_rebuild(RepositoryWebhooks) -model_rebuild(RepositoryWebhooksPropPermissions) -model_rebuild(RepositoryWebhooksPropCustomProperties) -model_rebuild(RepositoryWebhooksPropTemplateRepository) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) - -__all__ = ( - "RepositoryWebhooks", - "RepositoryWebhooksPropCustomProperties", - "RepositoryWebhooksPropPermissions", - "RepositoryWebhooksPropTemplateRepository", - "RepositoryWebhooksPropTemplateRepositoryPropOwner", - "RepositoryWebhooksPropTemplateRepositoryPropPermissions", -) +__all__ = ("StarredRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0397.py b/githubkit/versions/v2022_11_28/models/group_0397.py index 25b8ec63a..2258e2d95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0397.py +++ b/githubkit/versions/v2022_11_28/models/group_0397.py @@ -9,81 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksRule(GitHubModel): - """branch protection rule +class Hovercard(GitHubModel): + """Hovercard - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/github/administering-a-repository/defining- - the-mergeability-of-pull-requests/about-protected-branches#about-branch- - protection-settings) applied to branches that match the name. Binary settings - are boolean. Multi-level configurations are one of `off`, `non_admins`, or - `everyone`. Actor and build lists are arrays of strings. + Hovercard """ - admin_enforced: bool = Field() - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - authorized_actor_names: list[str] = Field() - authorized_actors_only: bool = Field() - authorized_dismissal_actors_only: bool = Field() - create_protected: Missing[bool] = Field(default=UNSET) - created_at: datetime = Field() - dismiss_stale_reviews_on_push: bool = Field() - id: int = Field() - ignore_approvals_from_contributors: bool = Field() - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] = Field( - description="The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone." - ) - lock_allows_fork_sync: Missing[bool] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow users to pull changes from upstream when the branch is locked. This setting is only applicable for forks.", - ) - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() - name: str = Field() - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - repository_id: int = Field() - require_code_owner_review: bool = Field() - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it", - ) - required_approving_review_count: int = Field() - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - required_status_checks: list[str] = Field() - required_status_checks_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - signature_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - strict_required_status_checks_policy: bool = Field() - updated_at: datetime = Field() - - -model_rebuild(WebhooksRule) - -__all__ = ("WebhooksRule",) + contexts: list[HovercardPropContextsItems] = Field() + + +class HovercardPropContextsItems(GitHubModel): + """HovercardPropContextsItems""" + + message: str = Field() + octicon: str = Field() + + +model_rebuild(Hovercard) +model_rebuild(HovercardPropContextsItems) + +__all__ = ( + "Hovercard", + "HovercardPropContextsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0398.py b/githubkit/versions/v2022_11_28/models/group_0398.py index b478e17aa..fd0411072 100644 --- a/githubkit/versions/v2022_11_28/models/group_0398.py +++ b/githubkit/versions/v2022_11_28/models/group_0398.py @@ -9,67 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0008 import Integration -from .group_0056 import MinimalRepository -from .group_0183 import PullRequestMinimal -class SimpleCheckSuite(GitHubModel): - """SimpleCheckSuite +class KeySimple(GitHubModel): + """Key Simple - A suite of checks performed on the code of a given code change + Key Simple """ - after: Missing[Union[str, None]] = Field(default=UNSET) - app: Missing[Union[Integration, None]] = Field( - default=UNSET, - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field(default=UNSET) - head_sha: Missing[str] = Field( - default=UNSET, description="The SHA of the head commit that is being checked." - ) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - pull_requests: Missing[list[PullRequestMinimal]] = Field(default=UNSET) - repository: Missing[MinimalRepository] = Field( - default=UNSET, title="Minimal Repository", description="Minimal Repository" - ) - status: Missing[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + id: int = Field() + key: str = Field() -model_rebuild(SimpleCheckSuite) +model_rebuild(KeySimple) -__all__ = ("SimpleCheckSuite",) +__all__ = ("KeySimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0399.py b/githubkit/versions/v2022_11_28/models/group_0399.py index 073ee9c41..0ac8d891b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0399.py +++ b/githubkit/versions/v2022_11_28/models/group_0399.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,74 +18,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0008 import Integration -from .group_0183 import PullRequestMinimal -from .group_0210 import DeploymentSimple -from .group_0398 import SimpleCheckSuite +class EnterpriseWebhooks(GitHubModel): + """Enterprise -class CheckRunWithSimpleCheckSuite(GitHubModel): - """CheckRun - - A check performed on the code of a given code change + An enterprise on GitHub. Webhook payloads contain the `enterprise` property when + the webhook is configured + on an enterprise account or an organization that's part of an enterprise + account. For more information, + see "[About enterprise accounts](https://docs.github.com/admin/overview/about- + enterprise-accounts)." """ - app: Union[None, Integration, None] = Field() - check_suite: SimpleCheckSuite = Field( - description="A suite of checks performed on the code of a given code change" - ) - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - deployment: Missing[DeploymentSimple] = Field( - default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the enterprise." ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check.") - node_id: str = Field() - output: CheckRunWithSimpleCheckSuitePropOutput = Field() - pull_requests: list[PullRequestMinimal] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "pending"] = Field( - description="The phase of the lifecycle that the check is currently in." + website_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The enterprise's website URL." ) - url: str = Field() - - -class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): - """CheckRunWithSimpleCheckSuitePropOutput""" - - annotations_count: int = Field() - annotations_url: str = Field() - summary: Union[str, None] = Field() - text: Union[str, None] = Field() - title: Union[str, None] = Field() + id: int = Field(description="Unique identifier of the enterprise") + node_id: str = Field() + name: str = Field(description="The name of the enterprise.") + slug: str = Field(description="The slug url identifier for the enterprise.") + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + avatar_url: str = Field() -model_rebuild(CheckRunWithSimpleCheckSuite) -model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) +model_rebuild(EnterpriseWebhooks) -__all__ = ( - "CheckRunWithSimpleCheckSuite", - "CheckRunWithSimpleCheckSuitePropOutput", -) +__all__ = ("EnterpriseWebhooks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0400.py b/githubkit/versions/v2022_11_28/models/group_0400.py index 63a38edef..8f356bd76 100644 --- a/githubkit/versions/v2022_11_28/models/group_0400.py +++ b/githubkit/versions/v2022_11_28/models/group_0400.py @@ -9,34 +9,25 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksDeployKey(GitHubModel): - """WebhooksDeployKey +class SimpleInstallation(GitHubModel): + """Simple Installation - The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- - deploy-key) resource. + The GitHub App installation. Webhook payloads contain the `installation` + property when the event is configured + for and sent to a GitHub App. For more information, + see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating- + github-apps/registering-a-github-app/using-webhooks-with-github-apps)." """ - added_by: Missing[Union[str, None]] = Field(default=UNSET) - created_at: str = Field() - id: int = Field() - key: str = Field() - last_used: Missing[Union[str, None]] = Field(default=UNSET) - read_only: bool = Field() - title: str = Field() - url: str = Field() - verified: bool = Field() - enabled: Missing[bool] = Field(default=UNSET) + id: int = Field(description="The ID of the installation.") + node_id: str = Field(description="The global node ID of the installation.") -model_rebuild(WebhooksDeployKey) +model_rebuild(SimpleInstallation) -__all__ = ("WebhooksDeployKey",) +__all__ = ("SimpleInstallation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0401.py b/githubkit/versions/v2022_11_28/models/group_0401.py index 8e1eed602..29be5dd8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0401.py +++ b/githubkit/versions/v2022_11_28/models/group_0401.py @@ -9,28 +9,36 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class WebhooksWorkflow(GitHubModel): - """Workflow""" +class OrganizationSimpleWebhooks(GitHubModel): + """Organization Simple - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() + A GitHub organization. Webhook payloads contain the `organization` property when + the webhook is configured for an + organization, or when the event occurs from activity in a repository owned by an + organization. + """ + + login: str = Field() id: int = Field() - name: str = Field() node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() -model_rebuild(WebhooksWorkflow) +model_rebuild(OrganizationSimpleWebhooks) -__all__ = ("WebhooksWorkflow",) +__all__ = ("OrganizationSimpleWebhooks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0402.py b/githubkit/versions/v2022_11_28/models/group_0402.py index a9b088555..e9224aa34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0402.py +++ b/githubkit/versions/v2022_11_28/models/group_0402.py @@ -9,80 +9,372 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple -class WebhooksApprover(GitHubModel): - """WebhooksApprover""" - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class RepositoryWebhooks(GitHubModel): + """Repository + + The repository on GitHub where the event occurred. Webhook payloads contain the + `repository` property + when the event occurs from activity in a repository. + """ + + id: int = Field(description="Unique identifier of the repository") + node_id: str = Field() + name: str = Field(description="The name of the repository.") + full_name: str = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + forks: int = Field() + permissions: Missing[RepositoryWebhooksPropPermissions] = Field(default=UNSET) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field( + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + ) + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[list[str]] = Field(default=UNSET) + custom_properties: Missing[RepositoryWebhooksPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + template_repository: Missing[ + Union[RepositoryWebhooksPropTemplateRepository, None] + ] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + starred_at: Missing[str] = Field(default=UNSET) + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether anonymous git access is enabled for this repository", + ) + + +class RepositoryWebhooksPropPermissions(GitHubModel): + """RepositoryWebhooksPropPermissions""" + + admin: bool = Field() + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + +class RepositoryWebhooksPropCustomProperties(ExtraGitHubModel): + """RepositoryWebhooksPropCustomProperties -class WebhooksReviewersItems(GitHubModel): - """WebhooksReviewersItems""" + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ - reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( - default=UNSET, title="User" + +class RepositoryWebhooksPropTemplateRepository(GitHubModel): + """RepositoryWebhooksPropTemplateRepository""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( + default=UNSET ) - type: Missing[Literal["User"]] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + language: Missing[str] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + permissions: Missing[RepositoryWebhooksPropTemplateRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_update_branch: Missing[bool] = Field(default=UNSET) + use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) -class WebhooksReviewersItemsPropReviewer(GitHubModel): - """User""" +class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): + """RepositoryWebhooksPropTemplateRepositoryPropOwner""" + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksApprover) -model_rebuild(WebhooksReviewersItems) -model_rebuild(WebhooksReviewersItemsPropReviewer) +class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): + """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" + + admin: Missing[bool] = Field(default=UNSET) + maintain: Missing[bool] = Field(default=UNSET) + push: Missing[bool] = Field(default=UNSET) + triage: Missing[bool] = Field(default=UNSET) + pull: Missing[bool] = Field(default=UNSET) + + +model_rebuild(RepositoryWebhooks) +model_rebuild(RepositoryWebhooksPropPermissions) +model_rebuild(RepositoryWebhooksPropCustomProperties) +model_rebuild(RepositoryWebhooksPropTemplateRepository) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) __all__ = ( - "WebhooksApprover", - "WebhooksReviewersItems", - "WebhooksReviewersItemsPropReviewer", + "RepositoryWebhooks", + "RepositoryWebhooksPropCustomProperties", + "RepositoryWebhooksPropPermissions", + "RepositoryWebhooksPropTemplateRepository", + "RepositoryWebhooksPropTemplateRepositoryPropOwner", + "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0403.py b/githubkit/versions/v2022_11_28/models/group_0403.py index 291bcddcd..25b8ec63a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0403.py +++ b/githubkit/versions/v2022_11_28/models/group_0403.py @@ -9,24 +9,81 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class WebhooksRule(GitHubModel): + """branch protection rule -class WebhooksWorkflowJobRun(GitHubModel): - """WebhooksWorkflowJobRun""" + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/github/administering-a-repository/defining- + the-mergeability-of-pull-requests/about-protected-branches#about-branch- + protection-settings) applied to branches that match the name. Binary settings + are boolean. Multi-level configurations are one of `off`, `non_admins`, or + `everyone`. Actor and build lists are arrays of strings. + """ - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() - html_url: str = Field() + admin_enforced: bool = Field() + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + authorized_actor_names: list[str] = Field() + authorized_actors_only: bool = Field() + authorized_dismissal_actors_only: bool = Field() + create_protected: Missing[bool] = Field(default=UNSET) + created_at: datetime = Field() + dismiss_stale_reviews_on_push: bool = Field() id: int = Field() - name: None = Field() - status: str = Field() - updated_at: str = Field() + ignore_approvals_from_contributors: bool = Field() + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] = Field( + description="The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone." + ) + lock_allows_fork_sync: Missing[bool] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow users to pull changes from upstream when the branch is locked. This setting is only applicable for forks.", + ) + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() + name: str = Field() + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + repository_id: int = Field() + require_code_owner_review: bool = Field() + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it", + ) + required_approving_review_count: int = Field() + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + required_status_checks: list[str] = Field() + required_status_checks_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + signature_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + strict_required_status_checks_policy: bool = Field() + updated_at: datetime = Field() -model_rebuild(WebhooksWorkflowJobRun) +model_rebuild(WebhooksRule) -__all__ = ("WebhooksWorkflowJobRun",) +__all__ = ("WebhooksRule",) diff --git a/githubkit/versions/v2022_11_28/models/group_0404.py b/githubkit/versions/v2022_11_28/models/group_0404.py index 13da347fc..3bb9ad279 100644 --- a/githubkit/versions/v2022_11_28/models/group_0404.py +++ b/githubkit/versions/v2022_11_28/models/group_0404.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,34 +18,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0057 import MinimalRepository +from .group_0189 import PullRequestMinimal -class WebhooksUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + +class SimpleCheckSuite(GitHubModel): + """SimpleCheckSuite + + A suite of checks performed on the code of a given code change + """ + + after: Missing[Union[str, None]] = Field(default=UNSET) + app: Missing[Union[Integration, None]] = Field( + default=UNSET, + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field(default=UNSET) + head_sha: Missing[str] = Field( + default=UNSET, description="The SHA of the head commit that is being checked." + ) + id: Missing[int] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + pull_requests: Missing[list[PullRequestMinimal]] = Field(default=UNSET) + repository: Missing[MinimalRepository] = Field( + default=UNSET, title="Minimal Repository", description="Minimal Repository" + ) + status: Missing[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksUser) +model_rebuild(SimpleCheckSuite) -__all__ = ("WebhooksUser",) +__all__ = ("SimpleCheckSuite",) diff --git a/githubkit/versions/v2022_11_28/models/group_0405.py b/githubkit/versions/v2022_11_28/models/group_0405.py index ff2aa46c5..6a60b0638 100644 --- a/githubkit/versions/v2022_11_28/models/group_0405.py +++ b/githubkit/versions/v2022_11_28/models/group_0405.py @@ -18,87 +18,74 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0189 import PullRequestMinimal +from .group_0216 import DeploymentSimple +from .group_0404 import SimpleCheckSuite -class WebhooksAnswer(GitHubModel): - """WebhooksAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + +class CheckRunWithSimpleCheckSuite(GitHubModel): + """CheckRun + + A check performed on the code of a given code change + """ + + app: Union[None, Integration, None] = Field() + check_suite: SimpleCheckSuite = Field( + description="A suite of checks performed on the code of a given code change" + ) + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + deployment: Missing[DeploymentSimple] = Field( + default=UNSET, + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", ) - body: str = Field() - child_comment_count: int = Field() - created_at: datetime = Field() - discussion_id: int = Field() + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") html_url: str = Field() - id: int = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check.") node_id: str = Field() - parent_id: None = Field() - reactions: Missing[WebhooksAnswerPropReactions] = Field( - default=UNSET, title="Reactions" + output: CheckRunWithSimpleCheckSuitePropOutput = Field() + pull_requests: list[PullRequestMinimal] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "pending"] = Field( + description="The phase of the lifecycle that the check is currently in." ) - repository_url: str = Field() - updated_at: datetime = Field() - user: Union[WebhooksAnswerPropUser, None] = Field(title="User") - - -class WebhooksAnswerPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() url: str = Field() -class WebhooksAnswerPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksAnswer) -model_rebuild(WebhooksAnswerPropReactions) -model_rebuild(WebhooksAnswerPropUser) +class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): + """CheckRunWithSimpleCheckSuitePropOutput""" + + annotations_count: int = Field() + annotations_url: str = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + title: Union[str, None] = Field() + + +model_rebuild(CheckRunWithSimpleCheckSuite) +model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) __all__ = ( - "WebhooksAnswer", - "WebhooksAnswerPropReactions", - "WebhooksAnswerPropUser", + "CheckRunWithSimpleCheckSuite", + "CheckRunWithSimpleCheckSuitePropOutput", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0406.py b/githubkit/versions/v2022_11_28/models/group_0406.py index 3c0d2a361..63a38edef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0406.py +++ b/githubkit/versions/v2022_11_28/models/group_0406.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,173 +18,25 @@ from githubkit.utils import UNSET -class Discussion(GitHubModel): - """Discussion +class WebhooksDeployKey(GitHubModel): + """WebhooksDeployKey - A Discussion in a repository. + The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- + deploy-key) resource. """ - active_lock_reason: Union[str, None] = Field() - answer_chosen_at: Union[str, None] = Field() - answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") - answer_html_url: Union[str, None] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - category: DiscussionPropCategory = Field() - comments: int = Field() - created_at: datetime = Field() - html_url: str = Field() + added_by: Missing[Union[str, None]] = Field(default=UNSET) + created_at: str = Field() id: int = Field() - locked: bool = Field() - node_id: str = Field() - number: int = Field() - reactions: Missing[DiscussionPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() - state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( - description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." - ) - state_reason: Union[ - None, Literal["resolved", "outdated", "duplicate", "reopened"] - ] = Field(description="The reason for the current state") - timeline_url: Missing[str] = Field(default=UNSET) + key: str = Field() + last_used: Missing[Union[str, None]] = Field(default=UNSET) + read_only: bool = Field() title: str = Field() - updated_at: datetime = Field() - user: Union[DiscussionPropUser, None] = Field(title="User") - labels: Missing[list[Label]] = Field(default=UNSET) - - -class Label(GitHubModel): - """Label - - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). - """ - - id: int = Field(description="Unique identifier for the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - name: str = Field(description="The name of the label.") - description: Union[str, None] = Field( - description="Optional description of the label, such as its purpose." - ) - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field( - description="Whether this label comes by default in a new repository." - ) - - -class DiscussionPropAnswerChosenBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class DiscussionPropCategory(GitHubModel): - """DiscussionPropCategory""" - - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() - id: int = Field() - is_answerable: bool = Field() - name: str = Field() - node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() - - -class DiscussionPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() url: str = Field() + verified: bool = Field() + enabled: Missing[bool] = Field(default=UNSET) -class DiscussionPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(Discussion) -model_rebuild(Label) -model_rebuild(DiscussionPropAnswerChosenBy) -model_rebuild(DiscussionPropCategory) -model_rebuild(DiscussionPropReactions) -model_rebuild(DiscussionPropUser) +model_rebuild(WebhooksDeployKey) -__all__ = ( - "Discussion", - "DiscussionPropAnswerChosenBy", - "DiscussionPropCategory", - "DiscussionPropReactions", - "DiscussionPropUser", - "Label", -) +__all__ = ("WebhooksDeployKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0407.py b/githubkit/versions/v2022_11_28/models/group_0407.py index 2e01fc5dd..8e1eed602 100644 --- a/githubkit/versions/v2022_11_28/models/group_0407.py +++ b/githubkit/versions/v2022_11_28/models/group_0407.py @@ -9,93 +9,28 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksComment(GitHubModel): - """WebhooksComment""" +class WebhooksWorkflow(GitHubModel): + """Workflow""" - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() - created_at: str = Field() - discussion_id: int = Field() + badge_url: str = Field() + created_at: datetime = Field() html_url: str = Field() id: int = Field() + name: str = Field() node_id: str = Field() - parent_id: Union[int, None] = Field() - reactions: WebhooksCommentPropReactions = Field(title="Reactions") - repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhooksCommentPropUser, None] = Field(title="User") - - -class WebhooksCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + path: str = Field() + state: str = Field() + updated_at: datetime = Field() url: str = Field() -class WebhooksCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksComment) -model_rebuild(WebhooksCommentPropReactions) -model_rebuild(WebhooksCommentPropUser) +model_rebuild(WebhooksWorkflow) -__all__ = ( - "WebhooksComment", - "WebhooksCommentPropReactions", - "WebhooksCommentPropUser", -) +__all__ = ("WebhooksWorkflow",) diff --git a/githubkit/versions/v2022_11_28/models/group_0408.py b/githubkit/versions/v2022_11_28/models/group_0408.py index 6e6effd19..a9b088555 100644 --- a/githubkit/versions/v2022_11_28/models/group_0408.py +++ b/githubkit/versions/v2022_11_28/models/group_0408.py @@ -9,27 +9,80 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class WebhooksLabel(GitHubModel): - """Label""" +class WebhooksApprover(GitHubModel): + """WebhooksApprover""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewersItems(GitHubModel): + """WebhooksReviewersItems""" + + reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( + default=UNSET, title="User" ) - default: bool = Field() - description: Union[str, None] = Field() + type: Missing[Literal["User"]] = Field(default=UNSET) + + +class WebhooksReviewersItemsPropReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksLabel) +model_rebuild(WebhooksApprover) +model_rebuild(WebhooksReviewersItems) +model_rebuild(WebhooksReviewersItemsPropReviewer) -__all__ = ("WebhooksLabel",) +__all__ = ( + "WebhooksApprover", + "WebhooksReviewersItems", + "WebhooksReviewersItemsPropReviewer", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0409.py b/githubkit/versions/v2022_11_28/models/group_0409.py index ba770b6b0..291bcddcd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0409.py +++ b/githubkit/versions/v2022_11_28/models/group_0409.py @@ -14,16 +14,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksRepositoriesItems(GitHubModel): - """WebhooksRepositoriesItems""" +class WebhooksWorkflowJobRun(GitHubModel): + """WebhooksWorkflowJobRun""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() + id: int = Field() + name: None = Field() + status: str = Field() + updated_at: str = Field() -model_rebuild(WebhooksRepositoriesItems) +model_rebuild(WebhooksWorkflowJobRun) -__all__ = ("WebhooksRepositoriesItems",) +__all__ = ("WebhooksWorkflowJobRun",) diff --git a/githubkit/versions/v2022_11_28/models/group_0410.py b/githubkit/versions/v2022_11_28/models/group_0410.py index f17279ee4..13da347fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0410.py +++ b/githubkit/versions/v2022_11_28/models/group_0410.py @@ -9,21 +9,42 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class WebhooksRepositoriesAddedItems(GitHubModel): - """WebhooksRepositoriesAddedItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -model_rebuild(WebhooksRepositoriesAddedItems) - -__all__ = ("WebhooksRepositoriesAddedItems",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhooksUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksUser) + +__all__ = ("WebhooksUser",) diff --git a/githubkit/versions/v2022_11_28/models/group_0411.py b/githubkit/versions/v2022_11_28/models/group_0411.py index a26c768e8..ff2aa46c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0411.py +++ b/githubkit/versions/v2022_11_28/models/group_0411.py @@ -18,15 +18,9 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0008 import Integration - -class WebhooksIssueComment(GitHubModel): - """issue comment - - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ +class WebhooksAnswer(GitHubModel): + """WebhooksAnswer""" author_association: Literal[ "COLLABORATOR", @@ -41,23 +35,23 @@ class WebhooksIssueComment(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: str = Field(description="Contents of the issue comment") + body: str = Field() + child_comment_count: int = Field() created_at: datetime = Field() + discussion_id: int = Field() html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() + id: int = Field() node_id: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + parent_id: None = Field() + reactions: Missing[WebhooksAnswerPropReactions] = Field( + default=UNSET, title="Reactions" ) - reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") + repository_url: str = Field() updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhooksIssueCommentPropUser, None] = Field(title="User") + user: Union[WebhooksAnswerPropUser, None] = Field(title="User") -class WebhooksIssueCommentPropReactions(GitHubModel): +class WebhooksAnswerPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -72,7 +66,7 @@ class WebhooksIssueCommentPropReactions(GitHubModel): url: str = Field() -class WebhooksIssueCommentPropUser(GitHubModel): +class WebhooksAnswerPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -94,19 +88,17 @@ class WebhooksIssueCommentPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksIssueComment) -model_rebuild(WebhooksIssueCommentPropReactions) -model_rebuild(WebhooksIssueCommentPropUser) +model_rebuild(WebhooksAnswer) +model_rebuild(WebhooksAnswerPropReactions) +model_rebuild(WebhooksAnswerPropUser) __all__ = ( - "WebhooksIssueComment", - "WebhooksIssueCommentPropReactions", - "WebhooksIssueCommentPropUser", + "WebhooksAnswer", + "WebhooksAnswerPropReactions", + "WebhooksAnswerPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0412.py b/githubkit/versions/v2022_11_28/models/group_0412.py index 9e7b45276..3c0d2a361 100644 --- a/githubkit/versions/v2022_11_28/models/group_0412.py +++ b/githubkit/versions/v2022_11_28/models/group_0412.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,25 +19,173 @@ from githubkit.utils import UNSET -class WebhooksChanges(GitHubModel): - """WebhooksChanges +class Discussion(GitHubModel): + """Discussion - The changes to the comment. + A Discussion in a repository. """ - body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) - - -class WebhooksChangesPropBody(GitHubModel): - """WebhooksChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - + active_lock_reason: Union[str, None] = Field() + answer_chosen_at: Union[str, None] = Field() + answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") + answer_html_url: Union[str, None] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + category: DiscussionPropCategory = Field() + comments: int = Field() + created_at: datetime = Field() + html_url: str = Field() + id: int = Field() + locked: bool = Field() + node_id: str = Field() + number: int = Field() + reactions: Missing[DiscussionPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( + description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." + ) + state_reason: Union[ + None, Literal["resolved", "outdated", "duplicate", "reopened"] + ] = Field(description="The reason for the current state") + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field() + updated_at: datetime = Field() + user: Union[DiscussionPropUser, None] = Field(title="User") + labels: Missing[list[Label]] = Field(default=UNSET) + + +class Label(GitHubModel): + """Label + + Color-coded labels help you categorize and filter your issues (just like labels + in Gmail). + """ -model_rebuild(WebhooksChanges) -model_rebuild(WebhooksChangesPropBody) + id: int = Field(description="Unique identifier for the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + name: str = Field(description="The name of the label.") + description: Union[str, None] = Field( + description="Optional description of the label, such as its purpose." + ) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field( + description="Whether this label comes by default in a new repository." + ) + + +class DiscussionPropAnswerChosenBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class DiscussionPropCategory(GitHubModel): + """DiscussionPropCategory""" + + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() + + +class DiscussionPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class DiscussionPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(Discussion) +model_rebuild(Label) +model_rebuild(DiscussionPropAnswerChosenBy) +model_rebuild(DiscussionPropCategory) +model_rebuild(DiscussionPropReactions) +model_rebuild(DiscussionPropUser) __all__ = ( - "WebhooksChanges", - "WebhooksChangesPropBody", + "Discussion", + "DiscussionPropAnswerChosenBy", + "DiscussionPropCategory", + "DiscussionPropReactions", + "DiscussionPropUser", + "Label", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0413.py b/githubkit/versions/v2022_11_28/models/group_0413.py index 0bf7cb150..2e01fc5dd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0413.py +++ b/githubkit/versions/v2022_11_28/models/group_0413.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,19 +18,9 @@ from githubkit.utils import UNSET -class WebhooksIssue(GitHubModel): - """Issue +class WebhooksComment(GitHubModel): + """WebhooksComment""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhooksIssuePropAssigneesItems, None]] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -45,291 +34,21 @@ class WebhooksIssue(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() html_url: str = Field() id: int = Field() - labels: Missing[list[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssuePropReactions = Field(title="Reactions") + parent_id: Union[int, None] = Field() + reactions: WebhooksCommentPropReactions = Field(title="Reactions") repository_url: str = Field() - sub_issues_summary: Missing[WebhooksIssuePropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssuePropUser, None] = Field(title="User") - - -class WebhooksIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksIssuePropMilestonePropCreator(GitHubModel): - """User""" + updated_at: str = Field() + user: Union[WebhooksCommentPropUser, None] = Field(title="User") - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksIssuePropPerformedViaGithubAppPropPermissions] = Field( - default=UNSET, description="The set of permissions for the GitHub app" - ) - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhooksIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhooksIssuePropPullRequest(GitHubModel): - """WebhooksIssuePropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropReactions(GitHubModel): +class WebhooksCommentPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -344,15 +63,7 @@ class WebhooksIssuePropReactions(GitHubModel): url: str = Field() -class WebhooksIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhooksIssuePropUser(GitHubModel): +class WebhooksCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -374,39 +85,17 @@ class WebhooksIssuePropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksIssue) -model_rebuild(WebhooksIssuePropAssignee) -model_rebuild(WebhooksIssuePropAssigneesItems) -model_rebuild(WebhooksIssuePropLabelsItems) -model_rebuild(WebhooksIssuePropMilestone) -model_rebuild(WebhooksIssuePropMilestonePropCreator) -model_rebuild(WebhooksIssuePropPerformedViaGithubApp) -model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhooksIssuePropPullRequest) -model_rebuild(WebhooksIssuePropReactions) -model_rebuild(WebhooksIssuePropSubIssuesSummary) -model_rebuild(WebhooksIssuePropUser) +model_rebuild(WebhooksComment) +model_rebuild(WebhooksCommentPropReactions) +model_rebuild(WebhooksCommentPropUser) __all__ = ( - "WebhooksIssue", - "WebhooksIssuePropAssignee", - "WebhooksIssuePropAssigneesItems", - "WebhooksIssuePropLabelsItems", - "WebhooksIssuePropMilestone", - "WebhooksIssuePropMilestonePropCreator", - "WebhooksIssuePropPerformedViaGithubApp", - "WebhooksIssuePropPerformedViaGithubAppPropOwner", - "WebhooksIssuePropPerformedViaGithubAppPropPermissions", - "WebhooksIssuePropPullRequest", - "WebhooksIssuePropReactions", - "WebhooksIssuePropSubIssuesSummary", - "WebhooksIssuePropUser", + "WebhooksComment", + "WebhooksCommentPropReactions", + "WebhooksCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0414.py b/githubkit/versions/v2022_11_28/models/group_0414.py index c66b591f6..6e6effd19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0414.py +++ b/githubkit/versions/v2022_11_28/models/group_0414.py @@ -9,73 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksMilestone(GitHubModel): - """Milestone +class WebhooksLabel(GitHubModel): + """Label""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksMilestonePropCreator, None] = Field(title="User") + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + url: str = Field(description="URL for the label") -model_rebuild(WebhooksMilestone) -model_rebuild(WebhooksMilestonePropCreator) +model_rebuild(WebhooksLabel) -__all__ = ( - "WebhooksMilestone", - "WebhooksMilestonePropCreator", -) +__all__ = ("WebhooksLabel",) diff --git a/githubkit/versions/v2022_11_28/models/group_0415.py b/githubkit/versions/v2022_11_28/models/group_0415.py index 32ec39cca..ba770b6b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0415.py +++ b/githubkit/versions/v2022_11_28/models/group_0415.py @@ -9,394 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class WebhooksIssue2(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhooksIssue2PropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhooksIssue2PropLabelsItems]] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssue2PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssue2PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhooksIssue2PropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssue2PropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhooksIssue2PropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssue2PropUser, None] = Field(title="User") - - -class WebhooksIssue2PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksIssue2PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - -class WebhooksIssue2PropMilestonePropCreator(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhooksRepositoriesItems(GitHubModel): + """WebhooksRepositoriesItems""" - -class WebhooksIssue2PropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") node_id: str = Field() - owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksIssue2PropPerformedViaGithubAppPropPermissions] = ( - Field(default=UNSET, description="The set of permissions for the GitHub app") - ) - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhooksIssue2PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhooksIssue2PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhooksIssue2PropPullRequest(GitHubModel): - """WebhooksIssue2PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksIssue2PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhooksIssue2PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhooksIssue2) -model_rebuild(WebhooksIssue2PropAssignee) -model_rebuild(WebhooksIssue2PropAssigneesItems) -model_rebuild(WebhooksIssue2PropLabelsItems) -model_rebuild(WebhooksIssue2PropMilestone) -model_rebuild(WebhooksIssue2PropMilestonePropCreator) -model_rebuild(WebhooksIssue2PropPerformedViaGithubApp) -model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropOwner) -model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhooksIssue2PropPullRequest) -model_rebuild(WebhooksIssue2PropReactions) -model_rebuild(WebhooksIssue2PropSubIssuesSummary) -model_rebuild(WebhooksIssue2PropUser) +model_rebuild(WebhooksRepositoriesItems) -__all__ = ( - "WebhooksIssue2", - "WebhooksIssue2PropAssignee", - "WebhooksIssue2PropAssigneesItems", - "WebhooksIssue2PropLabelsItems", - "WebhooksIssue2PropMilestone", - "WebhooksIssue2PropMilestonePropCreator", - "WebhooksIssue2PropPerformedViaGithubApp", - "WebhooksIssue2PropPerformedViaGithubAppPropOwner", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", - "WebhooksIssue2PropPullRequest", - "WebhooksIssue2PropReactions", - "WebhooksIssue2PropSubIssuesSummary", - "WebhooksIssue2PropUser", -) +__all__ = ("WebhooksRepositoriesItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0416.py b/githubkit/versions/v2022_11_28/models/group_0416.py index 6db58fe17..f17279ee4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0416.py +++ b/githubkit/versions/v2022_11_28/models/group_0416.py @@ -9,44 +9,21 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class WebhooksUserMannequin(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksUserMannequin) - -__all__ = ("WebhooksUserMannequin",) + + +class WebhooksRepositoriesAddedItems(GitHubModel): + """WebhooksRepositoriesAddedItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") + + +model_rebuild(WebhooksRepositoriesAddedItems) + +__all__ = ("WebhooksRepositoriesAddedItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0417.py b/githubkit/versions/v2022_11_28/models/group_0417.py index f78d27107..c81ac8eaa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0417.py +++ b/githubkit/versions/v2022_11_28/models/group_0417.py @@ -9,55 +9,104 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class WebhooksMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhooksMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Union[str, None] = Field() - on_free_trial: bool = Field() - plan: WebhooksMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhooksMarketplacePurchasePropAccount(GitHubModel): - """WebhooksMarketplacePurchasePropAccount""" - - id: int = Field() - login: str = Field() +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0010 import Integration + + +class WebhooksIssueComment(GitHubModel): + """issue comment + + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="Contents of the issue comment") + created_at: datetime = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhooksMarketplacePurchasePropPlan(GitHubModel): - """WebhooksMarketplacePurchasePropPlan""" - - bullets: list[Union[str, None]] = Field() - description: str = Field() - has_free_trial: bool = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhooksIssueCommentPropUser, None] = Field(title="User") + + +class WebhooksIssueCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssueCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhooksMarketplacePurchase) -model_rebuild(WebhooksMarketplacePurchasePropAccount) -model_rebuild(WebhooksMarketplacePurchasePropPlan) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksIssueComment) +model_rebuild(WebhooksIssueCommentPropReactions) +model_rebuild(WebhooksIssueCommentPropUser) __all__ = ( - "WebhooksMarketplacePurchase", - "WebhooksMarketplacePurchasePropAccount", - "WebhooksMarketplacePurchasePropPlan", + "WebhooksIssueComment", + "WebhooksIssueCommentPropReactions", + "WebhooksIssueCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0418.py b/githubkit/versions/v2022_11_28/models/group_0418.py index 94a837d69..9e7b45276 100644 --- a/githubkit/versions/v2022_11_28/models/group_0418.py +++ b/githubkit/versions/v2022_11_28/models/group_0418.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,48 +16,25 @@ from githubkit.utils import UNSET -class WebhooksPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhooksPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhooksPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - +class WebhooksChanges(GitHubModel): + """WebhooksChanges -class WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): - """WebhooksPreviousMarketplacePurchasePropAccount""" + The changes to the comment. + """ - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) -class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): - """WebhooksPreviousMarketplacePurchasePropPlan""" +class WebhooksChangesPropBody(GitHubModel): + """WebhooksChangesPropBody""" - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + from_: str = Field(alias="from", description="The previous version of the body.") -model_rebuild(WebhooksPreviousMarketplacePurchase) -model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) -model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) +model_rebuild(WebhooksChanges) +model_rebuild(WebhooksChangesPropBody) __all__ = ( - "WebhooksPreviousMarketplacePurchase", - "WebhooksPreviousMarketplacePurchasePropAccount", - "WebhooksPreviousMarketplacePurchasePropPlan", + "WebhooksChanges", + "WebhooksChangesPropBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0419.py b/githubkit/versions/v2022_11_28/models/group_0419.py index 7c9805f89..0bf7cb150 100644 --- a/githubkit/versions/v2022_11_28/models/group_0419.py +++ b/githubkit/versions/v2022_11_28/models/group_0419.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,62 +19,394 @@ from githubkit.utils import UNSET -class WebhooksTeam(GitHubModel): - """Team +class WebhooksIssue(GitHubModel): + """Issue - Groups of organization members that gives permissions on specified repositories. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhooksIssuePropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhooksIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhooksIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhooksIssuePropSubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssuePropUser, None] = Field(title="User") + + +class WebhooksIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksTeamPropParent(GitHubModel): - """WebhooksTeamPropParent""" +class WebhooksIssuePropLabelsItems(GitHubModel): + """Label""" - description: Union[str, None] = Field(description="Description of the team") + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhooksIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksIssuePropPerformedViaGithubAppPropPermissions] = Field( + default=UNSET, description="The set of permissions for the GitHub app" + ) + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhooksIssuePropPullRequest(GitHubModel): + """WebhooksIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhooksIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksTeam) -model_rebuild(WebhooksTeamPropParent) +model_rebuild(WebhooksIssue) +model_rebuild(WebhooksIssuePropAssignee) +model_rebuild(WebhooksIssuePropAssigneesItems) +model_rebuild(WebhooksIssuePropLabelsItems) +model_rebuild(WebhooksIssuePropMilestone) +model_rebuild(WebhooksIssuePropMilestonePropCreator) +model_rebuild(WebhooksIssuePropPerformedViaGithubApp) +model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhooksIssuePropPullRequest) +model_rebuild(WebhooksIssuePropReactions) +model_rebuild(WebhooksIssuePropSubIssuesSummary) +model_rebuild(WebhooksIssuePropUser) __all__ = ( - "WebhooksTeam", - "WebhooksTeamPropParent", + "WebhooksIssue", + "WebhooksIssuePropAssignee", + "WebhooksIssuePropAssigneesItems", + "WebhooksIssuePropLabelsItems", + "WebhooksIssuePropMilestone", + "WebhooksIssuePropMilestonePropCreator", + "WebhooksIssuePropPerformedViaGithubApp", + "WebhooksIssuePropPerformedViaGithubAppPropOwner", + "WebhooksIssuePropPerformedViaGithubAppPropPermissions", + "WebhooksIssuePropPullRequest", + "WebhooksIssuePropReactions", + "WebhooksIssuePropSubIssuesSummary", + "WebhooksIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0420.py b/githubkit/versions/v2022_11_28/models/group_0420.py index 37328ad15..c66b591f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0420.py +++ b/githubkit/versions/v2022_11_28/models/group_0420.py @@ -9,28 +9,73 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0184 import SimpleCommit +from githubkit.typing import Missing +from githubkit.utils import UNSET -class MergeGroup(GitHubModel): - """Merge Group +class WebhooksMilestone(GitHubModel): + """Milestone - A group of pull requests that the merge queue has grouped together to be merged. + A collection of related issues and pull requests. """ - head_sha: str = Field(description="The SHA of the merge group.") - head_ref: str = Field(description="The full ref of the merge group.") - base_sha: str = Field(description="The SHA of the merge group's parent commit.") - base_ref: str = Field( - description="The full ref of the branch the merge group will be merged into." + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhooksMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(MergeGroup) +model_rebuild(WebhooksMilestone) +model_rebuild(WebhooksMilestonePropCreator) -__all__ = ("MergeGroup",) +__all__ = ( + "WebhooksMilestone", + "WebhooksMilestonePropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0421.py b/githubkit/versions/v2022_11_28/models/group_0421.py index 39a630595..32ec39cca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0421.py +++ b/githubkit/versions/v2022_11_28/models/group_0421.py @@ -19,7 +19,143 @@ from githubkit.utils import UNSET -class WebhooksMilestone3(GitHubModel): +class WebhooksIssue2(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhooksIssue2PropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhooksIssue2PropLabelsItems]] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhooksIssue2PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhooksIssue2PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhooksIssue2PropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssue2PropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhooksIssue2PropSubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssue2PropUser, None] = Field(title="User") + + +class WebhooksIssue2PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksIssue2PropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -28,7 +164,7 @@ class WebhooksMilestone3(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhooksMilestone3PropCreator, None] = Field(title="User") + creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -43,7 +179,172 @@ class WebhooksMilestone3(GitHubModel): url: str = Field() -class WebhooksMilestone3PropCreator(GitHubModel): +class WebhooksIssue2PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksIssue2PropPerformedViaGithubAppPropPermissions] = ( + Field(default=UNSET, description="The set of permissions for the GitHub app") + ) + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhooksIssue2PropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhooksIssue2PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhooksIssue2PropPullRequest(GitHubModel): + """WebhooksIssue2PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssue2PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhooksIssue2PropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -70,10 +371,32 @@ class WebhooksMilestone3PropCreator(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksMilestone3) -model_rebuild(WebhooksMilestone3PropCreator) +model_rebuild(WebhooksIssue2) +model_rebuild(WebhooksIssue2PropAssignee) +model_rebuild(WebhooksIssue2PropAssigneesItems) +model_rebuild(WebhooksIssue2PropLabelsItems) +model_rebuild(WebhooksIssue2PropMilestone) +model_rebuild(WebhooksIssue2PropMilestonePropCreator) +model_rebuild(WebhooksIssue2PropPerformedViaGithubApp) +model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropOwner) +model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhooksIssue2PropPullRequest) +model_rebuild(WebhooksIssue2PropReactions) +model_rebuild(WebhooksIssue2PropSubIssuesSummary) +model_rebuild(WebhooksIssue2PropUser) __all__ = ( - "WebhooksMilestone3", - "WebhooksMilestone3PropCreator", + "WebhooksIssue2", + "WebhooksIssue2PropAssignee", + "WebhooksIssue2PropAssigneesItems", + "WebhooksIssue2PropLabelsItems", + "WebhooksIssue2PropMilestone", + "WebhooksIssue2PropMilestonePropCreator", + "WebhooksIssue2PropPerformedViaGithubApp", + "WebhooksIssue2PropPerformedViaGithubAppPropOwner", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", + "WebhooksIssue2PropPullRequest", + "WebhooksIssue2PropReactions", + "WebhooksIssue2PropSubIssuesSummary", + "WebhooksIssue2PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0422.py b/githubkit/versions/v2022_11_28/models/group_0422.py index 7099fbbc2..6db58fe17 100644 --- a/githubkit/versions/v2022_11_28/models/group_0422.py +++ b/githubkit/versions/v2022_11_28/models/group_0422.py @@ -18,21 +18,7 @@ from githubkit.utils import UNSET -class WebhooksMembership(GitHubModel): - """Membership - - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ - - organization_url: str = Field() - role: str = Field() - state: str = Field() - url: str = Field() - user: Union[WebhooksMembershipPropUser, None] = Field(title="User") - - -class WebhooksMembershipPropUser(GitHubModel): +class WebhooksUserMannequin(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -54,15 +40,13 @@ class WebhooksMembershipPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksMembership) -model_rebuild(WebhooksMembershipPropUser) +model_rebuild(WebhooksUserMannequin) -__all__ = ( - "WebhooksMembership", - "WebhooksMembershipPropUser", -) +__all__ = ("WebhooksUserMannequin",) diff --git a/githubkit/versions/v2022_11_28/models/group_0423.py b/githubkit/versions/v2022_11_28/models/group_0423.py index a3f8eb39b..f78d27107 100644 --- a/githubkit/versions/v2022_11_28/models/group_0423.py +++ b/githubkit/versions/v2022_11_28/models/group_0423.py @@ -13,192 +13,51 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser - - -class PersonalAccessTokenRequest(GitHubModel): - """Personal Access Token Request - - Details of a Personal Access Token Request. - """ - - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( - description="New requested permissions, categorized by type of permission." - ) - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( - description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." - ) - permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( - description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." - ) - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repository_count: Union[int, None] = Field( - description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( - Field( - description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - ) - created_at: str = Field( - description="Date and time when the request for access was created." - ) - token_id: int = Field( - description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." - ) - token_name: str = Field( - description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - - -class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" - +from githubkit.compat import GitHubModel, model_rebuild -class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgraded - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. - """ +class WebhooksMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( - default=UNSET - ) + account: WebhooksMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhooksMarketplacePurchasePropPlan = Field() + unit_count: int = Field() -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( - ExtraGitHubModel -): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" - - -class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsResult - - Permissions requested, categorized by type of permission. This field - incorporates `permissions_added` and `permissions_upgraded`. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsResultPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsResultPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" +class WebhooksMarketplacePurchasePropAccount(GitHubModel): + """WebhooksMarketplacePurchasePropAccount""" + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() -class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" +class WebhooksMarketplacePurchasePropPlan(GitHubModel): + """WebhooksMarketplacePurchasePropPlan""" -class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + bullets: list[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(PersonalAccessTokenRequest) -model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) +model_rebuild(WebhooksMarketplacePurchase) +model_rebuild(WebhooksMarketplacePurchasePropAccount) +model_rebuild(WebhooksMarketplacePurchasePropPlan) __all__ = ( - "PersonalAccessTokenRequest", - "PersonalAccessTokenRequestPropPermissionsAdded", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsAddedPropOther", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", - "PersonalAccessTokenRequestPropPermissionsResult", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", - "PersonalAccessTokenRequestPropPermissionsResultPropOther", - "PersonalAccessTokenRequestPropPermissionsResultPropRepository", - "PersonalAccessTokenRequestPropPermissionsUpgraded", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", - "PersonalAccessTokenRequestPropRepositoriesItems", + "WebhooksMarketplacePurchase", + "WebhooksMarketplacePurchasePropAccount", + "WebhooksMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0424.py b/githubkit/versions/v2022_11_28/models/group_0424.py index 39eabd49e..94a837d69 100644 --- a/githubkit/versions/v2022_11_28/models/group_0424.py +++ b/githubkit/versions/v2022_11_28/models/group_0424.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,55 +18,48 @@ from githubkit.utils import UNSET -class WebhooksProjectCard(GitHubModel): - """Project Card""" +class WebhooksPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhooksPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhooksPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropAccount""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksProjectCardPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksProjectCard) -model_rebuild(WebhooksProjectCardPropCreator) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhooksPreviousMarketplacePurchase) +model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) +model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) __all__ = ( - "WebhooksProjectCard", - "WebhooksProjectCardPropCreator", + "WebhooksPreviousMarketplacePurchase", + "WebhooksPreviousMarketplacePurchasePropAccount", + "WebhooksPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0425.py b/githubkit/versions/v2022_11_28/models/group_0425.py index d39e38c67..7c9805f89 100644 --- a/githubkit/versions/v2022_11_28/models/group_0425.py +++ b/githubkit/versions/v2022_11_28/models/group_0425.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,57 +18,62 @@ from githubkit.utils import UNSET -class WebhooksProject(GitHubModel): - """Project""" - - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhooksProjectPropCreator, None] = Field(title="User") - html_url: str = Field() - id: int = Field() - name: str = Field(description="Name of the project") - node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" - ) - updated_at: datetime = Field() - url: str = Field() +class WebhooksTeam(GitHubModel): + """Team + Groups of organization members that gives permissions on specified repositories. + """ -class WebhooksProjectPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeamPropParent(GitHubModel): + """WebhooksTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhooksProject) -model_rebuild(WebhooksProjectPropCreator) +model_rebuild(WebhooksTeam) +model_rebuild(WebhooksTeamPropParent) __all__ = ( - "WebhooksProject", - "WebhooksProjectPropCreator", + "WebhooksTeam", + "WebhooksTeamPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0426.py b/githubkit/versions/v2022_11_28/models/group_0426.py index be718a05d..b4a380a1f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0426.py +++ b/githubkit/versions/v2022_11_28/models/group_0426.py @@ -9,30 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0190 import SimpleCommit + + +class MergeGroup(GitHubModel): + """Merge Group -class WebhooksProjectColumn(GitHubModel): - """Project Column""" + A group of pull requests that the merge queue has grouped together to be merged. + """ - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() - created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") - node_id: str = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() + head_sha: str = Field(description="The SHA of the merge group.") + head_ref: str = Field(description="The full ref of the merge group.") + base_sha: str = Field(description="The SHA of the merge group's parent commit.") + base_ref: str = Field( + description="The full ref of the branch the merge group will be merged into." + ) + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") -model_rebuild(WebhooksProjectColumn) +model_rebuild(MergeGroup) -__all__ = ("WebhooksProjectColumn",) +__all__ = ("MergeGroup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0427.py b/githubkit/versions/v2022_11_28/models/group_0427.py index 02dddab21..39a630595 100644 --- a/githubkit/versions/v2022_11_28/models/group_0427.py +++ b/githubkit/versions/v2022_11_28/models/group_0427.py @@ -10,37 +10,70 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class WebhooksMilestone3(GitHubModel): + """Milestone -class ProjectsV2(GitHubModel): - """Projects v2 Project - - A projects v2 project + A collection of related issues and pull requests. """ - id: float = Field() - node_id: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - title: str = Field() - description: Union[str, None] = Field() - public: bool = Field() closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() + creator: Union[WebhooksMilestone3PropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() - number: int = Field() - short_description: Union[str, None] = Field() - deleted_at: Union[datetime, None] = Field() - deleted_by: Union[None, SimpleUser] = Field() + url: str = Field() + + +class WebhooksMilestone3PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsV2) +model_rebuild(WebhooksMilestone3) +model_rebuild(WebhooksMilestone3PropCreator) -__all__ = ("ProjectsV2",) +__all__ = ( + "WebhooksMilestone3", + "WebhooksMilestone3PropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0428.py b/githubkit/versions/v2022_11_28/models/group_0428.py index 7daaba6aa..7099fbbc2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0428.py +++ b/githubkit/versions/v2022_11_28/models/group_0428.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,23 +18,51 @@ from githubkit.utils import UNSET -class WebhooksProjectChanges(GitHubModel): - """WebhooksProjectChanges""" - - archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) - - -class WebhooksProjectChangesPropArchivedAt(GitHubModel): - """WebhooksProjectChangesPropArchivedAt""" - - from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[datetime, None]] = Field(default=UNSET) - - -model_rebuild(WebhooksProjectChanges) -model_rebuild(WebhooksProjectChangesPropArchivedAt) +class WebhooksMembership(GitHubModel): + """Membership + + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str = Field() + role: str = Field() + state: str = Field() + url: str = Field() + user: Union[WebhooksMembershipPropUser, None] = Field(title="User") + + +class WebhooksMembershipPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksMembership) +model_rebuild(WebhooksMembershipPropUser) __all__ = ( - "WebhooksProjectChanges", - "WebhooksProjectChangesPropArchivedAt", + "WebhooksMembership", + "WebhooksMembershipPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0429.py b/githubkit/versions/v2022_11_28/models/group_0429.py index 8a90d228e..37f106c1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0429.py +++ b/githubkit/versions/v2022_11_28/models/group_0429.py @@ -9,40 +9,196 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0003 import SimpleUser -class ProjectsV2Item(GitHubModel): - """Projects v2 Item +class PersonalAccessTokenRequest(GitHubModel): + """Personal Access Token Request - An item belonging to a project + Details of a Personal Access Token Request. """ - id: float = Field() - node_id: Missing[str] = Field(default=UNSET) - project_node_id: Missing[str] = Field(default=UNSET) - content_node_id: str = Field() - content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( - title="Projects v2 Item Content Type", - description="The type of content tracked in a project item", + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." ) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( + description="New requested permissions, categorized by type of permission." ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( + description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." + ) + permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( + description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." + ) + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repository_count: Union[int, None] = Field( + description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( + Field( + description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + ) + created_at: str = Field( + description="Date and time when the request for access was created." + ) + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." + ) + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." + ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") + + +class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( + ExtraGitHubModel +): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsResult + + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOther""" -model_rebuild(ProjectsV2Item) +model_rebuild(PersonalAccessTokenRequest) +model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) -__all__ = ("ProjectsV2Item",) +__all__ = ( + "PersonalAccessTokenRequest", + "PersonalAccessTokenRequestPropPermissionsAdded", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsAddedPropOther", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", + "PersonalAccessTokenRequestPropPermissionsResult", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", + "PersonalAccessTokenRequestPropPermissionsResultPropOther", + "PersonalAccessTokenRequestPropPermissionsResultPropRepository", + "PersonalAccessTokenRequestPropPermissionsUpgraded", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", + "PersonalAccessTokenRequestPropRepositoriesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0430.py b/githubkit/versions/v2022_11_28/models/group_0430.py index d63883575..39eabd49e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0430.py +++ b/githubkit/versions/v2022_11_28/models/group_0430.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import date, datetime +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,33 +18,56 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class WebhooksProjectCard(GitHubModel): + """Project Card""" -class ProjectsV2StatusUpdate(GitHubModel): - """Projects v2 Status Update - - An status update belonging to a project - """ - - id: float = Field() - node_id: str = Field() - project_node_id: Missing[str] = Field(default=UNSET) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) created_at: datetime = Field() + creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() updated_at: datetime = Field() - status: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] = Field(default=UNSET) - start_date: Missing[date] = Field(default=UNSET) - target_date: Missing[date] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the status update" - ) + url: str = Field() + + +class WebhooksProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsV2StatusUpdate) +model_rebuild(WebhooksProjectCard) +model_rebuild(WebhooksProjectCardPropCreator) -__all__ = ("ProjectsV2StatusUpdate",) +__all__ = ( + "WebhooksProjectCard", + "WebhooksProjectCardPropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0431.py b/githubkit/versions/v2022_11_28/models/group_0431.py index 106b5f0c7..d39e38c67 100644 --- a/githubkit/versions/v2022_11_28/models/group_0431.py +++ b/githubkit/versions/v2022_11_28/models/group_0431.py @@ -18,126 +18,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0038 import Milestone -from .group_0081 import TeamSimple -from .group_0242 import AutoMerge -from .group_0322 import PullRequestPropLabelsItems -from .group_0323 import PullRequestPropBase, PullRequestPropHead -from .group_0324 import PullRequestPropLinks +class WebhooksProject(GitHubModel): + """Project""" -class PullRequestWebhook(GitHubModel): - """PullRequestWebhook""" - - url: str = Field() + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhooksProjectPropCreator, None] = Field(title="User") + html_url: str = Field() id: int = Field() + name: str = Field(description="Name of the project") node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() + owner_url: str = Field() state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." + description="State of the project; either 'open' or 'closed'" ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: list[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", - ) + url: str = Field() + + +class WebhooksProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(PullRequestWebhook) +model_rebuild(WebhooksProject) +model_rebuild(WebhooksProjectPropCreator) -__all__ = ("PullRequestWebhook",) +__all__ = ( + "WebhooksProject", + "WebhooksProjectPropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0432.py b/githubkit/versions/v2022_11_28/models/group_0432.py index 9e409ec85..be718a05d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0432.py +++ b/githubkit/versions/v2022_11_28/models/group_0432.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -18,46 +19,20 @@ from githubkit.utils import UNSET -class PullRequestWebhookAllof1(GitHubModel): - """PullRequestWebhookAllof1""" - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", - ) - - -model_rebuild(PullRequestWebhookAllof1) - -__all__ = ("PullRequestWebhookAllof1",) +class WebhooksProjectColumn(GitHubModel): + """Project Column""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() + created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhooksProjectColumn) + +__all__ = ("WebhooksProjectColumn",) diff --git a/githubkit/versions/v2022_11_28/models/group_0433.py b/githubkit/versions/v2022_11_28/models/group_0433.py index 3c34b7ef5..46e0ef291 100644 --- a/githubkit/versions/v2022_11_28/models/group_0433.py +++ b/githubkit/versions/v2022_11_28/models/group_0433.py @@ -10,1071 +10,37 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class WebhooksPullRequest5(GitHubModel): - """Pull Request""" - links: WebhooksPullRequest5PropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhooksPullRequest5PropAssignee, None] = Field(title="User") - assignees: list[Union[WebhooksPullRequest5PropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhooksPullRequest5PropAutoMerge, None] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhooksPullRequest5PropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhooksPullRequest5PropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhooksPullRequest5PropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[Union[WebhooksPullRequest5PropMergedBy, None]] = Field( - default=UNSET, title="User" - ) - milestone: Union[WebhooksPullRequest5PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItems] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") - - -class WebhooksPullRequest5PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAssigneesItems(GitHubModel): - """User""" +class ProjectsV2(GitHubModel): + """Projects v2 Project - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. + A projects v2 project """ - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledBy, None] = Field( - title="User" - ) - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhooksPullRequest5PropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") + id: float = Field() node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksPullRequest5PropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + title: str = Field() + description: Union[str, None] = Field() + public: bool = Field() closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhooksPullRequest5PropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksPullRequest5PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof0(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropLinks(GitHubModel): - """WebhooksPullRequest5PropLinks""" - - comments: WebhooksPullRequest5PropLinksPropComments = Field(title="Link") - commits: WebhooksPullRequest5PropLinksPropCommits = Field(title="Link") - html: WebhooksPullRequest5PropLinksPropHtml = Field(title="Link") - issue: WebhooksPullRequest5PropLinksPropIssue = Field(title="Link") - review_comment: WebhooksPullRequest5PropLinksPropReviewComment = Field(title="Link") - review_comments: WebhooksPullRequest5PropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhooksPullRequest5PropLinksPropSelf = Field(alias="self", title="Link") - statuses: WebhooksPullRequest5PropLinksPropStatuses = Field(title="Link") - - -class WebhooksPullRequest5PropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropBase(GitHubModel): - """WebhooksPullRequest5PropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhooksPullRequest5PropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhooksPullRequest5PropBasePropUser, None] = Field(title="User") - - -class WebhooksPullRequest5PropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksPullRequest5PropBasePropRepoPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhooksPullRequest5PropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhooksPullRequest5PropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropBasePropRepoPropPermissions(GitHubModel): - """WebhooksPullRequest5PropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhooksPullRequest5PropHead(GitHubModel): - """WebhooksPullRequest5PropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhooksPullRequest5PropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhooksPullRequest5PropHeadPropUser, None] = Field(title="User") - - -class WebhooksPullRequest5PropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksPullRequest5PropHeadPropRepoPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhooksPullRequest5PropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhooksPullRequest5PropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropHeadPropRepoPropPermissions(GitHubModel): - """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent(GitHubModel): - """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhooksPullRequest5PropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksPullRequest5PropRequestedTeamsItemsPropParent(GitHubModel): - """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + number: int = Field() + short_description: Union[str, None] = Field() + deleted_at: Union[datetime, None] = Field() + deleted_by: Union[None, SimpleUser] = Field() -model_rebuild(WebhooksPullRequest5) -model_rebuild(WebhooksPullRequest5PropAssignee) -model_rebuild(WebhooksPullRequest5PropAssigneesItems) -model_rebuild(WebhooksPullRequest5PropAutoMerge) -model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) -model_rebuild(WebhooksPullRequest5PropLabelsItems) -model_rebuild(WebhooksPullRequest5PropMergedBy) -model_rebuild(WebhooksPullRequest5PropMilestone) -model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) -model_rebuild(WebhooksPullRequest5PropUser) -model_rebuild(WebhooksPullRequest5PropLinks) -model_rebuild(WebhooksPullRequest5PropLinksPropComments) -model_rebuild(WebhooksPullRequest5PropLinksPropCommits) -model_rebuild(WebhooksPullRequest5PropLinksPropHtml) -model_rebuild(WebhooksPullRequest5PropLinksPropIssue) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) -model_rebuild(WebhooksPullRequest5PropLinksPropSelf) -model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) -model_rebuild(WebhooksPullRequest5PropBase) -model_rebuild(WebhooksPullRequest5PropBasePropUser) -model_rebuild(WebhooksPullRequest5PropBasePropRepo) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropHead) -model_rebuild(WebhooksPullRequest5PropHeadPropUser) -model_rebuild(WebhooksPullRequest5PropHeadPropRepo) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) +model_rebuild(ProjectsV2) -__all__ = ( - "WebhooksPullRequest5", - "WebhooksPullRequest5PropAssignee", - "WebhooksPullRequest5PropAssigneesItems", - "WebhooksPullRequest5PropAutoMerge", - "WebhooksPullRequest5PropAutoMergePropEnabledBy", - "WebhooksPullRequest5PropBase", - "WebhooksPullRequest5PropBasePropRepo", - "WebhooksPullRequest5PropBasePropRepoPropLicense", - "WebhooksPullRequest5PropBasePropRepoPropOwner", - "WebhooksPullRequest5PropBasePropRepoPropPermissions", - "WebhooksPullRequest5PropBasePropUser", - "WebhooksPullRequest5PropHead", - "WebhooksPullRequest5PropHeadPropRepo", - "WebhooksPullRequest5PropHeadPropRepoPropLicense", - "WebhooksPullRequest5PropHeadPropRepoPropOwner", - "WebhooksPullRequest5PropHeadPropRepoPropPermissions", - "WebhooksPullRequest5PropHeadPropUser", - "WebhooksPullRequest5PropLabelsItems", - "WebhooksPullRequest5PropLinks", - "WebhooksPullRequest5PropLinksPropComments", - "WebhooksPullRequest5PropLinksPropCommits", - "WebhooksPullRequest5PropLinksPropHtml", - "WebhooksPullRequest5PropLinksPropIssue", - "WebhooksPullRequest5PropLinksPropReviewComment", - "WebhooksPullRequest5PropLinksPropReviewComments", - "WebhooksPullRequest5PropLinksPropSelf", - "WebhooksPullRequest5PropLinksPropStatuses", - "WebhooksPullRequest5PropMergedBy", - "WebhooksPullRequest5PropMilestone", - "WebhooksPullRequest5PropMilestonePropCreator", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof0", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent", - "WebhooksPullRequest5PropRequestedTeamsItems", - "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", - "WebhooksPullRequest5PropUser", -) +__all__ = ("ProjectsV2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0434.py b/githubkit/versions/v2022_11_28/models/group_0434.py index ae7bc5edf..7daaba6aa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0434.py +++ b/githubkit/versions/v2022_11_28/models/group_0434.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,170 +19,23 @@ from githubkit.utils import UNSET -class WebhooksReviewComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhooksReviewCommentPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhooksReviewCommentPropReactions = Field(title="Reactions") - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhooksReviewCommentPropUser, None] = Field(title="User") - - -class WebhooksReviewCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksReviewCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewCommentPropLinks(GitHubModel): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewCommentPropLinksPropPullRequest = Field(title="Link") - self_: WebhooksReviewCommentPropLinksPropSelf = Field(alias="self", title="Link") - - -class WebhooksReviewCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewCommentPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -model_rebuild(WebhooksReviewComment) -model_rebuild(WebhooksReviewCommentPropReactions) -model_rebuild(WebhooksReviewCommentPropUser) -model_rebuild(WebhooksReviewCommentPropLinks) -model_rebuild(WebhooksReviewCommentPropLinksPropHtml) -model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) -model_rebuild(WebhooksReviewCommentPropLinksPropSelf) +class WebhooksProjectChanges(GitHubModel): + """WebhooksProjectChanges""" + + archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) + + +class WebhooksProjectChangesPropArchivedAt(GitHubModel): + """WebhooksProjectChangesPropArchivedAt""" + + from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[datetime, None]] = Field(default=UNSET) + + +model_rebuild(WebhooksProjectChanges) +model_rebuild(WebhooksProjectChangesPropArchivedAt) __all__ = ( - "WebhooksReviewComment", - "WebhooksReviewCommentPropLinks", - "WebhooksReviewCommentPropLinksPropHtml", - "WebhooksReviewCommentPropLinksPropPullRequest", - "WebhooksReviewCommentPropLinksPropSelf", - "WebhooksReviewCommentPropReactions", - "WebhooksReviewCommentPropUser", + "WebhooksProjectChanges", + "WebhooksProjectChangesPropArchivedAt", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0435.py b/githubkit/versions/v2022_11_28/models/group_0435.py index 1c451c68e..02415cbc5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0435.py +++ b/githubkit/versions/v2022_11_28/models/group_0435.py @@ -18,94 +18,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class WebhooksReview(GitHubModel): - """WebhooksReview - - The review that was affected. - """ - - links: WebhooksReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: str = Field() - submitted_at: Union[datetime, None] = Field() - user: Union[WebhooksReviewPropUser, None] = Field(title="User") +class ProjectsV2Item(GitHubModel): + """Projects v2 Item -class WebhooksReviewPropUser(GitHubModel): - """User""" + An item belonging to a project + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: float = Field() node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewPropLinks(GitHubModel): - """WebhooksReviewPropLinks""" - - html: WebhooksReviewPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") - - -class WebhooksReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() + project_node_id: Missing[str] = Field(default=UNSET) + content_node_id: str = Field() + content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( + title="Projects v2 Item Content Type", + description="The type of content tracked in a project item", + ) + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() -model_rebuild(WebhooksReview) -model_rebuild(WebhooksReviewPropUser) -model_rebuild(WebhooksReviewPropLinks) -model_rebuild(WebhooksReviewPropLinksPropHtml) -model_rebuild(WebhooksReviewPropLinksPropPullRequest) +model_rebuild(ProjectsV2Item) -__all__ = ( - "WebhooksReview", - "WebhooksReviewPropLinks", - "WebhooksReviewPropLinksPropHtml", - "WebhooksReviewPropLinksPropPullRequest", - "WebhooksReviewPropUser", -) +__all__ = ("ProjectsV2Item",) diff --git a/githubkit/versions/v2022_11_28/models/group_0436.py b/githubkit/versions/v2022_11_28/models/group_0436.py index c6b63317a..da927dd7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0436.py +++ b/githubkit/versions/v2022_11_28/models/group_0436.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from datetime import date, datetime from typing import Literal, Union from pydantic import Field @@ -18,143 +18,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class WebhooksRelease(GitHubModel): - """Release - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. +class ProjectsV2StatusUpdate(GitHubModel): + """Projects v2 Status Update + + An status update belonging to a project """ - assets: list[WebhooksReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhooksReleasePropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() + id: float = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksReleasePropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + project_node_id: Missing[str] = Field(default=UNSET) + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhooksReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() - uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" + status: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET) + start_date: Missing[date] = Field(default=UNSET) + target_date: Missing[date] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the status update" ) - url: str = Field() - - -class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksRelease) -model_rebuild(WebhooksReleasePropAuthor) -model_rebuild(WebhooksReleasePropReactions) -model_rebuild(WebhooksReleasePropAssetsItems) -model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) +model_rebuild(ProjectsV2StatusUpdate) -__all__ = ( - "WebhooksRelease", - "WebhooksReleasePropAssetsItems", - "WebhooksReleasePropAssetsItemsPropUploader", - "WebhooksReleasePropAuthor", - "WebhooksReleasePropReactions", -) +__all__ = ("ProjectsV2StatusUpdate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0437.py b/githubkit/versions/v2022_11_28/models/group_0437.py index 359e52db6..fa4bf0c4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0437.py +++ b/githubkit/versions/v2022_11_28/models/group_0437.py @@ -18,143 +18,126 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0039 import Milestone +from .group_0086 import TeamSimple +from .group_0248 import AutoMerge +from .group_0328 import PullRequestPropLabelsItems +from .group_0329 import PullRequestPropBase, PullRequestPropHead +from .group_0330 import PullRequestPropLinks -class WebhooksRelease1(GitHubModel): - """Release - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ +class PullRequestWebhook(GitHubModel): + """PullRequestWebhook""" - assets: list[Union[WebhooksRelease1PropAssetsItems, None]] = Field() - assets_url: str = Field() - author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() + url: str = Field() id: int = Field() - name: Union[str, None] = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksRelease1PropReactions] = Field( - default=UNSET, title="Reactions" + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhooksRelease1PropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: list[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() - uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) + merged: bool = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." + ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", ) - url: str = Field() - - -class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksRelease1PropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksRelease1PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -model_rebuild(WebhooksRelease1) -model_rebuild(WebhooksRelease1PropAssetsItems) -model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) -model_rebuild(WebhooksRelease1PropAuthor) -model_rebuild(WebhooksRelease1PropReactions) +model_rebuild(PullRequestWebhook) -__all__ = ( - "WebhooksRelease1", - "WebhooksRelease1PropAssetsItems", - "WebhooksRelease1PropAssetsItemsPropUploader", - "WebhooksRelease1PropAuthor", - "WebhooksRelease1PropReactions", -) +__all__ = ("PullRequestWebhook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0438.py b/githubkit/versions/v2022_11_28/models/group_0438.py index 25a628f6d..9e409ec85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0438.py +++ b/githubkit/versions/v2022_11_28/models/group_0438.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,63 +18,46 @@ from githubkit.utils import UNSET -class WebhooksAlert(GitHubModel): - """Repository Vulnerability Alert Alert +class PullRequestWebhookAllof1(GitHubModel): + """PullRequestWebhookAllof1""" - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[Union[WebhooksAlertPropDismisser, None]] = Field( - default=UNSET, title="User" + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", ) - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open"] = Field() - - -class WebhooksAlertPropDismisser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksAlert) -model_rebuild(WebhooksAlertPropDismisser) +model_rebuild(PullRequestWebhookAllof1) -__all__ = ( - "WebhooksAlert", - "WebhooksAlertPropDismisser", -) +__all__ = ("PullRequestWebhookAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0439.py b/githubkit/versions/v2022_11_28/models/group_0439.py index 903304f5e..3c34b7ef5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0439.py +++ b/githubkit/versions/v2022_11_28/models/group_0439.py @@ -18,93 +18,1063 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +class WebhooksPullRequest5(GitHubModel): + """Pull Request""" -class SecretScanningAlertWebhook(GitHubModel): - """SecretScanningAlertWebhook""" - - number: Missing[int] = Field( - default=UNSET, description="The security alert number." + links: WebhooksPullRequest5PropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhooksPullRequest5PropAssignee, None] = Field(title="User") + assignees: list[Union[WebhooksPullRequest5PropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhooksPullRequest5PropAutoMerge, None] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhooksPullRequest5PropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." ) - created_at: Missing[datetime] = Field( + head: WebhooksPullRequest5PropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhooksPullRequest5PropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="Indicates whether maintainers can modify the pull request.", ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[Union[WebhooksPullRequest5PropMergedBy, None]] = Field( + default=UNSET, title="User" ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." + milestone: Union[WebhooksPullRequest5PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." ) - resolution: Missing[ + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ Union[ + WebhooksPullRequest5PropRequestedReviewersItemsOneof0, None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], + WebhooksPullRequest5PropRequestedReviewersItemsOneof1, ] - ] = Field(default=UNSET, description="The reason for resolving the alert.") - resolved_at: Missing[Union[datetime, None]] = Field( + ] = Field() + requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItems] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledBy, None] = Field( + title="User" + ) + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhooksPullRequest5PropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksPullRequest5PropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksPullRequest5PropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhooksPullRequest5PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof0(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropLinks(GitHubModel): + """WebhooksPullRequest5PropLinks""" + + comments: WebhooksPullRequest5PropLinksPropComments = Field(title="Link") + commits: WebhooksPullRequest5PropLinksPropCommits = Field(title="Link") + html: WebhooksPullRequest5PropLinksPropHtml = Field(title="Link") + issue: WebhooksPullRequest5PropLinksPropIssue = Field(title="Link") + review_comment: WebhooksPullRequest5PropLinksPropReviewComment = Field(title="Link") + review_comments: WebhooksPullRequest5PropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhooksPullRequest5PropLinksPropSelf = Field(alias="self", title="Link") + statuses: WebhooksPullRequest5PropLinksPropStatuses = Field(title="Link") + + +class WebhooksPullRequest5PropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropBase(GitHubModel): + """WebhooksPullRequest5PropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhooksPullRequest5PropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhooksPullRequest5PropBasePropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksPullRequest5PropBasePropRepoPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhooksPullRequest5PropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhooksPullRequest5PropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropBasePropRepoPropPermissions(GitHubModel): + """WebhooksPullRequest5PropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhooksPullRequest5PropHead(GitHubModel): + """WebhooksPullRequest5PropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhooksPullRequest5PropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhooksPullRequest5PropHeadPropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." ) - secret_type_display_name: Missing[str] = Field( + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + 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.", ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwner, None] = Field( + title="User" ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + permissions: Missing[WebhooksPullRequest5PropHeadPropRepoPropPermissions] = Field( default=UNSET ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( default=UNSET, - description="An optional comment when reviewing a push protection bypass.", + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhooksPullRequest5PropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhooksPullRequest5PropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropHeadPropRepoPropPermissions(GitHubModel): + """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( default=UNSET, - description="An optional comment when requesting a push protection bypass.", + description="Permission that the team will have for its repositories", ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent(GitHubModel): + """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the detected secret was publicly leaked." + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhooksPullRequest5PropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" ) - multi_repo: Missing[Union[bool, None]] = Field( + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( default=UNSET, - description="Whether the detected secret was found in multiple repositories in the same organization or business.", + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksPullRequest5PropRequestedTeamsItemsPropParent(GitHubModel): + """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(SecretScanningAlertWebhook) +model_rebuild(WebhooksPullRequest5) +model_rebuild(WebhooksPullRequest5PropAssignee) +model_rebuild(WebhooksPullRequest5PropAssigneesItems) +model_rebuild(WebhooksPullRequest5PropAutoMerge) +model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) +model_rebuild(WebhooksPullRequest5PropLabelsItems) +model_rebuild(WebhooksPullRequest5PropMergedBy) +model_rebuild(WebhooksPullRequest5PropMilestone) +model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) +model_rebuild(WebhooksPullRequest5PropUser) +model_rebuild(WebhooksPullRequest5PropLinks) +model_rebuild(WebhooksPullRequest5PropLinksPropComments) +model_rebuild(WebhooksPullRequest5PropLinksPropCommits) +model_rebuild(WebhooksPullRequest5PropLinksPropHtml) +model_rebuild(WebhooksPullRequest5PropLinksPropIssue) +model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) +model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) +model_rebuild(WebhooksPullRequest5PropLinksPropSelf) +model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) +model_rebuild(WebhooksPullRequest5PropBase) +model_rebuild(WebhooksPullRequest5PropBasePropUser) +model_rebuild(WebhooksPullRequest5PropBasePropRepo) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) +model_rebuild(WebhooksPullRequest5PropHead) +model_rebuild(WebhooksPullRequest5PropHeadPropUser) +model_rebuild(WebhooksPullRequest5PropHeadPropRepo) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) +model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) +model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) -__all__ = ("SecretScanningAlertWebhook",) +__all__ = ( + "WebhooksPullRequest5", + "WebhooksPullRequest5PropAssignee", + "WebhooksPullRequest5PropAssigneesItems", + "WebhooksPullRequest5PropAutoMerge", + "WebhooksPullRequest5PropAutoMergePropEnabledBy", + "WebhooksPullRequest5PropBase", + "WebhooksPullRequest5PropBasePropRepo", + "WebhooksPullRequest5PropBasePropRepoPropLicense", + "WebhooksPullRequest5PropBasePropRepoPropOwner", + "WebhooksPullRequest5PropBasePropRepoPropPermissions", + "WebhooksPullRequest5PropBasePropUser", + "WebhooksPullRequest5PropHead", + "WebhooksPullRequest5PropHeadPropRepo", + "WebhooksPullRequest5PropHeadPropRepoPropLicense", + "WebhooksPullRequest5PropHeadPropRepoPropOwner", + "WebhooksPullRequest5PropHeadPropRepoPropPermissions", + "WebhooksPullRequest5PropHeadPropUser", + "WebhooksPullRequest5PropLabelsItems", + "WebhooksPullRequest5PropLinks", + "WebhooksPullRequest5PropLinksPropComments", + "WebhooksPullRequest5PropLinksPropCommits", + "WebhooksPullRequest5PropLinksPropHtml", + "WebhooksPullRequest5PropLinksPropIssue", + "WebhooksPullRequest5PropLinksPropReviewComment", + "WebhooksPullRequest5PropLinksPropReviewComments", + "WebhooksPullRequest5PropLinksPropSelf", + "WebhooksPullRequest5PropLinksPropStatuses", + "WebhooksPullRequest5PropMergedBy", + "WebhooksPullRequest5PropMilestone", + "WebhooksPullRequest5PropMilestonePropCreator", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof0", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent", + "WebhooksPullRequest5PropRequestedTeamsItems", + "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", + "WebhooksPullRequest5PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0440.py b/githubkit/versions/v2022_11_28/models/group_0440.py index 70a0fad38..ae7bc5edf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0440.py +++ b/githubkit/versions/v2022_11_28/models/group_0440.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,100 +18,171 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities +class WebhooksReviewComment(GitHubModel): + """Pull Request Review Comment -class WebhooksSecurityAdvisory(GitHubModel): - """WebhooksSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. """ - cvss: WebhooksSecurityAdvisoryPropCvss = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[WebhooksSecurityAdvisoryPropCwesItems] = Field() - description: str = Field() - ghsa_id: str = Field() - identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() - published_at: str = Field() - references: list[WebhooksSecurityAdvisoryPropReferencesItems] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItems] = Field() - withdrawn_at: Union[str, None] = Field() - - -class WebhooksSecurityAdvisoryPropCvss(GitHubModel): - """WebhooksSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() + links: WebhooksReviewCommentPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhooksReviewCommentPropReactions = Field(title="Reactions") + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhooksReviewCommentPropUser, None] = Field(title="User") + + +class WebhooksReviewCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhooksSecurityAdvisoryPropIdentifiersItems(GitHubModel): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" +class WebhooksReviewCommentPropUser(GitHubModel): + """User""" - type: str = Field() - value: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksSecurityAdvisoryPropReferencesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropReferencesItems""" +class WebhooksReviewCommentPropLinks(GitHubModel): + """WebhooksReviewCommentPropLinks""" - url: str = Field() + html: WebhooksReviewCommentPropLinksPropHtml = Field(title="Link") + pull_request: WebhooksReviewCommentPropLinksPropPullRequest = Field(title="Link") + self_: WebhooksReviewCommentPropLinksPropSelf = Field(alias="self", title="Link") -class WebhooksSecurityAdvisoryPropVulnerabilitiesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" +class WebhooksReviewCommentPropLinksPropHtml(GitHubModel): + """Link""" - first_patched_version: Union[ - WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, None - ] = Field() - package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() + href: str = Field() -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" +class WebhooksReviewCommentPropLinksPropPullRequest(GitHubModel): + """Link""" - identifier: str = Field() + href: str = Field() -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" +class WebhooksReviewCommentPropLinksPropSelf(GitHubModel): + """Link""" - ecosystem: str = Field() - name: str = Field() + href: str = Field() -model_rebuild(WebhooksSecurityAdvisory) -model_rebuild(WebhooksSecurityAdvisoryPropCvss) -model_rebuild(WebhooksSecurityAdvisoryPropCwesItems) -model_rebuild(WebhooksSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhooksSecurityAdvisoryPropReferencesItems) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItems) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage) +model_rebuild(WebhooksReviewComment) +model_rebuild(WebhooksReviewCommentPropReactions) +model_rebuild(WebhooksReviewCommentPropUser) +model_rebuild(WebhooksReviewCommentPropLinks) +model_rebuild(WebhooksReviewCommentPropLinksPropHtml) +model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) +model_rebuild(WebhooksReviewCommentPropLinksPropSelf) __all__ = ( - "WebhooksSecurityAdvisory", - "WebhooksSecurityAdvisoryPropCvss", - "WebhooksSecurityAdvisoryPropCwesItems", - "WebhooksSecurityAdvisoryPropIdentifiersItems", - "WebhooksSecurityAdvisoryPropReferencesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", + "WebhooksReviewComment", + "WebhooksReviewCommentPropLinks", + "WebhooksReviewCommentPropLinksPropHtml", + "WebhooksReviewCommentPropLinksPropPullRequest", + "WebhooksReviewCommentPropLinksPropSelf", + "WebhooksReviewCommentPropReactions", + "WebhooksReviewCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0441.py b/githubkit/versions/v2022_11_28/models/group_0441.py index 86866d0b1..1c451c68e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0441.py +++ b/githubkit/versions/v2022_11_28/models/group_0441.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,46 +19,38 @@ from githubkit.utils import UNSET -class WebhooksSponsorship(GitHubModel): - """WebhooksSponsorship""" +class WebhooksReview(GitHubModel): + """WebhooksReview - created_at: str = Field() - maintainer: Missing[WebhooksSponsorshipPropMaintainer] = Field(default=UNSET) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhooksSponsorshipPropSponsor, None] = Field(title="User") - sponsorable: Union[WebhooksSponsorshipPropSponsorable, None] = Field(title="User") - tier: WebhooksSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", - ) - - -class WebhooksSponsorshipPropMaintainer(GitHubModel): - """WebhooksSponsorshipPropMaintainer""" + The review that was affected. + """ - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + links: WebhooksReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: str = Field() + submitted_at: Union[datetime, None] = Field() + user: Union[WebhooksReviewPropUser, None] = Field(title="User") -class WebhooksSponsorshipPropSponsor(GitHubModel): +class WebhooksReviewPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -84,62 +77,35 @@ class WebhooksSponsorshipPropSponsor(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksSponsorshipPropSponsorable(GitHubModel): - """User""" +class WebhooksReviewPropLinks(GitHubModel): + """WebhooksReviewPropLinks""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + html: WebhooksReviewPropLinksPropHtml = Field(title="Link") + pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") -class WebhooksSponsorshipPropTier(GitHubModel): - """Sponsorship Tier +class WebhooksReviewPropLinksPropHtml(GitHubModel): + """Link""" - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ + href: str = Field() - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() + +class WebhooksReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() -model_rebuild(WebhooksSponsorship) -model_rebuild(WebhooksSponsorshipPropMaintainer) -model_rebuild(WebhooksSponsorshipPropSponsor) -model_rebuild(WebhooksSponsorshipPropSponsorable) -model_rebuild(WebhooksSponsorshipPropTier) +model_rebuild(WebhooksReview) +model_rebuild(WebhooksReviewPropUser) +model_rebuild(WebhooksReviewPropLinks) +model_rebuild(WebhooksReviewPropLinksPropHtml) +model_rebuild(WebhooksReviewPropLinksPropPullRequest) __all__ = ( - "WebhooksSponsorship", - "WebhooksSponsorshipPropMaintainer", - "WebhooksSponsorshipPropSponsor", - "WebhooksSponsorshipPropSponsorable", - "WebhooksSponsorshipPropTier", + "WebhooksReview", + "WebhooksReviewPropLinks", + "WebhooksReviewPropLinksPropHtml", + "WebhooksReviewPropLinksPropPullRequest", + "WebhooksReviewPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0442.py b/githubkit/versions/v2022_11_28/models/group_0442.py index d4236992a..c6b63317a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0442.py +++ b/githubkit/versions/v2022_11_28/models/group_0442.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,47 +19,142 @@ from githubkit.utils import UNSET -class WebhooksChanges8(GitHubModel): - """WebhooksChanges8""" - - tier: WebhooksChanges8PropTier = Field() +class WebhooksRelease(GitHubModel): + """Release + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ -class WebhooksChanges8PropTier(GitHubModel): - """WebhooksChanges8PropTier""" - - from_: WebhooksChanges8PropTierPropFrom = Field( - alias="from", - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + assets: list[WebhooksReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhooksReleasePropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) - - -class WebhooksChanges8PropTierPropFrom(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhooksReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. """ - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") node_id: str = Field() - - -model_rebuild(WebhooksChanges8) -model_rebuild(WebhooksChanges8PropTier) -model_rebuild(WebhooksChanges8PropTierPropFrom) + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" + ) + url: str = Field() + + +class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksRelease) +model_rebuild(WebhooksReleasePropAuthor) +model_rebuild(WebhooksReleasePropReactions) +model_rebuild(WebhooksReleasePropAssetsItems) +model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhooksChanges8", - "WebhooksChanges8PropTier", - "WebhooksChanges8PropTierPropFrom", + "WebhooksRelease", + "WebhooksReleasePropAssetsItems", + "WebhooksReleasePropAssetsItemsPropUploader", + "WebhooksReleasePropAuthor", + "WebhooksReleasePropReactions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0443.py b/githubkit/versions/v2022_11_28/models/group_0443.py index b1c86817a..359e52db6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0443.py +++ b/githubkit/versions/v2022_11_28/models/group_0443.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,65 +19,142 @@ from githubkit.utils import UNSET -class WebhooksTeam1(GitHubModel): - """Team +class WebhooksRelease1(GitHubModel): + """Release - Groups of organization members that gives permissions on specified repositories. + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" + assets: list[Union[WebhooksRelease1PropAssetsItems, None]] = Field() + assets_url: str = Field() + author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhooksTeam1PropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksRelease1PropReactions] = Field( + default=UNSET, title="Reactions" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() -class WebhooksTeam1PropParent(GitHubModel): - """WebhooksTeam1PropParent""" +class WebhooksRelease1PropAssetsItems(GitHubModel): + """Release Asset - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + url: str = Field() + +class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): + """User""" -model_rebuild(WebhooksTeam1) -model_rebuild(WebhooksTeam1PropParent) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhooksRelease1) +model_rebuild(WebhooksRelease1PropAssetsItems) +model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) +model_rebuild(WebhooksRelease1PropAuthor) +model_rebuild(WebhooksRelease1PropReactions) __all__ = ( - "WebhooksTeam1", - "WebhooksTeam1PropParent", + "WebhooksRelease1", + "WebhooksRelease1PropAssetsItems", + "WebhooksRelease1PropAssetsItemsPropUploader", + "WebhooksRelease1PropAuthor", + "WebhooksRelease1PropReactions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0444.py b/githubkit/versions/v2022_11_28/models/group_0444.py index 6158bd4e1..25a628f6d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0444.py +++ b/githubkit/versions/v2022_11_28/models/group_0444.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,39 +18,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +class WebhooksAlert(GitHubModel): + """Repository Vulnerability Alert Alert -class WebhookBranchProtectionConfigurationDisabled(GitHubModel): - """branch protection configuration disabled event""" + The security alert of the vulnerable dependency. + """ - action: Literal["disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[Union[WebhooksAlertPropDismisser, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["open"] = Field() + + +class WebhooksAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookBranchProtectionConfigurationDisabled) +model_rebuild(WebhooksAlert) +model_rebuild(WebhooksAlertPropDismisser) -__all__ = ("WebhookBranchProtectionConfigurationDisabled",) +__all__ = ( + "WebhooksAlert", + "WebhooksAlertPropDismisser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0445.py b/githubkit/versions/v2022_11_28/models/group_0445.py index 31c50c16c..fd365af9e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0445.py +++ b/githubkit/versions/v2022_11_28/models/group_0445.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,39 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser -class WebhookBranchProtectionConfigurationEnabled(GitHubModel): - """branch protection configuration enabled event""" +class SecretScanningAlertWebhook(GitHubModel): + """SecretScanningAlertWebhook""" - action: Literal["enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", + ) + resolution: Missing[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] = Field(default=UNSET, description="The reason for resolving the alert.") + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." + ) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( + default=UNSET, + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) + push_protection_bypassed: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether push protection was bypassed for the detected secret.", + ) + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + default=UNSET ) - installation: Missing[SimpleInstallation] = Field( + push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="An optional comment when reviewing a push protection bypass.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="An optional comment when requesting a push protection bypass.", + ) + push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The URL to a push protection bypass request." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + publicly_leaked: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether the detected secret was publicly leaked." + ) + multi_repo: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether the detected secret was found in multiple repositories in the same organization or business.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookBranchProtectionConfigurationEnabled) +model_rebuild(SecretScanningAlertWebhook) -__all__ = ("WebhookBranchProtectionConfigurationEnabled",) +__all__ = ("SecretScanningAlertWebhook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0446.py b/githubkit/versions/v2022_11_28/models/group_0446.py index 926ce05d7..70a0fad38 100644 --- a/githubkit/versions/v2022_11_28/models/group_0446.py +++ b/githubkit/versions/v2022_11_28/models/group_0446.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,44 +17,100 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0397 import WebhooksRule - - -class WebhookBranchProtectionRuleCreated(GitHubModel): - """branch protection rule created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookBranchProtectionRuleCreated) - -__all__ = ("WebhookBranchProtectionRuleCreated",) +from .group_0001 import CvssSeverities + + +class WebhooksSecurityAdvisory(GitHubModel): + """WebhooksSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhooksSecurityAdvisoryPropCvss = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + cwes: list[WebhooksSecurityAdvisoryPropCwesItems] = Field() + description: str = Field() + ghsa_id: str = Field() + identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() + published_at: str = Field() + references: list[WebhooksSecurityAdvisoryPropReferencesItems] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItems] = Field() + withdrawn_at: Union[str, None] = Field() + + +class WebhooksSecurityAdvisoryPropCvss(GitHubModel): + """WebhooksSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhooksSecurityAdvisoryPropIdentifiersItems(GitHubModel): + """WebhooksSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhooksSecurityAdvisoryPropReferencesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, None + ] = Field() + package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" + + identifier: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + + ecosystem: str = Field() + name: str = Field() + + +model_rebuild(WebhooksSecurityAdvisory) +model_rebuild(WebhooksSecurityAdvisoryPropCvss) +model_rebuild(WebhooksSecurityAdvisoryPropCwesItems) +model_rebuild(WebhooksSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhooksSecurityAdvisoryPropReferencesItems) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItems) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage) + +__all__ = ( + "WebhooksSecurityAdvisory", + "WebhooksSecurityAdvisoryPropCvss", + "WebhooksSecurityAdvisoryPropCwesItems", + "WebhooksSecurityAdvisoryPropIdentifiersItems", + "WebhooksSecurityAdvisoryPropReferencesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0447.py b/githubkit/versions/v2022_11_28/models/group_0447.py index 5928fe6f4..86866d0b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0447.py +++ b/githubkit/versions/v2022_11_28/models/group_0447.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,44 +17,129 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0397 import WebhooksRule +class WebhooksSponsorship(GitHubModel): + """WebhooksSponsorship""" -class WebhookBranchProtectionRuleDeleted(GitHubModel): - """branch protection rule deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + created_at: str = Field() + maintainer: Missing[WebhooksSponsorshipPropMaintainer] = Field(default=UNSET) + node_id: str = Field() + privacy_level: str = Field() + sponsor: Union[WebhooksSponsorshipPropSponsor, None] = Field(title="User") + sponsorable: Union[WebhooksSponsorshipPropSponsorable, None] = Field(title="User") + tier: WebhooksSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookBranchProtectionRuleDeleted) +class WebhooksSponsorshipPropMaintainer(GitHubModel): + """WebhooksSponsorshipPropMaintainer""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksSponsorshipPropSponsor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksSponsorshipPropSponsorable(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksSponsorshipPropTier(GitHubModel): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() + name: str = Field() + node_id: str = Field() + + +model_rebuild(WebhooksSponsorship) +model_rebuild(WebhooksSponsorshipPropMaintainer) +model_rebuild(WebhooksSponsorshipPropSponsor) +model_rebuild(WebhooksSponsorshipPropSponsorable) +model_rebuild(WebhooksSponsorshipPropTier) -__all__ = ("WebhookBranchProtectionRuleDeleted",) +__all__ = ( + "WebhooksSponsorship", + "WebhooksSponsorshipPropMaintainer", + "WebhooksSponsorshipPropSponsor", + "WebhooksSponsorshipPropSponsorable", + "WebhooksSponsorshipPropTier", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0448.py b/githubkit/versions/v2022_11_28/models/group_0448.py index 4e20152dd..d4236992a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0448.py +++ b/githubkit/versions/v2022_11_28/models/group_0448.py @@ -9,217 +9,54 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0397 import WebhooksRule - - -class WebhookBranchProtectionRuleEdited(GitHubModel): - """branch protection rule edited event""" - - action: Literal["edited"] = Field() - changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( - default=UNSET, - description="If the action was `edited`, the changes to the rule.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChanges - - If the action was `edited`, the changes to the rule. - """ - - admin_enforced: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced - ] = Field(default=UNSET) - authorized_actor_names: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames - ] = Field(default=UNSET) - authorized_actors_only: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly - ] = Field(default=UNSET) - authorized_dismissal_actors_only: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly - ] = Field(default=UNSET) - linear_history_requirement_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel - ] = Field(default=UNSET) - lock_branch_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel - ] = Field(default=UNSET) - lock_allows_fork_sync: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync - ] = Field(default=UNSET) - pull_request_reviews_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel - ] = Field(default=UNSET) - require_last_push_approval: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval - ] = Field(default=UNSET) - required_status_checks: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks - ] = Field(default=UNSET) - required_status_checks_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel - ] = Field(default=UNSET) - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" - - from_: list[str] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem - entLevel - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") +class WebhooksChanges8(GitHubModel): + """WebhooksChanges8""" -class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + tier: WebhooksChanges8PropTier = Field() - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") +class WebhooksChanges8PropTier(GitHubModel): + """WebhooksChanges8PropTier""" -class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev - el - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + from_: WebhooksChanges8PropTierPropFrom = Field( + alias="from", + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + ) - from_: list[str] = Field(alias="from") +class WebhooksChanges8PropTierPropFrom(GitHubModel): + """Sponsorship Tier -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() + name: str = Field() + node_id: str = Field() -model_rebuild(WebhookBranchProtectionRuleEdited) -model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly -) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel -) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel -) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel -) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel -) +model_rebuild(WebhooksChanges8) +model_rebuild(WebhooksChanges8PropTier) +model_rebuild(WebhooksChanges8PropTierPropFrom) __all__ = ( - "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropChanges", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", - "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", + "WebhooksChanges8", + "WebhooksChanges8PropTier", + "WebhooksChanges8PropTierPropFrom", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0449.py b/githubkit/versions/v2022_11_28/models/group_0449.py index 2a8066ae6..b1c86817a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0449.py +++ b/githubkit/versions/v2022_11_28/models/group_0449.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,38 +17,66 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0399 import CheckRunWithSimpleCheckSuite +class WebhooksTeam1(GitHubModel): + """Team -class WebhookCheckRunCompleted(GitHubModel): - """Check Run Completed Event""" + Groups of organization members that gives permissions on specified repositories. + """ - action: Literal["completed"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" ) - installation: Missing[SimpleInstallation] = Field( + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhooksTeam1PropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Permission that the team will have for its repositories", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Whether team members will receive notifications when their team is @mentioned", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeam1PropParent(GitHubModel): + """WebhooksTeam1PropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookCheckRunCompleted) +model_rebuild(WebhooksTeam1) +model_rebuild(WebhooksTeam1PropParent) -__all__ = ("WebhookCheckRunCompleted",) +__all__ = ( + "WebhooksTeam1", + "WebhooksTeam1PropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0450.py b/githubkit/versions/v2022_11_28/models/group_0450.py index 15f0118a0..40d14ac60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0450.py +++ b/githubkit/versions/v2022_11_28/models/group_0450.py @@ -9,22 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookCheckRunCompletedFormEncoded(GitHubModel): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookBranchProtectionConfigurationDisabled(GitHubModel): + """branch protection configuration disabled event""" - payload: str = Field( - description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." + action: Literal["disabled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCompletedFormEncoded) +model_rebuild(WebhookBranchProtectionConfigurationDisabled) -__all__ = ("WebhookCheckRunCompletedFormEncoded",) +__all__ = ("WebhookBranchProtectionConfigurationDisabled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0451.py b/githubkit/versions/v2022_11_28/models/group_0451.py index cb04bf26e..f03f107c6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0451.py +++ b/githubkit/versions/v2022_11_28/models/group_0451.py @@ -17,20 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0399 import CheckRunWithSimpleCheckSuite +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookCheckRunCreated(GitHubModel): - """Check Run Created Event""" +class WebhookBranchProtectionConfigurationEnabled(GitHubModel): + """branch protection configuration enabled event""" - action: Literal["created"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["enabled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -49,6 +50,6 @@ class WebhookCheckRunCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCreated) +model_rebuild(WebhookBranchProtectionConfigurationEnabled) -__all__ = ("WebhookCheckRunCreated",) +__all__ = ("WebhookBranchProtectionConfigurationEnabled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0452.py b/githubkit/versions/v2022_11_28/models/group_0452.py index 2a3f094c3..e53536208 100644 --- a/githubkit/versions/v2022_11_28/models/group_0452.py +++ b/githubkit/versions/v2022_11_28/models/group_0452.py @@ -9,22 +9,52 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0403 import WebhooksRule -class WebhookCheckRunCreatedFormEncoded(GitHubModel): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleCreated(GitHubModel): + """branch protection rule created event""" - payload: str = Field( - description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCreatedFormEncoded) +model_rebuild(WebhookBranchProtectionRuleCreated) -__all__ = ("WebhookCheckRunCreatedFormEncoded",) +__all__ = ("WebhookBranchProtectionRuleCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0453.py b/githubkit/versions/v2022_11_28/models/group_0453.py index e0c3843b9..e42319ca6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0453.py +++ b/githubkit/versions/v2022_11_28/models/group_0453.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0399 import CheckRunWithSimpleCheckSuite +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0403 import WebhooksRule -class WebhookCheckRunRequestedAction(GitHubModel): - """Check Run Requested Action Event""" +class WebhookBranchProtectionRuleDeleted(GitHubModel): + """branch protection rule deleted event""" - action: Literal["requested_action"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -46,28 +48,13 @@ class WebhookCheckRunRequestedAction(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( - Field(default=UNSET, description="The action requested by the user.") + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. - """ - - identifier: Missing[str] = Field( - default=UNSET, - description="The integrator reference of the action requested by the user.", - ) - - -model_rebuild(WebhookCheckRunRequestedAction) -model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) +model_rebuild(WebhookBranchProtectionRuleDeleted) -__all__ = ( - "WebhookCheckRunRequestedAction", - "WebhookCheckRunRequestedActionPropRequestedAction", -) +__all__ = ("WebhookBranchProtectionRuleDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0454.py b/githubkit/versions/v2022_11_28/models/group_0454.py index ccf1a4c5f..e1aef533c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0454.py +++ b/githubkit/versions/v2022_11_28/models/group_0454.py @@ -9,22 +9,217 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0403 import WebhooksRule -class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleEdited(GitHubModel): + """branch protection rule edited event""" - payload: str = Field( - description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." + action: Literal["edited"] = Field() + changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( + default=UNSET, + description="If the action was `edited`, the changes to the rule.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced + ] = Field(default=UNSET) + authorized_actor_names: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames + ] = Field(default=UNSET) + authorized_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly + ] = Field(default=UNSET) + authorized_dismissal_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly + ] = Field(default=UNSET) + linear_history_requirement_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel + ] = Field(default=UNSET) + lock_branch_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel + ] = Field(default=UNSET) + lock_allows_fork_sync: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync + ] = Field(default=UNSET) + pull_request_reviews_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel + ] = Field(default=UNSET) + require_last_push_approval: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval + ] = Field(default=UNSET) + required_status_checks: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks + ] = Field(default=UNSET) + required_status_checks_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel + ] = Field(default=UNSET) + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: list[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: list[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") -model_rebuild(WebhookCheckRunRequestedActionFormEncoded) +model_rebuild(WebhookBranchProtectionRuleEdited) +model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel +) -__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) +__all__ = ( + "WebhookBranchProtectionRuleEdited", + "WebhookBranchProtectionRuleEditedPropChanges", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0455.py b/githubkit/versions/v2022_11_28/models/group_0455.py index 66d9af8fe..fcaa864ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0455.py +++ b/githubkit/versions/v2022_11_28/models/group_0455.py @@ -17,17 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0399 import CheckRunWithSimpleCheckSuite +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0405 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRerequested(GitHubModel): - """Check Run Re-Requested Event""" +class WebhookCheckRunCompleted(GitHubModel): + """Check Run Completed Event""" - action: Literal["rerequested"] = Field() + action: Literal["completed"] = Field() check_run: CheckRunWithSimpleCheckSuite = Field( title="CheckRun", description="A check performed on the code of a given code change", @@ -49,6 +49,6 @@ class WebhookCheckRunRerequested(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRerequested) +model_rebuild(WebhookCheckRunCompleted) -__all__ = ("WebhookCheckRunRerequested",) +__all__ = ("WebhookCheckRunCompleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0456.py b/githubkit/versions/v2022_11_28/models/group_0456.py index a44f5cc13..15f0118a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0456.py +++ b/githubkit/versions/v2022_11_28/models/group_0456.py @@ -14,17 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookCheckRunRerequestedFormEncoded(GitHubModel): - """Check Run Re-Requested Event +class WebhookCheckRunCompletedFormEncoded(GitHubModel): + """Check Run Completed Event - The check_run.rerequested webhook encoded with URL encoding + The check_run.completed webhook encoded with URL encoding """ payload: str = Field( - description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." + description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCheckRunRerequestedFormEncoded) +model_rebuild(WebhookCheckRunCompletedFormEncoded) -__all__ = ("WebhookCheckRunRerequestedFormEncoded",) +__all__ = ("WebhookCheckRunCompletedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0457.py b/githubkit/versions/v2022_11_28/models/group_0457.py index 873f1fdd0..388f9efcf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0457.py +++ b/githubkit/versions/v2022_11_28/models/group_0457.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,24 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0405 import CheckRunWithSimpleCheckSuite -class WebhookCheckSuiteCompleted(GitHubModel): - """check_suite completed event""" +class WebhookCheckRunCreated(GitHubModel): + """Check Run Created Event""" - action: Literal["completed"] = Field() - check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["created"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -54,307 +49,6 @@ class WebhookCheckSuiteCompleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: list[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] = Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - client_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The client ID of the GitHub app" - ) - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookCheckSuiteCompleted) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunCreated) -__all__ = ( - "WebhookCheckSuiteCompleted", - "WebhookCheckSuiteCompletedPropCheckSuite", - "WebhookCheckSuiteCompletedPropCheckSuitePropApp", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0458.py b/githubkit/versions/v2022_11_28/models/group_0458.py index 8631bcad1..2a3f094c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0458.py +++ b/githubkit/versions/v2022_11_28/models/group_0458.py @@ -9,351 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks - - -class WebhookCheckSuiteRequested(GitHubModel): - """check_suite requested event""" - - action: Literal["requested"] = Field() - check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: list[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - client_id: Missing[Union[str, None]] = Field( - default=UNSET, description="Client ID of the GitHub app" - ) - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookCheckRunCreatedFormEncoded(GitHubModel): + """Check Run Created Event - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app + The check_run.created webhook encoded with URL encoding """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteRequested) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunCreatedFormEncoded) -__all__ = ( - "WebhookCheckSuiteRequested", - "WebhookCheckSuiteRequestedPropCheckSuite", - "WebhookCheckSuiteRequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunCreatedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0459.py b/githubkit/versions/v2022_11_28/models/group_0459.py index 8c0c2ad3f..1fc7dac8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0459.py +++ b/githubkit/versions/v2022_11_28/models/group_0459.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,24 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0405 import CheckRunWithSimpleCheckSuite -class WebhookCheckSuiteRerequested(GitHubModel): - """check_suite rerequested event""" +class WebhookCheckRunRequestedAction(GitHubModel): + """Check Run Requested Action Event""" - action: Literal["rerequested"] = Field() - check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["requested_action"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -51,310 +46,28 @@ class WebhookCheckSuiteRerequested(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: list[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - client_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Client ID for the GitHub app" - ) - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( + Field(default=UNSET, description="The action requested by the user.") ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( - GitHubModel -): - """Committer +class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): + """WebhookCheckRunRequestedActionPropRequestedAction - Metaproperties for Git author/committer information. + The action requested by the user. """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + identifier: Missing[str] = Field( + default=UNSET, + description="The integrator reference of the action requested by the user.", ) - sha: str = Field() - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookCheckSuiteRerequested) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRequestedAction) +model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) __all__ = ( - "WebhookCheckSuiteRerequested", - "WebhookCheckSuiteRerequestedPropCheckSuite", - "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", + "WebhookCheckRunRequestedAction", + "WebhookCheckRunRequestedActionPropRequestedAction", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0460.py b/githubkit/versions/v2022_11_28/models/group_0460.py index d7de40339..ccf1a4c5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0460.py +++ b/githubkit/versions/v2022_11_28/models/group_0460.py @@ -9,228 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks - - -class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): - """code_scanning_alert appeared_in_branch event""" - - action: Literal["appeared_in_branch"] = Field() - alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, - None, - ] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() - url: str = Field() - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): + """Check Run Requested Action Event - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion + The check_run.requested_action webhook encoded with URL encoding """ - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + payload: str = Field( + description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCodeScanningAlertAppearedInBranch) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) +model_rebuild(WebhookCheckRunRequestedActionFormEncoded) -__all__ = ( - "WebhookCodeScanningAlertAppearedInBranch", - "WebhookCodeScanningAlertAppearedInBranchPropAlert", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0461.py b/githubkit/versions/v2022_11_28/models/group_0461.py index 102b62d47..8ca4d6d9a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0461.py +++ b/githubkit/versions/v2022_11_28/models/group_0461.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal from pydantic import Field @@ -18,27 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0405 import CheckRunWithSimpleCheckSuite -class WebhookCodeScanningAlertClosedByUser(GitHubModel): - """code_scanning_alert closed_by_user event""" +class WebhookCheckRunRerequested(GitHubModel): + """Check Run Re-Requested Event""" - action: Literal["closed_by_user"] = Field() - alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["rerequested"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -50,9 +42,6 @@ class WebhookCodeScanningAlertClosedByUser(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,177 +49,6 @@ class WebhookCodeScanningAlertClosedByUser(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: datetime = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() - state: Literal["dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() - url: str = Field() - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" - - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) - - -model_rebuild(WebhookCodeScanningAlertClosedByUser) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) +model_rebuild(WebhookCheckRunRerequested) -__all__ = ( - "WebhookCodeScanningAlertClosedByUser", - "WebhookCodeScanningAlertClosedByUserPropAlert", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", - "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRerequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0462.py b/githubkit/versions/v2022_11_28/models/group_0462.py index cc89456dd..a44f5cc13 100644 --- a/githubkit/versions/v2022_11_28/models/group_0462.py +++ b/githubkit/versions/v2022_11_28/models/group_0462.py @@ -9,197 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks - - -class WebhookCodeScanningAlertCreated(GitHubModel): - """code_scanning_alert created event""" - - action: Literal["created"] = Field() - alert: WebhookCodeScanningAlertCreatedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCheckRunRerequestedFormEncoded(GitHubModel): + """Check Run Re-Requested Event - The code scanning alert involved in the event. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: Union[datetime, None] = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: None = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: None = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() - state: Union[None, Literal["open", "dismissed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() - updated_at: Missing[Union[str, None]] = Field(default=UNSET) - url: str = Field() - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) - - -class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" - - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + payload: str = Field( + description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCodeScanningAlertCreated) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation -) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) +model_rebuild(WebhookCheckRunRerequestedFormEncoded) -__all__ = ( - "WebhookCodeScanningAlertCreated", - "WebhookCodeScanningAlertCreatedPropAlert", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertCreatedPropAlertPropRule", - "WebhookCodeScanningAlertCreatedPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRerequestedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0463.py b/githubkit/versions/v2022_11_28/models/group_0463.py index f9eeedad6..f2b78e1d4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0463.py +++ b/githubkit/versions/v2022_11_28/models/group_0463.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,22 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookCodeScanningAlertFixed(GitHubModel): - """code_scanning_alert fixed event""" +class WebhookCheckSuiteCompleted(GitHubModel): + """check_suite completed event""" - action: Literal["fixed"] = Field() - alert: WebhookCodeScanningAlertFixedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["completed"] = Field() + check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertFixed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,49 +54,99 @@ class WebhookCodeScanningAlertFixed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuite + + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). + """ + + after: Union[str, None] = Field() + app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." + ) + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" + ) + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] + ] = Field( + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." + ) + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") + + +class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): + """App - The code scanning alert involved in the event. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + client_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The client ID of the GitHub app" ) - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( Field(title="User") ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) + permissions: Missing[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() - state: Union[None, Literal["fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() - url: str = Field() + updated_at: Union[datetime, None] = Field() -class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -129,105 +173,188 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) + sha: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertFixed) -model_rebuild(WebhookCodeScanningAlertFixedPropAlert) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) +model_rebuild(WebhookCheckSuiteCompleted) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) +model_rebuild( + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) +model_rebuild( + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookCodeScanningAlertFixed", - "WebhookCodeScanningAlertFixedPropAlert", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertFixedPropAlertPropRule", - "WebhookCodeScanningAlertFixedPropAlertPropTool", + "WebhookCheckSuiteCompleted", + "WebhookCheckSuiteCompletedPropCheckSuite", + "WebhookCheckSuiteCompletedPropCheckSuitePropApp", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0464.py b/githubkit/versions/v2022_11_28/models/group_0464.py index cf84de37d..7a226ccdf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0464.py +++ b/githubkit/versions/v2022_11_28/models/group_0464.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,22 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookCodeScanningAlertReopened(GitHubModel): - """code_scanning_alert reopened event""" +class WebhookCheckSuiteRequested(GitHubModel): + """check_suite requested event""" - action: Literal["reopened"] = Field() - alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: Union[str, None] = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["requested"] = Field() + check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: Union[str, None] = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,154 +54,306 @@ class WebhookCodeScanningAlertReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - dismissed_at: Union[str, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None - ] = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: Union[str, None] = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field() - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() - url: str = Field() + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" +class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): + """App + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + client_id: Missing[Union[str, None]] = Field( + default=UNSET, description="Client ID of the GitHub app" + ) + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - location: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) + sha: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertReopened) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteRequested) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopened", - "WebhookCodeScanningAlertReopenedPropAlert", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedPropAlertPropRule", - "WebhookCodeScanningAlertReopenedPropAlertPropTool", + "WebhookCheckSuiteRequested", + "WebhookCheckSuiteRequestedPropCheckSuite", + "WebhookCheckSuiteRequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0465.py b/githubkit/versions/v2022_11_28/models/group_0465.py index fd45726a6..7b677f257 100644 --- a/githubkit/versions/v2022_11_28/models/group_0465.py +++ b/githubkit/versions/v2022_11_28/models/group_0465.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,22 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookCodeScanningAlertReopenedByUser(GitHubModel): - """code_scanning_alert reopened_by_user event""" +class WebhookCheckSuiteRerequested(GitHubModel): + """check_suite rerequested event""" - action: Literal["reopened_by_user"] = Field() - alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["rerequested"] = Field() + check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,143 +54,307 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - dismissed_at: None = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - dismissed_by: None = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None - ] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() - state: Union[None, Literal["open", "fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() - url: str = Field() + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + client_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Client ID for the GitHub app" + ) + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. """ - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """Committer - text: Missing[str] = Field(default=UNSET) + Metaproperties for Git author/committer information. + """ + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertReopenedByUser) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteRerequested) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopenedByUser", - "WebhookCodeScanningAlertReopenedByUserPropAlert", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", + "WebhookCheckSuiteRerequested", + "WebhookCheckSuiteRerequestedPropCheckSuite", + "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0466.py b/githubkit/versions/v2022_11_28/models/group_0466.py index bc7553dc2..86e5c5a3e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0466.py +++ b/githubkit/versions/v2022_11_28/models/group_0466.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,21 +18,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookCommitCommentCreated(GitHubModel): - """commit_comment created event""" +class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): + """code_scanning_alert appeared_in_branch event""" - action: Literal["created"] = Field( - description="The action performed. Can be `created`." + action: Literal["appeared_in_branch"] = Field() + alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( + description="The code scanning alert involved in the event." ) - comment: WebhookCommitCommentCreatedPropComment = Field( - description="The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource." + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -48,6 +50,9 @@ class WebhookCommitCommentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,70 +60,51 @@ class WebhookCommitCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCommitCommentCreatedPropComment(GitHubModel): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlert - The [commit - comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- - comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: str = Field() - html_url: str = Field() - id: int = Field(description="The ID of the commit comment.") - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the commit comment.") - path: Union[str, None] = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( - default=UNSET, title="Reactions" - ) - updated_at: str = Field() - url: str = Field() - user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( - title="User" + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - - -class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None + ] = Field(title="User") + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, + None, + ] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() url: str = Field() -class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -145,14 +131,106 @@ class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookCommitCommentCreated) -model_rebuild(WebhookCommitCommentCreatedPropComment) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( + GitHubModel +): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" + + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertAppearedInBranch) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCommitCommentCreated", - "WebhookCommitCommentCreatedPropComment", - "WebhookCommitCommentCreatedPropCommentPropReactions", - "WebhookCommitCommentCreatedPropCommentPropUser", + "WebhookCodeScanningAlertAppearedInBranch", + "WebhookCodeScanningAlertAppearedInBranchPropAlert", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0467.py b/githubkit/versions/v2022_11_28/models/group_0467.py index 87ef7153f..6f6e3625d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0467.py +++ b/githubkit/versions/v2022_11_28/models/group_0467.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,18 +18,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookCreate(GitHubModel): - """create event""" +class WebhookCodeScanningAlertClosedByUser(GitHubModel): + """code_scanning_alert closed_by_user event""" - description: Union[str, None] = Field( - description="The repository's current description." + action: Literal["closed_by_user"] = Field() + alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -40,22 +45,13 @@ class WebhookCreate(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - master_branch: str = Field( - description="The name of the repository's default branch (usually `main`)." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) ref: str = Field( - description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object created in the repository." + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -64,6 +60,177 @@ class WebhookCreate(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCreate) +class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: datetime = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None + ] = Field(title="User") + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() + state: Literal["dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertClosedByUser) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) -__all__ = ("WebhookCreate",) +__all__ = ( + "WebhookCodeScanningAlertClosedByUser", + "WebhookCodeScanningAlertClosedByUserPropAlert", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", + "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0468.py b/githubkit/versions/v2022_11_28/models/group_0468.py index 458d2be5e..def7577cd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0468.py +++ b/githubkit/versions/v2022_11_28/models/group_0468.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,20 +18,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0107 import CustomProperty -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookCustomPropertyCreated(GitHubModel): - """custom property created event""" +class WebhookCodeScanningAlertCreated(GitHubModel): + """code_scanning_alert created event""" action: Literal["created"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + alert: WebhookCodeScanningAlertCreatedPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -47,11 +50,156 @@ class WebhookCustomPropertyCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: Union[datetime, None] = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: None = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: None = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: None = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() + state: Union[None, Literal["open", "dismissed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() + updated_at: Missing[Union[str, None]] = Field(default=UNSET) + url: str = Field() + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." ) -model_rebuild(WebhookCustomPropertyCreated) +model_rebuild(WebhookCodeScanningAlertCreated) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) -__all__ = ("WebhookCustomPropertyCreated",) +__all__ = ( + "WebhookCodeScanningAlertCreated", + "WebhookCodeScanningAlertCreatedPropAlert", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertCreatedPropAlertPropRule", + "WebhookCodeScanningAlertCreatedPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0469.py b/githubkit/versions/v2022_11_28/models/group_0469.py index 95005f017..055b6e7b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0469.py +++ b/githubkit/versions/v2022_11_28/models/group_0469.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,17 +18,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookCustomPropertyDeleted(GitHubModel): - """custom property deleted event""" +class WebhookCodeScanningAlertFixed(GitHubModel): + """code_scanning_alert fixed event""" - action: Literal["deleted"] = Field() - definition: WebhookCustomPropertyDeletedPropDefinition = Field() + action: Literal["fixed"] = Field() + alert: WebhookCodeScanningAlertFixedPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,21 +50,184 @@ class WebhookCustomPropertyDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( + Field(title="User") + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() + state: Union[None, Literal["fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." ) + location: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + +class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" -class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): - """WebhookCustomPropertyDeletedPropDefinition""" + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) - property_name: str = Field(description="The name of the property that was deleted.") + +class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) -model_rebuild(WebhookCustomPropertyDeleted) -model_rebuild(WebhookCustomPropertyDeletedPropDefinition) +model_rebuild(WebhookCodeScanningAlertFixed) +model_rebuild(WebhookCodeScanningAlertFixedPropAlert) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) __all__ = ( - "WebhookCustomPropertyDeleted", - "WebhookCustomPropertyDeletedPropDefinition", + "WebhookCodeScanningAlertFixed", + "WebhookCodeScanningAlertFixedPropAlert", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertFixedPropAlertPropRule", + "WebhookCodeScanningAlertFixedPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0470.py b/githubkit/versions/v2022_11_28/models/group_0470.py index 93a61115a..40ddca906 100644 --- a/githubkit/versions/v2022_11_28/models/group_0470.py +++ b/githubkit/versions/v2022_11_28/models/group_0470.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,20 +18,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0107 import CustomProperty -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookCustomPropertyUpdated(GitHubModel): - """custom property updated event""" +class WebhookCodeScanningAlertReopened(GitHubModel): + """code_scanning_alert reopened event""" - action: Literal["updated"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["reopened"] = Field() + alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: Union[str, None] = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -47,11 +50,164 @@ class WebhookCustomPropertyUpdated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + ref: Union[str, None] = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[str, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None + ] = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[str, None] = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field() + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." ) -model_rebuild(WebhookCustomPropertyUpdated) +model_rebuild(WebhookCodeScanningAlertReopened) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) -__all__ = ("WebhookCustomPropertyUpdated",) +__all__ = ( + "WebhookCodeScanningAlertReopened", + "WebhookCodeScanningAlertReopenedPropAlert", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedPropAlertPropRule", + "WebhookCodeScanningAlertReopenedPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0471.py b/githubkit/versions/v2022_11_28/models/group_0471.py index 4078f3a2f..f03cd1386 100644 --- a/githubkit/versions/v2022_11_28/models/group_0471.py +++ b/githubkit/versions/v2022_11_28/models/group_0471.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,18 +18,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0109 import CustomPropertyValue -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookCustomPropertyValuesUpdated(GitHubModel): - """Custom property values updated event""" +class WebhookCodeScanningAlertReopenedByUser(GitHubModel): + """code_scanning_alert reopened_by_user event""" - action: Literal["updated"] = Field() + action: Literal["reopened_by_user"] = Field() + alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,25 +45,158 @@ class WebhookCustomPropertyValuesUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: None = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: None = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: None = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None + ] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() + state: Union[None, Literal["open", "fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( + GitHubModel +): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." ) - new_property_values: list[CustomPropertyValue] = Field( - description="The new custom property values for the repository." + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio + n + """ + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" + + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." ) - old_property_values: list[CustomPropertyValue] = Field( - description="The old custom property values for the repository." + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." ) -model_rebuild(WebhookCustomPropertyValuesUpdated) +model_rebuild(WebhookCodeScanningAlertReopenedByUser) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) -__all__ = ("WebhookCustomPropertyValuesUpdated",) +__all__ = ( + "WebhookCodeScanningAlertReopenedByUser", + "WebhookCodeScanningAlertReopenedByUserPropAlert", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0472.py b/githubkit/versions/v2022_11_28/models/group_0472.py index a88f680b7..60289ff3e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0472.py +++ b/githubkit/versions/v2022_11_28/models/group_0472.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,16 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookDelete(GitHubModel): - """delete event""" +class WebhookCommitCommentCreated(GitHubModel): + """commit_comment created event""" + action: Literal["created"] = Field( + description="The action performed. Can be `created`." + ) + comment: WebhookCommitCommentCreatedPropComment = Field( + description="The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,15 +48,6 @@ class WebhookDelete(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) - ref: str = Field( - description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object deleted in the repository." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -58,6 +55,104 @@ class WebhookDelete(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDelete) +class WebhookCommitCommentCreatedPropComment(GitHubModel): + """WebhookCommitCommentCreatedPropComment + + The [commit + comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- + comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: str = Field() + html_url: str = Field() + id: int = Field(description="The ID of the commit comment.") + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the commit comment.") + path: Union[str, None] = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( + default=UNSET, title="Reactions" + ) + updated_at: str = Field() + url: str = Field() + user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookCommitCommentCreated) +model_rebuild(WebhookCommitCommentCreatedPropComment) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) -__all__ = ("WebhookDelete",) +__all__ = ( + "WebhookCommitCommentCreated", + "WebhookCommitCommentCreatedPropComment", + "WebhookCommitCommentCreatedPropCommentPropReactions", + "WebhookCommitCommentCreatedPropCommentPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0473.py b/githubkit/versions/v2022_11_28/models/group_0473.py index 71b3a545e..813b46887 100644 --- a/githubkit/versions/v2022_11_28/models/group_0473.py +++ b/githubkit/versions/v2022_11_28/models/group_0473.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,33 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0258 import DependabotAlert -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookDependabotAlertAutoDismissed(GitHubModel): - """Dependabot alert auto-dismissed event""" +class WebhookCreate(GitHubModel): + """create event""" - action: Literal["auto_dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + description: Union[str, None] = Field( + description="The repository's current description." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + master_branch: str = Field( + description="The name of the repository's default branch (usually `main`)." + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." + ) + ref: str = Field( + description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." + ) + ref_type: Literal["tag", "branch"] = Field( + description="The type of Git ref object created in the repository." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -52,6 +64,6 @@ class WebhookDependabotAlertAutoDismissed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertAutoDismissed) +model_rebuild(WebhookCreate) -__all__ = ("WebhookDependabotAlertAutoDismissed",) +__all__ = ("WebhookCreate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0474.py b/githubkit/versions/v2022_11_28/models/group_0474.py index 887519db0..0ec588bd2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0474.py +++ b/githubkit/versions/v2022_11_28/models/group_0474.py @@ -17,19 +17,26 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0258 import DependabotAlert -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0112 import CustomProperty +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoReopened(GitHubModel): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyCreated(GitHubModel): + """custom property created event""" - action: Literal["auto_reopened"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["created"] = Field() + definition: CustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,18 +47,11 @@ class WebhookDependabotAlertAutoReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertAutoReopened) +model_rebuild(WebhookCustomPropertyCreated) -__all__ = ("WebhookDependabotAlertAutoReopened",) +__all__ = ("WebhookCustomPropertyCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0475.py b/githubkit/versions/v2022_11_28/models/group_0475.py index fb3199972..eaec4fefb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0475.py +++ b/githubkit/versions/v2022_11_28/models/group_0475.py @@ -17,19 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0258 import DependabotAlert -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks -class WebhookDependabotAlertCreated(GitHubModel): - """Dependabot alert created event""" +class WebhookCustomPropertyDeleted(GitHubModel): + """custom property deleted event""" - action: Literal["created"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["deleted"] = Field() + definition: WebhookCustomPropertyDeletedPropDefinition = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,18 +43,21 @@ class WebhookDependabotAlertCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertCreated) +class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str = Field(description="The name of the property that was deleted.") + + +model_rebuild(WebhookCustomPropertyDeleted) +model_rebuild(WebhookCustomPropertyDeletedPropDefinition) -__all__ = ("WebhookDependabotAlertCreated",) +__all__ = ( + "WebhookCustomPropertyDeleted", + "WebhookCustomPropertyDeletedPropDefinition", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0476.py b/githubkit/versions/v2022_11_28/models/group_0476.py index ba4284219..33603cc8e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0476.py +++ b/githubkit/versions/v2022_11_28/models/group_0476.py @@ -17,19 +17,26 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0258 import DependabotAlert -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0112 import CustomProperty +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks -class WebhookDependabotAlertDismissed(GitHubModel): - """Dependabot alert dismissed event""" +class WebhookCustomPropertyUpdated(GitHubModel): + """custom property updated event""" - action: Literal["dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + definition: CustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,18 +47,11 @@ class WebhookDependabotAlertDismissed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertDismissed) +model_rebuild(WebhookCustomPropertyUpdated) -__all__ = ("WebhookDependabotAlertDismissed",) +__all__ = ("WebhookCustomPropertyUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0477.py b/githubkit/versions/v2022_11_28/models/group_0477.py index 74e856613..9d24443b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0477.py +++ b/githubkit/versions/v2022_11_28/models/group_0477.py @@ -17,41 +17,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0258 import DependabotAlert -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0114 import CustomPropertyValue +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookDependabotAlertFixed(GitHubModel): - """Dependabot alert fixed event""" +class WebhookCustomPropertyValuesUpdated(GitHubModel): + """Custom property values updated event""" - action: Literal["fixed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + new_property_values: list[CustomPropertyValue] = Field( + description="The new custom property values for the repository." + ) + old_property_values: list[CustomPropertyValue] = Field( + description="The old custom property values for the repository." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertFixed) +model_rebuild(WebhookCustomPropertyValuesUpdated) -__all__ = ("WebhookDependabotAlertFixed",) +__all__ = ("WebhookCustomPropertyValuesUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0478.py b/githubkit/versions/v2022_11_28/models/group_0478.py index e1f33ad64..6c91aae55 100644 --- a/githubkit/versions/v2022_11_28/models/group_0478.py +++ b/githubkit/versions/v2022_11_28/models/group_0478.py @@ -17,19 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0258 import DependabotAlert -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookDependabotAlertReintroduced(GitHubModel): - """Dependabot alert reintroduced event""" +class WebhookDelete(GitHubModel): + """delete event""" - action: Literal["reintroduced"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,10 +42,14 @@ class WebhookDependabotAlertReintroduced(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." + ) + ref: str = Field( + description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." + ) + ref_type: Literal["tag", "branch"] = Field( + description="The type of Git ref object deleted in the repository." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -52,6 +58,6 @@ class WebhookDependabotAlertReintroduced(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertReintroduced) +model_rebuild(WebhookDelete) -__all__ = ("WebhookDependabotAlertReintroduced",) +__all__ = ("WebhookDelete",) diff --git a/githubkit/versions/v2022_11_28/models/group_0479.py b/githubkit/versions/v2022_11_28/models/group_0479.py index 6dbc92de4..08f56be7c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0479.py +++ b/githubkit/versions/v2022_11_28/models/group_0479.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0258 import DependabotAlert -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0264 import DependabotAlert +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookDependabotAlertReopened(GitHubModel): - """Dependabot alert reopened event""" +class WebhookDependabotAlertAutoDismissed(GitHubModel): + """Dependabot alert auto-dismissed event""" - action: Literal["reopened"] = Field() + action: Literal["auto_dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertReopened) +model_rebuild(WebhookDependabotAlertAutoDismissed) -__all__ = ("WebhookDependabotAlertReopened",) +__all__ = ("WebhookDependabotAlertAutoDismissed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0480.py b/githubkit/versions/v2022_11_28/models/group_0480.py index 5c1c75970..119e8ecaa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0480.py +++ b/githubkit/versions/v2022_11_28/models/group_0480.py @@ -17,36 +17,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0400 import WebhooksDeployKey +from .group_0003 import SimpleUser +from .group_0264 import DependabotAlert +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookDeployKeyCreated(GitHubModel): - """deploy_key created event""" +class WebhookDependabotAlertAutoReopened(GitHubModel): + """Dependabot alert auto-reopened event""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["auto_reopened"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhooksDeployKey = Field( - description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -54,6 +52,6 @@ class WebhookDeployKeyCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDeployKeyCreated) +model_rebuild(WebhookDependabotAlertAutoReopened) -__all__ = ("WebhookDeployKeyCreated",) +__all__ = ("WebhookDependabotAlertAutoReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0481.py b/githubkit/versions/v2022_11_28/models/group_0481.py index 54d445362..c3b223991 100644 --- a/githubkit/versions/v2022_11_28/models/group_0481.py +++ b/githubkit/versions/v2022_11_28/models/group_0481.py @@ -17,36 +17,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0400 import WebhooksDeployKey +from .group_0003 import SimpleUser +from .group_0264 import DependabotAlert +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookDeployKeyDeleted(GitHubModel): - """deploy_key deleted event""" +class WebhookDependabotAlertCreated(GitHubModel): + """Dependabot alert created event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["created"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhooksDeployKey = Field( - description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -54,6 +52,6 @@ class WebhookDeployKeyDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDeployKeyDeleted) +model_rebuild(WebhookDependabotAlertCreated) -__all__ = ("WebhookDeployKeyDeleted",) +__all__ = ("WebhookDependabotAlertCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0482.py b/githubkit/versions/v2022_11_28/models/group_0482.py index 098fbe1cd..80ec19c07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0482.py +++ b/githubkit/versions/v2022_11_28/models/group_0482.py @@ -9,36 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0401 import WebhooksWorkflow +from .group_0003 import SimpleUser +from .group_0264 import DependabotAlert +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookDeploymentCreated(GitHubModel): - """deployment created event""" +class WebhookDependabotAlertDismissed(GitHubModel): + """Dependabot alert dismissed event""" - action: Literal["created"] = Field() - deployment: WebhookDeploymentCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["dismissed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -49,572 +40,18 @@ class WebhookDeploymentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentCreatedPropDeployment(GitHubModel): - """Deployment - - The [deployment](https://docs.github.com/rest/deployments/deployments#list- - deployments). - """ - - created_at: str = Field() - creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - environment: str = Field() - id: int = Field() - node_id: str = Field() - original_environment: str = Field() - payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1] = ( - Field() - ) - performed_via_github_app: Missing[ - Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - production_environment: Missing[bool] = Field(default=UNSET) - ref: str = Field() - repository_url: str = Field() - sha: str = Field() - statuses_url: str = Field() - task: str = Field() - transient_environment: Missing[bool] = Field(default=UNSET) - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): - """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1""" - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[None] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], - None, - ] - ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( - default=UNSET - ) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Missing[ - Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] - ] = Field(default=UNSET, title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( - Field(default=UNSET) - ) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentCreated) -model_rebuild(WebhookDeploymentCreatedPropDeployment) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertDismissed) -__all__ = ( - "WebhookDeploymentCreated", - "WebhookDeploymentCreatedPropDeployment", - "WebhookDeploymentCreatedPropDeploymentPropCreator", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentCreatedPropWorkflowRun", - "WebhookDeploymentCreatedPropWorkflowRunPropActor", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDependabotAlertDismissed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0483.py b/githubkit/versions/v2022_11_28/models/group_0483.py index 527205a26..c62522959 100644 --- a/githubkit/versions/v2022_11_28/models/group_0483.py +++ b/githubkit/versions/v2022_11_28/models/group_0483.py @@ -17,55 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0190 import Deployment -from .group_0321 import PullRequest -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0264 import DependabotAlert +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookDeploymentProtectionRuleRequested(GitHubModel): - """deployment protection rule requested event""" +class WebhookDependabotAlertFixed(GitHubModel): + """Dependabot alert fixed event""" - action: Literal["requested"] = Field() - environment: Missing[str] = Field( - default=UNSET, - description="The name of the environment that has the deployment protection rule.", - ) - event: Missing[str] = Field( - default=UNSET, - description="The event that triggered the deployment protection rule.", - ) - deployment_callback_url: Missing[str] = Field( - default=UNSET, description="The URL to review the deployment protection rule." - ) - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - pull_requests: Missing[list[PullRequest]] = Field(default=UNSET) - repository: Missing[RepositoryWebhooks] = Field( + action: Literal["fixed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - installation: Missing[SimpleInstallation] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDeploymentProtectionRuleRequested) +model_rebuild(WebhookDependabotAlertFixed) -__all__ = ("WebhookDeploymentProtectionRuleRequested",) +__all__ = ("WebhookDependabotAlertFixed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0484.py b/githubkit/versions/v2022_11_28/models/group_0484.py index bbd716d6c..a4735ec6c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0484.py +++ b/githubkit/versions/v2022_11_28/models/group_0484.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,458 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0402 import WebhooksApprover, WebhooksReviewersItems -from .group_0403 import WebhooksWorkflowJobRun +from .group_0003 import SimpleUser +from .group_0264 import DependabotAlert +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookDeploymentReviewApproved(GitHubModel): - """WebhookDeploymentReviewApproved""" +class WebhookDependabotAlertReintroduced(GitHubModel): + """Dependabot alert reintroduced event""" - action: Literal["approved"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["reintroduced"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - since: str = Field() - workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) - workflow_job_runs: Missing[ - list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: Missing[None] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewApproved) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertReintroduced) -__all__ = ( - "WebhookDeploymentReviewApproved", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRun", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDependabotAlertReintroduced",) diff --git a/githubkit/versions/v2022_11_28/models/group_0485.py b/githubkit/versions/v2022_11_28/models/group_0485.py index d59ad38b3..16caf5902 100644 --- a/githubkit/versions/v2022_11_28/models/group_0485.py +++ b/githubkit/versions/v2022_11_28/models/group_0485.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,458 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0402 import WebhooksApprover, WebhooksReviewersItems -from .group_0403 import WebhooksWorkflowJobRun +from .group_0003 import SimpleUser +from .group_0264 import DependabotAlert +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookDeploymentReviewRejected(GitHubModel): - """WebhookDeploymentReviewRejected""" +class WebhookDependabotAlertReopened(GitHubModel): + """Dependabot alert reopened event""" - action: Literal["rejected"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["reopened"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - since: str = Field() - workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) - workflow_job_runs: Missing[ - list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( - Field() - ) - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRejected) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertReopened) -__all__ = ( - "WebhookDeploymentReviewRejected", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRun", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDependabotAlertReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0486.py b/githubkit/versions/v2022_11_28/models/group_0486.py index 5d31faf63..97229a4d4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0486.py +++ b/githubkit/versions/v2022_11_28/models/group_0486.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,30 +17,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0406 import WebhooksDeployKey -class WebhookDeploymentReviewRequested(GitHubModel): - """WebhookDeploymentReviewRequested""" +class WebhookDeployKeyCreated(GitHubModel): + """deploy_key created event""" - action: Literal["requested"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + key: WebhooksDeployKey = Field( + description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -49,465 +51,9 @@ class WebhookDeploymentReviewRequested(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requestor: Union[WebhooksUser, None] = Field(title="User") - reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - since: str = Field() - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewRequestedPropWorkflowJobRun(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - status: str = Field() - updated_at: str = Field() - - -class WebhookDeploymentReviewRequestedPropReviewersItems(GitHubModel): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: Missing[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, None] - ] = Field(default=UNSET, title="User") - type: Missing[Literal["User", "Team"]] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( - Field(title="User") - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRequested) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyCreated) -__all__ = ( - "WebhookDeploymentReviewRequested", - "WebhookDeploymentReviewRequestedPropReviewersItems", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewRequestedPropWorkflowJobRun", - "WebhookDeploymentReviewRequestedPropWorkflowRun", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDeployKeyCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0487.py b/githubkit/versions/v2022_11_28/models/group_0487.py index 331c9f1ac..f90e3989c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0487.py +++ b/githubkit/versions/v2022_11_28/models/group_0487.py @@ -9,37 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0401 import WebhooksWorkflow +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0406 import WebhooksDeployKey -class WebhookDeploymentStatusCreated(GitHubModel): - """deployment_status created event""" +class WebhookDeployKeyDeleted(GitHubModel): + """deploy_key deleted event""" - action: Literal["created"] = Field() - check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( - default=UNSET - ) - deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", - ) - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( - description="The [deployment status](https://docs.github.com/rest/deployments/statuses#list-deployment-statuses)." - ) + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +39,9 @@ class WebhookDeploymentStatusCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + key: WebhooksDeployKey = Field( + description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -60,826 +52,8 @@ class WebhookDeploymentStatusCreated(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Missing[Union[WebhooksWorkflow, None]] = Field( - default=UNSET, title="Workflow" - ) - workflow_run: Missing[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] - ] = Field(default=UNSET, title="Deployment Workflow Run") - - -class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The result of the completed check run. This value will be `null` until the check run has completed." - ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check run.") - node_id: str = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( - description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." - ) - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): - """Deployment - - The [deployment](https://docs.github.com/rest/deployments/deployments#list- - deployments). - """ - - created_at: str = Field() - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - environment: str = Field() - id: int = Field() - node_id: str = Field() - original_environment: str = Field() - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None - ] = Field() - performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None - ] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - production_environment: Missing[bool] = Field(default=UNSET) - ref: str = Field() - repository_url: str = Field() - sha: str = Field() - statuses_url: str = Field() - task: str = Field() - transient_environment: Missing[bool] = Field(default=UNSET) - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( - GitHubModel -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss - ions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatus(GitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentStatus - - The [deployment status](https://docs.github.com/rest/deployments/statuses#list- - deployment-statuses). - """ - - created_at: str = Field() - creator: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, None - ] = Field(title="User") - deployment_url: str = Field() - description: str = Field( - description="The optional human-readable description added to the status." - ) - environment: str = Field() - environment_url: Missing[str] = Field(default=UNSET) - id: int = Field() - log_url: Missing[str] = Field(default=UNSET) - node_id: str = Field() - performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, - None, - ] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - repository_url: str = Field() - state: str = Field( - description="The new state. Can be `pending`, `success`, `failure`, or `error`." - ) - target_url: str = Field(description="The optional link added to the status.") - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp( - GitHubModel -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[None] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( - Field(default=UNSET) - ) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentStatusCreated) -model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) -model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyDeleted) -__all__ = ( - "WebhookDeploymentStatusCreated", - "WebhookDeploymentStatusCreatedPropCheckRun", - "WebhookDeploymentStatusCreatedPropDeployment", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropDeploymentStatus", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropWorkflowRun", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDeployKeyDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0488.py b/githubkit/versions/v2022_11_28/models/group_0488.py index 425fabd5e..35b9938ad 100644 --- a/githubkit/versions/v2022_11_28/models/group_0488.py +++ b/githubkit/versions/v2022_11_28/models/group_0488.py @@ -9,30 +9,30 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0405 import WebhooksAnswer -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0407 import WebhooksWorkflow -class WebhookDiscussionAnswered(GitHubModel): - """discussion answered event""" +class WebhookDeploymentCreated(GitHubModel): + """deployment created event""" - action: Literal["answered"] = Field() - answer: WebhooksAnswer = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["created"] = Field() + deployment: WebhookDeploymentCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,8 +54,567 @@ class WebhookDiscussionAnswered(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentCreatedPropDeployment(GitHubModel): + """Deployment + + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ + + created_at: str = Field() + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + environment: str = Field() + id: int = Field() + node_id: str = Field() + original_environment: str = Field() + payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1] = ( + Field() + ) + performed_via_github_app: Missing[ + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + production_environment: Missing[bool] = Field(default=UNSET) + ref: str = Field() + repository_url: str = Field() + sha: str = Field() + statuses_url: str = Field() + task: str = Field() + transient_environment: Missing[bool] = Field(default=UNSET) + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): + """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1""" + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[None] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[None] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], + None, + ] + ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( + default=UNSET + ) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Missing[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] + ] = Field(default=UNSET, title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( + Field(default=UNSET) + ) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionAnswered) +model_rebuild(WebhookDeploymentCreated) +model_rebuild(WebhookDeploymentCreatedPropDeployment) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionAnswered",) +__all__ = ( + "WebhookDeploymentCreated", + "WebhookDeploymentCreatedPropDeployment", + "WebhookDeploymentCreatedPropDeploymentPropCreator", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentCreatedPropWorkflowRun", + "WebhookDeploymentCreatedPropWorkflowRunPropActor", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0489.py b/githubkit/versions/v2022_11_28/models/group_0489.py index 8a35c1386..1323d05d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0489.py +++ b/githubkit/versions/v2022_11_28/models/group_0489.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -18,81 +17,55 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0196 import Deployment +from .group_0327 import PullRequest +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookDiscussionCategoryChanged(GitHubModel): - """discussion category changed event""" +class WebhookDeploymentProtectionRuleRequested(GitHubModel): + """deployment protection rule requested event""" - action: Literal["category_changed"] = Field() - changes: WebhookDiscussionCategoryChangedPropChanges = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["requested"] = Field() + environment: Missing[str] = Field( + default=UNSET, + description="The name of the environment that has the deployment protection rule.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + event: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + description="The event that triggered the deployment protection rule.", ) - installation: Missing[SimpleInstallation] = Field( + deployment_callback_url: Missing[str] = Field( + default=UNSET, description="The URL to review the deployment protection rule." + ) + deployment: Missing[Deployment] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + pull_requests: Missing[list[PullRequest]] = Field(default=UNSET) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): - """WebhookDiscussionCategoryChangedPropChanges""" - - category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() - - -class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" - - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( - alias="from" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" - - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() - id: int = Field() - is_answerable: bool = Field() - name: str = Field() - node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() - - -model_rebuild(WebhookDiscussionCategoryChanged) -model_rebuild(WebhookDiscussionCategoryChangedPropChanges) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) +model_rebuild(WebhookDeploymentProtectionRuleRequested) -__all__ = ( - "WebhookDiscussionCategoryChanged", - "WebhookDiscussionCategoryChangedPropChanges", - "WebhookDiscussionCategoryChangedPropChangesPropCategory", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", -) +__all__ = ("WebhookDeploymentProtectionRuleRequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0490.py b/githubkit/versions/v2022_11_28/models/group_0490.py index 8588c3a4e..6ac702900 100644 --- a/githubkit/versions/v2022_11_28/models/group_0490.py +++ b/githubkit/versions/v2022_11_28/models/group_0490.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,21 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0408 import WebhooksApprover, WebhooksReviewersItems +from .group_0409 import WebhooksWorkflowJobRun -class WebhookDiscussionClosed(GitHubModel): - """discussion closed event""" +class WebhookDeploymentReviewApproved(GitHubModel): + """WebhookDeploymentReviewApproved""" - action: Literal["closed"] = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["approved"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,8 +43,7 @@ class WebhookDiscussionClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,9 +51,425 @@ class WebhookDiscussionClosed(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + since: str = Field() + workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) + workflow_job_runs: Missing[ + list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" + + conclusion: Missing[None] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionClosed) +model_rebuild(WebhookDeploymentReviewApproved) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionClosed",) +__all__ = ( + "WebhookDeploymentReviewApproved", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRun", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0491.py b/githubkit/versions/v2022_11_28/models/group_0491.py index c674fdb0f..54739e350 100644 --- a/githubkit/versions/v2022_11_28/models/group_0491.py +++ b/githubkit/versions/v2022_11_28/models/group_0491.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,23 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion -from .group_0407 import WebhooksComment +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0408 import WebhooksApprover, WebhooksReviewersItems +from .group_0409 import WebhooksWorkflowJobRun -class WebhookDiscussionCommentCreated(GitHubModel): - """discussion_comment created event""" +class WebhookDeploymentReviewRejected(GitHubModel): + """WebhookDeploymentReviewRejected""" - action: Literal["created"] = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["rejected"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,8 +43,7 @@ class WebhookDiscussionCommentCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,9 +51,425 @@ class WebhookDiscussionCommentCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + since: str = Field() + workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) + workflow_job_runs: Missing[ + list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( + Field() + ) + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCommentCreated) +model_rebuild(WebhookDeploymentReviewRejected) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCommentCreated",) +__all__ = ( + "WebhookDeploymentReviewRejected", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRun", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0492.py b/githubkit/versions/v2022_11_28/models/group_0492.py index 1e9f5b422..5e6d2c6c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0492.py +++ b/githubkit/versions/v2022_11_28/models/group_0492.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,35 +18,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion -from .group_0407 import WebhooksComment +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser -class WebhookDiscussionCommentDeleted(GitHubModel): - """discussion_comment deleted event""" +class WebhookDeploymentReviewRequested(GitHubModel): + """WebhookDeploymentReviewRequested""" - action: Literal["deleted"] = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) + environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,9 +49,465 @@ class WebhookDiscussionCommentDeleted(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requestor: Union[WebhooksUser, None] = Field(title="User") + reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + since: str = Field() + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewRequestedPropWorkflowJobRun(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" + + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + status: str = Field() + updated_at: str = Field() + + +class WebhookDeploymentReviewRequestedPropReviewersItems(GitHubModel): + """WebhookDeploymentReviewRequestedPropReviewersItems""" + + reviewer: Missing[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, None] + ] = Field(default=UNSET, title="User") + type: Missing[Literal["User", "Team"]] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( + Field(title="User") + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCommentDeleted) +model_rebuild(WebhookDeploymentReviewRequested) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCommentDeleted",) +__all__ = ( + "WebhookDeploymentReviewRequested", + "WebhookDeploymentReviewRequestedPropReviewersItems", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewRequestedPropWorkflowJobRun", + "WebhookDeploymentReviewRequestedPropWorkflowRun", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0493.py b/githubkit/versions/v2022_11_28/models/group_0493.py index 081fc04a8..260a8f690 100644 --- a/githubkit/versions/v2022_11_28/models/group_0493.py +++ b/githubkit/versions/v2022_11_28/models/group_0493.py @@ -9,31 +9,36 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion -from .group_0407 import WebhooksComment +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0407 import WebhooksWorkflow -class WebhookDiscussionCommentEdited(GitHubModel): - """discussion_comment edited event""" +class WebhookDeploymentStatusCreated(GitHubModel): + """deployment_status created event""" - action: Literal["edited"] = Field() - changes: WebhookDiscussionCommentEditedPropChanges = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["created"] = Field() + check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( + default=UNSET + ) + deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", + ) + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( + description="The [deployment status](https://docs.github.com/rest/deployments/statuses#list-deployment-statuses)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -55,26 +60,826 @@ class WebhookDiscussionCommentEdited(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Missing[Union[WebhooksWorkflow, None]] = Field( + default=UNSET, title="Workflow" + ) + workflow_run: Missing[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] + ] = Field(default=UNSET, title="Deployment Workflow Run") + + +class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): + """WebhookDeploymentStatusCreatedPropCheckRun""" + + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The result of the completed check run. This value will be `null` until the check run has completed." + ) + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") + html_url: str = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check run.") + node_id: str = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( + description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." + ) + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): + """Deployment + + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ + + created_at: str = Field() + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + environment: str = Field() + id: int = Field() + node_id: str = Field() + original_environment: str = Field() + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None + ] = Field() + performed_via_github_app: Missing[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None + ] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + production_environment: Missing[bool] = Field(default=UNSET) + ref: str = Field() + repository_url: str = Field() + sha: str = Field() + statuses_url: str = Field() + task: str = Field() + transient_environment: Missing[bool] = Field(default=UNSET) + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): + """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( + GitHubModel +): + """App -class WebhookDiscussionCommentEditedPropChanges(GitHubModel): - """WebhookDiscussionCommentEditedPropChanges""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - from_: str = Field(alias="from") +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss + ions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatus(GitHubModel): + """WebhookDeploymentStatusCreatedPropDeploymentStatus + + The [deployment status](https://docs.github.com/rest/deployments/statuses#list- + deployment-statuses). + """ + + created_at: str = Field() + creator: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, None + ] = Field(title="User") + deployment_url: str = Field() + description: str = Field( + description="The optional human-readable description added to the status." + ) + environment: str = Field() + environment_url: Missing[str] = Field(default=UNSET) + id: int = Field() + log_url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + performed_via_github_app: Missing[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, + None, + ] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + repository_url: str = Field() + state: str = Field( + description="The new state. Can be `pending`, `success`, `failure`, or `error`." + ) + target_url: str = Field(description="The optional link added to the status.") + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp( + GitHubModel +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookDiscussionCommentEdited) -model_rebuild(WebhookDiscussionCommentEditedPropChanges) -model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) +class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[None] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[None] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( + Field(default=UNSET) + ) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookDeploymentStatusCreated) +model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) +model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookDiscussionCommentEdited", - "WebhookDiscussionCommentEditedPropChanges", - "WebhookDiscussionCommentEditedPropChangesPropBody", + "WebhookDeploymentStatusCreated", + "WebhookDeploymentStatusCreatedPropCheckRun", + "WebhookDeploymentStatusCreatedPropDeployment", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropDeploymentStatus", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropWorkflowRun", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0494.py b/githubkit/versions/v2022_11_28/models/group_0494.py index 27a1477df..e56ee5123 100644 --- a/githubkit/versions/v2022_11_28/models/group_0494.py +++ b/githubkit/versions/v2022_11_28/models/group_0494.py @@ -17,18 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0411 import WebhooksAnswer +from .group_0412 import Discussion -class WebhookDiscussionCreated(GitHubModel): - """discussion created event""" +class WebhookDiscussionAnswered(GitHubModel): + """discussion answered event""" - action: Literal["created"] = Field() + action: Literal["answered"] = Field() + answer: WebhooksAnswer = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +56,6 @@ class WebhookDiscussionCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionCreated) +model_rebuild(WebhookDiscussionAnswered) -__all__ = ("WebhookDiscussionCreated",) +__all__ = ("WebhookDiscussionAnswered",) diff --git a/githubkit/versions/v2022_11_28/models/group_0495.py b/githubkit/versions/v2022_11_28/models/group_0495.py index 073e6d10a..cfb843546 100644 --- a/githubkit/versions/v2022_11_28/models/group_0495.py +++ b/githubkit/versions/v2022_11_28/models/group_0495.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -17,18 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion -class WebhookDiscussionDeleted(GitHubModel): - """discussion deleted event""" +class WebhookDiscussionCategoryChanged(GitHubModel): + """discussion category changed event""" - action: Literal["deleted"] = Field() + action: Literal["category_changed"] = Field() + changes: WebhookDiscussionCategoryChangedPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +56,43 @@ class WebhookDiscussionDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionDeleted) +class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): + """WebhookDiscussionCategoryChangedPropChanges""" -__all__ = ("WebhookDiscussionDeleted",) + category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() + + +class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( + alias="from" + ) + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() + + +model_rebuild(WebhookDiscussionCategoryChanged) +model_rebuild(WebhookDiscussionCategoryChangedPropChanges) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) + +__all__ = ( + "WebhookDiscussionCategoryChanged", + "WebhookDiscussionCategoryChangedPropChanges", + "WebhookDiscussionCategoryChangedPropChangesPropCategory", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0496.py b/githubkit/versions/v2022_11_28/models/group_0496.py index fe44307bc..8a7e8ab48 100644 --- a/githubkit/versions/v2022_11_28/models/group_0496.py +++ b/githubkit/versions/v2022_11_28/models/group_0496.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion -class WebhookDiscussionEdited(GitHubModel): - """discussion edited event""" +class WebhookDiscussionClosed(GitHubModel): + """discussion closed event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) + action: Literal["closed"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -55,33 +54,6 @@ class WebhookDiscussionEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookDiscussionEditedPropChanges(GitHubModel): - """WebhookDiscussionEditedPropChanges""" +model_rebuild(WebhookDiscussionClosed) - body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookDiscussionEdited) -model_rebuild(WebhookDiscussionEditedPropChanges) -model_rebuild(WebhookDiscussionEditedPropChangesPropBody) -model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) - -__all__ = ( - "WebhookDiscussionEdited", - "WebhookDiscussionEditedPropChanges", - "WebhookDiscussionEditedPropChangesPropBody", - "WebhookDiscussionEditedPropChangesPropTitle", -) +__all__ = ("WebhookDiscussionClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0497.py b/githubkit/versions/v2022_11_28/models/group_0497.py index 123e35777..0254bf682 100644 --- a/githubkit/versions/v2022_11_28/models/group_0497.py +++ b/githubkit/versions/v2022_11_28/models/group_0497.py @@ -17,19 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion -from .group_0408 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion +from .group_0413 import WebhooksComment -class WebhookDiscussionLabeled(GitHubModel): - """discussion labeled event""" +class WebhookDiscussionCommentCreated(GitHubModel): + """discussion_comment created event""" - action: Literal["labeled"] = Field() + action: Literal["created"] = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -43,7 +44,6 @@ class WebhookDiscussionLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,6 +56,6 @@ class WebhookDiscussionLabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionLabeled) +model_rebuild(WebhookDiscussionCommentCreated) -__all__ = ("WebhookDiscussionLabeled",) +__all__ = ("WebhookDiscussionCommentCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0498.py b/githubkit/versions/v2022_11_28/models/group_0498.py index 15ee6411e..34f880319 100644 --- a/githubkit/versions/v2022_11_28/models/group_0498.py +++ b/githubkit/versions/v2022_11_28/models/group_0498.py @@ -17,18 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion +from .group_0413 import WebhooksComment -class WebhookDiscussionLocked(GitHubModel): - """discussion locked event""" +class WebhookDiscussionCommentDeleted(GitHubModel): + """discussion_comment deleted event""" - action: Literal["locked"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +56,6 @@ class WebhookDiscussionLocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionLocked) +model_rebuild(WebhookDiscussionCommentDeleted) -__all__ = ("WebhookDiscussionLocked",) +__all__ = ("WebhookDiscussionCommentDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0499.py b/githubkit/versions/v2022_11_28/models/group_0499.py index 1bed519fa..26de7706b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0499.py +++ b/githubkit/versions/v2022_11_28/models/group_0499.py @@ -17,18 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion +from .group_0413 import WebhooksComment -class WebhookDiscussionPinned(GitHubModel): - """discussion pinned event""" +class WebhookDiscussionCommentEdited(GitHubModel): + """discussion_comment edited event""" - action: Literal["pinned"] = Field() + action: Literal["edited"] = Field() + changes: WebhookDiscussionCommentEditedPropChanges = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +57,24 @@ class WebhookDiscussionPinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionPinned) +class WebhookDiscussionCommentEditedPropChanges(GitHubModel): + """WebhookDiscussionCommentEditedPropChanges""" -__all__ = ("WebhookDiscussionPinned",) + body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() + + +class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookDiscussionCommentEdited) +model_rebuild(WebhookDiscussionCommentEditedPropChanges) +model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) + +__all__ = ( + "WebhookDiscussionCommentEdited", + "WebhookDiscussionCommentEditedPropChanges", + "WebhookDiscussionCommentEditedPropChangesPropBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0500.py b/githubkit/versions/v2022_11_28/models/group_0500.py index bbe033f1e..0785b40ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0500.py +++ b/githubkit/versions/v2022_11_28/models/group_0500.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion -class WebhookDiscussionReopened(GitHubModel): - """discussion reopened event""" +class WebhookDiscussionCreated(GitHubModel): + """discussion created event""" - action: Literal["reopened"] = Field() + action: Literal["created"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionReopened) +model_rebuild(WebhookDiscussionCreated) -__all__ = ("WebhookDiscussionReopened",) +__all__ = ("WebhookDiscussionCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0501.py b/githubkit/versions/v2022_11_28/models/group_0501.py index b7a12c5a6..cc8739a51 100644 --- a/githubkit/versions/v2022_11_28/models/group_0501.py +++ b/githubkit/versions/v2022_11_28/models/group_0501.py @@ -17,20 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion -from .group_0502 import WebhookDiscussionTransferredPropChanges +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion -class WebhookDiscussionTransferred(GitHubModel): - """discussion transferred event""" +class WebhookDiscussionDeleted(GitHubModel): + """discussion deleted event""" - action: Literal["transferred"] = Field() - changes: WebhookDiscussionTransferredPropChanges = Field() + action: Literal["deleted"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -56,6 +54,6 @@ class WebhookDiscussionTransferred(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionTransferred) +model_rebuild(WebhookDiscussionDeleted) -__all__ = ("WebhookDiscussionTransferred",) +__all__ = ("WebhookDiscussionDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0502.py b/githubkit/versions/v2022_11_28/models/group_0502.py index 662ccb447..71e6ee54a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0502.py +++ b/githubkit/versions/v2022_11_28/models/group_0502.py @@ -9,26 +9,79 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion -class WebhookDiscussionTransferredPropChanges(GitHubModel): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionEdited(GitHubModel): + """discussion edited event""" - new_discussion: Discussion = Field( + action: Literal["edited"] = Field() + changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) + discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - new_repository: RepositoryWebhooks = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookDiscussionEditedPropChanges(GitHubModel): + """WebhookDiscussionEditedPropChanges""" + + body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str = Field(alias="from") -model_rebuild(WebhookDiscussionTransferredPropChanges) +model_rebuild(WebhookDiscussionEdited) +model_rebuild(WebhookDiscussionEditedPropChanges) +model_rebuild(WebhookDiscussionEditedPropChangesPropBody) +model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) -__all__ = ("WebhookDiscussionTransferredPropChanges",) +__all__ = ( + "WebhookDiscussionEdited", + "WebhookDiscussionEditedPropChanges", + "WebhookDiscussionEditedPropChangesPropBody", + "WebhookDiscussionEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0503.py b/githubkit/versions/v2022_11_28/models/group_0503.py index f275698db..72b59b852 100644 --- a/githubkit/versions/v2022_11_28/models/group_0503.py +++ b/githubkit/versions/v2022_11_28/models/group_0503.py @@ -17,21 +17,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0405 import WebhooksAnswer -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion +from .group_0414 import WebhooksLabel -class WebhookDiscussionUnanswered(GitHubModel): - """discussion unanswered event""" +class WebhookDiscussionLabeled(GitHubModel): + """discussion labeled event""" - action: Literal["unanswered"] = Field() + action: Literal["labeled"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - old_answer: WebhooksAnswer = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -41,11 +53,9 @@ class WebhookDiscussionUnanswered(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnanswered) +model_rebuild(WebhookDiscussionLabeled) -__all__ = ("WebhookDiscussionUnanswered",) +__all__ = ("WebhookDiscussionLabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0504.py b/githubkit/versions/v2022_11_28/models/group_0504.py index 6caef8ec3..2cc40d855 100644 --- a/githubkit/versions/v2022_11_28/models/group_0504.py +++ b/githubkit/versions/v2022_11_28/models/group_0504.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion -from .group_0408 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion -class WebhookDiscussionUnlabeled(GitHubModel): - """discussion unlabeled event""" +class WebhookDiscussionLocked(GitHubModel): + """discussion locked event""" - action: Literal["unlabeled"] = Field() + action: Literal["locked"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -43,7 +42,6 @@ class WebhookDiscussionUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,6 +54,6 @@ class WebhookDiscussionUnlabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnlabeled) +model_rebuild(WebhookDiscussionLocked) -__all__ = ("WebhookDiscussionUnlabeled",) +__all__ = ("WebhookDiscussionLocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0505.py b/githubkit/versions/v2022_11_28/models/group_0505.py index 6015ebbf3..ddf42d4b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0505.py +++ b/githubkit/versions/v2022_11_28/models/group_0505.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion -class WebhookDiscussionUnlocked(GitHubModel): - """discussion unlocked event""" +class WebhookDiscussionPinned(GitHubModel): + """discussion pinned event""" - action: Literal["unlocked"] = Field() + action: Literal["pinned"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionUnlocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnlocked) +model_rebuild(WebhookDiscussionPinned) -__all__ = ("WebhookDiscussionUnlocked",) +__all__ = ("WebhookDiscussionPinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0506.py b/githubkit/versions/v2022_11_28/models/group_0506.py index 17caa40c3..027ec1ad0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0506.py +++ b/githubkit/versions/v2022_11_28/models/group_0506.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0406 import Discussion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion -class WebhookDiscussionUnpinned(GitHubModel): - """discussion unpinned event""" +class WebhookDiscussionReopened(GitHubModel): + """discussion reopened event""" - action: Literal["unpinned"] = Field() + action: Literal["reopened"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionUnpinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnpinned) +model_rebuild(WebhookDiscussionReopened) -__all__ = ("WebhookDiscussionUnpinned",) +__all__ = ("WebhookDiscussionReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0507.py b/githubkit/versions/v2022_11_28/models/group_0507.py index 84dc3ead9..38c5c284a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0507.py +++ b/githubkit/versions/v2022_11_28/models/group_0507.py @@ -9,34 +9,36 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0508 import WebhookForkPropForkee - +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion +from .group_0508 import WebhookDiscussionTransferredPropChanges -class WebhookFork(GitHubModel): - """fork event - A user forks a repository. - """ +class WebhookDiscussionTransferred(GitHubModel): + """discussion transferred event""" + action: Literal["transferred"] = Field() + changes: WebhookDiscussionTransferredPropChanges = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - forkee: WebhookForkPropForkee = Field( - description="The created [`repository`](https://docs.github.com/rest/repos/repos#get-a-repository) resource." - ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -54,6 +56,6 @@ class WebhookFork(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookFork) +model_rebuild(WebhookDiscussionTransferred) -__all__ = ("WebhookFork",) +__all__ = ("WebhookDiscussionTransferred",) diff --git a/githubkit/versions/v2022_11_28/models/group_0508.py b/githubkit/versions/v2022_11_28/models/group_0508.py index 1027708f5..1d19cc23c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0508.py +++ b/githubkit/versions/v2022_11_28/models/group_0508.py @@ -9,186 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0510 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion -class WebhookForkPropForkee(GitHubModel): - """WebhookForkPropForkee - The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- - repository) resource. - """ +class WebhookDiscussionTransferredPropChanges(GitHubModel): + """WebhookDiscussionTransferredPropChanges""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: datetime = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + new_discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - downloads_url: str = Field() - events_url: str = Field() - fork: Literal[True] = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + new_repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[Union[str, None], None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[None, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[None, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: WebhookForkPropForkeeMergedOwner = Field() - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: datetime = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookForkPropForkeeMergedLicense(GitHubModel): - """WebhookForkPropForkeeMergedLicense""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeMergedOwner(GitHubModel): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkee) -model_rebuild(WebhookForkPropForkeeMergedLicense) -model_rebuild(WebhookForkPropForkeeMergedOwner) +model_rebuild(WebhookDiscussionTransferredPropChanges) -__all__ = ( - "WebhookForkPropForkee", - "WebhookForkPropForkeeMergedLicense", - "WebhookForkPropForkeeMergedOwner", -) +__all__ = ("WebhookDiscussionTransferredPropChanges",) diff --git a/githubkit/versions/v2022_11_28/models/group_0509.py b/githubkit/versions/v2022_11_28/models/group_0509.py index 195b01a9a..7d2994b7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0509.py +++ b/githubkit/versions/v2022_11_28/models/group_0509.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,178 +17,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0510 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0003 import SimpleUser +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0411 import WebhooksAnswer +from .group_0412 import Discussion -class WebhookForkPropForkeeAllof0(GitHubModel): - """Repository +class WebhookDiscussionUnanswered(GitHubModel): + """discussion unanswered event""" - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + action: Literal["unanswered"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + old_answer: WebhooksAnswer = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( - alias="license", title="License" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkeeAllof0) -model_rebuild(WebhookForkPropForkeeAllof0PropLicense) -model_rebuild(WebhookForkPropForkeeAllof0PropOwner) +model_rebuild(WebhookDiscussionUnanswered) -__all__ = ( - "WebhookForkPropForkeeAllof0", - "WebhookForkPropForkeeAllof0PropLicense", - "WebhookForkPropForkeeAllof0PropOwner", -) +__all__ = ("WebhookDiscussionUnanswered",) diff --git a/githubkit/versions/v2022_11_28/models/group_0510.py b/githubkit/versions/v2022_11_28/models/group_0510.py index f8d13642f..72686e76c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0510.py +++ b/githubkit/versions/v2022_11_28/models/group_0510.py @@ -9,23 +9,53 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): - """WebhookForkPropForkeeAllof0PropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) - -__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion +from .group_0414 import WebhooksLabel + + +class WebhookDiscussionUnlabeled(GitHubModel): + """discussion unlabeled event""" + + action: Literal["unlabeled"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: WebhooksLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookDiscussionUnlabeled) + +__all__ = ("WebhookDiscussionUnlabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0511.py b/githubkit/versions/v2022_11_28/models/group_0511.py index 18554f9e3..070218fcb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0511.py +++ b/githubkit/versions/v2022_11_28/models/group_0511.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,125 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion -class WebhookForkPropForkeeAllof1(GitHubModel): - """WebhookForkPropForkeeAllof1""" - allow_forking: Missing[bool] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[Literal[True]] = Field(default=UNSET) - forks: Missing[int] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - language: Missing[None] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( - default=UNSET, alias="license" - ) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[None] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - topics: Missing[list[Union[str, None]]] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - - -class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): - """WebhookForkPropForkeeAllof1PropLicense""" - - -class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): - """WebhookForkPropForkeeAllof1PropOwner""" +class WebhookDiscussionUnlocked(GitHubModel): + """discussion unlocked event""" - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + action: Literal["unlocked"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookForkPropForkeeAllof1) -model_rebuild(WebhookForkPropForkeeAllof1PropLicense) -model_rebuild(WebhookForkPropForkeeAllof1PropOwner) +model_rebuild(WebhookDiscussionUnlocked) -__all__ = ( - "WebhookForkPropForkeeAllof1", - "WebhookForkPropForkeeAllof1PropLicense", - "WebhookForkPropForkeeAllof1PropOwner", -) +__all__ = ("WebhookDiscussionUnlocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0512.py b/githubkit/versions/v2022_11_28/models/group_0512.py index 6a802002e..16c8c968c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0512.py +++ b/githubkit/versions/v2022_11_28/models/group_0512.py @@ -14,17 +14,46 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0002 import SimpleUser - - -class WebhookGithubAppAuthorizationRevoked(GitHubModel): - """github_app_authorization revoked event""" - - action: Literal["revoked"] = Field() +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0412 import Discussion + + +class WebhookDiscussionUnpinned(GitHubModel): + """discussion unpinned event""" + + action: Literal["unpinned"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookGithubAppAuthorizationRevoked) +model_rebuild(WebhookDiscussionUnpinned) -__all__ = ("WebhookGithubAppAuthorizationRevoked",) +__all__ = ("WebhookDiscussionUnpinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0513.py b/githubkit/versions/v2022_11_28/models/group_0513.py index b846972c4..f741c888f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0513.py +++ b/githubkit/versions/v2022_11_28/models/group_0513.py @@ -9,29 +9,34 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0514 import WebhookForkPropForkee + +class WebhookFork(GitHubModel): + """fork event -class WebhookGollum(GitHubModel): - """gollum event""" + A user forks a repository. + """ enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) + forkee: WebhookForkPropForkee = Field( + description="The created [`repository`](https://docs.github.com/rest/repos/repos#get-a-repository) resource." + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -42,9 +47,6 @@ class WebhookGollum(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pages: list[WebhookGollumPropPagesItems] = Field( - description="The pages that were updated." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -52,23 +54,6 @@ class WebhookGollum(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookGollumPropPagesItems(GitHubModel): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] = Field( - description="The action that was performed on the page. Can be `created` or `edited`." - ) - html_url: str = Field(description="Points to the HTML wiki page.") - page_name: str = Field(description="The name of the page.") - sha: str = Field(description="The latest commit SHA of the page.") - summary: Union[str, None] = Field() - title: str = Field(description="The current page title.") - - -model_rebuild(WebhookGollum) -model_rebuild(WebhookGollumPropPagesItems) +model_rebuild(WebhookFork) -__all__ = ( - "WebhookGollum", - "WebhookGollumPropPagesItems", -) +__all__ = ("WebhookFork",) diff --git a/githubkit/versions/v2022_11_28/models/group_0514.py b/githubkit/versions/v2022_11_28/models/group_0514.py index 42a55c8c6..c98b9df50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0514.py +++ b/githubkit/versions/v2022_11_28/models/group_0514.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,43 +18,177 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0393 import EnterpriseWebhooks -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser -from .group_0409 import WebhooksRepositoriesItems +from .group_0516 import WebhookForkPropForkeeAllof0PropPermissions -class WebhookInstallationCreated(GitHubModel): - """installation created event""" +class WebhookForkPropForkee(GitHubModel): + """WebhookForkPropForkee - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- + repository) resource. + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: datetime = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - description="An array of repository objects that the installation can access.", + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[Union[str, None], None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: Literal[True] = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - repository: Missing[RepositoryWebhooks] = Field( + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[Union[str, None], None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[None, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[None, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: WebhookForkPropForkeeMergedOwner = Field() + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: datetime = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="Whether to require contributors to sign off on web-based commits", ) - requester: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationCreated) +class WebhookForkPropForkeeMergedLicense(GitHubModel): + """WebhookForkPropForkeeMergedLicense""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookForkPropForkeeMergedOwner(GitHubModel): + """WebhookForkPropForkeeMergedOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkee) +model_rebuild(WebhookForkPropForkeeMergedLicense) +model_rebuild(WebhookForkPropForkeeMergedOwner) -__all__ = ("WebhookInstallationCreated",) +__all__ = ( + "WebhookForkPropForkee", + "WebhookForkPropForkeeMergedLicense", + "WebhookForkPropForkeeMergedOwner", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0515.py b/githubkit/versions/v2022_11_28/models/group_0515.py index 58425ad0b..927f4fb55 100644 --- a/githubkit/versions/v2022_11_28/models/group_0515.py +++ b/githubkit/versions/v2022_11_28/models/group_0515.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,42 +18,178 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0393 import EnterpriseWebhooks -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0409 import WebhooksRepositoriesItems +from .group_0516 import WebhookForkPropForkeeAllof0PropPermissions -class WebhookInstallationDeleted(GitHubModel): - """installation deleted event""" +class WebhookForkPropForkeeAllof0(GitHubModel): + """Repository - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - description="An array of repository objects that the installation can access.", + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - repository: Missing[RepositoryWebhooks] = Field( + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="Whether to require contributors to sign off on web-based commits", ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationDeleted) +class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkeeAllof0) +model_rebuild(WebhookForkPropForkeeAllof0PropLicense) +model_rebuild(WebhookForkPropForkeeAllof0PropOwner) -__all__ = ("WebhookInstallationDeleted",) +__all__ = ( + "WebhookForkPropForkeeAllof0", + "WebhookForkPropForkeeAllof0PropLicense", + "WebhookForkPropForkeeAllof0PropOwner", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0516.py b/githubkit/versions/v2022_11_28/models/group_0516.py index 108f435b5..f8d13642f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0516.py +++ b/githubkit/versions/v2022_11_28/models/group_0516.py @@ -9,50 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0393 import EnterpriseWebhooks -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0409 import WebhooksRepositoriesItems - - -class WebhookInstallationNewPermissionsAccepted(GitHubModel): - """installation new_permissions_accepted event""" - - action: Literal["new_permissions_accepted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookInstallationNewPermissionsAccepted) - -__all__ = ("WebhookInstallationNewPermissionsAccepted",) + +class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): + """WebhookForkPropForkeeAllof0PropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) + +__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0517.py b/githubkit/versions/v2022_11_28/models/group_0517.py index 64cfb68c6..18554f9e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0517.py +++ b/githubkit/versions/v2022_11_28/models/group_0517.py @@ -17,68 +17,125 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0393 import EnterpriseWebhooks -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser -from .group_0410 import WebhooksRepositoriesAddedItems - - -class WebhookInstallationRepositoriesAdded(GitHubModel): - """installation_repositories added event""" - - action: Literal["added"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories_added: list[WebhooksRepositoriesAddedItems] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: list[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhooksUser, None] = Field(title="User") - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" +class WebhookForkPropForkeeAllof1(GitHubModel): + """WebhookForkPropForkeeAllof1""" + + allow_forking: Missing[bool] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[Literal[True]] = Field(default=UNSET) + forks: Missing[int] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) full_name: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field( - default=UNSET, description="Unique identifier of the repository" + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + language: Missing[None] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( + default=UNSET, alias="license" ) - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[None] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private or public." - ) + notifications_url: Missing[str] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + topics: Missing[list[Union[str, None]]] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + + +class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): + """WebhookForkPropForkeeAllof1PropLicense""" + + +class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookInstallationRepositoriesAdded) -model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) +model_rebuild(WebhookForkPropForkeeAllof1) +model_rebuild(WebhookForkPropForkeeAllof1PropLicense) +model_rebuild(WebhookForkPropForkeeAllof1PropOwner) __all__ = ( - "WebhookInstallationRepositoriesAdded", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", + "WebhookForkPropForkeeAllof1", + "WebhookForkPropForkeeAllof1PropLicense", + "WebhookForkPropForkeeAllof1PropOwner", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0518.py b/githubkit/versions/v2022_11_28/models/group_0518.py index f3cce68cd..2a852bdcc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0518.py +++ b/githubkit/versions/v2022_11_28/models/group_0518.py @@ -9,72 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0393 import EnterpriseWebhooks -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser -from .group_0410 import WebhooksRepositoriesAddedItems +from .group_0003 import SimpleUser -class WebhookInstallationRepositoriesRemoved(GitHubModel): - """installation_repositories removed event""" +class WebhookGithubAppAuthorizationRevoked(GitHubModel): + """github_app_authorization revoked event""" - action: Literal["removed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories_added: list[WebhooksRepositoriesAddedItems] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: list[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhooksUser, None] = Field(title="User") + action: Literal["revoked"] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +model_rebuild(WebhookGithubAppAuthorizationRevoked) - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -model_rebuild(WebhookInstallationRepositoriesRemoved) -model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) - -__all__ = ( - "WebhookInstallationRepositoriesRemoved", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", -) +__all__ = ("WebhookGithubAppAuthorizationRevoked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0519.py b/githubkit/versions/v2022_11_28/models/group_0519.py index 8f092eb25..e3f05689b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0519.py +++ b/githubkit/versions/v2022_11_28/models/group_0519.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,42 +17,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0393 import EnterpriseWebhooks -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0409 import WebhooksRepositoriesItems +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookInstallationSuspend(GitHubModel): - """installation suspend event""" +class WebhookGollum(GitHubModel): + """gollum event""" - action: Literal["suspend"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Installation = Field(title="Installation", description="Installation") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", + pages: list[WebhookGollumPropPagesItems] = Field( + description="The pages that were updated." ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[None] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationSuspend) +class WebhookGollumPropPagesItems(GitHubModel): + """WebhookGollumPropPagesItems""" + + action: Literal["created", "edited"] = Field( + description="The action that was performed on the page. Can be `created` or `edited`." + ) + html_url: str = Field(description="Points to the HTML wiki page.") + page_name: str = Field(description="The name of the page.") + sha: str = Field(description="The latest commit SHA of the page.") + summary: Union[str, None] = Field() + title: str = Field(description="The current page title.") + + +model_rebuild(WebhookGollum) +model_rebuild(WebhookGollumPropPagesItems) -__all__ = ("WebhookInstallationSuspend",) +__all__ = ( + "WebhookGollum", + "WebhookGollumPropPagesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0520.py b/githubkit/versions/v2022_11_28/models/group_0520.py index 54bf9d86d..bf4c1c513 100644 --- a/githubkit/versions/v2022_11_28/models/group_0520.py +++ b/githubkit/versions/v2022_11_28/models/group_0520.py @@ -17,119 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0399 import EnterpriseWebhooks +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser +from .group_0415 import WebhooksRepositoriesItems -class WebhookInstallationTargetRenamed(GitHubModel): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationCreated(GitHubModel): + """installation created event""" - account: WebhookInstallationTargetRenamedPropAccount = Field() - action: Literal["renamed"] = Field() - changes: WebhookInstallationTargetRenamedPropChanges = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - target_type: str = Field() - - -class WebhookInstallationTargetRenamedPropAccount(GitHubModel): - """WebhookInstallationTargetRenamedPropAccount""" - - archived_at: Missing[Union[str, None]] = Field(default=UNSET) - avatar_url: str = Field() - created_at: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers: Missing[int] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following: Missing[int] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - has_organization_projects: Missing[bool] = Field(default=UNSET) - has_repository_projects: Missing[bool] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - is_verified: Missing[bool] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: str = Field() - organizations_url: Missing[str] = Field(default=UNSET) - public_gists: Missing[int] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - public_repos: Missing[int] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - website_url: Missing[None] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookInstallationTargetRenamedPropChanges(GitHubModel): - """WebhookInstallationTargetRenamedPropChanges""" - - login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( - default=UNSET - ) - - -class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str = Field(alias="from") - - -class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str = Field(alias="from") + requester: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationTargetRenamed) -model_rebuild(WebhookInstallationTargetRenamedPropAccount) -model_rebuild(WebhookInstallationTargetRenamedPropChanges) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) +model_rebuild(WebhookInstallationCreated) -__all__ = ( - "WebhookInstallationTargetRenamed", - "WebhookInstallationTargetRenamedPropAccount", - "WebhookInstallationTargetRenamedPropChanges", - "WebhookInstallationTargetRenamedPropChangesPropLogin", - "WebhookInstallationTargetRenamedPropChangesPropSlug", -) +__all__ = ("WebhookInstallationCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0521.py b/githubkit/versions/v2022_11_28/models/group_0521.py index 576aab6d5..50fb98c66 100644 --- a/githubkit/versions/v2022_11_28/models/group_0521.py +++ b/githubkit/versions/v2022_11_28/models/group_0521.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0017 import Installation -from .group_0393 import EnterpriseWebhooks -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0409 import WebhooksRepositoriesItems +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0399 import EnterpriseWebhooks +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0415 import WebhooksRepositoriesItems -class WebhookInstallationUnsuspend(GitHubModel): - """installation unsuspend event""" +class WebhookInstallationDeleted(GitHubModel): + """installation deleted event""" - action: Literal["unsuspend"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookInstallationUnsuspend(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationUnsuspend) +model_rebuild(WebhookInstallationDeleted) -__all__ = ("WebhookInstallationUnsuspend",) +__all__ = ("WebhookInstallationDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0522.py b/githubkit/versions/v2022_11_28/models/group_0522.py index 8afde14bf..4ff99501c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0522.py +++ b/githubkit/versions/v2022_11_28/models/group_0522.py @@ -17,48 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0523 import WebhookIssueCommentCreatedPropComment -from .group_0524 import WebhookIssueCommentCreatedPropIssue +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0399 import EnterpriseWebhooks +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0415 import WebhooksRepositoriesItems -class WebhookIssueCommentCreated(GitHubModel): - """issue_comment created event""" +class WebhookInstallationNewPermissionsAccepted(GitHubModel): + """installation new_permissions_accepted event""" - action: Literal["created"] = Field() - comment: WebhookIssueCommentCreatedPropComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", - ) + action: Literal["new_permissions_accepted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentCreatedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requester: Missing[None] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreated) +model_rebuild(WebhookInstallationNewPermissionsAccepted) -__all__ = ("WebhookIssueCommentCreated",) +__all__ = ("WebhookInstallationNewPermissionsAccepted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0523.py b/githubkit/versions/v2022_11_28/models/group_0523.py index 3751a4876..dda76ae29 100644 --- a/githubkit/versions/v2022_11_28/models/group_0523.py +++ b/githubkit/versions/v2022_11_28/models/group_0523.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,94 +17,68 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0008 import Integration +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0399 import EnterpriseWebhooks +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser +from .group_0416 import WebhooksRepositoriesAddedItems -class WebhookIssueCommentCreatedPropComment(GitHubModel): - """issue comment +class WebhookInstallationRepositoriesAdded(GitHubModel): + """installation_repositories added event""" - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + action: Literal["added"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories_added: list[WebhooksRepositoriesAddedItems] = Field( + description="An array of repository objects, which were added to the installation." + ) + repositories_removed: list[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + description="An array of repository objects, which were removed from the installation." ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( - title="Reactions" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( - title="User" + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" ) + requester: Union[WebhooksUser, None] = Field(title="User") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" + + full_name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the repository" + ) + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private or public." + ) -model_rebuild(WebhookIssueCommentCreatedPropComment) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) +model_rebuild(WebhookInstallationRepositoriesAdded) +model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) __all__ = ( - "WebhookIssueCommentCreatedPropComment", - "WebhookIssueCommentCreatedPropCommentPropReactions", - "WebhookIssueCommentCreatedPropCommentPropUser", + "WebhookInstallationRepositoriesAdded", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0524.py b/githubkit/versions/v2022_11_28/models/group_0524.py index f21b25f7b..d5aed14b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0524.py +++ b/githubkit/versions/v2022_11_28/models/group_0524.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,161 +17,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0526 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) -from .group_0531 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary -from .group_0533 import WebhookIssueCommentCreatedPropIssueMergedMilestone -from .group_0534 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp - - -class WebhookIssueCommentCreatedPropIssue(GitHubModel): - """WebhookIssueCommentCreatedPropIssue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0399 import EnterpriseWebhooks +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser +from .group_0416 import WebhooksRepositoriesAddedItems + + +class WebhookInstallationRepositoriesRemoved(GitHubModel): + """installation_repositories removed event""" + + action: Literal["removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + repositories_added: list[WebhooksRepositoriesAddedItems] = Field( + description="An array of repository objects, which were added to the installation." ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repositories_removed: list[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems + ] = Field( + description="An array of repository objects, which were removed from the installation." + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + requester: Union[WebhooksUser, None] = Field(title="User") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhookIssueCommentCreatedPropIssue) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) +model_rebuild(WebhookInstallationRepositoriesRemoved) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) __all__ = ( - "WebhookIssueCommentCreatedPropIssue", - "WebhookIssueCommentCreatedPropIssueMergedAssignees", - "WebhookIssueCommentCreatedPropIssueMergedReactions", - "WebhookIssueCommentCreatedPropIssueMergedUser", + "WebhookInstallationRepositoriesRemoved", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0525.py b/githubkit/versions/v2022_11_28/models/group_0525.py index f3df030e1..00301c0c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0525.py +++ b/githubkit/versions/v2022_11_28/models/group_0525.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,179 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0526 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) -from .group_0528 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone -from .group_0530 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0531 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0399 import EnterpriseWebhooks +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0415 import WebhooksRepositoriesItems -class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): - """Issue +class WebhookInstallationSuspend(GitHubModel): + """installation suspend event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( + action: Literal["suspend"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( - title="User" + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - - -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) +model_rebuild(WebhookInstallationSuspend) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof0PropUser", -) +__all__ = ("WebhookInstallationSuspend",) diff --git a/githubkit/versions/v2022_11_28/models/group_0526.py b/githubkit/versions/v2022_11_28/models/group_0526.py index fda7ebaae..22353fff4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0526.py +++ b/githubkit/versions/v2022_11_28/models/group_0526.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,66 +17,119 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) +class WebhookInstallationTargetRenamed(GitHubModel): + """WebhookInstallationTargetRenamed""" + + account: WebhookInstallationTargetRenamedPropAccount = Field() + action: Literal["renamed"] = Field() + changes: WebhookInstallationTargetRenamedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + target_type: str = Field() + + +class WebhookInstallationTargetRenamedPropAccount(GitHubModel): + """WebhookInstallationTargetRenamedPropAccount""" + + archived_at: Missing[Union[str, None]] = Field(default=UNSET) + avatar_url: str = Field() + created_at: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + has_organization_projects: Missing[bool] = Field(default=UNSET) + has_repository_projects: Missing[bool] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() id: int = Field() - login: str = Field() + is_verified: Missing[bool] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() organizations_url: Missing[str] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + public_members_url: Missing[str] = Field(default=UNSET) + public_repos: Missing[int] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) repos_url: Missing[str] = Field(default=UNSET) site_admin: Missing[bool] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + website_url: Missing[None] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookInstallationTargetRenamedPropChanges(GitHubModel): + """WebhookInstallationTargetRenamedPropChanges""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( + default=UNSET ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" +class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + from_: str = Field(alias="from") + + +class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str = Field(alias="from") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookInstallationTargetRenamed) +model_rebuild(WebhookInstallationTargetRenamedPropAccount) +model_rebuild(WebhookInstallationTargetRenamedPropChanges) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", + "WebhookInstallationTargetRenamed", + "WebhookInstallationTargetRenamedPropAccount", + "WebhookInstallationTargetRenamedPropChanges", + "WebhookInstallationTargetRenamedPropChangesPropLogin", + "WebhookInstallationTargetRenamedPropChangesPropSlug", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0527.py b/githubkit/versions/v2022_11_28/models/group_0527.py index 3775a89ee..1042e88e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0527.py +++ b/githubkit/versions/v2022_11_28/models/group_0527.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,36 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0399 import EnterpriseWebhooks +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0415 import WebhooksRepositoriesItems -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookInstallationUnsuspend(GitHubModel): + """installation unsuspend event""" + + action: Literal["unsuspend"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookInstallationUnsuspend) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookInstallationUnsuspend",) diff --git a/githubkit/versions/v2022_11_28/models/group_0528.py b/githubkit/versions/v2022_11_28/models/group_0528.py index 23d22f4d1..ce4db01cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0528.py +++ b/githubkit/versions/v2022_11_28/models/group_0528.py @@ -9,44 +9,56 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0527 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0529 import WebhookIssueCommentCreatedPropComment +from .group_0530 import WebhookIssueCommentCreatedPropIssue -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentCreated(GitHubModel): + """issue_comment created event""" - A collection of related issues and pull requests. - """ + action: Literal["created"] = Field() + comment: WebhookIssueCommentCreatedPropComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentCreatedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() +model_rebuild(WebhookIssueCommentCreated) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0529.py b/githubkit/versions/v2022_11_28/models/group_0529.py index 9a58db044..05bbc8cba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0529.py +++ b/githubkit/versions/v2022_11_28/models/group_0529.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,10 +18,62 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): + +class WebhookIssueCommentCreatedPropComment(GitHubModel): + """issue comment + + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="Contents of the issue comment") + created_at: datetime = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() + node_id: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,68 +100,12 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentCreatedPropComment) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssueCommentCreatedPropComment", + "WebhookIssueCommentCreatedPropCommentPropReactions", + "WebhookIssueCommentCreatedPropCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0530.py b/githubkit/versions/v2022_11_28/models/group_0530.py index 51bcb74f2..40edd87b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0530.py +++ b/githubkit/versions/v2022_11_28/models/group_0530.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,44 +18,161 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0529 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0532 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) +from .group_0537 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary +from .group_0539 import WebhookIssueCommentCreatedPropIssueMergedMilestone +from .group_0540 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentCreatedPropIssue(GitHubModel): + """WebhookIssueCommentCreatedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - external_url: Union[str, None] = Field() + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() + + +class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) + +class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssue) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) + +__all__ = ( + "WebhookIssueCommentCreatedPropIssue", + "WebhookIssueCommentCreatedPropIssueMergedAssignees", + "WebhookIssueCommentCreatedPropIssueMergedReactions", + "WebhookIssueCommentCreatedPropIssueMergedUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0531.py b/githubkit/versions/v2022_11_28/models/group_0531.py index bdfcb7cc4..e77db8acf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0531.py +++ b/githubkit/versions/v2022_11_28/models/group_0531.py @@ -9,19 +9,188 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0532 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) +from .group_0534 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone +from .group_0536 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0537 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary + + +class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): + """User""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0532.py b/githubkit/versions/v2022_11_28/models/group_0532.py index 7371c113a..fda7ebaae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0532.py +++ b/githubkit/versions/v2022_11_28/models/group_0532.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,53 +19,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") - ) - assignees: Missing[ - list[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -93,11 +48,7 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -111,68 +62,22 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" -class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof1PropUser", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0533.py b/githubkit/versions/v2022_11_28/models/group_0533.py index 97221f238..3775a89ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0533.py +++ b/githubkit/versions/v2022_11_28/models/group_0533.py @@ -9,41 +9,44 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0527 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) - - -class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) - -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0534.py b/githubkit/versions/v2022_11_28/models/group_0534.py index 2f482ed9c..719560c54 100644 --- a/githubkit/versions/v2022_11_28/models/group_0534.py +++ b/githubkit/versions/v2022_11_28/models/group_0534.py @@ -10,46 +10,43 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0529 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0533 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - created_at: Union[datetime, None] = Field() + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0535.py b/githubkit/versions/v2022_11_28/models/group_0535.py index 5b0541d81..9a58db044 100644 --- a/githubkit/versions/v2022_11_28/models/group_0535.py +++ b/githubkit/versions/v2022_11_28/models/group_0535.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,48 +17,98 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0411 import WebhooksIssueComment -from .group_0536 import WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" -class WebhookIssueCommentDeleted(GitHubModel): - """issue_comment deleted event""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - action: Literal["deleted"] = Field() - comment: WebhooksIssueComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - issue: WebhookIssueCommentDeletedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeleted) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentDeleted",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0536.py b/githubkit/versions/v2022_11_28/models/group_0536.py index 945b209ce..f9b342508 100644 --- a/githubkit/versions/v2022_11_28/models/group_0536.py +++ b/githubkit/versions/v2022_11_28/models/group_0536.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,161 +18,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0538 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +from .group_0535 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) -from .group_0543 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary -from .group_0545 import WebhookIssueCommentDeletedPropIssueMergedMilestone -from .group_0546 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp -class WebhookIssueCommentDeletedPropIssue(GitHubModel): - """WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() - - -class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssue) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentDeletedPropIssue", - "WebhookIssueCommentDeletedPropIssueMergedAssignees", - "WebhookIssueCommentDeletedPropIssueMergedReactions", - "WebhookIssueCommentDeletedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0537.py b/githubkit/versions/v2022_11_28/models/group_0537.py index c7cd639ee..bdfcb7cc4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0537.py +++ b/githubkit/versions/v2022_11_28/models/group_0537.py @@ -9,188 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0538 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, -) -from .group_0540 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone -from .group_0542 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0543 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary - - -class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( - title="User" - ) - - -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + total: int = Field() + completed: int = Field() + percent_completed: int = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof0PropUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary",) diff --git a/githubkit/versions/v2022_11_28/models/group_0538.py b/githubkit/versions/v2022_11_28/models/group_0538.py index 79014e43a..7371c113a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0538.py +++ b/githubkit/versions/v2022_11_28/models/group_0538.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,7 +18,53 @@ from githubkit.utils import UNSET -class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") + ) + assignees: Missing[ + list[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( + default=UNSET + ) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -48,7 +93,11 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -62,22 +111,68 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + - diff_url: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentCreatedPropIssueAllof1", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0539.py b/githubkit/versions/v2022_11_28/models/group_0539.py index 132940878..f6cd9d9c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0539.py +++ b/githubkit/versions/v2022_11_28/models/group_0539.py @@ -9,44 +9,41 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + +from .group_0533 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, +) + + +class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) + +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0540.py b/githubkit/versions/v2022_11_28/models/group_0540.py index 99c9b54bd..85f232738 100644 --- a/githubkit/versions/v2022_11_28/models/group_0540.py +++ b/githubkit/versions/v2022_11_28/models/group_0540.py @@ -10,43 +10,46 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0539 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +from .group_0535 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - labels_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0541.py b/githubkit/versions/v2022_11_28/models/group_0541.py index c6044c9aa..8af23d3d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0541.py +++ b/githubkit/versions/v2022_11_28/models/group_0541.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,94 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0417 import WebhooksIssueComment +from .group_0542 import WebhookIssueCommentDeletedPropIssue -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentDeleted(GitHubModel): + """issue_comment deleted event""" - -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + action: Literal["deleted"] = Field() + comment: WebhooksIssueComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentDeletedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentDeleted) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0542.py b/githubkit/versions/v2022_11_28/models/group_0542.py index c43da6fc3..70752cfbb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0542.py +++ b/githubkit/versions/v2022_11_28/models/group_0542.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,44 +18,161 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0541 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0544 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) +from .group_0549 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary +from .group_0551 import WebhookIssueCommentDeletedPropIssueMergedMilestone +from .group_0552 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentDeletedPropIssue(GitHubModel): + """WebhookIssueCommentDeletedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - external_url: Union[str, None] = Field() + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() + + +class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) + +class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssue) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) + +__all__ = ( + "WebhookIssueCommentDeletedPropIssue", + "WebhookIssueCommentDeletedPropIssueMergedAssignees", + "WebhookIssueCommentDeletedPropIssueMergedReactions", + "WebhookIssueCommentDeletedPropIssueMergedUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0543.py b/githubkit/versions/v2022_11_28/models/group_0543.py index f0a05c54f..8e359e532 100644 --- a/githubkit/versions/v2022_11_28/models/group_0543.py +++ b/githubkit/versions/v2022_11_28/models/group_0543.py @@ -9,19 +9,188 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0544 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +) +from .group_0546 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone +from .group_0548 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0549 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary + + +class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): + """User""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0544.py b/githubkit/versions/v2022_11_28/models/group_0544.py index 10129f694..79014e43a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0544.py +++ b/githubkit/versions/v2022_11_28/models/group_0544.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,53 +19,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") - ) - assignees: Missing[ - list[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -93,11 +48,7 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -111,69 +62,22 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof1PropUser", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0545.py b/githubkit/versions/v2022_11_28/models/group_0545.py index 0c0855752..132940878 100644 --- a/githubkit/versions/v2022_11_28/models/group_0545.py +++ b/githubkit/versions/v2022_11_28/models/group_0545.py @@ -9,41 +9,44 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0539 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) - - -class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) - -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0546.py b/githubkit/versions/v2022_11_28/models/group_0546.py index 5712764d0..d5baf8c54 100644 --- a/githubkit/versions/v2022_11_28/models/group_0546.py +++ b/githubkit/versions/v2022_11_28/models/group_0546.py @@ -10,46 +10,43 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0541 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0545 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - created_at: Union[datetime, None] = Field() + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0547.py b/githubkit/versions/v2022_11_28/models/group_0547.py index bfed6ca4b..c6044c9aa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0547.py +++ b/githubkit/versions/v2022_11_28/models/group_0547.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,50 +17,94 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0411 import WebhooksIssueComment -from .group_0412 import WebhooksChanges -from .group_0548 import WebhookIssueCommentEditedPropIssue +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" -class WebhookIssueCommentEdited(GitHubModel): - """issue_comment edited event""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - action: Literal["edited"] = Field() - changes: WebhooksChanges = Field(description="The changes to the comment.") - comment: WebhooksIssueComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentEditedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEdited) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentEdited",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0548.py b/githubkit/versions/v2022_11_28/models/group_0548.py index 316cfc3b4..7dfe0304b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0548.py +++ b/githubkit/versions/v2022_11_28/models/group_0548.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,161 +18,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0550 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +from .group_0547 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) -from .group_0555 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary -from .group_0557 import WebhookIssueCommentEditedPropIssueMergedMilestone -from .group_0558 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp -class WebhookIssueCommentEditedPropIssue(GitHubModel): - """WebhookIssueCommentEditedPropIssue +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentEditedPropIssueMergedUser = Field() - - -class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentEditedPropIssue) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentEditedPropIssue", - "WebhookIssueCommentEditedPropIssueMergedAssignees", - "WebhookIssueCommentEditedPropIssueMergedReactions", - "WebhookIssueCommentEditedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0549.py b/githubkit/versions/v2022_11_28/models/group_0549.py index 84d7e66da..f0a05c54f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0549.py +++ b/githubkit/versions/v2022_11_28/models/group_0549.py @@ -9,188 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0550 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, -) -from .group_0552 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone -from .group_0554 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0555 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - - -class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( - title="User" - ) - - -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + total: int = Field() + completed: int = Field() + percent_completed: int = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0", - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof0PropReactions", - "WebhookIssueCommentEditedPropIssueAllof0PropUser", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary",) diff --git a/githubkit/versions/v2022_11_28/models/group_0550.py b/githubkit/versions/v2022_11_28/models/group_0550.py index 1550c9c19..10129f694 100644 --- a/githubkit/versions/v2022_11_28/models/group_0550.py +++ b/githubkit/versions/v2022_11_28/models/group_0550.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,7 +18,53 @@ from githubkit.utils import UNSET -class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") + ) + assignees: Missing[ + list[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( + default=UNSET + ) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -48,7 +93,11 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -62,22 +111,69 @@ class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - diff_url: Missing[str] = Field(default=UNSET) + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentDeletedPropIssueAllof1", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0551.py b/githubkit/versions/v2022_11_28/models/group_0551.py index b0370744c..1c2424c82 100644 --- a/githubkit/versions/v2022_11_28/models/group_0551.py +++ b/githubkit/versions/v2022_11_28/models/group_0551.py @@ -9,44 +9,41 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + +from .group_0545 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +) + + +class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) + +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0552.py b/githubkit/versions/v2022_11_28/models/group_0552.py index 480aa115f..effe63a7c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0552.py +++ b/githubkit/versions/v2022_11_28/models/group_0552.py @@ -10,41 +10,46 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0551 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +from .group_0547 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - labels_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0553.py b/githubkit/versions/v2022_11_28/models/group_0553.py index 4a8bc3224..9e6515e13 100644 --- a/githubkit/versions/v2022_11_28/models/group_0553.py +++ b/githubkit/versions/v2022_11_28/models/group_0553.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,95 +17,50 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0417 import WebhooksIssueComment +from .group_0418 import WebhooksChanges +from .group_0554 import WebhookIssueCommentEditedPropIssue -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentEdited(GitHubModel): + """issue_comment edited event""" - -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + action: Literal["edited"] = Field() + changes: WebhooksChanges = Field(description="The changes to the comment.") + comment: WebhooksIssueComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentEditedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentEdited) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentEdited",) diff --git a/githubkit/versions/v2022_11_28/models/group_0554.py b/githubkit/versions/v2022_11_28/models/group_0554.py index 058f0a3b1..94a6fdddf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0554.py +++ b/githubkit/versions/v2022_11_28/models/group_0554.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,43 +18,161 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0553 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0556 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) +from .group_0561 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary +from .group_0563 import WebhookIssueCommentEditedPropIssueMergedMilestone +from .group_0564 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentEditedPropIssue(GitHubModel): + """WebhookIssueCommentEditedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - external_url: Union[str, None] = Field() + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentEditedPropIssueMergedUser = Field() + + +class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedReactions""" -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) + +class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentEditedPropIssue) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) + +__all__ = ( + "WebhookIssueCommentEditedPropIssue", + "WebhookIssueCommentEditedPropIssueMergedAssignees", + "WebhookIssueCommentEditedPropIssueMergedReactions", + "WebhookIssueCommentEditedPropIssueMergedUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0555.py b/githubkit/versions/v2022_11_28/models/group_0555.py index 2d17d8ee7..bab5b2815 100644 --- a/githubkit/versions/v2022_11_28/models/group_0555.py +++ b/githubkit/versions/v2022_11_28/models/group_0555.py @@ -9,19 +9,188 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0556 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +) +from .group_0558 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone +from .group_0560 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0561 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary + + +class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): + """User""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof0PropReactions", + "WebhookIssueCommentEditedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0556.py b/githubkit/versions/v2022_11_28/models/group_0556.py index 7d03e33d0..1550c9c19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0556.py +++ b/githubkit/versions/v2022_11_28/models/group_0556.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,53 +19,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( - title="User" - ) - assignees: Missing[ - list[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -93,11 +48,7 @@ class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -111,68 +62,22 @@ class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" -class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1", - "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentEditedPropIssueAllof1PropReactions", - "WebhookIssueCommentEditedPropIssueAllof1PropUser", + "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0557.py b/githubkit/versions/v2022_11_28/models/group_0557.py index b6ab1ea33..b0370744c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0557.py +++ b/githubkit/versions/v2022_11_28/models/group_0557.py @@ -9,39 +9,44 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0551 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator - - -class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) - -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0558.py b/githubkit/versions/v2022_11_28/models/group_0558.py index 97e0181b3..4dd1d3309 100644 --- a/githubkit/versions/v2022_11_28/models/group_0558.py +++ b/githubkit/versions/v2022_11_28/models/group_0558.py @@ -10,45 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0553 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0557 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - created_at: Union[datetime, None] = Field() + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0559.py b/githubkit/versions/v2022_11_28/models/group_0559.py index fb0e0991e..4a8bc3224 100644 --- a/githubkit/versions/v2022_11_28/models/group_0559.py +++ b/githubkit/versions/v2022_11_28/models/group_0559.py @@ -17,46 +17,95 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser -from .group_0413 import WebhooksIssue - - -class WebhookIssuesAssigned(GitHubModel): - """issues assigned event""" - - action: Literal["assigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhooksIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssuesAssigned) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssuesAssigned",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0560.py b/githubkit/versions/v2022_11_28/models/group_0560.py index 1fe4226ec..fe9e136f3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0560.py +++ b/githubkit/versions/v2022_11_28/models/group_0560.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,43 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0561 import WebhookIssuesClosedPropIssue +from .group_0559 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosed(GitHubModel): - """issues closed event""" +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - action: Literal["closed"] = Field(description="The action that was performed.") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesClosedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesClosed) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ("WebhookIssuesClosed",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0561.py b/githubkit/versions/v2022_11_28/models/group_0561.py index 8f3134dd1..2d17d8ee7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0561.py +++ b/githubkit/versions/v2022_11_28/models/group_0561.py @@ -9,216 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0567 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequest, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, -) -from .group_0569 import WebhookIssuesClosedPropIssueMergedMilestone -from .group_0570 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp - - -class WebhookIssuesClosedPropIssue(GitHubModel): - """WebhookIssuesClosedPropIssue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( - default=UNSET - ) - assignees: list[WebhookIssuesClosedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesClosedPropIssueMergedLabels]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesClosedPropIssueMergedUser = Field() - - -class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignee""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesClosedPropIssueMergedLabels""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesClosedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): - """WebhookIssuesClosedPropIssueMergedUser""" +class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + total: int = Field() + completed: int = Field() + percent_completed: int = Field() -model_rebuild(WebhookIssuesClosedPropIssue) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) -model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) -model_rebuild(WebhookIssuesClosedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary) -__all__ = ( - "WebhookIssuesClosedPropIssue", - "WebhookIssuesClosedPropIssueMergedAssignee", - "WebhookIssuesClosedPropIssueMergedAssignees", - "WebhookIssuesClosedPropIssueMergedLabels", - "WebhookIssuesClosedPropIssueMergedReactions", - "WebhookIssuesClosedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary",) diff --git a/githubkit/versions/v2022_11_28/models/group_0562.py b/githubkit/versions/v2022_11_28/models/group_0562.py index 77f8f7da4..7d03e33d0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0562.py +++ b/githubkit/versions/v2022_11_28/models/group_0562.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,120 +17,54 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0564 import WebhookIssuesClosedPropIssueAllof0PropMilestone -from .group_0566 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp -from .group_0567 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequest, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, -) - -class WebhookIssuesClosedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( + title="User" ) - node_id: str = Field() - number: int = Field() + assignees: Missing[ + list[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( default=UNSET ) - reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") - - -class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -160,7 +93,11 @@ class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -174,36 +111,41 @@ class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): - """User""" + +class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -211,25 +153,26 @@ class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssuesClosedPropIssueAllof0", - "WebhookIssuesClosedPropIssueAllof0PropAssignee", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof0PropReactions", - "WebhookIssuesClosedPropIssueAllof0PropUser", + "WebhookIssueCommentEditedPropIssueAllof1", + "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentEditedPropIssueAllof1PropReactions", + "WebhookIssueCommentEditedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0563.py b/githubkit/versions/v2022_11_28/models/group_0563.py index 038d97dfc..07fd40490 100644 --- a/githubkit/versions/v2022_11_28/models/group_0563.py +++ b/githubkit/versions/v2022_11_28/models/group_0563.py @@ -9,44 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + +from .group_0557 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator + + +class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) + +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0564.py b/githubkit/versions/v2022_11_28/models/group_0564.py index d40941d89..352077acf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0564.py +++ b/githubkit/versions/v2022_11_28/models/group_0564.py @@ -10,41 +10,45 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0563 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +from .group_0559 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") - ) + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - labels_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0565.py b/githubkit/versions/v2022_11_28/models/group_0565.py index 52dd00063..9c8b8215c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0565.py +++ b/githubkit/versions/v2022_11_28/models/group_0565.py @@ -17,91 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser +from .group_0419 import WebhooksIssue + + +class WebhookIssuesAssigned(GitHubModel): + """issues assigned event""" + + action: Literal["assigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssuesAssigned) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssuesAssigned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0566.py b/githubkit/versions/v2022_11_28/models/group_0566.py index e47358921..d697b2ebf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0566.py +++ b/githubkit/versions/v2022_11_28/models/group_0566.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,43 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0565 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0567 import WebhookIssuesClosedPropIssue -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssuesClosed(GitHubModel): + """issues closed event""" - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + action: Literal["closed"] = Field(description="The action that was performed.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesClosedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: Union[datetime, None] = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosed) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ("WebhookIssuesClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0567.py b/githubkit/versions/v2022_11_28/models/group_0567.py index ada7003bc..588caaeb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0567.py +++ b/githubkit/versions/v2022_11_28/models/group_0567.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,29 +18,207 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) +from .group_0573 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequest, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, +) +from .group_0575 import WebhookIssuesClosedPropIssueMergedMilestone +from .group_0576 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp + + +class WebhookIssuesClosedPropIssue(GitHubModel): + """WebhookIssuesClosedPropIssue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( + default=UNSET + ) + assignees: list[WebhookIssuesClosedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesClosedPropIssueMergedLabels]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssuesClosedPropIssueMergedUser = Field() + + +class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignee""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignees""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): + """WebhookIssuesClosedPropIssueMergedLabels""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): + """WebhookIssuesClosedPropIssueMergedReactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): + """WebhookIssuesClosedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssuesClosedPropIssue) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) +model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) +model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) +model_rebuild(WebhookIssuesClosedPropIssueMergedUser) __all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequest", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", + "WebhookIssuesClosedPropIssue", + "WebhookIssuesClosedPropIssueMergedAssignee", + "WebhookIssuesClosedPropIssueMergedAssignees", + "WebhookIssuesClosedPropIssueMergedLabels", + "WebhookIssuesClosedPropIssueMergedReactions", + "WebhookIssuesClosedPropIssueMergedUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0568.py b/githubkit/versions/v2022_11_28/models/group_0568.py index abefecf23..9810552ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0568.py +++ b/githubkit/versions/v2022_11_28/models/group_0568.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,98 +18,192 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0570 import WebhookIssuesClosedPropIssueAllof0PropMilestone +from .group_0572 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp +from .group_0573 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequest, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, +) + -class WebhookIssuesClosedPropIssueAllof1(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1""" +class WebhookIssuesClosedPropIssueAllof0(GitHubModel): + """Issue - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - assignees: Missing[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Union[str, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) + assignees: list[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( - Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) + node_id: str = Field() + number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( default=UNSET ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["closed", "open"] = Field() + reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) - + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") -class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" +class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): + """User""" -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" +class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" +class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropUser""" +class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -116,27 +211,25 @@ class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof1) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssuesClosedPropIssueAllof1", - "WebhookIssuesClosedPropIssueAllof1PropAssignee", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof1PropMilestone", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesClosedPropIssueAllof1PropReactions", - "WebhookIssuesClosedPropIssueAllof1PropUser", + "WebhookIssuesClosedPropIssueAllof0", + "WebhookIssuesClosedPropIssueAllof0PropAssignee", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof0PropReactions", + "WebhookIssuesClosedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0569.py b/githubkit/versions/v2022_11_28/models/group_0569.py index 92a8d8739..038d97dfc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0569.py +++ b/githubkit/versions/v2022_11_28/models/group_0569.py @@ -9,39 +9,44 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0563 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator - - -class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0570.py b/githubkit/versions/v2022_11_28/models/group_0570.py index 982f776ea..6f836546f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0570.py +++ b/githubkit/versions/v2022_11_28/models/group_0570.py @@ -10,45 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0565 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0569 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") ) - external_url: Union[str, None] = Field() + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0571.py b/githubkit/versions/v2022_11_28/models/group_0571.py index 3967edd8b..52dd00063 100644 --- a/githubkit/versions/v2022_11_28/models/group_0571.py +++ b/githubkit/versions/v2022_11_28/models/group_0571.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,269 +17,8 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks - -class WebhookIssuesDeleted(GitHubModel): - """issues deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDeletedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesDeletedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesDeletedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -307,10 +45,10 @@ class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubMode user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -334,7 +72,9 @@ class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( default=UNSET @@ -356,94 +96,12 @@ class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesDeleted) -model_rebuild(WebhookIssuesDeletedPropIssue) -model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) -model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) -model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) -model_rebuild(WebhookIssuesDeletedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesDeletedPropIssuePropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) __all__ = ( - "WebhookIssuesDeleted", - "WebhookIssuesDeletedPropIssue", - "WebhookIssuesDeletedPropIssuePropAssignee", - "WebhookIssuesDeletedPropIssuePropAssigneesItems", - "WebhookIssuesDeletedPropIssuePropLabelsItems", - "WebhookIssuesDeletedPropIssuePropMilestone", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDeletedPropIssuePropPullRequest", - "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", - "WebhookIssuesDeletedPropIssuePropUser", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0572.py b/githubkit/versions/v2022_11_28/models/group_0572.py index d30fb0d9e..2c0f4b487 100644 --- a/githubkit/versions/v2022_11_28/models/group_0572.py +++ b/githubkit/versions/v2022_11_28/models/group_0572.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,251 +18,13 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0414 import WebhooksMilestone - - -class WebhookIssuesDemilestoned(GitHubModel): - """issues demilestoned event""" - - action: Literal["demilestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDemilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - milestone: Missing[WebhooksMilestone] = Field( - default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesDemilestonedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +from .group_0571 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -282,10 +44,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -293,176 +55,6 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDemilestonedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesDemilestoned) -model_rebuild(WebhookIssuesDemilestonedPropIssue) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssignee) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestone) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) - -__all__ = ( - "WebhookIssuesDemilestoned", - "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssuePropAssignee", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", - "WebhookIssuesDemilestonedPropIssuePropLabelsItems", - "WebhookIssuesDemilestonedPropIssuePropMilestone", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDemilestonedPropIssuePropPullRequest", - "WebhookIssuesDemilestonedPropIssuePropReactions", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", - "WebhookIssuesDemilestonedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0573.py b/githubkit/versions/v2022_11_28/models/group_0573.py index e03212349..ada7003bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0573.py +++ b/githubkit/versions/v2022_11_28/models/group_0573.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,379 +18,9 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0408 import WebhooksLabel - -class WebhookIssuesEdited(GitHubModel): - """issues edited event""" - - action: Literal["edited"] = Field() - changes: WebhookIssuesEditedPropChanges = Field( - description="The changes to the issue." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesEditedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesEditedPropChanges(GitHubModel): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookIssuesEditedPropChangesPropBody(GitHubModel): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str = Field(alias="from", description="The previous version of the title.") - - -class WebhookIssuesEditedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesEditedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesEditedPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -399,22 +29,7 @@ class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesEditedPropIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -422,69 +37,10 @@ class WebhookIssuesEditedPropIssuePropSubIssuesSummary(GitHubModel): percent_completed: int = Field() -class WebhookIssuesEditedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesEdited) -model_rebuild(WebhookIssuesEditedPropChanges) -model_rebuild(WebhookIssuesEditedPropChangesPropBody) -model_rebuild(WebhookIssuesEditedPropChangesPropTitle) -model_rebuild(WebhookIssuesEditedPropIssue) -model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) -model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesEditedPropIssuePropReactions) -model_rebuild(WebhookIssuesEditedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesEditedPropIssuePropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary) __all__ = ( - "WebhookIssuesEdited", - "WebhookIssuesEditedPropChanges", - "WebhookIssuesEditedPropChangesPropBody", - "WebhookIssuesEditedPropChangesPropTitle", - "WebhookIssuesEditedPropIssue", - "WebhookIssuesEditedPropIssuePropAssignee", - "WebhookIssuesEditedPropIssuePropAssigneesItems", - "WebhookIssuesEditedPropIssuePropLabelsItems", - "WebhookIssuesEditedPropIssuePropMilestone", - "WebhookIssuesEditedPropIssuePropMilestonePropCreator", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesEditedPropIssuePropPullRequest", - "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropSubIssuesSummary", - "WebhookIssuesEditedPropIssuePropUser", + "WebhookIssuesClosedPropIssueAllof0PropPullRequest", + "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0574.py b/githubkit/versions/v2022_11_28/models/group_0574.py index c88484780..abefecf23 100644 --- a/githubkit/versions/v2022_11_28/models/group_0574.py +++ b/githubkit/versions/v2022_11_28/models/group_0574.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,402 +17,98 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0408 import WebhooksLabel +class WebhookIssuesClosedPropIssueAllof1(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesLabeled(GitHubModel): - """issues labeled event""" - - action: Literal["labeled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesLabeledPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesLabeledPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesLabeledPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( + Field(default=UNSET) ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) + assignees: Missing[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Union[str, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( - title="User" + id: Missing[int] = Field(default=UNSET) + labels: Missing[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( + Field(default=UNSET) ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( default=UNSET ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["closed", "open"] = Field() + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions +class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - The set of permissions for the GitHub app - """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLabeledPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -421,41 +116,27 @@ class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLabeled) -model_rebuild(WebhookIssuesLabeledPropIssue) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) -model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) -model_rebuild(WebhookIssuesLabeledPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesLabeledPropIssuePropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof1) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssuesLabeled", - "WebhookIssuesLabeledPropIssue", - "WebhookIssuesLabeledPropIssuePropAssignee", - "WebhookIssuesLabeledPropIssuePropAssigneesItems", - "WebhookIssuesLabeledPropIssuePropLabelsItems", - "WebhookIssuesLabeledPropIssuePropMilestone", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLabeledPropIssuePropPullRequest", - "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", - "WebhookIssuesLabeledPropIssuePropUser", + "WebhookIssuesClosedPropIssueAllof1", + "WebhookIssuesClosedPropIssueAllof1PropAssignee", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof1PropMilestone", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssuesClosedPropIssueAllof1PropReactions", + "WebhookIssuesClosedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0575.py b/githubkit/versions/v2022_11_28/models/group_0575.py index c71be3df5..376810f53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0575.py +++ b/githubkit/versions/v2022_11_28/models/group_0575.py @@ -15,199 +15,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0569 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesLocked(GitHubModel): - """issues locked event""" - - action: Literal["locked"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesLockedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesLockedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Literal[True] = Field() - milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesLockedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueMergedMilestone""" closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreator, None] = Field( - title="User" + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -223,226 +42,6 @@ class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesLockedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLockedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesLockedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesLockedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesLocked) -model_rebuild(WebhookIssuesLockedPropIssue) -model_rebuild(WebhookIssuesLockedPropIssuePropAssignee) -model_rebuild(WebhookIssuesLockedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesLockedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesLockedPropIssuePropMilestone) -model_rebuild(WebhookIssuesLockedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesLockedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesLockedPropIssuePropReactions) -model_rebuild(WebhookIssuesLockedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesLockedPropIssuePropUser) +model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) -__all__ = ( - "WebhookIssuesLocked", - "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssuePropAssignee", - "WebhookIssuesLockedPropIssuePropAssigneesItems", - "WebhookIssuesLockedPropIssuePropLabelsItems", - "WebhookIssuesLockedPropIssuePropMilestone", - "WebhookIssuesLockedPropIssuePropMilestonePropCreator", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLockedPropIssuePropPullRequest", - "WebhookIssuesLockedPropIssuePropReactions", - "WebhookIssuesLockedPropIssuePropSubIssuesSummary", - "WebhookIssuesLockedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0576.py b/githubkit/versions/v2022_11_28/models/group_0576.py index 2e9ec3cca..18cbc6312 100644 --- a/githubkit/versions/v2022_11_28/models/group_0576.py +++ b/githubkit/versions/v2022_11_28/models/group_0576.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,251 +18,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0414 import WebhooksMilestone - - -class WebhookIssuesMilestoned(GitHubModel): - """issues milestoned event""" - - action: Literal["milestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesMilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesMilestonedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesMilestonedPropIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - +from .group_0571 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() @@ -275,10 +38,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -286,172 +49,6 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - +model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesMilestoned) -model_rebuild(WebhookIssuesMilestonedPropIssue) -model_rebuild(WebhookIssuesMilestonedPropIssuePropAssignee) -model_rebuild(WebhookIssuesMilestonedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesMilestonedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestone) -model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesMilestonedPropIssuePropReactions) -model_rebuild(WebhookIssuesMilestonedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesMilestonedPropIssuePropUser) - -__all__ = ( - "WebhookIssuesMilestoned", - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssuePropAssignee", - "WebhookIssuesMilestonedPropIssuePropAssigneesItems", - "WebhookIssuesMilestonedPropIssuePropLabelsItems", - "WebhookIssuesMilestonedPropIssuePropMilestone", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesMilestonedPropIssuePropPullRequest", - "WebhookIssuesMilestonedPropIssuePropReactions", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", - "WebhookIssuesMilestonedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0577.py b/githubkit/versions/v2022_11_28/models/group_0577.py index 9c832a4cb..4782fb445 100644 --- a/githubkit/versions/v2022_11_28/models/group_0577.py +++ b/githubkit/versions/v2022_11_28/models/group_0577.py @@ -14,22 +14,21 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookIssuesOpened(GitHubModel): - """issues opened event""" +class WebhookIssuesDeleted(GitHubModel): + """issues deleted event""" - action: Literal["opened"] = Field() - changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,7 +39,7 @@ class WebhookIssuesOpened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesOpenedPropIssue = Field( + issue: WebhookIssuesDeletedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) @@ -56,7 +55,7 @@ class WebhookIssuesOpened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssuesOpenedPropIssue(GitHubModel): +class WebhookIssuesDeletedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -65,10 +64,10 @@ class WebhookIssuesOpenedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( + assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( + assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( Field() ) author_association: Literal[ @@ -93,30 +92,30 @@ class WebhookIssuesOpenedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[list[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( + labels: Missing[list[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( default=UNSET ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") + reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesOpenedPropIssuePropSubIssuesSummary] = ( + sub_issues_summary: Missing[WebhookIssuesDeletedPropIssuePropSubIssuesSummary] = ( Field(default=UNSET, title="Sub-issues Summary") ) state: Missing[Literal["open", "closed"]] = Field( @@ -127,10 +126,10 @@ class WebhookIssuesOpenedPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -157,7 +156,7 @@ class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -181,10 +180,9 @@ class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -198,7 +196,7 @@ class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -207,391 +205,9 @@ class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChanges(GitHubModel): - """WebhookIssuesOpenedPropChanges""" - - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None] = Field( + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( title="User" ) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None - ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -606,7 +222,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -633,7 +249,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -653,11 +269,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, - None, + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -665,9 +280,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -694,11 +307,10 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -744,8 +356,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDeletedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -754,7 +366,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): +class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -769,7 +381,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesDeletedPropIssuePropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -777,191 +389,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel percent_completed: int = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether the repository has discussions enabled." - ) - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, description="Whether to require commit signoff." - ) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): +class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -988,86 +416,34 @@ class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesOpened) -model_rebuild(WebhookIssuesOpenedPropIssue) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesOpenedPropIssuePropUser) -model_rebuild(WebhookIssuesOpenedPropChanges) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) +model_rebuild(WebhookIssuesDeleted) +model_rebuild(WebhookIssuesDeletedPropIssue) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) +model_rebuild(WebhookIssuesDeletedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesDeletedPropIssuePropUser) __all__ = ( - "WebhookIssuesOpened", - "WebhookIssuesOpenedPropChanges", - "WebhookIssuesOpenedPropChangesPropOldIssue", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", - "WebhookIssuesOpenedPropChangesPropOldRepository", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", - "WebhookIssuesOpenedPropIssue", - "WebhookIssuesOpenedPropIssuePropAssignee", - "WebhookIssuesOpenedPropIssuePropAssigneesItems", - "WebhookIssuesOpenedPropIssuePropLabelsItems", - "WebhookIssuesOpenedPropIssuePropMilestone", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropIssuePropPullRequest", - "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", - "WebhookIssuesOpenedPropIssuePropUser", + "WebhookIssuesDeleted", + "WebhookIssuesDeletedPropIssue", + "WebhookIssuesDeletedPropIssuePropAssignee", + "WebhookIssuesDeletedPropIssuePropAssigneesItems", + "WebhookIssuesDeletedPropIssuePropLabelsItems", + "WebhookIssuesDeletedPropIssuePropMilestone", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDeletedPropIssuePropPullRequest", + "WebhookIssuesDeletedPropIssuePropReactions", + "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", + "WebhookIssuesDeletedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0578.py b/githubkit/versions/v2022_11_28/models/group_0578.py index 991bb729a..7596c75d3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0578.py +++ b/githubkit/versions/v2022_11_28/models/group_0578.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0415 import WebhooksIssue2 +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0420 import WebhooksMilestone -class WebhookIssuesPinned(GitHubModel): - """issues pinned event""" +class WebhookIssuesDemilestoned(GitHubModel): + """issues demilestoned event""" - action: Literal["pinned"] = Field() + action: Literal["demilestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +40,15 @@ class WebhookIssuesPinned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhookIssuesDemilestonedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) + milestone: Missing[WebhooksMilestone] = Field( + default=UNSET, + title="Milestone", + description="A collection of related issues and pull requests.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +61,408 @@ class WebhookIssuesPinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesPinned) +class WebhookIssuesDemilestonedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: list[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesDemilestoned) +model_rebuild(WebhookIssuesDemilestonedPropIssue) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) -__all__ = ("WebhookIssuesPinned",) +__all__ = ( + "WebhookIssuesDemilestoned", + "WebhookIssuesDemilestonedPropIssue", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", + "WebhookIssuesDemilestonedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0579.py b/githubkit/versions/v2022_11_28/models/group_0579.py index 31801c080..4d127e9dc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0579.py +++ b/githubkit/versions/v2022_11_28/models/group_0579.py @@ -18,17 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0414 import WebhooksLabel -class WebhookIssuesReopened(GitHubModel): - """issues reopened event""" +class WebhookIssuesEdited(GitHubModel): + """issues edited event""" - action: Literal["reopened"] = Field() + action: Literal["edited"] = Field() + changes: WebhookIssuesEditedPropChanges = Field( + description="The changes to the issue." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +43,11 @@ class WebhookIssuesReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesReopenedPropIssue = Field( + issue: WebhookIssuesEditedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,7 +60,29 @@ class WebhookIssuesReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssuesReopenedPropIssue(GitHubModel): +class WebhookIssuesEditedPropChanges(GitHubModel): + """WebhookIssuesEditedPropChanges + + The changes to the issue. + """ + + body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookIssuesEditedPropChangesPropBody(GitHubModel): + """WebhookIssuesEditedPropChangesPropBody""" + + from_: str = Field(alias="from", description="The previous version of the body.") + + +class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): + """WebhookIssuesEditedPropChangesPropTitle""" + + from_: str = Field(alias="from", description="The previous version of the title.") + + +class WebhookIssuesEditedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -64,10 +91,10 @@ class WebhookIssuesReopenedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( + assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( + assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( Field() ) author_association: Literal[ @@ -92,44 +119,44 @@ class WebhookIssuesReopenedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) + labels: Missing[list[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( + milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") + reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesReopenedPropIssuePropSubIssuesSummary] = ( + sub_issues_summary: Missing[WebhookIssuesEditedPropIssuePropSubIssuesSummary] = ( Field(default=UNSET, title="Sub-issues Summary") ) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -151,11 +178,14 @@ class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -183,7 +213,7 @@ class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -197,7 +227,7 @@ class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -206,8 +236,8 @@ class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( + title="User" ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -223,7 +253,7 @@ class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -252,7 +282,7 @@ class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -272,10 +302,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -283,7 +313,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -310,10 +340,8 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -349,9 +377,7 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( pages: Missing[Literal["read", "write"]] = Field(default=UNSET) pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) @@ -363,8 +389,8 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesReopenedPropIssuePropPullRequest""" +class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesEditedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -373,7 +399,7 @@ class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): +class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -388,7 +414,7 @@ class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesReopenedPropIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesEditedPropIssuePropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -396,7 +422,7 @@ class WebhookIssuesReopenedPropIssuePropSubIssuesSummary(GitHubModel): percent_completed: int = Field() -class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): +class WebhookIssuesEditedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -425,34 +451,40 @@ class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopened) -model_rebuild(WebhookIssuesReopenedPropIssue) -model_rebuild(WebhookIssuesReopenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesReopenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesReopenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesReopenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesReopenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesReopenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesReopenedPropIssuePropReactions) -model_rebuild(WebhookIssuesReopenedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesReopenedPropIssuePropUser) +model_rebuild(WebhookIssuesEdited) +model_rebuild(WebhookIssuesEditedPropChanges) +model_rebuild(WebhookIssuesEditedPropChangesPropBody) +model_rebuild(WebhookIssuesEditedPropChangesPropTitle) +model_rebuild(WebhookIssuesEditedPropIssue) +model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) +model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) +model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesEditedPropIssuePropReactions) +model_rebuild(WebhookIssuesEditedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesEditedPropIssuePropUser) __all__ = ( - "WebhookIssuesReopened", - "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssuePropAssignee", - "WebhookIssuesReopenedPropIssuePropAssigneesItems", - "WebhookIssuesReopenedPropIssuePropLabelsItems", - "WebhookIssuesReopenedPropIssuePropMilestone", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesReopenedPropIssuePropPullRequest", - "WebhookIssuesReopenedPropIssuePropReactions", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", - "WebhookIssuesReopenedPropIssuePropUser", + "WebhookIssuesEdited", + "WebhookIssuesEditedPropChanges", + "WebhookIssuesEditedPropChangesPropBody", + "WebhookIssuesEditedPropChangesPropTitle", + "WebhookIssuesEditedPropIssue", + "WebhookIssuesEditedPropIssuePropAssignee", + "WebhookIssuesEditedPropIssuePropAssigneesItems", + "WebhookIssuesEditedPropIssuePropLabelsItems", + "WebhookIssuesEditedPropIssuePropMilestone", + "WebhookIssuesEditedPropIssuePropMilestonePropCreator", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesEditedPropIssuePropPullRequest", + "WebhookIssuesEditedPropIssuePropReactions", + "WebhookIssuesEditedPropIssuePropSubIssuesSummary", + "WebhookIssuesEditedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0580.py b/githubkit/versions/v2022_11_28/models/group_0580.py index 3c98f91a1..a1dab7538 100644 --- a/githubkit/versions/v2022_11_28/models/group_0580.py +++ b/githubkit/versions/v2022_11_28/models/group_0580.py @@ -14,23 +14,22 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0415 import WebhooksIssue2 +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0414 import WebhooksLabel -class WebhookIssuesTransferred(GitHubModel): - """issues transferred event""" +class WebhookIssuesLabeled(GitHubModel): + """issues labeled event""" - action: Literal["transferred"] = Field() - changes: WebhookIssuesTransferredPropChanges = Field() + action: Literal["labeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,10 +40,11 @@ class WebhookIssuesTransferred(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhookIssuesLabeledPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -57,19 +57,7 @@ class WebhookIssuesTransferred(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssuesTransferredPropChanges(GitHubModel): - """WebhookIssuesTransferredPropChanges""" - - new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): +class WebhookIssuesLabeledPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -78,12 +66,12 @@ class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] - ] = Field() + assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( + Field() + ) author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -106,39 +94,32 @@ class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[ - list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] - ] = Field(default=UNSET) + labels: Missing[list[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( + default=UNSET + ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None - ] = Field( + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, - None, - ] + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest - ] = Field(default=UNSET) - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( - title="Reactions" + pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( + default=UNSET ) + reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") + sub_issues_summary: Missing[WebhookIssuesLabeledPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" ) @@ -147,12 +128,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( - title="User" - ) + user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): +class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -174,12 +153,14 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -201,12 +182,13 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): +class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -220,7 +202,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel url: str = Field(description="URL for the label") -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): +class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -229,9 +211,9 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None - ] = Field(title="User") + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -246,9 +228,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( - GitHubModel -): +class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -270,14 +250,14 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( - GitHubModel -): +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -297,11 +277,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, - None, + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -309,9 +288,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -338,11 +315,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -366,7 +342,9 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( default=UNSET @@ -388,8 +366,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" +class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLabeledPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -398,7 +376,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): +class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -413,7 +391,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesLabeledPropIssuePropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -421,7 +399,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary(GitHub percent_completed: int = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): +class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -443,250 +421,41 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesTransferred) -model_rebuild(WebhookIssuesTransferredPropChanges) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) +model_rebuild(WebhookIssuesLabeled) +model_rebuild(WebhookIssuesLabeledPropIssue) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) +model_rebuild(WebhookIssuesLabeledPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesLabeledPropIssuePropUser) __all__ = ( - "WebhookIssuesTransferred", - "WebhookIssuesTransferredPropChanges", - "WebhookIssuesTransferredPropChangesPropNewIssue", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", - "WebhookIssuesTransferredPropChangesPropNewRepository", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", + "WebhookIssuesLabeled", + "WebhookIssuesLabeledPropIssue", + "WebhookIssuesLabeledPropIssuePropAssignee", + "WebhookIssuesLabeledPropIssuePropAssigneesItems", + "WebhookIssuesLabeledPropIssuePropLabelsItems", + "WebhookIssuesLabeledPropIssuePropMilestone", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLabeledPropIssuePropPullRequest", + "WebhookIssuesLabeledPropIssuePropReactions", + "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", + "WebhookIssuesLabeledPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0581.py b/githubkit/versions/v2022_11_28/models/group_0581.py index 58c223abc..664f8d720 100644 --- a/githubkit/versions/v2022_11_28/models/group_0581.py +++ b/githubkit/versions/v2022_11_28/models/group_0581.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,22 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0413 import WebhooksIssue -from .group_0416 import WebhooksUserMannequin +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookIssuesUnassigned(GitHubModel): - """issues unassigned event""" +class WebhookIssuesLocked(GitHubModel): + """issues locked event""" - action: Literal["unassigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,7 +39,7 @@ class WebhookIssuesUnassigned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue = Field( + issue: WebhookIssuesLockedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) @@ -59,6 +55,394 @@ class WebhookIssuesUnassigned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnassigned) +class WebhookIssuesLockedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Literal[True] = Field() + milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesLockedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesLockedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLockedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLockedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesLockedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesLockedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesLocked) +model_rebuild(WebhookIssuesLockedPropIssue) +model_rebuild(WebhookIssuesLockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesLockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesLockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLockedPropIssuePropReactions) +model_rebuild(WebhookIssuesLockedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesLockedPropIssuePropUser) -__all__ = ("WebhookIssuesUnassigned",) +__all__ = ( + "WebhookIssuesLocked", + "WebhookIssuesLockedPropIssue", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropSubIssuesSummary", + "WebhookIssuesLockedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0582.py b/githubkit/versions/v2022_11_28/models/group_0582.py index 4f19451af..7c359df8b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0582.py +++ b/githubkit/versions/v2022_11_28/models/group_0582.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,19 +18,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0408 import WebhooksLabel -from .group_0413 import WebhooksIssue +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0420 import WebhooksMilestone -class WebhookIssuesUnlabeled(GitHubModel): - """issues unlabeled event""" +class WebhookIssuesMilestoned(GitHubModel): + """issues milestoned event""" - action: Literal["unlabeled"] = Field() + action: Literal["milestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +40,14 @@ class WebhookIssuesUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue = Field( + issue: WebhookIssuesMilestonedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -57,6 +60,398 @@ class WebhookIssuesUnlabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnlabeled) +class WebhookIssuesMilestonedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesMilestonedPropIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesMilestonedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesMilestoned) +model_rebuild(WebhookIssuesMilestonedPropIssue) +model_rebuild(WebhookIssuesMilestonedPropIssuePropAssignee) +model_rebuild(WebhookIssuesMilestonedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesMilestonedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestone) +model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesMilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesMilestonedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesMilestonedPropIssuePropUser) -__all__ = ("WebhookIssuesUnlabeled",) +__all__ = ( + "WebhookIssuesMilestoned", + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", + "WebhookIssuesMilestonedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0583.py b/githubkit/versions/v2022_11_28/models/group_0583.py index 08f842cc6..f36cdd0b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0583.py +++ b/githubkit/versions/v2022_11_28/models/group_0583.py @@ -14,21 +14,22 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookIssuesUnlocked(GitHubModel): - """issues unlocked event""" +class WebhookIssuesOpened(GitHubModel): + """issues opened event""" - action: Literal["unlocked"] = Field() + action: Literal["opened"] = Field() + changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +40,7 @@ class WebhookIssuesUnlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesUnlockedPropIssue = Field( + issue: WebhookIssuesOpenedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) @@ -55,7 +56,7 @@ class WebhookIssuesUnlocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssuesUnlockedPropIssue(GitHubModel): +class WebhookIssuesOpenedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -64,10 +65,10 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( + assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( + assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( Field() ) author_association: Literal[ @@ -92,30 +93,30 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) + labels: Missing[list[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) labels_url: str = Field() - locked: Literal[False] = Field() - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") + reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesUnlockedPropIssuePropSubIssuesSummary] = ( + sub_issues_summary: Missing[WebhookIssuesOpenedPropIssuePropSubIssuesSummary] = ( Field(default=UNSET, title="Sub-issues Summary") ) state: Missing[Literal["open", "closed"]] = Field( @@ -126,10 +127,10 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -156,7 +157,7 @@ class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -183,7 +184,7 @@ class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -197,7 +198,7 @@ class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -206,8 +207,8 @@ class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + title="User" ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -223,7 +224,67 @@ class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -250,7 +311,329 @@ class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChanges(GitHubModel): + """WebhookIssuesOpenedPropChanges""" + + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None] = Field( + title="User" + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -270,10 +653,11 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -281,7 +665,9 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -308,10 +694,11 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns The set of permissions for the GitHub app """ @@ -357,8 +744,8 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -367,7 +754,7 @@ class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -382,7 +769,7 @@ class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -390,7 +777,7 @@ class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): percent_completed: int = Field() -class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -417,34 +804,270 @@ class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlocked) -model_rebuild(WebhookIssuesUnlockedPropIssue) -model_rebuild(WebhookIssuesUnlockedPropIssuePropAssignee) -model_rebuild(WebhookIssuesUnlockedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesUnlockedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestone) -model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesUnlockedPropIssuePropReactions) -model_rebuild(WebhookIssuesUnlockedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesUnlockedPropIssuePropUser) +class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether the repository has discussions enabled." + ) + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, description="Whether to require commit signoff." + ) + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesOpened) +model_rebuild(WebhookIssuesOpenedPropIssue) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesOpenedPropIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChanges) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) __all__ = ( - "WebhookIssuesUnlocked", - "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssuePropAssignee", - "WebhookIssuesUnlockedPropIssuePropAssigneesItems", - "WebhookIssuesUnlockedPropIssuePropLabelsItems", - "WebhookIssuesUnlockedPropIssuePropMilestone", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssuePropPullRequest", - "WebhookIssuesUnlockedPropIssuePropReactions", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", - "WebhookIssuesUnlockedPropIssuePropUser", + "WebhookIssuesOpened", + "WebhookIssuesOpenedPropChanges", + "WebhookIssuesOpenedPropChangesPropOldIssue", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", + "WebhookIssuesOpenedPropChangesPropOldRepository", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", + "WebhookIssuesOpenedPropIssue", + "WebhookIssuesOpenedPropIssuePropAssignee", + "WebhookIssuesOpenedPropIssuePropAssigneesItems", + "WebhookIssuesOpenedPropIssuePropLabelsItems", + "WebhookIssuesOpenedPropIssuePropMilestone", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropIssuePropPullRequest", + "WebhookIssuesOpenedPropIssuePropReactions", + "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", + "WebhookIssuesOpenedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0584.py b/githubkit/versions/v2022_11_28/models/group_0584.py index a6f3cd035..5b13b5ebc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0584.py +++ b/githubkit/versions/v2022_11_28/models/group_0584.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0415 import WebhooksIssue2 +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0421 import WebhooksIssue2 -class WebhookIssuesUnpinned(GitHubModel): - """issues unpinned event""" +class WebhookIssuesPinned(GitHubModel): + """issues pinned event""" - action: Literal["unpinned"] = Field() + action: Literal["pinned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,6 +55,6 @@ class WebhookIssuesUnpinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnpinned) +model_rebuild(WebhookIssuesPinned) -__all__ = ("WebhookIssuesUnpinned",) +__all__ = ("WebhookIssuesPinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0585.py b/githubkit/versions/v2022_11_28/models/group_0585.py index 6f64f219f..411352d41 100644 --- a/githubkit/versions/v2022_11_28/models/group_0585.py +++ b/githubkit/versions/v2022_11_28/models/group_0585.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0408 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookLabelCreated(GitHubModel): - """label created event""" +class WebhookIssuesReopened(GitHubModel): + """issues reopened event""" - action: Literal["created"] = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,10 @@ class WebhookLabelCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhookIssuesReopenedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -49,11 +52,407 @@ class WebhookLabelCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookIssuesReopenedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesReopenedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesReopenedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesReopenedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookLabelCreated) +model_rebuild(WebhookIssuesReopened) +model_rebuild(WebhookIssuesReopenedPropIssue) +model_rebuild(WebhookIssuesReopenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesReopenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesReopenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesReopenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesReopenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesReopenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesReopenedPropIssuePropReactions) +model_rebuild(WebhookIssuesReopenedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesReopenedPropIssuePropUser) -__all__ = ("WebhookLabelCreated",) +__all__ = ( + "WebhookIssuesReopened", + "WebhookIssuesReopenedPropIssue", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", + "WebhookIssuesReopenedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0586.py b/githubkit/versions/v2022_11_28/models/group_0586.py index 94d44c50f..887ff2e12 100644 --- a/githubkit/versions/v2022_11_28/models/group_0586.py +++ b/githubkit/versions/v2022_11_28/models/group_0586.py @@ -9,26 +9,28 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0408 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0421 import WebhooksIssue2 -class WebhookLabelDeleted(GitHubModel): - """label deleted event""" +class WebhookIssuesTransferred(GitHubModel): + """issues transferred event""" - action: Literal["deleted"] = Field() + action: Literal["transferred"] = Field() + changes: WebhookIssuesTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +41,10 @@ class WebhookLabelDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -52,6 +57,636 @@ class WebhookLabelDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookLabelDeleted) +class WebhookIssuesTransferredPropChanges(GitHubModel): + """WebhookIssuesTransferredPropChanges""" + + new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, + None, + ] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest + ] = Field(default=UNSET) + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( + title="User" + ) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( + GitHubModel +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesTransferred) +model_rebuild(WebhookIssuesTransferredPropChanges) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) -__all__ = ("WebhookLabelDeleted",) +__all__ = ( + "WebhookIssuesTransferred", + "WebhookIssuesTransferredPropChanges", + "WebhookIssuesTransferredPropChangesPropNewIssue", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", + "WebhookIssuesTransferredPropChangesPropNewRepository", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0587.py b/githubkit/versions/v2022_11_28/models/group_0587.py index 041cad73c..7ca7a1c1f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0587.py +++ b/githubkit/versions/v2022_11_28/models/group_0587.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0408 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0419 import WebhooksIssue +from .group_0422 import WebhooksUserMannequin -class WebhookLabelEdited(GitHubModel): - """label edited event""" +class WebhookIssuesUnassigned(GitHubModel): + """issues unassigned event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookLabelEditedPropChanges] = Field( - default=UNSET, - description="The changes to the label if the action was `edited`.", + action: Literal["unassigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -43,7 +43,10 @@ class WebhookLabelEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,56 +59,6 @@ class WebhookLabelEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookLabelEditedPropChanges(GitHubModel): - """WebhookLabelEditedPropChanges - - The changes to the label if the action was `edited`. - """ - - color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) - description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( - default=UNSET - ) - name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookLabelEditedPropChangesPropColor(GitHubModel): - """WebhookLabelEditedPropChangesPropColor""" - - from_: str = Field( - alias="from", - description="The previous version of the color if the action was `edited`.", - ) - - -class WebhookLabelEditedPropChangesPropDescription(GitHubModel): - """WebhookLabelEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookLabelEditedPropChangesPropName(GitHubModel): - """WebhookLabelEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -model_rebuild(WebhookLabelEdited) -model_rebuild(WebhookLabelEditedPropChanges) -model_rebuild(WebhookLabelEditedPropChangesPropColor) -model_rebuild(WebhookLabelEditedPropChangesPropDescription) -model_rebuild(WebhookLabelEditedPropChangesPropName) +model_rebuild(WebhookIssuesUnassigned) -__all__ = ( - "WebhookLabelEdited", - "WebhookLabelEditedPropChanges", - "WebhookLabelEditedPropChangesPropColor", - "WebhookLabelEditedPropChangesPropDescription", - "WebhookLabelEditedPropChangesPropName", -) +__all__ = ("WebhookIssuesUnassigned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0588.py b/githubkit/versions/v2022_11_28/models/group_0588.py index 75ff304e3..add232398 100644 --- a/githubkit/versions/v2022_11_28/models/group_0588.py +++ b/githubkit/versions/v2022_11_28/models/group_0588.py @@ -17,20 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0417 import WebhooksMarketplacePurchase -from .group_0418 import WebhooksPreviousMarketplacePurchase +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0414 import WebhooksLabel +from .group_0419 import WebhooksIssue -class WebhookMarketplacePurchaseCancelled(GitHubModel): - """marketplace_purchase cancelled event""" +class WebhookIssuesUnlabeled(GitHubModel): + """issues unlabeled event""" - action: Literal["cancelled"] = Field() - effective_date: str = Field() + action: Literal["unlabeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,25 +40,23 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMarketplacePurchaseCancelled) +model_rebuild(WebhookIssuesUnlabeled) -__all__ = ("WebhookMarketplacePurchaseCancelled",) +__all__ = ("WebhookIssuesUnlabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0589.py b/githubkit/versions/v2022_11_28/models/group_0589.py index 88dec8f54..310cbfe01 100644 --- a/githubkit/versions/v2022_11_28/models/group_0589.py +++ b/githubkit/versions/v2022_11_28/models/group_0589.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,19 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0417 import WebhooksMarketplacePurchase +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookMarketplacePurchaseChanged(GitHubModel): - """marketplace_purchase changed event""" +class WebhookIssuesUnlocked(GitHubModel): + """issues unlocked event""" - action: Literal["changed"] = Field() - effective_date: str = Field() + action: Literal["unlocked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,77 +39,412 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhookIssuesUnlockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" +class WebhookIssuesUnlockedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ - account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: Union[bool, None] = Field() - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( Field() ) - unit_count: int = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Literal[False] = Field() + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesUnlockedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" +class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( +class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMarketplacePurchaseChanged) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount -) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) +model_rebuild(WebhookIssuesUnlocked) +model_rebuild(WebhookIssuesUnlockedPropIssue) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnlockedPropIssuePropReactions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesUnlockedPropIssuePropUser) __all__ = ( - "WebhookMarketplacePurchaseChanged", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", + "WebhookIssuesUnlocked", + "WebhookIssuesUnlockedPropIssue", + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", + "WebhookIssuesUnlockedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0590.py b/githubkit/versions/v2022_11_28/models/group_0590.py index e76895301..7fedb5af7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0590.py +++ b/githubkit/versions/v2022_11_28/models/group_0590.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0417 import WebhooksMarketplacePurchase +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0421 import WebhooksIssue2 -class WebhookMarketplacePurchasePendingChange(GitHubModel): - """marketplace_purchase pending_change event""" +class WebhookIssuesUnpinned(GitHubModel): + """issues unpinned event""" - action: Literal["pending_change"] = Field() - effective_date: str = Field() + action: Literal["unpinned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,81 +39,22 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChange) -model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan -) +model_rebuild(WebhookIssuesUnpinned) -__all__ = ( - "WebhookMarketplacePurchasePendingChange", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", -) +__all__ = ("WebhookIssuesUnpinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0591.py b/githubkit/versions/v2022_11_28/models/group_0591.py index a8b1216e9..31807ca37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0591.py +++ b/githubkit/versions/v2022_11_28/models/group_0591.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0418 import WebhooksPreviousMarketplacePurchase +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0414 import WebhooksLabel -class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): - """marketplace_purchase pending_change_cancelled event""" +class WebhookLabelCreated(GitHubModel): + """label created event""" - action: Literal["pending_change_cancelled"] = Field() - effective_date: str = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,81 +39,21 @@ class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Union[str, None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou - nt - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" - - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan -) +model_rebuild(WebhookLabelCreated) -__all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelled", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", -) +__all__ = ("WebhookLabelCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0592.py b/githubkit/versions/v2022_11_28/models/group_0592.py index 812f3f176..bd880b1b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0592.py +++ b/githubkit/versions/v2022_11_28/models/group_0592.py @@ -17,20 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0417 import WebhooksMarketplacePurchase -from .group_0418 import WebhooksPreviousMarketplacePurchase +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0414 import WebhooksLabel -class WebhookMarketplacePurchasePurchased(GitHubModel): - """marketplace_purchase purchased event""" +class WebhookLabelDeleted(GitHubModel): + """label deleted event""" - action: Literal["purchased"] = Field() - effective_date: str = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,25 +39,19 @@ class WebhookMarketplacePurchasePurchased(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMarketplacePurchasePurchased) +model_rebuild(WebhookLabelDeleted) -__all__ = ("WebhookMarketplacePurchasePurchased",) +__all__ = ("WebhookLabelDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0593.py b/githubkit/versions/v2022_11_28/models/group_0593.py index 824621306..1c1cef325 100644 --- a/githubkit/versions/v2022_11_28/models/group_0593.py +++ b/githubkit/versions/v2022_11_28/models/group_0593.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,19 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0414 import WebhooksLabel -class WebhookMemberAdded(GitHubModel): - """member added event""" +class WebhookLabelEdited(GitHubModel): + """label edited event""" - action: Literal["added"] = Field() - changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + action: Literal["edited"] = Field() + changes: Missing[WebhookLabelEditedPropChanges] = Field( + default=UNSET, + description="The changes to the label if the action was `edited`.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,7 +43,7 @@ class WebhookMemberAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -53,50 +56,56 @@ class WebhookMemberAdded(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMemberAddedPropChanges(GitHubModel): - """WebhookMemberAddedPropChanges""" +class WebhookLabelEditedPropChanges(GitHubModel): + """WebhookLabelEditedPropChanges - permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( - default=UNSET, - description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", - ) - role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( - default=UNSET, description="The role assigned to the collaborator." + The changes to the label if the action was `edited`. + """ + + color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) + description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( + default=UNSET ) + name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) -class WebhookMemberAddedPropChangesPropPermission(GitHubModel): - """WebhookMemberAddedPropChangesPropPermission +class WebhookLabelEditedPropChangesPropColor(GitHubModel): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str = Field( + alias="from", + description="The previous version of the color if the action was `edited`.", + ) - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - to: Literal["write", "admin", "read"] = Field() +class WebhookLabelEditedPropChangesPropDescription(GitHubModel): + """WebhookLabelEditedPropChangesPropDescription""" + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) -class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): - """WebhookMemberAddedPropChangesPropRoleName - The role assigned to the collaborator. - """ +class WebhookLabelEditedPropChangesPropName(GitHubModel): + """WebhookLabelEditedPropChangesPropName""" - to: str = Field() + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) -model_rebuild(WebhookMemberAdded) -model_rebuild(WebhookMemberAddedPropChanges) -model_rebuild(WebhookMemberAddedPropChangesPropPermission) -model_rebuild(WebhookMemberAddedPropChangesPropRoleName) +model_rebuild(WebhookLabelEdited) +model_rebuild(WebhookLabelEditedPropChanges) +model_rebuild(WebhookLabelEditedPropChangesPropColor) +model_rebuild(WebhookLabelEditedPropChangesPropDescription) +model_rebuild(WebhookLabelEditedPropChangesPropName) __all__ = ( - "WebhookMemberAdded", - "WebhookMemberAddedPropChanges", - "WebhookMemberAddedPropChangesPropPermission", - "WebhookMemberAddedPropChangesPropRoleName", + "WebhookLabelEdited", + "WebhookLabelEditedPropChanges", + "WebhookLabelEditedPropChangesPropColor", + "WebhookLabelEditedPropChangesPropDescription", + "WebhookLabelEditedPropChangesPropName", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0594.py b/githubkit/versions/v2022_11_28/models/group_0594.py index f63f9e263..fc199c87c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0594.py +++ b/githubkit/versions/v2022_11_28/models/group_0594.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,21 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0423 import WebhooksMarketplacePurchase +from .group_0424 import WebhooksPreviousMarketplacePurchase -class WebhookMemberEdited(GitHubModel): - """member edited event""" +class WebhookMarketplacePurchaseCancelled(GitHubModel): + """marketplace_purchase cancelled event""" - action: Literal["edited"] = Field() - changes: WebhookMemberEditedPropChanges = Field( - description="The changes to the collaborator permissions" - ) + action: Literal["cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,57 +41,25 @@ class WebhookMemberEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMemberEditedPropChanges(GitHubModel): - """WebhookMemberEditedPropChanges - - The changes to the collaborator permissions - """ - - old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( - default=UNSET - ) - permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( - default=UNSET - ) - - -class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropOldPermission""" - - from_: str = Field( - alias="from", - description="The previous permissions of the collaborator if the action was edited.", - ) - - -class WebhookMemberEditedPropChangesPropPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropPermission""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookMemberEdited) -model_rebuild(WebhookMemberEditedPropChanges) -model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) -model_rebuild(WebhookMemberEditedPropChangesPropPermission) +model_rebuild(WebhookMarketplacePurchaseCancelled) -__all__ = ( - "WebhookMemberEdited", - "WebhookMemberEditedPropChanges", - "WebhookMemberEditedPropChangesPropOldPermission", - "WebhookMemberEditedPropChangesPropPermission", -) +__all__ = ("WebhookMarketplacePurchaseCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0595.py b/githubkit/versions/v2022_11_28/models/group_0595.py index 75ec15bca..5ead55327 100644 --- a/githubkit/versions/v2022_11_28/models/group_0595.py +++ b/githubkit/versions/v2022_11_28/models/group_0595.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0423 import WebhooksMarketplacePurchase -class WebhookMemberRemoved(GitHubModel): - """member removed event""" +class WebhookMarketplacePurchaseChanged(GitHubModel): + """marketplace_purchase changed event""" - action: Literal["removed"] = Field() + action: Literal["changed"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,19 +40,77 @@ class WebhookMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMemberRemoved) +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: Union[bool, None] = Field() + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( + Field() + ) + unit_count: int = Field() + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchaseChanged) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount +) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) -__all__ = ("WebhookMemberRemoved",) +__all__ = ( + "WebhookMarketplacePurchaseChanged", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0596.py b/githubkit/versions/v2022_11_28/models/group_0596.py index 67694b838..4a1d1e391 100644 --- a/githubkit/versions/v2022_11_28/models/group_0596.py +++ b/githubkit/versions/v2022_11_28/models/group_0596.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser -from .group_0419 import WebhooksTeam +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0423 import WebhooksMarketplacePurchase -class WebhookMembershipAdded(GitHubModel): - """membership added event""" +class WebhookMarketplacePurchasePendingChange(GitHubModel): + """marketplace_purchase pending_change event""" - action: Literal["added"] = Field() + action: Literal["pending_change"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,57 +40,81 @@ class WebhookMembershipAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - organization: OrganizationSimpleWebhooks = Field( + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - scope: Literal["team"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") - team: WebhooksTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMembershipAddedPropSender(GitHubModel): - """User""" +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookMembershipAdded) -model_rebuild(WebhookMembershipAddedPropSender) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChange) +model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan +) __all__ = ( - "WebhookMembershipAdded", - "WebhookMembershipAddedPropSender", + "WebhookMarketplacePurchasePendingChange", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0597.py b/githubkit/versions/v2022_11_28/models/group_0597.py index 6efe54645..908ed8a72 100644 --- a/githubkit/versions/v2022_11_28/models/group_0597.py +++ b/githubkit/versions/v2022_11_28/models/group_0597.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser -from .group_0419 import WebhooksTeam +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0424 import WebhooksPreviousMarketplacePurchase -class WebhookMembershipRemoved(GitHubModel): - """membership removed event""" +class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["removed"] = Field() + action: Literal["pending_change_cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,57 +40,81 @@ class WebhookMembershipRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - organization: OrganizationSimpleWebhooks = Field( + marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - scope: Literal["team", "organization"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") - team: WebhooksTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() -class WebhookMembershipRemovedPropSender(GitHubModel): - """User""" +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookMembershipRemoved) -model_rebuild(WebhookMembershipRemovedPropSender) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan +) __all__ = ( - "WebhookMembershipRemoved", - "WebhookMembershipRemovedPropSender", + "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0598.py b/githubkit/versions/v2022_11_28/models/group_0598.py index 7a01e953d..33069dde3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0598.py +++ b/githubkit/versions/v2022_11_28/models/group_0598.py @@ -17,41 +17,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0420 import MergeGroup +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0423 import WebhooksMarketplacePurchase +from .group_0424 import WebhooksPreviousMarketplacePurchase -class WebhookMergeGroupChecksRequested(GitHubModel): - """WebhookMergeGroupChecksRequested""" +class WebhookMarketplacePurchasePurchased(GitHubModel): + """marketplace_purchase purchased event""" - action: Literal["checks_requested"] = Field() + action: Literal["purchased"] = Field() + effective_date: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_group: MergeGroup = Field( - title="Merge Group", - description="A group of pull requests that the merge queue has grouped together to be merged.", + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMergeGroupChecksRequested) +model_rebuild(WebhookMarketplacePurchasePurchased) -__all__ = ("WebhookMergeGroupChecksRequested",) +__all__ = ("WebhookMarketplacePurchasePurchased",) diff --git a/githubkit/versions/v2022_11_28/models/group_0599.py b/githubkit/versions/v2022_11_28/models/group_0599.py index 2ccdc375f..9018b59a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0599.py +++ b/githubkit/versions/v2022_11_28/models/group_0599.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,45 +17,86 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0420 import MergeGroup +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser -class WebhookMergeGroupDestroyed(GitHubModel): - """WebhookMergeGroupDestroyed""" +class WebhookMemberAdded(GitHubModel): + """member added event""" - action: Literal["destroyed"] = Field() - reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( + action: Literal["added"] = Field() + changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_group: MergeGroup = Field( - title="Merge Group", - description="A group of pull requests that the merge queue has grouped together to be merged.", - ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookMemberAddedPropChanges(GitHubModel): + """WebhookMemberAddedPropChanges""" + + permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( + default=UNSET, + description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", + ) + role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( + default=UNSET, description="The role assigned to the collaborator." ) -model_rebuild(WebhookMergeGroupDestroyed) +class WebhookMemberAddedPropChangesPropPermission(GitHubModel): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + + to: Literal["write", "admin", "read"] = Field() + + +class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str = Field() + + +model_rebuild(WebhookMemberAdded) +model_rebuild(WebhookMemberAddedPropChanges) +model_rebuild(WebhookMemberAddedPropChangesPropPermission) +model_rebuild(WebhookMemberAddedPropChangesPropRoleName) -__all__ = ("WebhookMergeGroupDestroyed",) +__all__ = ( + "WebhookMemberAdded", + "WebhookMemberAddedPropChanges", + "WebhookMemberAddedPropChangesPropPermission", + "WebhookMemberAddedPropChangesPropRoleName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0600.py b/githubkit/versions/v2022_11_28/models/group_0600.py index d653f570e..c8580dadd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0600.py +++ b/githubkit/versions/v2022_11_28/models/group_0600.py @@ -17,74 +17,82 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser -class WebhookMetaDeleted(GitHubModel): - """meta deleted event""" +class WebhookMemberEdited(GitHubModel): + """member edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookMemberEditedPropChanges = Field( + description="The changes to the collaborator permissions" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - hook: WebhookMetaDeletedPropHook = Field( - description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." - ) - hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMetaDeletedPropHook(GitHubModel): - """WebhookMetaDeletedPropHook +class WebhookMemberEditedPropChanges(GitHubModel): + """WebhookMemberEditedPropChanges - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. + The changes to the collaborator permissions """ - active: bool = Field() - config: WebhookMetaDeletedPropHookPropConfig = Field() - created_at: str = Field() - events: list[str] = Field() - id: int = Field() - name: str = Field() - type: str = Field() - updated_at: str = Field() + old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( + default=UNSET + ) + permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( + default=UNSET + ) + + +class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropOldPermission""" + + from_: str = Field( + alias="from", + description="The previous permissions of the collaborator if the action was edited.", + ) -class WebhookMetaDeletedPropHookPropConfig(GitHubModel): - """WebhookMetaDeletedPropHookPropConfig""" +class WebhookMemberEditedPropChangesPropPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropPermission""" - content_type: Literal["json", "form"] = Field() - insecure_ssl: str = Field() - secret: Missing[str] = Field(default=UNSET) - url: str = Field() + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookMetaDeleted) -model_rebuild(WebhookMetaDeletedPropHook) -model_rebuild(WebhookMetaDeletedPropHookPropConfig) +model_rebuild(WebhookMemberEdited) +model_rebuild(WebhookMemberEditedPropChanges) +model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) +model_rebuild(WebhookMemberEditedPropChangesPropPermission) __all__ = ( - "WebhookMetaDeleted", - "WebhookMetaDeletedPropHook", - "WebhookMetaDeletedPropHookPropConfig", + "WebhookMemberEdited", + "WebhookMemberEditedPropChanges", + "WebhookMemberEditedPropChangesPropOldPermission", + "WebhookMemberEditedPropChangesPropPermission", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0601.py b/githubkit/versions/v2022_11_28/models/group_0601.py index 4be619e53..4890383a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0601.py +++ b/githubkit/versions/v2022_11_28/models/group_0601.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0414 import WebhooksMilestone +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser -class WebhookMilestoneClosed(GitHubModel): - """milestone closed event""" +class WebhookMemberRemoved(GitHubModel): + """member removed event""" - action: Literal["closed"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +39,7 @@ class WebhookMilestoneClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +52,6 @@ class WebhookMilestoneClosed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMilestoneClosed) +model_rebuild(WebhookMemberRemoved) -__all__ = ("WebhookMilestoneClosed",) +__all__ = ("WebhookMemberRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0602.py b/githubkit/versions/v2022_11_28/models/group_0602.py index 79613ec5c..5d47f8329 100644 --- a/githubkit/versions/v2022_11_28/models/group_0602.py +++ b/githubkit/versions/v2022_11_28/models/group_0602.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0421 import WebhooksMilestone3 +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser +from .group_0425 import WebhooksTeam -class WebhookMilestoneCreated(GitHubModel): - """milestone created event""" +class WebhookMembershipAdded(GitHubModel): + """membership added event""" - action: Literal["created"] = Field() + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +39,57 @@ class WebhookMilestoneCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + member: Union[WebhooksUser, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + scope: Literal["team"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") + team: WebhooksTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookMembershipAddedPropSender(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneCreated) +model_rebuild(WebhookMembershipAdded) +model_rebuild(WebhookMembershipAddedPropSender) -__all__ = ("WebhookMilestoneCreated",) +__all__ = ( + "WebhookMembershipAdded", + "WebhookMembershipAddedPropSender", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0603.py b/githubkit/versions/v2022_11_28/models/group_0603.py index 33a3d5010..ce91b90da 100644 --- a/githubkit/versions/v2022_11_28/models/group_0603.py +++ b/githubkit/versions/v2022_11_28/models/group_0603.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0414 import WebhooksMilestone +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser +from .group_0425 import WebhooksTeam -class WebhookMilestoneDeleted(GitHubModel): - """milestone deleted event""" +class WebhookMembershipRemoved(GitHubModel): + """membership removed event""" - action: Literal["deleted"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +39,57 @@ class WebhookMilestoneDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + member: Union[WebhooksUser, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + scope: Literal["team", "organization"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") + team: WebhooksTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookMembershipRemovedPropSender(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneDeleted) +model_rebuild(WebhookMembershipRemoved) +model_rebuild(WebhookMembershipRemovedPropSender) -__all__ = ("WebhookMilestoneDeleted",) +__all__ = ( + "WebhookMembershipRemoved", + "WebhookMembershipRemovedPropSender", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0604.py b/githubkit/versions/v2022_11_28/models/group_0604.py index a46334907..8e5d7f1bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0604.py +++ b/githubkit/versions/v2022_11_28/models/group_0604.py @@ -17,97 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0414 import WebhooksMilestone +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0426 import MergeGroup -class WebhookMilestoneEdited(GitHubModel): - """milestone edited event""" +class WebhookMergeGroupChecksRequested(GitHubModel): + """WebhookMergeGroupChecksRequested""" - action: Literal["edited"] = Field() - changes: WebhookMilestoneEditedPropChanges = Field( - description="The changes to the milestone if the action was `edited`." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["checks_requested"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookMilestoneEditedPropChanges(GitHubModel): - """WebhookMilestoneEditedPropChanges - - The changes to the milestone if the action was `edited`. - """ - - description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( - default=UNSET - ) - due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) - title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): - """WebhookMilestoneEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): - """WebhookMilestoneEditedPropChangesPropDueOn""" - - from_: str = Field( - alias="from", - description="The previous version of the due date if the action was `edited`.", - ) - - -class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): - """WebhookMilestoneEditedPropChangesPropTitle""" - - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookMilestoneEdited) -model_rebuild(WebhookMilestoneEditedPropChanges) -model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) -model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) -model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) +model_rebuild(WebhookMergeGroupChecksRequested) -__all__ = ( - "WebhookMilestoneEdited", - "WebhookMilestoneEditedPropChanges", - "WebhookMilestoneEditedPropChangesPropDescription", - "WebhookMilestoneEditedPropChangesPropDueOn", - "WebhookMilestoneEditedPropChangesPropTitle", -) +__all__ = ("WebhookMergeGroupChecksRequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0605.py b/githubkit/versions/v2022_11_28/models/group_0605.py index c0676c492..5a115ba8f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0605.py +++ b/githubkit/versions/v2022_11_28/models/group_0605.py @@ -17,44 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0421 import WebhooksMilestone3 +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0426 import MergeGroup -class WebhookMilestoneOpened(GitHubModel): - """milestone opened event""" +class WebhookMergeGroupDestroyed(GitHubModel): + """WebhookMergeGroupDestroyed""" - action: Literal["opened"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["destroyed"] = Field() + reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookMilestoneOpened) +model_rebuild(WebhookMergeGroupDestroyed) -__all__ = ("WebhookMilestoneOpened",) +__all__ = ("WebhookMergeGroupDestroyed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0606.py b/githubkit/versions/v2022_11_28/models/group_0606.py index bc8378b1d..1e9061487 100644 --- a/githubkit/versions/v2022_11_28/models/group_0606.py +++ b/githubkit/versions/v2022_11_28/models/group_0606.py @@ -17,41 +17,74 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookOrgBlockBlocked(GitHubModel): - """org_block blocked event""" +class WebhookMetaDeleted(GitHubModel): + """meta deleted event""" - action: Literal["blocked"] = Field() - blocked_user: Union[WebhooksUser, None] = Field(title="User") + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) + hook: WebhookMetaDeletedPropHook = Field( + description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." + ) + hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrgBlockBlocked) +class WebhookMetaDeletedPropHook(GitHubModel): + """WebhookMetaDeletedPropHook + + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ + + active: bool = Field() + config: WebhookMetaDeletedPropHookPropConfig = Field() + created_at: str = Field() + events: list[str] = Field() + id: int = Field() + name: str = Field() + type: str = Field() + updated_at: str = Field() + + +class WebhookMetaDeletedPropHookPropConfig(GitHubModel): + """WebhookMetaDeletedPropHookPropConfig""" + + content_type: Literal["json", "form"] = Field() + insecure_ssl: str = Field() + secret: Missing[str] = Field(default=UNSET) + url: str = Field() + + +model_rebuild(WebhookMetaDeleted) +model_rebuild(WebhookMetaDeletedPropHook) +model_rebuild(WebhookMetaDeletedPropHookPropConfig) -__all__ = ("WebhookOrgBlockBlocked",) +__all__ = ( + "WebhookMetaDeleted", + "WebhookMetaDeletedPropHook", + "WebhookMetaDeletedPropHookPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0607.py b/githubkit/versions/v2022_11_28/models/group_0607.py index 874279550..f2bb5de2b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0607.py +++ b/githubkit/versions/v2022_11_28/models/group_0607.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0420 import WebhooksMilestone -class WebhookOrgBlockUnblocked(GitHubModel): - """org_block unblocked event""" +class WebhookMilestoneClosed(GitHubModel): + """milestone closed event""" - action: Literal["unblocked"] = Field() - blocked_user: Union[WebhooksUser, None] = Field(title="User") + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,18 +39,22 @@ class WebhookOrgBlockUnblocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrgBlockUnblocked) +model_rebuild(WebhookMilestoneClosed) -__all__ = ("WebhookOrgBlockUnblocked",) +__all__ = ("WebhookMilestoneClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0608.py b/githubkit/versions/v2022_11_28/models/group_0608.py index 2bc6a4f2d..4ecf4fc0c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0608.py +++ b/githubkit/versions/v2022_11_28/models/group_0608.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0422 import WebhooksMembership +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0427 import WebhooksMilestone3 -class WebhookOrganizationDeleted(GitHubModel): - """organization deleted event""" +class WebhookMilestoneCreated(GitHubModel): + """milestone created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +39,22 @@ class WebhookOrganizationDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhooksMembership] = Field( - default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone3 = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationDeleted) +model_rebuild(WebhookMilestoneCreated) -__all__ = ("WebhookOrganizationDeleted",) +__all__ = ("WebhookMilestoneCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0609.py b/githubkit/versions/v2022_11_28/models/group_0609.py index 90b5ea237..1a13f70b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0609.py +++ b/githubkit/versions/v2022_11_28/models/group_0609.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0422 import WebhooksMembership +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0420 import WebhooksMilestone -class WebhookOrganizationMemberAdded(GitHubModel): - """organization member_added event""" +class WebhookMilestoneDeleted(GitHubModel): + """milestone deleted event""" - action: Literal["member_added"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +39,22 @@ class WebhookOrganizationMemberAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhooksMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationMemberAdded) +model_rebuild(WebhookMilestoneDeleted) -__all__ = ("WebhookOrganizationMemberAdded",) +__all__ = ("WebhookMilestoneDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0610.py b/githubkit/versions/v2022_11_28/models/group_0610.py index 0e57cc72f..ad4c57b34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0610.py +++ b/githubkit/versions/v2022_11_28/models/group_0610.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0420 import WebhooksMilestone -class WebhookOrganizationMemberInvited(GitHubModel): - """organization member_invited event""" +class WebhookMilestoneEdited(GitHubModel): + """milestone edited event""" - action: Literal["member_invited"] = Field() + action: Literal["edited"] = Field() + changes: WebhookMilestoneEditedPropChanges = Field( + description="The changes to the milestone if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,77 +42,72 @@ class WebhookOrganizationMemberInvited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( - description="The invitation for the user or email if the action is `member_invited`." + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") -class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): - """WebhookOrganizationMemberInvitedPropInvitation +class WebhookMilestoneEditedPropChanges(GitHubModel): + """WebhookMilestoneEditedPropChanges - The invitation for the user or email if the action is `member_invited`. + The changes to the milestone if the action was `edited`. """ - created_at: datetime = Field() - email: Union[str, None] = Field() - failed_at: Union[datetime, None] = Field() - failed_reason: Union[str, None] = Field() - id: float = Field() - invitation_teams_url: str = Field() - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( - Field(title="User") + description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( + default=UNSET ) - login: Union[str, None] = Field() - node_id: str = Field() - role: str = Field() - team_count: float = Field() - invitation_source: Missing[str] = Field(default=UNSET) - - -class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookOrganizationMemberInvited) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) + due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) + title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDueOn""" + + from_: str = Field( + alias="from", + description="The previous version of the due date if the action was `edited`.", + ) + + +class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", + ) + + +model_rebuild(WebhookMilestoneEdited) +model_rebuild(WebhookMilestoneEditedPropChanges) +model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) +model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) +model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) __all__ = ( - "WebhookOrganizationMemberInvited", - "WebhookOrganizationMemberInvitedPropInvitation", - "WebhookOrganizationMemberInvitedPropInvitationPropInviter", + "WebhookMilestoneEdited", + "WebhookMilestoneEditedPropChanges", + "WebhookMilestoneEditedPropChangesPropDescription", + "WebhookMilestoneEditedPropChangesPropDueOn", + "WebhookMilestoneEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0611.py b/githubkit/versions/v2022_11_28/models/group_0611.py index 1cc42f040..66a3c2a0d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0611.py +++ b/githubkit/versions/v2022_11_28/models/group_0611.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0422 import WebhooksMembership +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0427 import WebhooksMilestone3 -class WebhookOrganizationMemberRemoved(GitHubModel): - """organization member_removed event""" +class WebhookMilestoneOpened(GitHubModel): + """milestone opened event""" - action: Literal["member_removed"] = Field() + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +39,22 @@ class WebhookOrganizationMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhooksMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone3 = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationMemberRemoved) +model_rebuild(WebhookMilestoneOpened) -__all__ = ("WebhookOrganizationMemberRemoved",) +__all__ = ("WebhookMilestoneOpened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0612.py b/githubkit/versions/v2022_11_28/models/group_0612.py index 404c76dbd..b182b0ea5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0612.py +++ b/githubkit/versions/v2022_11_28/models/group_0612.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,19 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0422 import WebhooksMembership +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser -class WebhookOrganizationRenamed(GitHubModel): - """organization renamed event""" +class WebhookOrgBlockBlocked(GitHubModel): + """org_block blocked event""" - action: Literal["renamed"] = Field() - changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + action: Literal["blocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +40,6 @@ class WebhookOrganizationRenamed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhooksMembership] = Field( - default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", @@ -57,26 +52,6 @@ class WebhookOrganizationRenamed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookOrganizationRenamedPropChanges(GitHubModel): - """WebhookOrganizationRenamedPropChanges""" - - login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - - -class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): - """WebhookOrganizationRenamedPropChangesPropLogin""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookOrganizationRenamed) -model_rebuild(WebhookOrganizationRenamedPropChanges) -model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) +model_rebuild(WebhookOrgBlockBlocked) -__all__ = ( - "WebhookOrganizationRenamed", - "WebhookOrganizationRenamedPropChanges", - "WebhookOrganizationRenamedPropChangesPropLogin", -) +__all__ = ("WebhookOrgBlockBlocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0613.py b/githubkit/versions/v2022_11_28/models/group_0613.py index 2c926e7e7..4027ed753 100644 --- a/githubkit/versions/v2022_11_28/models/group_0613.py +++ b/githubkit/versions/v2022_11_28/models/group_0613.py @@ -9,52 +9,49 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser -class WebhookRubygemsMetadata(GitHubModel): - """Ruby Gems metadata""" - - name: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) - platform: Missing[str] = Field(default=UNSET) - metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) - repo: Missing[str] = Field(default=UNSET) - dependencies: Missing[list[WebhookRubygemsMetadataPropDependenciesItems]] = Field( - default=UNSET - ) - commit_oid: Missing[str] = Field(default=UNSET) - - -class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): - """WebhookRubygemsMetadataPropVersionInfo""" - - version: Missing[str] = Field(default=UNSET) +class WebhookOrgBlockUnblocked(GitHubModel): + """org_block unblocked event""" -class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): - """WebhookRubygemsMetadataPropMetadata""" - - -class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): - """WebhookRubygemsMetadataPropDependenciesItems""" + action: Literal["unblocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRubygemsMetadata) -model_rebuild(WebhookRubygemsMetadataPropVersionInfo) -model_rebuild(WebhookRubygemsMetadataPropMetadata) -model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) +model_rebuild(WebhookOrgBlockUnblocked) -__all__ = ( - "WebhookRubygemsMetadata", - "WebhookRubygemsMetadataPropDependenciesItems", - "WebhookRubygemsMetadataPropMetadata", - "WebhookRubygemsMetadataPropVersionInfo", -) +__all__ = ("WebhookOrgBlockUnblocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0614.py b/githubkit/versions/v2022_11_28/models/group_0614.py index 183de1e9e..7486fae10 100644 --- a/githubkit/versions/v2022_11_28/models/group_0614.py +++ b/githubkit/versions/v2022_11_28/models/group_0614.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0615 import WebhookPackagePublishedPropPackage +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0428 import WebhooksMembership -class WebhookPackagePublished(GitHubModel): - """package published event""" +class WebhookOrganizationDeleted(GitHubModel): + """organization deleted event""" - action: Literal["published"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,14 +39,15 @@ class WebhookPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + membership: Missing[WebhooksMembership] = Field( default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackagePublishedPropPackage = Field( - description="Information about the package." - ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -55,6 +56,6 @@ class WebhookPackagePublished(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPackagePublished) +model_rebuild(WebhookOrganizationDeleted) -__all__ = ("WebhookPackagePublished",) +__all__ = ("WebhookOrganizationDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0615.py b/githubkit/versions/v2022_11_28/models/group_0615.py index 9f850adc3..dfb6dc122 100644 --- a/githubkit/versions/v2022_11_28/models/group_0615.py +++ b/githubkit/versions/v2022_11_28/models/group_0615.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,76 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0616 import WebhookPackagePublishedPropPackagePropPackageVersion +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0428 import WebhooksMembership -class WebhookPackagePublishedPropPackage(GitHubModel): - """WebhookPackagePublishedPropPackage +class WebhookOrganizationMemberAdded(GitHubModel): + """organization member_added event""" - Information about the package. - """ - - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( - title="User" + action: Literal["member_added"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - package_type: str = Field() - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersion, None - ] = Field() - registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() - updated_at: Union[str, None] = Field() - - -class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): - """WebhookPackagePublishedPropPackagePropRegistry""" - - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: WebhooksMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPackagePublishedPropPackage) -model_rebuild(WebhookPackagePublishedPropPackagePropOwner) -model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) +model_rebuild(WebhookOrganizationMemberAdded) -__all__ = ( - "WebhookPackagePublishedPropPackage", - "WebhookPackagePublishedPropPackagePropOwner", - "WebhookPackagePublishedPropPackagePropRegistry", -) +__all__ = ("WebhookOrganizationMemberAdded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0616.py b/githubkit/versions/v2022_11_28/models/group_0616.py index 1e8bcacd8..0ced70429 100644 --- a/githubkit/versions/v2022_11_28/models/group_0616.py +++ b/githubkit/versions/v2022_11_28/models/group_0616.py @@ -9,436 +9,76 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0613 import WebhookRubygemsMetadata - - -class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersion""" - - author: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] - ] = Field(default=UNSET, title="User") - body: Missing[ - Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, - None, - ] - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] - ] = Field(default=UNSET) - nuget_metadata: Missing[ - Union[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems - ], - None, - ] - ] = Field(default=UNSET) - package_files: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems - ] - ] = Field(default=UNSET) - contributors: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems - ] - ] = Field(default=UNSET) - engines: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[list[str]] = Field(default=UNSET) - files: Missing[list[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, - None, - ] - ] = Field(default=UNSET) - os: Missing[list[str]] = Field(default=UNSET) - cpu: Missing[list[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser + + +class WebhookOrganizationMemberInvited(GitHubModel): + """organization member_invited event""" + + action: Literal["member_invited"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( + description="The invitation for the user or email if the action is `member_invited`." + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + + +class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. """ - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: Missing[Union[int, str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): + created_at: datetime = Field() + email: Union[str, None] = Field() + failed_at: Union[datetime, None] = Field() + failed_reason: Union[str, None] = Field() + id: float = Field() + invitation_teams_url: str = Field() + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( + Field(title="User") + ) + login: Union[str, None] = Field() + node_id: str = Field() + role: str = Field() + team_count: float = Field() + invitation_source: Missing[str] = Field(default=UNSET) + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -465,108 +105,12 @@ class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) +model_rebuild(WebhookOrganizationMemberInvited) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) __all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersion", - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", + "WebhookOrganizationMemberInvited", + "WebhookOrganizationMemberInvitedPropInvitation", + "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0617.py b/githubkit/versions/v2022_11_28/models/group_0617.py index 8ce362305..efeb07ad6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0617.py +++ b/githubkit/versions/v2022_11_28/models/group_0617.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0618 import WebhookPackageUpdatedPropPackage +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0428 import WebhooksMembership -class WebhookPackageUpdated(GitHubModel): - """package updated event""" +class WebhookOrganizationMemberRemoved(GitHubModel): + """organization member_removed event""" - action: Literal["updated"] = Field() + action: Literal["member_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,21 +39,22 @@ class WebhookPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + membership: WebhooksMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackageUpdatedPropPackage = Field( - description="Information about the package." - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPackageUpdated) +model_rebuild(WebhookOrganizationMemberRemoved) -__all__ = ("WebhookPackageUpdated",) +__all__ = ("WebhookOrganizationMemberRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0618.py b/githubkit/versions/v2022_11_28/models/group_0618.py index 7f189c7ad..aa6f28b0a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0618.py +++ b/githubkit/versions/v2022_11_28/models/group_0618.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,72 +17,66 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0619 import WebhookPackageUpdatedPropPackagePropPackageVersion - - -class WebhookPackageUpdatedPropPackage(GitHubModel): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ - - created_at: str = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") - package_type: str = Field() - package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() - registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = Field() - updated_at: str = Field() - - -class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): - """WebhookPackageUpdatedPropPackagePropRegistry""" - - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() - - -model_rebuild(WebhookPackageUpdatedPropPackage) -model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) -model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0428 import WebhooksMembership + + +class WebhookOrganizationRenamed(GitHubModel): + """organization renamed event""" + + action: Literal["renamed"] = Field() + changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: Missing[WebhooksMembership] = Field( + default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookOrganizationRenamedPropChanges(GitHubModel): + """WebhookOrganizationRenamedPropChanges""" + + login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + + +class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookOrganizationRenamed) +model_rebuild(WebhookOrganizationRenamedPropChanges) +model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) __all__ = ( - "WebhookPackageUpdatedPropPackage", - "WebhookPackageUpdatedPropPackagePropOwner", - "WebhookPackageUpdatedPropPackagePropRegistry", + "WebhookOrganizationRenamed", + "WebhookOrganizationRenamedPropChanges", + "WebhookOrganizationRenamedPropChangesPropLogin", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0619.py b/githubkit/versions/v2022_11_28/models/group_0619.py index 446659477..2c926e7e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0619.py +++ b/githubkit/versions/v2022_11_28/models/group_0619.py @@ -9,177 +9,52 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0613 import WebhookRubygemsMetadata - - -class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None - ] = Field(title="User") - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - list[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( - Field(default=UNSET) - ) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: str = Field() - size: int = Field() - state: str = Field() - updated_at: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + +class WebhookRubygemsMetadata(GitHubModel): + """Ruby Gems metadata""" + name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) + description: Missing[str] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) + platform: Missing[str] = Field(default=UNSET) + metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) + repo: Missing[str] = Field(default=UNSET) + dependencies: Missing[list[WebhookRubygemsMetadataPropDependenciesItems]] = Field( + default=UNSET + ) + commit_oid: Missing[str] = Field(default=UNSET) + + +class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: Missing[str] = Field(default=UNSET) + + +class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): + """WebhookRubygemsMetadataPropMetadata""" + + +class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): + """WebhookRubygemsMetadataPropDependenciesItems""" + + +model_rebuild(WebhookRubygemsMetadata) +model_rebuild(WebhookRubygemsMetadataPropVersionInfo) +model_rebuild(WebhookRubygemsMetadataPropMetadata) +model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersion", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", + "WebhookRubygemsMetadata", + "WebhookRubygemsMetadataPropDependenciesItems", + "WebhookRubygemsMetadataPropMetadata", + "WebhookRubygemsMetadataPropVersionInfo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0620.py b/githubkit/versions/v2022_11_28/models/group_0620.py index 3427a4122..e1b877b4f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0620.py +++ b/githubkit/versions/v2022_11_28/models/group_0620.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,25 +17,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0621 import WebhookPackagePublishedPropPackage -class WebhookPageBuild(GitHubModel): - """page_build event""" +class WebhookPackagePublished(GitHubModel): + """package published event""" - build: WebhookPageBuildPropBuild = Field( - description="The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself." - ) + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - id: int = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -46,71 +44,17 @@ class WebhookPageBuild(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + package: WebhookPackagePublishedPropPackage = Field( + description="Information about the package." + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPageBuildPropBuild(GitHubModel): - """WebhookPageBuildPropBuild - - The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- - github-pages-builds) itself. - """ - - commit: Union[str, None] = Field() - created_at: str = Field() - duration: int = Field() - error: WebhookPageBuildPropBuildPropError = Field() - pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") - status: str = Field() - updated_at: str = Field() - url: str = Field() - - -class WebhookPageBuildPropBuildPropError(GitHubModel): - """WebhookPageBuildPropBuildPropError""" - - message: Union[str, None] = Field() - - -class WebhookPageBuildPropBuildPropPusher(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookPageBuild) -model_rebuild(WebhookPageBuildPropBuild) -model_rebuild(WebhookPageBuildPropBuildPropError) -model_rebuild(WebhookPageBuildPropBuildPropPusher) +model_rebuild(WebhookPackagePublished) -__all__ = ( - "WebhookPageBuild", - "WebhookPageBuildPropBuild", - "WebhookPageBuildPropBuildPropError", - "WebhookPageBuildPropBuildPropPusher", -) +__all__ = ("WebhookPackagePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0621.py b/githubkit/versions/v2022_11_28/models/group_0621.py index 8d932c834..2e7154abb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0621.py +++ b/githubkit/versions/v2022_11_28/models/group_0621.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,37 +17,76 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0423 import PersonalAccessTokenRequest +from .group_0622 import WebhookPackagePublishedPropPackagePropPackageVersion -class WebhookPersonalAccessTokenRequestApproved(GitHubModel): - """personal_access_token_request approved event""" +class WebhookPackagePublishedPropPackage(GitHubModel): + """WebhookPackagePublishedPropPackage - action: Literal["approved"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + Information about the package. + """ + + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( + title="User" ) + package_type: str = Field() + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersion, None + ] = Field() + registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() + updated_at: Union[str, None] = Field() + + +class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): + """WebhookPackagePublishedPropPackagePropRegistry""" + + about_url: str = Field() + name: str = Field() + type: str = Field() + url: str = Field() + vendor: str = Field() -model_rebuild(WebhookPersonalAccessTokenRequestApproved) +model_rebuild(WebhookPackagePublishedPropPackage) +model_rebuild(WebhookPackagePublishedPropPackagePropOwner) +model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) -__all__ = ("WebhookPersonalAccessTokenRequestApproved",) +__all__ = ( + "WebhookPackagePublishedPropPackage", + "WebhookPackagePublishedPropPackagePropOwner", + "WebhookPackagePublishedPropPackagePropRegistry", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0622.py b/githubkit/versions/v2022_11_28/models/group_0622.py index 623c0e746..cb31848e9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0622.py +++ b/githubkit/versions/v2022_11_28/models/group_0622.py @@ -9,45 +9,564 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0423 import PersonalAccessTokenRequest - - -class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): - """personal_access_token_request cancelled event""" - - action: Literal["cancelled"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - - -model_rebuild(WebhookPersonalAccessTokenRequestCancelled) - -__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) +from .group_0619 import WebhookRubygemsMetadata + + +class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersion""" + + author: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] + ] = Field(default=UNSET, title="User") + body: Missing[ + Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] + ] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + container_metadata: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, + None, + ] + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + description: str = Field() + docker_metadata: Missing[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + npm_metadata: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + target_oid: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + version: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" + + labels: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, + None, + ] + ] = Field(default=UNSET) + manifest: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, + None, + ] + ] = Field(default=UNSET) + tag: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag + ] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab + els + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan + ifest + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" + + digest: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" + + name: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + npm_user: Missing[str] = Field(default=UNSET) + author: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, + None, + ] + ] = Field(default=UNSET) + bugs: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, + None, + ] + ] = Field(default=UNSET) + dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies + ] = Field(default=UNSET) + dev_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies + ] = Field(default=UNSET) + peer_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + ] = Field(default=UNSET) + optional_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + ] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + dist: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, + None, + ] + ] = Field(default=UNSET) + git_head: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + main: Missing[str] = Field(default=UNSET) + repository: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, + None, + ] + ] = Field(default=UNSET) + scripts: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts + ] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_version: Missing[str] = Field(default=UNSET) + npm_version: Missing[str] = Field(default=UNSET) + has_shrinkwrap: Missing[bool] = Field(default=UNSET) + maintainers: Missing[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems + ] + ] = Field(default=UNSET) + contributors: Missing[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems + ] + ] = Field(default=UNSET) + engines: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines + ] = Field(default=UNSET) + keywords: Missing[list[str]] = Field(default=UNSET) + files: Missing[list[str]] = Field(default=UNSET) + bin_: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin + ] = Field(default=UNSET, alias="bin") + man: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan + ] = Field(default=UNSET) + directories: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, + None, + ] + ] = Field(default=UNSET) + os: Missing[list[str]] = Field(default=UNSET) + cpu: Missing[list[str]] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + installation_command: Missing[str] = Field(default=UNSET) + release_id: Missing[int] = Field(default=UNSET) + commit_oid: Missing[str] = Field(default=UNSET) + published_via_actions: Missing[bool] = Field(default=UNSET) + deleted_by_id: Missing[int] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc + ies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend + encies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen + dencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD + ependencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor + y + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine + rsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut + orsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori + es + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: Union[str, None] = Field() + size: int = Field() + state: Union[str, None] = Field() + updated_at: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" + + id: Missing[Union[int, str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + bool, + str, + int, + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, + ] + ] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa + lueOneof3 + """ + + url: Missing[str] = Field(default=UNSET) + branch: Missing[str] = Field(default=UNSET) + commit: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) + +__all__ = ( + "WebhookPackagePublishedPropPackagePropPackageVersion", + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0623.py b/githubkit/versions/v2022_11_28/models/group_0623.py index 2cb316d18..4648f0b04 100644 --- a/githubkit/versions/v2022_11_28/models/group_0623.py +++ b/githubkit/versions/v2022_11_28/models/group_0623.py @@ -17,38 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0423 import PersonalAccessTokenRequest +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0624 import WebhookPackageUpdatedPropPackage -class WebhookPersonalAccessTokenRequestCreated(GitHubModel): - """personal_access_token_request created event""" +class WebhookPackageUpdated(GitHubModel): + """package updated event""" - action: Literal["created"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + package: WebhookPackageUpdatedPropPackage = Field( + description="Information about the package." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPersonalAccessTokenRequestCreated) +model_rebuild(WebhookPackageUpdated) -__all__ = ("WebhookPersonalAccessTokenRequestCreated",) +__all__ = ("WebhookPackageUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0624.py b/githubkit/versions/v2022_11_28/models/group_0624.py index 9693d92d1..24a45fe53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0624.py +++ b/githubkit/versions/v2022_11_28/models/group_0624.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,37 +17,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0423 import PersonalAccessTokenRequest - - -class WebhookPersonalAccessTokenRequestDenied(GitHubModel): - """personal_access_token_request denied event""" - - action: Literal["denied"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - - -model_rebuild(WebhookPersonalAccessTokenRequestDenied) - -__all__ = ("WebhookPersonalAccessTokenRequestDenied",) +from .group_0625 import WebhookPackageUpdatedPropPackagePropPackageVersion + + +class WebhookPackageUpdatedPropPackage(GitHubModel): + """WebhookPackageUpdatedPropPackage + + Information about the package. + """ + + created_at: str = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") + package_type: str = Field() + package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() + registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = Field() + updated_at: str = Field() + + +class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): + """WebhookPackageUpdatedPropPackagePropRegistry""" + + about_url: str = Field() + name: str = Field() + type: str = Field() + url: str = Field() + vendor: str = Field() + + +model_rebuild(WebhookPackageUpdatedPropPackage) +model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) +model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) + +__all__ = ( + "WebhookPackageUpdatedPropPackage", + "WebhookPackageUpdatedPropPackagePropOwner", + "WebhookPackageUpdatedPropPackagePropRegistry", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0625.py b/githubkit/versions/v2022_11_28/models/group_0625.py index e09d24a14..8c872c59b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0625.py +++ b/githubkit/versions/v2022_11_28/models/group_0625.py @@ -9,43 +9,177 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0626 import WebhookPingPropHook +from .group_0619 import WebhookRubygemsMetadata -class WebhookPing(GitHubModel): - """WebhookPing""" +class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - hook: Missing[WebhookPingPropHook] = Field( - default=UNSET, title="Webhook", description="The webhook that is being pinged" - ) - hook_id: Missing[int] = Field( - default=UNSET, description="The ID of the webhook that triggered the ping." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None + ] = Field(title="User") + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + list[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( + Field(default=UNSET) ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: str = Field() + size: int = Field() + state: str = Field() + updated_at: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPing) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) -__all__ = ("WebhookPing",) +__all__ = ( + "WebhookPackageUpdatedPropPackagePropPackageVersion", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0626.py b/githubkit/versions/v2022_11_28/models/group_0626.py index 93f211a6f..61494d4da 100644 --- a/githubkit/versions/v2022_11_28/models/group_0626.py +++ b/githubkit/versions/v2022_11_28/models/group_0626.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,61 +17,100 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0281 import HookResponse +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPingPropHook(GitHubModel): - """Webhook +class WebhookPageBuild(GitHubModel): + """page_build event""" - The webhook that is being pinged - """ - - active: bool = Field( - description="Determines whether the hook is actually triggered for the events it subscribes to." + build: WebhookPageBuildPropBuild = Field( + description="The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself." ) - app_id: Missing[int] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", - ) - config: WebhookPingPropHookPropConfig = Field() - created_at: datetime = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - events: list[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." - ) - id: int = Field(description="Unique identifier of the webhook.") - last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") - name: Literal["web"] = Field( - description="The type of webhook. The only valid value is 'web'." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - ping_url: Missing[str] = Field(default=UNSET) - test_url: Missing[str] = Field(default=UNSET) - type: str = Field() - updated_at: datetime = Field() - url: Missing[str] = Field(default=UNSET) - - -class WebhookPingPropHookPropConfig(GitHubModel): - """WebhookPingPropHookPropConfig""" - - content_type: Missing[str] = Field( + id: int = Field() + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - secret: Missing[str] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPageBuildPropBuild(GitHubModel): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- + github-pages-builds) itself. + """ + + commit: Union[str, None] = Field() + created_at: str = Field() + duration: int = Field() + error: WebhookPageBuildPropBuildPropError = Field() + pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") + status: str = Field() + updated_at: str = Field() + url: str = Field() + + +class WebhookPageBuildPropBuildPropError(GitHubModel): + """WebhookPageBuildPropBuildPropError""" + + message: Union[str, None] = Field() + + +class WebhookPageBuildPropBuildPropPusher(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPingPropHook) -model_rebuild(WebhookPingPropHookPropConfig) +model_rebuild(WebhookPageBuild) +model_rebuild(WebhookPageBuildPropBuild) +model_rebuild(WebhookPageBuildPropBuildPropError) +model_rebuild(WebhookPageBuildPropBuildPropPusher) __all__ = ( - "WebhookPingPropHook", - "WebhookPingPropHookPropConfig", + "WebhookPageBuild", + "WebhookPageBuildPropBuild", + "WebhookPageBuildPropBuildPropError", + "WebhookPageBuildPropBuildPropPusher", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0627.py b/githubkit/versions/v2022_11_28/models/group_0627.py index fac71cc70..3f29ea968 100644 --- a/githubkit/versions/v2022_11_28/models/group_0627.py +++ b/githubkit/versions/v2022_11_28/models/group_0627.py @@ -9,22 +9,45 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0429 import PersonalAccessTokenRequest -class WebhookPingFormEncoded(GitHubModel): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookPersonalAccessTokenRequestApproved(GitHubModel): + """personal_access_token_request approved event""" - payload: str = Field( - description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." + action: Literal["approved"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) -model_rebuild(WebhookPingFormEncoded) +model_rebuild(WebhookPersonalAccessTokenRequestApproved) -__all__ = ("WebhookPingFormEncoded",) +__all__ = ("WebhookPersonalAccessTokenRequestApproved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0628.py b/githubkit/versions/v2022_11_28/models/group_0628.py index 11991de83..6ad0cde35 100644 --- a/githubkit/versions/v2022_11_28/models/group_0628.py +++ b/githubkit/versions/v2022_11_28/models/group_0628.py @@ -17,61 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0424 import WebhooksProjectCard +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0429 import PersonalAccessTokenRequest -class WebhookProjectCardConverted(GitHubModel): - """project_card converted event""" +class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): + """personal_access_token_request cancelled event""" - action: Literal["converted"] = Field() - changes: WebhookProjectCardConvertedPropChanges = Field() + action: Literal["cancelled"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) -class WebhookProjectCardConvertedPropChanges(GitHubModel): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNote = Field() - - -class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookProjectCardConverted) -model_rebuild(WebhookProjectCardConvertedPropChanges) -model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) +model_rebuild(WebhookPersonalAccessTokenRequestCancelled) -__all__ = ( - "WebhookProjectCardConverted", - "WebhookProjectCardConvertedPropChanges", - "WebhookProjectCardConvertedPropChangesPropNote", -) +__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0629.py b/githubkit/versions/v2022_11_28/models/group_0629.py index ae6ef84c6..4584c6160 100644 --- a/githubkit/versions/v2022_11_28/models/group_0629.py +++ b/githubkit/versions/v2022_11_28/models/group_0629.py @@ -17,42 +17,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0424 import WebhooksProjectCard +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0429 import PersonalAccessTokenRequest -class WebhookProjectCardCreated(GitHubModel): - """project_card created event""" +class WebhookPersonalAccessTokenRequestCreated(GitHubModel): + """personal_access_token_request created event""" action: Literal["created"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectCardCreated) +model_rebuild(WebhookPersonalAccessTokenRequestCreated) -__all__ = ("WebhookProjectCardCreated",) +__all__ = ("WebhookPersonalAccessTokenRequestCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0630.py b/githubkit/versions/v2022_11_28/models/group_0630.py index 71df50085..7109aa461 100644 --- a/githubkit/versions/v2022_11_28/models/group_0630.py +++ b/githubkit/versions/v2022_11_28/models/group_0630.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,92 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0429 import PersonalAccessTokenRequest -class WebhookProjectCardDeleted(GitHubModel): - """project_card deleted event""" +class WebhookPersonalAccessTokenRequestDenied(GitHubModel): + """personal_access_token_request denied event""" - action: Literal["deleted"] = Field() + action: Literal["denied"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: SimpleInstallation = Field( title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardDeletedPropProjectCard(GitHubModel): - """Project Card""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: Union[int, None] = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( - title="User" - ) - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardDeleted) -model_rebuild(WebhookProjectCardDeletedPropProjectCard) -model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) +model_rebuild(WebhookPersonalAccessTokenRequestDenied) -__all__ = ( - "WebhookProjectCardDeleted", - "WebhookProjectCardDeletedPropProjectCard", - "WebhookProjectCardDeletedPropProjectCardPropCreator", -) +__all__ = ("WebhookPersonalAccessTokenRequestDenied",) diff --git a/githubkit/versions/v2022_11_28/models/group_0631.py b/githubkit/versions/v2022_11_28/models/group_0631.py index 17177db57..a4473559c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0631.py +++ b/githubkit/versions/v2022_11_28/models/group_0631.py @@ -9,69 +9,43 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0424 import WebhooksProjectCard +from .group_0003 import SimpleUser +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0632 import WebhookPingPropHook -class WebhookProjectCardEdited(GitHubModel): - """project_card edited event""" +class WebhookPing(GitHubModel): + """WebhookPing""" - action: Literal["edited"] = Field() - changes: WebhookProjectCardEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + hook: Missing[WebhookPingPropHook] = Field( + default=UNSET, title="Webhook", description="The webhook that is being pinged" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + hook_id: Missing[int] = Field( + default=UNSET, description="The ID of the webhook that triggered the ping." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhooksProjectCard = Field(title="Project Card") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardEditedPropChanges(GitHubModel): - """WebhookProjectCardEditedPropChanges""" - - note: WebhookProjectCardEditedPropChangesPropNote = Field() - - -class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): - """WebhookProjectCardEditedPropChangesPropNote""" - - from_: Union[str, None] = Field(alias="from") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -model_rebuild(WebhookProjectCardEdited) -model_rebuild(WebhookProjectCardEditedPropChanges) -model_rebuild(WebhookProjectCardEditedPropChangesPropNote) +model_rebuild(WebhookPing) -__all__ = ( - "WebhookProjectCardEdited", - "WebhookProjectCardEditedPropChanges", - "WebhookProjectCardEditedPropChangesPropNote", -) +__all__ = ("WebhookPing",) diff --git a/githubkit/versions/v2022_11_28/models/group_0632.py b/githubkit/versions/v2022_11_28/models/group_0632.py index adf055ff5..a932dbe6f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0632.py +++ b/githubkit/versions/v2022_11_28/models/group_0632.py @@ -18,111 +18,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0287 import HookResponse -class WebhookProjectCardMoved(GitHubModel): - """project_card moved event""" +class WebhookPingPropHook(GitHubModel): + """Webhook - action: Literal["moved"] = Field() - changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + The webhook that is being pinged + """ + + active: bool = Field( + description="Determines whether the hook is actually triggered for the events it subscribes to." ) - installation: Missing[SimpleInstallation] = Field( + app_id: Missing[int] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + config: WebhookPingPropHookPropConfig = Field() + created_at: datetime = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + events: list[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." ) - project_card: WebhookProjectCardMovedPropProjectCard = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + id: int = Field(description="Unique identifier of the webhook.") + last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") + name: Literal["web"] = Field( + description="The type of webhook. The only valid value is 'web'." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardMovedPropChanges(GitHubModel): - """WebhookProjectCardMovedPropChanges""" - - column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() - - -class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int = Field(alias="from") + ping_url: Missing[str] = Field(default=UNSET) + test_url: Missing[str] = Field(default=UNSET) + type: str = Field() + updated_at: datetime = Field() + url: Missing[str] = Field(default=UNSET) -class WebhookProjectCardMovedPropProjectCard(GitHubModel): - """WebhookProjectCardMovedPropProjectCard""" +class WebhookPingPropHookPropConfig(GitHubModel): + """WebhookPingPropHookPropConfig""" - after_id: Union[Union[int, None], None] = Field() - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[Union[str, None], None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMoved) -model_rebuild(WebhookProjectCardMovedPropChanges) -model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) -model_rebuild(WebhookProjectCardMovedPropProjectCard) -model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) +model_rebuild(WebhookPingPropHook) +model_rebuild(WebhookPingPropHookPropConfig) __all__ = ( - "WebhookProjectCardMoved", - "WebhookProjectCardMovedPropChanges", - "WebhookProjectCardMovedPropChangesPropColumnId", - "WebhookProjectCardMovedPropProjectCard", - "WebhookProjectCardMovedPropProjectCardMergedCreator", + "WebhookPingPropHook", + "WebhookPingPropHookPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0633.py b/githubkit/versions/v2022_11_28/models/group_0633.py index 698d7933a..fac71cc70 100644 --- a/githubkit/versions/v2022_11_28/models/group_0633.py +++ b/githubkit/versions/v2022_11_28/models/group_0633.py @@ -9,69 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): - """Project Card""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( - Field(title="User") - ) - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() +class WebhookPingFormEncoded(GitHubModel): + """WebhookPingFormEncoded -class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): - """User""" + The webhooks ping payload encoded with URL encoding. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) +model_rebuild(WebhookPingFormEncoded) -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", -) +__all__ = ("WebhookPingFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0634.py b/githubkit/versions/v2022_11_28/models/group_0634.py index 0afeec58f..86590efce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0634.py +++ b/githubkit/versions/v2022_11_28/models/group_0634.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,53 +17,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0430 import WebhooksProjectCard -class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1""" - - after_id: Union[int, None] = Field() - archived: Missing[bool] = Field(default=UNSET) - column_id: Missing[int] = Field(default=UNSET) - column_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - creator: Missing[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] - ] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - note: Missing[Union[str, None]] = Field(default=UNSET) - project_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) + +class WebhookProjectCardConverted(GitHubModel): + """project_card converted event""" + + action: Literal["converted"] = Field() + changes: WebhookProjectCardConvertedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_card: WebhooksProjectCard = Field(title="Project Card") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookProjectCardConvertedPropChanges(GitHubModel): + """WebhookProjectCardConvertedPropChanges""" + + note: WebhookProjectCardConvertedPropChangesPropNote = Field() + + +class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookProjectCardConverted) +model_rebuild(WebhookProjectCardConvertedPropChanges) +model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", + "WebhookProjectCardConverted", + "WebhookProjectCardConvertedPropChanges", + "WebhookProjectCardConvertedPropChangesPropNote", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0635.py b/githubkit/versions/v2022_11_28/models/group_0635.py index b6e3cbc72..d88181f2c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0635.py +++ b/githubkit/versions/v2022_11_28/models/group_0635.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0425 import WebhooksProject +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0430 import WebhooksProjectCard -class WebhookProjectClosed(GitHubModel): - """project closed event""" +class WebhookProjectCardCreated(GitHubModel): + """project_card created event""" - action: Literal["closed"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ class WebhookProjectClosed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") + project_card: WebhooksProjectCard = Field(title="Project Card") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -53,6 +53,6 @@ class WebhookProjectClosed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectClosed) +model_rebuild(WebhookProjectCardCreated) -__all__ = ("WebhookProjectClosed",) +__all__ = ("WebhookProjectCardCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0636.py b/githubkit/versions/v2022_11_28/models/group_0636.py index 7084a1d25..20f663134 100644 --- a/githubkit/versions/v2022_11_28/models/group_0636.py +++ b/githubkit/versions/v2022_11_28/models/group_0636.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0426 import WebhooksProjectColumn +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookProjectColumnCreated(GitHubModel): - """project_column created event""" +class WebhookProjectCardDeleted(GitHubModel): + """project_card deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,17 +44,66 @@ class WebhookProjectColumnCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookProjectCardDeletedPropProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: Union[int, None] = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( + title="User" ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectColumnCreated) +model_rebuild(WebhookProjectCardDeleted) +model_rebuild(WebhookProjectCardDeletedPropProjectCard) +model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) -__all__ = ("WebhookProjectColumnCreated",) +__all__ = ( + "WebhookProjectCardDeleted", + "WebhookProjectCardDeletedPropProjectCard", + "WebhookProjectCardDeletedPropProjectCardPropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0637.py b/githubkit/versions/v2022_11_28/models/group_0637.py index 07df30303..075fc30a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0637.py +++ b/githubkit/versions/v2022_11_28/models/group_0637.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0426 import WebhooksProjectColumn +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0430 import WebhooksProjectCard -class WebhookProjectColumnDeleted(GitHubModel): - """project_column deleted event""" +class WebhookProjectCardEdited(GitHubModel): + """project_card edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectCardEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,13 +45,33 @@ class WebhookProjectColumnDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + project_card: WebhooksProjectCard = Field(title="Project Card") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookProjectCardEditedPropChanges(GitHubModel): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNote = Field() + + +class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] = Field(alias="from") -model_rebuild(WebhookProjectColumnDeleted) +model_rebuild(WebhookProjectCardEdited) +model_rebuild(WebhookProjectCardEditedPropChanges) +model_rebuild(WebhookProjectCardEditedPropChangesPropNote) -__all__ = ("WebhookProjectColumnDeleted",) +__all__ = ( + "WebhookProjectCardEdited", + "WebhookProjectCardEditedPropChanges", + "WebhookProjectCardEditedPropChangesPropNote", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0638.py b/githubkit/versions/v2022_11_28/models/group_0638.py index 78d84e345..28d379c2e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0638.py +++ b/githubkit/versions/v2022_11_28/models/group_0638.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,19 +18,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0426 import WebhooksProjectColumn +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookProjectColumnEdited(GitHubModel): - """project_column edited event""" +class WebhookProjectCardMoved(GitHubModel): + """project_card moved event""" - action: Literal["edited"] = Field() - changes: WebhookProjectColumnEditedPropChanges = Field() + action: Literal["moved"] = Field() + changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,35 +45,84 @@ class WebhookProjectColumnEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") + project_card: WebhookProjectCardMovedPropProjectCard = Field() repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookProjectCardMovedPropChanges(GitHubModel): + """WebhookProjectCardMovedPropChanges""" + + column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() + + +class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): + """WebhookProjectCardMovedPropChangesPropColumnId""" + + from_: int = Field(alias="from") + + +class WebhookProjectCardMovedPropProjectCard(GitHubModel): + """WebhookProjectCardMovedPropProjectCard""" + + after_id: Union[Union[int, None], None] = Field() + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[Union[str, None], None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookProjectColumnEditedPropChanges(GitHubModel): - """WebhookProjectColumnEditedPropChanges""" - - name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookProjectColumnEdited) -model_rebuild(WebhookProjectColumnEditedPropChanges) -model_rebuild(WebhookProjectColumnEditedPropChangesPropName) +model_rebuild(WebhookProjectCardMoved) +model_rebuild(WebhookProjectCardMovedPropChanges) +model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) +model_rebuild(WebhookProjectCardMovedPropProjectCard) +model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) __all__ = ( - "WebhookProjectColumnEdited", - "WebhookProjectColumnEditedPropChanges", - "WebhookProjectColumnEditedPropChangesPropName", + "WebhookProjectCardMoved", + "WebhookProjectCardMovedPropChanges", + "WebhookProjectCardMovedPropChangesPropColumnId", + "WebhookProjectCardMovedPropProjectCard", + "WebhookProjectCardMovedPropProjectCardMergedCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0639.py b/githubkit/versions/v2022_11_28/models/group_0639.py index 3603f7a2e..698d7933a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0639.py +++ b/githubkit/versions/v2022_11_28/models/group_0639.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,42 +18,60 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0426 import WebhooksProjectColumn +class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): + """Project Card""" -class WebhookProjectColumnMoved(GitHubModel): - """project_column moved event""" - - action: Literal["moved"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( + Field(title="User") ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectColumnMoved) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) -__all__ = ("WebhookProjectColumnMoved",) +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof0", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0640.py b/githubkit/versions/v2022_11_28/models/group_0640.py index 2720d0bee..0afeec58f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0640.py +++ b/githubkit/versions/v2022_11_28/models/group_0640.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,42 +17,53 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0425 import WebhooksProject - - -class WebhookProjectCreated(GitHubModel): - """project created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project: WebhooksProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookProjectCreated) - -__all__ = ("WebhookProjectCreated",) + +class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1""" + + after_id: Union[int, None] = Field() + archived: Missing[bool] = Field(default=UNSET) + column_id: Missing[int] = Field(default=UNSET) + column_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + creator: Missing[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] + ] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + note: Missing[Union[str, None]] = Field(default=UNSET) + project_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof1", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0641.py b/githubkit/versions/v2022_11_28/models/group_0641.py index 49fd82017..ea01d4a69 100644 --- a/githubkit/versions/v2022_11_28/models/group_0641.py +++ b/githubkit/versions/v2022_11_28/models/group_0641.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0425 import WebhooksProject +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0431 import WebhooksProject -class WebhookProjectDeleted(GitHubModel): - """project deleted event""" +class WebhookProjectClosed(GitHubModel): + """project closed event""" - action: Literal["deleted"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,12 +45,14 @@ class WebhookProjectDeleted(GitHubModel): description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) project: WebhooksProject = Field(title="Project") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectDeleted) +model_rebuild(WebhookProjectClosed) -__all__ = ("WebhookProjectDeleted",) +__all__ = ("WebhookProjectClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0642.py b/githubkit/versions/v2022_11_28/models/group_0642.py index 7c2bb81c5..dba1d35cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0642.py +++ b/githubkit/versions/v2022_11_28/models/group_0642.py @@ -17,22 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0425 import WebhooksProject +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0432 import WebhooksProjectColumn -class WebhookProjectEdited(GitHubModel): - """project edited event""" +class WebhookProjectColumnCreated(GitHubModel): + """project_column created event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectEditedPropChanges] = Field( - default=UNSET, - description="The changes to the project if the action was `edited`.", - ) + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,7 +44,7 @@ class WebhookProjectEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") + project_column: WebhooksProjectColumn = Field(title="Project Column") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -59,42 +55,6 @@ class WebhookProjectEdited(GitHubModel): ) -class WebhookProjectEditedPropChanges(GitHubModel): - """WebhookProjectEditedPropChanges - - The changes to the project if the action was `edited`. - """ - - body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectEditedPropChangesPropBody(GitHubModel): - """WebhookProjectEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookProjectEditedPropChangesPropName(GitHubModel): - """WebhookProjectEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The changes to the project if the action was `edited`.", - ) - - -model_rebuild(WebhookProjectEdited) -model_rebuild(WebhookProjectEditedPropChanges) -model_rebuild(WebhookProjectEditedPropChangesPropBody) -model_rebuild(WebhookProjectEditedPropChangesPropName) +model_rebuild(WebhookProjectColumnCreated) -__all__ = ( - "WebhookProjectEdited", - "WebhookProjectEditedPropChanges", - "WebhookProjectEditedPropChangesPropBody", - "WebhookProjectEditedPropChangesPropName", -) +__all__ = ("WebhookProjectColumnCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0643.py b/githubkit/versions/v2022_11_28/models/group_0643.py index 7576afc05..95d2be600 100644 --- a/githubkit/versions/v2022_11_28/models/group_0643.py +++ b/githubkit/versions/v2022_11_28/models/group_0643.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0425 import WebhooksProject +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0432 import WebhooksProjectColumn -class WebhookProjectReopened(GitHubModel): - """project reopened event""" +class WebhookProjectColumnDeleted(GitHubModel): + """project_column deleted event""" - action: Literal["reopened"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,15 +44,13 @@ class WebhookProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectReopened) +model_rebuild(WebhookProjectColumnDeleted) -__all__ = ("WebhookProjectReopened",) +__all__ = ("WebhookProjectColumnDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0644.py b/githubkit/versions/v2022_11_28/models/group_0644.py index 49a27c43d..4782c5966 100644 --- a/githubkit/versions/v2022_11_28/models/group_0644.py +++ b/githubkit/versions/v2022_11_28/models/group_0644.py @@ -17,31 +17,63 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0427 import ProjectsV2 +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0432 import WebhooksProjectColumn -class WebhookProjectsV2ProjectClosed(GitHubModel): - """Projects v2 Project Closed Event""" +class WebhookProjectColumnEdited(GitHubModel): + """project_column edited event""" - action: Literal["closed"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectColumnEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectClosed) +class WebhookProjectColumnEditedPropChanges(GitHubModel): + """WebhookProjectColumnEditedPropChanges""" + + name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookProjectColumnEdited) +model_rebuild(WebhookProjectColumnEditedPropChanges) +model_rebuild(WebhookProjectColumnEditedPropChangesPropName) -__all__ = ("WebhookProjectsV2ProjectClosed",) +__all__ = ( + "WebhookProjectColumnEdited", + "WebhookProjectColumnEditedPropChanges", + "WebhookProjectColumnEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0645.py b/githubkit/versions/v2022_11_28/models/group_0645.py index cab36dc90..3b6952534 100644 --- a/githubkit/versions/v2022_11_28/models/group_0645.py +++ b/githubkit/versions/v2022_11_28/models/group_0645.py @@ -17,34 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0427 import ProjectsV2 +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0432 import WebhooksProjectColumn -class WebhookProjectsV2ProjectCreated(GitHubModel): - """WebhookProjectsV2ProjectCreated +class WebhookProjectColumnMoved(GitHubModel): + """project_column moved event""" - A project was created - """ - - action: Literal["created"] = Field() + action: Literal["moved"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectCreated) +model_rebuild(WebhookProjectColumnMoved) -__all__ = ("WebhookProjectsV2ProjectCreated",) +__all__ = ("WebhookProjectColumnMoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0646.py b/githubkit/versions/v2022_11_28/models/group_0646.py index b10f47b62..e56dc4f51 100644 --- a/githubkit/versions/v2022_11_28/models/group_0646.py +++ b/githubkit/versions/v2022_11_28/models/group_0646.py @@ -17,31 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0427 import ProjectsV2 +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0431 import WebhooksProject -class WebhookProjectsV2ProjectDeleted(GitHubModel): - """Projects v2 Project Deleted Event""" +class WebhookProjectCreated(GitHubModel): + """project created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectDeleted) +model_rebuild(WebhookProjectCreated) -__all__ = ("WebhookProjectsV2ProjectDeleted",) +__all__ = ("WebhookProjectCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0647.py b/githubkit/versions/v2022_11_28/models/group_0647.py index a7bfecf87..7e58a0250 100644 --- a/githubkit/versions/v2022_11_28/models/group_0647.py +++ b/githubkit/versions/v2022_11_28/models/group_0647.py @@ -17,89 +17,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0427 import ProjectsV2 +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0431 import WebhooksProject -class WebhookProjectsV2ProjectEdited(GitHubModel): - """Projects v2 Project Edited Event""" +class WebhookProjectDeleted(GitHubModel): + """project deleted event""" - action: Literal["edited"] = Field() - changes: WebhookProjectsV2ProjectEditedPropChanges = Field() + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project: WebhooksProject = Field(title="Project") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChanges""" - - description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( - Field(default=UNSET) - ) - public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( - default=UNSET - ) - short_description: Missing[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescription - ] = Field(default=UNSET) - title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( - default=UNSET - ) - - -class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - - from_: Missing[bool] = Field(default=UNSET, alias="from") - to: Missing[bool] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectsV2ProjectEdited) -model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) +model_rebuild(WebhookProjectDeleted) -__all__ = ( - "WebhookProjectsV2ProjectEdited", - "WebhookProjectsV2ProjectEditedPropChanges", - "WebhookProjectsV2ProjectEditedPropChangesPropDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropPublic", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropTitle", -) +__all__ = ("WebhookProjectDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0648.py b/githubkit/versions/v2022_11_28/models/group_0648.py index 4ab2211ae..7ad648b25 100644 --- a/githubkit/versions/v2022_11_28/models/group_0648.py +++ b/githubkit/versions/v2022_11_28/models/group_0648.py @@ -17,33 +17,84 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0428 import WebhooksProjectChanges -from .group_0429 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0431 import WebhooksProject -class WebhookProjectsV2ItemArchived(GitHubModel): - """Projects v2 Item Archived Event""" +class WebhookProjectEdited(GitHubModel): + """project edited event""" - action: Literal["archived"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookProjectEditedPropChanges] = Field( + default=UNSET, + description="The changes to the project if the action was `edited`.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookProjectEditedPropChanges(GitHubModel): + """WebhookProjectEditedPropChanges + + The changes to the project if the action was `edited`. + """ + + body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookProjectEditedPropChangesPropBody(GitHubModel): + """WebhookProjectEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookProjectEditedPropChangesPropName(GitHubModel): + """WebhookProjectEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The changes to the project if the action was `edited`.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemArchived) +model_rebuild(WebhookProjectEdited) +model_rebuild(WebhookProjectEditedPropChanges) +model_rebuild(WebhookProjectEditedPropChangesPropBody) +model_rebuild(WebhookProjectEditedPropChangesPropName) -__all__ = ("WebhookProjectsV2ItemArchived",) +__all__ = ( + "WebhookProjectEdited", + "WebhookProjectEditedPropChanges", + "WebhookProjectEditedPropChangesPropBody", + "WebhookProjectEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0649.py b/githubkit/versions/v2022_11_28/models/group_0649.py index d300568a6..5de136dba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0649.py +++ b/githubkit/versions/v2022_11_28/models/group_0649.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,53 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0429 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0431 import WebhooksProject -class WebhookProjectsV2ItemConverted(GitHubModel): - """Projects v2 Item Converted Event""" +class WebhookProjectReopened(GitHubModel): + """project reopened event""" - action: Literal["converted"] = Field() - changes: WebhookProjectsV2ItemConvertedPropChanges = Field() + action: Literal["reopened"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChanges""" - - content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( - Field(default=UNSET) - ) - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemConverted) -model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) -model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) +model_rebuild(WebhookProjectReopened) -__all__ = ( - "WebhookProjectsV2ItemConverted", - "WebhookProjectsV2ItemConvertedPropChanges", - "WebhookProjectsV2ItemConvertedPropChangesPropContentType", -) +__all__ = ("WebhookProjectReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0650.py b/githubkit/versions/v2022_11_28/models/group_0650.py index d91c4c663..29cfe68d1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0650.py +++ b/githubkit/versions/v2022_11_28/models/group_0650.py @@ -17,16 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0429 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0433 import ProjectsV2 -class WebhookProjectsV2ItemCreated(GitHubModel): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ProjectClosed(GitHubModel): + """Projects v2 Project Closed Event""" - action: Literal["created"] = Field() + action: Literal["closed"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,12 +36,12 @@ class WebhookProjectsV2ItemCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemCreated) +model_rebuild(WebhookProjectsV2ProjectClosed) -__all__ = ("WebhookProjectsV2ItemCreated",) +__all__ = ("WebhookProjectsV2ProjectClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0651.py b/githubkit/versions/v2022_11_28/models/group_0651.py index 560a42904..d71bd705a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0651.py +++ b/githubkit/versions/v2022_11_28/models/group_0651.py @@ -17,16 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0429 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0433 import ProjectsV2 -class WebhookProjectsV2ItemDeleted(GitHubModel): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ProjectCreated(GitHubModel): + """WebhookProjectsV2ProjectCreated - action: Literal["deleted"] = Field() + A project was created + """ + + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,12 +39,12 @@ class WebhookProjectsV2ItemDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemDeleted) +model_rebuild(WebhookProjectsV2ProjectCreated) -__all__ = ("WebhookProjectsV2ItemDeleted",) +__all__ = ("WebhookProjectsV2ProjectCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0652.py b/githubkit/versions/v2022_11_28/models/group_0652.py index 8bfb097c0..62aa84bea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0652.py +++ b/githubkit/versions/v2022_11_28/models/group_0652.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,25 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0429 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0433 import ProjectsV2 -class WebhookProjectsV2ItemEdited(GitHubModel): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ProjectDeleted(GitHubModel): + """Projects v2 Project Deleted Event""" - action: Literal["edited"] = Field() - changes: Missing[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0, - WebhookProjectsV2ItemEditedPropChangesOneof1, - ] - ] = Field( - default=UNSET, - description="The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field.", - ) + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -45,84 +36,12 @@ class WebhookProjectsV2ItemEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() - - -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: Missing[str] = Field(default=UNSET) - field_type: Missing[str] = Field(default=UNSET) - field_name: Missing[str] = Field(default=UNSET) - project_number: Missing[int] = Field(default=UNSET) - from_: Missing[ - Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] - ] = Field(default=UNSET, alias="from") - to: Missing[ - Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] - ] = Field(default=UNSET) - - -class ProjectsV2SingleSelectOption(GitHubModel): - """Projects v2 Single Select Option - - An option for a single select field - """ - - id: str = Field() - name: str = Field() - color: Missing[Union[str, None]] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - - -class ProjectsV2IterationSetting(GitHubModel): - """Projects v2 Iteration Setting - - An iteration setting for an iteration field - """ - - id: str = Field() - title: str = Field() - duration: Missing[Union[float, None]] = Field(default=UNSET) - start_date: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" - - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() - - -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemEdited) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) -model_rebuild(ProjectsV2SingleSelectOption) -model_rebuild(ProjectsV2IterationSetting) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) +model_rebuild(WebhookProjectsV2ProjectDeleted) -__all__ = ( - "ProjectsV2IterationSetting", - "ProjectsV2SingleSelectOption", - "WebhookProjectsV2ItemEdited", - "WebhookProjectsV2ItemEditedPropChangesOneof0", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", - "WebhookProjectsV2ItemEditedPropChangesOneof1", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", -) +__all__ = ("WebhookProjectsV2ProjectDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0653.py b/githubkit/versions/v2022_11_28/models/group_0653.py index b73d860b7..0aba518eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0653.py +++ b/githubkit/versions/v2022_11_28/models/group_0653.py @@ -17,17 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0429 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0433 import ProjectsV2 -class WebhookProjectsV2ItemReordered(GitHubModel): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ProjectEdited(GitHubModel): + """Projects v2 Project Edited Event""" - action: Literal["reordered"] = Field() - changes: WebhookProjectsV2ItemReorderedPropChanges = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectsV2ProjectEditedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -37,35 +37,69 @@ class WebhookProjectsV2ItemReordered(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): - """WebhookProjectsV2ItemReorderedPropChanges""" +class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChanges""" - previous_projects_v2_item_node_id: Missing[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId + description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( + Field(default=UNSET) + ) + public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( + default=UNSET + ) + short_description: Missing[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescription ] = Field(default=UNSET) + title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( + default=UNSET + ) + + +class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" + + from_: Missing[bool] = Field(default=UNSET, alias="from") + to: Missing[bool] = Field(default=UNSET) -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( - GitHubModel -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookProjectsV2ItemReordered) -model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) -model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) +class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ProjectEdited) +model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) __all__ = ( - "WebhookProjectsV2ItemReordered", - "WebhookProjectsV2ItemReorderedPropChanges", - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", + "WebhookProjectsV2ProjectEdited", + "WebhookProjectsV2ProjectEditedPropChanges", + "WebhookProjectsV2ProjectEditedPropChangesPropDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropPublic", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0654.py b/githubkit/versions/v2022_11_28/models/group_0654.py index 22a5f44f2..95499dfc3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0654.py +++ b/githubkit/versions/v2022_11_28/models/group_0654.py @@ -17,17 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0428 import WebhooksProjectChanges -from .group_0429 import ProjectsV2Item +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0434 import WebhooksProjectChanges +from .group_0435 import ProjectsV2Item -class WebhookProjectsV2ItemRestored(GitHubModel): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ItemArchived(GitHubModel): + """Projects v2 Item Archived Event""" - action: Literal["restored"] = Field() + action: Literal["archived"] = Field() changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -44,6 +44,6 @@ class WebhookProjectsV2ItemRestored(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemRestored) +model_rebuild(WebhookProjectsV2ItemArchived) -__all__ = ("WebhookProjectsV2ItemRestored",) +__all__ = ("WebhookProjectsV2ItemArchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0655.py b/githubkit/versions/v2022_11_28/models/group_0655.py index d1bfbd494..7dee5b8de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0655.py +++ b/githubkit/versions/v2022_11_28/models/group_0655.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,16 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0427 import ProjectsV2 +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0435 import ProjectsV2Item -class WebhookProjectsV2ProjectReopened(GitHubModel): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2ItemConverted(GitHubModel): + """Projects v2 Item Converted Event""" - action: Literal["reopened"] = Field() + action: Literal["converted"] = Field() + changes: WebhookProjectsV2ItemConvertedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,12 +37,33 @@ class WebhookProjectsV2ProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectReopened) +class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChanges""" -__all__ = ("WebhookProjectsV2ProjectReopened",) + content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( + Field(default=UNSET) + ) + + +class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemConverted) +model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) +model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) + +__all__ = ( + "WebhookProjectsV2ItemConverted", + "WebhookProjectsV2ItemConvertedPropChanges", + "WebhookProjectsV2ItemConvertedPropChangesPropContentType", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0656.py b/githubkit/versions/v2022_11_28/models/group_0656.py index 3dfd667ae..c64de9495 100644 --- a/githubkit/versions/v2022_11_28/models/group_0656.py +++ b/githubkit/versions/v2022_11_28/models/group_0656.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0430 import ProjectsV2StatusUpdate +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0435 import ProjectsV2Item -class WebhookProjectsV2StatusUpdateCreated(GitHubModel): - """Projects v2 Status Update Created Event""" +class WebhookProjectsV2ItemCreated(GitHubModel): + """Projects v2 Item Created Event""" action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( @@ -36,13 +36,12 @@ class WebhookProjectsV2StatusUpdateCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2StatusUpdateCreated) +model_rebuild(WebhookProjectsV2ItemCreated) -__all__ = ("WebhookProjectsV2StatusUpdateCreated",) +__all__ = ("WebhookProjectsV2ItemCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0657.py b/githubkit/versions/v2022_11_28/models/group_0657.py index d2f79b195..4ea008484 100644 --- a/githubkit/versions/v2022_11_28/models/group_0657.py +++ b/githubkit/versions/v2022_11_28/models/group_0657.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0430 import ProjectsV2StatusUpdate +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0435 import ProjectsV2Item -class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): - """Projects v2 Status Update Deleted Event""" +class WebhookProjectsV2ItemDeleted(GitHubModel): + """Projects v2 Item Deleted Event""" action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( @@ -36,13 +36,12 @@ class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2StatusUpdateDeleted) +model_rebuild(WebhookProjectsV2ItemDeleted) -__all__ = ("WebhookProjectsV2StatusUpdateDeleted",) +__all__ = ("WebhookProjectsV2ItemDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0658.py b/githubkit/versions/v2022_11_28/models/group_0658.py index e89365e35..3a700f880 100644 --- a/githubkit/versions/v2022_11_28/models/group_0658.py +++ b/githubkit/versions/v2022_11_28/models/group_0658.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import date from typing import Literal, Union from pydantic import Field @@ -18,18 +17,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0430 import ProjectsV2StatusUpdate +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0435 import ProjectsV2Item -class WebhookProjectsV2StatusUpdateEdited(GitHubModel): - """Projects v2 Status Update Edited Event""" +class WebhookProjectsV2ItemEdited(GitHubModel): + """Projects v2 Item Edited Event""" action: Literal["edited"] = Field() - changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( - default=UNSET + changes: Missing[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0, + WebhookProjectsV2ItemEditedPropChangesOneof1, + ] + ] = Field( + default=UNSET, + description="The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -40,74 +45,84 @@ class WebhookProjectsV2StatusUpdateEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2StatusUpdateEditedPropChanges(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChanges""" - - body: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropBody] = Field( - default=UNSET - ) - status: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus] = Field( - default=UNSET - ) - start_date: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate] = ( - Field(default=UNSET) - ) - target_date: Missing[ - WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate - ] = Field(default=UNSET) - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropBody(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" +class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" + field_node_id: Missing[str] = Field(default=UNSET) + field_type: Missing[str] = Field(default=UNSET) + field_name: Missing[str] = Field(default=UNSET) + project_number: Missing[int] = Field(default=UNSET) from_: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] ] = Field(default=UNSET, alias="from") to: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] ] = Field(default=UNSET) -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" +class ProjectsV2SingleSelectOption(GitHubModel): + """Projects v2 Single Select Option - from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[date, None]] = Field(default=UNSET) + An option for a single select field + """ + id: str = Field() + name: str = Field() + color: Missing[Union[str, None]] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" - from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[date, None]] = Field(default=UNSET) +class ProjectsV2IterationSetting(GitHubModel): + """Projects v2 Iteration Setting + + An iteration setting for an iteration field + """ + + id: str = Field() + title: str = Field() + duration: Missing[Union[float, None]] = Field(default=UNSET) + start_date: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" + + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() + + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookProjectsV2StatusUpdateEdited) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChanges) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropBody) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate) +model_rebuild(WebhookProjectsV2ItemEdited) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) +model_rebuild(ProjectsV2SingleSelectOption) +model_rebuild(ProjectsV2IterationSetting) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) __all__ = ( - "WebhookProjectsV2StatusUpdateEdited", - "WebhookProjectsV2StatusUpdateEditedPropChanges", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", + "ProjectsV2IterationSetting", + "ProjectsV2SingleSelectOption", + "WebhookProjectsV2ItemEdited", + "WebhookProjectsV2ItemEditedPropChangesOneof0", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "WebhookProjectsV2ItemEditedPropChangesOneof1", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0659.py b/githubkit/versions/v2022_11_28/models/group_0659.py index 57e419c91..a78a63b90 100644 --- a/githubkit/versions/v2022_11_28/models/group_0659.py +++ b/githubkit/versions/v2022_11_28/models/group_0659.py @@ -9,44 +9,63 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0435 import ProjectsV2Item -class WebhookPublic(GitHubModel): - """public event""" +class WebhookProjectsV2ItemReordered(GitHubModel): + """Projects v2 Item Reordered Event""" - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["reordered"] = Field() + changes: WebhookProjectsV2ItemReorderedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPublic) +class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): + """WebhookProjectsV2ItemReorderedPropChanges""" + + previous_projects_v2_item_node_id: Missing[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId + ] = Field(default=UNSET) + + +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( + GitHubModel +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemReordered) +model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) +model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) -__all__ = ("WebhookPublic",) +__all__ = ( + "WebhookProjectsV2ItemReordered", + "WebhookProjectsV2ItemReorderedPropChanges", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0660.py b/githubkit/versions/v2022_11_28/models/group_0660.py index 3f51ae827..10aa8344a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0660.py +++ b/githubkit/versions/v2022_11_28/models/group_0660.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,1160 +17,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0404 import WebhooksUser +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0434 import WebhooksProjectChanges +from .group_0435 import ProjectsV2Item -class WebhookPullRequestAssigned(GitHubModel): - """pull_request assigned event""" +class WebhookProjectsV2ItemRestored(GitHubModel): + """Projects v2 Item Restored Event""" - action: Literal["assigned"] = Field() - assignee: Union[WebhooksUser, None] = Field(title="User") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["restored"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAssignedPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAssignedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: list[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAssigned) -model_rebuild(WebhookPullRequestAssignedPropPullRequest) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2ItemRestored) -__all__ = ( - "WebhookPullRequestAssigned", - "WebhookPullRequestAssignedPropPullRequest", - "WebhookPullRequestAssignedPropPullRequestPropAssignee", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAssignedPropPullRequestPropBase", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", - "WebhookPullRequestAssignedPropPullRequestPropHead", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", - "WebhookPullRequestAssignedPropPullRequestPropLinks", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAssignedPropPullRequestPropMergedBy", - "WebhookPullRequestAssignedPropPullRequestPropMilestone", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestAssignedPropPullRequestPropUser", -) +__all__ = ("WebhookProjectsV2ItemRestored",) diff --git a/githubkit/versions/v2022_11_28/models/group_0661.py b/githubkit/versions/v2022_11_28/models/group_0661.py index dea2e7ab9..f7c7dfc1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0661.py +++ b/githubkit/versions/v2022_11_28/models/group_0661.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,1213 +17,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0433 import ProjectsV2 -class WebhookPullRequestAutoMergeDisabled(GitHubModel): - """pull_request auto_merge_disabled event""" +class WebhookProjectsV2ProjectReopened(GitHubModel): + """Projects v2 Project Reopened Event""" - action: Literal["auto_merge_disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["reopened"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( - title="Pull Request" - ) - reason: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAutoMergeDisabled) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2ProjectReopened) -__all__ = ( - "WebhookPullRequestAutoMergeDisabled", - "WebhookPullRequestAutoMergeDisabledPropPullRequest", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", -) +__all__ = ("WebhookProjectsV2ProjectReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0662.py b/githubkit/versions/v2022_11_28/models/group_0662.py index ac58fdb4f..cb16ffd31 100644 --- a/githubkit/versions/v2022_11_28/models/group_0662.py +++ b/githubkit/versions/v2022_11_28/models/group_0662.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,1205 +17,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0436 import ProjectsV2StatusUpdate -class WebhookPullRequestAutoMergeEnabled(GitHubModel): - """pull_request auto_merge_enabled event""" +class WebhookProjectsV2StatusUpdateCreated(GitHubModel): + """Projects v2 Status Update Created Event""" - action: Literal["auto_merge_enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( - title="Pull Request" - ) - reason: Missing[str] = Field(default=UNSET) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAutoMergeEnabled) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2StatusUpdateCreated) -__all__ = ( - "WebhookPullRequestAutoMergeEnabled", - "WebhookPullRequestAutoMergeEnabledPropPullRequest", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", -) +__all__ = ("WebhookProjectsV2StatusUpdateCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0663.py b/githubkit/versions/v2022_11_28/models/group_0663.py index 11fc0463a..47dae8c60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0663.py +++ b/githubkit/versions/v2022_11_28/models/group_0663.py @@ -17,42 +17,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0431 import PullRequestWebhook +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0436 import ProjectsV2StatusUpdate -class WebhookPullRequestClosed(GitHubModel): - """pull_request closed event""" +class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): + """Projects v2 Status Update Deleted Event""" - action: Literal["closed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestClosed) +model_rebuild(WebhookProjectsV2StatusUpdateDeleted) -__all__ = ("WebhookPullRequestClosed",) +__all__ = ("WebhookProjectsV2StatusUpdateDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0664.py b/githubkit/versions/v2022_11_28/models/group_0664.py index aaff488b1..f03c2197e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0664.py +++ b/githubkit/versions/v2022_11_28/models/group_0664.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Literal, Union from pydantic import Field @@ -17,42 +18,96 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0431 import PullRequestWebhook +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0436 import ProjectsV2StatusUpdate -class WebhookPullRequestConvertedToDraft(GitHubModel): - """pull_request converted_to_draft event""" +class WebhookProjectsV2StatusUpdateEdited(GitHubModel): + """Projects v2 Status Update Edited Event""" - action: Literal["converted_to_draft"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["edited"] = Field() + changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( + default=UNSET ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestConvertedToDraft) +class WebhookProjectsV2StatusUpdateEditedPropChanges(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChanges""" + + body: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropBody] = Field( + default=UNSET + ) + status: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus] = Field( + default=UNSET + ) + start_date: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate] = ( + Field(default=UNSET) + ) + target_date: Missing[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate + ] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropBody(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" + + from_: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET, alias="from") + to: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" + + from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[date, None]] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" + + from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[date, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2StatusUpdateEdited) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChanges) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropBody) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate) -__all__ = ("WebhookPullRequestConvertedToDraft",) +__all__ = ( + "WebhookProjectsV2StatusUpdateEdited", + "WebhookProjectsV2StatusUpdateEditedPropChanges", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0665.py b/githubkit/versions/v2022_11_28/models/group_0665.py index 6c082baba..81e8c92f5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0665.py +++ b/githubkit/versions/v2022_11_28/models/group_0665.py @@ -9,52 +9,44 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0038 import Milestone -from .group_0393 import EnterpriseWebhooks -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0433 import WebhooksPullRequest5 +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPullRequestDemilestoned(GitHubModel): - """pull_request demilestoned event""" +class WebhookPublic(GitHubModel): + """public event""" - action: Literal["demilestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - milestone: Missing[Milestone] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhooksPullRequest5 = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestDemilestoned) +model_rebuild(WebhookPublic) -__all__ = ("WebhookPullRequestDemilestoned",) +__all__ = ("WebhookPublic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0666.py b/githubkit/versions/v2022_11_28/models/group_0666.py index 8f80b3a07..829017c1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0666.py +++ b/githubkit/versions/v2022_11_28/models/group_0666.py @@ -18,17 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0410 import WebhooksUser -class WebhookPullRequestDequeued(GitHubModel): - """pull_request dequeued event""" +class WebhookPullRequestAssigned(GitHubModel): + """pull_request assigned event""" - action: Literal["dequeued"] = Field() + action: Literal["assigned"] = Field() + assignee: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,29 +41,15 @@ class WebhookPullRequestDequeued(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( + pull_request: WebhookPullRequestAssignedPropPullRequest = Field( title="Pull Request" ) - reason: Literal[ - "UNKNOWN_REMOVAL_REASON", - "MANUAL", - "MERGE", - "MERGE_CONFLICT", - "CI_FAILURE", - "CI_TIMEOUT", - "ALREADY_MERGED", - "QUEUE_CLEARED", - "ROLL_BACK", - "BRANCH_PROTECTIONS", - "GIT_TREE_INVALID", - "INVALID_MERGE_COMMIT", - ] = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -69,19 +57,19 @@ class WebhookPullRequestDequeued(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): +class WebhookPullRequestAssignedPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( Field(title="User") ) assignees: list[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -96,13 +84,13 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) ) - base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() + base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -116,11 +104,11 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() + head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -132,9 +120,9 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -148,13 +136,13 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -166,12 +154,12 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -193,12 +181,14 @@ class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -220,11 +210,14 @@ class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -237,14 +230,14 @@ class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -271,7 +264,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -285,7 +278,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -312,7 +305,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -322,7 +315,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -338,7 +331,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -367,7 +360,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -391,12 +384,14 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -425,98 +420,98 @@ class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropLinks""" +class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" - comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropBase""" +class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( Field(title="User") ) -class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -543,7 +538,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -626,7 +621,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -647,10 +642,10 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -698,7 +693,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -708,7 +703,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -735,10 +730,10 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -747,48 +742,21 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" +class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -871,7 +839,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -892,10 +860,10 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -943,7 +911,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -953,7 +921,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -980,10 +948,10 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -992,7 +960,34 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1001,34 +996,31 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa rent """ @@ -1047,7 +1039,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1064,7 +1056,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1078,10 +1070,10 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1098,88 +1090,88 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestDequeued) -model_rebuild(WebhookPullRequestDequeuedPropPullRequest) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestAssigned) +model_rebuild(WebhookPullRequestAssignedPropPullRequest) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestDequeued", - "WebhookPullRequestDequeuedPropPullRequest", - "WebhookPullRequestDequeuedPropPullRequestPropAssignee", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestDequeuedPropPullRequestPropBase", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", - "WebhookPullRequestDequeuedPropPullRequestPropHead", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", - "WebhookPullRequestDequeuedPropPullRequestPropLinks", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", - "WebhookPullRequestDequeuedPropPullRequestPropMilestone", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestDequeuedPropPullRequestPropUser", + "WebhookPullRequestAssigned", + "WebhookPullRequestAssignedPropPullRequest", + "WebhookPullRequestAssignedPropPullRequestPropAssignee", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAssignedPropPullRequestPropBase", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", + "WebhookPullRequestAssignedPropPullRequestPropHead", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", + "WebhookPullRequestAssignedPropPullRequestPropLinks", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAssignedPropPullRequestPropMergedBy", + "WebhookPullRequestAssignedPropPullRequestPropMilestone", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAssignedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0667.py b/githubkit/versions/v2022_11_28/models/group_0667.py index c60d20000..bea91012d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0667.py +++ b/githubkit/versions/v2022_11_28/models/group_0667.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,21 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0431 import PullRequestWebhook +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPullRequestEdited(GitHubModel): - """pull_request edited event""" +class WebhookPullRequestAutoMergeDisabled(GitHubModel): + """pull_request auto_merge_disabled event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestEditedPropChanges = Field( - description="The changes to the comment if the action was `edited`." - ) + action: Literal["auto_merge_disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,84 +39,1192 @@ class WebhookPullRequestEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( + title="Pull Request" + ) + reason: str = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: list[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" + + comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" -class WebhookPullRequestEditedPropChanges(GitHubModel): - """WebhookPullRequestEditedPropChanges + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - The changes to the comment if the action was `edited`. + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s """ - base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) - body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" -class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBody""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): - """WebhookPullRequestEditedPropChangesPropTitle""" - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent + """ -class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBase""" + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") - ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() - sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team -class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" + Groups of organization members that gives permissions on specified repositories. + """ - from_: str = Field(alias="from") + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ - from_: str = Field(alias="from") + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestEdited) -model_rebuild(WebhookPullRequestEditedPropChanges) -model_rebuild(WebhookPullRequestEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) -model_rebuild(WebhookPullRequestEditedPropChangesPropBase) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) +model_rebuild(WebhookPullRequestAutoMergeDisabled) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPullRequestEdited", - "WebhookPullRequestEditedPropChanges", - "WebhookPullRequestEditedPropChangesPropBase", - "WebhookPullRequestEditedPropChangesPropBasePropRef", - "WebhookPullRequestEditedPropChangesPropBasePropSha", - "WebhookPullRequestEditedPropChangesPropBody", - "WebhookPullRequestEditedPropChangesPropTitle", + "WebhookPullRequestAutoMergeDisabled", + "WebhookPullRequestAutoMergeDisabledPropPullRequest", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0668.py b/githubkit/versions/v2022_11_28/models/group_0668.py index 75879c9b9..e2989cb53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0668.py +++ b/githubkit/versions/v2022_11_28/models/group_0668.py @@ -18,17 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPullRequestEnqueued(GitHubModel): - """pull_request enqueued event""" +class WebhookPullRequestAutoMergeEnabled(GitHubModel): + """pull_request auto_merge_enabled event""" - action: Literal["enqueued"] = Field() + action: Literal["auto_merge_enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,9 +45,10 @@ class WebhookPullRequestEnqueued(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( title="Pull Request" ) + reason: Missing[str] = Field(default=UNSET) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,19 +56,21 @@ class WebhookPullRequestEnqueued(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -82,13 +85,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -102,11 +105,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -118,13 +123,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -134,13 +139,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -152,12 +157,12 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -184,7 +189,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -210,7 +215,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -223,14 +228,17 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -257,7 +265,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -271,7 +279,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -298,7 +306,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -308,7 +316,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -324,7 +332,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -353,7 +363,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -377,12 +387,14 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -411,98 +423,108 @@ class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -529,7 +551,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -612,7 +634,8 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -633,10 +656,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -684,7 +707,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -694,7 +719,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -721,10 +748,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -733,21 +760,21 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -774,7 +801,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -857,7 +884,8 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -878,10 +906,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -929,7 +957,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -939,7 +969,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -966,10 +998,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -978,7 +1010,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -987,35 +1019,32 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1033,7 +1062,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1050,7 +1081,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1064,10 +1095,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1084,88 +1117,106 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestEnqueued) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestAutoMergeEnabled) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner +) model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestEnqueued", - "WebhookPullRequestEnqueuedPropPullRequest", - "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestEnqueuedPropPullRequestPropBase", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropHead", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropLinks", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestEnqueuedPropPullRequestPropUser", + "WebhookPullRequestAutoMergeEnabled", + "WebhookPullRequestAutoMergeEnabledPropPullRequest", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0669.py b/githubkit/versions/v2022_11_28/models/group_0669.py index 4d0e27a5b..f3a112637 100644 --- a/githubkit/versions/v2022_11_28/models/group_0669.py +++ b/githubkit/versions/v2022_11_28/models/group_0669.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0408 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0437 import PullRequestWebhook -class WebhookPullRequestLabeled(GitHubModel): - """pull_request labeled event""" +class WebhookPullRequestClosed(GitHubModel): + """pull_request closed event""" - action: Literal["labeled"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,14 +39,13 @@ class WebhookPullRequestLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,1116 +53,6 @@ class WebhookPullRequestLabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestLabeledPropPullRequest(GitHubModel): - """Pull Request""" +model_rebuild(WebhookPullRequestClosed) - links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: list[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestLabeled) -model_rebuild(WebhookPullRequestLabeledPropPullRequest) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) - -__all__ = ( - "WebhookPullRequestLabeled", - "WebhookPullRequestLabeledPropPullRequest", - "WebhookPullRequestLabeledPropPullRequestPropAssignee", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLabeledPropPullRequestPropBase", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestLabeledPropPullRequestPropHead", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestLabeledPropPullRequestPropLinks", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLabeledPropPullRequestPropMergedBy", - "WebhookPullRequestLabeledPropPullRequestPropMilestone", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestLabeledPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0670.py b/githubkit/versions/v2022_11_28/models/group_0670.py index 51e9f1b45..0ebe82338 100644 --- a/githubkit/versions/v2022_11_28/models/group_0670.py +++ b/githubkit/versions/v2022_11_28/models/group_0670.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0437 import PullRequestWebhook -class WebhookPullRequestLocked(GitHubModel): - """pull_request locked event""" +class WebhookPullRequestConvertedToDraft(GitHubModel): + """pull_request converted_to_draft event""" - action: Literal["locked"] = Field() + action: Literal["converted_to_draft"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,7 +45,7 @@ class WebhookPullRequestLocked(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,1110 +53,6 @@ class WebhookPullRequestLocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestLockedPropPullRequest(GitHubModel): - """Pull Request""" +model_rebuild(WebhookPullRequestConvertedToDraft) - links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: list[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLockedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLockedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestLocked) -model_rebuild(WebhookPullRequestLockedPropPullRequest) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) - -__all__ = ( - "WebhookPullRequestLocked", - "WebhookPullRequestLockedPropPullRequest", - "WebhookPullRequestLockedPropPullRequestPropAssignee", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestLockedPropPullRequestPropAutoMerge", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLockedPropPullRequestPropBase", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropBasePropUser", - "WebhookPullRequestLockedPropPullRequestPropHead", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestLockedPropPullRequestPropLabelsItems", - "WebhookPullRequestLockedPropPullRequestPropLinks", - "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLockedPropPullRequestPropMergedBy", - "WebhookPullRequestLockedPropPullRequestPropMilestone", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestLockedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestConvertedToDraft",) diff --git a/githubkit/versions/v2022_11_28/models/group_0671.py b/githubkit/versions/v2022_11_28/models/group_0671.py index d9ccf6447..85081810b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0671.py +++ b/githubkit/versions/v2022_11_28/models/group_0671.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0038 import Milestone -from .group_0393 import EnterpriseWebhooks -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0433 import WebhooksPullRequest5 +from .group_0003 import SimpleUser +from .group_0039 import Milestone +from .group_0399 import EnterpriseWebhooks +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0439 import WebhooksPullRequest5 -class WebhookPullRequestMilestoned(GitHubModel): - """pull_request milestoned event""" +class WebhookPullRequestDemilestoned(GitHubModel): + """pull_request demilestoned event""" - action: Literal["milestoned"] = Field() + action: Literal["demilestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,6 +55,6 @@ class WebhookPullRequestMilestoned(GitHubModel): ) -model_rebuild(WebhookPullRequestMilestoned) +model_rebuild(WebhookPullRequestDemilestoned) -__all__ = ("WebhookPullRequestMilestoned",) +__all__ = ("WebhookPullRequestDemilestoned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0672.py b/githubkit/versions/v2022_11_28/models/group_0672.py index 8c493ca33..6d673729c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0672.py +++ b/githubkit/versions/v2022_11_28/models/group_0672.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0431 import PullRequestWebhook +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPullRequestOpened(GitHubModel): - """pull_request opened event""" +class WebhookPullRequestDequeued(GitHubModel): + """pull_request dequeued event""" - action: Literal["opened"] = Field() + action: Literal["dequeued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +39,29 @@ class WebhookPullRequestOpened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( + title="Pull Request" + ) + reason: Literal[ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT", + ] = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,6 +69,1117 @@ class WebhookPullRequestOpened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestOpened) +class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestDequeued) +model_rebuild(WebhookPullRequestDequeuedPropPullRequest) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPullRequestOpened",) +__all__ = ( + "WebhookPullRequestDequeued", + "WebhookPullRequestDequeuedPropPullRequest", + "WebhookPullRequestDequeuedPropPullRequestPropAssignee", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestDequeuedPropPullRequestPropBase", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", + "WebhookPullRequestDequeuedPropPullRequestPropHead", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", + "WebhookPullRequestDequeuedPropPullRequestPropLinks", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", + "WebhookPullRequestDequeuedPropPullRequestPropMilestone", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestDequeuedPropPullRequestPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0673.py b/githubkit/versions/v2022_11_28/models/group_0673.py index 0594baa80..5e1cf267b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0673.py +++ b/githubkit/versions/v2022_11_28/models/group_0673.py @@ -17,18 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0431 import PullRequestWebhook +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0437 import PullRequestWebhook -class WebhookPullRequestReadyForReview(GitHubModel): - """pull_request ready_for_review event""" +class WebhookPullRequestEdited(GitHubModel): + """pull_request edited event""" - action: Literal["ready_for_review"] = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestEditedPropChanges = Field( + description="The changes to the comment if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,9 +53,73 @@ class WebhookPullRequestReadyForReview(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookPullRequestEditedPropChanges(GitHubModel): + """WebhookPullRequestEditedPropChanges + + The changes to the comment if the action was `edited`. + """ + + base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) + body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): + """WebhookPullRequestEditedPropChangesPropTitle""" + + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", + ) + + +class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBase""" + + ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() + sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() + + +class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + + from_: str = Field(alias="from") + + +class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" + + from_: str = Field(alias="from") -model_rebuild(WebhookPullRequestReadyForReview) +model_rebuild(WebhookPullRequestEdited) +model_rebuild(WebhookPullRequestEditedPropChanges) +model_rebuild(WebhookPullRequestEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) +model_rebuild(WebhookPullRequestEditedPropChangesPropBase) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) -__all__ = ("WebhookPullRequestReadyForReview",) +__all__ = ( + "WebhookPullRequestEdited", + "WebhookPullRequestEditedPropChanges", + "WebhookPullRequestEditedPropChangesPropBase", + "WebhookPullRequestEditedPropChangesPropBasePropRef", + "WebhookPullRequestEditedPropChangesPropBasePropSha", + "WebhookPullRequestEditedPropChangesPropBody", + "WebhookPullRequestEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0674.py b/githubkit/versions/v2022_11_28/models/group_0674.py index e140f87e5..3a0dbfe38 100644 --- a/githubkit/versions/v2022_11_28/models/group_0674.py +++ b/githubkit/versions/v2022_11_28/models/group_0674.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0431 import PullRequestWebhook +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPullRequestReopened(GitHubModel): - """pull_request reopened event""" +class WebhookPullRequestEnqueued(GitHubModel): + """pull_request enqueued event""" - action: Literal["reopened"] = Field() + action: Literal["enqueued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +39,15 @@ class WebhookPullRequestReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( + title="Pull Request" + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,6 +55,1117 @@ class WebhookPullRequestReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestReopened) +class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestEnqueued) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPullRequestReopened",) +__all__ = ( + "WebhookPullRequestEnqueued", + "WebhookPullRequestEnqueuedPropPullRequest", + "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestEnqueuedPropPullRequestPropBase", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropHead", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropLinks", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestEnqueuedPropPullRequestPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0675.py b/githubkit/versions/v2022_11_28/models/group_0675.py index 4c2a80d10..de9e9c3a1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0675.py +++ b/githubkit/versions/v2022_11_28/models/group_0675.py @@ -18,21 +18,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0414 import WebhooksLabel -class WebhookPullRequestReviewCommentCreated(GitHubModel): - """pull_request_review_comment created event""" +class WebhookPullRequestLabeled(GitHubModel): + """pull_request labeled event""" - action: Literal["created"] = Field() - comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["labeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,12 +40,14 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() + pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,187 +55,19 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ +class WebhookPullRequestLabeledPropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( + title="User" + ) assignees: list[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -251,63 +82,82 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() + base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems - ] = Field() + labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -336,9 +186,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -366,7 +214,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -379,17 +227,14 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -416,7 +261,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -430,7 +275,36 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -440,8 +314,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -457,9 +330,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -488,7 +359,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -519,7 +390,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -548,116 +419,98 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -684,9 +537,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -769,8 +620,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -791,11 +641,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -843,9 +692,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -855,9 +702,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -884,12 +729,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -898,23 +741,21 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -981,8 +822,8 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." ) homepage: Union[str, None] = Field() hooks_url: str = Field() @@ -997,8 +838,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -1019,11 +859,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1071,9 +910,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -1083,9 +920,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1112,12 +947,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1126,9 +959,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1155,7 +986,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1172,7 +1003,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1185,11 +1016,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent """ description: Union[str, None] = Field(description="Description of the team") @@ -1207,9 +1038,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1226,7 +1055,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1240,12 +1069,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1262,126 +1089,82 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentCreated) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems -) +model_rebuild(WebhookPullRequestLabeled) +model_rebuild(WebhookPullRequestLabeledPropPullRequest) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestReviewCommentCreated", - "WebhookPullRequestReviewCommentCreatedPropComment", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", + "WebhookPullRequestLabeled", + "WebhookPullRequestLabeledPropPullRequest", + "WebhookPullRequestLabeledPropPullRequestPropAssignee", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLabeledPropPullRequestPropBase", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestLabeledPropPullRequestPropHead", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestLabeledPropPullRequestPropLinks", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLabeledPropPullRequestPropMergedBy", + "WebhookPullRequestLabeledPropPullRequestPropMilestone", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestLabeledPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0676.py b/githubkit/versions/v2022_11_28/models/group_0676.py index 5b9121d4b..a63ae85b2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0676.py +++ b/githubkit/versions/v2022_11_28/models/group_0676.py @@ -18,22 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0434 import WebhooksReviewComment +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPullRequestReviewCommentDeleted(GitHubModel): - """pull_request_review_comment deleted event""" +class WebhookPullRequestLocked(GitHubModel): + """pull_request locked event""" - action: Literal["deleted"] = Field() - comment: WebhooksReviewComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,12 +39,13 @@ class WebhookPullRequestReviewCommentDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() + pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -57,23 +53,19 @@ class WebhookPullRequestReviewCommentDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" +class WebhookPullRequestLockedPropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( + title="User" + ) assignees: list[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -88,63 +80,82 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() + base: WebhookPullRequestLockedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLockedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems - ] = Field() + labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -171,9 +182,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -195,11 +204,13 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -212,17 +223,14 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -249,7 +257,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -263,7 +271,36 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -273,8 +310,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -290,9 +326,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -319,7 +353,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCrea user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -343,12 +377,14 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -377,116 +413,96 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -513,9 +529,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -598,8 +612,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -620,11 +633,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -672,9 +684,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -684,9 +694,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -713,12 +721,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -727,23 +733,21 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -826,8 +830,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -848,11 +851,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -900,9 +902,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -912,9 +912,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -941,12 +939,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -955,9 +951,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -984,7 +978,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -993,35 +987,32 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] = Field(description="Description of the team") @@ -1039,9 +1030,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1058,7 +1047,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1072,12 +1061,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1094,112 +1081,82 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentDeleted) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems -) +model_rebuild(WebhookPullRequestLocked) +model_rebuild(WebhookPullRequestLockedPropPullRequest) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestReviewCommentDeleted", - "WebhookPullRequestReviewCommentDeletedPropPullRequest", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", + "WebhookPullRequestLocked", + "WebhookPullRequestLockedPropPullRequest", + "WebhookPullRequestLockedPropPullRequestPropAssignee", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestLockedPropPullRequestPropAutoMerge", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLockedPropPullRequestPropBase", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropBasePropUser", + "WebhookPullRequestLockedPropPullRequestPropHead", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestLockedPropPullRequestPropLabelsItems", + "WebhookPullRequestLockedPropPullRequestPropLinks", + "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLockedPropPullRequestPropMergedBy", + "WebhookPullRequestLockedPropPullRequestPropMilestone", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestLockedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0677.py b/githubkit/versions/v2022_11_28/models/group_0677.py index 66f0f5754..761be5421 100644 --- a/githubkit/versions/v2022_11_28/models/group_0677.py +++ b/githubkit/versions/v2022_11_28/models/group_0677.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,1180 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0412 import WebhooksChanges -from .group_0434 import WebhooksReviewComment +from .group_0003 import SimpleUser +from .group_0039 import Milestone +from .group_0399 import EnterpriseWebhooks +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0439 import WebhooksPullRequest5 -class WebhookPullRequestReviewCommentEdited(GitHubModel): - """pull_request_review_comment edited event""" +class WebhookPullRequestMilestoned(GitHubModel): + """pull_request milestoned event""" - action: Literal["edited"] = Field() - changes: WebhooksChanges = Field(description="The changes to the comment.") - comment: WebhooksReviewComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["milestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( + milestone: Missing[Milestone] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Milestone", + description="A collection of related issues and pull requests.", ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() + pull_request: WebhooksPullRequest5 = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" - - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - user_view_type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentEdited) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestMilestoned) -__all__ = ( - "WebhookPullRequestReviewCommentEdited", - "WebhookPullRequestReviewCommentEditedPropPullRequest", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestMilestoned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0678.py b/githubkit/versions/v2022_11_28/models/group_0678.py index d91a2f533..b68a9d752 100644 --- a/githubkit/versions/v2022_11_28/models/group_0678.py +++ b/githubkit/versions/v2022_11_28/models/group_0678.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0437 import PullRequestWebhook -class WebhookPullRequestReviewDismissed(GitHubModel): - """pull_request_review dismissed event""" +class WebhookPullRequestOpened(GitHubModel): + """pull_request opened event""" - action: Literal["dismissed"] = Field() + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,1223 +39,20 @@ class WebhookPullRequestReviewDismissed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhookPullRequestReviewDismissedPropReview = Field( - description="The review that was affected." - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewDismissedPropReview(GitHubModel): - """WebhookPullRequestReviewDismissedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: Literal["dismissed", "approved", "changes_requested"] = Field() - submitted_at: datetime = Field() - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( - title="Link" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewDismissed) -model_rebuild(WebhookPullRequestReviewDismissedPropReview) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinks) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequest) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestOpened) -__all__ = ( - "WebhookPullRequestReviewDismissed", - "WebhookPullRequestReviewDismissedPropPullRequest", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewDismissedPropPullRequestPropBase", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropHead", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewDismissedPropPullRequestPropUser", - "WebhookPullRequestReviewDismissedPropReview", - "WebhookPullRequestReviewDismissedPropReviewPropLinks", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", - "WebhookPullRequestReviewDismissedPropReviewPropUser", -) +__all__ = ("WebhookPullRequestOpened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0679.py b/githubkit/versions/v2022_11_28/models/group_0679.py index 05ae7cf48..3b6e94abc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0679.py +++ b/githubkit/versions/v2022_11_28/models/group_0679.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0435 import WebhooksReview +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0437 import PullRequestWebhook -class WebhookPullRequestReviewEdited(GitHubModel): - """pull_request_review edited event""" +class WebhookPullRequestReadyForReview(GitHubModel): + """pull_request ready_for_review event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestReviewEditedPropChanges = Field() + action: Literal["ready_for_review"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,1065 +39,20 @@ class WebhookPullRequestReviewEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewEditedPropChanges(GitHubModel): - """WebhookPullRequestReviewEditedPropChanges""" - - body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( - default=UNSET - ) - - -class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: list[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewEdited) -model_rebuild(WebhookPullRequestReviewEditedPropChanges) -model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestReadyForReview) -__all__ = ( - "WebhookPullRequestReviewEdited", - "WebhookPullRequestReviewEditedPropChanges", - "WebhookPullRequestReviewEditedPropChangesPropBody", - "WebhookPullRequestReviewEditedPropPullRequest", - "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewEditedPropPullRequestPropBase", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropHead", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewEditedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestReadyForReview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0680.py b/githubkit/versions/v2022_11_28/models/group_0680.py index 154af4ccd..cb47376e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0680.py +++ b/githubkit/versions/v2022_11_28/models/group_0680.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0437 import PullRequestWebhook -class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestReopened(GitHubModel): + """pull_request reopened event""" - action: Literal["review_request_removed"] = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,1270 +45,14 @@ class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( - title="Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( - GitHubModel -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( - GitHubModel -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title.", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestReopened) -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", -) +__all__ = ("WebhookPullRequestReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0681.py b/githubkit/versions/v2022_11_28/models/group_0681.py index 916953849..b9fc8bd00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0681.py +++ b/githubkit/versions/v2022_11_28/models/group_0681.py @@ -18,17 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReviewCommentCreated(GitHubModel): + """pull_request_review_comment created event""" - action: Literal["review_request_removed"] = Field() + action: Literal["created"] = Field() + comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,90 +43,198 @@ class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( - title="Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): - """Team +class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): + """Pull Request Review Comment - Groups of organization members that gives permissions on specified repositories. + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. """ + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( + title="Link" ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( + alias="self", title="Link" + ) + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): + """Link""" -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + """Link""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -139,89 +251,63 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -243,12 +329,14 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -272,14 +360,13 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesIt site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -292,7 +379,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -300,7 +387,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -329,9 +416,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -345,38 +430,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -386,7 +440,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -403,7 +457,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( url: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -427,12 +481,14 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePr site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -456,12 +512,14 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -483,41 +541,43 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHub site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -525,7 +585,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -533,7 +593,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -541,7 +601,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -549,7 +609,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIs href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -557,7 +617,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -565,7 +625,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -573,7 +633,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -581,22 +641,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -625,7 +684,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -710,7 +769,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -732,11 +791,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -784,7 +843,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -796,7 +855,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -825,11 +884,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool = Field() @@ -839,51 +898,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -952,8 +981,8 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." ) homepage: Union[str, None] = Field() hooks_url: str = Field() @@ -968,7 +997,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -990,11 +1019,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1042,7 +1071,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1054,7 +1083,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1083,11 +1112,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool = Field() @@ -1097,7 +1126,36 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1114,7 +1172,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1127,11 +1185,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1149,7 +1207,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1158,32 +1216,35 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTe """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1201,138 +1262,126 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTe url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment -) +model_rebuild(WebhookPullRequestReviewCommentCreated) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewCommentCreated", + "WebhookPullRequestReviewCommentCreatedPropComment", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0682.py b/githubkit/versions/v2022_11_28/models/group_0682.py index 1e04109a1..d93778ace 100644 --- a/githubkit/versions/v2022_11_28/models/group_0682.py +++ b/githubkit/versions/v2022_11_28/models/group_0682.py @@ -18,17 +18,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0440 import WebhooksReviewComment -class WebhookPullRequestReviewRequestedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReviewCommentDeleted(GitHubModel): + """pull_request_review_comment deleted event""" - action: Literal["review_requested"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksReviewComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,70 +44,34 @@ class WebhookPullRequestReviewRequestedOneof0(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( - title="Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -119,84 +88,63 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,14 +166,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubM site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -249,14 +195,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -269,7 +212,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -277,7 +220,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHub ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -306,9 +249,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -322,34 +263,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -359,7 +273,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -376,7 +290,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -400,14 +314,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCre site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -436,7 +348,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -465,36 +377,36 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -502,7 +414,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -510,7 +422,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -518,7 +430,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -526,7 +438,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -534,7 +446,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -542,7 +454,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -550,7 +462,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -558,21 +470,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -601,7 +513,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -686,7 +598,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -708,11 +620,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -760,7 +672,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -772,7 +684,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -801,11 +713,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool = Field() @@ -815,50 +727,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -943,7 +826,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -965,11 +848,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1017,7 +900,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1029,7 +912,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1058,11 +941,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool = Field() @@ -1072,7 +955,36 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1081,32 +993,35 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1124,7 +1039,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1143,7 +1058,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1157,11 +1072,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1179,118 +1094,112 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestedOneof0) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewCommentDeleted) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestedOneof0", - "WebhookPullRequestReviewRequestedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewCommentDeleted", + "WebhookPullRequestReviewCommentDeletedPropPullRequest", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0683.py b/githubkit/versions/v2022_11_28/models/group_0683.py index 0a14d3778..ee1c690db 100644 --- a/githubkit/versions/v2022_11_28/models/group_0683.py +++ b/githubkit/versions/v2022_11_28/models/group_0683.py @@ -18,17 +18,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0418 import WebhooksChanges +from .group_0440 import WebhooksReviewComment -class WebhookPullRequestReviewRequestedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewCommentEdited(GitHubModel): + """pull_request_review_comment edited event""" - action: Literal["review_requested"] = Field() + action: Literal["edited"] = Field() + changes: WebhooksChanges = Field(description="The changes to the comment.") + comment: WebhooksReviewComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,89 +46,34 @@ class WebhookPullRequestReviewRequestedOneof1(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( - title="Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" +class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, - None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None ] ] = Field() author_association: Literal[ @@ -137,84 +89,63 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -236,14 +167,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubM site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -267,14 +196,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -287,7 +214,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -295,7 +222,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHub ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -324,9 +251,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -340,34 +265,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -377,7 +275,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -394,7 +292,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -425,7 +323,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -454,7 +352,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -479,40 +377,40 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -520,7 +418,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -528,7 +426,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -536,7 +434,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -544,7 +442,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -552,7 +450,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -560,7 +458,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -568,7 +466,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -576,23 +474,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -619,9 +515,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -704,7 +598,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -726,11 +620,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -778,7 +672,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -790,7 +684,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -819,11 +713,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool = Field() @@ -833,52 +727,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -961,7 +824,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -983,11 +846,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1035,7 +898,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1047,7 +910,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1076,11 +939,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool = Field() @@ -1090,7 +953,34 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1109,7 +999,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1123,11 +1013,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1145,7 +1035,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1164,7 +1054,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1178,11 +1068,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] = Field(description="Description of the team") @@ -1200,120 +1090,108 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestedOneof1) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEdited) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestedOneof1", - "WebhookPullRequestReviewRequestedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewCommentEdited", + "WebhookPullRequestReviewCommentEditedPropPullRequest", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0684.py b/githubkit/versions/v2022_11_28/models/group_0684.py index f95f3cb19..7b193cd95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0684.py +++ b/githubkit/versions/v2022_11_28/models/group_0684.py @@ -18,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0435 import WebhooksReview +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPullRequestReviewSubmitted(GitHubModel): - """pull_request_review submitted event""" +class WebhookPullRequestReviewDismissed(GitHubModel): + """pull_request_review dismissed event""" - action: Literal["submitted"] = Field() + action: Literal["dismissed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,31 +44,118 @@ class WebhookPullRequestReviewSubmitted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhooksReview = Field(description="The review that was affected.") + review: WebhookPullRequestReviewDismissedPropReview = Field( + description="The review that was affected." + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewDismissedPropReview(GitHubModel): + """WebhookPullRequestReviewDismissedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: Literal["dismissed", "approved", "changes_requested"] = Field() + submitted_at: datetime = Field() + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" + + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( + title="Link" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,12 +171,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -98,18 +184,18 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( + labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( Field() ) locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -119,13 +205,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -134,12 +220,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -168,7 +254,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -196,7 +282,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -209,14 +295,14 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel) description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -245,7 +331,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -259,7 +345,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubMode url: str = Field(description="URL for the label") -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -269,7 +355,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -285,7 +371,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) url: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -309,14 +395,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -347,7 +431,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -376,36 +460,36 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( Field(title="Link") ) - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( Field(title="Link") ) - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( Field(title="Link") ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -413,25 +497,25 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -439,7 +523,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -447,13 +531,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -461,21 +545,21 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -502,7 +586,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -585,7 +669,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -607,10 +691,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -658,7 +742,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -670,7 +754,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -699,10 +783,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -711,21 +795,21 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -808,7 +892,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -830,10 +914,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -881,7 +965,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -893,7 +977,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -922,10 +1006,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -934,7 +1018,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -961,7 +1045,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -978,7 +1062,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -991,10 +1075,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof 1PropParent """ @@ -1013,7 +1097,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1032,7 +1116,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1046,10 +1130,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen t """ @@ -1068,100 +1152,110 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewSubmitted) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewDismissed) +model_rebuild(WebhookPullRequestReviewDismissedPropReview) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequest) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewSubmitted", - "WebhookPullRequestReviewSubmittedPropPullRequest", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", + "WebhookPullRequestReviewDismissed", + "WebhookPullRequestReviewDismissedPropPullRequest", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewDismissedPropPullRequestPropBase", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropHead", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewDismissedPropPullRequestPropUser", + "WebhookPullRequestReviewDismissedPropReview", + "WebhookPullRequestReviewDismissedPropReviewPropLinks", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", + "WebhookPullRequestReviewDismissedPropReviewPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0685.py b/githubkit/versions/v2022_11_28/models/group_0685.py index 7b543cd7c..3eccfd822 100644 --- a/githubkit/versions/v2022_11_28/models/group_0685.py +++ b/githubkit/versions/v2022_11_28/models/group_0685.py @@ -18,17 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0441 import WebhooksReview -class WebhookPullRequestReviewThreadResolved(GitHubModel): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewEdited(GitHubModel): + """pull_request_review edited event""" - action: Literal["resolved"] = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestReviewEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,36 +46,48 @@ class WebhookPullRequestReviewThreadResolved(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + review: WebhooksReview = Field(description="The review that was affected.") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestReviewEditedPropChanges(GitHubModel): + """WebhookPullRequestReviewEditedPropChanges""" + + body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( + default=UNSET + ) + + +class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", ) - thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None - ] = Field(title="User") + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) assignees: list[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -89,12 +103,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -102,18 +116,16 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems - ] = Field() + labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -123,13 +135,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -138,12 +150,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -165,14 +177,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -194,11 +206,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -211,15 +225,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -248,7 +261,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -262,7 +275,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -272,8 +285,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -289,7 +301,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -313,12 +325,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -349,7 +363,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -378,68 +392,60 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -447,7 +453,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -455,39 +461,33 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -514,9 +514,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -583,9 +581,6 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -599,8 +594,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() @@ -613,11 +607,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -643,13 +636,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -661,7 +650,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -690,12 +679,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -704,23 +691,21 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -787,9 +772,6 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -803,8 +785,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() @@ -817,11 +798,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -847,13 +827,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -865,7 +841,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -894,12 +870,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -908,9 +882,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -937,7 +909,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -954,7 +926,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -967,11 +939,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] = Field(description="Description of the team") @@ -989,9 +961,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1008,7 +978,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1022,12 +992,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1044,323 +1012,94 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems - ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -model_rebuild(WebhookPullRequestReviewThreadResolved) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems -) +model_rebuild(WebhookPullRequestReviewEdited) +model_rebuild(WebhookPullRequestReviewEditedPropChanges) +model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewThreadResolved", - "WebhookPullRequestReviewThreadResolvedPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadResolvedPropThread", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewEdited", + "WebhookPullRequestReviewEditedPropChanges", + "WebhookPullRequestReviewEditedPropChangesPropBody", + "WebhookPullRequestReviewEditedPropPullRequest", + "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewEditedPropPullRequestPropBase", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropHead", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewEditedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0686.py b/githubkit/versions/v2022_11_28/models/group_0686.py index 5225ed445..25c98544c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0686.py +++ b/githubkit/versions/v2022_11_28/models/group_0686.py @@ -18,17 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPullRequestReviewThreadUnresolved(GitHubModel): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["unresolved"] = Field() + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,39 +39,68 @@ class WebhookPullRequestReviewThreadUnresolved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( - title="Simple Pull Request" + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( + title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None + ] = Field(title="User") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): + """User""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() + additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -89,61 +118,88 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems ] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, + None, + ] + ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -170,7 +226,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -196,9 +252,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -207,9 +266,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHu commit_message: Union[str, None] = Field( description="Commit message for the merge commit." ) - commit_title: str = Field(description="Title for the merge commit message.") + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -217,7 +278,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHu ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -246,7 +307,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( GitHubModel ): """Label""" @@ -262,7 +323,38 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( + GitHubModel +): """Milestone A collection of related issues and pull requests. @@ -272,7 +364,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -289,7 +381,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu url: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -318,7 +410,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -347,7 +439,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -374,36 +466,36 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubMode user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -411,7 +503,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommen href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -419,7 +511,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommit href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -427,7 +519,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -435,7 +527,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -443,7 +535,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -451,7 +543,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -459,7 +551,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -467,21 +559,22 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatus href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, + None, ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -510,7 +603,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -595,10 +688,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -609,11 +710,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -622,6 +723,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title.", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -636,6 +749,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -645,7 +762,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -657,7 +774,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -686,11 +803,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions """ admin: bool = Field() @@ -700,21 +817,22 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, + None, ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( GitHubModel ): """User""" @@ -743,7 +861,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -828,10 +946,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -842,11 +968,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -855,6 +981,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -869,6 +1007,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -878,7 +1020,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -890,7 +1032,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -919,11 +1061,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions """ admin: bool = Field() @@ -933,7 +1075,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -942,35 +1084,32 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -988,7 +1127,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -997,35 +1136,32 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1043,326 +1179,136 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems - ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -model_rebuild(WebhookPullRequestReviewThreadUnresolved) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewThreadUnresolved", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropThread", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0687.py b/githubkit/versions/v2022_11_28/models/group_0687.py index 680f0e067..52d6eebd1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0687.py +++ b/githubkit/versions/v2022_11_28/models/group_0687.py @@ -18,19 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPullRequestSynchronize(GitHubModel): - """pull_request synchronize event""" +class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1""" - action: Literal["synchronize"] = Field() - after: str = Field() - before: str = Field() + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,29 +45,86 @@ class WebhookPullRequestSynchronize(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,12 +140,12 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -104,11 +159,13 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -120,10 +177,13 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, + None, + ] ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -136,13 +196,13 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -154,12 +214,14 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -181,14 +243,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -210,13 +272,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -229,14 +292,15 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -265,7 +329,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -279,7 +345,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -306,7 +374,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( + GitHubModel +): """Milestone A collection of related issues and pull requests. @@ -316,7 +386,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -332,7 +403,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -354,14 +427,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHu site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -385,14 +456,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -414,67 +483,73 @@ class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -482,7 +557,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -490,33 +565,40 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -543,7 +625,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -626,7 +710,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -647,10 +732,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -698,7 +784,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -710,7 +796,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -739,10 +825,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -751,21 +839,24 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -792,7 +883,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -875,14 +968,17 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) merges_url: str = Field() milestones_url: str = Field() @@ -894,10 +990,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -945,7 +1042,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -957,7 +1054,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -986,10 +1083,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -998,7 +1097,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1015,7 +1114,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1028,11 +1127,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1050,41 +1149,42 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1101,92 +1201,138 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropPar url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestSynchronize) -model_rebuild(WebhookPullRequestSynchronizePropPullRequest) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense +) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestSynchronize", - "WebhookPullRequestSynchronizePropPullRequest", - "WebhookPullRequestSynchronizePropPullRequestPropAssignee", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestSynchronizePropPullRequestPropBase", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", - "WebhookPullRequestSynchronizePropPullRequestPropHead", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", - "WebhookPullRequestSynchronizePropPullRequestPropLinks", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", - "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", - "WebhookPullRequestSynchronizePropPullRequestPropMilestone", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestSynchronizePropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0688.py b/githubkit/versions/v2022_11_28/models/group_0688.py index 427d4594b..b37e27212 100644 --- a/githubkit/versions/v2022_11_28/models/group_0688.py +++ b/githubkit/versions/v2022_11_28/models/group_0688.py @@ -18,21 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0416 import WebhooksUserMannequin +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPullRequestUnassigned(GitHubModel): - """pull_request unassigned event""" +class WebhookPullRequestReviewRequestedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["unassigned"] = Field() - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,31 +45,66 @@ class WebhookPullRequestUnassigned(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None + ] = Field(title="User") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -89,12 +120,12 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -108,11 +139,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -124,13 +157,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -140,13 +173,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -158,12 +191,12 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -192,7 +225,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,9 +253,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel) default=UNSET ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -233,14 +269,15 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -269,7 +306,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -283,7 +322,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -305,14 +344,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -322,7 +359,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -338,7 +376,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -367,7 +407,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -391,14 +431,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -427,60 +465,68 @@ class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -488,7 +534,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -496,33 +542,39 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -549,7 +601,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -632,7 +686,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -653,10 +708,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -704,7 +760,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -716,7 +772,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -743,10 +801,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -755,21 +815,52 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -852,7 +943,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -873,10 +965,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -924,7 +1017,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -936,7 +1029,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -963,10 +1058,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -975,34 +1072,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1019,7 +1089,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1032,11 +1102,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1054,7 +1124,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1071,7 +1143,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubM node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1085,10 +1157,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubM url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1105,92 +1179,118 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropPare url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnassigned) -model_rebuild(WebhookPullRequestUnassignedPropPullRequest) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestedOneof0) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense +) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnassigned", - "WebhookPullRequestUnassignedPropPullRequest", - "WebhookPullRequestUnassignedPropPullRequestPropAssignee", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnassignedPropPullRequestPropBase", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnassignedPropPullRequestPropHead", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnassignedPropPullRequestPropLinks", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", - "WebhookPullRequestUnassignedPropPullRequestPropMilestone", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestUnassignedPropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof0", + "WebhookPullRequestReviewRequestedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0689.py b/githubkit/versions/v2022_11_28/models/group_0689.py index fadd777cc..5e0255b97 100644 --- a/githubkit/versions/v2022_11_28/models/group_0689.py +++ b/githubkit/versions/v2022_11_28/models/group_0689.py @@ -18,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0408 import WebhooksLabel +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPullRequestUnlabeled(GitHubModel): - """pull_request unlabeled event""" +class WebhookPullRequestReviewRequestedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1""" - action: Literal["unlabeled"] = Field() + action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,36 +39,90 @@ class WebhookPullRequestUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -84,13 +137,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -104,11 +157,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -120,13 +175,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -136,13 +191,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -154,12 +209,12 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -188,7 +243,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -214,9 +271,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): default=UNSET ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -229,14 +287,17 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -263,7 +324,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -277,7 +340,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -304,7 +367,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -314,7 +377,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +394,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -359,7 +425,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -383,14 +449,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -419,66 +483,76 @@ class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -486,33 +560,39 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -539,7 +619,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -622,7 +704,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -643,10 +726,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -694,7 +778,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -706,7 +790,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -733,10 +819,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -745,21 +833,52 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -842,14 +961,17 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) merges_url: str = Field() milestones_url: str = Field() @@ -861,10 +983,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -912,7 +1035,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -924,7 +1047,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -951,10 +1076,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -963,34 +1090,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -999,32 +1099,35 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1042,7 +1145,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1059,7 +1164,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubMo node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1073,10 +1178,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubMo url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1093,88 +1200,120 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParen url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnlabeled) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestedOneof1) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions +) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnlabeled", - "WebhookPullRequestUnlabeledPropPullRequest", - "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlabeledPropPullRequestPropBase", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropHead", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropLinks", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestUnlabeledPropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof1", + "WebhookPullRequestReviewRequestedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0690.py b/githubkit/versions/v2022_11_28/models/group_0690.py index 3a44870db..ff3bdc1df 100644 --- a/githubkit/versions/v2022_11_28/models/group_0690.py +++ b/githubkit/versions/v2022_11_28/models/group_0690.py @@ -18,17 +18,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0441 import WebhooksReview -class WebhookPullRequestUnlocked(GitHubModel): - """pull_request unlocked event""" +class WebhookPullRequestReviewSubmitted(GitHubModel): + """pull_request_review submitted event""" - action: Literal["unlocked"] = Field() + action: Literal["submitted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,35 +40,36 @@ class WebhookPullRequestUnlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( - title="Pull Request" + pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( + title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + review: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): + """Simple Pull Request""" - links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -82,82 +84,62 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", + labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( + Field() ) + locked: bool = Field() merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -179,12 +161,14 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -206,11 +190,13 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -219,16 +205,20 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): commit_message: Union[str, None] = Field( description="Commit message for the merge commit." ) - commit_title: str = Field(description="Title for the merge commit message.") + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -255,7 +245,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -269,34 +259,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -306,7 +269,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -322,7 +285,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -344,12 +309,14 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -373,12 +340,14 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -400,103 +369,113 @@ class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -523,7 +502,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -606,7 +585,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -627,10 +607,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -678,7 +658,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -688,7 +670,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -715,10 +699,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -727,21 +711,21 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -824,7 +808,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -845,10 +830,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -896,7 +881,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -906,7 +893,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -933,10 +922,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -945,7 +934,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -972,7 +961,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -981,35 +970,32 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1027,7 +1013,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1044,7 +1032,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1058,10 +1046,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1078,88 +1068,100 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnlocked) -model_rebuild(WebhookPullRequestUnlockedPropPullRequest) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewSubmitted) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnlocked", - "WebhookPullRequestUnlockedPropPullRequest", - "WebhookPullRequestUnlockedPropPullRequestPropAssignee", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlockedPropPullRequestPropBase", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlockedPropPullRequestPropHead", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlockedPropPullRequestPropLinks", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", - "WebhookPullRequestUnlockedPropPullRequestPropMilestone", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestUnlockedPropPullRequestPropUser", + "WebhookPullRequestReviewSubmitted", + "WebhookPullRequestReviewSubmittedPropPullRequest", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0691.py b/githubkit/versions/v2022_11_28/models/group_0691.py index e5ae4423b..aadbb99f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0691.py +++ b/githubkit/versions/v2022_11_28/models/group_0691.py @@ -14,41 +14,26 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookPush(GitHubModel): - """push event""" +class WebhookPullRequestReviewThreadResolved(GitHubModel): + """pull_request_review_thread resolved event""" - after: str = Field( - description="The SHA of the most recent commit on `ref` after the push." - ) - base_ref: Union[str, None] = Field() - before: str = Field( - description="The SHA of the most recent commit on `ref` before the push." - ) - commits: list[WebhookPushPropCommitsItems] = Field( - description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/rest/commits) to fetch additional commits." - ) - compare: str = Field( - description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." - ) - created: bool = Field(description="Whether this push created the `ref`.") - deleted: bool = Field(description="Whether this push deleted the `ref`.") + action: Literal["resolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - forced: bool = Field(description="Whether this push was a force push of the `ref`.") - head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -59,145 +44,479 @@ class WebhookPush(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher: WebhookPushPropPusher = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( + title="Simple Pull Request" ) - ref: str = Field( - description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." - ) - repository: WebhookPushPropRepository = Field( - title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) + thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() -class WebhookPushPropHeadCommit(GitHubModel): - """Commit""" +class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" - added: Missing[list[str]] = Field( - default=UNSET, description="An array of files added in the commit." + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + alias="_links" ) - author: WebhookPushPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: list[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - committer: WebhookPushPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." - ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[list[str]] = Field( - default=UNSET, description="An array of files modified by the commit." + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - removed: Missing[list[str]] = Field( - default=UNSET, description="An array of files removed in the commit." + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( + Field(title="User") ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") -class WebhookPushPropHeadCommitPropAuthor(GitHubModel): - """Committer +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPushPropHeadCommitPropCommitter(GitHubModel): - """Committer +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge - Metaproperties for Git author/committer information. + The status of auto merging a pull request. """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookPushPropPusher(GitHubModel): - """Committer +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone - Metaproperties for Git author/committer information. + A collection of related issues and pull requests. """ - date: Missing[datetime] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) email: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPushPropCommitsItems(GitHubModel): - """Commit""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): + """User""" - added: Missing[list[str]] = Field( - default=UNSET, - description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + title="Link" ) - author: WebhookPushPropCommitsItemsPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" ) - committer: WebhookPushPropCommitsItemsPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[list[str]] = Field( - default=UNSET, - description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" ) - removed: Missing[list[str]] = Field( - default=UNSET, - description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") -class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): - """Committer +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" - Metaproperties for Git author/committer information. - """ + href: str = Field() - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" -class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): - """Committer + href: str = Field() - Metaproperties for Git author/committer information. - """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + href: str = Field() -class WebhookPushPropRepository(GitHubModel): + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -234,10 +553,6 @@ class WebhookPushPropRepository(GitHubModel): contents_url: str = Field() contributors_url: str = Field() created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) default_branch: str = Field(description="The default branch of the repository.") delete_branch_on_merge: Missing[bool] = Field( default=UNSET, @@ -283,9 +598,10 @@ class WebhookPushPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() milestones_url: str = Field() @@ -296,10 +612,13 @@ class WebhookPushPropRepository(GitHubModel): open_issues: int = Field() open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( - default=UNSET - ) + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) pulls_url: str = Field() @@ -330,16 +649,9 @@ class WebhookPushPropRepository(GitHubModel): ) -class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookPushPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookPushPropRepositoryPropLicense(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -349,7 +661,9 @@ class WebhookPushPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookPushPropRepositoryPropOwner(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -376,8 +690,12 @@ class WebhookPushPropRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPushPropRepositoryPropPermissions(GitHubModel): - """WebhookPushPropRepositoryPropPermissions""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -386,32 +704,663 @@ class WebhookPushPropRepositoryPropPermissions(GitHubModel): triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookPush) -model_rebuild(WebhookPushPropHeadCommit) -model_rebuild(WebhookPushPropHeadCommitPropAuthor) -model_rebuild(WebhookPushPropHeadCommitPropCommitter) -model_rebuild(WebhookPushPropPusher) -model_rebuild(WebhookPushPropCommitsItems) -model_rebuild(WebhookPushPropCommitsItemsPropAuthor) -model_rebuild(WebhookPushPropCommitsItemsPropCommitter) -model_rebuild(WebhookPushPropRepository) -model_rebuild(WebhookPushPropRepositoryPropCustomProperties) -model_rebuild(WebhookPushPropRepositoryPropLicense) -model_rebuild(WebhookPushPropRepositoryPropOwner) -model_rebuild(WebhookPushPropRepositoryPropPermissions) +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +model_rebuild(WebhookPullRequestReviewThreadResolved) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf +) __all__ = ( - "WebhookPush", - "WebhookPushPropCommitsItems", - "WebhookPushPropCommitsItemsPropAuthor", - "WebhookPushPropCommitsItemsPropCommitter", - "WebhookPushPropHeadCommit", - "WebhookPushPropHeadCommitPropAuthor", - "WebhookPushPropHeadCommitPropCommitter", - "WebhookPushPropPusher", - "WebhookPushPropRepository", - "WebhookPushPropRepositoryPropCustomProperties", - "WebhookPushPropRepositoryPropLicense", - "WebhookPushPropRepositoryPropOwner", - "WebhookPushPropRepositoryPropPermissions", + "WebhookPullRequestReviewThreadResolved", + "WebhookPullRequestReviewThreadResolvedPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadResolvedPropThread", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0692.py b/githubkit/versions/v2022_11_28/models/group_0692.py index 358af673b..ea2c415fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0692.py +++ b/githubkit/versions/v2022_11_28/models/group_0692.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0693 import WebhookRegistryPackagePublishedPropRegistryPackage +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRegistryPackagePublished(GitHubModel): - """WebhookRegistryPackagePublished""" +class WebhookPullRequestReviewThreadUnresolved(GitHubModel): + """pull_request_review_thread unresolved event""" - action: Literal["published"] = Field() + action: Literal["unresolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,15 +44,1325 @@ class WebhookRegistryPackagePublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() -model_rebuild(WebhookRegistryPackagePublished) +model_rebuild(WebhookPullRequestReviewThreadUnresolved) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf +) -__all__ = ("WebhookRegistryPackagePublished",) +__all__ = ( + "WebhookPullRequestReviewThreadUnresolved", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropThread", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0693.py b/githubkit/versions/v2022_11_28/models/group_0693.py index 5b7e7d229..d6905485f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0693.py +++ b/githubkit/versions/v2022_11_28/models/group_0693.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,72 +18,1175 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0694 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, -) +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookPullRequestSynchronize(GitHubModel): + """pull_request synchronize event""" - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() + action: Literal["synchronize"] = Field() + after: str = Field() + before: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + issue_url: str = Field() + labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + ] ] = Field() - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + requested_teams: list[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems ] = Field() - updated_at: Union[str, None] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): + """User""" - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ - about_url: Missing[str] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - vendor: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + Groups of organization members that gives permissions on specified repositories. + """ -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestSynchronize) +model_rebuild(WebhookPullRequestSynchronizePropPullRequest) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackage", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", + "WebhookPullRequestSynchronize", + "WebhookPullRequestSynchronizePropPullRequest", + "WebhookPullRequestSynchronizePropPullRequestPropAssignee", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestSynchronizePropPullRequestPropBase", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", + "WebhookPullRequestSynchronizePropPullRequestPropHead", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", + "WebhookPullRequestSynchronizePropPullRequestPropLinks", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", + "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", + "WebhookPullRequestSynchronizePropPullRequestPropMilestone", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestSynchronizePropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0694.py b/githubkit/versions/v2022_11_28/models/group_0694.py index 67283f592..92521acaa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0694.py +++ b/githubkit/versions/v2022_11_28/models/group_0694.py @@ -9,482 +9,987 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0613 import WebhookRubygemsMetadata - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor - ] = Field(default=UNSET) - body: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, - ] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0422 import WebhooksUserMannequin + + +class WebhookPullRequestUnassigned(GitHubModel): + """pull_request unassigned event""" + + action: Literal["unassigned"] = Field() + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, - None, - ] - ] = Field(default=UNSET) - nuget_metadata: Missing[ + issue_url: str = Field() + labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ Union[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems - ], + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ] - ] = Field(default=UNSET) - package_files: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() + requested_teams: list[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" +class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): + """User""" - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( +class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems - """ + """User""" - tags: Missing[list[str]] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ +class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[list[str]] = Field(default=UNSET) - contributors: Missing[list[str]] = Field(default=UNSET) - engines: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[list[str]] = Field(default=UNSET) - files: Missing[list[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, - None, - ] - ] = Field(default=UNSET) - os: Missing[list[str]] = Field(default=UNSET) - cpu: Missing[list[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 +class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. """ + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ +class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): + """User""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ +class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ + """Link""" - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ + """Link""" - labels: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" - digest: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository """ - id: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, - int, - None, - ] + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) +class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + """License""" - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - published_at: Missing[str] = Field(default=UNSET) - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -492,125 +997,200 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest -) +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnassigned) +model_rebuild(WebhookPullRequestUnassignedPropPullRequest) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPullRequestUnassigned", + "WebhookPullRequestUnassignedPropPullRequest", + "WebhookPullRequestUnassignedPropPullRequestPropAssignee", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnassignedPropPullRequestPropBase", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnassignedPropPullRequestPropHead", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnassignedPropPullRequestPropLinks", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", + "WebhookPullRequestUnassignedPropPullRequestPropMilestone", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestUnassignedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0695.py b/githubkit/versions/v2022_11_28/models/group_0695.py index 44da5980f..8d7595ab9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0695.py +++ b/githubkit/versions/v2022_11_28/models/group_0695.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,18 +18,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0696 import WebhookRegistryPackageUpdatedPropRegistryPackage +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0414 import WebhooksLabel -class WebhookRegistryPackageUpdated(GitHubModel): - """WebhookRegistryPackageUpdated""" +class WebhookPullRequestUnlabeled(GitHubModel): + """pull_request unlabeled event""" - action: Literal["updated"] = Field() + action: Literal["unlabeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,20 +40,1141 @@ class WebhookRegistryPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRegistryPackageUpdated) +class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlabeled) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookRegistryPackageUpdated",) +__all__ = ( + "WebhookPullRequestUnlabeled", + "WebhookPullRequestUnlabeledPropPullRequest", + "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlabeledPropPullRequestPropBase", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropHead", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropLinks", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestUnlabeledPropPullRequestPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0696.py b/githubkit/versions/v2022_11_28/models/group_0696.py index 8d268ffd0..0b11b5c0b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0696.py +++ b/githubkit/versions/v2022_11_28/models/group_0696.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,64 +18,1148 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0697 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, -) +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks + + +class WebhookPullRequestUnlocked(GitHubModel): + """pull_request unlocked event""" + action: Literal["unlocked"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" - created_at: str = Field() - description: None = Field() - ecosystem: str = Field() +class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None + issue_url: str = Field() + labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems ] = Field() - updated_at: str = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + href: str = Field() - avatar_url: str = Field() + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + Groups of organization members that gives permissions on specified repositories. + """ -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlocked) +model_rebuild(WebhookPullRequestUnlockedPropPullRequest) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackage", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", + "WebhookPullRequestUnlocked", + "WebhookPullRequestUnlockedPropPullRequest", + "WebhookPullRequestUnlockedPropPullRequestPropAssignee", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlockedPropPullRequestPropBase", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlockedPropPullRequestPropHead", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlockedPropPullRequestPropLinks", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", + "WebhookPullRequestUnlockedPropPullRequestPropMilestone", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestUnlockedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0697.py b/githubkit/versions/v2022_11_28/models/group_0697.py index f65591256..3d7330617 100644 --- a/githubkit/versions/v2022_11_28/models/group_0697.py +++ b/githubkit/versions/v2022_11_28/models/group_0697.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,187 +18,400 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0613 import WebhookRubygemsMetadata - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - list[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, - None, - ] - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks + + +class WebhookPush(GitHubModel): + """push event""" + + after: str = Field( + description="The SHA of the most recent commit on `ref` after the push." + ) + base_ref: Union[str, None] = Field() + before: str = Field( + description="The SHA of the most recent commit on `ref` before the push." + ) + commits: list[WebhookPushPropCommitsItems] = Field( + description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/rest/commits) to fetch additional commits." + ) + compare: str = Field( + description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." + ) + created: bool = Field(description="Whether this push created the `ref`.") + deleted: bool = Field(description="Whether this push deleted the `ref`.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + forced: bool = Field(description="Whether this push was a force push of the `ref`.") + head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pusher: WebhookPushPropPusher = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ref: str = Field( + description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." + ) + repository: WebhookPushPropRepository = Field( + title="Repository", description="A git repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookPushPropHeadCommit(GitHubModel): + """Commit""" + + added: Missing[list[str]] = Field( + default=UNSET, description="An array of files added in the commit." + ) + author: WebhookPushPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[list[str]] = Field( + default=UNSET, description="An array of files modified by the commit." + ) + removed: Missing[list[str]] = Field( + default=UNSET, description="An array of files removed in the commit." + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems +class WebhookPushPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. """ - tags: Missing[list[str]] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + +class WebhookPushPropHeadCommitPropCommitter(GitHubModel): + """Committer -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems + Metaproperties for Git author/committer information. """ + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropPusher(GitHubModel): + """Committer -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems + Metaproperties for Git author/committer information. """ - content_type: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - md5: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - sha1: Missing[Union[str, None]] = Field(default=UNSET) - sha256: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" +class WebhookPushPropCommitsItems(GitHubModel): + """Commit""" + + added: Missing[list[str]] = Field( + default=UNSET, + description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + author: WebhookPushPropCommitsItemsPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropCommitsItemsPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[list[str]] = Field( + default=UNSET, + description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + ) + removed: Missing[list[str]] = Field( + default=UNSET, + description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() +class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): + """Committer -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor + Metaproperties for Git author/committer information. """ - avatar_url: str = Field() + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - login: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookPushPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookPushPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPushPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor -) +class WebhookPushPropRepositoryPropPermissions(GitHubModel): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookPush) +model_rebuild(WebhookPushPropHeadCommit) +model_rebuild(WebhookPushPropHeadCommitPropAuthor) +model_rebuild(WebhookPushPropHeadCommitPropCommitter) +model_rebuild(WebhookPushPropPusher) +model_rebuild(WebhookPushPropCommitsItems) +model_rebuild(WebhookPushPropCommitsItemsPropAuthor) +model_rebuild(WebhookPushPropCommitsItemsPropCommitter) +model_rebuild(WebhookPushPropRepository) +model_rebuild(WebhookPushPropRepositoryPropCustomProperties) +model_rebuild(WebhookPushPropRepositoryPropLicense) +model_rebuild(WebhookPushPropRepositoryPropOwner) +model_rebuild(WebhookPushPropRepositoryPropPermissions) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPush", + "WebhookPushPropCommitsItems", + "WebhookPushPropCommitsItemsPropAuthor", + "WebhookPushPropCommitsItemsPropCommitter", + "WebhookPushPropHeadCommit", + "WebhookPushPropHeadCommitPropAuthor", + "WebhookPushPropHeadCommitPropCommitter", + "WebhookPushPropPusher", + "WebhookPushPropRepository", + "WebhookPushPropRepositoryPropCustomProperties", + "WebhookPushPropRepositoryPropLicense", + "WebhookPushPropRepositoryPropOwner", + "WebhookPushPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0698.py b/githubkit/versions/v2022_11_28/models/group_0698.py index f67a08bbc..150f42568 100644 --- a/githubkit/versions/v2022_11_28/models/group_0698.py +++ b/githubkit/versions/v2022_11_28/models/group_0698.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0436 import WebhooksRelease +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0699 import WebhookRegistryPackagePublishedPropRegistryPackage -class WebhookReleaseCreated(GitHubModel): - """release created event""" +class WebhookRegistryPackagePublished(GitHubModel): + """WebhookRegistryPackagePublished""" - action: Literal["created"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,17 +44,15 @@ class WebhookReleaseCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( + registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleaseCreated) +model_rebuild(WebhookRegistryPackagePublished) -__all__ = ("WebhookReleaseCreated",) +__all__ = ("WebhookRegistryPackagePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0699.py b/githubkit/versions/v2022_11_28/models/group_0699.py index 92f960fb9..9a2b2ee1f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0699.py +++ b/githubkit/versions/v2022_11_28/models/group_0699.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,44 +17,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0436 import WebhooksRelease - - -class WebhookReleaseDeleted(GitHubModel): - """release deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookReleaseDeleted) - -__all__ = ("WebhookReleaseDeleted",) +from .group_0700 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, +) + + +class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackage""" + + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + ] = Field() + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: Union[str, None] = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + vendor: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackage", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0700.py b/githubkit/versions/v2022_11_28/models/group_0700.py index dfe7e6715..713402574 100644 --- a/githubkit/versions/v2022_11_28/models/group_0700.py +++ b/githubkit/versions/v2022_11_28/models/group_0700.py @@ -9,101 +9,608 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0436 import WebhooksRelease - - -class WebhookReleaseEdited(GitHubModel): - """release edited event""" - - action: Literal["edited"] = Field() - changes: WebhookReleaseEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookReleaseEditedPropChanges(GitHubModel): - """WebhookReleaseEditedPropChanges""" - - body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) - make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( - default=UNSET - ) - - -class WebhookReleaseEditedPropChangesPropBody(GitHubModel): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropName(GitHubModel): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool = Field( - description="Whether this release was explicitly `edited` to be the latest." - ) - - -model_rebuild(WebhookReleaseEdited) -model_rebuild(WebhookReleaseEditedPropChanges) -model_rebuild(WebhookReleaseEditedPropChangesPropBody) -model_rebuild(WebhookReleaseEditedPropChangesPropName) -model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) +from .group_0619 import WebhookRubygemsMetadata + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" + + author: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor + ] = Field(default=UNSET) + body: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, + ] + ] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + container_metadata: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + description: str = Field() + docker_metadata: Missing[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + npm_metadata: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, + None, + ] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: str = Field() + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + target_oid: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + version: str = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata + Items + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + npm_user: Missing[str] = Field(default=UNSET) + author: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, + None, + ] + ] = Field(default=UNSET) + bugs: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, + None, + ] + ] = Field(default=UNSET) + dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies + ] = Field(default=UNSET) + dev_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies + ] = Field(default=UNSET) + peer_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + ] = Field(default=UNSET) + optional_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + ] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + dist: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, + None, + ] + ] = Field(default=UNSET) + git_head: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + main: Missing[str] = Field(default=UNSET) + repository: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, + None, + ] + ] = Field(default=UNSET) + scripts: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts + ] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_version: Missing[str] = Field(default=UNSET) + npm_version: Missing[str] = Field(default=UNSET) + has_shrinkwrap: Missing[bool] = Field(default=UNSET) + maintainers: Missing[list[str]] = Field(default=UNSET) + contributors: Missing[list[str]] = Field(default=UNSET) + engines: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines + ] = Field(default=UNSET) + keywords: Missing[list[str]] = Field(default=UNSET) + files: Missing[list[str]] = Field(default=UNSET) + bin_: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin + ] = Field(default=UNSET, alias="bin") + man: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan + ] = Field(default=UNSET) + directories: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, + None, + ] + ] = Field(default=UNSET) + os: Missing[list[str]] = Field(default=UNSET) + cpu: Missing[list[str]] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + installation_command: Missing[str] = Field(default=UNSET) + release_id: Missing[int] = Field(default=UNSET) + commit_oid: Missing[str] = Field(default=UNSET) + published_via_actions: Missing[bool] = Field(default=UNSET) + deleted_by_id: Missing[int] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems + """ + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: Union[str, None] = Field() + size: int = Field() + state: Union[str, None] = Field() + updated_at: str = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ + + labels: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, + None, + ] + ] = Field(default=UNSET) + manifest: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, + None, + ] + ] = Field(default=UNSET) + tag: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag + ] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, + int, + None, + ] + ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, + ] + ] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: Missing[str] = Field(default=UNSET) + branch: Missing[str] = Field(default=UNSET) + commit: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + + author: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + published_at: Missing[str] = Field(default=UNSET) + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) __all__ = ( - "WebhookReleaseEdited", - "WebhookReleaseEditedPropChanges", - "WebhookReleaseEditedPropChangesPropBody", - "WebhookReleaseEditedPropChangesPropMakeLatest", - "WebhookReleaseEditedPropChangesPropName", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0701.py b/githubkit/versions/v2022_11_28/models/group_0701.py index 0c36435c6..8f6b8b148 100644 --- a/githubkit/versions/v2022_11_28/models/group_0701.py +++ b/githubkit/versions/v2022_11_28/models/group_0701.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0702 import WebhookRegistryPackageUpdatedPropRegistryPackage -class WebhookReleasePrereleased(GitHubModel): - """release prereleased event""" +class WebhookRegistryPackageUpdated(GitHubModel): + """WebhookRegistryPackageUpdated""" - action: Literal["prereleased"] = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,161 +44,15 @@ class WebhookReleasePrereleased(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhookReleasePrereleasedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookReleasePrereleasedPropRelease(GitHubModel): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( - Field() - ) - assets_url: str = Field() - author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: Literal[True] = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleasePrereleased) -model_rebuild(WebhookReleasePrereleasedPropRelease) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) -model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) +model_rebuild(WebhookRegistryPackageUpdated) -__all__ = ( - "WebhookReleasePrereleased", - "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleasePropAssetsItems", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", - "WebhookReleasePrereleasedPropReleasePropAuthor", - "WebhookReleasePrereleasedPropReleasePropReactions", -) +__all__ = ("WebhookRegistryPackageUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0702.py b/githubkit/versions/v2022_11_28/models/group_0702.py index 655c2dd83..3a533ebee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0702.py +++ b/githubkit/versions/v2022_11_28/models/group_0702.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,46 +17,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0437 import WebhooksRelease1 - - -class WebhookReleasePublished(GitHubModel): - """release published event""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease1 = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(WebhookReleasePublished) - -__all__ = ("WebhookReleasePublished",) +from .group_0703 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, +) + + +class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" + + created_at: str = Field() + description: None = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() + registry: Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" + + +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackage", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0703.py b/githubkit/versions/v2022_11_28/models/group_0703.py index 87bf7a97a..2314433c0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0703.py +++ b/githubkit/versions/v2022_11_28/models/group_0703.py @@ -9,54 +9,195 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0436 import WebhooksRelease - - -class WebhookReleaseReleased(GitHubModel): - """release released event""" - - action: Literal["released"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(WebhookReleaseReleased) - -__all__ = ("WebhookReleaseReleased",) +from .group_0619 import WebhookRubygemsMetadata + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + list[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, + None, + ] + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: str = Field() + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt + ems + """ + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil + esItems + """ + + content_type: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + download_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + md5: Missing[Union[str, None]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + sha1: Missing[Union[str, None]] = Field(default=UNSET) + sha256: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + state: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro + pAuthor + """ + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0704.py b/githubkit/versions/v2022_11_28/models/group_0704.py index a497babe1..a4400d0f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0704.py +++ b/githubkit/versions/v2022_11_28/models/group_0704.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0437 import WebhooksRelease1 +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0442 import WebhooksRelease -class WebhookReleaseUnpublished(GitHubModel): - """release unpublished event""" +class WebhookReleaseCreated(GitHubModel): + """release created event""" - action: Literal["unpublished"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ class WebhookReleaseUnpublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease1 = Field( + release: WebhooksRelease = Field( title="Release", description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", ) @@ -52,11 +52,9 @@ class WebhookReleaseUnpublished(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleaseUnpublished) +model_rebuild(WebhookReleaseCreated) -__all__ = ("WebhookReleaseUnpublished",) +__all__ = ("WebhookReleaseCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0705.py b/githubkit/versions/v2022_11_28/models/group_0705.py index 475fba53c..7b21d316e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0705.py +++ b/githubkit/versions/v2022_11_28/models/group_0705.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0158 import RepositoryAdvisory -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0442 import WebhooksRelease -class WebhookRepositoryAdvisoryPublished(GitHubModel): - """Repository advisory published event""" +class WebhookReleaseDeleted(GitHubModel): + """release deleted event""" - action: Literal["published"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,17 @@ class WebhookRepositoryAdvisoryPublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryAdvisoryPublished) +model_rebuild(WebhookReleaseDeleted) -__all__ = ("WebhookRepositoryAdvisoryPublished",) +__all__ = ("WebhookReleaseDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0706.py b/githubkit/versions/v2022_11_28/models/group_0706.py index 02727aa15..84c4c9d8d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0706.py +++ b/githubkit/versions/v2022_11_28/models/group_0706.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0158 import RepositoryAdvisory -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0442 import WebhooksRelease -class WebhookRepositoryAdvisoryReported(GitHubModel): - """Repository advisory reported event""" +class WebhookReleaseEdited(GitHubModel): + """release edited event""" - action: Literal["reported"] = Field() + action: Literal["edited"] = Field() + changes: WebhookReleaseEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +45,65 @@ class WebhookRepositoryAdvisoryReported(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookRepositoryAdvisoryReported) +class WebhookReleaseEditedPropChanges(GitHubModel): + """WebhookReleaseEditedPropChanges""" + + body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) + make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( + default=UNSET + ) + + +class WebhookReleaseEditedPropChangesPropBody(GitHubModel): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropName(GitHubModel): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool = Field( + description="Whether this release was explicitly `edited` to be the latest." + ) + + +model_rebuild(WebhookReleaseEdited) +model_rebuild(WebhookReleaseEditedPropChanges) +model_rebuild(WebhookReleaseEditedPropChangesPropBody) +model_rebuild(WebhookReleaseEditedPropChangesPropName) +model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) -__all__ = ("WebhookRepositoryAdvisoryReported",) +__all__ = ( + "WebhookReleaseEdited", + "WebhookReleaseEditedPropChanges", + "WebhookReleaseEditedPropChangesPropBody", + "WebhookReleaseEditedPropChangesPropMakeLatest", + "WebhookReleaseEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0707.py b/githubkit/versions/v2022_11_28/models/group_0707.py index 5f8a8d9e3..3d8fc32af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0707.py +++ b/githubkit/versions/v2022_11_28/models/group_0707.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,17 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRepositoryArchived(GitHubModel): - """repository archived event""" +class WebhookReleasePrereleased(GitHubModel): + """release prereleased event""" - action: Literal["archived"] = Field() + action: Literal["prereleased"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +44,161 @@ class WebhookRepositoryArchived(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhookReleasePrereleasedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookReleasePrereleasedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( + Field() + ) + assets_url: str = Field() + author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: Literal[True] = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -model_rebuild(WebhookRepositoryArchived) +model_rebuild(WebhookReleasePrereleased) +model_rebuild(WebhookReleasePrereleasedPropRelease) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) +model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) -__all__ = ("WebhookRepositoryArchived",) +__all__ = ( + "WebhookReleasePrereleased", + "WebhookReleasePrereleasedPropRelease", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0708.py b/githubkit/versions/v2022_11_28/models/group_0708.py index 397c3a242..52567c680 100644 --- a/githubkit/versions/v2022_11_28/models/group_0708.py +++ b/githubkit/versions/v2022_11_28/models/group_0708.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0443 import WebhooksRelease1 -class WebhookRepositoryCreated(GitHubModel): - """repository created event""" +class WebhookReleasePublished(GitHubModel): + """release published event""" - action: Literal["created"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +44,19 @@ class WebhookRepositoryCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease1 = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryCreated) +model_rebuild(WebhookReleasePublished) -__all__ = ("WebhookRepositoryCreated",) +__all__ = ("WebhookReleasePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0709.py b/githubkit/versions/v2022_11_28/models/group_0709.py index dded57790..23d879d34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0709.py +++ b/githubkit/versions/v2022_11_28/models/group_0709.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0442 import WebhooksRelease -class WebhookRepositoryDeleted(GitHubModel): - """repository deleted event""" +class WebhookReleaseReleased(GitHubModel): + """release released event""" - action: Literal["deleted"] = Field() + action: Literal["released"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +44,19 @@ class WebhookRepositoryDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryDeleted) +model_rebuild(WebhookReleaseReleased) -__all__ = ("WebhookRepositoryDeleted",) +__all__ = ("WebhookReleaseReleased",) diff --git a/githubkit/versions/v2022_11_28/models/group_0710.py b/githubkit/versions/v2022_11_28/models/group_0710.py index dcb515c17..3d807860c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0710.py +++ b/githubkit/versions/v2022_11_28/models/group_0710.py @@ -9,39 +9,33 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0443 import WebhooksRelease1 -class WebhookRepositoryDispatchSample(GitHubModel): - """repository_dispatch event""" +class WebhookReleaseUnpublished(GitHubModel): + """release unpublished event""" - action: str = Field( - description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - branch: str = Field() - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( - Field( - description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - ) + action: Literal["unpublished"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: SimpleInstallation = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) @@ -50,25 +44,19 @@ class WebhookRepositoryDispatchSample(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease1 = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): - """WebhookRepositoryDispatchSamplePropClientPayload - - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. - """ + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryDispatchSample) -model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) +model_rebuild(WebhookReleaseUnpublished) -__all__ = ( - "WebhookRepositoryDispatchSample", - "WebhookRepositoryDispatchSamplePropClientPayload", -) +__all__ = ("WebhookReleaseUnpublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0711.py b/githubkit/versions/v2022_11_28/models/group_0711.py index 8b25518cc..499716419 100644 --- a/githubkit/versions/v2022_11_28/models/group_0711.py +++ b/githubkit/versions/v2022_11_28/models/group_0711.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0163 import RepositoryAdvisory +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRepositoryEdited(GitHubModel): - """repository edited event""" +class WebhookRepositoryAdvisoryPublished(GitHubModel): + """Repository advisory published event""" - action: Literal["edited"] = Field() - changes: WebhookRepositoryEditedPropChanges = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,60 +48,14 @@ class WebhookRepositoryEdited(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryEditedPropChanges(GitHubModel): - """WebhookRepositoryEditedPropChanges""" - - default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( - Field(default=UNSET) - ) - description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( - default=UNSET + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." ) - homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( - default=UNSET + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) - - -class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: Missing[Union[list[str], None]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryEdited) -model_rebuild(WebhookRepositoryEditedPropChanges) -model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) -model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) -model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) -model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) +model_rebuild(WebhookRepositoryAdvisoryPublished) -__all__ = ( - "WebhookRepositoryEdited", - "WebhookRepositoryEditedPropChanges", - "WebhookRepositoryEditedPropChangesPropDefaultBranch", - "WebhookRepositoryEditedPropChangesPropDescription", - "WebhookRepositoryEditedPropChangesPropHomepage", - "WebhookRepositoryEditedPropChangesPropTopics", -) +__all__ = ("WebhookRepositoryAdvisoryPublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0712.py b/githubkit/versions/v2022_11_28/models/group_0712.py index 0f6d32801..9f30eb993 100644 --- a/githubkit/versions/v2022_11_28/models/group_0712.py +++ b/githubkit/versions/v2022_11_28/models/group_0712.py @@ -17,16 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0163 import RepositoryAdvisory +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRepositoryImport(GitHubModel): - """repository_import event""" +class WebhookRepositoryAdvisoryReported(GitHubModel): + """Repository advisory reported event""" + action: Literal["reported"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -46,10 +48,14 @@ class WebhookRepositoryImport(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - status: Literal["success", "cancelled", "failure"] = Field() + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryImport) +model_rebuild(WebhookRepositoryAdvisoryReported) -__all__ = ("WebhookRepositoryImport",) +__all__ = ("WebhookRepositoryAdvisoryReported",) diff --git a/githubkit/versions/v2022_11_28/models/group_0713.py b/githubkit/versions/v2022_11_28/models/group_0713.py index 579c1c678..d4517c22a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0713.py +++ b/githubkit/versions/v2022_11_28/models/group_0713.py @@ -17,17 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRepositoryPrivatized(GitHubModel): - """repository privatized event""" +class WebhookRepositoryArchived(GitHubModel): + """repository archived event""" - action: Literal["privatized"] = Field() + action: Literal["archived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +50,6 @@ class WebhookRepositoryPrivatized(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryPrivatized) +model_rebuild(WebhookRepositoryArchived) -__all__ = ("WebhookRepositoryPrivatized",) +__all__ = ("WebhookRepositoryArchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0714.py b/githubkit/versions/v2022_11_28/models/group_0714.py index 2055afbb3..991b483e0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0714.py +++ b/githubkit/versions/v2022_11_28/models/group_0714.py @@ -17,17 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRepositoryPublicized(GitHubModel): - """repository publicized event""" +class WebhookRepositoryCreated(GitHubModel): + """repository created event""" - action: Literal["publicized"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +50,6 @@ class WebhookRepositoryPublicized(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryPublicized) +model_rebuild(WebhookRepositoryCreated) -__all__ = ("WebhookRepositoryPublicized",) +__all__ = ("WebhookRepositoryCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0715.py b/githubkit/versions/v2022_11_28/models/group_0715.py index 65d1384be..e1004fe1f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0715.py +++ b/githubkit/versions/v2022_11_28/models/group_0715.py @@ -17,18 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRepositoryRenamed(GitHubModel): - """repository renamed event""" +class WebhookRepositoryDeleted(GitHubModel): + """repository deleted event""" - action: Literal["renamed"] = Field() - changes: WebhookRepositoryRenamedPropChanges = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,32 +50,6 @@ class WebhookRepositoryRenamed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryRenamedPropChanges(GitHubModel): - """WebhookRepositoryRenamedPropChanges""" +model_rebuild(WebhookRepositoryDeleted) - repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookRepositoryRenamed) -model_rebuild(WebhookRepositoryRenamedPropChanges) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) - -__all__ = ( - "WebhookRepositoryRenamed", - "WebhookRepositoryRenamedPropChanges", - "WebhookRepositoryRenamedPropChangesPropRepository", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", -) +__all__ = ("WebhookRepositoryDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0716.py b/githubkit/versions/v2022_11_28/models/group_0716.py index dd67964db..9fe32060b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0716.py +++ b/githubkit/versions/v2022_11_28/models/group_0716.py @@ -9,33 +9,39 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0154 import RepositoryRuleset -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRepositoryRulesetCreated(GitHubModel): - """repository ruleset created event""" +class WebhookRepositoryDispatchSample(GitHubModel): + """repository_dispatch event""" - action: Literal["created"] = Field() + action: str = Field( + description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + branch: str = Field() + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( + Field( + description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, + installation: SimpleInstallation = Field( title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) @@ -44,18 +50,25 @@ class WebhookRepositoryRulesetCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetCreated) +class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): + """WebhookRepositoryDispatchSamplePropClientPayload + + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ + + +model_rebuild(WebhookRepositoryDispatchSample) +model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) -__all__ = ("WebhookRepositoryRulesetCreated",) +__all__ = ( + "WebhookRepositoryDispatchSample", + "WebhookRepositoryDispatchSamplePropClientPayload", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0717.py b/githubkit/versions/v2022_11_28/models/group_0717.py index f6d5abbe1..9aa77fb08 100644 --- a/githubkit/versions/v2022_11_28/models/group_0717.py +++ b/githubkit/versions/v2022_11_28/models/group_0717.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0154 import RepositoryRuleset -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRepositoryRulesetDeleted(GitHubModel): - """repository ruleset deleted event""" +class WebhookRepositoryEdited(GitHubModel): + """repository edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookRepositoryEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,64 @@ class WebhookRepositoryRulesetDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetDeleted) +class WebhookRepositoryEditedPropChanges(GitHubModel): + """WebhookRepositoryEditedPropChanges""" + + default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( + Field(default=UNSET) + ) + description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( + default=UNSET + ) + homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( + default=UNSET + ) + topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) + + +class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + + from_: str = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDescription""" + + from_: Union[str, None] = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: Missing[Union[list[str], None]] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryEdited) +model_rebuild(WebhookRepositoryEditedPropChanges) +model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) +model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) +model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) +model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) -__all__ = ("WebhookRepositoryRulesetDeleted",) +__all__ = ( + "WebhookRepositoryEdited", + "WebhookRepositoryEditedPropChanges", + "WebhookRepositoryEditedPropChangesPropDefaultBranch", + "WebhookRepositoryEditedPropChangesPropDescription", + "WebhookRepositoryEditedPropChangesPropHomepage", + "WebhookRepositoryEditedPropChangesPropTopics", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0718.py b/githubkit/versions/v2022_11_28/models/group_0718.py index 3843f8a1a..9b1520be7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0718.py +++ b/githubkit/versions/v2022_11_28/models/group_0718.py @@ -17,19 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0154 import RepositoryRuleset -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0719 import WebhookRepositoryRulesetEditedPropChanges +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRepositoryRulesetEdited(GitHubModel): - """repository ruleset edited event""" +class WebhookRepositoryImport(GitHubModel): + """repository_import event""" - action: Literal["edited"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,19 +42,14 @@ class WebhookRepositoryRulesetEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) - changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookRepositoryRulesetEdited) +model_rebuild(WebhookRepositoryImport) -__all__ = ("WebhookRepositoryRulesetEdited",) +__all__ = ("WebhookRepositoryImport",) diff --git a/githubkit/versions/v2022_11_28/models/group_0719.py b/githubkit/versions/v2022_11_28/models/group_0719.py index b0586977a..af4ecf517 100644 --- a/githubkit/versions/v2022_11_28/models/group_0719.py +++ b/githubkit/versions/v2022_11_28/models/group_0719.py @@ -9,51 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0720 import WebhookRepositoryRulesetEditedPropChangesPropConditions -from .group_0722 import WebhookRepositoryRulesetEditedPropChangesPropRules +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryPrivatized(GitHubModel): + """repository privatized event""" - name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( - default=UNSET + action: Literal["privatized"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( - Field(default=UNSET) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( - Field(default=UNSET) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryRulesetEditedPropChanges) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) +model_rebuild(WebhookRepositoryPrivatized) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", - "WebhookRepositoryRulesetEditedPropChangesPropName", -) +__all__ = ("WebhookRepositoryPrivatized",) diff --git a/githubkit/versions/v2022_11_28/models/group_0720.py b/githubkit/versions/v2022_11_28/models/group_0720.py index d4e13946f..5923dcf1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0720.py +++ b/githubkit/versions/v2022_11_28/models/group_0720.py @@ -9,28 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0114 import RepositoryRulesetConditions -from .group_0721 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, -) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - - added: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) - deleted: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) - updated: Missing[ - list[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] - ] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks + + +class WebhookRepositoryPublicized(GitHubModel): + """repository publicized event""" + + action: Literal["publicized"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRepositoryPublicized) + +__all__ = ("WebhookRepositoryPublicized",) diff --git a/githubkit/versions/v2022_11_28/models/group_0721.py b/githubkit/versions/v2022_11_28/models/group_0721.py index 250365a00..0fb67aecd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0721.py +++ b/githubkit/versions/v2022_11_28/models/group_0721.py @@ -9,113 +9,74 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0114 import RepositoryRulesetConditions +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class WebhookRepositoryRenamed(GitHubModel): + """repository renamed event""" - condition: Missing[RepositoryRulesetConditions] = Field( + action: Literal["renamed"] = Field() + changes: WebhookRepositoryRenamedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType - ] = Field(default=UNSET) - target: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget - ] = Field(default=UNSET) - include: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude - ] = Field(default=UNSET) - exclude: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ +class WebhookRepositoryRenamedPropChanges(GitHubModel): + """WebhookRepositoryRenamedPropChanges""" - from_: Missing[str] = Field(default=UNSET, alias="from") + repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ +class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepository""" - from_: Missing[list[str]] = Field(default=UNSET, alias="from") + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ +class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - from_: Missing[list[str]] = Field(default=UNSET, alias="from") + from_: str = Field(alias="from") -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude -) +model_rebuild(WebhookRepositoryRenamed) +model_rebuild(WebhookRepositoryRenamedPropChanges) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) __all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", + "WebhookRepositoryRenamed", + "WebhookRepositoryRenamedPropChanges", + "WebhookRepositoryRenamedPropChangesPropRepository", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0722.py b/githubkit/versions/v2022_11_28/models/group_0722.py index 892aa682e..fd2fe1285 100644 --- a/githubkit/versions/v2022_11_28/models/group_0722.py +++ b/githubkit/versions/v2022_11_28/models/group_0722.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,95 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0125 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0126 import RepositoryRuleUpdate -from .group_0128 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0129 import RepositoryRuleMergeQueue -from .group_0131 import RepositoryRuleRequiredDeployments -from .group_0134 import RepositoryRulePullRequest -from .group_0136 import RepositoryRuleRequiredStatusChecks -from .group_0138 import RepositoryRuleCommitMessagePattern -from .group_0140 import RepositoryRuleCommitAuthorEmailPattern -from .group_0142 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleBranchNamePattern -from .group_0146 import RepositoryRuleTagNamePattern -from .group_0149 import RepositoryRuleWorkflows -from .group_0151 import RepositoryRuleCodeScanning -from .group_0153 import RepositoryRuleOneof18 -from .group_0723 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, -) - - -class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" - - added: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - deleted: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - updated: Missing[ - list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] - ] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) +from .group_0003 import SimpleUser +from .group_0159 import RepositoryRuleset +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks + + +class WebhookRepositoryRulesetCreated(GitHubModel): + """repository ruleset created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRepositoryRulesetCreated) + +__all__ = ("WebhookRepositoryRulesetCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0723.py b/githubkit/versions/v2022_11_28/models/group_0723.py index f708011e8..892ff7dde 100644 --- a/githubkit/versions/v2022_11_28/models/group_0723.py +++ b/githubkit/versions/v2022_11_28/models/group_0723.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,127 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0125 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0126 import RepositoryRuleUpdate -from .group_0128 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0129 import RepositoryRuleMergeQueue -from .group_0131 import RepositoryRuleRequiredDeployments -from .group_0134 import RepositoryRulePullRequest -from .group_0136 import RepositoryRuleRequiredStatusChecks -from .group_0138 import RepositoryRuleCommitMessagePattern -from .group_0140 import RepositoryRuleCommitAuthorEmailPattern -from .group_0142 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleBranchNamePattern -from .group_0146 import RepositoryRuleTagNamePattern -from .group_0149 import RepositoryRuleWorkflows -from .group_0151 import RepositoryRuleCodeScanning -from .group_0153 import RepositoryRuleOneof18 - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - - rule: Missing[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration - ] = Field(default=UNSET) - rule_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType - ] = Field(default=UNSET) - pattern: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern -) - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", -) +from .group_0003 import SimpleUser +from .group_0159 import RepositoryRuleset +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks + + +class WebhookRepositoryRulesetDeleted(GitHubModel): + """repository ruleset deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRepositoryRulesetDeleted) + +__all__ = ("WebhookRepositoryRulesetDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0724.py b/githubkit/versions/v2022_11_28/models/group_0724.py index 00e7b6fe8..021414f08 100644 --- a/githubkit/versions/v2022_11_28/models/group_0724.py +++ b/githubkit/versions/v2022_11_28/models/group_0724.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0159 import RepositoryRuleset +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0725 import WebhookRepositoryRulesetEditedPropChanges -class WebhookRepositoryTransferred(GitHubModel): - """repository transferred event""" +class WebhookRepositoryRulesetEdited(GitHubModel): + """repository ruleset edited event""" - action: Literal["transferred"] = Field() - changes: WebhookRepositoryTransferredPropChanges = Field() + action: Literal["edited"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,97 +45,19 @@ class WebhookRepositoryTransferred(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryTransferredPropChanges(GitHubModel): - """WebhookRepositoryTransferredPropChanges""" - - owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() - - -class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwner""" - - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( - alias="from" + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", ) + changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - - organization: Missing[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization - ] = Field(default=UNSET, title="Organization") - user: Missing[ - Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] - ] = Field(default=UNSET, title="User") - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( - GitHubModel -): - """Organization""" - - avatar_url: str = Field() - description: Union[str, None] = Field() - events_url: str = Field() - hooks_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - issues_url: str = Field() - login: str = Field() - members_url: str = Field() - node_id: str = Field() - public_members_url: str = Field() - repos_url: str = Field() - url: str = Field() - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryTransferred) -model_rebuild(WebhookRepositoryTransferredPropChanges) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) +model_rebuild(WebhookRepositoryRulesetEdited) -__all__ = ( - "WebhookRepositoryTransferred", - "WebhookRepositoryTransferredPropChanges", - "WebhookRepositoryTransferredPropChangesPropOwner", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", -) +__all__ = ("WebhookRepositoryRulesetEdited",) diff --git a/githubkit/versions/v2022_11_28/models/group_0725.py b/githubkit/versions/v2022_11_28/models/group_0725.py index de8f344ec..c6b4b837b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0725.py +++ b/githubkit/versions/v2022_11_28/models/group_0725.py @@ -9,47 +9,51 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0726 import WebhookRepositoryRulesetEditedPropChangesPropConditions +from .group_0728 import WebhookRepositoryRulesetEditedPropChangesPropRules -class WebhookRepositoryUnarchived(GitHubModel): - """repository unarchived event""" +class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["unarchived"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( + default=UNSET ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( + Field(default=UNSET) ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( + Field(default=UNSET) ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryUnarchived) +class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropName""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryRulesetEditedPropChanges) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) -__all__ = ("WebhookRepositoryUnarchived",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", + "WebhookRepositoryRulesetEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0726.py b/githubkit/versions/v2022_11_28/models/group_0726.py index 1a8dae962..3aba9c830 100644 --- a/githubkit/versions/v2022_11_28/models/group_0726.py +++ b/githubkit/versions/v2022_11_28/models/group_0726.py @@ -9,52 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0438 import WebhooksAlert - - -class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): - """repository_vulnerability_alert create event""" - - action: Literal["create"] = Field() - alert: WebhooksAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) - -__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) +from .group_0119 import RepositoryRulesetConditions +from .group_0727 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, +) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" + + added: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) + deleted: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) + updated: Missing[ + list[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] + ] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) + +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0727.py b/githubkit/versions/v2022_11_28/models/group_0727.py index 297494689..7f108089c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0727.py +++ b/githubkit/versions/v2022_11_28/models/group_0727.py @@ -9,113 +9,113 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0119 import RepositoryRulesetConditions -class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): - """repository_vulnerability_alert dismiss event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - action: Literal["dismiss"] = Field() - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( + condition: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges + ] = Field(default=UNSET) -class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): - """Repository Vulnerability Alert Alert +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ - The security alert of the vulnerable dependency. + condition_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType + ] = Field(default=UNSET) + target: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget + ] = Field(default=UNSET) + include: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude + ] = Field(default=UNSET) + exclude: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType """ - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) - dismiss_reason: str = Field() - dismissed_at: str = Field() - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None - ] = Field(title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["dismissed"] = Field() - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: Missing[list[str]] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: Missing[list[str]] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude +) __all__ = ( - "WebhookRepositoryVulnerabilityAlertDismiss", - "WebhookRepositoryVulnerabilityAlertDismissPropAlert", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0728.py b/githubkit/versions/v2022_11_28/models/group_0728.py index f6859d0d3..9d13ca589 100644 --- a/githubkit/versions/v2022_11_28/models/group_0728.py +++ b/githubkit/versions/v2022_11_28/models/group_0728.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,44 +17,95 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0438 import WebhooksAlert - - -class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): - """repository_vulnerability_alert reopen event""" - - action: Literal["reopen"] = Field() - alert: WebhooksAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) +from .group_0130 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0131 import RepositoryRuleUpdate +from .group_0133 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0134 import RepositoryRuleMergeQueue +from .group_0136 import RepositoryRuleRequiredDeployments +from .group_0139 import RepositoryRulePullRequest +from .group_0141 import RepositoryRuleRequiredStatusChecks +from .group_0143 import RepositoryRuleCommitMessagePattern +from .group_0145 import RepositoryRuleCommitAuthorEmailPattern +from .group_0147 import RepositoryRuleCommitterEmailPattern +from .group_0149 import RepositoryRuleBranchNamePattern +from .group_0151 import RepositoryRuleTagNamePattern +from .group_0154 import RepositoryRuleWorkflows +from .group_0156 import RepositoryRuleCodeScanning +from .group_0158 import RepositoryRuleOneof18 +from .group_0729 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, +) + + +class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + deleted: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + updated: Missing[ + list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] + ] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) + +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) diff --git a/githubkit/versions/v2022_11_28/models/group_0729.py b/githubkit/versions/v2022_11_28/models/group_0729.py index 8d7b5488b..e764a10a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0729.py +++ b/githubkit/versions/v2022_11_28/models/group_0729.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,102 +17,127 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks - - -class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): - """repository_vulnerability_alert resolve event""" - - action: Literal["resolve"] = Field() - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. +from .group_0130 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0131 import RepositoryRuleUpdate +from .group_0133 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0134 import RepositoryRuleMergeQueue +from .group_0136 import RepositoryRuleRequiredDeployments +from .group_0139 import RepositoryRulePullRequest +from .group_0141 import RepositoryRuleRequiredStatusChecks +from .group_0143 import RepositoryRuleCommitMessagePattern +from .group_0145 import RepositoryRuleCommitAuthorEmailPattern +from .group_0147 import RepositoryRuleCommitterEmailPattern +from .group_0149 import RepositoryRuleBranchNamePattern +from .group_0151 import RepositoryRuleTagNamePattern +from .group_0154 import RepositoryRuleWorkflows +from .group_0156 import RepositoryRuleCodeScanning +from .group_0158 import RepositoryRuleOneof18 + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" + + rule: Missing[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration + ] = Field(default=UNSET) + rule_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType + ] = Field(default=UNSET) + pattern: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType """ - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, None] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["fixed", "open"] = Field() - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern +) __all__ = ( - "WebhookRepositoryVulnerabilityAlertResolve", - "WebhookRepositoryVulnerabilityAlertResolvePropAlert", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0730.py b/githubkit/versions/v2022_11_28/models/group_0730.py index df0509d54..7c0390fc3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0730.py +++ b/githubkit/versions/v2022_11_28/models/group_0730.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0439 import SecretScanningAlertWebhook +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookSecretScanningAlertCreated(GitHubModel): - """secret_scanning_alert created event""" +class WebhookRepositoryTransferred(GitHubModel): + """repository transferred event""" - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["transferred"] = Field() + changes: WebhookRepositoryTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +48,93 @@ class WebhookSecretScanningAlertCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookRepositoryTransferredPropChanges(GitHubModel): + """WebhookRepositoryTransferredPropChanges""" + + owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() + + +class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwner""" + + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( + alias="from" ) -model_rebuild(WebhookSecretScanningAlertCreated) +class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + + organization: Missing[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization + ] = Field(default=UNSET, title="Organization") + user: Missing[ + Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] + ] = Field(default=UNSET, title="User") + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( + GitHubModel +): + """Organization""" + + avatar_url: str = Field() + description: Union[str, None] = Field() + events_url: str = Field() + hooks_url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + issues_url: str = Field() + login: str = Field() + members_url: str = Field() + node_id: str = Field() + public_members_url: str = Field() + repos_url: str = Field() + url: str = Field() + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryTransferred) +model_rebuild(WebhookRepositoryTransferredPropChanges) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) -__all__ = ("WebhookSecretScanningAlertCreated",) +__all__ = ( + "WebhookRepositoryTransferred", + "WebhookRepositoryTransferredPropChanges", + "WebhookRepositoryTransferredPropChangesPropOwner", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0731.py b/githubkit/versions/v2022_11_28/models/group_0731.py index a2483c2a3..3b8742830 100644 --- a/githubkit/versions/v2022_11_28/models/group_0731.py +++ b/githubkit/versions/v2022_11_28/models/group_0731.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,24 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0439 import SecretScanningAlertWebhook +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookSecretScanningAlertLocationCreated(GitHubModel): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryUnarchived(GitHubModel): + """repository unarchived event""" - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["unarchived"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - location: SecretScanningLocation = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -47,267 +50,6 @@ class WebhookSecretScanningAlertLocationCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class SecretScanningLocation(GitHubModel): - """SecretScanningLocation""" - - type: Missing[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] = Field( - default=UNSET, - description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", - ) - details: Missing[ - Union[ - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, - ] - ] = Field(default=UNSET) - - -class SecretScanningLocationCommit(GitHubModel): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str = Field(description="The file path in the repository") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - blob_url: str = Field(description="The API URL to get the associated blob resource") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The API URL to get the associated commit resource" - ) - - -class SecretScanningLocationWikiCommit(GitHubModel): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str = Field(description="The file path of the wiki page") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - page_url: str = Field(description="The GitHub URL to get the associated wiki page") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The GitHub URL to get the associated wiki commit" - ) - - -class SecretScanningLocationIssueTitle(GitHubModel): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueBody(GitHubModel): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueComment(GitHubModel): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str = Field( - description="The API URL to get the issue comment where the secret was detected." - ) - - -class SecretScanningLocationDiscussionTitle(GitHubModel): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionBody(GitHubModel): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionComment(GitHubModel): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str = Field( - description="The API URL to get the discussion comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestTitle(GitHubModel): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestBody(GitHubModel): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestComment(GitHubModel): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str = Field( - description="The API URL to get the pull request comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReview(GitHubModel): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str = Field( - description="The API URL to get the pull request review where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReviewComment(GitHubModel): - """SecretScanningLocationPullRequestReviewComment - - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. - """ - - pull_request_review_comment_url: str = Field( - description="The API URL to get the pull request review comment where the secret was detected." - ) - - -model_rebuild(WebhookSecretScanningAlertLocationCreated) -model_rebuild(SecretScanningLocation) -model_rebuild(SecretScanningLocationCommit) -model_rebuild(SecretScanningLocationWikiCommit) -model_rebuild(SecretScanningLocationIssueTitle) -model_rebuild(SecretScanningLocationIssueBody) -model_rebuild(SecretScanningLocationIssueComment) -model_rebuild(SecretScanningLocationDiscussionTitle) -model_rebuild(SecretScanningLocationDiscussionBody) -model_rebuild(SecretScanningLocationDiscussionComment) -model_rebuild(SecretScanningLocationPullRequestTitle) -model_rebuild(SecretScanningLocationPullRequestBody) -model_rebuild(SecretScanningLocationPullRequestComment) -model_rebuild(SecretScanningLocationPullRequestReview) -model_rebuild(SecretScanningLocationPullRequestReviewComment) +model_rebuild(WebhookRepositoryUnarchived) -__all__ = ( - "SecretScanningLocation", - "SecretScanningLocationCommit", - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationIssueComment", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestComment", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationPullRequestReviewComment", - "SecretScanningLocationPullRequestTitle", - "SecretScanningLocationWikiCommit", - "WebhookSecretScanningAlertLocationCreated", -) +__all__ = ("WebhookRepositoryUnarchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0732.py b/githubkit/versions/v2022_11_28/models/group_0732.py index 875448bf5..1ed12c96f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0732.py +++ b/githubkit/versions/v2022_11_28/models/group_0732.py @@ -9,19 +9,52 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0444 import WebhooksAlert -class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): + """repository_vulnerability_alert create event""" - payload: str = Field( - description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." + action: Literal["create"] = Field() + alert: WebhooksAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) +model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0733.py b/githubkit/versions/v2022_11_28/models/group_0733.py index 4241b63fe..349aba5ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0733.py +++ b/githubkit/versions/v2022_11_28/models/group_0733.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,19 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0439 import SecretScanningAlertWebhook +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): - """secret_scanning_alert publicly leaked event""" +class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): + """repository_vulnerability_alert dismiss event""" - action: Literal["publicly_leaked"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["dismiss"] = Field() + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +52,70 @@ class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) + dismiss_reason: str = Field() + dismissed_at: str = Field() + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None + ] = Field(title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["dismissed"] = Field() + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSecretScanningAlertPubliclyLeaked) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) -__all__ = ("WebhookSecretScanningAlertPubliclyLeaked",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismiss", + "WebhookRepositoryVulnerabilityAlertDismissPropAlert", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0734.py b/githubkit/versions/v2022_11_28/models/group_0734.py index 0051157f7..13417c7ae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0734.py +++ b/githubkit/versions/v2022_11_28/models/group_0734.py @@ -17,19 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0439 import SecretScanningAlertWebhook +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0444 import WebhooksAlert -class WebhookSecretScanningAlertReopened(GitHubModel): - """secret_scanning_alert reopened event""" +class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): + """repository_vulnerability_alert reopen event""" - action: Literal["reopened"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["reopen"] = Field() + alert: WebhooksAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +52,9 @@ class WebhookSecretScanningAlertReopened(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertReopened) +model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) -__all__ = ("WebhookSecretScanningAlertReopened",) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) diff --git a/githubkit/versions/v2022_11_28/models/group_0735.py b/githubkit/versions/v2022_11_28/models/group_0735.py index 78aef3b9c..8666832a1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0735.py +++ b/githubkit/versions/v2022_11_28/models/group_0735.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,19 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0439 import SecretScanningAlertWebhook +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookSecretScanningAlertResolved(GitHubModel): - """secret_scanning_alert resolved event""" +class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): + """repository_vulnerability_alert resolve event""" - action: Literal["resolved"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["resolve"] = Field() + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +52,68 @@ class WebhookSecretScanningAlertResolved(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[ + Union[WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, None] + ] = Field(default=UNSET, title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["fixed", "open"] = Field() + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSecretScanningAlertResolved) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) -__all__ = ("WebhookSecretScanningAlertResolved",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertResolve", + "WebhookRepositoryVulnerabilityAlertResolvePropAlert", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0736.py b/githubkit/versions/v2022_11_28/models/group_0736.py index 350cec185..8bc164a47 100644 --- a/githubkit/versions/v2022_11_28/models/group_0736.py +++ b/githubkit/versions/v2022_11_28/models/group_0736.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0439 import SecretScanningAlertWebhook +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0445 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertValidated(GitHubModel): - """secret_scanning_alert validated event""" +class WebhookSecretScanningAlertCreated(GitHubModel): + """secret_scanning_alert created event""" - action: Literal["validated"] = Field() + action: Literal["created"] = Field() alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,6 +54,6 @@ class WebhookSecretScanningAlertValidated(GitHubModel): ) -model_rebuild(WebhookSecretScanningAlertValidated) +model_rebuild(WebhookSecretScanningAlertCreated) -__all__ = ("WebhookSecretScanningAlertValidated",) +__all__ = ("WebhookSecretScanningAlertCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0737.py b/githubkit/versions/v2022_11_28/models/group_0737.py index faedf57b8..0d4010ea2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0737.py +++ b/githubkit/versions/v2022_11_28/models/group_0737.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,68 +17,297 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0445 import SecretScanningAlertWebhook -class WebhookSecretScanningScanCompleted(GitHubModel): - """secret_scanning_scan completed event""" +class WebhookSecretScanningAlertLocationCreated(GitHubModel): + """Secret Scanning Alert Location Created Event""" - action: Literal["completed"] = Field() - type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] = ( - Field(description="What type of scan was completed") - ) - source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] = Field( - description="What type of content was scanned" - ) - started_at: datetime = Field( - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - completed_at: datetime = Field( - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - secret_types: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="List of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates", - ) - custom_pattern_name: Missing[Union[str, None]] = Field( + action: Literal["created"] = Field() + alert: SecretScanningAlertWebhook = Field() + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="If the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - custom_pattern_scope: Missing[ - Union[None, Literal["repository", "organization", "enterprise"]] - ] = Field( + location: SecretScanningLocation = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class SecretScanningLocation(GitHubModel): + """SecretScanningLocation""" + + type: Missing[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + details: Missing[ + Union[ + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + + +class SecretScanningLocationCommit(GitHubModel): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str = Field(description="The file path in the repository") + start_line: float = Field( + description="Line number at which the secret starts in the file" ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + end_line: float = Field( + description="Line number at which the secret ends in the file" + ) + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" + ) + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" + ) + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + blob_url: str = Field(description="The API URL to get the associated blob resource") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The API URL to get the associated commit resource" + ) + + +class SecretScanningLocationWikiCommit(GitHubModel): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str = Field(description="The file path of the wiki page") + start_line: float = Field( + description="Line number at which the secret starts in the file" + ) + end_line: float = Field( + description="Line number at which the secret ends in the file" + ) + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." + ) + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." + ) + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + page_url: str = Field(description="The GitHub URL to get the associated wiki page") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The GitHub URL to get the associated wiki commit" + ) + + +class SecretScanningLocationIssueTitle(GitHubModel): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueBody(GitHubModel): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueComment(GitHubModel): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str = Field( + description="The API URL to get the issue comment where the secret was detected." + ) + + +class SecretScanningLocationDiscussionTitle(GitHubModel): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) + + +class SecretScanningLocationDiscussionBody(GitHubModel): + """SecretScanningLocationDiscussionBody + + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + + discussion_body_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) + + +class SecretScanningLocationDiscussionComment(GitHubModel): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str = Field( + description="The API URL to get the discussion comment where the secret was detected." ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + + +class SecretScanningLocationPullRequestTitle(GitHubModel): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) + + +class SecretScanningLocationPullRequestBody(GitHubModel): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) + + +class SecretScanningLocationPullRequestComment(GitHubModel): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str = Field( + description="The API URL to get the pull request comment where the secret was detected." + ) + + +class SecretScanningLocationPullRequestReview(GitHubModel): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str = Field( + description="The API URL to get the pull request review where the secret was detected." + ) + + +class SecretScanningLocationPullRequestReviewComment(GitHubModel): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str = Field( + description="The API URL to get the pull request review comment where the secret was detected." ) -model_rebuild(WebhookSecretScanningScanCompleted) +model_rebuild(WebhookSecretScanningAlertLocationCreated) +model_rebuild(SecretScanningLocation) +model_rebuild(SecretScanningLocationCommit) +model_rebuild(SecretScanningLocationWikiCommit) +model_rebuild(SecretScanningLocationIssueTitle) +model_rebuild(SecretScanningLocationIssueBody) +model_rebuild(SecretScanningLocationIssueComment) +model_rebuild(SecretScanningLocationDiscussionTitle) +model_rebuild(SecretScanningLocationDiscussionBody) +model_rebuild(SecretScanningLocationDiscussionComment) +model_rebuild(SecretScanningLocationPullRequestTitle) +model_rebuild(SecretScanningLocationPullRequestBody) +model_rebuild(SecretScanningLocationPullRequestComment) +model_rebuild(SecretScanningLocationPullRequestReview) +model_rebuild(SecretScanningLocationPullRequestReviewComment) -__all__ = ("WebhookSecretScanningScanCompleted",) +__all__ = ( + "SecretScanningLocation", + "SecretScanningLocationCommit", + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationIssueBody", + "SecretScanningLocationIssueComment", + "SecretScanningLocationIssueTitle", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestComment", + "SecretScanningLocationPullRequestReview", + "SecretScanningLocationPullRequestReviewComment", + "SecretScanningLocationPullRequestTitle", + "SecretScanningLocationWikiCommit", + "WebhookSecretScanningAlertLocationCreated", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0738.py b/githubkit/versions/v2022_11_28/models/group_0738.py index b12e6dd5e..875448bf5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0738.py +++ b/githubkit/versions/v2022_11_28/models/group_0738.py @@ -9,54 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0440 import WebhooksSecurityAdvisory -class WebhookSecurityAdvisoryPublished(GitHubModel): - """security_advisory published event""" +class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): + """Secret Scanning Alert Location Created Event""" - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - security_advisory: WebhooksSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + payload: str = Field( + description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookSecurityAdvisoryPublished) +model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) -__all__ = ("WebhookSecurityAdvisoryPublished",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0739.py b/githubkit/versions/v2022_11_28/models/group_0739.py index 7c1b9de98..3ec9aec94 100644 --- a/githubkit/versions/v2022_11_28/models/group_0739.py +++ b/githubkit/versions/v2022_11_28/models/group_0739.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0440 import WebhooksSecurityAdvisory +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0445 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryUpdated(GitHubModel): - """security_advisory updated event""" +class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): + """secret_scanning_alert publicly leaked event""" - action: Literal["updated"] = Field() + action: Literal["publicly_leaked"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +45,15 @@ class WebhookSecurityAdvisoryUpdated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhooksSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAdvisoryUpdated) +model_rebuild(WebhookSecretScanningAlertPubliclyLeaked) -__all__ = ("WebhookSecurityAdvisoryUpdated",) +__all__ = ("WebhookSecretScanningAlertPubliclyLeaked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0740.py b/githubkit/versions/v2022_11_28/models/group_0740.py index f2cecbd2e..14f168bc4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0740.py +++ b/githubkit/versions/v2022_11_28/models/group_0740.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0741 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0445 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryWithdrawn(GitHubModel): - """security_advisory withdrawn event""" +class WebhookSecretScanningAlertReopened(GitHubModel): + """secret_scanning_alert reopened event""" - action: Literal["withdrawn"] = Field() + action: Literal["reopened"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +45,15 @@ class WebhookSecurityAdvisoryWithdrawn(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAdvisoryWithdrawn) +model_rebuild(WebhookSecretScanningAlertReopened) -__all__ = ("WebhookSecurityAdvisoryWithdrawn",) +__all__ = ("WebhookSecretScanningAlertReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0741.py b/githubkit/versions/v2022_11_28/models/group_0741.py index a20e03470..bc3f7407f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0741.py +++ b/githubkit/versions/v2022_11_28/models/group_0741.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,127 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0445 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +class WebhookSecretScanningAlertResolved(GitHubModel): + """secret_scanning_alert resolved event""" - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( - Field() + action: Literal["resolved"] = Field() + alert: SecretScanningAlertWebhook = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - description: str = Field() - ghsa_id: str = Field() - identifiers: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems - ] = Field() - published_at: str = Field() - references: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems - ] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems - ] = Field() - withdrawn_at: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, - None, - ] = Field() - package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str = Field() - name: str = Field() -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems -) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion -) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage -) +model_rebuild(WebhookSecretScanningAlertResolved) -__all__ = ( - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", -) +__all__ = ("WebhookSecretScanningAlertResolved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0742.py b/githubkit/versions/v2022_11_28/models/group_0742.py index 90af4c8b0..60794d606 100644 --- a/githubkit/versions/v2022_11_28/models/group_0742.py +++ b/githubkit/versions/v2022_11_28/models/group_0742.py @@ -9,24 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0112 import FullRepository -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0743 import WebhookSecurityAndAnalysisPropChanges +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0445 import SecretScanningAlertWebhook -class WebhookSecurityAndAnalysis(GitHubModel): - """security_and_analysis event""" +class WebhookSecretScanningAlertValidated(GitHubModel): + """secret_scanning_alert validated event""" - changes: WebhookSecurityAndAnalysisPropChanges = Field() + action: Literal["validated"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,14 +45,15 @@ class WebhookSecurityAndAnalysis(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAndAnalysis) +model_rebuild(WebhookSecretScanningAlertValidated) -__all__ = ("WebhookSecurityAndAnalysis",) +__all__ = ("WebhookSecretScanningAlertValidated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0743.py b/githubkit/versions/v2022_11_28/models/group_0743.py index 2f798ed31..f45cddbd2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0743.py +++ b/githubkit/versions/v2022_11_28/models/group_0743.py @@ -9,23 +9,77 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0744 import WebhookSecurityAndAnalysisPropChangesPropFrom +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookSecurityAndAnalysisPropChanges(GitHubModel): - """WebhookSecurityAndAnalysisPropChanges""" +class WebhookSecretScanningScanCompleted(GitHubModel): + """secret_scanning_scan completed event""" - from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( - default=UNSET, alias="from" + action: Literal["completed"] = Field() + type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] = ( + Field(description="What type of scan was completed") + ) + source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] = Field( + description="What type of content was scanned" + ) + started_at: datetime = Field( + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + completed_at: datetime = Field( + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + secret_types: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="List of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates", + ) + custom_pattern_name: Missing[Union[str, None]] = Field( + default=UNSET, + description="If the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated", + ) + custom_pattern_scope: Missing[ + Union[None, Literal["repository", "organization", "enterprise"]] + ] = Field( + default=UNSET, + description="If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAndAnalysisPropChanges) +model_rebuild(WebhookSecretScanningScanCompleted) -__all__ = ("WebhookSecurityAndAnalysisPropChanges",) +__all__ = ("WebhookSecretScanningScanCompleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0744.py b/githubkit/versions/v2022_11_28/models/group_0744.py index d73dc963f..a2201a425 100644 --- a/githubkit/versions/v2022_11_28/models/group_0744.py +++ b/githubkit/versions/v2022_11_28/models/group_0744.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,17 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0055 import SecurityAndAnalysis +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0446 import WebhooksSecurityAdvisory -class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSecurityAdvisoryPublished(GitHubModel): + """security_advisory published event""" - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + security_advisory: WebhooksSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) +model_rebuild(WebhookSecurityAdvisoryPublished) -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) +__all__ = ("WebhookSecurityAdvisoryPublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0745.py b/githubkit/versions/v2022_11_28/models/group_0745.py index 325328df0..26055856c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0745.py +++ b/githubkit/versions/v2022_11_28/models/group_0745.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0441 import WebhooksSponsorship +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0446 import WebhooksSecurityAdvisory -class WebhookSponsorshipCancelled(GitHubModel): - """sponsorship cancelled event""" +class WebhookSecurityAdvisoryUpdated(GitHubModel): + """security_advisory updated event""" - action: Literal["cancelled"] = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,10 +49,14 @@ class WebhookSponsorshipCancelled(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() + security_advisory: WebhooksSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookSponsorshipCancelled) +model_rebuild(WebhookSecurityAdvisoryUpdated) -__all__ = ("WebhookSponsorshipCancelled",) +__all__ = ("WebhookSecurityAdvisoryUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0746.py b/githubkit/versions/v2022_11_28/models/group_0746.py index 7bc948c66..db29c07eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0746.py +++ b/githubkit/versions/v2022_11_28/models/group_0746.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0441 import WebhooksSponsorship +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0747 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory -class WebhookSponsorshipCreated(GitHubModel): - """sponsorship created event""" +class WebhookSecurityAdvisoryWithdrawn(GitHubModel): + """security_advisory withdrawn event""" - action: Literal["created"] = Field() + action: Literal["withdrawn"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,10 +49,14 @@ class WebhookSponsorshipCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookSponsorshipCreated) +model_rebuild(WebhookSecurityAdvisoryWithdrawn) -__all__ = ("WebhookSponsorshipCreated",) +__all__ = ("WebhookSecurityAdvisoryWithdrawn",) diff --git a/githubkit/versions/v2022_11_28/models/group_0747.py b/githubkit/versions/v2022_11_28/models/group_0747.py index 8e1940458..a20e03470 100644 --- a/githubkit/versions/v2022_11_28/models/group_0747.py +++ b/githubkit/versions/v2022_11_28/models/group_0747.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,66 +17,127 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0441 import WebhooksSponsorship +from .group_0001 import CvssSeverities -class WebhookSponsorshipEdited(GitHubModel): - """sponsorship edited event""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - action: Literal["edited"] = Field() - changes: WebhookSponsorshipEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( + Field() ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() + description: str = Field() + ghsa_id: str = Field() + identifiers: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems + ] = Field() + published_at: str = Field() + references: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems + ] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems + ] = Field() + withdrawn_at: str = Field() -class WebhookSponsorshipEditedPropChanges(GitHubModel): - """WebhookSponsorshipEditedPropChanges""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( - default=UNSET - ) + score: float = Field() + vector_string: Union[str, None] = Field() -class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - from_: str = Field( - alias="from", - description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", - ) + cwe_id: str = Field() + name: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str = Field() -model_rebuild(WebhookSponsorshipEdited) -model_rebuild(WebhookSponsorshipEditedPropChanges) -model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, + None, + ] = Field() + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str = Field() + name: str = Field() + + +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems +) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion +) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage +) __all__ = ( - "WebhookSponsorshipEdited", - "WebhookSponsorshipEditedPropChanges", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0748.py b/githubkit/versions/v2022_11_28/models/group_0748.py index 1e8f59ac5..b3d70db8e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0748.py +++ b/githubkit/versions/v2022_11_28/models/group_0748.py @@ -9,30 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0441 import WebhooksSponsorship +from .group_0003 import SimpleUser +from .group_0117 import FullRepository +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0749 import WebhookSecurityAndAnalysisPropChanges -class WebhookSponsorshipPendingCancellation(GitHubModel): - """sponsorship pending_cancellation event""" +class WebhookSecurityAndAnalysis(GitHubModel): + """security_and_analysis event""" - action: Literal["pending_cancellation"] = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) + changes: WebhookSecurityAndAnalysisPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,15 +42,14 @@ class WebhookSponsorshipPendingCancellation(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingCancellation) +model_rebuild(WebhookSecurityAndAnalysis) -__all__ = ("WebhookSponsorshipPendingCancellation",) +__all__ = ("WebhookSecurityAndAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0749.py b/githubkit/versions/v2022_11_28/models/group_0749.py index 0e88b3a27..e6df9a04b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0749.py +++ b/githubkit/versions/v2022_11_28/models/group_0749.py @@ -9,56 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0441 import WebhooksSponsorship -from .group_0442 import WebhooksChanges8 +from .group_0750 import WebhookSecurityAndAnalysisPropChangesPropFrom -class WebhookSponsorshipPendingTierChange(GitHubModel): - """sponsorship pending_tier_change event""" +class WebhookSecurityAndAnalysisPropChanges(GitHubModel): + """WebhookSecurityAndAnalysisPropChanges""" - action: Literal["pending_tier_change"] = Field() - changes: WebhooksChanges8 = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( + default=UNSET, alias="from" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingTierChange) +model_rebuild(WebhookSecurityAndAnalysisPropChanges) -__all__ = ("WebhookSponsorshipPendingTierChange",) +__all__ = ("WebhookSecurityAndAnalysisPropChanges",) diff --git a/githubkit/versions/v2022_11_28/models/group_0750.py b/githubkit/versions/v2022_11_28/models/group_0750.py index 3ec09b966..9a660432d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0750.py +++ b/githubkit/versions/v2022_11_28/models/group_0750.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,44 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0441 import WebhooksSponsorship -from .group_0442 import WebhooksChanges8 +from .group_0056 import SecurityAndAnalysis -class WebhookSponsorshipTierChanged(GitHubModel): - """sponsorship tier_changed event""" +class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["tier_changed"] = Field() - changes: WebhooksChanges8 = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipTierChanged) +model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) -__all__ = ("WebhookSponsorshipTierChanged",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) diff --git a/githubkit/versions/v2022_11_28/models/group_0751.py b/githubkit/versions/v2022_11_28/models/group_0751.py index 3b2d689c7..c13472757 100644 --- a/githubkit/versions/v2022_11_28/models/group_0751.py +++ b/githubkit/versions/v2022_11_28/models/group_0751.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0447 import WebhooksSponsorship -class WebhookStarCreated(GitHubModel): - """star created event""" +class WebhookSponsorshipCancelled(GitHubModel): + """sponsorship cancelled event""" - action: Literal["created"] = Field() + action: Literal["cancelled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,16 +44,15 @@ class WebhookStarCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - starred_at: Union[str, None] = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." - ) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStarCreated) +model_rebuild(WebhookSponsorshipCancelled) -__all__ = ("WebhookStarCreated",) +__all__ = ("WebhookSponsorshipCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0752.py b/githubkit/versions/v2022_11_28/models/group_0752.py index 4f75e7632..e5bdb9467 100644 --- a/githubkit/versions/v2022_11_28/models/group_0752.py +++ b/githubkit/versions/v2022_11_28/models/group_0752.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0447 import WebhooksSponsorship -class WebhookStarDeleted(GitHubModel): - """star deleted event""" +class WebhookSponsorshipCreated(GitHubModel): + """sponsorship created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,16 +44,15 @@ class WebhookStarDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - starred_at: None = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." - ) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStarDeleted) +model_rebuild(WebhookSponsorshipCreated) -__all__ = ("WebhookStarDeleted",) +__all__ = ("WebhookSponsorshipCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0753.py b/githubkit/versions/v2022_11_28/models/group_0753.py index d130acd6e..d7f43a14b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0753.py +++ b/githubkit/versions/v2022_11_28/models/group_0753.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,234 +17,66 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0447 import WebhooksSponsorship -class WebhookStatus(GitHubModel): - """status event""" +class WebhookSponsorshipEdited(GitHubModel): + """sponsorship edited event""" - avatar_url: Missing[Union[str, None]] = Field(default=UNSET) - branches: list[WebhookStatusPropBranchesItems] = Field( - description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." - ) - commit: WebhookStatusPropCommit = Field() - context: str = Field() - created_at: str = Field() - description: Union[str, None] = Field( - description="The optional human-readable description added to the status." - ) + action: Literal["edited"] = Field() + changes: WebhookSponsorshipEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - id: int = Field(description="The unique identifier of the status.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - name: str = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sha: str = Field(description="The Commit SHA.") - state: Literal["pending", "success", "failure", "error"] = Field( - description="The new state. Can be `pending`, `success`, `failure`, or `error`." - ) - target_url: Union[str, None] = Field( - description="The optional link added to the status." + sponsorship: WebhooksSponsorship = Field() + + +class WebhookSponsorshipEditedPropChanges(GitHubModel): + """WebhookSponsorshipEditedPropChanges""" + + privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( + default=UNSET ) - updated_at: str = Field() - - -class WebhookStatusPropBranchesItems(GitHubModel): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommit = Field() - name: str = Field() - protected: bool = Field() - - -class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] = Field() - url: Union[str, None] = Field() - - -class WebhookStatusPropCommit(GitHubModel): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthor, None] = Field(title="User") - comments_url: str = Field() - commit: WebhookStatusPropCommitPropCommit = Field() - committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") - html_url: str = Field() - node_id: str = Field() - parents: list[WebhookStatusPropCommitPropParentsItems] = Field() - sha: str = Field() - url: str = Field() -class WebhookStatusPropCommitPropAuthor(GitHubModel): - """User""" +class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" + + from_: str = Field( + alias="from", + description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", + ) + - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitter(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropParentsItems(GitHubModel): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str = Field() - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropCommit(GitHubModel): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthor = Field() - comment_count: int = Field() - committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() - message: str = Field() - tree: WebhookStatusPropCommitPropCommitPropTree = Field() - url: str = Field() - verification: WebhookStatusPropCommitPropCommitPropVerification = Field() - - -class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime = Field() - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime = Field() - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropCommitPropVerification(GitHubModel): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] = Field() - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] = Field() - signature: Union[str, None] = Field() - verified: bool = Field() - verified_at: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookStatus) -model_rebuild(WebhookStatusPropBranchesItems) -model_rebuild(WebhookStatusPropBranchesItemsPropCommit) -model_rebuild(WebhookStatusPropCommit) -model_rebuild(WebhookStatusPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropParentsItems) -model_rebuild(WebhookStatusPropCommitPropCommit) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropCommitPropTree) -model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) +model_rebuild(WebhookSponsorshipEdited) +model_rebuild(WebhookSponsorshipEditedPropChanges) +model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) __all__ = ( - "WebhookStatus", - "WebhookStatusPropBranchesItems", - "WebhookStatusPropBranchesItemsPropCommit", - "WebhookStatusPropCommit", - "WebhookStatusPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommit", - "WebhookStatusPropCommitPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitPropCommitter", - "WebhookStatusPropCommitPropCommitPropTree", - "WebhookStatusPropCommitPropCommitPropVerification", - "WebhookStatusPropCommitPropCommitter", - "WebhookStatusPropCommitPropParentsItems", + "WebhookSponsorshipEdited", + "WebhookSponsorshipEditedPropChanges", + "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0754.py b/githubkit/versions/v2022_11_28/models/group_0754.py index 70880c2d6..3eb5e6710 100644 --- a/githubkit/versions/v2022_11_28/models/group_0754.py +++ b/githubkit/versions/v2022_11_28/models/group_0754.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,19 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0447 import WebhooksSponsorship + + +class WebhookSponsorshipPendingCancellation(GitHubModel): + """sponsorship pending_cancellation event""" + + action: Literal["pending_cancellation"] = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sponsorship: WebhooksSponsorship = Field() + + +model_rebuild(WebhookSponsorshipPendingCancellation) + +__all__ = ("WebhookSponsorshipPendingCancellation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0755.py b/githubkit/versions/v2022_11_28/models/group_0755.py index edd98c4e3..27754f827 100644 --- a/githubkit/versions/v2022_11_28/models/group_0755.py +++ b/githubkit/versions/v2022_11_28/models/group_0755.py @@ -9,21 +9,56 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0447 import WebhooksSponsorship +from .group_0448 import WebhooksChanges8 + -class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" +class WebhookSponsorshipPendingTierChange(GitHubModel): + """sponsorship pending_tier_change event""" - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) + action: Literal["pending_tier_change"] = Field() + changes: WebhooksChanges8 = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) +model_rebuild(WebhookSponsorshipPendingTierChange) -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) +__all__ = ("WebhookSponsorshipPendingTierChange",) diff --git a/githubkit/versions/v2022_11_28/models/group_0756.py b/githubkit/versions/v2022_11_28/models/group_0756.py index 696b079fe..81c7c19a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0756.py +++ b/githubkit/versions/v2022_11_28/models/group_0756.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,19 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0447 import WebhooksSponsorship +from .group_0448 import WebhooksChanges8 + + +class WebhookSponsorshipTierChanged(GitHubModel): + """sponsorship tier_changed event""" + + action: Literal["tier_changed"] = Field() + changes: WebhooksChanges8 = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sponsorship: WebhooksSponsorship = Field() + + +model_rebuild(WebhookSponsorshipTierChanged) + +__all__ = ("WebhookSponsorshipTierChanged",) diff --git a/githubkit/versions/v2022_11_28/models/group_0757.py b/githubkit/versions/v2022_11_28/models/group_0757.py index 74f78d3d5..d462d44fd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0757.py +++ b/githubkit/versions/v2022_11_28/models/group_0757.py @@ -9,21 +9,50 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks + + +class WebhookStarCreated(GitHubModel): + """star created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + starred_at: Union[str, None] = Field( + description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." + ) + + +model_rebuild(WebhookStarCreated) + +__all__ = ("WebhookStarCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0758.py b/githubkit/versions/v2022_11_28/models/group_0758.py index 87a42211e..645a23a1d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0758.py +++ b/githubkit/versions/v2022_11_28/models/group_0758.py @@ -17,30 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0019 import Repository -from .group_0040 import Issue -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookSubIssuesParentIssueAdded(GitHubModel): - """parent issue added event""" +class WebhookStarDeleted(GitHubModel): + """star deleted event""" - action: Literal["parent_issue_added"] = Field() - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - parent_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." - ) - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,16 +43,16 @@ class WebhookSubIssuesParentIssueAdded(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + starred_at: None = Field( + description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." ) -model_rebuild(WebhookSubIssuesParentIssueAdded) +model_rebuild(WebhookStarDeleted) -__all__ = ("WebhookSubIssuesParentIssueAdded",) +__all__ = ("WebhookStarDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0759.py b/githubkit/versions/v2022_11_28/models/group_0759.py index 72383ab1d..93cff14ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0759.py +++ b/githubkit/versions/v2022_11_28/models/group_0759.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,51 +18,234 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0019 import Repository -from .group_0040 import Issue -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookSubIssuesParentIssueRemoved(GitHubModel): - """parent issue removed event""" +class WebhookStatus(GitHubModel): + """status event""" - action: Literal["parent_issue_removed"] = Field() - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + avatar_url: Missing[Union[str, None]] = Field(default=UNSET) + branches: list[WebhookStatusPropBranchesItems] = Field( + description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." ) - parent_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." + commit: WebhookStatusPropCommit = Field() + context: str = Field() + created_at: str = Field() + description: Union[str, None] = Field( + description="The optional human-readable description added to the status." ) - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) + id: int = Field(description="The unique identifier of the status.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + name: str = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sha: str = Field(description="The Commit SHA.") + state: Literal["pending", "success", "failure", "error"] = Field( + description="The new state. Can be `pending`, `success`, `failure`, or `error`." + ) + target_url: Union[str, None] = Field( + description="The optional link added to the status." ) + updated_at: str = Field() + + +class WebhookStatusPropBranchesItems(GitHubModel): + """WebhookStatusPropBranchesItems""" + + commit: WebhookStatusPropBranchesItemsPropCommit = Field() + name: str = Field() + protected: bool = Field() + + +class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): + """WebhookStatusPropBranchesItemsPropCommit""" + + sha: Union[str, None] = Field() + url: Union[str, None] = Field() + + +class WebhookStatusPropCommit(GitHubModel): + """WebhookStatusPropCommit""" + + author: Union[WebhookStatusPropCommitPropAuthor, None] = Field(title="User") + comments_url: str = Field() + commit: WebhookStatusPropCommitPropCommit = Field() + committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") + html_url: str = Field() + node_id: str = Field() + parents: list[WebhookStatusPropCommitPropParentsItems] = Field() + sha: str = Field() + url: str = Field() + + +class WebhookStatusPropCommitPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropCommitter(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropParentsItems(GitHubModel): + """WebhookStatusPropCommitPropParentsItems""" + + html_url: str = Field() + sha: str = Field() + url: str = Field() + + +class WebhookStatusPropCommitPropCommit(GitHubModel): + """WebhookStatusPropCommitPropCommit""" + + author: WebhookStatusPropCommitPropCommitPropAuthor = Field() + comment_count: int = Field() + committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() + message: str = Field() + tree: WebhookStatusPropCommitPropCommitPropTree = Field() + url: str = Field() + verification: WebhookStatusPropCommitPropCommitPropVerification = Field() + + +class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthor""" + + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitter""" + + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): + """WebhookStatusPropCommitPropCommitPropTree""" + + sha: str = Field() + url: str = Field() + + +class WebhookStatusPropCommitPropCommitPropVerification(GitHubModel): + """WebhookStatusPropCommitPropCommitPropVerification""" + + payload: Union[str, None] = Field() + reason: Literal[ + "expired_key", + "not_signing_key", + "gpgverify_error", + "gpgverify_unavailable", + "unsigned", + "unknown_signature_type", + "no_user", + "unverified_email", + "bad_email", + "unknown_key", + "malformed_signature", + "invalid", + "valid", + "bad_cert", + "ocsp_pending", + ] = Field() + signature: Union[str, None] = Field() + verified: bool = Field() + verified_at: Union[str, None] = Field() -model_rebuild(WebhookSubIssuesParentIssueRemoved) +model_rebuild(WebhookStatus) +model_rebuild(WebhookStatusPropBranchesItems) +model_rebuild(WebhookStatusPropBranchesItemsPropCommit) +model_rebuild(WebhookStatusPropCommit) +model_rebuild(WebhookStatusPropCommitPropAuthor) +model_rebuild(WebhookStatusPropCommitPropCommitter) +model_rebuild(WebhookStatusPropCommitPropParentsItems) +model_rebuild(WebhookStatusPropCommitPropCommit) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) +model_rebuild(WebhookStatusPropCommitPropCommitPropTree) +model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) -__all__ = ("WebhookSubIssuesParentIssueRemoved",) +__all__ = ( + "WebhookStatus", + "WebhookStatusPropBranchesItems", + "WebhookStatusPropBranchesItemsPropCommit", + "WebhookStatusPropCommit", + "WebhookStatusPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommit", + "WebhookStatusPropCommitPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitPropCommitter", + "WebhookStatusPropCommitPropCommitPropTree", + "WebhookStatusPropCommitPropCommitPropVerification", + "WebhookStatusPropCommitPropCommitter", + "WebhookStatusPropCommitPropParentsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0760.py b/githubkit/versions/v2022_11_28/models/group_0760.py index 8dcccd278..70880c2d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0760.py +++ b/githubkit/versions/v2022_11_28/models/group_0760.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,51 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0019 import Repository -from .group_0040 import Issue -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): + """Committer -class WebhookSubIssuesSubIssueAdded(GitHubModel): - """sub-issue added event""" + Metaproperties for Git author/committer information. + """ - action: Literal["sub_issue_added"] = Field() - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - sub_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." - ) - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSubIssuesSubIssueAdded) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) -__all__ = ("WebhookSubIssuesSubIssueAdded",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0761.py b/githubkit/versions/v2022_11_28/models/group_0761.py index cd4c246ee..edd98c4e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0761.py +++ b/githubkit/versions/v2022_11_28/models/group_0761.py @@ -9,59 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0019 import Repository -from .group_0040 import Issue -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks - -class WebhookSubIssuesSubIssueRemoved(GitHubModel): - """sub-issue removed event""" +class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - action: Literal["sub_issue_removed"] = Field() - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - sub_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." - ) - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSubIssuesSubIssueRemoved) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) -__all__ = ("WebhookSubIssuesSubIssueRemoved",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0762.py b/githubkit/versions/v2022_11_28/models/group_0762.py index 88fc590d9..696b079fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0762.py +++ b/githubkit/versions/v2022_11_28/models/group_0762.py @@ -9,49 +9,28 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0443 import WebhooksTeam1 - - -class WebhookTeamAdd(GitHubModel): - """team_add event""" - - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -model_rebuild(WebhookTeamAdd) - -__all__ = ("WebhookTeamAdd",) + +class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) + +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0763.py b/githubkit/versions/v2022_11_28/models/group_0763.py index f71301334..74f78d3d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0763.py +++ b/githubkit/versions/v2022_11_28/models/group_0763.py @@ -9,250 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0443 import WebhooksTeam1 - - -class WebhookTeamAddedToRepository(GitHubModel): - """team added_to_repository event""" - - action: Literal["added_to_repository"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties +class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + date: str = Field() + email: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamAddedToRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) -__all__ = ( - "WebhookTeamAddedToRepository", - "WebhookTeamAddedToRepositoryPropRepository", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0764.py b/githubkit/versions/v2022_11_28/models/group_0764.py index 38e70a200..e6397853d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0764.py +++ b/githubkit/versions/v2022_11_28/models/group_0764.py @@ -9,246 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0443 import WebhooksTeam1 +from .group_0003 import SimpleUser +from .group_0020 import Repository +from .group_0041 import Issue +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookTeamCreated(GitHubModel): - """team created event""" +class WebhookSubIssuesParentIssueAdded(GitHubModel): + """parent issue added event""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["parent_issue_added"] = Field() + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + parent_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamCreatedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamCreatedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamCreatedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamCreated) -model_rebuild(WebhookTeamCreatedPropRepository) -model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) -model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) -model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) +model_rebuild(WebhookSubIssuesParentIssueAdded) -__all__ = ( - "WebhookTeamCreated", - "WebhookTeamCreatedPropRepository", - "WebhookTeamCreatedPropRepositoryPropCustomProperties", - "WebhookTeamCreatedPropRepositoryPropLicense", - "WebhookTeamCreatedPropRepositoryPropOwner", - "WebhookTeamCreatedPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesParentIssueAdded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0765.py b/githubkit/versions/v2022_11_28/models/group_0765.py index c446667a0..277646f74 100644 --- a/githubkit/versions/v2022_11_28/models/group_0765.py +++ b/githubkit/versions/v2022_11_28/models/group_0765.py @@ -9,248 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0443 import WebhooksTeam1 +from .group_0003 import SimpleUser +from .group_0020 import Repository +from .group_0041 import Issue +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookTeamDeleted(GitHubModel): - """team deleted event""" +class WebhookSubIssuesParentIssueRemoved(GitHubModel): + """parent issue removed event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["parent_issue_removed"] = Field() + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + parent_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamDeletedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamDeletedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamDeletedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamDeleted) -model_rebuild(WebhookTeamDeletedPropRepository) -model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) -model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) -model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) +model_rebuild(WebhookSubIssuesParentIssueRemoved) -__all__ = ( - "WebhookTeamDeleted", - "WebhookTeamDeletedPropRepository", - "WebhookTeamDeletedPropRepositoryPropCustomProperties", - "WebhookTeamDeletedPropRepositoryPropLicense", - "WebhookTeamDeletedPropRepositoryPropOwner", - "WebhookTeamDeletedPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesParentIssueRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0766.py b/githubkit/versions/v2022_11_28/models/group_0766.py index 16333120a..0761d4dd8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0766.py +++ b/githubkit/versions/v2022_11_28/models/group_0766.py @@ -9,351 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0443 import WebhooksTeam1 +from .group_0003 import SimpleUser +from .group_0020 import Repository +from .group_0041 import Issue +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookTeamEdited(GitHubModel): - """team edited event""" +class WebhookSubIssuesSubIssueAdded(GitHubModel): + """sub-issue added event""" - action: Literal["edited"] = Field() - changes: WebhookTeamEditedPropChanges = Field( - description="The changes to the team if the action was `edited`." + action: Literal["sub_issue_added"] = Field() + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + sub_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamEditedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamEditedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamEditedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamEditedPropChanges(GitHubModel): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( - default=UNSET - ) - name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) - privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) - notification_setting: Missing[ - WebhookTeamEditedPropChangesPropNotificationSetting - ] = Field(default=UNSET) - repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( - default=UNSET - ) - - -class WebhookTeamEditedPropChangesPropDescription(GitHubModel): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropName(GitHubModel): - """WebhookTeamEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str = Field( - alias="from", - description="The previous version of the team's privacy if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str = Field( - alias="from", - description="The previous version of the team's notification setting if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropRepository(GitHubModel): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( - alias="from" - ) - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", - ) - pull: Missing[bool] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - push: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookTeamEdited) -model_rebuild(WebhookTeamEditedPropRepository) -model_rebuild(WebhookTeamEditedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamEditedPropRepositoryPropLicense) -model_rebuild(WebhookTeamEditedPropRepositoryPropOwner) -model_rebuild(WebhookTeamEditedPropRepositoryPropPermissions) -model_rebuild(WebhookTeamEditedPropChanges) -model_rebuild(WebhookTeamEditedPropChangesPropDescription) -model_rebuild(WebhookTeamEditedPropChangesPropName) -model_rebuild(WebhookTeamEditedPropChangesPropPrivacy) -model_rebuild(WebhookTeamEditedPropChangesPropNotificationSetting) -model_rebuild(WebhookTeamEditedPropChangesPropRepository) -model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissions) -model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom) +model_rebuild(WebhookSubIssuesSubIssueAdded) -__all__ = ( - "WebhookTeamEdited", - "WebhookTeamEditedPropChanges", - "WebhookTeamEditedPropChangesPropDescription", - "WebhookTeamEditedPropChangesPropName", - "WebhookTeamEditedPropChangesPropNotificationSetting", - "WebhookTeamEditedPropChangesPropPrivacy", - "WebhookTeamEditedPropChangesPropRepository", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", - "WebhookTeamEditedPropRepository", - "WebhookTeamEditedPropRepositoryPropCustomProperties", - "WebhookTeamEditedPropRepositoryPropLicense", - "WebhookTeamEditedPropRepositoryPropOwner", - "WebhookTeamEditedPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesSubIssueAdded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0767.py b/githubkit/versions/v2022_11_28/models/group_0767.py index 4423f1e4a..850d18676 100644 --- a/githubkit/versions/v2022_11_28/models/group_0767.py +++ b/githubkit/versions/v2022_11_28/models/group_0767.py @@ -9,250 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0443 import WebhooksTeam1 +from .group_0003 import SimpleUser +from .group_0020 import Repository +from .group_0041 import Issue +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookTeamRemovedFromRepository(GitHubModel): - """team removed_from_repository event""" +class WebhookSubIssuesSubIssueRemoved(GitHubModel): + """sub-issue removed event""" - action: Literal["removed_from_repository"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["sub_issue_removed"] = Field() + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + sub_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( - title="User" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - permissions: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamRemovedFromRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookSubIssuesSubIssueRemoved) -__all__ = ( - "WebhookTeamRemovedFromRepository", - "WebhookTeamRemovedFromRepositoryPropRepository", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesSubIssueRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0768.py b/githubkit/versions/v2022_11_28/models/group_0768.py index 9ebc3b855..0a15cb53f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0768.py +++ b/githubkit/versions/v2022_11_28/models/group_0768.py @@ -9,25 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0449 import WebhooksTeam1 -class WebhookWatchStarted(GitHubModel): - """watch started event""" +class WebhookTeamAdd(GitHubModel): + """team_add event""" - action: Literal["started"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,8 +46,12 @@ class WebhookWatchStarted(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) -model_rebuild(WebhookWatchStarted) +model_rebuild(WebhookTeamAdd) -__all__ = ("WebhookWatchStarted",) +__all__ = ("WebhookTeamAdd",) diff --git a/githubkit/versions/v2022_11_28/models/group_0769.py b/githubkit/versions/v2022_11_28/models/group_0769.py index 50280dda4..acdbac664 100644 --- a/githubkit/versions/v2022_11_28/models/group_0769.py +++ b/githubkit/versions/v2022_11_28/models/group_0769.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,49 +18,241 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0449 import WebhooksTeam1 -class WebhookWorkflowDispatch(GitHubModel): - """workflow_dispatch event""" +class WebhookTeamAddedToRepository(GitHubModel): + """team added_to_repository event""" + action: Literal["added_to_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" -class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): - """WebhookWorkflowDispatchPropInputs""" + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowDispatch) -model_rebuild(WebhookWorkflowDispatchPropInputs) +model_rebuild(WebhookTeamAddedToRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowDispatch", - "WebhookWorkflowDispatchPropInputs", + "WebhookTeamAddedToRepository", + "WebhookTeamAddedToRepositoryPropRepository", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0770.py b/githubkit/versions/v2022_11_28/models/group_0770.py index 029cb042d..714147850 100644 --- a/githubkit/versions/v2022_11_28/models/group_0770.py +++ b/githubkit/versions/v2022_11_28/models/group_0770.py @@ -9,26 +9,26 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0190 import Deployment -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0449 import WebhooksTeam1 -class WebhookWorkflowJobCompleted(GitHubModel): - """workflow_job completed event""" +class WebhookTeamCreated(GitHubModel): + """team created event""" - action: Literal["completed"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,95 +39,216 @@ class WebhookWorkflowJobCompleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamCreatedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: str = Field() - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + + +class WebhookTeamCreatedPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" +class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamCreatedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() +class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): + """License""" -model_rebuild(WebhookWorkflowJobCompleted) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookTeamCreated) +model_rebuild(WebhookTeamCreatedPropRepository) +model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) +model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) +model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobCompleted", - "WebhookWorkflowJobCompletedPropWorkflowJob", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", + "WebhookTeamCreated", + "WebhookTeamCreatedPropRepository", + "WebhookTeamCreatedPropRepositoryPropCustomProperties", + "WebhookTeamCreatedPropRepositoryPropLicense", + "WebhookTeamCreatedPropRepositoryPropOwner", + "WebhookTeamCreatedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0771.py b/githubkit/versions/v2022_11_28/models/group_0771.py index f8b7a069b..79fe220d3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0771.py +++ b/githubkit/versions/v2022_11_28/models/group_0771.py @@ -9,87 +9,248 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0449 import WebhooksTeam1 -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamDeleted(GitHubModel): + """team deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamDeletedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamDeletedPropRepository(GitHubModel): + """Repository + + A git repository """ - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( - Field() + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamDeletedPropRepositoryPropCustomProperties - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookTeamDeleted) +model_rebuild(WebhookTeamDeletedPropRepository) +model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) +model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) +model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", + "WebhookTeamDeleted", + "WebhookTeamDeletedPropRepository", + "WebhookTeamDeletedPropRepositoryPropCustomProperties", + "WebhookTeamDeletedPropRepositoryPropLicense", + "WebhookTeamDeletedPropRepositoryPropOwner", + "WebhookTeamDeletedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0772.py b/githubkit/versions/v2022_11_28/models/group_0772.py index 13bbf03d1..c327cf642 100644 --- a/githubkit/versions/v2022_11_28/models/group_0772.py +++ b/githubkit/versions/v2022_11_28/models/group_0772.py @@ -9,69 +9,351 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0449 import WebhooksTeam1 -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[str] = Field(default=UNSET) - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." - ) - head_sha: Missing[str] = Field(default=UNSET) + +class WebhookTeamEdited(GitHubModel): + """team edited event""" + + action: Literal["edited"] = Field() + changes: WebhookTeamEditedPropChanges = Field( + description="The changes to the team if the action was `edited`." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamEditedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamEditedPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamEditedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[list[Union[str, None]]] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." - ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." - ) - steps: Missing[ - list[ - Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] - ] - ] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropRepositoryPropPermissions""" -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamEditedPropChanges(GitHubModel): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( + default=UNSET + ) + name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) + privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) + notification_setting: Missing[ + WebhookTeamEditedPropChangesPropNotificationSetting + ] = Field(default=UNSET) + repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( + default=UNSET + ) + + +class WebhookTeamEditedPropChangesPropDescription(GitHubModel): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropName(GitHubModel): + """WebhookTeamEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str = Field( + alias="from", + description="The previous version of the team's privacy if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str = Field( + alias="from", + description="The previous version of the team's notification setting if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropRepository(GitHubModel): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( + alias="from" + ) + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", + ) + pull: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", + ) + push: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", + ) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookTeamEdited) +model_rebuild(WebhookTeamEditedPropRepository) +model_rebuild(WebhookTeamEditedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamEditedPropRepositoryPropLicense) +model_rebuild(WebhookTeamEditedPropRepositoryPropOwner) +model_rebuild(WebhookTeamEditedPropRepositoryPropPermissions) +model_rebuild(WebhookTeamEditedPropChanges) +model_rebuild(WebhookTeamEditedPropChangesPropDescription) +model_rebuild(WebhookTeamEditedPropChangesPropName) +model_rebuild(WebhookTeamEditedPropChangesPropPrivacy) +model_rebuild(WebhookTeamEditedPropChangesPropNotificationSetting) +model_rebuild(WebhookTeamEditedPropChangesPropRepository) +model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissions) +model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", + "WebhookTeamEdited", + "WebhookTeamEditedPropChanges", + "WebhookTeamEditedPropChangesPropDescription", + "WebhookTeamEditedPropChangesPropName", + "WebhookTeamEditedPropChangesPropNotificationSetting", + "WebhookTeamEditedPropChangesPropPrivacy", + "WebhookTeamEditedPropChangesPropRepository", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", + "WebhookTeamEditedPropRepository", + "WebhookTeamEditedPropRepositoryPropCustomProperties", + "WebhookTeamEditedPropRepositoryPropLicense", + "WebhookTeamEditedPropRepositoryPropOwner", + "WebhookTeamEditedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0773.py b/githubkit/versions/v2022_11_28/models/group_0773.py index da86b9899..de843b0df 100644 --- a/githubkit/versions/v2022_11_28/models/group_0773.py +++ b/githubkit/versions/v2022_11_28/models/group_0773.py @@ -9,26 +9,26 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0190 import Deployment -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0449 import WebhooksTeam1 -class WebhookWorkflowJobInProgress(GitHubModel): - """workflow_job in_progress event""" +class WebhookTeamRemovedFromRepository(GitHubModel): + """team removed_from_repository event""" - action: Literal["in_progress"] = Field() + action: Literal["removed_from_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,89 +39,220 @@ class WebhookWorkflowJobInProgress(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) -class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJob""" +class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): + """Repository - check_run_url: str = Field() - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( - Field() + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( - Field() - ) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() - number: int = Field() - started_at: Union[Union[str, None], None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobInProgress) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) +model_rebuild(WebhookTeamRemovedFromRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobInProgress", - "WebhookWorkflowJobInProgressPropWorkflowJob", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", + "WebhookTeamRemovedFromRepository", + "WebhookTeamRemovedFromRepositoryPropRepository", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0774.py b/githubkit/versions/v2022_11_28/models/group_0774.py index 1d055b568..77179fcfa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0774.py +++ b/githubkit/versions/v2022_11_28/models/group_0774.py @@ -9,78 +9,47 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ +class WebhookWatchStarted(GitHubModel): + """watch started event""" - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( - Field() + action: Literal["started"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." - ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( - Field() - ) - url: str = Field() - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookWatchStarted) -__all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", -) +__all__ = ("WebhookWatchStarted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0775.py b/githubkit/versions/v2022_11_28/models/group_0775.py index b4d62dfca..9448038df 100644 --- a/githubkit/versions/v2022_11_28/models/group_0775.py +++ b/githubkit/versions/v2022_11_28/models/group_0775.py @@ -9,66 +9,57 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." +class WebhookWorkflowDispatch(GitHubModel): + """workflow_dispatch event""" + + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[list[str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Literal["in_progress", "completed", "queued"] = Field() - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." + inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( - Field() + ref: str = Field() + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: str = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """Workflow Step""" - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "pending", "queued"] = Field() +class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): + """WebhookWorkflowDispatchPropInputs""" -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookWorkflowDispatch) +model_rebuild(WebhookWorkflowDispatchPropInputs) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", + "WebhookWorkflowDispatch", + "WebhookWorkflowDispatchPropInputs", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0776.py b/githubkit/versions/v2022_11_28/models/group_0776.py index be37e8205..b9afbdba8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0776.py +++ b/githubkit/versions/v2022_11_28/models/group_0776.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0190 import Deployment -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +from .group_0003 import SimpleUser +from .group_0196 import Deployment +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookWorkflowJobQueued(GitHubModel): - """workflow_job queued event""" +class WebhookWorkflowJobCompleted(GitHubModel): + """workflow_job completed event""" - action: Literal["queued"] = Field() + action: Literal["completed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,7 +49,7 @@ class WebhookWorkflowJobQueued(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() deployment: Missing[Deployment] = Field( default=UNSET, title="Deployment", @@ -58,36 +57,60 @@ class WebhookWorkflowJobQueued(GitHubModel): ) -class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobQueuedPropWorkflowJob""" +class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJob""" check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() + completed_at: str = Field() + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] = Field() created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - labels: list[str] = Field() + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) name: str = Field() node_id: str = Field() run_attempt: int = Field() run_id: int = Field() run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + ) + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." + ) + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" completed_at: Union[str, None] = Field() conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( @@ -96,15 +119,15 @@ class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): name: str = Field() number: int = Field() started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending"] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobQueued) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWorkflowJobCompleted) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowJobQueued", - "WebhookWorkflowJobQueuedPropWorkflowJob", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", + "WebhookWorkflowJobCompleted", + "WebhookWorkflowJobCompletedPropWorkflowJob", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0777.py b/githubkit/versions/v2022_11_28/models/group_0777.py index 06d0f13e7..f8b7a069b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0777.py +++ b/githubkit/versions/v2022_11_28/models/group_0777.py @@ -9,84 +9,71 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0190 import Deployment -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowJobWaiting(GitHubModel): - """workflow_job waiting event""" - - action: Literal["waiting"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobWaitingPropWorkflowJob""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ check_run_url: str = Field() completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], + ] = Field() created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - labels: list[str] = Field() + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) name: str = Field() node_id: str = Field() run_attempt: int = Field() run_id: int = Field() run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + ) head_branch: Union[str, None] = Field(description="The name of the current branch.") workflow_name: Union[str, None] = Field(description="The name of the workflow.") - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( + Field() + ) url: str = Field() -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): """Workflow Step""" completed_at: Union[str, None] = Field() @@ -96,17 +83,13 @@ class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): name: str = Field() number: int = Field() started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( - Field() - ) + status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobWaiting) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowJobWaiting", - "WebhookWorkflowJobWaitingPropWorkflowJob", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0778.py b/githubkit/versions/v2022_11_28/models/group_0778.py index e60ed3d11..13bbf03d1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0778.py +++ b/githubkit/versions/v2022_11_28/models/group_0778.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,488 +17,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0401 import WebhooksWorkflow +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" -class WebhookWorkflowRunCompleted(GitHubModel): - """workflow_run completed event""" - - action: Literal["completed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - "startup_failure", - ], + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[str] = Field(default=UNSET) + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: Missing[str] = Field( - default=UNSET, - description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", - ) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + head_sha: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + id: Missing[int] = Field(default=UNSET) + labels: Missing[list[Union[str, None]]] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." + ) + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." + ) + steps: Missing[ + list[ + Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] + ] + ] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" - id: int = Field() - name: str = Field() - url: str = Field() - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookWorkflowRunCompleted) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) __all__ = ( - "WebhookWorkflowRunCompleted", - "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0779.py b/githubkit/versions/v2022_11_28/models/group_0779.py index 05472d049..0ccff72d4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0779.py +++ b/githubkit/versions/v2022_11_28/models/group_0779.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,16 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0401 import WebhooksWorkflow +from .group_0003 import SimpleUser +from .group_0196 import Deployment +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class WebhookWorkflowRunInProgress(GitHubModel): - """workflow_run in_progress event""" +class WebhookWorkflowJobInProgress(GitHubModel): + """workflow_job in_progress event""" action: Literal["in_progress"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -50,445 +49,79 @@ class WebhookWorkflowRunInProgress(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( - title="Workflow Run" + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", ) -class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): - """Workflow Run""" +class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJob""" - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") + check_run_url: str = Field() + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( + Field() ) + created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( - title="Repository Lite" + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - rerun_url: str = Field() + name: str = Field() + node_id: str = Field() run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( - Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: Union[str, None] = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[Union[str, None], None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowRunInProgress) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobInProgress) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowRunInProgress", - "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowJobInProgress", + "WebhookWorkflowJobInProgressPropWorkflowJob", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0780.py b/githubkit/versions/v2022_11_28/models/group_0780.py index 9cdb595e2..1d055b568 100644 --- a/githubkit/versions/v2022_11_28/models/group_0780.py +++ b/githubkit/versions/v2022_11_28/models/group_0780.py @@ -9,494 +9,78 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0393 import EnterpriseWebhooks -from .group_0394 import SimpleInstallation -from .group_0395 import OrganizationSimpleWebhooks -from .group_0396 import RepositoryWebhooks -from .group_0401 import WebhooksWorkflow +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowRunRequested(GitHubModel): - """workflow_run requested event""" - - action: Literal["requested"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): - """Workflow Run""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( + Field() ) + created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( - title="Repository Lite" + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - rerun_url: str = Field() + name: str = Field() + node_id: str = Field() run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + ) + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() url: str = Field() -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowRunRequested) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowRunRequested", - "WebhookWorkflowRunRequestedPropWorkflowRun", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0781.py b/githubkit/versions/v2022_11_28/models/group_0781.py index 7a34e8c70..b4d62dfca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0781.py +++ b/githubkit/versions/v2022_11_28/models/group_0781.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,39 +17,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser -from .group_0007 import IntegrationPropPermissions +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" -class AppManifestsCodeConversionsPostResponse201(GitHubModel): - """AppManifestsCodeConversionsPostResponse201""" - - id: int = Field(description="Unique identifier of the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." + ) + head_sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[list[str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Literal["in_progress", "completed", "queued"] = Field() + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." ) - node_id: str = Field() - client_id: str = Field() - owner: Union[None, SimpleUser] = Field() - name: str = Field(description="The name of the GitHub app") - description: Union[str, None] = Field() - external_url: str = Field() - html_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: IntegrationPropPermissions = Field( - description="The set of permissions for the GitHub app" + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) - events: list[str] = Field(description="The list of events for the GitHub app") - installations_count: Missing[int] = Field( - default=UNSET, - description="The number of installations associated with the GitHub app", + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( + Field() ) - client_secret: str = Field() - webhook_secret: Union[Union[str, None], None] = Field() - pem: str = Field() + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "pending", "queued"] = Field() -model_rebuild(AppManifestsCodeConversionsPostResponse201) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) -__all__ = ("AppManifestsCodeConversionsPostResponse201",) +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0782.py b/githubkit/versions/v2022_11_28/models/group_0782.py index d16ddbf37..3eb5f48a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0782.py +++ b/githubkit/versions/v2022_11_28/models/group_0782.py @@ -9,22 +9,102 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0196 import Deployment +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): - """AppManifestsCodeConversionsPostResponse201Allof1""" - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[str, None] = Field() - pem: str = Field() +class WebhookWorkflowJobQueued(GitHubModel): + """workflow_job queued event""" + action: Literal["queued"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) -model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) +class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending"] = Field() + + +model_rebuild(WebhookWorkflowJobQueued) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) + +__all__ = ( + "WebhookWorkflowJobQueued", + "WebhookWorkflowJobQueuedPropWorkflowJob", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0783.py b/githubkit/versions/v2022_11_28/models/group_0783.py index e86e478f8..c74285703 100644 --- a/githubkit/versions/v2022_11_28/models/group_0783.py +++ b/githubkit/versions/v2022_11_28/models/group_0783.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,24 +18,95 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0196 import Deployment +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks -class AppHookConfigPatchBody(GitHubModel): - """AppHookConfigPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." +class WebhookWorkflowJobWaiting(GitHubModel): + """workflow_job waiting event""" + + action: Literal["waiting"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - content_type: Missing[str] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - secret: Missing[str] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( + Field() ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(AppHookConfigPatchBody) +model_rebuild(WebhookWorkflowJobWaiting) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) -__all__ = ("AppHookConfigPatchBody",) +__all__ = ( + "WebhookWorkflowJobWaiting", + "WebhookWorkflowJobWaitingPropWorkflowJob", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0784.py b/githubkit/versions/v2022_11_28/models/group_0784.py index 406984575..dc6476dba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0784.py +++ b/githubkit/versions/v2022_11_28/models/group_0784.py @@ -9,13 +9,497 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0407 import WebhooksWorkflow + + +class WebhookWorkflowRunCompleted(GitHubModel): + """workflow_run completed event""" + + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: list[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: Missing[str] = Field( + default=UNSET, + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) +model_rebuild(WebhookWorkflowRunCompleted) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) +__all__ = ( + "WebhookWorkflowRunCompleted", + "WebhookWorkflowRunCompletedPropWorkflowRun", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0785.py b/githubkit/versions/v2022_11_28/models/group_0785.py index c26e13949..3b597a247 100644 --- a/githubkit/versions/v2022_11_28/models/group_0785.py +++ b/githubkit/versions/v2022_11_28/models/group_0785.py @@ -9,33 +9,486 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0016 import AppPermissions +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0407 import WebhooksWorkflow -class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): - """AppInstallationsInstallationIdAccessTokensPostBody""" +class WebhookWorkflowRunInProgress(GitHubModel): + """workflow_run in_progress event""" - repositories: Missing[list[str]] = Field( + action: Literal["in_progress"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="List of repository names that the token should have access to", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - repository_ids: Missing[list[int]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="List of repository IDs that the token should have access to", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - permissions: Missing[AppPermissions] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: list[ + Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( + Field() + ) + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: Union[str, None] = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) +model_rebuild(WebhookWorkflowRunInProgress) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) +__all__ = ( + "WebhookWorkflowRunInProgress", + "WebhookWorkflowRunInProgressPropWorkflowRun", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0786.py b/githubkit/versions/v2022_11_28/models/group_0786.py index 33e9e3dcc..5266f229e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0786.py +++ b/githubkit/versions/v2022_11_28/models/group_0786.py @@ -9,19 +9,494 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0399 import EnterpriseWebhooks +from .group_0400 import SimpleInstallation +from .group_0401 import OrganizationSimpleWebhooks +from .group_0402 import RepositoryWebhooks +from .group_0407 import WebhooksWorkflow + + +class WebhookWorkflowRunRequested(GitHubModel): + """workflow_run requested event""" + + action: Literal["requested"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + Metaproperties for Git author/committer information. + """ -class ApplicationsClientIdGrantDeleteBody(GitHubModel): - """ApplicationsClientIdGrantDeleteBody""" + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(ApplicationsClientIdGrantDeleteBody) +model_rebuild(WebhookWorkflowRunRequested) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("ApplicationsClientIdGrantDeleteBody",) +__all__ = ( + "WebhookWorkflowRunRequested", + "WebhookWorkflowRunRequestedPropWorkflowRun", + "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0787.py b/githubkit/versions/v2022_11_28/models/group_0787.py index 13773092a..2a022955e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0787.py +++ b/githubkit/versions/v2022_11_28/models/group_0787.py @@ -9,19 +9,49 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0008 import Enterprise +from .group_0009 import IntegrationPropPermissions -class ApplicationsClientIdTokenPostBody(GitHubModel): - """ApplicationsClientIdTokenPostBody""" +class AppManifestsCodeConversionsPostResponse201(GitHubModel): + """AppManifestsCodeConversionsPostResponse201""" - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." + id: int = Field(description="Unique identifier of the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + node_id: str = Field() + client_id: str = Field() + owner: Union[SimpleUser, Enterprise] = Field() + name: str = Field(description="The name of the GitHub app") + description: Union[str, None] = Field() + external_url: str = Field() + html_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: IntegrationPropPermissions = Field( + description="The set of permissions for the GitHub app" + ) + events: list[str] = Field(description="The list of events for the GitHub app") + installations_count: Missing[int] = Field( + default=UNSET, + description="The number of installations associated with the GitHub app", ) + client_secret: str = Field() + webhook_secret: Union[Union[str, None], None] = Field() + pem: str = Field() -model_rebuild(ApplicationsClientIdTokenPostBody) +model_rebuild(AppManifestsCodeConversionsPostResponse201) -__all__ = ("ApplicationsClientIdTokenPostBody",) +__all__ = ("AppManifestsCodeConversionsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0788.py b/githubkit/versions/v2022_11_28/models/group_0788.py index 585475cf4..d16ddbf37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0788.py +++ b/githubkit/versions/v2022_11_28/models/group_0788.py @@ -9,19 +9,22 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild -class ApplicationsClientIdTokenDeleteBody(GitHubModel): - """ApplicationsClientIdTokenDeleteBody""" +class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): + """AppManifestsCodeConversionsPostResponse201Allof1""" - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." - ) + client_id: str = Field() + client_secret: str = Field() + webhook_secret: Union[str, None] = Field() + pem: str = Field() -model_rebuild(ApplicationsClientIdTokenDeleteBody) +model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) -__all__ = ("ApplicationsClientIdTokenDeleteBody",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0789.py b/githubkit/versions/v2022_11_28/models/group_0789.py index a2c5766c1..e86e478f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0789.py +++ b/githubkit/versions/v2022_11_28/models/group_0789.py @@ -9,19 +9,32 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ApplicationsClientIdTokenPatchBody(GitHubModel): - """ApplicationsClientIdTokenPatchBody""" +class AppHookConfigPatchBody(GitHubModel): + """AppHookConfigPatchBody""" - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ApplicationsClientIdTokenPatchBody) +model_rebuild(AppHookConfigPatchBody) -__all__ = ("ApplicationsClientIdTokenPatchBody",) +__all__ = ("AppHookConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0790.py b/githubkit/versions/v2022_11_28/models/group_0790.py index e2f1be604..406984575 100644 --- a/githubkit/versions/v2022_11_28/models/group_0790.py +++ b/githubkit/versions/v2022_11_28/models/group_0790.py @@ -9,44 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0016 import AppPermissions - - -class ApplicationsClientIdTokenScopedPostBody(GitHubModel): - """ApplicationsClientIdTokenScopedPostBody""" - - access_token: str = Field( - description="The access token used to authenticate to the GitHub API." - ) - target: Missing[str] = Field( - default=UNSET, - description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", - ) - target_id: Missing[int] = Field( - default=UNSET, - description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", - ) - repositories: Missing[list[str]] = Field( - default=UNSET, - description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", - ) - repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", - ) - permissions: Missing[AppPermissions] = Field( - default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", - ) - - -model_rebuild(ApplicationsClientIdTokenScopedPostBody) - -__all__ = ("ApplicationsClientIdTokenScopedPostBody",) + + +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" + + +model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) + +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0791.py b/githubkit/versions/v2022_11_28/models/group_0791.py index 152fcb757..90930f652 100644 --- a/githubkit/versions/v2022_11_28/models/group_0791.py +++ b/githubkit/versions/v2022_11_28/models/group_0791.py @@ -9,13 +9,33 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from pydantic import Field +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EmojisGetResponse200(ExtraGitHubModel): - """EmojisGetResponse200""" +from .group_0017 import AppPermissions -model_rebuild(EmojisGetResponse200) +class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): + """AppInstallationsInstallationIdAccessTokensPostBody""" -__all__ = ("EmojisGetResponse200",) + repositories: Missing[list[str]] = Field( + default=UNSET, + description="List of repository names that the token should have access to", + ) + repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="List of repository IDs that the token should have access to", + ) + permissions: Missing[AppPermissions] = Field( + default=UNSET, + title="App Permissions", + description="The permissions granted to the user access token.", + ) + + +model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) + +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0792.py b/githubkit/versions/v2022_11_28/models/group_0792.py index e6c88e3d3..33e9e3dcc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0792.py +++ b/githubkit/versions/v2022_11_28/models/group_0792.py @@ -9,116 +9,19 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0028 import CodeScanningDefaultSetupOptions - - -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" - - name: str = Field( - description="The name of the code security configuration. Must be unique within the enterprise." - ) - description: str = Field( - max_length=255, description="A description of the code security configuration" - ) - advanced_security: Missing[Literal["enabled", "disabled"]] = 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" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non provider patterns", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu - bmitActionOptions - Feature options for Automatic dependency submission - """ +class ApplicationsClientIdGrantDeleteBody(GitHubModel): + """ApplicationsClientIdGrantDeleteBody""" - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) -model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsPostBody) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions -) +model_rebuild(ApplicationsClientIdGrantDeleteBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", -) +__all__ = ("ApplicationsClientIdGrantDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0793.py b/githubkit/versions/v2022_11_28/models/group_0793.py index 1c1a45e14..13773092a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0793.py +++ b/githubkit/versions/v2022_11_28/models/group_0793.py @@ -9,122 +9,19 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0028 import CodeScanningDefaultSetupOptions - - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique across the enterprise.", - ) - description: Missing[str] = Field( - max_length=255, - default=UNSET, - description="A description of the code security configuration", - ) - advanced_security: Missing[Literal["enabled", "disabled"]] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security. Must be set to enabled if you want to enable any GHAS settings.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen - dencyGraphAutosubmitActionOptions - Feature options for Automatic dependency submission - """ +class ApplicationsClientIdTokenPostBody(GitHubModel): + """ApplicationsClientIdTokenPostBody""" - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions -) +model_rebuild(ApplicationsClientIdTokenPostBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", -) +__all__ = ("ApplicationsClientIdTokenPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0794.py b/githubkit/versions/v2022_11_28/models/group_0794.py index e8fb76823..585475cf4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0794.py +++ b/githubkit/versions/v2022_11_28/models/group_0794.py @@ -9,27 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class ApplicationsClientIdTokenDeleteBody(GitHubModel): + """ApplicationsClientIdTokenDeleteBody""" - scope: Literal["all", "all_without_configurations"] = 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`" + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody -) +model_rebuild(ApplicationsClientIdTokenDeleteBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", -) +__all__ = ("ApplicationsClientIdTokenDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0795.py b/githubkit/versions/v2022_11_28/models/group_0795.py index d990f81b8..a2c5766c1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0795.py +++ b/githubkit/versions/v2022_11_28/models/group_0795.py @@ -9,32 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class ApplicationsClientIdTokenPatchBody(GitHubModel): + """ApplicationsClientIdTokenPatchBody""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( - default=UNSET, - description="Specify which types of repository this security configuration should be applied to by default.", + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." ) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody -) +model_rebuild(ApplicationsClientIdTokenPatchBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", -) +__all__ = ("ApplicationsClientIdTokenPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0796.py b/githubkit/versions/v2022_11_28/models/group_0796.py index d4e5389af..86bfc32e8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0796.py +++ b/githubkit/versions/v2022_11_28/models/group_0796.py @@ -9,39 +9,44 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0027 import CodeSecurityConfiguration +from .group_0017 import AppPermissions -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons - e200 - """ +class ApplicationsClientIdTokenScopedPostBody(GitHubModel): + """ApplicationsClientIdTokenScopedPostBody""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( + access_token: str = Field( + description="The access token used to authenticate to the GitHub API." + ) + target: Missing[str] = Field( default=UNSET, - description="Specifies which types of repository this security configuration is applied to by default.", + description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + target_id: Missing[int] = Field( + default=UNSET, + description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", + ) + repositories: Missing[list[str]] = Field( + default=UNSET, + description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", + ) + repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", + ) + permissions: Missing[AppPermissions] = Field( + default=UNSET, + title="App Permissions", + description="The permissions granted to the user access token.", ) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 -) +model_rebuild(ApplicationsClientIdTokenScopedPostBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", -) +__all__ = ("ApplicationsClientIdTokenScopedPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0797.py b/githubkit/versions/v2022_11_28/models/group_0797.py index 06d3ecaf9..152fcb757 100644 --- a/githubkit/versions/v2022_11_28/models/group_0797.py +++ b/githubkit/versions/v2022_11_28/models/group_0797.py @@ -9,21 +9,13 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import ExtraGitHubModel, model_rebuild -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +class EmojisGetResponse200(ExtraGitHubModel): + """EmojisGetResponse200""" -class EnterprisesEnterpriseSecretScanningAlertsGetResponse503(GitHubModel): - """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +model_rebuild(EmojisGetResponse200) - -model_rebuild(EnterprisesEnterpriseSecretScanningAlertsGetResponse503) - -__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",) +__all__ = ("EmojisGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0798.py b/githubkit/versions/v2022_11_28/models/group_0798.py index 199114879..0c519ce8e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0798.py +++ b/githubkit/versions/v2022_11_28/models/group_0798.py @@ -13,37 +13,112 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0029 import CodeScanningDefaultSetupOptions -class GistsPostBody(GitHubModel): - """GistsPostBody""" - description: Missing[str] = Field( - default=UNSET, description="Description of the gist" +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + + name: str = Field( + description="The name of the code security configuration. Must be unique within the enterprise." ) - files: GistsPostBodyPropFiles = Field( - description="Names and content for the files that make up the gist" + description: str = Field( + max_length=255, 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" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non provider patterns", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" ) - public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) - -class GistsPostBodyPropFiles(ExtraGitHubModel): - """GistsPostBodyPropFiles - Names and content for the files that make up the gist +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu + bmitActionOptions - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} + Feature options for Automatic dependency submission """ + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) + -model_rebuild(GistsPostBody) -model_rebuild(GistsPostBodyPropFiles) +model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsPostBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions +) __all__ = ( - "GistsPostBody", - "GistsPostBodyPropFiles", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0799.py b/githubkit/versions/v2022_11_28/models/group_0799.py index 3d4986472..5cef79fc8 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 Union +from typing import Literal, Union from pydantic import Field @@ -17,27 +17,114 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class GistsGistIdGetResponse403(GitHubModel): - """GistsGistIdGetResponse403""" - - block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -class GistsGistIdGetResponse403PropBlock(GitHubModel): - """GistsGistIdGetResponse403PropBlock""" - - reason: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - html_url: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(GistsGistIdGetResponse403) -model_rebuild(GistsGistIdGetResponse403PropBlock) +from .group_0029 import CodeScanningDefaultSetupOptions + + +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique across the enterprise.", + ) + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", + ) + advanced_security: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security. Must be set to enabled if you want to enable any GHAS settings.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non-provider patterns", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + + +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen + dencyGraphAutosubmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) + + +model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions +) __all__ = ( - "GistsGistIdGetResponse403", - "GistsGistIdGetResponse403PropBlock", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0800.py b/githubkit/versions/v2022_11_28/models/group_0800.py index 4c7da0217..e3ab1c255 100644 --- a/githubkit/versions/v2022_11_28/models/group_0800.py +++ b/githubkit/versions/v2022_11_28/models/group_0800.py @@ -9,46 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdPatchBody(GitHubModel): - """GistsGistIdPatchBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - description: Missing[str] = Field( - default=UNSET, description="The description of the gist." - ) - files: Missing[GistsGistIdPatchBodyPropFiles] = Field( - default=UNSET, - description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.", + scope: Literal["all", "all_without_configurations"] = Field( + description="The type of repositories to attach the configuration to." ) -class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): - """GistsGistIdPatchBodyPropFiles - - The gist files to be updated, renamed, or deleted. Each `key` must match the - current filename - (including extension) of the targeted gist file. For example: `hello.py`. - - To delete a file, set the whole file to null. For example: `hello.py : null`. - The file will also be - deleted if the specified object does not contain at least one of `content` or - `filename`. - - Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} - """ - - -model_rebuild(GistsGistIdPatchBody) -model_rebuild(GistsGistIdPatchBodyPropFiles) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody +) __all__ = ( - "GistsGistIdPatchBody", - "GistsGistIdPatchBodyPropFiles", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0801.py b/githubkit/versions/v2022_11_28/models/group_0801.py index 4da522baf..d990f81b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0801.py +++ b/githubkit/versions/v2022_11_28/models/group_0801.py @@ -9,17 +9,32 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class GistsGistIdCommentsPostBody(GitHubModel): - """GistsGistIdCommentsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - body: str = Field(max_length=65535, description="The comment text.") + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( + default=UNSET, + description="Specify which types of repository this security configuration should be applied to by default.", + ) -model_rebuild(GistsGistIdCommentsPostBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody +) -__all__ = ("GistsGistIdCommentsPostBody",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0802.py b/githubkit/versions/v2022_11_28/models/group_0802.py index 6b63828a9..f0a4b8cc3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0802.py +++ b/githubkit/versions/v2022_11_28/models/group_0802.py @@ -9,17 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0028 import CodeSecurityConfiguration -class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): - """GistsGistIdCommentsCommentIdPatchBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons + e200 + """ - body: str = Field(max_length=65535, description="The comment text.") + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( + default=UNSET, + description="Specifies which types of repository this security configuration is applied to by default.", + ) + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" + ) -model_rebuild(GistsGistIdCommentsCommentIdPatchBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 +) -__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0803.py b/githubkit/versions/v2022_11_28/models/group_0803.py index c642ead3b..06d3ecaf9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0803.py +++ b/githubkit/versions/v2022_11_28/models/group_0803.py @@ -9,13 +9,21 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class EnterprisesEnterpriseSecretScanningAlertsGetResponse503(GitHubModel): + """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" -class GistsGistIdStarGetResponse404(GitHubModel): - """GistsGistIdStarGetResponse404""" + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(GistsGistIdStarGetResponse404) +model_rebuild(EnterprisesEnterpriseSecretScanningAlertsGetResponse503) -__all__ = ("GistsGistIdStarGetResponse404",) +__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",) diff --git a/githubkit/versions/v2022_11_28/models/group_0804.py b/githubkit/versions/v2022_11_28/models/group_0804.py index 1011e6b4c..199114879 100644 --- a/githubkit/versions/v2022_11_28/models/group_0804.py +++ b/githubkit/versions/v2022_11_28/models/group_0804.py @@ -9,23 +9,41 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0019 import Repository +class GistsPostBody(GitHubModel): + """GistsPostBody""" + + description: Missing[str] = Field( + default=UNSET, description="Description of the gist" + ) + files: GistsPostBodyPropFiles = Field( + description="Names and content for the files that make up the gist" + ) + public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) + + +class GistsPostBodyPropFiles(ExtraGitHubModel): + """GistsPostBodyPropFiles -class InstallationRepositoriesGetResponse200(GitHubModel): - """InstallationRepositoriesGetResponse200""" + Names and content for the files that make up the gist - total_count: int = Field() - repositories: list[Repository] = Field() - repository_selection: Missing[str] = Field(default=UNSET) + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ -model_rebuild(InstallationRepositoriesGetResponse200) +model_rebuild(GistsPostBody) +model_rebuild(GistsPostBodyPropFiles) -__all__ = ("InstallationRepositoriesGetResponse200",) +__all__ = ( + "GistsPostBody", + "GistsPostBodyPropFiles", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0805.py b/githubkit/versions/v2022_11_28/models/group_0805.py index d2f8fe721..3d4986472 100644 --- a/githubkit/versions/v2022_11_28/models/group_0805.py +++ b/githubkit/versions/v2022_11_28/models/group_0805.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,19 +18,26 @@ from githubkit.utils import UNSET -class MarkdownPostBody(GitHubModel): - """MarkdownPostBody""" +class GistsGistIdGetResponse403(GitHubModel): + """GistsGistIdGetResponse403""" - text: str = Field(description="The Markdown text to render in HTML.") - mode: Missing[Literal["markdown", "gfm"]] = Field( - default=UNSET, description="The rendering mode." - ) - context: Missing[str] = Field( - default=UNSET, - description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", - ) + block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(MarkdownPostBody) +class GistsGistIdGetResponse403PropBlock(GitHubModel): + """GistsGistIdGetResponse403PropBlock""" -__all__ = ("MarkdownPostBody",) + reason: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + html_url: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(GistsGistIdGetResponse403) +model_rebuild(GistsGistIdGetResponse403PropBlock) + +__all__ = ( + "GistsGistIdGetResponse403", + "GistsGistIdGetResponse403PropBlock", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0806.py b/githubkit/versions/v2022_11_28/models/group_0806.py index a88d20422..4c7da0217 100644 --- a/githubkit/versions/v2022_11_28/models/group_0806.py +++ b/githubkit/versions/v2022_11_28/models/group_0806.py @@ -9,27 +9,46 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class NotificationsPutBody(GitHubModel): - """NotificationsPutBody""" +class GistsGistIdPatchBody(GitHubModel): + """GistsGistIdPatchBody""" - last_read_at: Missing[datetime] = Field( - default=UNSET, - description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + description: Missing[str] = Field( + default=UNSET, description="The description of the gist." ) - read: Missing[bool] = Field( - default=UNSET, description="Whether the notification has been read." + files: Missing[GistsGistIdPatchBodyPropFiles] = Field( + default=UNSET, + description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.", ) -model_rebuild(NotificationsPutBody) +class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): + """GistsGistIdPatchBodyPropFiles + + The gist files to be updated, renamed, or deleted. Each `key` must match the + current filename + (including extension) of the targeted gist file. For example: `hello.py`. + + To delete a file, set the whole file to null. For example: `hello.py : null`. + The file will also be + deleted if the specified object does not contain at least one of `content` or + `filename`. + + Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} + """ + + +model_rebuild(GistsGistIdPatchBody) +model_rebuild(GistsGistIdPatchBodyPropFiles) -__all__ = ("NotificationsPutBody",) +__all__ = ( + "GistsGistIdPatchBody", + "GistsGistIdPatchBodyPropFiles", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0807.py b/githubkit/versions/v2022_11_28/models/group_0807.py index 671e9e3a2..4da522baf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0807.py +++ b/githubkit/versions/v2022_11_28/models/group_0807.py @@ -12,16 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class NotificationsPutResponse202(GitHubModel): - """NotificationsPutResponse202""" +class GistsGistIdCommentsPostBody(GitHubModel): + """GistsGistIdCommentsPostBody""" - message: Missing[str] = Field(default=UNSET) + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(NotificationsPutResponse202) +model_rebuild(GistsGistIdCommentsPostBody) -__all__ = ("NotificationsPutResponse202",) +__all__ = ("GistsGistIdCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0808.py b/githubkit/versions/v2022_11_28/models/group_0808.py index 0d1f3d378..6b63828a9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0808.py +++ b/githubkit/versions/v2022_11_28/models/group_0808.py @@ -12,18 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): + """GistsGistIdCommentsCommentIdPatchBody""" - ignored: Missing[bool] = Field( - default=UNSET, description="Whether to block all notifications from a thread." - ) + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) +model_rebuild(GistsGistIdCommentsCommentIdPatchBody) -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0809.py b/githubkit/versions/v2022_11_28/models/group_0809.py index ba21baf7e..c642ead3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0809.py +++ b/githubkit/versions/v2022_11_28/models/group_0809.py @@ -9,132 +9,13 @@ from __future__ import annotations -from typing import Literal - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class OrgsOrgPatchBody(GitHubModel): - """OrgsOrgPatchBody""" - billing_email: Missing[str] = Field( - default=UNSET, - description="Billing email address. This address is not publicized.", - ) - company: Missing[str] = Field(default=UNSET, description="The company name.") - email: Missing[str] = Field( - default=UNSET, description="The publicly visible email address." - ) - twitter_username: Missing[str] = Field( - default=UNSET, description="The Twitter username of the company." - ) - location: Missing[str] = Field(default=UNSET, description="The location.") - name: Missing[str] = Field( - default=UNSET, description="The shorthand name of the company." - ) - description: Missing[str] = Field( - default=UNSET, - description="The description of the company. The maximum size is 160 characters.", - ) - has_organization_projects: Missing[bool] = Field( - default=UNSET, - description="Whether an organization can use organization projects.", - ) - has_repository_projects: Missing[bool] = Field( - default=UNSET, - description="Whether repositories that belong to the organization can use repository projects.", - ) - default_repository_permission: Missing[ - Literal["read", "write", "admin", "none"] - ] = Field( - default=UNSET, - description="Default permission level members have for organization repositories.", - ) - members_can_create_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", - ) - members_can_create_internal_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_private_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_public_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_allowed_repository_creation_type: Missing[ - Literal["all", "private", "none"] - ] = Field( - default=UNSET, - description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", - ) - members_can_create_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_public_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_private_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_fork_private_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can fork private organization repositories.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", - ) - blog: Missing[str] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", - ) - secret_scanning_push_protection_custom_link: Missing[str] = Field( - default=UNSET, - description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", - ) - deploy_keys_enabled_for_repositories: Missing[bool] = Field( - default=UNSET, - description="Controls whether or not deploy keys may be added and used for repositories in the organization.", - ) +class GistsGistIdStarGetResponse404(GitHubModel): + """GistsGistIdStarGetResponse404""" -model_rebuild(OrgsOrgPatchBody) +model_rebuild(GistsGistIdStarGetResponse404) -__all__ = ("OrgsOrgPatchBody",) +__all__ = ("GistsGistIdStarGetResponse404",) diff --git a/githubkit/versions/v2022_11_28/models/group_0810.py b/githubkit/versions/v2022_11_28/models/group_0810.py index 83117a7e2..31a724d8d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0810.py +++ b/githubkit/versions/v2022_11_28/models/group_0810.py @@ -12,36 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0020 import Repository -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - total_count: int = Field() - repository_cache_usages: list[ActionsCacheUsageByRepository] = Field() - - -class ActionsCacheUsageByRepository(GitHubModel): - """Actions Cache Usage by repository +class InstallationRepositoriesGetResponse200(GitHubModel): + """InstallationRepositoriesGetResponse200""" - GitHub Actions Cache Usage by repository. - """ - - full_name: str = Field( - description="The repository owner and name for the cache usage being shown." - ) - active_caches_size_in_bytes: int = Field( - description="The sum of the size in bytes of all the active cache items in the repository." - ) - active_caches_count: int = Field( - description="The number of active caches in the repository." - ) + total_count: int = Field() + repositories: list[Repository] = Field() + repository_selection: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) -model_rebuild(ActionsCacheUsageByRepository) +model_rebuild(InstallationRepositoriesGetResponse200) -__all__ = ( - "ActionsCacheUsageByRepository", - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", -) +__all__ = ("InstallationRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0811.py b/githubkit/versions/v2022_11_28/models/group_0811.py index 5069b6316..d2f8fe721 100644 --- a/githubkit/versions/v2022_11_28/models/group_0811.py +++ b/githubkit/versions/v2022_11_28/models/group_0811.py @@ -18,18 +18,19 @@ from githubkit.utils import UNSET -class OrgsOrgActionsPermissionsPutBody(GitHubModel): - """OrgsOrgActionsPermissionsPutBody""" +class MarkdownPostBody(GitHubModel): + """MarkdownPostBody""" - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." + text: str = Field(description="The Markdown text to render in HTML.") + mode: Missing[Literal["markdown", "gfm"]] = Field( + default=UNSET, description="The rendering mode." ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + context: Missing[str] = Field( default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", ) -model_rebuild(OrgsOrgActionsPermissionsPutBody) +model_rebuild(MarkdownPostBody) -__all__ = ("OrgsOrgActionsPermissionsPutBody",) +__all__ = ("MarkdownPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0812.py b/githubkit/versions/v2022_11_28/models/group_0812.py index 26cd8ded6..a88d20422 100644 --- a/githubkit/versions/v2022_11_28/models/group_0812.py +++ b/githubkit/versions/v2022_11_28/models/group_0812.py @@ -9,20 +9,27 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0019 import Repository +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" +class NotificationsPutBody(GitHubModel): + """NotificationsPutBody""" - total_count: float = Field() - repositories: list[Repository] = Field() + last_read_at: Missing[datetime] = Field( + default=UNSET, + description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + ) + read: Missing[bool] = Field( + default=UNSET, description="Whether the notification has been read." + ) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) +model_rebuild(NotificationsPutBody) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) +__all__ = ("NotificationsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0813.py b/githubkit/versions/v2022_11_28/models/group_0813.py index a77afe01a..671e9e3a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0813.py +++ b/githubkit/versions/v2022_11_28/models/group_0813.py @@ -12,16 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class NotificationsPutResponse202(GitHubModel): + """NotificationsPutResponse202""" - selected_repository_ids: list[int] = Field( - description="List of repository IDs to enable for GitHub Actions." - ) + message: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) +model_rebuild(NotificationsPutResponse202) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) +__all__ = ("NotificationsPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0814.py b/githubkit/versions/v2022_11_28/models/group_0814.py index 4886cc1ee..0d1f3d378 100644 --- a/githubkit/versions/v2022_11_28/models/group_0814.py +++ b/githubkit/versions/v2022_11_28/models/group_0814.py @@ -16,47 +16,14 @@ from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsGetResponse200""" +class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): + """NotificationsThreadsThreadIdSubscriptionPutBody""" - total_count: float = Field() - runner_groups: list[RunnerGroupsOrg] = Field() - - -class RunnerGroupsOrg(GitHubModel): - """RunnerGroupsOrg""" - - id: float = Field() - name: str = Field() - visibility: str = Field() - default: bool = Field() - selected_repositories_url: Missing[str] = Field( - default=UNSET, - description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", - ) - runners_url: str = Field() - hosted_runners_url: Missing[str] = Field(default=UNSET) - inherited: bool = Field() - inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) - allows_public_repositories: bool = Field() - workflow_restrictions_read_only: Missing[bool] = Field( - default=UNSET, - description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ignored: Missing[bool] = Field( + default=UNSET, description="Whether to block all notifications from a thread." ) -model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsOrg) +model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) -__all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200", - "RunnerGroupsOrg", -) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0815.py b/githubkit/versions/v2022_11_28/models/group_0815.py index 2536667a6..ba21baf7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0815.py +++ b/githubkit/versions/v2022_11_28/models/group_0815.py @@ -18,35 +18,123 @@ from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsPostBody""" +class OrgsOrgPatchBody(GitHubModel): + """OrgsOrgPatchBody""" - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( + billing_email: Missing[str] = Field( default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", + description="Billing email address. This address is not publicized.", ) - selected_repository_ids: Missing[list[int]] = Field( + company: Missing[str] = Field(default=UNSET, description="The company name.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address." + ) + twitter_username: Missing[str] = Field( + default=UNSET, description="The Twitter username of the company." + ) + location: Missing[str] = Field(default=UNSET, description="The location.") + name: Missing[str] = Field( + default=UNSET, description="The shorthand name of the company." + ) + description: Missing[str] = Field( + default=UNSET, + description="The description of the company. The maximum size is 160 characters.", + ) + has_organization_projects: Missing[bool] = Field( + default=UNSET, + description="Whether an organization can use organization projects.", + ) + has_repository_projects: Missing[bool] = Field( + default=UNSET, + description="Whether repositories that belong to the organization can use repository projects.", + ) + default_repository_permission: Missing[ + Literal["read", "write", "admin", "none"] + ] = Field( + default=UNSET, + description="Default permission level members have for organization repositories.", + ) + members_can_create_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", + ) + members_can_create_internal_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_private_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_public_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_allowed_repository_creation_type: Missing[ + Literal["all", "private", "none"] + ] = Field( + default=UNSET, + description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", + ) + members_can_create_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_create_public_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_create_private_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_fork_private_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can fork private organization repositories.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", + ) + blog: Missing[str] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - description="List of repository IDs that can access the runner group.", + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', ) - runners: Missing[list[int]] = Field( - default=UNSET, description="List of runner IDs to add to the runner group." + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', ) - allows_public_repositories: Missing[bool] = Field( + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( default=UNSET, - description="Whether the runner group can be used by `public` repositories.", + description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", ) - restricted_to_workflows: Missing[bool] = Field( + secret_scanning_push_protection_custom_link: Missing[str] = Field( default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", ) - selected_workflows: Missing[list[str]] = Field( + deploy_keys_enabled_for_repositories: Missing[bool] = Field( default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + description="Controls whether or not deploy keys may be added and used for repositories in the organization.", ) -model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) +model_rebuild(OrgsOrgPatchBody) -__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) +__all__ = ("OrgsOrgPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0816.py b/githubkit/versions/v2022_11_28/models/group_0816.py index ebcee8218..83117a7e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0816.py +++ b/githubkit/versions/v2022_11_28/models/group_0816.py @@ -9,37 +9,39 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.", - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", + total_count: int = Field() + repository_cache_usages: list[ActionsCacheUsageByRepository] = Field() + + +class ActionsCacheUsageByRepository(GitHubModel): + """Actions Cache Usage by repository + + GitHub Actions Cache Usage by repository. + """ + + full_name: str = Field( + description="The repository owner and name for the cache usage being shown." ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + active_caches_size_in_bytes: int = Field( + description="The sum of the size in bytes of all the active cache items in the repository." ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + active_caches_count: int = Field( + description="The number of active caches in the repository." ) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) +model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) +model_rebuild(ActionsCacheUsageByRepository) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) +__all__ = ( + "ActionsCacheUsageByRepository", + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0817.py b/githubkit/versions/v2022_11_28/models/group_0817.py index dd5003289..b14088bfa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0817.py +++ b/githubkit/versions/v2022_11_28/models/group_0817.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0056 import MinimalRepository +from .group_0065 import ActionsHostedRunner -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" +class OrgsOrgActionsHostedRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersGetResponse200""" - total_count: float = Field() - repositories: list[MinimalRepository] = Field() + total_count: int = Field() + runners: list[ActionsHostedRunner] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersGetResponse200) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0818.py b/githubkit/versions/v2022_11_28/models/group_0818.py index 9316f516b..62a261af1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0818.py +++ b/githubkit/versions/v2022_11_28/models/group_0818.py @@ -9,19 +9,63 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" +class OrgsOrgActionsHostedRunnersPostBody(GitHubModel): + """OrgsOrgActionsHostedRunnersPostBody""" - selected_repository_ids: list[int] = Field( - description="List of repository IDs that can access the runner group." + name: str = Field( + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + ) + image: OrgsOrgActionsHostedRunnersPostBodyPropImage = Field( + description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." + ) + size: str = Field( + description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" + ) + runner_group_id: int = Field( + description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) + + +class OrgsOrgActionsHostedRunnersPostBodyPropImage(GitHubModel): + """OrgsOrgActionsHostedRunnersPostBodyPropImage + + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ + + id: Missing[str] = Field( + default=UNSET, description="The unique identifier of the runner image." + ) + source: Missing[Literal["github", "partner", "custom"]] = Field( + default=UNSET, description="The source of the runner image." + ) + version: Missing[Union[str, None]] = Field( + default=UNSET, + description="The version of the runner image to deploy. This is relevant only for runners using custom images.", ) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) +model_rebuild(OrgsOrgActionsHostedRunnersPostBody) +model_rebuild(OrgsOrgActionsHostedRunnersPostBodyPropImage) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) +__all__ = ( + "OrgsOrgActionsHostedRunnersPostBody", + "OrgsOrgActionsHostedRunnersPostBodyPropImage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0819.py b/githubkit/versions/v2022_11_28/models/group_0819.py index 2b859368b..50ac62e0d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0819.py +++ b/githubkit/versions/v2022_11_28/models/group_0819.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0069 import Runner +from .group_0066 import ActionsHostedRunnerImage -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" +class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" - total_count: float = Field() - runners: list[Runner] = Field() + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0820.py b/githubkit/versions/v2022_11_28/models/group_0820.py index fdc59a741..fc59fe997 100644 --- a/githubkit/versions/v2022_11_28/models/group_0820.py +++ b/githubkit/versions/v2022_11_28/models/group_0820.py @@ -13,15 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0066 import ActionsHostedRunnerImage -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: list[int] = Field( - description="List of runner IDs to add to the runner group." - ) +class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) +model_rebuild(OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200) + +__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0821.py b/githubkit/versions/v2022_11_28/models/group_0821.py index 52ec3d70e..16a79acb5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0821.py +++ b/githubkit/versions/v2022_11_28/models/group_0821.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0069 import Runner +from .group_0064 import ActionsHostedRunnerMachineSpec -class OrgsOrgActionsRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersGetResponse200""" +class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" total_count: int = Field() - runners: list[Runner] = Field() + machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() -model_rebuild(OrgsOrgActionsRunnersGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersMachineSizesGetResponse200) -__all__ = ("OrgsOrgActionsRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0822.py b/githubkit/versions/v2022_11_28/models/group_0822.py index f7baba749..1a2bc561d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0822.py +++ b/githubkit/versions/v2022_11_28/models/group_0822.py @@ -11,29 +11,16 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class OrgsOrgActionsHostedRunnersPlatformsGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", - ) + total_count: int = Field() + platforms: list[str] = Field() -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) +model_rebuild(OrgsOrgActionsHostedRunnersPlatformsGetResponse200) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0823.py b/githubkit/versions/v2022_11_28/models/group_0823.py index 348cb8b65..6f48450a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0823.py +++ b/githubkit/versions/v2022_11_28/models/group_0823.py @@ -9,24 +9,39 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0069 import Runner +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" +class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): + """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" - runner: Runner = Field( - title="Self hosted runners", description="A self hosted runner" + name: Missing[str] = Field( + default=UNSET, + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + ) + runner_group_id: Missing[int] = Field( + default=UNSET, description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", ) - encoded_jit_config: str = Field( - description="The base64 encoded runner configuration." + image_version: Missing[Union[str, None]] = Field( + default=UNSET, + description="The version of the runner image to deploy. This is relevant only for runners using custom images.", ) -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostResponse201) +model_rebuild(OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",) +__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0824.py b/githubkit/versions/v2022_11_28/models/group_0824.py index fc5e9da21..5069b6316 100644 --- a/githubkit/versions/v2022_11_28/models/group_0824.py +++ b/githubkit/versions/v2022_11_28/models/group_0824.py @@ -9,20 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0068 import RunnerLabel +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" +class OrgsOrgActionsPermissionsPutBody(GitHubModel): + """OrgsOrgActionsPermissionsPutBody""" - total_count: int = Field() - labels: list[RunnerLabel] = Field() + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200) +model_rebuild(OrgsOrgActionsPermissionsPutBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",) +__all__ = ("OrgsOrgActionsPermissionsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0825.py b/githubkit/versions/v2022_11_28/models/group_0825.py index ad2f375a8..422588e8f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0825.py +++ b/githubkit/versions/v2022_11_28/models/group_0825.py @@ -11,18 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0020 import Repository -class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", - ) +class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + total_count: float = Field() + repositories: list[Repository] = Field() -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0826.py b/githubkit/versions/v2022_11_28/models/group_0826.py index f5caa1c57..a77afe01a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0826.py +++ b/githubkit/versions/v2022_11_28/models/group_0826.py @@ -11,19 +11,17 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" +class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", + selected_repository_ids: list[int] = Field( + description="List of repository IDs to enable for GitHub Actions." ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0827.py b/githubkit/versions/v2022_11_28/models/group_0827.py index 80ae95259..269bdfc1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0827.py +++ b/githubkit/versions/v2022_11_28/models/group_0827.py @@ -12,17 +12,55 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0068 import RunnerLabel +class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsGetResponse200""" -class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" + total_count: float = Field() + runner_groups: list[RunnerGroupsOrg] = Field() - total_count: int = Field() - labels: list[RunnerLabel] = Field() +class RunnerGroupsOrg(GitHubModel): + """RunnerGroupsOrg""" -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200) + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", + ) + runners_url: str = Field() + hosted_runners_url: Missing[str] = Field(default=UNSET) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", + ) + inherited: bool = Field() + inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( + default=UNSET, + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",) + +model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsOrg) + +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200", + "RunnerGroupsOrg", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0828.py b/githubkit/versions/v2022_11_28/models/group_0828.py index 80c1e6af7..87ecde816 100644 --- a/githubkit/versions/v2022_11_28/models/group_0828.py +++ b/githubkit/versions/v2022_11_28/models/group_0828.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,32 +18,39 @@ from githubkit.utils import UNSET -class OrgsOrgActionsSecretsGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsGetResponse200""" +class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsPostBody""" - total_count: int = Field() - secrets: list[OrganizationActionsSecret] = Field() - - -class OrganizationActionsSecret(GitHubModel): - """Actions Secret for an Organization - - Secrets for GitHub Actions for an organization. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="List of repository IDs that can access the runner group.", + ) + runners: Missing[list[int]] = Field( + default=UNSET, description="List of runner IDs to add to the runner group." + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsSecretsGetResponse200) -model_rebuild(OrganizationActionsSecret) +model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) -__all__ = ( - "OrganizationActionsSecret", - "OrgsOrgActionsSecretsGetResponse200", -) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0829.py b/githubkit/versions/v2022_11_28/models/group_0829.py index 1c39daf61..adc28b4f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0829.py +++ b/githubkit/versions/v2022_11_28/models/group_0829.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,26 +18,32 @@ from githubkit.utils import UNSET -class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - 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})$", + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint.", + description="Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.", ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", ) - 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_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) - selected_repository_ids: Missing[list[int]] = Field( + network_configuration_id: Missing[Union[str, None]] = Field( default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + description="The identifier of a hosted compute network configuration.", ) -model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0830.py b/githubkit/versions/v2022_11_28/models/group_0830.py index 49473967e..c5911e47f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0830.py +++ b/githubkit/versions/v2022_11_28/models/group_0830.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0056 import MinimalRepository +from .group_0065 import ActionsHostedRunner -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" - total_count: int = Field() - repositories: list[MinimalRepository] = Field() + total_count: float = Field() + runners: list[ActionsHostedRunner] = Field() -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0831.py b/githubkit/versions/v2022_11_28/models/group_0831.py index a609a0c6d..7e8c4c8fd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0831.py +++ b/githubkit/versions/v2022_11_28/models/group_0831.py @@ -13,15 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0057 import MinimalRepository -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." - ) +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + total_count: float = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0832.py b/githubkit/versions/v2022_11_28/models/group_0832.py index 77241a9f2..9316f516b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0832.py +++ b/githubkit/versions/v2022_11_28/models/group_0832.py @@ -9,47 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgActionsVariablesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesGetResponse200""" - - total_count: int = Field() - variables: list[OrganizationActionsVariable] = Field() -class OrganizationActionsVariable(GitHubModel): - """Actions Variable for an Organization +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - Organization variable for GitHub Actions. - """ - - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a variable" + selected_repository_ids: list[int] = Field( + description="List of repository IDs that can access the runner group." ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsVariablesGetResponse200) -model_rebuild(OrganizationActionsVariable) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) -__all__ = ( - "OrganizationActionsVariable", - "OrgsOrgActionsVariablesGetResponse200", -) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0833.py b/githubkit/versions/v2022_11_28/models/group_0833.py index 42955f682..cb7d0d4c7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0833.py +++ b/githubkit/versions/v2022_11_28/models/group_0833.py @@ -9,29 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0074 import Runner -class OrgsOrgActionsVariablesPostBody(GitHubModel): - """OrgsOrgActionsVariablesPostBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", - ) + total_count: float = Field() + runners: list[Runner] = Field() -model_rebuild(OrgsOrgActionsVariablesPostBody) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) -__all__ = ("OrgsOrgActionsVariablesPostBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0834.py b/githubkit/versions/v2022_11_28/models/group_0834.py index f229885c2..fdc59a741 100644 --- a/githubkit/versions/v2022_11_28/models/group_0834.py +++ b/githubkit/versions/v2022_11_28/models/group_0834.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): - """OrgsOrgActionsVariablesNamePatchBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") - visibility: Missing[Literal["all", "private", "selected"]] = Field( - default=UNSET, - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", + runners: list[int] = Field( + description="List of runner IDs to add to the runner group." ) -model_rebuild(OrgsOrgActionsVariablesNamePatchBody) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0835.py b/githubkit/versions/v2022_11_28/models/group_0835.py index 37098c98d..05397aa90 100644 --- a/githubkit/versions/v2022_11_28/models/group_0835.py +++ b/githubkit/versions/v2022_11_28/models/group_0835.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0056 import MinimalRepository +from .group_0074 import Runner -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" +class OrgsOrgActionsRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersGetResponse200""" total_count: int = Field() - repositories: list[MinimalRepository] = Field() + runners: list[Runner] = Field() -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) +model_rebuild(OrgsOrgActionsRunnersGetResponse200) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0836.py b/githubkit/versions/v2022_11_28/models/group_0836.py index 4c5d80233..f7baba749 100644 --- a/githubkit/versions/v2022_11_28/models/group_0836.py +++ b/githubkit/versions/v2022_11_28/models/group_0836.py @@ -11,17 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - selected_repository_ids: list[int] = Field( - description="The IDs of the repositories that can access the organization variable." + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + ) + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", ) -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0837.py b/githubkit/versions/v2022_11_28/models/group_0837.py index 6f5195042..67310156f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0837.py +++ b/githubkit/versions/v2022_11_28/models/group_0837.py @@ -11,84 +11,22 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild +from .group_0074 import Runner -class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): - """OrgsOrgAttestationsSubjectDigestGetResponse200""" - attestations: Missing[ - list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) +class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems(GitHubModel): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: Missing[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( - default=UNSET, - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", + runner: Runner = Field( + title="Self hosted runners", description="A self hosted runner" + ) + encoded_jit_config: str = Field( + description="The base64 encoded runner configuration." ) - repository_id: Missing[int] = Field(default=UNSET) - bundle_url: Missing[str] = Field(default=UNSET) - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( - GitHubModel -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro - pVerificationMaterial - """ - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro - pDsseEnvelope - """ -model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200) -model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems) -model_rebuild( - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostResponse201) -__all__ = ( - "OrgsOrgAttestationsSubjectDigestGetResponse200", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0838.py b/githubkit/versions/v2022_11_28/models/group_0838.py index 4a4a3f497..9b90b5b7f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0838.py +++ b/githubkit/versions/v2022_11_28/models/group_0838.py @@ -9,170 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0028 import CodeScanningDefaultSetupOptions - - -class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsPostBody""" - - name: str = Field( - description="The name of the code security configuration. Must be unique within the organization." - ) - description: str = Field( - max_length=255, description="A description of the code security configuration" - ) - advanced_security: Missing[Literal["enabled", "disabled"]] = 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" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non provider patterns", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti - ons - - Feature options for Automatic dependency submission - """ - - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - s - - Feature options for secret scanning delegated bypass - """ - reviewers: Missing[ - list[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems - ] - ] = Field( - default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) +from .group_0073 import RunnerLabel -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - sPropReviewersItems - """ +class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" - ) + total_count: int = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200) -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsPostBody", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0839.py b/githubkit/versions/v2022_11_28/models/group_0839.py index 4bcc6720d..ad2f375a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0839.py +++ b/githubkit/versions/v2022_11_28/models/group_0839.py @@ -11,20 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs to detach from configurations.", + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0840.py b/githubkit/versions/v2022_11_28/models/group_0840.py index 8b446dc51..f5caa1c57 100644 --- a/githubkit/versions/v2022_11_28/models/group_0840.py +++ b/githubkit/versions/v2022_11_28/models/group_0840.py @@ -9,173 +9,21 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0028 import CodeScanningDefaultSetupOptions - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique within the organization.", - ) - description: Missing[str] = Field( - max_length=255, - default=UNSET, - description="A description of the code security configuration", - ) - advanced_security: Missing[Literal["enabled", "disabled"]] = 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" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto - submitActionOptions - Feature options for Automatic dependency submission - """ - - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) +class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: Missing[ - list[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems - ] - ] = Field( - default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptionsPropReviewersItems - """ - - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0841.py b/githubkit/versions/v2022_11_28/models/group_0841.py index 3e150ccc7..81dd16561 100644 --- a/githubkit/versions/v2022_11_28/models/group_0841.py +++ b/githubkit/versions/v2022_11_28/models/group_0841.py @@ -9,29 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0073 import RunnerLabel -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" - scope: Literal[ - "all", "all_without_configurations", "public", "private_or_internal", "selected" - ] = Field( - description="The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`" - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs to attach the configuration to. You can only provide a list of repository ids when the `scope` is set to `selected`.", - ) + total_count: int = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0842.py b/githubkit/versions/v2022_11_28/models/group_0842.py index b47755cb5..80c1e6af7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0842.py +++ b/githubkit/versions/v2022_11_28/models/group_0842.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -18,17 +19,32 @@ from githubkit.utils import UNSET -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class OrgsOrgActionsSecretsGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsGetResponse200""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( - default=UNSET, - description="Specify which types of repository this security configuration should be applied to by default.", + total_count: int = Field() + secrets: list[OrganizationActionsSecret] = Field() + + +class OrganizationActionsSecret(GitHubModel): + """Actions Secret for an Organization + + Secrets for GitHub Actions for an organization. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) +model_rebuild(OrgsOrgActionsSecretsGetResponse200) +model_rebuild(OrganizationActionsSecret) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) +__all__ = ( + "OrganizationActionsSecret", + "OrgsOrgActionsSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0843.py b/githubkit/versions/v2022_11_28/models/group_0843.py index 4f7ac2652..041a38bd4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0843.py +++ b/githubkit/versions/v2022_11_28/models/group_0843.py @@ -17,25 +17,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0027 import CodeSecurityConfiguration +class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNamePutBody""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - - 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.", + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint.", ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + key_id: str = Field(description="ID of the key you used to encrypt the secret.") + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) +model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0844.py b/githubkit/versions/v2022_11_28/models/group_0844.py index 15de83b89..2bd69f4eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0844.py +++ b/githubkit/versions/v2022_11_28/models/group_0844.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0078 import Codespace +from .group_0057 import MinimalRepository -class OrgsOrgCodespacesGetResponse200(GitHubModel): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" total_count: int = Field() - codespaces: list[Codespace] = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgCodespacesGetResponse200) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgCodespacesGetResponse200",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0845.py b/githubkit/versions/v2022_11_28/models/group_0845.py index ed7cad665..a609a0c6d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0845.py +++ b/githubkit/versions/v2022_11_28/models/group_0845.py @@ -9,33 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessPutBody(GitHubModel): - """OrgsOrgCodespacesAccessPutBody""" +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] = Field( - description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." - ) - selected_usernames: Missing[list[str]] = Field( - max_length=100 if PYDANTIC_V2 else None, - default=UNSET, - description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", + selected_repository_ids: list[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -model_rebuild(OrgsOrgCodespacesAccessPutBody) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgCodespacesAccessPutBody",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0846.py b/githubkit/versions/v2022_11_28/models/group_0846.py index 7ae93c749..77241a9f2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0846.py +++ b/githubkit/versions/v2022_11_28/models/group_0846.py @@ -9,20 +9,47 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgActionsVariablesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesGetResponse200""" + + total_count: int = Field() + variables: list[OrganizationActionsVariable] = Field() -class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrganizationActionsVariable(GitHubModel): + """Actions Variable for an Organization - selected_usernames: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The usernames of the organization members whose codespaces be billed to the organization.", + Organization variable for GitHub Actions. + """ + + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + created_at: datetime = Field( + description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a variable" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) +model_rebuild(OrgsOrgActionsVariablesGetResponse200) +model_rebuild(OrganizationActionsVariable) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) +__all__ = ( + "OrganizationActionsVariable", + "OrgsOrgActionsVariablesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0847.py b/githubkit/versions/v2022_11_28/models/group_0847.py index 0c752f566..42955f682 100644 --- a/githubkit/versions/v2022_11_28/models/group_0847.py +++ b/githubkit/versions/v2022_11_28/models/group_0847.py @@ -9,20 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgActionsVariablesPostBody(GitHubModel): + """OrgsOrgActionsVariablesPostBody""" - selected_usernames: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The usernames of the organization members whose codespaces should not be billed to the organization.", + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) +model_rebuild(OrgsOrgActionsVariablesPostBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) +__all__ = ("OrgsOrgActionsVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0848.py b/githubkit/versions/v2022_11_28/models/group_0848.py index 58a07d080..f229885c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0848.py +++ b/githubkit/versions/v2022_11_28/models/group_0848.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,39 +18,21 @@ from githubkit.utils import UNSET -class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): + """OrgsOrgActionsVariablesNamePatchBody""" - 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" + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + visibility: Missing[Literal["all", "private", "selected"]] = Field( + default=UNSET, + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", ) - selected_repositories_url: Missing[str] = Field( + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The API URL at which the list of repositories this secret is visible to can be retrieved", + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", ) -model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) -model_rebuild(CodespacesOrgSecret) +model_rebuild(OrgsOrgActionsVariablesNamePatchBody) -__all__ = ( - "CodespacesOrgSecret", - "OrgsOrgCodespacesSecretsGetResponse200", -) +__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0849.py b/githubkit/versions/v2022_11_28/models/group_0849.py index 304fc911f..e9dbb3878 100644 --- a/githubkit/versions/v2022_11_28/models/group_0849.py +++ b/githubkit/versions/v2022_11_28/models/group_0849.py @@ -9,35 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0057 import MinimalRepository -class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" - 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(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0850.py b/githubkit/versions/v2022_11_28/models/group_0850.py index cd94939aa..4c5d80233 100644 --- a/githubkit/versions/v2022_11_28/models/group_0850.py +++ b/githubkit/versions/v2022_11_28/models/group_0850.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0056 import MinimalRepository +class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] = Field( + description="The IDs of the repositories that can access the organization variable." + ) - total_count: int = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0851.py b/githubkit/versions/v2022_11_28/models/group_0851.py index 2d9b67bf9..6f5195042 100644 --- a/githubkit/versions/v2022_11_28/models/group_0851.py +++ b/githubkit/versions/v2022_11_28/models/group_0851.py @@ -11,17 +11,84 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" - 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." + attestations: Missing[ + list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems(GitHubModel): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = Field( + default=UNSET, + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", ) + repository_id: Missing[int] = Field(default=UNSET) + bundle_url: Missing[str] = Field(default=UNSET) + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro + pVerificationMaterial + """ + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro + pDsseEnvelope + """ -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0852.py b/githubkit/versions/v2022_11_28/models/group_0852.py index f9277a829..c26ef905e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0852.py +++ b/githubkit/versions/v2022_11_28/models/group_0852.py @@ -9,20 +9,170 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0029 import CodeScanningDefaultSetupOptions + + +class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + + name: str = Field( + description="The name of the code security configuration. Must be unique within the organization." + ) + description: str = Field( + max_length=255, description="A description of the code security configuration" + ) + advanced_security: Missing[Literal["enabled", "disabled"]] = 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" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated bypass", + ) + secret_scanning_delegated_bypass_options: Missing[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions + ] = Field( + default=UNSET, + description="Feature options for secret scanning delegated bypass", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non provider patterns", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti + ons -class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) - selected_teams: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="List of team names within the organization to which to grant access to GitHub Copilot.", + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + s + + Feature options for secret scanning delegated bypass + """ + + reviewers: Missing[ + list[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems + ] + ] = Field( + default=UNSET, + description="The bypass reviewers for secret scanning delegated bypass", + ) + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + sPropReviewersItems + """ + + reviewer_id: int = Field( + description="The ID of the team or role selected as a bypass reviewer" + ) + reviewer_type: Literal["TEAM", "ROLE"] = Field( + description="The type of the bypass reviewer" ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsPostBody", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0853.py b/githubkit/versions/v2022_11_28/models/group_0853.py index 225617267..4bcc6720d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0853.py +++ b/githubkit/versions/v2022_11_28/models/group_0853.py @@ -12,17 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - The total number of seats created for members of the specified team(s). - """ + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs to detach from configurations.", + ) - seats_created: int = Field() +model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0854.py b/githubkit/versions/v2022_11_28/models/group_0854.py index 8f14a6e14..cf9d8a70d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0854.py +++ b/githubkit/versions/v2022_11_28/models/group_0854.py @@ -9,20 +9,173 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0029 import CodeScanningDefaultSetupOptions + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique within the organization.", + ) + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", + ) + advanced_security: Missing[Literal["enabled", "disabled"]] = 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" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated bypass", + ) + secret_scanning_delegated_bypass_options: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions + ] = Field( + default=UNSET, + description="Feature options for secret scanning delegated bypass", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non-provider patterns", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto + submitActionOptions -class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) - selected_teams: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="The names of teams from which to revoke access to GitHub Copilot.", + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: Missing[ + list[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems + ] + ] = Field( + default=UNSET, + description="The bypass reviewers for secret scanning delegated bypass", + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptionsPropReviewersItems + """ + + reviewer_id: int = Field( + description="The ID of the team or role selected as a bypass reviewer" + ) + reviewer_type: Literal["TEAM", "ROLE"] = Field( + description="The type of the bypass reviewer" ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0855.py b/githubkit/versions/v2022_11_28/models/group_0855.py index 137e9507f..3e150ccc7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0855.py +++ b/githubkit/versions/v2022_11_28/models/group_0855.py @@ -9,21 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - - The total number of seats set to "pending cancellation" for members of the - specified team(s). - """ +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - seats_cancelled: int = Field() + scope: Literal[ + "all", "all_without_configurations", "public", "private_or_internal", "selected" + ] = Field( + description="The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`" + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs to attach the configuration to. You can only provide a list of repository ids when the `scope` is set to `selected`.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0856.py b/githubkit/versions/v2022_11_28/models/group_0856.py index 6a10dd79f..b47755cb5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0856.py +++ b/githubkit/versions/v2022_11_28/models/group_0856.py @@ -9,20 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - selected_usernames: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="The usernames of the organization members to be granted access to GitHub Copilot.", + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( + default=UNSET, + description="Specify which types of repository this security configuration should be applied to by default.", ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0857.py b/githubkit/versions/v2022_11_28/models/group_0857.py index 83f481941..caea12459 100644 --- a/githubkit/versions/v2022_11_28/models/group_0857.py +++ b/githubkit/versions/v2022_11_28/models/group_0857.py @@ -9,20 +9,33 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0028 import CodeSecurityConfiguration -class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - The total number of seats created for the specified user(s). - """ +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - seats_created: int = 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(OrgsOrgCopilotBillingSelectedUsersPostResponse201) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0858.py b/githubkit/versions/v2022_11_28/models/group_0858.py index 270057c2e..de5f7571c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0858.py +++ b/githubkit/versions/v2022_11_28/models/group_0858.py @@ -11,18 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0083 import Codespace -class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - selected_usernames: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="The usernames of the organization members for which to revoke access to GitHub Copilot.", - ) +class OrgsOrgCodespacesGetResponse200(GitHubModel): + """OrgsOrgCodespacesGetResponse200""" + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) +model_rebuild(OrgsOrgCodespacesGetResponse200) + +__all__ = ("OrgsOrgCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0859.py b/githubkit/versions/v2022_11_28/models/group_0859.py index ac7addbd5..ed7cad665 100644 --- a/githubkit/versions/v2022_11_28/models/group_0859.py +++ b/githubkit/versions/v2022_11_28/models/group_0859.py @@ -9,20 +9,33 @@ from __future__ import annotations -from pydantic import Field +from typing import Literal -from githubkit.compat import GitHubModel, model_rebuild +from pydantic import Field +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seats set to "pending cancellation" for the specified users. - """ +class OrgsOrgCodespacesAccessPutBody(GitHubModel): + """OrgsOrgCodespacesAccessPutBody""" - seats_cancelled: int = 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 if PYDANTIC_V2 else None, + default=UNSET, + description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) +model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) +__all__ = ("OrgsOrgCodespacesAccessPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0860.py b/githubkit/versions/v2022_11_28/models/group_0860.py index a96d49f72..7ae93c749 100644 --- a/githubkit/versions/v2022_11_28/models/group_0860.py +++ b/githubkit/versions/v2022_11_28/models/group_0860.py @@ -9,42 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[OrganizationDependabotSecret] = Field() - +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrganizationDependabotSecret(GitHubModel): - """Dependabot Secret for an Organization - Secrets for GitHub Dependabot for an organization. - """ +class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - 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_usernames: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The usernames of the organization members whose codespaces be billed to the organization.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgDependabotSecretsGetResponse200) -model_rebuild(OrganizationDependabotSecret) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -__all__ = ( - "OrganizationDependabotSecret", - "OrgsOrgDependabotSecretsGetResponse200", -) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0861.py b/githubkit/versions/v2022_11_28/models/group_0861.py index b5104167e..0c752f566 100644 --- a/githubkit/versions/v2022_11_28/models/group_0861.py +++ b/githubkit/versions/v2022_11_28/models/group_0861.py @@ -9,35 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[list[str]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + selected_usernames: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The usernames of the organization members whose codespaces should not be billed to the organization.", ) -model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0862.py b/githubkit/versions/v2022_11_28/models/group_0862.py index 045c87ede..58a07d080 100644 --- a/githubkit/versions/v2022_11_28/models/group_0862.py +++ b/githubkit/versions/v2022_11_28/models/group_0862.py @@ -9,20 +9,49 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0056 import MinimalRepository +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsGetResponse200""" total_count: int = Field() - repositories: list[MinimalRepository] = Field() - - -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) + 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", + ) + + +model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) +model_rebuild(CodespacesOrgSecret) + +__all__ = ( + "CodespacesOrgSecret", + "OrgsOrgCodespacesSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0863.py b/githubkit/versions/v2022_11_28/models/group_0863.py index 15b212958..304fc911f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0863.py +++ b/githubkit/versions/v2022_11_28/models/group_0863.py @@ -9,19 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - 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." + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0864.py b/githubkit/versions/v2022_11_28/models/group_0864.py index aeb2eb590..ddd3b5870 100644 --- a/githubkit/versions/v2022_11_28/models/group_0864.py +++ b/githubkit/versions/v2022_11_28/models/group_0864.py @@ -9,56 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgHooksPostBody(GitHubModel): - """OrgsOrgHooksPostBody""" - - name: str = Field(description='Must be passed as "web".') - config: OrgsOrgHooksPostBodyPropConfig = Field( - description="Key/value pairs to provide settings for this webhook." - ) - events: Missing[list[str]] = Field( - default=UNSET, - description='Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) +from .group_0057 import MinimalRepository -class OrgsOrgHooksPostBodyPropConfig(GitHubModel): - """OrgsOrgHooksPostBodyPropConfig - Key/value pairs to provide settings for this webhook. - """ +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" - 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) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgHooksPostBody) -model_rebuild(OrgsOrgHooksPostBodyPropConfig) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) -__all__ = ( - "OrgsOrgHooksPostBody", - "OrgsOrgHooksPostBodyPropConfig", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0865.py b/githubkit/versions/v2022_11_28/models/group_0865.py index 8f5b0def4..2d9b67bf9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0865.py +++ b/githubkit/versions/v2022_11_28/models/group_0865.py @@ -9,55 +9,19 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class OrgsOrgHooksHookIdPatchBody(GitHubModel): - """OrgsOrgHooksHookIdPatchBody""" - config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", - ) - events: Missing[list[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - name: Missing[str] = Field(default=UNSET) +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - -class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str = Field(description="The URL to which the payloads will be delivered.") - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + selected_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." ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdPatchBody) -model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ( - "OrgsOrgHooksHookIdPatchBody", - "OrgsOrgHooksHookIdPatchBodyPropConfig", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0866.py b/githubkit/versions/v2022_11_28/models/group_0866.py index 223789ed3..f9277a829 100644 --- a/githubkit/versions/v2022_11_28/models/group_0866.py +++ b/githubkit/versions/v2022_11_28/models/group_0866.py @@ -9,32 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): - """OrgsOrgHooksHookIdConfigPatchBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - 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).", + selected_teams: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="List of team names within the organization to which to grant access to GitHub Copilot.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0867.py b/githubkit/versions/v2022_11_28/models/group_0867.py index 707754e0e..225617267 100644 --- a/githubkit/versions/v2022_11_28/models/group_0867.py +++ b/githubkit/versions/v2022_11_28/models/group_0867.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Installation +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 -class OrgsOrgInstallationsGetResponse200(GitHubModel): - """OrgsOrgInstallationsGetResponse200""" + The total number of seats created for members of the specified team(s). + """ - total_count: int = Field() - installations: list[Installation] = Field() + seats_created: int = Field() -model_rebuild(OrgsOrgInstallationsGetResponse200) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) -__all__ = ("OrgsOrgInstallationsGetResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0868.py b/githubkit/versions/v2022_11_28/models/group_0868.py index 17fac965f..8f14a6e14 100644 --- a/githubkit/versions/v2022_11_28/models/group_0868.py +++ b/githubkit/versions/v2022_11_28/models/group_0868.py @@ -9,13 +9,20 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild +from pydantic import Field +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" -model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) + selected_teams: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="The names of teams from which to revoke access to GitHub Copilot.", + ) -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) + +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0869.py b/githubkit/versions/v2022_11_28/models/group_0869.py index 163abb03c..137e9507f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0869.py +++ b/githubkit/versions/v2022_11_28/models/group_0869.py @@ -9,38 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class 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",) + + +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 + + The total number of seats set to "pending cancellation" for members of the + specified team(s). + """ + + seats_cancelled: int = Field() + + +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0870.py b/githubkit/versions/v2022_11_28/models/group_0870.py index f6f0cd0ab..6a10dd79f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0870.py +++ b/githubkit/versions/v2022_11_28/models/group_0870.py @@ -11,18 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0078 import Codespace +class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" -class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + selected_usernames: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="The usernames of the organization members to be granted access to GitHub Copilot.", + ) - total_count: int = Field() - codespaces: list[Codespace] = Field() +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) - -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0871.py b/githubkit/versions/v2022_11_28/models/group_0871.py index 7da7af9d3..83f481941 100644 --- a/githubkit/versions/v2022_11_28/models/group_0871.py +++ b/githubkit/versions/v2022_11_28/models/group_0871.py @@ -9,24 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 + + The total number of seats created for the specified user(s). + """ - 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.", - ) + seats_created: int = Field() -model_rebuild(OrgsOrgMembershipsUsernamePutBody) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) -__all__ = ("OrgsOrgMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0872.py b/githubkit/versions/v2022_11_28/models/group_0872.py index 68c6b8f27..270057c2e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0872.py +++ b/githubkit/versions/v2022_11_28/models/group_0872.py @@ -9,55 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgMigrationsPostBody(GitHubModel): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - repositories: list[str] = Field( - description="A list of arrays indicating which repositories should be migrated." - ) - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", - ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, - description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, - description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[list[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude related items from being returned in the response in order to improve performance of the request.", + selected_usernames: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="The usernames of the organization members for which to revoke access to GitHub Copilot.", ) -model_rebuild(OrgsOrgMigrationsPostBody) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -__all__ = ("OrgsOrgMigrationsPostBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0873.py b/githubkit/versions/v2022_11_28/models/group_0873.py index 93499063e..ac7addbd5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0873.py +++ b/githubkit/versions/v2022_11_28/models/group_0873.py @@ -12,20 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - 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.", - ) + The total number of seats set to "pending cancellation" for the specified users. + """ + seats_cancelled: int = Field() -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0874.py b/githubkit/versions/v2022_11_28/models/group_0874.py index dc2469b07..a96d49f72 100644 --- a/githubkit/versions/v2022_11_28/models/group_0874.py +++ b/githubkit/versions/v2022_11_28/models/group_0874.py @@ -9,13 +9,42 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[OrganizationDependabotSecret] = Field() + + +class OrganizationDependabotSecret(GitHubModel): + """Dependabot Secret for an Organization + Secrets for GitHub Dependabot for an organization. + """ -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" + ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) +model_rebuild(OrgsOrgDependabotSecretsGetResponse200) +model_rebuild(OrganizationDependabotSecret) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) +__all__ = ( + "OrganizationDependabotSecret", + "OrgsOrgDependabotSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0875.py b/githubkit/versions/v2022_11_28/models/group_0875.py index 523846f85..b5104167e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0875.py +++ b/githubkit/versions/v2022_11_28/models/group_0875.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,13 +18,26 @@ from githubkit.utils import UNSET -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[list[str]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + ) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) +model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0876.py b/githubkit/versions/v2022_11_28/models/group_0876.py index 8f8247056..01fde78e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0876.py +++ b/githubkit/versions/v2022_11_28/models/group_0876.py @@ -9,33 +9,20 @@ from __future__ import annotations -from typing import Annotated, Literal, Union - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0057 import MinimalRepository -class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" - pat_request_ids: Missing[list[int]] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", - ) - action: Literal["approve", "deny"] = Field( - description="Action to apply to the requests." - ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( - default=UNSET, - description="Reason for approving or denying the requests. Max 1024 characters.", - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0877.py b/githubkit/versions/v2022_11_28/models/group_0877.py index af6277ed1..15b212958 100644 --- a/githubkit/versions/v2022_11_28/models/group_0877.py +++ b/githubkit/versions/v2022_11_28/models/group_0877.py @@ -9,27 +9,19 @@ from __future__ import annotations -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - action: Literal["approve", "deny"] = Field( - description="Action to apply to the request." - ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( - default=UNSET, - description="Reason for approving or denying the request. Max 1024 characters.", + selected_repository_ids: list[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0878.py b/githubkit/versions/v2022_11_28/models/group_0878.py index 2677c34ff..aeb2eb590 100644 --- a/githubkit/versions/v2022_11_28/models/group_0878.py +++ b/githubkit/versions/v2022_11_28/models/group_0878.py @@ -9,26 +9,56 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgHooksPostBody(GitHubModel): + """OrgsOrgHooksPostBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + name: str = Field(description='Must be passed as "web".') + config: OrgsOrgHooksPostBodyPropConfig = Field( + description="Key/value pairs to provide settings for this webhook." ) - pat_ids: list[int] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The IDs of the fine-grained personal access tokens.", + 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(OrgsOrgPersonalAccessTokensPostBody) +model_rebuild(OrgsOrgHooksPostBody) +model_rebuild(OrgsOrgHooksPostBodyPropConfig) -__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) +__all__ = ( + "OrgsOrgHooksPostBody", + "OrgsOrgHooksPostBodyPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0879.py b/githubkit/versions/v2022_11_28/models/group_0879.py index 53f6146e3..8f5b0def4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0879.py +++ b/githubkit/versions/v2022_11_28/models/group_0879.py @@ -9,21 +9,55 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgHooksHookIdPatchBody(GitHubModel): + """OrgsOrgHooksHookIdPatchBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", ) + events: Missing[list[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + name: Missing[str] = Field(default=UNSET) + + +class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): + """OrgsOrgHooksHookIdPatchBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) +model_rebuild(OrgsOrgHooksHookIdPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) +__all__ = ( + "OrgsOrgHooksHookIdPatchBody", + "OrgsOrgHooksHookIdPatchBodyPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0880.py b/githubkit/versions/v2022_11_28/models/group_0880.py index fd70d18f0..223789ed3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0880.py +++ b/githubkit/versions/v2022_11_28/models/group_0880.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,36 +18,23 @@ from githubkit.utils import UNSET -class OrgsOrgPrivateRegistriesGetResponse200(GitHubModel): - """OrgsOrgPrivateRegistriesGetResponse200""" +class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): + """OrgsOrgHooksHookIdConfigPatchBody""" - total_count: int = Field() - configurations: list[OrgPrivateRegistryConfiguration] = Field() - - -class OrgPrivateRegistryConfiguration(GitHubModel): - """Organization private registry - - Private registry configuration for an organization - """ - - name: str = Field(description="The name of the private registry configuration.") - registry_type: Literal["maven_repository"] = Field(description="The registry type.") - username: Missing[Union[str, None]] = Field( + 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 username to use when authenticating with the private registry.", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the private registry." + 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).", ) - created_at: datetime = Field() - updated_at: datetime = Field() + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgPrivateRegistriesGetResponse200) -model_rebuild(OrgPrivateRegistryConfiguration) +model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -__all__ = ( - "OrgPrivateRegistryConfiguration", - "OrgsOrgPrivateRegistriesGetResponse200", -) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0881.py b/githubkit/versions/v2022_11_28/models/group_0881.py index 670302d2c..cd6df6a66 100644 --- a/githubkit/versions/v2022_11_28/models/group_0881.py +++ b/githubkit/versions/v2022_11_28/models/group_0881.py @@ -9,37 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgPrivateRegistriesPostBody(GitHubModel): - """OrgsOrgPrivateRegistriesPostBody""" - - registry_type: Literal["maven_repository"] = Field(description="The registry type.") - username: Missing[Union[str, None]] = Field( - default=UNSET, - description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", - ) - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", - ) - key_id: str = Field(description="The ID of the key you used to encrypt the secret.") - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`.", - ) - - -model_rebuild(OrgsOrgPrivateRegistriesPostBody) - -__all__ = ("OrgsOrgPrivateRegistriesPostBody",) + +from .group_0018 import Installation + + +class OrgsOrgInstallationsGetResponse200(GitHubModel): + """OrgsOrgInstallationsGetResponse200""" + + total_count: int = Field() + installations: list[Installation] = Field() + + +model_rebuild(OrgsOrgInstallationsGetResponse200) + +__all__ = ("OrgsOrgInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0882.py b/githubkit/versions/v2022_11_28/models/group_0882.py index a51c170a5..17fac965f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0882.py +++ b/githubkit/versions/v2022_11_28/models/group_0882.py @@ -9,18 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPrivateRegistriesPublicKeyGetResponse200(GitHubModel): - """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") +class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -model_rebuild(OrgsOrgPrivateRegistriesPublicKeyGetResponse200) +model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) -__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0883.py b/githubkit/versions/v2022_11_28/models/group_0883.py index 1f55e5a60..163abb03c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0883.py +++ b/githubkit/versions/v2022_11_28/models/group_0883.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,34 +18,29 @@ from githubkit.utils import UNSET -class OrgsOrgPrivateRegistriesSecretNamePatchBody(GitHubModel): - """OrgsOrgPrivateRegistriesSecretNamePatchBody""" +class OrgsOrgInvitationsPostBody(GitHubModel): + """OrgsOrgInvitationsPostBody""" - registry_type: Missing[Literal["maven_repository"]] = Field( - default=UNSET, description="The registry type." - ) - username: Missing[Union[str, None]] = Field( + invitee_id: Missing[int] = Field( default=UNSET, - description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", + description="**Required unless you provide `email`**. GitHub user ID for the person you are inviting.", ) - 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})$", + email: Missing[str] = Field( default=UNSET, - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." + description="**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.", ) - visibility: Missing[Literal["all", "private", "selected"]] = Field( - default=UNSET, - description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.", + 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.", + ) ) - selected_repository_ids: Missing[list[int]] = Field( + team_ids: Missing[list[int]] = Field( default=UNSET, - description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. This field should be omitted if `visibility` is set to `all` or `private`.", + description="Specify IDs for the teams you want to invite new members to.", ) -model_rebuild(OrgsOrgPrivateRegistriesSecretNamePatchBody) +model_rebuild(OrgsOrgInvitationsPostBody) -__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBody",) +__all__ = ("OrgsOrgInvitationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0884.py b/githubkit/versions/v2022_11_28/models/group_0884.py index ed09aabdb..3726e7630 100644 --- a/githubkit/versions/v2022_11_28/models/group_0884.py +++ b/githubkit/versions/v2022_11_28/models/group_0884.py @@ -12,19 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0083 import Codespace -class OrgsOrgProjectsPostBody(GitHubModel): - """OrgsOrgProjectsPostBody""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." - ) +class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(OrgsOrgProjectsPostBody) -__all__ = ("OrgsOrgProjectsPostBody",) +model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0885.py b/githubkit/versions/v2022_11_28/models/group_0885.py index 341054cba..7da7af9d3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0885.py +++ b/githubkit/versions/v2022_11_28/models/group_0885.py @@ -9,23 +9,24 @@ from __future__ import annotations -from pydantic import Field +from typing import Literal -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from pydantic import Field -from .group_0107 import CustomProperty +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): - """OrgsOrgPropertiesSchemaPatchBody""" +class OrgsOrgMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgMembershipsUsernamePutBody""" - properties: list[CustomProperty] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The array of custom properties to create or update.", + 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.", ) -model_rebuild(OrgsOrgPropertiesSchemaPatchBody) +model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) +__all__ = ("OrgsOrgMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0886.py b/githubkit/versions/v2022_11_28/models/group_0886.py index dcfca76ed..68c6b8f27 100644 --- a/githubkit/versions/v2022_11_28/models/group_0886.py +++ b/githubkit/versions/v2022_11_28/models/group_0886.py @@ -9,26 +9,55 @@ from __future__ import annotations -from pydantic import Field +from typing import Literal -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from pydantic import Field -from .group_0109 import CustomPropertyValue +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPropertiesValuesPatchBody(GitHubModel): - """OrgsOrgPropertiesValuesPatchBody""" +class OrgsOrgMigrationsPostBody(GitHubModel): + """OrgsOrgMigrationsPostBody""" - repository_names: list[str] = Field( - max_length=30 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of repositories that the custom property values will be applied to.", + 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).", ) - properties: list[CustomPropertyValue] = Field( - description="List of custom property names and associated values to apply to the repositories." + 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(OrgsOrgPropertiesValuesPatchBody) +model_rebuild(OrgsOrgMigrationsPostBody) -__all__ = ("OrgsOrgPropertiesValuesPatchBody",) +__all__ = ("OrgsOrgMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0887.py b/githubkit/versions/v2022_11_28/models/group_0887.py index bdac866e9..93499063e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0887.py +++ b/githubkit/versions/v2022_11_28/models/group_0887.py @@ -9,128 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgReposPostBody(GitHubModel): - """OrgsOrgReposPostBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - 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( + async_: Missing[bool] = Field( default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + alias="async", + description="When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.", ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( - default=UNSET, - description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - - -class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): - """OrgsOrgReposPostBodyPropCustomProperties - - The custom properties for the new repository. The keys are the custom property - names, and the values are the corresponding custom property values. - """ -model_rebuild(OrgsOrgReposPostBody) -model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ( - "OrgsOrgReposPostBody", - "OrgsOrgReposPostBodyPropCustomProperties", -) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0888.py b/githubkit/versions/v2022_11_28/models/group_0888.py index 8d0d62283..dc2469b07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0888.py +++ b/githubkit/versions/v2022_11_28/models/group_0888.py @@ -9,96 +9,13 @@ from __future__ import annotations -from typing import Literal, Union - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0113 import RepositoryRulesetBypassActor -from .group_0122 import OrgRulesetConditionsOneof0 -from .group_0123 import OrgRulesetConditionsOneof1 -from .group_0124 import OrgRulesetConditionsOneof2 -from .group_0125 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0126 import RepositoryRuleUpdate -from .group_0128 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0129 import RepositoryRuleMergeQueue -from .group_0131 import RepositoryRuleRequiredDeployments -from .group_0134 import RepositoryRulePullRequest -from .group_0136 import RepositoryRuleRequiredStatusChecks -from .group_0138 import RepositoryRuleCommitMessagePattern -from .group_0140 import RepositoryRuleCommitAuthorEmailPattern -from .group_0142 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleBranchNamePattern -from .group_0146 import RepositoryRuleTagNamePattern -from .group_0149 import RepositoryRuleWorkflows -from .group_0151 import RepositoryRuleCodeScanning -from .group_0153 import RepositoryRuleOneof18 - -class OrgsOrgRulesetsPostBody(GitHubModel): - """OrgsOrgRulesetsPostBody""" - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( - default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", - ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -model_rebuild(OrgsOrgRulesetsPostBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) -__all__ = ("OrgsOrgRulesetsPostBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0889.py b/githubkit/versions/v2022_11_28/models/group_0889.py index abaf256ae..523846f85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0889.py +++ b/githubkit/versions/v2022_11_28/models/group_0889.py @@ -9,97 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0113 import RepositoryRulesetBypassActor -from .group_0122 import OrgRulesetConditionsOneof0 -from .group_0123 import OrgRulesetConditionsOneof1 -from .group_0124 import OrgRulesetConditionsOneof2 -from .group_0125 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0126 import RepositoryRuleUpdate -from .group_0128 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0129 import RepositoryRuleMergeQueue -from .group_0131 import RepositoryRuleRequiredDeployments -from .group_0134 import RepositoryRulePullRequest -from .group_0136 import RepositoryRuleRequiredStatusChecks -from .group_0138 import RepositoryRuleCommitMessagePattern -from .group_0140 import RepositoryRuleCommitAuthorEmailPattern -from .group_0142 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleBranchNamePattern -from .group_0146 import RepositoryRuleTagNamePattern -from .group_0149 import RepositoryRuleWorkflows -from .group_0151 import RepositoryRuleCodeScanning -from .group_0153 import RepositoryRuleOneof18 - -class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): - """OrgsOrgRulesetsRulesetIdPutBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( - default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", - ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) -__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) diff --git a/githubkit/versions/v2022_11_28/models/group_0890.py b/githubkit/versions/v2022_11_28/models/group_0890.py index 4855af2a4..8f8247056 100644 --- a/githubkit/versions/v2022_11_28/models/group_0890.py +++ b/githubkit/versions/v2022_11_28/models/group_0890.py @@ -9,49 +9,33 @@ from __future__ import annotations -from typing import Literal +from typing import Annotated, Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgTeamsPostBody(GitHubModel): - """OrgsOrgTeamsPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" - 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( + pat_request_ids: Missing[list[int]] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, default=UNSET, - description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', + 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.", ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + action: Literal["approve", "deny"] = Field( + description="Action to apply to the requests." ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( default=UNSET, - description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", - ) - permission: Missing[Literal["pull", "push"]] = Field( - default=UNSET, - description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[int] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + description="Reason for approving or denying the requests. Max 1024 characters.", ) -model_rebuild(OrgsOrgTeamsPostBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ("OrgsOrgTeamsPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0891.py b/githubkit/versions/v2022_11_28/models/group_0891.py index ef46562c8..af6277ed1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0891.py +++ b/githubkit/versions/v2022_11_28/models/group_0891.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,32 +18,18 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." + action: Literal["approve", "deny"] = Field( + description="Action to apply to the request." ) - privacy: Missing[Literal["secret", "closed"]] = Field( + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + description="Reason for approving or denying the request. Max 1024 characters.", ) -model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0892.py b/githubkit/versions/v2022_11_28/models/group_0892.py index 5aca60c84..2677c34ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0892.py +++ b/githubkit/versions/v2022_11_28/models/group_0892.py @@ -9,24 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPostBody""" - 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.", + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." + ) + pat_ids: list[int] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The IDs of the fine-grained personal access tokens.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0893.py b/githubkit/versions/v2022_11_28/models/group_0893.py index 155ed9640..53f6146e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0893.py +++ b/githubkit/versions/v2022_11_28/models/group_0893.py @@ -9,24 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - 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." + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) +model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0894.py b/githubkit/versions/v2022_11_28/models/group_0894.py index d8f084a3e..fd70d18f0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0894.py +++ b/githubkit/versions/v2022_11_28/models/group_0894.py @@ -9,17 +9,46 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgPrivateRegistriesGetResponse200(GitHubModel): + """OrgsOrgPrivateRegistriesGetResponse200""" + + total_count: int = Field() + configurations: list[OrgPrivateRegistryConfiguration] = Field() + +class OrgPrivateRegistryConfiguration(GitHubModel): + """Organization private registry -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" + Private registry configuration for an organization + """ - body: str = Field(description="The discussion comment's body text.") + name: str = Field(description="The name of the private registry configuration.") + registry_type: Literal["maven_repository"] = Field(description="The registry type.") + username: Missing[Union[str, None]] = Field( + default=UNSET, + description="The username to use when authenticating with the private registry.", + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry." + ) + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(OrgsOrgPrivateRegistriesGetResponse200) +model_rebuild(OrgPrivateRegistryConfiguration) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ( + "OrgPrivateRegistryConfiguration", + "OrgsOrgPrivateRegistriesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0895.py b/githubkit/versions/v2022_11_28/models/group_0895.py index f9ed8041d..670302d2c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0895.py +++ b/githubkit/versions/v2022_11_28/models/group_0895.py @@ -9,23 +9,37 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - - body: str = Field(description="The discussion comment's body text.") - - -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody -) - -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", -) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgPrivateRegistriesPostBody(GitHubModel): + """OrgsOrgPrivateRegistriesPostBody""" + + registry_type: Literal["maven_repository"] = Field(description="The registry type.") + username: Missing[Union[str, None]] = Field( + default=UNSET, + description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", + ) + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", + ) + key_id: str = Field(description="The ID of the key you used to encrypt the secret.") + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`.", + ) + + +model_rebuild(OrgsOrgPrivateRegistriesPostBody) + +__all__ = ("OrgsOrgPrivateRegistriesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0896.py b/githubkit/versions/v2022_11_28/models/group_0896.py index 7155a8c95..a51c170a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0896.py +++ b/githubkit/versions/v2022_11_28/models/group_0896.py @@ -9,31 +9,18 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgPrivateRegistriesPublicKeyGetResponse200(GitHubModel): + """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - 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." - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(OrgsOrgPrivateRegistriesPublicKeyGetResponse200) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0897.py b/githubkit/versions/v2022_11_28/models/group_0897.py index 09a55856c..1f55e5a60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0897.py +++ b/githubkit/versions/v2022_11_28/models/group_0897.py @@ -9,23 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgPrivateRegistriesSecretNamePatchBody(GitHubModel): + """OrgsOrgPrivateRegistriesSecretNamePatchBody""" - 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." + registry_type: Missing[Literal["maven_repository"]] = Field( + default=UNSET, description="The registry type." + ) + username: Missing[Union[str, None]] = Field( + default=UNSET, + description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", + ) + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." + ) + visibility: Missing[Literal["all", "private", "selected"]] = Field( + default=UNSET, + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.", + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. This field should be omitted if `visibility` is set to `all` or `private`.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(OrgsOrgPrivateRegistriesSecretNamePatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0898.py b/githubkit/versions/v2022_11_28/models/group_0898.py index d4ebf1d16..ed09aabdb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0898.py +++ b/githubkit/versions/v2022_11_28/models/group_0898.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,14 +16,15 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgProjectsPostBody(GitHubModel): + """OrgsOrgProjectsPostBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) +model_rebuild(OrgsOrgProjectsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0899.py b/githubkit/versions/v2022_11_28/models/group_0899.py index beef61704..f67f2e2a3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0899.py +++ b/githubkit/versions/v2022_11_28/models/group_0899.py @@ -9,24 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild + +from .group_0112 import CustomProperty -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): + """OrgsOrgPropertiesSchemaPatchBody""" - 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).\"", + properties: list[CustomProperty] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The array of custom properties to create or update.", ) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) +model_rebuild(OrgsOrgPropertiesSchemaPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) +__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0900.py b/githubkit/versions/v2022_11_28/models/group_0900.py index b947a7fa2..d02db4c49 100644 --- a/githubkit/versions/v2022_11_28/models/group_0900.py +++ b/githubkit/versions/v2022_11_28/models/group_0900.py @@ -11,18 +11,24 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from .group_0114 import CustomPropertyValue -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +class OrgsOrgPropertiesValuesPatchBody(GitHubModel): + """OrgsOrgPropertiesValuesPatchBody""" + repository_names: list[str] = Field( + max_length=30 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of repositories that the custom property values will be applied to.", + ) + properties: list[CustomPropertyValue] = Field( + description="List of custom property names and associated values to apply to the repositories." + ) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) +model_rebuild(OrgsOrgPropertiesValuesPatchBody) + +__all__ = ("OrgsOrgPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0901.py b/githubkit/versions/v2022_11_28/models/group_0901.py index 4127c4263..bdac866e9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0901.py +++ b/githubkit/versions/v2022_11_28/models/group_0901.py @@ -9,22 +9,128 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgReposPostBody(GitHubModel): + """OrgsOrgReposPostBody""" - permission: Missing[str] = 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 permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( + default=UNSET, + description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): + """OrgsOrgReposPostBodyPropCustomProperties + + The custom properties for the new repository. The keys are the custom property + names, and the values are the corresponding custom property values. + """ -model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) +model_rebuild(OrgsOrgReposPostBody) +model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) +__all__ = ( + "OrgsOrgReposPostBody", + "OrgsOrgReposPostBodyPropCustomProperties", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0902.py b/githubkit/versions/v2022_11_28/models/group_0902.py index adc736feb..f8d5980d9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0902.py +++ b/githubkit/versions/v2022_11_28/models/group_0902.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,16 +17,88 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0118 import RepositoryRulesetBypassActor +from .group_0127 import OrgRulesetConditionsOneof0 +from .group_0128 import OrgRulesetConditionsOneof1 +from .group_0129 import OrgRulesetConditionsOneof2 +from .group_0130 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0131 import RepositoryRuleUpdate +from .group_0133 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0134 import RepositoryRuleMergeQueue +from .group_0136 import RepositoryRuleRequiredDeployments +from .group_0139 import RepositoryRulePullRequest +from .group_0141 import RepositoryRuleRequiredStatusChecks +from .group_0143 import RepositoryRuleCommitMessagePattern +from .group_0145 import RepositoryRuleCommitAuthorEmailPattern +from .group_0147 import RepositoryRuleCommitterEmailPattern +from .group_0149 import RepositoryRuleBranchNamePattern +from .group_0151 import RepositoryRuleTagNamePattern +from .group_0154 import RepositoryRuleWorkflows +from .group_0156 import RepositoryRuleCodeScanning +from .group_0158 import RepositoryRuleOneof18 -class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): - """OrgsOrgSecurityProductEnablementPostBody""" - query_suite: Missing[Literal["default", "extended"]] = Field( +class OrgsOrgRulesetsPostBody(GitHubModel): + """OrgsOrgRulesetsPostBody""" + + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] + ] = Field( default=UNSET, - description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", + title="Organization ruleset conditions", + description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgSecurityProductEnablementPostBody) +model_rebuild(OrgsOrgRulesetsPostBody) -__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) +__all__ = ("OrgsOrgRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0903.py b/githubkit/versions/v2022_11_28/models/group_0903.py index 8e4aacd13..8d940e208 100644 --- a/githubkit/versions/v2022_11_28/models/group_0903.py +++ b/githubkit/versions/v2022_11_28/models/group_0903.py @@ -9,21 +9,97 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0118 import RepositoryRulesetBypassActor +from .group_0127 import OrgRulesetConditionsOneof0 +from .group_0128 import OrgRulesetConditionsOneof1 +from .group_0129 import OrgRulesetConditionsOneof2 +from .group_0130 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0131 import RepositoryRuleUpdate +from .group_0133 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0134 import RepositoryRuleMergeQueue +from .group_0136 import RepositoryRuleRequiredDeployments +from .group_0139 import RepositoryRulePullRequest +from .group_0141 import RepositoryRuleRequiredStatusChecks +from .group_0143 import RepositoryRuleCommitMessagePattern +from .group_0145 import RepositoryRuleCommitAuthorEmailPattern +from .group_0147 import RepositoryRuleCommitterEmailPattern +from .group_0149 import RepositoryRuleBranchNamePattern +from .group_0151 import RepositoryRuleTagNamePattern +from .group_0154 import RepositoryRuleWorkflows +from .group_0156 import RepositoryRuleCodeScanning +from .group_0158 import RepositoryRuleOneof18 + -class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): + """OrgsOrgRulesetsRulesetIdPutBody""" - 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="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + default=UNSET, + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] + ] = Field( + default=UNSET, + title="Organization ruleset conditions", + description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", + ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) +model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0904.py b/githubkit/versions/v2022_11_28/models/group_0904.py index f56c2018f..1094d8139 100644 --- a/githubkit/versions/v2022_11_28/models/group_0904.py +++ b/githubkit/versions/v2022_11_28/models/group_0904.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,38 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): - """ProjectsColumnsCardsCardIdPatchBody""" +class OrgsOrgSettingsNetworkConfigurationsGetResponse200(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" - note: Missing[Union[str, None]] = Field( - default=UNSET, description="The project card's note" + total_count: int = Field() + network_configurations: list[NetworkConfiguration] = Field() + + +class NetworkConfiguration(GitHubModel): + """Hosted compute network configuration + + A hosted compute network configuration. + """ + + id: str = Field(description="The unique identifier of the network configuration.") + name: str = Field(description="The name of the network configuration.") + compute_service: Missing[Literal["none", "actions", "codespaces"]] = Field( + default=UNSET, + description="The hosted compute service the network configuration supports.", + ) + network_settings_ids: Missing[list[str]] = Field( + default=UNSET, + description="The unique identifier of each network settings in the configuration.", ) - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" + created_on: Union[datetime, None] = Field( + description="The time at which the network configuration was created, in ISO 8601 format." ) -model_rebuild(ProjectsColumnsCardsCardIdPatchBody) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsGetResponse200) +model_rebuild(NetworkConfiguration) -__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) +__all__ = ( + "NetworkConfiguration", + "OrgsOrgSettingsNetworkConfigurationsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0905.py b/githubkit/versions/v2022_11_28/models/group_0905.py index 525269481..b6be61b0d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0905.py +++ b/githubkit/versions/v2022_11_28/models/group_0905.py @@ -9,26 +9,32 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class OrgsOrgSettingsNetworkConfigurationsPostBody(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsPostBody""" - 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.", + name: str = Field( + description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." ) - column_id: Missing[int] = Field( + compute_service: Missing[Literal["none", "actions"]] = Field( default=UNSET, - description="The unique identifier of the column the card should be moved to", + description="The hosted compute service to use for the network configuration.", + ) + network_settings_ids: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsPostBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0906.py b/githubkit/versions/v2022_11_28/models/group_0906.py index 7d3245c63..d68e0ab2a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0906.py +++ b/githubkit/versions/v2022_11_28/models/group_0906.py @@ -9,13 +9,33 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild +from typing import Literal +from pydantic import Field -class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) +class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) + name: Missing[str] = Field( + default=UNSET, + description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + ) + compute_service: Missing[Literal["none", "actions"]] = Field( + default=UNSET, + description="The hosted compute service to use for the network configuration.", + ) + network_settings_ids: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", + ) + + +model_rebuild(OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody) + +__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0907.py b/githubkit/versions/v2022_11_28/models/group_0907.py index 4a6010387..4855af2a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0907.py +++ b/githubkit/versions/v2022_11_28/models/group_0907.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,29 +18,40 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - resource: Missing[str] = Field(default=UNSET) - field: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", -) +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( + 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. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", + ) + permission: Missing[Literal["pull", "push"]] = Field( + default=UNSET, + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[int] = Field( + default=UNSET, description="The ID of a team to set as the parent team." + ) + + +model_rebuild(OrgsOrgTeamsPostBody) + +__all__ = ("OrgsOrgTeamsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0908.py b/githubkit/versions/v2022_11_28/models/group_0908.py index 396dbfe80..ef46562c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0908.py +++ b/githubkit/versions/v2022_11_28/models/group_0908.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,28 +18,32 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", -) +class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." + ) + + +model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) + +__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0909.py b/githubkit/versions/v2022_11_28/models/group_0909.py index e6f9395a8..5aca60c84 100644 --- a/githubkit/versions/v2022_11_28/models/group_0909.py +++ b/githubkit/versions/v2022_11_28/models/group_0909.py @@ -12,14 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdPatchBody(GitHubModel): - """ProjectsColumnsColumnIdPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - name: str = Field(description="Name of the project column") + 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(ProjectsColumnsColumnIdPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ("ProjectsColumnsColumnIdPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0910.py b/githubkit/versions/v2022_11_28/models/group_0910.py index 17db0e859..155ed9640 100644 --- a/githubkit/versions/v2022_11_28/models/group_0910.py +++ b/githubkit/versions/v2022_11_28/models/group_0910.py @@ -9,19 +9,24 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - note: Union[str, None] = Field(description="The project card's note") + 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(ProjectsColumnsColumnIdCardsPostBodyOneof0) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0911.py b/githubkit/versions/v2022_11_28/models/group_0911.py index 78dbfee00..d8f084a3e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0911.py +++ b/githubkit/versions/v2022_11_28/models/group_0911.py @@ -14,17 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - 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" - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0912.py b/githubkit/versions/v2022_11_28/models/group_0912.py index cd4d5b3d2..f9ed8041d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0912.py +++ b/githubkit/versions/v2022_11_28/models/group_0912.py @@ -12,32 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - 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) + body: str = Field(description="The discussion comment's body text.") -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody +) __all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0913.py b/githubkit/versions/v2022_11_28/models/group_0913.py index 003392298..7155a8c95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0913.py +++ b/githubkit/versions/v2022_11_28/models/group_0913.py @@ -9,20 +9,31 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): - """ProjectsColumnsColumnIdMovesPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - 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.", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) -model_rebuild(ProjectsColumnsColumnIdMovesPostBody) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0914.py b/githubkit/versions/v2022_11_28/models/group_0914.py index 6009bdb4e..09a55856c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0914.py +++ b/githubkit/versions/v2022_11_28/models/group_0914.py @@ -9,13 +9,23 @@ from __future__ import annotations +from typing import Literal + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" + + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion." + ) -model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0915.py b/githubkit/versions/v2022_11_28/models/group_0915.py index a0ef8d52d..d4ebf1d16 100644 --- a/githubkit/versions/v2022_11_28/models/group_0915.py +++ b/githubkit/versions/v2022_11_28/models/group_0915.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,14 +18,14 @@ from githubkit.utils import UNSET -class ProjectsProjectIdDeleteResponse403(GitHubModel): - """ProjectsProjectIdDeleteResponse403""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." + ) -model_rebuild(ProjectsProjectIdDeleteResponse403) +model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) -__all__ = ("ProjectsProjectIdDeleteResponse403",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0916.py b/githubkit/versions/v2022_11_28/models/group_0916.py index e99c686c3..beef61704 100644 --- a/githubkit/versions/v2022_11_28/models/group_0916.py +++ b/githubkit/versions/v2022_11_28/models/group_0916.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,26 +18,15 @@ from githubkit.utils import UNSET -class ProjectsProjectIdPatchBody(GitHubModel): - """ProjectsProjectIdPatchBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - 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( + permission: Missing[Literal["read", "write", "admin"]] = Field( default=UNSET, - description="Whether or not this project can be seen by everyone.", + 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(ProjectsProjectIdPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) -__all__ = ("ProjectsProjectIdPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0917.py b/githubkit/versions/v2022_11_28/models/group_0917.py index 8448c850e..b947a7fa2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0917.py +++ b/githubkit/versions/v2022_11_28/models/group_0917.py @@ -16,14 +16,13 @@ from githubkit.utils import UNSET -class ProjectsProjectIdPatchResponse403(GitHubModel): - """ProjectsProjectIdPatchResponse403""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdPatchResponse403) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ("ProjectsProjectIdPatchResponse403",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0918.py b/githubkit/versions/v2022_11_28/models/group_0918.py index 4745249cd..4127c4263 100644 --- a/githubkit/versions/v2022_11_28/models/group_0918.py +++ b/githubkit/versions/v2022_11_28/models/group_0918.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,14 +16,15 @@ from githubkit.utils import UNSET -class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, description="The permission to grant the collaborator." + permission: Missing[str] = Field( + default=UNSET, + description="The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", ) -model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) +model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0919.py b/githubkit/versions/v2022_11_28/models/group_0919.py index e33e0910d..adc736feb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0919.py +++ b/githubkit/versions/v2022_11_28/models/group_0919.py @@ -9,17 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsProjectIdColumnsPostBody(GitHubModel): - """ProjectsProjectIdColumnsPostBody""" +class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): + """OrgsOrgSecurityProductEnablementPostBody""" - name: str = Field(description="Name of the project column") + 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(ProjectsProjectIdColumnsPostBody) +model_rebuild(OrgsOrgSecurityProductEnablementPostBody) -__all__ = ("ProjectsProjectIdColumnsPostBody",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0920.py b/githubkit/versions/v2022_11_28/models/group_0920.py index 82852ecb9..8e4aacd13 100644 --- a/githubkit/versions/v2022_11_28/models/group_0920.py +++ b/githubkit/versions/v2022_11_28/models/group_0920.py @@ -16,13 +16,14 @@ from githubkit.utils import UNSET -class ReposOwnerRepoDeleteResponse403(GitHubModel): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdDeleteResponse403""" message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoDeleteResponse403) +model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -__all__ = ("ReposOwnerRepoDeleteResponse403",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0921.py b/githubkit/versions/v2022_11_28/models/group_0921.py index 8309ca32c..f56c2018f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0921.py +++ b/githubkit/versions/v2022_11_28/models/group_0921.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,259 +18,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPatchBody(GitHubModel): - """ReposOwnerRepoPatchBody""" +class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): + """ProjectsColumnsCardsCardIdPatchBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", - ) - visibility: Missing[Literal["public", "private"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - security_and_analysis: Missing[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] - ] = Field( - default=UNSET, - description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - default_branch: Missing[str] = Field( - default=UNSET, description="Updates the default branch for this repository." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + note: Missing[Union[str, None]] = Field( + default=UNSET, description="The project card's note" ) 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_ai_detection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)."', - ) - secret_scanning_non_provider_patterns: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - - Use the `status` property to enable or disable secret scanning AI detection for - this repository. For more information, see "[Responsible detection of generic - secrets with AI](https://docs.github.com/code-security/secret-scanning/using- - advanced-secret-scanning-and-push-protection-features/generic-secret- - detection/responsible-ai-generic-secrets)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Supported secret - scanning patterns](/code-security/secret-scanning/introduction/supported-secret- - scanning-patterns#supported-secrets)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." + default=UNSET, description="Whether or not the card is archived" ) -model_rebuild(ReposOwnerRepoPatchBody) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns -) +model_rebuild(ProjectsColumnsCardsCardIdPatchBody) -__all__ = ( - "ReposOwnerRepoPatchBody", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", -) +__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0922.py b/githubkit/versions/v2022_11_28/models/group_0922.py index c97dda7cf..525269481 100644 --- a/githubkit/versions/v2022_11_28/models/group_0922.py +++ b/githubkit/versions/v2022_11_28/models/group_0922.py @@ -12,17 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0175 import Artifact +class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + 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", + ) - total_count: int = Field() - artifacts: list[Artifact] = Field() +model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) -model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0923.py b/githubkit/versions/v2022_11_28/models/group_0923.py index eabc5484e..7d3245c63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0923.py +++ b/githubkit/versions/v2022_11_28/models/group_0923.py @@ -9,21 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." - ) +class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0924.py b/githubkit/versions/v2022_11_28/models/group_0924.py index 4ca168cda..4a6010387 100644 --- a/githubkit/versions/v2022_11_28/models/group_0924.py +++ b/githubkit/versions/v2022_11_28/models/group_0924.py @@ -16,21 +16,29 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): - """Actions OIDC subject customization for a repository +class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" - Actions OIDC subject customization for a repository - """ + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] + ] = Field(default=UNSET) - use_default: bool = Field( - description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." - ) - include_claim_keys: Missing[list[str]] = Field( - default=UNSET, - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", - ) +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" -model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + resource: Missing[str] = Field(default=UNSET) + field: Missing[str] = Field(default=UNSET) -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) + +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0925.py b/githubkit/versions/v2022_11_28/models/group_0925.py index 93cca5745..396dbfe80 100644 --- a/githubkit/versions/v2022_11_28/models/group_0925.py +++ b/githubkit/versions/v2022_11_28/models/group_0925.py @@ -12,17 +12,32 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0179 import ActionsSecret +class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + 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) - total_count: int = Field() - secrets: list[ActionsSecret] = Field() +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" -model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) + +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0926.py b/githubkit/versions/v2022_11_28/models/group_0926.py index 3adc9f57b..e6f9395a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0926.py +++ b/githubkit/versions/v2022_11_28/models/group_0926.py @@ -13,16 +13,13 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0180 import ActionsVariable +class ProjectsColumnsColumnIdPatchBody(GitHubModel): + """ProjectsColumnsColumnIdPatchBody""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + name: str = Field(description="Name of the project column") - total_count: int = Field() - variables: list[ActionsVariable] = Field() +model_rebuild(ProjectsColumnsColumnIdPatchBody) -model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) +__all__ = ("ProjectsColumnsColumnIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0927.py b/githubkit/versions/v2022_11_28/models/group_0927.py index b882d15a4..17db0e859 100644 --- a/githubkit/versions/v2022_11_28/models/group_0927.py +++ b/githubkit/versions/v2022_11_28/models/group_0927.py @@ -9,27 +9,19 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - 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.", - ) + note: Union[str, None] = Field(description="The project card's note") -model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) -__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0928.py b/githubkit/versions/v2022_11_28/models/group_0928.py index 5b589f221..78dbfee00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0928.py +++ b/githubkit/versions/v2022_11_28/models/group_0928.py @@ -13,16 +13,18 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0069 import Runner +class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" -class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunnersGetResponse200""" + 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" + ) - total_count: int = Field() - runners: list[Runner] = Field() +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) -model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0929.py b/githubkit/versions/v2022_11_28/models/group_0929.py index 4b74e8b7f..cd4d5b3d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0929.py +++ b/githubkit/versions/v2022_11_28/models/group_0929.py @@ -11,29 +11,33 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", - ) + 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) -model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + + +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0930.py b/githubkit/versions/v2022_11_28/models/group_0930.py index 07ff84efb..003392298 100644 --- a/githubkit/versions/v2022_11_28/models/group_0930.py +++ b/githubkit/versions/v2022_11_28/models/group_0930.py @@ -11,18 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): + """ProjectsColumnsColumnIdMovesPostBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + 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(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ProjectsColumnsColumnIdMovesPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0931.py b/githubkit/versions/v2022_11_28/models/group_0931.py index 5c0dd84b7..6009bdb4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0931.py +++ b/githubkit/versions/v2022_11_28/models/group_0931.py @@ -9,21 +9,13 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import GitHubModel, model_rebuild -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsColumnIdMovesPostResponse201""" -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", - ) +model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) - -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) - -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0932.py b/githubkit/versions/v2022_11_28/models/group_0932.py index 108d9980f..a0ef8d52d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0932.py +++ b/githubkit/versions/v2022_11_28/models/group_0932.py @@ -12,17 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0185 import WorkflowRun +class ProjectsProjectIdDeleteResponse403(GitHubModel): + """ProjectsProjectIdDeleteResponse403""" -class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsGetResponse200""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) - total_count: int = Field() - workflow_runs: list[WorkflowRun] = Field() +model_rebuild(ProjectsProjectIdDeleteResponse403) -model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) +__all__ = ("ProjectsProjectIdDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0933.py b/githubkit/versions/v2022_11_28/models/group_0933.py index 0d5a9749a..e99c686c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0933.py +++ b/githubkit/versions/v2022_11_28/models/group_0933.py @@ -9,20 +9,35 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0175 import Artifact +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" +class ProjectsProjectIdPatchBody(GitHubModel): + """ProjectsProjectIdPatchBody""" - total_count: int = Field() - artifacts: list[Artifact] = Field() + name: Missing[str] = Field(default=UNSET, description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + state: Missing[str] = Field( + default=UNSET, description="State of the project; either 'open' or 'closed'" + ) + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + default=UNSET, + description="The baseline permission that all organization members have on this project", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone.", + ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) +model_rebuild(ProjectsProjectIdPatchBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) +__all__ = ("ProjectsProjectIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0934.py b/githubkit/versions/v2022_11_28/models/group_0934.py index d491f940a..8448c850e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0934.py +++ b/githubkit/versions/v2022_11_28/models/group_0934.py @@ -12,19 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0177 import Job +class ProjectsProjectIdPatchResponse403(GitHubModel): + """ProjectsProjectIdPatchResponse403""" -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( - GitHubModel -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) - total_count: int = Field() - jobs: list[Job] = Field() +model_rebuild(ProjectsProjectIdPatchResponse403) -model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) +__all__ = ("ProjectsProjectIdPatchResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0935.py b/githubkit/versions/v2022_11_28/models/group_0935.py index ce0433339..4745249cd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0935.py +++ b/githubkit/versions/v2022_11_28/models/group_0935.py @@ -9,20 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0177 import Job +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - total_count: int = Field() - jobs: list[Job] = Field() + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, description="The permission to grant the collaborator." + ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) +model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0936.py b/githubkit/versions/v2022_11_28/models/group_0936.py index daa1a984d..e33e0910d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0936.py +++ b/githubkit/versions/v2022_11_28/models/group_0936.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ProjectsProjectIdColumnsPostBody(GitHubModel): + """ProjectsProjectIdColumnsPostBody""" - 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") + name: str = Field(description="Name of the project column") -model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) +model_rebuild(ProjectsProjectIdColumnsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) +__all__ = ("ProjectsProjectIdColumnsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0937.py b/githubkit/versions/v2022_11_28/models/group_0937.py index f45127160..82852ecb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0937.py +++ b/githubkit/versions/v2022_11_28/models/group_0937.py @@ -16,14 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoDeleteResponse403(GitHubModel): + """ReposOwnerRepoDeleteResponse403""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) +model_rebuild(ReposOwnerRepoDeleteResponse403) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) +__all__ = ("ReposOwnerRepoDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0938.py b/githubkit/versions/v2022_11_28/models/group_0938.py index f97011ea2..8309ca32c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0938.py +++ b/githubkit/versions/v2022_11_28/models/group_0938.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,14 +18,259 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ReposOwnerRepoPatchBody(GitHubModel): + """ReposOwnerRepoPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", + ) + visibility: Missing[Literal["public", "private"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + security_and_analysis: Missing[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] + ] = Field( + default=UNSET, + description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + default_branch: Missing[str] = Field( + default=UNSET, description="Updates the default branch for this repository." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + archived: Missing[bool] = Field( + default=UNSET, + description="Whether to archive this repository. `false` will unarchive a previously archived repository.", + ) + allow_forking: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow private forks, or `false` to prevent private forks.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/organizations/managing-peoples-access-to- + your-organization-with-roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', + ) + secret_scanning: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', + ) + secret_scanning_push_protection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', + ) + secret_scanning_ai_detection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)."', + ) + secret_scanning_non_provider_patterns: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + + Use the `status` property to enable or disable secret scanning AI detection for + this repository. For more information, see "[Responsible detection of generic + secrets with AI](https://docs.github.com/code-security/secret-scanning/using- + advanced-secret-scanning-and-push-protection-features/generic-secret- + detection/responsible-ai-generic-secrets)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Supported secret + scanning patterns](/code-security/secret-scanning/introduction/supported-secret- + scanning-patterns#supported-secrets)." + """ - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) +model_rebuild(ReposOwnerRepoPatchBody) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns +) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) +__all__ = ( + "ReposOwnerRepoPatchBody", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0939.py b/githubkit/versions/v2022_11_28/models/group_0939.py index 674b9536a..2bd256298 100644 --- a/githubkit/versions/v2022_11_28/models/group_0939.py +++ b/githubkit/versions/v2022_11_28/models/group_0939.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0179 import ActionsSecret +from .group_0181 import Artifact -class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsSecretsGetResponse200""" +class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsArtifactsGetResponse200""" total_count: int = Field() - secrets: list[ActionsSecret] = Field() + artifacts: list[Artifact] = Field() -model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) +model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0940.py b/githubkit/versions/v2022_11_28/models/group_0940.py index e760c07f4..eabc5484e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0940.py +++ b/githubkit/versions/v2022_11_28/models/group_0940.py @@ -16,19 +16,14 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - 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." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0941.py b/githubkit/versions/v2022_11_28/models/group_0941.py index 645d9b88f..4ca168cda 100644 --- a/githubkit/versions/v2022_11_28/models/group_0941.py +++ b/githubkit/versions/v2022_11_28/models/group_0941.py @@ -12,17 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0180 import ActionsVariable +class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): + """Actions OIDC subject customization for a repository -class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsVariablesGetResponse200""" + Actions OIDC subject customization for a repository + """ - total_count: int = Field() - variables: list[ActionsVariable] = 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(ReposOwnerRepoActionsVariablesGetResponse200) +model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0942.py b/githubkit/versions/v2022_11_28/models/group_0942.py index bf9209ee5..bbfe00fcf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0942.py +++ b/githubkit/versions/v2022_11_28/models/group_0942.py @@ -13,14 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0185 import ActionsSecret -class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): - """ReposOwnerRepoActionsVariablesPostBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) +model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0943.py b/githubkit/versions/v2022_11_28/models/group_0943.py index 2a4d3aeda..13cfd42ce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0943.py +++ b/githubkit/versions/v2022_11_28/models/group_0943.py @@ -12,17 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0186 import ActionsVariable -class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoActionsVariablesNamePatchBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) +model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) + +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0944.py b/githubkit/versions/v2022_11_28/models/group_0944.py index 3c3259aed..b882d15a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0944.py +++ b/githubkit/versions/v2022_11_28/models/group_0944.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,38 +18,18 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" +class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): + """ReposOwnerRepoActionsPermissionsPutBody""" - total_count: int = Field() - workflows: list[Workflow] = Field() + 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 Workflow(GitHubModel): - """Workflow +model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) - 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(ReposOwnerRepoActionsWorkflowsGetResponse200) -model_rebuild(Workflow) - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200", - "Workflow", -) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0945.py b/githubkit/versions/v2022_11_28/models/group_0945.py index 437f66baa..ce7d9fc29 100644 --- a/githubkit/versions/v2022_11_28/models/group_0945.py +++ b/githubkit/versions/v2022_11_28/models/group_0945.py @@ -11,40 +11,18 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild +from .group_0074 import Runner -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - ref: str = Field( - description="The git reference for the workflow. The reference can be a branch or tag name." - ) - inputs: Missing[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - ] = Field( - default=UNSET, - description="Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.", - ) +class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int = Field() + runners: list[Runner] = Field() -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( - ExtraGitHubModel -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - Input keys and values configured in the workflow file. The maximum number of - properties is 10. Any default properties configured in the workflow file will be - used when `inputs` are omitted. - """ +model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) - -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", -) +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0946.py b/githubkit/versions/v2022_11_28/models/group_0946.py index 09f3971c6..4b74e8b7f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0946.py +++ b/githubkit/versions/v2022_11_28/models/group_0946.py @@ -11,18 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0185 import WorkflowRun +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + ) + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", + ) - total_count: int = Field() - workflow_runs: list[WorkflowRun] = Field() +model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0947.py b/githubkit/versions/v2022_11_28/models/group_0947.py index 1559b8643..07ff84efb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0947.py +++ b/githubkit/versions/v2022_11_28/models/group_0947.py @@ -11,55 +11,18 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class ReposOwnerRepoAttestationsPostBody(GitHubModel): - """ReposOwnerRepoAttestationsPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - 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." + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", ) -class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundle +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" - - -model_rebuild(ReposOwnerRepoAttestationsPostBody) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) - -__all__ = ( - "ReposOwnerRepoAttestationsPostBody", - "ReposOwnerRepoAttestationsPostBodyPropBundle", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", -) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0948.py b/githubkit/versions/v2022_11_28/models/group_0948.py index e78d24aec..5c0dd84b7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0948.py +++ b/githubkit/versions/v2022_11_28/models/group_0948.py @@ -11,17 +11,19 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", + ) -model_rebuild(ReposOwnerRepoAttestationsPostResponse201) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0949.py b/githubkit/versions/v2022_11_28/models/group_0949.py index a764a785c..07a6cad6c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0949.py +++ b/githubkit/versions/v2022_11_28/models/group_0949.py @@ -11,89 +11,18 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild +from .group_0191 import WorkflowRun -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - attestations: Missing[ - list[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) +class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int = Field() + workflow_runs: list[WorkflowRun] = Field() -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( - GitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - bundle: Missing[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( - default=UNSET, - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", - ) - repository_id: Missing[int] = Field(default=UNSET) - bundle_url: Missing[str] = Field(default=UNSET) +model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( - GitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropVerificationMaterial - """ - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropDsseEnvelope - """ - - -model_rebuild(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) - -__all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0950.py b/githubkit/versions/v2022_11_28/models/group_0950.py index e795956c5..de29f623e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0950.py +++ b/githubkit/versions/v2022_11_28/models/group_0950.py @@ -12,25 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0181 import Artifact -class ReposOwnerRepoAutolinksPostBody(GitHubModel): - """ReposOwnerRepoAutolinksPostBody""" - key_prefix: str = Field( - description="This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit." - ) - url_template: str = Field( - description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." - ) - is_alphanumeric: Missing[bool] = Field( - default=UNSET, - description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", - ) +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + total_count: int = Field() + artifacts: list[Artifact] = Field() -model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ("ReposOwnerRepoAutolinksPostBody",) +model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0951.py b/githubkit/versions/v2022_11_28/models/group_0951.py index 88050bb30..33726747e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0951.py +++ b/githubkit/versions/v2022_11_28/models/group_0951.py @@ -9,227 +9,22 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class 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. - """ +from .group_0183 import Job - strict: bool = Field( - description="Require branches to be up to date before merging." - ) - contexts: list[str] = Field( - description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control." - ) - checks: Missing[ - list[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: Missing[list[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[list[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[list[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[list[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[list[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - users: list[str] = Field(description="The list of user `login`s with push access") - teams: list[str] = Field(description="The list of team `slug`s with push access") - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with push access" - ) + total_count: int = Field() + jobs: list[Job] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) +model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBody", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0952.py b/githubkit/versions/v2022_11_28/models/group_0952.py index 8a9bfe435..aa868a317 100644 --- a/githubkit/versions/v2022_11_28/models/group_0952.py +++ b/githubkit/versions/v2022_11_28/models/group_0952.py @@ -12,101 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0183 import Job -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + total_count: int = Field() + jobs: list[Job] = Field() -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ +model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) - users: Missing[list[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[list[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[list[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[list[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[list[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0953.py b/githubkit/versions/v2022_11_28/models/group_0953.py index 199aa5468..daa1a984d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0953.py +++ b/githubkit/versions/v2022_11_28/models/group_0953.py @@ -9,53 +9,25 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - strict: Missing[bool] = Field( - default=UNSET, description="Require branches to be up to date before merging." - ) - contexts: Missing[list[str]] = Field( - default=UNSET, - description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.", - ) - checks: Missing[ - list[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", + environment_ids: list[int] = Field( + description="The list of environment ids to approve or reject" ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + 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(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems -) +model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0954.py b/githubkit/versions/v2022_11_28/models/group_0954.py index c92d11192..f45127160 100644 --- a/githubkit/versions/v2022_11_28/models/group_0954.py +++ b/githubkit/versions/v2022_11_28/models/group_0954.py @@ -12,24 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - Examples: - {'contexts': ['contexts']} - """ + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) - contexts: list[str] = Field(description="The name of the status checks") +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0955.py b/githubkit/versions/v2022_11_28/models/group_0955.py index 736a856c2..f97011ea2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0955.py +++ b/githubkit/versions/v2022_11_28/models/group_0955.py @@ -12,24 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - Examples: - {'contexts': ['contexts']} - """ + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) - contexts: list[str] = Field(description="The name of the status checks") +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0956.py b/githubkit/versions/v2022_11_28/models/group_0956.py index 6e14562a0..e0f6c888a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0956.py +++ b/githubkit/versions/v2022_11_28/models/group_0956.py @@ -13,24 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0185 import ActionsSecret -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsSecretsGetResponse200""" - contexts: list[str] = Field(description="The name of the status checks") + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0957.py b/githubkit/versions/v2022_11_28/models/group_0957.py index 705f549eb..d21da1d46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0957.py +++ b/githubkit/versions/v2022_11_28/models/group_0957.py @@ -14,18 +14,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody +class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - Examples: - {'apps': ['my-app']} - """ - - apps: list[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-public-key) endpoint.", ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody) +model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0958.py b/githubkit/versions/v2022_11_28/models/group_0958.py index 60a283330..fb1427db5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0958.py +++ b/githubkit/versions/v2022_11_28/models/group_0958.py @@ -13,19 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0186 import ActionsVariable -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody - Examples: - {'apps': ['my-app']} - """ +class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsVariablesGetResponse200""" - 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." - ) + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody) +model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0959.py b/githubkit/versions/v2022_11_28/models/group_0959.py index ce2d7c174..bf9209ee5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0959.py +++ b/githubkit/versions/v2022_11_28/models/group_0959.py @@ -14,18 +14,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody +class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): + """ReposOwnerRepoActionsVariablesPostBody""" - Examples: - {'apps': ['my-app']} - """ + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") - 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(ReposOwnerRepoActionsVariablesPostBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0960.py b/githubkit/versions/v2022_11_28/models/group_0960.py index 84ad571cb..2a4d3aeda 100644 --- a/githubkit/versions/v2022_11_28/models/group_0960.py +++ b/githubkit/versions/v2022_11_28/models/group_0960.py @@ -12,18 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 +class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - Examples: - {'teams': ['justice-league']} - """ + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") - teams: list[str] = Field(description="The slug values for teams") +model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0961.py b/githubkit/versions/v2022_11_28/models/group_0961.py index 958afae89..3c3259aed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0961.py +++ b/githubkit/versions/v2022_11_28/models/group_0961.py @@ -9,23 +9,48 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 +class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - Examples: - {'teams': ['my-team']} - """ + total_count: int = Field() + workflows: list[Workflow] = Field() - teams: list[str] = Field(description="The slug values for teams") +class Workflow(GitHubModel): + """Workflow -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) + A GitHub Actions workflow + """ -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) + 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(ReposOwnerRepoActionsWorkflowsGetResponse200) +model_rebuild(Workflow) + +__all__ = ( + "ReposOwnerRepoActionsWorkflowsGetResponse200", + "Workflow", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0962.py b/githubkit/versions/v2022_11_28/models/group_0962.py index 19a5a7072..437f66baa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0962.py +++ b/githubkit/versions/v2022_11_28/models/group_0962.py @@ -11,21 +11,40 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( - GitHubModel +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" + + ref: str = Field( + description="The git reference for the workflow. The reference can be a branch or tag name." + ) + inputs: Missing[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs + ] = Field( + default=UNSET, + description="Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.", + ) + + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( + ExtraGitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - Examples: - {'teams': ['my-team']} + 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. """ - teams: list[str] = Field(description="The slug values for teams") - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) +__all__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0963.py b/githubkit/versions/v2022_11_28/models/group_0963.py index bf770df8d..8f7ac2ce9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0963.py +++ b/githubkit/versions/v2022_11_28/models/group_0963.py @@ -13,17 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0191 import WorkflowRun -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody - Examples: - {'users': ['mona']} - """ +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" - users: list[str] = Field(description="The username for users") + total_count: int = Field() + workflow_runs: list[WorkflowRun] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0964.py b/githubkit/versions/v2022_11_28/models/group_0964.py index 047d05a26..1559b8643 100644 --- a/githubkit/versions/v2022_11_28/models/group_0964.py +++ b/githubkit/versions/v2022_11_28/models/group_0964.py @@ -11,19 +11,55 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody +class ReposOwnerRepoAttestationsPostBody(GitHubModel): + """ReposOwnerRepoAttestationsPostBody""" - Examples: - {'users': ['mona']} + 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. """ - users: list[str] = Field(description="The username for users") + 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(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody) +model_rebuild(ReposOwnerRepoAttestationsPostBody) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",) +__all__ = ( + "ReposOwnerRepoAttestationsPostBody", + "ReposOwnerRepoAttestationsPostBodyPropBundle", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0965.py b/githubkit/versions/v2022_11_28/models/group_0965.py index 181ab0f55..e78d24aec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0965.py +++ b/githubkit/versions/v2022_11_28/models/group_0965.py @@ -12,18 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody +class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): + """ReposOwnerRepoAttestationsPostResponse201""" - Examples: - {'users': ['mona']} - """ + id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") - users: list[str] = Field(description="The username for users") +model_rebuild(ReposOwnerRepoAttestationsPostResponse201) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0966.py b/githubkit/versions/v2022_11_28/models/group_0966.py index 5fcd45c02..a764a785c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0966.py +++ b/githubkit/versions/v2022_11_28/models/group_0966.py @@ -11,15 +11,89 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - new_name: str = Field(description="The new name of the branch.") + attestations: Missing[ + list[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) + bundle: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = Field( + default=UNSET, + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", + ) + repository_id: Missing[int] = Field(default=UNSET) + bundle_url: Missing[str] = Field(default=UNSET) + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropVerificationMaterial + """ + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropDsseEnvelope + """ + + +model_rebuild(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) + +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0967.py b/githubkit/versions/v2022_11_28/models/group_0967.py index 8f20768c8..e795956c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0967.py +++ b/githubkit/versions/v2022_11_28/models/group_0967.py @@ -9,117 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class 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. - """ +class ReposOwnerRepoAutolinksPostBody(GitHubModel): + """ReposOwnerRepoAutolinksPostBody""" - 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.", + 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." ) - text: Missing[str] = Field( - max_length=65535, - default=UNSET, - description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + url_template: str = Field( + description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." ) - annotations: Missing[ - list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50 if PYDANTIC_V2 else None, + is_alphanumeric: Missing[bool] = Field( default=UNSET, - description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/articles/about-status-checks#checks)".', - ) - images: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( - Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." - ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( - default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", - ) - end_column: Missing[int] = Field( - default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." - ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." - ) - title: Missing[str] = Field( - default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", - ) - raw_details: Missing[str] = Field( - default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", + 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(ReposOwnerRepoCheckRunsPostBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) +model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutput", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", -) +__all__ = ("ReposOwnerRepoAutolinksPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0968.py b/githubkit/versions/v2022_11_28/models/group_0968.py index 1f5cbf18a..88050bb30 100644 --- a/githubkit/versions/v2022_11_28/models/group_0968.py +++ b/githubkit/versions/v2022_11_28/models/group_0968.py @@ -9,67 +9,227 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0967 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, - ReposOwnerRepoCheckRunsPostBodyPropOutput, -) + +class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" + + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None + ] = Field( + description="Require status checks to pass before merging. Set to `null` to disable." + ) + enforce_admins: Union[bool, None] = Field( + description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." + ) + required_pull_request_reviews: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, + None, + ] = Field( + description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." + ) + restrictions: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None + ] = Field( + description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." + ) + required_linear_history: Missing[bool] = Field( + default=UNSET, + description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', + ) + allow_force_pushes: Missing[Union[bool, None]] = Field( + default=UNSET, + description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', + ) + allow_deletions: Missing[bool] = Field( + default=UNSET, + description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', + ) + block_creations: Missing[bool] = Field( + default=UNSET, + description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", + ) + required_conversation_resolution: Missing[bool] = Field( + default=UNSET, + description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", + ) + lock_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", + ) + allow_fork_syncing: Missing[bool] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks + + Require status checks to pass before merging. Set to `null` to disable. + """ + + strict: bool = Field( + description="Require branches to be up to date before merging." + ) + contexts: list[str] = Field( + description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control." + ) + checks: Missing[ + list[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) -class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ - name: str = Field( - description='The name of the check. For example, "code-coverage".' + 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.", ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field( + default=UNSET, + description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + ) + dismiss_stale_reviews: Missing[bool] = Field( default=UNSET, - description="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="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." + 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.", ) - status: Literal["completed"] = Field() - started_at: Missing[datetime] = Field( + required_approving_review_count: 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`.", + description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", ) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", + ) + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances ] = Field( - 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." + 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" ) - completed_at: Missing[datetime] = Field( + 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 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 list of user `login`s allowed to bypass pull request requirements.", ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + teams: Missing[list[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 list of team `slug`s allowed to bypass pull request requirements.", ) - actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3 if PYDANTIC_V2 else None, + apps: Missing[list[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="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" ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBody", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0969.py b/githubkit/versions/v2022_11_28/models/group_0969.py index eafc01508..8a9bfe435 100644 --- a/githubkit/versions/v2022_11_28/models/group_0969.py +++ b/githubkit/versions/v2022_11_28/models/group_0969.py @@ -9,72 +9,104 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0967 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, - ReposOwnerRepoCheckRunsPostBodyPropOutput, -) - -class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - name: str = Field( - description='The name of the check. For example, "code-coverage".' + 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.", ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( + dismiss_stale_reviews: Missing[bool] = Field( default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." + 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.", ) - status: Missing[ - Literal["queued", "in_progress", "waiting", "requested", "pending"] - ] = Field(default=UNSET) - started_at: Missing[datetime] = Field( + required_approving_review_count: 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`.", + description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", ) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", + ) + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances ] = Field( default=UNSET, - description="**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="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[list[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" + ) + teams: Missing[list[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" ) - completed_at: Missing[datetime] = Field( + 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 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 list of user `login`s allowed to bypass pull request requirements.", ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + teams: Missing[list[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 list of team `slug`s allowed to bypass pull request requirements.", ) - actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3 if PYDANTIC_V2 else None, + apps: Missing[list[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="The list of app `slug`s allowed to bypass pull request requirements.", ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances +) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0970.py b/githubkit/versions/v2022_11_28/models/group_0970.py index b08be314e..199aa5468 100644 --- a/githubkit/versions/v2022_11_28/models/group_0970.py +++ b/githubkit/versions/v2022_11_28/models/group_0970.py @@ -9,114 +9,53 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class 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 ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - 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." + strict: Missing[bool] = Field( + default=UNSET, description="Require branches to be up to date before merging." ) - annotations: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50 if PYDANTIC_V2 else None, + contexts: Missing[list[str]] = Field( 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)\".", + description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.", ) - images: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + checks: Missing[ + list[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ] ] = Field( default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", + description="The list of status checks to require in order to merge into this branch.", ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( GitHubModel ): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms + """ - 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( + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", + 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.", ) - raw_details: Missing[str] = Field( - default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - 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(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems +) __all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0971.py b/githubkit/versions/v2022_11_28/models/group_0971.py index 83b26aa60..c92d11192 100644 --- a/githubkit/versions/v2022_11_28/models/group_0971.py +++ b/githubkit/versions/v2022_11_28/models/group_0971.py @@ -9,69 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_0970 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, -) +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + Examples: + {'contexts': ['contexts']} + """ - name: Missing[str] = Field( - default=UNSET, - description='The name of the check. For example, "code-coverage".', - ) - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - status: Missing[Literal["completed"]] = Field(default=UNSET) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', - ) + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0972.py b/githubkit/versions/v2022_11_28/models/group_0972.py index d7ff0ba0b..736a856c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0972.py +++ b/githubkit/versions/v2022_11_28/models/group_0972.py @@ -9,72 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_0970 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, -) +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + Examples: + {'contexts': ['contexts']} + """ - name: Missing[str] = Field( - default=UNSET, - description='The name of the check. For example, "code-coverage".', - ) - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] = Field( - default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', - ) + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0973.py b/githubkit/versions/v2022_11_28/models/group_0973.py index 2a8e7cd54..6e14562a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0973.py +++ b/githubkit/versions/v2022_11_28/models/group_0973.py @@ -14,12 +14,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 - head_sha: str = Field(description="The sha of the head commit.") + Examples: + {'contexts': ['contexts']} + """ + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoCheckSuitesPostBody) -__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 +) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0974.py b/githubkit/versions/v2022_11_28/models/group_0974.py index c56809f38..705f549eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0974.py +++ b/githubkit/versions/v2022_11_28/models/group_0974.py @@ -12,37 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody - 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""" + Examples: + {'apps': ['my-app']} + """ - 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.", + 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(ReposOwnerRepoCheckSuitesPreferencesPatchBody) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody) -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBody", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0975.py b/githubkit/versions/v2022_11_28/models/group_0975.py index 29e91e254..60a283330 100644 --- a/githubkit/versions/v2022_11_28/models/group_0975.py +++ b/githubkit/versions/v2022_11_28/models/group_0975.py @@ -13,16 +13,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0211 import CheckRun +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + Examples: + {'apps': ['my-app']} + """ - total_count: int = Field() - check_runs: list[CheckRun] = Field() + 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(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody) -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0976.py b/githubkit/versions/v2022_11_28/models/group_0976.py index a6809c655..ce2d7c174 100644 --- a/githubkit/versions/v2022_11_28/models/group_0976.py +++ b/githubkit/versions/v2022_11_28/models/group_0976.py @@ -9,35 +9,23 @@ from __future__ import annotations -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody - 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.", - ) + Examples: + {'apps': ['my-app']} + """ + + apps: list[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody) -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0977.py b/githubkit/versions/v2022_11_28/models/group_0977.py index 61ff3b30c..84ad571cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0977.py +++ b/githubkit/versions/v2022_11_28/models/group_0977.py @@ -9,39 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - - 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" - ) - repositories: list[str] = Field( - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required." - ) - repository_lists: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_owners: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - - -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) - -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) +from githubkit.compat import GitHubModel, model_rebuild + + +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 + + Examples: + {'teams': ['justice-league']} + """ + + teams: list[str] = Field(description="The slug values for teams") + + +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0978.py b/githubkit/versions/v2022_11_28/models/group_0978.py index d8a14d5fb..958afae89 100644 --- a/githubkit/versions/v2022_11_28/models/group_0978.py +++ b/githubkit/versions/v2022_11_28/models/group_0978.py @@ -9,39 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - - 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" - ) - repositories: Missing[list[str]] = Field( - default=UNSET, - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_lists: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_owners: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="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(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) - -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) +from githubkit.compat import GitHubModel, model_rebuild + + +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + + Examples: + {'teams': ['my-team']} + """ + + teams: list[str] = Field(description="The slug values for teams") + + +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0979.py b/githubkit/versions/v2022_11_28/models/group_0979.py index 3c9a891a4..19a5a7072 100644 --- a/githubkit/versions/v2022_11_28/models/group_0979.py +++ b/githubkit/versions/v2022_11_28/models/group_0979.py @@ -9,39 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - - 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" - ) - repositories: Missing[list[str]] = Field( - default=UNSET, - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_lists: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_owners: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - - -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) - -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) +from githubkit.compat import GitHubModel, model_rebuild + + +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 + + Examples: + {'teams': ['my-team']} + """ + + teams: list[str] = Field(description="The slug values for teams") + + +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0980.py b/githubkit/versions/v2022_11_28/models/group_0980.py index a7ec8de2f..bf770df8d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0980.py +++ b/githubkit/versions/v2022_11_28/models/group_0980.py @@ -9,50 +9,21 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class 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",) + + +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody + + Examples: + {'users': ['mona']} + """ + + users: list[str] = Field(description="The username for users") + + +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0981.py b/githubkit/versions/v2022_11_28/models/group_0981.py index 5a5308a6c..047d05a26 100644 --- a/githubkit/versions/v2022_11_28/models/group_0981.py +++ b/githubkit/versions/v2022_11_28/models/group_0981.py @@ -13,16 +13,17 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0078 import Codespace +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody -class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesGetResponse200""" + Examples: + {'users': ['mona']} + """ - total_count: int = Field() - codespaces: list[Codespace] = Field() + users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCodespacesGetResponse200) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody) -__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0982.py b/githubkit/versions/v2022_11_28/models/group_0982.py index 9d9c2bbbd..181ab0f55 100644 --- a/githubkit/versions/v2022_11_28/models/group_0982.py +++ b/githubkit/versions/v2022_11_28/models/group_0982.py @@ -9,61 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesPostBody(GitHubModel): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody + + Examples: + {'users': ['mona']} + """ - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) + users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCodespacesPostBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody) -__all__ = ("ReposOwnerRepoCodespacesPostBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0983.py b/githubkit/versions/v2022_11_28/models/group_0983.py index 262d6c72c..5fcd45c02 100644 --- a/githubkit/versions/v2022_11_28/models/group_0983.py +++ b/githubkit/versions/v2022_11_28/models/group_0983.py @@ -12,33 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" +class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - total_count: int = Field() - devcontainers: list[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems - ] = Field() + new_name: str = Field(description="The new name of the branch.") -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( - GitHubModel -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" +model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) - path: str = Field() - name: Missing[str] = Field(default=UNSET) - display_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) - -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0984.py b/githubkit/versions/v2022_11_28/models/group_0984.py index d4a3dc673..8f20768c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0984.py +++ b/githubkit/versions/v2022_11_28/models/group_0984.py @@ -9,20 +9,117 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class 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 if PYDANTIC_V2 else None, + default=UNSET, + description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/articles/about-status-checks#checks)".', + ) + images: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( + Field( + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", + ) + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + ) + end_column: Missing[int] = Field( + default=UNSET, + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( + default=UNSET, + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" -from .group_0077 import CodespaceMachine + 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 ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" +class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - total_count: int = Field() - machines: list[CodespaceMachine] = Field() + 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(ReposOwnerRepoCodespacesMachinesGetResponse200) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutput", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0985.py b/githubkit/versions/v2022_11_28/models/group_0985.py index cdb579f90..444e73f13 100644 --- a/githubkit/versions/v2022_11_28/models/group_0985.py +++ b/githubkit/versions/v2022_11_28/models/group_0985.py @@ -9,39 +9,67 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0002 import SimpleUser +from .group_0984 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, + ReposOwnerRepoCheckRunsPostBodyPropOutput, +) -class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200""" +class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" - billable_owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + name: str = Field( + description='The name of the check. For example, "code-coverage".' ) - defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( - default=UNSET + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + status: Literal["completed"] = Field() + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3 if PYDANTIC_V2 else None, + default=UNSET, + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str = Field() - devcontainer_path: Union[str, None] = Field() - - -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", -) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0986.py b/githubkit/versions/v2022_11_28/models/group_0986.py index ea29eb2ed..efa8a4186 100644 --- a/githubkit/versions/v2022_11_28/models/group_0986.py +++ b/githubkit/versions/v2022_11_28/models/group_0986.py @@ -10,34 +10,71 @@ from __future__ import annotations from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[RepoCodespacesSecret] = Field() - - -class RepoCodespacesSecret(GitHubModel): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0984 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, + ReposOwnerRepoCheckRunsPostBodyPropOutput, +) -model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) -model_rebuild(RepoCodespacesSecret) -__all__ = ( - "RepoCodespacesSecret", - "ReposOwnerRepoCodespacesSecretsGetResponse200", -) +class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str = Field( + description='The name of the check. For example, "code-coverage".' + ) + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + status: Missing[ + Literal["queued", "in_progress", "waiting", "requested", "pending"] + ] = Field(default=UNSET) + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3 if PYDANTIC_V2 else None, + default=UNSET, + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + ) + + +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0987.py b/githubkit/versions/v2022_11_28/models/group_0987.py index a1412f088..b08be314e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0987.py +++ b/githubkit/versions/v2022_11_28/models/group_0987.py @@ -9,26 +9,114 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class 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. + """ - 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})$", + title: Missing[str] = Field(default=UNSET, description="**Required**.") + summary: str = Field(max_length=65535, description="Can contain Markdown.") + text: Missing[str] = Field( + max_length=65535, default=UNSET, description="Can contain Markdown." + ) + annotations: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50 if PYDANTIC_V2 else None, + default=UNSET, + description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\".", + ) + images: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + ] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", + description="Adds images to the output displayed in the GitHub pull request UI.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( + GitHubModel +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + ) + end_column: Missing[int] = Field( + default=UNSET, + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( + default=UNSET, + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str = Field( + max_length=20, + description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + ) + description: str = Field( + max_length=40, + description="A short explanation of what this action would do. The maximum size is 40 characters.", ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + 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(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0988.py b/githubkit/versions/v2022_11_28/models/group_0988.py index 637f9ed63..9a2be4740 100644 --- a/githubkit/versions/v2022_11_28/models/group_0988.py +++ b/githubkit/versions/v2022_11_28/models/group_0988.py @@ -9,22 +9,69 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0987 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, +) + -class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" - permission: Missing[str] = Field( + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', + ) + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + status: Missing[Literal["completed"]] = Field(default=UNSET) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3 if PYDANTIC_V2 else None, default=UNSET, - description="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='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(ReposOwnerRepoCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0989.py b/githubkit/versions/v2022_11_28/models/group_0989.py index 75effd211..4c2dbd1f9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0989.py +++ b/githubkit/versions/v2022_11_28/models/group_0989.py @@ -9,17 +9,72 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0987 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, +) -class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - body: str = Field(description="The contents of the comment") + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', + ) + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3 if PYDANTIC_V2 else None, + default=UNSET, + description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + ) -model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0990.py b/githubkit/versions/v2022_11_28/models/group_0990.py index 496e2b84a..2a8e7cd54 100644 --- a/githubkit/versions/v2022_11_28/models/group_0990.py +++ b/githubkit/versions/v2022_11_28/models/group_0990.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 ReposOwnerRepoCheckSuitesPostBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPostBody""" - 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." - ) + head_sha: str = Field(description="The sha of the head commit.") -model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoCheckSuitesPostBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0991.py b/githubkit/versions/v2022_11_28/models/group_0991.py index 757d9d282..c56809f38 100644 --- a/githubkit/versions/v2022_11_28/models/group_0991.py +++ b/githubkit/versions/v2022_11_28/models/group_0991.py @@ -16,22 +16,33 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - 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( + auto_trigger_checks: Missing[ + list[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] + ] = Field( default=UNSET, - description="**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.", + description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", + ) + + +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( + GitHubModel +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" + + app_id: int = Field(description="The `id` of the GitHub App.") + setting: bool = Field( + default=True, + description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", ) -model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBody", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0992.py b/githubkit/versions/v2022_11_28/models/group_0992.py index ba2717d4e..54e9d5b8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0992.py +++ b/githubkit/versions/v2022_11_28/models/group_0992.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0211 import CheckRun +from .group_0217 import CheckRun -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" total_count: int = Field() check_runs: list[CheckRun] = Field() -model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) +model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0993.py b/githubkit/versions/v2022_11_28/models/group_0993.py index 06ebae173..a6809c655 100644 --- a/githubkit/versions/v2022_11_28/models/group_0993.py +++ b/githubkit/versions/v2022_11_28/models/group_0993.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Annotated, Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,66 +18,26 @@ from githubkit.utils import UNSET -class ReposOwnerRepoContentsPathPutBody(GitHubModel): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - 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.", + 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`." ) - branch: Missing[str] = Field( + dismissed_reason: Missing[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] = Field( default=UNSET, - description="The branch name. Default: the repository’s default branch.", - ) - committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( - default=UNSET, - description="The person that committed the file. Default: the authenticated user.", - ) - author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( - default=UNSET, - description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", - ) - - -class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropCommitter - - The person that committed the file. Default: the authenticated user. - """ - - name: str = Field( - description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." - ) - email: str = Field( - description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." - ) - date: Missing[str] = Field(default=UNSET) - - -class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. - """ - - name: str = Field( - description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", ) - 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." + 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.", + ) ) - date: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoContentsPathPutBody) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) +model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) -__all__ = ( - "ReposOwnerRepoContentsPathPutBody", - "ReposOwnerRepoContentsPathPutBodyPropAuthor", - "ReposOwnerRepoContentsPathPutBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0994.py b/githubkit/versions/v2022_11_28/models/group_0994.py index b246a17c2..61ff3b30c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0994.py +++ b/githubkit/versions/v2022_11_28/models/group_0994.py @@ -9,66 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - 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", + 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" ) - committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( - default=UNSET, description="object containing information about the committer." + 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." ) - author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( - default=UNSET, description="object containing information about the author." - ) - - -class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - - object containing information about the committer. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( + repository_lists: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="The email of the author (or committer) of the commit", - ) - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - email: Missing[str] = Field( + repository_owners: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="The email of the author (or committer) of the commit", + 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(ReposOwnerRepoContentsPathDeleteBody) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBody", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0995.py b/githubkit/versions/v2022_11_28/models/group_0995.py index 98b4b8e85..d8a14d5fb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0995.py +++ b/githubkit/versions/v2022_11_28/models/group_0995.py @@ -13,32 +13,35 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - state: Literal["dismissed", "open"] = Field( - description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." + 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" ) - dismissed_reason: Missing[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] = Field( + repositories: Missing[list[str]] = Field( default=UNSET, - description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", + 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.", ) - dismissed_comment: Missing[str] = Field( - max_length=280, + repository_lists: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_owners: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="An optional comment associated with dismissing the alert.", + 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(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0996.py b/githubkit/versions/v2022_11_28/models/group_0996.py index 22c7a2b35..3c9a891a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0996.py +++ b/githubkit/versions/v2022_11_28/models/group_0996.py @@ -9,35 +9,39 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoDependabotSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[DependabotSecret] = Field() - - -class DependabotSecret(GitHubModel): - """Dependabot Secret - - Set secrets for Dependabot. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - - -model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) -model_rebuild(DependabotSecret) - -__all__ = ( - "DependabotSecret", - "ReposOwnerRepoDependabotSecretsGetResponse200", -) +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" + + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: Missing[list[str]] = Field( + default=UNSET, + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_lists: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_owners: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + + +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) + +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0997.py b/githubkit/versions/v2022_11_28/models/group_0997.py index f2da3a6d7..a7ec8de2f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0997.py +++ b/githubkit/versions/v2022_11_28/models/group_0997.py @@ -9,6 +9,8 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,19 +18,41 @@ from githubkit.utils import UNSET -class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - 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})$", + 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="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.", + 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.", ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + 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(ReposOwnerRepoDependabotSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0998.py b/githubkit/versions/v2022_11_28/models/group_0998.py index d8abaeb32..bc507f541 100644 --- a/githubkit/versions/v2022_11_28/models/group_0998.py +++ b/githubkit/versions/v2022_11_28/models/group_0998.py @@ -13,20 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0083 import Codespace -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - id: int = Field(description="ID of the created snapshot.") - created_at: str = Field(description="The time at which the snapshot was created.") - result: str = Field( - description='Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository\'s dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository\'s dependencies were not updated. "INVALID" indicates that the snapshot was malformed.' - ) - message: str = Field( - description="A message providing further details about the result, such as why the dependencies were not updated." - ) +class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) +model_rebuild(ReposOwnerRepoCodespacesGetResponse200) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0999.py b/githubkit/versions/v2022_11_28/models/group_0999.py index 7a0f8ffb7..9d9c2bbbd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0999.py +++ b/githubkit/versions/v2022_11_28/models/group_0999.py @@ -9,61 +9,61 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoCodespacesPostBody(GitHubModel): + """ReposOwnerRepoCodespacesPostBody""" - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or SHA." + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", ) - task: Missing[str] = Field( + location: Missing[str] = Field( default=UNSET, - description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", ) - auto_merge: Missing[bool] = Field( + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( default=UNSET, - description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", ) - required_contexts: Missing[list[str]] = Field( + client_ip: Missing[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.", + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" ) - payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( - Field(default=UNSET) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", ) - environment: Missing[str] = Field( + multi_repo_permissions_opt_out: Missing[bool] = Field( default=UNSET, - description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", + description="Whether to authorize requested permissions from devcontainer.json", ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the deployment." + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" ) - transient_environment: Missing[bool] = Field( + idle_timeout_minutes: Missing[int] = 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`", + description="Time in minutes before codespace stops from inactivity", ) - production_environment: Missing[bool] = Field( + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = 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.", + 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 ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" - - -model_rebuild(ReposOwnerRepoDeploymentsPostBody) -model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) +model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ( - "ReposOwnerRepoDeploymentsPostBody", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", -) +__all__ = ("ReposOwnerRepoCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1000.py b/githubkit/versions/v2022_11_28/models/group_1000.py index 87a3629c8..262d6c72c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1000.py +++ b/githubkit/versions/v2022_11_28/models/group_1000.py @@ -16,12 +16,29 @@ from githubkit.utils import UNSET -class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - message: Missing[str] = Field(default=UNSET) + total_count: int = Field() + devcontainers: list[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems + ] = Field() -model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( + GitHubModel +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) + 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", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1001.py b/githubkit/versions/v2022_11_28/models/group_1001.py index fbbf01aa8..6c88c821d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1001.py +++ b/githubkit/versions/v2022_11_28/models/group_1001.py @@ -9,49 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] = Field( - description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." - ) - target_url: Missing[str] = Field( - default=UNSET, - description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment.\n\n> [!NOTE]\n> It's recommended to use the `log_url` parameter, which replaces `target_url`.", - ) - log_url: Missing[str] = Field( - default=UNSET, - description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the status. The maximum description length is 140 characters.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", - ) - environment_url: Missing[str] = Field( - default=UNSET, - description='Sets the URL for accessing your environment. Default: `""`', - ) - auto_inactive: Missing[bool] = Field( - default=UNSET, - description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", - ) - - -model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) - -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) + +from .group_0082 import CodespaceMachine + + +class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + + total_count: int = Field() + machines: list[CodespaceMachine] = Field() + + +model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) + +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1002.py b/githubkit/versions/v2022_11_28/models/group_1002.py index 7a5ec1511..14c58fd19 100644 --- a/githubkit/versions/v2022_11_28/models/group_1002.py +++ b/githubkit/versions/v2022_11_28/models/group_1002.py @@ -9,40 +9,39 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser + -class ReposOwnerRepoDispatchesPostBody(GitHubModel): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200""" - event_type: str = Field( - min_length=1, - max_length=100, - description="A custom webhook event name. Must be 100 characters or fewer.", + billable_owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( - default=UNSET, - description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.", + defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( + default=UNSET ) -class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - JSON payload with extra information about the webhook event that your action or - workflow may use. The maximum number of top-level properties is 10. The total - size of the JSON payload must be less than 64KB. - """ + location: str = Field() + devcontainer_path: Union[str, None] = Field() -model_rebuild(ReposOwnerRepoDispatchesPostBody) -model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) __all__ = ( - "ReposOwnerRepoDispatchesPostBody", - "ReposOwnerRepoDispatchesPostBodyPropClientPayload", + "ReposOwnerRepoCodespacesNewGetResponse200", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1003.py b/githubkit/versions/v2022_11_28/models/group_1003.py index cfdab8ff4..ea29eb2ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_1003.py +++ b/githubkit/versions/v2022_11_28/models/group_1003.py @@ -9,61 +9,35 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0267 import DeploymentBranchPolicySettings - - -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 ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - - 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", - ) - - -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) + + +class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[RepoCodespacesSecret] = Field() + + +class RepoCodespacesSecret(GitHubModel): + """Codespaces Secret + + Set repository secrets for GitHub Codespaces. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + + +model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) +model_rebuild(RepoCodespacesSecret) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", + "RepoCodespacesSecret", + "ReposOwnerRepoCodespacesSecretsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1004.py b/githubkit/versions/v2022_11_28/models/group_1004.py index e8d56e3db..a1412f088 100644 --- a/githubkit/versions/v2022_11_28/models/group_1004.py +++ b/githubkit/versions/v2022_11_28/models/group_1004.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,42 +16,19 @@ from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - - total_count: int = Field( - description="The number of deployment branch policies for the environment." - ) - branch_policies: list[DeploymentBranchPolicy] = Field() - +class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" -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( + 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 name pattern that branches or tags must match in order to deploy to the environment.", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag." + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 -) -model_rebuild(DeploymentBranchPolicy) +model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) -__all__ = ( - "DeploymentBranchPolicy", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", -) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1005.py b/githubkit/versions/v2022_11_28/models/group_1005.py index b5d03989b..637f9ed63 100644 --- a/githubkit/versions/v2022_11_28/models/group_1005.py +++ b/githubkit/versions/v2022_11_28/models/group_1005.py @@ -16,21 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - integration_id: Missing[int] = Field( + permission: Missing[str] = Field( default=UNSET, - description="The ID of the custom app that will be enabled on the environment.", + 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( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody -) +model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", -) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1006.py b/githubkit/versions/v2022_11_28/models/group_1006.py index b0765afa6..75effd211 100644 --- a/githubkit/versions/v2022_11_28/models/group_1006.py +++ b/githubkit/versions/v2022_11_28/models/group_1006.py @@ -12,32 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0273 import CustomDeploymentRuleApp +class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdPatchBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ + body: str = Field(description="The contents of the comment") - 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(ReposOwnerRepoCommentsCommentIdPatchBody) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 -) - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", -) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1007.py b/githubkit/versions/v2022_11_28/models/group_1007.py index 23bfe2c55..496e2b84a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1007.py +++ b/githubkit/versions/v2022_11_28/models/group_1007.py @@ -9,20 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0179 import ActionsSecret - -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - total_count: int = Field() - secrets: list[ActionsSecret] = Field() + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the commit comment." + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) +model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1008.py b/githubkit/versions/v2022_11_28/models/group_1008.py index aec8c7a15..757d9d282 100644 --- a/githubkit/versions/v2022_11_28/models/group_1008.py +++ b/githubkit/versions/v2022_11_28/models/group_1008.py @@ -12,18 +12,26 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - 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.", + body: str = Field(description="The contents of the comment.") + path: Missing[str] = Field( + default=UNSET, description="Relative path of the file to comment on." + ) + position: Missing[int] = Field( + default=UNSET, description="Line index in the diff to comment on." + ) + line: Missing[int] = Field( + default=UNSET, + description="**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.", ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1009.py b/githubkit/versions/v2022_11_28/models/group_1009.py index 5d292f50e..4ca787e61 100644 --- a/githubkit/versions/v2022_11_28/models/group_1009.py +++ b/githubkit/versions/v2022_11_28/models/group_1009.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0180 import ActionsVariable +from .group_0217 import CheckRun -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" total_count: int = Field() - variables: list[ActionsVariable] = Field() + check_runs: list[CheckRun] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) +model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1010.py b/githubkit/versions/v2022_11_28/models/group_1010.py index 376060834..06ebae173 100644 --- a/githubkit/versions/v2022_11_28/models/group_1010.py +++ b/githubkit/versions/v2022_11_28/models/group_1010.py @@ -12,15 +12,70 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoContentsPathPutBody(GitHubModel): + """ReposOwnerRepoContentsPathPutBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + 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`.", + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) +class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropCommitter -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) + The person that committed the file. Default: the authenticated user. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) + + +class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoContentsPathPutBody) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) + +__all__ = ( + "ReposOwnerRepoContentsPathPutBody", + "ReposOwnerRepoContentsPathPutBodyPropAuthor", + "ReposOwnerRepoContentsPathPutBodyPropCommitter", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1011.py b/githubkit/versions/v2022_11_28/models/group_1011.py index 6a0d6de99..b246a17c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_1011.py +++ b/githubkit/versions/v2022_11_28/models/group_1011.py @@ -16,13 +16,59 @@ from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + 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." + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) +class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) + object containing information about the committer. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + + +class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor + + object containing information about the author. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + + +model_rebuild(ReposOwnerRepoContentsPathDeleteBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) + +__all__ = ( + "ReposOwnerRepoContentsPathDeleteBody", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1012.py b/githubkit/versions/v2022_11_28/models/group_1012.py index abc9b3749..98b4b8e85 100644 --- a/githubkit/versions/v2022_11_28/models/group_1012.py +++ b/githubkit/versions/v2022_11_28/models/group_1012.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,23 +18,27 @@ from githubkit.utils import UNSET -class ReposOwnerRepoForksPostBody(GitHubModel): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - organization: Missing[str] = Field( - default=UNSET, - description="Optional parameter to specify the organization name if forking into an organization.", + 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( + dismissed_reason: Missing[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] = Field( default=UNSET, - description="When forking from an existing repository, a new name for the fork.", + description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", ) - default_branch_only: Missing[bool] = Field( + dismissed_comment: Missing[str] = Field( + max_length=280, default=UNSET, - description="When forking from an existing repository, fork with only the default branch.", + description="An optional comment associated with dismissing the alert.", ) -model_rebuild(ReposOwnerRepoForksPostBody) +model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoForksPostBody",) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1013.py b/githubkit/versions/v2022_11_28/models/group_1013.py index f4b8ca964..22c7a2b35 100644 --- a/githubkit/versions/v2022_11_28/models/group_1013.py +++ b/githubkit/versions/v2022_11_28/models/group_1013.py @@ -9,23 +9,35 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoGitBlobsPostBody(GitHubModel): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[DependabotSecret] = Field() + + +class DependabotSecret(GitHubModel): + """Dependabot Secret + + Set secrets for Dependabot. + """ - content: str = Field(description="The new blob's content.") - encoding: Missing[str] = Field( - default=UNSET, - description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', - ) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ReposOwnerRepoGitBlobsPostBody) +model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) +model_rebuild(DependabotSecret) -__all__ = ("ReposOwnerRepoGitBlobsPostBody",) +__all__ = ( + "DependabotSecret", + "ReposOwnerRepoDependabotSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1014.py b/githubkit/versions/v2022_11_28/models/group_1014.py index 111a9d4a5..f2da3a6d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1014.py +++ b/githubkit/versions/v2022_11_28/models/group_1014.py @@ -9,8 +9,6 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,74 +16,19 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitCommitsPostBody(GitHubModel): - """ReposOwnerRepoGitCommitsPostBody""" - - message: str = Field(description="The commit message") - tree: str = Field(description="The SHA of the tree object this commit points to") - parents: Missing[list[str]] = Field( - default=UNSET, - description="The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", - ) - author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( - default=UNSET, - description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", - ) - committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( - default=UNSET, - description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", - ) - signature: Missing[str] = Field( - default=UNSET, - description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", - ) - - -class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor - - 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. - """ +class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - 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( + 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="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="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.", ) - - -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`.", + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) -model_rebuild(ReposOwnerRepoGitCommitsPostBody) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) +model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) -__all__ = ( - "ReposOwnerRepoGitCommitsPostBody", - "ReposOwnerRepoGitCommitsPostBodyPropAuthor", - "ReposOwnerRepoGitCommitsPostBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1015.py b/githubkit/versions/v2022_11_28/models/group_1015.py index e02988ad3..d8abaeb32 100644 --- a/githubkit/versions/v2022_11_28/models/group_1015.py +++ b/githubkit/versions/v2022_11_28/models/group_1015.py @@ -14,15 +14,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsPostBody(GitHubModel): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - 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." + id: int = Field(description="ID of the created snapshot.") + created_at: str = Field(description="The time at which the snapshot was created.") + result: str = Field( + description='Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository\'s dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository\'s dependencies were not updated. "INVALID" indicates that the snapshot was malformed.' + ) + message: str = Field( + description="A message providing further details about the result, such as why the dependencies were not updated." ) - sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(ReposOwnerRepoGitRefsPostBody) +model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -__all__ = ("ReposOwnerRepoGitRefsPostBody",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_1016.py b/githubkit/versions/v2022_11_28/models/group_1016.py index dc680ffcd..7a0f8ffb7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1016.py +++ b/githubkit/versions/v2022_11_28/models/group_1016.py @@ -9,23 +9,61 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsPostBody""" - sha: str = Field(description="The SHA1 value to set this reference to") - force: Missing[bool] = Field( + 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="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", + description="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(ReposOwnerRepoGitRefsRefPatchBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) -__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) +__all__ = ( + "ReposOwnerRepoDeploymentsPostBody", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1017.py b/githubkit/versions/v2022_11_28/models/group_1017.py index 2366c3d87..87a3629c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1017.py +++ b/githubkit/versions/v2022_11_28/models/group_1017.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,43 +16,12 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitTagsPostBody(GitHubModel): - """ReposOwnerRepoGitTagsPostBody""" - - tag: str = Field( - description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' - ) - message: str = Field(description="The tag message.") - object_: str = Field( - alias="object", description="The SHA of the git object this is tagging." - ) - type: Literal["commit", "tree", "blob"] = Field( - description="The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`." - ) - tagger: Missing[ReposOwnerRepoGitTagsPostBodyPropTagger] = Field( - default=UNSET, - description="An object with information about the individual creating the tag.", - ) - - -class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ +class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): + """ReposOwnerRepoDeploymentsPostResponse202""" - name: str = Field(description="The name of the author of the tag") - email: str = Field(description="The email of the author of the tag") - date: Missing[datetime] = Field( - default=UNSET, - description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) + message: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoGitTagsPostBody) -model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) +model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) -__all__ = ( - "ReposOwnerRepoGitTagsPostBody", - "ReposOwnerRepoGitTagsPostBodyPropTagger", -) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1018.py b/githubkit/versions/v2022_11_28/models/group_1018.py index 1d6bd8e59..fbbf01aa8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1018.py +++ b/githubkit/versions/v2022_11_28/models/group_1018.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,45 +18,40 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitTreesPostBody(GitHubModel): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( - description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + 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." ) - base_tree: Missing[str] = Field( + target_url: Missing[str] = Field( default=UNSET, - description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.", + description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment.\n\n> [!NOTE]\n> It's recommended to use the `log_url` parameter, which replaces `target_url`.", ) - - -class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: Missing[str] = Field( - default=UNSET, description="The file referenced in the tree." + 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: `""`', ) - mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( + description: Missing[str] = 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.", + description="A short description of the status. The maximum description length is 140 characters.", ) - type: Missing[Literal["blob", "tree", "commit"]] = Field( - default=UNSET, description="Either `blob`, `tree`, or `commit`." + 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.", ) - sha: Missing[Union[str, None]] = Field( + environment_url: Missing[str] = 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.", + description='Sets the URL for accessing your environment. Default: `""`', ) - content: Missing[str] = Field( + auto_inactive: Missing[bool] = 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="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(ReposOwnerRepoGitTreesPostBody) -model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) +model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) -__all__ = ( - "ReposOwnerRepoGitTreesPostBody", - "ReposOwnerRepoGitTreesPostBodyPropTreeItems", -) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1019.py b/githubkit/versions/v2022_11_28/models/group_1019.py index 005e3bc51..7a5ec1511 100644 --- a/githubkit/versions/v2022_11_28/models/group_1019.py +++ b/githubkit/versions/v2022_11_28/models/group_1019.py @@ -9,60 +9,40 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoHooksPostBody(GitHubModel): - """ReposOwnerRepoHooksPostBody""" +class ReposOwnerRepoDispatchesPostBody(GitHubModel): + """ReposOwnerRepoDispatchesPostBody""" - 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.", + event_type: str = Field( + min_length=1, + max_length=100, + description="A custom webhook event name. Must be 100 characters or fewer.", ) - active: Missing[bool] = Field( + client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.", ) -class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): - """ReposOwnerRepoHooksPostBodyPropConfig +class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload - Key/value pairs to provide settings for this webhook. + JSON payload with extra information about the webhook event that your action or + workflow may use. The maximum number of top-level properties is 10. The total + size of the JSON payload must be less than 64KB. """ - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - -model_rebuild(ReposOwnerRepoHooksPostBody) -model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) +model_rebuild(ReposOwnerRepoDispatchesPostBody) +model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) __all__ = ( - "ReposOwnerRepoHooksPostBody", - "ReposOwnerRepoHooksPostBodyPropConfig", + "ReposOwnerRepoDispatchesPostBody", + "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1020.py b/githubkit/versions/v2022_11_28/models/group_1020.py index 4369c87eb..c9d5484e0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1020.py +++ b/githubkit/versions/v2022_11_28/models/group_1020.py @@ -9,41 +9,61 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0009 import WebhookConfig +from .group_0273 import DeploymentBranchPolicySettings -class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" - config: Missing[WebhookConfig] = Field( + wait_timer: Missing[int] = Field( default=UNSET, - title="Webhook Configuration", - description="Configuration object of the webhook", + 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).", ) - events: Missing[list[str]] = Field( + prevent_self_review: Missing[bool] = 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="Whether or not a user who created the job is prevented from approving their own job.", ) - add_events: Missing[list[str]] = Field( + reviewers: Missing[ + Union[ + list[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], + None, + ] + ] = Field( default=UNSET, - description="Determines a list of events to be added to the list of events that the Hook triggers for.", + 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.", ) - remove_events: Missing[list[str]] = Field( - default=UNSET, - description="Determines a list of events to be removed from the list of events that the Hook triggers for.", + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) - active: Missing[bool] = Field( + id: Missing[int] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + description="The id of the user or team who can review the deployment", ) -model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) -__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1021.py b/githubkit/versions/v2022_11_28/models/group_1021.py index a0493aad9..e8d56e3db 100644 --- a/githubkit/versions/v2022_11_28/models/group_1021.py +++ b/githubkit/versions/v2022_11_28/models/group_1021.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,23 +18,42 @@ from githubkit.utils import UNSET -class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + total_count: int = Field( + description="The number of deployment branch policies for the environment." ) - 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`.", + branch_policies: list[DeploymentBranchPolicy] = Field() + + +class DeploymentBranchPolicy(GitHubModel): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ + + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the branch or tag policy." ) - secret: Missing[str] = Field( + node_id: Missing[str] = Field(default=UNSET) + name: 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 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." ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 +) +model_rebuild(DeploymentBranchPolicy) -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) +__all__ = ( + "DeploymentBranchPolicy", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1022.py b/githubkit/versions/v2022_11_28/models/group_1022.py index 4e11d0489..b5d03989b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1022.py +++ b/githubkit/versions/v2022_11_28/models/group_1022.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,28 +16,21 @@ from githubkit.utils import UNSET -class ReposOwnerRepoImportPutBody(GitHubModel): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - vcs_url: str = Field(description="The URL of the originating repository.") - vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( - default=UNSET, - description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", - ) - vcs_username: Missing[str] = Field( - default=UNSET, - description="If authentication is required, the username to provide to `vcs_url`.", - ) - vcs_password: Missing[str] = Field( - default=UNSET, - description="If authentication is required, the password to provide to `vcs_url`.", - ) - tfvc_project: Missing[str] = Field( + integration_id: Missing[int] = Field( default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + description="The ID of the custom app that will be enabled on the environment.", ) -model_rebuild(ReposOwnerRepoImportPutBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody +) -__all__ = ("ReposOwnerRepoImportPutBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1023.py b/githubkit/versions/v2022_11_28/models/group_1023.py index 73c9a3a1e..343034237 100644 --- a/githubkit/versions/v2022_11_28/models/group_1023.py +++ b/githubkit/versions/v2022_11_28/models/group_1023.py @@ -9,36 +9,35 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0279 import CustomDeploymentRuleApp -class ReposOwnerRepoImportPatchBody(GitHubModel): - """ReposOwnerRepoImportPatchBody""" - 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( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ + + total_count: Missing[int] = Field( default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + 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(ReposOwnerRepoImportPatchBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 +) -__all__ = ("ReposOwnerRepoImportPatchBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1024.py b/githubkit/versions/v2022_11_28/models/group_1024.py index bac05d75f..9e4be5bd0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1024.py +++ b/githubkit/versions/v2022_11_28/models/group_1024.py @@ -12,17 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0185 import ActionsSecret -class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - email: Missing[str] = Field(default=UNSET, description="The new Git author email.") - name: Missing[str] = Field(default=UNSET, description="The new Git author name.") +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1025.py b/githubkit/versions/v2022_11_28/models/group_1025.py index 7727d20f6..aec8c7a15 100644 --- a/githubkit/versions/v2022_11_28/models/group_1025.py +++ b/githubkit/versions/v2022_11_28/models/group_1025.py @@ -9,21 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportLfsPatchBody(GitHubModel): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - 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." + 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(ReposOwnerRepoImportLfsPatchBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoImportLfsPatchBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1026.py b/githubkit/versions/v2022_11_28/models/group_1026.py index 759975570..b56c10046 100644 --- a/githubkit/versions/v2022_11_28/models/group_1026.py +++ b/githubkit/versions/v2022_11_28/models/group_1026.py @@ -9,13 +9,20 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from .group_0186 import ActionsVariable + + +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1027.py b/githubkit/versions/v2022_11_28/models/group_1027.py index 3569862c6..376060834 100644 --- a/githubkit/versions/v2022_11_28/models/group_1027.py +++ b/githubkit/versions/v2022_11_28/models/group_1027.py @@ -9,26 +9,18 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - 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`.", - ) - ) + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1028.py b/githubkit/versions/v2022_11_28/models/group_1028.py index d22e53ed3..6a0d6de99 100644 --- a/githubkit/versions/v2022_11_28/models/group_1028.py +++ b/githubkit/versions/v2022_11_28/models/group_1028.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,41 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesPostBody""" - - title: Union[str, int] = Field(description="The title of the issue.") - body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", - ) - assignees: Missing[list[str]] = Field( - default=UNSET, - description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", - ) - - -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", -) +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_1029.py b/githubkit/versions/v2022_11_28/models/group_1029.py index 2e91230e7..abc9b3749 100644 --- a/githubkit/versions/v2022_11_28/models/group_1029.py +++ b/githubkit/versions/v2022_11_28/models/group_1029.py @@ -12,14 +12,27 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoForksPostBody(GitHubModel): + """ReposOwnerRepoForksPostBody""" - body: str = Field(description="The contents of the comment.") + 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(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoForksPostBody) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoForksPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1030.py b/githubkit/versions/v2022_11_28/models/group_1030.py index 429ace692..f4b8ca964 100644 --- a/githubkit/versions/v2022_11_28/models/group_1030.py +++ b/githubkit/versions/v2022_11_28/models/group_1030.py @@ -9,23 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoGitBlobsPostBody(GitHubModel): + """ReposOwnerRepoGitBlobsPostBody""" - 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." + content: str = Field(description="The new blob's content.") + encoding: Missing[str] = Field( + default=UNSET, + description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', ) -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoGitBlobsPostBody) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoGitBlobsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1031.py b/githubkit/versions/v2022_11_28/models/group_1031.py index 2094ba5bb..111a9d4a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1031.py +++ b/githubkit/versions/v2022_11_28/models/group_1031.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime from pydantic import Field @@ -18,54 +18,74 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoGitCommitsPostBody(GitHubModel): + """ReposOwnerRepoGitCommitsPostBody""" - 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( + 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="Username to assign to this issue. **This field is closing down.**", + description="The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="The open or closed state of the issue." + 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.", ) - state_reason: Missing[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] = Field( + committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( default=UNSET, - description="The reason for the state change. Ignored unless `state` is changed.", + 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.", ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - list[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] - ] = Field( + signature: Missing[str] = Field( default=UNSET, - description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", + description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str = Field(description="The name of the author (or committer) of the commit") + email: str = Field( + description="The email of the author (or committer) of the commit" ) - assignees: Missing[list[str]] = Field( + date: Missing[datetime] = 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="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 ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" +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. + """ - 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) + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) +model_rebuild(ReposOwnerRepoGitCommitsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) __all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBody", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", + "ReposOwnerRepoGitCommitsPostBody", + "ReposOwnerRepoGitCommitsPostBodyPropAuthor", + "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1032.py b/githubkit/versions/v2022_11_28/models/group_1032.py index 5b60a1932..e02988ad3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1032.py +++ b/githubkit/versions/v2022_11_28/models/group_1032.py @@ -12,19 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoGitRefsPostBody(GitHubModel): + """ReposOwnerRepoGitRefsPostBody""" - 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._", + 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(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) +model_rebuild(ReposOwnerRepoGitRefsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) +__all__ = ("ReposOwnerRepoGitRefsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1033.py b/githubkit/versions/v2022_11_28/models/group_1033.py index 1c74a1195..dc680ffcd 100644 --- a/githubkit/versions/v2022_11_28/models/group_1033.py +++ b/githubkit/versions/v2022_11_28/models/group_1033.py @@ -16,15 +16,16 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): + """ReposOwnerRepoGitRefsRefPatchBody""" - assignees: Missing[list[str]] = Field( + sha: str = Field(description="The SHA1 value to set this reference to") + force: Missing[bool] = 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="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(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) +model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1034.py b/githubkit/versions/v2022_11_28/models/group_1034.py index 49a6d6da0..2366c3d87 100644 --- a/githubkit/versions/v2022_11_28/models/group_1034.py +++ b/githubkit/versions/v2022_11_28/models/group_1034.py @@ -9,17 +9,53 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - - body: str = Field(description="The contents of the comment.") - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoGitTagsPostBody(GitHubModel): + """ReposOwnerRepoGitTagsPostBody""" + + tag: str = Field( + description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' + ) + message: str = Field(description="The tag message.") + object_: str = Field( + alias="object", description="The SHA of the git object this is tagging." + ) + type: Literal["commit", "tree", "blob"] = Field( + description="The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`." + ) + tagger: Missing[ReposOwnerRepoGitTagsPostBodyPropTagger] = Field( + default=UNSET, + description="An object with information about the individual creating the tag.", + ) + + +class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ + + name: str = Field(description="The name of the author of the tag") + email: str = Field(description="The email of the author of the tag") + date: Missing[datetime] = Field( + default=UNSET, + description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + + +model_rebuild(ReposOwnerRepoGitTagsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) + +__all__ = ( + "ReposOwnerRepoGitTagsPostBody", + "ReposOwnerRepoGitTagsPostBodyPropTagger", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1035.py b/githubkit/versions/v2022_11_28/models/group_1035.py index c2d37d8d2..1d6bd8e59 100644 --- a/githubkit/versions/v2022_11_28/models/group_1035.py +++ b/githubkit/versions/v2022_11_28/models/group_1035.py @@ -9,23 +9,54 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoGitTreesPostBody(GitHubModel): + """ReposOwnerRepoGitTreesPostBody""" + + tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( + description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + ) + base_tree: Missing[str] = Field( + default=UNSET, + description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.", + ) + + +class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - labels: Missing[list[str]] = Field( - min_length=1 if PYDANTIC_V2 else None, + path: Missing[str] = Field( + default=UNSET, description="The file referenced in the tree." + ) + mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( + default=UNSET, + description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", + ) + type: Missing[Literal["blob", "tree", "commit"]] = Field( + default=UNSET, description="Either `blob`, `tree`, or `commit`." + ) + sha: Missing[Union[str, None]] = Field( + default=UNSET, + description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + ) + content: Missing[str] = Field( default=UNSET, - description='The 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)."', + description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) +model_rebuild(ReposOwnerRepoGitTreesPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) +__all__ = ( + "ReposOwnerRepoGitTreesPostBody", + "ReposOwnerRepoGitTreesPostBodyPropTreeItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1036.py b/githubkit/versions/v2022_11_28/models/group_1036.py index ed2c2a834..005e3bc51 100644 --- a/githubkit/versions/v2022_11_28/models/group_1036.py +++ b/githubkit/versions/v2022_11_28/models/group_1036.py @@ -9,31 +9,60 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoHooksPostBody(GitHubModel): + """ReposOwnerRepoHooksPostBody""" + + name: Missing[str] = Field( + default=UNSET, + description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", + ) + config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", + ) + events: Missing[list[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) - labels: Missing[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] - ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) +class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): + """ReposOwnerRepoHooksPostBodyPropConfig -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + Key/value pairs to provide settings for this webhook. + """ - name: str = Field() + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) +model_rebuild(ReposOwnerRepoHooksPostBody) +model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) __all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", + "ReposOwnerRepoHooksPostBody", + "ReposOwnerRepoHooksPostBodyPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1037.py b/githubkit/versions/v2022_11_28/models/group_1037.py index d59513ace..f93161b0f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1037.py +++ b/githubkit/versions/v2022_11_28/models/group_1037.py @@ -12,14 +12,38 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0011 import WebhookConfig + + +class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdPatchBody""" + + config: Missing[WebhookConfig] = Field( + default=UNSET, + title="Webhook Configuration", + description="Configuration object of the webhook", + ) + events: Missing[list[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", + ) + add_events: Missing[list[str]] = Field( + default=UNSET, + description="Determines a list of events to be added to the list of events that the Hook triggers for.", + ) + remove_events: Missing[list[str]] = Field( + default=UNSET, + description="Determines a list of events to be removed from the list of events that the Hook triggers for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1038.py b/githubkit/versions/v2022_11_28/models/group_1038.py index a13dcae5c..a0493aad9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1038.py +++ b/githubkit/versions/v2022_11_28/models/group_1038.py @@ -9,23 +9,32 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - labels: Missing[list[str]] = Field( - min_length=1 if PYDANTIC_V2 else None, + 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='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)."', + 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(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) +model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1039.py b/githubkit/versions/v2022_11_28/models/group_1039.py index f67daaa62..4e11d0489 100644 --- a/githubkit/versions/v2022_11_28/models/group_1039.py +++ b/githubkit/versions/v2022_11_28/models/group_1039.py @@ -9,31 +9,37 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - - labels: Missing[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] - ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" +class ReposOwnerRepoImportPutBody(GitHubModel): + """ReposOwnerRepoImportPutBody""" - name: str = Field() + vcs_url: str = Field(description="The URL of the originating repository.") + vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( + default=UNSET, + description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", + ) + vcs_username: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the username to provide to `vcs_url`.", + ) + vcs_password: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the password to provide to `vcs_url`.", + ) + tfvc_project: Missing[str] = Field( + default=UNSET, + description="For a tfvc import, the name of the project that is being imported.", + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) +model_rebuild(ReposOwnerRepoImportPutBody) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoImportPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1040.py b/githubkit/versions/v2022_11_28/models/group_1040.py index dfb903bb9..73c9a3a1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1040.py +++ b/githubkit/versions/v2022_11_28/models/group_1040.py @@ -9,17 +9,36 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoImportPatchBody(GitHubModel): + """ReposOwnerRepoImportPatchBody""" + + 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(ReposOwnerRepoImportPatchBody) + +__all__ = ("ReposOwnerRepoImportPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1041.py b/githubkit/versions/v2022_11_28/models/group_1041.py index 485b30e7e..bac05d75f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1041.py +++ b/githubkit/versions/v2022_11_28/models/group_1041.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,17 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - 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`", - ) - ) + 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(ReposOwnerRepoIssuesIssueNumberLockPutBody) +model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1042.py b/githubkit/versions/v2022_11_28/models/group_1042.py index 4d12ca0e6..7727d20f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1042.py +++ b/githubkit/versions/v2022_11_28/models/group_1042.py @@ -16,16 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoImportLfsPatchBody(GitHubModel): + """ReposOwnerRepoImportLfsPatchBody""" - 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." + 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(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoImportLfsPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoImportLfsPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1043.py b/githubkit/versions/v2022_11_28/models/group_1043.py index 784c4e080..759975570 100644 --- a/githubkit/versions/v2022_11_28/models/group_1043.py +++ b/githubkit/versions/v2022_11_28/models/group_1043.py @@ -9,17 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" - - sub_issue_id: int = Field(description="The sub-issue to remove") +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) +model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1044.py b/githubkit/versions/v2022_11_28/models/group_1044.py index 58e0fba0b..3569862c6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1044.py +++ b/githubkit/versions/v2022_11_28/models/group_1044.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,16 +18,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - sub_issue_id: int = Field(description="The sub-issue to add") - replace_parent: Missing[bool] = Field( - default=UNSET, - description="Option that, when true, instructs the operation to replace the sub-issues current parent issue", + permissions: Missing[Literal["read", "write", "maintain", "triage", "admin"]] = ( + Field( + default=UNSET, + description="The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.", + ) ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody) +model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1045.py b/githubkit/versions/v2022_11_28/models/group_1045.py index f3aab1e81..d22e53ed3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1045.py +++ b/githubkit/versions/v2022_11_28/models/group_1045.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,20 +18,41 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" +class ReposOwnerRepoIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesPostBody""" - sub_issue_id: int = Field(description="The id of the sub-issue to reprioritize") - after_id: Missing[int] = Field( + title: Union[str, int] = Field(description="The title of the issue.") + body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] + ] = Field( default=UNSET, - description="The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).", + description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", ) - before_id: Missing[int] = Field( + assignees: Missing[list[str]] = Field( default=UNSET, - description="The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).", + 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._", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody) +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__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",) +__all__ = ( + "ReposOwnerRepoIssuesPostBody", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1046.py b/githubkit/versions/v2022_11_28/models/group_1046.py index 9ce2ef608..2e91230e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1046.py +++ b/githubkit/versions/v2022_11_28/models/group_1046.py @@ -12,21 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoKeysPostBody(GitHubModel): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - 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/)."', - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoKeysPostBody) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoKeysPostBody",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1047.py b/githubkit/versions/v2022_11_28/models/group_1047.py index 27dc128b3..429ace692 100644 --- a/githubkit/versions/v2022_11_28/models/group_1047.py +++ b/githubkit/versions/v2022_11_28/models/group_1047.py @@ -9,29 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoLabelsPostBody(GitHubModel): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - name: str = Field( - description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' - ) - color: Missing[str] = Field( - default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue comment." ) -model_rebuild(ReposOwnerRepoLabelsPostBody) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoLabelsPostBody",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1048.py b/githubkit/versions/v2022_11_28/models/group_1048.py index 810ac1cad..2094ba5bb 100644 --- a/githubkit/versions/v2022_11_28/models/group_1048.py +++ b/githubkit/versions/v2022_11_28/models/group_1048.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,23 +18,54 @@ from githubkit.utils import UNSET -class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" - new_name: Missing[str] = Field( + 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='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)."', + description="Username to assign to this issue. **This field is closing down.**", ) - color: Missing[str] = Field( + 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 [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", + description="The reason for the state change. Ignored unless `state` is changed.", ) - description: Missing[str] = Field( + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + list[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] + ] = Field( default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", + 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.", + ) + + +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(ReposOwnerRepoLabelsNamePatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) -__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBody", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1049.py b/githubkit/versions/v2022_11_28/models/group_1049.py index 7be32859a..5b60a1932 100644 --- a/githubkit/versions/v2022_11_28/models/group_1049.py +++ b/githubkit/versions/v2022_11_28/models/group_1049.py @@ -12,16 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - branch: str = Field( - description="The name of the branch which should be updated to match upstream." + assignees: Missing[list[str]] = Field( + default=UNSET, + description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", ) -model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) -__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1050.py b/githubkit/versions/v2022_11_28/models/group_1050.py index 8d864c09c..1c74a1195 100644 --- a/githubkit/versions/v2022_11_28/models/group_1050.py +++ b/githubkit/versions/v2022_11_28/models/group_1050.py @@ -16,21 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoMergesPostBody(GitHubModel): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - 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( + assignees: Missing[list[str]] = Field( default=UNSET, - description="Commit message to use for the merge commit. If omitted, a default message will be used.", + 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(ReposOwnerRepoMergesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) -__all__ = ("ReposOwnerRepoMergesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1051.py b/githubkit/versions/v2022_11_28/models/group_1051.py index 4c86e4385..49a6d6da0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1051.py +++ b/githubkit/versions/v2022_11_28/models/group_1051.py @@ -9,33 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoMilestonesPostBody(GitHubModel): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - title: str = Field(description="The title of the milestone.") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoMilestonesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoMilestonesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1052.py b/githubkit/versions/v2022_11_28/models/group_1052.py index c674f9121..c2d37d8d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_1052.py +++ b/githubkit/versions/v2022_11_28/models/group_1052.py @@ -9,35 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - 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( + labels: Missing[list[str]] = Field( + min_length=1 if PYDANTIC_V2 else None, 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='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue)."', ) -model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1053.py b/githubkit/versions/v2022_11_28/models/group_1053.py index 7a766cc33..ed2c2a834 100644 --- a/githubkit/versions/v2022_11_28/models/group_1053.py +++ b/githubkit/versions/v2022_11_28/models/group_1053.py @@ -9,24 +9,31 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoNotificationsPutBody(GitHubModel): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" + + labels: Missing[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] + ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) + + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" - 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.", - ) + name: str = Field() -model_rebuild(ReposOwnerRepoNotificationsPutBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) -__all__ = ("ReposOwnerRepoNotificationsPutBody",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1054.py b/githubkit/versions/v2022_11_28/models/group_1054.py index 41ae3801e..d59513ace 100644 --- a/githubkit/versions/v2022_11_28/models/group_1054.py +++ b/githubkit/versions/v2022_11_28/models/group_1054.py @@ -12,17 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + name: str = Field() -model_rebuild(ReposOwnerRepoNotificationsPutResponse202) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) -__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_1055.py b/githubkit/versions/v2022_11_28/models/group_1055.py index aaa502a31..a13dcae5c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1055.py +++ b/githubkit/versions/v2022_11_28/models/group_1055.py @@ -9,27 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild - +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - Update the source for the repository. Must include the branch name and path. - """ +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - 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`." + labels: Missing[list[str]] = Field( + min_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)."', ) -model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1056.py b/githubkit/versions/v2022_11_28/models/group_1056.py index cd16e615d..f67daaa62 100644 --- a/githubkit/versions/v2022_11_28/models/group_1056.py +++ b/githubkit/versions/v2022_11_28/models/group_1056.py @@ -9,39 +9,31 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1055 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" + + labels: Missing[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] + ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) -class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Literal["legacy", "workflow"] = Field( - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) + name: str = Field() -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1057.py b/githubkit/versions/v2022_11_28/models/group_1057.py index 6c0eb10dc..dfb903bb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1057.py +++ b/githubkit/versions/v2022_11_28/models/group_1057.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_1055 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof1""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] = Field() + name: str = Field() -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_1058.py b/githubkit/versions/v2022_11_28/models/group_1058.py index f27a47963..485b30e7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1058.py +++ b/githubkit/versions/v2022_11_28/models/group_1058.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,31 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1055 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" -class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof2""" - - cname: Union[str, None] = Field( - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."' - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + 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`", + ) ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1059.py b/githubkit/versions/v2022_11_28/models/group_1059.py index 04e840a1f..4d12ca0e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1059.py +++ b/githubkit/versions/v2022_11_28/models/group_1059.py @@ -9,40 +9,23 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_1055 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" -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: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + 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." ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) +model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1060.py b/githubkit/versions/v2022_11_28/models/group_1060.py index 83e91ad6a..f813db6bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_1060.py +++ b/githubkit/versions/v2022_11_28/models/group_1060.py @@ -9,39 +9,17 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_1055 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof4""" +class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: bool = Field( - description="Specify whether HTTPS should be enforced for the repository." - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) + sub_issue_id: int = Field(description="The id of the sub-issue to remove") -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1061.py b/githubkit/versions/v2022_11_28/models/group_1061.py index 693572351..718757090 100644 --- a/githubkit/versions/v2022_11_28/models/group_1061.py +++ b/githubkit/versions/v2022_11_28/models/group_1061.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,21 +16,18 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): - """ReposOwnerRepoPagesPostBodyPropSource - - The source branch and directory used to publish your Pages site. - """ +class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" - branch: str = Field( - description="The repository branch used to publish your site's source files." + sub_issue_id: int = Field( + description="The id of the sub-issue to add. The sub-issue must belong to the same repository as the parent issue" ) - path: Missing[Literal["/", "/docs"]] = Field( + replace_parent: 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="Option that, when true, instructs the operation to replace the sub-issues current parent issue", ) -model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody) -__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1062.py b/githubkit/versions/v2022_11_28/models/group_1062.py index d136dedcc..f3aab1e81 100644 --- a/githubkit/versions/v2022_11_28/models/group_1062.py +++ b/githubkit/versions/v2022_11_28/models/group_1062.py @@ -9,29 +9,27 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1061 import ReposOwnerRepoPagesPostBodyPropSource - -class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof0""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" - build_type: Missing[Literal["legacy", "workflow"]] = Field( + sub_issue_id: int = Field(description="The id of the sub-issue to reprioritize") + after_id: Missing[int] = Field( default=UNSET, - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', + description="The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).", ) - source: ReposOwnerRepoPagesPostBodyPropSource = Field( - description="The source branch and directory used to publish your Pages site." + before_id: Missing[int] = Field( + default=UNSET, + description="The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).", ) -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1063.py b/githubkit/versions/v2022_11_28/models/group_1063.py index c2cf625a3..9ce2ef608 100644 --- a/githubkit/versions/v2022_11_28/models/group_1063.py +++ b/githubkit/versions/v2022_11_28/models/group_1063.py @@ -9,29 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1061 import ReposOwnerRepoPagesPostBodyPropSource - -class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof1""" +class ReposOwnerRepoKeysPostBody(GitHubModel): + """ReposOwnerRepoKeysPostBody""" - 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( + 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="The source branch and directory used to publish your Pages site.", + 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(ReposOwnerRepoPagesPostBodyAnyof1) +model_rebuild(ReposOwnerRepoKeysPostBody) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1064.py b/githubkit/versions/v2022_11_28/models/group_1064.py index d9c520300..27dc128b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1064.py +++ b/githubkit/versions/v2022_11_28/models/group_1064.py @@ -16,33 +16,22 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoPagesDeploymentsPostBody +class ReposOwnerRepoLabelsPostBody(GitHubModel): + """ReposOwnerRepoLabelsPostBody""" - 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.", + 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)."' ) - artifact_url: Missing[str] = Field( + color: 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.", + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", ) - environment: Missing[str] = Field( + description: 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." + description="A short description of the label. Must be 100 characters or fewer.", ) -model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) +model_rebuild(ReposOwnerRepoLabelsPostBody) -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1065.py b/githubkit/versions/v2022_11_28/models/group_1065.py index c70eda7b0..810ac1cad 100644 --- a/githubkit/versions/v2022_11_28/models/group_1065.py +++ b/githubkit/versions/v2022_11_28/models/group_1065.py @@ -12,16 +12,27 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): + """ReposOwnerRepoLabelsNamePatchBody""" - enabled: bool = Field( - description="Whether or not private vulnerability reporting is enabled for the repository." + 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(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) +model_rebuild(ReposOwnerRepoLabelsNamePatchBody) -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1066.py b/githubkit/versions/v2022_11_28/models/group_1066.py index a5aa6012f..7be32859a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1066.py +++ b/githubkit/versions/v2022_11_28/models/group_1066.py @@ -12,19 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoProjectsPostBody(GitHubModel): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): + """ReposOwnerRepoMergeUpstreamPostBody""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." + branch: str = Field( + description="The name of the branch which should be updated to match upstream." ) -model_rebuild(ReposOwnerRepoProjectsPostBody) +model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) -__all__ = ("ReposOwnerRepoProjectsPostBody",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1067.py b/githubkit/versions/v2022_11_28/models/group_1067.py index 0f6a61147..8d864c09c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1067.py +++ b/githubkit/versions/v2022_11_28/models/group_1067.py @@ -12,18 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0109 import CustomPropertyValue +class ReposOwnerRepoMergesPostBody(GitHubModel): + """ReposOwnerRepoMergesPostBody""" -class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): - """ReposOwnerRepoPropertiesValuesPatchBody""" - - properties: list[CustomPropertyValue] = Field( - description="A list of custom property names and associated values to apply to the repositories." + 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.", ) -model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) +model_rebuild(ReposOwnerRepoMergesPostBody) -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) +__all__ = ("ReposOwnerRepoMergesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1068.py b/githubkit/versions/v2022_11_28/models/group_1068.py index 4f571bba6..4c86e4385 100644 --- a/githubkit/versions/v2022_11_28/models/group_1068.py +++ b/githubkit/versions/v2022_11_28/models/group_1068.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,40 +19,23 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPostBody(GitHubModel): - """ReposOwnerRepoPullsPostBody""" +class ReposOwnerRepoMilestonesPostBody(GitHubModel): + """ReposOwnerRepoMilestonesPostBody""" - title: Missing[str] = Field( + title: str = Field(description="The title of the milestone.") + state: Missing[Literal["open", "closed"]] = 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." + description="The state of the milestone. Either `open` or `closed`.", ) - 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.', + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." ) - issue: Missing[int] = Field( + due_on: Missing[datetime] = Field( default=UNSET, - description="An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.", + description="The 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(ReposOwnerRepoPullsPostBody) +model_rebuild(ReposOwnerRepoMilestonesPostBody) -__all__ = ("ReposOwnerRepoPullsPostBody",) +__all__ = ("ReposOwnerRepoMilestonesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1069.py b/githubkit/versions/v2022_11_28/models/group_1069.py index b48ea50a0..c674f9121 100644 --- a/githubkit/versions/v2022_11_28/models/group_1069.py +++ b/githubkit/versions/v2022_11_28/models/group_1069.py @@ -9,17 +9,35 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - body: str = Field(description="The text of the reply to the review comment.") + title: Missing[str] = Field( + default=UNSET, description="The title of the milestone." + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, + description="The state of the milestone. Either `open` or `closed`.", + ) + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." + ) + due_on: Missing[datetime] = Field( + default=UNSET, + description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1070.py b/githubkit/versions/v2022_11_28/models/group_1070.py index 21b71134d..7a766cc33 100644 --- a/githubkit/versions/v2022_11_28/models/group_1070.py +++ b/githubkit/versions/v2022_11_28/models/group_1070.py @@ -9,23 +9,24 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoNotificationsPutBody(GitHubModel): + """ReposOwnerRepoNotificationsPutBody""" - 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." + 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(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoNotificationsPutBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoNotificationsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1071.py b/githubkit/versions/v2022_11_28/models/group_1071.py index ac6538022..41ae3801e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1071.py +++ b/githubkit/versions/v2022_11_28/models/group_1071.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,29 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberPatchBody""" - - title: Missing[str] = Field( - default=UNSET, description="The title of the pull request." - ) - body: Missing[str] = Field( - default=UNSET, description="The contents of the pull request." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="State of this Pull Request. Either `open` or `closed`.", - ) - base: Missing[str] = Field( - 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.", - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) +class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): + """ReposOwnerRepoNotificationsPutResponse202""" + + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoNotificationsPutResponse202) + +__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1072.py b/githubkit/versions/v2022_11_28/models/group_1072.py index 3bd074c1a..aaa502a31 100644 --- a/githubkit/versions/v2022_11_28/models/group_1072.py +++ b/githubkit/versions/v2022_11_28/models/group_1072.py @@ -14,52 +14,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" + Update the source for the repository. Must include the branch name and path. + """ + + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - 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).", + path: Literal["/", "/docs"] = Field( + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." ) -model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1073.py b/githubkit/versions/v2022_11_28/models/group_1073.py index 9864ba3e9..a2570d8b5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1073.py +++ b/githubkit/versions/v2022_11_28/models/group_1073.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,46 +17,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1072 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - body: str = Field(description="The text of the review comment.") - commit_id: str = Field( - description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." - ) - path: str = Field( - description="The relative path to the file that necessitates a comment." - ) - position: Missing[int] = Field( - default=UNSET, - description='**This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', - ) - line: Missing[int] = Field( - default=UNSET, - description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", - ) - start_line: Missing[int] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', - ) - start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( +class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof0""" + + cname: Missing[Union[str, None]] = 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='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)."', ) - in_reply_to: Missing[int] = Field( + https_enforced: Missing[bool] = 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="Specify whether HTTPS should be enforced for the repository.", ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, description="The level at which the comment is targeted." + 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(ReposOwnerRepoPullsPullNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1074.py b/githubkit/versions/v2022_11_28/models/group_1074.py index 19ce96346..66ea59c11 100644 --- a/githubkit/versions/v2022_11_28/models/group_1074.py +++ b/githubkit/versions/v2022_11_28/models/group_1074.py @@ -9,17 +9,38 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_1072 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof1""" - body: str = Field(description="The text of the review comment.") + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] = Field() -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1075.py b/githubkit/versions/v2022_11_28/models/group_1075.py index ea6df3d24..66cf0ee39 100644 --- a/githubkit/versions/v2022_11_28/models/group_1075.py +++ b/githubkit/versions/v2022_11_28/models/group_1075.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,25 +17,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1072 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutBody""" - 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." +class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof2""" + + cname: Union[str, None] = Field( + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."' ) - sha: Missing[str] = Field( + https_enforced: Missing[bool] = Field( default=UNSET, - description="SHA that pull request head must match to allow merge.", + description="Specify whether HTTPS should be enforced for the repository.", ) - merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( - default=UNSET, description="The merge method to use." + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_1076.py b/githubkit/versions/v2022_11_28/models/group_1076.py index d66d3bdba..40104059a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1076.py +++ b/githubkit/versions/v2022_11_28/models/group_1076.py @@ -9,20 +9,40 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1072 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + -class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof3""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) diff --git a/githubkit/versions/v2022_11_28/models/group_1077.py b/githubkit/versions/v2022_11_28/models/group_1077.py index bd6450076..31520955a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1077.py +++ b/githubkit/versions/v2022_11_28/models/group_1077.py @@ -9,20 +9,39 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1072 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + -class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof4""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: bool = Field( + description="Specify whether HTTPS should be enforced for the repository." + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) diff --git a/githubkit/versions/v2022_11_28/models/group_1078.py b/githubkit/versions/v2022_11_28/models/group_1078.py index 902cd85dd..693572351 100644 --- a/githubkit/versions/v2022_11_28/models/group_1078.py +++ b/githubkit/versions/v2022_11_28/models/group_1078.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +18,21 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): + """ReposOwnerRepoPagesPostBodyPropSource + + The source branch and directory used to publish your Pages site. + """ - reviewers: list[str] = Field( - description="An array of user `login`s that will be requested." + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - team_reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be requested." + 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(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) diff --git a/githubkit/versions/v2022_11_28/models/group_1079.py b/githubkit/versions/v2022_11_28/models/group_1079.py index a68a64ae9..79190f1d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1079.py +++ b/githubkit/versions/v2022_11_28/models/group_1079.py @@ -9,24 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1078 import ReposOwnerRepoPagesPostBodyPropSource + -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof0""" - reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of user `login`s that will be requested." + 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"`.', ) - team_reviewers: list[str] = Field( - description="An array of team `slug`s that will be requested." + source: ReposOwnerRepoPagesPostBodyPropSource = Field( + description="The source branch and directory used to publish your Pages site." ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1080.py b/githubkit/versions/v2022_11_28/models/group_1080.py index 80abd70e6..1ce56f524 100644 --- a/githubkit/versions/v2022_11_28/models/group_1080.py +++ b/githubkit/versions/v2022_11_28/models/group_1080.py @@ -9,24 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1078 import ReposOwnerRepoPagesPostBodyPropSource + -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof1""" - reviewers: list[str] = Field( - description="An array of user `login`s that will be removed." + build_type: Literal["legacy", "workflow"] = Field( + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' ) - team_reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be removed." + source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( + default=UNSET, + description="The source branch and directory used to publish your Pages site.", ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1081.py b/githubkit/versions/v2022_11_28/models/group_1081.py index 1be7fba9c..d9c520300 100644 --- a/githubkit/versions/v2022_11_28/models/group_1081.py +++ b/githubkit/versions/v2022_11_28/models/group_1081.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,50 +16,33 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoPagesDeploymentsPostBody - 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( + The object used to create GitHub Pages deployment + """ + + artifact_id: Missing[float] = Field( default=UNSET, - description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", + description="The 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.", ) - event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( + artifact_url: Missing[str] = Field( default=UNSET, - description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", + description="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.", ) - comments: Missing[ - list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] - ] = Field( + environment: Missing[str] = Field( default=UNSET, - description="Use the following table to specify the location, destination, and contents of the draft review comment.", + description="The target environment for this GitHub Pages deployment.", ) - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str = Field( - description="The relative path to the file that necessitates a review comment." + pages_build_version: str = Field( + default="GITHUB_SHA", + description="A unique string that represents the version of the build for this deployment.", ) - 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.', + oidc_token: str = Field( + description="The OIDC token issued by GitHub Actions certifying the origin of the deployment." ) - 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(ReposOwnerRepoPagesDeploymentsPostBody) -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBody", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", -) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1082.py b/githubkit/versions/v2022_11_28/models/group_1082.py index 60600e7a7..c70eda7b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1082.py +++ b/githubkit/versions/v2022_11_28/models/group_1082.py @@ -14,12 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - body: str = Field(description="The body text of the pull request review.") + enabled: bool = Field( + description="Whether or not private vulnerability reporting is enabled for the repository." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) +model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1083.py b/githubkit/versions/v2022_11_28/models/group_1083.py index 0c8535339..a5aa6012f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1083.py +++ b/githubkit/versions/v2022_11_28/models/group_1083.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,15 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoProjectsPostBody(GitHubModel): + """ReposOwnerRepoProjectsPostBody""" - message: str = Field( - description="The message for the pull request review dismissal" + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) - event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) +model_rebuild(ReposOwnerRepoProjectsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) +__all__ = ("ReposOwnerRepoProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1084.py b/githubkit/versions/v2022_11_28/models/group_1084.py index 6298e6dda..d800943ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_1084.py +++ b/githubkit/versions/v2022_11_28/models/group_1084.py @@ -9,26 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0114 import CustomPropertyValue -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - 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." +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(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) +model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1085.py b/githubkit/versions/v2022_11_28/models/group_1085.py index 5c360c212..4f571bba6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1085.py +++ b/githubkit/versions/v2022_11_28/models/group_1085.py @@ -16,15 +16,40 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPostBody(GitHubModel): + """ReposOwnerRepoPullsPostBody""" - expected_head_sha: Missing[str] = Field( + title: 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.", + 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(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) +model_rebuild(ReposOwnerRepoPullsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) +__all__ = ("ReposOwnerRepoPullsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1086.py b/githubkit/versions/v2022_11_28/models/group_1086.py index 0846546b8..b48ea50a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1086.py +++ b/githubkit/versions/v2022_11_28/models/group_1086.py @@ -12,17 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + body: str = Field(description="The text of the reply to the review comment.") -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1087.py b/githubkit/versions/v2022_11_28/models/group_1087.py index fdc33867d..21b71134d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1087.py +++ b/githubkit/versions/v2022_11_28/models/group_1087.py @@ -14,44 +14,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoReleasesPostBody(GitHubModel): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - 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.", + 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(ReposOwnerRepoReleasesPostBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoReleasesPostBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1088.py b/githubkit/versions/v2022_11_28/models/group_1088.py index 1c74bbef7..ac6538022 100644 --- a/githubkit/versions/v2022_11_28/models/group_1088.py +++ b/githubkit/versions/v2022_11_28/models/group_1088.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +18,29 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberPatchBody""" - name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") - label: Missing[str] = Field( + 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="An alternate short description of the asset. Used in place of the filename.", + 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.", ) - state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1089.py b/githubkit/versions/v2022_11_28/models/group_1089.py index 05de52925..3bd074c1a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1089.py +++ b/githubkit/versions/v2022_11_28/models/group_1089.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,26 +18,48 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - tag_name: str = Field( - description="The tag name for the release. This can be an existing tag or a new one." + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", ) - target_commitish: Missing[str] = Field( + client_ip: 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.", + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" ) - previous_tag_name: Missing[str] = Field( + devcontainer_path: 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.", + 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" ) - configuration_file_path: Missing[str] = Field( + retention_period_minutes: Missing[int] = 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="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(ReposOwnerRepoReleasesGenerateNotesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1090.py b/githubkit/versions/v2022_11_28/models/group_1090.py index 814041621..9864ba3e9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1090.py +++ b/githubkit/versions/v2022_11_28/models/group_1090.py @@ -18,36 +18,45 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - tag_name: Missing[str] = Field(default=UNSET, description="The name of the tag.") - target_commitish: Missing[str] = Field( + body: str = Field(description="The text of the review comment.") + commit_id: str = Field( + description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." + ) + path: str = Field( + description="The relative path to the file that necessitates a comment." + ) + position: Missing[int] = Field( default=UNSET, - description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + description='**This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', ) - 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." + 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.', ) - draft: Missing[bool] = Field( + line: Missing[int] = Field( default=UNSET, - description="`true` makes the release a draft, and `false` publishes the release.", + 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.", ) - prerelease: Missing[bool] = Field( + start_line: Missing[int] = Field( default=UNSET, - description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", + 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.', ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = 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='**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.', ) - discussion_category_name: Missing[str] = Field( + in_reply_to: Missing[int] = Field( default=UNSET, - description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', + description='The 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(ReposOwnerRepoReleasesReleaseIdPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1091.py b/githubkit/versions/v2022_11_28/models/group_1091.py index 8f99969f6..19ce96346 100644 --- a/githubkit/versions/v2022_11_28/models/group_1091.py +++ b/githubkit/versions/v2022_11_28/models/group_1091.py @@ -9,21 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release." - ) + body: str = Field(description="The text of the review comment.") -model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1092.py b/githubkit/versions/v2022_11_28/models/group_1092.py index f0c162ef1..ea6df3d24 100644 --- a/githubkit/versions/v2022_11_28/models/group_1092.py +++ b/githubkit/versions/v2022_11_28/models/group_1092.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,80 +17,25 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0113 import RepositoryRulesetBypassActor -from .group_0114 import RepositoryRulesetConditions -from .group_0125 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0126 import RepositoryRuleUpdate -from .group_0128 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0129 import RepositoryRuleMergeQueue -from .group_0131 import RepositoryRuleRequiredDeployments -from .group_0134 import RepositoryRulePullRequest -from .group_0136 import RepositoryRuleRequiredStatusChecks -from .group_0138 import RepositoryRuleCommitMessagePattern -from .group_0140 import RepositoryRuleCommitAuthorEmailPattern -from .group_0142 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleBranchNamePattern -from .group_0146 import RepositoryRuleTagNamePattern -from .group_0149 import RepositoryRuleWorkflows -from .group_0151 import RepositoryRuleCodeScanning -from .group_0153 import RepositoryRuleOneof18 +class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutBody""" -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" + commit_title: Missing[str] = Field( + default=UNSET, description="Title for the automatic commit message." ) - 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)." + commit_message: Missing[str] = Field( + default=UNSET, description="Extra detail to append to automatic commit message." ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + sha: Missing[str] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + description="SHA that pull request head must match to allow merge.", ) - conditions: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( + default=UNSET, description="The merge method to use." ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) -__all__ = ("ReposOwnerRepoRulesetsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1093.py b/githubkit/versions/v2022_11_28/models/group_1093.py index 76b83e220..d66d3bdba 100644 --- a/githubkit/versions/v2022_11_28/models/group_1093.py +++ b/githubkit/versions/v2022_11_28/models/group_1093.py @@ -9,89 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0113 import RepositoryRulesetBypassActor -from .group_0114 import RepositoryRulesetConditions -from .group_0125 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleOneof15, - RepositoryRuleOneof17, - RepositoryRuleRequiredSignatures, -) -from .group_0126 import RepositoryRuleUpdate -from .group_0128 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory -from .group_0129 import RepositoryRuleMergeQueue -from .group_0131 import RepositoryRuleRequiredDeployments -from .group_0134 import RepositoryRulePullRequest -from .group_0136 import RepositoryRuleRequiredStatusChecks -from .group_0138 import RepositoryRuleCommitMessagePattern -from .group_0140 import RepositoryRuleCommitAuthorEmailPattern -from .group_0142 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleBranchNamePattern -from .group_0146 import RepositoryRuleTagNamePattern -from .group_0149 import RepositoryRuleWorkflows -from .group_0151 import RepositoryRuleCodeScanning -from .group_0153 import RepositoryRuleOneof18 - -class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", - ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleOneof18, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) diff --git a/githubkit/versions/v2022_11_28/models/group_1094.py b/githubkit/versions/v2022_11_28/models/group_1094.py index d5c9219ba..bd6450076 100644 --- a/githubkit/versions/v2022_11_28/models/group_1094.py +++ b/githubkit/versions/v2022_11_28/models/group_1094.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,24 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - state: Literal["open", "resolved"] = Field( - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) diff --git a/githubkit/versions/v2022_11_28/models/group_1095.py b/githubkit/versions/v2022_11_28/models/group_1095.py index decc899b3..902cd85dd 100644 --- a/githubkit/versions/v2022_11_28/models/group_1095.py +++ b/githubkit/versions/v2022_11_28/models/group_1095.py @@ -9,24 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody(GitHubModel): - """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - reason: Literal["false_positive", "used_in_tests", "will_fix_later"] = Field( - description="The reason for bypassing push protection." + reviewers: list[str] = Field( + description="An array of user `login`s that will be requested." ) - placeholder_id: str = Field( - description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes." + team_reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) -__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1096.py b/githubkit/versions/v2022_11_28/models/group_1096.py index e513640d6..a68a64ae9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1096.py +++ b/githubkit/versions/v2022_11_28/models/group_1096.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,25 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoStatusesShaPostBody(GitHubModel): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - state: Literal["error", "failure", "pending", "success"] = Field( - description="The state of the status." - ) - target_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the status." + reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of user `login`s that will be requested." ) - context: Missing[str] = Field( - default=UNSET, - description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", + team_reviewers: list[str] = Field( + description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoStatusesShaPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) -__all__ = ("ReposOwnerRepoStatusesShaPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1097.py b/githubkit/versions/v2022_11_28/models/group_1097.py index 892aedcd1..80abd70e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1097.py +++ b/githubkit/versions/v2022_11_28/models/group_1097.py @@ -16,19 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoSubscriptionPutBody(GitHubModel): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - subscribed: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications should be received from this repository.", + reviewers: list[str] = Field( + description="An array of user `login`s that will be removed." ) - ignored: Missing[bool] = Field( - default=UNSET, - description="Determines if all notifications should be blocked from this repository.", + team_reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be removed." ) -model_rebuild(ReposOwnerRepoSubscriptionPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) -__all__ = ("ReposOwnerRepoSubscriptionPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1098.py b/githubkit/versions/v2022_11_28/models/group_1098.py index 59aae89ec..1be7fba9c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1098.py +++ b/githubkit/versions/v2022_11_28/models/group_1098.py @@ -9,19 +9,59 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - pattern: str = Field( - description="An optional glob pattern to match against when enforcing tag protection." + 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""" + + 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(ReposOwnerRepoTagsProtectionPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) -__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBody", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1099.py b/githubkit/versions/v2022_11_28/models/group_1099.py index 0e1dc53ec..60600e7a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1099.py +++ b/githubkit/versions/v2022_11_28/models/group_1099.py @@ -14,14 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTopicsPutBody(GitHubModel): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - names: list[str] = Field( - description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase." - ) + body: str = Field(description="The body text of the pull request review.") -model_rebuild(ReposOwnerRepoTopicsPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) -__all__ = ("ReposOwnerRepoTopicsPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1100.py b/githubkit/versions/v2022_11_28/models/group_1100.py index df5879cb9..0c8535339 100644 --- a/githubkit/versions/v2022_11_28/models/group_1100.py +++ b/githubkit/versions/v2022_11_28/models/group_1100.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,21 +18,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoTransferPostBody(GitHubModel): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - 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.", + message: str = Field( + description="The message for the pull request review dismissal" ) + event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoTransferPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) -__all__ = ("ReposOwnerRepoTransferPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1101.py b/githubkit/versions/v2022_11_28/models/group_1101.py index 91764e3b1..6298e6dda 100644 --- a/githubkit/versions/v2022_11_28/models/group_1101.py +++ b/githubkit/versions/v2022_11_28/models/group_1101.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,27 +18,17 @@ from githubkit.utils import UNSET -class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - owner: Missing[str] = Field( - default=UNSET, - description="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", - ) - name: str = Field(description="The name of the new repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the new repository." - ) - include_all_branches: Missing[bool] = Field( - default=UNSET, - description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", + body: Missing[str] = Field( + default=UNSET, description="The body text of the pull request review" ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to create a new private repository or `false` to create a new public one.", + 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(ReposTemplateOwnerTemplateRepoGeneratePostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1102.py b/githubkit/versions/v2022_11_28/models/group_1102.py index b47b92a02..5c360c212 100644 --- a/githubkit/versions/v2022_11_28/models/group_1102.py +++ b/githubkit/versions/v2022_11_28/models/group_1102.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,32 +16,15 @@ from githubkit.utils import UNSET -class TeamsTeamIdPatchBody(GitHubModel): - """TeamsTeamIdPatchBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - 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( + expected_head_sha: Missing[str] = Field( default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + 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(TeamsTeamIdPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) -__all__ = ("TeamsTeamIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1103.py b/githubkit/versions/v2022_11_28/models/group_1103.py index 89bdf737f..0846546b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1103.py +++ b/githubkit/versions/v2022_11_28/models/group_1103.py @@ -16,17 +16,13 @@ from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(TeamsTeamIdDiscussionsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) -__all__ = ("TeamsTeamIdDiscussionsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1104.py b/githubkit/versions/v2022_11_28/models/group_1104.py index 01b62eeb5..fdc33867d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1104.py +++ b/githubkit/versions/v2022_11_28/models/group_1104.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +18,40 @@ from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoReleasesPostBody(GitHubModel): + """ReposOwnerRepoReleasesPostBody""" - title: Missing[str] = Field( - default=UNSET, description="The discussion post's title." + 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="The discussion post's body text." + 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(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) +model_rebuild(ReposOwnerRepoReleasesPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) +__all__ = ("ReposOwnerRepoReleasesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1105.py b/githubkit/versions/v2022_11_28/models/group_1105.py index 2333d1363..1c74bbef7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1105.py +++ b/githubkit/versions/v2022_11_28/models/group_1105.py @@ -12,14 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - body: str = Field(description="The discussion comment's body text.") + name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") + label: Missing[str] = Field( + default=UNSET, + description="An alternate short description of the asset. Used in place of the filename.", + ) + state: Missing[str] = Field(default=UNSET) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1106.py b/githubkit/versions/v2022_11_28/models/group_1106.py index a44a260ff..05de52925 100644 --- a/githubkit/versions/v2022_11_28/models/group_1106.py +++ b/githubkit/versions/v2022_11_28/models/group_1106.py @@ -12,14 +12,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - body: str = Field(description="The discussion comment's body text.") + tag_name: str = Field( + description="The tag name for the release. This can be an existing tag or a new one." + ) + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.", + ) + previous_tag_name: Missing[str] = Field( + default=UNSET, + description="The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.", + ) + configuration_file_path: Missing[str] = Field( + default=UNSET, + description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", + ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) +model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1107.py b/githubkit/versions/v2022_11_28/models/group_1107.py index df888d74e..814041621 100644 --- a/githubkit/versions/v2022_11_28/models/group_1107.py +++ b/githubkit/versions/v2022_11_28/models/group_1107.py @@ -14,24 +14,40 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - 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." + 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( - TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1108.py b/githubkit/versions/v2022_11_28/models/group_1108.py index 1657765ee..8f99969f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1108.py +++ b/githubkit/versions/v2022_11_28/models/group_1108.py @@ -16,16 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - 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." + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release." ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1109.py b/githubkit/versions/v2022_11_28/models/group_1109.py index db25cce3b..464bd15b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1109.py +++ b/githubkit/versions/v2022_11_28/models/group_1109.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,15 +17,80 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0118 import RepositoryRulesetBypassActor +from .group_0119 import RepositoryRulesetConditions +from .group_0130 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0131 import RepositoryRuleUpdate +from .group_0133 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0134 import RepositoryRuleMergeQueue +from .group_0136 import RepositoryRuleRequiredDeployments +from .group_0139 import RepositoryRulePullRequest +from .group_0141 import RepositoryRuleRequiredStatusChecks +from .group_0143 import RepositoryRuleCommitMessagePattern +from .group_0145 import RepositoryRuleCommitAuthorEmailPattern +from .group_0147 import RepositoryRuleCommitterEmailPattern +from .group_0149 import RepositoryRuleBranchNamePattern +from .group_0151 import RepositoryRuleTagNamePattern +from .group_0154 import RepositoryRuleWorkflows +from .group_0156 import RepositoryRuleCodeScanning +from .group_0158 import RepositoryRuleOneof18 -class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): - """TeamsTeamIdMembershipsUsernamePutBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." +class ReposOwnerRepoRulesetsPostBody(GitHubModel): + """ReposOwnerRepoRulesetsPostBody""" + + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[RepositoryRulesetConditions] = Field( + default=UNSET, + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) +model_rebuild(ReposOwnerRepoRulesetsPostBody) -__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) +__all__ = ("ReposOwnerRepoRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1110.py b/githubkit/versions/v2022_11_28/models/group_1110.py index 50f0b2952..ce1e27cb7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1110.py +++ b/githubkit/versions/v2022_11_28/models/group_1110.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,16 +17,81 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0118 import RepositoryRulesetBypassActor +from .group_0119 import RepositoryRulesetConditions +from .group_0130 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleOneof15, + RepositoryRuleOneof17, + RepositoryRuleRequiredSignatures, +) +from .group_0131 import RepositoryRuleUpdate +from .group_0133 import RepositoryRuleOneof16, RepositoryRuleRequiredLinearHistory +from .group_0134 import RepositoryRuleMergeQueue +from .group_0136 import RepositoryRuleRequiredDeployments +from .group_0139 import RepositoryRulePullRequest +from .group_0141 import RepositoryRuleRequiredStatusChecks +from .group_0143 import RepositoryRuleCommitMessagePattern +from .group_0145 import RepositoryRuleCommitAuthorEmailPattern +from .group_0147 import RepositoryRuleCommitterEmailPattern +from .group_0149 import RepositoryRuleBranchNamePattern +from .group_0151 import RepositoryRuleTagNamePattern +from .group_0154 import RepositoryRuleWorkflows +from .group_0156 import RepositoryRuleCodeScanning +from .group_0158 import RepositoryRuleOneof18 -class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( +class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + default=UNSET, + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[RepositoryRulesetConditions] = 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).\"", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleOneof18, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) +model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1111.py b/githubkit/versions/v2022_11_28/models/group_1111.py index 4a3155ea1..d5c9219ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_1111.py +++ b/githubkit/versions/v2022_11_28/models/group_1111.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,13 +18,24 @@ from githubkit.utils import UNSET -class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "resolved"] = Field( + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + ) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", + ) -model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) +model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1112.py b/githubkit/versions/v2022_11_28/models/group_1112.py index 726eb0c42..decc899b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1112.py +++ b/githubkit/versions/v2022_11_28/models/group_1112.py @@ -14,19 +14,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): - """TeamsTeamIdReposOwnerRepoPutBody""" +class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody(GitHubModel): + """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - 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.", + reason: Literal["false_positive", "used_in_tests", "will_fix_later"] = Field( + description="The reason for bypassing push protection." + ) + placeholder_id: str = Field( + description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes." ) -model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) +model_rebuild(ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody) -__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) +__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1113.py b/githubkit/versions/v2022_11_28/models/group_1113.py index 7a471250b..e513640d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1113.py +++ b/githubkit/versions/v2022_11_28/models/group_1113.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,33 +18,25 @@ from githubkit.utils import UNSET -class UserPatchBody(GitHubModel): - """UserPatchBody""" +class ReposOwnerRepoStatusesShaPostBody(GitHubModel): + """ReposOwnerRepoStatusesShaPostBody""" - 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." + state: Literal["error", "failure", "pending", "success"] = Field( + description="The state of the status." ) - blog: Missing[str] = Field( - default=UNSET, description="The new blog URL of the user." + target_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", ) - twitter_username: Missing[Union[str, None]] = Field( - default=UNSET, description="The new Twitter username of the user." + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the status." ) - 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." + context: Missing[str] = Field( + default=UNSET, + description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", ) -model_rebuild(UserPatchBody) +model_rebuild(ReposOwnerRepoStatusesShaPostBody) -__all__ = ("UserPatchBody",) +__all__ = ("ReposOwnerRepoStatusesShaPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1114.py b/githubkit/versions/v2022_11_28/models/group_1114.py index c3c0507a0..892aedcd1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1114.py +++ b/githubkit/versions/v2022_11_28/models/group_1114.py @@ -12,17 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0078 import Codespace +class ReposOwnerRepoSubscriptionPutBody(GitHubModel): + """ReposOwnerRepoSubscriptionPutBody""" -class UserCodespacesGetResponse200(GitHubModel): - """UserCodespacesGetResponse200""" + 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.", + ) - total_count: int = Field() - codespaces: list[Codespace] = Field() +model_rebuild(ReposOwnerRepoSubscriptionPutBody) -model_rebuild(UserCodespacesGetResponse200) - -__all__ = ("UserCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoSubscriptionPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1115.py b/githubkit/versions/v2022_11_28/models/group_1115.py index d698dac84..59aae89ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_1115.py +++ b/githubkit/versions/v2022_11_28/models/group_1115.py @@ -9,62 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserCodespacesPostBodyOneof0(GitHubModel): - """UserCodespacesPostBodyOneof0""" +class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): + """ReposOwnerRepoTagsProtectionPostBody""" - repository_id: int = Field(description="Repository id for this codespace") - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + pattern: str = Field( + description="An optional glob pattern to match against when enforcing tag protection." ) -model_rebuild(UserCodespacesPostBodyOneof0) +model_rebuild(ReposOwnerRepoTagsProtectionPostBody) -__all__ = ("UserCodespacesPostBodyOneof0",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1116.py b/githubkit/versions/v2022_11_28/models/group_1116.py index 66fe98e84..0e1dc53ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_1116.py +++ b/githubkit/versions/v2022_11_28/models/group_1116.py @@ -9,59 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserCodespacesPostBodyOneof1(GitHubModel): - """UserCodespacesPostBodyOneof1""" +class ReposOwnerRepoTopicsPutBody(GitHubModel): + """ReposOwnerRepoTopicsPutBody""" - pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( - description="Pull request number for this codespace" - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" + names: list[str] = Field( + description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase." ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - - -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(ReposOwnerRepoTopicsPutBody) -__all__ = ( - "UserCodespacesPostBodyOneof1", - "UserCodespacesPostBodyOneof1PropPullRequest", -) +__all__ = ("ReposOwnerRepoTopicsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1117.py b/githubkit/versions/v2022_11_28/models/group_1117.py index 860690ae3..df5879cb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1117.py +++ b/githubkit/versions/v2022_11_28/models/group_1117.py @@ -9,46 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserCodespacesSecretsGetResponse200(GitHubModel): - """UserCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[CodespacesSecret] = Field() - +class ReposOwnerRepoTransferPostBody(GitHubModel): + """ReposOwnerRepoTransferPostBody""" -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." + new_owner: str = Field( + description="The username or organization name the repository will be transferred to." ) - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" + new_name: Missing[str] = Field( + default=UNSET, description="The new name to be given to the repository." ) - selected_repositories_url: str = Field( - description="The API URL at which the list of repositories this secret is visible to can be retrieved" + team_ids: Missing[list[int]] = Field( + default=UNSET, + description="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", ) -model_rebuild(UserCodespacesSecretsGetResponse200) -model_rebuild(CodespacesSecret) +model_rebuild(ReposOwnerRepoTransferPostBody) -__all__ = ( - "CodespacesSecret", - "UserCodespacesSecretsGetResponse200", -) +__all__ = ("ReposOwnerRepoTransferPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1118.py b/githubkit/versions/v2022_11_28/models/group_1118.py index 0ff38d47b..91764e3b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1118.py +++ b/githubkit/versions/v2022_11_28/models/group_1118.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,21 +16,27 @@ from githubkit.utils import UNSET -class UserCodespacesSecretsSecretNamePutBody(GitHubModel): - """UserCodespacesSecretsSecretNamePutBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - 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})$", + owner: Missing[str] = Field( + default=UNSET, + description="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", + ) + name: str = Field(description="The name of the new repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the new repository." + ) + include_all_branches: Missing[bool] = Field( default=UNSET, - description="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.", + 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`.", ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") - selected_repository_ids: Missing[list[Union[int, str]]] = Field( + private: Missing[bool] = 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.", + description="Either `true` to create a new private repository or `false` to create a new public one.", ) -model_rebuild(UserCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) -__all__ = ("UserCodespacesSecretsSecretNamePutBody",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1119.py b/githubkit/versions/v2022_11_28/models/group_1119.py index 0fa306349..b47b92a02 100644 --- a/githubkit/versions/v2022_11_28/models/group_1119.py +++ b/githubkit/versions/v2022_11_28/models/group_1119.py @@ -9,20 +9,41 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0056 import MinimalRepository - - -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" - - total_count: int = Field() - repositories: list[MinimalRepository] = Field() - - -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class TeamsTeamIdPatchBody(GitHubModel): + """TeamsTeamIdPatchBody""" + + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." + ) + + +model_rebuild(TeamsTeamIdPatchBody) + +__all__ = ("TeamsTeamIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1120.py b/githubkit/versions/v2022_11_28/models/group_1120.py index 9bee2d8e5..89bdf737f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1120.py +++ b/githubkit/versions/v2022_11_28/models/group_1120.py @@ -12,16 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class TeamsTeamIdDiscussionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsPostBody""" - 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." + 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(UserCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(TeamsTeamIdDiscussionsPostBody) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("TeamsTeamIdDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1121.py b/githubkit/versions/v2022_11_28/models/group_1121.py index 279933b1d..01b62eeb5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1121.py +++ b/githubkit/versions/v2022_11_28/models/group_1121.py @@ -16,21 +16,17 @@ from githubkit.utils import UNSET -class UserCodespacesCodespaceNamePatchBody(GitHubModel): - """UserCodespacesCodespaceNamePatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - machine: Missing[str] = Field( - default=UNSET, description="A valid machine to transition this codespace to." + title: Missing[str] = Field( + default=UNSET, description="The discussion post's title." ) - 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.", + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." ) -model_rebuild(UserCodespacesCodespaceNamePatchBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) -__all__ = ("UserCodespacesCodespaceNamePatchBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1122.py b/githubkit/versions/v2022_11_28/models/group_1122.py index fadeabee1..2333d1363 100644 --- a/githubkit/versions/v2022_11_28/models/group_1122.py +++ b/githubkit/versions/v2022_11_28/models/group_1122.py @@ -13,16 +13,13 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0077 import CodespaceMachine +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + body: str = Field(description="The discussion comment's body text.") - total_count: int = Field() - machines: list[CodespaceMachine] = Field() +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) -model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1123.py b/githubkit/versions/v2022_11_28/models/group_1123.py index 874e87674..a44a260ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_1123.py +++ b/githubkit/versions/v2022_11_28/models/group_1123.py @@ -12,21 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): - """UserCodespacesCodespaceNamePublishPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - 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." - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(UserCodespacesCodespaceNamePublishPostBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) -__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1124.py b/githubkit/versions/v2022_11_28/models/group_1124.py index 04c6a0578..df888d74e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1124.py +++ b/githubkit/versions/v2022_11_28/models/group_1124.py @@ -16,14 +16,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserEmailVisibilityPatchBody(GitHubModel): - """UserEmailVisibilityPatchBody""" - - visibility: Literal["public", "private"] = Field( - description="Denotes whether an email is publicly visible." +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 comment." ) -model_rebuild(UserEmailVisibilityPatchBody) +model_rebuild( + TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("UserEmailVisibilityPatchBody",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1125.py b/githubkit/versions/v2022_11_28/models/group_1125.py index 323704de5..1657765ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_1125.py +++ b/githubkit/versions/v2022_11_28/models/group_1125.py @@ -9,24 +9,23 @@ from __future__ import annotations -from pydantic import Field +from typing import Literal -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from pydantic import Field +from githubkit.compat import GitHubModel, model_rebuild -class UserEmailsPostBodyOneof0(GitHubModel): - """UserEmailsPostBodyOneof0 - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - emails: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.", + 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(UserEmailsPostBodyOneof0) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("UserEmailsPostBodyOneof0",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1126.py b/githubkit/versions/v2022_11_28/models/group_1126.py index 361a2d243..db25cce3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1126.py +++ b/githubkit/versions/v2022_11_28/models/group_1126.py @@ -9,29 +9,23 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from typing import Literal +from pydantic import Field -class UserEmailsDeleteBodyOneof0(GitHubModel): - """UserEmailsDeleteBodyOneof0 +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET - Deletes one or more email addresses from your GitHub account. Must contain at - least one email address. **Note:** Alternatively, you can pass a single email - address or an `array` of emails addresses directly, but we recommend that you - pass an object using the `emails` key. - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ +class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): + """TeamsTeamIdMembershipsUsernamePutBody""" - emails: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="Email addresses associated with the GitHub user account.", + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(UserEmailsDeleteBodyOneof0) +model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) -__all__ = ("UserEmailsDeleteBodyOneof0",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1127.py b/githubkit/versions/v2022_11_28/models/group_1127.py index 2f1994e20..50f0b2952 100644 --- a/githubkit/versions/v2022_11_28/models/group_1127.py +++ b/githubkit/versions/v2022_11_28/models/group_1127.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,15 +18,15 @@ from githubkit.utils import UNSET -class UserGpgKeysPostBody(GitHubModel): - """UserGpgKeysPostBody""" +class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutBody""" - name: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + 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).\"", ) - armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") -model_rebuild(UserGpgKeysPostBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) -__all__ = ("UserGpgKeysPostBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1128.py b/githubkit/versions/v2022_11_28/models/group_1128.py index 7dbc908cb..4a3155ea1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1128.py +++ b/githubkit/versions/v2022_11_28/models/group_1128.py @@ -12,17 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0017 import Installation +class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutResponse403""" -class UserInstallationsGetResponse200(GitHubModel): - """UserInstallationsGetResponse200""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) - total_count: int = Field() - installations: list[Installation] = Field() +model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) -model_rebuild(UserInstallationsGetResponse200) - -__all__ = ("UserInstallationsGetResponse200",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_1129.py b/githubkit/versions/v2022_11_28/models/group_1129.py index a965271f8..726eb0c42 100644 --- a/githubkit/versions/v2022_11_28/models/group_1129.py +++ b/githubkit/versions/v2022_11_28/models/group_1129.py @@ -9,23 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0019 import Repository - -class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" +class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): + """TeamsTeamIdReposOwnerRepoPutBody""" - total_count: int = Field() - repository_selection: Missing[str] = Field(default=UNSET) - repositories: list[Repository] = Field() + 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(UserInstallationsInstallationIdRepositoriesGetResponse200) +model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1130.py b/githubkit/versions/v2022_11_28/models/group_1130.py index 09cbf54e3..7a471250b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1130.py +++ b/githubkit/versions/v2022_11_28/models/group_1130.py @@ -9,13 +9,42 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild - - -class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): - """UserInteractionLimitsGetResponse200Anyof1""" +from typing import Union +from pydantic import Field -model_rebuild(UserInteractionLimitsGetResponse200Anyof1) - -__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserPatchBody(GitHubModel): + """UserPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The new name of the user.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address of the user." + ) + blog: Missing[str] = Field( + default=UNSET, description="The new blog URL of the user." + ) + twitter_username: Missing[Union[str, None]] = Field( + default=UNSET, description="The new Twitter username of the user." + ) + company: Missing[str] = Field( + default=UNSET, description="The new company of the user." + ) + location: Missing[str] = Field( + default=UNSET, description="The new location of the user." + ) + hireable: Missing[bool] = Field( + default=UNSET, description="The new hiring availability of the user." + ) + bio: Missing[str] = Field( + default=UNSET, description="The new short biography of the user." + ) + + +model_rebuild(UserPatchBody) + +__all__ = ("UserPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1131.py b/githubkit/versions/v2022_11_28/models/group_1131.py index b55f576db..5f0a29dd6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1131.py +++ b/githubkit/versions/v2022_11_28/models/group_1131.py @@ -12,22 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0083 import Codespace -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 UserCodespacesGetResponse200(GitHubModel): + """UserCodespacesGetResponse200""" + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(UserKeysPostBody) -__all__ = ("UserKeysPostBody",) +model_rebuild(UserCodespacesGetResponse200) + +__all__ = ("UserCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1132.py b/githubkit/versions/v2022_11_28/models/group_1132.py index 9b771b5c3..d698dac84 100644 --- a/githubkit/versions/v2022_11_28/models/group_1132.py +++ b/githubkit/versions/v2022_11_28/models/group_1132.py @@ -14,16 +14,57 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserMembershipsOrgsOrgPatchBody(GitHubModel): - """UserMembershipsOrgsOrgPatchBody""" +class UserCodespacesPostBodyOneof0(GitHubModel): + """UserCodespacesPostBodyOneof0""" - state: Literal["active"] = Field( - description='The state that the membership should be in. Only `"active"` will be accepted.' + repository_id: int = Field(description="Repository id for this codespace") + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -model_rebuild(UserMembershipsOrgsOrgPatchBody) +model_rebuild(UserCodespacesPostBodyOneof0) -__all__ = ("UserMembershipsOrgsOrgPatchBody",) +__all__ = ("UserCodespacesPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1133.py b/githubkit/versions/v2022_11_28/models/group_1133.py index f7179f26c..66fe98e84 100644 --- a/githubkit/versions/v2022_11_28/models/group_1133.py +++ b/githubkit/versions/v2022_11_28/models/group_1133.py @@ -18,42 +18,50 @@ from githubkit.utils import UNSET -class UserMigrationsPostBody(GitHubModel): - """UserMigrationsPostBody""" +class UserCodespacesPostBodyOneof1(GitHubModel): + """UserCodespacesPostBodyOneof1""" - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Lock the repositories being migrated at the start of the migration", + pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( + description="Pull request number for this codespace" ) - exclude_metadata: Missing[bool] = Field( + location: Missing[str] = Field( default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", ) - exclude_git_data: Missing[bool] = Field( + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = 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" + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", ) - exclude_releases: Missing[bool] = Field( - default=UNSET, description="Do not include releases in the migration" + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" ) - exclude_owner_projects: Missing[bool] = Field( + devcontainer_path: Missing[str] = Field( default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded.", + description="Path to devcontainer.json config to use for this codespace", ) - 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).", + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" ) - exclude: Missing[list[Literal["repositories"]]] = Field( + idle_timeout_minutes: Missing[int] = Field( default=UNSET, - description="Exclude attributes from the API response to improve performance", + description="Time in minutes before codespace stops from inactivity", ) - repositories: list[str] = Field() -model_rebuild(UserMigrationsPostBody) +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) -__all__ = ("UserMigrationsPostBody",) +__all__ = ( + "UserCodespacesPostBodyOneof1", + "UserCodespacesPostBodyOneof1PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1134.py b/githubkit/versions/v2022_11_28/models/group_1134.py index 4a4feed8c..860690ae3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1134.py +++ b/githubkit/versions/v2022_11_28/models/group_1134.py @@ -9,24 +9,46 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserProjectsPostBody(GitHubModel): - """UserProjectsPostBody""" +class UserCodespacesSecretsGetResponse200(GitHubModel): + """UserCodespacesSecretsGetResponse200""" - name: str = Field(description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" + total_count: int = Field() + secrets: list[CodespacesSecret] = Field() + + +class CodespacesSecret(GitHubModel): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ + + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" + ) + selected_repositories_url: str = Field( + description="The API URL at which the list of repositories this secret is visible to can be retrieved" ) -model_rebuild(UserProjectsPostBody) +model_rebuild(UserCodespacesSecretsGetResponse200) +model_rebuild(CodespacesSecret) -__all__ = ("UserProjectsPostBody",) +__all__ = ( + "CodespacesSecret", + "UserCodespacesSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1135.py b/githubkit/versions/v2022_11_28/models/group_1135.py index 422fe894e..0ff38d47b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1135.py +++ b/githubkit/versions/v2022_11_28/models/group_1135.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,93 +18,21 @@ from githubkit.utils import UNSET -class UserReposPostBody(GitHubModel): - """UserReposPostBody""" +class UserCodespacesSecretsSecretNamePutBody(GitHubModel): + """UserCodespacesSecretsSecretNamePutBody""" - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - has_issues: Missing[bool] = Field( - default=UNSET, description="Whether issues are enabled." - ) - has_projects: Missing[bool] = Field( - default=UNSET, description="Whether projects are enabled." - ) - has_wiki: Missing[bool] = Field( - default=UNSET, description="Whether the wiki is enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Whether the repository is initialized with a minimal README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description="The desired language or platform to apply to the .gitignore.", - ) - license_template: Missing[str] = Field( - default=UNSET, - description="The license keyword of the open source license for this repository.", - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + 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="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." + 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.", ) - is_template: Missing[bool] = Field( + 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="Whether this repository acts as a template that can be used to generate new repositories.", + 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.", ) -model_rebuild(UserReposPostBody) +model_rebuild(UserCodespacesSecretsSecretNamePutBody) -__all__ = ("UserReposPostBody",) +__all__ = ("UserCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1136.py b/githubkit/versions/v2022_11_28/models/group_1136.py index 4608b8021..d1e219c0a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1136.py +++ b/githubkit/versions/v2022_11_28/models/group_1136.py @@ -13,20 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0057 import MinimalRepository -class UserSocialAccountsPostBody(GitHubModel): - """UserSocialAccountsPostBody - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" - account_urls: list[str] = Field( - description="Full URLs for the social media profiles to add." - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(UserSocialAccountsPostBody) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("UserSocialAccountsPostBody",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1137.py b/githubkit/versions/v2022_11_28/models/group_1137.py index 6c8803a2d..9bee2d8e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1137.py +++ b/githubkit/versions/v2022_11_28/models/group_1137.py @@ -14,19 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserSocialAccountsDeleteBody(GitHubModel): - """UserSocialAccountsDeleteBody +class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - 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." + 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(UserSocialAccountsDeleteBody) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("UserSocialAccountsDeleteBody",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1138.py b/githubkit/versions/v2022_11_28/models/group_1138.py index 286ec8ff2..279933b1d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1138.py +++ b/githubkit/versions/v2022_11_28/models/group_1138.py @@ -16,18 +16,21 @@ from githubkit.utils import UNSET -class UserSshSigningKeysPostBody(GitHubModel): - """UserSshSigningKeysPostBody""" +class UserCodespacesCodespaceNamePatchBody(GitHubModel): + """UserCodespacesCodespaceNamePatchBody""" - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + machine: Missing[str] = Field( + default=UNSET, description="A valid machine to transition this codespace to." ) - key: str = Field( - pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(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)."', + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + recent_folders: Missing[list[str]] = Field( + default=UNSET, + description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", ) -model_rebuild(UserSshSigningKeysPostBody) +model_rebuild(UserCodespacesCodespaceNamePatchBody) -__all__ = ("UserSshSigningKeysPostBody",) +__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1139.py b/githubkit/versions/v2022_11_28/models/group_1139.py index 654596f3c..3ecb0b313 100644 --- a/githubkit/versions/v2022_11_28/models/group_1139.py +++ b/githubkit/versions/v2022_11_28/models/group_1139.py @@ -9,176 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class 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) - bundle_url: Missing[str] = 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) +from .group_0082 import CodespaceMachine -class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise( - GitHubModel -): - """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" +class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): + """UserCodespacesCodespaceNameMachinesGetResponse200""" - signed_entry_timestamp: Missing[str] = Field( - default=UNSET, alias="signedEntryTimestamp" - ) + total_count: int = Field() + machines: list[CodespaceMachine] = Field() -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(UserCodespacesCodespaceNameMachinesGetResponse200) -__all__ = ( - "SigstoreBundle0", - "SigstoreBundle0PropDsseEnvelope", - "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", - "SigstoreBundle0PropVerificationMaterial", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", - "UsersUsernameAttestationsSubjectDigestGetResponse200", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", -) +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1140.py b/githubkit/versions/v2022_11_28/models/group_1140.py new file mode 100644 index 000000000..874e87674 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1140.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): + """UserCodespacesCodespaceNamePublishPostBody""" + + name: Missing[str] = Field( + default=UNSET, description="A name for the new repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the new repository should be private." + ) + + +model_rebuild(UserCodespacesCodespaceNamePublishPostBody) + +__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1141.py b/githubkit/versions/v2022_11_28/models/group_1141.py new file mode 100644 index 000000000..04c6a0578 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1141.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserEmailVisibilityPatchBody(GitHubModel): + """UserEmailVisibilityPatchBody""" + + visibility: Literal["public", "private"] = Field( + description="Denotes whether an email is publicly visible." + ) + + +model_rebuild(UserEmailVisibilityPatchBody) + +__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1142.py b/githubkit/versions/v2022_11_28/models/group_1142.py new file mode 100644 index 000000000..323704de5 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1142.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild + + +class UserEmailsPostBodyOneof0(GitHubModel): + """UserEmailsPostBodyOneof0 + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.", + ) + + +model_rebuild(UserEmailsPostBodyOneof0) + +__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1143.py b/githubkit/versions/v2022_11_28/models/group_1143.py new file mode 100644 index 000000000..361a2d243 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1143.py @@ -0,0 +1,37 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild + + +class 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']} + """ + + emails: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="Email addresses associated with the GitHub user account.", + ) + + +model_rebuild(UserEmailsDeleteBodyOneof0) + +__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1144.py b/githubkit/versions/v2022_11_28/models/group_1144.py new file mode 100644 index 000000000..2f1994e20 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1144.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserGpgKeysPostBody(GitHubModel): + """UserGpgKeysPostBody""" + + 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(UserGpgKeysPostBody) + +__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1145.py b/githubkit/versions/v2022_11_28/models/group_1145.py new file mode 100644 index 000000000..436810cf8 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1145.py @@ -0,0 +1,28 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0018 import Installation + + +class UserInstallationsGetResponse200(GitHubModel): + """UserInstallationsGetResponse200""" + + total_count: int = Field() + installations: list[Installation] = Field() + + +model_rebuild(UserInstallationsGetResponse200) + +__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1146.py b/githubkit/versions/v2022_11_28/models/group_1146.py new file mode 100644 index 000000000..867314a9d --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1146.py @@ -0,0 +1,31 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0020 import Repository + + +class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + + total_count: int = Field() + repository_selection: Missing[str] = Field(default=UNSET) + repositories: list[Repository] = Field() + + +model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1147.py b/githubkit/versions/v2022_11_28/models/group_1147.py new file mode 100644 index 000000000..09cbf54e3 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1147.py @@ -0,0 +1,21 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): + """UserInteractionLimitsGetResponse200Anyof1""" + + +model_rebuild(UserInteractionLimitsGetResponse200Anyof1) + +__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1148.py b/githubkit/versions/v2022_11_28/models/group_1148.py new file mode 100644 index 000000000..b55f576db --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1148.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserKeysPostBody(GitHubModel): + """UserKeysPostBody""" + + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", + description="The public SSH key to add to your GitHub account.", + ) + + +model_rebuild(UserKeysPostBody) + +__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1149.py b/githubkit/versions/v2022_11_28/models/group_1149.py new file mode 100644 index 000000000..9b771b5c3 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1149.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserMembershipsOrgsOrgPatchBody(GitHubModel): + """UserMembershipsOrgsOrgPatchBody""" + + state: Literal["active"] = Field( + description='The state that the membership should be in. Only `"active"` will be accepted.' + ) + + +model_rebuild(UserMembershipsOrgsOrgPatchBody) + +__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1150.py b/githubkit/versions/v2022_11_28/models/group_1150.py new file mode 100644 index 000000000..f7179f26c --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1150.py @@ -0,0 +1,59 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserMigrationsPostBody(GitHubModel): + """UserMigrationsPostBody""" + + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Lock the repositories being migrated at the start of the migration", + ) + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + ) + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, description="Do not include attachments in the migration" + ) + exclude_releases: Missing[bool] = Field( + default=UNSET, description="Do not include releases in the migration" + ) + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded.", + ) + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + ) + exclude: Missing[list[Literal["repositories"]]] = Field( + default=UNSET, + description="Exclude attributes from the API response to improve performance", + ) + repositories: list[str] = Field() + + +model_rebuild(UserMigrationsPostBody) + +__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1151.py b/githubkit/versions/v2022_11_28/models/group_1151.py new file mode 100644 index 000000000..4a4feed8c --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1151.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserProjectsPostBody(GitHubModel): + """UserProjectsPostBody""" + + name: str = Field(description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + + +model_rebuild(UserProjectsPostBody) + +__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1152.py b/githubkit/versions/v2022_11_28/models/group_1152.py new file mode 100644 index 000000000..422fe894e --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1152.py @@ -0,0 +1,110 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserReposPostBody(GitHubModel): + """UserReposPostBody""" + + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + has_issues: Missing[bool] = Field( + default=UNSET, description="Whether issues are enabled." + ) + has_projects: Missing[bool] = Field( + default=UNSET, description="Whether projects are enabled." + ) + has_wiki: Missing[bool] = Field( + default=UNSET, description="Whether the wiki is enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Whether the repository is initialized with a minimal README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description="The desired language or platform to apply to the .gitignore.", + ) + license_template: Missing[str] = Field( + default=UNSET, + description="The license keyword of the open source license for this repository.", + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + + +model_rebuild(UserReposPostBody) + +__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1153.py b/githubkit/versions/v2022_11_28/models/group_1153.py new file mode 100644 index 000000000..4608b8021 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1153.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSocialAccountsPostBody(GitHubModel): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] = Field( + description="Full URLs for the social media profiles to add." + ) + + +model_rebuild(UserSocialAccountsPostBody) + +__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1154.py b/githubkit/versions/v2022_11_28/models/group_1154.py new file mode 100644 index 000000000..6c8803a2d --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1154.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSocialAccountsDeleteBody(GitHubModel): + """UserSocialAccountsDeleteBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] = Field( + description="Full URLs for the social media profiles to delete." + ) + + +model_rebuild(UserSocialAccountsDeleteBody) + +__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1155.py b/githubkit/versions/v2022_11_28/models/group_1155.py new file mode 100644 index 000000000..286ec8ff2 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1155.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserSshSigningKeysPostBody(GitHubModel): + """UserSshSigningKeysPostBody""" + + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ", + description='The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."', + ) + + +model_rebuild(UserSshSigningKeysPostBody) + +__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1156.py b/githubkit/versions/v2022_11_28/models/group_1156.py new file mode 100644 index 000000000..654596f3c --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1156.py @@ -0,0 +1,184 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class 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) + bundle_url: Missing[str] = 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__ = ( + "SigstoreBundle0", + "SigstoreBundle0PropDsseEnvelope", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", + "SigstoreBundle0PropVerificationMaterial", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", +) diff --git a/githubkit/versions/v2022_11_28/rest/__init__.py b/githubkit/versions/v2022_11_28/rest/__init__.py index ef9c26065..8adbf30e1 100644 --- a/githubkit/versions/v2022_11_28/rest/__init__.py +++ b/githubkit/versions/v2022_11_28/rest/__init__.py @@ -31,6 +31,7 @@ from .gists import GistsClient from .git import GitClient from .gitignore import GitignoreClient + from .hosted_compute import HostedComputeClient from .interactions import InteractionsClient from .issues import IssuesClient from .licenses import LicensesClient @@ -234,6 +235,12 @@ def repos(self) -> "ReposClient": return ReposClient(self._github) + @cached_property + def hosted_compute(self) -> "HostedComputeClient": + from .hosted_compute import HostedComputeClient + + return HostedComputeClient(self._github) + @cached_property def teams(self) -> "TeamsClient": from .teams import TeamsClient diff --git a/githubkit/versions/v2022_11_28/rest/actions.py b/githubkit/versions/v2022_11_28/rest/actions.py index a046880a7..ca44e687f 100644 --- a/githubkit/versions/v2022_11_28/rest/actions.py +++ b/githubkit/versions/v2022_11_28/rest/actions.py @@ -32,6 +32,8 @@ ActionsCacheUsageByRepository, ActionsCacheUsageOrgEnterprise, ActionsGetDefaultWorkflowPermissions, + ActionsHostedRunner, + ActionsHostedRunnerLimits, ActionsOrganizationPermissions, ActionsPublicKey, ActionsRepositoryPermissions, @@ -48,8 +50,14 @@ OrganizationActionsSecret, OrganizationActionsVariable, OrgsOrgActionsCacheUsageByRepositoryGetResponse200, + OrgsOrgActionsHostedRunnersGetResponse200, + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + OrgsOrgActionsHostedRunnersPlatformsGetResponse200, OrgsOrgActionsPermissionsRepositoriesGetResponse200, OrgsOrgActionsRunnerGroupsGetResponse200, + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200, OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, OrgsOrgActionsRunnersGenerateJitconfigPostResponse201, @@ -89,6 +97,8 @@ ActionsCacheUsageByRepositoryType, ActionsCacheUsageOrgEnterpriseType, ActionsGetDefaultWorkflowPermissionsType, + ActionsHostedRunnerLimitsType, + ActionsHostedRunnerType, ActionsOrganizationPermissionsType, ActionsPublicKeyType, ActionsRepositoryPermissionsType, @@ -106,11 +116,20 @@ OrganizationActionsSecretType, OrganizationActionsVariableType, OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, + OrgsOrgActionsHostedRunnersGetResponse200Type, + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, + OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, + OrgsOrgActionsHostedRunnersPostBodyPropImageType, + OrgsOrgActionsHostedRunnersPostBodyType, OrgsOrgActionsPermissionsPutBodyType, OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, OrgsOrgActionsPermissionsRepositoriesPutBodyType, OrgsOrgActionsRunnerGroupsGetResponse200Type, OrgsOrgActionsRunnerGroupsPostBodyType, + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType, OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type, OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType, @@ -298,6 +317,634 @@ async def async_get_actions_cache_usage_by_repo_for_org( response_model=OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) + def list_hosted_runners_for_org( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersGetResponse200, + OrgsOrgActionsHostedRunnersGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/actions/hosted-runners#list-github-hosted-runners-for-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersGetResponse200, + ) + + async def async_list_hosted_runners_for_org( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersGetResponse200, + OrgsOrgActionsHostedRunnersGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/actions/hosted-runners#list-github-hosted-runners-for-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersGetResponse200, + ) + + @overload + def create_hosted_runner_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgActionsHostedRunnersPostBodyType, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + @overload + def create_hosted_runner_for_org( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: str, + image: OrgsOrgActionsHostedRunnersPostBodyPropImageType, + size: str, + runner_group_id: int, + maximum_runners: Missing[int] = UNSET, + enable_static_ip: Missing[bool] = UNSET, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + def create_hosted_runner_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgActionsHostedRunnersPostBodyType] = UNSET, + **kwargs, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/rest/actions/hosted-runners#create-a-github-hosted-runner-for-an-organization""" + + from ..models import ActionsHostedRunner, OrgsOrgActionsHostedRunnersPostBody + + url = f"/orgs/{org}/actions/hosted-runners" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python(OrgsOrgActionsHostedRunnersPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + @overload + async def async_create_hosted_runner_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgActionsHostedRunnersPostBodyType, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + @overload + async def async_create_hosted_runner_for_org( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: str, + image: OrgsOrgActionsHostedRunnersPostBodyPropImageType, + size: str, + runner_group_id: int, + maximum_runners: Missing[int] = UNSET, + enable_static_ip: Missing[bool] = UNSET, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + async def async_create_hosted_runner_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgActionsHostedRunnersPostBodyType] = UNSET, + **kwargs, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/rest/actions/hosted-runners#create-a-github-hosted-runner-for-an-organization""" + + from ..models import ActionsHostedRunner, OrgsOrgActionsHostedRunnersPostBody + + url = f"/orgs/{org}/actions/hosted-runners" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python(OrgsOrgActionsHostedRunnersPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + def get_hosted_runners_github_owned_images_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/actions/hosted-runners#get-github-owned-images-for-github-hosted-runners-in-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/images/github-owned" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + ) + + async def async_get_hosted_runners_github_owned_images_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/actions/hosted-runners#get-github-owned-images-for-github-hosted-runners-in-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/images/github-owned" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, + ) + + def get_hosted_runners_partner_images_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/actions/hosted-runners#get-partner-images-for-github-hosted-runners-in-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/images/partner" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + ) + + async def async_get_hosted_runners_partner_images_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/actions/hosted-runners#get-partner-images-for-github-hosted-runners-in-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/images/partner" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, + ) + + def get_hosted_runners_limits_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsHostedRunnerLimits, ActionsHostedRunnerLimitsType]: + """See also: https://docs.github.com/rest/actions/hosted-runners#get-limits-on-github-hosted-runners-for-an-organization""" + + from ..models import ActionsHostedRunnerLimits + + url = f"/orgs/{org}/actions/hosted-runners/limits" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunnerLimits, + ) + + async def async_get_hosted_runners_limits_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsHostedRunnerLimits, ActionsHostedRunnerLimitsType]: + """See also: https://docs.github.com/rest/actions/hosted-runners#get-limits-on-github-hosted-runners-for-an-organization""" + + from ..models import ActionsHostedRunnerLimits + + url = f"/orgs/{org}/actions/hosted-runners/limits" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunnerLimits, + ) + + def get_hosted_runners_machine_specs_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/actions/hosted-runners#get-github-hosted-runners-machine-specs-for-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersMachineSizesGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/machine-sizes" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + ) + + async def async_get_hosted_runners_machine_specs_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/actions/hosted-runners#get-github-hosted-runners-machine-specs-for-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersMachineSizesGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/machine-sizes" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, + ) + + def get_hosted_runners_platforms_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersPlatformsGetResponse200, + OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/actions/hosted-runners#get-platforms-for-github-hosted-runners-in-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersPlatformsGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/platforms" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersPlatformsGetResponse200, + ) + + async def async_get_hosted_runners_platforms_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsHostedRunnersPlatformsGetResponse200, + OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/actions/hosted-runners#get-platforms-for-github-hosted-runners-in-an-organization""" + + from ..models import OrgsOrgActionsHostedRunnersPlatformsGetResponse200 + + url = f"/orgs/{org}/actions/hosted-runners/platforms" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=OrgsOrgActionsHostedRunnersPlatformsGetResponse200, + ) + + def get_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/rest/actions/hosted-runners#get-a-github-hosted-runner-for-an-organization""" + + from ..models import ActionsHostedRunner + + url = f"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + async def async_get_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/rest/actions/hosted-runners#get-a-github-hosted-runner-for-an-organization""" + + from ..models import ActionsHostedRunner + + url = f"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + def delete_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/rest/actions/hosted-runners#delete-a-github-hosted-runner-for-an-organization""" + + from ..models import ActionsHostedRunner + + url = f"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "DELETE", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + async def async_delete_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/rest/actions/hosted-runners#delete-a-github-hosted-runner-for-an-organization""" + + from ..models import ActionsHostedRunner + + url = f"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "DELETE", + url, + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + @overload + def update_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + @overload + def update_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: Missing[str] = UNSET, + runner_group_id: Missing[int] = UNSET, + maximum_runners: Missing[int] = UNSET, + enable_static_ip: Missing[bool] = UNSET, + image_version: Missing[Union[str, None]] = UNSET, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + def update_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType] = UNSET, + **kwargs, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/rest/actions/hosted-runners#update-a-github-hosted-runner-for-an-organization""" + + from ..models import ( + ActionsHostedRunner, + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, + ) + + url = f"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + + @overload + async def async_update_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + @overload + async def async_update_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: Missing[str] = UNSET, + runner_group_id: Missing[int] = UNSET, + maximum_runners: Missing[int] = UNSET, + enable_static_ip: Missing[bool] = UNSET, + image_version: Missing[Union[str, None]] = UNSET, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: ... + + async def async_update_hosted_runner_for_org( + self, + org: str, + hosted_runner_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType] = UNSET, + **kwargs, + ) -> Response[ActionsHostedRunner, ActionsHostedRunnerType]: + """See also: https://docs.github.com/rest/actions/hosted-runners#update-a-github-hosted-runner-for-an-organization""" + + from ..models import ( + ActionsHostedRunner, + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, + ) + + url = f"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=ActionsHostedRunner, + ) + def get_github_actions_permissions_organization( self, org: str, @@ -1079,6 +1726,7 @@ def create_self_hosted_runner_group_for_org( allows_public_repositories: Missing[bool] = UNSET, restricted_to_workflows: Missing[bool] = UNSET, selected_workflows: Missing[list[str]] = UNSET, + network_configuration_id: Missing[str] = UNSET, ) -> Response[RunnerGroupsOrg, RunnerGroupsOrgType]: ... def create_self_hosted_runner_group_for_org( @@ -1137,6 +1785,7 @@ async def async_create_self_hosted_runner_group_for_org( allows_public_repositories: Missing[bool] = UNSET, restricted_to_workflows: Missing[bool] = UNSET, selected_workflows: Missing[list[str]] = UNSET, + network_configuration_id: Missing[str] = UNSET, ) -> Response[RunnerGroupsOrg, RunnerGroupsOrgType]: ... async def async_create_self_hosted_runner_group_for_org( @@ -1277,6 +1926,7 @@ def update_self_hosted_runner_group_for_org( allows_public_repositories: Missing[bool] = UNSET, restricted_to_workflows: Missing[bool] = UNSET, selected_workflows: Missing[list[str]] = UNSET, + network_configuration_id: Missing[Union[str, None]] = UNSET, ) -> Response[RunnerGroupsOrg, RunnerGroupsOrgType]: ... def update_self_hosted_runner_group_for_org( @@ -1341,6 +1991,7 @@ async def async_update_self_hosted_runner_group_for_org( allows_public_repositories: Missing[bool] = UNSET, restricted_to_workflows: Missing[bool] = UNSET, selected_workflows: Missing[list[str]] = UNSET, + network_configuration_id: Missing[Union[str, None]] = UNSET, ) -> Response[RunnerGroupsOrg, RunnerGroupsOrgType]: ... async def async_update_self_hosted_runner_group_for_org( @@ -1382,6 +2033,76 @@ async def async_update_self_hosted_runner_group_for_org( response_model=RunnerGroupsOrg, ) + def list_github_hosted_runners_in_group_for_org( + self, + org: str, + runner_group_id: int, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/actions/self-hosted-runner-groups#list-github-hosted-runners-in-a-group-for-an-organization""" + + from ..models import ( + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + ) + + url = f"/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + ) + + async def async_list_github_hosted_runners_in_group_for_org( + self, + org: str, + runner_group_id: int, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/actions/self-hosted-runner-groups#list-github-hosted-runners-in-a-group-for-an-organization""" + + from ..models import ( + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + ) + + url = f"/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, + ) + def list_repo_access_to_self_hosted_runner_group_in_org( self, org: str, @@ -2996,8 +3717,8 @@ def create_or_update_org_secret( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - encrypted_value: Missing[str] = UNSET, - key_id: Missing[str] = UNSET, + encrypted_value: str, + key_id: str, visibility: Literal["all", "private", "selected"], selected_repository_ids: Missing[list[int]] = UNSET, ) -> Response[EmptyObject, EmptyObjectType]: ... @@ -3054,8 +3775,8 @@ async def async_create_or_update_org_secret( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - encrypted_value: Missing[str] = UNSET, - key_id: Missing[str] = UNSET, + encrypted_value: str, + key_id: str, visibility: Literal["all", "private", "selected"], selected_repository_ids: Missing[list[int]] = UNSET, ) -> Response[EmptyObject, EmptyObjectType]: ... @@ -8292,8 +9013,8 @@ def create_or_update_repo_secret( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - encrypted_value: Missing[str] = UNSET, - key_id: Missing[str] = UNSET, + encrypted_value: str, + key_id: str, ) -> Response[EmptyObject, EmptyObjectType]: ... def create_or_update_repo_secret( @@ -8353,8 +9074,8 @@ async def async_create_or_update_repo_secret( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - encrypted_value: Missing[str] = UNSET, - key_id: Missing[str] = UNSET, + encrypted_value: str, + key_id: str, ) -> Response[EmptyObject, EmptyObjectType]: ... async def async_create_or_update_repo_secret( diff --git a/githubkit/versions/v2022_11_28/rest/dependabot.py b/githubkit/versions/v2022_11_28/rest/dependabot.py index acf4989f0..ed79ed7bb 100644 --- a/githubkit/versions/v2022_11_28/rest/dependabot.py +++ b/githubkit/versions/v2022_11_28/rest/dependabot.py @@ -78,6 +78,7 @@ def list_alerts_for_enterprise( severity: Missing[str] = UNSET, ecosystem: Missing[str] = UNSET, package: Missing[str] = UNSET, + epss_percentage: Missing[str] = UNSET, scope: Missing[Literal["development", "runtime"]] = UNSET, sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, direction: Missing[Literal["asc", "desc"]] = UNSET, @@ -105,6 +106,7 @@ def list_alerts_for_enterprise( "severity": severity, "ecosystem": ecosystem, "package": package, + "epss_percentage": epss_percentage, "scope": scope, "sort": sort, "direction": direction, @@ -138,6 +140,7 @@ async def async_list_alerts_for_enterprise( severity: Missing[str] = UNSET, ecosystem: Missing[str] = UNSET, package: Missing[str] = UNSET, + epss_percentage: Missing[str] = UNSET, scope: Missing[Literal["development", "runtime"]] = UNSET, sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, direction: Missing[Literal["asc", "desc"]] = UNSET, @@ -165,6 +168,7 @@ async def async_list_alerts_for_enterprise( "severity": severity, "ecosystem": ecosystem, "package": package, + "epss_percentage": epss_percentage, "scope": scope, "sort": sort, "direction": direction, @@ -198,6 +202,7 @@ def list_alerts_for_org( severity: Missing[str] = UNSET, ecosystem: Missing[str] = UNSET, package: Missing[str] = UNSET, + epss_percentage: Missing[str] = UNSET, scope: Missing[Literal["development", "runtime"]] = UNSET, sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, direction: Missing[Literal["asc", "desc"]] = UNSET, @@ -225,6 +230,7 @@ def list_alerts_for_org( "severity": severity, "ecosystem": ecosystem, "package": package, + "epss_percentage": epss_percentage, "scope": scope, "sort": sort, "direction": direction, @@ -259,6 +265,7 @@ async def async_list_alerts_for_org( severity: Missing[str] = UNSET, ecosystem: Missing[str] = UNSET, package: Missing[str] = UNSET, + epss_percentage: Missing[str] = UNSET, scope: Missing[Literal["development", "runtime"]] = UNSET, sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, direction: Missing[Literal["asc", "desc"]] = UNSET, @@ -286,6 +293,7 @@ async def async_list_alerts_for_org( "severity": severity, "ecosystem": ecosystem, "package": package, + "epss_percentage": epss_percentage, "scope": scope, "sort": sort, "direction": direction, @@ -904,6 +912,7 @@ def list_alerts_for_repo( ecosystem: Missing[str] = UNSET, package: Missing[str] = UNSET, manifest: Missing[str] = UNSET, + epss_percentage: Missing[str] = UNSET, scope: Missing[Literal["development", "runtime"]] = UNSET, sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, direction: Missing[Literal["asc", "desc"]] = UNSET, @@ -927,6 +936,7 @@ def list_alerts_for_repo( "ecosystem": ecosystem, "package": package, "manifest": manifest, + "epss_percentage": epss_percentage, "scope": scope, "sort": sort, "direction": direction, @@ -964,6 +974,7 @@ async def async_list_alerts_for_repo( ecosystem: Missing[str] = UNSET, package: Missing[str] = UNSET, manifest: Missing[str] = UNSET, + epss_percentage: Missing[str] = UNSET, scope: Missing[Literal["development", "runtime"]] = UNSET, sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, direction: Missing[Literal["asc", "desc"]] = UNSET, @@ -987,6 +998,7 @@ async def async_list_alerts_for_repo( "ecosystem": ecosystem, "package": package, "manifest": manifest, + "epss_percentage": epss_percentage, "scope": scope, "sort": sort, "direction": direction, diff --git a/githubkit/versions/v2022_11_28/rest/hosted_compute.py b/githubkit/versions/v2022_11_28/rest/hosted_compute.py new file mode 100644 index 000000000..c28c0755c --- /dev/null +++ b/githubkit/versions/v2022_11_28/rest/hosted_compute.py @@ -0,0 +1,495 @@ +"""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 collections.abc import Mapping +from typing import TYPE_CHECKING, Literal, Optional, overload +from weakref import ref + +from pydantic import BaseModel + +from githubkit.compat import model_dump, type_validate_python +from githubkit.typing import Missing, UnsetType +from githubkit.utils import UNSET, exclude_unset + +if TYPE_CHECKING: + from typing import Literal + + from githubkit import GitHubCore + from githubkit.response import Response + from githubkit.typing import Missing + from githubkit.utils import UNSET + + from ..models import ( + NetworkConfiguration, + NetworkSettings, + OrgsOrgSettingsNetworkConfigurationsGetResponse200, + ) + from ..types import ( + NetworkConfigurationType, + NetworkSettingsType, + OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + OrgsOrgSettingsNetworkConfigurationsPostBodyType, + ) + + +class HostedComputeClient: + _REST_API_VERSION = "2022-11-28" + + def __init__(self, github: GitHubCore): + self._github_ref = ref(github) + + @property + def _github(self) -> GitHubCore: + if g := self._github_ref(): + return g + raise RuntimeError( + "GitHub client has already been collected. " + "Do not use this client after the client has been collected." + ) + + def list_network_configurations_for_org( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgSettingsNetworkConfigurationsGetResponse200, + OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization""" + + from ..models import OrgsOrgSettingsNetworkConfigurationsGetResponse200 + + url = f"/orgs/{org}/settings/network-configurations" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgSettingsNetworkConfigurationsGetResponse200, + ) + + async def async_list_network_configurations_for_org( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + OrgsOrgSettingsNetworkConfigurationsGetResponse200, + OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, + ]: + """See also: https://docs.github.com/rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization""" + + from ..models import OrgsOrgSettingsNetworkConfigurationsGetResponse200 + + url = f"/orgs/{org}/settings/network-configurations" + + params = { + "per_page": per_page, + "page": page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgSettingsNetworkConfigurationsGetResponse200, + ) + + @overload + def create_network_configuration_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgSettingsNetworkConfigurationsPostBodyType, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + @overload + def create_network_configuration_for_org( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: str, + compute_service: Missing[Literal["none", "actions"]] = UNSET, + network_settings_ids: list[str], + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + def create_network_configuration_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgSettingsNetworkConfigurationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization""" + + from ..models import ( + NetworkConfiguration, + OrgsOrgSettingsNetworkConfigurationsPostBody, + ) + + url = f"/orgs/{org}/settings/network-configurations" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrgsOrgSettingsNetworkConfigurationsPostBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + @overload + async def async_create_network_configuration_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgSettingsNetworkConfigurationsPostBodyType, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + @overload + async def async_create_network_configuration_for_org( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: str, + compute_service: Missing[Literal["none", "actions"]] = UNSET, + network_settings_ids: list[str], + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + async def async_create_network_configuration_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgSettingsNetworkConfigurationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization""" + + from ..models import ( + NetworkConfiguration, + OrgsOrgSettingsNetworkConfigurationsPostBody, + ) + + url = f"/orgs/{org}/settings/network-configurations" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrgsOrgSettingsNetworkConfigurationsPostBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + def get_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization""" + + from ..models import NetworkConfiguration + + url = f"/orgs/{org}/settings/network-configurations/{network_configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + async def async_get_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization""" + + from ..models import NetworkConfiguration + + url = f"/orgs/{org}/settings/network-configurations/{network_configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + def delete_network_configuration_from_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """See also: https://docs.github.com/rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization""" + + url = f"/orgs/{org}/settings/network-configurations/{network_configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "DELETE", + url, + headers=exclude_unset(headers), + ) + + async def async_delete_network_configuration_from_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """See also: https://docs.github.com/rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization""" + + url = f"/orgs/{org}/settings/network-configurations/{network_configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "DELETE", + url, + headers=exclude_unset(headers), + ) + + @overload + def update_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + @overload + def update_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: Missing[str] = UNSET, + compute_service: Missing[Literal["none", "actions"]] = UNSET, + network_settings_ids: Missing[list[str]] = UNSET, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + def update_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType + ] = UNSET, + **kwargs, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization""" + + from ..models import ( + NetworkConfiguration, + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, + ) + + url = f"/orgs/{org}/settings/network-configurations/{network_configuration_id}" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, + json, + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + @overload + async def async_update_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + @overload + async def async_update_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + name: Missing[str] = UNSET, + compute_service: Missing[Literal["none", "actions"]] = UNSET, + network_settings_ids: Missing[list[str]] = UNSET, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: ... + + async def async_update_network_configuration_for_org( + self, + org: str, + network_configuration_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType + ] = UNSET, + **kwargs, + ) -> Response[NetworkConfiguration, NetworkConfigurationType]: + """See also: https://docs.github.com/rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization""" + + from ..models import ( + NetworkConfiguration, + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, + ) + + url = f"/orgs/{org}/settings/network-configurations/{network_configuration_id}" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, + json, + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=NetworkConfiguration, + ) + + def get_network_settings_for_org( + self, + org: str, + network_settings_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[NetworkSettings, NetworkSettingsType]: + """See also: https://docs.github.com/rest/orgs/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization""" + + from ..models import NetworkSettings + + url = f"/orgs/{org}/settings/network-settings/{network_settings_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=NetworkSettings, + ) + + async def async_get_network_settings_for_org( + self, + org: str, + network_settings_id: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[NetworkSettings, NetworkSettingsType]: + """See also: https://docs.github.com/rest/orgs/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization""" + + from ..models import NetworkSettings + + url = f"/orgs/{org}/settings/network-settings/{network_settings_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=NetworkSettings, + ) diff --git a/githubkit/versions/v2022_11_28/types/__init__.py b/githubkit/versions/v2022_11_28/types/__init__.py index bb31df273..55848823c 100644 --- a/githubkit/versions/v2022_11_28/types/__init__.py +++ b/githubkit/versions/v2022_11_28/types/__init__.py @@ -14,8929 +14,8982 @@ from .group_0001 import CvssSeveritiesPropCvssV3Type as CvssSeveritiesPropCvssV3Type from .group_0001 import CvssSeveritiesPropCvssV4Type as CvssSeveritiesPropCvssV4Type from .group_0001 import CvssSeveritiesType as CvssSeveritiesType - from .group_0002 import SimpleUserType as SimpleUserType - from .group_0003 import GlobalAdvisoryPropCvssType as GlobalAdvisoryPropCvssType - from .group_0003 import ( + from .group_0002 import SecurityAdvisoryEpssType as SecurityAdvisoryEpssType + from .group_0003 import SimpleUserType as SimpleUserType + from .group_0004 import GlobalAdvisoryPropCvssType as GlobalAdvisoryPropCvssType + from .group_0004 import ( GlobalAdvisoryPropCwesItemsType as GlobalAdvisoryPropCwesItemsType, ) - from .group_0003 import GlobalAdvisoryPropEpssType as GlobalAdvisoryPropEpssType - from .group_0003 import ( + from .group_0004 import ( GlobalAdvisoryPropIdentifiersItemsType as GlobalAdvisoryPropIdentifiersItemsType, ) - from .group_0003 import GlobalAdvisoryType as GlobalAdvisoryType - from .group_0003 import VulnerabilityPropPackageType as VulnerabilityPropPackageType - from .group_0003 import VulnerabilityType as VulnerabilityType - from .group_0004 import ( + from .group_0004 import GlobalAdvisoryType as GlobalAdvisoryType + from .group_0004 import VulnerabilityPropPackageType as VulnerabilityPropPackageType + from .group_0004 import VulnerabilityType as VulnerabilityType + from .group_0005 import ( GlobalAdvisoryPropCreditsItemsType as GlobalAdvisoryPropCreditsItemsType, ) - from .group_0005 import BasicErrorType as BasicErrorType - from .group_0006 import ValidationErrorSimpleType as ValidationErrorSimpleType - from .group_0007 import ( + from .group_0006 import BasicErrorType as BasicErrorType + from .group_0007 import ValidationErrorSimpleType as ValidationErrorSimpleType + from .group_0008 import EnterpriseType as EnterpriseType + from .group_0009 import ( IntegrationPropPermissionsType as IntegrationPropPermissionsType, ) - from .group_0008 import IntegrationType as IntegrationType - from .group_0009 import WebhookConfigType as WebhookConfigType - from .group_0010 import HookDeliveryItemType as HookDeliveryItemType - from .group_0011 import ScimErrorType as ScimErrorType - from .group_0012 import ( + from .group_0010 import IntegrationType as IntegrationType + from .group_0011 import WebhookConfigType as WebhookConfigType + from .group_0012 import HookDeliveryItemType as HookDeliveryItemType + from .group_0013 import ScimErrorType as ScimErrorType + from .group_0014 import ( ValidationErrorPropErrorsItemsType as ValidationErrorPropErrorsItemsType, ) - from .group_0012 import ValidationErrorType as ValidationErrorType - from .group_0013 import ( + from .group_0014 import ValidationErrorType as ValidationErrorType + from .group_0015 import ( HookDeliveryPropRequestPropHeadersType as HookDeliveryPropRequestPropHeadersType, ) - from .group_0013 import ( + from .group_0015 import ( HookDeliveryPropRequestPropPayloadType as HookDeliveryPropRequestPropPayloadType, ) - from .group_0013 import HookDeliveryPropRequestType as HookDeliveryPropRequestType - from .group_0013 import ( + from .group_0015 import HookDeliveryPropRequestType as HookDeliveryPropRequestType + from .group_0015 import ( HookDeliveryPropResponsePropHeadersType as HookDeliveryPropResponsePropHeadersType, ) - from .group_0013 import HookDeliveryPropResponseType as HookDeliveryPropResponseType - from .group_0013 import HookDeliveryType as HookDeliveryType - from .group_0014 import EnterpriseType as EnterpriseType - from .group_0015 import ( + from .group_0015 import HookDeliveryPropResponseType as HookDeliveryPropResponseType + from .group_0015 import HookDeliveryType as HookDeliveryType + from .group_0016 import ( IntegrationInstallationRequestType as IntegrationInstallationRequestType, ) - from .group_0016 import AppPermissionsType as AppPermissionsType - from .group_0017 import InstallationType as InstallationType - from .group_0018 import LicenseSimpleType as LicenseSimpleType - from .group_0019 import ( + from .group_0017 import AppPermissionsType as AppPermissionsType + from .group_0018 import InstallationType as InstallationType + from .group_0019 import LicenseSimpleType as LicenseSimpleType + from .group_0020 import ( RepositoryPropPermissionsType as RepositoryPropPermissionsType, ) - from .group_0019 import RepositoryType as RepositoryType - from .group_0020 import InstallationTokenType as InstallationTokenType - from .group_0021 import ScopedInstallationType as ScopedInstallationType - from .group_0022 import AuthorizationPropAppType as AuthorizationPropAppType - from .group_0022 import AuthorizationType as AuthorizationType - from .group_0023 import ( + from .group_0020 import RepositoryType as RepositoryType + from .group_0021 import InstallationTokenType as InstallationTokenType + from .group_0022 import ScopedInstallationType as ScopedInstallationType + from .group_0023 import AuthorizationPropAppType as AuthorizationPropAppType + from .group_0023 import AuthorizationType as AuthorizationType + from .group_0024 import ( SimpleClassroomRepositoryType as SimpleClassroomRepositoryType, ) - from .group_0024 import ClassroomAssignmentType as ClassroomAssignmentType - from .group_0024 import ClassroomType as ClassroomType - from .group_0024 import ( + from .group_0025 import ClassroomAssignmentType as ClassroomAssignmentType + from .group_0025 import ClassroomType as ClassroomType + from .group_0025 import ( SimpleClassroomOrganizationType as SimpleClassroomOrganizationType, ) - from .group_0025 import ( + from .group_0026 import ( ClassroomAcceptedAssignmentType as ClassroomAcceptedAssignmentType, ) - from .group_0025 import ( + from .group_0026 import ( SimpleClassroomAssignmentType as SimpleClassroomAssignmentType, ) - from .group_0025 import SimpleClassroomType as SimpleClassroomType - from .group_0025 import SimpleClassroomUserType as SimpleClassroomUserType - from .group_0026 import ClassroomAssignmentGradeType as ClassroomAssignmentGradeType - from .group_0027 import ( + from .group_0026 import SimpleClassroomType as SimpleClassroomType + from .group_0026 import SimpleClassroomUserType as SimpleClassroomUserType + from .group_0027 import ClassroomAssignmentGradeType as ClassroomAssignmentGradeType + from .group_0028 import ( CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType as CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType, ) - from .group_0027 import ( + from .group_0028 import ( CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType as CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0027 import ( + from .group_0028 import ( CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_0027 import ( + from .group_0028 import ( CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType as CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType, ) - from .group_0027 import ( + from .group_0028 import ( CodeSecurityConfigurationType as CodeSecurityConfigurationType, ) - from .group_0028 import ( + from .group_0029 import ( CodeScanningDefaultSetupOptionsType as CodeScanningDefaultSetupOptionsType, ) - from .group_0029 import ( + from .group_0030 import ( CodeSecurityDefaultConfigurationsItemsType as CodeSecurityDefaultConfigurationsItemsType, ) - from .group_0030 import SimpleRepositoryType as SimpleRepositoryType - from .group_0031 import ( + from .group_0031 import SimpleRepositoryType as SimpleRepositoryType + from .group_0032 import ( CodeSecurityConfigurationRepositoriesType as CodeSecurityConfigurationRepositoriesType, ) - from .group_0032 import DependabotAlertPackageType as DependabotAlertPackageType - from .group_0033 import ( + from .group_0033 import DependabotAlertPackageType as DependabotAlertPackageType + from .group_0034 import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, ) - from .group_0033 import ( + from .group_0034 import ( DependabotAlertSecurityVulnerabilityType as DependabotAlertSecurityVulnerabilityType, ) - from .group_0034 import ( + from .group_0035 import ( DependabotAlertSecurityAdvisoryPropCvssType as DependabotAlertSecurityAdvisoryPropCvssType, ) - from .group_0034 import ( + from .group_0035 import ( DependabotAlertSecurityAdvisoryPropCwesItemsType as DependabotAlertSecurityAdvisoryPropCwesItemsType, ) - from .group_0034 import ( + from .group_0035 import ( DependabotAlertSecurityAdvisoryPropIdentifiersItemsType as DependabotAlertSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0034 import ( + from .group_0035 import ( DependabotAlertSecurityAdvisoryPropReferencesItemsType as DependabotAlertSecurityAdvisoryPropReferencesItemsType, ) - from .group_0034 import ( + from .group_0035 import ( DependabotAlertSecurityAdvisoryType as DependabotAlertSecurityAdvisoryType, ) - from .group_0035 import ( + from .group_0036 import ( DependabotAlertWithRepositoryType as DependabotAlertWithRepositoryType, ) - from .group_0036 import ( + from .group_0037 import ( DependabotAlertWithRepositoryPropDependencyType as DependabotAlertWithRepositoryPropDependencyType, ) - from .group_0037 import ( + from .group_0038 import ( OrganizationSecretScanningAlertType as OrganizationSecretScanningAlertType, ) - from .group_0038 import MilestoneType as MilestoneType - from .group_0039 import ReactionRollupType as ReactionRollupType - from .group_0040 import ( + from .group_0039 import MilestoneType as MilestoneType + from .group_0040 import ReactionRollupType as ReactionRollupType + from .group_0041 import ( IssuePropLabelsItemsOneof1Type as IssuePropLabelsItemsOneof1Type, ) - from .group_0040 import IssuePropPullRequestType as IssuePropPullRequestType - from .group_0040 import IssueType as IssueType - from .group_0040 import SubIssuesSummaryType as SubIssuesSummaryType - from .group_0041 import IssueCommentType as IssueCommentType - from .group_0042 import ActorType as ActorType - from .group_0042 import ( + from .group_0041 import IssuePropPullRequestType as IssuePropPullRequestType + from .group_0041 import IssueType as IssueType + from .group_0041 import SubIssuesSummaryType as SubIssuesSummaryType + from .group_0042 import IssueCommentType as IssueCommentType + from .group_0043 import ActorType as ActorType + from .group_0043 import ( EventPropPayloadPropPagesItemsType as EventPropPayloadPropPagesItemsType, ) - from .group_0042 import EventPropPayloadType as EventPropPayloadType - from .group_0042 import EventPropRepoType as EventPropRepoType - from .group_0042 import EventType as EventType - from .group_0043 import FeedPropLinksType as FeedPropLinksType - from .group_0043 import FeedType as FeedType - from .group_0043 import LinkWithTypeType as LinkWithTypeType - from .group_0044 import BaseGistPropFilesType as BaseGistPropFilesType - from .group_0044 import BaseGistType as BaseGistType - from .group_0045 import ( + from .group_0043 import EventPropPayloadType as EventPropPayloadType + from .group_0043 import EventPropRepoType as EventPropRepoType + from .group_0043 import EventType as EventType + from .group_0044 import FeedPropLinksType as FeedPropLinksType + from .group_0044 import FeedType as FeedType + from .group_0044 import LinkWithTypeType as LinkWithTypeType + from .group_0045 import BaseGistPropFilesType as BaseGistPropFilesType + from .group_0045 import BaseGistType as BaseGistType + from .group_0046 import ( GistHistoryPropChangeStatusType as GistHistoryPropChangeStatusType, ) - from .group_0045 import GistHistoryType as GistHistoryType - from .group_0045 import ( + from .group_0046 import GistHistoryType as GistHistoryType + from .group_0046 import ( GistSimplePropForkOfPropFilesType as GistSimplePropForkOfPropFilesType, ) - from .group_0045 import GistSimplePropForkOfType as GistSimplePropForkOfType - from .group_0046 import GistSimplePropFilesType as GistSimplePropFilesType - from .group_0046 import GistSimplePropForksItemsType as GistSimplePropForksItemsType - from .group_0046 import GistSimpleType as GistSimpleType - from .group_0046 import PublicUserPropPlanType as PublicUserPropPlanType - from .group_0046 import PublicUserType as PublicUserType - from .group_0047 import GistCommentType as GistCommentType - from .group_0048 import ( + from .group_0046 import GistSimplePropForkOfType as GistSimplePropForkOfType + from .group_0047 import GistSimplePropFilesType as GistSimplePropFilesType + from .group_0047 import GistSimplePropForksItemsType as GistSimplePropForksItemsType + from .group_0047 import GistSimpleType as GistSimpleType + from .group_0047 import PublicUserPropPlanType as PublicUserPropPlanType + from .group_0047 import PublicUserType as PublicUserType + from .group_0048 import GistCommentType as GistCommentType + from .group_0049 import ( GistCommitPropChangeStatusType as GistCommitPropChangeStatusType, ) - from .group_0048 import GistCommitType as GistCommitType - from .group_0049 import GitignoreTemplateType as GitignoreTemplateType - from .group_0050 import LicenseType as LicenseType - from .group_0051 import MarketplaceListingPlanType as MarketplaceListingPlanType - from .group_0052 import MarketplacePurchaseType as MarketplacePurchaseType - from .group_0053 import ( + from .group_0049 import GistCommitType as GistCommitType + from .group_0050 import GitignoreTemplateType as GitignoreTemplateType + from .group_0051 import LicenseType as LicenseType + from .group_0052 import MarketplaceListingPlanType as MarketplaceListingPlanType + from .group_0053 import MarketplacePurchaseType as MarketplacePurchaseType + from .group_0054 import ( MarketplacePurchasePropMarketplacePendingChangeType as MarketplacePurchasePropMarketplacePendingChangeType, ) - from .group_0053 import ( + from .group_0054 import ( MarketplacePurchasePropMarketplacePurchaseType as MarketplacePurchasePropMarketplacePurchaseType, ) - from .group_0054 import ( + from .group_0055 import ( ApiOverviewPropDomainsPropActionsInboundType as ApiOverviewPropDomainsPropActionsInboundType, ) - from .group_0054 import ( + from .group_0055 import ( ApiOverviewPropDomainsPropArtifactAttestationsType as ApiOverviewPropDomainsPropArtifactAttestationsType, ) - from .group_0054 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType - from .group_0054 import ( + from .group_0055 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType + from .group_0055 import ( ApiOverviewPropSshKeyFingerprintsType as ApiOverviewPropSshKeyFingerprintsType, ) - from .group_0054 import ApiOverviewType as ApiOverviewType - from .group_0055 import ( + from .group_0055 import ApiOverviewType as ApiOverviewType + from .group_0056 import ( SecurityAndAnalysisPropAdvancedSecurityType as SecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0055 import ( + from .group_0056 import ( SecurityAndAnalysisPropDependabotSecurityUpdatesType as SecurityAndAnalysisPropDependabotSecurityUpdatesType, ) - from .group_0055 import ( + from .group_0056 import ( SecurityAndAnalysisPropSecretScanningAiDetectionType as SecurityAndAnalysisPropSecretScanningAiDetectionType, ) - from .group_0055 import ( + from .group_0056 import ( SecurityAndAnalysisPropSecretScanningNonProviderPatternsType as SecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) - from .group_0055 import ( + from .group_0056 import ( SecurityAndAnalysisPropSecretScanningPushProtectionType as SecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0055 import ( + from .group_0056 import ( SecurityAndAnalysisPropSecretScanningType as SecurityAndAnalysisPropSecretScanningType, ) - from .group_0055 import SecurityAndAnalysisType as SecurityAndAnalysisType - from .group_0056 import CodeOfConductType as CodeOfConductType - from .group_0056 import ( + from .group_0056 import SecurityAndAnalysisType as SecurityAndAnalysisType + from .group_0057 import CodeOfConductType as CodeOfConductType + from .group_0057 import ( MinimalRepositoryPropLicenseType as MinimalRepositoryPropLicenseType, ) - from .group_0056 import ( + from .group_0057 import ( MinimalRepositoryPropPermissionsType as MinimalRepositoryPropPermissionsType, ) - from .group_0056 import MinimalRepositoryType as MinimalRepositoryType - from .group_0057 import ThreadPropSubjectType as ThreadPropSubjectType - from .group_0057 import ThreadType as ThreadType - from .group_0058 import ThreadSubscriptionType as ThreadSubscriptionType - from .group_0059 import OrganizationSimpleType as OrganizationSimpleType - from .group_0060 import ( + from .group_0057 import MinimalRepositoryType as MinimalRepositoryType + from .group_0058 import ThreadPropSubjectType as ThreadPropSubjectType + from .group_0058 import ThreadType as ThreadType + from .group_0059 import ThreadSubscriptionType as ThreadSubscriptionType + from .group_0060 import OrganizationSimpleType as OrganizationSimpleType + from .group_0061 import ( BillingUsageReportPropUsageItemsItemsType as BillingUsageReportPropUsageItemsItemsType, ) - from .group_0060 import BillingUsageReportType as BillingUsageReportType - from .group_0061 import OrganizationFullPropPlanType as OrganizationFullPropPlanType - from .group_0061 import OrganizationFullType as OrganizationFullType - from .group_0062 import ( + from .group_0061 import BillingUsageReportType as BillingUsageReportType + from .group_0062 import OrganizationFullPropPlanType as OrganizationFullPropPlanType + from .group_0062 import OrganizationFullType as OrganizationFullType + from .group_0063 import ( ActionsCacheUsageOrgEnterpriseType as ActionsCacheUsageOrgEnterpriseType, ) - from .group_0063 import OidcCustomSubType as OidcCustomSubType from .group_0064 import ( + ActionsHostedRunnerMachineSpecType as ActionsHostedRunnerMachineSpecType, + ) + from .group_0065 import ( + ActionsHostedRunnerPoolImageType as ActionsHostedRunnerPoolImageType, + ) + from .group_0065 import ActionsHostedRunnerType as ActionsHostedRunnerType + from .group_0065 import PublicIpType as PublicIpType + from .group_0066 import ActionsHostedRunnerImageType as ActionsHostedRunnerImageType + from .group_0067 import ( + ActionsHostedRunnerLimitsPropPublicIpsType as ActionsHostedRunnerLimitsPropPublicIpsType, + ) + from .group_0067 import ( + ActionsHostedRunnerLimitsType as ActionsHostedRunnerLimitsType, + ) + from .group_0068 import OidcCustomSubType as OidcCustomSubType + from .group_0069 import ( ActionsOrganizationPermissionsType as ActionsOrganizationPermissionsType, ) - from .group_0065 import SelectedActionsType as SelectedActionsType - from .group_0066 import ( + from .group_0070 import SelectedActionsType as SelectedActionsType + from .group_0071 import ( ActionsGetDefaultWorkflowPermissionsType as ActionsGetDefaultWorkflowPermissionsType, ) - from .group_0067 import ( + from .group_0072 import ( ActionsSetDefaultWorkflowPermissionsType as ActionsSetDefaultWorkflowPermissionsType, ) - from .group_0068 import RunnerLabelType as RunnerLabelType - from .group_0069 import RunnerType as RunnerType - from .group_0070 import RunnerApplicationType as RunnerApplicationType - from .group_0071 import ( + from .group_0073 import RunnerLabelType as RunnerLabelType + from .group_0074 import RunnerType as RunnerType + from .group_0075 import RunnerApplicationType as RunnerApplicationType + from .group_0076 import ( AuthenticationTokenPropPermissionsType as AuthenticationTokenPropPermissionsType, ) - from .group_0071 import AuthenticationTokenType as AuthenticationTokenType - from .group_0072 import ActionsPublicKeyType as ActionsPublicKeyType - from .group_0073 import ( + from .group_0076 import AuthenticationTokenType as AuthenticationTokenType + from .group_0077 import ActionsPublicKeyType as ActionsPublicKeyType + from .group_0078 import ( CodeScanningAlertRuleSummaryType as CodeScanningAlertRuleSummaryType, ) - from .group_0074 import CodeScanningAnalysisToolType as CodeScanningAnalysisToolType - from .group_0075 import ( + from .group_0079 import CodeScanningAnalysisToolType as CodeScanningAnalysisToolType + from .group_0080 import ( CodeScanningAlertInstancePropMessageType as CodeScanningAlertInstancePropMessageType, ) - from .group_0075 import ( + from .group_0080 import ( CodeScanningAlertInstanceType as CodeScanningAlertInstanceType, ) - from .group_0075 import ( + from .group_0080 import ( CodeScanningAlertLocationType as CodeScanningAlertLocationType, ) - from .group_0076 import ( + from .group_0081 import ( CodeScanningOrganizationAlertItemsType as CodeScanningOrganizationAlertItemsType, ) - from .group_0077 import CodespaceMachineType as CodespaceMachineType - from .group_0078 import CodespacePropGitStatusType as CodespacePropGitStatusType - from .group_0078 import ( + from .group_0082 import CodespaceMachineType as CodespaceMachineType + from .group_0083 import CodespacePropGitStatusType as CodespacePropGitStatusType + from .group_0083 import ( CodespacePropRuntimeConstraintsType as CodespacePropRuntimeConstraintsType, ) - from .group_0078 import CodespaceType as CodespaceType - from .group_0079 import CodespacesPublicKeyType as CodespacesPublicKeyType - from .group_0080 import ( + from .group_0083 import CodespaceType as CodespaceType + from .group_0084 import CodespacesPublicKeyType as CodespacesPublicKeyType + from .group_0085 import ( CopilotOrganizationDetailsType as CopilotOrganizationDetailsType, ) - from .group_0080 import CopilotSeatBreakdownType as CopilotSeatBreakdownType - from .group_0081 import TeamSimpleType as TeamSimpleType - from .group_0082 import TeamPropPermissionsType as TeamPropPermissionsType - from .group_0082 import TeamType as TeamType - from .group_0083 import CopilotSeatDetailsType as CopilotSeatDetailsType - from .group_0083 import EnterpriseTeamType as EnterpriseTeamType - from .group_0083 import ( + from .group_0085 import CopilotSeatBreakdownType as CopilotSeatBreakdownType + from .group_0086 import TeamSimpleType as TeamSimpleType + from .group_0087 import TeamPropPermissionsType as TeamPropPermissionsType + from .group_0087 import TeamType as TeamType + from .group_0088 import CopilotSeatDetailsType as CopilotSeatDetailsType + from .group_0088 import EnterpriseTeamType as EnterpriseTeamType + from .group_0088 import ( OrgsOrgCopilotBillingSeatsGetResponse200Type as OrgsOrgCopilotBillingSeatsGetResponse200Type, ) - from .group_0084 import ( + from .group_0089 import ( CopilotDotcomChatPropModelsItemsType as CopilotDotcomChatPropModelsItemsType, ) - from .group_0084 import CopilotDotcomChatType as CopilotDotcomChatType - from .group_0084 import ( + from .group_0089 import CopilotDotcomChatType as CopilotDotcomChatType + from .group_0089 import ( CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType as CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType, ) - from .group_0084 import ( + from .group_0089 import ( CopilotDotcomPullRequestsPropRepositoriesItemsType as CopilotDotcomPullRequestsPropRepositoriesItemsType, ) - from .group_0084 import ( + from .group_0089 import ( CopilotDotcomPullRequestsType as CopilotDotcomPullRequestsType, ) - from .group_0084 import ( + from .group_0089 import ( CopilotIdeChatPropEditorsItemsPropModelsItemsType as CopilotIdeChatPropEditorsItemsPropModelsItemsType, ) - from .group_0084 import ( + from .group_0089 import ( CopilotIdeChatPropEditorsItemsType as CopilotIdeChatPropEditorsItemsType, ) - from .group_0084 import CopilotIdeChatType as CopilotIdeChatType - from .group_0084 import ( + from .group_0089 import CopilotIdeChatType as CopilotIdeChatType + from .group_0089 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType, ) - from .group_0084 import ( + from .group_0089 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType, ) - from .group_0084 import ( + from .group_0089 import ( CopilotIdeCodeCompletionsPropEditorsItemsType as CopilotIdeCodeCompletionsPropEditorsItemsType, ) - from .group_0084 import ( + from .group_0089 import ( CopilotIdeCodeCompletionsPropLanguagesItemsType as CopilotIdeCodeCompletionsPropLanguagesItemsType, ) - from .group_0084 import ( + from .group_0089 import ( CopilotIdeCodeCompletionsType as CopilotIdeCodeCompletionsType, ) - from .group_0084 import CopilotUsageMetricsDayType as CopilotUsageMetricsDayType - from .group_0085 import ( + from .group_0089 import CopilotUsageMetricsDayType as CopilotUsageMetricsDayType + from .group_0090 import ( CopilotUsageMetricsPropBreakdownItemsType as CopilotUsageMetricsPropBreakdownItemsType, ) - from .group_0085 import CopilotUsageMetricsType as CopilotUsageMetricsType - from .group_0086 import DependabotPublicKeyType as DependabotPublicKeyType - from .group_0087 import PackageType as PackageType - from .group_0088 import OrganizationInvitationType as OrganizationInvitationType - from .group_0089 import OrgHookPropConfigType as OrgHookPropConfigType - from .group_0089 import OrgHookType as OrgHookType - from .group_0090 import ( + from .group_0090 import CopilotUsageMetricsType as CopilotUsageMetricsType + from .group_0091 import DependabotPublicKeyType as DependabotPublicKeyType + from .group_0092 import PackageType as PackageType + from .group_0093 import OrganizationInvitationType as OrganizationInvitationType + from .group_0094 import OrgHookPropConfigType as OrgHookPropConfigType + from .group_0094 import OrgHookType as OrgHookType + from .group_0095 import ( ApiInsightsRouteStatsItemsType as ApiInsightsRouteStatsItemsType, ) - from .group_0091 import ( + from .group_0096 import ( ApiInsightsSubjectStatsItemsType as ApiInsightsSubjectStatsItemsType, ) - from .group_0092 import ApiInsightsSummaryStatsType as ApiInsightsSummaryStatsType - from .group_0093 import ( + from .group_0097 import ApiInsightsSummaryStatsType as ApiInsightsSummaryStatsType + from .group_0098 import ( ApiInsightsTimeStatsItemsType as ApiInsightsTimeStatsItemsType, ) - from .group_0094 import ( + from .group_0099 import ( ApiInsightsUserStatsItemsType as ApiInsightsUserStatsItemsType, ) - from .group_0095 import InteractionLimitResponseType as InteractionLimitResponseType - from .group_0096 import InteractionLimitType as InteractionLimitType - from .group_0097 import ( + from .group_0100 import InteractionLimitResponseType as InteractionLimitResponseType + from .group_0101 import InteractionLimitType as InteractionLimitType + from .group_0102 import ( OrgMembershipPropPermissionsType as OrgMembershipPropPermissionsType, ) - from .group_0097 import OrgMembershipType as OrgMembershipType - from .group_0098 import MigrationType as MigrationType - from .group_0099 import OrganizationRoleType as OrganizationRoleType - from .group_0099 import ( + from .group_0102 import OrgMembershipType as OrgMembershipType + from .group_0103 import MigrationType as MigrationType + from .group_0104 import OrganizationRoleType as OrganizationRoleType + from .group_0104 import ( OrgsOrgOrganizationRolesGetResponse200Type as OrgsOrgOrganizationRolesGetResponse200Type, ) - from .group_0100 import ( + from .group_0105 import ( TeamRoleAssignmentPropPermissionsType as TeamRoleAssignmentPropPermissionsType, ) - from .group_0100 import TeamRoleAssignmentType as TeamRoleAssignmentType - from .group_0101 import UserRoleAssignmentType as UserRoleAssignmentType - from .group_0102 import ( + from .group_0105 import TeamRoleAssignmentType as TeamRoleAssignmentType + from .group_0106 import UserRoleAssignmentType as UserRoleAssignmentType + from .group_0107 import ( PackageVersionPropMetadataPropContainerType as PackageVersionPropMetadataPropContainerType, ) - from .group_0102 import ( + from .group_0107 import ( PackageVersionPropMetadataPropDockerType as PackageVersionPropMetadataPropDockerType, ) - from .group_0102 import ( + from .group_0107 import ( PackageVersionPropMetadataType as PackageVersionPropMetadataType, ) - from .group_0102 import PackageVersionType as PackageVersionType - from .group_0103 import ( + from .group_0107 import PackageVersionType as PackageVersionType + from .group_0108 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType, ) - from .group_0103 import ( + from .group_0108 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType, ) - from .group_0103 import ( + from .group_0108 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType, ) - from .group_0103 import ( + from .group_0108 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsType as OrganizationProgrammaticAccessGrantRequestPropPermissionsType, ) - from .group_0103 import ( + from .group_0108 import ( OrganizationProgrammaticAccessGrantRequestType as OrganizationProgrammaticAccessGrantRequestType, ) - from .group_0104 import ( + from .group_0109 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType, ) - from .group_0104 import ( + from .group_0109 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType, ) - from .group_0104 import ( + from .group_0109 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType, ) - from .group_0104 import ( + from .group_0109 import ( OrganizationProgrammaticAccessGrantPropPermissionsType as OrganizationProgrammaticAccessGrantPropPermissionsType, ) - from .group_0104 import ( + from .group_0109 import ( OrganizationProgrammaticAccessGrantType as OrganizationProgrammaticAccessGrantType, ) - from .group_0105 import ( + from .group_0110 import ( OrgPrivateRegistryConfigurationWithSelectedRepositoriesType as OrgPrivateRegistryConfigurationWithSelectedRepositoriesType, ) - from .group_0106 import ProjectType as ProjectType - from .group_0107 import CustomPropertyType as CustomPropertyType - from .group_0108 import CustomPropertySetPayloadType as CustomPropertySetPayloadType - from .group_0109 import CustomPropertyValueType as CustomPropertyValueType - from .group_0110 import ( + from .group_0111 import ProjectType as ProjectType + from .group_0112 import CustomPropertyType as CustomPropertyType + from .group_0113 import CustomPropertySetPayloadType as CustomPropertySetPayloadType + from .group_0114 import CustomPropertyValueType as CustomPropertyValueType + from .group_0115 import ( OrgRepoCustomPropertyValuesType as OrgRepoCustomPropertyValuesType, ) - from .group_0111 import CodeOfConductSimpleType as CodeOfConductSimpleType - from .group_0112 import ( + from .group_0116 import CodeOfConductSimpleType as CodeOfConductSimpleType + from .group_0117 import ( FullRepositoryPropCustomPropertiesType as FullRepositoryPropCustomPropertiesType, ) - from .group_0112 import ( + from .group_0117 import ( FullRepositoryPropPermissionsType as FullRepositoryPropPermissionsType, ) - from .group_0112 import FullRepositoryType as FullRepositoryType - from .group_0113 import ( + from .group_0117 import FullRepositoryType as FullRepositoryType + from .group_0118 import ( RepositoryRulesetBypassActorType as RepositoryRulesetBypassActorType, ) - from .group_0114 import ( + from .group_0119 import ( RepositoryRulesetConditionsType as RepositoryRulesetConditionsType, ) - from .group_0115 import ( + from .group_0120 import ( RepositoryRulesetConditionsPropRefNameType as RepositoryRulesetConditionsPropRefNameType, ) - from .group_0116 import ( + from .group_0121 import ( RepositoryRulesetConditionsRepositoryNameTargetType as RepositoryRulesetConditionsRepositoryNameTargetType, ) - from .group_0117 import ( + from .group_0122 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) - from .group_0118 import ( + from .group_0123 import ( RepositoryRulesetConditionsRepositoryIdTargetType as RepositoryRulesetConditionsRepositoryIdTargetType, ) - from .group_0119 import ( + from .group_0124 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) - from .group_0120 import ( + from .group_0125 import ( RepositoryRulesetConditionsRepositoryPropertyTargetType as RepositoryRulesetConditionsRepositoryPropertyTargetType, ) - from .group_0121 import ( + from .group_0126 import ( RepositoryRulesetConditionsRepositoryPropertySpecType as RepositoryRulesetConditionsRepositoryPropertySpecType, ) - from .group_0121 import ( + from .group_0126 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) - from .group_0122 import ( + from .group_0127 import ( OrgRulesetConditionsOneof0Type as OrgRulesetConditionsOneof0Type, ) - from .group_0123 import ( + from .group_0128 import ( OrgRulesetConditionsOneof1Type as OrgRulesetConditionsOneof1Type, ) - from .group_0124 import ( + from .group_0129 import ( OrgRulesetConditionsOneof2Type as OrgRulesetConditionsOneof2Type, ) - from .group_0125 import RepositoryRuleCreationType as RepositoryRuleCreationType - from .group_0125 import RepositoryRuleDeletionType as RepositoryRuleDeletionType - from .group_0125 import ( + from .group_0130 import RepositoryRuleCreationType as RepositoryRuleCreationType + from .group_0130 import RepositoryRuleDeletionType as RepositoryRuleDeletionType + from .group_0130 import ( RepositoryRuleNonFastForwardType as RepositoryRuleNonFastForwardType, ) - from .group_0125 import ( + from .group_0130 import ( RepositoryRuleOneof15PropParametersType as RepositoryRuleOneof15PropParametersType, ) - from .group_0125 import RepositoryRuleOneof15Type as RepositoryRuleOneof15Type - from .group_0125 import ( + from .group_0130 import RepositoryRuleOneof15Type as RepositoryRuleOneof15Type + from .group_0130 import ( RepositoryRuleOneof17PropParametersType as RepositoryRuleOneof17PropParametersType, ) - from .group_0125 import RepositoryRuleOneof17Type as RepositoryRuleOneof17Type - from .group_0125 import ( + from .group_0130 import RepositoryRuleOneof17Type as RepositoryRuleOneof17Type + from .group_0130 import ( RepositoryRuleRequiredSignaturesType as RepositoryRuleRequiredSignaturesType, ) - from .group_0126 import RepositoryRuleUpdateType as RepositoryRuleUpdateType - from .group_0127 import ( + from .group_0131 import RepositoryRuleUpdateType as RepositoryRuleUpdateType + from .group_0132 import ( RepositoryRuleUpdatePropParametersType as RepositoryRuleUpdatePropParametersType, ) - from .group_0128 import ( + from .group_0133 import ( RepositoryRuleOneof16PropParametersType as RepositoryRuleOneof16PropParametersType, ) - from .group_0128 import RepositoryRuleOneof16Type as RepositoryRuleOneof16Type - from .group_0128 import ( + from .group_0133 import RepositoryRuleOneof16Type as RepositoryRuleOneof16Type + from .group_0133 import ( RepositoryRuleRequiredLinearHistoryType as RepositoryRuleRequiredLinearHistoryType, ) - from .group_0129 import RepositoryRuleMergeQueueType as RepositoryRuleMergeQueueType - from .group_0130 import ( + from .group_0134 import RepositoryRuleMergeQueueType as RepositoryRuleMergeQueueType + from .group_0135 import ( RepositoryRuleMergeQueuePropParametersType as RepositoryRuleMergeQueuePropParametersType, ) - from .group_0131 import ( + from .group_0136 import ( RepositoryRuleRequiredDeploymentsType as RepositoryRuleRequiredDeploymentsType, ) - from .group_0132 import ( + from .group_0137 import ( RepositoryRuleRequiredDeploymentsPropParametersType as RepositoryRuleRequiredDeploymentsPropParametersType, ) - from .group_0133 import ( + from .group_0138 import ( RepositoryRuleParamsRequiredReviewerConfigurationType as RepositoryRuleParamsRequiredReviewerConfigurationType, ) - from .group_0134 import ( + from .group_0139 import ( RepositoryRulePullRequestType as RepositoryRulePullRequestType, ) - from .group_0135 import ( + from .group_0140 import ( RepositoryRulePullRequestPropParametersType as RepositoryRulePullRequestPropParametersType, ) - from .group_0136 import ( + from .group_0141 import ( RepositoryRuleRequiredStatusChecksType as RepositoryRuleRequiredStatusChecksType, ) - from .group_0137 import ( + from .group_0142 import ( RepositoryRuleParamsStatusCheckConfigurationType as RepositoryRuleParamsStatusCheckConfigurationType, ) - from .group_0137 import ( + from .group_0142 import ( RepositoryRuleRequiredStatusChecksPropParametersType as RepositoryRuleRequiredStatusChecksPropParametersType, ) - from .group_0138 import ( + from .group_0143 import ( RepositoryRuleCommitMessagePatternType as RepositoryRuleCommitMessagePatternType, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryRuleCommitMessagePatternPropParametersType as RepositoryRuleCommitMessagePatternPropParametersType, ) - from .group_0140 import ( + from .group_0145 import ( RepositoryRuleCommitAuthorEmailPatternType as RepositoryRuleCommitAuthorEmailPatternType, ) - from .group_0141 import ( + from .group_0146 import ( RepositoryRuleCommitAuthorEmailPatternPropParametersType as RepositoryRuleCommitAuthorEmailPatternPropParametersType, ) - from .group_0142 import ( + from .group_0147 import ( RepositoryRuleCommitterEmailPatternType as RepositoryRuleCommitterEmailPatternType, ) - from .group_0143 import ( + from .group_0148 import ( RepositoryRuleCommitterEmailPatternPropParametersType as RepositoryRuleCommitterEmailPatternPropParametersType, ) - from .group_0144 import ( + from .group_0149 import ( RepositoryRuleBranchNamePatternType as RepositoryRuleBranchNamePatternType, ) - from .group_0145 import ( + from .group_0150 import ( RepositoryRuleBranchNamePatternPropParametersType as RepositoryRuleBranchNamePatternPropParametersType, ) - from .group_0146 import ( + from .group_0151 import ( RepositoryRuleTagNamePatternType as RepositoryRuleTagNamePatternType, ) - from .group_0147 import ( + from .group_0152 import ( RepositoryRuleTagNamePatternPropParametersType as RepositoryRuleTagNamePatternPropParametersType, ) - from .group_0148 import ( + from .group_0153 import ( RepositoryRuleParamsRestrictedCommitsType as RepositoryRuleParamsRestrictedCommitsType, ) - from .group_0149 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType - from .group_0150 import ( + from .group_0154 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType + from .group_0155 import ( RepositoryRuleParamsWorkflowFileReferenceType as RepositoryRuleParamsWorkflowFileReferenceType, ) - from .group_0150 import ( + from .group_0155 import ( RepositoryRuleWorkflowsPropParametersType as RepositoryRuleWorkflowsPropParametersType, ) - from .group_0151 import ( + from .group_0156 import ( RepositoryRuleCodeScanningType as RepositoryRuleCodeScanningType, ) - from .group_0152 import ( + from .group_0157 import ( RepositoryRuleCodeScanningPropParametersType as RepositoryRuleCodeScanningPropParametersType, ) - from .group_0152 import ( + from .group_0157 import ( RepositoryRuleParamsCodeScanningToolType as RepositoryRuleParamsCodeScanningToolType, ) - from .group_0153 import ( + from .group_0158 import ( RepositoryRuleOneof18PropParametersType as RepositoryRuleOneof18PropParametersType, ) - from .group_0153 import RepositoryRuleOneof18Type as RepositoryRuleOneof18Type - from .group_0154 import ( + from .group_0158 import RepositoryRuleOneof18Type as RepositoryRuleOneof18Type + from .group_0159 import ( RepositoryRulesetPropLinksPropHtmlType as RepositoryRulesetPropLinksPropHtmlType, ) - from .group_0154 import ( + from .group_0159 import ( RepositoryRulesetPropLinksPropSelfType as RepositoryRulesetPropLinksPropSelfType, ) - from .group_0154 import ( + from .group_0159 import ( RepositoryRulesetPropLinksType as RepositoryRulesetPropLinksType, ) - from .group_0154 import RepositoryRulesetType as RepositoryRulesetType - from .group_0155 import RuleSuitesItemsType as RuleSuitesItemsType - from .group_0156 import ( + from .group_0159 import RepositoryRulesetType as RepositoryRulesetType + from .group_0160 import RuleSuitesItemsType as RuleSuitesItemsType + from .group_0161 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSourceType as RuleSuitePropRuleEvaluationsItemsPropRuleSourceType, ) - from .group_0156 import ( + from .group_0161 import ( RuleSuitePropRuleEvaluationsItemsType as RuleSuitePropRuleEvaluationsItemsType, ) - from .group_0156 import RuleSuiteType as RuleSuiteType - from .group_0157 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType - from .group_0158 import ( + from .group_0161 import RuleSuiteType as RuleSuiteType + from .group_0162 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType + from .group_0163 import ( RepositoryAdvisoryPropCreditsItemsType as RepositoryAdvisoryPropCreditsItemsType, ) - from .group_0158 import ( + from .group_0163 import ( RepositoryAdvisoryPropCvssType as RepositoryAdvisoryPropCvssType, ) - from .group_0158 import ( + from .group_0163 import ( RepositoryAdvisoryPropCwesItemsType as RepositoryAdvisoryPropCwesItemsType, ) - from .group_0158 import ( + from .group_0163 import ( RepositoryAdvisoryPropIdentifiersItemsType as RepositoryAdvisoryPropIdentifiersItemsType, ) - from .group_0158 import ( + from .group_0163 import ( RepositoryAdvisoryPropSubmissionType as RepositoryAdvisoryPropSubmissionType, ) - from .group_0158 import RepositoryAdvisoryType as RepositoryAdvisoryType - from .group_0158 import ( + from .group_0163 import RepositoryAdvisoryType as RepositoryAdvisoryType + from .group_0163 import ( RepositoryAdvisoryVulnerabilityPropPackageType as RepositoryAdvisoryVulnerabilityPropPackageType, ) - from .group_0158 import ( + from .group_0163 import ( RepositoryAdvisoryVulnerabilityType as RepositoryAdvisoryVulnerabilityType, ) - from .group_0159 import ( + from .group_0164 import ( ActionsBillingUsagePropMinutesUsedBreakdownType as ActionsBillingUsagePropMinutesUsedBreakdownType, ) - from .group_0159 import ActionsBillingUsageType as ActionsBillingUsageType - from .group_0160 import PackagesBillingUsageType as PackagesBillingUsageType - from .group_0161 import CombinedBillingUsageType as CombinedBillingUsageType - from .group_0162 import TeamFullType as TeamFullType - from .group_0162 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType - from .group_0162 import TeamOrganizationType as TeamOrganizationType - from .group_0163 import TeamDiscussionType as TeamDiscussionType - from .group_0164 import TeamDiscussionCommentType as TeamDiscussionCommentType - from .group_0165 import ReactionType as ReactionType - from .group_0166 import TeamMembershipType as TeamMembershipType - from .group_0167 import ( + from .group_0164 import ActionsBillingUsageType as ActionsBillingUsageType + from .group_0165 import PackagesBillingUsageType as PackagesBillingUsageType + from .group_0166 import CombinedBillingUsageType as CombinedBillingUsageType + from .group_0167 import NetworkSettingsType as NetworkSettingsType + from .group_0168 import TeamFullType as TeamFullType + from .group_0168 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType + from .group_0168 import TeamOrganizationType as TeamOrganizationType + from .group_0169 import TeamDiscussionType as TeamDiscussionType + from .group_0170 import TeamDiscussionCommentType as TeamDiscussionCommentType + from .group_0171 import ReactionType as ReactionType + from .group_0172 import TeamMembershipType as TeamMembershipType + from .group_0173 import ( TeamProjectPropPermissionsType as TeamProjectPropPermissionsType, ) - from .group_0167 import TeamProjectType as TeamProjectType - from .group_0168 import ( + from .group_0173 import TeamProjectType as TeamProjectType + from .group_0174 import ( TeamRepositoryPropPermissionsType as TeamRepositoryPropPermissionsType, ) - from .group_0168 import TeamRepositoryType as TeamRepositoryType - from .group_0169 import ProjectCardType as ProjectCardType - from .group_0170 import ProjectColumnType as ProjectColumnType - from .group_0171 import ( + from .group_0174 import TeamRepositoryType as TeamRepositoryType + from .group_0175 import ProjectCardType as ProjectCardType + from .group_0176 import ProjectColumnType as ProjectColumnType + from .group_0177 import ( ProjectCollaboratorPermissionType as ProjectCollaboratorPermissionType, ) - from .group_0172 import RateLimitType as RateLimitType - from .group_0173 import RateLimitOverviewType as RateLimitOverviewType - from .group_0174 import ( + from .group_0178 import RateLimitType as RateLimitType + from .group_0179 import RateLimitOverviewType as RateLimitOverviewType + from .group_0180 import ( RateLimitOverviewPropResourcesType as RateLimitOverviewPropResourcesType, ) - from .group_0175 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType - from .group_0175 import ArtifactType as ArtifactType - from .group_0176 import ( + from .group_0181 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType + from .group_0181 import ArtifactType as ArtifactType + from .group_0182 import ( ActionsCacheListPropActionsCachesItemsType as ActionsCacheListPropActionsCachesItemsType, ) - from .group_0176 import ActionsCacheListType as ActionsCacheListType - from .group_0177 import JobPropStepsItemsType as JobPropStepsItemsType - from .group_0177 import JobType as JobType - from .group_0178 import OidcCustomSubRepoType as OidcCustomSubRepoType - from .group_0179 import ActionsSecretType as ActionsSecretType - from .group_0180 import ActionsVariableType as ActionsVariableType - from .group_0181 import ( + from .group_0182 import ActionsCacheListType as ActionsCacheListType + from .group_0183 import JobPropStepsItemsType as JobPropStepsItemsType + from .group_0183 import JobType as JobType + from .group_0184 import OidcCustomSubRepoType as OidcCustomSubRepoType + from .group_0185 import ActionsSecretType as ActionsSecretType + from .group_0186 import ActionsVariableType as ActionsVariableType + from .group_0187 import ( ActionsRepositoryPermissionsType as ActionsRepositoryPermissionsType, ) - from .group_0182 import ( + from .group_0188 import ( ActionsWorkflowAccessToRepositoryType as ActionsWorkflowAccessToRepositoryType, ) - from .group_0183 import ( + from .group_0189 import ( PullRequestMinimalPropBasePropRepoType as PullRequestMinimalPropBasePropRepoType, ) - from .group_0183 import ( + from .group_0189 import ( PullRequestMinimalPropBaseType as PullRequestMinimalPropBaseType, ) - from .group_0183 import ( + from .group_0189 import ( PullRequestMinimalPropHeadPropRepoType as PullRequestMinimalPropHeadPropRepoType, ) - from .group_0183 import ( + from .group_0189 import ( PullRequestMinimalPropHeadType as PullRequestMinimalPropHeadType, ) - from .group_0183 import PullRequestMinimalType as PullRequestMinimalType - from .group_0184 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType - from .group_0184 import ( + from .group_0189 import PullRequestMinimalType as PullRequestMinimalType + from .group_0190 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType + from .group_0190 import ( SimpleCommitPropCommitterType as SimpleCommitPropCommitterType, ) - from .group_0184 import SimpleCommitType as SimpleCommitType - from .group_0185 import ReferencedWorkflowType as ReferencedWorkflowType - from .group_0185 import WorkflowRunType as WorkflowRunType - from .group_0186 import ( + from .group_0190 import SimpleCommitType as SimpleCommitType + from .group_0191 import ReferencedWorkflowType as ReferencedWorkflowType + from .group_0191 import WorkflowRunType as WorkflowRunType + from .group_0192 import ( EnvironmentApprovalsPropEnvironmentsItemsType as EnvironmentApprovalsPropEnvironmentsItemsType, ) - from .group_0186 import EnvironmentApprovalsType as EnvironmentApprovalsType - from .group_0187 import ( + from .group_0192 import EnvironmentApprovalsType as EnvironmentApprovalsType + from .group_0193 import ( ReviewCustomGatesCommentRequiredType as ReviewCustomGatesCommentRequiredType, ) - from .group_0188 import ( + from .group_0194 import ( ReviewCustomGatesStateRequiredType as ReviewCustomGatesStateRequiredType, ) - from .group_0189 import ( + from .group_0195 import ( PendingDeploymentPropEnvironmentType as PendingDeploymentPropEnvironmentType, ) - from .group_0189 import ( + from .group_0195 import ( PendingDeploymentPropReviewersItemsType as PendingDeploymentPropReviewersItemsType, ) - from .group_0189 import PendingDeploymentType as PendingDeploymentType - from .group_0190 import ( + from .group_0195 import PendingDeploymentType as PendingDeploymentType + from .group_0196 import ( DeploymentPropPayloadOneof0Type as DeploymentPropPayloadOneof0Type, ) - from .group_0190 import DeploymentType as DeploymentType - from .group_0191 import ( + from .group_0196 import DeploymentType as DeploymentType + from .group_0197 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType as WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType, ) - from .group_0191 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropMacosType as WorkflowRunUsagePropBillablePropMacosType, ) - from .group_0191 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType, ) - from .group_0191 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropUbuntuType as WorkflowRunUsagePropBillablePropUbuntuType, ) - from .group_0191 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType, ) - from .group_0191 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropWindowsType as WorkflowRunUsagePropBillablePropWindowsType, ) - from .group_0191 import ( + from .group_0197 import ( WorkflowRunUsagePropBillableType as WorkflowRunUsagePropBillableType, ) - from .group_0191 import WorkflowRunUsageType as WorkflowRunUsageType - from .group_0192 import ( + from .group_0197 import WorkflowRunUsageType as WorkflowRunUsageType + from .group_0198 import ( WorkflowUsagePropBillablePropMacosType as WorkflowUsagePropBillablePropMacosType, ) - from .group_0192 import ( + from .group_0198 import ( WorkflowUsagePropBillablePropUbuntuType as WorkflowUsagePropBillablePropUbuntuType, ) - from .group_0192 import ( + from .group_0198 import ( WorkflowUsagePropBillablePropWindowsType as WorkflowUsagePropBillablePropWindowsType, ) - from .group_0192 import ( + from .group_0198 import ( WorkflowUsagePropBillableType as WorkflowUsagePropBillableType, ) - from .group_0192 import WorkflowUsageType as WorkflowUsageType - from .group_0193 import ActivityType as ActivityType - from .group_0194 import AutolinkType as AutolinkType - from .group_0195 import ( + from .group_0198 import WorkflowUsageType as WorkflowUsageType + from .group_0199 import ActivityType as ActivityType + from .group_0200 import AutolinkType as AutolinkType + from .group_0201 import ( CheckAutomatedSecurityFixesType as CheckAutomatedSecurityFixesType, ) - from .group_0196 import ( + from .group_0202 import ( ProtectedBranchPullRequestReviewType as ProtectedBranchPullRequestReviewType, ) - from .group_0197 import ( + from .group_0203 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, ) - from .group_0197 import ( + from .group_0203 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictionsType as ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, ) - from .group_0198 import ( + from .group_0204 import ( BranchRestrictionPolicyPropAppsItemsPropOwnerType as BranchRestrictionPolicyPropAppsItemsPropOwnerType, ) - from .group_0198 import ( + from .group_0204 import ( BranchRestrictionPolicyPropAppsItemsPropPermissionsType as BranchRestrictionPolicyPropAppsItemsPropPermissionsType, ) - from .group_0198 import ( + from .group_0204 import ( BranchRestrictionPolicyPropAppsItemsType as BranchRestrictionPolicyPropAppsItemsType, ) - from .group_0198 import ( + from .group_0204 import ( BranchRestrictionPolicyPropTeamsItemsType as BranchRestrictionPolicyPropTeamsItemsType, ) - from .group_0198 import ( + from .group_0204 import ( BranchRestrictionPolicyPropUsersItemsType as BranchRestrictionPolicyPropUsersItemsType, ) - from .group_0198 import BranchRestrictionPolicyType as BranchRestrictionPolicyType - from .group_0199 import ( + from .group_0204 import BranchRestrictionPolicyType as BranchRestrictionPolicyType + from .group_0205 import ( BranchProtectionPropAllowDeletionsType as BranchProtectionPropAllowDeletionsType, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropAllowForcePushesType as BranchProtectionPropAllowForcePushesType, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropAllowForkSyncingType as BranchProtectionPropAllowForkSyncingType, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropBlockCreationsType as BranchProtectionPropBlockCreationsType, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropLockBranchType as BranchProtectionPropLockBranchType, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropRequiredConversationResolutionType as BranchProtectionPropRequiredConversationResolutionType, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropRequiredLinearHistoryType as BranchProtectionPropRequiredLinearHistoryType, ) - from .group_0199 import ( + from .group_0205 import ( BranchProtectionPropRequiredSignaturesType as BranchProtectionPropRequiredSignaturesType, ) - from .group_0199 import BranchProtectionType as BranchProtectionType - from .group_0199 import ( + from .group_0205 import BranchProtectionType as BranchProtectionType + from .group_0205 import ( ProtectedBranchAdminEnforcedType as ProtectedBranchAdminEnforcedType, ) - from .group_0199 import ( + from .group_0205 import ( ProtectedBranchRequiredStatusCheckPropChecksItemsType as ProtectedBranchRequiredStatusCheckPropChecksItemsType, ) - from .group_0199 import ( + from .group_0205 import ( ProtectedBranchRequiredStatusCheckType as ProtectedBranchRequiredStatusCheckType, ) - from .group_0200 import ShortBranchPropCommitType as ShortBranchPropCommitType - from .group_0200 import ShortBranchType as ShortBranchType - from .group_0201 import GitUserType as GitUserType - from .group_0202 import VerificationType as VerificationType - from .group_0203 import DiffEntryType as DiffEntryType - from .group_0204 import CommitPropParentsItemsType as CommitPropParentsItemsType - from .group_0204 import CommitPropStatsType as CommitPropStatsType - from .group_0204 import CommitType as CommitType - from .group_0204 import EmptyObjectType as EmptyObjectType - from .group_0205 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType - from .group_0205 import CommitPropCommitType as CommitPropCommitType - from .group_0206 import ( + from .group_0206 import ShortBranchPropCommitType as ShortBranchPropCommitType + from .group_0206 import ShortBranchType as ShortBranchType + from .group_0207 import GitUserType as GitUserType + from .group_0208 import VerificationType as VerificationType + from .group_0209 import DiffEntryType as DiffEntryType + from .group_0210 import CommitPropParentsItemsType as CommitPropParentsItemsType + from .group_0210 import CommitPropStatsType as CommitPropStatsType + from .group_0210 import CommitType as CommitType + from .group_0210 import EmptyObjectType as EmptyObjectType + from .group_0211 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType + from .group_0211 import CommitPropCommitType as CommitPropCommitType + from .group_0212 import ( BranchWithProtectionPropLinksType as BranchWithProtectionPropLinksType, ) - from .group_0206 import BranchWithProtectionType as BranchWithProtectionType - from .group_0207 import ( + from .group_0212 import BranchWithProtectionType as BranchWithProtectionType + from .group_0213 import ( ProtectedBranchPropAllowDeletionsType as ProtectedBranchPropAllowDeletionsType, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropAllowForcePushesType as ProtectedBranchPropAllowForcePushesType, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropAllowForkSyncingType as ProtectedBranchPropAllowForkSyncingType, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropBlockCreationsType as ProtectedBranchPropBlockCreationsType, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropEnforceAdminsType as ProtectedBranchPropEnforceAdminsType, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropLockBranchType as ProtectedBranchPropLockBranchType, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropRequiredConversationResolutionType as ProtectedBranchPropRequiredConversationResolutionType, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropRequiredLinearHistoryType as ProtectedBranchPropRequiredLinearHistoryType, ) - from .group_0207 import ( + from .group_0213 import ( ProtectedBranchPropRequiredSignaturesType as ProtectedBranchPropRequiredSignaturesType, ) - from .group_0207 import ProtectedBranchType as ProtectedBranchType - from .group_0207 import ( + from .group_0213 import ProtectedBranchType as ProtectedBranchType + from .group_0213 import ( StatusCheckPolicyPropChecksItemsType as StatusCheckPolicyPropChecksItemsType, ) - from .group_0207 import StatusCheckPolicyType as StatusCheckPolicyType - from .group_0208 import ( + from .group_0213 import StatusCheckPolicyType as StatusCheckPolicyType + from .group_0214 import ( ProtectedBranchPropRequiredPullRequestReviewsType as ProtectedBranchPropRequiredPullRequestReviewsType, ) - from .group_0209 import ( + from .group_0215 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0209 import ( + from .group_0215 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0210 import DeploymentSimpleType as DeploymentSimpleType - from .group_0211 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType - from .group_0211 import CheckRunPropOutputType as CheckRunPropOutputType - from .group_0211 import CheckRunType as CheckRunType - from .group_0212 import CheckAnnotationType as CheckAnnotationType - from .group_0213 import CheckSuiteType as CheckSuiteType - from .group_0213 import ( + from .group_0216 import DeploymentSimpleType as DeploymentSimpleType + from .group_0217 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType + from .group_0217 import CheckRunPropOutputType as CheckRunPropOutputType + from .group_0217 import CheckRunType as CheckRunType + from .group_0218 import CheckAnnotationType as CheckAnnotationType + from .group_0219 import CheckSuiteType as CheckSuiteType + from .group_0219 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type, ) - from .group_0214 import ( + from .group_0220 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType, ) - from .group_0214 import ( + from .group_0220 import ( CheckSuitePreferencePropPreferencesType as CheckSuitePreferencePropPreferencesType, ) - from .group_0214 import CheckSuitePreferenceType as CheckSuitePreferenceType - from .group_0215 import CodeScanningAlertItemsType as CodeScanningAlertItemsType - from .group_0216 import CodeScanningAlertRuleType as CodeScanningAlertRuleType - from .group_0216 import CodeScanningAlertType as CodeScanningAlertType - from .group_0217 import CodeScanningAutofixType as CodeScanningAutofixType - from .group_0218 import ( + from .group_0220 import CheckSuitePreferenceType as CheckSuitePreferenceType + from .group_0221 import CodeScanningAlertItemsType as CodeScanningAlertItemsType + from .group_0222 import CodeScanningAlertRuleType as CodeScanningAlertRuleType + from .group_0222 import CodeScanningAlertType as CodeScanningAlertType + from .group_0223 import CodeScanningAutofixType as CodeScanningAutofixType + from .group_0224 import ( CodeScanningAutofixCommitsType as CodeScanningAutofixCommitsType, ) - from .group_0219 import ( + from .group_0225 import ( CodeScanningAutofixCommitsResponseType as CodeScanningAutofixCommitsResponseType, ) - from .group_0220 import CodeScanningAnalysisType as CodeScanningAnalysisType - from .group_0221 import ( + from .group_0226 import CodeScanningAnalysisType as CodeScanningAnalysisType + from .group_0227 import ( CodeScanningAnalysisDeletionType as CodeScanningAnalysisDeletionType, ) - from .group_0222 import ( + from .group_0228 import ( CodeScanningCodeqlDatabaseType as CodeScanningCodeqlDatabaseType, ) - from .group_0223 import ( + from .group_0229 import ( CodeScanningVariantAnalysisRepositoryType as CodeScanningVariantAnalysisRepositoryType, ) - from .group_0224 import ( + from .group_0230 import ( CodeScanningVariantAnalysisSkippedRepoGroupType as CodeScanningVariantAnalysisSkippedRepoGroupType, ) - from .group_0225 import ( + from .group_0231 import ( CodeScanningVariantAnalysisType as CodeScanningVariantAnalysisType, ) - from .group_0226 import ( + from .group_0232 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItemsType as CodeScanningVariantAnalysisPropScannedRepositoriesItemsType, ) - from .group_0227 import ( + from .group_0233 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType, ) - from .group_0227 import ( + from .group_0233 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesType as CodeScanningVariantAnalysisPropSkippedRepositoriesType, ) - from .group_0228 import ( + from .group_0234 import ( CodeScanningVariantAnalysisRepoTaskType as CodeScanningVariantAnalysisRepoTaskType, ) - from .group_0229 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType - from .group_0230 import ( + from .group_0235 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType + from .group_0236 import ( CodeScanningDefaultSetupUpdateType as CodeScanningDefaultSetupUpdateType, ) - from .group_0231 import ( + from .group_0237 import ( CodeScanningDefaultSetupUpdateResponseType as CodeScanningDefaultSetupUpdateResponseType, ) - from .group_0232 import ( + from .group_0238 import ( CodeScanningSarifsReceiptType as CodeScanningSarifsReceiptType, ) - from .group_0233 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType - from .group_0234 import ( + from .group_0239 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType + from .group_0240 import ( CodeSecurityConfigurationForRepositoryType as CodeSecurityConfigurationForRepositoryType, ) - from .group_0235 import ( + from .group_0241 import ( CodeownersErrorsPropErrorsItemsType as CodeownersErrorsPropErrorsItemsType, ) - from .group_0235 import CodeownersErrorsType as CodeownersErrorsType - from .group_0236 import ( + from .group_0241 import CodeownersErrorsType as CodeownersErrorsType + from .group_0242 import ( CodespacesPermissionsCheckForDevcontainerType as CodespacesPermissionsCheckForDevcontainerType, ) - from .group_0237 import RepositoryInvitationType as RepositoryInvitationType - from .group_0238 import ( + from .group_0243 import RepositoryInvitationType as RepositoryInvitationType + from .group_0244 import ( CollaboratorPropPermissionsType as CollaboratorPropPermissionsType, ) - from .group_0238 import CollaboratorType as CollaboratorType - from .group_0238 import ( + from .group_0244 import CollaboratorType as CollaboratorType + from .group_0244 import ( RepositoryCollaboratorPermissionType as RepositoryCollaboratorPermissionType, ) - from .group_0239 import CommitCommentType as CommitCommentType - from .group_0239 import ( + from .group_0245 import CommitCommentType as CommitCommentType + from .group_0245 import ( TimelineCommitCommentedEventType as TimelineCommitCommentedEventType, ) - from .group_0240 import BranchShortPropCommitType as BranchShortPropCommitType - from .group_0240 import BranchShortType as BranchShortType - from .group_0241 import LinkType as LinkType - from .group_0242 import AutoMergeType as AutoMergeType - from .group_0243 import ( + from .group_0246 import BranchShortPropCommitType as BranchShortPropCommitType + from .group_0246 import BranchShortType as BranchShortType + from .group_0247 import LinkType as LinkType + from .group_0248 import AutoMergeType as AutoMergeType + from .group_0249 import ( PullRequestSimplePropLabelsItemsType as PullRequestSimplePropLabelsItemsType, ) - from .group_0243 import PullRequestSimpleType as PullRequestSimpleType - from .group_0244 import ( + from .group_0249 import PullRequestSimpleType as PullRequestSimpleType + from .group_0250 import ( PullRequestSimplePropBaseType as PullRequestSimplePropBaseType, ) - from .group_0244 import ( + from .group_0250 import ( PullRequestSimplePropHeadType as PullRequestSimplePropHeadType, ) - from .group_0245 import ( + from .group_0251 import ( PullRequestSimplePropLinksType as PullRequestSimplePropLinksType, ) - from .group_0246 import CombinedCommitStatusType as CombinedCommitStatusType - from .group_0246 import SimpleCommitStatusType as SimpleCommitStatusType - from .group_0247 import StatusType as StatusType - from .group_0248 import CommunityHealthFileType as CommunityHealthFileType - from .group_0248 import ( + from .group_0252 import CombinedCommitStatusType as CombinedCommitStatusType + from .group_0252 import SimpleCommitStatusType as SimpleCommitStatusType + from .group_0253 import StatusType as StatusType + from .group_0254 import CommunityHealthFileType as CommunityHealthFileType + from .group_0254 import ( CommunityProfilePropFilesType as CommunityProfilePropFilesType, ) - from .group_0248 import CommunityProfileType as CommunityProfileType - from .group_0249 import CommitComparisonType as CommitComparisonType - from .group_0250 import ( + from .group_0254 import CommunityProfileType as CommunityProfileType + from .group_0255 import CommitComparisonType as CommitComparisonType + from .group_0256 import ( ContentTreePropEntriesItemsPropLinksType as ContentTreePropEntriesItemsPropLinksType, ) - from .group_0250 import ( + from .group_0256 import ( ContentTreePropEntriesItemsType as ContentTreePropEntriesItemsType, ) - from .group_0250 import ContentTreePropLinksType as ContentTreePropLinksType - from .group_0250 import ContentTreeType as ContentTreeType - from .group_0251 import ( + from .group_0256 import ContentTreePropLinksType as ContentTreePropLinksType + from .group_0256 import ContentTreeType as ContentTreeType + from .group_0257 import ( ContentDirectoryItemsPropLinksType as ContentDirectoryItemsPropLinksType, ) - from .group_0251 import ContentDirectoryItemsType as ContentDirectoryItemsType - from .group_0252 import ContentFilePropLinksType as ContentFilePropLinksType - from .group_0252 import ContentFileType as ContentFileType - from .group_0253 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType - from .group_0253 import ContentSymlinkType as ContentSymlinkType - from .group_0254 import ( + from .group_0257 import ContentDirectoryItemsType as ContentDirectoryItemsType + from .group_0258 import ContentFilePropLinksType as ContentFilePropLinksType + from .group_0258 import ContentFileType as ContentFileType + from .group_0259 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType + from .group_0259 import ContentSymlinkType as ContentSymlinkType + from .group_0260 import ( ContentSubmodulePropLinksType as ContentSubmodulePropLinksType, ) - from .group_0254 import ContentSubmoduleType as ContentSubmoduleType - from .group_0255 import ( + from .group_0260 import ContentSubmoduleType as ContentSubmoduleType + from .group_0261 import ( FileCommitPropCommitPropAuthorType as FileCommitPropCommitPropAuthorType, ) - from .group_0255 import ( + from .group_0261 import ( FileCommitPropCommitPropCommitterType as FileCommitPropCommitPropCommitterType, ) - from .group_0255 import ( + from .group_0261 import ( FileCommitPropCommitPropParentsItemsType as FileCommitPropCommitPropParentsItemsType, ) - from .group_0255 import ( + from .group_0261 import ( FileCommitPropCommitPropTreeType as FileCommitPropCommitPropTreeType, ) - from .group_0255 import ( + from .group_0261 import ( FileCommitPropCommitPropVerificationType as FileCommitPropCommitPropVerificationType, ) - from .group_0255 import FileCommitPropCommitType as FileCommitPropCommitType - from .group_0255 import ( + from .group_0261 import FileCommitPropCommitType as FileCommitPropCommitType + from .group_0261 import ( FileCommitPropContentPropLinksType as FileCommitPropContentPropLinksType, ) - from .group_0255 import FileCommitPropContentType as FileCommitPropContentType - from .group_0255 import FileCommitType as FileCommitType - from .group_0256 import ( + from .group_0261 import FileCommitPropContentType as FileCommitPropContentType + from .group_0261 import FileCommitType as FileCommitType + from .group_0262 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType as RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType, ) - from .group_0256 import ( + from .group_0262 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningType as RepositoryRuleViolationErrorPropMetadataPropSecretScanningType, ) - from .group_0256 import ( + from .group_0262 import ( RepositoryRuleViolationErrorPropMetadataType as RepositoryRuleViolationErrorPropMetadataType, ) - from .group_0256 import ( + from .group_0262 import ( RepositoryRuleViolationErrorType as RepositoryRuleViolationErrorType, ) - from .group_0257 import ContributorType as ContributorType - from .group_0258 import DependabotAlertType as DependabotAlertType - from .group_0259 import ( + from .group_0263 import ContributorType as ContributorType + from .group_0264 import DependabotAlertType as DependabotAlertType + from .group_0265 import ( DependabotAlertPropDependencyType as DependabotAlertPropDependencyType, ) - from .group_0260 import ( + from .group_0266 import ( DependencyGraphDiffItemsPropVulnerabilitiesItemsType as DependencyGraphDiffItemsPropVulnerabilitiesItemsType, ) - from .group_0260 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType - from .group_0261 import ( + from .group_0266 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType + from .group_0267 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfoType as DependencyGraphSpdxSbomPropSbomPropCreationInfoType, ) - from .group_0261 import ( + from .group_0267 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType, ) - from .group_0261 import ( + from .group_0267 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsType, ) - from .group_0261 import ( + from .group_0267 import ( DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType as DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType, ) - from .group_0261 import ( + from .group_0267 import ( DependencyGraphSpdxSbomPropSbomType as DependencyGraphSpdxSbomPropSbomType, ) - from .group_0261 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType - from .group_0262 import MetadataType as MetadataType - from .group_0263 import DependencyType as DependencyType - from .group_0264 import ManifestPropFileType as ManifestPropFileType - from .group_0264 import ManifestPropResolvedType as ManifestPropResolvedType - from .group_0264 import ManifestType as ManifestType - from .group_0265 import SnapshotPropDetectorType as SnapshotPropDetectorType - from .group_0265 import SnapshotPropJobType as SnapshotPropJobType - from .group_0265 import SnapshotPropManifestsType as SnapshotPropManifestsType - from .group_0265 import SnapshotType as SnapshotType - from .group_0266 import DeploymentStatusType as DeploymentStatusType - from .group_0267 import ( + from .group_0267 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType + from .group_0268 import MetadataType as MetadataType + from .group_0269 import DependencyType as DependencyType + from .group_0270 import ManifestPropFileType as ManifestPropFileType + from .group_0270 import ManifestPropResolvedType as ManifestPropResolvedType + from .group_0270 import ManifestType as ManifestType + from .group_0271 import SnapshotPropDetectorType as SnapshotPropDetectorType + from .group_0271 import SnapshotPropJobType as SnapshotPropJobType + from .group_0271 import SnapshotPropManifestsType as SnapshotPropManifestsType + from .group_0271 import SnapshotType as SnapshotType + from .group_0272 import DeploymentStatusType as DeploymentStatusType + from .group_0273 import ( DeploymentBranchPolicySettingsType as DeploymentBranchPolicySettingsType, ) - from .group_0268 import ( + from .group_0274 import ( EnvironmentPropProtectionRulesItemsAnyof0Type as EnvironmentPropProtectionRulesItemsAnyof0Type, ) - from .group_0268 import ( + from .group_0274 import ( EnvironmentPropProtectionRulesItemsAnyof2Type as EnvironmentPropProtectionRulesItemsAnyof2Type, ) - from .group_0268 import EnvironmentType as EnvironmentType - from .group_0268 import ( + from .group_0274 import EnvironmentType as EnvironmentType + from .group_0274 import ( ReposOwnerRepoEnvironmentsGetResponse200Type as ReposOwnerRepoEnvironmentsGetResponse200Type, ) - from .group_0269 import ( + from .group_0275 import ( EnvironmentPropProtectionRulesItemsAnyof1Type as EnvironmentPropProtectionRulesItemsAnyof1Type, ) - from .group_0270 import ( + from .group_0276 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType, ) - from .group_0271 import ( + from .group_0277 import ( DeploymentBranchPolicyNamePatternWithTypeType as DeploymentBranchPolicyNamePatternWithTypeType, ) - from .group_0272 import ( + from .group_0278 import ( DeploymentBranchPolicyNamePatternType as DeploymentBranchPolicyNamePatternType, ) - from .group_0273 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType - from .group_0274 import DeploymentProtectionRuleType as DeploymentProtectionRuleType - from .group_0274 import ( + from .group_0279 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType + from .group_0280 import DeploymentProtectionRuleType as DeploymentProtectionRuleType + from .group_0280 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type, ) - from .group_0275 import ShortBlobType as ShortBlobType - from .group_0276 import BlobType as BlobType - from .group_0277 import GitCommitPropAuthorType as GitCommitPropAuthorType - from .group_0277 import GitCommitPropCommitterType as GitCommitPropCommitterType - from .group_0277 import ( + from .group_0281 import ShortBlobType as ShortBlobType + from .group_0282 import BlobType as BlobType + from .group_0283 import GitCommitPropAuthorType as GitCommitPropAuthorType + from .group_0283 import GitCommitPropCommitterType as GitCommitPropCommitterType + from .group_0283 import ( GitCommitPropParentsItemsType as GitCommitPropParentsItemsType, ) - from .group_0277 import GitCommitPropTreeType as GitCommitPropTreeType - from .group_0277 import ( + from .group_0283 import GitCommitPropTreeType as GitCommitPropTreeType + from .group_0283 import ( GitCommitPropVerificationType as GitCommitPropVerificationType, ) - from .group_0277 import GitCommitType as GitCommitType - from .group_0278 import GitRefPropObjectType as GitRefPropObjectType - from .group_0278 import GitRefType as GitRefType - from .group_0279 import GitTagPropObjectType as GitTagPropObjectType - from .group_0279 import GitTagPropTaggerType as GitTagPropTaggerType - from .group_0279 import GitTagType as GitTagType - from .group_0280 import GitTreePropTreeItemsType as GitTreePropTreeItemsType - from .group_0280 import GitTreeType as GitTreeType - from .group_0281 import HookResponseType as HookResponseType - from .group_0282 import HookType as HookType - from .group_0283 import ( + from .group_0283 import GitCommitType as GitCommitType + from .group_0284 import GitRefPropObjectType as GitRefPropObjectType + from .group_0284 import GitRefType as GitRefType + from .group_0285 import GitTagPropObjectType as GitTagPropObjectType + from .group_0285 import GitTagPropTaggerType as GitTagPropTaggerType + from .group_0285 import GitTagType as GitTagType + from .group_0286 import GitTreePropTreeItemsType as GitTreePropTreeItemsType + from .group_0286 import GitTreeType as GitTreeType + from .group_0287 import HookResponseType as HookResponseType + from .group_0288 import HookType as HookType + from .group_0289 import ( ImportPropProjectChoicesItemsType as ImportPropProjectChoicesItemsType, ) - from .group_0283 import ImportType as ImportType - from .group_0284 import PorterAuthorType as PorterAuthorType - from .group_0285 import PorterLargeFileType as PorterLargeFileType - from .group_0286 import ( + from .group_0289 import ImportType as ImportType + from .group_0290 import PorterAuthorType as PorterAuthorType + from .group_0291 import PorterLargeFileType as PorterLargeFileType + from .group_0292 import ( IssueEventDismissedReviewType as IssueEventDismissedReviewType, ) - from .group_0286 import IssueEventLabelType as IssueEventLabelType - from .group_0286 import IssueEventMilestoneType as IssueEventMilestoneType - from .group_0286 import IssueEventProjectCardType as IssueEventProjectCardType - from .group_0286 import IssueEventRenameType as IssueEventRenameType - from .group_0286 import IssueEventType as IssueEventType - from .group_0287 import ( + from .group_0292 import IssueEventLabelType as IssueEventLabelType + from .group_0292 import IssueEventMilestoneType as IssueEventMilestoneType + from .group_0292 import IssueEventProjectCardType as IssueEventProjectCardType + from .group_0292 import IssueEventRenameType as IssueEventRenameType + from .group_0292 import IssueEventType as IssueEventType + from .group_0293 import ( LabeledIssueEventPropLabelType as LabeledIssueEventPropLabelType, ) - from .group_0287 import LabeledIssueEventType as LabeledIssueEventType - from .group_0288 import ( + from .group_0293 import LabeledIssueEventType as LabeledIssueEventType + from .group_0294 import ( UnlabeledIssueEventPropLabelType as UnlabeledIssueEventPropLabelType, ) - from .group_0288 import UnlabeledIssueEventType as UnlabeledIssueEventType - from .group_0289 import AssignedIssueEventType as AssignedIssueEventType - from .group_0290 import UnassignedIssueEventType as UnassignedIssueEventType - from .group_0291 import ( + from .group_0294 import UnlabeledIssueEventType as UnlabeledIssueEventType + from .group_0295 import AssignedIssueEventType as AssignedIssueEventType + from .group_0296 import UnassignedIssueEventType as UnassignedIssueEventType + from .group_0297 import ( MilestonedIssueEventPropMilestoneType as MilestonedIssueEventPropMilestoneType, ) - from .group_0291 import MilestonedIssueEventType as MilestonedIssueEventType - from .group_0292 import ( + from .group_0297 import MilestonedIssueEventType as MilestonedIssueEventType + from .group_0298 import ( DemilestonedIssueEventPropMilestoneType as DemilestonedIssueEventPropMilestoneType, ) - from .group_0292 import DemilestonedIssueEventType as DemilestonedIssueEventType - from .group_0293 import ( + from .group_0298 import DemilestonedIssueEventType as DemilestonedIssueEventType + from .group_0299 import ( RenamedIssueEventPropRenameType as RenamedIssueEventPropRenameType, ) - from .group_0293 import RenamedIssueEventType as RenamedIssueEventType - from .group_0294 import ( + from .group_0299 import RenamedIssueEventType as RenamedIssueEventType + from .group_0300 import ( ReviewRequestedIssueEventType as ReviewRequestedIssueEventType, ) - from .group_0295 import ( + from .group_0301 import ( ReviewRequestRemovedIssueEventType as ReviewRequestRemovedIssueEventType, ) - from .group_0296 import ( + from .group_0302 import ( ReviewDismissedIssueEventPropDismissedReviewType as ReviewDismissedIssueEventPropDismissedReviewType, ) - from .group_0296 import ( + from .group_0302 import ( ReviewDismissedIssueEventType as ReviewDismissedIssueEventType, ) - from .group_0297 import LockedIssueEventType as LockedIssueEventType - from .group_0298 import ( + from .group_0303 import LockedIssueEventType as LockedIssueEventType + from .group_0304 import ( AddedToProjectIssueEventPropProjectCardType as AddedToProjectIssueEventPropProjectCardType, ) - from .group_0298 import AddedToProjectIssueEventType as AddedToProjectIssueEventType - from .group_0299 import ( + from .group_0304 import AddedToProjectIssueEventType as AddedToProjectIssueEventType + from .group_0305 import ( MovedColumnInProjectIssueEventPropProjectCardType as MovedColumnInProjectIssueEventPropProjectCardType, ) - from .group_0299 import ( + from .group_0305 import ( MovedColumnInProjectIssueEventType as MovedColumnInProjectIssueEventType, ) - from .group_0300 import ( + from .group_0306 import ( RemovedFromProjectIssueEventPropProjectCardType as RemovedFromProjectIssueEventPropProjectCardType, ) - from .group_0300 import ( + from .group_0306 import ( RemovedFromProjectIssueEventType as RemovedFromProjectIssueEventType, ) - from .group_0301 import ( + from .group_0307 import ( ConvertedNoteToIssueIssueEventPropProjectCardType as ConvertedNoteToIssueIssueEventPropProjectCardType, ) - from .group_0301 import ( + from .group_0307 import ( ConvertedNoteToIssueIssueEventType as ConvertedNoteToIssueIssueEventType, ) - from .group_0302 import TimelineCommentEventType as TimelineCommentEventType - from .group_0303 import ( + from .group_0308 import TimelineCommentEventType as TimelineCommentEventType + from .group_0309 import ( TimelineCrossReferencedEventType as TimelineCrossReferencedEventType, ) - from .group_0304 import ( + from .group_0310 import ( TimelineCrossReferencedEventPropSourceType as TimelineCrossReferencedEventPropSourceType, ) - from .group_0305 import ( + from .group_0311 import ( TimelineCommittedEventPropAuthorType as TimelineCommittedEventPropAuthorType, ) - from .group_0305 import ( + from .group_0311 import ( TimelineCommittedEventPropCommitterType as TimelineCommittedEventPropCommitterType, ) - from .group_0305 import ( + from .group_0311 import ( TimelineCommittedEventPropParentsItemsType as TimelineCommittedEventPropParentsItemsType, ) - from .group_0305 import ( + from .group_0311 import ( TimelineCommittedEventPropTreeType as TimelineCommittedEventPropTreeType, ) - from .group_0305 import ( + from .group_0311 import ( TimelineCommittedEventPropVerificationType as TimelineCommittedEventPropVerificationType, ) - from .group_0305 import TimelineCommittedEventType as TimelineCommittedEventType - from .group_0306 import ( + from .group_0311 import TimelineCommittedEventType as TimelineCommittedEventType + from .group_0312 import ( TimelineReviewedEventPropLinksPropHtmlType as TimelineReviewedEventPropLinksPropHtmlType, ) - from .group_0306 import ( + from .group_0312 import ( TimelineReviewedEventPropLinksPropPullRequestType as TimelineReviewedEventPropLinksPropPullRequestType, ) - from .group_0306 import ( + from .group_0312 import ( TimelineReviewedEventPropLinksType as TimelineReviewedEventPropLinksType, ) - from .group_0306 import TimelineReviewedEventType as TimelineReviewedEventType - from .group_0307 import ( + from .group_0312 import TimelineReviewedEventType as TimelineReviewedEventType + from .group_0313 import ( PullRequestReviewCommentPropLinksPropHtmlType as PullRequestReviewCommentPropLinksPropHtmlType, ) - from .group_0307 import ( + from .group_0313 import ( PullRequestReviewCommentPropLinksPropPullRequestType as PullRequestReviewCommentPropLinksPropPullRequestType, ) - from .group_0307 import ( + from .group_0313 import ( PullRequestReviewCommentPropLinksPropSelfType as PullRequestReviewCommentPropLinksPropSelfType, ) - from .group_0307 import ( + from .group_0313 import ( PullRequestReviewCommentPropLinksType as PullRequestReviewCommentPropLinksType, ) - from .group_0307 import PullRequestReviewCommentType as PullRequestReviewCommentType - from .group_0307 import ( + from .group_0313 import PullRequestReviewCommentType as PullRequestReviewCommentType + from .group_0313 import ( TimelineLineCommentedEventType as TimelineLineCommentedEventType, ) - from .group_0308 import ( + from .group_0314 import ( TimelineAssignedIssueEventType as TimelineAssignedIssueEventType, ) - from .group_0309 import ( + from .group_0315 import ( TimelineUnassignedIssueEventType as TimelineUnassignedIssueEventType, ) - from .group_0310 import StateChangeIssueEventType as StateChangeIssueEventType - from .group_0311 import DeployKeyType as DeployKeyType - from .group_0312 import LanguageType as LanguageType - from .group_0313 import LicenseContentPropLinksType as LicenseContentPropLinksType - from .group_0313 import LicenseContentType as LicenseContentType - from .group_0314 import MergedUpstreamType as MergedUpstreamType - from .group_0315 import PagesHttpsCertificateType as PagesHttpsCertificateType - from .group_0315 import PagesSourceHashType as PagesSourceHashType - from .group_0315 import PageType as PageType - from .group_0316 import PageBuildPropErrorType as PageBuildPropErrorType - from .group_0316 import PageBuildType as PageBuildType - from .group_0317 import PageBuildStatusType as PageBuildStatusType - from .group_0318 import PageDeploymentType as PageDeploymentType - from .group_0319 import PagesDeploymentStatusType as PagesDeploymentStatusType - from .group_0320 import ( + from .group_0316 import StateChangeIssueEventType as StateChangeIssueEventType + from .group_0317 import DeployKeyType as DeployKeyType + from .group_0318 import LanguageType as LanguageType + from .group_0319 import LicenseContentPropLinksType as LicenseContentPropLinksType + from .group_0319 import LicenseContentType as LicenseContentType + from .group_0320 import MergedUpstreamType as MergedUpstreamType + from .group_0321 import PagesHttpsCertificateType as PagesHttpsCertificateType + from .group_0321 import PagesSourceHashType as PagesSourceHashType + from .group_0321 import PageType as PageType + from .group_0322 import PageBuildPropErrorType as PageBuildPropErrorType + from .group_0322 import PageBuildType as PageBuildType + from .group_0323 import PageBuildStatusType as PageBuildStatusType + from .group_0324 import PageDeploymentType as PageDeploymentType + from .group_0325 import PagesDeploymentStatusType as PagesDeploymentStatusType + from .group_0326 import ( PagesHealthCheckPropAltDomainType as PagesHealthCheckPropAltDomainType, ) - from .group_0320 import ( + from .group_0326 import ( PagesHealthCheckPropDomainType as PagesHealthCheckPropDomainType, ) - from .group_0320 import PagesHealthCheckType as PagesHealthCheckType - from .group_0321 import PullRequestType as PullRequestType - from .group_0322 import ( + from .group_0326 import PagesHealthCheckType as PagesHealthCheckType + from .group_0327 import PullRequestType as PullRequestType + from .group_0328 import ( PullRequestPropLabelsItemsType as PullRequestPropLabelsItemsType, ) - from .group_0323 import PullRequestPropBaseType as PullRequestPropBaseType - from .group_0323 import PullRequestPropHeadType as PullRequestPropHeadType - from .group_0324 import PullRequestPropLinksType as PullRequestPropLinksType - from .group_0325 import PullRequestMergeResultType as PullRequestMergeResultType - from .group_0326 import PullRequestReviewRequestType as PullRequestReviewRequestType - from .group_0327 import ( + from .group_0329 import PullRequestPropBaseType as PullRequestPropBaseType + from .group_0329 import PullRequestPropHeadType as PullRequestPropHeadType + from .group_0330 import PullRequestPropLinksType as PullRequestPropLinksType + from .group_0331 import PullRequestMergeResultType as PullRequestMergeResultType + from .group_0332 import PullRequestReviewRequestType as PullRequestReviewRequestType + from .group_0333 import ( PullRequestReviewPropLinksPropHtmlType as PullRequestReviewPropLinksPropHtmlType, ) - from .group_0327 import ( + from .group_0333 import ( PullRequestReviewPropLinksPropPullRequestType as PullRequestReviewPropLinksPropPullRequestType, ) - from .group_0327 import ( + from .group_0333 import ( PullRequestReviewPropLinksType as PullRequestReviewPropLinksType, ) - from .group_0327 import PullRequestReviewType as PullRequestReviewType - from .group_0328 import ReviewCommentType as ReviewCommentType - from .group_0329 import ReviewCommentPropLinksType as ReviewCommentPropLinksType - from .group_0330 import ReleaseAssetType as ReleaseAssetType - from .group_0331 import ReleaseType as ReleaseType - from .group_0332 import ReleaseNotesContentType as ReleaseNotesContentType - from .group_0333 import ( + from .group_0333 import PullRequestReviewType as PullRequestReviewType + from .group_0334 import ReviewCommentType as ReviewCommentType + from .group_0335 import ReviewCommentPropLinksType as ReviewCommentPropLinksType + from .group_0336 import ReleaseAssetType as ReleaseAssetType + from .group_0337 import ReleaseType as ReleaseType + from .group_0338 import ReleaseNotesContentType as ReleaseNotesContentType + from .group_0339 import ( RepositoryRuleRulesetInfoType as RepositoryRuleRulesetInfoType, ) - from .group_0334 import ( + from .group_0340 import ( RepositoryRuleDetailedOneof0Type as RepositoryRuleDetailedOneof0Type, ) - from .group_0335 import ( + from .group_0341 import ( RepositoryRuleDetailedOneof1Type as RepositoryRuleDetailedOneof1Type, ) - from .group_0336 import ( + from .group_0342 import ( RepositoryRuleDetailedOneof2Type as RepositoryRuleDetailedOneof2Type, ) - from .group_0337 import ( + from .group_0343 import ( RepositoryRuleDetailedOneof3Type as RepositoryRuleDetailedOneof3Type, ) - from .group_0338 import ( + from .group_0344 import ( RepositoryRuleDetailedOneof4Type as RepositoryRuleDetailedOneof4Type, ) - from .group_0339 import ( + from .group_0345 import ( RepositoryRuleDetailedOneof5Type as RepositoryRuleDetailedOneof5Type, ) - from .group_0340 import ( + from .group_0346 import ( RepositoryRuleDetailedOneof6Type as RepositoryRuleDetailedOneof6Type, ) - from .group_0341 import ( + from .group_0347 import ( RepositoryRuleDetailedOneof7Type as RepositoryRuleDetailedOneof7Type, ) - from .group_0342 import ( + from .group_0348 import ( RepositoryRuleDetailedOneof8Type as RepositoryRuleDetailedOneof8Type, ) - from .group_0343 import ( + from .group_0349 import ( RepositoryRuleDetailedOneof9Type as RepositoryRuleDetailedOneof9Type, ) - from .group_0344 import ( + from .group_0350 import ( RepositoryRuleDetailedOneof10Type as RepositoryRuleDetailedOneof10Type, ) - from .group_0345 import ( + from .group_0351 import ( RepositoryRuleDetailedOneof11Type as RepositoryRuleDetailedOneof11Type, ) - from .group_0346 import ( + from .group_0352 import ( RepositoryRuleDetailedOneof12Type as RepositoryRuleDetailedOneof12Type, ) - from .group_0347 import ( + from .group_0353 import ( RepositoryRuleDetailedOneof13Type as RepositoryRuleDetailedOneof13Type, ) - from .group_0348 import ( + from .group_0354 import ( RepositoryRuleDetailedOneof14Type as RepositoryRuleDetailedOneof14Type, ) - from .group_0349 import ( + from .group_0355 import ( RepositoryRuleDetailedOneof15Type as RepositoryRuleDetailedOneof15Type, ) - from .group_0350 import ( + from .group_0356 import ( RepositoryRuleDetailedOneof16Type as RepositoryRuleDetailedOneof16Type, ) - from .group_0351 import SecretScanningAlertType as SecretScanningAlertType - from .group_0352 import ( + from .group_0357 import SecretScanningAlertType as SecretScanningAlertType + from .group_0358 import ( SecretScanningPushProtectionBypassType as SecretScanningPushProtectionBypassType, ) - from .group_0353 import ( + from .group_0359 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType, ) - from .group_0353 import ( + from .group_0359 import ( SecretScanningScanHistoryType as SecretScanningScanHistoryType, ) - from .group_0353 import SecretScanningScanType as SecretScanningScanType - from .group_0354 import ( + from .group_0359 import SecretScanningScanType as SecretScanningScanType + from .group_0360 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type, ) - from .group_0355 import ( + from .group_0361 import ( RepositoryAdvisoryCreatePropCreditsItemsType as RepositoryAdvisoryCreatePropCreditsItemsType, ) - from .group_0355 import ( + from .group_0361 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0355 import ( + from .group_0361 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsType, ) - from .group_0355 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType - from .group_0356 import ( + from .group_0361 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType + from .group_0362 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0356 import ( + from .group_0362 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType, ) - from .group_0356 import ( + from .group_0362 import ( PrivateVulnerabilityReportCreateType as PrivateVulnerabilityReportCreateType, ) - from .group_0357 import ( + from .group_0363 import ( RepositoryAdvisoryUpdatePropCreditsItemsType as RepositoryAdvisoryUpdatePropCreditsItemsType, ) - from .group_0357 import ( + from .group_0363 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0357 import ( + from .group_0363 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType, ) - from .group_0357 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType - from .group_0358 import StargazerType as StargazerType - from .group_0359 import CommitActivityType as CommitActivityType - from .group_0360 import ( + from .group_0363 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType + from .group_0364 import StargazerType as StargazerType + from .group_0365 import CommitActivityType as CommitActivityType + from .group_0366 import ( ContributorActivityPropWeeksItemsType as ContributorActivityPropWeeksItemsType, ) - from .group_0360 import ContributorActivityType as ContributorActivityType - from .group_0361 import ParticipationStatsType as ParticipationStatsType - from .group_0362 import RepositorySubscriptionType as RepositorySubscriptionType - from .group_0363 import TagPropCommitType as TagPropCommitType - from .group_0363 import TagType as TagType - from .group_0364 import TagProtectionType as TagProtectionType - from .group_0365 import TopicType as TopicType - from .group_0366 import TrafficType as TrafficType - from .group_0367 import CloneTrafficType as CloneTrafficType - from .group_0368 import ContentTrafficType as ContentTrafficType - from .group_0369 import ReferrerTrafficType as ReferrerTrafficType - from .group_0370 import ViewTrafficType as ViewTrafficType - from .group_0371 import ( + from .group_0366 import ContributorActivityType as ContributorActivityType + from .group_0367 import ParticipationStatsType as ParticipationStatsType + from .group_0368 import RepositorySubscriptionType as RepositorySubscriptionType + from .group_0369 import TagPropCommitType as TagPropCommitType + from .group_0369 import TagType as TagType + from .group_0370 import TagProtectionType as TagProtectionType + from .group_0371 import TopicType as TopicType + from .group_0372 import TrafficType as TrafficType + from .group_0373 import CloneTrafficType as CloneTrafficType + from .group_0374 import ContentTrafficType as ContentTrafficType + from .group_0375 import ReferrerTrafficType as ReferrerTrafficType + from .group_0376 import ViewTrafficType as ViewTrafficType + from .group_0377 import ( SearchResultTextMatchesItemsPropMatchesItemsType as SearchResultTextMatchesItemsPropMatchesItemsType, ) - from .group_0371 import ( + from .group_0377 import ( SearchResultTextMatchesItemsType as SearchResultTextMatchesItemsType, ) - from .group_0372 import CodeSearchResultItemType as CodeSearchResultItemType - from .group_0372 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type - from .group_0373 import ( + from .group_0378 import CodeSearchResultItemType as CodeSearchResultItemType + from .group_0378 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type + from .group_0379 import ( CommitSearchResultItemPropParentsItemsType as CommitSearchResultItemPropParentsItemsType, ) - from .group_0373 import CommitSearchResultItemType as CommitSearchResultItemType - from .group_0373 import ( + from .group_0379 import CommitSearchResultItemType as CommitSearchResultItemType + from .group_0379 import ( SearchCommitsGetResponse200Type as SearchCommitsGetResponse200Type, ) - from .group_0374 import ( + from .group_0380 import ( CommitSearchResultItemPropCommitPropAuthorType as CommitSearchResultItemPropCommitPropAuthorType, ) - from .group_0374 import ( + from .group_0380 import ( CommitSearchResultItemPropCommitPropTreeType as CommitSearchResultItemPropCommitPropTreeType, ) - from .group_0374 import ( + from .group_0380 import ( CommitSearchResultItemPropCommitType as CommitSearchResultItemPropCommitType, ) - from .group_0375 import ( + from .group_0381 import ( IssueSearchResultItemPropLabelsItemsType as IssueSearchResultItemPropLabelsItemsType, ) - from .group_0375 import ( + from .group_0381 import ( IssueSearchResultItemPropPullRequestType as IssueSearchResultItemPropPullRequestType, ) - from .group_0375 import ( + from .group_0381 import ( IssueSearchResultItemPropSubIssuesSummaryType as IssueSearchResultItemPropSubIssuesSummaryType, ) - from .group_0375 import IssueSearchResultItemType as IssueSearchResultItemType - from .group_0375 import ( + from .group_0381 import IssueSearchResultItemType as IssueSearchResultItemType + from .group_0381 import ( SearchIssuesGetResponse200Type as SearchIssuesGetResponse200Type, ) - from .group_0376 import LabelSearchResultItemType as LabelSearchResultItemType - from .group_0376 import ( + from .group_0382 import LabelSearchResultItemType as LabelSearchResultItemType + from .group_0382 import ( SearchLabelsGetResponse200Type as SearchLabelsGetResponse200Type, ) - from .group_0377 import ( + from .group_0383 import ( RepoSearchResultItemPropPermissionsType as RepoSearchResultItemPropPermissionsType, ) - from .group_0377 import RepoSearchResultItemType as RepoSearchResultItemType - from .group_0377 import ( + from .group_0383 import RepoSearchResultItemType as RepoSearchResultItemType + from .group_0383 import ( SearchRepositoriesGetResponse200Type as SearchRepositoriesGetResponse200Type, ) - from .group_0378 import ( + from .group_0384 import ( SearchTopicsGetResponse200Type as SearchTopicsGetResponse200Type, ) - from .group_0378 import ( + from .group_0384 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelationType as TopicSearchResultItemPropAliasesItemsPropTopicRelationType, ) - from .group_0378 import ( + from .group_0384 import ( TopicSearchResultItemPropAliasesItemsType as TopicSearchResultItemPropAliasesItemsType, ) - from .group_0378 import ( + from .group_0384 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelationType as TopicSearchResultItemPropRelatedItemsPropTopicRelationType, ) - from .group_0378 import ( + from .group_0384 import ( TopicSearchResultItemPropRelatedItemsType as TopicSearchResultItemPropRelatedItemsType, ) - from .group_0378 import TopicSearchResultItemType as TopicSearchResultItemType - from .group_0379 import ( + from .group_0384 import TopicSearchResultItemType as TopicSearchResultItemType + from .group_0385 import ( SearchUsersGetResponse200Type as SearchUsersGetResponse200Type, ) - from .group_0379 import UserSearchResultItemType as UserSearchResultItemType - from .group_0380 import PrivateUserPropPlanType as PrivateUserPropPlanType - from .group_0380 import PrivateUserType as PrivateUserType - from .group_0381 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType - from .group_0382 import CodespaceExportDetailsType as CodespaceExportDetailsType - from .group_0383 import ( + from .group_0385 import UserSearchResultItemType as UserSearchResultItemType + from .group_0386 import PrivateUserPropPlanType as PrivateUserPropPlanType + from .group_0386 import PrivateUserType as PrivateUserType + from .group_0387 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType + from .group_0388 import CodespaceExportDetailsType as CodespaceExportDetailsType + from .group_0389 import ( CodespaceWithFullRepositoryPropGitStatusType as CodespaceWithFullRepositoryPropGitStatusType, ) - from .group_0383 import ( + from .group_0389 import ( CodespaceWithFullRepositoryPropRuntimeConstraintsType as CodespaceWithFullRepositoryPropRuntimeConstraintsType, ) - from .group_0383 import ( + from .group_0389 import ( CodespaceWithFullRepositoryType as CodespaceWithFullRepositoryType, ) - from .group_0384 import EmailType as EmailType - from .group_0385 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType - from .group_0385 import ( + from .group_0390 import EmailType as EmailType + from .group_0391 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType + from .group_0391 import ( GpgKeyPropSubkeysItemsPropEmailsItemsType as GpgKeyPropSubkeysItemsPropEmailsItemsType, ) - from .group_0385 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType - from .group_0385 import GpgKeyType as GpgKeyType - from .group_0386 import KeyType as KeyType - from .group_0387 import MarketplaceAccountType as MarketplaceAccountType - from .group_0387 import UserMarketplacePurchaseType as UserMarketplacePurchaseType - from .group_0388 import SocialAccountType as SocialAccountType - from .group_0389 import SshSigningKeyType as SshSigningKeyType - from .group_0390 import StarredRepositoryType as StarredRepositoryType - from .group_0391 import ( + from .group_0391 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType + from .group_0391 import GpgKeyType as GpgKeyType + from .group_0392 import KeyType as KeyType + from .group_0393 import MarketplaceAccountType as MarketplaceAccountType + from .group_0393 import UserMarketplacePurchaseType as UserMarketplacePurchaseType + from .group_0394 import SocialAccountType as SocialAccountType + from .group_0395 import SshSigningKeyType as SshSigningKeyType + from .group_0396 import StarredRepositoryType as StarredRepositoryType + from .group_0397 import ( HovercardPropContextsItemsType as HovercardPropContextsItemsType, ) - from .group_0391 import HovercardType as HovercardType - from .group_0392 import KeySimpleType as KeySimpleType - from .group_0393 import EnterpriseWebhooksType as EnterpriseWebhooksType - from .group_0394 import SimpleInstallationType as SimpleInstallationType - from .group_0395 import ( + from .group_0397 import HovercardType as HovercardType + from .group_0398 import KeySimpleType as KeySimpleType + from .group_0399 import EnterpriseWebhooksType as EnterpriseWebhooksType + from .group_0400 import SimpleInstallationType as SimpleInstallationType + from .group_0401 import ( OrganizationSimpleWebhooksType as OrganizationSimpleWebhooksType, ) - from .group_0396 import ( + from .group_0402 import ( RepositoryWebhooksPropCustomPropertiesType as RepositoryWebhooksPropCustomPropertiesType, ) - from .group_0396 import ( + from .group_0402 import ( RepositoryWebhooksPropPermissionsType as RepositoryWebhooksPropPermissionsType, ) - from .group_0396 import ( + from .group_0402 import ( RepositoryWebhooksPropTemplateRepositoryPropOwnerType as RepositoryWebhooksPropTemplateRepositoryPropOwnerType, ) - from .group_0396 import ( + from .group_0402 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissionsType as RepositoryWebhooksPropTemplateRepositoryPropPermissionsType, ) - from .group_0396 import ( + from .group_0402 import ( RepositoryWebhooksPropTemplateRepositoryType as RepositoryWebhooksPropTemplateRepositoryType, ) - from .group_0396 import RepositoryWebhooksType as RepositoryWebhooksType - from .group_0397 import WebhooksRuleType as WebhooksRuleType - from .group_0398 import SimpleCheckSuiteType as SimpleCheckSuiteType - from .group_0399 import ( + from .group_0402 import RepositoryWebhooksType as RepositoryWebhooksType + from .group_0403 import WebhooksRuleType as WebhooksRuleType + from .group_0404 import SimpleCheckSuiteType as SimpleCheckSuiteType + from .group_0405 import ( CheckRunWithSimpleCheckSuitePropOutputType as CheckRunWithSimpleCheckSuitePropOutputType, ) - from .group_0399 import ( + from .group_0405 import ( CheckRunWithSimpleCheckSuiteType as CheckRunWithSimpleCheckSuiteType, ) - from .group_0400 import WebhooksDeployKeyType as WebhooksDeployKeyType - from .group_0401 import WebhooksWorkflowType as WebhooksWorkflowType - from .group_0402 import WebhooksApproverType as WebhooksApproverType - from .group_0402 import ( + from .group_0406 import WebhooksDeployKeyType as WebhooksDeployKeyType + from .group_0407 import WebhooksWorkflowType as WebhooksWorkflowType + from .group_0408 import WebhooksApproverType as WebhooksApproverType + from .group_0408 import ( WebhooksReviewersItemsPropReviewerType as WebhooksReviewersItemsPropReviewerType, ) - from .group_0402 import WebhooksReviewersItemsType as WebhooksReviewersItemsType - from .group_0403 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType - from .group_0404 import WebhooksUserType as WebhooksUserType - from .group_0405 import ( + from .group_0408 import WebhooksReviewersItemsType as WebhooksReviewersItemsType + from .group_0409 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType + from .group_0410 import WebhooksUserType as WebhooksUserType + from .group_0411 import ( WebhooksAnswerPropReactionsType as WebhooksAnswerPropReactionsType, ) - from .group_0405 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType - from .group_0405 import WebhooksAnswerType as WebhooksAnswerType - from .group_0406 import ( + from .group_0411 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType + from .group_0411 import WebhooksAnswerType as WebhooksAnswerType + from .group_0412 import ( DiscussionPropAnswerChosenByType as DiscussionPropAnswerChosenByType, ) - from .group_0406 import DiscussionPropCategoryType as DiscussionPropCategoryType - from .group_0406 import DiscussionPropReactionsType as DiscussionPropReactionsType - from .group_0406 import DiscussionPropUserType as DiscussionPropUserType - from .group_0406 import DiscussionType as DiscussionType - from .group_0406 import LabelType as LabelType - from .group_0407 import ( + from .group_0412 import DiscussionPropCategoryType as DiscussionPropCategoryType + from .group_0412 import DiscussionPropReactionsType as DiscussionPropReactionsType + from .group_0412 import DiscussionPropUserType as DiscussionPropUserType + from .group_0412 import DiscussionType as DiscussionType + from .group_0412 import LabelType as LabelType + from .group_0413 import ( WebhooksCommentPropReactionsType as WebhooksCommentPropReactionsType, ) - from .group_0407 import WebhooksCommentPropUserType as WebhooksCommentPropUserType - from .group_0407 import WebhooksCommentType as WebhooksCommentType - from .group_0408 import WebhooksLabelType as WebhooksLabelType - from .group_0409 import ( + from .group_0413 import WebhooksCommentPropUserType as WebhooksCommentPropUserType + from .group_0413 import WebhooksCommentType as WebhooksCommentType + from .group_0414 import WebhooksLabelType as WebhooksLabelType + from .group_0415 import ( WebhooksRepositoriesItemsType as WebhooksRepositoriesItemsType, ) - from .group_0410 import ( + from .group_0416 import ( WebhooksRepositoriesAddedItemsType as WebhooksRepositoriesAddedItemsType, ) - from .group_0411 import ( + from .group_0417 import ( WebhooksIssueCommentPropReactionsType as WebhooksIssueCommentPropReactionsType, ) - from .group_0411 import ( + from .group_0417 import ( WebhooksIssueCommentPropUserType as WebhooksIssueCommentPropUserType, ) - from .group_0411 import WebhooksIssueCommentType as WebhooksIssueCommentType - from .group_0412 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType - from .group_0412 import WebhooksChangesType as WebhooksChangesType - from .group_0413 import ( + from .group_0417 import WebhooksIssueCommentType as WebhooksIssueCommentType + from .group_0418 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType + from .group_0418 import WebhooksChangesType as WebhooksChangesType + from .group_0419 import ( WebhooksIssuePropAssigneesItemsType as WebhooksIssuePropAssigneesItemsType, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropAssigneeType as WebhooksIssuePropAssigneeType, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropLabelsItemsType as WebhooksIssuePropLabelsItemsType, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropMilestonePropCreatorType as WebhooksIssuePropMilestonePropCreatorType, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropMilestoneType as WebhooksIssuePropMilestoneType, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropPerformedViaGithubAppPropOwnerType as WebhooksIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissionsType as WebhooksIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropPerformedViaGithubAppType as WebhooksIssuePropPerformedViaGithubAppType, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropPullRequestType as WebhooksIssuePropPullRequestType, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropReactionsType as WebhooksIssuePropReactionsType, ) - from .group_0413 import ( + from .group_0419 import ( WebhooksIssuePropSubIssuesSummaryType as WebhooksIssuePropSubIssuesSummaryType, ) - from .group_0413 import WebhooksIssuePropUserType as WebhooksIssuePropUserType - from .group_0413 import WebhooksIssueType as WebhooksIssueType - from .group_0414 import ( + from .group_0419 import WebhooksIssuePropUserType as WebhooksIssuePropUserType + from .group_0419 import WebhooksIssueType as WebhooksIssueType + from .group_0420 import ( WebhooksMilestonePropCreatorType as WebhooksMilestonePropCreatorType, ) - from .group_0414 import WebhooksMilestoneType as WebhooksMilestoneType - from .group_0415 import ( + from .group_0420 import WebhooksMilestoneType as WebhooksMilestoneType + from .group_0421 import ( WebhooksIssue2PropAssigneesItemsType as WebhooksIssue2PropAssigneesItemsType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropAssigneeType as WebhooksIssue2PropAssigneeType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropLabelsItemsType as WebhooksIssue2PropLabelsItemsType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropMilestonePropCreatorType as WebhooksIssue2PropMilestonePropCreatorType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropMilestoneType as WebhooksIssue2PropMilestoneType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwnerType as WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType as WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropPerformedViaGithubAppType as WebhooksIssue2PropPerformedViaGithubAppType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropPullRequestType as WebhooksIssue2PropPullRequestType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropReactionsType as WebhooksIssue2PropReactionsType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksIssue2PropSubIssuesSummaryType as WebhooksIssue2PropSubIssuesSummaryType, ) - from .group_0415 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType - from .group_0415 import WebhooksIssue2Type as WebhooksIssue2Type - from .group_0416 import WebhooksUserMannequinType as WebhooksUserMannequinType - from .group_0417 import ( + from .group_0421 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType + from .group_0421 import WebhooksIssue2Type as WebhooksIssue2Type + from .group_0422 import WebhooksUserMannequinType as WebhooksUserMannequinType + from .group_0423 import ( WebhooksMarketplacePurchasePropAccountType as WebhooksMarketplacePurchasePropAccountType, ) - from .group_0417 import ( + from .group_0423 import ( WebhooksMarketplacePurchasePropPlanType as WebhooksMarketplacePurchasePropPlanType, ) - from .group_0417 import ( + from .group_0423 import ( WebhooksMarketplacePurchaseType as WebhooksMarketplacePurchaseType, ) - from .group_0418 import ( + from .group_0424 import ( WebhooksPreviousMarketplacePurchasePropAccountType as WebhooksPreviousMarketplacePurchasePropAccountType, ) - from .group_0418 import ( + from .group_0424 import ( WebhooksPreviousMarketplacePurchasePropPlanType as WebhooksPreviousMarketplacePurchasePropPlanType, ) - from .group_0418 import ( + from .group_0424 import ( WebhooksPreviousMarketplacePurchaseType as WebhooksPreviousMarketplacePurchaseType, ) - from .group_0419 import WebhooksTeamPropParentType as WebhooksTeamPropParentType - from .group_0419 import WebhooksTeamType as WebhooksTeamType - from .group_0420 import MergeGroupType as MergeGroupType - from .group_0421 import ( + from .group_0425 import WebhooksTeamPropParentType as WebhooksTeamPropParentType + from .group_0425 import WebhooksTeamType as WebhooksTeamType + from .group_0426 import MergeGroupType as MergeGroupType + from .group_0427 import ( WebhooksMilestone3PropCreatorType as WebhooksMilestone3PropCreatorType, ) - from .group_0421 import WebhooksMilestone3Type as WebhooksMilestone3Type - from .group_0422 import ( + from .group_0427 import WebhooksMilestone3Type as WebhooksMilestone3Type + from .group_0428 import ( WebhooksMembershipPropUserType as WebhooksMembershipPropUserType, ) - from .group_0422 import WebhooksMembershipType as WebhooksMembershipType - from .group_0423 import ( + from .group_0428 import WebhooksMembershipType as WebhooksMembershipType + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOtherType as PersonalAccessTokenRequestPropPermissionsAddedPropOtherType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsAddedType as PersonalAccessTokenRequestPropPermissionsAddedType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType as PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsResultPropOtherType as PersonalAccessTokenRequestPropPermissionsResultPropOtherType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType as PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsResultType as PersonalAccessTokenRequestPropPermissionsResultType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropPermissionsUpgradedType as PersonalAccessTokenRequestPropPermissionsUpgradedType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestPropRepositoriesItemsType as PersonalAccessTokenRequestPropRepositoriesItemsType, ) - from .group_0423 import ( + from .group_0429 import ( PersonalAccessTokenRequestType as PersonalAccessTokenRequestType, ) - from .group_0424 import ( + from .group_0430 import ( WebhooksProjectCardPropCreatorType as WebhooksProjectCardPropCreatorType, ) - from .group_0424 import WebhooksProjectCardType as WebhooksProjectCardType - from .group_0425 import ( + from .group_0430 import WebhooksProjectCardType as WebhooksProjectCardType + from .group_0431 import ( WebhooksProjectPropCreatorType as WebhooksProjectPropCreatorType, ) - from .group_0425 import WebhooksProjectType as WebhooksProjectType - from .group_0426 import WebhooksProjectColumnType as WebhooksProjectColumnType - from .group_0427 import ProjectsV2Type as ProjectsV2Type - from .group_0428 import ( + from .group_0431 import WebhooksProjectType as WebhooksProjectType + from .group_0432 import WebhooksProjectColumnType as WebhooksProjectColumnType + from .group_0433 import ProjectsV2Type as ProjectsV2Type + from .group_0434 import ( WebhooksProjectChangesPropArchivedAtType as WebhooksProjectChangesPropArchivedAtType, ) - from .group_0428 import WebhooksProjectChangesType as WebhooksProjectChangesType - from .group_0429 import ProjectsV2ItemType as ProjectsV2ItemType - from .group_0430 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType - from .group_0431 import PullRequestWebhookType as PullRequestWebhookType - from .group_0432 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type - from .group_0433 import ( + from .group_0434 import WebhooksProjectChangesType as WebhooksProjectChangesType + from .group_0435 import ProjectsV2ItemType as ProjectsV2ItemType + from .group_0436 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType + from .group_0437 import PullRequestWebhookType as PullRequestWebhookType + from .group_0438 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type + from .group_0439 import ( WebhooksPullRequest5PropAssigneesItemsType as WebhooksPullRequest5PropAssigneesItemsType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropAssigneeType as WebhooksPullRequest5PropAssigneeType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropAutoMergePropEnabledByType as WebhooksPullRequest5PropAutoMergePropEnabledByType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropAutoMergeType as WebhooksPullRequest5PropAutoMergeType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropBasePropRepoPropLicenseType as WebhooksPullRequest5PropBasePropRepoPropLicenseType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropBasePropRepoPropOwnerType as WebhooksPullRequest5PropBasePropRepoPropOwnerType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropBasePropRepoPropPermissionsType as WebhooksPullRequest5PropBasePropRepoPropPermissionsType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropBasePropRepoType as WebhooksPullRequest5PropBasePropRepoType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropBasePropUserType as WebhooksPullRequest5PropBasePropUserType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropBaseType as WebhooksPullRequest5PropBaseType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropHeadPropRepoPropLicenseType as WebhooksPullRequest5PropHeadPropRepoPropLicenseType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropHeadPropRepoPropOwnerType as WebhooksPullRequest5PropHeadPropRepoPropOwnerType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissionsType as WebhooksPullRequest5PropHeadPropRepoPropPermissionsType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropHeadPropRepoType as WebhooksPullRequest5PropHeadPropRepoType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropHeadPropUserType as WebhooksPullRequest5PropHeadPropUserType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropHeadType as WebhooksPullRequest5PropHeadType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLabelsItemsType as WebhooksPullRequest5PropLabelsItemsType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropCommentsType as WebhooksPullRequest5PropLinksPropCommentsType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropCommitsType as WebhooksPullRequest5PropLinksPropCommitsType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropHtmlType as WebhooksPullRequest5PropLinksPropHtmlType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropIssueType as WebhooksPullRequest5PropLinksPropIssueType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropReviewCommentsType as WebhooksPullRequest5PropLinksPropReviewCommentsType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropReviewCommentType as WebhooksPullRequest5PropLinksPropReviewCommentType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropSelfType as WebhooksPullRequest5PropLinksPropSelfType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksPropStatusesType as WebhooksPullRequest5PropLinksPropStatusesType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropLinksType as WebhooksPullRequest5PropLinksType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropMergedByType as WebhooksPullRequest5PropMergedByType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropMilestonePropCreatorType as WebhooksPullRequest5PropMilestonePropCreatorType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropMilestoneType as WebhooksPullRequest5PropMilestoneType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParentType as WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropRequestedTeamsItemsType as WebhooksPullRequest5PropRequestedTeamsItemsType, ) - from .group_0433 import ( + from .group_0439 import ( WebhooksPullRequest5PropUserType as WebhooksPullRequest5PropUserType, ) - from .group_0433 import WebhooksPullRequest5Type as WebhooksPullRequest5Type - from .group_0434 import ( + from .group_0439 import WebhooksPullRequest5Type as WebhooksPullRequest5Type + from .group_0440 import ( WebhooksReviewCommentPropLinksPropHtmlType as WebhooksReviewCommentPropLinksPropHtmlType, ) - from .group_0434 import ( + from .group_0440 import ( WebhooksReviewCommentPropLinksPropPullRequestType as WebhooksReviewCommentPropLinksPropPullRequestType, ) - from .group_0434 import ( + from .group_0440 import ( WebhooksReviewCommentPropLinksPropSelfType as WebhooksReviewCommentPropLinksPropSelfType, ) - from .group_0434 import ( + from .group_0440 import ( WebhooksReviewCommentPropLinksType as WebhooksReviewCommentPropLinksType, ) - from .group_0434 import ( + from .group_0440 import ( WebhooksReviewCommentPropReactionsType as WebhooksReviewCommentPropReactionsType, ) - from .group_0434 import ( + from .group_0440 import ( WebhooksReviewCommentPropUserType as WebhooksReviewCommentPropUserType, ) - from .group_0434 import WebhooksReviewCommentType as WebhooksReviewCommentType - from .group_0435 import ( + from .group_0440 import WebhooksReviewCommentType as WebhooksReviewCommentType + from .group_0441 import ( WebhooksReviewPropLinksPropHtmlType as WebhooksReviewPropLinksPropHtmlType, ) - from .group_0435 import ( + from .group_0441 import ( WebhooksReviewPropLinksPropPullRequestType as WebhooksReviewPropLinksPropPullRequestType, ) - from .group_0435 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType - from .group_0435 import WebhooksReviewPropUserType as WebhooksReviewPropUserType - from .group_0435 import WebhooksReviewType as WebhooksReviewType - from .group_0436 import ( + from .group_0441 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType + from .group_0441 import WebhooksReviewPropUserType as WebhooksReviewPropUserType + from .group_0441 import WebhooksReviewType as WebhooksReviewType + from .group_0442 import ( WebhooksReleasePropAssetsItemsPropUploaderType as WebhooksReleasePropAssetsItemsPropUploaderType, ) - from .group_0436 import ( + from .group_0442 import ( WebhooksReleasePropAssetsItemsType as WebhooksReleasePropAssetsItemsType, ) - from .group_0436 import ( + from .group_0442 import ( WebhooksReleasePropAuthorType as WebhooksReleasePropAuthorType, ) - from .group_0436 import ( + from .group_0442 import ( WebhooksReleasePropReactionsType as WebhooksReleasePropReactionsType, ) - from .group_0436 import WebhooksReleaseType as WebhooksReleaseType - from .group_0437 import ( + from .group_0442 import WebhooksReleaseType as WebhooksReleaseType + from .group_0443 import ( WebhooksRelease1PropAssetsItemsPropUploaderType as WebhooksRelease1PropAssetsItemsPropUploaderType, ) - from .group_0437 import ( + from .group_0443 import ( WebhooksRelease1PropAssetsItemsType as WebhooksRelease1PropAssetsItemsType, ) - from .group_0437 import ( + from .group_0443 import ( WebhooksRelease1PropAuthorType as WebhooksRelease1PropAuthorType, ) - from .group_0437 import ( + from .group_0443 import ( WebhooksRelease1PropReactionsType as WebhooksRelease1PropReactionsType, ) - from .group_0437 import WebhooksRelease1Type as WebhooksRelease1Type - from .group_0438 import ( + from .group_0443 import WebhooksRelease1Type as WebhooksRelease1Type + from .group_0444 import ( WebhooksAlertPropDismisserType as WebhooksAlertPropDismisserType, ) - from .group_0438 import WebhooksAlertType as WebhooksAlertType - from .group_0439 import ( + from .group_0444 import WebhooksAlertType as WebhooksAlertType + from .group_0445 import ( SecretScanningAlertWebhookType as SecretScanningAlertWebhookType, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropCvssType as WebhooksSecurityAdvisoryPropCvssType, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropCwesItemsType as WebhooksSecurityAdvisoryPropCwesItemsType, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropIdentifiersItemsType as WebhooksSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropReferencesItemsType as WebhooksSecurityAdvisoryPropReferencesItemsType, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0440 import ( + from .group_0446 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0440 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType - from .group_0441 import ( + from .group_0446 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType + from .group_0447 import ( WebhooksSponsorshipPropMaintainerType as WebhooksSponsorshipPropMaintainerType, ) - from .group_0441 import ( + from .group_0447 import ( WebhooksSponsorshipPropSponsorableType as WebhooksSponsorshipPropSponsorableType, ) - from .group_0441 import ( + from .group_0447 import ( WebhooksSponsorshipPropSponsorType as WebhooksSponsorshipPropSponsorType, ) - from .group_0441 import ( + from .group_0447 import ( WebhooksSponsorshipPropTierType as WebhooksSponsorshipPropTierType, ) - from .group_0441 import WebhooksSponsorshipType as WebhooksSponsorshipType - from .group_0442 import ( + from .group_0447 import WebhooksSponsorshipType as WebhooksSponsorshipType + from .group_0448 import ( WebhooksChanges8PropTierPropFromType as WebhooksChanges8PropTierPropFromType, ) - from .group_0442 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType - from .group_0442 import WebhooksChanges8Type as WebhooksChanges8Type - from .group_0443 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType - from .group_0443 import WebhooksTeam1Type as WebhooksTeam1Type - from .group_0444 import ( + from .group_0448 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType + from .group_0448 import WebhooksChanges8Type as WebhooksChanges8Type + from .group_0449 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType + from .group_0449 import WebhooksTeam1Type as WebhooksTeam1Type + from .group_0450 import ( WebhookBranchProtectionConfigurationDisabledType as WebhookBranchProtectionConfigurationDisabledType, ) - from .group_0445 import ( + from .group_0451 import ( WebhookBranchProtectionConfigurationEnabledType as WebhookBranchProtectionConfigurationEnabledType, ) - from .group_0446 import ( + from .group_0452 import ( WebhookBranchProtectionRuleCreatedType as WebhookBranchProtectionRuleCreatedType, ) - from .group_0447 import ( + from .group_0453 import ( WebhookBranchProtectionRuleDeletedType as WebhookBranchProtectionRuleDeletedType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedPropChangesType as WebhookBranchProtectionRuleEditedPropChangesType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookBranchProtectionRuleEditedType as WebhookBranchProtectionRuleEditedType, ) - from .group_0449 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType - from .group_0450 import ( + from .group_0455 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType + from .group_0456 import ( WebhookCheckRunCompletedFormEncodedType as WebhookCheckRunCompletedFormEncodedType, ) - from .group_0451 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType - from .group_0452 import ( + from .group_0457 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType + from .group_0458 import ( WebhookCheckRunCreatedFormEncodedType as WebhookCheckRunCreatedFormEncodedType, ) - from .group_0453 import ( + from .group_0459 import ( WebhookCheckRunRequestedActionPropRequestedActionType as WebhookCheckRunRequestedActionPropRequestedActionType, ) - from .group_0453 import ( + from .group_0459 import ( WebhookCheckRunRequestedActionType as WebhookCheckRunRequestedActionType, ) - from .group_0454 import ( + from .group_0460 import ( WebhookCheckRunRequestedActionFormEncodedType as WebhookCheckRunRequestedActionFormEncodedType, ) - from .group_0455 import ( + from .group_0461 import ( WebhookCheckRunRerequestedType as WebhookCheckRunRerequestedType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookCheckRunRerequestedFormEncodedType as WebhookCheckRunRerequestedFormEncodedType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppType as WebhookCheckSuiteCompletedPropCheckSuitePropAppType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedPropCheckSuiteType as WebhookCheckSuiteCompletedPropCheckSuiteType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookCheckSuiteCompletedType as WebhookCheckSuiteCompletedType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppType as WebhookCheckSuiteRequestedPropCheckSuitePropAppType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedPropCheckSuiteType as WebhookCheckSuiteRequestedPropCheckSuiteType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookCheckSuiteRequestedType as WebhookCheckSuiteRequestedType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedPropCheckSuiteType as WebhookCheckSuiteRerequestedPropCheckSuiteType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookCheckSuiteRerequestedType as WebhookCheckSuiteRerequestedType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertType as WebhookCodeScanningAlertAppearedInBranchPropAlertType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookCodeScanningAlertAppearedInBranchType as WebhookCodeScanningAlertAppearedInBranchType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType as WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropToolType as WebhookCodeScanningAlertClosedByUserPropAlertPropToolType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserPropAlertType as WebhookCodeScanningAlertClosedByUserPropAlertType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookCodeScanningAlertClosedByUserType as WebhookCodeScanningAlertClosedByUserType, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedPropAlertPropRuleType as WebhookCodeScanningAlertCreatedPropAlertPropRuleType, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedPropAlertPropToolType as WebhookCodeScanningAlertCreatedPropAlertPropToolType, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedPropAlertType as WebhookCodeScanningAlertCreatedPropAlertType, ) - from .group_0462 import ( + from .group_0468 import ( WebhookCodeScanningAlertCreatedType as WebhookCodeScanningAlertCreatedType, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedByType as WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertPropRuleType as WebhookCodeScanningAlertFixedPropAlertPropRuleType, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertPropToolType as WebhookCodeScanningAlertFixedPropAlertPropToolType, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedPropAlertType as WebhookCodeScanningAlertFixedPropAlertType, ) - from .group_0463 import ( + from .group_0469 import ( WebhookCodeScanningAlertFixedType as WebhookCodeScanningAlertFixedType, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType as WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertPropRuleType as WebhookCodeScanningAlertReopenedPropAlertPropRuleType, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertPropToolType as WebhookCodeScanningAlertReopenedPropAlertPropToolType, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedPropAlertType as WebhookCodeScanningAlertReopenedPropAlertType, ) - from .group_0464 import ( + from .group_0470 import ( WebhookCodeScanningAlertReopenedType as WebhookCodeScanningAlertReopenedType, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType as WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType as WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserPropAlertType as WebhookCodeScanningAlertReopenedByUserPropAlertType, ) - from .group_0465 import ( + from .group_0471 import ( WebhookCodeScanningAlertReopenedByUserType as WebhookCodeScanningAlertReopenedByUserType, ) - from .group_0466 import ( + from .group_0472 import ( WebhookCommitCommentCreatedPropCommentPropReactionsType as WebhookCommitCommentCreatedPropCommentPropReactionsType, ) - from .group_0466 import ( + from .group_0472 import ( WebhookCommitCommentCreatedPropCommentPropUserType as WebhookCommitCommentCreatedPropCommentPropUserType, ) - from .group_0466 import ( + from .group_0472 import ( WebhookCommitCommentCreatedPropCommentType as WebhookCommitCommentCreatedPropCommentType, ) - from .group_0466 import ( + from .group_0472 import ( WebhookCommitCommentCreatedType as WebhookCommitCommentCreatedType, ) - from .group_0467 import WebhookCreateType as WebhookCreateType - from .group_0468 import ( + from .group_0473 import WebhookCreateType as WebhookCreateType + from .group_0474 import ( WebhookCustomPropertyCreatedType as WebhookCustomPropertyCreatedType, ) - from .group_0469 import ( + from .group_0475 import ( WebhookCustomPropertyDeletedPropDefinitionType as WebhookCustomPropertyDeletedPropDefinitionType, ) - from .group_0469 import ( + from .group_0475 import ( WebhookCustomPropertyDeletedType as WebhookCustomPropertyDeletedType, ) - from .group_0470 import ( + from .group_0476 import ( WebhookCustomPropertyUpdatedType as WebhookCustomPropertyUpdatedType, ) - from .group_0471 import ( + from .group_0477 import ( WebhookCustomPropertyValuesUpdatedType as WebhookCustomPropertyValuesUpdatedType, ) - from .group_0472 import WebhookDeleteType as WebhookDeleteType - from .group_0473 import ( + from .group_0478 import WebhookDeleteType as WebhookDeleteType + from .group_0479 import ( WebhookDependabotAlertAutoDismissedType as WebhookDependabotAlertAutoDismissedType, ) - from .group_0474 import ( + from .group_0480 import ( WebhookDependabotAlertAutoReopenedType as WebhookDependabotAlertAutoReopenedType, ) - from .group_0475 import ( + from .group_0481 import ( WebhookDependabotAlertCreatedType as WebhookDependabotAlertCreatedType, ) - from .group_0476 import ( + from .group_0482 import ( WebhookDependabotAlertDismissedType as WebhookDependabotAlertDismissedType, ) - from .group_0477 import ( + from .group_0483 import ( WebhookDependabotAlertFixedType as WebhookDependabotAlertFixedType, ) - from .group_0478 import ( + from .group_0484 import ( WebhookDependabotAlertReintroducedType as WebhookDependabotAlertReintroducedType, ) - from .group_0479 import ( + from .group_0485 import ( WebhookDependabotAlertReopenedType as WebhookDependabotAlertReopenedType, ) - from .group_0480 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType - from .group_0481 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType - from .group_0482 import ( + from .group_0486 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType + from .group_0487 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType + from .group_0488 import ( WebhookDeploymentCreatedPropDeploymentPropCreatorType as WebhookDeploymentCreatedPropDeploymentPropCreatorType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropDeploymentType as WebhookDeploymentCreatedPropDeploymentType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropActorType as WebhookDeploymentCreatedPropWorkflowRunPropActorType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookDeploymentCreatedPropWorkflowRunType as WebhookDeploymentCreatedPropWorkflowRunType, ) - from .group_0482 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType - from .group_0483 import ( + from .group_0488 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType + from .group_0489 import ( WebhookDeploymentProtectionRuleRequestedType as WebhookDeploymentProtectionRuleRequestedType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedPropWorkflowRunType as WebhookDeploymentReviewApprovedPropWorkflowRunType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookDeploymentReviewApprovedType as WebhookDeploymentReviewApprovedType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedPropWorkflowRunType as WebhookDeploymentReviewRejectedPropWorkflowRunType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookDeploymentReviewRejectedType as WebhookDeploymentReviewRejectedType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropReviewersItemsType as WebhookDeploymentReviewRequestedPropReviewersItemsType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRunType as WebhookDeploymentReviewRequestedPropWorkflowJobRunType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedPropWorkflowRunType as WebhookDeploymentReviewRequestedPropWorkflowRunType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookDeploymentReviewRequestedType as WebhookDeploymentReviewRequestedType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropCheckRunType as WebhookDeploymentStatusCreatedPropCheckRunType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusType as WebhookDeploymentStatusCreatedPropDeploymentStatusType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropDeploymentType as WebhookDeploymentStatusCreatedPropDeploymentType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedPropWorkflowRunType as WebhookDeploymentStatusCreatedPropWorkflowRunType, ) - from .group_0487 import ( + from .group_0493 import ( WebhookDeploymentStatusCreatedType as WebhookDeploymentStatusCreatedType, ) - from .group_0488 import ( + from .group_0494 import ( WebhookDiscussionAnsweredType as WebhookDiscussionAnsweredType, ) - from .group_0489 import ( + from .group_0495 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType, ) - from .group_0489 import ( + from .group_0495 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryType as WebhookDiscussionCategoryChangedPropChangesPropCategoryType, ) - from .group_0489 import ( + from .group_0495 import ( WebhookDiscussionCategoryChangedPropChangesType as WebhookDiscussionCategoryChangedPropChangesType, ) - from .group_0489 import ( + from .group_0495 import ( WebhookDiscussionCategoryChangedType as WebhookDiscussionCategoryChangedType, ) - from .group_0490 import WebhookDiscussionClosedType as WebhookDiscussionClosedType - from .group_0491 import ( + from .group_0496 import WebhookDiscussionClosedType as WebhookDiscussionClosedType + from .group_0497 import ( WebhookDiscussionCommentCreatedType as WebhookDiscussionCommentCreatedType, ) - from .group_0492 import ( + from .group_0498 import ( WebhookDiscussionCommentDeletedType as WebhookDiscussionCommentDeletedType, ) - from .group_0493 import ( + from .group_0499 import ( WebhookDiscussionCommentEditedPropChangesPropBodyType as WebhookDiscussionCommentEditedPropChangesPropBodyType, ) - from .group_0493 import ( + from .group_0499 import ( WebhookDiscussionCommentEditedPropChangesType as WebhookDiscussionCommentEditedPropChangesType, ) - from .group_0493 import ( + from .group_0499 import ( WebhookDiscussionCommentEditedType as WebhookDiscussionCommentEditedType, ) - from .group_0494 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType - from .group_0495 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType - from .group_0496 import ( + from .group_0500 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType + from .group_0501 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType + from .group_0502 import ( WebhookDiscussionEditedPropChangesPropBodyType as WebhookDiscussionEditedPropChangesPropBodyType, ) - from .group_0496 import ( + from .group_0502 import ( WebhookDiscussionEditedPropChangesPropTitleType as WebhookDiscussionEditedPropChangesPropTitleType, ) - from .group_0496 import ( + from .group_0502 import ( WebhookDiscussionEditedPropChangesType as WebhookDiscussionEditedPropChangesType, ) - from .group_0496 import WebhookDiscussionEditedType as WebhookDiscussionEditedType - from .group_0497 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType - from .group_0498 import WebhookDiscussionLockedType as WebhookDiscussionLockedType - from .group_0499 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType - from .group_0500 import ( + from .group_0502 import WebhookDiscussionEditedType as WebhookDiscussionEditedType + from .group_0503 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType + from .group_0504 import WebhookDiscussionLockedType as WebhookDiscussionLockedType + from .group_0505 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType + from .group_0506 import ( WebhookDiscussionReopenedType as WebhookDiscussionReopenedType, ) - from .group_0501 import ( + from .group_0507 import ( WebhookDiscussionTransferredType as WebhookDiscussionTransferredType, ) - from .group_0502 import ( + from .group_0508 import ( WebhookDiscussionTransferredPropChangesType as WebhookDiscussionTransferredPropChangesType, ) - from .group_0503 import ( + from .group_0509 import ( WebhookDiscussionUnansweredType as WebhookDiscussionUnansweredType, ) - from .group_0504 import ( + from .group_0510 import ( WebhookDiscussionUnlabeledType as WebhookDiscussionUnlabeledType, ) - from .group_0505 import ( + from .group_0511 import ( WebhookDiscussionUnlockedType as WebhookDiscussionUnlockedType, ) - from .group_0506 import ( + from .group_0512 import ( WebhookDiscussionUnpinnedType as WebhookDiscussionUnpinnedType, ) - from .group_0507 import WebhookForkType as WebhookForkType - from .group_0508 import ( + from .group_0513 import WebhookForkType as WebhookForkType + from .group_0514 import ( WebhookForkPropForkeeMergedLicenseType as WebhookForkPropForkeeMergedLicenseType, ) - from .group_0508 import ( + from .group_0514 import ( WebhookForkPropForkeeMergedOwnerType as WebhookForkPropForkeeMergedOwnerType, ) - from .group_0508 import WebhookForkPropForkeeType as WebhookForkPropForkeeType - from .group_0509 import ( + from .group_0514 import WebhookForkPropForkeeType as WebhookForkPropForkeeType + from .group_0515 import ( WebhookForkPropForkeeAllof0PropLicenseType as WebhookForkPropForkeeAllof0PropLicenseType, ) - from .group_0509 import ( + from .group_0515 import ( WebhookForkPropForkeeAllof0PropOwnerType as WebhookForkPropForkeeAllof0PropOwnerType, ) - from .group_0509 import ( + from .group_0515 import ( WebhookForkPropForkeeAllof0Type as WebhookForkPropForkeeAllof0Type, ) - from .group_0510 import ( + from .group_0516 import ( WebhookForkPropForkeeAllof0PropPermissionsType as WebhookForkPropForkeeAllof0PropPermissionsType, ) - from .group_0511 import ( + from .group_0517 import ( WebhookForkPropForkeeAllof1PropLicenseType as WebhookForkPropForkeeAllof1PropLicenseType, ) - from .group_0511 import ( + from .group_0517 import ( WebhookForkPropForkeeAllof1PropOwnerType as WebhookForkPropForkeeAllof1PropOwnerType, ) - from .group_0511 import ( + from .group_0517 import ( WebhookForkPropForkeeAllof1Type as WebhookForkPropForkeeAllof1Type, ) - from .group_0512 import ( + from .group_0518 import ( WebhookGithubAppAuthorizationRevokedType as WebhookGithubAppAuthorizationRevokedType, ) - from .group_0513 import ( + from .group_0519 import ( WebhookGollumPropPagesItemsType as WebhookGollumPropPagesItemsType, ) - from .group_0513 import WebhookGollumType as WebhookGollumType - from .group_0514 import ( + from .group_0519 import WebhookGollumType as WebhookGollumType + from .group_0520 import ( WebhookInstallationCreatedType as WebhookInstallationCreatedType, ) - from .group_0515 import ( + from .group_0521 import ( WebhookInstallationDeletedType as WebhookInstallationDeletedType, ) - from .group_0516 import ( + from .group_0522 import ( WebhookInstallationNewPermissionsAcceptedType as WebhookInstallationNewPermissionsAcceptedType, ) - from .group_0517 import ( + from .group_0523 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType, ) - from .group_0517 import ( + from .group_0523 import ( WebhookInstallationRepositoriesAddedType as WebhookInstallationRepositoriesAddedType, ) - from .group_0518 import ( + from .group_0524 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType, ) - from .group_0518 import ( + from .group_0524 import ( WebhookInstallationRepositoriesRemovedType as WebhookInstallationRepositoriesRemovedType, ) - from .group_0519 import ( + from .group_0525 import ( WebhookInstallationSuspendType as WebhookInstallationSuspendType, ) - from .group_0520 import ( + from .group_0526 import ( WebhookInstallationTargetRenamedPropAccountType as WebhookInstallationTargetRenamedPropAccountType, ) - from .group_0520 import ( + from .group_0526 import ( WebhookInstallationTargetRenamedPropChangesPropLoginType as WebhookInstallationTargetRenamedPropChangesPropLoginType, ) - from .group_0520 import ( + from .group_0526 import ( WebhookInstallationTargetRenamedPropChangesPropSlugType as WebhookInstallationTargetRenamedPropChangesPropSlugType, ) - from .group_0520 import ( + from .group_0526 import ( WebhookInstallationTargetRenamedPropChangesType as WebhookInstallationTargetRenamedPropChangesType, ) - from .group_0520 import ( + from .group_0526 import ( WebhookInstallationTargetRenamedType as WebhookInstallationTargetRenamedType, ) - from .group_0521 import ( + from .group_0527 import ( WebhookInstallationUnsuspendType as WebhookInstallationUnsuspendType, ) - from .group_0522 import ( + from .group_0528 import ( WebhookIssueCommentCreatedType as WebhookIssueCommentCreatedType, ) - from .group_0523 import ( + from .group_0529 import ( WebhookIssueCommentCreatedPropCommentPropReactionsType as WebhookIssueCommentCreatedPropCommentPropReactionsType, ) - from .group_0523 import ( + from .group_0529 import ( WebhookIssueCommentCreatedPropCommentPropUserType as WebhookIssueCommentCreatedPropCommentPropUserType, ) - from .group_0523 import ( + from .group_0529 import ( WebhookIssueCommentCreatedPropCommentType as WebhookIssueCommentCreatedPropCommentType, ) - from .group_0524 import ( + from .group_0530 import ( WebhookIssueCommentCreatedPropIssueMergedAssigneesType as WebhookIssueCommentCreatedPropIssueMergedAssigneesType, ) - from .group_0524 import ( + from .group_0530 import ( WebhookIssueCommentCreatedPropIssueMergedReactionsType as WebhookIssueCommentCreatedPropIssueMergedReactionsType, ) - from .group_0524 import ( + from .group_0530 import ( WebhookIssueCommentCreatedPropIssueMergedUserType as WebhookIssueCommentCreatedPropIssueMergedUserType, ) - from .group_0524 import ( + from .group_0530 import ( WebhookIssueCommentCreatedPropIssueType as WebhookIssueCommentCreatedPropIssueType, ) - from .group_0525 import ( + from .group_0531 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0525 import ( + from .group_0531 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType, ) - from .group_0525 import ( + from .group_0531 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUserType as WebhookIssueCommentCreatedPropIssueAllof0PropUserType, ) - from .group_0525 import ( + from .group_0531 import ( WebhookIssueCommentCreatedPropIssueAllof0Type as WebhookIssueCommentCreatedPropIssueAllof0Type, ) - from .group_0526 import ( + from .group_0532 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, ) - from .group_0526 import ( + from .group_0532 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, ) - from .group_0526 import ( + from .group_0532 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0528 import ( + from .group_0534 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, ) - from .group_0529 import ( + from .group_0535 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0529 import ( + from .group_0535 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0530 import ( + from .group_0536 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0531 import ( + from .group_0537 import ( WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUserType as WebhookIssueCommentCreatedPropIssueAllof1PropUserType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssueCommentCreatedPropIssueAllof1Type as WebhookIssueCommentCreatedPropIssueAllof1Type, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssueCommentCreatedPropIssueMergedMilestoneType as WebhookIssueCommentCreatedPropIssueMergedMilestoneType, ) - from .group_0534 import ( + from .group_0540 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0535 import ( + from .group_0541 import ( WebhookIssueCommentDeletedType as WebhookIssueCommentDeletedType, ) - from .group_0536 import ( + from .group_0542 import ( WebhookIssueCommentDeletedPropIssueMergedAssigneesType as WebhookIssueCommentDeletedPropIssueMergedAssigneesType, ) - from .group_0536 import ( + from .group_0542 import ( WebhookIssueCommentDeletedPropIssueMergedReactionsType as WebhookIssueCommentDeletedPropIssueMergedReactionsType, ) - from .group_0536 import ( + from .group_0542 import ( WebhookIssueCommentDeletedPropIssueMergedUserType as WebhookIssueCommentDeletedPropIssueMergedUserType, ) - from .group_0536 import ( + from .group_0542 import ( WebhookIssueCommentDeletedPropIssueType as WebhookIssueCommentDeletedPropIssueType, ) - from .group_0537 import ( + from .group_0543 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0537 import ( + from .group_0543 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType, ) - from .group_0537 import ( + from .group_0543 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUserType as WebhookIssueCommentDeletedPropIssueAllof0PropUserType, ) - from .group_0537 import ( + from .group_0543 import ( WebhookIssueCommentDeletedPropIssueAllof0Type as WebhookIssueCommentDeletedPropIssueAllof0Type, ) - from .group_0538 import ( + from .group_0544 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, ) - from .group_0538 import ( + from .group_0544 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, ) - from .group_0538 import ( + from .group_0544 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0540 import ( + from .group_0546 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, ) - from .group_0541 import ( + from .group_0547 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0541 import ( + from .group_0547 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUserType as WebhookIssueCommentDeletedPropIssueAllof1PropUserType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssueCommentDeletedPropIssueAllof1Type as WebhookIssueCommentDeletedPropIssueAllof1Type, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssueCommentDeletedPropIssueMergedMilestoneType as WebhookIssueCommentDeletedPropIssueMergedMilestoneType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssueCommentEditedType as WebhookIssueCommentEditedType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssueCommentEditedPropIssueMergedAssigneesType as WebhookIssueCommentEditedPropIssueMergedAssigneesType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssueCommentEditedPropIssueMergedReactionsType as WebhookIssueCommentEditedPropIssueMergedReactionsType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssueCommentEditedPropIssueMergedUserType as WebhookIssueCommentEditedPropIssueMergedUserType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssueCommentEditedPropIssueType as WebhookIssueCommentEditedPropIssueType, ) - from .group_0549 import ( + from .group_0555 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0549 import ( + from .group_0555 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactionsType as WebhookIssueCommentEditedPropIssueAllof0PropReactionsType, ) - from .group_0549 import ( + from .group_0555 import ( WebhookIssueCommentEditedPropIssueAllof0PropUserType as WebhookIssueCommentEditedPropIssueAllof0PropUserType, ) - from .group_0549 import ( + from .group_0555 import ( WebhookIssueCommentEditedPropIssueAllof0Type as WebhookIssueCommentEditedPropIssueAllof0Type, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType as WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0552 import ( + from .group_0558 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, ) - from .group_0553 import ( + from .group_0559 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0553 import ( + from .group_0559 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0555 import ( + from .group_0561 import ( WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactionsType as WebhookIssueCommentEditedPropIssueAllof1PropReactionsType, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1PropUserType as WebhookIssueCommentEditedPropIssueAllof1PropUserType, ) - from .group_0556 import ( + from .group_0562 import ( WebhookIssueCommentEditedPropIssueAllof1Type as WebhookIssueCommentEditedPropIssueAllof1Type, ) - from .group_0557 import ( + from .group_0563 import ( WebhookIssueCommentEditedPropIssueMergedMilestoneType as WebhookIssueCommentEditedPropIssueMergedMilestoneType, ) - from .group_0558 import ( + from .group_0564 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0559 import WebhookIssuesAssignedType as WebhookIssuesAssignedType - from .group_0560 import WebhookIssuesClosedType as WebhookIssuesClosedType - from .group_0561 import ( + from .group_0565 import WebhookIssuesAssignedType as WebhookIssuesAssignedType + from .group_0566 import WebhookIssuesClosedType as WebhookIssuesClosedType + from .group_0567 import ( WebhookIssuesClosedPropIssueMergedAssigneesType as WebhookIssuesClosedPropIssueMergedAssigneesType, ) - from .group_0561 import ( + from .group_0567 import ( WebhookIssuesClosedPropIssueMergedAssigneeType as WebhookIssuesClosedPropIssueMergedAssigneeType, ) - from .group_0561 import ( + from .group_0567 import ( WebhookIssuesClosedPropIssueMergedLabelsType as WebhookIssuesClosedPropIssueMergedLabelsType, ) - from .group_0561 import ( + from .group_0567 import ( WebhookIssuesClosedPropIssueMergedReactionsType as WebhookIssuesClosedPropIssueMergedReactionsType, ) - from .group_0561 import ( + from .group_0567 import ( WebhookIssuesClosedPropIssueMergedUserType as WebhookIssuesClosedPropIssueMergedUserType, ) - from .group_0561 import ( + from .group_0567 import ( WebhookIssuesClosedPropIssueType as WebhookIssuesClosedPropIssueType, ) - from .group_0562 import ( + from .group_0568 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0562 import ( + from .group_0568 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneeType as WebhookIssuesClosedPropIssueAllof0PropAssigneeType, ) - from .group_0562 import ( + from .group_0568 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType, ) - from .group_0562 import ( + from .group_0568 import ( WebhookIssuesClosedPropIssueAllof0PropReactionsType as WebhookIssuesClosedPropIssueAllof0PropReactionsType, ) - from .group_0562 import ( + from .group_0568 import ( WebhookIssuesClosedPropIssueAllof0PropUserType as WebhookIssuesClosedPropIssueAllof0PropUserType, ) - from .group_0562 import ( + from .group_0568 import ( WebhookIssuesClosedPropIssueAllof0Type as WebhookIssuesClosedPropIssueAllof0Type, ) - from .group_0563 import ( + from .group_0569 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0564 import ( + from .group_0570 import ( WebhookIssuesClosedPropIssueAllof0PropMilestoneType as WebhookIssuesClosedPropIssueAllof0PropMilestoneType, ) - from .group_0565 import ( + from .group_0571 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0565 import ( + from .group_0571 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0566 import ( + from .group_0572 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0567 import ( + from .group_0573 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequestType as WebhookIssuesClosedPropIssueAllof0PropPullRequestType, ) - from .group_0567 import ( + from .group_0573 import ( WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneeType as WebhookIssuesClosedPropIssueAllof1PropAssigneeType, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropMilestoneType as WebhookIssuesClosedPropIssueAllof1PropMilestoneType, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropReactionsType as WebhookIssuesClosedPropIssueAllof1PropReactionsType, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1PropUserType as WebhookIssuesClosedPropIssueAllof1PropUserType, ) - from .group_0568 import ( + from .group_0574 import ( WebhookIssuesClosedPropIssueAllof1Type as WebhookIssuesClosedPropIssueAllof1Type, ) - from .group_0569 import ( + from .group_0575 import ( WebhookIssuesClosedPropIssueMergedMilestoneType as WebhookIssuesClosedPropIssueMergedMilestoneType, ) - from .group_0570 import ( + from .group_0576 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropAssigneesItemsType as WebhookIssuesDeletedPropIssuePropAssigneesItemsType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropAssigneeType as WebhookIssuesDeletedPropIssuePropAssigneeType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropLabelsItemsType as WebhookIssuesDeletedPropIssuePropLabelsItemsType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType as WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropMilestoneType as WebhookIssuesDeletedPropIssuePropMilestoneType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropPullRequestType as WebhookIssuesDeletedPropIssuePropPullRequestType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropReactionsType as WebhookIssuesDeletedPropIssuePropReactionsType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType as WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssuePropUserType as WebhookIssuesDeletedPropIssuePropUserType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookIssuesDeletedPropIssueType as WebhookIssuesDeletedPropIssueType, ) - from .group_0571 import WebhookIssuesDeletedType as WebhookIssuesDeletedType - from .group_0572 import ( + from .group_0577 import WebhookIssuesDeletedType as WebhookIssuesDeletedType + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType as WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropAssigneeType as WebhookIssuesDemilestonedPropIssuePropAssigneeType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItemsType as WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropMilestoneType as WebhookIssuesDemilestonedPropIssuePropMilestoneType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropPullRequestType as WebhookIssuesDemilestonedPropIssuePropPullRequestType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropReactionsType as WebhookIssuesDemilestonedPropIssuePropReactionsType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssuePropUserType as WebhookIssuesDemilestonedPropIssuePropUserType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedPropIssueType as WebhookIssuesDemilestonedPropIssueType, ) - from .group_0572 import ( + from .group_0578 import ( WebhookIssuesDemilestonedType as WebhookIssuesDemilestonedType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropChangesPropBodyType as WebhookIssuesEditedPropChangesPropBodyType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropChangesPropTitleType as WebhookIssuesEditedPropChangesPropTitleType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropChangesType as WebhookIssuesEditedPropChangesType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropAssigneesItemsType as WebhookIssuesEditedPropIssuePropAssigneesItemsType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropAssigneeType as WebhookIssuesEditedPropIssuePropAssigneeType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropLabelsItemsType as WebhookIssuesEditedPropIssuePropLabelsItemsType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreatorType as WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropMilestoneType as WebhookIssuesEditedPropIssuePropMilestoneType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropPullRequestType as WebhookIssuesEditedPropIssuePropPullRequestType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropReactionsType as WebhookIssuesEditedPropIssuePropReactionsType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropSubIssuesSummaryType as WebhookIssuesEditedPropIssuePropSubIssuesSummaryType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssuePropUserType as WebhookIssuesEditedPropIssuePropUserType, ) - from .group_0573 import ( + from .group_0579 import ( WebhookIssuesEditedPropIssueType as WebhookIssuesEditedPropIssueType, ) - from .group_0573 import WebhookIssuesEditedType as WebhookIssuesEditedType - from .group_0574 import ( + from .group_0579 import WebhookIssuesEditedType as WebhookIssuesEditedType + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropAssigneeType as WebhookIssuesLabeledPropIssuePropAssigneeType, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropLabelsItemsType as WebhookIssuesLabeledPropIssuePropLabelsItemsType, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropMilestoneType as WebhookIssuesLabeledPropIssuePropMilestoneType, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropPullRequestType as WebhookIssuesLabeledPropIssuePropPullRequestType, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType as WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssuePropUserType as WebhookIssuesLabeledPropIssuePropUserType, ) - from .group_0574 import ( + from .group_0580 import ( WebhookIssuesLabeledPropIssueType as WebhookIssuesLabeledPropIssueType, ) - from .group_0574 import WebhookIssuesLabeledType as WebhookIssuesLabeledType - from .group_0575 import ( + from .group_0580 import WebhookIssuesLabeledType as WebhookIssuesLabeledType + from .group_0581 import ( WebhookIssuesLockedPropIssuePropAssigneesItemsType as WebhookIssuesLockedPropIssuePropAssigneesItemsType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropAssigneeType as WebhookIssuesLockedPropIssuePropAssigneeType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropLabelsItemsType as WebhookIssuesLockedPropIssuePropLabelsItemsType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreatorType as WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropMilestoneType as WebhookIssuesLockedPropIssuePropMilestoneType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropPullRequestType as WebhookIssuesLockedPropIssuePropPullRequestType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropReactionsType as WebhookIssuesLockedPropIssuePropReactionsType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropSubIssuesSummaryType as WebhookIssuesLockedPropIssuePropSubIssuesSummaryType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssuePropUserType as WebhookIssuesLockedPropIssuePropUserType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookIssuesLockedPropIssueType as WebhookIssuesLockedPropIssueType, ) - from .group_0575 import WebhookIssuesLockedType as WebhookIssuesLockedType - from .group_0576 import ( + from .group_0581 import WebhookIssuesLockedType as WebhookIssuesLockedType + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItemsType as WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropAssigneeType as WebhookIssuesMilestonedPropIssuePropAssigneeType, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropLabelsItemsType as WebhookIssuesMilestonedPropIssuePropLabelsItemsType, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropMilestoneType as WebhookIssuesMilestonedPropIssuePropMilestoneType, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropPullRequestType as WebhookIssuesMilestonedPropIssuePropPullRequestType, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropReactionsType as WebhookIssuesMilestonedPropIssuePropReactionsType, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssuePropUserType as WebhookIssuesMilestonedPropIssuePropUserType, ) - from .group_0576 import ( + from .group_0582 import ( WebhookIssuesMilestonedPropIssueType as WebhookIssuesMilestonedPropIssueType, ) - from .group_0576 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType - from .group_0577 import ( + from .group_0582 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUserType as WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldIssueType as WebhookIssuesOpenedPropChangesPropOldIssueType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryType as WebhookIssuesOpenedPropChangesPropOldRepositoryType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropChangesType as WebhookIssuesOpenedPropChangesType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropAssigneesItemsType as WebhookIssuesOpenedPropIssuePropAssigneesItemsType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropAssigneeType as WebhookIssuesOpenedPropIssuePropAssigneeType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropLabelsItemsType as WebhookIssuesOpenedPropIssuePropLabelsItemsType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropMilestoneType as WebhookIssuesOpenedPropIssuePropMilestoneType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropPullRequestType as WebhookIssuesOpenedPropIssuePropPullRequestType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropReactionsType as WebhookIssuesOpenedPropIssuePropReactionsType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssuePropUserType as WebhookIssuesOpenedPropIssuePropUserType, ) - from .group_0577 import ( + from .group_0583 import ( WebhookIssuesOpenedPropIssueType as WebhookIssuesOpenedPropIssueType, ) - from .group_0577 import WebhookIssuesOpenedType as WebhookIssuesOpenedType - from .group_0578 import WebhookIssuesPinnedType as WebhookIssuesPinnedType - from .group_0579 import ( + from .group_0583 import WebhookIssuesOpenedType as WebhookIssuesOpenedType + from .group_0584 import WebhookIssuesPinnedType as WebhookIssuesPinnedType + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropAssigneesItemsType as WebhookIssuesReopenedPropIssuePropAssigneesItemsType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropAssigneeType as WebhookIssuesReopenedPropIssuePropAssigneeType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropLabelsItemsType as WebhookIssuesReopenedPropIssuePropLabelsItemsType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType as WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropMilestoneType as WebhookIssuesReopenedPropIssuePropMilestoneType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropPullRequestType as WebhookIssuesReopenedPropIssuePropPullRequestType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropReactionsType as WebhookIssuesReopenedPropIssuePropReactionsType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType as WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssuePropUserType as WebhookIssuesReopenedPropIssuePropUserType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookIssuesReopenedPropIssueType as WebhookIssuesReopenedPropIssueType, ) - from .group_0579 import WebhookIssuesReopenedType as WebhookIssuesReopenedType - from .group_0580 import ( + from .group_0585 import WebhookIssuesReopenedType as WebhookIssuesReopenedType + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUserType as WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewIssueType as WebhookIssuesTransferredPropChangesPropNewIssueType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryType as WebhookIssuesTransferredPropChangesPropNewRepositoryType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookIssuesTransferredPropChangesType as WebhookIssuesTransferredPropChangesType, ) - from .group_0580 import WebhookIssuesTransferredType as WebhookIssuesTransferredType - from .group_0581 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType - from .group_0582 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType - from .group_0583 import ( + from .group_0586 import WebhookIssuesTransferredType as WebhookIssuesTransferredType + from .group_0587 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType + from .group_0588 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItemsType as WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropAssigneeType as WebhookIssuesUnlockedPropIssuePropAssigneeType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropLabelsItemsType as WebhookIssuesUnlockedPropIssuePropLabelsItemsType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropMilestoneType as WebhookIssuesUnlockedPropIssuePropMilestoneType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropPullRequestType as WebhookIssuesUnlockedPropIssuePropPullRequestType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropReactionsType as WebhookIssuesUnlockedPropIssuePropReactionsType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType as WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssuePropUserType as WebhookIssuesUnlockedPropIssuePropUserType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookIssuesUnlockedPropIssueType as WebhookIssuesUnlockedPropIssueType, ) - from .group_0583 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType - from .group_0584 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType - from .group_0585 import WebhookLabelCreatedType as WebhookLabelCreatedType - from .group_0586 import WebhookLabelDeletedType as WebhookLabelDeletedType - from .group_0587 import ( + from .group_0589 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType + from .group_0590 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType + from .group_0591 import WebhookLabelCreatedType as WebhookLabelCreatedType + from .group_0592 import WebhookLabelDeletedType as WebhookLabelDeletedType + from .group_0593 import ( WebhookLabelEditedPropChangesPropColorType as WebhookLabelEditedPropChangesPropColorType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookLabelEditedPropChangesPropDescriptionType as WebhookLabelEditedPropChangesPropDescriptionType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookLabelEditedPropChangesPropNameType as WebhookLabelEditedPropChangesPropNameType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookLabelEditedPropChangesType as WebhookLabelEditedPropChangesType, ) - from .group_0587 import WebhookLabelEditedType as WebhookLabelEditedType - from .group_0588 import ( + from .group_0593 import WebhookLabelEditedType as WebhookLabelEditedType + from .group_0594 import ( WebhookMarketplacePurchaseCancelledType as WebhookMarketplacePurchaseCancelledType, ) - from .group_0589 import ( + from .group_0595 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0589 import ( + from .group_0595 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0589 import ( + from .group_0595 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType, ) - from .group_0589 import ( + from .group_0595 import ( WebhookMarketplacePurchaseChangedType as WebhookMarketplacePurchaseChangedType, ) - from .group_0590 import ( + from .group_0596 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType, ) - from .group_0590 import ( + from .group_0596 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType, ) - from .group_0590 import ( + from .group_0596 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType, ) - from .group_0590 import ( + from .group_0596 import ( WebhookMarketplacePurchasePendingChangeType as WebhookMarketplacePurchasePendingChangeType, ) - from .group_0591 import ( + from .group_0597 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType, ) - from .group_0591 import ( + from .group_0597 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType, ) - from .group_0591 import ( + from .group_0597 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, ) - from .group_0591 import ( + from .group_0597 import ( WebhookMarketplacePurchasePendingChangeCancelledType as WebhookMarketplacePurchasePendingChangeCancelledType, ) - from .group_0592 import ( + from .group_0598 import ( WebhookMarketplacePurchasePurchasedType as WebhookMarketplacePurchasePurchasedType, ) - from .group_0593 import ( + from .group_0599 import ( WebhookMemberAddedPropChangesPropPermissionType as WebhookMemberAddedPropChangesPropPermissionType, ) - from .group_0593 import ( + from .group_0599 import ( WebhookMemberAddedPropChangesPropRoleNameType as WebhookMemberAddedPropChangesPropRoleNameType, ) - from .group_0593 import ( + from .group_0599 import ( WebhookMemberAddedPropChangesType as WebhookMemberAddedPropChangesType, ) - from .group_0593 import WebhookMemberAddedType as WebhookMemberAddedType - from .group_0594 import ( + from .group_0599 import WebhookMemberAddedType as WebhookMemberAddedType + from .group_0600 import ( WebhookMemberEditedPropChangesPropOldPermissionType as WebhookMemberEditedPropChangesPropOldPermissionType, ) - from .group_0594 import ( + from .group_0600 import ( WebhookMemberEditedPropChangesPropPermissionType as WebhookMemberEditedPropChangesPropPermissionType, ) - from .group_0594 import ( + from .group_0600 import ( WebhookMemberEditedPropChangesType as WebhookMemberEditedPropChangesType, ) - from .group_0594 import WebhookMemberEditedType as WebhookMemberEditedType - from .group_0595 import WebhookMemberRemovedType as WebhookMemberRemovedType - from .group_0596 import ( + from .group_0600 import WebhookMemberEditedType as WebhookMemberEditedType + from .group_0601 import WebhookMemberRemovedType as WebhookMemberRemovedType + from .group_0602 import ( WebhookMembershipAddedPropSenderType as WebhookMembershipAddedPropSenderType, ) - from .group_0596 import WebhookMembershipAddedType as WebhookMembershipAddedType - from .group_0597 import ( + from .group_0602 import WebhookMembershipAddedType as WebhookMembershipAddedType + from .group_0603 import ( WebhookMembershipRemovedPropSenderType as WebhookMembershipRemovedPropSenderType, ) - from .group_0597 import WebhookMembershipRemovedType as WebhookMembershipRemovedType - from .group_0598 import ( + from .group_0603 import WebhookMembershipRemovedType as WebhookMembershipRemovedType + from .group_0604 import ( WebhookMergeGroupChecksRequestedType as WebhookMergeGroupChecksRequestedType, ) - from .group_0599 import ( + from .group_0605 import ( WebhookMergeGroupDestroyedType as WebhookMergeGroupDestroyedType, ) - from .group_0600 import ( + from .group_0606 import ( WebhookMetaDeletedPropHookPropConfigType as WebhookMetaDeletedPropHookPropConfigType, ) - from .group_0600 import ( + from .group_0606 import ( WebhookMetaDeletedPropHookType as WebhookMetaDeletedPropHookType, ) - from .group_0600 import WebhookMetaDeletedType as WebhookMetaDeletedType - from .group_0601 import WebhookMilestoneClosedType as WebhookMilestoneClosedType - from .group_0602 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType - from .group_0603 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType - from .group_0604 import ( + from .group_0606 import WebhookMetaDeletedType as WebhookMetaDeletedType + from .group_0607 import WebhookMilestoneClosedType as WebhookMilestoneClosedType + from .group_0608 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType + from .group_0609 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType + from .group_0610 import ( WebhookMilestoneEditedPropChangesPropDescriptionType as WebhookMilestoneEditedPropChangesPropDescriptionType, ) - from .group_0604 import ( + from .group_0610 import ( WebhookMilestoneEditedPropChangesPropDueOnType as WebhookMilestoneEditedPropChangesPropDueOnType, ) - from .group_0604 import ( + from .group_0610 import ( WebhookMilestoneEditedPropChangesPropTitleType as WebhookMilestoneEditedPropChangesPropTitleType, ) - from .group_0604 import ( + from .group_0610 import ( WebhookMilestoneEditedPropChangesType as WebhookMilestoneEditedPropChangesType, ) - from .group_0604 import WebhookMilestoneEditedType as WebhookMilestoneEditedType - from .group_0605 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType - from .group_0606 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType - from .group_0607 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType - from .group_0608 import ( + from .group_0610 import WebhookMilestoneEditedType as WebhookMilestoneEditedType + from .group_0611 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType + from .group_0612 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType + from .group_0613 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType + from .group_0614 import ( WebhookOrganizationDeletedType as WebhookOrganizationDeletedType, ) - from .group_0609 import ( + from .group_0615 import ( WebhookOrganizationMemberAddedType as WebhookOrganizationMemberAddedType, ) - from .group_0610 import ( + from .group_0616 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviterType as WebhookOrganizationMemberInvitedPropInvitationPropInviterType, ) - from .group_0610 import ( + from .group_0616 import ( WebhookOrganizationMemberInvitedPropInvitationType as WebhookOrganizationMemberInvitedPropInvitationType, ) - from .group_0610 import ( + from .group_0616 import ( WebhookOrganizationMemberInvitedType as WebhookOrganizationMemberInvitedType, ) - from .group_0611 import ( + from .group_0617 import ( WebhookOrganizationMemberRemovedType as WebhookOrganizationMemberRemovedType, ) - from .group_0612 import ( + from .group_0618 import ( WebhookOrganizationRenamedPropChangesPropLoginType as WebhookOrganizationRenamedPropChangesPropLoginType, ) - from .group_0612 import ( + from .group_0618 import ( WebhookOrganizationRenamedPropChangesType as WebhookOrganizationRenamedPropChangesType, ) - from .group_0612 import ( + from .group_0618 import ( WebhookOrganizationRenamedType as WebhookOrganizationRenamedType, ) - from .group_0613 import ( + from .group_0619 import ( WebhookRubygemsMetadataPropDependenciesItemsType as WebhookRubygemsMetadataPropDependenciesItemsType, ) - from .group_0613 import ( + from .group_0619 import ( WebhookRubygemsMetadataPropMetadataType as WebhookRubygemsMetadataPropMetadataType, ) - from .group_0613 import ( + from .group_0619 import ( WebhookRubygemsMetadataPropVersionInfoType as WebhookRubygemsMetadataPropVersionInfoType, ) - from .group_0613 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType - from .group_0614 import WebhookPackagePublishedType as WebhookPackagePublishedType - from .group_0615 import ( + from .group_0619 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType + from .group_0620 import WebhookPackagePublishedType as WebhookPackagePublishedType + from .group_0621 import ( WebhookPackagePublishedPropPackagePropOwnerType as WebhookPackagePublishedPropPackagePropOwnerType, ) - from .group_0615 import ( + from .group_0621 import ( WebhookPackagePublishedPropPackagePropRegistryType as WebhookPackagePublishedPropPackagePropRegistryType, ) - from .group_0615 import ( + from .group_0621 import ( WebhookPackagePublishedPropPackageType as WebhookPackagePublishedPropPackageType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookPackagePublishedPropPackagePropPackageVersionType as WebhookPackagePublishedPropPackagePropPackageVersionType, ) - from .group_0617 import WebhookPackageUpdatedType as WebhookPackageUpdatedType - from .group_0618 import ( + from .group_0623 import WebhookPackageUpdatedType as WebhookPackageUpdatedType + from .group_0624 import ( WebhookPackageUpdatedPropPackagePropOwnerType as WebhookPackageUpdatedPropPackagePropOwnerType, ) - from .group_0618 import ( + from .group_0624 import ( WebhookPackageUpdatedPropPackagePropRegistryType as WebhookPackageUpdatedPropPackagePropRegistryType, ) - from .group_0618 import ( + from .group_0624 import ( WebhookPackageUpdatedPropPackageType as WebhookPackageUpdatedPropPackageType, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0619 import ( + from .group_0625 import ( WebhookPackageUpdatedPropPackagePropPackageVersionType as WebhookPackageUpdatedPropPackagePropPackageVersionType, ) - from .group_0620 import ( + from .group_0626 import ( WebhookPageBuildPropBuildPropErrorType as WebhookPageBuildPropBuildPropErrorType, ) - from .group_0620 import ( + from .group_0626 import ( WebhookPageBuildPropBuildPropPusherType as WebhookPageBuildPropBuildPropPusherType, ) - from .group_0620 import ( + from .group_0626 import ( WebhookPageBuildPropBuildType as WebhookPageBuildPropBuildType, ) - from .group_0620 import WebhookPageBuildType as WebhookPageBuildType - from .group_0621 import ( + from .group_0626 import WebhookPageBuildType as WebhookPageBuildType + from .group_0627 import ( WebhookPersonalAccessTokenRequestApprovedType as WebhookPersonalAccessTokenRequestApprovedType, ) - from .group_0622 import ( + from .group_0628 import ( WebhookPersonalAccessTokenRequestCancelledType as WebhookPersonalAccessTokenRequestCancelledType, ) - from .group_0623 import ( + from .group_0629 import ( WebhookPersonalAccessTokenRequestCreatedType as WebhookPersonalAccessTokenRequestCreatedType, ) - from .group_0624 import ( + from .group_0630 import ( WebhookPersonalAccessTokenRequestDeniedType as WebhookPersonalAccessTokenRequestDeniedType, ) - from .group_0625 import WebhookPingType as WebhookPingType - from .group_0626 import ( + from .group_0631 import WebhookPingType as WebhookPingType + from .group_0632 import ( WebhookPingPropHookPropConfigType as WebhookPingPropHookPropConfigType, ) - from .group_0626 import WebhookPingPropHookType as WebhookPingPropHookType - from .group_0627 import WebhookPingFormEncodedType as WebhookPingFormEncodedType - from .group_0628 import ( + from .group_0632 import WebhookPingPropHookType as WebhookPingPropHookType + from .group_0633 import WebhookPingFormEncodedType as WebhookPingFormEncodedType + from .group_0634 import ( WebhookProjectCardConvertedPropChangesPropNoteType as WebhookProjectCardConvertedPropChangesPropNoteType, ) - from .group_0628 import ( + from .group_0634 import ( WebhookProjectCardConvertedPropChangesType as WebhookProjectCardConvertedPropChangesType, ) - from .group_0628 import ( + from .group_0634 import ( WebhookProjectCardConvertedType as WebhookProjectCardConvertedType, ) - from .group_0629 import ( + from .group_0635 import ( WebhookProjectCardCreatedType as WebhookProjectCardCreatedType, ) - from .group_0630 import ( + from .group_0636 import ( WebhookProjectCardDeletedPropProjectCardPropCreatorType as WebhookProjectCardDeletedPropProjectCardPropCreatorType, ) - from .group_0630 import ( + from .group_0636 import ( WebhookProjectCardDeletedPropProjectCardType as WebhookProjectCardDeletedPropProjectCardType, ) - from .group_0630 import ( + from .group_0636 import ( WebhookProjectCardDeletedType as WebhookProjectCardDeletedType, ) - from .group_0631 import ( + from .group_0637 import ( WebhookProjectCardEditedPropChangesPropNoteType as WebhookProjectCardEditedPropChangesPropNoteType, ) - from .group_0631 import ( + from .group_0637 import ( WebhookProjectCardEditedPropChangesType as WebhookProjectCardEditedPropChangesType, ) - from .group_0631 import WebhookProjectCardEditedType as WebhookProjectCardEditedType - from .group_0632 import ( + from .group_0637 import WebhookProjectCardEditedType as WebhookProjectCardEditedType + from .group_0638 import ( WebhookProjectCardMovedPropChangesPropColumnIdType as WebhookProjectCardMovedPropChangesPropColumnIdType, ) - from .group_0632 import ( + from .group_0638 import ( WebhookProjectCardMovedPropChangesType as WebhookProjectCardMovedPropChangesType, ) - from .group_0632 import ( + from .group_0638 import ( WebhookProjectCardMovedPropProjectCardMergedCreatorType as WebhookProjectCardMovedPropProjectCardMergedCreatorType, ) - from .group_0632 import ( + from .group_0638 import ( WebhookProjectCardMovedPropProjectCardType as WebhookProjectCardMovedPropProjectCardType, ) - from .group_0632 import WebhookProjectCardMovedType as WebhookProjectCardMovedType - from .group_0633 import ( + from .group_0638 import WebhookProjectCardMovedType as WebhookProjectCardMovedType + from .group_0639 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, ) - from .group_0633 import ( + from .group_0639 import ( WebhookProjectCardMovedPropProjectCardAllof0Type as WebhookProjectCardMovedPropProjectCardAllof0Type, ) - from .group_0634 import ( + from .group_0640 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, ) - from .group_0634 import ( + from .group_0640 import ( WebhookProjectCardMovedPropProjectCardAllof1Type as WebhookProjectCardMovedPropProjectCardAllof1Type, ) - from .group_0635 import WebhookProjectClosedType as WebhookProjectClosedType - from .group_0636 import ( + from .group_0641 import WebhookProjectClosedType as WebhookProjectClosedType + from .group_0642 import ( WebhookProjectColumnCreatedType as WebhookProjectColumnCreatedType, ) - from .group_0637 import ( + from .group_0643 import ( WebhookProjectColumnDeletedType as WebhookProjectColumnDeletedType, ) - from .group_0638 import ( + from .group_0644 import ( WebhookProjectColumnEditedPropChangesPropNameType as WebhookProjectColumnEditedPropChangesPropNameType, ) - from .group_0638 import ( + from .group_0644 import ( WebhookProjectColumnEditedPropChangesType as WebhookProjectColumnEditedPropChangesType, ) - from .group_0638 import ( + from .group_0644 import ( WebhookProjectColumnEditedType as WebhookProjectColumnEditedType, ) - from .group_0639 import ( + from .group_0645 import ( WebhookProjectColumnMovedType as WebhookProjectColumnMovedType, ) - from .group_0640 import WebhookProjectCreatedType as WebhookProjectCreatedType - from .group_0641 import WebhookProjectDeletedType as WebhookProjectDeletedType - from .group_0642 import ( + from .group_0646 import WebhookProjectCreatedType as WebhookProjectCreatedType + from .group_0647 import WebhookProjectDeletedType as WebhookProjectDeletedType + from .group_0648 import ( WebhookProjectEditedPropChangesPropBodyType as WebhookProjectEditedPropChangesPropBodyType, ) - from .group_0642 import ( + from .group_0648 import ( WebhookProjectEditedPropChangesPropNameType as WebhookProjectEditedPropChangesPropNameType, ) - from .group_0642 import ( + from .group_0648 import ( WebhookProjectEditedPropChangesType as WebhookProjectEditedPropChangesType, ) - from .group_0642 import WebhookProjectEditedType as WebhookProjectEditedType - from .group_0643 import WebhookProjectReopenedType as WebhookProjectReopenedType - from .group_0644 import ( + from .group_0648 import WebhookProjectEditedType as WebhookProjectEditedType + from .group_0649 import WebhookProjectReopenedType as WebhookProjectReopenedType + from .group_0650 import ( WebhookProjectsV2ProjectClosedType as WebhookProjectsV2ProjectClosedType, ) - from .group_0645 import ( + from .group_0651 import ( WebhookProjectsV2ProjectCreatedType as WebhookProjectsV2ProjectCreatedType, ) - from .group_0646 import ( + from .group_0652 import ( WebhookProjectsV2ProjectDeletedType as WebhookProjectsV2ProjectDeletedType, ) - from .group_0647 import ( + from .group_0653 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType, ) - from .group_0647 import ( + from .group_0653 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublicType as WebhookProjectsV2ProjectEditedPropChangesPropPublicType, ) - from .group_0647 import ( + from .group_0653 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType, ) - from .group_0647 import ( + from .group_0653 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitleType as WebhookProjectsV2ProjectEditedPropChangesPropTitleType, ) - from .group_0647 import ( + from .group_0653 import ( WebhookProjectsV2ProjectEditedPropChangesType as WebhookProjectsV2ProjectEditedPropChangesType, ) - from .group_0647 import ( + from .group_0653 import ( WebhookProjectsV2ProjectEditedType as WebhookProjectsV2ProjectEditedType, ) - from .group_0648 import ( + from .group_0654 import ( WebhookProjectsV2ItemArchivedType as WebhookProjectsV2ItemArchivedType, ) - from .group_0649 import ( + from .group_0655 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType as WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType, ) - from .group_0649 import ( + from .group_0655 import ( WebhookProjectsV2ItemConvertedPropChangesType as WebhookProjectsV2ItemConvertedPropChangesType, ) - from .group_0649 import ( + from .group_0655 import ( WebhookProjectsV2ItemConvertedType as WebhookProjectsV2ItemConvertedType, ) - from .group_0650 import ( + from .group_0656 import ( WebhookProjectsV2ItemCreatedType as WebhookProjectsV2ItemCreatedType, ) - from .group_0651 import ( + from .group_0657 import ( WebhookProjectsV2ItemDeletedType as WebhookProjectsV2ItemDeletedType, ) - from .group_0652 import ( + from .group_0658 import ( ProjectsV2IterationSettingType as ProjectsV2IterationSettingType, ) - from .group_0652 import ( + from .group_0658 import ( ProjectsV2SingleSelectOptionType as ProjectsV2SingleSelectOptionType, ) - from .group_0652 import ( + from .group_0658 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType, ) - from .group_0652 import ( + from .group_0658 import ( WebhookProjectsV2ItemEditedPropChangesOneof0Type as WebhookProjectsV2ItemEditedPropChangesOneof0Type, ) - from .group_0652 import ( + from .group_0658 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType as WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType, ) - from .group_0652 import ( + from .group_0658 import ( WebhookProjectsV2ItemEditedPropChangesOneof1Type as WebhookProjectsV2ItemEditedPropChangesOneof1Type, ) - from .group_0652 import ( + from .group_0658 import ( WebhookProjectsV2ItemEditedType as WebhookProjectsV2ItemEditedType, ) - from .group_0653 import ( + from .group_0659 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType, ) - from .group_0653 import ( + from .group_0659 import ( WebhookProjectsV2ItemReorderedPropChangesType as WebhookProjectsV2ItemReorderedPropChangesType, ) - from .group_0653 import ( + from .group_0659 import ( WebhookProjectsV2ItemReorderedType as WebhookProjectsV2ItemReorderedType, ) - from .group_0654 import ( + from .group_0660 import ( WebhookProjectsV2ItemRestoredType as WebhookProjectsV2ItemRestoredType, ) - from .group_0655 import ( + from .group_0661 import ( WebhookProjectsV2ProjectReopenedType as WebhookProjectsV2ProjectReopenedType, ) - from .group_0656 import ( + from .group_0662 import ( WebhookProjectsV2StatusUpdateCreatedType as WebhookProjectsV2StatusUpdateCreatedType, ) - from .group_0657 import ( + from .group_0663 import ( WebhookProjectsV2StatusUpdateDeletedType as WebhookProjectsV2StatusUpdateDeletedType, ) - from .group_0658 import ( + from .group_0664 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType as WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType, ) - from .group_0658 import ( + from .group_0664 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType, ) - from .group_0658 import ( + from .group_0664 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType, ) - from .group_0658 import ( + from .group_0664 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType, ) - from .group_0658 import ( + from .group_0664 import ( WebhookProjectsV2StatusUpdateEditedPropChangesType as WebhookProjectsV2StatusUpdateEditedPropChangesType, ) - from .group_0658 import ( + from .group_0664 import ( WebhookProjectsV2StatusUpdateEditedType as WebhookProjectsV2StatusUpdateEditedType, ) - from .group_0659 import WebhookPublicType as WebhookPublicType - from .group_0660 import ( + from .group_0665 import WebhookPublicType as WebhookPublicType + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneeType as WebhookPullRequestAssignedPropPullRequestPropAssigneeType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergeType as WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUserType as WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropBaseType as WebhookPullRequestAssignedPropPullRequestPropBaseType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType as WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropHeadType as WebhookPullRequestAssignedPropPullRequestPropHeadType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType as WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropLinksType as WebhookPullRequestAssignedPropPullRequestPropLinksType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropMergedByType as WebhookPullRequestAssignedPropPullRequestPropMergedByType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropMilestoneType as WebhookPullRequestAssignedPropPullRequestPropMilestoneType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestPropUserType as WebhookPullRequestAssignedPropPullRequestPropUserType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedPropPullRequestType as WebhookPullRequestAssignedPropPullRequestType, ) - from .group_0660 import ( + from .group_0666 import ( WebhookPullRequestAssignedType as WebhookPullRequestAssignedType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestType as WebhookPullRequestAutoMergeDisabledPropPullRequestType, ) - from .group_0661 import ( + from .group_0667 import ( WebhookPullRequestAutoMergeDisabledType as WebhookPullRequestAutoMergeDisabledType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestType as WebhookPullRequestAutoMergeEnabledPropPullRequestType, ) - from .group_0662 import ( + from .group_0668 import ( WebhookPullRequestAutoMergeEnabledType as WebhookPullRequestAutoMergeEnabledType, ) - from .group_0663 import WebhookPullRequestClosedType as WebhookPullRequestClosedType - from .group_0664 import ( + from .group_0669 import WebhookPullRequestClosedType as WebhookPullRequestClosedType + from .group_0670 import ( WebhookPullRequestConvertedToDraftType as WebhookPullRequestConvertedToDraftType, ) - from .group_0665 import ( + from .group_0671 import ( WebhookPullRequestDemilestonedType as WebhookPullRequestDemilestonedType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneeType as WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType as WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropBaseType as WebhookPullRequestDequeuedPropPullRequestPropBaseType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadType as WebhookPullRequestDequeuedPropPullRequestPropHeadType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType as WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksType as WebhookPullRequestDequeuedPropPullRequestPropLinksType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedByType as WebhookPullRequestDequeuedPropPullRequestPropMergedByType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestoneType as WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestPropUserType as WebhookPullRequestDequeuedPropPullRequestPropUserType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedPropPullRequestType as WebhookPullRequestDequeuedPropPullRequestType, ) - from .group_0666 import ( + from .group_0672 import ( WebhookPullRequestDequeuedType as WebhookPullRequestDequeuedType, ) - from .group_0667 import ( + from .group_0673 import ( WebhookPullRequestEditedPropChangesPropBasePropRefType as WebhookPullRequestEditedPropChangesPropBasePropRefType, ) - from .group_0667 import ( + from .group_0673 import ( WebhookPullRequestEditedPropChangesPropBasePropShaType as WebhookPullRequestEditedPropChangesPropBasePropShaType, ) - from .group_0667 import ( + from .group_0673 import ( WebhookPullRequestEditedPropChangesPropBaseType as WebhookPullRequestEditedPropChangesPropBaseType, ) - from .group_0667 import ( + from .group_0673 import ( WebhookPullRequestEditedPropChangesPropBodyType as WebhookPullRequestEditedPropChangesPropBodyType, ) - from .group_0667 import ( + from .group_0673 import ( WebhookPullRequestEditedPropChangesPropTitleType as WebhookPullRequestEditedPropChangesPropTitleType, ) - from .group_0667 import ( + from .group_0673 import ( WebhookPullRequestEditedPropChangesType as WebhookPullRequestEditedPropChangesType, ) - from .group_0667 import WebhookPullRequestEditedType as WebhookPullRequestEditedType - from .group_0668 import ( + from .group_0673 import WebhookPullRequestEditedType as WebhookPullRequestEditedType + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropBaseType as WebhookPullRequestEnqueuedPropPullRequestPropBaseType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadType as WebhookPullRequestEnqueuedPropPullRequestPropHeadType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksType as WebhookPullRequestEnqueuedPropPullRequestPropLinksType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedByType as WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType as WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropUserType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedPropPullRequestType as WebhookPullRequestEnqueuedPropPullRequestType, ) - from .group_0668 import ( + from .group_0674 import ( WebhookPullRequestEnqueuedType as WebhookPullRequestEnqueuedType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneeType as WebhookPullRequestLabeledPropPullRequestPropAssigneeType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergeType as WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUserType as WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropBaseType as WebhookPullRequestLabeledPropPullRequestPropBaseType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropHeadType as WebhookPullRequestLabeledPropPullRequestPropHeadType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropLinksType as WebhookPullRequestLabeledPropPullRequestPropLinksType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropMergedByType as WebhookPullRequestLabeledPropPullRequestPropMergedByType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropMilestoneType as WebhookPullRequestLabeledPropPullRequestPropMilestoneType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestPropUserType as WebhookPullRequestLabeledPropPullRequestPropUserType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledPropPullRequestType as WebhookPullRequestLabeledPropPullRequestType, ) - from .group_0669 import ( + from .group_0675 import ( WebhookPullRequestLabeledType as WebhookPullRequestLabeledType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropAssigneeType as WebhookPullRequestLockedPropPullRequestPropAssigneeType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergeType as WebhookPullRequestLockedPropPullRequestPropAutoMergeType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUserType as WebhookPullRequestLockedPropPullRequestPropBasePropUserType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropBaseType as WebhookPullRequestLockedPropPullRequestPropBaseType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUserType as WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropHeadType as WebhookPullRequestLockedPropPullRequestPropHeadType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItemsType as WebhookPullRequestLockedPropPullRequestPropLabelsItemsType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropLinksType as WebhookPullRequestLockedPropPullRequestPropLinksType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropMergedByType as WebhookPullRequestLockedPropPullRequestPropMergedByType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropMilestoneType as WebhookPullRequestLockedPropPullRequestPropMilestoneType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestPropUserType as WebhookPullRequestLockedPropPullRequestPropUserType, ) - from .group_0670 import ( + from .group_0676 import ( WebhookPullRequestLockedPropPullRequestType as WebhookPullRequestLockedPropPullRequestType, ) - from .group_0670 import WebhookPullRequestLockedType as WebhookPullRequestLockedType - from .group_0671 import ( + from .group_0676 import WebhookPullRequestLockedType as WebhookPullRequestLockedType + from .group_0677 import ( WebhookPullRequestMilestonedType as WebhookPullRequestMilestonedType, ) - from .group_0672 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType - from .group_0673 import ( + from .group_0678 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType + from .group_0679 import ( WebhookPullRequestReadyForReviewType as WebhookPullRequestReadyForReviewType, ) - from .group_0674 import ( + from .group_0680 import ( WebhookPullRequestReopenedType as WebhookPullRequestReopenedType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType as WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUserType as WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropCommentType as WebhookPullRequestReviewCommentCreatedPropCommentType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropPullRequestType, ) - from .group_0675 import ( + from .group_0681 import ( WebhookPullRequestReviewCommentCreatedType as WebhookPullRequestReviewCommentCreatedType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestType as WebhookPullRequestReviewCommentDeletedPropPullRequestType, ) - from .group_0676 import ( + from .group_0682 import ( WebhookPullRequestReviewCommentDeletedType as WebhookPullRequestReviewCommentDeletedType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedPropPullRequestType as WebhookPullRequestReviewCommentEditedPropPullRequestType, ) - from .group_0677 import ( + from .group_0683 import ( WebhookPullRequestReviewCommentEditedType as WebhookPullRequestReviewCommentEditedType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBaseType as WebhookPullRequestReviewDismissedPropPullRequestPropBaseType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropUserType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropPullRequestType as WebhookPullRequestReviewDismissedPropPullRequestType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksType as WebhookPullRequestReviewDismissedPropReviewPropLinksType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropReviewPropUserType as WebhookPullRequestReviewDismissedPropReviewPropUserType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedPropReviewType as WebhookPullRequestReviewDismissedPropReviewType, ) - from .group_0678 import ( + from .group_0684 import ( WebhookPullRequestReviewDismissedType as WebhookPullRequestReviewDismissedType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropChangesPropBodyType as WebhookPullRequestReviewEditedPropChangesPropBodyType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropChangesType as WebhookPullRequestReviewEditedPropChangesType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropBaseType as WebhookPullRequestReviewEditedPropPullRequestPropBaseType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadType as WebhookPullRequestReviewEditedPropPullRequestPropHeadType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksType as WebhookPullRequestReviewEditedPropPullRequestPropLinksType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropUserType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedPropPullRequestType as WebhookPullRequestReviewEditedPropPullRequestType, ) - from .group_0679 import ( + from .group_0685 import ( WebhookPullRequestReviewEditedType as WebhookPullRequestReviewEditedType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, ) - from .group_0680 import ( + from .group_0686 import ( WebhookPullRequestReviewRequestRemovedOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0Type, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType, ) - from .group_0681 import ( + from .group_0687 import ( WebhookPullRequestReviewRequestRemovedOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1Type, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestType as WebhookPullRequestReviewRequestedOneof0PropPullRequestType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, ) - from .group_0682 import ( + from .group_0688 import ( WebhookPullRequestReviewRequestedOneof0Type as WebhookPullRequestReviewRequestedOneof0Type, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestType as WebhookPullRequestReviewRequestedOneof1PropPullRequestType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType, ) - from .group_0683 import ( + from .group_0689 import ( WebhookPullRequestReviewRequestedOneof1Type as WebhookPullRequestReviewRequestedOneof1Type, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedPropPullRequestType as WebhookPullRequestReviewSubmittedPropPullRequestType, ) - from .group_0684 import ( + from .group_0690 import ( WebhookPullRequestReviewSubmittedType as WebhookPullRequestReviewSubmittedType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropPullRequestType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedPropThreadType as WebhookPullRequestReviewThreadResolvedPropThreadType, ) - from .group_0685 import ( + from .group_0691 import ( WebhookPullRequestReviewThreadResolvedType as WebhookPullRequestReviewThreadResolvedType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadType as WebhookPullRequestReviewThreadUnresolvedPropThreadType, ) - from .group_0686 import ( + from .group_0692 import ( WebhookPullRequestReviewThreadUnresolvedType as WebhookPullRequestReviewThreadUnresolvedType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneeType as WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType as WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropBaseType as WebhookPullRequestSynchronizePropPullRequestPropBaseType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadType as WebhookPullRequestSynchronizePropPullRequestPropHeadType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType as WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksType as WebhookPullRequestSynchronizePropPullRequestPropLinksType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedByType as WebhookPullRequestSynchronizePropPullRequestPropMergedByType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestoneType as WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestPropUserType as WebhookPullRequestSynchronizePropPullRequestPropUserType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizePropPullRequestType as WebhookPullRequestSynchronizePropPullRequestType, ) - from .group_0687 import ( + from .group_0693 import ( WebhookPullRequestSynchronizeType as WebhookPullRequestSynchronizeType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneeType as WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType as WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropBaseType as WebhookPullRequestUnassignedPropPullRequestPropBaseType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadType as WebhookPullRequestUnassignedPropPullRequestPropHeadType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksType as WebhookPullRequestUnassignedPropPullRequestPropLinksType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedByType as WebhookPullRequestUnassignedPropPullRequestPropMergedByType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestoneType as WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestPropUserType as WebhookPullRequestUnassignedPropPullRequestPropUserType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedPropPullRequestType as WebhookPullRequestUnassignedPropPullRequestType, ) - from .group_0688 import ( + from .group_0694 import ( WebhookPullRequestUnassignedType as WebhookPullRequestUnassignedType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropBaseType as WebhookPullRequestUnlabeledPropPullRequestPropBaseType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadType as WebhookPullRequestUnlabeledPropPullRequestPropHeadType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksType as WebhookPullRequestUnlabeledPropPullRequestPropLinksType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedByType as WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType as WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropUserType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledPropPullRequestType as WebhookPullRequestUnlabeledPropPullRequestType, ) - from .group_0689 import ( + from .group_0695 import ( WebhookPullRequestUnlabeledType as WebhookPullRequestUnlabeledType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneeType as WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType as WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropBaseType as WebhookPullRequestUnlockedPropPullRequestPropBaseType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadType as WebhookPullRequestUnlockedPropPullRequestPropHeadType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksType as WebhookPullRequestUnlockedPropPullRequestPropLinksType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedByType as WebhookPullRequestUnlockedPropPullRequestPropMergedByType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestoneType as WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestPropUserType as WebhookPullRequestUnlockedPropPullRequestPropUserType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedPropPullRequestType as WebhookPullRequestUnlockedPropPullRequestType, ) - from .group_0690 import ( + from .group_0696 import ( WebhookPullRequestUnlockedType as WebhookPullRequestUnlockedType, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropCommitsItemsPropAuthorType as WebhookPushPropCommitsItemsPropAuthorType, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropCommitsItemsPropCommitterType as WebhookPushPropCommitsItemsPropCommitterType, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropCommitsItemsType as WebhookPushPropCommitsItemsType, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropHeadCommitPropAuthorType as WebhookPushPropHeadCommitPropAuthorType, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropHeadCommitPropCommitterType as WebhookPushPropHeadCommitPropCommitterType, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropHeadCommitType as WebhookPushPropHeadCommitType, ) - from .group_0691 import WebhookPushPropPusherType as WebhookPushPropPusherType - from .group_0691 import ( + from .group_0697 import WebhookPushPropPusherType as WebhookPushPropPusherType + from .group_0697 import ( WebhookPushPropRepositoryPropCustomPropertiesType as WebhookPushPropRepositoryPropCustomPropertiesType, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropRepositoryPropLicenseType as WebhookPushPropRepositoryPropLicenseType, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropRepositoryPropOwnerType as WebhookPushPropRepositoryPropOwnerType, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropRepositoryPropPermissionsType as WebhookPushPropRepositoryPropPermissionsType, ) - from .group_0691 import ( + from .group_0697 import ( WebhookPushPropRepositoryType as WebhookPushPropRepositoryType, ) - from .group_0691 import WebhookPushType as WebhookPushType - from .group_0692 import ( + from .group_0697 import WebhookPushType as WebhookPushType + from .group_0698 import ( WebhookRegistryPackagePublishedType as WebhookRegistryPackagePublishedType, ) - from .group_0693 import ( + from .group_0699 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType as WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType, ) - from .group_0693 import ( + from .group_0699 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, ) - from .group_0693 import ( + from .group_0699 import ( WebhookRegistryPackagePublishedPropRegistryPackageType as WebhookRegistryPackagePublishedPropRegistryPackageType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0694 import ( + from .group_0700 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from .group_0695 import ( + from .group_0701 import ( WebhookRegistryPackageUpdatedType as WebhookRegistryPackageUpdatedType, ) - from .group_0696 import ( + from .group_0702 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType, ) - from .group_0696 import ( + from .group_0702 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, ) - from .group_0696 import ( + from .group_0702 import ( WebhookRegistryPackageUpdatedPropRegistryPackageType as WebhookRegistryPackageUpdatedPropRegistryPackageType, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0697 import ( + from .group_0703 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, ) - from .group_0698 import WebhookReleaseCreatedType as WebhookReleaseCreatedType - from .group_0699 import WebhookReleaseDeletedType as WebhookReleaseDeletedType - from .group_0700 import ( + from .group_0704 import WebhookReleaseCreatedType as WebhookReleaseCreatedType + from .group_0705 import WebhookReleaseDeletedType as WebhookReleaseDeletedType + from .group_0706 import ( WebhookReleaseEditedPropChangesPropBodyType as WebhookReleaseEditedPropChangesPropBodyType, ) - from .group_0700 import ( + from .group_0706 import ( WebhookReleaseEditedPropChangesPropMakeLatestType as WebhookReleaseEditedPropChangesPropMakeLatestType, ) - from .group_0700 import ( + from .group_0706 import ( WebhookReleaseEditedPropChangesPropNameType as WebhookReleaseEditedPropChangesPropNameType, ) - from .group_0700 import ( + from .group_0706 import ( WebhookReleaseEditedPropChangesType as WebhookReleaseEditedPropChangesType, ) - from .group_0700 import WebhookReleaseEditedType as WebhookReleaseEditedType - from .group_0701 import ( + from .group_0706 import WebhookReleaseEditedType as WebhookReleaseEditedType + from .group_0707 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0701 import ( + from .group_0707 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsType as WebhookReleasePrereleasedPropReleasePropAssetsItemsType, ) - from .group_0701 import ( + from .group_0707 import ( WebhookReleasePrereleasedPropReleasePropAuthorType as WebhookReleasePrereleasedPropReleasePropAuthorType, ) - from .group_0701 import ( + from .group_0707 import ( WebhookReleasePrereleasedPropReleasePropReactionsType as WebhookReleasePrereleasedPropReleasePropReactionsType, ) - from .group_0701 import ( + from .group_0707 import ( WebhookReleasePrereleasedPropReleaseType as WebhookReleasePrereleasedPropReleaseType, ) - from .group_0701 import ( + from .group_0707 import ( WebhookReleasePrereleasedType as WebhookReleasePrereleasedType, ) - from .group_0702 import WebhookReleasePublishedType as WebhookReleasePublishedType - from .group_0703 import WebhookReleaseReleasedType as WebhookReleaseReleasedType - from .group_0704 import ( + from .group_0708 import WebhookReleasePublishedType as WebhookReleasePublishedType + from .group_0709 import WebhookReleaseReleasedType as WebhookReleaseReleasedType + from .group_0710 import ( WebhookReleaseUnpublishedType as WebhookReleaseUnpublishedType, ) - from .group_0705 import ( + from .group_0711 import ( WebhookRepositoryAdvisoryPublishedType as WebhookRepositoryAdvisoryPublishedType, ) - from .group_0706 import ( + from .group_0712 import ( WebhookRepositoryAdvisoryReportedType as WebhookRepositoryAdvisoryReportedType, ) - from .group_0707 import ( + from .group_0713 import ( WebhookRepositoryArchivedType as WebhookRepositoryArchivedType, ) - from .group_0708 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType - from .group_0709 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType - from .group_0710 import ( + from .group_0714 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType + from .group_0715 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType + from .group_0716 import ( WebhookRepositoryDispatchSamplePropClientPayloadType as WebhookRepositoryDispatchSamplePropClientPayloadType, ) - from .group_0710 import ( + from .group_0716 import ( WebhookRepositoryDispatchSampleType as WebhookRepositoryDispatchSampleType, ) - from .group_0711 import ( + from .group_0717 import ( WebhookRepositoryEditedPropChangesPropDefaultBranchType as WebhookRepositoryEditedPropChangesPropDefaultBranchType, ) - from .group_0711 import ( + from .group_0717 import ( WebhookRepositoryEditedPropChangesPropDescriptionType as WebhookRepositoryEditedPropChangesPropDescriptionType, ) - from .group_0711 import ( + from .group_0717 import ( WebhookRepositoryEditedPropChangesPropHomepageType as WebhookRepositoryEditedPropChangesPropHomepageType, ) - from .group_0711 import ( + from .group_0717 import ( WebhookRepositoryEditedPropChangesPropTopicsType as WebhookRepositoryEditedPropChangesPropTopicsType, ) - from .group_0711 import ( + from .group_0717 import ( WebhookRepositoryEditedPropChangesType as WebhookRepositoryEditedPropChangesType, ) - from .group_0711 import WebhookRepositoryEditedType as WebhookRepositoryEditedType - from .group_0712 import WebhookRepositoryImportType as WebhookRepositoryImportType - from .group_0713 import ( + from .group_0717 import WebhookRepositoryEditedType as WebhookRepositoryEditedType + from .group_0718 import WebhookRepositoryImportType as WebhookRepositoryImportType + from .group_0719 import ( WebhookRepositoryPrivatizedType as WebhookRepositoryPrivatizedType, ) - from .group_0714 import ( + from .group_0720 import ( WebhookRepositoryPublicizedType as WebhookRepositoryPublicizedType, ) - from .group_0715 import ( + from .group_0721 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType as WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType, ) - from .group_0715 import ( + from .group_0721 import ( WebhookRepositoryRenamedPropChangesPropRepositoryType as WebhookRepositoryRenamedPropChangesPropRepositoryType, ) - from .group_0715 import ( + from .group_0721 import ( WebhookRepositoryRenamedPropChangesType as WebhookRepositoryRenamedPropChangesType, ) - from .group_0715 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType - from .group_0716 import ( + from .group_0721 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType + from .group_0722 import ( WebhookRepositoryRulesetCreatedType as WebhookRepositoryRulesetCreatedType, ) - from .group_0717 import ( + from .group_0723 import ( WebhookRepositoryRulesetDeletedType as WebhookRepositoryRulesetDeletedType, ) - from .group_0718 import ( + from .group_0724 import ( WebhookRepositoryRulesetEditedType as WebhookRepositoryRulesetEditedType, ) - from .group_0719 import ( + from .group_0725 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcementType as WebhookRepositoryRulesetEditedPropChangesPropEnforcementType, ) - from .group_0719 import ( + from .group_0725 import ( WebhookRepositoryRulesetEditedPropChangesPropNameType as WebhookRepositoryRulesetEditedPropChangesPropNameType, ) - from .group_0719 import ( + from .group_0725 import ( WebhookRepositoryRulesetEditedPropChangesType as WebhookRepositoryRulesetEditedPropChangesType, ) - from .group_0720 import ( + from .group_0726 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsType, ) - from .group_0721 import ( + from .group_0727 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType, ) - from .group_0721 import ( + from .group_0727 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType, ) - from .group_0721 import ( + from .group_0727 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType, ) - from .group_0721 import ( + from .group_0727 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType, ) - from .group_0721 import ( + from .group_0727 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType, ) - from .group_0721 import ( + from .group_0727 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, ) - from .group_0722 import ( + from .group_0728 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesType as WebhookRepositoryRulesetEditedPropChangesPropRulesType, ) - from .group_0723 import ( + from .group_0729 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType, ) - from .group_0723 import ( + from .group_0729 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType, ) - from .group_0723 import ( + from .group_0729 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType, ) - from .group_0723 import ( + from .group_0729 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType, ) - from .group_0723 import ( + from .group_0729 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, ) - from .group_0724 import ( + from .group_0730 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType, ) - from .group_0724 import ( + from .group_0730 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, ) - from .group_0724 import ( + from .group_0730 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromType, ) - from .group_0724 import ( + from .group_0730 import ( WebhookRepositoryTransferredPropChangesPropOwnerType as WebhookRepositoryTransferredPropChangesPropOwnerType, ) - from .group_0724 import ( + from .group_0730 import ( WebhookRepositoryTransferredPropChangesType as WebhookRepositoryTransferredPropChangesType, ) - from .group_0724 import ( + from .group_0730 import ( WebhookRepositoryTransferredType as WebhookRepositoryTransferredType, ) - from .group_0725 import ( + from .group_0731 import ( WebhookRepositoryUnarchivedType as WebhookRepositoryUnarchivedType, ) - from .group_0726 import ( + from .group_0732 import ( WebhookRepositoryVulnerabilityAlertCreateType as WebhookRepositoryVulnerabilityAlertCreateType, ) - from .group_0727 import ( + from .group_0733 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, ) - from .group_0727 import ( + from .group_0733 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertType as WebhookRepositoryVulnerabilityAlertDismissPropAlertType, ) - from .group_0727 import ( + from .group_0733 import ( WebhookRepositoryVulnerabilityAlertDismissType as WebhookRepositoryVulnerabilityAlertDismissType, ) - from .group_0728 import ( + from .group_0734 import ( WebhookRepositoryVulnerabilityAlertReopenType as WebhookRepositoryVulnerabilityAlertReopenType, ) - from .group_0729 import ( + from .group_0735 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, ) - from .group_0729 import ( + from .group_0735 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertType as WebhookRepositoryVulnerabilityAlertResolvePropAlertType, ) - from .group_0729 import ( + from .group_0735 import ( WebhookRepositoryVulnerabilityAlertResolveType as WebhookRepositoryVulnerabilityAlertResolveType, ) - from .group_0730 import ( + from .group_0736 import ( WebhookSecretScanningAlertCreatedType as WebhookSecretScanningAlertCreatedType, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationCommitType as SecretScanningLocationCommitType, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationDiscussionCommentType as SecretScanningLocationDiscussionCommentType, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationDiscussionTitleType as SecretScanningLocationDiscussionTitleType, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationIssueCommentType as SecretScanningLocationIssueCommentType, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationIssueTitleType as SecretScanningLocationIssueTitleType, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationPullRequestBodyType as SecretScanningLocationPullRequestBodyType, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationPullRequestCommentType as SecretScanningLocationPullRequestCommentType, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationPullRequestReviewCommentType as SecretScanningLocationPullRequestReviewCommentType, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationPullRequestReviewType as SecretScanningLocationPullRequestReviewType, ) - from .group_0731 import ( + from .group_0737 import ( SecretScanningLocationPullRequestTitleType as SecretScanningLocationPullRequestTitleType, ) - from .group_0731 import SecretScanningLocationType as SecretScanningLocationType - from .group_0731 import ( + from .group_0737 import SecretScanningLocationType as SecretScanningLocationType + from .group_0737 import ( SecretScanningLocationWikiCommitType as SecretScanningLocationWikiCommitType, ) - from .group_0731 import ( + from .group_0737 import ( WebhookSecretScanningAlertLocationCreatedType as WebhookSecretScanningAlertLocationCreatedType, ) - from .group_0732 import ( + from .group_0738 import ( WebhookSecretScanningAlertLocationCreatedFormEncodedType as WebhookSecretScanningAlertLocationCreatedFormEncodedType, ) - from .group_0733 import ( + from .group_0739 import ( WebhookSecretScanningAlertPubliclyLeakedType as WebhookSecretScanningAlertPubliclyLeakedType, ) - from .group_0734 import ( + from .group_0740 import ( WebhookSecretScanningAlertReopenedType as WebhookSecretScanningAlertReopenedType, ) - from .group_0735 import ( + from .group_0741 import ( WebhookSecretScanningAlertResolvedType as WebhookSecretScanningAlertResolvedType, ) - from .group_0736 import ( + from .group_0742 import ( WebhookSecretScanningAlertValidatedType as WebhookSecretScanningAlertValidatedType, ) - from .group_0737 import ( + from .group_0743 import ( WebhookSecretScanningScanCompletedType as WebhookSecretScanningScanCompletedType, ) - from .group_0738 import ( + from .group_0744 import ( WebhookSecurityAdvisoryPublishedType as WebhookSecurityAdvisoryPublishedType, ) - from .group_0739 import ( + from .group_0745 import ( WebhookSecurityAdvisoryUpdatedType as WebhookSecurityAdvisoryUpdatedType, ) - from .group_0740 import ( + from .group_0746 import ( WebhookSecurityAdvisoryWithdrawnType as WebhookSecurityAdvisoryWithdrawnType, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0741 import ( + from .group_0747 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType, ) - from .group_0742 import ( + from .group_0748 import ( WebhookSecurityAndAnalysisType as WebhookSecurityAndAnalysisType, ) - from .group_0743 import ( + from .group_0749 import ( WebhookSecurityAndAnalysisPropChangesType as WebhookSecurityAndAnalysisPropChangesType, ) - from .group_0744 import ( + from .group_0750 import ( WebhookSecurityAndAnalysisPropChangesPropFromType as WebhookSecurityAndAnalysisPropChangesPropFromType, ) - from .group_0745 import ( + from .group_0751 import ( WebhookSponsorshipCancelledType as WebhookSponsorshipCancelledType, ) - from .group_0746 import ( + from .group_0752 import ( WebhookSponsorshipCreatedType as WebhookSponsorshipCreatedType, ) - from .group_0747 import ( + from .group_0753 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevelType as WebhookSponsorshipEditedPropChangesPropPrivacyLevelType, ) - from .group_0747 import ( + from .group_0753 import ( WebhookSponsorshipEditedPropChangesType as WebhookSponsorshipEditedPropChangesType, ) - from .group_0747 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType - from .group_0748 import ( + from .group_0753 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType + from .group_0754 import ( WebhookSponsorshipPendingCancellationType as WebhookSponsorshipPendingCancellationType, ) - from .group_0749 import ( + from .group_0755 import ( WebhookSponsorshipPendingTierChangeType as WebhookSponsorshipPendingTierChangeType, ) - from .group_0750 import ( + from .group_0756 import ( WebhookSponsorshipTierChangedType as WebhookSponsorshipTierChangedType, ) - from .group_0751 import WebhookStarCreatedType as WebhookStarCreatedType - from .group_0752 import WebhookStarDeletedType as WebhookStarDeletedType - from .group_0753 import ( + from .group_0757 import WebhookStarCreatedType as WebhookStarCreatedType + from .group_0758 import WebhookStarDeletedType as WebhookStarDeletedType + from .group_0759 import ( WebhookStatusPropBranchesItemsPropCommitType as WebhookStatusPropBranchesItemsPropCommitType, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropBranchesItemsType as WebhookStatusPropBranchesItemsType, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropAuthorType as WebhookStatusPropCommitPropAuthorType, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropCommitPropAuthorType as WebhookStatusPropCommitPropCommitPropAuthorType, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitPropCommitterType, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropCommitPropTreeType as WebhookStatusPropCommitPropCommitPropTreeType, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropCommitPropVerificationType as WebhookStatusPropCommitPropCommitPropVerificationType, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitterType, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropCommitType as WebhookStatusPropCommitPropCommitType, ) - from .group_0753 import ( + from .group_0759 import ( WebhookStatusPropCommitPropParentsItemsType as WebhookStatusPropCommitPropParentsItemsType, ) - from .group_0753 import WebhookStatusPropCommitType as WebhookStatusPropCommitType - from .group_0753 import WebhookStatusType as WebhookStatusType - from .group_0754 import ( + from .group_0759 import WebhookStatusPropCommitType as WebhookStatusPropCommitType + from .group_0759 import WebhookStatusType as WebhookStatusType + from .group_0760 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0Type as WebhookStatusPropCommitPropCommitPropAuthorAllof0Type, ) - from .group_0755 import ( + from .group_0761 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1Type as WebhookStatusPropCommitPropCommitPropAuthorAllof1Type, ) - from .group_0756 import ( + from .group_0762 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0Type as WebhookStatusPropCommitPropCommitPropCommitterAllof0Type, ) - from .group_0757 import ( + from .group_0763 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1Type as WebhookStatusPropCommitPropCommitPropCommitterAllof1Type, ) - from .group_0758 import ( + from .group_0764 import ( WebhookSubIssuesParentIssueAddedType as WebhookSubIssuesParentIssueAddedType, ) - from .group_0759 import ( + from .group_0765 import ( WebhookSubIssuesParentIssueRemovedType as WebhookSubIssuesParentIssueRemovedType, ) - from .group_0760 import ( + from .group_0766 import ( WebhookSubIssuesSubIssueAddedType as WebhookSubIssuesSubIssueAddedType, ) - from .group_0761 import ( + from .group_0767 import ( WebhookSubIssuesSubIssueRemovedType as WebhookSubIssuesSubIssueRemovedType, ) - from .group_0762 import WebhookTeamAddType as WebhookTeamAddType - from .group_0763 import ( + from .group_0768 import WebhookTeamAddType as WebhookTeamAddType + from .group_0769 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0763 import ( + from .group_0769 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType as WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, ) - from .group_0763 import ( + from .group_0769 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType as WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, ) - from .group_0763 import ( + from .group_0769 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType as WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType, ) - from .group_0763 import ( + from .group_0769 import ( WebhookTeamAddedToRepositoryPropRepositoryType as WebhookTeamAddedToRepositoryPropRepositoryType, ) - from .group_0763 import ( + from .group_0769 import ( WebhookTeamAddedToRepositoryType as WebhookTeamAddedToRepositoryType, ) - from .group_0764 import ( + from .group_0770 import ( WebhookTeamCreatedPropRepositoryPropCustomPropertiesType as WebhookTeamCreatedPropRepositoryPropCustomPropertiesType, ) - from .group_0764 import ( + from .group_0770 import ( WebhookTeamCreatedPropRepositoryPropLicenseType as WebhookTeamCreatedPropRepositoryPropLicenseType, ) - from .group_0764 import ( + from .group_0770 import ( WebhookTeamCreatedPropRepositoryPropOwnerType as WebhookTeamCreatedPropRepositoryPropOwnerType, ) - from .group_0764 import ( + from .group_0770 import ( WebhookTeamCreatedPropRepositoryPropPermissionsType as WebhookTeamCreatedPropRepositoryPropPermissionsType, ) - from .group_0764 import ( + from .group_0770 import ( WebhookTeamCreatedPropRepositoryType as WebhookTeamCreatedPropRepositoryType, ) - from .group_0764 import WebhookTeamCreatedType as WebhookTeamCreatedType - from .group_0765 import ( + from .group_0770 import WebhookTeamCreatedType as WebhookTeamCreatedType + from .group_0771 import ( WebhookTeamDeletedPropRepositoryPropCustomPropertiesType as WebhookTeamDeletedPropRepositoryPropCustomPropertiesType, ) - from .group_0765 import ( + from .group_0771 import ( WebhookTeamDeletedPropRepositoryPropLicenseType as WebhookTeamDeletedPropRepositoryPropLicenseType, ) - from .group_0765 import ( + from .group_0771 import ( WebhookTeamDeletedPropRepositoryPropOwnerType as WebhookTeamDeletedPropRepositoryPropOwnerType, ) - from .group_0765 import ( + from .group_0771 import ( WebhookTeamDeletedPropRepositoryPropPermissionsType as WebhookTeamDeletedPropRepositoryPropPermissionsType, ) - from .group_0765 import ( + from .group_0771 import ( WebhookTeamDeletedPropRepositoryType as WebhookTeamDeletedPropRepositoryType, ) - from .group_0765 import WebhookTeamDeletedType as WebhookTeamDeletedType - from .group_0766 import ( + from .group_0771 import WebhookTeamDeletedType as WebhookTeamDeletedType + from .group_0772 import ( WebhookTeamEditedPropChangesPropDescriptionType as WebhookTeamEditedPropChangesPropDescriptionType, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesPropNameType as WebhookTeamEditedPropChangesPropNameType, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesPropNotificationSettingType as WebhookTeamEditedPropChangesPropNotificationSettingType, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesPropPrivacyType as WebhookTeamEditedPropChangesPropPrivacyType, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesPropRepositoryType as WebhookTeamEditedPropChangesPropRepositoryType, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropChangesType as WebhookTeamEditedPropChangesType, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropRepositoryPropCustomPropertiesType as WebhookTeamEditedPropRepositoryPropCustomPropertiesType, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropRepositoryPropLicenseType as WebhookTeamEditedPropRepositoryPropLicenseType, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropRepositoryPropOwnerType as WebhookTeamEditedPropRepositoryPropOwnerType, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropRepositoryPropPermissionsType as WebhookTeamEditedPropRepositoryPropPermissionsType, ) - from .group_0766 import ( + from .group_0772 import ( WebhookTeamEditedPropRepositoryType as WebhookTeamEditedPropRepositoryType, ) - from .group_0766 import WebhookTeamEditedType as WebhookTeamEditedType - from .group_0767 import ( + from .group_0772 import WebhookTeamEditedType as WebhookTeamEditedType + from .group_0773 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0767 import ( + from .group_0773 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, ) - from .group_0767 import ( + from .group_0773 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, ) - from .group_0767 import ( + from .group_0773 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType, ) - from .group_0767 import ( + from .group_0773 import ( WebhookTeamRemovedFromRepositoryPropRepositoryType as WebhookTeamRemovedFromRepositoryPropRepositoryType, ) - from .group_0767 import ( + from .group_0773 import ( WebhookTeamRemovedFromRepositoryType as WebhookTeamRemovedFromRepositoryType, ) - from .group_0768 import WebhookWatchStartedType as WebhookWatchStartedType - from .group_0769 import ( + from .group_0774 import WebhookWatchStartedType as WebhookWatchStartedType + from .group_0775 import ( WebhookWorkflowDispatchPropInputsType as WebhookWorkflowDispatchPropInputsType, ) - from .group_0769 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType - from .group_0770 import ( + from .group_0775 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType + from .group_0776 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType as WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType, ) - from .group_0770 import ( + from .group_0776 import ( WebhookWorkflowJobCompletedPropWorkflowJobType as WebhookWorkflowJobCompletedPropWorkflowJobType, ) - from .group_0770 import ( + from .group_0776 import ( WebhookWorkflowJobCompletedType as WebhookWorkflowJobCompletedType, ) - from .group_0771 import ( + from .group_0777 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0771 import ( + from .group_0777 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type, ) - from .group_0772 import ( + from .group_0778 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0772 import ( + from .group_0778 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type, ) - from .group_0773 import ( + from .group_0779 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType as WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType, ) - from .group_0773 import ( + from .group_0779 import ( WebhookWorkflowJobInProgressPropWorkflowJobType as WebhookWorkflowJobInProgressPropWorkflowJobType, ) - from .group_0773 import ( + from .group_0779 import ( WebhookWorkflowJobInProgressType as WebhookWorkflowJobInProgressType, ) - from .group_0774 import ( + from .group_0780 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0774 import ( + from .group_0780 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type, ) - from .group_0775 import ( + from .group_0781 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0775 import ( + from .group_0781 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type, ) - from .group_0776 import ( + from .group_0782 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType, ) - from .group_0776 import ( + from .group_0782 import ( WebhookWorkflowJobQueuedPropWorkflowJobType as WebhookWorkflowJobQueuedPropWorkflowJobType, ) - from .group_0776 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType - from .group_0777 import ( + from .group_0782 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType + from .group_0783 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType, ) - from .group_0777 import ( + from .group_0783 import ( WebhookWorkflowJobWaitingPropWorkflowJobType as WebhookWorkflowJobWaitingPropWorkflowJobType, ) - from .group_0777 import ( + from .group_0783 import ( WebhookWorkflowJobWaitingType as WebhookWorkflowJobWaitingType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedPropWorkflowRunType as WebhookWorkflowRunCompletedPropWorkflowRunType, ) - from .group_0778 import ( + from .group_0784 import ( WebhookWorkflowRunCompletedType as WebhookWorkflowRunCompletedType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressPropWorkflowRunType as WebhookWorkflowRunInProgressPropWorkflowRunType, ) - from .group_0779 import ( + from .group_0785 import ( WebhookWorkflowRunInProgressType as WebhookWorkflowRunInProgressType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedPropWorkflowRunType as WebhookWorkflowRunRequestedPropWorkflowRunType, ) - from .group_0780 import ( + from .group_0786 import ( WebhookWorkflowRunRequestedType as WebhookWorkflowRunRequestedType, ) - from .group_0781 import ( + from .group_0787 import ( AppManifestsCodeConversionsPostResponse201Type as AppManifestsCodeConversionsPostResponse201Type, ) - from .group_0782 import ( + from .group_0788 import ( AppManifestsCodeConversionsPostResponse201Allof1Type as AppManifestsCodeConversionsPostResponse201Allof1Type, ) - from .group_0783 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType - from .group_0784 import ( + from .group_0789 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType + from .group_0790 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type as AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, ) - from .group_0785 import ( + from .group_0791 import ( AppInstallationsInstallationIdAccessTokensPostBodyType as AppInstallationsInstallationIdAccessTokensPostBodyType, ) - from .group_0786 import ( + from .group_0792 import ( ApplicationsClientIdGrantDeleteBodyType as ApplicationsClientIdGrantDeleteBodyType, ) - from .group_0787 import ( + from .group_0793 import ( ApplicationsClientIdTokenPostBodyType as ApplicationsClientIdTokenPostBodyType, ) - from .group_0788 import ( + from .group_0794 import ( ApplicationsClientIdTokenDeleteBodyType as ApplicationsClientIdTokenDeleteBodyType, ) - from .group_0789 import ( + from .group_0795 import ( ApplicationsClientIdTokenPatchBodyType as ApplicationsClientIdTokenPatchBodyType, ) - from .group_0790 import ( + from .group_0796 import ( ApplicationsClientIdTokenScopedPostBodyType as ApplicationsClientIdTokenScopedPostBodyType, ) - from .group_0791 import EmojisGetResponse200Type as EmojisGetResponse200Type - from .group_0792 import ( + from .group_0797 import EmojisGetResponse200Type as EmojisGetResponse200Type + from .group_0798 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0792 import ( + from .group_0798 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType, ) - from .group_0793 import ( + from .group_0799 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0793 import ( + from .group_0799 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_0794 import ( + from .group_0800 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_0795 import ( + from .group_0801 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0796 import ( + from .group_0802 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0797 import ( + from .group_0803 import ( EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type as EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type, ) - from .group_0798 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType - from .group_0798 import GistsPostBodyType as GistsPostBodyType - from .group_0799 import ( + from .group_0804 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType + from .group_0804 import GistsPostBodyType as GistsPostBodyType + from .group_0805 import ( GistsGistIdGetResponse403PropBlockType as GistsGistIdGetResponse403PropBlockType, ) - from .group_0799 import ( + from .group_0805 import ( GistsGistIdGetResponse403Type as GistsGistIdGetResponse403Type, ) - from .group_0800 import ( + from .group_0806 import ( GistsGistIdPatchBodyPropFilesType as GistsGistIdPatchBodyPropFilesType, ) - from .group_0800 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType - from .group_0801 import ( + from .group_0806 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType + from .group_0807 import ( GistsGistIdCommentsPostBodyType as GistsGistIdCommentsPostBodyType, ) - from .group_0802 import ( + from .group_0808 import ( GistsGistIdCommentsCommentIdPatchBodyType as GistsGistIdCommentsCommentIdPatchBodyType, ) - from .group_0803 import ( + from .group_0809 import ( GistsGistIdStarGetResponse404Type as GistsGistIdStarGetResponse404Type, ) - from .group_0804 import ( + from .group_0810 import ( InstallationRepositoriesGetResponse200Type as InstallationRepositoriesGetResponse200Type, ) - from .group_0805 import MarkdownPostBodyType as MarkdownPostBodyType - from .group_0806 import NotificationsPutBodyType as NotificationsPutBodyType - from .group_0807 import ( + from .group_0811 import MarkdownPostBodyType as MarkdownPostBodyType + from .group_0812 import NotificationsPutBodyType as NotificationsPutBodyType + from .group_0813 import ( NotificationsPutResponse202Type as NotificationsPutResponse202Type, ) - from .group_0808 import ( + from .group_0814 import ( NotificationsThreadsThreadIdSubscriptionPutBodyType as NotificationsThreadsThreadIdSubscriptionPutBodyType, ) - from .group_0809 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType - from .group_0810 import ( + from .group_0815 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType + from .group_0816 import ( ActionsCacheUsageByRepositoryType as ActionsCacheUsageByRepositoryType, ) - from .group_0810 import ( + from .group_0816 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type as OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, ) - from .group_0811 import ( + from .group_0817 import ( + OrgsOrgActionsHostedRunnersGetResponse200Type as OrgsOrgActionsHostedRunnersGetResponse200Type, + ) + from .group_0818 import ( + OrgsOrgActionsHostedRunnersPostBodyPropImageType as OrgsOrgActionsHostedRunnersPostBodyPropImageType, + ) + from .group_0818 import ( + OrgsOrgActionsHostedRunnersPostBodyType as OrgsOrgActionsHostedRunnersPostBodyType, + ) + from .group_0819 import ( + OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, + ) + from .group_0820 import ( + OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, + ) + from .group_0821 import ( + OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, + ) + from .group_0822 import ( + OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type as OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, + ) + from .group_0823 import ( + OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, + ) + from .group_0824 import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) - from .group_0812 import ( + from .group_0825 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200Type as OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, ) - from .group_0813 import ( + from .group_0826 import ( OrgsOrgActionsPermissionsRepositoriesPutBodyType as OrgsOrgActionsPermissionsRepositoriesPutBodyType, ) - from .group_0814 import ( + from .group_0827 import ( OrgsOrgActionsRunnerGroupsGetResponse200Type as OrgsOrgActionsRunnerGroupsGetResponse200Type, ) - from .group_0814 import RunnerGroupsOrgType as RunnerGroupsOrgType - from .group_0815 import ( + from .group_0827 import RunnerGroupsOrgType as RunnerGroupsOrgType + from .group_0828 import ( OrgsOrgActionsRunnerGroupsPostBodyType as OrgsOrgActionsRunnerGroupsPostBodyType, ) - from .group_0816 import ( + from .group_0829 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0817 import ( + from .group_0830 import ( + OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, + ) + from .group_0831 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type, ) - from .group_0818 import ( + from .group_0832 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType, ) - from .group_0819 import ( + from .group_0833 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0820 import ( + from .group_0834 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0821 import ( + from .group_0835 import ( OrgsOrgActionsRunnersGetResponse200Type as OrgsOrgActionsRunnersGetResponse200Type, ) - from .group_0822 import ( + from .group_0836 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBodyType as OrgsOrgActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0823 import ( + from .group_0837 import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type, ) - from .group_0824 import ( + from .group_0838 import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type, ) - from .group_0825 import ( + from .group_0839 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0826 import ( + from .group_0840 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0827 import ( + from .group_0841 import ( OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type, ) - from .group_0828 import ( + from .group_0842 import ( OrganizationActionsSecretType as OrganizationActionsSecretType, ) - from .group_0828 import ( + from .group_0842 import ( OrgsOrgActionsSecretsGetResponse200Type as OrgsOrgActionsSecretsGetResponse200Type, ) - from .group_0829 import ( + from .group_0843 import ( OrgsOrgActionsSecretsSecretNamePutBodyType as OrgsOrgActionsSecretsSecretNamePutBodyType, ) - from .group_0830 import ( + from .group_0844 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0831 import ( + from .group_0845 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType as OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0832 import ( + from .group_0846 import ( OrganizationActionsVariableType as OrganizationActionsVariableType, ) - from .group_0832 import ( + from .group_0846 import ( OrgsOrgActionsVariablesGetResponse200Type as OrgsOrgActionsVariablesGetResponse200Type, ) - from .group_0833 import ( + from .group_0847 import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) - from .group_0834 import ( + from .group_0848 import ( OrgsOrgActionsVariablesNamePatchBodyType as OrgsOrgActionsVariablesNamePatchBodyType, ) - from .group_0835 import ( + from .group_0849 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type as OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type, ) - from .group_0836 import ( + from .group_0850 import ( OrgsOrgActionsVariablesNameRepositoriesPutBodyType as OrgsOrgActionsVariablesNameRepositoriesPutBodyType, ) - from .group_0837 import ( + from .group_0851 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_0837 import ( + from .group_0851 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_0837 import ( + from .group_0851 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_0837 import ( + from .group_0851 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_0837 import ( + from .group_0851 import ( OrgsOrgAttestationsSubjectDigestGetResponse200Type as OrgsOrgAttestationsSubjectDigestGetResponse200Type, ) - from .group_0838 import ( + from .group_0852 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0838 import ( + from .group_0852 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_0838 import ( + from .group_0852 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType, ) - from .group_0838 import ( + from .group_0852 import ( OrgsOrgCodeSecurityConfigurationsPostBodyType as OrgsOrgCodeSecurityConfigurationsPostBodyType, ) - from .group_0839 import ( + from .group_0853 import ( OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType as OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, ) - from .group_0840 import ( + from .group_0854 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0840 import ( + from .group_0854 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_0840 import ( + from .group_0854 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType, ) - from .group_0840 import ( + from .group_0854 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_0841 import ( + from .group_0855 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_0842 import ( + from .group_0856 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0843 import ( + from .group_0857 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0844 import ( + from .group_0858 import ( OrgsOrgCodespacesGetResponse200Type as OrgsOrgCodespacesGetResponse200Type, ) - from .group_0845 import ( + from .group_0859 import ( OrgsOrgCodespacesAccessPutBodyType as OrgsOrgCodespacesAccessPutBodyType, ) - from .group_0846 import ( + from .group_0860 import ( OrgsOrgCodespacesAccessSelectedUsersPostBodyType as OrgsOrgCodespacesAccessSelectedUsersPostBodyType, ) - from .group_0847 import ( + from .group_0861 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) - from .group_0848 import CodespacesOrgSecretType as CodespacesOrgSecretType - from .group_0848 import ( + from .group_0862 import CodespacesOrgSecretType as CodespacesOrgSecretType + from .group_0862 import ( OrgsOrgCodespacesSecretsGetResponse200Type as OrgsOrgCodespacesSecretsGetResponse200Type, ) - from .group_0849 import ( + from .group_0863 import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) - from .group_0850 import ( + from .group_0864 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0851 import ( + from .group_0865 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0852 import ( + from .group_0866 import ( OrgsOrgCopilotBillingSelectedTeamsPostBodyType as OrgsOrgCopilotBillingSelectedTeamsPostBodyType, ) - from .group_0853 import ( + from .group_0867 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) - from .group_0854 import ( + from .group_0868 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType as OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, ) - from .group_0855 import ( + from .group_0869 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, ) - from .group_0856 import ( + from .group_0870 import ( OrgsOrgCopilotBillingSelectedUsersPostBodyType as OrgsOrgCopilotBillingSelectedUsersPostBodyType, ) - from .group_0857 import ( + from .group_0871 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201Type as OrgsOrgCopilotBillingSelectedUsersPostResponse201Type, ) - from .group_0858 import ( + from .group_0872 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBodyType as OrgsOrgCopilotBillingSelectedUsersDeleteBodyType, ) - from .group_0859 import ( + from .group_0873 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type, ) - from .group_0860 import ( + from .group_0874 import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) - from .group_0860 import ( + from .group_0874 import ( OrgsOrgDependabotSecretsGetResponse200Type as OrgsOrgDependabotSecretsGetResponse200Type, ) - from .group_0861 import ( + from .group_0875 import ( OrgsOrgDependabotSecretsSecretNamePutBodyType as OrgsOrgDependabotSecretsSecretNamePutBodyType, ) - from .group_0862 import ( + from .group_0876 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0863 import ( + from .group_0877 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0864 import ( + from .group_0878 import ( OrgsOrgHooksPostBodyPropConfigType as OrgsOrgHooksPostBodyPropConfigType, ) - from .group_0864 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType - from .group_0865 import ( + from .group_0878 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType + from .group_0879 import ( OrgsOrgHooksHookIdPatchBodyPropConfigType as OrgsOrgHooksHookIdPatchBodyPropConfigType, ) - from .group_0865 import ( + from .group_0879 import ( OrgsOrgHooksHookIdPatchBodyType as OrgsOrgHooksHookIdPatchBodyType, ) - from .group_0866 import ( + from .group_0880 import ( OrgsOrgHooksHookIdConfigPatchBodyType as OrgsOrgHooksHookIdConfigPatchBodyType, ) - from .group_0867 import ( + from .group_0881 import ( OrgsOrgInstallationsGetResponse200Type as OrgsOrgInstallationsGetResponse200Type, ) - from .group_0868 import ( + from .group_0882 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1Type as OrgsOrgInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0869 import ( + from .group_0883 import ( OrgsOrgInvitationsPostBodyType as OrgsOrgInvitationsPostBodyType, ) - from .group_0870 import ( + from .group_0884 import ( OrgsOrgMembersUsernameCodespacesGetResponse200Type as OrgsOrgMembersUsernameCodespacesGetResponse200Type, ) - from .group_0871 import ( + from .group_0885 import ( OrgsOrgMembershipsUsernamePutBodyType as OrgsOrgMembershipsUsernamePutBodyType, ) - from .group_0872 import ( + from .group_0886 import ( OrgsOrgMigrationsPostBodyType as OrgsOrgMigrationsPostBodyType, ) - from .group_0873 import ( + from .group_0887 import ( OrgsOrgOutsideCollaboratorsUsernamePutBodyType as OrgsOrgOutsideCollaboratorsUsernamePutBodyType, ) - from .group_0874 import ( + from .group_0888 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type as OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type, ) - from .group_0875 import ( + from .group_0889 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type, ) - from .group_0876 import ( + from .group_0890 import ( OrgsOrgPersonalAccessTokenRequestsPostBodyType as OrgsOrgPersonalAccessTokenRequestsPostBodyType, ) - from .group_0877 import ( + from .group_0891 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) - from .group_0878 import ( + from .group_0892 import ( OrgsOrgPersonalAccessTokensPostBodyType as OrgsOrgPersonalAccessTokensPostBodyType, ) - from .group_0879 import ( + from .group_0893 import ( OrgsOrgPersonalAccessTokensPatIdPostBodyType as OrgsOrgPersonalAccessTokensPatIdPostBodyType, ) - from .group_0880 import ( + from .group_0894 import ( OrgPrivateRegistryConfigurationType as OrgPrivateRegistryConfigurationType, ) - from .group_0880 import ( + from .group_0894 import ( OrgsOrgPrivateRegistriesGetResponse200Type as OrgsOrgPrivateRegistriesGetResponse200Type, ) - from .group_0881 import ( + from .group_0895 import ( OrgsOrgPrivateRegistriesPostBodyType as OrgsOrgPrivateRegistriesPostBodyType, ) - from .group_0882 import ( + from .group_0896 import ( OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type as OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type, ) - from .group_0883 import ( + from .group_0897 import ( OrgsOrgPrivateRegistriesSecretNamePatchBodyType as OrgsOrgPrivateRegistriesSecretNamePatchBodyType, ) - from .group_0884 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType - from .group_0885 import ( + from .group_0898 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType + from .group_0899 import ( OrgsOrgPropertiesSchemaPatchBodyType as OrgsOrgPropertiesSchemaPatchBodyType, ) - from .group_0886 import ( + from .group_0900 import ( OrgsOrgPropertiesValuesPatchBodyType as OrgsOrgPropertiesValuesPatchBodyType, ) - from .group_0887 import ( + from .group_0901 import ( OrgsOrgReposPostBodyPropCustomPropertiesType as OrgsOrgReposPostBodyPropCustomPropertiesType, ) - from .group_0887 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType - from .group_0888 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType - from .group_0889 import ( + from .group_0901 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType + from .group_0902 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType + from .group_0903 import ( OrgsOrgRulesetsRulesetIdPutBodyType as OrgsOrgRulesetsRulesetIdPutBodyType, ) - from .group_0890 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType - from .group_0891 import ( + from .group_0904 import NetworkConfigurationType as NetworkConfigurationType + from .group_0904 import ( + OrgsOrgSettingsNetworkConfigurationsGetResponse200Type as OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, + ) + from .group_0905 import ( + OrgsOrgSettingsNetworkConfigurationsPostBodyType as OrgsOrgSettingsNetworkConfigurationsPostBodyType, + ) + from .group_0906 import ( + OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, + ) + from .group_0907 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType + from .group_0908 import ( OrgsOrgTeamsTeamSlugPatchBodyType as OrgsOrgTeamsTeamSlugPatchBodyType, ) - from .group_0892 import ( + from .group_0909 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsPostBodyType, ) - from .group_0893 import ( + from .group_0910 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType, ) - from .group_0894 import ( + from .group_0911 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_0895 import ( + from .group_0912 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_0896 import ( + from .group_0913 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_0897 import ( + from .group_0914 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_0898 import ( + from .group_0915 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType, ) - from .group_0899 import ( + from .group_0916 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType, ) - from .group_0900 import ( + from .group_0917 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type, ) - from .group_0901 import ( + from .group_0918 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType, ) - from .group_0902 import ( + from .group_0919 import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) - from .group_0903 import ( + from .group_0920 import ( ProjectsColumnsCardsCardIdDeleteResponse403Type as ProjectsColumnsCardsCardIdDeleteResponse403Type, ) - from .group_0904 import ( + from .group_0921 import ( ProjectsColumnsCardsCardIdPatchBodyType as ProjectsColumnsCardsCardIdPatchBodyType, ) - from .group_0905 import ( + from .group_0922 import ( ProjectsColumnsCardsCardIdMovesPostBodyType as ProjectsColumnsCardsCardIdMovesPostBodyType, ) - from .group_0906 import ( + from .group_0923 import ( ProjectsColumnsCardsCardIdMovesPostResponse201Type as ProjectsColumnsCardsCardIdMovesPostResponse201Type, ) - from .group_0907 import ( + from .group_0924 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType, ) - from .group_0907 import ( + from .group_0924 import ( ProjectsColumnsCardsCardIdMovesPostResponse403Type as ProjectsColumnsCardsCardIdMovesPostResponse403Type, ) - from .group_0908 import ( + from .group_0925 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType, ) - from .group_0908 import ( + from .group_0925 import ( ProjectsColumnsCardsCardIdMovesPostResponse503Type as ProjectsColumnsCardsCardIdMovesPostResponse503Type, ) - from .group_0909 import ( + from .group_0926 import ( ProjectsColumnsColumnIdPatchBodyType as ProjectsColumnsColumnIdPatchBodyType, ) - from .group_0910 import ( + from .group_0927 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0Type as ProjectsColumnsColumnIdCardsPostBodyOneof0Type, ) - from .group_0911 import ( + from .group_0928 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1Type as ProjectsColumnsColumnIdCardsPostBodyOneof1Type, ) - from .group_0912 import ( + from .group_0929 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType, ) - from .group_0912 import ( + from .group_0929 import ( ProjectsColumnsColumnIdCardsPostResponse503Type as ProjectsColumnsColumnIdCardsPostResponse503Type, ) - from .group_0913 import ( + from .group_0930 import ( ProjectsColumnsColumnIdMovesPostBodyType as ProjectsColumnsColumnIdMovesPostBodyType, ) - from .group_0914 import ( + from .group_0931 import ( ProjectsColumnsColumnIdMovesPostResponse201Type as ProjectsColumnsColumnIdMovesPostResponse201Type, ) - from .group_0915 import ( + from .group_0932 import ( ProjectsProjectIdDeleteResponse403Type as ProjectsProjectIdDeleteResponse403Type, ) - from .group_0916 import ( + from .group_0933 import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) - from .group_0917 import ( + from .group_0934 import ( ProjectsProjectIdPatchResponse403Type as ProjectsProjectIdPatchResponse403Type, ) - from .group_0918 import ( + from .group_0935 import ( ProjectsProjectIdCollaboratorsUsernamePutBodyType as ProjectsProjectIdCollaboratorsUsernamePutBodyType, ) - from .group_0919 import ( + from .group_0936 import ( ProjectsProjectIdColumnsPostBodyType as ProjectsProjectIdColumnsPostBodyType, ) - from .group_0920 import ( + from .group_0937 import ( ReposOwnerRepoDeleteResponse403Type as ReposOwnerRepoDeleteResponse403Type, ) - from .group_0921 import ( + from .group_0938 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0921 import ( + from .group_0938 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType, ) - from .group_0921 import ( + from .group_0938 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) - from .group_0921 import ( + from .group_0938 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0921 import ( + from .group_0938 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType, ) - from .group_0921 import ( + from .group_0938 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, ) - from .group_0921 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType - from .group_0922 import ( + from .group_0938 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_0939 import ( ReposOwnerRepoActionsArtifactsGetResponse200Type as ReposOwnerRepoActionsArtifactsGetResponse200Type, ) - from .group_0923 import ( + from .group_0940 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBodyType as ReposOwnerRepoActionsJobsJobIdRerunPostBodyType, ) - from .group_0924 import ( + from .group_0941 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBodyType as ReposOwnerRepoActionsOidcCustomizationSubPutBodyType, ) - from .group_0925 import ( + from .group_0942 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type as ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type, ) - from .group_0926 import ( + from .group_0943 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type as ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type, ) - from .group_0927 import ( + from .group_0944 import ( ReposOwnerRepoActionsPermissionsPutBodyType as ReposOwnerRepoActionsPermissionsPutBodyType, ) - from .group_0928 import ( + from .group_0945 import ( ReposOwnerRepoActionsRunnersGetResponse200Type as ReposOwnerRepoActionsRunnersGetResponse200Type, ) - from .group_0929 import ( + from .group_0946 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0930 import ( + from .group_0947 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0931 import ( + from .group_0948 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0932 import ( + from .group_0949 import ( ReposOwnerRepoActionsRunsGetResponse200Type as ReposOwnerRepoActionsRunsGetResponse200Type, ) - from .group_0933 import ( + from .group_0950 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type, ) - from .group_0934 import ( + from .group_0951 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type, ) - from .group_0935 import ( + from .group_0952 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type, ) - from .group_0936 import ( + from .group_0953 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType, ) - from .group_0937 import ( + from .group_0954 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunPostBodyType, ) - from .group_0938 import ( + from .group_0955 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) - from .group_0939 import ( + from .group_0956 import ( ReposOwnerRepoActionsSecretsGetResponse200Type as ReposOwnerRepoActionsSecretsGetResponse200Type, ) - from .group_0940 import ( + from .group_0957 import ( ReposOwnerRepoActionsSecretsSecretNamePutBodyType as ReposOwnerRepoActionsSecretsSecretNamePutBodyType, ) - from .group_0941 import ( + from .group_0958 import ( ReposOwnerRepoActionsVariablesGetResponse200Type as ReposOwnerRepoActionsVariablesGetResponse200Type, ) - from .group_0942 import ( + from .group_0959 import ( ReposOwnerRepoActionsVariablesPostBodyType as ReposOwnerRepoActionsVariablesPostBodyType, ) - from .group_0943 import ( + from .group_0960 import ( ReposOwnerRepoActionsVariablesNamePatchBodyType as ReposOwnerRepoActionsVariablesNamePatchBodyType, ) - from .group_0944 import ( + from .group_0961 import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) - from .group_0944 import WorkflowType as WorkflowType - from .group_0945 import ( + from .group_0961 import WorkflowType as WorkflowType + from .group_0962 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) - from .group_0945 import ( + from .group_0962 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType, ) - from .group_0946 import ( + from .group_0963 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type, ) - from .group_0947 import ( + from .group_0964 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType, ) - from .group_0947 import ( + from .group_0964 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType, ) - from .group_0947 import ( + from .group_0964 import ( ReposOwnerRepoAttestationsPostBodyPropBundleType as ReposOwnerRepoAttestationsPostBodyPropBundleType, ) - from .group_0947 import ( + from .group_0964 import ( ReposOwnerRepoAttestationsPostBodyType as ReposOwnerRepoAttestationsPostBodyType, ) - from .group_0948 import ( + from .group_0965 import ( ReposOwnerRepoAttestationsPostResponse201Type as ReposOwnerRepoAttestationsPostResponse201Type, ) - from .group_0949 import ( + from .group_0966 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_0949 import ( + from .group_0966 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_0949 import ( + from .group_0966 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_0949 import ( + from .group_0966 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_0949 import ( + from .group_0966 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type as ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type, ) - from .group_0950 import ( + from .group_0967 import ( ReposOwnerRepoAutolinksPostBodyType as ReposOwnerRepoAutolinksPostBodyType, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, ) - from .group_0951 import ( + from .group_0968 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyType as ReposOwnerRepoBranchesBranchProtectionPutBodyType, ) - from .group_0952 import ( + from .group_0969 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType, ) - from .group_0952 import ( + from .group_0969 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType, ) - from .group_0952 import ( + from .group_0969 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType, ) - from .group_0953 import ( + from .group_0970 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) - from .group_0953 import ( + from .group_0970 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType, ) - from .group_0954 import ( + from .group_0971 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) - from .group_0955 import ( + from .group_0972 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type, ) - from .group_0956 import ( + from .group_0973 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type, ) - from .group_0957 import ( + from .group_0974 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType, ) - from .group_0958 import ( + from .group_0975 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType, ) - from .group_0959 import ( + from .group_0976 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType, ) - from .group_0960 import ( + from .group_0977 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type, ) - from .group_0961 import ( + from .group_0978 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type, ) - from .group_0962 import ( + from .group_0979 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type, ) - from .group_0963 import ( + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType, ) - from .group_0964 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType, ) - from .group_0965 import ( + from .group_0982 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType, ) - from .group_0966 import ( + from .group_0983 import ( ReposOwnerRepoBranchesBranchRenamePostBodyType as ReposOwnerRepoBranchesBranchRenamePostBodyType, ) - from .group_0967 import ( + from .group_0984 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType as ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) - from .group_0967 import ( + from .group_0984 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType, ) - from .group_0967 import ( + from .group_0984 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType, ) - from .group_0967 import ( + from .group_0984 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) - from .group_0968 import ( + from .group_0985 import ( ReposOwnerRepoCheckRunsPostBodyOneof0Type as ReposOwnerRepoCheckRunsPostBodyOneof0Type, ) - from .group_0969 import ( + from .group_0986 import ( ReposOwnerRepoCheckRunsPostBodyOneof1Type as ReposOwnerRepoCheckRunsPostBodyOneof1Type, ) - from .group_0970 import ( + from .group_0987 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) - from .group_0970 import ( + from .group_0987 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType, ) - from .group_0970 import ( + from .group_0987 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType, ) - from .group_0970 import ( + from .group_0987 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) - from .group_0971 import ( + from .group_0988 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type, ) - from .group_0972 import ( + from .group_0989 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type, ) - from .group_0973 import ( + from .group_0990 import ( ReposOwnerRepoCheckSuitesPostBodyType as ReposOwnerRepoCheckSuitesPostBodyType, ) - from .group_0974 import ( + from .group_0991 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) - from .group_0974 import ( + from .group_0991 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyType, ) - from .group_0975 import ( + from .group_0992 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) - from .group_0976 import ( + from .group_0993 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType, ) - from .group_0977 import ( + from .group_0994 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type, ) - from .group_0978 import ( + from .group_0995 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type, ) - from .group_0979 import ( + from .group_0996 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type, ) - from .group_0980 import ( + from .group_0997 import ( ReposOwnerRepoCodeScanningSarifsPostBodyType as ReposOwnerRepoCodeScanningSarifsPostBodyType, ) - from .group_0981 import ( + from .group_0998 import ( ReposOwnerRepoCodespacesGetResponse200Type as ReposOwnerRepoCodespacesGetResponse200Type, ) - from .group_0982 import ( + from .group_0999 import ( ReposOwnerRepoCodespacesPostBodyType as ReposOwnerRepoCodespacesPostBodyType, ) - from .group_0983 import ( + from .group_1000 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType, ) - from .group_0983 import ( + from .group_1000 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200Type as ReposOwnerRepoCodespacesDevcontainersGetResponse200Type, ) - from .group_0984 import ( + from .group_1001 import ( ReposOwnerRepoCodespacesMachinesGetResponse200Type as ReposOwnerRepoCodespacesMachinesGetResponse200Type, ) - from .group_0985 import ( + from .group_1002 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) - from .group_0985 import ( + from .group_1002 import ( ReposOwnerRepoCodespacesNewGetResponse200Type as ReposOwnerRepoCodespacesNewGetResponse200Type, ) - from .group_0986 import RepoCodespacesSecretType as RepoCodespacesSecretType - from .group_0986 import ( + from .group_1003 import RepoCodespacesSecretType as RepoCodespacesSecretType + from .group_1003 import ( ReposOwnerRepoCodespacesSecretsGetResponse200Type as ReposOwnerRepoCodespacesSecretsGetResponse200Type, ) - from .group_0987 import ( + from .group_1004 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType as ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType, ) - from .group_0988 import ( + from .group_1005 import ( ReposOwnerRepoCollaboratorsUsernamePutBodyType as ReposOwnerRepoCollaboratorsUsernamePutBodyType, ) - from .group_0989 import ( + from .group_1006 import ( ReposOwnerRepoCommentsCommentIdPatchBodyType as ReposOwnerRepoCommentsCommentIdPatchBodyType, ) - from .group_0990 import ( + from .group_1007 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoCommentsCommentIdReactionsPostBodyType, ) - from .group_0991 import ( + from .group_1008 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBodyType as ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, ) - from .group_0992 import ( + from .group_1009 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type as ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type, ) - from .group_0993 import ( + from .group_1010 import ( ReposOwnerRepoContentsPathPutBodyPropAuthorType as ReposOwnerRepoContentsPathPutBodyPropAuthorType, ) - from .group_0993 import ( + from .group_1010 import ( ReposOwnerRepoContentsPathPutBodyPropCommitterType as ReposOwnerRepoContentsPathPutBodyPropCommitterType, ) - from .group_0993 import ( + from .group_1010 import ( ReposOwnerRepoContentsPathPutBodyType as ReposOwnerRepoContentsPathPutBodyType, ) - from .group_0994 import ( + from .group_1011 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthorType as ReposOwnerRepoContentsPathDeleteBodyPropAuthorType, ) - from .group_0994 import ( + from .group_1011 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitterType as ReposOwnerRepoContentsPathDeleteBodyPropCommitterType, ) - from .group_0994 import ( + from .group_1011 import ( ReposOwnerRepoContentsPathDeleteBodyType as ReposOwnerRepoContentsPathDeleteBodyType, ) - from .group_0995 import ( + from .group_1012 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType as ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType, ) - from .group_0996 import DependabotSecretType as DependabotSecretType - from .group_0996 import ( + from .group_1013 import DependabotSecretType as DependabotSecretType + from .group_1013 import ( ReposOwnerRepoDependabotSecretsGetResponse200Type as ReposOwnerRepoDependabotSecretsGetResponse200Type, ) - from .group_0997 import ( + from .group_1014 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBodyType as ReposOwnerRepoDependabotSecretsSecretNamePutBodyType, ) - from .group_0998 import ( + from .group_1015 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type, ) - from .group_0999 import ( + from .group_1016 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, ) - from .group_0999 import ( + from .group_1016 import ( ReposOwnerRepoDeploymentsPostBodyType as ReposOwnerRepoDeploymentsPostBodyType, ) - from .group_1000 import ( + from .group_1017 import ( ReposOwnerRepoDeploymentsPostResponse202Type as ReposOwnerRepoDeploymentsPostResponse202Type, ) - from .group_1001 import ( + from .group_1018 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType, ) - from .group_1002 import ( + from .group_1019 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayloadType as ReposOwnerRepoDispatchesPostBodyPropClientPayloadType, ) - from .group_1002 import ( + from .group_1019 import ( ReposOwnerRepoDispatchesPostBodyType as ReposOwnerRepoDispatchesPostBodyType, ) - from .group_1003 import ( + from .group_1020 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType, ) - from .group_1003 import ( + from .group_1020 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType, ) - from .group_1004 import DeploymentBranchPolicyType as DeploymentBranchPolicyType - from .group_1004 import ( + from .group_1021 import DeploymentBranchPolicyType as DeploymentBranchPolicyType + from .group_1021 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) - from .group_1005 import ( + from .group_1022 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) - from .group_1006 import ( + from .group_1023 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) - from .group_1007 import ( + from .group_1024 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type, ) - from .group_1008 import ( + from .group_1025 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType, ) - from .group_1009 import ( + from .group_1026 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type, ) - from .group_1010 import ( + from .group_1027 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType, ) - from .group_1011 import ( + from .group_1028 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) - from .group_1012 import ( + from .group_1029 import ( ReposOwnerRepoForksPostBodyType as ReposOwnerRepoForksPostBodyType, ) - from .group_1013 import ( + from .group_1030 import ( ReposOwnerRepoGitBlobsPostBodyType as ReposOwnerRepoGitBlobsPostBodyType, ) - from .group_1014 import ( + from .group_1031 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthorType as ReposOwnerRepoGitCommitsPostBodyPropAuthorType, ) - from .group_1014 import ( + from .group_1031 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitterType as ReposOwnerRepoGitCommitsPostBodyPropCommitterType, ) - from .group_1014 import ( + from .group_1031 import ( ReposOwnerRepoGitCommitsPostBodyType as ReposOwnerRepoGitCommitsPostBodyType, ) - from .group_1015 import ( + from .group_1032 import ( ReposOwnerRepoGitRefsPostBodyType as ReposOwnerRepoGitRefsPostBodyType, ) - from .group_1016 import ( + from .group_1033 import ( ReposOwnerRepoGitRefsRefPatchBodyType as ReposOwnerRepoGitRefsRefPatchBodyType, ) - from .group_1017 import ( + from .group_1034 import ( ReposOwnerRepoGitTagsPostBodyPropTaggerType as ReposOwnerRepoGitTagsPostBodyPropTaggerType, ) - from .group_1017 import ( + from .group_1034 import ( ReposOwnerRepoGitTagsPostBodyType as ReposOwnerRepoGitTagsPostBodyType, ) - from .group_1018 import ( + from .group_1035 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItemsType as ReposOwnerRepoGitTreesPostBodyPropTreeItemsType, ) - from .group_1018 import ( + from .group_1035 import ( ReposOwnerRepoGitTreesPostBodyType as ReposOwnerRepoGitTreesPostBodyType, ) - from .group_1019 import ( + from .group_1036 import ( ReposOwnerRepoHooksPostBodyPropConfigType as ReposOwnerRepoHooksPostBodyPropConfigType, ) - from .group_1019 import ( + from .group_1036 import ( ReposOwnerRepoHooksPostBodyType as ReposOwnerRepoHooksPostBodyType, ) - from .group_1020 import ( + from .group_1037 import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) - from .group_1021 import ( + from .group_1038 import ( ReposOwnerRepoHooksHookIdConfigPatchBodyType as ReposOwnerRepoHooksHookIdConfigPatchBodyType, ) - from .group_1022 import ( + from .group_1039 import ( ReposOwnerRepoImportPutBodyType as ReposOwnerRepoImportPutBodyType, ) - from .group_1023 import ( + from .group_1040 import ( ReposOwnerRepoImportPatchBodyType as ReposOwnerRepoImportPatchBodyType, ) - from .group_1024 import ( + from .group_1041 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) - from .group_1025 import ( + from .group_1042 import ( ReposOwnerRepoImportLfsPatchBodyType as ReposOwnerRepoImportLfsPatchBodyType, ) - from .group_1026 import ( + from .group_1043 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1027 import ( + from .group_1044 import ( ReposOwnerRepoInvitationsInvitationIdPatchBodyType as ReposOwnerRepoInvitationsInvitationIdPatchBodyType, ) - from .group_1028 import ( + from .group_1045 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type, ) - from .group_1028 import ( + from .group_1045 import ( ReposOwnerRepoIssuesPostBodyType as ReposOwnerRepoIssuesPostBodyType, ) - from .group_1029 import ( + from .group_1046 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType as ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType, ) - from .group_1030 import ( + from .group_1047 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType, ) - from .group_1031 import ( + from .group_1048 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type, ) - from .group_1031 import ( + from .group_1048 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyType as ReposOwnerRepoIssuesIssueNumberPatchBodyType, ) - from .group_1032 import ( + from .group_1049 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType, ) - from .group_1033 import ( + from .group_1050 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType, ) - from .group_1034 import ( + from .group_1051 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType as ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType, ) - from .group_1035 import ( + from .group_1052 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type, ) - from .group_1036 import ( + from .group_1053 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType, ) - from .group_1036 import ( + from .group_1053 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) - from .group_1037 import ( + from .group_1054 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType, ) - from .group_1038 import ( + from .group_1055 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type, ) - from .group_1039 import ( + from .group_1056 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType, ) - from .group_1039 import ( + from .group_1056 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type, ) - from .group_1040 import ( + from .group_1057 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) - from .group_1041 import ( + from .group_1058 import ( ReposOwnerRepoIssuesIssueNumberLockPutBodyType as ReposOwnerRepoIssuesIssueNumberLockPutBodyType, ) - from .group_1042 import ( + from .group_1059 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType as ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType, ) - from .group_1043 import ( + from .group_1060 import ( ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType as ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType, ) - from .group_1044 import ( + from .group_1061 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType as ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType, ) - from .group_1045 import ( + from .group_1062 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType as ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType, ) - from .group_1046 import ( + from .group_1063 import ( ReposOwnerRepoKeysPostBodyType as ReposOwnerRepoKeysPostBodyType, ) - from .group_1047 import ( + from .group_1064 import ( ReposOwnerRepoLabelsPostBodyType as ReposOwnerRepoLabelsPostBodyType, ) - from .group_1048 import ( + from .group_1065 import ( ReposOwnerRepoLabelsNamePatchBodyType as ReposOwnerRepoLabelsNamePatchBodyType, ) - from .group_1049 import ( + from .group_1066 import ( ReposOwnerRepoMergeUpstreamPostBodyType as ReposOwnerRepoMergeUpstreamPostBodyType, ) - from .group_1050 import ( + from .group_1067 import ( ReposOwnerRepoMergesPostBodyType as ReposOwnerRepoMergesPostBodyType, ) - from .group_1051 import ( + from .group_1068 import ( ReposOwnerRepoMilestonesPostBodyType as ReposOwnerRepoMilestonesPostBodyType, ) - from .group_1052 import ( + from .group_1069 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType as ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType, ) - from .group_1053 import ( + from .group_1070 import ( ReposOwnerRepoNotificationsPutBodyType as ReposOwnerRepoNotificationsPutBodyType, ) - from .group_1054 import ( + from .group_1071 import ( ReposOwnerRepoNotificationsPutResponse202Type as ReposOwnerRepoNotificationsPutResponse202Type, ) - from .group_1055 import ( + from .group_1072 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type as ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ) - from .group_1056 import ( + from .group_1073 import ( ReposOwnerRepoPagesPutBodyAnyof0Type as ReposOwnerRepoPagesPutBodyAnyof0Type, ) - from .group_1057 import ( + from .group_1074 import ( ReposOwnerRepoPagesPutBodyAnyof1Type as ReposOwnerRepoPagesPutBodyAnyof1Type, ) - from .group_1058 import ( + from .group_1075 import ( ReposOwnerRepoPagesPutBodyAnyof2Type as ReposOwnerRepoPagesPutBodyAnyof2Type, ) - from .group_1059 import ( + from .group_1076 import ( ReposOwnerRepoPagesPutBodyAnyof3Type as ReposOwnerRepoPagesPutBodyAnyof3Type, ) - from .group_1060 import ( + from .group_1077 import ( ReposOwnerRepoPagesPutBodyAnyof4Type as ReposOwnerRepoPagesPutBodyAnyof4Type, ) - from .group_1061 import ( + from .group_1078 import ( ReposOwnerRepoPagesPostBodyPropSourceType as ReposOwnerRepoPagesPostBodyPropSourceType, ) - from .group_1062 import ( + from .group_1079 import ( ReposOwnerRepoPagesPostBodyAnyof0Type as ReposOwnerRepoPagesPostBodyAnyof0Type, ) - from .group_1063 import ( + from .group_1080 import ( ReposOwnerRepoPagesPostBodyAnyof1Type as ReposOwnerRepoPagesPostBodyAnyof1Type, ) - from .group_1064 import ( + from .group_1081 import ( ReposOwnerRepoPagesDeploymentsPostBodyType as ReposOwnerRepoPagesDeploymentsPostBodyType, ) - from .group_1065 import ( + from .group_1082 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type, ) - from .group_1066 import ( + from .group_1083 import ( ReposOwnerRepoProjectsPostBodyType as ReposOwnerRepoProjectsPostBodyType, ) - from .group_1067 import ( + from .group_1084 import ( ReposOwnerRepoPropertiesValuesPatchBodyType as ReposOwnerRepoPropertiesValuesPatchBodyType, ) - from .group_1068 import ( + from .group_1085 import ( ReposOwnerRepoPullsPostBodyType as ReposOwnerRepoPullsPostBodyType, ) - from .group_1069 import ( + from .group_1086 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBodyType as ReposOwnerRepoPullsCommentsCommentIdPatchBodyType, ) - from .group_1070 import ( + from .group_1087 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType, ) - from .group_1071 import ( + from .group_1088 import ( ReposOwnerRepoPullsPullNumberPatchBodyType as ReposOwnerRepoPullsPullNumberPatchBodyType, ) - from .group_1072 import ( + from .group_1089 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBodyType as ReposOwnerRepoPullsPullNumberCodespacesPostBodyType, ) - from .group_1073 import ( + from .group_1090 import ( ReposOwnerRepoPullsPullNumberCommentsPostBodyType as ReposOwnerRepoPullsPullNumberCommentsPostBodyType, ) - from .group_1074 import ( + from .group_1091 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType, ) - from .group_1075 import ( + from .group_1092 import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from .group_1076 import ( + from .group_1093 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405Type as ReposOwnerRepoPullsPullNumberMergePutResponse405Type, ) - from .group_1077 import ( + from .group_1094 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409Type as ReposOwnerRepoPullsPullNumberMergePutResponse409Type, ) - from .group_1078 import ( + from .group_1095 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type, ) - from .group_1079 import ( + from .group_1096 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type, ) - from .group_1080 import ( + from .group_1097 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType, ) - from .group_1081 import ( + from .group_1098 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType, ) - from .group_1081 import ( + from .group_1098 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsPostBodyType, ) - from .group_1082 import ( + from .group_1099 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType, ) - from .group_1083 import ( + from .group_1100 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType, ) - from .group_1084 import ( + from .group_1101 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType, ) - from .group_1085 import ( + from .group_1102 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType as ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType, ) - from .group_1086 import ( + from .group_1103 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type, ) - from .group_1087 import ( + from .group_1104 import ( ReposOwnerRepoReleasesPostBodyType as ReposOwnerRepoReleasesPostBodyType, ) - from .group_1088 import ( + from .group_1105 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType as ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ) - from .group_1089 import ( + from .group_1106 import ( ReposOwnerRepoReleasesGenerateNotesPostBodyType as ReposOwnerRepoReleasesGenerateNotesPostBodyType, ) - from .group_1090 import ( + from .group_1107 import ( ReposOwnerRepoReleasesReleaseIdPatchBodyType as ReposOwnerRepoReleasesReleaseIdPatchBodyType, ) - from .group_1091 import ( + from .group_1108 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType as ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType, ) - from .group_1092 import ( + from .group_1109 import ( ReposOwnerRepoRulesetsPostBodyType as ReposOwnerRepoRulesetsPostBodyType, ) - from .group_1093 import ( + from .group_1110 import ( ReposOwnerRepoRulesetsRulesetIdPutBodyType as ReposOwnerRepoRulesetsRulesetIdPutBodyType, ) - from .group_1094 import ( + from .group_1111 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType, ) - from .group_1095 import ( + from .group_1112 import ( ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType as ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType, ) - from .group_1096 import ( + from .group_1113 import ( ReposOwnerRepoStatusesShaPostBodyType as ReposOwnerRepoStatusesShaPostBodyType, ) - from .group_1097 import ( + from .group_1114 import ( ReposOwnerRepoSubscriptionPutBodyType as ReposOwnerRepoSubscriptionPutBodyType, ) - from .group_1098 import ( + from .group_1115 import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) - from .group_1099 import ( + from .group_1116 import ( ReposOwnerRepoTopicsPutBodyType as ReposOwnerRepoTopicsPutBodyType, ) - from .group_1100 import ( + from .group_1117 import ( ReposOwnerRepoTransferPostBodyType as ReposOwnerRepoTransferPostBodyType, ) - from .group_1101 import ( + from .group_1118 import ( ReposTemplateOwnerTemplateRepoGeneratePostBodyType as ReposTemplateOwnerTemplateRepoGeneratePostBodyType, ) - from .group_1102 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType - from .group_1103 import ( + from .group_1119 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType + from .group_1120 import ( TeamsTeamIdDiscussionsPostBodyType as TeamsTeamIdDiscussionsPostBodyType, ) - from .group_1104 import ( + from .group_1121 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType, ) - from .group_1105 import ( + from .group_1122 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_1106 import ( + from .group_1123 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_1107 import ( + from .group_1124 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_1108 import ( + from .group_1125 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_1109 import ( + from .group_1126 import ( TeamsTeamIdMembershipsUsernamePutBodyType as TeamsTeamIdMembershipsUsernamePutBodyType, ) - from .group_1110 import ( + from .group_1127 import ( TeamsTeamIdProjectsProjectIdPutBodyType as TeamsTeamIdProjectsProjectIdPutBodyType, ) - from .group_1111 import ( + from .group_1128 import ( TeamsTeamIdProjectsProjectIdPutResponse403Type as TeamsTeamIdProjectsProjectIdPutResponse403Type, ) - from .group_1112 import ( + from .group_1129 import ( TeamsTeamIdReposOwnerRepoPutBodyType as TeamsTeamIdReposOwnerRepoPutBodyType, ) - from .group_1113 import UserPatchBodyType as UserPatchBodyType - from .group_1114 import ( + from .group_1130 import UserPatchBodyType as UserPatchBodyType + from .group_1131 import ( UserCodespacesGetResponse200Type as UserCodespacesGetResponse200Type, ) - from .group_1115 import ( + from .group_1132 import ( UserCodespacesPostBodyOneof0Type as UserCodespacesPostBodyOneof0Type, ) - from .group_1116 import ( + from .group_1133 import ( UserCodespacesPostBodyOneof1PropPullRequestType as UserCodespacesPostBodyOneof1PropPullRequestType, ) - from .group_1116 import ( + from .group_1133 import ( UserCodespacesPostBodyOneof1Type as UserCodespacesPostBodyOneof1Type, ) - from .group_1117 import CodespacesSecretType as CodespacesSecretType - from .group_1117 import ( + from .group_1134 import CodespacesSecretType as CodespacesSecretType + from .group_1134 import ( UserCodespacesSecretsGetResponse200Type as UserCodespacesSecretsGetResponse200Type, ) - from .group_1118 import ( + from .group_1135 import ( UserCodespacesSecretsSecretNamePutBodyType as UserCodespacesSecretsSecretNamePutBodyType, ) - from .group_1119 import ( + from .group_1136 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type as UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1120 import ( + from .group_1137 import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1121 import ( + from .group_1138 import ( UserCodespacesCodespaceNamePatchBodyType as UserCodespacesCodespaceNamePatchBodyType, ) - from .group_1122 import ( + from .group_1139 import ( UserCodespacesCodespaceNameMachinesGetResponse200Type as UserCodespacesCodespaceNameMachinesGetResponse200Type, ) - from .group_1123 import ( + from .group_1140 import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) - from .group_1124 import ( + from .group_1141 import ( UserEmailVisibilityPatchBodyType as UserEmailVisibilityPatchBodyType, ) - from .group_1125 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type - from .group_1126 import ( + from .group_1142 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type + from .group_1143 import ( UserEmailsDeleteBodyOneof0Type as UserEmailsDeleteBodyOneof0Type, ) - from .group_1127 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType - from .group_1128 import ( + from .group_1144 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType + from .group_1145 import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) - from .group_1129 import ( + from .group_1146 import ( UserInstallationsInstallationIdRepositoriesGetResponse200Type as UserInstallationsInstallationIdRepositoriesGetResponse200Type, ) - from .group_1130 import ( + from .group_1147 import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1131 import UserKeysPostBodyType as UserKeysPostBodyType - from .group_1132 import ( + from .group_1148 import UserKeysPostBodyType as UserKeysPostBodyType + from .group_1149 import ( UserMembershipsOrgsOrgPatchBodyType as UserMembershipsOrgsOrgPatchBodyType, ) - from .group_1133 import UserMigrationsPostBodyType as UserMigrationsPostBodyType - from .group_1134 import UserProjectsPostBodyType as UserProjectsPostBodyType - from .group_1135 import UserReposPostBodyType as UserReposPostBodyType - from .group_1136 import ( + from .group_1150 import UserMigrationsPostBodyType as UserMigrationsPostBodyType + from .group_1151 import UserProjectsPostBodyType as UserProjectsPostBodyType + from .group_1152 import UserReposPostBodyType as UserReposPostBodyType + from .group_1153 import ( UserSocialAccountsPostBodyType as UserSocialAccountsPostBodyType, ) - from .group_1137 import ( + from .group_1154 import ( UserSocialAccountsDeleteBodyType as UserSocialAccountsDeleteBodyType, ) - from .group_1138 import ( + from .group_1155 import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType as SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropDsseEnvelopeType as SigstoreBundle0PropDsseEnvelopeType, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType, ) - from .group_1139 import ( + from .group_1156 import ( SigstoreBundle0PropVerificationMaterialType as SigstoreBundle0PropVerificationMaterialType, ) - from .group_1139 import SigstoreBundle0Type as SigstoreBundle0Type - from .group_1139 import ( + from .group_1156 import SigstoreBundle0Type as SigstoreBundle0Type + from .group_1156 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1139 import ( + from .group_1156 import ( UsersUsernameAttestationsSubjectDigestGetResponse200Type as UsersUsernameAttestationsSubjectDigestGetResponse200Type, ) else: @@ -8947,29 +9000,30 @@ "CvssSeveritiesPropCvssV3Type", "CvssSeveritiesPropCvssV4Type", ), - ".group_0002": ("SimpleUserType",), - ".group_0003": ( + ".group_0002": ("SecurityAdvisoryEpssType",), + ".group_0003": ("SimpleUserType",), + ".group_0004": ( "GlobalAdvisoryType", "GlobalAdvisoryPropIdentifiersItemsType", "GlobalAdvisoryPropCvssType", "GlobalAdvisoryPropCwesItemsType", - "GlobalAdvisoryPropEpssType", "VulnerabilityType", "VulnerabilityPropPackageType", ), - ".group_0004": ("GlobalAdvisoryPropCreditsItemsType",), - ".group_0005": ("BasicErrorType",), - ".group_0006": ("ValidationErrorSimpleType",), - ".group_0007": ("IntegrationPropPermissionsType",), - ".group_0008": ("IntegrationType",), - ".group_0009": ("WebhookConfigType",), - ".group_0010": ("HookDeliveryItemType",), - ".group_0011": ("ScimErrorType",), - ".group_0012": ( + ".group_0005": ("GlobalAdvisoryPropCreditsItemsType",), + ".group_0006": ("BasicErrorType",), + ".group_0007": ("ValidationErrorSimpleType",), + ".group_0008": ("EnterpriseType",), + ".group_0009": ("IntegrationPropPermissionsType",), + ".group_0010": ("IntegrationType",), + ".group_0011": ("WebhookConfigType",), + ".group_0012": ("HookDeliveryItemType",), + ".group_0013": ("ScimErrorType",), + ".group_0014": ( "ValidationErrorType", "ValidationErrorPropErrorsItemsType", ), - ".group_0013": ( + ".group_0015": ( "HookDeliveryType", "HookDeliveryPropRequestType", "HookDeliveryPropRequestPropHeadersType", @@ -8977,119 +9031,118 @@ "HookDeliveryPropResponseType", "HookDeliveryPropResponsePropHeadersType", ), - ".group_0014": ("EnterpriseType",), - ".group_0015": ("IntegrationInstallationRequestType",), - ".group_0016": ("AppPermissionsType",), - ".group_0017": ("InstallationType",), - ".group_0018": ("LicenseSimpleType",), - ".group_0019": ( + ".group_0016": ("IntegrationInstallationRequestType",), + ".group_0017": ("AppPermissionsType",), + ".group_0018": ("InstallationType",), + ".group_0019": ("LicenseSimpleType",), + ".group_0020": ( "RepositoryType", "RepositoryPropPermissionsType", ), - ".group_0020": ("InstallationTokenType",), - ".group_0021": ("ScopedInstallationType",), - ".group_0022": ( + ".group_0021": ("InstallationTokenType",), + ".group_0022": ("ScopedInstallationType",), + ".group_0023": ( "AuthorizationType", "AuthorizationPropAppType", ), - ".group_0023": ("SimpleClassroomRepositoryType",), - ".group_0024": ( + ".group_0024": ("SimpleClassroomRepositoryType",), + ".group_0025": ( "ClassroomAssignmentType", "ClassroomType", "SimpleClassroomOrganizationType", ), - ".group_0025": ( + ".group_0026": ( "ClassroomAcceptedAssignmentType", "SimpleClassroomUserType", "SimpleClassroomAssignmentType", "SimpleClassroomType", ), - ".group_0026": ("ClassroomAssignmentGradeType",), - ".group_0027": ( + ".group_0027": ("ClassroomAssignmentGradeType",), + ".group_0028": ( "CodeSecurityConfigurationType", "CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType", "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType", "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0028": ("CodeScanningDefaultSetupOptionsType",), - ".group_0029": ("CodeSecurityDefaultConfigurationsItemsType",), - ".group_0030": ("SimpleRepositoryType",), - ".group_0031": ("CodeSecurityConfigurationRepositoriesType",), - ".group_0032": ("DependabotAlertPackageType",), - ".group_0033": ( + ".group_0029": ("CodeScanningDefaultSetupOptionsType",), + ".group_0030": ("CodeSecurityDefaultConfigurationsItemsType",), + ".group_0031": ("SimpleRepositoryType",), + ".group_0032": ("CodeSecurityConfigurationRepositoriesType",), + ".group_0033": ("DependabotAlertPackageType",), + ".group_0034": ( "DependabotAlertSecurityVulnerabilityType", "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", ), - ".group_0034": ( + ".group_0035": ( "DependabotAlertSecurityAdvisoryType", "DependabotAlertSecurityAdvisoryPropCvssType", "DependabotAlertSecurityAdvisoryPropCwesItemsType", "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", "DependabotAlertSecurityAdvisoryPropReferencesItemsType", ), - ".group_0035": ("DependabotAlertWithRepositoryType",), - ".group_0036": ("DependabotAlertWithRepositoryPropDependencyType",), - ".group_0037": ("OrganizationSecretScanningAlertType",), - ".group_0038": ("MilestoneType",), - ".group_0039": ("ReactionRollupType",), - ".group_0040": ( + ".group_0036": ("DependabotAlertWithRepositoryType",), + ".group_0037": ("DependabotAlertWithRepositoryPropDependencyType",), + ".group_0038": ("OrganizationSecretScanningAlertType",), + ".group_0039": ("MilestoneType",), + ".group_0040": ("ReactionRollupType",), + ".group_0041": ( "IssueType", "SubIssuesSummaryType", "IssuePropLabelsItemsOneof1Type", "IssuePropPullRequestType", ), - ".group_0041": ("IssueCommentType",), - ".group_0042": ( + ".group_0042": ("IssueCommentType",), + ".group_0043": ( "EventPropPayloadType", "EventPropPayloadPropPagesItemsType", "EventType", "ActorType", "EventPropRepoType", ), - ".group_0043": ( + ".group_0044": ( "FeedType", "FeedPropLinksType", "LinkWithTypeType", ), - ".group_0044": ( + ".group_0045": ( "BaseGistType", "BaseGistPropFilesType", ), - ".group_0045": ( + ".group_0046": ( "GistHistoryType", "GistHistoryPropChangeStatusType", "GistSimplePropForkOfType", "GistSimplePropForkOfPropFilesType", ), - ".group_0046": ( + ".group_0047": ( "GistSimpleType", "GistSimplePropFilesType", "GistSimplePropForksItemsType", "PublicUserType", "PublicUserPropPlanType", ), - ".group_0047": ("GistCommentType",), - ".group_0048": ( + ".group_0048": ("GistCommentType",), + ".group_0049": ( "GistCommitType", "GistCommitPropChangeStatusType", ), - ".group_0049": ("GitignoreTemplateType",), - ".group_0050": ("LicenseType",), - ".group_0051": ("MarketplaceListingPlanType",), - ".group_0052": ("MarketplacePurchaseType",), - ".group_0053": ( + ".group_0050": ("GitignoreTemplateType",), + ".group_0051": ("LicenseType",), + ".group_0052": ("MarketplaceListingPlanType",), + ".group_0053": ("MarketplacePurchaseType",), + ".group_0054": ( "MarketplacePurchasePropMarketplacePendingChangeType", "MarketplacePurchasePropMarketplacePurchaseType", ), - ".group_0054": ( + ".group_0055": ( "ApiOverviewType", "ApiOverviewPropSshKeyFingerprintsType", "ApiOverviewPropDomainsType", "ApiOverviewPropDomainsPropActionsInboundType", "ApiOverviewPropDomainsPropArtifactAttestationsType", ), - ".group_0055": ( + ".group_0056": ( "SecurityAndAnalysisType", "SecurityAndAnalysisPropAdvancedSecurityType", "SecurityAndAnalysisPropDependabotSecurityUpdatesType", @@ -9098,70 +9151,81 @@ "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", "SecurityAndAnalysisPropSecretScanningAiDetectionType", ), - ".group_0056": ( + ".group_0057": ( "MinimalRepositoryType", "CodeOfConductType", "MinimalRepositoryPropPermissionsType", "MinimalRepositoryPropLicenseType", ), - ".group_0057": ( + ".group_0058": ( "ThreadType", "ThreadPropSubjectType", ), - ".group_0058": ("ThreadSubscriptionType",), - ".group_0059": ("OrganizationSimpleType",), - ".group_0060": ( + ".group_0059": ("ThreadSubscriptionType",), + ".group_0060": ("OrganizationSimpleType",), + ".group_0061": ( "BillingUsageReportType", "BillingUsageReportPropUsageItemsItemsType", ), - ".group_0061": ( + ".group_0062": ( "OrganizationFullType", "OrganizationFullPropPlanType", ), - ".group_0062": ("ActionsCacheUsageOrgEnterpriseType",), - ".group_0063": ("OidcCustomSubType",), - ".group_0064": ("ActionsOrganizationPermissionsType",), - ".group_0065": ("SelectedActionsType",), - ".group_0066": ("ActionsGetDefaultWorkflowPermissionsType",), - ".group_0067": ("ActionsSetDefaultWorkflowPermissionsType",), - ".group_0068": ("RunnerLabelType",), - ".group_0069": ("RunnerType",), - ".group_0070": ("RunnerApplicationType",), - ".group_0071": ( + ".group_0063": ("ActionsCacheUsageOrgEnterpriseType",), + ".group_0064": ("ActionsHostedRunnerMachineSpecType",), + ".group_0065": ( + "ActionsHostedRunnerType", + "ActionsHostedRunnerPoolImageType", + "PublicIpType", + ), + ".group_0066": ("ActionsHostedRunnerImageType",), + ".group_0067": ( + "ActionsHostedRunnerLimitsType", + "ActionsHostedRunnerLimitsPropPublicIpsType", + ), + ".group_0068": ("OidcCustomSubType",), + ".group_0069": ("ActionsOrganizationPermissionsType",), + ".group_0070": ("SelectedActionsType",), + ".group_0071": ("ActionsGetDefaultWorkflowPermissionsType",), + ".group_0072": ("ActionsSetDefaultWorkflowPermissionsType",), + ".group_0073": ("RunnerLabelType",), + ".group_0074": ("RunnerType",), + ".group_0075": ("RunnerApplicationType",), + ".group_0076": ( "AuthenticationTokenType", "AuthenticationTokenPropPermissionsType", ), - ".group_0072": ("ActionsPublicKeyType",), - ".group_0073": ("CodeScanningAlertRuleSummaryType",), - ".group_0074": ("CodeScanningAnalysisToolType",), - ".group_0075": ( + ".group_0077": ("ActionsPublicKeyType",), + ".group_0078": ("CodeScanningAlertRuleSummaryType",), + ".group_0079": ("CodeScanningAnalysisToolType",), + ".group_0080": ( "CodeScanningAlertInstanceType", "CodeScanningAlertLocationType", "CodeScanningAlertInstancePropMessageType", ), - ".group_0076": ("CodeScanningOrganizationAlertItemsType",), - ".group_0077": ("CodespaceMachineType",), - ".group_0078": ( + ".group_0081": ("CodeScanningOrganizationAlertItemsType",), + ".group_0082": ("CodespaceMachineType",), + ".group_0083": ( "CodespaceType", "CodespacePropGitStatusType", "CodespacePropRuntimeConstraintsType", ), - ".group_0079": ("CodespacesPublicKeyType",), - ".group_0080": ( + ".group_0084": ("CodespacesPublicKeyType",), + ".group_0085": ( "CopilotOrganizationDetailsType", "CopilotSeatBreakdownType", ), - ".group_0081": ("TeamSimpleType",), - ".group_0082": ( + ".group_0086": ("TeamSimpleType",), + ".group_0087": ( "TeamType", "TeamPropPermissionsType", ), - ".group_0083": ( + ".group_0088": ( "CopilotSeatDetailsType", "EnterpriseTeamType", "OrgsOrgCopilotBillingSeatsGetResponse200Type", ), - ".group_0084": ( + ".group_0089": ( "CopilotUsageMetricsDayType", "CopilotDotcomChatType", "CopilotDotcomChatPropModelsItemsType", @@ -9177,90 +9241,90 @@ "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", ), - ".group_0085": ( + ".group_0090": ( "CopilotUsageMetricsType", "CopilotUsageMetricsPropBreakdownItemsType", ), - ".group_0086": ("DependabotPublicKeyType",), - ".group_0087": ("PackageType",), - ".group_0088": ("OrganizationInvitationType",), - ".group_0089": ( + ".group_0091": ("DependabotPublicKeyType",), + ".group_0092": ("PackageType",), + ".group_0093": ("OrganizationInvitationType",), + ".group_0094": ( "OrgHookType", "OrgHookPropConfigType", ), - ".group_0090": ("ApiInsightsRouteStatsItemsType",), - ".group_0091": ("ApiInsightsSubjectStatsItemsType",), - ".group_0092": ("ApiInsightsSummaryStatsType",), - ".group_0093": ("ApiInsightsTimeStatsItemsType",), - ".group_0094": ("ApiInsightsUserStatsItemsType",), - ".group_0095": ("InteractionLimitResponseType",), - ".group_0096": ("InteractionLimitType",), - ".group_0097": ( + ".group_0095": ("ApiInsightsRouteStatsItemsType",), + ".group_0096": ("ApiInsightsSubjectStatsItemsType",), + ".group_0097": ("ApiInsightsSummaryStatsType",), + ".group_0098": ("ApiInsightsTimeStatsItemsType",), + ".group_0099": ("ApiInsightsUserStatsItemsType",), + ".group_0100": ("InteractionLimitResponseType",), + ".group_0101": ("InteractionLimitType",), + ".group_0102": ( "OrgMembershipType", "OrgMembershipPropPermissionsType", ), - ".group_0098": ("MigrationType",), - ".group_0099": ( + ".group_0103": ("MigrationType",), + ".group_0104": ( "OrganizationRoleType", "OrgsOrgOrganizationRolesGetResponse200Type", ), - ".group_0100": ( + ".group_0105": ( "TeamRoleAssignmentType", "TeamRoleAssignmentPropPermissionsType", ), - ".group_0101": ("UserRoleAssignmentType",), - ".group_0102": ( + ".group_0106": ("UserRoleAssignmentType",), + ".group_0107": ( "PackageVersionType", "PackageVersionPropMetadataType", "PackageVersionPropMetadataPropContainerType", "PackageVersionPropMetadataPropDockerType", ), - ".group_0103": ( + ".group_0108": ( "OrganizationProgrammaticAccessGrantRequestType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", ), - ".group_0104": ( + ".group_0109": ( "OrganizationProgrammaticAccessGrantType", "OrganizationProgrammaticAccessGrantPropPermissionsType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", ), - ".group_0105": ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",), - ".group_0106": ("ProjectType",), - ".group_0107": ("CustomPropertyType",), - ".group_0108": ("CustomPropertySetPayloadType",), - ".group_0109": ("CustomPropertyValueType",), - ".group_0110": ("OrgRepoCustomPropertyValuesType",), - ".group_0111": ("CodeOfConductSimpleType",), - ".group_0112": ( + ".group_0110": ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",), + ".group_0111": ("ProjectType",), + ".group_0112": ("CustomPropertyType",), + ".group_0113": ("CustomPropertySetPayloadType",), + ".group_0114": ("CustomPropertyValueType",), + ".group_0115": ("OrgRepoCustomPropertyValuesType",), + ".group_0116": ("CodeOfConductSimpleType",), + ".group_0117": ( "FullRepositoryType", "FullRepositoryPropPermissionsType", "FullRepositoryPropCustomPropertiesType", ), - ".group_0113": ("RepositoryRulesetBypassActorType",), - ".group_0114": ("RepositoryRulesetConditionsType",), - ".group_0115": ("RepositoryRulesetConditionsPropRefNameType",), - ".group_0116": ("RepositoryRulesetConditionsRepositoryNameTargetType",), - ".group_0117": ( + ".group_0118": ("RepositoryRulesetBypassActorType",), + ".group_0119": ("RepositoryRulesetConditionsType",), + ".group_0120": ("RepositoryRulesetConditionsPropRefNameType",), + ".group_0121": ("RepositoryRulesetConditionsRepositoryNameTargetType",), + ".group_0122": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType", ), - ".group_0118": ("RepositoryRulesetConditionsRepositoryIdTargetType",), - ".group_0119": ( + ".group_0123": ("RepositoryRulesetConditionsRepositoryIdTargetType",), + ".group_0124": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType", ), - ".group_0120": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), - ".group_0121": ( + ".group_0125": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), + ".group_0126": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", "RepositoryRulesetConditionsRepositoryPropertySpecType", ), - ".group_0122": ("OrgRulesetConditionsOneof0Type",), - ".group_0123": ("OrgRulesetConditionsOneof1Type",), - ".group_0124": ("OrgRulesetConditionsOneof2Type",), - ".group_0125": ( + ".group_0127": ("OrgRulesetConditionsOneof0Type",), + ".group_0128": ("OrgRulesetConditionsOneof1Type",), + ".group_0129": ("OrgRulesetConditionsOneof2Type",), + ".group_0130": ( "RepositoryRuleCreationType", "RepositoryRuleDeletionType", "RepositoryRuleRequiredSignaturesType", @@ -9270,64 +9334,64 @@ "RepositoryRuleOneof17Type", "RepositoryRuleOneof17PropParametersType", ), - ".group_0126": ("RepositoryRuleUpdateType",), - ".group_0127": ("RepositoryRuleUpdatePropParametersType",), - ".group_0128": ( + ".group_0131": ("RepositoryRuleUpdateType",), + ".group_0132": ("RepositoryRuleUpdatePropParametersType",), + ".group_0133": ( "RepositoryRuleRequiredLinearHistoryType", "RepositoryRuleOneof16Type", "RepositoryRuleOneof16PropParametersType", ), - ".group_0129": ("RepositoryRuleMergeQueueType",), - ".group_0130": ("RepositoryRuleMergeQueuePropParametersType",), - ".group_0131": ("RepositoryRuleRequiredDeploymentsType",), - ".group_0132": ("RepositoryRuleRequiredDeploymentsPropParametersType",), - ".group_0133": ("RepositoryRuleParamsRequiredReviewerConfigurationType",), - ".group_0134": ("RepositoryRulePullRequestType",), - ".group_0135": ("RepositoryRulePullRequestPropParametersType",), - ".group_0136": ("RepositoryRuleRequiredStatusChecksType",), - ".group_0137": ( + ".group_0134": ("RepositoryRuleMergeQueueType",), + ".group_0135": ("RepositoryRuleMergeQueuePropParametersType",), + ".group_0136": ("RepositoryRuleRequiredDeploymentsType",), + ".group_0137": ("RepositoryRuleRequiredDeploymentsPropParametersType",), + ".group_0138": ("RepositoryRuleParamsRequiredReviewerConfigurationType",), + ".group_0139": ("RepositoryRulePullRequestType",), + ".group_0140": ("RepositoryRulePullRequestPropParametersType",), + ".group_0141": ("RepositoryRuleRequiredStatusChecksType",), + ".group_0142": ( "RepositoryRuleRequiredStatusChecksPropParametersType", "RepositoryRuleParamsStatusCheckConfigurationType", ), - ".group_0138": ("RepositoryRuleCommitMessagePatternType",), - ".group_0139": ("RepositoryRuleCommitMessagePatternPropParametersType",), - ".group_0140": ("RepositoryRuleCommitAuthorEmailPatternType",), - ".group_0141": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), - ".group_0142": ("RepositoryRuleCommitterEmailPatternType",), - ".group_0143": ("RepositoryRuleCommitterEmailPatternPropParametersType",), - ".group_0144": ("RepositoryRuleBranchNamePatternType",), - ".group_0145": ("RepositoryRuleBranchNamePatternPropParametersType",), - ".group_0146": ("RepositoryRuleTagNamePatternType",), - ".group_0147": ("RepositoryRuleTagNamePatternPropParametersType",), - ".group_0148": ("RepositoryRuleParamsRestrictedCommitsType",), - ".group_0149": ("RepositoryRuleWorkflowsType",), - ".group_0150": ( + ".group_0143": ("RepositoryRuleCommitMessagePatternType",), + ".group_0144": ("RepositoryRuleCommitMessagePatternPropParametersType",), + ".group_0145": ("RepositoryRuleCommitAuthorEmailPatternType",), + ".group_0146": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), + ".group_0147": ("RepositoryRuleCommitterEmailPatternType",), + ".group_0148": ("RepositoryRuleCommitterEmailPatternPropParametersType",), + ".group_0149": ("RepositoryRuleBranchNamePatternType",), + ".group_0150": ("RepositoryRuleBranchNamePatternPropParametersType",), + ".group_0151": ("RepositoryRuleTagNamePatternType",), + ".group_0152": ("RepositoryRuleTagNamePatternPropParametersType",), + ".group_0153": ("RepositoryRuleParamsRestrictedCommitsType",), + ".group_0154": ("RepositoryRuleWorkflowsType",), + ".group_0155": ( "RepositoryRuleWorkflowsPropParametersType", "RepositoryRuleParamsWorkflowFileReferenceType", ), - ".group_0151": ("RepositoryRuleCodeScanningType",), - ".group_0152": ( + ".group_0156": ("RepositoryRuleCodeScanningType",), + ".group_0157": ( "RepositoryRuleCodeScanningPropParametersType", "RepositoryRuleParamsCodeScanningToolType", ), - ".group_0153": ( + ".group_0158": ( "RepositoryRuleOneof18Type", "RepositoryRuleOneof18PropParametersType", ), - ".group_0154": ( + ".group_0159": ( "RepositoryRulesetType", "RepositoryRulesetPropLinksType", "RepositoryRulesetPropLinksPropSelfType", "RepositoryRulesetPropLinksPropHtmlType", ), - ".group_0155": ("RuleSuitesItemsType",), - ".group_0156": ( + ".group_0160": ("RuleSuitesItemsType",), + ".group_0161": ( "RuleSuiteType", "RuleSuitePropRuleEvaluationsItemsType", "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", ), - ".group_0157": ("RepositoryAdvisoryCreditType",), - ".group_0158": ( + ".group_0162": ("RepositoryAdvisoryCreditType",), + ".group_0163": ( "RepositoryAdvisoryType", "RepositoryAdvisoryPropIdentifiersItemsType", "RepositoryAdvisoryPropSubmissionType", @@ -9337,84 +9401,85 @@ "RepositoryAdvisoryVulnerabilityType", "RepositoryAdvisoryVulnerabilityPropPackageType", ), - ".group_0159": ( + ".group_0164": ( "ActionsBillingUsageType", "ActionsBillingUsagePropMinutesUsedBreakdownType", ), - ".group_0160": ("PackagesBillingUsageType",), - ".group_0161": ("CombinedBillingUsageType",), - ".group_0162": ( + ".group_0165": ("PackagesBillingUsageType",), + ".group_0166": ("CombinedBillingUsageType",), + ".group_0167": ("NetworkSettingsType",), + ".group_0168": ( "TeamFullType", "TeamOrganizationType", "TeamOrganizationPropPlanType", ), - ".group_0163": ("TeamDiscussionType",), - ".group_0164": ("TeamDiscussionCommentType",), - ".group_0165": ("ReactionType",), - ".group_0166": ("TeamMembershipType",), - ".group_0167": ( + ".group_0169": ("TeamDiscussionType",), + ".group_0170": ("TeamDiscussionCommentType",), + ".group_0171": ("ReactionType",), + ".group_0172": ("TeamMembershipType",), + ".group_0173": ( "TeamProjectType", "TeamProjectPropPermissionsType", ), - ".group_0168": ( + ".group_0174": ( "TeamRepositoryType", "TeamRepositoryPropPermissionsType", ), - ".group_0169": ("ProjectCardType",), - ".group_0170": ("ProjectColumnType",), - ".group_0171": ("ProjectCollaboratorPermissionType",), - ".group_0172": ("RateLimitType",), - ".group_0173": ("RateLimitOverviewType",), - ".group_0174": ("RateLimitOverviewPropResourcesType",), - ".group_0175": ( + ".group_0175": ("ProjectCardType",), + ".group_0176": ("ProjectColumnType",), + ".group_0177": ("ProjectCollaboratorPermissionType",), + ".group_0178": ("RateLimitType",), + ".group_0179": ("RateLimitOverviewType",), + ".group_0180": ("RateLimitOverviewPropResourcesType",), + ".group_0181": ( "ArtifactType", "ArtifactPropWorkflowRunType", ), - ".group_0176": ( + ".group_0182": ( "ActionsCacheListType", "ActionsCacheListPropActionsCachesItemsType", ), - ".group_0177": ( + ".group_0183": ( "JobType", "JobPropStepsItemsType", ), - ".group_0178": ("OidcCustomSubRepoType",), - ".group_0179": ("ActionsSecretType",), - ".group_0180": ("ActionsVariableType",), - ".group_0181": ("ActionsRepositoryPermissionsType",), - ".group_0182": ("ActionsWorkflowAccessToRepositoryType",), - ".group_0183": ( + ".group_0184": ("OidcCustomSubRepoType",), + ".group_0185": ("ActionsSecretType",), + ".group_0186": ("ActionsVariableType",), + ".group_0187": ("ActionsRepositoryPermissionsType",), + ".group_0188": ("ActionsWorkflowAccessToRepositoryType",), + ".group_0189": ( "PullRequestMinimalType", "PullRequestMinimalPropHeadType", "PullRequestMinimalPropHeadPropRepoType", "PullRequestMinimalPropBaseType", "PullRequestMinimalPropBasePropRepoType", ), - ".group_0184": ( + ".group_0190": ( "SimpleCommitType", "SimpleCommitPropAuthorType", "SimpleCommitPropCommitterType", ), - ".group_0185": ( + ".group_0191": ( "WorkflowRunType", "ReferencedWorkflowType", ), - ".group_0186": ( + ".group_0192": ( "EnvironmentApprovalsType", "EnvironmentApprovalsPropEnvironmentsItemsType", ), - ".group_0187": ("ReviewCustomGatesCommentRequiredType",), - ".group_0188": ("ReviewCustomGatesStateRequiredType",), - ".group_0189": ( + ".group_0193": ("ReviewCustomGatesCommentRequiredType",), + ".group_0194": ("ReviewCustomGatesStateRequiredType",), + ".group_0195": ( "PendingDeploymentPropReviewersItemsType", "PendingDeploymentType", "PendingDeploymentPropEnvironmentType", ), - ".group_0190": ( + ".group_0196": ( "DeploymentType", "DeploymentPropPayloadOneof0Type", ), - ".group_0191": ( + ".group_0197": ( "WorkflowRunUsageType", "WorkflowRunUsagePropBillableType", "WorkflowRunUsagePropBillablePropUbuntuType", @@ -9424,22 +9489,22 @@ "WorkflowRunUsagePropBillablePropWindowsType", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", ), - ".group_0192": ( + ".group_0198": ( "WorkflowUsageType", "WorkflowUsagePropBillableType", "WorkflowUsagePropBillablePropUbuntuType", "WorkflowUsagePropBillablePropMacosType", "WorkflowUsagePropBillablePropWindowsType", ), - ".group_0193": ("ActivityType",), - ".group_0194": ("AutolinkType",), - ".group_0195": ("CheckAutomatedSecurityFixesType",), - ".group_0196": ("ProtectedBranchPullRequestReviewType",), - ".group_0197": ( + ".group_0199": ("ActivityType",), + ".group_0200": ("AutolinkType",), + ".group_0201": ("CheckAutomatedSecurityFixesType",), + ".group_0202": ("ProtectedBranchPullRequestReviewType",), + ".group_0203": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", ), - ".group_0198": ( + ".group_0204": ( "BranchRestrictionPolicyType", "BranchRestrictionPolicyPropUsersItemsType", "BranchRestrictionPolicyPropTeamsItemsType", @@ -9447,7 +9512,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwnerType", "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", ), - ".group_0199": ( + ".group_0205": ( "BranchProtectionType", "ProtectedBranchAdminEnforcedType", "BranchProtectionPropRequiredLinearHistoryType", @@ -9461,28 +9526,28 @@ "ProtectedBranchRequiredStatusCheckType", "ProtectedBranchRequiredStatusCheckPropChecksItemsType", ), - ".group_0200": ( + ".group_0206": ( "ShortBranchType", "ShortBranchPropCommitType", ), - ".group_0201": ("GitUserType",), - ".group_0202": ("VerificationType",), - ".group_0203": ("DiffEntryType",), - ".group_0204": ( + ".group_0207": ("GitUserType",), + ".group_0208": ("VerificationType",), + ".group_0209": ("DiffEntryType",), + ".group_0210": ( "CommitType", "EmptyObjectType", "CommitPropParentsItemsType", "CommitPropStatsType", ), - ".group_0205": ( + ".group_0211": ( "CommitPropCommitType", "CommitPropCommitPropTreeType", ), - ".group_0206": ( + ".group_0212": ( "BranchWithProtectionType", "BranchWithProtectionPropLinksType", ), - ".group_0207": ( + ".group_0213": ( "ProtectedBranchType", "ProtectedBranchPropRequiredSignaturesType", "ProtectedBranchPropEnforceAdminsType", @@ -9496,117 +9561,117 @@ "StatusCheckPolicyType", "StatusCheckPolicyPropChecksItemsType", ), - ".group_0208": ("ProtectedBranchPropRequiredPullRequestReviewsType",), - ".group_0209": ( + ".group_0214": ("ProtectedBranchPropRequiredPullRequestReviewsType",), + ".group_0215": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", ), - ".group_0210": ("DeploymentSimpleType",), - ".group_0211": ( + ".group_0216": ("DeploymentSimpleType",), + ".group_0217": ( "CheckRunType", "CheckRunPropOutputType", "CheckRunPropCheckSuiteType", ), - ".group_0212": ("CheckAnnotationType",), - ".group_0213": ( + ".group_0218": ("CheckAnnotationType",), + ".group_0219": ( "CheckSuiteType", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", ), - ".group_0214": ( + ".group_0220": ( "CheckSuitePreferenceType", "CheckSuitePreferencePropPreferencesType", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", ), - ".group_0215": ("CodeScanningAlertItemsType",), - ".group_0216": ( + ".group_0221": ("CodeScanningAlertItemsType",), + ".group_0222": ( "CodeScanningAlertType", "CodeScanningAlertRuleType", ), - ".group_0217": ("CodeScanningAutofixType",), - ".group_0218": ("CodeScanningAutofixCommitsType",), - ".group_0219": ("CodeScanningAutofixCommitsResponseType",), - ".group_0220": ("CodeScanningAnalysisType",), - ".group_0221": ("CodeScanningAnalysisDeletionType",), - ".group_0222": ("CodeScanningCodeqlDatabaseType",), - ".group_0223": ("CodeScanningVariantAnalysisRepositoryType",), - ".group_0224": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), - ".group_0225": ("CodeScanningVariantAnalysisType",), - ".group_0226": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), - ".group_0227": ( + ".group_0223": ("CodeScanningAutofixType",), + ".group_0224": ("CodeScanningAutofixCommitsType",), + ".group_0225": ("CodeScanningAutofixCommitsResponseType",), + ".group_0226": ("CodeScanningAnalysisType",), + ".group_0227": ("CodeScanningAnalysisDeletionType",), + ".group_0228": ("CodeScanningCodeqlDatabaseType",), + ".group_0229": ("CodeScanningVariantAnalysisRepositoryType",), + ".group_0230": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), + ".group_0231": ("CodeScanningVariantAnalysisType",), + ".group_0232": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), + ".group_0233": ( "CodeScanningVariantAnalysisPropSkippedRepositoriesType", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", ), - ".group_0228": ("CodeScanningVariantAnalysisRepoTaskType",), - ".group_0229": ("CodeScanningDefaultSetupType",), - ".group_0230": ("CodeScanningDefaultSetupUpdateType",), - ".group_0231": ("CodeScanningDefaultSetupUpdateResponseType",), - ".group_0232": ("CodeScanningSarifsReceiptType",), - ".group_0233": ("CodeScanningSarifsStatusType",), - ".group_0234": ("CodeSecurityConfigurationForRepositoryType",), - ".group_0235": ( + ".group_0234": ("CodeScanningVariantAnalysisRepoTaskType",), + ".group_0235": ("CodeScanningDefaultSetupType",), + ".group_0236": ("CodeScanningDefaultSetupUpdateType",), + ".group_0237": ("CodeScanningDefaultSetupUpdateResponseType",), + ".group_0238": ("CodeScanningSarifsReceiptType",), + ".group_0239": ("CodeScanningSarifsStatusType",), + ".group_0240": ("CodeSecurityConfigurationForRepositoryType",), + ".group_0241": ( "CodeownersErrorsType", "CodeownersErrorsPropErrorsItemsType", ), - ".group_0236": ("CodespacesPermissionsCheckForDevcontainerType",), - ".group_0237": ("RepositoryInvitationType",), - ".group_0238": ( + ".group_0242": ("CodespacesPermissionsCheckForDevcontainerType",), + ".group_0243": ("RepositoryInvitationType",), + ".group_0244": ( "RepositoryCollaboratorPermissionType", "CollaboratorType", "CollaboratorPropPermissionsType", ), - ".group_0239": ( + ".group_0245": ( "CommitCommentType", "TimelineCommitCommentedEventType", ), - ".group_0240": ( + ".group_0246": ( "BranchShortType", "BranchShortPropCommitType", ), - ".group_0241": ("LinkType",), - ".group_0242": ("AutoMergeType",), - ".group_0243": ( + ".group_0247": ("LinkType",), + ".group_0248": ("AutoMergeType",), + ".group_0249": ( "PullRequestSimpleType", "PullRequestSimplePropLabelsItemsType", ), - ".group_0244": ( + ".group_0250": ( "PullRequestSimplePropHeadType", "PullRequestSimplePropBaseType", ), - ".group_0245": ("PullRequestSimplePropLinksType",), - ".group_0246": ( + ".group_0251": ("PullRequestSimplePropLinksType",), + ".group_0252": ( "CombinedCommitStatusType", "SimpleCommitStatusType", ), - ".group_0247": ("StatusType",), - ".group_0248": ( + ".group_0253": ("StatusType",), + ".group_0254": ( "CommunityProfilePropFilesType", "CommunityHealthFileType", "CommunityProfileType", ), - ".group_0249": ("CommitComparisonType",), - ".group_0250": ( + ".group_0255": ("CommitComparisonType",), + ".group_0256": ( "ContentTreeType", "ContentTreePropLinksType", "ContentTreePropEntriesItemsType", "ContentTreePropEntriesItemsPropLinksType", ), - ".group_0251": ( + ".group_0257": ( "ContentDirectoryItemsType", "ContentDirectoryItemsPropLinksType", ), - ".group_0252": ( + ".group_0258": ( "ContentFileType", "ContentFilePropLinksType", ), - ".group_0253": ( + ".group_0259": ( "ContentSymlinkType", "ContentSymlinkPropLinksType", ), - ".group_0254": ( + ".group_0260": ( "ContentSubmoduleType", "ContentSubmodulePropLinksType", ), - ".group_0255": ( + ".group_0261": ( "FileCommitType", "FileCommitPropContentType", "FileCommitPropContentPropLinksType", @@ -9617,20 +9682,20 @@ "FileCommitPropCommitPropParentsItemsType", "FileCommitPropCommitPropVerificationType", ), - ".group_0256": ( + ".group_0262": ( "RepositoryRuleViolationErrorType", "RepositoryRuleViolationErrorPropMetadataType", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", ), - ".group_0257": ("ContributorType",), - ".group_0258": ("DependabotAlertType",), - ".group_0259": ("DependabotAlertPropDependencyType",), - ".group_0260": ( + ".group_0263": ("ContributorType",), + ".group_0264": ("DependabotAlertType",), + ".group_0265": ("DependabotAlertPropDependencyType",), + ".group_0266": ( "DependencyGraphDiffItemsType", "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", ), - ".group_0261": ( + ".group_0267": ( "DependencyGraphSpdxSbomType", "DependencyGraphSpdxSbomPropSbomType", "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", @@ -9638,41 +9703,41 @@ "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", ), - ".group_0262": ("MetadataType",), - ".group_0263": ("DependencyType",), - ".group_0264": ( + ".group_0268": ("MetadataType",), + ".group_0269": ("DependencyType",), + ".group_0270": ( "ManifestType", "ManifestPropFileType", "ManifestPropResolvedType", ), - ".group_0265": ( + ".group_0271": ( "SnapshotType", "SnapshotPropJobType", "SnapshotPropDetectorType", "SnapshotPropManifestsType", ), - ".group_0266": ("DeploymentStatusType",), - ".group_0267": ("DeploymentBranchPolicySettingsType",), - ".group_0268": ( + ".group_0272": ("DeploymentStatusType",), + ".group_0273": ("DeploymentBranchPolicySettingsType",), + ".group_0274": ( "EnvironmentType", "EnvironmentPropProtectionRulesItemsAnyof0Type", "EnvironmentPropProtectionRulesItemsAnyof2Type", "ReposOwnerRepoEnvironmentsGetResponse200Type", ), - ".group_0269": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), - ".group_0270": ( + ".group_0275": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), + ".group_0276": ( "EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType", ), - ".group_0271": ("DeploymentBranchPolicyNamePatternWithTypeType",), - ".group_0272": ("DeploymentBranchPolicyNamePatternType",), - ".group_0273": ("CustomDeploymentRuleAppType",), - ".group_0274": ( + ".group_0277": ("DeploymentBranchPolicyNamePatternWithTypeType",), + ".group_0278": ("DeploymentBranchPolicyNamePatternType",), + ".group_0279": ("CustomDeploymentRuleAppType",), + ".group_0280": ( "DeploymentProtectionRuleType", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ), - ".group_0275": ("ShortBlobType",), - ".group_0276": ("BlobType",), - ".group_0277": ( + ".group_0281": ("ShortBlobType",), + ".group_0282": ("BlobType",), + ".group_0283": ( "GitCommitType", "GitCommitPropAuthorType", "GitCommitPropCommitterType", @@ -9680,28 +9745,28 @@ "GitCommitPropParentsItemsType", "GitCommitPropVerificationType", ), - ".group_0278": ( + ".group_0284": ( "GitRefType", "GitRefPropObjectType", ), - ".group_0279": ( + ".group_0285": ( "GitTagType", "GitTagPropTaggerType", "GitTagPropObjectType", ), - ".group_0280": ( + ".group_0286": ( "GitTreeType", "GitTreePropTreeItemsType", ), - ".group_0281": ("HookResponseType",), - ".group_0282": ("HookType",), - ".group_0283": ( + ".group_0287": ("HookResponseType",), + ".group_0288": ("HookType",), + ".group_0289": ( "ImportType", "ImportPropProjectChoicesItemsType", ), - ".group_0284": ("PorterAuthorType",), - ".group_0285": ("PorterLargeFileType",), - ".group_0286": ( + ".group_0290": ("PorterAuthorType",), + ".group_0291": ("PorterLargeFileType",), + ".group_0292": ( "IssueEventType", "IssueEventLabelType", "IssueEventDismissedReviewType", @@ -9709,55 +9774,55 @@ "IssueEventProjectCardType", "IssueEventRenameType", ), - ".group_0287": ( + ".group_0293": ( "LabeledIssueEventType", "LabeledIssueEventPropLabelType", ), - ".group_0288": ( + ".group_0294": ( "UnlabeledIssueEventType", "UnlabeledIssueEventPropLabelType", ), - ".group_0289": ("AssignedIssueEventType",), - ".group_0290": ("UnassignedIssueEventType",), - ".group_0291": ( + ".group_0295": ("AssignedIssueEventType",), + ".group_0296": ("UnassignedIssueEventType",), + ".group_0297": ( "MilestonedIssueEventType", "MilestonedIssueEventPropMilestoneType", ), - ".group_0292": ( + ".group_0298": ( "DemilestonedIssueEventType", "DemilestonedIssueEventPropMilestoneType", ), - ".group_0293": ( + ".group_0299": ( "RenamedIssueEventType", "RenamedIssueEventPropRenameType", ), - ".group_0294": ("ReviewRequestedIssueEventType",), - ".group_0295": ("ReviewRequestRemovedIssueEventType",), - ".group_0296": ( + ".group_0300": ("ReviewRequestedIssueEventType",), + ".group_0301": ("ReviewRequestRemovedIssueEventType",), + ".group_0302": ( "ReviewDismissedIssueEventType", "ReviewDismissedIssueEventPropDismissedReviewType", ), - ".group_0297": ("LockedIssueEventType",), - ".group_0298": ( + ".group_0303": ("LockedIssueEventType",), + ".group_0304": ( "AddedToProjectIssueEventType", "AddedToProjectIssueEventPropProjectCardType", ), - ".group_0299": ( + ".group_0305": ( "MovedColumnInProjectIssueEventType", "MovedColumnInProjectIssueEventPropProjectCardType", ), - ".group_0300": ( + ".group_0306": ( "RemovedFromProjectIssueEventType", "RemovedFromProjectIssueEventPropProjectCardType", ), - ".group_0301": ( + ".group_0307": ( "ConvertedNoteToIssueIssueEventType", "ConvertedNoteToIssueIssueEventPropProjectCardType", ), - ".group_0302": ("TimelineCommentEventType",), - ".group_0303": ("TimelineCrossReferencedEventType",), - ".group_0304": ("TimelineCrossReferencedEventPropSourceType",), - ".group_0305": ( + ".group_0308": ("TimelineCommentEventType",), + ".group_0309": ("TimelineCrossReferencedEventType",), + ".group_0310": ("TimelineCrossReferencedEventPropSourceType",), + ".group_0311": ( "TimelineCommittedEventType", "TimelineCommittedEventPropAuthorType", "TimelineCommittedEventPropCommitterType", @@ -9765,13 +9830,13 @@ "TimelineCommittedEventPropParentsItemsType", "TimelineCommittedEventPropVerificationType", ), - ".group_0306": ( + ".group_0312": ( "TimelineReviewedEventType", "TimelineReviewedEventPropLinksType", "TimelineReviewedEventPropLinksPropHtmlType", "TimelineReviewedEventPropLinksPropPullRequestType", ), - ".group_0307": ( + ".group_0313": ( "PullRequestReviewCommentType", "PullRequestReviewCommentPropLinksType", "PullRequestReviewCommentPropLinksPropSelfType", @@ -9779,152 +9844,152 @@ "PullRequestReviewCommentPropLinksPropPullRequestType", "TimelineLineCommentedEventType", ), - ".group_0308": ("TimelineAssignedIssueEventType",), - ".group_0309": ("TimelineUnassignedIssueEventType",), - ".group_0310": ("StateChangeIssueEventType",), - ".group_0311": ("DeployKeyType",), - ".group_0312": ("LanguageType",), - ".group_0313": ( + ".group_0314": ("TimelineAssignedIssueEventType",), + ".group_0315": ("TimelineUnassignedIssueEventType",), + ".group_0316": ("StateChangeIssueEventType",), + ".group_0317": ("DeployKeyType",), + ".group_0318": ("LanguageType",), + ".group_0319": ( "LicenseContentType", "LicenseContentPropLinksType", ), - ".group_0314": ("MergedUpstreamType",), - ".group_0315": ( + ".group_0320": ("MergedUpstreamType",), + ".group_0321": ( "PageType", "PagesSourceHashType", "PagesHttpsCertificateType", ), - ".group_0316": ( + ".group_0322": ( "PageBuildType", "PageBuildPropErrorType", ), - ".group_0317": ("PageBuildStatusType",), - ".group_0318": ("PageDeploymentType",), - ".group_0319": ("PagesDeploymentStatusType",), - ".group_0320": ( + ".group_0323": ("PageBuildStatusType",), + ".group_0324": ("PageDeploymentType",), + ".group_0325": ("PagesDeploymentStatusType",), + ".group_0326": ( "PagesHealthCheckType", "PagesHealthCheckPropDomainType", "PagesHealthCheckPropAltDomainType", ), - ".group_0321": ("PullRequestType",), - ".group_0322": ("PullRequestPropLabelsItemsType",), - ".group_0323": ( + ".group_0327": ("PullRequestType",), + ".group_0328": ("PullRequestPropLabelsItemsType",), + ".group_0329": ( "PullRequestPropHeadType", "PullRequestPropBaseType", ), - ".group_0324": ("PullRequestPropLinksType",), - ".group_0325": ("PullRequestMergeResultType",), - ".group_0326": ("PullRequestReviewRequestType",), - ".group_0327": ( + ".group_0330": ("PullRequestPropLinksType",), + ".group_0331": ("PullRequestMergeResultType",), + ".group_0332": ("PullRequestReviewRequestType",), + ".group_0333": ( "PullRequestReviewType", "PullRequestReviewPropLinksType", "PullRequestReviewPropLinksPropHtmlType", "PullRequestReviewPropLinksPropPullRequestType", ), - ".group_0328": ("ReviewCommentType",), - ".group_0329": ("ReviewCommentPropLinksType",), - ".group_0330": ("ReleaseAssetType",), - ".group_0331": ("ReleaseType",), - ".group_0332": ("ReleaseNotesContentType",), - ".group_0333": ("RepositoryRuleRulesetInfoType",), - ".group_0334": ("RepositoryRuleDetailedOneof0Type",), - ".group_0335": ("RepositoryRuleDetailedOneof1Type",), - ".group_0336": ("RepositoryRuleDetailedOneof2Type",), - ".group_0337": ("RepositoryRuleDetailedOneof3Type",), - ".group_0338": ("RepositoryRuleDetailedOneof4Type",), - ".group_0339": ("RepositoryRuleDetailedOneof5Type",), - ".group_0340": ("RepositoryRuleDetailedOneof6Type",), - ".group_0341": ("RepositoryRuleDetailedOneof7Type",), - ".group_0342": ("RepositoryRuleDetailedOneof8Type",), - ".group_0343": ("RepositoryRuleDetailedOneof9Type",), - ".group_0344": ("RepositoryRuleDetailedOneof10Type",), - ".group_0345": ("RepositoryRuleDetailedOneof11Type",), - ".group_0346": ("RepositoryRuleDetailedOneof12Type",), - ".group_0347": ("RepositoryRuleDetailedOneof13Type",), - ".group_0348": ("RepositoryRuleDetailedOneof14Type",), - ".group_0349": ("RepositoryRuleDetailedOneof15Type",), - ".group_0350": ("RepositoryRuleDetailedOneof16Type",), - ".group_0351": ("SecretScanningAlertType",), - ".group_0352": ("SecretScanningPushProtectionBypassType",), - ".group_0353": ( + ".group_0334": ("ReviewCommentType",), + ".group_0335": ("ReviewCommentPropLinksType",), + ".group_0336": ("ReleaseAssetType",), + ".group_0337": ("ReleaseType",), + ".group_0338": ("ReleaseNotesContentType",), + ".group_0339": ("RepositoryRuleRulesetInfoType",), + ".group_0340": ("RepositoryRuleDetailedOneof0Type",), + ".group_0341": ("RepositoryRuleDetailedOneof1Type",), + ".group_0342": ("RepositoryRuleDetailedOneof2Type",), + ".group_0343": ("RepositoryRuleDetailedOneof3Type",), + ".group_0344": ("RepositoryRuleDetailedOneof4Type",), + ".group_0345": ("RepositoryRuleDetailedOneof5Type",), + ".group_0346": ("RepositoryRuleDetailedOneof6Type",), + ".group_0347": ("RepositoryRuleDetailedOneof7Type",), + ".group_0348": ("RepositoryRuleDetailedOneof8Type",), + ".group_0349": ("RepositoryRuleDetailedOneof9Type",), + ".group_0350": ("RepositoryRuleDetailedOneof10Type",), + ".group_0351": ("RepositoryRuleDetailedOneof11Type",), + ".group_0352": ("RepositoryRuleDetailedOneof12Type",), + ".group_0353": ("RepositoryRuleDetailedOneof13Type",), + ".group_0354": ("RepositoryRuleDetailedOneof14Type",), + ".group_0355": ("RepositoryRuleDetailedOneof15Type",), + ".group_0356": ("RepositoryRuleDetailedOneof16Type",), + ".group_0357": ("SecretScanningAlertType",), + ".group_0358": ("SecretScanningPushProtectionBypassType",), + ".group_0359": ( "SecretScanningScanHistoryType", "SecretScanningScanType", "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", ), - ".group_0354": ( + ".group_0360": ( "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type", ), - ".group_0355": ( + ".group_0361": ( "RepositoryAdvisoryCreateType", "RepositoryAdvisoryCreatePropCreditsItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0356": ( + ".group_0362": ( "PrivateVulnerabilityReportCreateType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0357": ( + ".group_0363": ( "RepositoryAdvisoryUpdateType", "RepositoryAdvisoryUpdatePropCreditsItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0358": ("StargazerType",), - ".group_0359": ("CommitActivityType",), - ".group_0360": ( + ".group_0364": ("StargazerType",), + ".group_0365": ("CommitActivityType",), + ".group_0366": ( "ContributorActivityType", "ContributorActivityPropWeeksItemsType", ), - ".group_0361": ("ParticipationStatsType",), - ".group_0362": ("RepositorySubscriptionType",), - ".group_0363": ( + ".group_0367": ("ParticipationStatsType",), + ".group_0368": ("RepositorySubscriptionType",), + ".group_0369": ( "TagType", "TagPropCommitType", ), - ".group_0364": ("TagProtectionType",), - ".group_0365": ("TopicType",), - ".group_0366": ("TrafficType",), - ".group_0367": ("CloneTrafficType",), - ".group_0368": ("ContentTrafficType",), - ".group_0369": ("ReferrerTrafficType",), - ".group_0370": ("ViewTrafficType",), - ".group_0371": ( + ".group_0370": ("TagProtectionType",), + ".group_0371": ("TopicType",), + ".group_0372": ("TrafficType",), + ".group_0373": ("CloneTrafficType",), + ".group_0374": ("ContentTrafficType",), + ".group_0375": ("ReferrerTrafficType",), + ".group_0376": ("ViewTrafficType",), + ".group_0377": ( "SearchResultTextMatchesItemsType", "SearchResultTextMatchesItemsPropMatchesItemsType", ), - ".group_0372": ( + ".group_0378": ( "CodeSearchResultItemType", "SearchCodeGetResponse200Type", ), - ".group_0373": ( + ".group_0379": ( "CommitSearchResultItemType", "CommitSearchResultItemPropParentsItemsType", "SearchCommitsGetResponse200Type", ), - ".group_0374": ( + ".group_0380": ( "CommitSearchResultItemPropCommitType", "CommitSearchResultItemPropCommitPropAuthorType", "CommitSearchResultItemPropCommitPropTreeType", ), - ".group_0375": ( + ".group_0381": ( "IssueSearchResultItemType", "IssueSearchResultItemPropLabelsItemsType", "IssueSearchResultItemPropSubIssuesSummaryType", "IssueSearchResultItemPropPullRequestType", "SearchIssuesGetResponse200Type", ), - ".group_0376": ( + ".group_0382": ( "LabelSearchResultItemType", "SearchLabelsGetResponse200Type", ), - ".group_0377": ( + ".group_0383": ( "RepoSearchResultItemType", "RepoSearchResultItemPropPermissionsType", "SearchRepositoriesGetResponse200Type", ), - ".group_0378": ( + ".group_0384": ( "TopicSearchResultItemType", "TopicSearchResultItemPropRelatedItemsType", "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", @@ -9932,45 +9997,45 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", "SearchTopicsGetResponse200Type", ), - ".group_0379": ( + ".group_0385": ( "UserSearchResultItemType", "SearchUsersGetResponse200Type", ), - ".group_0380": ( + ".group_0386": ( "PrivateUserType", "PrivateUserPropPlanType", ), - ".group_0381": ("CodespacesUserPublicKeyType",), - ".group_0382": ("CodespaceExportDetailsType",), - ".group_0383": ( + ".group_0387": ("CodespacesUserPublicKeyType",), + ".group_0388": ("CodespaceExportDetailsType",), + ".group_0389": ( "CodespaceWithFullRepositoryType", "CodespaceWithFullRepositoryPropGitStatusType", "CodespaceWithFullRepositoryPropRuntimeConstraintsType", ), - ".group_0384": ("EmailType",), - ".group_0385": ( + ".group_0390": ("EmailType",), + ".group_0391": ( "GpgKeyType", "GpgKeyPropEmailsItemsType", "GpgKeyPropSubkeysItemsType", "GpgKeyPropSubkeysItemsPropEmailsItemsType", ), - ".group_0386": ("KeyType",), - ".group_0387": ( + ".group_0392": ("KeyType",), + ".group_0393": ( "UserMarketplacePurchaseType", "MarketplaceAccountType", ), - ".group_0388": ("SocialAccountType",), - ".group_0389": ("SshSigningKeyType",), - ".group_0390": ("StarredRepositoryType",), - ".group_0391": ( + ".group_0394": ("SocialAccountType",), + ".group_0395": ("SshSigningKeyType",), + ".group_0396": ("StarredRepositoryType",), + ".group_0397": ( "HovercardType", "HovercardPropContextsItemsType", ), - ".group_0392": ("KeySimpleType",), - ".group_0393": ("EnterpriseWebhooksType",), - ".group_0394": ("SimpleInstallationType",), - ".group_0395": ("OrganizationSimpleWebhooksType",), - ".group_0396": ( + ".group_0398": ("KeySimpleType",), + ".group_0399": ("EnterpriseWebhooksType",), + ".group_0400": ("SimpleInstallationType",), + ".group_0401": ("OrganizationSimpleWebhooksType",), + ".group_0402": ( "RepositoryWebhooksType", "RepositoryWebhooksPropPermissionsType", "RepositoryWebhooksPropCustomPropertiesType", @@ -9978,27 +10043,27 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", ), - ".group_0397": ("WebhooksRuleType",), - ".group_0398": ("SimpleCheckSuiteType",), - ".group_0399": ( + ".group_0403": ("WebhooksRuleType",), + ".group_0404": ("SimpleCheckSuiteType",), + ".group_0405": ( "CheckRunWithSimpleCheckSuiteType", "CheckRunWithSimpleCheckSuitePropOutputType", ), - ".group_0400": ("WebhooksDeployKeyType",), - ".group_0401": ("WebhooksWorkflowType",), - ".group_0402": ( + ".group_0406": ("WebhooksDeployKeyType",), + ".group_0407": ("WebhooksWorkflowType",), + ".group_0408": ( "WebhooksApproverType", "WebhooksReviewersItemsType", "WebhooksReviewersItemsPropReviewerType", ), - ".group_0403": ("WebhooksWorkflowJobRunType",), - ".group_0404": ("WebhooksUserType",), - ".group_0405": ( + ".group_0409": ("WebhooksWorkflowJobRunType",), + ".group_0410": ("WebhooksUserType",), + ".group_0411": ( "WebhooksAnswerType", "WebhooksAnswerPropReactionsType", "WebhooksAnswerPropUserType", ), - ".group_0406": ( + ".group_0412": ( "DiscussionType", "LabelType", "DiscussionPropAnswerChosenByType", @@ -10006,24 +10071,24 @@ "DiscussionPropReactionsType", "DiscussionPropUserType", ), - ".group_0407": ( + ".group_0413": ( "WebhooksCommentType", "WebhooksCommentPropReactionsType", "WebhooksCommentPropUserType", ), - ".group_0408": ("WebhooksLabelType",), - ".group_0409": ("WebhooksRepositoriesItemsType",), - ".group_0410": ("WebhooksRepositoriesAddedItemsType",), - ".group_0411": ( + ".group_0414": ("WebhooksLabelType",), + ".group_0415": ("WebhooksRepositoriesItemsType",), + ".group_0416": ("WebhooksRepositoriesAddedItemsType",), + ".group_0417": ( "WebhooksIssueCommentType", "WebhooksIssueCommentPropReactionsType", "WebhooksIssueCommentPropUserType", ), - ".group_0412": ( + ".group_0418": ( "WebhooksChangesType", "WebhooksChangesPropBodyType", ), - ".group_0413": ( + ".group_0419": ( "WebhooksIssueType", "WebhooksIssuePropAssigneeType", "WebhooksIssuePropAssigneesItemsType", @@ -10038,11 +10103,11 @@ "WebhooksIssuePropSubIssuesSummaryType", "WebhooksIssuePropUserType", ), - ".group_0414": ( + ".group_0420": ( "WebhooksMilestoneType", "WebhooksMilestonePropCreatorType", ), - ".group_0415": ( + ".group_0421": ( "WebhooksIssue2Type", "WebhooksIssue2PropAssigneeType", "WebhooksIssue2PropAssigneesItemsType", @@ -10057,31 +10122,31 @@ "WebhooksIssue2PropSubIssuesSummaryType", "WebhooksIssue2PropUserType", ), - ".group_0416": ("WebhooksUserMannequinType",), - ".group_0417": ( + ".group_0422": ("WebhooksUserMannequinType",), + ".group_0423": ( "WebhooksMarketplacePurchaseType", "WebhooksMarketplacePurchasePropAccountType", "WebhooksMarketplacePurchasePropPlanType", ), - ".group_0418": ( + ".group_0424": ( "WebhooksPreviousMarketplacePurchaseType", "WebhooksPreviousMarketplacePurchasePropAccountType", "WebhooksPreviousMarketplacePurchasePropPlanType", ), - ".group_0419": ( + ".group_0425": ( "WebhooksTeamType", "WebhooksTeamPropParentType", ), - ".group_0420": ("MergeGroupType",), - ".group_0421": ( + ".group_0426": ("MergeGroupType",), + ".group_0427": ( "WebhooksMilestone3Type", "WebhooksMilestone3PropCreatorType", ), - ".group_0422": ( + ".group_0428": ( "WebhooksMembershipType", "WebhooksMembershipPropUserType", ), - ".group_0423": ( + ".group_0429": ( "PersonalAccessTokenRequestType", "PersonalAccessTokenRequestPropRepositoriesItemsType", "PersonalAccessTokenRequestPropPermissionsAddedType", @@ -10097,25 +10162,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", ), - ".group_0424": ( + ".group_0430": ( "WebhooksProjectCardType", "WebhooksProjectCardPropCreatorType", ), - ".group_0425": ( + ".group_0431": ( "WebhooksProjectType", "WebhooksProjectPropCreatorType", ), - ".group_0426": ("WebhooksProjectColumnType",), - ".group_0427": ("ProjectsV2Type",), - ".group_0428": ( + ".group_0432": ("WebhooksProjectColumnType",), + ".group_0433": ("ProjectsV2Type",), + ".group_0434": ( "WebhooksProjectChangesType", "WebhooksProjectChangesPropArchivedAtType", ), - ".group_0429": ("ProjectsV2ItemType",), - ".group_0430": ("ProjectsV2StatusUpdateType",), - ".group_0431": ("PullRequestWebhookType",), - ".group_0432": ("PullRequestWebhookAllof1Type",), - ".group_0433": ( + ".group_0435": ("ProjectsV2ItemType",), + ".group_0436": ("ProjectsV2StatusUpdateType",), + ".group_0437": ("PullRequestWebhookType",), + ".group_0438": ("PullRequestWebhookAllof1Type",), + ".group_0439": ( "WebhooksPullRequest5Type", "WebhooksPullRequest5PropAssigneeType", "WebhooksPullRequest5PropAssigneesItemsType", @@ -10153,7 +10218,7 @@ "WebhooksPullRequest5PropRequestedTeamsItemsType", "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", ), - ".group_0434": ( + ".group_0440": ( "WebhooksReviewCommentType", "WebhooksReviewCommentPropReactionsType", "WebhooksReviewCommentPropUserType", @@ -10162,33 +10227,33 @@ "WebhooksReviewCommentPropLinksPropPullRequestType", "WebhooksReviewCommentPropLinksPropSelfType", ), - ".group_0435": ( + ".group_0441": ( "WebhooksReviewType", "WebhooksReviewPropUserType", "WebhooksReviewPropLinksType", "WebhooksReviewPropLinksPropHtmlType", "WebhooksReviewPropLinksPropPullRequestType", ), - ".group_0436": ( + ".group_0442": ( "WebhooksReleaseType", "WebhooksReleasePropAuthorType", "WebhooksReleasePropReactionsType", "WebhooksReleasePropAssetsItemsType", "WebhooksReleasePropAssetsItemsPropUploaderType", ), - ".group_0437": ( + ".group_0443": ( "WebhooksRelease1Type", "WebhooksRelease1PropAssetsItemsType", "WebhooksRelease1PropAssetsItemsPropUploaderType", "WebhooksRelease1PropAuthorType", "WebhooksRelease1PropReactionsType", ), - ".group_0438": ( + ".group_0444": ( "WebhooksAlertType", "WebhooksAlertPropDismisserType", ), - ".group_0439": ("SecretScanningAlertWebhookType",), - ".group_0440": ( + ".group_0445": ("SecretScanningAlertWebhookType",), + ".group_0446": ( "WebhooksSecurityAdvisoryType", "WebhooksSecurityAdvisoryPropCvssType", "WebhooksSecurityAdvisoryPropCwesItemsType", @@ -10198,27 +10263,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0441": ( + ".group_0447": ( "WebhooksSponsorshipType", "WebhooksSponsorshipPropMaintainerType", "WebhooksSponsorshipPropSponsorType", "WebhooksSponsorshipPropSponsorableType", "WebhooksSponsorshipPropTierType", ), - ".group_0442": ( + ".group_0448": ( "WebhooksChanges8Type", "WebhooksChanges8PropTierType", "WebhooksChanges8PropTierPropFromType", ), - ".group_0443": ( + ".group_0449": ( "WebhooksTeam1Type", "WebhooksTeam1PropParentType", ), - ".group_0444": ("WebhookBranchProtectionConfigurationDisabledType",), - ".group_0445": ("WebhookBranchProtectionConfigurationEnabledType",), - ".group_0446": ("WebhookBranchProtectionRuleCreatedType",), - ".group_0447": ("WebhookBranchProtectionRuleDeletedType",), - ".group_0448": ( + ".group_0450": ("WebhookBranchProtectionConfigurationDisabledType",), + ".group_0451": ("WebhookBranchProtectionConfigurationEnabledType",), + ".group_0452": ("WebhookBranchProtectionRuleCreatedType",), + ".group_0453": ("WebhookBranchProtectionRuleDeletedType",), + ".group_0454": ( "WebhookBranchProtectionRuleEditedType", "WebhookBranchProtectionRuleEditedPropChangesType", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", @@ -10233,18 +10298,18 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", ), - ".group_0449": ("WebhookCheckRunCompletedType",), - ".group_0450": ("WebhookCheckRunCompletedFormEncodedType",), - ".group_0451": ("WebhookCheckRunCreatedType",), - ".group_0452": ("WebhookCheckRunCreatedFormEncodedType",), - ".group_0453": ( + ".group_0455": ("WebhookCheckRunCompletedType",), + ".group_0456": ("WebhookCheckRunCompletedFormEncodedType",), + ".group_0457": ("WebhookCheckRunCreatedType",), + ".group_0458": ("WebhookCheckRunCreatedFormEncodedType",), + ".group_0459": ( "WebhookCheckRunRequestedActionType", "WebhookCheckRunRequestedActionPropRequestedActionType", ), - ".group_0454": ("WebhookCheckRunRequestedActionFormEncodedType",), - ".group_0455": ("WebhookCheckRunRerequestedType",), - ".group_0456": ("WebhookCheckRunRerequestedFormEncodedType",), - ".group_0457": ( + ".group_0460": ("WebhookCheckRunRequestedActionFormEncodedType",), + ".group_0461": ("WebhookCheckRunRerequestedType",), + ".group_0462": ("WebhookCheckRunRerequestedFormEncodedType",), + ".group_0463": ( "WebhookCheckSuiteCompletedType", "WebhookCheckSuiteCompletedPropCheckSuiteType", "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", @@ -10259,7 +10324,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0458": ( + ".group_0464": ( "WebhookCheckSuiteRequestedType", "WebhookCheckSuiteRequestedPropCheckSuiteType", "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", @@ -10274,7 +10339,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0459": ( + ".group_0465": ( "WebhookCheckSuiteRerequestedType", "WebhookCheckSuiteRerequestedPropCheckSuiteType", "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", @@ -10289,7 +10354,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0460": ( + ".group_0466": ( "WebhookCodeScanningAlertAppearedInBranchType", "WebhookCodeScanningAlertAppearedInBranchPropAlertType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", @@ -10299,7 +10364,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ), - ".group_0461": ( + ".group_0467": ( "WebhookCodeScanningAlertClosedByUserType", "WebhookCodeScanningAlertClosedByUserPropAlertType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", @@ -10309,7 +10374,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", ), - ".group_0462": ( + ".group_0468": ( "WebhookCodeScanningAlertCreatedType", "WebhookCodeScanningAlertCreatedPropAlertType", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", @@ -10318,7 +10383,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", "WebhookCodeScanningAlertCreatedPropAlertPropToolType", ), - ".group_0463": ( + ".group_0469": ( "WebhookCodeScanningAlertFixedType", "WebhookCodeScanningAlertFixedPropAlertType", "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", @@ -10328,7 +10393,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRuleType", "WebhookCodeScanningAlertFixedPropAlertPropToolType", ), - ".group_0464": ( + ".group_0470": ( "WebhookCodeScanningAlertReopenedType", "WebhookCodeScanningAlertReopenedPropAlertType", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", @@ -10338,7 +10403,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedPropAlertPropToolType", ), - ".group_0465": ( + ".group_0471": ( "WebhookCodeScanningAlertReopenedByUserType", "WebhookCodeScanningAlertReopenedByUserPropAlertType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", @@ -10347,31 +10412,31 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", ), - ".group_0466": ( + ".group_0472": ( "WebhookCommitCommentCreatedType", "WebhookCommitCommentCreatedPropCommentType", "WebhookCommitCommentCreatedPropCommentPropReactionsType", "WebhookCommitCommentCreatedPropCommentPropUserType", ), - ".group_0467": ("WebhookCreateType",), - ".group_0468": ("WebhookCustomPropertyCreatedType",), - ".group_0469": ( + ".group_0473": ("WebhookCreateType",), + ".group_0474": ("WebhookCustomPropertyCreatedType",), + ".group_0475": ( "WebhookCustomPropertyDeletedType", "WebhookCustomPropertyDeletedPropDefinitionType", ), - ".group_0470": ("WebhookCustomPropertyUpdatedType",), - ".group_0471": ("WebhookCustomPropertyValuesUpdatedType",), - ".group_0472": ("WebhookDeleteType",), - ".group_0473": ("WebhookDependabotAlertAutoDismissedType",), - ".group_0474": ("WebhookDependabotAlertAutoReopenedType",), - ".group_0475": ("WebhookDependabotAlertCreatedType",), - ".group_0476": ("WebhookDependabotAlertDismissedType",), - ".group_0477": ("WebhookDependabotAlertFixedType",), - ".group_0478": ("WebhookDependabotAlertReintroducedType",), - ".group_0479": ("WebhookDependabotAlertReopenedType",), - ".group_0480": ("WebhookDeployKeyCreatedType",), - ".group_0481": ("WebhookDeployKeyDeletedType",), - ".group_0482": ( + ".group_0476": ("WebhookCustomPropertyUpdatedType",), + ".group_0477": ("WebhookCustomPropertyValuesUpdatedType",), + ".group_0478": ("WebhookDeleteType",), + ".group_0479": ("WebhookDependabotAlertAutoDismissedType",), + ".group_0480": ("WebhookDependabotAlertAutoReopenedType",), + ".group_0481": ("WebhookDependabotAlertCreatedType",), + ".group_0482": ("WebhookDependabotAlertDismissedType",), + ".group_0483": ("WebhookDependabotAlertFixedType",), + ".group_0484": ("WebhookDependabotAlertReintroducedType",), + ".group_0485": ("WebhookDependabotAlertReopenedType",), + ".group_0486": ("WebhookDeployKeyCreatedType",), + ".group_0487": ("WebhookDeployKeyDeletedType",), + ".group_0488": ( "WebhookDeploymentCreatedType", "WebhookDeploymentCreatedPropDeploymentType", "WebhookDeploymentCreatedPropDeploymentPropCreatorType", @@ -10393,8 +10458,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0483": ("WebhookDeploymentProtectionRuleRequestedType",), - ".group_0484": ( + ".group_0489": ("WebhookDeploymentProtectionRuleRequestedType",), + ".group_0490": ( "WebhookDeploymentReviewApprovedType", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewApprovedPropWorkflowRunType", @@ -10412,7 +10477,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0485": ( + ".group_0491": ( "WebhookDeploymentReviewRejectedType", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewRejectedPropWorkflowRunType", @@ -10430,7 +10495,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0486": ( + ".group_0492": ( "WebhookDeploymentReviewRequestedType", "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", "WebhookDeploymentReviewRequestedPropReviewersItemsType", @@ -10450,7 +10515,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0487": ( + ".group_0493": ( "WebhookDeploymentStatusCreatedType", "WebhookDeploymentStatusCreatedPropCheckRunType", "WebhookDeploymentStatusCreatedPropDeploymentType", @@ -10478,119 +10543,119 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0488": ("WebhookDiscussionAnsweredType",), - ".group_0489": ( + ".group_0494": ("WebhookDiscussionAnsweredType",), + ".group_0495": ( "WebhookDiscussionCategoryChangedType", "WebhookDiscussionCategoryChangedPropChangesType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", ), - ".group_0490": ("WebhookDiscussionClosedType",), - ".group_0491": ("WebhookDiscussionCommentCreatedType",), - ".group_0492": ("WebhookDiscussionCommentDeletedType",), - ".group_0493": ( + ".group_0496": ("WebhookDiscussionClosedType",), + ".group_0497": ("WebhookDiscussionCommentCreatedType",), + ".group_0498": ("WebhookDiscussionCommentDeletedType",), + ".group_0499": ( "WebhookDiscussionCommentEditedType", "WebhookDiscussionCommentEditedPropChangesType", "WebhookDiscussionCommentEditedPropChangesPropBodyType", ), - ".group_0494": ("WebhookDiscussionCreatedType",), - ".group_0495": ("WebhookDiscussionDeletedType",), - ".group_0496": ( + ".group_0500": ("WebhookDiscussionCreatedType",), + ".group_0501": ("WebhookDiscussionDeletedType",), + ".group_0502": ( "WebhookDiscussionEditedType", "WebhookDiscussionEditedPropChangesType", "WebhookDiscussionEditedPropChangesPropBodyType", "WebhookDiscussionEditedPropChangesPropTitleType", ), - ".group_0497": ("WebhookDiscussionLabeledType",), - ".group_0498": ("WebhookDiscussionLockedType",), - ".group_0499": ("WebhookDiscussionPinnedType",), - ".group_0500": ("WebhookDiscussionReopenedType",), - ".group_0501": ("WebhookDiscussionTransferredType",), - ".group_0502": ("WebhookDiscussionTransferredPropChangesType",), - ".group_0503": ("WebhookDiscussionUnansweredType",), - ".group_0504": ("WebhookDiscussionUnlabeledType",), - ".group_0505": ("WebhookDiscussionUnlockedType",), - ".group_0506": ("WebhookDiscussionUnpinnedType",), - ".group_0507": ("WebhookForkType",), - ".group_0508": ( + ".group_0503": ("WebhookDiscussionLabeledType",), + ".group_0504": ("WebhookDiscussionLockedType",), + ".group_0505": ("WebhookDiscussionPinnedType",), + ".group_0506": ("WebhookDiscussionReopenedType",), + ".group_0507": ("WebhookDiscussionTransferredType",), + ".group_0508": ("WebhookDiscussionTransferredPropChangesType",), + ".group_0509": ("WebhookDiscussionUnansweredType",), + ".group_0510": ("WebhookDiscussionUnlabeledType",), + ".group_0511": ("WebhookDiscussionUnlockedType",), + ".group_0512": ("WebhookDiscussionUnpinnedType",), + ".group_0513": ("WebhookForkType",), + ".group_0514": ( "WebhookForkPropForkeeType", "WebhookForkPropForkeeMergedLicenseType", "WebhookForkPropForkeeMergedOwnerType", ), - ".group_0509": ( + ".group_0515": ( "WebhookForkPropForkeeAllof0Type", "WebhookForkPropForkeeAllof0PropLicenseType", "WebhookForkPropForkeeAllof0PropOwnerType", ), - ".group_0510": ("WebhookForkPropForkeeAllof0PropPermissionsType",), - ".group_0511": ( + ".group_0516": ("WebhookForkPropForkeeAllof0PropPermissionsType",), + ".group_0517": ( "WebhookForkPropForkeeAllof1Type", "WebhookForkPropForkeeAllof1PropLicenseType", "WebhookForkPropForkeeAllof1PropOwnerType", ), - ".group_0512": ("WebhookGithubAppAuthorizationRevokedType",), - ".group_0513": ( + ".group_0518": ("WebhookGithubAppAuthorizationRevokedType",), + ".group_0519": ( "WebhookGollumType", "WebhookGollumPropPagesItemsType", ), - ".group_0514": ("WebhookInstallationCreatedType",), - ".group_0515": ("WebhookInstallationDeletedType",), - ".group_0516": ("WebhookInstallationNewPermissionsAcceptedType",), - ".group_0517": ( + ".group_0520": ("WebhookInstallationCreatedType",), + ".group_0521": ("WebhookInstallationDeletedType",), + ".group_0522": ("WebhookInstallationNewPermissionsAcceptedType",), + ".group_0523": ( "WebhookInstallationRepositoriesAddedType", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", ), - ".group_0518": ( + ".group_0524": ( "WebhookInstallationRepositoriesRemovedType", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", ), - ".group_0519": ("WebhookInstallationSuspendType",), - ".group_0520": ( + ".group_0525": ("WebhookInstallationSuspendType",), + ".group_0526": ( "WebhookInstallationTargetRenamedType", "WebhookInstallationTargetRenamedPropAccountType", "WebhookInstallationTargetRenamedPropChangesType", "WebhookInstallationTargetRenamedPropChangesPropLoginType", "WebhookInstallationTargetRenamedPropChangesPropSlugType", ), - ".group_0521": ("WebhookInstallationUnsuspendType",), - ".group_0522": ("WebhookIssueCommentCreatedType",), - ".group_0523": ( + ".group_0527": ("WebhookInstallationUnsuspendType",), + ".group_0528": ("WebhookIssueCommentCreatedType",), + ".group_0529": ( "WebhookIssueCommentCreatedPropCommentType", "WebhookIssueCommentCreatedPropCommentPropReactionsType", "WebhookIssueCommentCreatedPropCommentPropUserType", ), - ".group_0524": ( + ".group_0530": ( "WebhookIssueCommentCreatedPropIssueType", "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", "WebhookIssueCommentCreatedPropIssueMergedReactionsType", "WebhookIssueCommentCreatedPropIssueMergedUserType", ), - ".group_0525": ( + ".group_0531": ( "WebhookIssueCommentCreatedPropIssueAllof0Type", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ), - ".group_0526": ( + ".group_0532": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", ), - ".group_0527": ( + ".group_0533": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0528": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), - ".group_0529": ( + ".group_0534": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), + ".group_0535": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0530": ( + ".group_0536": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0531": ( + ".group_0537": ( "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0532": ( + ".group_0538": ( "WebhookIssueCommentCreatedPropIssueAllof1Type", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", @@ -10600,43 +10665,43 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", ), - ".group_0533": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), - ".group_0534": ( + ".group_0539": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), + ".group_0540": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0535": ("WebhookIssueCommentDeletedType",), - ".group_0536": ( + ".group_0541": ("WebhookIssueCommentDeletedType",), + ".group_0542": ( "WebhookIssueCommentDeletedPropIssueType", "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", "WebhookIssueCommentDeletedPropIssueMergedReactionsType", "WebhookIssueCommentDeletedPropIssueMergedUserType", ), - ".group_0537": ( + ".group_0543": ( "WebhookIssueCommentDeletedPropIssueAllof0Type", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ), - ".group_0538": ( + ".group_0544": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", ), - ".group_0539": ( + ".group_0545": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0540": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), - ".group_0541": ( + ".group_0546": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), + ".group_0547": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0542": ( + ".group_0548": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0543": ( + ".group_0549": ( "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0544": ( + ".group_0550": ( "WebhookIssueCommentDeletedPropIssueAllof1Type", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", @@ -10646,43 +10711,43 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", ), - ".group_0545": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), - ".group_0546": ( + ".group_0551": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), + ".group_0552": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0547": ("WebhookIssueCommentEditedType",), - ".group_0548": ( + ".group_0553": ("WebhookIssueCommentEditedType",), + ".group_0554": ( "WebhookIssueCommentEditedPropIssueType", "WebhookIssueCommentEditedPropIssueMergedAssigneesType", "WebhookIssueCommentEditedPropIssueMergedReactionsType", "WebhookIssueCommentEditedPropIssueMergedUserType", ), - ".group_0549": ( + ".group_0555": ( "WebhookIssueCommentEditedPropIssueAllof0Type", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof0PropUserType", ), - ".group_0550": ( + ".group_0556": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", ), - ".group_0551": ( + ".group_0557": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0552": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), - ".group_0553": ( + ".group_0558": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), + ".group_0559": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0554": ( + ".group_0560": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0555": ( + ".group_0561": ( "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0556": ( + ".group_0562": ( "WebhookIssueCommentEditedPropIssueAllof1Type", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", @@ -10692,13 +10757,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof1PropUserType", ), - ".group_0557": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), - ".group_0558": ( + ".group_0563": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), + ".group_0564": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0559": ("WebhookIssuesAssignedType",), - ".group_0560": ("WebhookIssuesClosedType",), - ".group_0561": ( + ".group_0565": ("WebhookIssuesAssignedType",), + ".group_0566": ("WebhookIssuesClosedType",), + ".group_0567": ( "WebhookIssuesClosedPropIssueType", "WebhookIssuesClosedPropIssueMergedAssigneeType", "WebhookIssuesClosedPropIssueMergedAssigneesType", @@ -10706,7 +10771,7 @@ "WebhookIssuesClosedPropIssueMergedReactionsType", "WebhookIssuesClosedPropIssueMergedUserType", ), - ".group_0562": ( + ".group_0568": ( "WebhookIssuesClosedPropIssueAllof0Type", "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", @@ -10714,22 +10779,22 @@ "WebhookIssuesClosedPropIssueAllof0PropReactionsType", "WebhookIssuesClosedPropIssueAllof0PropUserType", ), - ".group_0563": ( + ".group_0569": ( "WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0564": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), - ".group_0565": ( + ".group_0570": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), + ".group_0571": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0566": ( + ".group_0572": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0567": ( + ".group_0573": ( "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0568": ( + ".group_0574": ( "WebhookIssuesClosedPropIssueAllof1Type", "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", @@ -10739,9 +10804,9 @@ "WebhookIssuesClosedPropIssueAllof1PropReactionsType", "WebhookIssuesClosedPropIssueAllof1PropUserType", ), - ".group_0569": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), - ".group_0570": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), - ".group_0571": ( + ".group_0575": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), + ".group_0576": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), + ".group_0577": ( "WebhookIssuesDeletedType", "WebhookIssuesDeletedPropIssueType", "WebhookIssuesDeletedPropIssuePropAssigneeType", @@ -10757,7 +10822,7 @@ "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDeletedPropIssuePropUserType", ), - ".group_0572": ( + ".group_0578": ( "WebhookIssuesDemilestonedType", "WebhookIssuesDemilestonedPropIssueType", "WebhookIssuesDemilestonedPropIssuePropAssigneeType", @@ -10773,7 +10838,7 @@ "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDemilestonedPropIssuePropUserType", ), - ".group_0573": ( + ".group_0579": ( "WebhookIssuesEditedType", "WebhookIssuesEditedPropChangesType", "WebhookIssuesEditedPropChangesPropBodyType", @@ -10792,7 +10857,7 @@ "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", "WebhookIssuesEditedPropIssuePropUserType", ), - ".group_0574": ( + ".group_0580": ( "WebhookIssuesLabeledType", "WebhookIssuesLabeledPropIssueType", "WebhookIssuesLabeledPropIssuePropAssigneeType", @@ -10808,7 +10873,7 @@ "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", "WebhookIssuesLabeledPropIssuePropUserType", ), - ".group_0575": ( + ".group_0581": ( "WebhookIssuesLockedType", "WebhookIssuesLockedPropIssueType", "WebhookIssuesLockedPropIssuePropAssigneeType", @@ -10824,7 +10889,7 @@ "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesLockedPropIssuePropUserType", ), - ".group_0576": ( + ".group_0582": ( "WebhookIssuesMilestonedType", "WebhookIssuesMilestonedPropIssueType", "WebhookIssuesMilestonedPropIssuePropAssigneeType", @@ -10840,7 +10905,7 @@ "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesMilestonedPropIssuePropUserType", ), - ".group_0577": ( + ".group_0583": ( "WebhookIssuesOpenedType", "WebhookIssuesOpenedPropIssueType", "WebhookIssuesOpenedPropIssuePropAssigneeType", @@ -10875,8 +10940,8 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ), - ".group_0578": ("WebhookIssuesPinnedType",), - ".group_0579": ( + ".group_0584": ("WebhookIssuesPinnedType",), + ".group_0585": ( "WebhookIssuesReopenedType", "WebhookIssuesReopenedPropIssueType", "WebhookIssuesReopenedPropIssuePropAssigneeType", @@ -10892,7 +10957,7 @@ "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", "WebhookIssuesReopenedPropIssuePropUserType", ), - ".group_0580": ( + ".group_0586": ( "WebhookIssuesTransferredType", "WebhookIssuesTransferredPropChangesType", "WebhookIssuesTransferredPropChangesPropNewIssueType", @@ -10914,9 +10979,9 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", ), - ".group_0581": ("WebhookIssuesUnassignedType",), - ".group_0582": ("WebhookIssuesUnlabeledType",), - ".group_0583": ( + ".group_0587": ("WebhookIssuesUnassignedType",), + ".group_0588": ("WebhookIssuesUnlabeledType",), + ".group_0589": ( "WebhookIssuesUnlockedType", "WebhookIssuesUnlockedPropIssueType", "WebhookIssuesUnlockedPropIssuePropAssigneeType", @@ -10932,103 +10997,103 @@ "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesUnlockedPropIssuePropUserType", ), - ".group_0584": ("WebhookIssuesUnpinnedType",), - ".group_0585": ("WebhookLabelCreatedType",), - ".group_0586": ("WebhookLabelDeletedType",), - ".group_0587": ( + ".group_0590": ("WebhookIssuesUnpinnedType",), + ".group_0591": ("WebhookLabelCreatedType",), + ".group_0592": ("WebhookLabelDeletedType",), + ".group_0593": ( "WebhookLabelEditedType", "WebhookLabelEditedPropChangesType", "WebhookLabelEditedPropChangesPropColorType", "WebhookLabelEditedPropChangesPropDescriptionType", "WebhookLabelEditedPropChangesPropNameType", ), - ".group_0588": ("WebhookMarketplacePurchaseCancelledType",), - ".group_0589": ( + ".group_0594": ("WebhookMarketplacePurchaseCancelledType",), + ".group_0595": ( "WebhookMarketplacePurchaseChangedType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0590": ( + ".group_0596": ( "WebhookMarketplacePurchasePendingChangeType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", ), - ".group_0591": ( + ".group_0597": ( "WebhookMarketplacePurchasePendingChangeCancelledType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", ), - ".group_0592": ("WebhookMarketplacePurchasePurchasedType",), - ".group_0593": ( + ".group_0598": ("WebhookMarketplacePurchasePurchasedType",), + ".group_0599": ( "WebhookMemberAddedType", "WebhookMemberAddedPropChangesType", "WebhookMemberAddedPropChangesPropPermissionType", "WebhookMemberAddedPropChangesPropRoleNameType", ), - ".group_0594": ( + ".group_0600": ( "WebhookMemberEditedType", "WebhookMemberEditedPropChangesType", "WebhookMemberEditedPropChangesPropOldPermissionType", "WebhookMemberEditedPropChangesPropPermissionType", ), - ".group_0595": ("WebhookMemberRemovedType",), - ".group_0596": ( + ".group_0601": ("WebhookMemberRemovedType",), + ".group_0602": ( "WebhookMembershipAddedType", "WebhookMembershipAddedPropSenderType", ), - ".group_0597": ( + ".group_0603": ( "WebhookMembershipRemovedType", "WebhookMembershipRemovedPropSenderType", ), - ".group_0598": ("WebhookMergeGroupChecksRequestedType",), - ".group_0599": ("WebhookMergeGroupDestroyedType",), - ".group_0600": ( + ".group_0604": ("WebhookMergeGroupChecksRequestedType",), + ".group_0605": ("WebhookMergeGroupDestroyedType",), + ".group_0606": ( "WebhookMetaDeletedType", "WebhookMetaDeletedPropHookType", "WebhookMetaDeletedPropHookPropConfigType", ), - ".group_0601": ("WebhookMilestoneClosedType",), - ".group_0602": ("WebhookMilestoneCreatedType",), - ".group_0603": ("WebhookMilestoneDeletedType",), - ".group_0604": ( + ".group_0607": ("WebhookMilestoneClosedType",), + ".group_0608": ("WebhookMilestoneCreatedType",), + ".group_0609": ("WebhookMilestoneDeletedType",), + ".group_0610": ( "WebhookMilestoneEditedType", "WebhookMilestoneEditedPropChangesType", "WebhookMilestoneEditedPropChangesPropDescriptionType", "WebhookMilestoneEditedPropChangesPropDueOnType", "WebhookMilestoneEditedPropChangesPropTitleType", ), - ".group_0605": ("WebhookMilestoneOpenedType",), - ".group_0606": ("WebhookOrgBlockBlockedType",), - ".group_0607": ("WebhookOrgBlockUnblockedType",), - ".group_0608": ("WebhookOrganizationDeletedType",), - ".group_0609": ("WebhookOrganizationMemberAddedType",), - ".group_0610": ( + ".group_0611": ("WebhookMilestoneOpenedType",), + ".group_0612": ("WebhookOrgBlockBlockedType",), + ".group_0613": ("WebhookOrgBlockUnblockedType",), + ".group_0614": ("WebhookOrganizationDeletedType",), + ".group_0615": ("WebhookOrganizationMemberAddedType",), + ".group_0616": ( "WebhookOrganizationMemberInvitedType", "WebhookOrganizationMemberInvitedPropInvitationType", "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", ), - ".group_0611": ("WebhookOrganizationMemberRemovedType",), - ".group_0612": ( + ".group_0617": ("WebhookOrganizationMemberRemovedType",), + ".group_0618": ( "WebhookOrganizationRenamedType", "WebhookOrganizationRenamedPropChangesType", "WebhookOrganizationRenamedPropChangesPropLoginType", ), - ".group_0613": ( + ".group_0619": ( "WebhookRubygemsMetadataType", "WebhookRubygemsMetadataPropVersionInfoType", "WebhookRubygemsMetadataPropMetadataType", "WebhookRubygemsMetadataPropDependenciesItemsType", ), - ".group_0614": ("WebhookPackagePublishedType",), - ".group_0615": ( + ".group_0620": ("WebhookPackagePublishedType",), + ".group_0621": ( "WebhookPackagePublishedPropPackageType", "WebhookPackagePublishedPropPackagePropOwnerType", "WebhookPackagePublishedPropPackagePropRegistryType", ), - ".group_0616": ( + ".group_0622": ( "WebhookPackagePublishedPropPackagePropPackageVersionType", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", @@ -11060,13 +11125,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0617": ("WebhookPackageUpdatedType",), - ".group_0618": ( + ".group_0623": ("WebhookPackageUpdatedType",), + ".group_0624": ( "WebhookPackageUpdatedPropPackageType", "WebhookPackageUpdatedPropPackagePropOwnerType", "WebhookPackageUpdatedPropPackagePropRegistryType", ), - ".group_0619": ( + ".group_0625": ( "WebhookPackageUpdatedPropPackagePropPackageVersionType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", @@ -11075,75 +11140,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0620": ( + ".group_0626": ( "WebhookPageBuildType", "WebhookPageBuildPropBuildType", "WebhookPageBuildPropBuildPropErrorType", "WebhookPageBuildPropBuildPropPusherType", ), - ".group_0621": ("WebhookPersonalAccessTokenRequestApprovedType",), - ".group_0622": ("WebhookPersonalAccessTokenRequestCancelledType",), - ".group_0623": ("WebhookPersonalAccessTokenRequestCreatedType",), - ".group_0624": ("WebhookPersonalAccessTokenRequestDeniedType",), - ".group_0625": ("WebhookPingType",), - ".group_0626": ( + ".group_0627": ("WebhookPersonalAccessTokenRequestApprovedType",), + ".group_0628": ("WebhookPersonalAccessTokenRequestCancelledType",), + ".group_0629": ("WebhookPersonalAccessTokenRequestCreatedType",), + ".group_0630": ("WebhookPersonalAccessTokenRequestDeniedType",), + ".group_0631": ("WebhookPingType",), + ".group_0632": ( "WebhookPingPropHookType", "WebhookPingPropHookPropConfigType", ), - ".group_0627": ("WebhookPingFormEncodedType",), - ".group_0628": ( + ".group_0633": ("WebhookPingFormEncodedType",), + ".group_0634": ( "WebhookProjectCardConvertedType", "WebhookProjectCardConvertedPropChangesType", "WebhookProjectCardConvertedPropChangesPropNoteType", ), - ".group_0629": ("WebhookProjectCardCreatedType",), - ".group_0630": ( + ".group_0635": ("WebhookProjectCardCreatedType",), + ".group_0636": ( "WebhookProjectCardDeletedType", "WebhookProjectCardDeletedPropProjectCardType", "WebhookProjectCardDeletedPropProjectCardPropCreatorType", ), - ".group_0631": ( + ".group_0637": ( "WebhookProjectCardEditedType", "WebhookProjectCardEditedPropChangesType", "WebhookProjectCardEditedPropChangesPropNoteType", ), - ".group_0632": ( + ".group_0638": ( "WebhookProjectCardMovedType", "WebhookProjectCardMovedPropChangesType", "WebhookProjectCardMovedPropChangesPropColumnIdType", "WebhookProjectCardMovedPropProjectCardType", "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ), - ".group_0633": ( + ".group_0639": ( "WebhookProjectCardMovedPropProjectCardAllof0Type", "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ), - ".group_0634": ( + ".group_0640": ( "WebhookProjectCardMovedPropProjectCardAllof1Type", "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", ), - ".group_0635": ("WebhookProjectClosedType",), - ".group_0636": ("WebhookProjectColumnCreatedType",), - ".group_0637": ("WebhookProjectColumnDeletedType",), - ".group_0638": ( + ".group_0641": ("WebhookProjectClosedType",), + ".group_0642": ("WebhookProjectColumnCreatedType",), + ".group_0643": ("WebhookProjectColumnDeletedType",), + ".group_0644": ( "WebhookProjectColumnEditedType", "WebhookProjectColumnEditedPropChangesType", "WebhookProjectColumnEditedPropChangesPropNameType", ), - ".group_0639": ("WebhookProjectColumnMovedType",), - ".group_0640": ("WebhookProjectCreatedType",), - ".group_0641": ("WebhookProjectDeletedType",), - ".group_0642": ( + ".group_0645": ("WebhookProjectColumnMovedType",), + ".group_0646": ("WebhookProjectCreatedType",), + ".group_0647": ("WebhookProjectDeletedType",), + ".group_0648": ( "WebhookProjectEditedType", "WebhookProjectEditedPropChangesType", "WebhookProjectEditedPropChangesPropBodyType", "WebhookProjectEditedPropChangesPropNameType", ), - ".group_0643": ("WebhookProjectReopenedType",), - ".group_0644": ("WebhookProjectsV2ProjectClosedType",), - ".group_0645": ("WebhookProjectsV2ProjectCreatedType",), - ".group_0646": ("WebhookProjectsV2ProjectDeletedType",), - ".group_0647": ( + ".group_0649": ("WebhookProjectReopenedType",), + ".group_0650": ("WebhookProjectsV2ProjectClosedType",), + ".group_0651": ("WebhookProjectsV2ProjectCreatedType",), + ".group_0652": ("WebhookProjectsV2ProjectDeletedType",), + ".group_0653": ( "WebhookProjectsV2ProjectEditedType", "WebhookProjectsV2ProjectEditedPropChangesType", "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", @@ -11151,15 +11216,15 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ), - ".group_0648": ("WebhookProjectsV2ItemArchivedType",), - ".group_0649": ( + ".group_0654": ("WebhookProjectsV2ItemArchivedType",), + ".group_0655": ( "WebhookProjectsV2ItemConvertedType", "WebhookProjectsV2ItemConvertedPropChangesType", "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", ), - ".group_0650": ("WebhookProjectsV2ItemCreatedType",), - ".group_0651": ("WebhookProjectsV2ItemDeletedType",), - ".group_0652": ( + ".group_0656": ("WebhookProjectsV2ItemCreatedType",), + ".group_0657": ("WebhookProjectsV2ItemDeletedType",), + ".group_0658": ( "WebhookProjectsV2ItemEditedType", "WebhookProjectsV2ItemEditedPropChangesOneof0Type", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", @@ -11168,16 +11233,16 @@ "WebhookProjectsV2ItemEditedPropChangesOneof1Type", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", ), - ".group_0653": ( + ".group_0659": ( "WebhookProjectsV2ItemReorderedType", "WebhookProjectsV2ItemReorderedPropChangesType", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ), - ".group_0654": ("WebhookProjectsV2ItemRestoredType",), - ".group_0655": ("WebhookProjectsV2ProjectReopenedType",), - ".group_0656": ("WebhookProjectsV2StatusUpdateCreatedType",), - ".group_0657": ("WebhookProjectsV2StatusUpdateDeletedType",), - ".group_0658": ( + ".group_0660": ("WebhookProjectsV2ItemRestoredType",), + ".group_0661": ("WebhookProjectsV2ProjectReopenedType",), + ".group_0662": ("WebhookProjectsV2StatusUpdateCreatedType",), + ".group_0663": ("WebhookProjectsV2StatusUpdateDeletedType",), + ".group_0664": ( "WebhookProjectsV2StatusUpdateEditedType", "WebhookProjectsV2StatusUpdateEditedPropChangesType", "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", @@ -11185,8 +11250,8 @@ "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", ), - ".group_0659": ("WebhookPublicType",), - ".group_0660": ( + ".group_0665": ("WebhookPublicType",), + ".group_0666": ( "WebhookPullRequestAssignedType", "WebhookPullRequestAssignedPropPullRequestType", "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", @@ -11225,7 +11290,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0661": ( + ".group_0667": ( "WebhookPullRequestAutoMergeDisabledType", "WebhookPullRequestAutoMergeDisabledPropPullRequestType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", @@ -11264,7 +11329,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0662": ( + ".group_0668": ( "WebhookPullRequestAutoMergeEnabledType", "WebhookPullRequestAutoMergeEnabledPropPullRequestType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", @@ -11303,10 +11368,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0663": ("WebhookPullRequestClosedType",), - ".group_0664": ("WebhookPullRequestConvertedToDraftType",), - ".group_0665": ("WebhookPullRequestDemilestonedType",), - ".group_0666": ( + ".group_0669": ("WebhookPullRequestClosedType",), + ".group_0670": ("WebhookPullRequestConvertedToDraftType",), + ".group_0671": ("WebhookPullRequestDemilestonedType",), + ".group_0672": ( "WebhookPullRequestDequeuedType", "WebhookPullRequestDequeuedPropPullRequestType", "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", @@ -11345,7 +11410,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0667": ( + ".group_0673": ( "WebhookPullRequestEditedType", "WebhookPullRequestEditedPropChangesType", "WebhookPullRequestEditedPropChangesPropBodyType", @@ -11354,7 +11419,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRefType", "WebhookPullRequestEditedPropChangesPropBasePropShaType", ), - ".group_0668": ( + ".group_0674": ( "WebhookPullRequestEnqueuedType", "WebhookPullRequestEnqueuedPropPullRequestType", "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", @@ -11393,7 +11458,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0669": ( + ".group_0675": ( "WebhookPullRequestLabeledType", "WebhookPullRequestLabeledPropPullRequestType", "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", @@ -11432,7 +11497,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0670": ( + ".group_0676": ( "WebhookPullRequestLockedType", "WebhookPullRequestLockedPropPullRequestType", "WebhookPullRequestLockedPropPullRequestPropAssigneeType", @@ -11471,11 +11536,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0671": ("WebhookPullRequestMilestonedType",), - ".group_0672": ("WebhookPullRequestOpenedType",), - ".group_0673": ("WebhookPullRequestReadyForReviewType",), - ".group_0674": ("WebhookPullRequestReopenedType",), - ".group_0675": ( + ".group_0677": ("WebhookPullRequestMilestonedType",), + ".group_0678": ("WebhookPullRequestOpenedType",), + ".group_0679": ("WebhookPullRequestReadyForReviewType",), + ".group_0680": ("WebhookPullRequestReopenedType",), + ".group_0681": ( "WebhookPullRequestReviewCommentCreatedType", "WebhookPullRequestReviewCommentCreatedPropCommentType", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", @@ -11520,7 +11585,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0676": ( + ".group_0682": ( "WebhookPullRequestReviewCommentDeletedType", "WebhookPullRequestReviewCommentDeletedPropPullRequestType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", @@ -11558,7 +11623,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0677": ( + ".group_0683": ( "WebhookPullRequestReviewCommentEditedType", "WebhookPullRequestReviewCommentEditedPropPullRequestType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", @@ -11596,7 +11661,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0678": ( + ".group_0684": ( "WebhookPullRequestReviewDismissedType", "WebhookPullRequestReviewDismissedPropReviewType", "WebhookPullRequestReviewDismissedPropReviewPropUserType", @@ -11639,7 +11704,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0679": ( + ".group_0685": ( "WebhookPullRequestReviewEditedType", "WebhookPullRequestReviewEditedPropChangesType", "WebhookPullRequestReviewEditedPropChangesPropBodyType", @@ -11679,7 +11744,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0680": ( + ".group_0686": ( "WebhookPullRequestReviewRequestRemovedOneof0Type", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", @@ -11719,7 +11784,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0681": ( + ".group_0687": ( "WebhookPullRequestReviewRequestRemovedOneof1Type", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", @@ -11760,7 +11825,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0682": ( + ".group_0688": ( "WebhookPullRequestReviewRequestedOneof0Type", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", @@ -11800,7 +11865,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0683": ( + ".group_0689": ( "WebhookPullRequestReviewRequestedOneof1Type", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", @@ -11841,7 +11906,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0684": ( + ".group_0690": ( "WebhookPullRequestReviewSubmittedType", "WebhookPullRequestReviewSubmittedPropPullRequestType", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", @@ -11879,7 +11944,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0685": ( + ".group_0691": ( "WebhookPullRequestReviewThreadResolvedType", "WebhookPullRequestReviewThreadResolvedPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", @@ -11925,7 +11990,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0686": ( + ".group_0692": ( "WebhookPullRequestReviewThreadUnresolvedType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", @@ -11971,7 +12036,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0687": ( + ".group_0693": ( "WebhookPullRequestSynchronizeType", "WebhookPullRequestSynchronizePropPullRequestType", "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", @@ -12010,7 +12075,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0688": ( + ".group_0694": ( "WebhookPullRequestUnassignedType", "WebhookPullRequestUnassignedPropPullRequestType", "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", @@ -12049,7 +12114,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0689": ( + ".group_0695": ( "WebhookPullRequestUnlabeledType", "WebhookPullRequestUnlabeledPropPullRequestType", "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", @@ -12088,7 +12153,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0690": ( + ".group_0696": ( "WebhookPullRequestUnlockedType", "WebhookPullRequestUnlockedPropPullRequestType", "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", @@ -12127,7 +12192,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0691": ( + ".group_0697": ( "WebhookPushType", "WebhookPushPropHeadCommitType", "WebhookPushPropHeadCommitPropAuthorType", @@ -12142,13 +12207,13 @@ "WebhookPushPropRepositoryPropOwnerType", "WebhookPushPropRepositoryPropPermissionsType", ), - ".group_0692": ("WebhookRegistryPackagePublishedType",), - ".group_0693": ( + ".group_0698": ("WebhookRegistryPackagePublishedType",), + ".group_0699": ( "WebhookRegistryPackagePublishedPropRegistryPackageType", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ), - ".group_0694": ( + ".group_0700": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", @@ -12179,13 +12244,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0695": ("WebhookRegistryPackageUpdatedType",), - ".group_0696": ( + ".group_0701": ("WebhookRegistryPackageUpdatedType",), + ".group_0702": ( "WebhookRegistryPackageUpdatedPropRegistryPackageType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", ), - ".group_0697": ( + ".group_0703": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", @@ -12194,16 +12259,16 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0698": ("WebhookReleaseCreatedType",), - ".group_0699": ("WebhookReleaseDeletedType",), - ".group_0700": ( + ".group_0704": ("WebhookReleaseCreatedType",), + ".group_0705": ("WebhookReleaseDeletedType",), + ".group_0706": ( "WebhookReleaseEditedType", "WebhookReleaseEditedPropChangesType", "WebhookReleaseEditedPropChangesPropBodyType", "WebhookReleaseEditedPropChangesPropNameType", "WebhookReleaseEditedPropChangesPropMakeLatestType", ), - ".group_0701": ( + ".group_0707": ( "WebhookReleasePrereleasedType", "WebhookReleasePrereleasedPropReleaseType", "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", @@ -12211,19 +12276,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthorType", "WebhookReleasePrereleasedPropReleasePropReactionsType", ), - ".group_0702": ("WebhookReleasePublishedType",), - ".group_0703": ("WebhookReleaseReleasedType",), - ".group_0704": ("WebhookReleaseUnpublishedType",), - ".group_0705": ("WebhookRepositoryAdvisoryPublishedType",), - ".group_0706": ("WebhookRepositoryAdvisoryReportedType",), - ".group_0707": ("WebhookRepositoryArchivedType",), - ".group_0708": ("WebhookRepositoryCreatedType",), - ".group_0709": ("WebhookRepositoryDeletedType",), - ".group_0710": ( + ".group_0708": ("WebhookReleasePublishedType",), + ".group_0709": ("WebhookReleaseReleasedType",), + ".group_0710": ("WebhookReleaseUnpublishedType",), + ".group_0711": ("WebhookRepositoryAdvisoryPublishedType",), + ".group_0712": ("WebhookRepositoryAdvisoryReportedType",), + ".group_0713": ("WebhookRepositoryArchivedType",), + ".group_0714": ("WebhookRepositoryCreatedType",), + ".group_0715": ("WebhookRepositoryDeletedType",), + ".group_0716": ( "WebhookRepositoryDispatchSampleType", "WebhookRepositoryDispatchSamplePropClientPayloadType", ), - ".group_0711": ( + ".group_0717": ( "WebhookRepositoryEditedType", "WebhookRepositoryEditedPropChangesType", "WebhookRepositoryEditedPropChangesPropDefaultBranchType", @@ -12231,25 +12296,25 @@ "WebhookRepositoryEditedPropChangesPropHomepageType", "WebhookRepositoryEditedPropChangesPropTopicsType", ), - ".group_0712": ("WebhookRepositoryImportType",), - ".group_0713": ("WebhookRepositoryPrivatizedType",), - ".group_0714": ("WebhookRepositoryPublicizedType",), - ".group_0715": ( + ".group_0718": ("WebhookRepositoryImportType",), + ".group_0719": ("WebhookRepositoryPrivatizedType",), + ".group_0720": ("WebhookRepositoryPublicizedType",), + ".group_0721": ( "WebhookRepositoryRenamedType", "WebhookRepositoryRenamedPropChangesType", "WebhookRepositoryRenamedPropChangesPropRepositoryType", "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ), - ".group_0716": ("WebhookRepositoryRulesetCreatedType",), - ".group_0717": ("WebhookRepositoryRulesetDeletedType",), - ".group_0718": ("WebhookRepositoryRulesetEditedType",), - ".group_0719": ( + ".group_0722": ("WebhookRepositoryRulesetCreatedType",), + ".group_0723": ("WebhookRepositoryRulesetDeletedType",), + ".group_0724": ("WebhookRepositoryRulesetEditedType",), + ".group_0725": ( "WebhookRepositoryRulesetEditedPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropNameType", "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", ), - ".group_0720": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), - ".group_0721": ( + ".group_0726": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), + ".group_0727": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", @@ -12257,15 +12322,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", ), - ".group_0722": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), - ".group_0723": ( + ".group_0728": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), + ".group_0729": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ), - ".group_0724": ( + ".group_0730": ( "WebhookRepositoryTransferredType", "WebhookRepositoryTransferredPropChangesType", "WebhookRepositoryTransferredPropChangesPropOwnerType", @@ -12273,21 +12338,21 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", ), - ".group_0725": ("WebhookRepositoryUnarchivedType",), - ".group_0726": ("WebhookRepositoryVulnerabilityAlertCreateType",), - ".group_0727": ( + ".group_0731": ("WebhookRepositoryUnarchivedType",), + ".group_0732": ("WebhookRepositoryVulnerabilityAlertCreateType",), + ".group_0733": ( "WebhookRepositoryVulnerabilityAlertDismissType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", ), - ".group_0728": ("WebhookRepositoryVulnerabilityAlertReopenType",), - ".group_0729": ( + ".group_0734": ("WebhookRepositoryVulnerabilityAlertReopenType",), + ".group_0735": ( "WebhookRepositoryVulnerabilityAlertResolveType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ), - ".group_0730": ("WebhookSecretScanningAlertCreatedType",), - ".group_0731": ( + ".group_0736": ("WebhookSecretScanningAlertCreatedType",), + ".group_0737": ( "WebhookSecretScanningAlertLocationCreatedType", "SecretScanningLocationType", "SecretScanningLocationCommitType", @@ -12304,16 +12369,16 @@ "SecretScanningLocationPullRequestReviewType", "SecretScanningLocationPullRequestReviewCommentType", ), - ".group_0732": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), - ".group_0733": ("WebhookSecretScanningAlertPubliclyLeakedType",), - ".group_0734": ("WebhookSecretScanningAlertReopenedType",), - ".group_0735": ("WebhookSecretScanningAlertResolvedType",), - ".group_0736": ("WebhookSecretScanningAlertValidatedType",), - ".group_0737": ("WebhookSecretScanningScanCompletedType",), - ".group_0738": ("WebhookSecurityAdvisoryPublishedType",), - ".group_0739": ("WebhookSecurityAdvisoryUpdatedType",), - ".group_0740": ("WebhookSecurityAdvisoryWithdrawnType",), - ".group_0741": ( + ".group_0738": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), + ".group_0739": ("WebhookSecretScanningAlertPubliclyLeakedType",), + ".group_0740": ("WebhookSecretScanningAlertReopenedType",), + ".group_0741": ("WebhookSecretScanningAlertResolvedType",), + ".group_0742": ("WebhookSecretScanningAlertValidatedType",), + ".group_0743": ("WebhookSecretScanningScanCompletedType",), + ".group_0744": ("WebhookSecurityAdvisoryPublishedType",), + ".group_0745": ("WebhookSecurityAdvisoryUpdatedType",), + ".group_0746": ("WebhookSecurityAdvisoryWithdrawnType",), + ".group_0747": ( "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", @@ -12323,22 +12388,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0742": ("WebhookSecurityAndAnalysisType",), - ".group_0743": ("WebhookSecurityAndAnalysisPropChangesType",), - ".group_0744": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), - ".group_0745": ("WebhookSponsorshipCancelledType",), - ".group_0746": ("WebhookSponsorshipCreatedType",), - ".group_0747": ( + ".group_0748": ("WebhookSecurityAndAnalysisType",), + ".group_0749": ("WebhookSecurityAndAnalysisPropChangesType",), + ".group_0750": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), + ".group_0751": ("WebhookSponsorshipCancelledType",), + ".group_0752": ("WebhookSponsorshipCreatedType",), + ".group_0753": ( "WebhookSponsorshipEditedType", "WebhookSponsorshipEditedPropChangesType", "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", ), - ".group_0748": ("WebhookSponsorshipPendingCancellationType",), - ".group_0749": ("WebhookSponsorshipPendingTierChangeType",), - ".group_0750": ("WebhookSponsorshipTierChangedType",), - ".group_0751": ("WebhookStarCreatedType",), - ".group_0752": ("WebhookStarDeletedType",), - ".group_0753": ( + ".group_0754": ("WebhookSponsorshipPendingCancellationType",), + ".group_0755": ("WebhookSponsorshipPendingTierChangeType",), + ".group_0756": ("WebhookSponsorshipTierChangedType",), + ".group_0757": ("WebhookStarCreatedType",), + ".group_0758": ("WebhookStarDeletedType",), + ".group_0759": ( "WebhookStatusType", "WebhookStatusPropBranchesItemsType", "WebhookStatusPropBranchesItemsPropCommitType", @@ -12352,16 +12417,16 @@ "WebhookStatusPropCommitPropCommitPropTreeType", "WebhookStatusPropCommitPropCommitPropVerificationType", ), - ".group_0754": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), - ".group_0755": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), - ".group_0756": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), - ".group_0757": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), - ".group_0758": ("WebhookSubIssuesParentIssueAddedType",), - ".group_0759": ("WebhookSubIssuesParentIssueRemovedType",), - ".group_0760": ("WebhookSubIssuesSubIssueAddedType",), - ".group_0761": ("WebhookSubIssuesSubIssueRemovedType",), - ".group_0762": ("WebhookTeamAddType",), - ".group_0763": ( + ".group_0760": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), + ".group_0761": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), + ".group_0762": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), + ".group_0763": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), + ".group_0764": ("WebhookSubIssuesParentIssueAddedType",), + ".group_0765": ("WebhookSubIssuesParentIssueRemovedType",), + ".group_0766": ("WebhookSubIssuesSubIssueAddedType",), + ".group_0767": ("WebhookSubIssuesSubIssueRemovedType",), + ".group_0768": ("WebhookTeamAddType",), + ".group_0769": ( "WebhookTeamAddedToRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", @@ -12369,7 +12434,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", ), - ".group_0764": ( + ".group_0770": ( "WebhookTeamCreatedType", "WebhookTeamCreatedPropRepositoryType", "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", @@ -12377,7 +12442,7 @@ "WebhookTeamCreatedPropRepositoryPropOwnerType", "WebhookTeamCreatedPropRepositoryPropPermissionsType", ), - ".group_0765": ( + ".group_0771": ( "WebhookTeamDeletedType", "WebhookTeamDeletedPropRepositoryType", "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", @@ -12385,7 +12450,7 @@ "WebhookTeamDeletedPropRepositoryPropOwnerType", "WebhookTeamDeletedPropRepositoryPropPermissionsType", ), - ".group_0766": ( + ".group_0772": ( "WebhookTeamEditedType", "WebhookTeamEditedPropRepositoryType", "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", @@ -12401,7 +12466,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", ), - ".group_0767": ( + ".group_0773": ( "WebhookTeamRemovedFromRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", @@ -12409,48 +12474,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", ), - ".group_0768": ("WebhookWatchStartedType",), - ".group_0769": ( + ".group_0774": ("WebhookWatchStartedType",), + ".group_0775": ( "WebhookWorkflowDispatchType", "WebhookWorkflowDispatchPropInputsType", ), - ".group_0770": ( + ".group_0776": ( "WebhookWorkflowJobCompletedType", "WebhookWorkflowJobCompletedPropWorkflowJobType", "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ), - ".group_0771": ( + ".group_0777": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0772": ( + ".group_0778": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0773": ( + ".group_0779": ( "WebhookWorkflowJobInProgressType", "WebhookWorkflowJobInProgressPropWorkflowJobType", "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", ), - ".group_0774": ( + ".group_0780": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0775": ( + ".group_0781": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0776": ( + ".group_0782": ( "WebhookWorkflowJobQueuedType", "WebhookWorkflowJobQueuedPropWorkflowJobType", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", ), - ".group_0777": ( + ".group_0783": ( "WebhookWorkflowJobWaitingType", "WebhookWorkflowJobWaitingPropWorkflowJobType", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", ), - ".group_0778": ( + ".group_0784": ( "WebhookWorkflowRunCompletedType", "WebhookWorkflowRunCompletedPropWorkflowRunType", "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", @@ -12469,7 +12534,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0779": ( + ".group_0785": ( "WebhookWorkflowRunInProgressType", "WebhookWorkflowRunInProgressPropWorkflowRunType", "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", @@ -12488,7 +12553,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0780": ( + ".group_0786": ( "WebhookWorkflowRunRequestedType", "WebhookWorkflowRunRequestedPropWorkflowRunType", "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", @@ -12507,251 +12572,274 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0781": ("AppManifestsCodeConversionsPostResponse201Type",), - ".group_0782": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), - ".group_0783": ("AppHookConfigPatchBodyType",), - ".group_0784": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), - ".group_0785": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), - ".group_0786": ("ApplicationsClientIdGrantDeleteBodyType",), - ".group_0787": ("ApplicationsClientIdTokenPostBodyType",), - ".group_0788": ("ApplicationsClientIdTokenDeleteBodyType",), - ".group_0789": ("ApplicationsClientIdTokenPatchBodyType",), - ".group_0790": ("ApplicationsClientIdTokenScopedPostBodyType",), - ".group_0791": ("EmojisGetResponse200Type",), - ".group_0792": ( + ".group_0787": ("AppManifestsCodeConversionsPostResponse201Type",), + ".group_0788": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), + ".group_0789": ("AppHookConfigPatchBodyType",), + ".group_0790": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), + ".group_0791": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), + ".group_0792": ("ApplicationsClientIdGrantDeleteBodyType",), + ".group_0793": ("ApplicationsClientIdTokenPostBodyType",), + ".group_0794": ("ApplicationsClientIdTokenDeleteBodyType",), + ".group_0795": ("ApplicationsClientIdTokenPatchBodyType",), + ".group_0796": ("ApplicationsClientIdTokenScopedPostBodyType",), + ".group_0797": ("EmojisGetResponse200Type",), + ".group_0798": ( "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", ), - ".group_0793": ( + ".group_0799": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", ), - ".group_0794": ( + ".group_0800": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0795": ( + ".group_0801": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0796": ( + ".group_0802": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0797": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",), - ".group_0798": ( + ".group_0803": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",), + ".group_0804": ( "GistsPostBodyType", "GistsPostBodyPropFilesType", ), - ".group_0799": ( + ".group_0805": ( "GistsGistIdGetResponse403Type", "GistsGistIdGetResponse403PropBlockType", ), - ".group_0800": ( + ".group_0806": ( "GistsGistIdPatchBodyType", "GistsGistIdPatchBodyPropFilesType", ), - ".group_0801": ("GistsGistIdCommentsPostBodyType",), - ".group_0802": ("GistsGistIdCommentsCommentIdPatchBodyType",), - ".group_0803": ("GistsGistIdStarGetResponse404Type",), - ".group_0804": ("InstallationRepositoriesGetResponse200Type",), - ".group_0805": ("MarkdownPostBodyType",), - ".group_0806": ("NotificationsPutBodyType",), - ".group_0807": ("NotificationsPutResponse202Type",), - ".group_0808": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), - ".group_0809": ("OrgsOrgPatchBodyType",), - ".group_0810": ( + ".group_0807": ("GistsGistIdCommentsPostBodyType",), + ".group_0808": ("GistsGistIdCommentsCommentIdPatchBodyType",), + ".group_0809": ("GistsGistIdStarGetResponse404Type",), + ".group_0810": ("InstallationRepositoriesGetResponse200Type",), + ".group_0811": ("MarkdownPostBodyType",), + ".group_0812": ("NotificationsPutBodyType",), + ".group_0813": ("NotificationsPutResponse202Type",), + ".group_0814": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), + ".group_0815": ("OrgsOrgPatchBodyType",), + ".group_0816": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", "ActionsCacheUsageByRepositoryType", ), - ".group_0811": ("OrgsOrgActionsPermissionsPutBodyType",), - ".group_0812": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), - ".group_0813": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), - ".group_0814": ( + ".group_0817": ("OrgsOrgActionsHostedRunnersGetResponse200Type",), + ".group_0818": ( + "OrgsOrgActionsHostedRunnersPostBodyType", + "OrgsOrgActionsHostedRunnersPostBodyPropImageType", + ), + ".group_0819": ( + "OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type", + ), + ".group_0820": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",), + ".group_0821": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",), + ".group_0822": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",), + ".group_0823": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",), + ".group_0824": ("OrgsOrgActionsPermissionsPutBodyType",), + ".group_0825": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), + ".group_0826": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), + ".group_0827": ( "OrgsOrgActionsRunnerGroupsGetResponse200Type", "RunnerGroupsOrgType", ), - ".group_0815": ("OrgsOrgActionsRunnerGroupsPostBodyType",), - ".group_0816": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), - ".group_0817": ( + ".group_0828": ("OrgsOrgActionsRunnerGroupsPostBodyType",), + ".group_0829": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), + ".group_0830": ( + "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type", + ), + ".group_0831": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type", ), - ".group_0818": ( + ".group_0832": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType", ), - ".group_0819": ( + ".group_0833": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0820": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), - ".group_0821": ("OrgsOrgActionsRunnersGetResponse200Type",), - ".group_0822": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0823": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",), - ".group_0824": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",), - ".group_0825": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0826": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0827": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",), - ".group_0828": ( + ".group_0834": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), + ".group_0835": ("OrgsOrgActionsRunnersGetResponse200Type",), + ".group_0836": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0837": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",), + ".group_0838": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",), + ".group_0839": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0840": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0841": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",), + ".group_0842": ( "OrgsOrgActionsSecretsGetResponse200Type", "OrganizationActionsSecretType", ), - ".group_0829": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), - ".group_0830": ( + ".group_0843": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), + ".group_0844": ( "OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0831": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), - ".group_0832": ( + ".group_0845": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), + ".group_0846": ( "OrgsOrgActionsVariablesGetResponse200Type", "OrganizationActionsVariableType", ), - ".group_0833": ("OrgsOrgActionsVariablesPostBodyType",), - ".group_0834": ("OrgsOrgActionsVariablesNamePatchBodyType",), - ".group_0835": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), - ".group_0836": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), - ".group_0837": ( + ".group_0847": ("OrgsOrgActionsVariablesPostBodyType",), + ".group_0848": ("OrgsOrgActionsVariablesNamePatchBodyType",), + ".group_0849": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), + ".group_0850": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), + ".group_0851": ( "OrgsOrgAttestationsSubjectDigestGetResponse200Type", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_0838": ( + ".group_0852": ( "OrgsOrgCodeSecurityConfigurationsPostBodyType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0839": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), - ".group_0840": ( + ".group_0853": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), + ".group_0854": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0841": ( + ".group_0855": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0842": ( + ".group_0856": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0843": ( + ".group_0857": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0844": ("OrgsOrgCodespacesGetResponse200Type",), - ".group_0845": ("OrgsOrgCodespacesAccessPutBodyType",), - ".group_0846": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), - ".group_0847": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), - ".group_0848": ( + ".group_0858": ("OrgsOrgCodespacesGetResponse200Type",), + ".group_0859": ("OrgsOrgCodespacesAccessPutBodyType",), + ".group_0860": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), + ".group_0861": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), + ".group_0862": ( "OrgsOrgCodespacesSecretsGetResponse200Type", "CodespacesOrgSecretType", ), - ".group_0849": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), - ".group_0850": ( + ".group_0863": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), + ".group_0864": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0851": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_0852": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), - ".group_0853": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), - ".group_0854": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), - ".group_0855": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), - ".group_0856": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), - ".group_0857": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), - ".group_0858": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), - ".group_0859": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), - ".group_0860": ( + ".group_0865": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_0866": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), + ".group_0867": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), + ".group_0868": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), + ".group_0869": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), + ".group_0870": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), + ".group_0871": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), + ".group_0872": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), + ".group_0873": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), + ".group_0874": ( "OrgsOrgDependabotSecretsGetResponse200Type", "OrganizationDependabotSecretType", ), - ".group_0861": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), - ".group_0862": ( + ".group_0875": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), + ".group_0876": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0863": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), - ".group_0864": ( + ".group_0877": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), + ".group_0878": ( "OrgsOrgHooksPostBodyType", "OrgsOrgHooksPostBodyPropConfigType", ), - ".group_0865": ( + ".group_0879": ( "OrgsOrgHooksHookIdPatchBodyType", "OrgsOrgHooksHookIdPatchBodyPropConfigType", ), - ".group_0866": ("OrgsOrgHooksHookIdConfigPatchBodyType",), - ".group_0867": ("OrgsOrgInstallationsGetResponse200Type",), - ".group_0868": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), - ".group_0869": ("OrgsOrgInvitationsPostBodyType",), - ".group_0870": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), - ".group_0871": ("OrgsOrgMembershipsUsernamePutBodyType",), - ".group_0872": ("OrgsOrgMigrationsPostBodyType",), - ".group_0873": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), - ".group_0874": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), - ".group_0875": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), - ".group_0876": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), - ".group_0877": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), - ".group_0878": ("OrgsOrgPersonalAccessTokensPostBodyType",), - ".group_0879": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), - ".group_0880": ( + ".group_0880": ("OrgsOrgHooksHookIdConfigPatchBodyType",), + ".group_0881": ("OrgsOrgInstallationsGetResponse200Type",), + ".group_0882": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), + ".group_0883": ("OrgsOrgInvitationsPostBodyType",), + ".group_0884": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), + ".group_0885": ("OrgsOrgMembershipsUsernamePutBodyType",), + ".group_0886": ("OrgsOrgMigrationsPostBodyType",), + ".group_0887": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), + ".group_0888": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), + ".group_0889": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), + ".group_0890": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), + ".group_0891": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), + ".group_0892": ("OrgsOrgPersonalAccessTokensPostBodyType",), + ".group_0893": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), + ".group_0894": ( "OrgsOrgPrivateRegistriesGetResponse200Type", "OrgPrivateRegistryConfigurationType", ), - ".group_0881": ("OrgsOrgPrivateRegistriesPostBodyType",), - ".group_0882": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",), - ".group_0883": ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",), - ".group_0884": ("OrgsOrgProjectsPostBodyType",), - ".group_0885": ("OrgsOrgPropertiesSchemaPatchBodyType",), - ".group_0886": ("OrgsOrgPropertiesValuesPatchBodyType",), - ".group_0887": ( + ".group_0895": ("OrgsOrgPrivateRegistriesPostBodyType",), + ".group_0896": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",), + ".group_0897": ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",), + ".group_0898": ("OrgsOrgProjectsPostBodyType",), + ".group_0899": ("OrgsOrgPropertiesSchemaPatchBodyType",), + ".group_0900": ("OrgsOrgPropertiesValuesPatchBodyType",), + ".group_0901": ( "OrgsOrgReposPostBodyType", "OrgsOrgReposPostBodyPropCustomPropertiesType", ), - ".group_0888": ("OrgsOrgRulesetsPostBodyType",), - ".group_0889": ("OrgsOrgRulesetsRulesetIdPutBodyType",), - ".group_0890": ("OrgsOrgTeamsPostBodyType",), - ".group_0891": ("OrgsOrgTeamsTeamSlugPatchBodyType",), - ".group_0892": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), - ".group_0893": ( + ".group_0902": ("OrgsOrgRulesetsPostBodyType",), + ".group_0903": ("OrgsOrgRulesetsRulesetIdPutBodyType",), + ".group_0904": ( + "OrgsOrgSettingsNetworkConfigurationsGetResponse200Type", + "NetworkConfigurationType", + ), + ".group_0905": ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",), + ".group_0906": ( + "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType", + ), + ".group_0907": ("OrgsOrgTeamsPostBodyType",), + ".group_0908": ("OrgsOrgTeamsTeamSlugPatchBodyType",), + ".group_0909": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), + ".group_0910": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType", ), - ".group_0894": ( + ".group_0911": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType", ), - ".group_0895": ( + ".group_0912": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_0896": ( + ".group_0913": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_0897": ( + ".group_0914": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType", ), - ".group_0898": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), - ".group_0899": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), - ".group_0900": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), - ".group_0901": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), - ".group_0902": ("OrgsOrgSecurityProductEnablementPostBodyType",), - ".group_0903": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), - ".group_0904": ("ProjectsColumnsCardsCardIdPatchBodyType",), - ".group_0905": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), - ".group_0906": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), - ".group_0907": ( + ".group_0915": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), + ".group_0916": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), + ".group_0917": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), + ".group_0918": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), + ".group_0919": ("OrgsOrgSecurityProductEnablementPostBodyType",), + ".group_0920": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), + ".group_0921": ("ProjectsColumnsCardsCardIdPatchBodyType",), + ".group_0922": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), + ".group_0923": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), + ".group_0924": ( "ProjectsColumnsCardsCardIdMovesPostResponse403Type", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ), - ".group_0908": ( + ".group_0925": ( "ProjectsColumnsCardsCardIdMovesPostResponse503Type", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ), - ".group_0909": ("ProjectsColumnsColumnIdPatchBodyType",), - ".group_0910": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), - ".group_0911": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), - ".group_0912": ( + ".group_0926": ("ProjectsColumnsColumnIdPatchBodyType",), + ".group_0927": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), + ".group_0928": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), + ".group_0929": ( "ProjectsColumnsColumnIdCardsPostResponse503Type", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ), - ".group_0913": ("ProjectsColumnsColumnIdMovesPostBodyType",), - ".group_0914": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), - ".group_0915": ("ProjectsProjectIdDeleteResponse403Type",), - ".group_0916": ("ProjectsProjectIdPatchBodyType",), - ".group_0917": ("ProjectsProjectIdPatchResponse403Type",), - ".group_0918": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), - ".group_0919": ("ProjectsProjectIdColumnsPostBodyType",), - ".group_0920": ("ReposOwnerRepoDeleteResponse403Type",), - ".group_0921": ( + ".group_0930": ("ProjectsColumnsColumnIdMovesPostBodyType",), + ".group_0931": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), + ".group_0932": ("ProjectsProjectIdDeleteResponse403Type",), + ".group_0933": ("ProjectsProjectIdPatchBodyType",), + ".group_0934": ("ProjectsProjectIdPatchResponse403Type",), + ".group_0935": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), + ".group_0936": ("ProjectsProjectIdColumnsPostBodyType",), + ".group_0937": ("ReposOwnerRepoDeleteResponse403Type",), + ".group_0938": ( "ReposOwnerRepoPatchBodyType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", @@ -12760,61 +12848,61 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", ), - ".group_0922": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), - ".group_0923": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), - ".group_0924": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), - ".group_0925": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), - ".group_0926": ( + ".group_0939": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), + ".group_0940": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), + ".group_0941": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), + ".group_0942": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), + ".group_0943": ( "ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type", ), - ".group_0927": ("ReposOwnerRepoActionsPermissionsPutBodyType",), - ".group_0928": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), - ".group_0929": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0930": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0931": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0932": ("ReposOwnerRepoActionsRunsGetResponse200Type",), - ".group_0933": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), - ".group_0934": ( + ".group_0944": ("ReposOwnerRepoActionsPermissionsPutBodyType",), + ".group_0945": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), + ".group_0946": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0947": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0948": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0949": ("ReposOwnerRepoActionsRunsGetResponse200Type",), + ".group_0950": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), + ".group_0951": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type", ), - ".group_0935": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), - ".group_0936": ( + ".group_0952": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), + ".group_0953": ( "ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType", ), - ".group_0937": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), - ".group_0938": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), - ".group_0939": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), - ".group_0940": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), - ".group_0941": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), - ".group_0942": ("ReposOwnerRepoActionsVariablesPostBodyType",), - ".group_0943": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), - ".group_0944": ( + ".group_0954": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), + ".group_0955": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), + ".group_0956": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), + ".group_0957": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), + ".group_0958": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), + ".group_0959": ("ReposOwnerRepoActionsVariablesPostBodyType",), + ".group_0960": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), + ".group_0961": ( "ReposOwnerRepoActionsWorkflowsGetResponse200Type", "WorkflowType", ), - ".group_0945": ( + ".group_0962": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ), - ".group_0946": ( + ".group_0963": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", ), - ".group_0947": ( + ".group_0964": ( "ReposOwnerRepoAttestationsPostBodyType", "ReposOwnerRepoAttestationsPostBodyPropBundleType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", ), - ".group_0948": ("ReposOwnerRepoAttestationsPostResponse201Type",), - ".group_0949": ( + ".group_0965": ("ReposOwnerRepoAttestationsPostResponse201Type",), + ".group_0966": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_0950": ("ReposOwnerRepoAutolinksPostBodyType",), - ".group_0951": ( + ".group_0967": ("ReposOwnerRepoAutolinksPostBodyType",), + ".group_0968": ( "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", @@ -12823,354 +12911,354 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ), - ".group_0952": ( + ".group_0969": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ), - ".group_0953": ( + ".group_0970": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ), - ".group_0954": ( + ".group_0971": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ), - ".group_0955": ( + ".group_0972": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ), - ".group_0956": ( + ".group_0973": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ), - ".group_0957": ( + ".group_0974": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType", ), - ".group_0958": ( + ".group_0975": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType", ), - ".group_0959": ( + ".group_0976": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType", ), - ".group_0960": ( + ".group_0977": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type", ), - ".group_0961": ( + ".group_0978": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type", ), - ".group_0962": ( + ".group_0979": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ), - ".group_0963": ( + ".group_0980": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType", ), - ".group_0964": ( + ".group_0981": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType", ), - ".group_0965": ( + ".group_0982": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType", ), - ".group_0966": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), - ".group_0967": ( + ".group_0983": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), + ".group_0984": ( "ReposOwnerRepoCheckRunsPostBodyPropOutputType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ), - ".group_0968": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), - ".group_0969": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), - ".group_0970": ( + ".group_0985": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), + ".group_0986": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), + ".group_0987": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", ), - ".group_0971": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), - ".group_0972": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), - ".group_0973": ("ReposOwnerRepoCheckSuitesPostBodyType",), - ".group_0974": ( + ".group_0988": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), + ".group_0989": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), + ".group_0990": ("ReposOwnerRepoCheckSuitesPostBodyType",), + ".group_0991": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ), - ".group_0975": ( + ".group_0992": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type", ), - ".group_0976": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), - ".group_0977": ( + ".group_0993": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), + ".group_0994": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type", ), - ".group_0978": ( + ".group_0995": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type", ), - ".group_0979": ( + ".group_0996": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type", ), - ".group_0980": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), - ".group_0981": ("ReposOwnerRepoCodespacesGetResponse200Type",), - ".group_0982": ("ReposOwnerRepoCodespacesPostBodyType",), - ".group_0983": ( + ".group_0997": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), + ".group_0998": ("ReposOwnerRepoCodespacesGetResponse200Type",), + ".group_0999": ("ReposOwnerRepoCodespacesPostBodyType",), + ".group_1000": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ), - ".group_0984": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), - ".group_0985": ( + ".group_1001": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), + ".group_1002": ( "ReposOwnerRepoCodespacesNewGetResponse200Type", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ), - ".group_0986": ( + ".group_1003": ( "ReposOwnerRepoCodespacesSecretsGetResponse200Type", "RepoCodespacesSecretType", ), - ".group_0987": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), - ".group_0988": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), - ".group_0989": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), - ".group_0990": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), - ".group_0991": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), - ".group_0992": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), - ".group_0993": ( + ".group_1004": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), + ".group_1005": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), + ".group_1006": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), + ".group_1007": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), + ".group_1008": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), + ".group_1009": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), + ".group_1010": ( "ReposOwnerRepoContentsPathPutBodyType", "ReposOwnerRepoContentsPathPutBodyPropCommitterType", "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ), - ".group_0994": ( + ".group_1011": ( "ReposOwnerRepoContentsPathDeleteBodyType", "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ), - ".group_0995": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), - ".group_0996": ( + ".group_1012": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), + ".group_1013": ( "ReposOwnerRepoDependabotSecretsGetResponse200Type", "DependabotSecretType", ), - ".group_0997": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), - ".group_0998": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), - ".group_0999": ( + ".group_1014": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), + ".group_1015": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), + ".group_1016": ( "ReposOwnerRepoDeploymentsPostBodyType", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ), - ".group_1000": ("ReposOwnerRepoDeploymentsPostResponse202Type",), - ".group_1001": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), - ".group_1002": ( + ".group_1017": ("ReposOwnerRepoDeploymentsPostResponse202Type",), + ".group_1018": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), + ".group_1019": ( "ReposOwnerRepoDispatchesPostBodyType", "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ), - ".group_1003": ( + ".group_1020": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ), - ".group_1004": ( + ".group_1021": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", "DeploymentBranchPolicyType", ), - ".group_1005": ( + ".group_1022": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ), - ".group_1006": ( + ".group_1023": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ), - ".group_1007": ( + ".group_1024": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type", ), - ".group_1008": ( + ".group_1025": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType", ), - ".group_1009": ( + ".group_1026": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type", ), - ".group_1010": ( + ".group_1027": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType", ), - ".group_1011": ( + ".group_1028": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType", ), - ".group_1012": ("ReposOwnerRepoForksPostBodyType",), - ".group_1013": ("ReposOwnerRepoGitBlobsPostBodyType",), - ".group_1014": ( + ".group_1029": ("ReposOwnerRepoForksPostBodyType",), + ".group_1030": ("ReposOwnerRepoGitBlobsPostBodyType",), + ".group_1031": ( "ReposOwnerRepoGitCommitsPostBodyType", "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", ), - ".group_1015": ("ReposOwnerRepoGitRefsPostBodyType",), - ".group_1016": ("ReposOwnerRepoGitRefsRefPatchBodyType",), - ".group_1017": ( + ".group_1032": ("ReposOwnerRepoGitRefsPostBodyType",), + ".group_1033": ("ReposOwnerRepoGitRefsRefPatchBodyType",), + ".group_1034": ( "ReposOwnerRepoGitTagsPostBodyType", "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ), - ".group_1018": ( + ".group_1035": ( "ReposOwnerRepoGitTreesPostBodyType", "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ), - ".group_1019": ( + ".group_1036": ( "ReposOwnerRepoHooksPostBodyType", "ReposOwnerRepoHooksPostBodyPropConfigType", ), - ".group_1020": ("ReposOwnerRepoHooksHookIdPatchBodyType",), - ".group_1021": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), - ".group_1022": ("ReposOwnerRepoImportPutBodyType",), - ".group_1023": ("ReposOwnerRepoImportPatchBodyType",), - ".group_1024": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), - ".group_1025": ("ReposOwnerRepoImportLfsPatchBodyType",), - ".group_1026": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), - ".group_1027": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), - ".group_1028": ( + ".group_1037": ("ReposOwnerRepoHooksHookIdPatchBodyType",), + ".group_1038": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), + ".group_1039": ("ReposOwnerRepoImportPutBodyType",), + ".group_1040": ("ReposOwnerRepoImportPatchBodyType",), + ".group_1041": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), + ".group_1042": ("ReposOwnerRepoImportLfsPatchBodyType",), + ".group_1043": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), + ".group_1044": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), + ".group_1045": ( "ReposOwnerRepoIssuesPostBodyType", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", ), - ".group_1029": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), - ".group_1030": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), - ".group_1031": ( + ".group_1046": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), + ".group_1047": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), + ".group_1048": ( "ReposOwnerRepoIssuesIssueNumberPatchBodyType", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", ), - ".group_1032": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), - ".group_1033": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), - ".group_1034": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), - ".group_1035": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), - ".group_1036": ( + ".group_1049": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), + ".group_1050": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), + ".group_1051": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), + ".group_1052": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), + ".group_1053": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", ), - ".group_1037": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), - ".group_1038": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), - ".group_1039": ( + ".group_1054": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), + ".group_1055": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), + ".group_1056": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", ), - ".group_1040": ( + ".group_1057": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType", ), - ".group_1041": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), - ".group_1042": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), - ".group_1043": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",), - ".group_1044": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",), - ".group_1045": ( + ".group_1058": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), + ".group_1059": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), + ".group_1060": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",), + ".group_1061": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",), + ".group_1062": ( "ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType", ), - ".group_1046": ("ReposOwnerRepoKeysPostBodyType",), - ".group_1047": ("ReposOwnerRepoLabelsPostBodyType",), - ".group_1048": ("ReposOwnerRepoLabelsNamePatchBodyType",), - ".group_1049": ("ReposOwnerRepoMergeUpstreamPostBodyType",), - ".group_1050": ("ReposOwnerRepoMergesPostBodyType",), - ".group_1051": ("ReposOwnerRepoMilestonesPostBodyType",), - ".group_1052": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), - ".group_1053": ("ReposOwnerRepoNotificationsPutBodyType",), - ".group_1054": ("ReposOwnerRepoNotificationsPutResponse202Type",), - ".group_1055": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), - ".group_1056": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), - ".group_1057": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), - ".group_1058": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), - ".group_1059": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), - ".group_1060": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), - ".group_1061": ("ReposOwnerRepoPagesPostBodyPropSourceType",), - ".group_1062": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), - ".group_1063": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), - ".group_1064": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), - ".group_1065": ( + ".group_1063": ("ReposOwnerRepoKeysPostBodyType",), + ".group_1064": ("ReposOwnerRepoLabelsPostBodyType",), + ".group_1065": ("ReposOwnerRepoLabelsNamePatchBodyType",), + ".group_1066": ("ReposOwnerRepoMergeUpstreamPostBodyType",), + ".group_1067": ("ReposOwnerRepoMergesPostBodyType",), + ".group_1068": ("ReposOwnerRepoMilestonesPostBodyType",), + ".group_1069": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), + ".group_1070": ("ReposOwnerRepoNotificationsPutBodyType",), + ".group_1071": ("ReposOwnerRepoNotificationsPutResponse202Type",), + ".group_1072": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), + ".group_1073": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), + ".group_1074": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), + ".group_1075": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), + ".group_1076": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), + ".group_1077": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), + ".group_1078": ("ReposOwnerRepoPagesPostBodyPropSourceType",), + ".group_1079": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), + ".group_1080": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), + ".group_1081": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), + ".group_1082": ( "ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type", ), - ".group_1066": ("ReposOwnerRepoProjectsPostBodyType",), - ".group_1067": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), - ".group_1068": ("ReposOwnerRepoPullsPostBodyType",), - ".group_1069": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), - ".group_1070": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), - ".group_1071": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), - ".group_1072": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), - ".group_1073": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), - ".group_1074": ( + ".group_1083": ("ReposOwnerRepoProjectsPostBodyType",), + ".group_1084": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), + ".group_1085": ("ReposOwnerRepoPullsPostBodyType",), + ".group_1086": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), + ".group_1087": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), + ".group_1088": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), + ".group_1089": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), + ".group_1090": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), + ".group_1091": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType", ), - ".group_1075": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), - ".group_1076": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), - ".group_1077": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), - ".group_1078": ( + ".group_1092": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), + ".group_1093": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), + ".group_1094": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), + ".group_1095": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type", ), - ".group_1079": ( + ".group_1096": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type", ), - ".group_1080": ( + ".group_1097": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType", ), - ".group_1081": ( + ".group_1098": ( "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ), - ".group_1082": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), - ".group_1083": ( + ".group_1099": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), + ".group_1100": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType", ), - ".group_1084": ( + ".group_1101": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType", ), - ".group_1085": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), - ".group_1086": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), - ".group_1087": ("ReposOwnerRepoReleasesPostBodyType",), - ".group_1088": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), - ".group_1089": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), - ".group_1090": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), - ".group_1091": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), - ".group_1092": ("ReposOwnerRepoRulesetsPostBodyType",), - ".group_1093": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), - ".group_1094": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), - ".group_1095": ( + ".group_1102": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), + ".group_1103": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), + ".group_1104": ("ReposOwnerRepoReleasesPostBodyType",), + ".group_1105": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), + ".group_1106": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), + ".group_1107": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), + ".group_1108": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), + ".group_1109": ("ReposOwnerRepoRulesetsPostBodyType",), + ".group_1110": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), + ".group_1111": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), + ".group_1112": ( "ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType", ), - ".group_1096": ("ReposOwnerRepoStatusesShaPostBodyType",), - ".group_1097": ("ReposOwnerRepoSubscriptionPutBodyType",), - ".group_1098": ("ReposOwnerRepoTagsProtectionPostBodyType",), - ".group_1099": ("ReposOwnerRepoTopicsPutBodyType",), - ".group_1100": ("ReposOwnerRepoTransferPostBodyType",), - ".group_1101": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), - ".group_1102": ("TeamsTeamIdPatchBodyType",), - ".group_1103": ("TeamsTeamIdDiscussionsPostBodyType",), - ".group_1104": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), - ".group_1105": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), - ".group_1106": ( + ".group_1113": ("ReposOwnerRepoStatusesShaPostBodyType",), + ".group_1114": ("ReposOwnerRepoSubscriptionPutBodyType",), + ".group_1115": ("ReposOwnerRepoTagsProtectionPostBodyType",), + ".group_1116": ("ReposOwnerRepoTopicsPutBodyType",), + ".group_1117": ("ReposOwnerRepoTransferPostBodyType",), + ".group_1118": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), + ".group_1119": ("TeamsTeamIdPatchBodyType",), + ".group_1120": ("TeamsTeamIdDiscussionsPostBodyType",), + ".group_1121": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), + ".group_1122": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), + ".group_1123": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1107": ( + ".group_1124": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1108": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), - ".group_1109": ("TeamsTeamIdMembershipsUsernamePutBodyType",), - ".group_1110": ("TeamsTeamIdProjectsProjectIdPutBodyType",), - ".group_1111": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), - ".group_1112": ("TeamsTeamIdReposOwnerRepoPutBodyType",), - ".group_1113": ("UserPatchBodyType",), - ".group_1114": ("UserCodespacesGetResponse200Type",), - ".group_1115": ("UserCodespacesPostBodyOneof0Type",), - ".group_1116": ( + ".group_1125": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), + ".group_1126": ("TeamsTeamIdMembershipsUsernamePutBodyType",), + ".group_1127": ("TeamsTeamIdProjectsProjectIdPutBodyType",), + ".group_1128": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), + ".group_1129": ("TeamsTeamIdReposOwnerRepoPutBodyType",), + ".group_1130": ("UserPatchBodyType",), + ".group_1131": ("UserCodespacesGetResponse200Type",), + ".group_1132": ("UserCodespacesPostBodyOneof0Type",), + ".group_1133": ( "UserCodespacesPostBodyOneof1Type", "UserCodespacesPostBodyOneof1PropPullRequestType", ), - ".group_1117": ( + ".group_1134": ( "UserCodespacesSecretsGetResponse200Type", "CodespacesSecretType", ), - ".group_1118": ("UserCodespacesSecretsSecretNamePutBodyType",), - ".group_1119": ( + ".group_1135": ("UserCodespacesSecretsSecretNamePutBodyType",), + ".group_1136": ( "UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1120": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1121": ("UserCodespacesCodespaceNamePatchBodyType",), - ".group_1122": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), - ".group_1123": ("UserCodespacesCodespaceNamePublishPostBodyType",), - ".group_1124": ("UserEmailVisibilityPatchBodyType",), - ".group_1125": ("UserEmailsPostBodyOneof0Type",), - ".group_1126": ("UserEmailsDeleteBodyOneof0Type",), - ".group_1127": ("UserGpgKeysPostBodyType",), - ".group_1128": ("UserInstallationsGetResponse200Type",), - ".group_1129": ( + ".group_1137": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1138": ("UserCodespacesCodespaceNamePatchBodyType",), + ".group_1139": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), + ".group_1140": ("UserCodespacesCodespaceNamePublishPostBodyType",), + ".group_1141": ("UserEmailVisibilityPatchBodyType",), + ".group_1142": ("UserEmailsPostBodyOneof0Type",), + ".group_1143": ("UserEmailsDeleteBodyOneof0Type",), + ".group_1144": ("UserGpgKeysPostBodyType",), + ".group_1145": ("UserInstallationsGetResponse200Type",), + ".group_1146": ( "UserInstallationsInstallationIdRepositoriesGetResponse200Type", ), - ".group_1130": ("UserInteractionLimitsGetResponse200Anyof1Type",), - ".group_1131": ("UserKeysPostBodyType",), - ".group_1132": ("UserMembershipsOrgsOrgPatchBodyType",), - ".group_1133": ("UserMigrationsPostBodyType",), - ".group_1134": ("UserProjectsPostBodyType",), - ".group_1135": ("UserReposPostBodyType",), - ".group_1136": ("UserSocialAccountsPostBodyType",), - ".group_1137": ("UserSocialAccountsDeleteBodyType",), - ".group_1138": ("UserSshSigningKeysPostBodyType",), - ".group_1139": ( + ".group_1147": ("UserInteractionLimitsGetResponse200Anyof1Type",), + ".group_1148": ("UserKeysPostBodyType",), + ".group_1149": ("UserMembershipsOrgsOrgPatchBodyType",), + ".group_1150": ("UserMigrationsPostBodyType",), + ".group_1151": ("UserProjectsPostBodyType",), + ".group_1152": ("UserReposPostBodyType",), + ".group_1153": ("UserSocialAccountsPostBodyType",), + ".group_1154": ("UserSocialAccountsDeleteBodyType",), + ".group_1155": ("UserSshSigningKeysPostBodyType",), + ".group_1156": ( "UsersUsernameAttestationsSubjectDigestGetResponse200Type", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "SigstoreBundle0Type", diff --git a/githubkit/versions/v2022_11_28/types/group_0002.py b/githubkit/versions/v2022_11_28/types/group_0002.py index fa76723f3..a5bd8643f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0002.py +++ b/githubkit/versions/v2022_11_28/types/group_0002.py @@ -9,38 +9,18 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class SimpleUserType(TypedDict): - """Simple User +class SecurityAdvisoryEpssType(TypedDict): + """SecurityAdvisoryEpss - A GitHub user. + The EPSS scores as calculated by the [Exploit Prediction Scoring + System](https://www.first.org/epss). """ - name: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - starred_at: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("SimpleUserType",) + percentage: NotRequired[float] + percentile: NotRequired[float] + + +__all__ = ("SecurityAdvisoryEpssType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0003.py b/githubkit/versions/v2022_11_28/types/group_0003.py index 887570d73..fa76723f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0003.py +++ b/githubkit/versions/v2022_11_28/types/group_0003.py @@ -9,116 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType -from .group_0004 import GlobalAdvisoryPropCreditsItemsType +class SimpleUserType(TypedDict): + """Simple User -class GlobalAdvisoryType(TypedDict): - """GlobalAdvisory - - A GitHub Security Advisory. + A GitHub user. """ - ghsa_id: str - cve_id: Union[str, None] + name: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + login: str + id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] url: str html_url: str - repository_advisory_url: Union[str, None] - summary: str - description: Union[str, None] - type: Literal["reviewed", "unreviewed", "malware"] - severity: Literal["critical", "high", "medium", "low", "unknown"] - source_code_location: Union[str, None] - identifiers: Union[list[GlobalAdvisoryPropIdentifiersItemsType], None] - references: Union[list[str], None] - published_at: datetime - updated_at: datetime - github_reviewed_at: Union[datetime, None] - nvd_published_at: Union[datetime, None] - withdrawn_at: Union[datetime, None] - vulnerabilities: Union[list[VulnerabilityType], None] - cvss: Union[GlobalAdvisoryPropCvssType, None] - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: Union[list[GlobalAdvisoryPropCwesItemsType], None] - epss: NotRequired[Union[GlobalAdvisoryPropEpssType, None]] - credits_: Union[list[GlobalAdvisoryPropCreditsItemsType], None] - - -class GlobalAdvisoryPropIdentifiersItemsType(TypedDict): - """GlobalAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] - value: str - - -class GlobalAdvisoryPropCvssType(TypedDict): - """GlobalAdvisoryPropCvss""" - - vector_string: Union[str, None] - score: Union[float, None] - - -class GlobalAdvisoryPropCwesItemsType(TypedDict): - """GlobalAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class GlobalAdvisoryPropEpssType(TypedDict): - """GlobalAdvisoryPropEpss""" - - percentage: NotRequired[float] - percentile: NotRequired[float] - - -class VulnerabilityType(TypedDict): - """Vulnerability - - A vulnerability describing the product and its affected versions within a GitHub - Security Advisory. - """ - - package: Union[VulnerabilityPropPackageType, None] - vulnerable_version_range: Union[str, None] - first_patched_version: Union[str, None] - vulnerable_functions: Union[list[str], None] - - -class VulnerabilityPropPackageType(TypedDict): - """VulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: Union[str, None] - - -__all__ = ( - "GlobalAdvisoryPropCvssType", - "GlobalAdvisoryPropCwesItemsType", - "GlobalAdvisoryPropEpssType", - "GlobalAdvisoryPropIdentifiersItemsType", - "GlobalAdvisoryType", - "VulnerabilityPropPackageType", - "VulnerabilityType", -) + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + starred_at: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("SimpleUserType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0004.py b/githubkit/versions/v2022_11_28/types/group_0004.py index 95c9a2b1d..35cc5758c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0004.py +++ b/githubkit/versions/v2022_11_28/types/group_0004.py @@ -9,28 +9,109 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict - -from .group_0002 import SimpleUserType - - -class GlobalAdvisoryPropCreditsItemsType(TypedDict): - """GlobalAdvisoryPropCreditsItems""" - - user: SimpleUserType - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0001 import CvssSeveritiesType +from .group_0002 import SecurityAdvisoryEpssType +from .group_0005 import GlobalAdvisoryPropCreditsItemsType + + +class GlobalAdvisoryType(TypedDict): + """GlobalAdvisory + + A GitHub Security Advisory. + """ + + ghsa_id: str + cve_id: Union[str, None] + url: str + html_url: str + repository_advisory_url: Union[str, None] + summary: str + description: Union[str, None] + type: Literal["reviewed", "unreviewed", "malware"] + severity: Literal["critical", "high", "medium", "low", "unknown"] + source_code_location: Union[str, None] + identifiers: Union[list[GlobalAdvisoryPropIdentifiersItemsType], None] + references: Union[list[str], None] + published_at: datetime + updated_at: datetime + github_reviewed_at: Union[datetime, None] + nvd_published_at: Union[datetime, None] + withdrawn_at: Union[datetime, None] + vulnerabilities: Union[list[VulnerabilityType], None] + cvss: Union[GlobalAdvisoryPropCvssType, None] + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + epss: NotRequired[Union[SecurityAdvisoryEpssType, None]] + cwes: Union[list[GlobalAdvisoryPropCwesItemsType], None] + credits_: Union[list[GlobalAdvisoryPropCreditsItemsType], None] + + +class GlobalAdvisoryPropIdentifiersItemsType(TypedDict): + """GlobalAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] + value: str + + +class GlobalAdvisoryPropCvssType(TypedDict): + """GlobalAdvisoryPropCvss""" + + vector_string: Union[str, None] + score: Union[float, None] + + +class GlobalAdvisoryPropCwesItemsType(TypedDict): + """GlobalAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class VulnerabilityType(TypedDict): + """Vulnerability + + A vulnerability describing the product and its affected versions within a GitHub + Security Advisory. + """ + + package: Union[VulnerabilityPropPackageType, None] + vulnerable_version_range: Union[str, None] + first_patched_version: Union[str, None] + vulnerable_functions: Union[list[str], None] + + +class VulnerabilityPropPackageType(TypedDict): + """VulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", "other", + "swift", ] + name: Union[str, None] -__all__ = ("GlobalAdvisoryPropCreditsItemsType",) +__all__ = ( + "GlobalAdvisoryPropCvssType", + "GlobalAdvisoryPropCwesItemsType", + "GlobalAdvisoryPropIdentifiersItemsType", + "GlobalAdvisoryType", + "VulnerabilityPropPackageType", + "VulnerabilityType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0005.py b/githubkit/versions/v2022_11_28/types/group_0005.py index ec1143694..62d7ca39e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0005.py +++ b/githubkit/versions/v2022_11_28/types/group_0005.py @@ -9,19 +9,28 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class BasicErrorType(TypedDict): - """Basic Error - Basic Error - """ +class GlobalAdvisoryPropCreditsItemsType(TypedDict): + """GlobalAdvisoryPropCreditsItems""" - message: NotRequired[str] - documentation_url: NotRequired[str] - url: NotRequired[str] - status: NotRequired[str] + user: SimpleUserType + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] -__all__ = ("BasicErrorType",) +__all__ = ("GlobalAdvisoryPropCreditsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0006.py b/githubkit/versions/v2022_11_28/types/group_0006.py index 890be8381..ec1143694 100644 --- a/githubkit/versions/v2022_11_28/types/group_0006.py +++ b/githubkit/versions/v2022_11_28/types/group_0006.py @@ -12,15 +12,16 @@ from typing_extensions import NotRequired, TypedDict -class ValidationErrorSimpleType(TypedDict): - """Validation Error Simple +class BasicErrorType(TypedDict): + """Basic Error - Validation Error Simple + Basic Error """ - message: str - documentation_url: str - errors: NotRequired[list[str]] + message: NotRequired[str] + documentation_url: NotRequired[str] + url: NotRequired[str] + status: NotRequired[str] -__all__ = ("ValidationErrorSimpleType",) +__all__ = ("BasicErrorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0007.py b/githubkit/versions/v2022_11_28/types/group_0007.py index 83a5da25b..890be8381 100644 --- a/githubkit/versions/v2022_11_28/types/group_0007.py +++ b/githubkit/versions/v2022_11_28/types/group_0007.py @@ -12,20 +12,15 @@ from typing_extensions import NotRequired, TypedDict -class IntegrationPropPermissionsType(TypedDict): - """IntegrationPropPermissions +class ValidationErrorSimpleType(TypedDict): + """Validation Error Simple - The set of permissions for the GitHub app - - Examples: - {'issues': 'read', 'deployments': 'write'} + Validation Error Simple """ - issues: NotRequired[str] - checks: NotRequired[str] - metadata: NotRequired[str] - contents: NotRequired[str] - deployments: NotRequired[str] + message: str + documentation_url: str + errors: NotRequired[list[str]] -__all__ = ("IntegrationPropPermissionsType",) +__all__ = ("ValidationErrorSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0008.py b/githubkit/versions/v2022_11_28/types/group_0008.py index 350f3f6fb..74d77a415 100644 --- a/githubkit/versions/v2022_11_28/types/group_0008.py +++ b/githubkit/versions/v2022_11_28/types/group_0008.py @@ -13,36 +13,23 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0007 import IntegrationPropPermissionsType +class EnterpriseType(TypedDict): + """Enterprise -class IntegrationType(TypedDict): - """GitHub app - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + An enterprise on GitHub. """ + description: NotRequired[Union[str, None]] + html_url: str + website_url: NotRequired[Union[str, None]] id: int - slug: NotRequired[str] node_id: str - client_id: NotRequired[str] - owner: Union[None, SimpleUserType] name: str - description: Union[str, None] - external_url: str - html_url: str - created_at: datetime - updated_at: datetime - permissions: IntegrationPropPermissionsType - events: list[str] - installations_count: NotRequired[int] - client_secret: NotRequired[str] - webhook_secret: NotRequired[Union[str, None]] - pem: NotRequired[str] + slug: str + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + avatar_url: str -__all__ = ("IntegrationType",) +__all__ = ("EnterpriseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0009.py b/githubkit/versions/v2022_11_28/types/group_0009.py index c8636cd86..83a5da25b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0009.py +++ b/githubkit/versions/v2022_11_28/types/group_0009.py @@ -9,20 +9,23 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhookConfigType(TypedDict): - """Webhook Configuration +class IntegrationPropPermissionsType(TypedDict): + """IntegrationPropPermissions - Configuration object of the webhook + The set of permissions for the GitHub app + + Examples: + {'issues': 'read', 'deployments': 'write'} """ - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + issues: NotRequired[str] + checks: NotRequired[str] + metadata: NotRequired[str] + contents: NotRequired[str] + deployments: NotRequired[str] -__all__ = ("WebhookConfigType",) +__all__ = ("IntegrationPropPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0010.py b/githubkit/versions/v2022_11_28/types/group_0010.py index 2cf7ba998..34d9ac7cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0010.py +++ b/githubkit/versions/v2022_11_28/types/group_0010.py @@ -13,25 +13,37 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0008 import EnterpriseType +from .group_0009 import IntegrationPropPermissionsType -class HookDeliveryItemType(TypedDict): - """Simple webhook delivery - Delivery made by a webhook, without request and response information. +class IntegrationType(TypedDict): + """GitHub app + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ id: int - guid: str - delivered_at: datetime - redelivery: bool - duration: float - status: str - status_code: int - event: str - action: Union[str, None] - installation_id: Union[int, None] - repository_id: Union[int, None] - throttled_at: NotRequired[Union[datetime, None]] - - -__all__ = ("HookDeliveryItemType",) + slug: NotRequired[str] + node_id: str + client_id: NotRequired[str] + owner: Union[SimpleUserType, EnterpriseType] + name: str + description: Union[str, None] + external_url: str + html_url: str + created_at: datetime + updated_at: datetime + permissions: IntegrationPropPermissionsType + events: list[str] + installations_count: NotRequired[int] + client_secret: NotRequired[str] + webhook_secret: NotRequired[Union[str, None]] + pem: NotRequired[str] + + +__all__ = ("IntegrationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0011.py b/githubkit/versions/v2022_11_28/types/group_0011.py index ea6a587cb..c8636cd86 100644 --- a/githubkit/versions/v2022_11_28/types/group_0011.py +++ b/githubkit/versions/v2022_11_28/types/group_0011.py @@ -13,18 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class ScimErrorType(TypedDict): - """Scim Error +class WebhookConfigType(TypedDict): + """Webhook Configuration - Scim Error + Configuration object of the webhook """ - message: NotRequired[Union[str, None]] - documentation_url: NotRequired[Union[str, None]] - detail: NotRequired[Union[str, None]] - status: NotRequired[int] - scim_type: NotRequired[Union[str, None]] - schemas: NotRequired[list[str]] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("ScimErrorType",) +__all__ = ("WebhookConfigType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0012.py b/githubkit/versions/v2022_11_28/types/group_0012.py index 8253b3fd6..2cf7ba998 100644 --- a/githubkit/versions/v2022_11_28/types/group_0012.py +++ b/githubkit/versions/v2022_11_28/types/group_0012.py @@ -9,33 +9,29 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -class ValidationErrorType(TypedDict): - """Validation Error +class HookDeliveryItemType(TypedDict): + """Simple webhook delivery - Validation Error + Delivery made by a webhook, without request and response information. """ - message: str - documentation_url: str - errors: NotRequired[list[ValidationErrorPropErrorsItemsType]] - - -class ValidationErrorPropErrorsItemsType(TypedDict): - """ValidationErrorPropErrorsItems""" - - resource: NotRequired[str] - field: NotRequired[str] - message: NotRequired[str] - code: str - index: NotRequired[int] - value: NotRequired[Union[str, None, int, None, list[str], None]] - - -__all__ = ( - "ValidationErrorPropErrorsItemsType", - "ValidationErrorType", -) + id: int + guid: str + delivered_at: datetime + redelivery: bool + duration: float + status: str + status_code: int + event: str + action: Union[str, None] + installation_id: Union[int, None] + repository_id: Union[int, None] + throttled_at: NotRequired[Union[datetime, None]] + + +__all__ = ("HookDeliveryItemType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0013.py b/githubkit/versions/v2022_11_28/types/group_0013.py index 1dd24facf..ea6a587cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0013.py +++ b/githubkit/versions/v2022_11_28/types/group_0013.py @@ -9,74 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class HookDeliveryType(TypedDict): - """Webhook delivery +class ScimErrorType(TypedDict): + """Scim Error - Delivery made by a webhook. + Scim Error """ - id: int - guid: str - delivered_at: datetime - redelivery: bool - duration: float - status: str - status_code: int - event: str - action: Union[str, None] - installation_id: Union[int, None] - repository_id: Union[int, None] - throttled_at: NotRequired[Union[datetime, None]] - url: NotRequired[str] - request: HookDeliveryPropRequestType - response: HookDeliveryPropResponseType + message: NotRequired[Union[str, None]] + documentation_url: NotRequired[Union[str, None]] + detail: NotRequired[Union[str, None]] + status: NotRequired[int] + scim_type: NotRequired[Union[str, None]] + schemas: NotRequired[list[str]] -class HookDeliveryPropRequestType(TypedDict): - """HookDeliveryPropRequest""" - - headers: Union[HookDeliveryPropRequestPropHeadersType, None] - payload: Union[HookDeliveryPropRequestPropPayloadType, None] - - -HookDeliveryPropRequestPropHeadersType: TypeAlias = dict[str, Any] -"""HookDeliveryPropRequestPropHeaders - -The request headers sent with the webhook delivery. -""" - - -HookDeliveryPropRequestPropPayloadType: TypeAlias = dict[str, Any] -"""HookDeliveryPropRequestPropPayload - -The webhook payload. -""" - - -class HookDeliveryPropResponseType(TypedDict): - """HookDeliveryPropResponse""" - - headers: Union[HookDeliveryPropResponsePropHeadersType, None] - payload: Union[str, None] - - -HookDeliveryPropResponsePropHeadersType: TypeAlias = dict[str, Any] -"""HookDeliveryPropResponsePropHeaders - -The response headers received when the delivery was made. -""" - - -__all__ = ( - "HookDeliveryPropRequestPropHeadersType", - "HookDeliveryPropRequestPropPayloadType", - "HookDeliveryPropRequestType", - "HookDeliveryPropResponsePropHeadersType", - "HookDeliveryPropResponseType", - "HookDeliveryType", -) +__all__ = ("ScimErrorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0014.py b/githubkit/versions/v2022_11_28/types/group_0014.py index 74d77a415..8253b3fd6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0014.py +++ b/githubkit/versions/v2022_11_28/types/group_0014.py @@ -9,27 +9,33 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -class EnterpriseType(TypedDict): - """Enterprise +class ValidationErrorType(TypedDict): + """Validation Error - An enterprise on GitHub. + Validation Error """ - description: NotRequired[Union[str, None]] - html_url: str - website_url: NotRequired[Union[str, None]] - id: int - node_id: str - name: str - slug: str - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - avatar_url: str + message: str + documentation_url: str + errors: NotRequired[list[ValidationErrorPropErrorsItemsType]] -__all__ = ("EnterpriseType",) +class ValidationErrorPropErrorsItemsType(TypedDict): + """ValidationErrorPropErrorsItems""" + + resource: NotRequired[str] + field: NotRequired[str] + message: NotRequired[str] + code: str + index: NotRequired[int] + value: NotRequired[Union[str, None, int, None, list[str], None]] + + +__all__ = ( + "ValidationErrorPropErrorsItemsType", + "ValidationErrorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0015.py b/githubkit/versions/v2022_11_28/types/group_0015.py index 03fa7d35a..1dd24facf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0015.py +++ b/githubkit/versions/v2022_11_28/types/group_0015.py @@ -10,24 +10,73 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0014 import EnterpriseType +class HookDeliveryType(TypedDict): + """Webhook delivery -class IntegrationInstallationRequestType(TypedDict): - """Integration Installation Request - - Request to install an integration on a target + Delivery made by a webhook. """ id: int - node_id: NotRequired[str] - account: Union[SimpleUserType, EnterpriseType] - requester: SimpleUserType - created_at: datetime + guid: str + delivered_at: datetime + redelivery: bool + duration: float + status: str + status_code: int + event: str + action: Union[str, None] + installation_id: Union[int, None] + repository_id: Union[int, None] + throttled_at: NotRequired[Union[datetime, None]] + url: NotRequired[str] + request: HookDeliveryPropRequestType + response: HookDeliveryPropResponseType + + +class HookDeliveryPropRequestType(TypedDict): + """HookDeliveryPropRequest""" + + headers: Union[HookDeliveryPropRequestPropHeadersType, None] + payload: Union[HookDeliveryPropRequestPropPayloadType, None] + + +HookDeliveryPropRequestPropHeadersType: TypeAlias = dict[str, Any] +"""HookDeliveryPropRequestPropHeaders + +The request headers sent with the webhook delivery. +""" + + +HookDeliveryPropRequestPropPayloadType: TypeAlias = dict[str, Any] +"""HookDeliveryPropRequestPropPayload + +The webhook payload. +""" + + +class HookDeliveryPropResponseType(TypedDict): + """HookDeliveryPropResponse""" + + headers: Union[HookDeliveryPropResponsePropHeadersType, None] + payload: Union[str, None] + + +HookDeliveryPropResponsePropHeadersType: TypeAlias = dict[str, Any] +"""HookDeliveryPropResponsePropHeaders + +The response headers received when the delivery was made. +""" -__all__ = ("IntegrationInstallationRequestType",) +__all__ = ( + "HookDeliveryPropRequestPropHeadersType", + "HookDeliveryPropRequestPropPayloadType", + "HookDeliveryPropRequestType", + "HookDeliveryPropResponsePropHeadersType", + "HookDeliveryPropResponseType", + "HookDeliveryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0016.py b/githubkit/versions/v2022_11_28/types/group_0016.py index 2c2b62d2f..9183c8375 100644 --- a/githubkit/versions/v2022_11_28/types/group_0016.py +++ b/githubkit/versions/v2022_11_28/types/group_0016.py @@ -9,68 +9,25 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0008 import EnterpriseType -class AppPermissionsType(TypedDict): - """App Permissions - The permissions granted to the user access token. +class IntegrationInstallationRequestType(TypedDict): + """Integration Installation Request - Examples: - {'contents': 'read', 'issues': 'read', 'deployments': 'write', 'single_file': - 'read'} + Request to install an integration on a target """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - codespaces: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - dependabot_secrets: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_custom_properties: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["write"]] - members: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_custom_roles: NotRequired[Literal["read", "write"]] - organization_custom_org_roles: NotRequired[Literal["read", "write"]] - organization_custom_properties: NotRequired[Literal["read", "write", "admin"]] - organization_copilot_seat_management: NotRequired[Literal["write"]] - organization_announcement_banners: NotRequired[Literal["read", "write"]] - organization_events: NotRequired[Literal["read"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_personal_access_tokens: NotRequired[Literal["read", "write"]] - organization_personal_access_token_requests: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - email_addresses: NotRequired[Literal["read", "write"]] - followers: NotRequired[Literal["read", "write"]] - git_ssh_keys: NotRequired[Literal["read", "write"]] - gpg_keys: NotRequired[Literal["read", "write"]] - interaction_limits: NotRequired[Literal["read", "write"]] - profile: NotRequired[Literal["write"]] - starring: NotRequired[Literal["read", "write"]] + id: int + node_id: NotRequired[str] + account: Union[SimpleUserType, EnterpriseType] + requester: SimpleUserType + created_at: datetime -__all__ = ("AppPermissionsType",) +__all__ = ("IntegrationInstallationRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0017.py b/githubkit/versions/v2022_11_28/types/group_0017.py index b51725d7f..2c2b62d2f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0017.py +++ b/githubkit/versions/v2022_11_28/types/group_0017.py @@ -9,41 +9,68 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0014 import EnterpriseType -from .group_0016 import AppPermissionsType +class AppPermissionsType(TypedDict): + """App Permissions -class InstallationType(TypedDict): - """Installation + The permissions granted to the user access token. - Installation + Examples: + {'contents': 'read', 'issues': 'read', 'deployments': 'write', 'single_file': + 'read'} """ - id: int - account: Union[SimpleUserType, EnterpriseType, None] - repository_selection: Literal["all", "selected"] - access_tokens_url: str - repositories_url: str - html_url: str - app_id: int - target_id: int - target_type: str - permissions: AppPermissionsType - events: list[str] - created_at: datetime - updated_at: datetime - single_file_name: Union[str, None] - has_multiple_single_files: NotRequired[bool] - single_file_paths: NotRequired[list[str]] - app_slug: str - suspended_by: Union[None, SimpleUserType] - suspended_at: Union[datetime, None] - contact_email: NotRequired[Union[str, None]] - - -__all__ = ("InstallationType",) + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + codespaces: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + dependabot_secrets: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_custom_properties: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["write"]] + members: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_custom_roles: NotRequired[Literal["read", "write"]] + organization_custom_org_roles: NotRequired[Literal["read", "write"]] + organization_custom_properties: NotRequired[Literal["read", "write", "admin"]] + organization_copilot_seat_management: NotRequired[Literal["write"]] + organization_announcement_banners: NotRequired[Literal["read", "write"]] + organization_events: NotRequired[Literal["read"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_personal_access_tokens: NotRequired[Literal["read", "write"]] + organization_personal_access_token_requests: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + email_addresses: NotRequired[Literal["read", "write"]] + followers: NotRequired[Literal["read", "write"]] + git_ssh_keys: NotRequired[Literal["read", "write"]] + gpg_keys: NotRequired[Literal["read", "write"]] + interaction_limits: NotRequired[Literal["read", "write"]] + profile: NotRequired[Literal["write"]] + starring: NotRequired[Literal["read", "write"]] + + +__all__ = ("AppPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0018.py b/githubkit/versions/v2022_11_28/types/group_0018.py index b20c6fa41..7026c5135 100644 --- a/githubkit/versions/v2022_11_28/types/group_0018.py +++ b/githubkit/versions/v2022_11_28/types/group_0018.py @@ -9,22 +9,41 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0008 import EnterpriseType +from .group_0017 import AppPermissionsType -class LicenseSimpleType(TypedDict): - """License Simple - License Simple - """ - - key: str - name: str - url: Union[str, None] - spdx_id: Union[str, None] - node_id: str - html_url: NotRequired[str] +class InstallationType(TypedDict): + """Installation + Installation + """ -__all__ = ("LicenseSimpleType",) + id: int + account: Union[SimpleUserType, EnterpriseType, None] + repository_selection: Literal["all", "selected"] + access_tokens_url: str + repositories_url: str + html_url: str + app_id: int + target_id: int + target_type: str + permissions: AppPermissionsType + events: list[str] + created_at: datetime + updated_at: datetime + single_file_name: Union[str, None] + has_multiple_single_files: NotRequired[bool] + single_file_paths: NotRequired[list[str]] + app_slug: str + suspended_by: Union[None, SimpleUserType] + suspended_at: Union[datetime, None] + contact_email: NotRequired[Union[str, None]] + + +__all__ = ("InstallationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0019.py b/githubkit/versions/v2022_11_28/types/group_0019.py index f45161b9e..b20c6fa41 100644 --- a/githubkit/versions/v2022_11_28/types/group_0019.py +++ b/githubkit/versions/v2022_11_28/types/group_0019.py @@ -9,130 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0018 import LicenseSimpleType +class LicenseSimpleType(TypedDict): + """License Simple -class RepositoryType(TypedDict): - """Repository - - A repository on GitHub. + License Simple """ - id: int - node_id: str + key: str name: str - full_name: str - license_: Union[None, LicenseSimpleType] - forks: int - permissions: NotRequired[RepositoryPropPermissionsType] - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - has_discussions: NotRequired[bool] - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - open_issues: int - watchers: int - master_branch: NotRequired[str] - starred_at: NotRequired[str] - anonymous_access_enabled: NotRequired[bool] - - -class RepositoryPropPermissionsType(TypedDict): - """RepositoryPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] + url: Union[str, None] + spdx_id: Union[str, None] + node_id: str + html_url: NotRequired[str] -__all__ = ( - "RepositoryPropPermissionsType", - "RepositoryType", -) +__all__ = ("LicenseSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0020.py b/githubkit/versions/v2022_11_28/types/group_0020.py index 65fb2620f..94bb640b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0020.py +++ b/githubkit/versions/v2022_11_28/types/group_0020.py @@ -9,27 +9,130 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0016 import AppPermissionsType -from .group_0019 import RepositoryType +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType -class InstallationTokenType(TypedDict): - """Installation Token +class RepositoryType(TypedDict): + """Repository - Authentication token for a GitHub App installed on a user or org. + A repository on GitHub. """ - token: str - expires_at: str - permissions: NotRequired[AppPermissionsType] - repository_selection: NotRequired[Literal["all", "selected"]] - repositories: NotRequired[list[RepositoryType]] - single_file: NotRequired[str] - has_multiple_single_files: NotRequired[bool] - single_file_paths: NotRequired[list[str]] + id: int + node_id: str + name: str + full_name: str + license_: Union[None, LicenseSimpleType] + forks: int + permissions: NotRequired[RepositoryPropPermissionsType] + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + has_discussions: NotRequired[bool] + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + open_issues: int + watchers: int + master_branch: NotRequired[str] + starred_at: NotRequired[str] + anonymous_access_enabled: NotRequired[bool] -__all__ = ("InstallationTokenType",) +class RepositoryPropPermissionsType(TypedDict): + """RepositoryPropPermissions""" + + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + + +__all__ = ( + "RepositoryPropPermissionsType", + "RepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0021.py b/githubkit/versions/v2022_11_28/types/group_0021.py index fcaa9a0bd..4a84235a5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0021.py +++ b/githubkit/versions/v2022_11_28/types/group_0021.py @@ -9,23 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0016 import AppPermissionsType +from .group_0017 import AppPermissionsType +from .group_0020 import RepositoryType -class ScopedInstallationType(TypedDict): - """Scoped Installation""" +class InstallationTokenType(TypedDict): + """Installation Token - permissions: AppPermissionsType - repository_selection: Literal["all", "selected"] - single_file_name: Union[str, None] + Authentication token for a GitHub App installed on a user or org. + """ + + token: str + expires_at: str + permissions: NotRequired[AppPermissionsType] + repository_selection: NotRequired[Literal["all", "selected"]] + repositories: NotRequired[list[RepositoryType]] + single_file: NotRequired[str] has_multiple_single_files: NotRequired[bool] single_file_paths: NotRequired[list[str]] - repositories_url: str - account: SimpleUserType -__all__ = ("ScopedInstallationType",) +__all__ = ("InstallationTokenType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0022.py b/githubkit/versions/v2022_11_28/types/group_0022.py index 2e67fac58..316ee04db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0022.py +++ b/githubkit/versions/v2022_11_28/types/group_0022.py @@ -9,46 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0021 import ScopedInstallationType +from .group_0003 import SimpleUserType +from .group_0017 import AppPermissionsType -class AuthorizationType(TypedDict): - """Authorization +class ScopedInstallationType(TypedDict): + """Scoped Installation""" - The authorization for an OAuth app, GitHub App, or a Personal Access Token. - """ + permissions: AppPermissionsType + repository_selection: Literal["all", "selected"] + single_file_name: Union[str, None] + has_multiple_single_files: NotRequired[bool] + single_file_paths: NotRequired[list[str]] + repositories_url: str + account: SimpleUserType - id: int - url: str - scopes: Union[list[str], None] - token: str - token_last_eight: Union[str, None] - hashed_token: Union[str, None] - app: AuthorizationPropAppType - note: Union[str, None] - note_url: Union[str, None] - updated_at: datetime - created_at: datetime - fingerprint: Union[str, None] - user: NotRequired[Union[None, SimpleUserType]] - installation: NotRequired[Union[None, ScopedInstallationType]] - expires_at: Union[datetime, None] - -class AuthorizationPropAppType(TypedDict): - """AuthorizationPropApp""" - - client_id: str - name: str - url: str - - -__all__ = ( - "AuthorizationPropAppType", - "AuthorizationType", -) +__all__ = ("ScopedInstallationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0023.py b/githubkit/versions/v2022_11_28/types/group_0023.py index 92dae5f1f..2f6e85407 100644 --- a/githubkit/versions/v2022_11_28/types/group_0023.py +++ b/githubkit/versions/v2022_11_28/types/group_0023.py @@ -9,21 +9,46 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0022 import ScopedInstallationType -class SimpleClassroomRepositoryType(TypedDict): - """Simple Classroom Repository - A GitHub repository view for Classroom +class AuthorizationType(TypedDict): + """Authorization + + The authorization for an OAuth app, GitHub App, or a Personal Access Token. """ id: int - full_name: str - html_url: str - node_id: str - private: bool - default_branch: str - - -__all__ = ("SimpleClassroomRepositoryType",) + url: str + scopes: Union[list[str], None] + token: str + token_last_eight: Union[str, None] + hashed_token: Union[str, None] + app: AuthorizationPropAppType + note: Union[str, None] + note_url: Union[str, None] + updated_at: datetime + created_at: datetime + fingerprint: Union[str, None] + user: NotRequired[Union[None, SimpleUserType]] + installation: NotRequired[Union[None, ScopedInstallationType]] + expires_at: Union[datetime, None] + + +class AuthorizationPropAppType(TypedDict): + """AuthorizationPropApp""" + + client_id: str + name: str + url: str + + +__all__ = ( + "AuthorizationPropAppType", + "AuthorizationType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0024.py b/githubkit/versions/v2022_11_28/types/group_0024.py index 2cc2009dd..92dae5f1f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0024.py +++ b/githubkit/versions/v2022_11_28/types/group_0024.py @@ -9,69 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0023 import SimpleClassroomRepositoryType +class SimpleClassroomRepositoryType(TypedDict): + """Simple Classroom Repository -class ClassroomAssignmentType(TypedDict): - """Classroom Assignment - - A GitHub Classroom assignment - """ - - id: int - public_repo: bool - title: str - type: Literal["individual", "group"] - invite_link: str - invitations_enabled: bool - slug: str - students_are_repo_admins: bool - feedback_pull_requests_enabled: bool - max_teams: Union[int, None] - max_members: Union[int, None] - editor: str - accepted: int - submitted: int - passing: int - language: str - deadline: Union[datetime, None] - starter_code_repository: SimpleClassroomRepositoryType - classroom: ClassroomType - - -class ClassroomType(TypedDict): - """Classroom - - A GitHub Classroom classroom + A GitHub repository view for Classroom """ id: int - name: str - archived: bool - organization: SimpleClassroomOrganizationType - url: str - - -class SimpleClassroomOrganizationType(TypedDict): - """Organization Simple for Classroom - - A GitHub organization. - """ - - id: int - login: str - node_id: str + full_name: str html_url: str - name: Union[str, None] - avatar_url: str + node_id: str + private: bool + default_branch: str -__all__ = ( - "ClassroomAssignmentType", - "ClassroomType", - "SimpleClassroomOrganizationType", -) +__all__ = ("SimpleClassroomRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0025.py b/githubkit/versions/v2022_11_28/types/group_0025.py index 5f4b8f7f1..90777e817 100644 --- a/githubkit/versions/v2022_11_28/types/group_0025.py +++ b/githubkit/versions/v2022_11_28/types/group_0025.py @@ -11,41 +11,13 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0023 import SimpleClassroomRepositoryType +from .group_0024 import SimpleClassroomRepositoryType -class ClassroomAcceptedAssignmentType(TypedDict): - """Classroom Accepted Assignment - - A GitHub Classroom accepted assignment - """ - - id: int - submitted: bool - passing: bool - commit_count: int - grade: str - students: list[SimpleClassroomUserType] - repository: SimpleClassroomRepositoryType - assignment: SimpleClassroomAssignmentType - - -class SimpleClassroomUserType(TypedDict): - """Simple Classroom User - - A GitHub user simplified for Classroom. - """ - - id: int - login: str - avatar_url: str - html_url: str - - -class SimpleClassroomAssignmentType(TypedDict): - """Simple Classroom Assignment +class ClassroomAssignmentType(TypedDict): + """Classroom Assignment A GitHub Classroom assignment """ @@ -59,19 +31,20 @@ class SimpleClassroomAssignmentType(TypedDict): slug: str students_are_repo_admins: bool feedback_pull_requests_enabled: bool - max_teams: NotRequired[Union[int, None]] - max_members: NotRequired[Union[int, None]] - editor: Union[str, None] + max_teams: Union[int, None] + max_members: Union[int, None] + editor: str accepted: int - submitted: NotRequired[int] + submitted: int passing: int - language: Union[str, None] + language: str deadline: Union[datetime, None] - classroom: SimpleClassroomType + starter_code_repository: SimpleClassroomRepositoryType + classroom: ClassroomType -class SimpleClassroomType(TypedDict): - """Simple Classroom +class ClassroomType(TypedDict): + """Classroom A GitHub Classroom classroom """ @@ -79,12 +52,26 @@ class SimpleClassroomType(TypedDict): id: int name: str archived: bool + organization: SimpleClassroomOrganizationType url: str +class SimpleClassroomOrganizationType(TypedDict): + """Organization Simple for Classroom + + A GitHub organization. + """ + + id: int + login: str + node_id: str + html_url: str + name: Union[str, None] + avatar_url: str + + __all__ = ( - "ClassroomAcceptedAssignmentType", - "SimpleClassroomAssignmentType", - "SimpleClassroomType", - "SimpleClassroomUserType", + "ClassroomAssignmentType", + "ClassroomType", + "SimpleClassroomOrganizationType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0026.py b/githubkit/versions/v2022_11_28/types/group_0026.py index 2099f3a61..c3d2e7494 100644 --- a/githubkit/versions/v2022_11_28/types/group_0026.py +++ b/githubkit/versions/v2022_11_28/types/group_0026.py @@ -9,26 +9,82 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0024 import SimpleClassroomRepositoryType -class ClassroomAssignmentGradeType(TypedDict): - """Classroom Assignment Grade - Grade for a student or groups GitHub Classroom assignment +class ClassroomAcceptedAssignmentType(TypedDict): + """Classroom Accepted Assignment + + A GitHub Classroom accepted assignment + """ + + id: int + submitted: bool + passing: bool + commit_count: int + grade: str + students: list[SimpleClassroomUserType] + repository: SimpleClassroomRepositoryType + assignment: SimpleClassroomAssignmentType + + +class SimpleClassroomUserType(TypedDict): + """Simple Classroom User + + A GitHub user simplified for Classroom. + """ + + id: int + login: str + avatar_url: str + html_url: str + + +class SimpleClassroomAssignmentType(TypedDict): + """Simple Classroom Assignment + + A GitHub Classroom assignment + """ + + id: int + public_repo: bool + title: str + type: Literal["individual", "group"] + invite_link: str + invitations_enabled: bool + slug: str + students_are_repo_admins: bool + feedback_pull_requests_enabled: bool + max_teams: NotRequired[Union[int, None]] + max_members: NotRequired[Union[int, None]] + editor: Union[str, None] + accepted: int + submitted: NotRequired[int] + passing: int + language: Union[str, None] + deadline: Union[datetime, None] + classroom: SimpleClassroomType + + +class SimpleClassroomType(TypedDict): + """Simple Classroom + + A GitHub Classroom classroom """ - assignment_name: str - assignment_url: str - starter_code_url: str - github_username: str - roster_identifier: str - student_repository_name: str - student_repository_url: str - submission_timestamp: str - points_awarded: int - points_available: int - group_name: NotRequired[str] + id: int + name: str + archived: bool + url: str -__all__ = ("ClassroomAssignmentGradeType",) +__all__ = ( + "ClassroomAcceptedAssignmentType", + "SimpleClassroomAssignmentType", + "SimpleClassroomType", + "SimpleClassroomUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0027.py b/githubkit/versions/v2022_11_28/types/group_0027.py index 5fd1c90aa..2099f3a61 100644 --- a/githubkit/versions/v2022_11_28/types/group_0027.py +++ b/githubkit/versions/v2022_11_28/types/group_0027.py @@ -9,110 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeSecurityConfigurationType(TypedDict): - """CodeSecurityConfiguration +class ClassroomAssignmentGradeType(TypedDict): + """Classroom Assignment Grade - A code security configuration + Grade for a student or groups GitHub Classroom assignment """ - id: NotRequired[int] - name: NotRequired[str] - target_type: NotRequired[Literal["global", "organization", "enterprise"]] - description: NotRequired[str] - advanced_security: NotRequired[Literal["enabled", "disabled"]] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType, None] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - 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] - updated_at: NotRequired[datetime] + assignment_name: str + assignment_url: str + starter_code_url: str + github_username: str + roster_identifier: str + student_repository_name: str + student_repository_url: str + submission_timestamp: str + points_awarded: int + points_available: int + group_name: NotRequired[str] -class CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -class CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType(TypedDict): - """CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions - - Feature options for code scanning default setup - """ - - runner_type: NotRequired[Union[None, Literal["standard", "labeled", "not_set"]]] - runner_label: NotRequired[Union[str, None]] - - -class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType(TypedDict): - """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: NotRequired[ - list[ - CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType - ] - ] - - -class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( - TypedDict -): - """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersIt - ems - """ - - reviewer_id: int - reviewer_type: Literal["TEAM", "ROLE"] - - -__all__ = ( - "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType", - "CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType", - "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType", - "CodeSecurityConfigurationType", -) +__all__ = ("ClassroomAssignmentGradeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0028.py b/githubkit/versions/v2022_11_28/types/group_0028.py index 73c7a68ac..5fd1c90aa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0028.py +++ b/githubkit/versions/v2022_11_28/types/group_0028.py @@ -9,18 +9,110 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeScanningDefaultSetupOptionsType(TypedDict): - """CodeScanningDefaultSetupOptions +class CodeSecurityConfigurationType(TypedDict): + """CodeSecurityConfiguration + + A code security configuration + """ + + id: NotRequired[int] + name: NotRequired[str] + target_type: NotRequired[Literal["global", "organization", "enterprise"]] + description: NotRequired[str] + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType, None] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + 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] + updated_at: NotRequired[datetime] + + +class CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] + + +class CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType(TypedDict): + """CodeSecurityConfigurationPropCodeScanningDefaultSetupOptions Feature options for code scanning default setup """ - runner_type: NotRequired[Literal["standard", "labeled", "not_set"]] + runner_type: NotRequired[Union[None, Literal["standard", "labeled", "not_set"]]] runner_label: NotRequired[Union[str, None]] -__all__ = ("CodeScanningDefaultSetupOptionsType",) +class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType(TypedDict): + """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: NotRequired[ + list[ + CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType + ] + ] + + +class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( + TypedDict +): + """CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersIt + ems + """ + + reviewer_id: int + reviewer_type: Literal["TEAM", "ROLE"] + + +__all__ = ( + "CodeSecurityConfigurationPropCodeScanningDefaultSetupOptionsType", + "CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptionsType", + "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", + "CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsType", + "CodeSecurityConfigurationType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0029.py b/githubkit/versions/v2022_11_28/types/group_0029.py index 390b571b1..73c7a68ac 100644 --- a/githubkit/versions/v2022_11_28/types/group_0029.py +++ b/githubkit/versions/v2022_11_28/types/group_0029.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0027 import CodeSecurityConfigurationType +class CodeScanningDefaultSetupOptionsType(TypedDict): + """CodeScanningDefaultSetupOptions -class CodeSecurityDefaultConfigurationsItemsType(TypedDict): - """CodeSecurityDefaultConfigurationsItems""" + Feature options for code scanning default setup + """ - default_for_new_repos: NotRequired[Literal["public", "private_and_internal", "all"]] - configuration: NotRequired[CodeSecurityConfigurationType] + runner_type: NotRequired[Literal["standard", "labeled", "not_set"]] + runner_label: NotRequired[Union[str, None]] -__all__ = ("CodeSecurityDefaultConfigurationsItemsType",) +__all__ = ("CodeScanningDefaultSetupOptionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0030.py b/githubkit/versions/v2022_11_28/types/group_0030.py index e7e8d4057..c520ee68f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0030.py +++ b/githubkit/versions/v2022_11_28/types/group_0030.py @@ -9,64 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0028 import CodeSecurityConfigurationType -class SimpleRepositoryType(TypedDict): - """Simple Repository +class CodeSecurityDefaultConfigurationsItemsType(TypedDict): + """CodeSecurityDefaultConfigurationsItems""" - A GitHub repository. - """ + default_for_new_repos: NotRequired[Literal["public", "private_and_internal", "all"]] + configuration: NotRequired[CodeSecurityConfigurationType] - id: int - node_id: str - name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - hooks_url: str - -__all__ = ("SimpleRepositoryType",) +__all__ = ("CodeSecurityDefaultConfigurationsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0031.py b/githubkit/versions/v2022_11_28/types/group_0031.py index 24f6cfc3f..2df06fbc7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0031.py +++ b/githubkit/versions/v2022_11_28/types/group_0031.py @@ -9,31 +9,64 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0030 import SimpleRepositoryType +from .group_0003 import SimpleUserType -class CodeSecurityConfigurationRepositoriesType(TypedDict): - """CodeSecurityConfigurationRepositories +class SimpleRepositoryType(TypedDict): + """Simple Repository - Repositories associated with a code security configuration and attachment status + A GitHub repository. """ - status: NotRequired[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] - repository: NotRequired[SimpleRepositoryType] - - -__all__ = ("CodeSecurityConfigurationRepositoriesType",) + id: int + node_id: str + name: str + full_name: str + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + hooks_url: str + + +__all__ = ("SimpleRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0032.py b/githubkit/versions/v2022_11_28/types/group_0032.py index 9ef70e81a..1b28107f7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0032.py +++ b/githubkit/versions/v2022_11_28/types/group_0032.py @@ -9,17 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0031 import SimpleRepositoryType -class DependabotAlertPackageType(TypedDict): - """DependabotAlertPackage - Details for the vulnerable package. - """ - - ecosystem: str - name: str +class CodeSecurityConfigurationRepositoriesType(TypedDict): + """CodeSecurityConfigurationRepositories + Repositories associated with a code security configuration and attachment status + """ -__all__ = ("DependabotAlertPackageType",) + status: NotRequired[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] + ] + repository: NotRequired[SimpleRepositoryType] + + +__all__ = ("CodeSecurityConfigurationRepositoriesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0033.py b/githubkit/versions/v2022_11_28/types/group_0033.py index 01bf75105..9ef70e81a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0033.py +++ b/githubkit/versions/v2022_11_28/types/group_0033.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0032 import DependabotAlertPackageType +class DependabotAlertPackageType(TypedDict): + """DependabotAlertPackage -class DependabotAlertSecurityVulnerabilityType(TypedDict): - """DependabotAlertSecurityVulnerability - - Details pertaining to one vulnerable version range for the advisory. - """ - - package: DependabotAlertPackageType - severity: Literal["low", "medium", "high", "critical"] - vulnerable_version_range: str - first_patched_version: Union[ - DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, None - ] - - -class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType(TypedDict): - """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion - - Details pertaining to the package version that patches this vulnerability. + Details for the vulnerable package. """ - identifier: str + ecosystem: str + name: str -__all__ = ( - "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", - "DependabotAlertSecurityVulnerabilityType", -) +__all__ = ("DependabotAlertPackageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0034.py b/githubkit/versions/v2022_11_28/types/group_0034.py index 90dc93b4f..ecc6fb45d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0034.py +++ b/githubkit/versions/v2022_11_28/types/group_0034.py @@ -9,79 +9,36 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0001 import CvssSeveritiesType -from .group_0033 import DependabotAlertSecurityVulnerabilityType +from .group_0033 import DependabotAlertPackageType -class DependabotAlertSecurityAdvisoryType(TypedDict): - """DependabotAlertSecurityAdvisory +class DependabotAlertSecurityVulnerabilityType(TypedDict): + """DependabotAlertSecurityVulnerability - Details for the GitHub Security Advisory. + Details pertaining to one vulnerable version range for the advisory. """ - ghsa_id: str - cve_id: Union[str, None] - summary: str - description: str - vulnerabilities: list[DependabotAlertSecurityVulnerabilityType] + package: DependabotAlertPackageType severity: Literal["low", "medium", "high", "critical"] - cvss: DependabotAlertSecurityAdvisoryPropCvssType - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: list[DependabotAlertSecurityAdvisoryPropCwesItemsType] - identifiers: list[DependabotAlertSecurityAdvisoryPropIdentifiersItemsType] - references: list[DependabotAlertSecurityAdvisoryPropReferencesItemsType] - published_at: datetime - updated_at: datetime - withdrawn_at: Union[datetime, None] + vulnerable_version_range: str + first_patched_version: Union[ + DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, None + ] -class DependabotAlertSecurityAdvisoryPropCvssType(TypedDict): - """DependabotAlertSecurityAdvisoryPropCvss +class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType(TypedDict): + """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion - Details for the advisory pertaining to the Common Vulnerability Scoring System. + Details pertaining to the package version that patches this vulnerability. """ - score: float - vector_string: Union[str, None] - - -class DependabotAlertSecurityAdvisoryPropCwesItemsType(TypedDict): - """DependabotAlertSecurityAdvisoryPropCwesItems - - A CWE weakness assigned to the advisory. - """ - - cwe_id: str - name: str - - -class DependabotAlertSecurityAdvisoryPropIdentifiersItemsType(TypedDict): - """DependabotAlertSecurityAdvisoryPropIdentifiersItems - - An advisory identifier. - """ - - type: Literal["CVE", "GHSA"] - value: str - - -class DependabotAlertSecurityAdvisoryPropReferencesItemsType(TypedDict): - """DependabotAlertSecurityAdvisoryPropReferencesItems - - A link to additional advisory information. - """ - - url: str + identifier: str __all__ = ( - "DependabotAlertSecurityAdvisoryPropCvssType", - "DependabotAlertSecurityAdvisoryPropCwesItemsType", - "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", - "DependabotAlertSecurityAdvisoryPropReferencesItemsType", - "DependabotAlertSecurityAdvisoryType", + "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", + "DependabotAlertSecurityVulnerabilityType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0035.py b/githubkit/versions/v2022_11_28/types/group_0035.py index 6e3128542..572c3c187 100644 --- a/githubkit/versions/v2022_11_28/types/group_0035.py +++ b/githubkit/versions/v2022_11_28/types/group_0035.py @@ -13,40 +13,77 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0030 import SimpleRepositoryType -from .group_0033 import DependabotAlertSecurityVulnerabilityType -from .group_0034 import DependabotAlertSecurityAdvisoryType -from .group_0036 import DependabotAlertWithRepositoryPropDependencyType +from .group_0001 import CvssSeveritiesType +from .group_0002 import SecurityAdvisoryEpssType +from .group_0034 import DependabotAlertSecurityVulnerabilityType -class DependabotAlertWithRepositoryType(TypedDict): - """DependabotAlertWithRepository +class DependabotAlertSecurityAdvisoryType(TypedDict): + """DependabotAlertSecurityAdvisory - A Dependabot alert. + Details for the GitHub Security Advisory. """ - number: int - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] - dependency: DependabotAlertWithRepositoryPropDependencyType - security_advisory: DependabotAlertSecurityAdvisoryType - security_vulnerability: DependabotAlertSecurityVulnerabilityType - url: str - html_url: str - created_at: datetime + ghsa_id: str + cve_id: Union[str, None] + summary: str + description: str + vulnerabilities: list[DependabotAlertSecurityVulnerabilityType] + severity: Literal["low", "medium", "high", "critical"] + cvss: DependabotAlertSecurityAdvisoryPropCvssType + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + epss: NotRequired[Union[SecurityAdvisoryEpssType, None]] + cwes: list[DependabotAlertSecurityAdvisoryPropCwesItemsType] + identifiers: list[DependabotAlertSecurityAdvisoryPropIdentifiersItemsType] + references: list[DependabotAlertSecurityAdvisoryPropReferencesItemsType] + published_at: datetime updated_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[None, SimpleUserType] - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] - dismissed_comment: Union[str, None] - fixed_at: Union[datetime, None] - auto_dismissed_at: NotRequired[Union[datetime, None]] - repository: SimpleRepositoryType - - -__all__ = ("DependabotAlertWithRepositoryType",) + withdrawn_at: Union[datetime, None] + + +class DependabotAlertSecurityAdvisoryPropCvssType(TypedDict): + """DependabotAlertSecurityAdvisoryPropCvss + + Details for the advisory pertaining to the Common Vulnerability Scoring System. + """ + + score: float + vector_string: Union[str, None] + + +class DependabotAlertSecurityAdvisoryPropCwesItemsType(TypedDict): + """DependabotAlertSecurityAdvisoryPropCwesItems + + A CWE weakness assigned to the advisory. + """ + + cwe_id: str + name: str + + +class DependabotAlertSecurityAdvisoryPropIdentifiersItemsType(TypedDict): + """DependabotAlertSecurityAdvisoryPropIdentifiersItems + + An advisory identifier. + """ + + type: Literal["CVE", "GHSA"] + value: str + + +class DependabotAlertSecurityAdvisoryPropReferencesItemsType(TypedDict): + """DependabotAlertSecurityAdvisoryPropReferencesItems + + A link to additional advisory information. + """ + + url: str + + +__all__ = ( + "DependabotAlertSecurityAdvisoryPropCvssType", + "DependabotAlertSecurityAdvisoryPropCwesItemsType", + "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", + "DependabotAlertSecurityAdvisoryPropReferencesItemsType", + "DependabotAlertSecurityAdvisoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0036.py b/githubkit/versions/v2022_11_28/types/group_0036.py index fe5ddab90..93f3cf3d2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0036.py +++ b/githubkit/versions/v2022_11_28/types/group_0036.py @@ -9,21 +9,44 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0032 import DependabotAlertPackageType +from .group_0003 import SimpleUserType +from .group_0031 import SimpleRepositoryType +from .group_0034 import DependabotAlertSecurityVulnerabilityType +from .group_0035 import DependabotAlertSecurityAdvisoryType +from .group_0037 import DependabotAlertWithRepositoryPropDependencyType -class DependabotAlertWithRepositoryPropDependencyType(TypedDict): - """DependabotAlertWithRepositoryPropDependency +class DependabotAlertWithRepositoryType(TypedDict): + """DependabotAlertWithRepository - Details for the vulnerable dependency. + A Dependabot alert. """ - package: NotRequired[DependabotAlertPackageType] - manifest_path: NotRequired[str] - scope: NotRequired[Union[None, Literal["development", "runtime"]]] - - -__all__ = ("DependabotAlertWithRepositoryPropDependencyType",) + number: int + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] + dependency: DependabotAlertWithRepositoryPropDependencyType + security_advisory: DependabotAlertSecurityAdvisoryType + security_vulnerability: DependabotAlertSecurityVulnerabilityType + url: str + html_url: str + created_at: datetime + updated_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[None, SimpleUserType] + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] + dismissed_comment: Union[str, None] + fixed_at: Union[datetime, None] + auto_dismissed_at: NotRequired[Union[datetime, None]] + repository: SimpleRepositoryType + + +__all__ = ("DependabotAlertWithRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0037.py b/githubkit/versions/v2022_11_28/types/group_0037.py index 570e21fe9..86799a7ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0037.py +++ b/githubkit/versions/v2022_11_28/types/group_0037.py @@ -9,44 +9,21 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0030 import SimpleRepositoryType - - -class OrganizationSecretScanningAlertType(TypedDict): - """OrganizationSecretScanningAlert""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - repository: NotRequired[SimpleRepositoryType] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - resolution_comment: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - - -__all__ = ("OrganizationSecretScanningAlertType",) +from .group_0033 import DependabotAlertPackageType + + +class DependabotAlertWithRepositoryPropDependencyType(TypedDict): + """DependabotAlertWithRepositoryPropDependency + + Details for the vulnerable dependency. + """ + + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] + + +__all__ = ("DependabotAlertWithRepositoryPropDependencyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0038.py b/githubkit/versions/v2022_11_28/types/group_0038.py index 35313ffe8..74b476d99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0038.py +++ b/githubkit/versions/v2022_11_28/types/group_0038.py @@ -11,33 +11,42 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0002 import SimpleUserType - - -class MilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - url: str - html_url: str - labels_url: str - id: int - node_id: str - number: int - state: Literal["open", "closed"] - title: str - description: Union[str, None] - creator: Union[None, SimpleUserType] - open_issues: int - closed_issues: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - due_on: Union[datetime, None] - - -__all__ = ("MilestoneType",) +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0031 import SimpleRepositoryType + + +class OrganizationSecretScanningAlertType(TypedDict): + """OrganizationSecretScanningAlert""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + repository: NotRequired[SimpleRepositoryType] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + resolution_comment: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + + +__all__ = ("OrganizationSecretScanningAlertType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0039.py b/githubkit/versions/v2022_11_28/types/group_0039.py index 8a6080a74..1bd13ab39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0039.py +++ b/githubkit/versions/v2022_11_28/types/group_0039.py @@ -9,22 +9,35 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class ReactionRollupType(TypedDict): - """Reaction Rollup""" + +class MilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ url: str - total_count: int - plus_one: int - minus_one: int - laugh: int - confused: int - heart: int - hooray: int - eyes: int - rocket: int - - -__all__ = ("ReactionRollupType",) + html_url: str + labels_url: str + id: int + node_id: str + number: int + state: Literal["open", "closed"] + title: str + description: Union[str, None] + creator: Union[None, SimpleUserType] + open_issues: int + closed_issues: int + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + due_on: Union[datetime, None] + + +__all__ = ("MilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0040.py b/githubkit/versions/v2022_11_28/types/group_0040.py index 5eeb85a8d..8a6080a74 100644 --- a/githubkit/versions/v2022_11_28/types/group_0040.py +++ b/githubkit/versions/v2022_11_28/types/group_0040.py @@ -9,105 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0019 import RepositoryType -from .group_0038 import MilestoneType -from .group_0039 import ReactionRollupType +class ReactionRollupType(TypedDict): + """Reaction Rollup""" -class IssueType(TypedDict): - """Issue - - Issues are a great way to keep track of tasks, enhancements, and bugs for your - projects. - """ - - id: int - node_id: str url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str - html_url: str - number: int - state: str - state_reason: NotRequired[ - Union[None, Literal["completed", "reopened", "not_planned"]] - ] - title: str - body: NotRequired[Union[str, None]] - user: Union[None, SimpleUserType] - labels: list[Union[str, IssuePropLabelsItemsOneof1Type]] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - milestone: Union[None, MilestoneType] - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - comments: int - pull_request: NotRequired[IssuePropPullRequestType] - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - draft: NotRequired[bool] - closed_by: NotRequired[Union[None, SimpleUserType]] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - repository: NotRequired[RepositoryType] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] - sub_issues_summary: NotRequired[SubIssuesSummaryType] - - -class SubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class IssuePropLabelsItemsOneof1Type(TypedDict): - """IssuePropLabelsItemsOneof1""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - default: NotRequired[bool] - - -class IssuePropPullRequestType(TypedDict): - """IssuePropPullRequest""" - - merged_at: NotRequired[Union[datetime, None]] - diff_url: Union[str, None] - html_url: Union[str, None] - patch_url: Union[str, None] - url: Union[str, None] - - -__all__ = ( - "IssuePropLabelsItemsOneof1Type", - "IssuePropPullRequestType", - "IssueType", - "SubIssuesSummaryType", -) + total_count: int + plus_one: int + minus_one: int + laugh: int + confused: int + heart: int + hooray: int + eyes: int + rocket: int + + +__all__ = ("ReactionRollupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0041.py b/githubkit/versions/v2022_11_28/types/group_0041.py index 7877727a4..8d48afa40 100644 --- a/githubkit/versions/v2022_11_28/types/group_0041.py +++ b/githubkit/versions/v2022_11_28/types/group_0041.py @@ -13,28 +13,54 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0039 import ReactionRollupType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0020 import RepositoryType +from .group_0039 import MilestoneType +from .group_0040 import ReactionRollupType -class IssueCommentType(TypedDict): - """Issue Comment +class IssueType(TypedDict): + """Issue - Comments provide a way for people to collaborate on an issue. + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ id: int node_id: str url: str - body: NotRequired[str] - body_text: NotRequired[str] - body_html: NotRequired[str] + repository_url: str + labels_url: str + comments_url: str + events_url: str html_url: str + number: int + state: str + state_reason: NotRequired[ + Union[None, Literal["completed", "reopened", "not_planned"]] + ] + title: str + body: NotRequired[Union[str, None]] user: Union[None, SimpleUserType] + labels: list[Union[str, IssuePropLabelsItemsOneof1Type]] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + milestone: Union[None, MilestoneType] + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + comments: int + pull_request: NotRequired[IssuePropPullRequestType] + closed_at: Union[datetime, None] created_at: datetime updated_at: datetime - issue_url: str + draft: NotRequired[bool] + closed_by: NotRequired[Union[None, SimpleUserType]] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + repository: NotRequired[RepositoryType] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -45,8 +71,43 @@ class IssueCommentType(TypedDict): "NONE", "OWNER", ] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] reactions: NotRequired[ReactionRollupType] + sub_issues_summary: NotRequired[SubIssuesSummaryType] + + +class SubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class IssuePropLabelsItemsOneof1Type(TypedDict): + """IssuePropLabelsItemsOneof1""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + default: NotRequired[bool] + + +class IssuePropPullRequestType(TypedDict): + """IssuePropPullRequest""" + + merged_at: NotRequired[Union[datetime, None]] + diff_url: Union[str, None] + html_url: Union[str, None] + patch_url: Union[str, None] + url: Union[str, None] -__all__ = ("IssueCommentType",) +__all__ = ( + "IssuePropLabelsItemsOneof1Type", + "IssuePropPullRequestType", + "IssueType", + "SubIssuesSummaryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0042.py b/githubkit/versions/v2022_11_28/types/group_0042.py index ce030049a..fdc9a81fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0042.py +++ b/githubkit/versions/v2022_11_28/types/group_0042.py @@ -10,75 +10,43 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueType -from .group_0041 import IssueCommentType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0040 import ReactionRollupType -class EventPropPayloadType(TypedDict): - """EventPropPayload""" +class IssueCommentType(TypedDict): + """Issue Comment - action: NotRequired[str] - issue: NotRequired[IssueType] - comment: NotRequired[IssueCommentType] - pages: NotRequired[list[EventPropPayloadPropPagesItemsType]] - - -class EventPropPayloadPropPagesItemsType(TypedDict): - """EventPropPayloadPropPagesItems""" - - page_name: NotRequired[str] - title: NotRequired[str] - summary: NotRequired[Union[str, None]] - action: NotRequired[str] - sha: NotRequired[str] - html_url: NotRequired[str] - - -class EventType(TypedDict): - """Event - - Event - """ - - id: str - type: Union[str, None] - actor: ActorType - repo: EventPropRepoType - org: NotRequired[ActorType] - payload: EventPropPayloadType - public: bool - created_at: Union[datetime, None] - - -class ActorType(TypedDict): - """Actor - - Actor + Comments provide a way for people to collaborate on an issue. """ id: int - login: str - display_login: NotRequired[str] - gravatar_id: Union[str, None] + node_id: str url: str - avatar_url: str - - -class EventPropRepoType(TypedDict): - """EventPropRepo""" - - id: int - name: str - url: str - - -__all__ = ( - "ActorType", - "EventPropPayloadPropPagesItemsType", - "EventPropPayloadType", - "EventPropRepoType", - "EventType", -) + body: NotRequired[str] + body_text: NotRequired[str] + body_html: NotRequired[str] + html_url: str + user: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + issue_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("IssueCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0043.py b/githubkit/versions/v2022_11_28/types/group_0043.py index b0afe5713..a21450dae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0043.py +++ b/githubkit/versions/v2022_11_28/types/group_0043.py @@ -9,55 +9,76 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0041 import IssueType +from .group_0042 import IssueCommentType -class FeedType(TypedDict): - """Feed - Feed +class EventPropPayloadType(TypedDict): + """EventPropPayload""" + + action: NotRequired[str] + issue: NotRequired[IssueType] + comment: NotRequired[IssueCommentType] + pages: NotRequired[list[EventPropPayloadPropPagesItemsType]] + + +class EventPropPayloadPropPagesItemsType(TypedDict): + """EventPropPayloadPropPagesItems""" + + page_name: NotRequired[str] + title: NotRequired[str] + summary: NotRequired[Union[str, None]] + action: NotRequired[str] + sha: NotRequired[str] + html_url: NotRequired[str] + + +class EventType(TypedDict): + """Event + + Event """ - timeline_url: str - user_url: str - current_user_public_url: NotRequired[str] - current_user_url: NotRequired[str] - current_user_actor_url: NotRequired[str] - current_user_organization_url: NotRequired[str] - current_user_organization_urls: NotRequired[list[str]] - security_advisories_url: NotRequired[str] - repository_discussions_url: NotRequired[str] - repository_discussions_category_url: NotRequired[str] - links: FeedPropLinksType - - -class FeedPropLinksType(TypedDict): - """FeedPropLinks""" - - timeline: LinkWithTypeType - user: LinkWithTypeType - security_advisories: NotRequired[LinkWithTypeType] - current_user: NotRequired[LinkWithTypeType] - current_user_public: NotRequired[LinkWithTypeType] - current_user_actor: NotRequired[LinkWithTypeType] - current_user_organization: NotRequired[LinkWithTypeType] - current_user_organizations: NotRequired[list[LinkWithTypeType]] - repository_discussions: NotRequired[LinkWithTypeType] - repository_discussions_category: NotRequired[LinkWithTypeType] - - -class LinkWithTypeType(TypedDict): - """Link With Type - - Hypermedia Link with Type + id: str + type: Union[str, None] + actor: ActorType + repo: EventPropRepoType + org: NotRequired[ActorType] + payload: EventPropPayloadType + public: bool + created_at: Union[datetime, None] + + +class ActorType(TypedDict): + """Actor + + Actor """ - href: str - type: str + id: int + login: str + display_login: NotRequired[str] + gravatar_id: Union[str, None] + url: str + avatar_url: str + + +class EventPropRepoType(TypedDict): + """EventPropRepo""" + + id: int + name: str + url: str __all__ = ( - "FeedPropLinksType", - "FeedType", - "LinkWithTypeType", + "ActorType", + "EventPropPayloadPropPagesItemsType", + "EventPropPayloadType", + "EventPropRepoType", + "EventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0044.py b/githubkit/versions/v2022_11_28/types/group_0044.py index 6c87fa1f4..b0afe5713 100644 --- a/githubkit/versions/v2022_11_28/types/group_0044.py +++ b/githubkit/versions/v2022_11_28/types/group_0044.py @@ -9,48 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class FeedType(TypedDict): + """Feed -class BaseGistType(TypedDict): - """Base Gist + Feed + """ - Base Gist + timeline_url: str + user_url: str + current_user_public_url: NotRequired[str] + current_user_url: NotRequired[str] + current_user_actor_url: NotRequired[str] + current_user_organization_url: NotRequired[str] + current_user_organization_urls: NotRequired[list[str]] + security_advisories_url: NotRequired[str] + repository_discussions_url: NotRequired[str] + repository_discussions_category_url: NotRequired[str] + links: FeedPropLinksType + + +class FeedPropLinksType(TypedDict): + """FeedPropLinks""" + + timeline: LinkWithTypeType + user: LinkWithTypeType + security_advisories: NotRequired[LinkWithTypeType] + current_user: NotRequired[LinkWithTypeType] + current_user_public: NotRequired[LinkWithTypeType] + current_user_actor: NotRequired[LinkWithTypeType] + current_user_organization: NotRequired[LinkWithTypeType] + current_user_organizations: NotRequired[list[LinkWithTypeType]] + repository_discussions: NotRequired[LinkWithTypeType] + repository_discussions_category: NotRequired[LinkWithTypeType] + + +class LinkWithTypeType(TypedDict): + """Link With Type + + Hypermedia Link with Type """ - url: str - forks_url: str - commits_url: str - id: str - node_id: str - git_pull_url: str - git_push_url: str - html_url: str - files: BaseGistPropFilesType - public: bool - created_at: datetime - updated_at: datetime - description: Union[str, None] - comments: int - comments_enabled: NotRequired[bool] - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - forks: NotRequired[list[Any]] - history: NotRequired[list[Any]] - - -BaseGistPropFilesType: TypeAlias = dict[str, Any] -"""BaseGistPropFiles -""" + href: str + type: str __all__ = ( - "BaseGistPropFilesType", - "BaseGistType", + "FeedPropLinksType", + "FeedType", + "LinkWithTypeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0045.py b/githubkit/versions/v2022_11_28/types/group_0045.py index 758fd6646..0b66a8534 100644 --- a/githubkit/versions/v2022_11_28/types/group_0045.py +++ b/githubkit/versions/v2022_11_28/types/group_0045.py @@ -13,34 +13,13 @@ from typing import Any, Union from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType -class GistHistoryType(TypedDict): - """Gist History +class BaseGistType(TypedDict): + """Base Gist - Gist History - """ - - user: NotRequired[Union[None, SimpleUserType]] - version: NotRequired[str] - committed_at: NotRequired[datetime] - change_status: NotRequired[GistHistoryPropChangeStatusType] - url: NotRequired[str] - - -class GistHistoryPropChangeStatusType(TypedDict): - """GistHistoryPropChangeStatus""" - - total: NotRequired[int] - additions: NotRequired[int] - deletions: NotRequired[int] - - -class GistSimplePropForkOfType(TypedDict): - """Gist - - Gist + Base Gist """ url: str @@ -51,7 +30,7 @@ class GistSimplePropForkOfType(TypedDict): git_pull_url: str git_push_url: str html_url: str - files: GistSimplePropForkOfPropFilesType + files: BaseGistPropFilesType public: bool created_at: datetime updated_at: datetime @@ -60,20 +39,18 @@ class GistSimplePropForkOfType(TypedDict): comments_enabled: NotRequired[bool] user: Union[None, SimpleUserType] comments_url: str - owner: NotRequired[Union[None, SimpleUserType]] + owner: NotRequired[SimpleUserType] truncated: NotRequired[bool] forks: NotRequired[list[Any]] history: NotRequired[list[Any]] -GistSimplePropForkOfPropFilesType: TypeAlias = dict[str, Any] -"""GistSimplePropForkOfPropFiles +BaseGistPropFilesType: TypeAlias = dict[str, Any] +"""BaseGistPropFiles """ __all__ = ( - "GistHistoryPropChangeStatusType", - "GistHistoryType", - "GistSimplePropForkOfPropFilesType", - "GistSimplePropForkOfType", + "BaseGistPropFilesType", + "BaseGistType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0046.py b/githubkit/versions/v2022_11_28/types/group_0046.py index cebe44d29..7969063ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0046.py +++ b/githubkit/versions/v2022_11_28/types/group_0046.py @@ -13,116 +13,67 @@ from typing import Any, Union from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0045 import GistHistoryType, GistSimplePropForkOfType +from .group_0003 import SimpleUserType -class GistSimpleType(TypedDict): - """Gist Simple +class GistHistoryType(TypedDict): + """Gist History - Gist Simple + Gist History """ - forks: NotRequired[Union[list[GistSimplePropForksItemsType], None]] - history: NotRequired[Union[list[GistHistoryType], None]] - fork_of: NotRequired[Union[GistSimplePropForkOfType, None]] + user: NotRequired[Union[None, SimpleUserType]] + version: NotRequired[str] + committed_at: NotRequired[datetime] + change_status: NotRequired[GistHistoryPropChangeStatusType] url: NotRequired[str] - forks_url: NotRequired[str] - commits_url: NotRequired[str] - id: NotRequired[str] - node_id: NotRequired[str] - git_pull_url: NotRequired[str] - git_push_url: NotRequired[str] - html_url: NotRequired[str] - files: NotRequired[GistSimplePropFilesType] - public: NotRequired[bool] - created_at: NotRequired[str] - updated_at: NotRequired[str] - description: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_enabled: NotRequired[bool] - user: NotRequired[Union[str, None]] - comments_url: NotRequired[str] - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - - -GistSimplePropFilesType: TypeAlias = dict[str, Any] -"""GistSimplePropFiles -""" -class GistSimplePropForksItemsType(TypedDict): - """GistSimplePropForksItems""" +class GistHistoryPropChangeStatusType(TypedDict): + """GistHistoryPropChangeStatus""" - id: NotRequired[str] - url: NotRequired[str] - user: NotRequired[PublicUserType] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] + total: NotRequired[int] + additions: NotRequired[int] + deletions: NotRequired[int] -class PublicUserType(TypedDict): - """Public User +class GistSimplePropForkOfType(TypedDict): + """Gist - Public User + Gist """ - login: str - id: int - user_view_type: NotRequired[str] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] url: str + forks_url: str + commits_url: str + id: str + node_id: str + git_pull_url: str + git_push_url: str html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - name: Union[str, None] - company: Union[str, None] - blog: Union[str, None] - location: Union[str, None] - email: Union[str, None] - notification_email: NotRequired[Union[str, None]] - hireable: Union[bool, None] - bio: Union[str, None] - twitter_username: NotRequired[Union[str, None]] - public_repos: int - public_gists: int - followers: int - following: int + files: GistSimplePropForkOfPropFilesType + public: bool created_at: datetime updated_at: datetime - plan: NotRequired[PublicUserPropPlanType] - private_gists: NotRequired[int] - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - disk_usage: NotRequired[int] - collaborators: NotRequired[int] - + description: Union[str, None] + comments: int + comments_enabled: NotRequired[bool] + user: Union[None, SimpleUserType] + comments_url: str + owner: NotRequired[Union[None, SimpleUserType]] + truncated: NotRequired[bool] + forks: NotRequired[list[Any]] + history: NotRequired[list[Any]] -class PublicUserPropPlanType(TypedDict): - """PublicUserPropPlan""" - collaborators: int - name: str - space: int - private_repos: int +GistSimplePropForkOfPropFilesType: TypeAlias = dict[str, Any] +"""GistSimplePropForkOfPropFiles +""" __all__ = ( - "GistSimplePropFilesType", - "GistSimplePropForksItemsType", - "GistSimpleType", - "PublicUserPropPlanType", - "PublicUserType", + "GistHistoryPropChangeStatusType", + "GistHistoryType", + "GistSimplePropForkOfPropFilesType", + "GistSimplePropForkOfType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0047.py b/githubkit/versions/v2022_11_28/types/group_0047.py index c259f32b1..38f55774e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0047.py +++ b/githubkit/versions/v2022_11_28/types/group_0047.py @@ -10,35 +10,119 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0046 import GistHistoryType, GistSimplePropForkOfType -class GistCommentType(TypedDict): - """Gist Comment +class GistSimpleType(TypedDict): + """Gist Simple - A comment made to a gist. + Gist Simple """ + forks: NotRequired[Union[list[GistSimplePropForksItemsType], None]] + history: NotRequired[Union[list[GistHistoryType], None]] + fork_of: NotRequired[Union[GistSimplePropForkOfType, None]] + url: NotRequired[str] + forks_url: NotRequired[str] + commits_url: NotRequired[str] + id: NotRequired[str] + node_id: NotRequired[str] + git_pull_url: NotRequired[str] + git_push_url: NotRequired[str] + html_url: NotRequired[str] + files: NotRequired[GistSimplePropFilesType] + public: NotRequired[bool] + created_at: NotRequired[str] + updated_at: NotRequired[str] + description: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_enabled: NotRequired[bool] + user: NotRequired[Union[str, None]] + comments_url: NotRequired[str] + owner: NotRequired[SimpleUserType] + truncated: NotRequired[bool] + + +GistSimplePropFilesType: TypeAlias = dict[str, Any] +"""GistSimplePropFiles +""" + + +class GistSimplePropForksItemsType(TypedDict): + """GistSimplePropForksItems""" + + id: NotRequired[str] + url: NotRequired[str] + user: NotRequired[PublicUserType] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + + +class PublicUserType(TypedDict): + """Public User + + Public User + """ + + login: str id: int + user_view_type: NotRequired[str] node_id: str + avatar_url: str + gravatar_id: Union[str, None] url: str - body: str - user: Union[None, SimpleUserType] + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + name: Union[str, None] + company: Union[str, None] + blog: Union[str, None] + location: Union[str, None] + email: Union[str, None] + notification_email: NotRequired[Union[str, None]] + hireable: Union[bool, None] + bio: Union[str, None] + twitter_username: NotRequired[Union[str, None]] + public_repos: int + public_gists: int + followers: int + following: int created_at: datetime updated_at: datetime - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - - -__all__ = ("GistCommentType",) + plan: NotRequired[PublicUserPropPlanType] + private_gists: NotRequired[int] + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + disk_usage: NotRequired[int] + collaborators: NotRequired[int] + + +class PublicUserPropPlanType(TypedDict): + """PublicUserPropPlan""" + + collaborators: int + name: str + space: int + private_repos: int + + +__all__ = ( + "GistSimplePropFilesType", + "GistSimplePropForksItemsType", + "GistSimpleType", + "PublicUserPropPlanType", + "PublicUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0048.py b/githubkit/versions/v2022_11_28/types/group_0048.py index bde7839f9..d69692063 100644 --- a/githubkit/versions/v2022_11_28/types/group_0048.py +++ b/githubkit/versions/v2022_11_28/types/group_0048.py @@ -10,34 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType -class GistCommitType(TypedDict): - """Gist Commit +class GistCommentType(TypedDict): + """Gist Comment - Gist Commit + A comment made to a gist. """ + id: int + node_id: str url: str - version: str + body: str user: Union[None, SimpleUserType] - change_status: GistCommitPropChangeStatusType - committed_at: datetime - - -class GistCommitPropChangeStatusType(TypedDict): - """GistCommitPropChangeStatus""" - - total: NotRequired[int] - additions: NotRequired[int] - deletions: NotRequired[int] - - -__all__ = ( - "GistCommitPropChangeStatusType", - "GistCommitType", -) + created_at: datetime + updated_at: datetime + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + + +__all__ = ("GistCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0049.py b/githubkit/versions/v2022_11_28/types/group_0049.py index 69bf98302..a6cb34469 100644 --- a/githubkit/versions/v2022_11_28/types/group_0049.py +++ b/githubkit/versions/v2022_11_28/types/group_0049.py @@ -9,17 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class GitignoreTemplateType(TypedDict): - """Gitignore Template - Gitignore Template +class GistCommitType(TypedDict): + """Gist Commit + + Gist Commit """ - name: str - source: str + url: str + version: str + user: Union[None, SimpleUserType] + change_status: GistCommitPropChangeStatusType + committed_at: datetime + + +class GistCommitPropChangeStatusType(TypedDict): + """GistCommitPropChangeStatus""" + + total: NotRequired[int] + additions: NotRequired[int] + deletions: NotRequired[int] -__all__ = ("GitignoreTemplateType",) +__all__ = ( + "GistCommitPropChangeStatusType", + "GistCommitType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0050.py b/githubkit/versions/v2022_11_28/types/group_0050.py index f471d8c73..69bf98302 100644 --- a/githubkit/versions/v2022_11_28/types/group_0050.py +++ b/githubkit/versions/v2022_11_28/types/group_0050.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class LicenseType(TypedDict): - """License +class GitignoreTemplateType(TypedDict): + """Gitignore Template - License + Gitignore Template """ - key: str name: str - spdx_id: Union[str, None] - url: Union[str, None] - node_id: str - html_url: str - description: str - implementation: str - permissions: list[str] - conditions: list[str] - limitations: list[str] - body: str - featured: bool - - -__all__ = ("LicenseType",) + source: str + + +__all__ = ("GitignoreTemplateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0051.py b/githubkit/versions/v2022_11_28/types/group_0051.py index 59d9a8af7..f471d8c73 100644 --- a/githubkit/versions/v2022_11_28/types/group_0051.py +++ b/githubkit/versions/v2022_11_28/types/group_0051.py @@ -9,29 +9,29 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict -class MarketplaceListingPlanType(TypedDict): - """Marketplace Listing Plan +class LicenseType(TypedDict): + """License - Marketplace Listing Plan + License """ - url: str - accounts_url: str - id: int - number: int + key: str name: str + spdx_id: Union[str, None] + url: Union[str, None] + node_id: str + html_url: str description: str - monthly_price_in_cents: int - yearly_price_in_cents: int - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - has_free_trial: bool - unit_name: Union[str, None] - state: str - bullets: list[str] + implementation: str + permissions: list[str] + conditions: list[str] + limitations: list[str] + body: str + featured: bool -__all__ = ("MarketplaceListingPlanType",) +__all__ = ("LicenseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0052.py b/githubkit/versions/v2022_11_28/types/group_0052.py index 67d0d2b87..59d9a8af7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0052.py +++ b/githubkit/versions/v2022_11_28/types/group_0052.py @@ -9,31 +9,29 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0053 import ( - MarketplacePurchasePropMarketplacePendingChangeType, - MarketplacePurchasePropMarketplacePurchaseType, -) +class MarketplaceListingPlanType(TypedDict): + """Marketplace Listing Plan -class MarketplacePurchaseType(TypedDict): - """Marketplace Purchase - - Marketplace Purchase + Marketplace Listing Plan """ url: str - type: str + accounts_url: str id: int - login: str - organization_billing_email: NotRequired[str] - email: NotRequired[Union[str, None]] - marketplace_pending_change: NotRequired[ - Union[MarketplacePurchasePropMarketplacePendingChangeType, None] - ] - marketplace_purchase: MarketplacePurchasePropMarketplacePurchaseType - - -__all__ = ("MarketplacePurchaseType",) + number: int + name: str + description: str + monthly_price_in_cents: int + yearly_price_in_cents: int + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + has_free_trial: bool + unit_name: Union[str, None] + state: str + bullets: list[str] + + +__all__ = ("MarketplaceListingPlanType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0053.py b/githubkit/versions/v2022_11_28/types/group_0053.py index 80192a789..25e4997d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0053.py +++ b/githubkit/versions/v2022_11_28/types/group_0053.py @@ -12,33 +12,28 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0051 import MarketplaceListingPlanType - - -class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): - """MarketplacePurchasePropMarketplacePendingChange""" +from .group_0054 import ( + MarketplacePurchasePropMarketplacePendingChangeType, + MarketplacePurchasePropMarketplacePurchaseType, +) - is_installed: NotRequired[bool] - effective_date: NotRequired[str] - unit_count: NotRequired[Union[int, None]] - id: NotRequired[int] - plan: NotRequired[MarketplaceListingPlanType] +class MarketplacePurchaseType(TypedDict): + """Marketplace Purchase -class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): - """MarketplacePurchasePropMarketplacePurchase""" + Marketplace Purchase + """ - billing_cycle: NotRequired[str] - next_billing_date: NotRequired[Union[str, None]] - is_installed: NotRequired[bool] - unit_count: NotRequired[Union[int, None]] - on_free_trial: NotRequired[bool] - free_trial_ends_on: NotRequired[Union[str, None]] - updated_at: NotRequired[str] - plan: NotRequired[MarketplaceListingPlanType] + url: str + type: str + id: int + login: str + organization_billing_email: NotRequired[str] + email: NotRequired[Union[str, None]] + marketplace_pending_change: NotRequired[ + Union[MarketplacePurchasePropMarketplacePendingChangeType, None] + ] + marketplace_purchase: MarketplacePurchasePropMarketplacePurchaseType -__all__ = ( - "MarketplacePurchasePropMarketplacePendingChangeType", - "MarketplacePurchasePropMarketplacePurchaseType", -) +__all__ = ("MarketplacePurchaseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0054.py b/githubkit/versions/v2022_11_28/types/group_0054.py index d0e33aad3..7c2dcd593 100644 --- a/githubkit/versions/v2022_11_28/types/group_0054.py +++ b/githubkit/versions/v2022_11_28/types/group_0054.py @@ -9,75 +9,36 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0052 import MarketplaceListingPlanType -class ApiOverviewType(TypedDict): - """Api Overview - Api Overview - """ +class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): + """MarketplacePurchasePropMarketplacePendingChange""" - verifiable_password_authentication: bool - ssh_key_fingerprints: NotRequired[ApiOverviewPropSshKeyFingerprintsType] - ssh_keys: NotRequired[list[str]] - hooks: NotRequired[list[str]] - github_enterprise_importer: NotRequired[list[str]] - web: NotRequired[list[str]] - api: NotRequired[list[str]] - git: NotRequired[list[str]] - packages: NotRequired[list[str]] - pages: NotRequired[list[str]] - importer: NotRequired[list[str]] - actions: NotRequired[list[str]] - actions_macos: NotRequired[list[str]] - codespaces: NotRequired[list[str]] - dependabot: NotRequired[list[str]] - copilot: NotRequired[list[str]] - domains: NotRequired[ApiOverviewPropDomainsType] + is_installed: NotRequired[bool] + effective_date: NotRequired[str] + unit_count: NotRequired[Union[int, None]] + id: NotRequired[int] + plan: NotRequired[MarketplaceListingPlanType] -class ApiOverviewPropSshKeyFingerprintsType(TypedDict): - """ApiOverviewPropSshKeyFingerprints""" +class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): + """MarketplacePurchasePropMarketplacePurchase""" - sha256_rsa: NotRequired[str] - sha256_dsa: NotRequired[str] - sha256_ecdsa: NotRequired[str] - sha256_ed25519: NotRequired[str] - - -class ApiOverviewPropDomainsType(TypedDict): - """ApiOverviewPropDomains""" - - website: NotRequired[list[str]] - codespaces: NotRequired[list[str]] - copilot: NotRequired[list[str]] - packages: NotRequired[list[str]] - actions: NotRequired[list[str]] - actions_inbound: NotRequired[ApiOverviewPropDomainsPropActionsInboundType] - artifact_attestations: NotRequired[ - ApiOverviewPropDomainsPropArtifactAttestationsType - ] - - -class ApiOverviewPropDomainsPropActionsInboundType(TypedDict): - """ApiOverviewPropDomainsPropActionsInbound""" - - full_domains: NotRequired[list[str]] - wildcard_domains: NotRequired[list[str]] - - -class ApiOverviewPropDomainsPropArtifactAttestationsType(TypedDict): - """ApiOverviewPropDomainsPropArtifactAttestations""" - - trust_domain: NotRequired[str] - services: NotRequired[list[str]] + billing_cycle: NotRequired[str] + next_billing_date: NotRequired[Union[str, None]] + is_installed: NotRequired[bool] + unit_count: NotRequired[Union[int, None]] + on_free_trial: NotRequired[bool] + free_trial_ends_on: NotRequired[Union[str, None]] + updated_at: NotRequired[str] + plan: NotRequired[MarketplaceListingPlanType] __all__ = ( - "ApiOverviewPropDomainsPropActionsInboundType", - "ApiOverviewPropDomainsPropArtifactAttestationsType", - "ApiOverviewPropDomainsType", - "ApiOverviewPropSshKeyFingerprintsType", - "ApiOverviewType", + "MarketplacePurchasePropMarketplacePendingChangeType", + "MarketplacePurchasePropMarketplacePurchaseType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0055.py b/githubkit/versions/v2022_11_28/types/group_0055.py index a48416d4b..d0e33aad3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0055.py +++ b/githubkit/versions/v2022_11_28/types/group_0055.py @@ -9,74 +9,75 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class SecurityAndAnalysisType(TypedDict): - """SecurityAndAnalysis""" +class ApiOverviewType(TypedDict): + """Api Overview - advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] - dependabot_security_updates: NotRequired[ - SecurityAndAnalysisPropDependabotSecurityUpdatesType - ] - secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] - secret_scanning_push_protection: NotRequired[ - SecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_non_provider_patterns: NotRequired[ - SecurityAndAnalysisPropSecretScanningNonProviderPatternsType - ] - secret_scanning_ai_detection: NotRequired[ - SecurityAndAnalysisPropSecretScanningAiDetectionType - ] - - -class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): - """SecurityAndAnalysisPropDependabotSecurityUpdates - - Enable or disable Dependabot security updates for the repository. + Api Overview """ - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningType(TypedDict): - """SecurityAndAnalysisPropSecretScanning""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): - """SecurityAndAnalysisPropSecretScanningPushProtection""" - - status: NotRequired[Literal["enabled", "disabled"]] + verifiable_password_authentication: bool + ssh_key_fingerprints: NotRequired[ApiOverviewPropSshKeyFingerprintsType] + ssh_keys: NotRequired[list[str]] + hooks: NotRequired[list[str]] + github_enterprise_importer: NotRequired[list[str]] + web: NotRequired[list[str]] + api: NotRequired[list[str]] + git: NotRequired[list[str]] + packages: NotRequired[list[str]] + pages: NotRequired[list[str]] + importer: NotRequired[list[str]] + actions: NotRequired[list[str]] + actions_macos: NotRequired[list[str]] + codespaces: NotRequired[list[str]] + dependabot: NotRequired[list[str]] + copilot: NotRequired[list[str]] + domains: NotRequired[ApiOverviewPropDomainsType] + + +class ApiOverviewPropSshKeyFingerprintsType(TypedDict): + """ApiOverviewPropSshKeyFingerprints""" + + sha256_rsa: NotRequired[str] + sha256_dsa: NotRequired[str] + sha256_ecdsa: NotRequired[str] + sha256_ed25519: NotRequired[str] + + +class ApiOverviewPropDomainsType(TypedDict): + """ApiOverviewPropDomains""" + + website: NotRequired[list[str]] + codespaces: NotRequired[list[str]] + copilot: NotRequired[list[str]] + packages: NotRequired[list[str]] + actions: NotRequired[list[str]] + actions_inbound: NotRequired[ApiOverviewPropDomainsPropActionsInboundType] + artifact_attestations: NotRequired[ + ApiOverviewPropDomainsPropArtifactAttestationsType + ] -class SecurityAndAnalysisPropSecretScanningNonProviderPatternsType(TypedDict): - """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" +class ApiOverviewPropDomainsPropActionsInboundType(TypedDict): + """ApiOverviewPropDomainsPropActionsInbound""" - status: NotRequired[Literal["enabled", "disabled"]] + full_domains: NotRequired[list[str]] + wildcard_domains: NotRequired[list[str]] -class SecurityAndAnalysisPropSecretScanningAiDetectionType(TypedDict): - """SecurityAndAnalysisPropSecretScanningAiDetection""" +class ApiOverviewPropDomainsPropArtifactAttestationsType(TypedDict): + """ApiOverviewPropDomainsPropArtifactAttestations""" - status: NotRequired[Literal["enabled", "disabled"]] + trust_domain: NotRequired[str] + services: NotRequired[list[str]] __all__ = ( - "SecurityAndAnalysisPropAdvancedSecurityType", - "SecurityAndAnalysisPropDependabotSecurityUpdatesType", - "SecurityAndAnalysisPropSecretScanningAiDetectionType", - "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "SecurityAndAnalysisPropSecretScanningPushProtectionType", - "SecurityAndAnalysisPropSecretScanningType", - "SecurityAndAnalysisType", + "ApiOverviewPropDomainsPropActionsInboundType", + "ApiOverviewPropDomainsPropArtifactAttestationsType", + "ApiOverviewPropDomainsType", + "ApiOverviewPropSshKeyFingerprintsType", + "ApiOverviewType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0056.py b/githubkit/versions/v2022_11_28/types/group_0056.py index a05da3337..a48416d4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0056.py +++ b/githubkit/versions/v2022_11_28/types/group_0056.py @@ -9,145 +9,74 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0055 import SecurityAndAnalysisType +class SecurityAndAnalysisType(TypedDict): + """SecurityAndAnalysis""" -class MinimalRepositoryType(TypedDict): - """Minimal Repository + advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] + dependabot_security_updates: NotRequired[ + SecurityAndAnalysisPropDependabotSecurityUpdatesType + ] + secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] + secret_scanning_push_protection: NotRequired[ + SecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + SecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + secret_scanning_ai_detection: NotRequired[ + SecurityAndAnalysisPropSecretScanningAiDetectionType + ] - Minimal Repository - """ - id: int - node_id: str - name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: NotRequired[str] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: NotRequired[str] - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: NotRequired[str] - mirror_url: NotRequired[Union[str, None]] - hooks_url: str - svn_url: NotRequired[str] - homepage: NotRequired[Union[str, None]] - language: NotRequired[Union[str, None]] - forks_count: NotRequired[int] - stargazers_count: NotRequired[int] - watchers_count: NotRequired[int] - size: NotRequired[int] - default_branch: NotRequired[str] - open_issues_count: NotRequired[int] - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_pages: NotRequired[bool] - has_downloads: NotRequired[bool] - has_discussions: NotRequired[bool] - archived: NotRequired[bool] - disabled: NotRequired[bool] - visibility: NotRequired[str] - pushed_at: NotRequired[Union[datetime, None]] - created_at: NotRequired[Union[datetime, None]] - updated_at: NotRequired[Union[datetime, None]] - permissions: NotRequired[MinimalRepositoryPropPermissionsType] - role_name: NotRequired[str] - temp_clone_token: NotRequired[Union[str, None]] - delete_branch_on_merge: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - code_of_conduct: NotRequired[CodeOfConductType] - license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] - forks: NotRequired[int] - open_issues: NotRequired[int] - watchers: NotRequired[int] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] - - -class CodeOfConductType(TypedDict): - """Code Of Conduct - - Code Of Conduct +class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """SecurityAndAnalysisPropAdvancedSecurity""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. """ - key: str - name: str - url: str - body: NotRequired[str] - html_url: Union[str, None] + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningType(TypedDict): + """SecurityAndAnalysisPropSecretScanning""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningPushProtection""" + + status: NotRequired[Literal["enabled", "disabled"]] -class MinimalRepositoryPropPermissionsType(TypedDict): - """MinimalRepositoryPropPermissions""" +class SecurityAndAnalysisPropSecretScanningNonProviderPatternsType(TypedDict): + """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] + status: NotRequired[Literal["enabled", "disabled"]] -class MinimalRepositoryPropLicenseType(TypedDict): - """MinimalRepositoryPropLicense""" +class SecurityAndAnalysisPropSecretScanningAiDetectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningAiDetection""" - key: NotRequired[str] - name: NotRequired[str] - spdx_id: NotRequired[str] - url: NotRequired[str] - node_id: NotRequired[str] + status: NotRequired[Literal["enabled", "disabled"]] __all__ = ( - "CodeOfConductType", - "MinimalRepositoryPropLicenseType", - "MinimalRepositoryPropPermissionsType", - "MinimalRepositoryType", + "SecurityAndAnalysisPropAdvancedSecurityType", + "SecurityAndAnalysisPropDependabotSecurityUpdatesType", + "SecurityAndAnalysisPropSecretScanningAiDetectionType", + "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "SecurityAndAnalysisPropSecretScanningPushProtectionType", + "SecurityAndAnalysisPropSecretScanningType", + "SecurityAndAnalysisType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0057.py b/githubkit/versions/v2022_11_28/types/group_0057.py index a6be8f9bf..733c5eec4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0057.py +++ b/githubkit/versions/v2022_11_28/types/group_0057.py @@ -9,39 +9,145 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0056 import MinimalRepositoryType +from .group_0003 import SimpleUserType +from .group_0056 import SecurityAndAnalysisType -class ThreadType(TypedDict): - """Thread +class MinimalRepositoryType(TypedDict): + """Minimal Repository - Thread + Minimal Repository """ - id: str - repository: MinimalRepositoryType - subject: ThreadPropSubjectType - reason: str - unread: bool - updated_at: str - last_read_at: Union[str, None] + id: int + node_id: str + name: str + full_name: str + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: NotRequired[str] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: NotRequired[str] + stargazers_url: str + statuses_url: str + subscribers_url: str subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: NotRequired[str] + mirror_url: NotRequired[Union[str, None]] + hooks_url: str + svn_url: NotRequired[str] + homepage: NotRequired[Union[str, None]] + language: NotRequired[Union[str, None]] + forks_count: NotRequired[int] + stargazers_count: NotRequired[int] + watchers_count: NotRequired[int] + size: NotRequired[int] + default_branch: NotRequired[str] + open_issues_count: NotRequired[int] + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_pages: NotRequired[bool] + has_downloads: NotRequired[bool] + has_discussions: NotRequired[bool] + archived: NotRequired[bool] + disabled: NotRequired[bool] + visibility: NotRequired[str] + pushed_at: NotRequired[Union[datetime, None]] + created_at: NotRequired[Union[datetime, None]] + updated_at: NotRequired[Union[datetime, None]] + permissions: NotRequired[MinimalRepositoryPropPermissionsType] + role_name: NotRequired[str] + temp_clone_token: NotRequired[Union[str, None]] + delete_branch_on_merge: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + code_of_conduct: NotRequired[CodeOfConductType] + license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] + forks: NotRequired[int] + open_issues: NotRequired[int] + watchers: NotRequired[int] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] -class ThreadPropSubjectType(TypedDict): - """ThreadPropSubject""" +class CodeOfConductType(TypedDict): + """Code Of Conduct - title: str + Code Of Conduct + """ + + key: str + name: str url: str - latest_comment_url: str - type: str + body: NotRequired[str] + html_url: Union[str, None] + + +class MinimalRepositoryPropPermissionsType(TypedDict): + """MinimalRepositoryPropPermissions""" + + admin: NotRequired[bool] + maintain: NotRequired[bool] + push: NotRequired[bool] + triage: NotRequired[bool] + pull: NotRequired[bool] + + +class MinimalRepositoryPropLicenseType(TypedDict): + """MinimalRepositoryPropLicense""" + + key: NotRequired[str] + name: NotRequired[str] + spdx_id: NotRequired[str] + url: NotRequired[str] + node_id: NotRequired[str] __all__ = ( - "ThreadPropSubjectType", - "ThreadType", + "CodeOfConductType", + "MinimalRepositoryPropLicenseType", + "MinimalRepositoryPropPermissionsType", + "MinimalRepositoryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0058.py b/githubkit/versions/v2022_11_28/types/group_0058.py index f0966921a..4fdd9d744 100644 --- a/githubkit/versions/v2022_11_28/types/group_0058.py +++ b/githubkit/versions/v2022_11_28/types/group_0058.py @@ -9,24 +9,39 @@ from __future__ import annotations -from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0057 import MinimalRepositoryType -class ThreadSubscriptionType(TypedDict): - """Thread Subscription - Thread Subscription +class ThreadType(TypedDict): + """Thread + + Thread """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: Union[datetime, None] + id: str + repository: MinimalRepositoryType + subject: ThreadPropSubjectType + reason: str + unread: bool + updated_at: str + last_read_at: Union[str, None] + url: str + subscription_url: str + + +class ThreadPropSubjectType(TypedDict): + """ThreadPropSubject""" + + title: str url: str - thread_url: NotRequired[str] - repository_url: NotRequired[str] + latest_comment_url: str + type: str -__all__ = ("ThreadSubscriptionType",) +__all__ = ( + "ThreadPropSubjectType", + "ThreadType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0059.py b/githubkit/versions/v2022_11_28/types/group_0059.py index 4b96a4953..f0966921a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0059.py +++ b/githubkit/versions/v2022_11_28/types/group_0059.py @@ -9,28 +9,24 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrganizationSimpleType(TypedDict): - """Organization Simple +class ThreadSubscriptionType(TypedDict): + """Thread Subscription - A GitHub organization. + Thread Subscription """ - login: str - id: int - node_id: str + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: Union[datetime, None] url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] + thread_url: NotRequired[str] + repository_url: NotRequired[str] -__all__ = ("OrganizationSimpleType",) +__all__ = ("ThreadSubscriptionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0060.py b/githubkit/versions/v2022_11_28/types/group_0060.py index 8b794ad2d..4b96a4953 100644 --- a/githubkit/versions/v2022_11_28/types/group_0060.py +++ b/githubkit/versions/v2022_11_28/types/group_0060.py @@ -9,32 +9,28 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class BillingUsageReportType(TypedDict): - """BillingUsageReport""" +class OrganizationSimpleType(TypedDict): + """Organization Simple - usage_items: NotRequired[list[BillingUsageReportPropUsageItemsItemsType]] + A GitHub organization. + """ + login: str + id: int + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] -class BillingUsageReportPropUsageItemsItemsType(TypedDict): - """BillingUsageReportPropUsageItemsItems""" - date: str - product: str - sku: str - quantity: int - unit_type: str - price_per_unit: float - gross_amount: float - discount_amount: float - net_amount: float - organization_name: str - repository_name: NotRequired[str] - - -__all__ = ( - "BillingUsageReportPropUsageItemsItemsType", - "BillingUsageReportType", -) +__all__ = ("OrganizationSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0061.py b/githubkit/versions/v2022_11_28/types/group_0061.py index 940a3ae68..8b794ad2d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0061.py +++ b/githubkit/versions/v2022_11_28/types/group_0061.py @@ -9,88 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -class OrganizationFullType(TypedDict): - """Organization Full +class BillingUsageReportType(TypedDict): + """BillingUsageReport""" - Organization Full - """ + usage_items: NotRequired[list[BillingUsageReportPropUsageItemsItemsType]] - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[OrganizationFullPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] - deploy_keys_enabled_for_repositories: NotRequired[bool] +class BillingUsageReportPropUsageItemsItemsType(TypedDict): + """BillingUsageReportPropUsageItemsItems""" -class OrganizationFullPropPlanType(TypedDict): - """OrganizationFullPropPlan""" - - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] + date: str + product: str + sku: str + quantity: int + unit_type: str + price_per_unit: float + gross_amount: float + discount_amount: float + net_amount: float + organization_name: str + repository_name: NotRequired[str] __all__ = ( - "OrganizationFullPropPlanType", - "OrganizationFullType", + "BillingUsageReportPropUsageItemsItemsType", + "BillingUsageReportType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0062.py b/githubkit/versions/v2022_11_28/types/group_0062.py index a41742c81..940a3ae68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0062.py +++ b/githubkit/versions/v2022_11_28/types/group_0062.py @@ -9,14 +9,88 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ActionsCacheUsageOrgEnterpriseType(TypedDict): - """ActionsCacheUsageOrgEnterprise""" +class OrganizationFullType(TypedDict): + """Organization Full - total_active_caches_count: int - total_active_caches_size_in_bytes: int + Organization Full + """ + login: str + id: int + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + name: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + blog: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + twitter_username: NotRequired[Union[str, None]] + is_verified: NotRequired[bool] + has_organization_projects: bool + has_repository_projects: bool + public_repos: int + public_gists: int + followers: int + following: int + html_url: str + type: str + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + private_gists: NotRequired[Union[int, None]] + disk_usage: NotRequired[Union[int, None]] + collaborators: NotRequired[Union[int, None]] + billing_email: NotRequired[Union[str, None]] + plan: NotRequired[OrganizationFullPropPlanType] + default_repository_permission: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] + web_commit_signoff_required: NotRequired[bool] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + archived_at: Union[datetime, None] + deploy_keys_enabled_for_repositories: NotRequired[bool] -__all__ = ("ActionsCacheUsageOrgEnterpriseType",) + +class OrganizationFullPropPlanType(TypedDict): + """OrganizationFullPropPlan""" + + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] + + +__all__ = ( + "OrganizationFullPropPlanType", + "OrganizationFullType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0063.py b/githubkit/versions/v2022_11_28/types/group_0063.py index f8ed08e06..a41742c81 100644 --- a/githubkit/versions/v2022_11_28/types/group_0063.py +++ b/githubkit/versions/v2022_11_28/types/group_0063.py @@ -12,13 +12,11 @@ from typing_extensions import TypedDict -class OidcCustomSubType(TypedDict): - """Actions OIDC Subject customization +class ActionsCacheUsageOrgEnterpriseType(TypedDict): + """ActionsCacheUsageOrgEnterprise""" - Actions OIDC Subject customization - """ + total_active_caches_count: int + total_active_caches_size_in_bytes: int - include_claim_keys: list[str] - -__all__ = ("OidcCustomSubType",) +__all__ = ("ActionsCacheUsageOrgEnterpriseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0064.py b/githubkit/versions/v2022_11_28/types/group_0064.py index f02f87f3d..a22762330 100644 --- a/githubkit/versions/v2022_11_28/types/group_0064.py +++ b/githubkit/versions/v2022_11_28/types/group_0064.py @@ -9,17 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ActionsOrganizationPermissionsType(TypedDict): - """ActionsOrganizationPermissions""" +class ActionsHostedRunnerMachineSpecType(TypedDict): + """Github-owned VM details. - enabled_repositories: Literal["all", "none", "selected"] - selected_repositories_url: NotRequired[str] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] + Provides details of a particular machine spec. + """ + id: str + cpu_cores: int + memory_gb: int + storage_gb: int -__all__ = ("ActionsOrganizationPermissionsType",) + +__all__ = ("ActionsHostedRunnerMachineSpecType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0065.py b/githubkit/versions/v2022_11_28/types/group_0065.py index 7abe76199..c41c967aa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0065.py +++ b/githubkit/versions/v2022_11_28/types/group_0065.py @@ -9,15 +9,58 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0064 import ActionsHostedRunnerMachineSpecType -class SelectedActionsType(TypedDict): - """SelectedActions""" - github_owned_allowed: NotRequired[bool] - verified_allowed: NotRequired[bool] - patterns_allowed: NotRequired[list[str]] +class ActionsHostedRunnerType(TypedDict): + """GitHub-hosted hosted runner + A Github-hosted hosted runner. + """ -__all__ = ("SelectedActionsType",) + id: int + name: str + runner_group_id: NotRequired[int] + image_details: Union[None, ActionsHostedRunnerPoolImageType] + machine_size_details: ActionsHostedRunnerMachineSpecType + status: Literal["Ready", "Provisioning", "Shutdown", "Deleting", "Stuck"] + platform: str + maximum_runners: NotRequired[int] + public_ip_enabled: bool + public_ips: NotRequired[list[PublicIpType]] + last_active_on: NotRequired[Union[datetime, None]] + + +class ActionsHostedRunnerPoolImageType(TypedDict): + """GitHub-hosted runner image details. + + Provides details of a hosted runner image + """ + + id: str + size_gb: int + display_name: str + source: Literal["github", "partner", "custom"] + version: str + + +class PublicIpType(TypedDict): + """Public IP for a GitHub-hosted larger runners. + + Provides details of Public IP for a GitHub-hosted larger runners + """ + + enabled: NotRequired[bool] + prefix: NotRequired[str] + length: NotRequired[int] + + +__all__ = ( + "ActionsHostedRunnerPoolImageType", + "ActionsHostedRunnerType", + "PublicIpType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0066.py b/githubkit/versions/v2022_11_28/types/group_0066.py index 87512f917..8840d8ecc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0066.py +++ b/githubkit/versions/v2022_11_28/types/group_0066.py @@ -13,11 +13,17 @@ from typing_extensions import TypedDict -class ActionsGetDefaultWorkflowPermissionsType(TypedDict): - """ActionsGetDefaultWorkflowPermissions""" +class ActionsHostedRunnerImageType(TypedDict): + """GitHub-hosted runner image details. - default_workflow_permissions: Literal["read", "write"] - can_approve_pull_request_reviews: bool + Provides details of a hosted runner image + """ + id: str + platform: str + size_gb: int + display_name: str + source: Literal["github", "partner", "custom"] -__all__ = ("ActionsGetDefaultWorkflowPermissionsType",) + +__all__ = ("ActionsHostedRunnerImageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0067.py b/githubkit/versions/v2022_11_28/types/group_0067.py index 0e0c798a4..7fbef21bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0067.py +++ b/githubkit/versions/v2022_11_28/types/group_0067.py @@ -9,15 +9,26 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ActionsSetDefaultWorkflowPermissionsType(TypedDict): - """ActionsSetDefaultWorkflowPermissions""" +class ActionsHostedRunnerLimitsType(TypedDict): + """ActionsHostedRunnerLimits""" - default_workflow_permissions: NotRequired[Literal["read", "write"]] - can_approve_pull_request_reviews: NotRequired[bool] + public_ips: ActionsHostedRunnerLimitsPropPublicIpsType -__all__ = ("ActionsSetDefaultWorkflowPermissionsType",) +class ActionsHostedRunnerLimitsPropPublicIpsType(TypedDict): + """Static public IP Limits for GitHub-hosted Hosted Runners. + + Provides details of static public IP limits for GitHub-hosted Hosted Runners + """ + + maximum: int + current_usage: int + + +__all__ = ( + "ActionsHostedRunnerLimitsPropPublicIpsType", + "ActionsHostedRunnerLimitsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0068.py b/githubkit/versions/v2022_11_28/types/group_0068.py index aab282720..f8ed08e06 100644 --- a/githubkit/versions/v2022_11_28/types/group_0068.py +++ b/githubkit/versions/v2022_11_28/types/group_0068.py @@ -9,19 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class RunnerLabelType(TypedDict): - """Self hosted runner label +class OidcCustomSubType(TypedDict): + """Actions OIDC Subject customization - A label for a self hosted runner + Actions OIDC Subject customization """ - id: NotRequired[int] - name: str - type: NotRequired[Literal["read-only", "custom"]] + include_claim_keys: list[str] -__all__ = ("RunnerLabelType",) +__all__ = ("OidcCustomSubType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0069.py b/githubkit/versions/v2022_11_28/types/group_0069.py index 3ca01c5b0..f02f87f3d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0069.py +++ b/githubkit/versions/v2022_11_28/types/group_0069.py @@ -9,24 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0068 import RunnerLabelType +class ActionsOrganizationPermissionsType(TypedDict): + """ActionsOrganizationPermissions""" -class RunnerType(TypedDict): - """Self hosted runners + enabled_repositories: Literal["all", "none", "selected"] + selected_repositories_url: NotRequired[str] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] - A self hosted runner - """ - id: int - runner_group_id: NotRequired[int] - name: str - os: str - status: str - busy: bool - labels: list[RunnerLabelType] - - -__all__ = ("RunnerType",) +__all__ = ("ActionsOrganizationPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0070.py b/githubkit/versions/v2022_11_28/types/group_0070.py index c8ef6e908..7abe76199 100644 --- a/githubkit/versions/v2022_11_28/types/group_0070.py +++ b/githubkit/versions/v2022_11_28/types/group_0070.py @@ -12,18 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class RunnerApplicationType(TypedDict): - """Runner Application +class SelectedActionsType(TypedDict): + """SelectedActions""" - Runner Application - """ + github_owned_allowed: NotRequired[bool] + verified_allowed: NotRequired[bool] + patterns_allowed: NotRequired[list[str]] - os: str - architecture: str - download_url: str - filename: str - temp_download_token: NotRequired[str] - sha256_checksum: NotRequired[str] - -__all__ = ("RunnerApplicationType",) +__all__ = ("SelectedActionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0071.py b/githubkit/versions/v2022_11_28/types/group_0071.py index cc0caf900..87512f917 100644 --- a/githubkit/versions/v2022_11_28/types/group_0071.py +++ b/githubkit/versions/v2022_11_28/types/group_0071.py @@ -9,36 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_0019 import RepositoryType +class ActionsGetDefaultWorkflowPermissionsType(TypedDict): + """ActionsGetDefaultWorkflowPermissions""" -class AuthenticationTokenType(TypedDict): - """Authentication Token + default_workflow_permissions: Literal["read", "write"] + can_approve_pull_request_reviews: bool - Authentication Token - """ - token: str - expires_at: datetime - permissions: NotRequired[AuthenticationTokenPropPermissionsType] - repositories: NotRequired[list[RepositoryType]] - single_file: NotRequired[Union[str, None]] - repository_selection: NotRequired[Literal["all", "selected"]] - - -class AuthenticationTokenPropPermissionsType(TypedDict): - """AuthenticationTokenPropPermissions - - Examples: - {'issues': 'read', 'deployments': 'write'} - """ - - -__all__ = ( - "AuthenticationTokenPropPermissionsType", - "AuthenticationTokenType", -) +__all__ = ("ActionsGetDefaultWorkflowPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0072.py b/githubkit/versions/v2022_11_28/types/group_0072.py index f67033a97..0e0c798a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0072.py +++ b/githubkit/versions/v2022_11_28/types/group_0072.py @@ -9,21 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ActionsPublicKeyType(TypedDict): - """ActionsPublicKey +class ActionsSetDefaultWorkflowPermissionsType(TypedDict): + """ActionsSetDefaultWorkflowPermissions""" - The public key used for setting Actions Secrets. - """ + default_workflow_permissions: NotRequired[Literal["read", "write"]] + can_approve_pull_request_reviews: NotRequired[bool] - key_id: str - key: str - id: NotRequired[int] - url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] - -__all__ = ("ActionsPublicKeyType",) +__all__ = ("ActionsSetDefaultWorkflowPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0073.py b/githubkit/versions/v2022_11_28/types/group_0073.py index 3319f338b..aab282720 100644 --- a/githubkit/versions/v2022_11_28/types/group_0073.py +++ b/githubkit/versions/v2022_11_28/types/group_0073.py @@ -9,24 +9,19 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class CodeScanningAlertRuleSummaryType(TypedDict): - """CodeScanningAlertRuleSummary""" +class RunnerLabelType(TypedDict): + """Self hosted runner label - id: NotRequired[Union[str, None]] - name: NotRequired[str] - severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] - security_severity_level: NotRequired[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] - description: NotRequired[str] - full_description: NotRequired[str] - tags: NotRequired[Union[list[str], None]] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] + A label for a self hosted runner + """ + id: NotRequired[int] + name: str + type: NotRequired[Literal["read-only", "custom"]] -__all__ = ("CodeScanningAlertRuleSummaryType",) + +__all__ = ("RunnerLabelType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0074.py b/githubkit/versions/v2022_11_28/types/group_0074.py index 33e4a93fd..ccf1d6542 100644 --- a/githubkit/versions/v2022_11_28/types/group_0074.py +++ b/githubkit/versions/v2022_11_28/types/group_0074.py @@ -9,16 +9,24 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0073 import RunnerLabelType -class CodeScanningAnalysisToolType(TypedDict): - """CodeScanningAnalysisTool""" - name: NotRequired[str] - version: NotRequired[Union[str, None]] - guid: NotRequired[Union[str, None]] +class RunnerType(TypedDict): + """Self hosted runners + A self hosted runner + """ -__all__ = ("CodeScanningAnalysisToolType",) + id: int + runner_group_id: NotRequired[int] + name: str + os: str + status: str + busy: bool + labels: list[RunnerLabelType] + + +__all__ = ("RunnerType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0075.py b/githubkit/versions/v2022_11_28/types/group_0075.py index dae11d059..c8ef6e908 100644 --- a/githubkit/versions/v2022_11_28/types/group_0075.py +++ b/githubkit/versions/v2022_11_28/types/group_0075.py @@ -9,48 +9,21 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeScanningAlertInstanceType(TypedDict): - """CodeScanningAlertInstance""" +class RunnerApplicationType(TypedDict): + """Runner Application - ref: NotRequired[str] - analysis_key: NotRequired[str] - environment: NotRequired[str] - category: NotRequired[str] - state: NotRequired[Union[None, Literal["open", "dismissed", "fixed"]]] - commit_sha: NotRequired[str] - message: NotRequired[CodeScanningAlertInstancePropMessageType] - location: NotRequired[CodeScanningAlertLocationType] - html_url: NotRequired[str] - classifications: NotRequired[ - list[Union[None, Literal["source", "generated", "test", "library"]]] - ] - - -class CodeScanningAlertLocationType(TypedDict): - """CodeScanningAlertLocation - - Describe a region within a file for the alert. + Runner Application """ - path: NotRequired[str] - start_line: NotRequired[int] - end_line: NotRequired[int] - start_column: NotRequired[int] - end_column: NotRequired[int] - - -class CodeScanningAlertInstancePropMessageType(TypedDict): - """CodeScanningAlertInstancePropMessage""" - - text: NotRequired[str] + os: str + architecture: str + download_url: str + filename: str + temp_download_token: NotRequired[str] + sha256_checksum: NotRequired[str] -__all__ = ( - "CodeScanningAlertInstancePropMessageType", - "CodeScanningAlertInstanceType", - "CodeScanningAlertLocationType", -) +__all__ = ("RunnerApplicationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0076.py b/githubkit/versions/v2022_11_28/types/group_0076.py index cb87617ff..b1d20d9db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0076.py +++ b/githubkit/versions/v2022_11_28/types/group_0076.py @@ -13,34 +13,32 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0030 import SimpleRepositoryType -from .group_0073 import CodeScanningAlertRuleSummaryType -from .group_0074 import CodeScanningAnalysisToolType -from .group_0075 import CodeScanningAlertInstanceType - - -class CodeScanningOrganizationAlertItemsType(TypedDict): - """CodeScanningOrganizationAlertItems""" - - number: int - created_at: datetime - updated_at: NotRequired[datetime] - url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - repository: SimpleRepositoryType - - -__all__ = ("CodeScanningOrganizationAlertItemsType",) +from .group_0020 import RepositoryType + + +class AuthenticationTokenType(TypedDict): + """Authentication Token + + Authentication Token + """ + + token: str + expires_at: datetime + permissions: NotRequired[AuthenticationTokenPropPermissionsType] + repositories: NotRequired[list[RepositoryType]] + single_file: NotRequired[Union[str, None]] + repository_selection: NotRequired[Literal["all", "selected"]] + + +class AuthenticationTokenPropPermissionsType(TypedDict): + """AuthenticationTokenPropPermissions + + Examples: + {'issues': 'read', 'deployments': 'write'} + """ + + +__all__ = ( + "AuthenticationTokenPropPermissionsType", + "AuthenticationTokenType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0077.py b/githubkit/versions/v2022_11_28/types/group_0077.py index febb2d4f6..f67033a97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0077.py +++ b/githubkit/versions/v2022_11_28/types/group_0077.py @@ -9,23 +9,21 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CodespaceMachineType(TypedDict): - """Codespace machine +class ActionsPublicKeyType(TypedDict): + """ActionsPublicKey - A description of the machine powering a codespace. + The public key used for setting Actions Secrets. """ - name: str - display_name: str - operating_system: str - storage_in_bytes: int - memory_in_bytes: int - cpus: int - prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] -__all__ = ("CodespaceMachineType",) +__all__ = ("ActionsPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0078.py b/githubkit/versions/v2022_11_28/types/group_0078.py index dad40b44f..3319f338b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0078.py +++ b/githubkit/versions/v2022_11_28/types/group_0078.py @@ -9,94 +9,24 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0056 import MinimalRepositoryType -from .group_0077 import CodespaceMachineType +class CodeScanningAlertRuleSummaryType(TypedDict): + """CodeScanningAlertRuleSummary""" -class CodespaceType(TypedDict): - """Codespace - - A codespace. - """ - - id: int - name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: MinimalRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] - created_at: datetime - updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", + id: NotRequired[Union[str, None]] + name: NotRequired[str] + severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] + security_severity_level: NotRequired[ + Union[None, Literal["low", "medium", "high", "critical"]] ] - url: str - git_status: CodespacePropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: list[str] - runtime_constraints: NotRequired[CodespacePropRuntimeConstraintsType] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] - last_known_stop_notice: NotRequired[Union[str, None]] - - -class CodespacePropGitStatusType(TypedDict): - """CodespacePropGitStatus - - Details about the codespace's git repository. - """ - - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] - - -class CodespacePropRuntimeConstraintsType(TypedDict): - """CodespacePropRuntimeConstraints""" - - allowed_port_privacy_settings: NotRequired[Union[list[str], None]] + description: NotRequired[str] + full_description: NotRequired[str] + tags: NotRequired[Union[list[str], None]] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] -__all__ = ( - "CodespacePropGitStatusType", - "CodespacePropRuntimeConstraintsType", - "CodespaceType", -) +__all__ = ("CodeScanningAlertRuleSummaryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0079.py b/githubkit/versions/v2022_11_28/types/group_0079.py index 3f68d2a84..33e4a93fd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0079.py +++ b/githubkit/versions/v2022_11_28/types/group_0079.py @@ -9,21 +9,16 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class CodespacesPublicKeyType(TypedDict): - """CodespacesPublicKey +class CodeScanningAnalysisToolType(TypedDict): + """CodeScanningAnalysisTool""" - The public key used for setting Codespaces secrets. - """ + name: NotRequired[str] + version: NotRequired[Union[str, None]] + guid: NotRequired[Union[str, None]] - key_id: str - key: str - id: NotRequired[int] - url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] - -__all__ = ("CodespacesPublicKeyType",) +__all__ = ("CodeScanningAnalysisToolType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0080.py b/githubkit/versions/v2022_11_28/types/group_0080.py index 6a2981202..dae11d059 100644 --- a/githubkit/versions/v2022_11_28/types/group_0080.py +++ b/githubkit/versions/v2022_11_28/types/group_0080.py @@ -9,43 +9,48 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CopilotOrganizationDetailsType(TypedDict): - """Copilot Organization Details - - Information about the seat breakdown and policies set for an organization with a - Copilot Business or Copilot Enterprise subscription. - """ - - seat_breakdown: CopilotSeatBreakdownType - public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] - ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" +class CodeScanningAlertInstanceType(TypedDict): + """CodeScanningAlertInstance""" + + ref: NotRequired[str] + analysis_key: NotRequired[str] + environment: NotRequired[str] + category: NotRequired[str] + state: NotRequired[Union[None, Literal["open", "dismissed", "fixed"]]] + commit_sha: NotRequired[str] + message: NotRequired[CodeScanningAlertInstancePropMessageType] + location: NotRequired[CodeScanningAlertLocationType] + html_url: NotRequired[str] + classifications: NotRequired[ + list[Union[None, Literal["source", "generated", "test", "library"]]] ] - plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] -class CopilotSeatBreakdownType(TypedDict): - """Copilot Business Seat Breakdown +class CodeScanningAlertLocationType(TypedDict): + """CodeScanningAlertLocation - The breakdown of Copilot Business seats for the organization. + Describe a region within a file for the alert. """ - total: NotRequired[int] - added_this_cycle: NotRequired[int] - pending_cancellation: NotRequired[int] - pending_invitation: NotRequired[int] - active_this_cycle: NotRequired[int] - inactive_this_cycle: NotRequired[int] + path: NotRequired[str] + start_line: NotRequired[int] + end_line: NotRequired[int] + start_column: NotRequired[int] + end_column: NotRequired[int] + + +class CodeScanningAlertInstancePropMessageType(TypedDict): + """CodeScanningAlertInstancePropMessage""" + + text: NotRequired[str] __all__ = ( - "CopilotOrganizationDetailsType", - "CopilotSeatBreakdownType", + "CodeScanningAlertInstancePropMessageType", + "CodeScanningAlertInstanceType", + "CodeScanningAlertLocationType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0081.py b/githubkit/versions/v2022_11_28/types/group_0081.py index 9755ad7ef..db2bca277 100644 --- a/githubkit/versions/v2022_11_28/types/group_0081.py +++ b/githubkit/versions/v2022_11_28/types/group_0081.py @@ -9,29 +9,38 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0031 import SimpleRepositoryType +from .group_0078 import CodeScanningAlertRuleSummaryType +from .group_0079 import CodeScanningAnalysisToolType +from .group_0080 import CodeScanningAlertInstanceType -class TeamSimpleType(TypedDict): - """Team Simple - Groups of organization members that gives permissions on specified repositories. - """ +class CodeScanningOrganizationAlertItemsType(TypedDict): + """CodeScanningOrganizationAlertItems""" - id: int - node_id: str + number: int + created_at: datetime + updated_at: NotRequired[datetime] url: str - members_url: str - name: str - description: Union[str, None] - permission: str - privacy: NotRequired[str] - notification_setting: NotRequired[str] html_url: str - repositories_url: str - slug: str - ldap_dn: NotRequired[str] - - -__all__ = ("TeamSimpleType",) + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + repository: SimpleRepositoryType + + +__all__ = ("CodeScanningOrganizationAlertItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0082.py b/githubkit/versions/v2022_11_28/types/group_0082.py index d07251bab..febb2d4f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0082.py +++ b/githubkit/versions/v2022_11_28/types/group_0082.py @@ -9,45 +9,23 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0081 import TeamSimpleType +class CodespaceMachineType(TypedDict): + """Codespace machine -class TeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. + A description of the machine powering a codespace. """ - id: int - node_id: str name: str - slug: str - description: Union[str, None] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: str - permissions: NotRequired[TeamPropPermissionsType] - url: str - html_url: str - members_url: str - repositories_url: str - parent: Union[None, TeamSimpleType] - - -class TeamPropPermissionsType(TypedDict): - """TeamPropPermissions""" - - pull: bool - triage: bool - push: bool - maintain: bool - admin: bool - - -__all__ = ( - "TeamPropPermissionsType", - "TeamType", -) + display_name: str + operating_system: str + storage_in_bytes: int + memory_in_bytes: int + cpus: int + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] + + +__all__ = ("CodespaceMachineType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0083.py b/githubkit/versions/v2022_11_28/types/group_0083.py index da4ba50b8..1a03e2522 100644 --- a/githubkit/versions/v2022_11_28/types/group_0083.py +++ b/githubkit/versions/v2022_11_28/types/group_0083.py @@ -9,61 +9,94 @@ from __future__ import annotations -from datetime import date, datetime +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0059 import OrganizationSimpleType -from .group_0082 import TeamType +from .group_0003 import SimpleUserType +from .group_0057 import MinimalRepositoryType +from .group_0082 import CodespaceMachineType -class CopilotSeatDetailsType(TypedDict): - """Copilot Business Seat Detail +class CodespaceType(TypedDict): + """Codespace - Information about a Copilot Business seat assignment for a user, team, or - organization. - """ - - assignee: SimpleUserType - organization: NotRequired[Union[None, OrganizationSimpleType]] - assigning_team: NotRequired[Union[TeamType, EnterpriseTeamType, None]] - pending_cancellation_date: NotRequired[Union[date, None]] - last_activity_at: NotRequired[Union[datetime, None]] - last_activity_editor: NotRequired[Union[str, None]] - created_at: datetime - updated_at: NotRequired[datetime] - plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] - - -class EnterpriseTeamType(TypedDict): - """Enterprise Team - - Group of enterprise owners and/or members + A codespace. """ id: int name: str - slug: str - url: str - sync_to_organizations: str - group_id: NotRequired[Union[str, None]] - group_name: NotRequired[Union[str, None]] - html_url: str - members_url: str + display_name: NotRequired[Union[str, None]] + environment_id: Union[str, None] + owner: SimpleUserType + billable_owner: SimpleUserType + repository: MinimalRepositoryType + machine: Union[None, CodespaceMachineType] + devcontainer_path: NotRequired[Union[str, None]] + prebuild: Union[bool, None] created_at: datetime updated_at: datetime + last_used_at: datetime + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] + url: str + git_status: CodespacePropGitStatusType + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] + idle_timeout_minutes: Union[int, None] + web_url: str + machines_url: str + start_url: str + stop_url: str + publish_url: NotRequired[Union[str, None]] + pulls_url: Union[str, None] + recent_folders: list[str] + runtime_constraints: NotRequired[CodespacePropRuntimeConstraintsType] + pending_operation: NotRequired[Union[bool, None]] + pending_operation_disabled_reason: NotRequired[Union[str, None]] + idle_timeout_notice: NotRequired[Union[str, None]] + retention_period_minutes: NotRequired[Union[int, None]] + retention_expires_at: NotRequired[Union[datetime, None]] + last_known_stop_notice: NotRequired[Union[str, None]] + + +class CodespacePropGitStatusType(TypedDict): + """CodespacePropGitStatus + + Details about the codespace's git repository. + """ + + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] -class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSeatsGetResponse200""" +class CodespacePropRuntimeConstraintsType(TypedDict): + """CodespacePropRuntimeConstraints""" - total_seats: NotRequired[int] - seats: NotRequired[list[CopilotSeatDetailsType]] + allowed_port_privacy_settings: NotRequired[Union[list[str], None]] __all__ = ( - "CopilotSeatDetailsType", - "EnterpriseTeamType", - "OrgsOrgCopilotBillingSeatsGetResponse200Type", + "CodespacePropGitStatusType", + "CodespacePropRuntimeConstraintsType", + "CodespaceType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0084.py b/githubkit/versions/v2022_11_28/types/group_0084.py index e92cebf2a..3f68d2a84 100644 --- a/githubkit/versions/v2022_11_28/types/group_0084.py +++ b/githubkit/versions/v2022_11_28/types/group_0084.py @@ -9,192 +9,21 @@ from __future__ import annotations -from datetime import date -from typing import Union from typing_extensions import NotRequired, TypedDict -class CopilotUsageMetricsDayType(TypedDict): - """Copilot Usage Metrics +class CodespacesPublicKeyType(TypedDict): + """CodespacesPublicKey - Copilot usage metrics for a given day. + The public key used for setting Codespaces secrets. """ - date: date - total_active_users: NotRequired[int] - total_engaged_users: NotRequired[int] - copilot_ide_code_completions: NotRequired[ - Union[CopilotIdeCodeCompletionsType, None] - ] - copilot_ide_chat: NotRequired[Union[CopilotIdeChatType, None]] - copilot_dotcom_chat: NotRequired[Union[CopilotDotcomChatType, None]] - copilot_dotcom_pull_requests: NotRequired[ - Union[CopilotDotcomPullRequestsType, None] - ] + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] -class CopilotDotcomChatType(TypedDict): - """CopilotDotcomChat - - Usage metrics for Copilot Chat in github.com - """ - - total_engaged_users: NotRequired[int] - models: NotRequired[list[CopilotDotcomChatPropModelsItemsType]] - - -class CopilotDotcomChatPropModelsItemsType(TypedDict): - """CopilotDotcomChatPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_engaged_users: NotRequired[int] - total_chats: NotRequired[int] - - -class CopilotIdeChatType(TypedDict): - """CopilotIdeChat - - Usage metrics for Copilot Chat in the IDE. - """ - - total_engaged_users: NotRequired[int] - editors: NotRequired[list[CopilotIdeChatPropEditorsItemsType]] - - -class CopilotIdeChatPropEditorsItemsType(TypedDict): - """CopilotIdeChatPropEditorsItems - - Copilot Chat metrics, for active editors. - """ - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - models: NotRequired[list[CopilotIdeChatPropEditorsItemsPropModelsItemsType]] - - -class CopilotIdeChatPropEditorsItemsPropModelsItemsType(TypedDict): - """CopilotIdeChatPropEditorsItemsPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_engaged_users: NotRequired[int] - total_chats: NotRequired[int] - total_chat_insertion_events: NotRequired[int] - total_chat_copy_events: NotRequired[int] - - -class CopilotDotcomPullRequestsType(TypedDict): - """CopilotDotcomPullRequests - - Usage metrics for Copilot for pull requests. - """ - - total_engaged_users: NotRequired[int] - repositories: NotRequired[list[CopilotDotcomPullRequestsPropRepositoriesItemsType]] - - -class CopilotDotcomPullRequestsPropRepositoriesItemsType(TypedDict): - """CopilotDotcomPullRequestsPropRepositoriesItems""" - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - models: NotRequired[ - list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType] - ] - - -class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType(TypedDict): - """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_pr_summaries_created: NotRequired[int] - total_engaged_users: NotRequired[int] - - -class CopilotIdeCodeCompletionsType(TypedDict): - """CopilotIdeCodeCompletions - - Usage metrics for Copilot editor code completions in the IDE. - """ - - total_engaged_users: NotRequired[int] - languages: NotRequired[list[CopilotIdeCodeCompletionsPropLanguagesItemsType]] - editors: NotRequired[list[CopilotIdeCodeCompletionsPropEditorsItemsType]] - - -class CopilotIdeCodeCompletionsPropLanguagesItemsType(TypedDict): - """CopilotIdeCodeCompletionsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. - """ - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - - -class CopilotIdeCodeCompletionsPropEditorsItemsType(TypedDict): - """CopilotIdeCodeCompletionsPropEditorsItems - - Copilot code completion metrics for active editors. - """ - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - models: NotRequired[ - list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType] - ] - - -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType(TypedDict): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_engaged_users: NotRequired[int] - languages: NotRequired[ - list[ - CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType - ] - ] - - -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType( - TypedDict -): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. - """ - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - total_code_suggestions: NotRequired[int] - total_code_acceptances: NotRequired[int] - total_code_lines_suggested: NotRequired[int] - total_code_lines_accepted: NotRequired[int] - - -__all__ = ( - "CopilotDotcomChatPropModelsItemsType", - "CopilotDotcomChatType", - "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType", - "CopilotDotcomPullRequestsPropRepositoriesItemsType", - "CopilotDotcomPullRequestsType", - "CopilotIdeChatPropEditorsItemsPropModelsItemsType", - "CopilotIdeChatPropEditorsItemsType", - "CopilotIdeChatType", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", - "CopilotIdeCodeCompletionsPropEditorsItemsType", - "CopilotIdeCodeCompletionsPropLanguagesItemsType", - "CopilotIdeCodeCompletionsType", - "CopilotUsageMetricsDayType", -) +__all__ = ("CodespacesPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0085.py b/githubkit/versions/v2022_11_28/types/group_0085.py index db939f5dd..6a2981202 100644 --- a/githubkit/versions/v2022_11_28/types/group_0085.py +++ b/githubkit/versions/v2022_11_28/types/group_0085.py @@ -9,45 +9,43 @@ from __future__ import annotations -from datetime import date -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class CopilotUsageMetricsType(TypedDict): - """Copilot Usage Metrics +class CopilotOrganizationDetailsType(TypedDict): + """Copilot Organization Details - Summary of Copilot usage. + Information about the seat breakdown and policies set for an organization with a + Copilot Business or Copilot Enterprise subscription. """ - day: date - total_suggestions_count: NotRequired[int] - total_acceptances_count: NotRequired[int] - total_lines_suggested: NotRequired[int] - total_lines_accepted: NotRequired[int] - total_active_users: NotRequired[int] - total_chat_acceptances: NotRequired[int] - total_chat_turns: NotRequired[int] - total_active_chat_users: NotRequired[int] - breakdown: Union[list[CopilotUsageMetricsPropBreakdownItemsType], None] + seat_breakdown: CopilotSeatBreakdownType + public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] + ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] + plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] -class CopilotUsageMetricsPropBreakdownItemsType(TypedDict): - """CopilotUsageMetricsPropBreakdownItems +class CopilotSeatBreakdownType(TypedDict): + """Copilot Business Seat Breakdown - Breakdown of Copilot usage by editor for this language + The breakdown of Copilot Business seats for the organization. """ - language: NotRequired[str] - editor: NotRequired[str] - suggestions_count: NotRequired[int] - acceptances_count: NotRequired[int] - lines_suggested: NotRequired[int] - lines_accepted: NotRequired[int] - active_users: NotRequired[int] + total: NotRequired[int] + added_this_cycle: NotRequired[int] + pending_cancellation: NotRequired[int] + pending_invitation: NotRequired[int] + active_this_cycle: NotRequired[int] + inactive_this_cycle: NotRequired[int] __all__ = ( - "CopilotUsageMetricsPropBreakdownItemsType", - "CopilotUsageMetricsType", + "CopilotOrganizationDetailsType", + "CopilotSeatBreakdownType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0086.py b/githubkit/versions/v2022_11_28/types/group_0086.py index fb3981a7a..9755ad7ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0086.py +++ b/githubkit/versions/v2022_11_28/types/group_0086.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class DependabotPublicKeyType(TypedDict): - """DependabotPublicKey +class TeamSimpleType(TypedDict): + """Team Simple - The public key used for setting Dependabot Secrets. + Groups of organization members that gives permissions on specified repositories. """ - key_id: str - key: str - - -__all__ = ("DependabotPublicKeyType",) + id: int + node_id: str + url: str + members_url: str + name: str + description: Union[str, None] + permission: str + privacy: NotRequired[str] + notification_setting: NotRequired[str] + html_url: str + repositories_url: str + slug: str + ldap_dn: NotRequired[str] + + +__all__ = ("TeamSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0087.py b/githubkit/versions/v2022_11_28/types/group_0087.py index e7b8b8c07..3064295e5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0087.py +++ b/githubkit/versions/v2022_11_28/types/group_0087.py @@ -9,31 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0056 import MinimalRepositoryType +from .group_0086 import TeamSimpleType -class PackageType(TypedDict): - """Package +class TeamType(TypedDict): + """Team - A software package + Groups of organization members that gives permissions on specified repositories. """ id: int + node_id: str name: str - package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + slug: str + description: Union[str, None] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: str + permissions: NotRequired[TeamPropPermissionsType] url: str html_url: str - version_count: int - visibility: Literal["private", "public"] - owner: NotRequired[Union[None, SimpleUserType]] - repository: NotRequired[Union[None, MinimalRepositoryType]] - created_at: datetime - updated_at: datetime + members_url: str + repositories_url: str + parent: Union[None, TeamSimpleType] -__all__ = ("PackageType",) +class TeamPropPermissionsType(TypedDict): + """TeamPropPermissions""" + + pull: bool + triage: bool + push: bool + maintain: bool + admin: bool + + +__all__ = ( + "TeamPropPermissionsType", + "TeamType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0088.py b/githubkit/versions/v2022_11_28/types/group_0088.py index e94134e81..e1df33371 100644 --- a/githubkit/versions/v2022_11_28/types/group_0088.py +++ b/githubkit/versions/v2022_11_28/types/group_0088.py @@ -9,30 +9,61 @@ from __future__ import annotations -from typing import Union +from datetime import date, datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0060 import OrganizationSimpleType +from .group_0087 import TeamType -class OrganizationInvitationType(TypedDict): - """Organization Invitation +class CopilotSeatDetailsType(TypedDict): + """Copilot Business Seat Detail - Organization Invitation + Information about a Copilot Business seat assignment for a user, team, or + organization. + """ + + assignee: SimpleUserType + organization: NotRequired[Union[None, OrganizationSimpleType]] + assigning_team: NotRequired[Union[TeamType, EnterpriseTeamType, None]] + pending_cancellation_date: NotRequired[Union[date, None]] + last_activity_at: NotRequired[Union[datetime, None]] + last_activity_editor: NotRequired[Union[str, None]] + created_at: datetime + updated_at: NotRequired[datetime] + plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] + + +class EnterpriseTeamType(TypedDict): + """Enterprise Team + + Group of enterprise owners and/or members """ id: int - login: Union[str, None] - email: Union[str, None] - role: str - created_at: str - failed_at: NotRequired[Union[str, None]] - failed_reason: NotRequired[Union[str, None]] - inviter: SimpleUserType - team_count: int - node_id: str - invitation_teams_url: str - invitation_source: NotRequired[str] - - -__all__ = ("OrganizationInvitationType",) + name: str + slug: str + url: str + sync_to_organizations: str + group_id: NotRequired[Union[str, None]] + group_name: NotRequired[Union[str, None]] + html_url: str + members_url: str + created_at: datetime + updated_at: datetime + + +class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + + total_seats: NotRequired[int] + seats: NotRequired[list[CopilotSeatDetailsType]] + + +__all__ = ( + "CopilotSeatDetailsType", + "EnterpriseTeamType", + "OrgsOrgCopilotBillingSeatsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0089.py b/githubkit/versions/v2022_11_28/types/group_0089.py index dd28f2299..c28ab10cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0089.py +++ b/githubkit/versions/v2022_11_28/types/group_0089.py @@ -9,39 +9,192 @@ from __future__ import annotations -from datetime import datetime +from datetime import date +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrgHookType(TypedDict): - """Org Hook +class CopilotUsageMetricsDayType(TypedDict): + """Copilot Usage Metrics - Org Hook + Copilot usage metrics for a given day. """ - id: int - url: str - ping_url: str - deliveries_url: NotRequired[str] - name: str - events: list[str] - active: bool - config: OrgHookPropConfigType - updated_at: datetime - created_at: datetime - type: str + date: date + total_active_users: NotRequired[int] + total_engaged_users: NotRequired[int] + copilot_ide_code_completions: NotRequired[ + Union[CopilotIdeCodeCompletionsType, None] + ] + copilot_ide_chat: NotRequired[Union[CopilotIdeChatType, None]] + copilot_dotcom_chat: NotRequired[Union[CopilotDotcomChatType, None]] + copilot_dotcom_pull_requests: NotRequired[ + Union[CopilotDotcomPullRequestsType, None] + ] -class OrgHookPropConfigType(TypedDict): - """OrgHookPropConfig""" +class CopilotDotcomChatType(TypedDict): + """CopilotDotcomChat - url: NotRequired[str] - insecure_ssl: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] + Usage metrics for Copilot Chat in GitHub.com + """ + + total_engaged_users: NotRequired[int] + models: NotRequired[list[CopilotDotcomChatPropModelsItemsType]] + + +class CopilotDotcomChatPropModelsItemsType(TypedDict): + """CopilotDotcomChatPropModelsItems""" + + name: NotRequired[str] + is_custom_model: NotRequired[bool] + custom_model_training_date: NotRequired[Union[str, None]] + total_engaged_users: NotRequired[int] + total_chats: NotRequired[int] + + +class CopilotIdeChatType(TypedDict): + """CopilotIdeChat + + Usage metrics for Copilot Chat in the IDE. + """ + + total_engaged_users: NotRequired[int] + editors: NotRequired[list[CopilotIdeChatPropEditorsItemsType]] + + +class CopilotIdeChatPropEditorsItemsType(TypedDict): + """CopilotIdeChatPropEditorsItems + + Copilot Chat metrics, for active editors. + """ + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + models: NotRequired[list[CopilotIdeChatPropEditorsItemsPropModelsItemsType]] + + +class CopilotIdeChatPropEditorsItemsPropModelsItemsType(TypedDict): + """CopilotIdeChatPropEditorsItemsPropModelsItems""" + + name: NotRequired[str] + is_custom_model: NotRequired[bool] + custom_model_training_date: NotRequired[Union[str, None]] + total_engaged_users: NotRequired[int] + total_chats: NotRequired[int] + total_chat_insertion_events: NotRequired[int] + total_chat_copy_events: NotRequired[int] + + +class CopilotDotcomPullRequestsType(TypedDict): + """CopilotDotcomPullRequests + + Usage metrics for Copilot for pull requests. + """ + + total_engaged_users: NotRequired[int] + repositories: NotRequired[list[CopilotDotcomPullRequestsPropRepositoriesItemsType]] + + +class CopilotDotcomPullRequestsPropRepositoriesItemsType(TypedDict): + """CopilotDotcomPullRequestsPropRepositoriesItems""" + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + models: NotRequired[ + list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType] + ] + + +class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType(TypedDict): + """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" + + name: NotRequired[str] + is_custom_model: NotRequired[bool] + custom_model_training_date: NotRequired[Union[str, None]] + total_pr_summaries_created: NotRequired[int] + total_engaged_users: NotRequired[int] + + +class CopilotIdeCodeCompletionsType(TypedDict): + """CopilotIdeCodeCompletions + + Usage metrics for Copilot editor code completions in the IDE. + """ + + total_engaged_users: NotRequired[int] + languages: NotRequired[list[CopilotIdeCodeCompletionsPropLanguagesItemsType]] + editors: NotRequired[list[CopilotIdeCodeCompletionsPropEditorsItemsType]] + + +class CopilotIdeCodeCompletionsPropLanguagesItemsType(TypedDict): + """CopilotIdeCodeCompletionsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + + +class CopilotIdeCodeCompletionsPropEditorsItemsType(TypedDict): + """CopilotIdeCodeCompletionsPropEditorsItems + + Copilot code completion metrics for active editors. + """ + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + models: NotRequired[ + list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType] + ] + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType(TypedDict): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" + + name: NotRequired[str] + is_custom_model: NotRequired[bool] + custom_model_training_date: NotRequired[Union[str, None]] + total_engaged_users: NotRequired[int] + languages: NotRequired[ + list[ + CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType + ] + ] + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType( + TypedDict +): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + total_code_suggestions: NotRequired[int] + total_code_acceptances: NotRequired[int] + total_code_lines_suggested: NotRequired[int] + total_code_lines_accepted: NotRequired[int] __all__ = ( - "OrgHookPropConfigType", - "OrgHookType", + "CopilotDotcomChatPropModelsItemsType", + "CopilotDotcomChatType", + "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType", + "CopilotDotcomPullRequestsPropRepositoriesItemsType", + "CopilotDotcomPullRequestsType", + "CopilotIdeChatPropEditorsItemsPropModelsItemsType", + "CopilotIdeChatPropEditorsItemsType", + "CopilotIdeChatType", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", + "CopilotIdeCodeCompletionsPropEditorsItemsType", + "CopilotIdeCodeCompletionsPropLanguagesItemsType", + "CopilotIdeCodeCompletionsType", + "CopilotUsageMetricsDayType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0090.py b/githubkit/versions/v2022_11_28/types/group_0090.py index eecf40a48..db939f5dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0090.py +++ b/githubkit/versions/v2022_11_28/types/group_0090.py @@ -9,19 +9,45 @@ from __future__ import annotations +from datetime import date from typing import Union from typing_extensions import NotRequired, TypedDict -class ApiInsightsRouteStatsItemsType(TypedDict): - """ApiInsightsRouteStatsItems""" +class CopilotUsageMetricsType(TypedDict): + """Copilot Usage Metrics - http_method: NotRequired[str] - api_route: NotRequired[str] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] - last_rate_limited_timestamp: NotRequired[Union[str, None]] - last_request_timestamp: NotRequired[str] + Summary of Copilot usage. + """ + day: date + total_suggestions_count: NotRequired[int] + total_acceptances_count: NotRequired[int] + total_lines_suggested: NotRequired[int] + total_lines_accepted: NotRequired[int] + total_active_users: NotRequired[int] + total_chat_acceptances: NotRequired[int] + total_chat_turns: NotRequired[int] + total_active_chat_users: NotRequired[int] + breakdown: Union[list[CopilotUsageMetricsPropBreakdownItemsType], None] -__all__ = ("ApiInsightsRouteStatsItemsType",) + +class CopilotUsageMetricsPropBreakdownItemsType(TypedDict): + """CopilotUsageMetricsPropBreakdownItems + + Breakdown of Copilot usage by editor for this language + """ + + language: NotRequired[str] + editor: NotRequired[str] + suggestions_count: NotRequired[int] + acceptances_count: NotRequired[int] + lines_suggested: NotRequired[int] + lines_accepted: NotRequired[int] + active_users: NotRequired[int] + + +__all__ = ( + "CopilotUsageMetricsPropBreakdownItemsType", + "CopilotUsageMetricsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0091.py b/githubkit/versions/v2022_11_28/types/group_0091.py index a652aaeff..fb3981a7a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0091.py +++ b/githubkit/versions/v2022_11_28/types/group_0091.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ApiInsightsSubjectStatsItemsType(TypedDict): - """ApiInsightsSubjectStatsItems""" +class DependabotPublicKeyType(TypedDict): + """DependabotPublicKey - subject_type: NotRequired[str] - subject_name: NotRequired[str] - subject_id: NotRequired[int] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] - last_rate_limited_timestamp: NotRequired[Union[str, None]] - last_request_timestamp: NotRequired[str] + The public key used for setting Dependabot Secrets. + """ + key_id: str + key: str -__all__ = ("ApiInsightsSubjectStatsItemsType",) + +__all__ = ("DependabotPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0092.py b/githubkit/versions/v2022_11_28/types/group_0092.py index efa213a4a..fc30fe7d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0092.py +++ b/githubkit/versions/v2022_11_28/types/group_0092.py @@ -9,17 +9,31 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0057 import MinimalRepositoryType -class ApiInsightsSummaryStatsType(TypedDict): - """Summary Stats - API Insights usage summary stats for an organization +class PackageType(TypedDict): + """Package + + A software package """ - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] + id: int + name: str + package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + url: str + html_url: str + version_count: int + visibility: Literal["private", "public"] + owner: NotRequired[Union[None, SimpleUserType]] + repository: NotRequired[Union[None, MinimalRepositoryType]] + created_at: datetime + updated_at: datetime -__all__ = ("ApiInsightsSummaryStatsType",) +__all__ = ("PackageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0093.py b/githubkit/versions/v2022_11_28/types/group_0093.py index b1ac3a080..23c54a38b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0093.py +++ b/githubkit/versions/v2022_11_28/types/group_0093.py @@ -9,15 +9,30 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class ApiInsightsTimeStatsItemsType(TypedDict): - """ApiInsightsTimeStatsItems""" - timestamp: NotRequired[str] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] +class OrganizationInvitationType(TypedDict): + """Organization Invitation + Organization Invitation + """ -__all__ = ("ApiInsightsTimeStatsItemsType",) + id: int + login: Union[str, None] + email: Union[str, None] + role: str + created_at: str + failed_at: NotRequired[Union[str, None]] + failed_reason: NotRequired[Union[str, None]] + inviter: SimpleUserType + team_count: int + node_id: str + invitation_teams_url: str + invitation_source: NotRequired[str] + + +__all__ = ("OrganizationInvitationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0094.py b/githubkit/versions/v2022_11_28/types/group_0094.py index 810ca5b00..dd28f2299 100644 --- a/githubkit/versions/v2022_11_28/types/group_0094.py +++ b/githubkit/versions/v2022_11_28/types/group_0094.py @@ -9,22 +9,39 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ApiInsightsUserStatsItemsType(TypedDict): - """ApiInsightsUserStatsItems""" +class OrgHookType(TypedDict): + """Org Hook - actor_type: NotRequired[str] - actor_name: NotRequired[str] - actor_id: NotRequired[int] - integration_id: NotRequired[Union[int, None]] - oauth_application_id: NotRequired[Union[int, None]] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] - last_rate_limited_timestamp: NotRequired[Union[str, None]] - last_request_timestamp: NotRequired[str] + Org Hook + """ + id: int + url: str + ping_url: str + deliveries_url: NotRequired[str] + name: str + events: list[str] + active: bool + config: OrgHookPropConfigType + updated_at: datetime + created_at: datetime + type: str -__all__ = ("ApiInsightsUserStatsItemsType",) + +class OrgHookPropConfigType(TypedDict): + """OrgHookPropConfig""" + + url: NotRequired[str] + insecure_ssl: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + + +__all__ = ( + "OrgHookPropConfigType", + "OrgHookType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0095.py b/githubkit/versions/v2022_11_28/types/group_0095.py index 86b7b0b1e..eecf40a48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0095.py +++ b/githubkit/versions/v2022_11_28/types/group_0095.py @@ -9,20 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class InteractionLimitResponseType(TypedDict): - """Interaction Limits +class ApiInsightsRouteStatsItemsType(TypedDict): + """ApiInsightsRouteStatsItems""" - Interaction limit settings. - """ + http_method: NotRequired[str] + api_route: NotRequired[str] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] + last_rate_limited_timestamp: NotRequired[Union[str, None]] + last_request_timestamp: NotRequired[str] - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - origin: str - expires_at: datetime - -__all__ = ("InteractionLimitResponseType",) +__all__ = ("ApiInsightsRouteStatsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0096.py b/githubkit/versions/v2022_11_28/types/group_0096.py index 7711ae8ae..a652aaeff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0096.py +++ b/githubkit/versions/v2022_11_28/types/group_0096.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class InteractionLimitType(TypedDict): - """Interaction Restrictions +class ApiInsightsSubjectStatsItemsType(TypedDict): + """ApiInsightsSubjectStatsItems""" - Limit interactions to a specific type of user for a specified duration - """ + subject_type: NotRequired[str] + subject_name: NotRequired[str] + subject_id: NotRequired[int] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] + last_rate_limited_timestamp: NotRequired[Union[str, None]] + last_request_timestamp: NotRequired[str] - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - expiry: NotRequired[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] - -__all__ = ("InteractionLimitType",) +__all__ = ("ApiInsightsSubjectStatsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0097.py b/githubkit/versions/v2022_11_28/types/group_0097.py index 5bc974248..efa213a4a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0097.py +++ b/githubkit/versions/v2022_11_28/types/group_0097.py @@ -9,35 +9,17 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0059 import OrganizationSimpleType +class ApiInsightsSummaryStatsType(TypedDict): + """Summary Stats -class OrgMembershipType(TypedDict): - """Org Membership - - Org Membership + API Insights usage summary stats for an organization """ - url: str - state: Literal["active", "pending"] - role: Literal["admin", "member", "billing_manager"] - organization_url: str - organization: OrganizationSimpleType - user: Union[None, SimpleUserType] - permissions: NotRequired[OrgMembershipPropPermissionsType] - - -class OrgMembershipPropPermissionsType(TypedDict): - """OrgMembershipPropPermissions""" - - can_create_repository: bool + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] -__all__ = ( - "OrgMembershipPropPermissionsType", - "OrgMembershipType", -) +__all__ = ("ApiInsightsSummaryStatsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0098.py b/githubkit/versions/v2022_11_28/types/group_0098.py index e9fd75d2d..b1ac3a080 100644 --- a/githubkit/versions/v2022_11_28/types/group_0098.py +++ b/githubkit/versions/v2022_11_28/types/group_0098.py @@ -9,38 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType - - -class MigrationType(TypedDict): - """Migration - - A migration. - """ - - id: int - owner: Union[None, SimpleUserType] - guid: str - state: str - lock_repositories: bool - exclude_metadata: bool - exclude_git_data: bool - exclude_attachments: bool - exclude_releases: bool - exclude_owner_projects: bool - org_metadata_only: bool - repositories: list[RepositoryType] - url: str - created_at: datetime - updated_at: datetime - node_id: str - archive_url: NotRequired[str] - exclude: NotRequired[list[str]] - - -__all__ = ("MigrationType",) + +class ApiInsightsTimeStatsItemsType(TypedDict): + """ApiInsightsTimeStatsItems""" + + timestamp: NotRequired[str] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] + + +__all__ = ("ApiInsightsTimeStatsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0099.py b/githubkit/versions/v2022_11_28/types/group_0099.py index c4592c91f..810ca5b00 100644 --- a/githubkit/versions/v2022_11_28/types/group_0099.py +++ b/githubkit/versions/v2022_11_28/types/group_0099.py @@ -9,42 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class ApiInsightsUserStatsItemsType(TypedDict): + """ApiInsightsUserStatsItems""" -class OrganizationRoleType(TypedDict): - """Organization Role + actor_type: NotRequired[str] + actor_name: NotRequired[str] + actor_id: NotRequired[int] + integration_id: NotRequired[Union[int, None]] + oauth_application_id: NotRequired[Union[int, None]] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] + last_rate_limited_timestamp: NotRequired[Union[str, None]] + last_request_timestamp: NotRequired[str] - Organization roles - """ - id: int - name: str - description: NotRequired[Union[str, None]] - base_role: NotRequired[ - Union[None, Literal["read", "triage", "write", "maintain", "admin"]] - ] - source: NotRequired[ - Union[None, Literal["Organization", "Enterprise", "Predefined"]] - ] - permissions: list[str] - organization: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - - -class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): - """OrgsOrgOrganizationRolesGetResponse200""" - - total_count: NotRequired[int] - roles: NotRequired[list[OrganizationRoleType]] - - -__all__ = ( - "OrganizationRoleType", - "OrgsOrgOrganizationRolesGetResponse200Type", -) +__all__ = ("ApiInsightsUserStatsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0100.py b/githubkit/versions/v2022_11_28/types/group_0100.py index d22a51be7..86b7b0b1e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0100.py +++ b/githubkit/versions/v2022_11_28/types/group_0100.py @@ -9,46 +9,20 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import TypedDict -from .group_0081 import TeamSimpleType +class InteractionLimitResponseType(TypedDict): + """Interaction Limits -class TeamRoleAssignmentType(TypedDict): - """A Role Assignment for a Team - - The Relationship a Team has with a role. + Interaction limit settings. """ - assignment: NotRequired[Literal["direct", "indirect", "mixed"]] - id: int - node_id: str - name: str - slug: str - description: Union[str, None] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: str - permissions: NotRequired[TeamRoleAssignmentPropPermissionsType] - url: str - html_url: str - members_url: str - repositories_url: str - parent: Union[None, TeamSimpleType] - - -class TeamRoleAssignmentPropPermissionsType(TypedDict): - """TeamRoleAssignmentPropPermissions""" - - pull: bool - triage: bool - push: bool - maintain: bool - admin: bool - - -__all__ = ( - "TeamRoleAssignmentPropPermissionsType", - "TeamRoleAssignmentType", -) + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + origin: str + expires_at: datetime + + +__all__ = ("InteractionLimitResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0101.py b/githubkit/versions/v2022_11_28/types/group_0101.py index d5211728e..7711ae8ae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0101.py +++ b/githubkit/versions/v2022_11_28/types/group_0101.py @@ -9,42 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0081 import TeamSimpleType +class InteractionLimitType(TypedDict): + """Interaction Restrictions -class UserRoleAssignmentType(TypedDict): - """A Role Assignment for a User - - The Relationship a User has with a role. + Limit interactions to a specific type of user for a specified duration """ - assignment: NotRequired[Literal["direct", "indirect", "mixed"]] - inherited_from: NotRequired[list[TeamSimpleType]] - name: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - starred_at: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("UserRoleAssignmentType",) + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + expiry: NotRequired[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] + ] + + +__all__ = ("InteractionLimitType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0102.py b/githubkit/versions/v2022_11_28/types/group_0102.py index 9b4b7ff6c..c6247ffd4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0102.py +++ b/githubkit/versions/v2022_11_28/types/group_0102.py @@ -9,53 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0060 import OrganizationSimpleType -class PackageVersionType(TypedDict): - """Package Version - A version of a software package +class OrgMembershipType(TypedDict): + """Org Membership + + Org Membership """ - id: int - name: str url: str - package_html_url: str - html_url: NotRequired[str] - license_: NotRequired[str] - description: NotRequired[str] - created_at: datetime - updated_at: datetime - deleted_at: NotRequired[datetime] - metadata: NotRequired[PackageVersionPropMetadataType] - - -class PackageVersionPropMetadataType(TypedDict): - """Package Version Metadata""" - - package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] - container: NotRequired[PackageVersionPropMetadataPropContainerType] - docker: NotRequired[PackageVersionPropMetadataPropDockerType] - - -class PackageVersionPropMetadataPropContainerType(TypedDict): - """Container Metadata""" - - tags: list[str] + state: Literal["active", "pending"] + role: Literal["admin", "member", "billing_manager"] + organization_url: str + organization: OrganizationSimpleType + user: Union[None, SimpleUserType] + permissions: NotRequired[OrgMembershipPropPermissionsType] -class PackageVersionPropMetadataPropDockerType(TypedDict): - """Docker Metadata""" +class OrgMembershipPropPermissionsType(TypedDict): + """OrgMembershipPropPermissions""" - tag: NotRequired[list[str]] + can_create_repository: bool __all__ = ( - "PackageVersionPropMetadataPropContainerType", - "PackageVersionPropMetadataPropDockerType", - "PackageVersionPropMetadataType", - "PackageVersionType", + "OrgMembershipPropPermissionsType", + "OrgMembershipType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0103.py b/githubkit/versions/v2022_11_28/types/group_0103.py index 9414df2eb..b0bdc2624 100644 --- a/githubkit/versions/v2022_11_28/types/group_0103.py +++ b/githubkit/versions/v2022_11_28/types/group_0103.py @@ -9,75 +9,38 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class OrganizationProgrammaticAccessGrantRequestType(TypedDict): - """Simple Organization Programmatic Access Grant Request +class MigrationType(TypedDict): + """Migration - Minimal representation of an organization programmatic access grant request for - enumerations + A migration. """ id: int - reason: Union[str, None] - owner: SimpleUserType - repository_selection: Literal["none", "all", "subset"] - repositories_url: str - permissions: OrganizationProgrammaticAccessGrantRequestPropPermissionsType - created_at: str - token_id: int - token_name: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsType(TypedDict): - """OrganizationProgrammaticAccessGrantRequestPropPermissions - - Permissions requested, categorized by type of permission. - """ - - organization: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType - ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType - ] - other: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType - ] - - -OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization -""" - - -OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository -""" - - -OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType: TypeAlias = ( - dict[str, Any] -) -"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther -""" - - -__all__ = ( - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", - "OrganizationProgrammaticAccessGrantRequestType", -) + owner: Union[None, SimpleUserType] + guid: str + state: str + lock_repositories: bool + exclude_metadata: bool + exclude_git_data: bool + exclude_attachments: bool + exclude_releases: bool + exclude_owner_projects: bool + org_metadata_only: bool + repositories: list[RepositoryType] + url: str + created_at: datetime + updated_at: datetime + node_id: str + archive_url: NotRequired[str] + exclude: NotRequired[list[str]] + + +__all__ = ("MigrationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0104.py b/githubkit/versions/v2022_11_28/types/group_0104.py index 31846b141..fb3b706a0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0104.py +++ b/githubkit/versions/v2022_11_28/types/group_0104.py @@ -9,72 +9,42 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType -class OrganizationProgrammaticAccessGrantType(TypedDict): - """Organization Programmatic Access Grant +class OrganizationRoleType(TypedDict): + """Organization Role - Minimal representation of an organization programmatic access grant for - enumerations + Organization roles """ id: int - owner: SimpleUserType - repository_selection: Literal["none", "all", "subset"] - repositories_url: str - permissions: OrganizationProgrammaticAccessGrantPropPermissionsType - access_granted_at: str - token_id: int - token_name: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] - - -class OrganizationProgrammaticAccessGrantPropPermissionsType(TypedDict): - """OrganizationProgrammaticAccessGrantPropPermissions - - Permissions requested, categorized by type of permission. - """ - - organization: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType + name: str + description: NotRequired[Union[str, None]] + base_role: NotRequired[ + Union[None, Literal["read", "triage", "write", "maintain", "admin"]] ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType + source: NotRequired[ + Union[None, Literal["Organization", "Enterprise", "Predefined"]] ] - other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] - - -OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType: TypeAlias = ( - dict[str, Any] -) -"""OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization -""" + permissions: list[str] + organization: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime -OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantPropPermissionsPropRepository -""" - +class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): + """OrgsOrgOrganizationRolesGetResponse200""" -OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantPropPermissionsPropOther -""" + total_count: NotRequired[int] + roles: NotRequired[list[OrganizationRoleType]] __all__ = ( - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantPropPermissionsType", - "OrganizationProgrammaticAccessGrantType", + "OrganizationRoleType", + "OrgsOrgOrganizationRolesGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0105.py b/githubkit/versions/v2022_11_28/types/group_0105.py index d9d5c738f..2a586a2dc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0105.py +++ b/githubkit/versions/v2022_11_28/types/group_0105.py @@ -9,24 +9,46 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0086 import TeamSimpleType -class OrgPrivateRegistryConfigurationWithSelectedRepositoriesType(TypedDict): - """Organization private registry - Private registry configuration for an organization +class TeamRoleAssignmentType(TypedDict): + """A Role Assignment for a Team + + The Relationship a Team has with a role. """ + assignment: NotRequired[Literal["direct", "indirect", "mixed"]] + id: int + node_id: str name: str - registry_type: Literal["maven_repository"] - username: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] - created_at: datetime - updated_at: datetime - - -__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",) + slug: str + description: Union[str, None] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: str + permissions: NotRequired[TeamRoleAssignmentPropPermissionsType] + url: str + html_url: str + members_url: str + repositories_url: str + parent: Union[None, TeamSimpleType] + + +class TeamRoleAssignmentPropPermissionsType(TypedDict): + """TeamRoleAssignmentPropPermissions""" + + pull: bool + triage: bool + push: bool + maintain: bool + admin: bool + + +__all__ = ( + "TeamRoleAssignmentPropPermissionsType", + "TeamRoleAssignmentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0106.py b/githubkit/versions/v2022_11_28/types/group_0106.py index 99630fe52..763d267c6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0106.py +++ b/githubkit/versions/v2022_11_28/types/group_0106.py @@ -9,34 +9,42 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0086 import TeamSimpleType -class ProjectType(TypedDict): - """Project +class UserRoleAssignmentType(TypedDict): + """A Role Assignment for a User - Projects are a way to organize columns and cards of work. + The Relationship a User has with a role. """ - owner_url: str - url: str - html_url: str - columns_url: str + assignment: NotRequired[Literal["direct", "indirect", "mixed"]] + inherited_from: NotRequired[list[TeamSimpleType]] + name: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + login: str id: int node_id: str - name: str - body: Union[str, None] - number: int - state: str - creator: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] - - -__all__ = ("ProjectType",) + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + starred_at: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("UserRoleAssignmentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0107.py b/githubkit/versions/v2022_11_28/types/group_0107.py index 0ddc5174c..9b4b7ff6c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0107.py +++ b/githubkit/versions/v2022_11_28/types/group_0107.py @@ -9,27 +9,53 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class CustomPropertyType(TypedDict): - """Organization Custom Property +class PackageVersionType(TypedDict): + """Package Version - Custom property defined on an organization + A version of a software package """ - property_name: str - url: NotRequired[str] - source_type: NotRequired[Literal["organization", "enterprise"]] - value_type: Literal["string", "single_select", "multi_select", "true_false"] - required: NotRequired[bool] - default_value: NotRequired[Union[str, list[str], None]] - description: NotRequired[Union[str, None]] - allowed_values: NotRequired[Union[list[str], None]] - values_editable_by: NotRequired[ - Union[None, Literal["org_actors", "org_and_repo_actors"]] - ] + id: int + name: str + url: str + package_html_url: str + html_url: NotRequired[str] + license_: NotRequired[str] + description: NotRequired[str] + created_at: datetime + updated_at: datetime + deleted_at: NotRequired[datetime] + metadata: NotRequired[PackageVersionPropMetadataType] -__all__ = ("CustomPropertyType",) +class PackageVersionPropMetadataType(TypedDict): + """Package Version Metadata""" + + package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + container: NotRequired[PackageVersionPropMetadataPropContainerType] + docker: NotRequired[PackageVersionPropMetadataPropDockerType] + + +class PackageVersionPropMetadataPropContainerType(TypedDict): + """Container Metadata""" + + tags: list[str] + + +class PackageVersionPropMetadataPropDockerType(TypedDict): + """Docker Metadata""" + + tag: NotRequired[list[str]] + + +__all__ = ( + "PackageVersionPropMetadataPropContainerType", + "PackageVersionPropMetadataPropDockerType", + "PackageVersionPropMetadataType", + "PackageVersionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0108.py b/githubkit/versions/v2022_11_28/types/group_0108.py index c10beb8d0..4979cd78c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0108.py +++ b/githubkit/versions/v2022_11_28/types/group_0108.py @@ -9,21 +9,75 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType -class CustomPropertySetPayloadType(TypedDict): - """Custom Property Set Payload - Custom property set payload +class OrganizationProgrammaticAccessGrantRequestType(TypedDict): + """Simple Organization Programmatic Access Grant Request + + Minimal representation of an organization programmatic access grant request for + enumerations + """ + + id: int + reason: Union[str, None] + owner: SimpleUserType + repository_selection: Literal["none", "all", "subset"] + repositories_url: str + permissions: OrganizationProgrammaticAccessGrantRequestPropPermissionsType + created_at: str + token_id: int + token_name: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsType(TypedDict): + """OrganizationProgrammaticAccessGrantRequestPropPermissions + + Permissions requested, categorized by type of permission. """ - 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]] + organization: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType + ] + repository: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType + ] + other: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType + ] + + +OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization +""" + + +OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository +""" + + +OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType: TypeAlias = ( + dict[str, Any] +) +"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther +""" -__all__ = ("CustomPropertySetPayloadType",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", + "OrganizationProgrammaticAccessGrantRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0109.py b/githubkit/versions/v2022_11_28/types/group_0109.py index c3784542a..54bd740d2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0109.py +++ b/githubkit/versions/v2022_11_28/types/group_0109.py @@ -9,18 +9,72 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType -class CustomPropertyValueType(TypedDict): - """Custom Property Value - Custom property name and associated value +class OrganizationProgrammaticAccessGrantType(TypedDict): + """Organization Programmatic Access Grant + + Minimal representation of an organization programmatic access grant for + enumerations + """ + + id: int + owner: SimpleUserType + repository_selection: Literal["none", "all", "subset"] + repositories_url: str + permissions: OrganizationProgrammaticAccessGrantPropPermissionsType + access_granted_at: str + token_id: int + token_name: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] + + +class OrganizationProgrammaticAccessGrantPropPermissionsType(TypedDict): + """OrganizationProgrammaticAccessGrantPropPermissions + + Permissions requested, categorized by type of permission. """ - property_name: str - value: Union[str, list[str], None] + organization: NotRequired[ + OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType + ] + repository: NotRequired[ + OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType + ] + other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] + + +OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType: TypeAlias = ( + dict[str, Any] +) +"""OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization +""" + + +OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantPropPermissionsPropRepository +""" + + +OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantPropPermissionsPropOther +""" -__all__ = ("CustomPropertyValueType",) +__all__ = ( + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantPropPermissionsType", + "OrganizationProgrammaticAccessGrantType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0110.py b/githubkit/versions/v2022_11_28/types/group_0110.py index 69e1960f1..d9d5c738f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0110.py +++ b/githubkit/versions/v2022_11_28/types/group_0110.py @@ -9,21 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0109 import CustomPropertyValueType +class OrgPrivateRegistryConfigurationWithSelectedRepositoriesType(TypedDict): + """Organization private registry -class OrgRepoCustomPropertyValuesType(TypedDict): - """Organization Repository Custom Property Values - - List of custom property values for a repository + Private registry configuration for an organization """ - repository_id: int - repository_name: str - repository_full_name: str - properties: list[CustomPropertyValueType] + name: str + registry_type: Literal["maven_repository"] + username: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] + created_at: datetime + updated_at: datetime -__all__ = ("OrgRepoCustomPropertyValuesType",) +__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0111.py b/githubkit/versions/v2022_11_28/types/group_0111.py index cac6eb986..9f42888f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0111.py +++ b/githubkit/versions/v2022_11_28/types/group_0111.py @@ -9,20 +9,34 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class CodeOfConductSimpleType(TypedDict): - """Code Of Conduct Simple - Code of Conduct Simple +class ProjectType(TypedDict): + """Project + + Projects are a way to organize columns and cards of work. """ + owner_url: str url: str - key: str + html_url: str + columns_url: str + id: int + node_id: str name: str - html_url: Union[str, None] + body: Union[str, None] + number: int + state: str + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] -__all__ = ("CodeOfConductSimpleType",) +__all__ = ("ProjectType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0112.py b/githubkit/versions/v2022_11_28/types/group_0112.py index 1c623f208..0ddc5174c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0112.py +++ b/githubkit/versions/v2022_11_28/types/group_0112.py @@ -9,151 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0018 import LicenseSimpleType -from .group_0019 import RepositoryType -from .group_0055 import SecurityAndAnalysisType -from .group_0111 import CodeOfConductSimpleType +class CustomPropertyType(TypedDict): + """Organization Custom Property -class FullRepositoryType(TypedDict): - """Full Repository - - Full Repository + Custom property defined on an organization """ - id: int - node_id: str - name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: NotRequired[bool] - has_discussions: bool - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: datetime - created_at: datetime - updated_at: datetime - permissions: NotRequired[FullRepositoryPropPermissionsType] - allow_rebase_merge: NotRequired[bool] - template_repository: NotRequired[Union[None, RepositoryType]] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + property_name: str + url: NotRequired[str] + source_type: NotRequired[Literal["organization", "enterprise"]] + value_type: Literal["string", "single_select", "multi_select", "true_false"] + required: NotRequired[bool] + default_value: NotRequired[Union[str, list[str], None]] + description: NotRequired[Union[str, None]] + allowed_values: NotRequired[Union[list[str], None]] + values_editable_by: NotRequired[ + Union[None, Literal["org_actors", "org_and_repo_actors"]] ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: int - network_count: int - license_: Union[None, LicenseSimpleType] - organization: NotRequired[Union[None, SimpleUserType]] - parent: NotRequired[RepositoryType] - source: NotRequired[RepositoryType] - forks: int - master_branch: NotRequired[str] - open_issues: int - watchers: int - anonymous_access_enabled: NotRequired[bool] - code_of_conduct: NotRequired[CodeOfConductSimpleType] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] - custom_properties: NotRequired[FullRepositoryPropCustomPropertiesType] - - -class FullRepositoryPropPermissionsType(TypedDict): - """FullRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool - - -FullRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""FullRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" -__all__ = ( - "FullRepositoryPropCustomPropertiesType", - "FullRepositoryPropPermissionsType", - "FullRepositoryType", -) +__all__ = ("CustomPropertyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0113.py b/githubkit/versions/v2022_11_28/types/group_0113.py index 48d5f291c..c10beb8d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0113.py +++ b/githubkit/versions/v2022_11_28/types/group_0113.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRulesetBypassActorType(TypedDict): - """Repository Ruleset Bypass Actor +class CustomPropertySetPayloadType(TypedDict): + """Custom Property Set Payload - An actor that can bypass rules in a ruleset + Custom property set payload """ - actor_id: NotRequired[Union[int, None]] - actor_type: Literal[ - "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" - ] - bypass_mode: NotRequired[Literal["always", "pull_request"]] + 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]] -__all__ = ("RepositoryRulesetBypassActorType",) +__all__ = ("CustomPropertySetPayloadType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0114.py b/githubkit/versions/v2022_11_28/types/group_0114.py index 4d28ff15c..c3784542a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0114.py +++ b/githubkit/versions/v2022_11_28/types/group_0114.py @@ -9,18 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0115 import RepositoryRulesetConditionsPropRefNameType +class CustomPropertyValueType(TypedDict): + """Custom Property Value -class RepositoryRulesetConditionsType(TypedDict): - """Repository ruleset conditions for ref names - - Parameters for a repository ruleset ref name condition + Custom property name and associated value """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + property_name: str + value: Union[str, list[str], None] -__all__ = ("RepositoryRulesetConditionsType",) +__all__ = ("CustomPropertyValueType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0115.py b/githubkit/versions/v2022_11_28/types/group_0115.py index bf8990574..901f58314 100644 --- a/githubkit/versions/v2022_11_28/types/group_0115.py +++ b/githubkit/versions/v2022_11_28/types/group_0115.py @@ -9,14 +9,21 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0114 import CustomPropertyValueType -class RepositoryRulesetConditionsPropRefNameType(TypedDict): - """RepositoryRulesetConditionsPropRefName""" - include: NotRequired[list[str]] - exclude: NotRequired[list[str]] +class OrgRepoCustomPropertyValuesType(TypedDict): + """Organization Repository Custom Property Values + List of custom property values for a repository + """ -__all__ = ("RepositoryRulesetConditionsPropRefNameType",) + repository_id: int + repository_name: str + repository_full_name: str + properties: list[CustomPropertyValueType] + + +__all__ = ("OrgRepoCustomPropertyValuesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0116.py b/githubkit/versions/v2022_11_28/types/group_0116.py index 52c01f440..cac6eb986 100644 --- a/githubkit/versions/v2022_11_28/types/group_0116.py +++ b/githubkit/versions/v2022_11_28/types/group_0116.py @@ -9,22 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -from .group_0117 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) +class CodeOfConductSimpleType(TypedDict): + """Code Of Conduct Simple -class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): - """Repository ruleset conditions for repository names - - Parameters for a repository name condition + Code of Conduct Simple """ - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) + url: str + key: str + name: str + html_url: Union[str, None] -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) +__all__ = ("CodeOfConductSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0117.py b/githubkit/versions/v2022_11_28/types/group_0117.py index f2a6b8a4a..7547546d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0117.py +++ b/githubkit/versions/v2022_11_28/types/group_0117.py @@ -9,15 +9,151 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType +from .group_0020 import RepositoryType +from .group_0056 import SecurityAndAnalysisType +from .group_0116 import CodeOfConductSimpleType -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" - include: NotRequired[list[str]] - exclude: NotRequired[list[str]] - protected: NotRequired[bool] +class FullRepositoryType(TypedDict): + """Full Repository + Full Repository + """ -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) + id: int + node_id: str + name: str + full_name: str + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: NotRequired[bool] + has_discussions: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: datetime + created_at: datetime + updated_at: datetime + permissions: NotRequired[FullRepositoryPropPermissionsType] + allow_rebase_merge: NotRequired[bool] + template_repository: NotRequired[Union[None, RepositoryType]] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: int + network_count: int + license_: Union[None, LicenseSimpleType] + organization: NotRequired[Union[None, SimpleUserType]] + parent: NotRequired[RepositoryType] + source: NotRequired[RepositoryType] + forks: int + master_branch: NotRequired[str] + open_issues: int + watchers: int + anonymous_access_enabled: NotRequired[bool] + code_of_conduct: NotRequired[CodeOfConductSimpleType] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + custom_properties: NotRequired[FullRepositoryPropCustomPropertiesType] + + +class FullRepositoryPropPermissionsType(TypedDict): + """FullRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +FullRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""FullRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +__all__ = ( + "FullRepositoryPropCustomPropertiesType", + "FullRepositoryPropPermissionsType", + "FullRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0118.py b/githubkit/versions/v2022_11_28/types/group_0118.py index 1208ba063..48d5f291c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0118.py +++ b/githubkit/versions/v2022_11_28/types/group_0118.py @@ -9,20 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0119 import ( - RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, -) +class RepositoryRulesetBypassActorType(TypedDict): + """Repository Ruleset Bypass Actor -class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): - """Repository ruleset conditions for repository IDs - - Parameters for a repository ID condition + An actor that can bypass rules in a ruleset """ - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType + actor_id: NotRequired[Union[int, None]] + actor_type: Literal[ + "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" + ] + bypass_mode: NotRequired[Literal["always", "pull_request"]] -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) +__all__ = ("RepositoryRulesetBypassActorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0119.py b/githubkit/versions/v2022_11_28/types/group_0119.py index ab014ee2b..509bcc76b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0119.py +++ b/githubkit/versions/v2022_11_28/types/group_0119.py @@ -11,11 +11,16 @@ from typing_extensions import NotRequired, TypedDict +from .group_0120 import RepositoryRulesetConditionsPropRefNameType -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" - repository_ids: NotRequired[list[int]] +class RepositoryRulesetConditionsType(TypedDict): + """Repository ruleset conditions for ref names + Parameters for a repository ruleset ref name condition + """ -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + + +__all__ = ("RepositoryRulesetConditionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0120.py b/githubkit/versions/v2022_11_28/types/group_0120.py index 9ac98613d..bf8990574 100644 --- a/githubkit/versions/v2022_11_28/types/group_0120.py +++ b/githubkit/versions/v2022_11_28/types/group_0120.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0121 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, -) +class RepositoryRulesetConditionsPropRefNameType(TypedDict): + """RepositoryRulesetConditionsPropRefName""" -class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): - """Repository ruleset conditions for repository properties + include: NotRequired[list[str]] + exclude: NotRequired[list[str]] - Parameters for a repository property condition - """ - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType - ) - - -__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) +__all__ = ("RepositoryRulesetConditionsPropRefNameType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0121.py b/githubkit/versions/v2022_11_28/types/group_0121.py index 57df7a1f1..513d282f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0121.py +++ b/githubkit/versions/v2022_11_28/types/group_0121.py @@ -9,31 +9,22 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict - -class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( - TypedDict -): - """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" - - include: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] - exclude: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] +from .group_0122 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +) -class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): - """Repository ruleset property targeting definition +class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): + """Repository ruleset conditions for repository names - Parameters for a targeting a repository property + Parameters for a repository name condition """ - name: str - property_values: list[str] - source: NotRequired[Literal["custom", "system"]] + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertySpecType", - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", -) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0122.py b/githubkit/versions/v2022_11_28/types/group_0122.py index 38c74211e..f2a6b8a4a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0122.py +++ b/githubkit/versions/v2022_11_28/types/group_0122.py @@ -11,22 +11,13 @@ from typing_extensions import NotRequired, TypedDict -from .group_0115 import RepositoryRulesetConditionsPropRefNameType -from .group_0117 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" -class OrgRulesetConditionsOneof0Type(TypedDict): - """repository_name_and_ref_name + include: NotRequired[list[str]] + exclude: NotRequired[list[str]] + protected: NotRequired[bool] - Conditions to target repositories by name and refs by name - """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) - - -__all__ = ("OrgRulesetConditionsOneof0Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0123.py b/githubkit/versions/v2022_11_28/types/group_0123.py index 606772687..86e18b2c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0123.py +++ b/githubkit/versions/v2022_11_28/types/group_0123.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0115 import RepositoryRulesetConditionsPropRefNameType -from .group_0119 import ( +from .group_0124 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) -class OrgRulesetConditionsOneof1Type(TypedDict): - """repository_id_and_ref_name +class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): + """Repository ruleset conditions for repository IDs - Conditions to target repositories by id and refs by name + Parameters for a repository ID condition """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType -__all__ = ("OrgRulesetConditionsOneof1Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0124.py b/githubkit/versions/v2022_11_28/types/group_0124.py index 5cc7d49ff..ab014ee2b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0124.py +++ b/githubkit/versions/v2022_11_28/types/group_0124.py @@ -11,22 +11,11 @@ from typing_extensions import NotRequired, TypedDict -from .group_0115 import RepositoryRulesetConditionsPropRefNameType -from .group_0121 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, -) +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" -class OrgRulesetConditionsOneof2Type(TypedDict): - """repository_property_and_ref_name + repository_ids: NotRequired[list[int]] - Conditions to target repositories by property and refs by name - """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType - ) - - -__all__ = ("OrgRulesetConditionsOneof2Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0125.py b/githubkit/versions/v2022_11_28/types/group_0125.py index f99547449..d49e8aed9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0125.py +++ b/githubkit/versions/v2022_11_28/types/group_0125.py @@ -9,87 +9,22 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict - -class RepositoryRuleCreationType(TypedDict): - """creation - - Only allow users with bypass permission to create matching refs. - """ - - type: Literal["creation"] - - -class RepositoryRuleDeletionType(TypedDict): - """deletion - - Only allow users with bypass permissions to delete matching refs. - """ - - type: Literal["deletion"] - - -class RepositoryRuleRequiredSignaturesType(TypedDict): - """required_signatures - - Commits pushed to matching refs must have verified signatures. - """ - - type: Literal["required_signatures"] - - -class RepositoryRuleNonFastForwardType(TypedDict): - """non_fast_forward - - Prevent users with push access from force pushing to refs. - """ - - type: Literal["non_fast_forward"] - - -class RepositoryRuleOneof15Type(TypedDict): - """file_path_restriction - - Prevent commits that include changes in specified file paths from being pushed - to the commit graph. - """ - - type: Literal["file_path_restriction"] - parameters: NotRequired[RepositoryRuleOneof15PropParametersType] - - -class RepositoryRuleOneof15PropParametersType(TypedDict): - """RepositoryRuleOneof15PropParameters""" - - restricted_file_paths: list[str] +from .group_0126 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +) -class RepositoryRuleOneof17Type(TypedDict): - """file_extension_restriction +class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): + """Repository ruleset conditions for repository properties - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. + Parameters for a repository property condition """ - type: Literal["file_extension_restriction"] - parameters: NotRequired[RepositoryRuleOneof17PropParametersType] + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) -class RepositoryRuleOneof17PropParametersType(TypedDict): - """RepositoryRuleOneof17PropParameters""" - - restricted_file_extensions: list[str] - - -__all__ = ( - "RepositoryRuleCreationType", - "RepositoryRuleDeletionType", - "RepositoryRuleNonFastForwardType", - "RepositoryRuleOneof15PropParametersType", - "RepositoryRuleOneof15Type", - "RepositoryRuleOneof17PropParametersType", - "RepositoryRuleOneof17Type", - "RepositoryRuleRequiredSignaturesType", -) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0126.py b/githubkit/versions/v2022_11_28/types/group_0126.py index 836318e25..57df7a1f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0126.py +++ b/githubkit/versions/v2022_11_28/types/group_0126.py @@ -12,17 +12,28 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0127 import RepositoryRuleUpdatePropParametersType +class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( + TypedDict +): + """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" -class RepositoryRuleUpdateType(TypedDict): - """update + include: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] + exclude: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] - Only allow users with bypass permission to update matching refs. + +class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): + """Repository ruleset property targeting definition + + Parameters for a targeting a repository property """ - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] + name: str + property_values: list[str] + source: NotRequired[Literal["custom", "system"]] -__all__ = ("RepositoryRuleUpdateType",) +__all__ = ( + "RepositoryRulesetConditionsRepositoryPropertySpecType", + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0127.py b/githubkit/versions/v2022_11_28/types/group_0127.py index 4de519b89..62924196a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0127.py +++ b/githubkit/versions/v2022_11_28/types/group_0127.py @@ -9,13 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0120 import RepositoryRulesetConditionsPropRefNameType +from .group_0122 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +) -class RepositoryRuleUpdatePropParametersType(TypedDict): - """RepositoryRuleUpdatePropParameters""" - update_allows_fetch_and_merge: bool +class OrgRulesetConditionsOneof0Type(TypedDict): + """repository_name_and_ref_name + Conditions to target repositories by name and refs by name + """ -__all__ = ("RepositoryRuleUpdatePropParametersType",) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) + + +__all__ = ("OrgRulesetConditionsOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0128.py b/githubkit/versions/v2022_11_28/types/group_0128.py index 3eb52007b..e8d8cdbc7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0128.py +++ b/githubkit/versions/v2022_11_28/types/group_0128.py @@ -9,38 +9,22 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict - -class RepositoryRuleRequiredLinearHistoryType(TypedDict): - """required_linear_history - - Prevent merge commits from being pushed to matching refs. - """ - - type: Literal["required_linear_history"] +from .group_0120 import RepositoryRulesetConditionsPropRefNameType +from .group_0124 import ( + RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, +) -class RepositoryRuleOneof16Type(TypedDict): - """max_file_path_length +class OrgRulesetConditionsOneof1Type(TypedDict): + """repository_id_and_ref_name - Prevent commits that include file paths that exceed a specified character limit - from being pushed to the commit graph. + Conditions to target repositories by id and refs by name """ - type: Literal["max_file_path_length"] - parameters: NotRequired[RepositoryRuleOneof16PropParametersType] + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType -class RepositoryRuleOneof16PropParametersType(TypedDict): - """RepositoryRuleOneof16PropParameters""" - - max_file_path_length: int - - -__all__ = ( - "RepositoryRuleOneof16PropParametersType", - "RepositoryRuleOneof16Type", - "RepositoryRuleRequiredLinearHistoryType", -) +__all__ = ("OrgRulesetConditionsOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0129.py b/githubkit/versions/v2022_11_28/types/group_0129.py index 971d05076..7a286ba30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0129.py +++ b/githubkit/versions/v2022_11_28/types/group_0129.py @@ -9,20 +9,24 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0130 import RepositoryRuleMergeQueuePropParametersType +from .group_0120 import RepositoryRulesetConditionsPropRefNameType +from .group_0126 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +) -class RepositoryRuleMergeQueueType(TypedDict): - """merge_queue +class OrgRulesetConditionsOneof2Type(TypedDict): + """repository_property_and_ref_name - Merges must be performed via a merge queue. + Conditions to target repositories by property and refs by name """ - type: Literal["merge_queue"] - parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) -__all__ = ("RepositoryRuleMergeQueueType",) +__all__ = ("OrgRulesetConditionsOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0130.py b/githubkit/versions/v2022_11_28/types/group_0130.py index 4d32d8491..f99547449 100644 --- a/githubkit/versions/v2022_11_28/types/group_0130.py +++ b/githubkit/versions/v2022_11_28/types/group_0130.py @@ -10,19 +10,86 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleMergeQueuePropParametersType(TypedDict): - """RepositoryRuleMergeQueuePropParameters""" +class RepositoryRuleCreationType(TypedDict): + """creation - check_response_timeout_minutes: int - grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] - max_entries_to_build: int - max_entries_to_merge: int - merge_method: Literal["MERGE", "SQUASH", "REBASE"] - min_entries_to_merge: int - min_entries_to_merge_wait_minutes: int + Only allow users with bypass permission to create matching refs. + """ + type: Literal["creation"] -__all__ = ("RepositoryRuleMergeQueuePropParametersType",) + +class RepositoryRuleDeletionType(TypedDict): + """deletion + + Only allow users with bypass permissions to delete matching refs. + """ + + type: Literal["deletion"] + + +class RepositoryRuleRequiredSignaturesType(TypedDict): + """required_signatures + + Commits pushed to matching refs must have verified signatures. + """ + + type: Literal["required_signatures"] + + +class RepositoryRuleNonFastForwardType(TypedDict): + """non_fast_forward + + Prevent users with push access from force pushing to refs. + """ + + type: Literal["non_fast_forward"] + + +class RepositoryRuleOneof15Type(TypedDict): + """file_path_restriction + + Prevent commits that include changes in specified file paths from being pushed + to the commit graph. + """ + + type: Literal["file_path_restriction"] + parameters: NotRequired[RepositoryRuleOneof15PropParametersType] + + +class RepositoryRuleOneof15PropParametersType(TypedDict): + """RepositoryRuleOneof15PropParameters""" + + restricted_file_paths: list[str] + + +class RepositoryRuleOneof17Type(TypedDict): + """file_extension_restriction + + Prevent commits that include files with specified file extensions from being + pushed to the commit graph. + """ + + type: Literal["file_extension_restriction"] + parameters: NotRequired[RepositoryRuleOneof17PropParametersType] + + +class RepositoryRuleOneof17PropParametersType(TypedDict): + """RepositoryRuleOneof17PropParameters""" + + restricted_file_extensions: list[str] + + +__all__ = ( + "RepositoryRuleCreationType", + "RepositoryRuleDeletionType", + "RepositoryRuleNonFastForwardType", + "RepositoryRuleOneof15PropParametersType", + "RepositoryRuleOneof15Type", + "RepositoryRuleOneof17PropParametersType", + "RepositoryRuleOneof17Type", + "RepositoryRuleRequiredSignaturesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0131.py b/githubkit/versions/v2022_11_28/types/group_0131.py index 7c596a4e9..9b74fda72 100644 --- a/githubkit/versions/v2022_11_28/types/group_0131.py +++ b/githubkit/versions/v2022_11_28/types/group_0131.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0132 import RepositoryRuleRequiredDeploymentsPropParametersType +from .group_0132 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleRequiredDeploymentsType(TypedDict): - """required_deployments +class RepositoryRuleUpdateType(TypedDict): + """update - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. + Only allow users with bypass permission to update matching refs. """ - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] -__all__ = ("RepositoryRuleRequiredDeploymentsType",) +__all__ = ("RepositoryRuleUpdateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0132.py b/githubkit/versions/v2022_11_28/types/group_0132.py index ef0c8d1d9..4de519b89 100644 --- a/githubkit/versions/v2022_11_28/types/group_0132.py +++ b/githubkit/versions/v2022_11_28/types/group_0132.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): - """RepositoryRuleRequiredDeploymentsPropParameters""" +class RepositoryRuleUpdatePropParametersType(TypedDict): + """RepositoryRuleUpdatePropParameters""" - required_deployment_environments: list[str] + update_allows_fetch_and_merge: bool -__all__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) +__all__ = ("RepositoryRuleUpdatePropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0133.py b/githubkit/versions/v2022_11_28/types/group_0133.py index 3d2255263..3eb52007b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0133.py +++ b/githubkit/versions/v2022_11_28/types/group_0133.py @@ -9,19 +9,38 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleParamsRequiredReviewerConfigurationType(TypedDict): - """RequiredReviewerConfiguration +class RepositoryRuleRequiredLinearHistoryType(TypedDict): + """required_linear_history - A reviewing team, and file patterns describing which files they must approve - changes to. + Prevent merge commits from being pushed to matching refs. """ - file_patterns: list[str] - minimum_approvals: int - reviewer_id: str + type: Literal["required_linear_history"] -__all__ = ("RepositoryRuleParamsRequiredReviewerConfigurationType",) +class RepositoryRuleOneof16Type(TypedDict): + """max_file_path_length + + Prevent commits that include file paths that exceed a specified character limit + from being pushed to the commit graph. + """ + + type: Literal["max_file_path_length"] + parameters: NotRequired[RepositoryRuleOneof16PropParametersType] + + +class RepositoryRuleOneof16PropParametersType(TypedDict): + """RepositoryRuleOneof16PropParameters""" + + max_file_path_length: int + + +__all__ = ( + "RepositoryRuleOneof16PropParametersType", + "RepositoryRuleOneof16Type", + "RepositoryRuleRequiredLinearHistoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0134.py b/githubkit/versions/v2022_11_28/types/group_0134.py index ec01955e1..f85d571dc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0134.py +++ b/githubkit/versions/v2022_11_28/types/group_0134.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0135 import RepositoryRulePullRequestPropParametersType +from .group_0135 import RepositoryRuleMergeQueuePropParametersType -class RepositoryRulePullRequestType(TypedDict): - """pull_request +class RepositoryRuleMergeQueueType(TypedDict): + """merge_queue - Require all commits be made to a non-target branch and submitted via a pull - request before they can be merged. + Merges must be performed via a merge queue. """ - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + type: Literal["merge_queue"] + parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] -__all__ = ("RepositoryRulePullRequestType",) +__all__ = ("RepositoryRuleMergeQueueType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0135.py b/githubkit/versions/v2022_11_28/types/group_0135.py index 5ffe35316..4d32d8491 100644 --- a/githubkit/versions/v2022_11_28/types/group_0135.py +++ b/githubkit/versions/v2022_11_28/types/group_0135.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class RepositoryRulePullRequestPropParametersType(TypedDict): - """RepositoryRulePullRequestPropParameters""" +class RepositoryRuleMergeQueuePropParametersType(TypedDict): + """RepositoryRuleMergeQueuePropParameters""" - allowed_merge_methods: NotRequired[list[str]] - dismiss_stale_reviews_on_push: bool - require_code_owner_review: bool - require_last_push_approval: bool - required_approving_review_count: int - required_review_thread_resolution: bool + check_response_timeout_minutes: int + grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] + max_entries_to_build: int + max_entries_to_merge: int + merge_method: Literal["MERGE", "SQUASH", "REBASE"] + min_entries_to_merge: int + min_entries_to_merge_wait_minutes: int -__all__ = ("RepositoryRulePullRequestPropParametersType",) +__all__ = ("RepositoryRuleMergeQueuePropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0136.py b/githubkit/versions/v2022_11_28/types/group_0136.py index d67b4deda..a0e1948dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0136.py +++ b/githubkit/versions/v2022_11_28/types/group_0136.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0137 import RepositoryRuleRequiredStatusChecksPropParametersType +from .group_0137 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleRequiredStatusChecksType(TypedDict): - """required_status_checks +class RepositoryRuleRequiredDeploymentsType(TypedDict): + """required_deployments - Choose which status checks must pass before the ref is updated. When enabled, - commits must first be pushed to another ref where the checks pass. + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. """ - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] -__all__ = ("RepositoryRuleRequiredStatusChecksType",) +__all__ = ("RepositoryRuleRequiredDeploymentsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0137.py b/githubkit/versions/v2022_11_28/types/group_0137.py index 82ebfc8c9..ef0c8d1d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0137.py +++ b/githubkit/versions/v2022_11_28/types/group_0137.py @@ -9,28 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): - """RepositoryRuleRequiredStatusChecksPropParameters""" +class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): + """RepositoryRuleRequiredDeploymentsPropParameters""" - do_not_enforce_on_create: NotRequired[bool] - required_status_checks: list[RepositoryRuleParamsStatusCheckConfigurationType] - strict_required_status_checks_policy: bool + required_deployment_environments: list[str] -class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): - """StatusCheckConfiguration - - Required status check - """ - - context: str - integration_id: NotRequired[int] - - -__all__ = ( - "RepositoryRuleParamsStatusCheckConfigurationType", - "RepositoryRuleRequiredStatusChecksPropParametersType", -) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0138.py b/githubkit/versions/v2022_11_28/types/group_0138.py index 2bf3a244d..3d2255263 100644 --- a/githubkit/versions/v2022_11_28/types/group_0138.py +++ b/githubkit/versions/v2022_11_28/types/group_0138.py @@ -9,20 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0139 import RepositoryRuleCommitMessagePatternPropParametersType +class RepositoryRuleParamsRequiredReviewerConfigurationType(TypedDict): + """RequiredReviewerConfiguration -class RepositoryRuleCommitMessagePatternType(TypedDict): - """commit_message_pattern - - Parameters to be used for the commit_message_pattern rule + A reviewing team, and file patterns describing which files they must approve + changes to. """ - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + file_patterns: list[str] + minimum_approvals: int + reviewer_id: str -__all__ = ("RepositoryRuleCommitMessagePatternType",) +__all__ = ("RepositoryRuleParamsRequiredReviewerConfigurationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0139.py b/githubkit/versions/v2022_11_28/types/group_0139.py index b6fc6932b..81942ab17 100644 --- a/githubkit/versions/v2022_11_28/types/group_0139.py +++ b/githubkit/versions/v2022_11_28/types/group_0139.py @@ -12,14 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0140 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): - """RepositoryRuleCommitMessagePatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRulePullRequestType(TypedDict): + """pull_request + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. + """ -__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + + +__all__ = ("RepositoryRulePullRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0140.py b/githubkit/versions/v2022_11_28/types/group_0140.py index 7af72bdbb..5ffe35316 100644 --- a/githubkit/versions/v2022_11_28/types/group_0140.py +++ b/githubkit/versions/v2022_11_28/types/group_0140.py @@ -9,20 +9,18 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0141 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +class RepositoryRulePullRequestPropParametersType(TypedDict): + """RepositoryRulePullRequestPropParameters""" -class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): - """commit_author_email_pattern + allowed_merge_methods: NotRequired[list[str]] + dismiss_stale_reviews_on_push: bool + require_code_owner_review: bool + require_last_push_approval: bool + required_approving_review_count: int + required_review_thread_resolution: bool - Parameters to be used for the commit_author_email_pattern rule - """ - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] - - -__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) +__all__ = ("RepositoryRulePullRequestPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0141.py b/githubkit/versions/v2022_11_28/types/group_0141.py index d6712bb18..9646a4713 100644 --- a/githubkit/versions/v2022_11_28/types/group_0141.py +++ b/githubkit/versions/v2022_11_28/types/group_0141.py @@ -12,14 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0142 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleRequiredStatusChecksType(TypedDict): + """required_status_checks + Choose which status checks must pass before the ref is updated. When enabled, + commits must first be pushed to another ref where the checks pass. + """ -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + + +__all__ = ("RepositoryRuleRequiredStatusChecksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0142.py b/githubkit/versions/v2022_11_28/types/group_0142.py index 41beaea68..82ebfc8c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0142.py +++ b/githubkit/versions/v2022_11_28/types/group_0142.py @@ -9,20 +9,28 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0143 import RepositoryRuleCommitterEmailPatternPropParametersType +class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): + """RepositoryRuleRequiredStatusChecksPropParameters""" -class RepositoryRuleCommitterEmailPatternType(TypedDict): - """committer_email_pattern + do_not_enforce_on_create: NotRequired[bool] + required_status_checks: list[RepositoryRuleParamsStatusCheckConfigurationType] + strict_required_status_checks_policy: bool - Parameters to be used for the committer_email_pattern rule + +class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): + """StatusCheckConfiguration + + Required status check """ - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + context: str + integration_id: NotRequired[int] -__all__ = ("RepositoryRuleCommitterEmailPatternType",) +__all__ = ( + "RepositoryRuleParamsStatusCheckConfigurationType", + "RepositoryRuleRequiredStatusChecksPropParametersType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0143.py b/githubkit/versions/v2022_11_28/types/group_0143.py index a6567de4b..a49d8a4f7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0143.py +++ b/githubkit/versions/v2022_11_28/types/group_0143.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0144 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitterEmailPatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleCommitMessagePatternType(TypedDict): + """commit_message_pattern + Parameters to be used for the commit_message_pattern rule + """ -__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + + +__all__ = ("RepositoryRuleCommitMessagePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0144.py b/githubkit/versions/v2022_11_28/types/group_0144.py index 19efb2bc9..b6fc6932b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0144.py +++ b/githubkit/versions/v2022_11_28/types/group_0144.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0145 import RepositoryRuleBranchNamePatternPropParametersType +class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): + """RepositoryRuleCommitMessagePatternPropParameters""" -class RepositoryRuleBranchNamePatternType(TypedDict): - """branch_name_pattern + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - Parameters to be used for the branch_name_pattern rule - """ - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] - - -__all__ = ("RepositoryRuleBranchNamePatternType",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0145.py b/githubkit/versions/v2022_11_28/types/group_0145.py index da29fc42d..949802d1c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0145.py +++ b/githubkit/versions/v2022_11_28/types/group_0145.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0146 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): - """RepositoryRuleBranchNamePatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): + """commit_author_email_pattern + Parameters to be used for the commit_author_email_pattern rule + """ -__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) + type: Literal["commit_author_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + + +__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0146.py b/githubkit/versions/v2022_11_28/types/group_0146.py index 9b28660b6..d6712bb18 100644 --- a/githubkit/versions/v2022_11_28/types/group_0146.py +++ b/githubkit/versions/v2022_11_28/types/group_0146.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0147 import RepositoryRuleTagNamePatternPropParametersType +class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" -class RepositoryRuleTagNamePatternType(TypedDict): - """tag_name_pattern + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - Parameters to be used for the tag_name_pattern rule - """ - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] - - -__all__ = ("RepositoryRuleTagNamePatternType",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0147.py b/githubkit/versions/v2022_11_28/types/group_0147.py index cbfa3546b..5abe52a96 100644 --- a/githubkit/versions/v2022_11_28/types/group_0147.py +++ b/githubkit/versions/v2022_11_28/types/group_0147.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0148 import RepositoryRuleCommitterEmailPatternPropParametersType -class RepositoryRuleTagNamePatternPropParametersType(TypedDict): - """RepositoryRuleTagNamePatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleCommitterEmailPatternType(TypedDict): + """committer_email_pattern + Parameters to be used for the committer_email_pattern rule + """ -__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + + +__all__ = ("RepositoryRuleCommitterEmailPatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0148.py b/githubkit/versions/v2022_11_28/types/group_0148.py index 7464769b7..a6567de4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0148.py +++ b/githubkit/versions/v2022_11_28/types/group_0148.py @@ -9,17 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class RepositoryRuleParamsRestrictedCommitsType(TypedDict): - """RestrictedCommits +class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitterEmailPatternPropParameters""" - Restricted commit - """ + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - oid: str - reason: NotRequired[str] - -__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0149.py b/githubkit/versions/v2022_11_28/types/group_0149.py index 74654b8ea..730e67e5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0149.py +++ b/githubkit/versions/v2022_11_28/types/group_0149.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0150 import RepositoryRuleWorkflowsPropParametersType +from .group_0150 import RepositoryRuleBranchNamePatternPropParametersType -class RepositoryRuleWorkflowsType(TypedDict): - """workflows +class RepositoryRuleBranchNamePatternType(TypedDict): + """branch_name_pattern - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. + Parameters to be used for the branch_name_pattern rule """ - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] -__all__ = ("RepositoryRuleWorkflowsType",) +__all__ = ("RepositoryRuleBranchNamePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0150.py b/githubkit/versions/v2022_11_28/types/group_0150.py index c26b4894e..da29fc42d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0150.py +++ b/githubkit/versions/v2022_11_28/types/group_0150.py @@ -9,29 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class RepositoryRuleWorkflowsPropParametersType(TypedDict): - """RepositoryRuleWorkflowsPropParameters""" +class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): + """RepositoryRuleBranchNamePatternPropParameters""" - do_not_enforce_on_create: NotRequired[bool] - workflows: list[RepositoryRuleParamsWorkflowFileReferenceType] + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str -class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): - """WorkflowFileReference - - A workflow that must run for this rule to pass - """ - - path: str - ref: NotRequired[str] - repository_id: int - sha: NotRequired[str] - - -__all__ = ( - "RepositoryRuleParamsWorkflowFileReferenceType", - "RepositoryRuleWorkflowsPropParametersType", -) +__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0151.py b/githubkit/versions/v2022_11_28/types/group_0151.py index 9a918aebf..7837a2f5f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0151.py +++ b/githubkit/versions/v2022_11_28/types/group_0151.py @@ -12,19 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0152 import RepositoryRuleCodeScanningPropParametersType +from .group_0152 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryRuleCodeScanningType(TypedDict): - """code_scanning +class RepositoryRuleTagNamePatternType(TypedDict): + """tag_name_pattern - Choose which tools must provide code scanning results before the reference is - updated. When configured, code scanning must be enabled and have results for - both the commit and the reference being updated. + Parameters to be used for the tag_name_pattern rule """ - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] -__all__ = ("RepositoryRuleCodeScanningType",) +__all__ = ("RepositoryRuleTagNamePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0152.py b/githubkit/versions/v2022_11_28/types/group_0152.py index 0ce3aaee0..cbfa3546b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0152.py +++ b/githubkit/versions/v2022_11_28/types/group_0152.py @@ -10,29 +10,16 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleCodeScanningPropParametersType(TypedDict): - """RepositoryRuleCodeScanningPropParameters""" +class RepositoryRuleTagNamePatternPropParametersType(TypedDict): + """RepositoryRuleTagNamePatternPropParameters""" - code_scanning_tools: list[RepositoryRuleParamsCodeScanningToolType] + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str -class RepositoryRuleParamsCodeScanningToolType(TypedDict): - """CodeScanningTool - - A tool that must provide code scanning results for this rule to pass. - """ - - alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] - security_alerts_threshold: Literal[ - "none", "critical", "high_or_higher", "medium_or_higher", "all" - ] - tool: str - - -__all__ = ( - "RepositoryRuleCodeScanningPropParametersType", - "RepositoryRuleParamsCodeScanningToolType", -) +__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0153.py b/githubkit/versions/v2022_11_28/types/group_0153.py index 990e63b2d..7464769b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0153.py +++ b/githubkit/versions/v2022_11_28/types/group_0153.py @@ -9,28 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class RepositoryRuleOneof18Type(TypedDict): - """max_file_size +class RepositoryRuleParamsRestrictedCommitsType(TypedDict): + """RestrictedCommits - Prevent commits that exceed a specified file size limit from being pushed to the - commit. + Restricted commit """ - type: Literal["max_file_size"] - parameters: NotRequired[RepositoryRuleOneof18PropParametersType] + oid: str + reason: NotRequired[str] -class RepositoryRuleOneof18PropParametersType(TypedDict): - """RepositoryRuleOneof18PropParameters""" - - max_file_size: int - - -__all__ = ( - "RepositoryRuleOneof18PropParametersType", - "RepositoryRuleOneof18Type", -) +__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0154.py b/githubkit/versions/v2022_11_28/types/group_0154.py index 49d30a4fb..9a205391f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0154.py +++ b/githubkit/versions/v2022_11_28/types/group_0154.py @@ -9,122 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0113 import RepositoryRulesetBypassActorType -from .group_0114 import RepositoryRulesetConditionsType -from .group_0122 import OrgRulesetConditionsOneof0Type -from .group_0123 import OrgRulesetConditionsOneof1Type -from .group_0124 import OrgRulesetConditionsOneof2Type -from .group_0125 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0126 import RepositoryRuleUpdateType -from .group_0128 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0129 import RepositoryRuleMergeQueueType -from .group_0131 import RepositoryRuleRequiredDeploymentsType -from .group_0134 import RepositoryRulePullRequestType -from .group_0136 import RepositoryRuleRequiredStatusChecksType -from .group_0138 import RepositoryRuleCommitMessagePatternType -from .group_0140 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0142 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleBranchNamePatternType -from .group_0146 import RepositoryRuleTagNamePatternType -from .group_0149 import RepositoryRuleWorkflowsType -from .group_0151 import RepositoryRuleCodeScanningType -from .group_0153 import RepositoryRuleOneof18Type +from .group_0155 import RepositoryRuleWorkflowsPropParametersType -class RepositoryRulesetType(TypedDict): - """Repository ruleset +class RepositoryRuleWorkflowsType(TypedDict): + """workflows - A set of rules to apply when specified conditions are met. + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - id: int - name: str - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - source_type: NotRequired[Literal["Repository", "Organization", "Enterprise"]] - source: str - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - current_user_can_bypass: NotRequired[ - Literal["always", "pull_requests_only", "never"] - ] - node_id: NotRequired[str] - links: NotRequired[RepositoryRulesetPropLinksType] - conditions: NotRequired[ - Union[ - RepositoryRulesetConditionsType, - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - None, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] -class RepositoryRulesetPropLinksType(TypedDict): - """RepositoryRulesetPropLinks""" - - self_: NotRequired[RepositoryRulesetPropLinksPropSelfType] - html: NotRequired[Union[RepositoryRulesetPropLinksPropHtmlType, None]] - - -class RepositoryRulesetPropLinksPropSelfType(TypedDict): - """RepositoryRulesetPropLinksPropSelf""" - - href: NotRequired[str] - - -class RepositoryRulesetPropLinksPropHtmlType(TypedDict): - """RepositoryRulesetPropLinksPropHtml""" - - href: NotRequired[str] - - -__all__ = ( - "RepositoryRulesetPropLinksPropHtmlType", - "RepositoryRulesetPropLinksPropSelfType", - "RepositoryRulesetPropLinksType", - "RepositoryRulesetType", -) +__all__ = ("RepositoryRuleWorkflowsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0155.py b/githubkit/versions/v2022_11_28/types/group_0155.py index 74f027a0f..c26b4894e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0155.py +++ b/githubkit/versions/v2022_11_28/types/group_0155.py @@ -9,25 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict -class RuleSuitesItemsType(TypedDict): - """RuleSuitesItems""" +class RepositoryRuleWorkflowsPropParametersType(TypedDict): + """RepositoryRuleWorkflowsPropParameters""" - id: NotRequired[int] - actor_id: NotRequired[int] - actor_name: NotRequired[str] - before_sha: NotRequired[str] - after_sha: NotRequired[str] + do_not_enforce_on_create: NotRequired[bool] + workflows: list[RepositoryRuleParamsWorkflowFileReferenceType] + + +class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): + """WorkflowFileReference + + A workflow that must run for this rule to pass + """ + + path: str ref: NotRequired[str] - repository_id: NotRequired[int] - repository_name: NotRequired[str] - pushed_at: NotRequired[datetime] - result: NotRequired[Literal["pass", "fail", "bypass"]] - evaluation_result: NotRequired[Literal["pass", "fail", "bypass"]] + repository_id: int + sha: NotRequired[str] -__all__ = ("RuleSuitesItemsType",) +__all__ = ( + "RepositoryRuleParamsWorkflowFileReferenceType", + "RepositoryRuleWorkflowsPropParametersType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0156.py b/githubkit/versions/v2022_11_28/types/group_0156.py index edb6fa30e..d6c87934f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0156.py +++ b/githubkit/versions/v2022_11_28/types/group_0156.py @@ -9,51 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0157 import RepositoryRuleCodeScanningPropParametersType -class RuleSuiteType(TypedDict): - """Rule Suite - Response - """ - - id: NotRequired[int] - actor_id: NotRequired[Union[int, None]] - actor_name: NotRequired[Union[str, None]] - before_sha: NotRequired[str] - after_sha: NotRequired[str] - ref: NotRequired[str] - repository_id: NotRequired[int] - repository_name: NotRequired[str] - pushed_at: NotRequired[datetime] - result: NotRequired[Literal["pass", "fail", "bypass"]] - evaluation_result: NotRequired[Union[None, Literal["pass", "fail", "bypass"]]] - rule_evaluations: NotRequired[list[RuleSuitePropRuleEvaluationsItemsType]] - - -class RuleSuitePropRuleEvaluationsItemsType(TypedDict): - """RuleSuitePropRuleEvaluationsItems""" +class RepositoryRuleCodeScanningType(TypedDict): + """code_scanning - rule_source: NotRequired[RuleSuitePropRuleEvaluationsItemsPropRuleSourceType] - enforcement: NotRequired[Literal["active", "evaluate", "deleted ruleset"]] - result: NotRequired[Literal["pass", "fail"]] - rule_type: NotRequired[str] - details: NotRequired[Union[str, None]] - - -class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + Choose which tools must provide code scanning results before the reference is + updated. When configured, code scanning must be enabled and have results for + both the commit and the reference being updated. + """ - type: NotRequired[str] - id: NotRequired[Union[int, None]] - name: NotRequired[Union[str, None]] + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] -__all__ = ( - "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", - "RuleSuitePropRuleEvaluationsItemsType", - "RuleSuiteType", -) +__all__ = ("RepositoryRuleCodeScanningType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0157.py b/githubkit/versions/v2022_11_28/types/group_0157.py index 409599d5a..0ce3aaee0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0157.py +++ b/githubkit/versions/v2022_11_28/types/group_0157.py @@ -12,29 +12,27 @@ from typing import Literal from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +class RepositoryRuleCodeScanningPropParametersType(TypedDict): + """RepositoryRuleCodeScanningPropParameters""" -class RepositoryAdvisoryCreditType(TypedDict): - """RepositoryAdvisoryCredit + code_scanning_tools: list[RepositoryRuleParamsCodeScanningToolType] - A credit given to a user for a repository security advisory. + +class RepositoryRuleParamsCodeScanningToolType(TypedDict): + """CodeScanningTool + + A tool that must provide code scanning results for this rule to pass. """ - user: SimpleUserType - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", + alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] + security_alerts_threshold: Literal[ + "none", "critical", "high_or_higher", "medium_or_higher", "all" ] - state: Literal["accepted", "declined", "pending"] + tool: str -__all__ = ("RepositoryAdvisoryCreditType",) +__all__ = ( + "RepositoryRuleCodeScanningPropParametersType", + "RepositoryRuleParamsCodeScanningToolType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0158.py b/githubkit/versions/v2022_11_28/types/group_0158.py index 2a16fd76a..990e63b2d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0158.py +++ b/githubkit/versions/v2022_11_28/types/group_0158.py @@ -9,142 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType -from .group_0002 import SimpleUserType -from .group_0082 import TeamType -from .group_0157 import RepositoryAdvisoryCreditType +class RepositoryRuleOneof18Type(TypedDict): + """max_file_size -class RepositoryAdvisoryType(TypedDict): - """RepositoryAdvisory - - A repository security advisory. + Prevent commits that exceed a specified file size limit from being pushed to the + commit. """ - ghsa_id: str - cve_id: Union[str, None] - url: str - html_url: str - summary: str - description: Union[str, None] - severity: Union[None, Literal["critical", "high", "medium", "low"]] - author: None - publisher: None - identifiers: list[RepositoryAdvisoryPropIdentifiersItemsType] - state: Literal["published", "closed", "withdrawn", "draft", "triage"] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - published_at: Union[datetime, None] - closed_at: Union[datetime, None] - withdrawn_at: Union[datetime, None] - submission: Union[RepositoryAdvisoryPropSubmissionType, None] - vulnerabilities: Union[list[RepositoryAdvisoryVulnerabilityType], None] - cvss: Union[RepositoryAdvisoryPropCvssType, None] - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: Union[list[RepositoryAdvisoryPropCwesItemsType], None] - cwe_ids: Union[list[str], None] - credits_: Union[list[RepositoryAdvisoryPropCreditsItemsType], None] - credits_detailed: Union[list[RepositoryAdvisoryCreditType], None] - collaborating_users: Union[list[SimpleUserType], None] - collaborating_teams: Union[list[TeamType], None] - private_fork: None - - -class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): - """RepositoryAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] - value: str - - -class RepositoryAdvisoryPropSubmissionType(TypedDict): - """RepositoryAdvisoryPropSubmission""" - - accepted: bool - - -class RepositoryAdvisoryPropCvssType(TypedDict): - """RepositoryAdvisoryPropCvss""" - - vector_string: Union[str, None] - score: Union[float, None] - - -class RepositoryAdvisoryPropCwesItemsType(TypedDict): - """RepositoryAdvisoryPropCwesItems""" + type: Literal["max_file_size"] + parameters: NotRequired[RepositoryRuleOneof18PropParametersType] - cwe_id: str - name: str +class RepositoryRuleOneof18PropParametersType(TypedDict): + """RepositoryRuleOneof18PropParameters""" -class RepositoryAdvisoryPropCreditsItemsType(TypedDict): - """RepositoryAdvisoryPropCreditsItems""" - - login: NotRequired[str] - type: NotRequired[ - Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - ] - - -class RepositoryAdvisoryVulnerabilityType(TypedDict): - """RepositoryAdvisoryVulnerability - - A product affected by the vulnerability detailed in a repository security - advisory. - """ - - package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] - vulnerable_version_range: Union[str, None] - patched_versions: Union[str, None] - vulnerable_functions: Union[list[str], None] - - -class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): - """RepositoryAdvisoryVulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: Union[str, None] + max_file_size: int __all__ = ( - "RepositoryAdvisoryPropCreditsItemsType", - "RepositoryAdvisoryPropCvssType", - "RepositoryAdvisoryPropCwesItemsType", - "RepositoryAdvisoryPropIdentifiersItemsType", - "RepositoryAdvisoryPropSubmissionType", - "RepositoryAdvisoryType", - "RepositoryAdvisoryVulnerabilityPropPackageType", - "RepositoryAdvisoryVulnerabilityType", + "RepositoryRuleOneof18PropParametersType", + "RepositoryRuleOneof18Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0159.py b/githubkit/versions/v2022_11_28/types/group_0159.py index fb14d5d5d..c904112cd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0159.py +++ b/githubkit/versions/v2022_11_28/types/group_0159.py @@ -9,39 +9,122 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0118 import RepositoryRulesetBypassActorType +from .group_0119 import RepositoryRulesetConditionsType +from .group_0127 import OrgRulesetConditionsOneof0Type +from .group_0128 import OrgRulesetConditionsOneof1Type +from .group_0129 import OrgRulesetConditionsOneof2Type +from .group_0130 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0131 import RepositoryRuleUpdateType +from .group_0133 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0134 import RepositoryRuleMergeQueueType +from .group_0136 import RepositoryRuleRequiredDeploymentsType +from .group_0139 import RepositoryRulePullRequestType +from .group_0141 import RepositoryRuleRequiredStatusChecksType +from .group_0143 import RepositoryRuleCommitMessagePatternType +from .group_0145 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0147 import RepositoryRuleCommitterEmailPatternType +from .group_0149 import RepositoryRuleBranchNamePatternType +from .group_0151 import RepositoryRuleTagNamePatternType +from .group_0154 import RepositoryRuleWorkflowsType +from .group_0156 import RepositoryRuleCodeScanningType +from .group_0158 import RepositoryRuleOneof18Type + + +class RepositoryRulesetType(TypedDict): + """Repository ruleset + + A set of rules to apply when specified conditions are met. + """ + + id: int + name: str + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + source_type: NotRequired[Literal["Repository", "Organization", "Enterprise"]] + source: str + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + current_user_can_bypass: NotRequired[ + Literal["always", "pull_requests_only", "never"] + ] + node_id: NotRequired[str] + links: NotRequired[RepositoryRulesetPropLinksType] + conditions: NotRequired[ + Union[ + RepositoryRulesetConditionsType, + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + None, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + + +class RepositoryRulesetPropLinksType(TypedDict): + """RepositoryRulesetPropLinks""" + + self_: NotRequired[RepositoryRulesetPropLinksPropSelfType] + html: NotRequired[Union[RepositoryRulesetPropLinksPropHtmlType, None]] + -class ActionsBillingUsageType(TypedDict): - """ActionsBillingUsage""" +class RepositoryRulesetPropLinksPropSelfType(TypedDict): + """RepositoryRulesetPropLinksPropSelf""" - total_minutes_used: int - total_paid_minutes_used: int - included_minutes: int - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdownType + href: NotRequired[str] -class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): - """ActionsBillingUsagePropMinutesUsedBreakdown""" +class RepositoryRulesetPropLinksPropHtmlType(TypedDict): + """RepositoryRulesetPropLinksPropHtml""" - ubuntu: NotRequired[int] - macos: NotRequired[int] - windows: NotRequired[int] - ubuntu_4_core: NotRequired[int] - ubuntu_8_core: NotRequired[int] - ubuntu_16_core: NotRequired[int] - ubuntu_32_core: NotRequired[int] - ubuntu_64_core: NotRequired[int] - windows_4_core: NotRequired[int] - windows_8_core: NotRequired[int] - windows_16_core: NotRequired[int] - windows_32_core: NotRequired[int] - windows_64_core: NotRequired[int] - macos_12_core: NotRequired[int] - total: NotRequired[int] + href: NotRequired[str] __all__ = ( - "ActionsBillingUsagePropMinutesUsedBreakdownType", - "ActionsBillingUsageType", + "RepositoryRulesetPropLinksPropHtmlType", + "RepositoryRulesetPropLinksPropSelfType", + "RepositoryRulesetPropLinksType", + "RepositoryRulesetType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0160.py b/githubkit/versions/v2022_11_28/types/group_0160.py index cac22c41a..74f027a0f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0160.py +++ b/githubkit/versions/v2022_11_28/types/group_0160.py @@ -9,15 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class PackagesBillingUsageType(TypedDict): - """PackagesBillingUsage""" +class RuleSuitesItemsType(TypedDict): + """RuleSuitesItems""" - total_gigabytes_bandwidth_used: int - total_paid_gigabytes_bandwidth_used: int - included_gigabytes_bandwidth: int + id: NotRequired[int] + actor_id: NotRequired[int] + actor_name: NotRequired[str] + before_sha: NotRequired[str] + after_sha: NotRequired[str] + ref: NotRequired[str] + repository_id: NotRequired[int] + repository_name: NotRequired[str] + pushed_at: NotRequired[datetime] + result: NotRequired[Literal["pass", "fail", "bypass"]] + evaluation_result: NotRequired[Literal["pass", "fail", "bypass"]] -__all__ = ("PackagesBillingUsageType",) +__all__ = ("RuleSuitesItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0161.py b/githubkit/versions/v2022_11_28/types/group_0161.py index 15a19a09d..edb6fa30e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0161.py +++ b/githubkit/versions/v2022_11_28/types/group_0161.py @@ -9,15 +9,51 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class CombinedBillingUsageType(TypedDict): - """CombinedBillingUsage""" +class RuleSuiteType(TypedDict): + """Rule Suite - days_left_in_billing_cycle: int - estimated_paid_storage_for_month: int - estimated_storage_for_month: int + Response + """ + id: NotRequired[int] + actor_id: NotRequired[Union[int, None]] + actor_name: NotRequired[Union[str, None]] + before_sha: NotRequired[str] + after_sha: NotRequired[str] + ref: NotRequired[str] + repository_id: NotRequired[int] + repository_name: NotRequired[str] + pushed_at: NotRequired[datetime] + result: NotRequired[Literal["pass", "fail", "bypass"]] + evaluation_result: NotRequired[Union[None, Literal["pass", "fail", "bypass"]]] + rule_evaluations: NotRequired[list[RuleSuitePropRuleEvaluationsItemsType]] -__all__ = ("CombinedBillingUsageType",) + +class RuleSuitePropRuleEvaluationsItemsType(TypedDict): + """RuleSuitePropRuleEvaluationsItems""" + + rule_source: NotRequired[RuleSuitePropRuleEvaluationsItemsPropRuleSourceType] + enforcement: NotRequired[Literal["active", "evaluate", "deleted ruleset"]] + result: NotRequired[Literal["pass", "fail"]] + rule_type: NotRequired[str] + details: NotRequired[Union[str, None]] + + +class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + + type: NotRequired[str] + id: NotRequired[Union[int, None]] + name: NotRequired[Union[str, None]] + + +__all__ = ( + "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", + "RuleSuitePropRuleEvaluationsItemsType", + "RuleSuiteType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0162.py b/githubkit/versions/v2022_11_28/types/group_0162.py index e20c0e167..ef2fcae57 100644 --- a/githubkit/versions/v2022_11_28/types/group_0162.py +++ b/githubkit/versions/v2022_11_28/types/group_0162.py @@ -9,111 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_0081 import TeamSimpleType +from .group_0003 import SimpleUserType -class TeamFullType(TypedDict): - """Full Team +class RepositoryAdvisoryCreditType(TypedDict): + """RepositoryAdvisoryCredit - Groups of organization members that gives permissions on specified repositories. + A credit given to a user for a repository security advisory. """ - id: int - node_id: str - url: str - html_url: str - name: str - slug: str - description: Union[str, None] - privacy: NotRequired[Literal["closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] + user: SimpleUserType + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", ] - permission: str - members_url: str - repositories_url: str - parent: NotRequired[Union[None, TeamSimpleType]] - members_count: int - repos_count: int - created_at: datetime - updated_at: datetime - organization: TeamOrganizationType - ldap_dn: NotRequired[str] + state: Literal["accepted", "declined", "pending"] -class TeamOrganizationType(TypedDict): - """Team Organization - - Team Organization - """ - - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - created_at: datetime - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[TeamOrganizationPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - updated_at: datetime - archived_at: Union[datetime, None] - - -class TeamOrganizationPropPlanType(TypedDict): - """TeamOrganizationPropPlan""" - - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] - - -__all__ = ( - "TeamFullType", - "TeamOrganizationPropPlanType", - "TeamOrganizationType", -) +__all__ = ("RepositoryAdvisoryCreditType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0163.py b/githubkit/versions/v2022_11_28/types/group_0163.py index a9a021c1a..a695dde5a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0163.py +++ b/githubkit/versions/v2022_11_28/types/group_0163.py @@ -10,38 +10,141 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0039 import ReactionRollupType +from .group_0001 import CvssSeveritiesType +from .group_0003 import SimpleUserType +from .group_0087 import TeamType +from .group_0162 import RepositoryAdvisoryCreditType -class TeamDiscussionType(TypedDict): - """Team Discussion +class RepositoryAdvisoryType(TypedDict): + """RepositoryAdvisory - A team discussion is a persistent record of a free-form conversation within a - team. + A repository security advisory. """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - comments_count: int - comments_url: str - created_at: datetime - last_edited_at: Union[datetime, None] - html_url: str - node_id: str - number: int - pinned: bool - private: bool - team_url: str - title: str - updated_at: datetime + ghsa_id: str + cve_id: Union[str, None] url: str - reactions: NotRequired[ReactionRollupType] + html_url: str + summary: str + description: Union[str, None] + severity: Union[None, Literal["critical", "high", "medium", "low"]] + author: None + publisher: None + identifiers: list[RepositoryAdvisoryPropIdentifiersItemsType] + state: Literal["published", "closed", "withdrawn", "draft", "triage"] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + published_at: Union[datetime, None] + closed_at: Union[datetime, None] + withdrawn_at: Union[datetime, None] + submission: Union[RepositoryAdvisoryPropSubmissionType, None] + vulnerabilities: Union[list[RepositoryAdvisoryVulnerabilityType], None] + cvss: Union[RepositoryAdvisoryPropCvssType, None] + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: Union[list[RepositoryAdvisoryPropCwesItemsType], None] + cwe_ids: Union[list[str], None] + credits_: Union[list[RepositoryAdvisoryPropCreditsItemsType], None] + credits_detailed: Union[list[RepositoryAdvisoryCreditType], None] + collaborating_users: Union[list[SimpleUserType], None] + collaborating_teams: Union[list[TeamType], None] + private_fork: None + + +class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] + value: str + + +class RepositoryAdvisoryPropSubmissionType(TypedDict): + """RepositoryAdvisoryPropSubmission""" + + accepted: bool + + +class RepositoryAdvisoryPropCvssType(TypedDict): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] + score: Union[float, None] + + +class RepositoryAdvisoryPropCwesItemsType(TypedDict): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class RepositoryAdvisoryPropCreditsItemsType(TypedDict): + """RepositoryAdvisoryPropCreditsItems""" + + login: NotRequired[str] + type: NotRequired[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] + + +class RepositoryAdvisoryVulnerabilityType(TypedDict): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] + vulnerable_version_range: Union[str, None] + patched_versions: Union[str, None] + vulnerable_functions: Union[list[str], None] + + +class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: Union[str, None] -__all__ = ("TeamDiscussionType",) +__all__ = ( + "RepositoryAdvisoryPropCreditsItemsType", + "RepositoryAdvisoryPropCvssType", + "RepositoryAdvisoryPropCwesItemsType", + "RepositoryAdvisoryPropIdentifiersItemsType", + "RepositoryAdvisoryPropSubmissionType", + "RepositoryAdvisoryType", + "RepositoryAdvisoryVulnerabilityPropPackageType", + "RepositoryAdvisoryVulnerabilityType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0164.py b/githubkit/versions/v2022_11_28/types/group_0164.py index 2c1ffc794..fb14d5d5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0164.py +++ b/githubkit/versions/v2022_11_28/types/group_0164.py @@ -9,33 +9,39 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0039 import ReactionRollupType +class ActionsBillingUsageType(TypedDict): + """ActionsBillingUsage""" -class TeamDiscussionCommentType(TypedDict): - """Team Discussion Comment + total_minutes_used: int + total_paid_minutes_used: int + included_minutes: int + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdownType - A reply to a discussion within a team. - """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - created_at: datetime - last_edited_at: Union[datetime, None] - discussion_url: str - html_url: str - node_id: str - number: int - updated_at: datetime - url: str - reactions: NotRequired[ReactionRollupType] +class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): + """ActionsBillingUsagePropMinutesUsedBreakdown""" + ubuntu: NotRequired[int] + macos: NotRequired[int] + windows: NotRequired[int] + ubuntu_4_core: NotRequired[int] + ubuntu_8_core: NotRequired[int] + ubuntu_16_core: NotRequired[int] + ubuntu_32_core: NotRequired[int] + ubuntu_64_core: NotRequired[int] + windows_4_core: NotRequired[int] + windows_8_core: NotRequired[int] + windows_16_core: NotRequired[int] + windows_32_core: NotRequired[int] + windows_64_core: NotRequired[int] + macos_12_core: NotRequired[int] + total: NotRequired[int] -__all__ = ("TeamDiscussionCommentType",) + +__all__ = ( + "ActionsBillingUsagePropMinutesUsedBreakdownType", + "ActionsBillingUsageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0165.py b/githubkit/versions/v2022_11_28/types/group_0165.py index 27cb99992..cac22c41a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0165.py +++ b/githubkit/versions/v2022_11_28/types/group_0165.py @@ -9,27 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +class PackagesBillingUsageType(TypedDict): + """PackagesBillingUsage""" -class ReactionType(TypedDict): - """Reaction + total_gigabytes_bandwidth_used: int + total_paid_gigabytes_bandwidth_used: int + included_gigabytes_bandwidth: int - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. - """ - id: int - node_id: str - user: Union[None, SimpleUserType] - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - created_at: datetime - - -__all__ = ("ReactionType",) +__all__ = ("PackagesBillingUsageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0166.py b/githubkit/versions/v2022_11_28/types/group_0166.py index 201ca0a17..15a19a09d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0166.py +++ b/githubkit/versions/v2022_11_28/types/group_0166.py @@ -9,19 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class TeamMembershipType(TypedDict): - """Team Membership +class CombinedBillingUsageType(TypedDict): + """CombinedBillingUsage""" - Team Membership - """ + days_left_in_billing_cycle: int + estimated_paid_storage_for_month: int + estimated_storage_for_month: int - url: str - role: Literal["member", "maintainer"] - state: Literal["active", "pending"] - -__all__ = ("TeamMembershipType",) +__all__ = ("CombinedBillingUsageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0167.py b/githubkit/versions/v2022_11_28/types/group_0167.py index 0cfc30533..c2fd7df78 100644 --- a/githubkit/versions/v2022_11_28/types/group_0167.py +++ b/githubkit/versions/v2022_11_28/types/group_0167.py @@ -9,45 +9,20 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class NetworkSettingsType(TypedDict): + """Hosted compute network settings resource -class TeamProjectType(TypedDict): - """Team Project - - A team's access to a project. + A hosted compute network settings resource. """ - owner_url: str - url: str - html_url: str - columns_url: str - id: int - node_id: str + id: str + network_configuration_id: NotRequired[str] name: str - body: Union[str, None] - number: int - state: str - creator: SimpleUserType - created_at: str - updated_at: str - organization_permission: NotRequired[str] - private: NotRequired[bool] - permissions: TeamProjectPropPermissionsType - - -class TeamProjectPropPermissionsType(TypedDict): - """TeamProjectPropPermissions""" - - read: bool - write: bool - admin: bool + subnet_id: str + region: str -__all__ = ( - "TeamProjectPropPermissionsType", - "TeamProjectType", -) +__all__ = ("NetworkSettingsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0168.py b/githubkit/versions/v2022_11_28/types/group_0168.py index f6cd0e555..4780dbbce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0168.py +++ b/githubkit/versions/v2022_11_28/types/group_0168.py @@ -10,121 +10,110 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0018 import LicenseSimpleType +from .group_0086 import TeamSimpleType -class TeamRepositoryType(TypedDict): - """Team Repository +class TeamFullType(TypedDict): + """Full Team - A team's access to a repository. + Groups of organization members that gives permissions on specified repositories. """ id: int node_id: str - name: str - full_name: str - license_: Union[None, LicenseSimpleType] - forks: int - permissions: NotRequired[TeamRepositoryPropPermissionsType] - role_name: NotRequired[str] - owner: Union[None, SimpleUserType] - private: bool + url: str html_url: str + name: str + slug: str description: Union[str, None] - fork: bool + privacy: NotRequired[Literal["closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: str + members_url: str + repositories_url: str + parent: NotRequired[Union[None, TeamSimpleType]] + members_count: int + repos_count: int + created_at: datetime + updated_at: datetime + organization: TeamOrganizationType + ldap_dn: NotRequired[str] + + +class TeamOrganizationType(TypedDict): + """Team Organization + + Team Organization + """ + + login: str + id: int + node_id: str url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str + repos_url: str events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + name: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + blog: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + twitter_username: NotRequired[Union[str, None]] + is_verified: NotRequired[bool] + has_organization_projects: bool + has_repository_projects: bool + public_repos: int + public_gists: int + followers: int + following: int + html_url: str + created_at: datetime + type: str + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + private_gists: NotRequired[Union[int, None]] + disk_usage: NotRequired[Union[int, None]] + collaborators: NotRequired[Union[int, None]] + billing_email: NotRequired[Union[str, None]] + plan: NotRequired[TeamOrganizationPropPlanType] + default_repository_permission: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] web_commit_signoff_required: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - open_issues: int - watchers: int - master_branch: NotRequired[str] + updated_at: datetime + archived_at: Union[datetime, None] -class TeamRepositoryPropPermissionsType(TypedDict): - """TeamRepositoryPropPermissions""" +class TeamOrganizationPropPlanType(TypedDict): + """TeamOrganizationPropPlan""" - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] __all__ = ( - "TeamRepositoryPropPermissionsType", - "TeamRepositoryType", + "TeamFullType", + "TeamOrganizationPropPlanType", + "TeamOrganizationType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0169.py b/githubkit/versions/v2022_11_28/types/group_0169.py index 7c5a69b59..cf92a344a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0169.py +++ b/githubkit/versions/v2022_11_28/types/group_0169.py @@ -13,28 +13,35 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0040 import ReactionRollupType -class ProjectCardType(TypedDict): - """Project Card +class TeamDiscussionType(TypedDict): + """Team Discussion - Project cards represent a scope of work. + A team discussion is a persistent record of a free-form conversation within a + team. """ - url: str - id: int - node_id: str - note: Union[str, None] - creator: Union[None, SimpleUserType] + author: Union[None, SimpleUserType] + body: str + body_html: str + body_version: str + comments_count: int + comments_url: str created_at: datetime + last_edited_at: Union[datetime, None] + html_url: str + node_id: str + number: int + pinned: bool + private: bool + team_url: str + title: str updated_at: datetime - archived: NotRequired[bool] - column_name: NotRequired[str] - project_id: NotRequired[str] - column_url: str - content_url: NotRequired[str] - project_url: str + url: str + reactions: NotRequired[ReactionRollupType] -__all__ = ("ProjectCardType",) +__all__ = ("TeamDiscussionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0170.py b/githubkit/versions/v2022_11_28/types/group_0170.py index d23a9ab67..1eb5f1aba 100644 --- a/githubkit/versions/v2022_11_28/types/group_0170.py +++ b/githubkit/versions/v2022_11_28/types/group_0170.py @@ -10,23 +10,32 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0040 import ReactionRollupType -class ProjectColumnType(TypedDict): - """Project Column - Project columns contain cards of work. +class TeamDiscussionCommentType(TypedDict): + """Team Discussion Comment + + A reply to a discussion within a team. """ - url: str - project_url: str - cards_url: str - id: int - node_id: str - name: str + author: Union[None, SimpleUserType] + body: str + body_html: str + body_version: str created_at: datetime + last_edited_at: Union[datetime, None] + discussion_url: str + html_url: str + node_id: str + number: int updated_at: datetime + url: str + reactions: NotRequired[ReactionRollupType] -__all__ = ("ProjectColumnType",) +__all__ = ("TeamDiscussionCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0171.py b/githubkit/versions/v2022_11_28/types/group_0171.py index 07e5bb609..29fb93bc6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0171.py +++ b/githubkit/versions/v2022_11_28/types/group_0171.py @@ -9,20 +9,27 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType -class ProjectCollaboratorPermissionType(TypedDict): - """Project Collaborator Permission +class ReactionType(TypedDict): + """Reaction - Project Collaborator Permission + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - permission: str + id: int + node_id: str user: Union[None, SimpleUserType] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] + created_at: datetime -__all__ = ("ProjectCollaboratorPermissionType",) +__all__ = ("ReactionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0172.py b/githubkit/versions/v2022_11_28/types/group_0172.py index 7564a62f1..201ca0a17 100644 --- a/githubkit/versions/v2022_11_28/types/group_0172.py +++ b/githubkit/versions/v2022_11_28/types/group_0172.py @@ -9,16 +9,19 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class RateLimitType(TypedDict): - """Rate Limit""" +class TeamMembershipType(TypedDict): + """Team Membership - limit: int - remaining: int - reset: int - used: int + Team Membership + """ + url: str + role: Literal["member", "maintainer"] + state: Literal["active", "pending"] -__all__ = ("RateLimitType",) + +__all__ = ("TeamMembershipType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0173.py b/githubkit/versions/v2022_11_28/types/group_0173.py index 6f644ca7b..eac617342 100644 --- a/githubkit/versions/v2022_11_28/types/group_0173.py +++ b/githubkit/versions/v2022_11_28/types/group_0173.py @@ -9,20 +9,45 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0172 import RateLimitType -from .group_0174 import RateLimitOverviewPropResourcesType +from .group_0003 import SimpleUserType -class RateLimitOverviewType(TypedDict): - """Rate Limit Overview +class TeamProjectType(TypedDict): + """Team Project - Rate Limit Overview + A team's access to a project. """ - resources: RateLimitOverviewPropResourcesType - rate: RateLimitType - - -__all__ = ("RateLimitOverviewType",) + owner_url: str + url: str + html_url: str + columns_url: str + id: int + node_id: str + name: str + body: Union[str, None] + number: int + state: str + creator: SimpleUserType + created_at: str + updated_at: str + organization_permission: NotRequired[str] + private: NotRequired[bool] + permissions: TeamProjectPropPermissionsType + + +class TeamProjectPropPermissionsType(TypedDict): + """TeamProjectPropPermissions""" + + read: bool + write: bool + admin: bool + + +__all__ = ( + "TeamProjectPropPermissionsType", + "TeamProjectType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0174.py b/githubkit/versions/v2022_11_28/types/group_0174.py index 9b2a92070..d648ae260 100644 --- a/githubkit/versions/v2022_11_28/types/group_0174.py +++ b/githubkit/versions/v2022_11_28/types/group_0174.py @@ -9,25 +9,122 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0172 import RateLimitType +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType -class RateLimitOverviewPropResourcesType(TypedDict): - """RateLimitOverviewPropResources""" +class TeamRepositoryType(TypedDict): + """Team Repository - core: RateLimitType - graphql: NotRequired[RateLimitType] - search: RateLimitType - code_search: NotRequired[RateLimitType] - source_import: NotRequired[RateLimitType] - integration_manifest: NotRequired[RateLimitType] - code_scanning_upload: NotRequired[RateLimitType] - actions_runner_registration: NotRequired[RateLimitType] - scim: NotRequired[RateLimitType] - dependency_snapshots: NotRequired[RateLimitType] - code_scanning_autofix: NotRequired[RateLimitType] + A team's access to a repository. + """ + id: int + node_id: str + name: str + full_name: str + license_: Union[None, LicenseSimpleType] + forks: int + permissions: NotRequired[TeamRepositoryPropPermissionsType] + role_name: NotRequired[str] + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + open_issues: int + watchers: int + master_branch: NotRequired[str] -__all__ = ("RateLimitOverviewPropResourcesType",) + +class TeamRepositoryPropPermissionsType(TypedDict): + """TeamRepositoryPropPermissions""" + + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + + +__all__ = ( + "TeamRepositoryPropPermissionsType", + "TeamRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0175.py b/githubkit/versions/v2022_11_28/types/group_0175.py index 895478cbc..fdc7baddd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0175.py +++ b/githubkit/versions/v2022_11_28/types/group_0175.py @@ -13,37 +13,28 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class ArtifactType(TypedDict): - """Artifact - An artifact +class ProjectCardType(TypedDict): + """Project Card + + Project cards represent a scope of work. """ + url: str id: int node_id: str - name: str - size_in_bytes: int - url: str - archive_download_url: str - expired: bool - created_at: Union[datetime, None] - expires_at: Union[datetime, None] - updated_at: Union[datetime, None] - workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] - - -class ArtifactPropWorkflowRunType(TypedDict): - """ArtifactPropWorkflowRun""" - - id: NotRequired[int] - repository_id: NotRequired[int] - head_repository_id: NotRequired[int] - head_branch: NotRequired[str] - head_sha: NotRequired[str] - - -__all__ = ( - "ArtifactPropWorkflowRunType", - "ArtifactType", -) + note: Union[str, None] + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + archived: NotRequired[bool] + column_name: NotRequired[str] + project_id: NotRequired[str] + column_url: str + content_url: NotRequired[str] + project_url: str + + +__all__ = ("ProjectCardType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0176.py b/githubkit/versions/v2022_11_28/types/group_0176.py index 88facf6b2..d23a9ab67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0176.py +++ b/githubkit/versions/v2022_11_28/types/group_0176.py @@ -10,32 +10,23 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ActionsCacheListType(TypedDict): - """Repository actions caches +class ProjectColumnType(TypedDict): + """Project Column - Repository actions caches + Project columns contain cards of work. """ - total_count: int - actions_caches: list[ActionsCacheListPropActionsCachesItemsType] + url: str + project_url: str + cards_url: str + id: int + node_id: str + name: str + created_at: datetime + updated_at: datetime -class ActionsCacheListPropActionsCachesItemsType(TypedDict): - """ActionsCacheListPropActionsCachesItems""" - - id: NotRequired[int] - ref: NotRequired[str] - key: NotRequired[str] - version: NotRequired[str] - last_accessed_at: NotRequired[datetime] - created_at: NotRequired[datetime] - size_in_bytes: NotRequired[int] - - -__all__ = ( - "ActionsCacheListPropActionsCachesItemsType", - "ActionsCacheListType", -) +__all__ = ("ProjectColumnType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0177.py b/githubkit/versions/v2022_11_28/types/group_0177.py index 1d359461a..45af07517 100644 --- a/githubkit/versions/v2022_11_28/types/group_0177.py +++ b/githubkit/versions/v2022_11_28/types/group_0177.py @@ -9,67 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class JobType(TypedDict): - """Job - Information of a job execution in a workflow run - """ - - id: int - run_id: int - run_url: str - run_attempt: NotRequired[int] - node_id: str - head_sha: str - url: str - html_url: Union[str, None] - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - created_at: datetime - started_at: datetime - completed_at: Union[datetime, None] - name: str - steps: NotRequired[list[JobPropStepsItemsType]] - check_run_url: str - labels: list[str] - runner_id: Union[int, None] - runner_name: Union[str, None] - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - workflow_name: Union[str, None] - head_branch: Union[str, None] +class ProjectCollaboratorPermissionType(TypedDict): + """Project Collaborator Permission + Project Collaborator Permission + """ -class JobPropStepsItemsType(TypedDict): - """JobPropStepsItems""" - - status: Literal["queued", "in_progress", "completed"] - conclusion: Union[str, None] - name: str - number: int - started_at: NotRequired[Union[datetime, None]] - completed_at: NotRequired[Union[datetime, None]] + permission: str + user: Union[None, SimpleUserType] -__all__ = ( - "JobPropStepsItemsType", - "JobType", -) +__all__ = ("ProjectCollaboratorPermissionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0178.py b/githubkit/versions/v2022_11_28/types/group_0178.py index faacb2b0b..7564a62f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0178.py +++ b/githubkit/versions/v2022_11_28/types/group_0178.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OidcCustomSubRepoType(TypedDict): - """Actions OIDC subject customization for a repository +class RateLimitType(TypedDict): + """Rate Limit""" - Actions OIDC subject customization for a repository - """ + limit: int + remaining: int + reset: int + used: int - use_default: bool - include_claim_keys: NotRequired[list[str]] - -__all__ = ("OidcCustomSubRepoType",) +__all__ = ("RateLimitType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0179.py b/githubkit/versions/v2022_11_28/types/group_0179.py index 7d6ae5032..2879b51c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0179.py +++ b/githubkit/versions/v2022_11_28/types/group_0179.py @@ -9,19 +9,20 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict +from .group_0178 import RateLimitType +from .group_0180 import RateLimitOverviewPropResourcesType -class ActionsSecretType(TypedDict): - """Actions Secret - Set secrets for GitHub Actions. +class RateLimitOverviewType(TypedDict): + """Rate Limit Overview + + Rate Limit Overview """ - name: str - created_at: datetime - updated_at: datetime + resources: RateLimitOverviewPropResourcesType + rate: RateLimitType -__all__ = ("ActionsSecretType",) +__all__ = ("RateLimitOverviewType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0180.py b/githubkit/versions/v2022_11_28/types/group_0180.py index eb13c7e2f..54fe19527 100644 --- a/githubkit/versions/v2022_11_28/types/group_0180.py +++ b/githubkit/versions/v2022_11_28/types/group_0180.py @@ -9,17 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0178 import RateLimitType -class ActionsVariableType(TypedDict): - """Actions Variable""" - name: str - value: str - created_at: datetime - updated_at: datetime +class RateLimitOverviewPropResourcesType(TypedDict): + """RateLimitOverviewPropResources""" + core: RateLimitType + graphql: NotRequired[RateLimitType] + search: RateLimitType + code_search: NotRequired[RateLimitType] + source_import: NotRequired[RateLimitType] + integration_manifest: NotRequired[RateLimitType] + code_scanning_upload: NotRequired[RateLimitType] + actions_runner_registration: NotRequired[RateLimitType] + scim: NotRequired[RateLimitType] + dependency_snapshots: NotRequired[RateLimitType] + code_scanning_autofix: NotRequired[RateLimitType] -__all__ = ("ActionsVariableType",) + +__all__ = ("RateLimitOverviewPropResourcesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0181.py b/githubkit/versions/v2022_11_28/types/group_0181.py index eb7ddcbc1..895478cbc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0181.py +++ b/githubkit/versions/v2022_11_28/types/group_0181.py @@ -9,16 +9,41 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -class ActionsRepositoryPermissionsType(TypedDict): - """ActionsRepositoryPermissions""" +class ArtifactType(TypedDict): + """Artifact - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] + An artifact + """ + id: int + node_id: str + name: str + size_in_bytes: int + url: str + archive_download_url: str + expired: bool + created_at: Union[datetime, None] + expires_at: Union[datetime, None] + updated_at: Union[datetime, None] + workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] -__all__ = ("ActionsRepositoryPermissionsType",) + +class ArtifactPropWorkflowRunType(TypedDict): + """ArtifactPropWorkflowRun""" + + id: NotRequired[int] + repository_id: NotRequired[int] + head_repository_id: NotRequired[int] + head_branch: NotRequired[str] + head_sha: NotRequired[str] + + +__all__ = ( + "ArtifactPropWorkflowRunType", + "ArtifactType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0182.py b/githubkit/versions/v2022_11_28/types/group_0182.py index 7678cad21..88facf6b2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0182.py +++ b/githubkit/versions/v2022_11_28/types/group_0182.py @@ -9,14 +9,33 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -class ActionsWorkflowAccessToRepositoryType(TypedDict): - """ActionsWorkflowAccessToRepository""" +class ActionsCacheListType(TypedDict): + """Repository actions caches - access_level: Literal["none", "user", "organization"] + Repository actions caches + """ + total_count: int + actions_caches: list[ActionsCacheListPropActionsCachesItemsType] -__all__ = ("ActionsWorkflowAccessToRepositoryType",) + +class ActionsCacheListPropActionsCachesItemsType(TypedDict): + """ActionsCacheListPropActionsCachesItems""" + + id: NotRequired[int] + ref: NotRequired[str] + key: NotRequired[str] + version: NotRequired[str] + last_accessed_at: NotRequired[datetime] + created_at: NotRequired[datetime] + size_in_bytes: NotRequired[int] + + +__all__ = ( + "ActionsCacheListPropActionsCachesItemsType", + "ActionsCacheListType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0183.py b/githubkit/versions/v2022_11_28/types/group_0183.py index 7879ad294..1d359461a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0183.py +++ b/githubkit/versions/v2022_11_28/types/group_0183.py @@ -9,55 +9,67 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class PullRequestMinimalType(TypedDict): - """Pull Request Minimal""" +class JobType(TypedDict): + """Job - id: int - number: int - url: str - head: PullRequestMinimalPropHeadType - base: PullRequestMinimalPropBaseType - - -class PullRequestMinimalPropHeadType(TypedDict): - """PullRequestMinimalPropHead""" - - ref: str - sha: str - repo: PullRequestMinimalPropHeadPropRepoType - - -class PullRequestMinimalPropHeadPropRepoType(TypedDict): - """PullRequestMinimalPropHeadPropRepo""" + Information of a job execution in a workflow run + """ id: int + run_id: int + run_url: str + run_attempt: NotRequired[int] + node_id: str + head_sha: str url: str + html_url: Union[str, None] + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] + created_at: datetime + started_at: datetime + completed_at: Union[datetime, None] name: str - - -class PullRequestMinimalPropBaseType(TypedDict): - """PullRequestMinimalPropBase""" - - ref: str - sha: str - repo: PullRequestMinimalPropBasePropRepoType - - -class PullRequestMinimalPropBasePropRepoType(TypedDict): - """PullRequestMinimalPropBasePropRepo""" - - id: int - url: str + steps: NotRequired[list[JobPropStepsItemsType]] + check_run_url: str + labels: list[str] + runner_id: Union[int, None] + runner_name: Union[str, None] + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + workflow_name: Union[str, None] + head_branch: Union[str, None] + + +class JobPropStepsItemsType(TypedDict): + """JobPropStepsItems""" + + status: Literal["queued", "in_progress", "completed"] + conclusion: Union[str, None] name: str + number: int + started_at: NotRequired[Union[datetime, None]] + completed_at: NotRequired[Union[datetime, None]] __all__ = ( - "PullRequestMinimalPropBasePropRepoType", - "PullRequestMinimalPropBaseType", - "PullRequestMinimalPropHeadPropRepoType", - "PullRequestMinimalPropHeadType", - "PullRequestMinimalType", + "JobPropStepsItemsType", + "JobType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0184.py b/githubkit/versions/v2022_11_28/types/group_0184.py index d8e989649..faacb2b0b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0184.py +++ b/githubkit/versions/v2022_11_28/types/group_0184.py @@ -9,47 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class SimpleCommitType(TypedDict): - """Simple Commit +class OidcCustomSubRepoType(TypedDict): + """Actions OIDC subject customization for a repository - A commit. + Actions OIDC subject customization for a repository """ - id: str - tree_id: str - message: str - timestamp: datetime - author: Union[SimpleCommitPropAuthorType, None] - committer: Union[SimpleCommitPropCommitterType, None] + use_default: bool + include_claim_keys: NotRequired[list[str]] -class SimpleCommitPropAuthorType(TypedDict): - """SimpleCommitPropAuthor - - Information about the Git author - """ - - name: str - email: str - - -class SimpleCommitPropCommitterType(TypedDict): - """SimpleCommitPropCommitter - - Information about the Git committer - """ - - name: str - email: str - - -__all__ = ( - "SimpleCommitPropAuthorType", - "SimpleCommitPropCommitterType", - "SimpleCommitType", -) +__all__ = ("OidcCustomSubRepoType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0185.py b/githubkit/versions/v2022_11_28/types/group_0185.py index 11f0c1f18..7d6ae5032 100644 --- a/githubkit/versions/v2022_11_28/types/group_0185.py +++ b/githubkit/versions/v2022_11_28/types/group_0185.py @@ -10,71 +10,18 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0056 import MinimalRepositoryType -from .group_0183 import PullRequestMinimalType -from .group_0184 import SimpleCommitType +class ActionsSecretType(TypedDict): + """Actions Secret -class WorkflowRunType(TypedDict): - """Workflow Run - - An invocation of a workflow + Set secrets for GitHub Actions. """ - id: int - name: NotRequired[Union[str, None]] - node_id: str - check_suite_id: NotRequired[int] - check_suite_node_id: NotRequired[str] - head_branch: Union[str, None] - head_sha: str - path: str - run_number: int - run_attempt: NotRequired[int] - referenced_workflows: NotRequired[Union[list[ReferencedWorkflowType], None]] - event: str - status: Union[str, None] - conclusion: Union[str, None] - workflow_id: int - url: str - html_url: str - pull_requests: Union[list[PullRequestMinimalType], None] + name: str created_at: datetime updated_at: datetime - actor: NotRequired[SimpleUserType] - triggering_actor: NotRequired[SimpleUserType] - run_started_at: NotRequired[datetime] - jobs_url: str - logs_url: str - check_suite_url: str - artifacts_url: str - cancel_url: str - rerun_url: str - previous_attempt_url: NotRequired[Union[str, None]] - workflow_url: str - head_commit: Union[None, SimpleCommitType] - repository: MinimalRepositoryType - head_repository: MinimalRepositoryType - head_repository_id: NotRequired[int] - display_title: str - - -class ReferencedWorkflowType(TypedDict): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str - sha: str - ref: NotRequired[str] -__all__ = ( - "ReferencedWorkflowType", - "WorkflowRunType", -) +__all__ = ("ActionsSecretType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0186.py b/githubkit/versions/v2022_11_28/types/group_0186.py index 3f73ede90..eb13c7e2f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0186.py +++ b/githubkit/versions/v2022_11_28/types/group_0186.py @@ -10,37 +10,16 @@ from __future__ import annotations from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +class ActionsVariableType(TypedDict): + """Actions Variable""" -class EnvironmentApprovalsType(TypedDict): - """Environment Approval + name: str + value: str + created_at: datetime + updated_at: datetime - An entry in the reviews log for environment deployments - """ - environments: list[EnvironmentApprovalsPropEnvironmentsItemsType] - state: Literal["approved", "rejected", "pending"] - user: SimpleUserType - comment: str - - -class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): - """EnvironmentApprovalsPropEnvironmentsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - - -__all__ = ( - "EnvironmentApprovalsPropEnvironmentsItemsType", - "EnvironmentApprovalsType", -) +__all__ = ("ActionsVariableType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0187.py b/githubkit/versions/v2022_11_28/types/group_0187.py index 909bb75c8..eb7ddcbc1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0187.py +++ b/githubkit/versions/v2022_11_28/types/group_0187.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReviewCustomGatesCommentRequiredType(TypedDict): - """ReviewCustomGatesCommentRequired""" +class ActionsRepositoryPermissionsType(TypedDict): + """ActionsRepositoryPermissions""" - environment_name: str - comment: str + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] -__all__ = ("ReviewCustomGatesCommentRequiredType",) +__all__ = ("ActionsRepositoryPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0188.py b/githubkit/versions/v2022_11_28/types/group_0188.py index 75b0bb6f6..7678cad21 100644 --- a/githubkit/versions/v2022_11_28/types/group_0188.py +++ b/githubkit/versions/v2022_11_28/types/group_0188.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReviewCustomGatesStateRequiredType(TypedDict): - """ReviewCustomGatesStateRequired""" +class ActionsWorkflowAccessToRepositoryType(TypedDict): + """ActionsWorkflowAccessToRepository""" - environment_name: str - state: Literal["approved", "rejected"] - comment: NotRequired[str] + access_level: Literal["none", "user", "organization"] -__all__ = ("ReviewCustomGatesStateRequiredType",) +__all__ = ("ActionsWorkflowAccessToRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0189.py b/githubkit/versions/v2022_11_28/types/group_0189.py index c798caa71..7879ad294 100644 --- a/githubkit/versions/v2022_11_28/types/group_0189.py +++ b/githubkit/versions/v2022_11_28/types/group_0189.py @@ -9,46 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0082 import TeamType +class PullRequestMinimalType(TypedDict): + """Pull Request Minimal""" -class PendingDeploymentPropReviewersItemsType(TypedDict): - """PendingDeploymentPropReviewersItems""" + id: int + number: int + url: str + head: PullRequestMinimalPropHeadType + base: PullRequestMinimalPropBaseType - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] +class PullRequestMinimalPropHeadType(TypedDict): + """PullRequestMinimalPropHead""" -class PendingDeploymentType(TypedDict): - """Pending Deployment + ref: str + sha: str + repo: PullRequestMinimalPropHeadPropRepoType - Details of a deployment that is waiting for protection rules to pass - """ - environment: PendingDeploymentPropEnvironmentType - wait_timer: int - wait_timer_started_at: Union[datetime, None] - current_user_can_approve: bool - reviewers: list[PendingDeploymentPropReviewersItemsType] +class PullRequestMinimalPropHeadPropRepoType(TypedDict): + """PullRequestMinimalPropHeadPropRepo""" + id: int + url: str + name: str -class PendingDeploymentPropEnvironmentType(TypedDict): - """PendingDeploymentPropEnvironment""" - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] +class PullRequestMinimalPropBaseType(TypedDict): + """PullRequestMinimalPropBase""" + + ref: str + sha: str + repo: PullRequestMinimalPropBasePropRepoType + + +class PullRequestMinimalPropBasePropRepoType(TypedDict): + """PullRequestMinimalPropBasePropRepo""" + + id: int + url: str + name: str __all__ = ( - "PendingDeploymentPropEnvironmentType", - "PendingDeploymentPropReviewersItemsType", - "PendingDeploymentType", + "PullRequestMinimalPropBasePropRepoType", + "PullRequestMinimalPropBaseType", + "PullRequestMinimalPropHeadPropRepoType", + "PullRequestMinimalPropHeadType", + "PullRequestMinimalType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0190.py b/githubkit/versions/v2022_11_28/types/group_0190.py index 73179d0ed..d8e989649 100644 --- a/githubkit/versions/v2022_11_28/types/group_0190.py +++ b/githubkit/versions/v2022_11_28/types/group_0190.py @@ -10,45 +10,46 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +class SimpleCommitType(TypedDict): + """Simple Commit + + A commit. + """ + + id: str + tree_id: str + message: str + timestamp: datetime + author: Union[SimpleCommitPropAuthorType, None] + committer: Union[SimpleCommitPropCommitterType, None] -class DeploymentType(TypedDict): - """Deployment - A request for a specific ref(branch,sha,tag) to be deployed +class SimpleCommitPropAuthorType(TypedDict): + """SimpleCommitPropAuthor + + Information about the Git author """ - url: str - id: int - node_id: str - sha: str - ref: str - task: str - payload: Union[DeploymentPropPayloadOneof0Type, str] - original_environment: NotRequired[str] - environment: str - description: Union[str, None] - creator: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - statuses_url: str - repository_url: str - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -DeploymentPropPayloadOneof0Type: TypeAlias = dict[str, Any] -"""DeploymentPropPayloadOneof0 -""" + name: str + email: str + + +class SimpleCommitPropCommitterType(TypedDict): + """SimpleCommitPropCommitter + + Information about the Git committer + """ + + name: str + email: str __all__ = ( - "DeploymentPropPayloadOneof0Type", - "DeploymentType", + "SimpleCommitPropAuthorType", + "SimpleCommitPropCommitterType", + "SimpleCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0191.py b/githubkit/versions/v2022_11_28/types/group_0191.py index f9d6d4cf5..48f8b77bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0191.py +++ b/githubkit/versions/v2022_11_28/types/group_0191.py @@ -9,85 +9,72 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0057 import MinimalRepositoryType +from .group_0189 import PullRequestMinimalType +from .group_0190 import SimpleCommitType -class WorkflowRunUsageType(TypedDict): - """Workflow Run Usage - Workflow Run Usage - """ - - billable: WorkflowRunUsagePropBillableType - run_duration_ms: NotRequired[int] - - -class WorkflowRunUsagePropBillableType(TypedDict): - """WorkflowRunUsagePropBillable""" - - ubuntu: NotRequired[WorkflowRunUsagePropBillablePropUbuntuType] - macos: NotRequired[WorkflowRunUsagePropBillablePropMacosType] - windows: NotRequired[WorkflowRunUsagePropBillablePropWindowsType] - - -class WorkflowRunUsagePropBillablePropUbuntuType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntu""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" - - job_id: int - duration_ms: int - - -class WorkflowRunUsagePropBillablePropMacosType(TypedDict): - """WorkflowRunUsagePropBillablePropMacos""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" - - job_id: int - duration_ms: int - - -class WorkflowRunUsagePropBillablePropWindowsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindows""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType] - ] +class WorkflowRunType(TypedDict): + """Workflow Run + An invocation of a workflow + """ -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + id: int + name: NotRequired[Union[str, None]] + node_id: str + check_suite_id: NotRequired[int] + check_suite_node_id: NotRequired[str] + head_branch: Union[str, None] + head_sha: str + path: str + run_number: int + run_attempt: NotRequired[int] + referenced_workflows: NotRequired[Union[list[ReferencedWorkflowType], None]] + event: str + status: Union[str, None] + conclusion: Union[str, None] + workflow_id: int + url: str + html_url: str + pull_requests: Union[list[PullRequestMinimalType], None] + created_at: datetime + updated_at: datetime + actor: NotRequired[SimpleUserType] + triggering_actor: NotRequired[SimpleUserType] + run_started_at: NotRequired[datetime] + jobs_url: str + logs_url: str + check_suite_url: str + artifacts_url: str + cancel_url: str + rerun_url: str + previous_attempt_url: NotRequired[Union[str, None]] + workflow_url: str + head_commit: Union[None, SimpleCommitType] + repository: MinimalRepositoryType + head_repository: MinimalRepositoryType + head_repository_id: NotRequired[int] + display_title: str + + +class ReferencedWorkflowType(TypedDict): + """Referenced workflow + + A workflow referenced/reused by the initial caller workflow + """ - job_id: int - duration_ms: int + path: str + sha: str + ref: NotRequired[str] __all__ = ( - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropMacosType", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropUbuntuType", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropWindowsType", - "WorkflowRunUsagePropBillableType", - "WorkflowRunUsageType", + "ReferencedWorkflowType", + "WorkflowRunType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0192.py b/githubkit/versions/v2022_11_28/types/group_0192.py index 6cefd47bb..8003cc5ba 100644 --- a/githubkit/versions/v2022_11_28/types/group_0192.py +++ b/githubkit/versions/v2022_11_28/types/group_0192.py @@ -9,48 +9,38 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class WorkflowUsageType(TypedDict): - """Workflow Usage - Workflow Usage - """ - - billable: WorkflowUsagePropBillableType - - -class WorkflowUsagePropBillableType(TypedDict): - """WorkflowUsagePropBillable""" - - ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] - macos: NotRequired[WorkflowUsagePropBillablePropMacosType] - windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] +class EnvironmentApprovalsType(TypedDict): + """Environment Approval + An entry in the reviews log for environment deployments + """ -class WorkflowUsagePropBillablePropUbuntuType(TypedDict): - """WorkflowUsagePropBillablePropUbuntu""" - - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropMacosType(TypedDict): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: NotRequired[int] + environments: list[EnvironmentApprovalsPropEnvironmentsItemsType] + state: Literal["approved", "rejected", "pending"] + user: SimpleUserType + comment: str -class WorkflowUsagePropBillablePropWindowsType(TypedDict): - """WorkflowUsagePropBillablePropWindows""" +class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): + """EnvironmentApprovalsPropEnvironmentsItems""" - total_ms: NotRequired[int] + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] __all__ = ( - "WorkflowUsagePropBillablePropMacosType", - "WorkflowUsagePropBillablePropUbuntuType", - "WorkflowUsagePropBillablePropWindowsType", - "WorkflowUsagePropBillableType", - "WorkflowUsageType", + "EnvironmentApprovalsPropEnvironmentsItemsType", + "EnvironmentApprovalsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0193.py b/githubkit/versions/v2022_11_28/types/group_0193.py index 751772490..909bb75c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0193.py +++ b/githubkit/versions/v2022_11_28/types/group_0193.py @@ -9,34 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +class ReviewCustomGatesCommentRequiredType(TypedDict): + """ReviewCustomGatesCommentRequired""" -class ActivityType(TypedDict): - """Activity + environment_name: str + comment: str - Activity - """ - id: int - node_id: str - before: str - after: str - ref: str - timestamp: datetime - activity_type: Literal[ - "push", - "force_push", - "branch_deletion", - "branch_creation", - "pr_merge", - "merge_queue_merge", - ] - actor: Union[None, SimpleUserType] - - -__all__ = ("ActivityType",) +__all__ = ("ReviewCustomGatesCommentRequiredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0194.py b/githubkit/versions/v2022_11_28/types/group_0194.py index 8b6890539..75b0bb6f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0194.py +++ b/githubkit/versions/v2022_11_28/types/group_0194.py @@ -9,19 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class AutolinkType(TypedDict): - """Autolink reference +class ReviewCustomGatesStateRequiredType(TypedDict): + """ReviewCustomGatesStateRequired""" - An autolink reference. - """ + environment_name: str + state: Literal["approved", "rejected"] + comment: NotRequired[str] - id: int - key_prefix: str - url_template: str - is_alphanumeric: bool - -__all__ = ("AutolinkType",) +__all__ = ("ReviewCustomGatesStateRequiredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0195.py b/githubkit/versions/v2022_11_28/types/group_0195.py index deb29de44..e0afeb9dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0195.py +++ b/githubkit/versions/v2022_11_28/types/group_0195.py @@ -9,17 +9,46 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0087 import TeamType -class CheckAutomatedSecurityFixesType(TypedDict): - """Check Dependabot security updates - Check Dependabot security updates +class PendingDeploymentPropReviewersItemsType(TypedDict): + """PendingDeploymentPropReviewersItems""" + + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] + + +class PendingDeploymentType(TypedDict): + """Pending Deployment + + Details of a deployment that is waiting for protection rules to pass """ - enabled: bool - paused: bool + environment: PendingDeploymentPropEnvironmentType + wait_timer: int + wait_timer_started_at: Union[datetime, None] + current_user_can_approve: bool + reviewers: list[PendingDeploymentPropReviewersItemsType] + + +class PendingDeploymentPropEnvironmentType(TypedDict): + """PendingDeploymentPropEnvironment""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] -__all__ = ("CheckAutomatedSecurityFixesType",) +__all__ = ( + "PendingDeploymentPropEnvironmentType", + "PendingDeploymentPropReviewersItemsType", + "PendingDeploymentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0196.py b/githubkit/versions/v2022_11_28/types/group_0196.py index 2be07187f..92437789e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0196.py +++ b/githubkit/versions/v2022_11_28/types/group_0196.py @@ -9,31 +9,46 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0197 import ( - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, -) +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class ProtectedBranchPullRequestReviewType(TypedDict): - """Protected Branch Pull Request Review +class DeploymentType(TypedDict): + """Deployment - Protected Branch Pull Request Review + A request for a specific ref(branch,sha,tag) to be deployed """ - url: NotRequired[str] - dismissal_restrictions: NotRequired[ - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType - ] - dismiss_stale_reviews: bool - require_code_owner_reviews: bool - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] + url: str + id: int + node_id: str + sha: str + ref: str + task: str + payload: Union[DeploymentPropPayloadOneof0Type, str] + original_environment: NotRequired[str] + environment: str + description: Union[str, None] + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + statuses_url: str + repository_url: str + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +DeploymentPropPayloadOneof0Type: TypeAlias = dict[str, Any] +"""DeploymentPropPayloadOneof0 +""" -__all__ = ("ProtectedBranchPullRequestReviewType",) +__all__ = ( + "DeploymentPropPayloadOneof0Type", + "DeploymentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0197.py b/githubkit/versions/v2022_11_28/types/group_0197.py index 4222863c9..f9d6d4cf5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0197.py +++ b/githubkit/versions/v2022_11_28/types/group_0197.py @@ -9,37 +9,85 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0082 import TeamType +class WorkflowRunUsageType(TypedDict): + """Workflow Run Usage -class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + Workflow Run Usage + """ - users: NotRequired[list[SimpleUserType]] - teams: NotRequired[list[TeamType]] - apps: NotRequired[list[Union[IntegrationType, None]]] - url: NotRequired[str] - users_url: NotRequired[str] - teams_url: NotRequired[str] + billable: WorkflowRunUsagePropBillableType + run_duration_ms: NotRequired[int] -class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): - """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances +class WorkflowRunUsagePropBillableType(TypedDict): + """WorkflowRunUsagePropBillable""" - Allow specific users, teams, or apps to bypass pull request requirements. - """ + ubuntu: NotRequired[WorkflowRunUsagePropBillablePropUbuntuType] + macos: NotRequired[WorkflowRunUsagePropBillablePropMacosType] + windows: NotRequired[WorkflowRunUsagePropBillablePropWindowsType] + + +class WorkflowRunUsagePropBillablePropUbuntuType(TypedDict): + """WorkflowRunUsagePropBillablePropUbuntu""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" + + job_id: int + duration_ms: int + + +class WorkflowRunUsagePropBillablePropMacosType(TypedDict): + """WorkflowRunUsagePropBillablePropMacos""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" + + job_id: int + duration_ms: int + + +class WorkflowRunUsagePropBillablePropWindowsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindows""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" - users: NotRequired[list[SimpleUserType]] - teams: NotRequired[list[TeamType]] - apps: NotRequired[list[Union[IntegrationType, None]]] + job_id: int + duration_ms: int __all__ = ( - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", - "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropMacosType", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropUbuntuType", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropWindowsType", + "WorkflowRunUsagePropBillableType", + "WorkflowRunUsageType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0198.py b/githubkit/versions/v2022_11_28/types/group_0198.py index f6fd03a7a..6cefd47bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0198.py +++ b/githubkit/versions/v2022_11_28/types/group_0198.py @@ -9,128 +9,48 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class BranchRestrictionPolicyType(TypedDict): - """Branch Restriction Policy +class WorkflowUsageType(TypedDict): + """Workflow Usage - Branch Restriction Policy + Workflow Usage """ - url: str - users_url: str - teams_url: str - apps_url: str - users: list[BranchRestrictionPolicyPropUsersItemsType] - teams: list[BranchRestrictionPolicyPropTeamsItemsType] - apps: list[BranchRestrictionPolicyPropAppsItemsType] - - -class BranchRestrictionPolicyPropUsersItemsType(TypedDict): - """BranchRestrictionPolicyPropUsersItems""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - user_view_type: NotRequired[str] - - -class BranchRestrictionPolicyPropTeamsItemsType(TypedDict): - """BranchRestrictionPolicyPropTeamsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - name: NotRequired[str] - slug: NotRequired[str] - description: NotRequired[Union[str, None]] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: NotRequired[str] - members_url: NotRequired[str] - repositories_url: NotRequired[str] - parent: NotRequired[Union[str, None]] - - -class BranchRestrictionPolicyPropAppsItemsType(TypedDict): - """BranchRestrictionPolicyPropAppsItems""" - - id: NotRequired[int] - slug: NotRequired[str] - node_id: NotRequired[str] - owner: NotRequired[BranchRestrictionPolicyPropAppsItemsPropOwnerType] - name: NotRequired[str] - client_id: NotRequired[str] - description: NotRequired[str] - external_url: NotRequired[str] - html_url: NotRequired[str] - created_at: NotRequired[str] - updated_at: NotRequired[str] - permissions: NotRequired[BranchRestrictionPolicyPropAppsItemsPropPermissionsType] - events: NotRequired[list[str]] - - -class BranchRestrictionPolicyPropAppsItemsPropOwnerType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - hooks_url: NotRequired[str] - issues_url: NotRequired[str] - members_url: NotRequired[str] - public_members_url: NotRequired[str] - avatar_url: NotRequired[str] - description: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - user_view_type: NotRequired[str] - - -class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: NotRequired[str] - contents: NotRequired[str] - issues: NotRequired[str] - single_file: NotRequired[str] + billable: WorkflowUsagePropBillableType + + +class WorkflowUsagePropBillableType(TypedDict): + """WorkflowUsagePropBillable""" + + ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] + macos: NotRequired[WorkflowUsagePropBillablePropMacosType] + windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] + + +class WorkflowUsagePropBillablePropUbuntuType(TypedDict): + """WorkflowUsagePropBillablePropUbuntu""" + + total_ms: NotRequired[int] + + +class WorkflowUsagePropBillablePropMacosType(TypedDict): + """WorkflowUsagePropBillablePropMacos""" + + total_ms: NotRequired[int] + + +class WorkflowUsagePropBillablePropWindowsType(TypedDict): + """WorkflowUsagePropBillablePropWindows""" + + total_ms: NotRequired[int] __all__ = ( - "BranchRestrictionPolicyPropAppsItemsPropOwnerType", - "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", - "BranchRestrictionPolicyPropAppsItemsType", - "BranchRestrictionPolicyPropTeamsItemsType", - "BranchRestrictionPolicyPropUsersItemsType", - "BranchRestrictionPolicyType", + "WorkflowUsagePropBillablePropMacosType", + "WorkflowUsagePropBillablePropUbuntuType", + "WorkflowUsagePropBillablePropWindowsType", + "WorkflowUsagePropBillableType", + "WorkflowUsageType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0199.py b/githubkit/versions/v2022_11_28/types/group_0199.py index a9a953651..1deac10b0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0199.py +++ b/githubkit/versions/v2022_11_28/types/group_0199.py @@ -9,138 +9,34 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0196 import ProtectedBranchPullRequestReviewType -from .group_0198 import BranchRestrictionPolicyType +from .group_0003 import SimpleUserType -class BranchProtectionType(TypedDict): - """Branch Protection +class ActivityType(TypedDict): + """Activity - Branch Protection + Activity """ - url: NotRequired[str] - enabled: NotRequired[bool] - required_status_checks: NotRequired[ProtectedBranchRequiredStatusCheckType] - enforce_admins: NotRequired[ProtectedBranchAdminEnforcedType] - required_pull_request_reviews: NotRequired[ProtectedBranchPullRequestReviewType] - restrictions: NotRequired[BranchRestrictionPolicyType] - required_linear_history: NotRequired[BranchProtectionPropRequiredLinearHistoryType] - allow_force_pushes: NotRequired[BranchProtectionPropAllowForcePushesType] - allow_deletions: NotRequired[BranchProtectionPropAllowDeletionsType] - block_creations: NotRequired[BranchProtectionPropBlockCreationsType] - required_conversation_resolution: NotRequired[ - BranchProtectionPropRequiredConversationResolutionType + id: int + node_id: str + before: str + after: str + ref: str + timestamp: datetime + activity_type: Literal[ + "push", + "force_push", + "branch_deletion", + "branch_creation", + "pr_merge", + "merge_queue_merge", ] - name: NotRequired[str] - protection_url: NotRequired[str] - required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] - lock_branch: NotRequired[BranchProtectionPropLockBranchType] - allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] + actor: Union[None, SimpleUserType] -class ProtectedBranchAdminEnforcedType(TypedDict): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced - """ - - url: str - enabled: bool - - -class BranchProtectionPropRequiredLinearHistoryType(TypedDict): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowForcePushesType(TypedDict): - """BranchProtectionPropAllowForcePushes""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowDeletionsType(TypedDict): - """BranchProtectionPropAllowDeletions""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropBlockCreationsType(TypedDict): - """BranchProtectionPropBlockCreations""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropRequiredConversationResolutionType(TypedDict): - """BranchProtectionPropRequiredConversationResolution""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropRequiredSignaturesType(TypedDict): - """BranchProtectionPropRequiredSignatures""" - - url: str - enabled: bool - - -class BranchProtectionPropLockBranchType(TypedDict): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowForkSyncingType(TypedDict): - """BranchProtectionPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: NotRequired[bool] - - -class ProtectedBranchRequiredStatusCheckType(TypedDict): - """Protected Branch Required Status Check - - Protected Branch Required Status Check - """ - - url: NotRequired[str] - enforcement_level: NotRequired[str] - contexts: list[str] - checks: list[ProtectedBranchRequiredStatusCheckPropChecksItemsType] - contexts_url: NotRequired[str] - strict: NotRequired[bool] - - -class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" - - context: str - app_id: Union[int, None] - - -__all__ = ( - "BranchProtectionPropAllowDeletionsType", - "BranchProtectionPropAllowForcePushesType", - "BranchProtectionPropAllowForkSyncingType", - "BranchProtectionPropBlockCreationsType", - "BranchProtectionPropLockBranchType", - "BranchProtectionPropRequiredConversationResolutionType", - "BranchProtectionPropRequiredLinearHistoryType", - "BranchProtectionPropRequiredSignaturesType", - "BranchProtectionType", - "ProtectedBranchAdminEnforcedType", - "ProtectedBranchRequiredStatusCheckPropChecksItemsType", - "ProtectedBranchRequiredStatusCheckType", -) +__all__ = ("ActivityType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0200.py b/githubkit/versions/v2022_11_28/types/group_0200.py index f1739de22..8b6890539 100644 --- a/githubkit/versions/v2022_11_28/types/group_0200.py +++ b/githubkit/versions/v2022_11_28/types/group_0200.py @@ -9,32 +9,19 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0199 import BranchProtectionType +class AutolinkType(TypedDict): + """Autolink reference -class ShortBranchType(TypedDict): - """Short Branch - - Short Branch + An autolink reference. """ - name: str - commit: ShortBranchPropCommitType - protected: bool - protection: NotRequired[BranchProtectionType] - protection_url: NotRequired[str] - - -class ShortBranchPropCommitType(TypedDict): - """ShortBranchPropCommit""" - - sha: str - url: str + id: int + key_prefix: str + url_template: str + is_alphanumeric: bool -__all__ = ( - "ShortBranchPropCommitType", - "ShortBranchType", -) +__all__ = ("AutolinkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0201.py b/githubkit/versions/v2022_11_28/types/group_0201.py index 69dd1c546..deb29de44 100644 --- a/githubkit/versions/v2022_11_28/types/group_0201.py +++ b/githubkit/versions/v2022_11_28/types/group_0201.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class GitUserType(TypedDict): - """Git User +class CheckAutomatedSecurityFixesType(TypedDict): + """Check Dependabot security updates - Metaproperties for Git author/committer information. + Check Dependabot security updates """ - name: NotRequired[str] - email: NotRequired[str] - date: NotRequired[str] + enabled: bool + paused: bool -__all__ = ("GitUserType",) +__all__ = ("CheckAutomatedSecurityFixesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0202.py b/githubkit/versions/v2022_11_28/types/group_0202.py index fb5244f00..f535c3545 100644 --- a/githubkit/versions/v2022_11_28/types/group_0202.py +++ b/githubkit/versions/v2022_11_28/types/group_0202.py @@ -9,18 +9,31 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0203 import ( + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, +) -class VerificationType(TypedDict): - """Verification""" - verified: bool - reason: str - payload: Union[str, None] - signature: Union[str, None] - verified_at: NotRequired[Union[str, None]] +class ProtectedBranchPullRequestReviewType(TypedDict): + """Protected Branch Pull Request Review + Protected Branch Pull Request Review + """ -__all__ = ("VerificationType",) + url: NotRequired[str] + dismissal_restrictions: NotRequired[ + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType + ] + bypass_pull_request_allowances: NotRequired[ + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType + ] + dismiss_stale_reviews: bool + require_code_owner_reviews: bool + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + + +__all__ = ("ProtectedBranchPullRequestReviewType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0203.py b/githubkit/versions/v2022_11_28/types/group_0203.py index 974bfbf83..e48553ebb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0203.py +++ b/githubkit/versions/v2022_11_28/types/group_0203.py @@ -9,29 +9,37 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0087 import TeamType -class DiffEntryType(TypedDict): - """Diff Entry - Diff Entry +class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + + users: NotRequired[list[SimpleUserType]] + teams: NotRequired[list[TeamType]] + apps: NotRequired[list[Union[IntegrationType, None]]] + url: NotRequired[str] + users_url: NotRequired[str] + teams_url: NotRequired[str] + + +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - sha: str - filename: str - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" - ] - additions: int - deletions: int - changes: int - blob_url: Union[str, None] - raw_url: Union[str, None] - contents_url: str - patch: NotRequired[str] - previous_filename: NotRequired[str] - - -__all__ = ("DiffEntryType",) + users: NotRequired[list[SimpleUserType]] + teams: NotRequired[list[TeamType]] + apps: NotRequired[list[Union[IntegrationType, None]]] + + +__all__ = ( + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", + "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0204.py b/githubkit/versions/v2022_11_28/types/group_0204.py index f30aa7f53..f6fd03a7a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0204.py +++ b/githubkit/versions/v2022_11_28/types/group_0204.py @@ -12,56 +12,125 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0203 import DiffEntryType -from .group_0205 import CommitPropCommitType +class BranchRestrictionPolicyType(TypedDict): + """Branch Restriction Policy -class CommitType(TypedDict): - """Commit - - Commit + Branch Restriction Policy """ url: str - sha: str - node_id: str - html_url: str - comments_url: str - commit: CommitPropCommitType - author: Union[SimpleUserType, EmptyObjectType, None] - committer: Union[SimpleUserType, EmptyObjectType, None] - parents: list[CommitPropParentsItemsType] - stats: NotRequired[CommitPropStatsType] - files: NotRequired[list[DiffEntryType]] - - -class EmptyObjectType(TypedDict): - """Empty Object - - An object without any properties. - """ - - -class CommitPropParentsItemsType(TypedDict): - """CommitPropParentsItems""" - - sha: str - url: str + users_url: str + teams_url: str + apps_url: str + users: list[BranchRestrictionPolicyPropUsersItemsType] + teams: list[BranchRestrictionPolicyPropTeamsItemsType] + apps: list[BranchRestrictionPolicyPropAppsItemsType] + + +class BranchRestrictionPolicyPropUsersItemsType(TypedDict): + """BranchRestrictionPolicyPropUsersItems""" + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] + site_admin: NotRequired[bool] + user_view_type: NotRequired[str] + + +class BranchRestrictionPolicyPropTeamsItemsType(TypedDict): + """BranchRestrictionPolicyPropTeamsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + name: NotRequired[str] + slug: NotRequired[str] + description: NotRequired[Union[str, None]] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: NotRequired[str] + members_url: NotRequired[str] + repositories_url: NotRequired[str] + parent: NotRequired[Union[str, None]] + + +class BranchRestrictionPolicyPropAppsItemsType(TypedDict): + """BranchRestrictionPolicyPropAppsItems""" + + id: NotRequired[int] + slug: NotRequired[str] + node_id: NotRequired[str] + owner: NotRequired[BranchRestrictionPolicyPropAppsItemsPropOwnerType] + name: NotRequired[str] + client_id: NotRequired[str] + description: NotRequired[str] + external_url: NotRequired[str] + html_url: NotRequired[str] + created_at: NotRequired[str] + updated_at: NotRequired[str] + permissions: NotRequired[BranchRestrictionPolicyPropAppsItemsPropPermissionsType] + events: NotRequired[list[str]] + + +class BranchRestrictionPolicyPropAppsItemsPropOwnerType(TypedDict): + """BranchRestrictionPolicyPropAppsItemsPropOwner""" + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + hooks_url: NotRequired[str] + issues_url: NotRequired[str] + members_url: NotRequired[str] + public_members_url: NotRequired[str] + avatar_url: NotRequired[str] + description: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] + site_admin: NotRequired[bool] + user_view_type: NotRequired[str] -class CommitPropStatsType(TypedDict): - """CommitPropStats""" +class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): + """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - additions: NotRequired[int] - deletions: NotRequired[int] - total: NotRequired[int] + metadata: NotRequired[str] + contents: NotRequired[str] + issues: NotRequired[str] + single_file: NotRequired[str] __all__ = ( - "CommitPropParentsItemsType", - "CommitPropStatsType", - "CommitType", - "EmptyObjectType", + "BranchRestrictionPolicyPropAppsItemsPropOwnerType", + "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", + "BranchRestrictionPolicyPropAppsItemsType", + "BranchRestrictionPolicyPropTeamsItemsType", + "BranchRestrictionPolicyPropUsersItemsType", + "BranchRestrictionPolicyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0205.py b/githubkit/versions/v2022_11_28/types/group_0205.py index 0eb2d9394..4e035e880 100644 --- a/githubkit/versions/v2022_11_28/types/group_0205.py +++ b/githubkit/versions/v2022_11_28/types/group_0205.py @@ -12,30 +12,135 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0201 import GitUserType -from .group_0202 import VerificationType +from .group_0202 import ProtectedBranchPullRequestReviewType +from .group_0204 import BranchRestrictionPolicyType -class CommitPropCommitType(TypedDict): - """CommitPropCommit""" +class BranchProtectionType(TypedDict): + """Branch Protection + + Branch Protection + """ + + url: NotRequired[str] + enabled: NotRequired[bool] + required_status_checks: NotRequired[ProtectedBranchRequiredStatusCheckType] + enforce_admins: NotRequired[ProtectedBranchAdminEnforcedType] + required_pull_request_reviews: NotRequired[ProtectedBranchPullRequestReviewType] + restrictions: NotRequired[BranchRestrictionPolicyType] + required_linear_history: NotRequired[BranchProtectionPropRequiredLinearHistoryType] + allow_force_pushes: NotRequired[BranchProtectionPropAllowForcePushesType] + allow_deletions: NotRequired[BranchProtectionPropAllowDeletionsType] + block_creations: NotRequired[BranchProtectionPropBlockCreationsType] + required_conversation_resolution: NotRequired[ + BranchProtectionPropRequiredConversationResolutionType + ] + name: NotRequired[str] + protection_url: NotRequired[str] + required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] + lock_branch: NotRequired[BranchProtectionPropLockBranchType] + allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] + + +class ProtectedBranchAdminEnforcedType(TypedDict): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced + """ url: str - author: Union[None, GitUserType] - committer: Union[None, GitUserType] - message: str - comment_count: int - tree: CommitPropCommitPropTreeType - verification: NotRequired[VerificationType] + enabled: bool + + +class BranchProtectionPropRequiredLinearHistoryType(TypedDict): + """BranchProtectionPropRequiredLinearHistory""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForcePushesType(TypedDict): + """BranchProtectionPropAllowForcePushes""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowDeletionsType(TypedDict): + """BranchProtectionPropAllowDeletions""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropBlockCreationsType(TypedDict): + """BranchProtectionPropBlockCreations""" + + enabled: NotRequired[bool] + +class BranchProtectionPropRequiredConversationResolutionType(TypedDict): + """BranchProtectionPropRequiredConversationResolution""" -class CommitPropCommitPropTreeType(TypedDict): - """CommitPropCommitPropTree""" + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredSignaturesType(TypedDict): + """BranchProtectionPropRequiredSignatures""" - sha: str url: str + enabled: bool + + +class BranchProtectionPropLockBranchType(TypedDict): + """BranchProtectionPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForkSyncingType(TypedDict): + """BranchProtectionPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckType(TypedDict): + """Protected Branch Required Status Check + + Protected Branch Required Status Check + """ + + url: NotRequired[str] + enforcement_level: NotRequired[str] + contexts: list[str] + checks: list[ProtectedBranchRequiredStatusCheckPropChecksItemsType] + contexts_url: NotRequired[str] + strict: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" + + context: str + app_id: Union[int, None] __all__ = ( - "CommitPropCommitPropTreeType", - "CommitPropCommitType", + "BranchProtectionPropAllowDeletionsType", + "BranchProtectionPropAllowForcePushesType", + "BranchProtectionPropAllowForkSyncingType", + "BranchProtectionPropBlockCreationsType", + "BranchProtectionPropLockBranchType", + "BranchProtectionPropRequiredConversationResolutionType", + "BranchProtectionPropRequiredLinearHistoryType", + "BranchProtectionPropRequiredSignaturesType", + "BranchProtectionType", + "ProtectedBranchAdminEnforcedType", + "ProtectedBranchRequiredStatusCheckPropChecksItemsType", + "ProtectedBranchRequiredStatusCheckType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0206.py b/githubkit/versions/v2022_11_28/types/group_0206.py index 4eb3ece13..dce6009f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0206.py +++ b/githubkit/versions/v2022_11_28/types/group_0206.py @@ -11,34 +11,30 @@ from typing_extensions import NotRequired, TypedDict -from .group_0199 import BranchProtectionType -from .group_0204 import CommitType +from .group_0205 import BranchProtectionType -class BranchWithProtectionType(TypedDict): - """Branch With Protection +class ShortBranchType(TypedDict): + """Short Branch - Branch With Protection + Short Branch """ name: str - commit: CommitType - links: BranchWithProtectionPropLinksType + commit: ShortBranchPropCommitType protected: bool - protection: BranchProtectionType - protection_url: str - pattern: NotRequired[str] - required_approving_review_count: NotRequired[int] + protection: NotRequired[BranchProtectionType] + protection_url: NotRequired[str] -class BranchWithProtectionPropLinksType(TypedDict): - """BranchWithProtectionPropLinks""" +class ShortBranchPropCommitType(TypedDict): + """ShortBranchPropCommit""" - html: str - self_: str + sha: str + url: str __all__ = ( - "BranchWithProtectionPropLinksType", - "BranchWithProtectionType", + "ShortBranchPropCommitType", + "ShortBranchType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0207.py b/githubkit/versions/v2022_11_28/types/group_0207.py index 912604d45..69dd1c546 100644 --- a/githubkit/versions/v2022_11_28/types/group_0207.py +++ b/githubkit/versions/v2022_11_28/types/group_0207.py @@ -9,133 +9,18 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0198 import BranchRestrictionPolicyType -from .group_0208 import ProtectedBranchPropRequiredPullRequestReviewsType +class GitUserType(TypedDict): + """Git User -class ProtectedBranchType(TypedDict): - """Protected Branch - - Branch protections protect branches - """ - - url: str - required_status_checks: NotRequired[StatusCheckPolicyType] - required_pull_request_reviews: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsType - ] - required_signatures: NotRequired[ProtectedBranchPropRequiredSignaturesType] - enforce_admins: NotRequired[ProtectedBranchPropEnforceAdminsType] - required_linear_history: NotRequired[ProtectedBranchPropRequiredLinearHistoryType] - allow_force_pushes: NotRequired[ProtectedBranchPropAllowForcePushesType] - allow_deletions: NotRequired[ProtectedBranchPropAllowDeletionsType] - restrictions: NotRequired[BranchRestrictionPolicyType] - required_conversation_resolution: NotRequired[ - ProtectedBranchPropRequiredConversationResolutionType - ] - block_creations: NotRequired[ProtectedBranchPropBlockCreationsType] - lock_branch: NotRequired[ProtectedBranchPropLockBranchType] - allow_fork_syncing: NotRequired[ProtectedBranchPropAllowForkSyncingType] - - -class ProtectedBranchPropRequiredSignaturesType(TypedDict): - """ProtectedBranchPropRequiredSignatures""" - - url: str - enabled: bool - - -class ProtectedBranchPropEnforceAdminsType(TypedDict): - """ProtectedBranchPropEnforceAdmins""" - - url: str - enabled: bool - - -class ProtectedBranchPropRequiredLinearHistoryType(TypedDict): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool - - -class ProtectedBranchPropAllowForcePushesType(TypedDict): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool - - -class ProtectedBranchPropAllowDeletionsType(TypedDict): - """ProtectedBranchPropAllowDeletions""" - - enabled: bool - - -class ProtectedBranchPropRequiredConversationResolutionType(TypedDict): - """ProtectedBranchPropRequiredConversationResolution""" - - enabled: NotRequired[bool] - - -class ProtectedBranchPropBlockCreationsType(TypedDict): - """ProtectedBranchPropBlockCreations""" - - enabled: bool - - -class ProtectedBranchPropLockBranchType(TypedDict): - """ProtectedBranchPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: NotRequired[bool] - - -class ProtectedBranchPropAllowForkSyncingType(TypedDict): - """ProtectedBranchPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: NotRequired[bool] - - -class StatusCheckPolicyType(TypedDict): - """Status Check Policy - - Status Check Policy + Metaproperties for Git author/committer information. """ - url: str - strict: bool - contexts: list[str] - checks: list[StatusCheckPolicyPropChecksItemsType] - contexts_url: str - - -class StatusCheckPolicyPropChecksItemsType(TypedDict): - """StatusCheckPolicyPropChecksItems""" - - context: str - app_id: Union[int, None] + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[str] -__all__ = ( - "ProtectedBranchPropAllowDeletionsType", - "ProtectedBranchPropAllowForcePushesType", - "ProtectedBranchPropAllowForkSyncingType", - "ProtectedBranchPropBlockCreationsType", - "ProtectedBranchPropEnforceAdminsType", - "ProtectedBranchPropLockBranchType", - "ProtectedBranchPropRequiredConversationResolutionType", - "ProtectedBranchPropRequiredLinearHistoryType", - "ProtectedBranchPropRequiredSignaturesType", - "ProtectedBranchType", - "StatusCheckPolicyPropChecksItemsType", - "StatusCheckPolicyType", -) +__all__ = ("GitUserType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0208.py b/githubkit/versions/v2022_11_28/types/group_0208.py index a05f21be5..54e368f8f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0208.py +++ b/githubkit/versions/v2022_11_28/types/group_0208.py @@ -9,28 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0209 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, -) +class VerificationType(TypedDict): + """Verification""" -class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): - """ProtectedBranchPropRequiredPullRequestReviews""" + verified: bool + reason: str + payload: Union[str, None] + signature: Union[str, None] + verified_at: Union[str, None] - url: str - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - dismissal_restrictions: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] - -__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) +__all__ = ("VerificationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0209.py b/githubkit/versions/v2022_11_28/types/group_0209.py index 62bceed74..974bfbf83 100644 --- a/githubkit/versions/v2022_11_28/types/group_0209.py +++ b/githubkit/versions/v2022_11_28/types/group_0209.py @@ -9,38 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0082 import TeamType +class DiffEntryType(TypedDict): + """Diff Entry -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" + Diff Entry + """ - url: str - users_url: str - teams_url: str - users: list[SimpleUserType] - teams: list[TeamType] - apps: NotRequired[list[Union[IntegrationType, None]]] + sha: str + filename: str + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + ] + additions: int + deletions: int + changes: int + blob_url: Union[str, None] + raw_url: Union[str, None] + contents_url: str + patch: NotRequired[str] + previous_filename: NotRequired[str] -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" - - users: list[SimpleUserType] - teams: list[TeamType] - apps: NotRequired[list[Union[IntegrationType, None]]] - - -__all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", -) +__all__ = ("DiffEntryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0210.py b/githubkit/versions/v2022_11_28/types/group_0210.py index 6b3457be8..2a2358ade 100644 --- a/githubkit/versions/v2022_11_28/types/group_0210.py +++ b/githubkit/versions/v2022_11_28/types/group_0210.py @@ -9,34 +9,59 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0209 import DiffEntryType +from .group_0211 import CommitPropCommitType -class DeploymentSimpleType(TypedDict): - """Deployment +class CommitType(TypedDict): + """Commit - A deployment created as the result of an Actions check run from a workflow that - references an environment + Commit """ url: str - id: int + sha: str node_id: str - task: str - original_environment: NotRequired[str] - environment: str - description: Union[str, None] - created_at: datetime - updated_at: datetime - statuses_url: str - repository_url: str - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -__all__ = ("DeploymentSimpleType",) + html_url: str + comments_url: str + commit: CommitPropCommitType + author: Union[SimpleUserType, EmptyObjectType, None] + committer: Union[SimpleUserType, EmptyObjectType, None] + parents: list[CommitPropParentsItemsType] + stats: NotRequired[CommitPropStatsType] + files: NotRequired[list[DiffEntryType]] + + +class EmptyObjectType(TypedDict): + """Empty Object + + An object without any properties. + """ + + +class CommitPropParentsItemsType(TypedDict): + """CommitPropParentsItems""" + + sha: str + url: str + html_url: NotRequired[str] + + +class CommitPropStatsType(TypedDict): + """CommitPropStats""" + + additions: NotRequired[int] + deletions: NotRequired[int] + total: NotRequired[int] + + +__all__ = ( + "CommitPropParentsItemsType", + "CommitPropStatsType", + "CommitType", + "EmptyObjectType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0211.py b/githubkit/versions/v2022_11_28/types/group_0211.py index 6ed825705..c70020333 100644 --- a/githubkit/versions/v2022_11_28/types/group_0211.py +++ b/githubkit/versions/v2022_11_28/types/group_0211.py @@ -9,71 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0008 import IntegrationType -from .group_0183 import PullRequestMinimalType -from .group_0210 import DeploymentSimpleType +from .group_0207 import GitUserType +from .group_0208 import VerificationType -class CheckRunType(TypedDict): - """CheckRun +class CommitPropCommitType(TypedDict): + """CommitPropCommit""" - A check performed on the code of a given code change - """ - - id: int - head_sha: str - node_id: str - external_id: Union[str, None] url: str - html_url: Union[str, None] - details_url: Union[str, None] - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - started_at: Union[datetime, None] - completed_at: Union[datetime, None] - output: CheckRunPropOutputType - name: str - check_suite: Union[CheckRunPropCheckSuiteType, None] - app: Union[None, IntegrationType, None] - pull_requests: list[PullRequestMinimalType] - deployment: NotRequired[DeploymentSimpleType] - - -class CheckRunPropOutputType(TypedDict): - """CheckRunPropOutput""" + author: Union[None, GitUserType] + committer: Union[None, GitUserType] + message: str + comment_count: int + tree: CommitPropCommitPropTreeType + verification: NotRequired[VerificationType] - title: Union[str, None] - summary: Union[str, None] - text: Union[str, None] - annotations_count: int - annotations_url: str +class CommitPropCommitPropTreeType(TypedDict): + """CommitPropCommitPropTree""" -class CheckRunPropCheckSuiteType(TypedDict): - """CheckRunPropCheckSuite""" - - id: int + sha: str + url: str __all__ = ( - "CheckRunPropCheckSuiteType", - "CheckRunPropOutputType", - "CheckRunType", + "CommitPropCommitPropTreeType", + "CommitPropCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0212.py b/githubkit/versions/v2022_11_28/types/group_0212.py index 82fbb570d..e85f85bab 100644 --- a/githubkit/versions/v2022_11_28/types/group_0212.py +++ b/githubkit/versions/v2022_11_28/types/group_0212.py @@ -9,26 +9,36 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0205 import BranchProtectionType +from .group_0210 import CommitType -class CheckAnnotationType(TypedDict): - """Check Annotation - Check Annotation +class BranchWithProtectionType(TypedDict): + """Branch With Protection + + Branch With Protection """ - path: str - start_line: int - end_line: int - start_column: Union[int, None] - end_column: Union[int, None] - annotation_level: Union[str, None] - title: Union[str, None] - message: Union[str, None] - raw_details: Union[str, None] - blob_href: str + name: str + commit: CommitType + links: BranchWithProtectionPropLinksType + protected: bool + protection: BranchProtectionType + protection_url: str + pattern: NotRequired[str] + required_approving_review_count: NotRequired[int] + + +class BranchWithProtectionPropLinksType(TypedDict): + """BranchWithProtectionPropLinks""" + + html: str + self_: str -__all__ = ("CheckAnnotationType",) +__all__ = ( + "BranchWithProtectionPropLinksType", + "BranchWithProtectionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0213.py b/githubkit/versions/v2022_11_28/types/group_0213.py index 0fa97f888..1a633fb21 100644 --- a/githubkit/versions/v2022_11_28/types/group_0213.py +++ b/githubkit/versions/v2022_11_28/types/group_0213.py @@ -9,69 +9,133 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0008 import IntegrationType -from .group_0056 import MinimalRepositoryType -from .group_0183 import PullRequestMinimalType -from .group_0184 import SimpleCommitType +from .group_0204 import BranchRestrictionPolicyType +from .group_0214 import ProtectedBranchPropRequiredPullRequestReviewsType -class CheckSuiteType(TypedDict): - """CheckSuite +class ProtectedBranchType(TypedDict): + """Protected Branch - A suite of checks performed on the code of a given code change + Branch protections protect branches """ - id: int - node_id: str - head_branch: Union[str, None] - head_sha: str - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], + url: str + required_status_checks: NotRequired[StatusCheckPolicyType] + required_pull_request_reviews: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsType ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "startup_failure", - "stale", - ], + required_signatures: NotRequired[ProtectedBranchPropRequiredSignaturesType] + enforce_admins: NotRequired[ProtectedBranchPropEnforceAdminsType] + required_linear_history: NotRequired[ProtectedBranchPropRequiredLinearHistoryType] + allow_force_pushes: NotRequired[ProtectedBranchPropAllowForcePushesType] + allow_deletions: NotRequired[ProtectedBranchPropAllowDeletionsType] + restrictions: NotRequired[BranchRestrictionPolicyType] + required_conversation_resolution: NotRequired[ + ProtectedBranchPropRequiredConversationResolutionType ] - url: Union[str, None] - before: Union[str, None] - after: Union[str, None] - pull_requests: Union[list[PullRequestMinimalType], None] - app: Union[None, IntegrationType, None] - repository: MinimalRepositoryType - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - head_commit: SimpleCommitType - latest_check_runs_count: int - check_runs_url: str - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] + block_creations: NotRequired[ProtectedBranchPropBlockCreationsType] + lock_branch: NotRequired[ProtectedBranchPropLockBranchType] + allow_fork_syncing: NotRequired[ProtectedBranchPropAllowForkSyncingType] -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" +class ProtectedBranchPropRequiredSignaturesType(TypedDict): + """ProtectedBranchPropRequiredSignatures""" - total_count: int - check_suites: list[CheckSuiteType] + url: str + enabled: bool + + +class ProtectedBranchPropEnforceAdminsType(TypedDict): + """ProtectedBranchPropEnforceAdmins""" + + url: str + enabled: bool + + +class ProtectedBranchPropRequiredLinearHistoryType(TypedDict): + """ProtectedBranchPropRequiredLinearHistory""" + + enabled: bool + + +class ProtectedBranchPropAllowForcePushesType(TypedDict): + """ProtectedBranchPropAllowForcePushes""" + + enabled: bool + + +class ProtectedBranchPropAllowDeletionsType(TypedDict): + """ProtectedBranchPropAllowDeletions""" + + enabled: bool + + +class ProtectedBranchPropRequiredConversationResolutionType(TypedDict): + """ProtectedBranchPropRequiredConversationResolution""" + + enabled: NotRequired[bool] + + +class ProtectedBranchPropBlockCreationsType(TypedDict): + """ProtectedBranchPropBlockCreations""" + + enabled: bool + + +class ProtectedBranchPropLockBranchType(TypedDict): + """ProtectedBranchPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: NotRequired[bool] + + +class ProtectedBranchPropAllowForkSyncingType(TypedDict): + """ProtectedBranchPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: NotRequired[bool] + + +class StatusCheckPolicyType(TypedDict): + """Status Check Policy + + Status Check Policy + """ + + url: str + strict: bool + contexts: list[str] + checks: list[StatusCheckPolicyPropChecksItemsType] + contexts_url: str + + +class StatusCheckPolicyPropChecksItemsType(TypedDict): + """StatusCheckPolicyPropChecksItems""" + + context: str + app_id: Union[int, None] __all__ = ( - "CheckSuiteType", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", + "ProtectedBranchPropAllowDeletionsType", + "ProtectedBranchPropAllowForcePushesType", + "ProtectedBranchPropAllowForkSyncingType", + "ProtectedBranchPropBlockCreationsType", + "ProtectedBranchPropEnforceAdminsType", + "ProtectedBranchPropLockBranchType", + "ProtectedBranchPropRequiredConversationResolutionType", + "ProtectedBranchPropRequiredLinearHistoryType", + "ProtectedBranchPropRequiredSignaturesType", + "ProtectedBranchType", + "StatusCheckPolicyPropChecksItemsType", + "StatusCheckPolicyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0214.py b/githubkit/versions/v2022_11_28/types/group_0214.py index 95beba497..b439353c4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0214.py +++ b/githubkit/versions/v2022_11_28/types/group_0214.py @@ -11,36 +11,26 @@ from typing_extensions import NotRequired, TypedDict -from .group_0056 import MinimalRepositoryType - - -class CheckSuitePreferenceType(TypedDict): - """Check Suite Preference - - Check suite configuration preferences for a repository. - """ - - preferences: CheckSuitePreferencePropPreferencesType - repository: MinimalRepositoryType +from .group_0215 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, +) -class CheckSuitePreferencePropPreferencesType(TypedDict): - """CheckSuitePreferencePropPreferences""" +class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): + """ProtectedBranchPropRequiredPullRequestReviews""" - auto_trigger_checks: NotRequired[ - list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] + url: str + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + dismissal_restrictions: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType + ] + bypass_pull_request_allowances: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType ] -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int - setting: bool - - -__all__ = ( - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", - "CheckSuitePreferencePropPreferencesType", - "CheckSuitePreferenceType", -) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0215.py b/githubkit/versions/v2022_11_28/types/group_0215.py index 798eb93a7..5791509e5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0215.py +++ b/githubkit/versions/v2022_11_28/types/group_0215.py @@ -9,36 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0073 import CodeScanningAlertRuleSummaryType -from .group_0074 import CodeScanningAnalysisToolType -from .group_0075 import CodeScanningAlertInstanceType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0087 import TeamType -class CodeScanningAlertItemsType(TypedDict): - """CodeScanningAlertItems""" +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" - number: int - created_at: datetime - updated_at: NotRequired[datetime] url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - - -__all__ = ("CodeScanningAlertItemsType",) + users_url: str + teams_url: str + users: list[SimpleUserType] + teams: list[TeamType] + apps: NotRequired[list[Union[IntegrationType, None]]] + + +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" + + users: list[SimpleUserType] + teams: list[TeamType] + apps: NotRequired[list[Union[IntegrationType, None]]] + + +__all__ = ( + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0216.py b/githubkit/versions/v2022_11_28/types/group_0216.py index 810a90855..daf967d0f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0216.py +++ b/githubkit/versions/v2022_11_28/types/group_0216.py @@ -10,53 +10,33 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0074 import CodeScanningAnalysisToolType -from .group_0075 import CodeScanningAlertInstanceType +from .group_0010 import IntegrationType -class CodeScanningAlertType(TypedDict): - """CodeScanningAlert""" +class DeploymentSimpleType(TypedDict): + """Deployment + + A deployment created as the result of an Actions check run from a workflow that + references an environment + """ - number: int - created_at: datetime - updated_at: NotRequired[datetime] url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - - -class CodeScanningAlertRuleType(TypedDict): - """CodeScanningAlertRule""" - - id: NotRequired[Union[str, None]] - name: NotRequired[str] - severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] - security_severity_level: NotRequired[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] - description: NotRequired[str] - full_description: NotRequired[str] - tags: NotRequired[Union[list[str], None]] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - - -__all__ = ( - "CodeScanningAlertRuleType", - "CodeScanningAlertType", -) + id: int + node_id: str + task: str + original_environment: NotRequired[str] + environment: str + description: Union[str, None] + created_at: datetime + updated_at: datetime + statuses_url: str + repository_url: str + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +__all__ = ("DeploymentSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0217.py b/githubkit/versions/v2022_11_28/types/group_0217.py index 1a155e137..0009107a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0217.py +++ b/githubkit/versions/v2022_11_28/types/group_0217.py @@ -11,15 +11,69 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0010 import IntegrationType +from .group_0189 import PullRequestMinimalType +from .group_0216 import DeploymentSimpleType -class CodeScanningAutofixType(TypedDict): - """CodeScanningAutofix""" - status: Literal["pending", "error", "success", "outdated"] - description: Union[str, None] - started_at: datetime +class CheckRunType(TypedDict): + """CheckRun + A check performed on the code of a given code change + """ -__all__ = ("CodeScanningAutofixType",) + id: int + head_sha: str + node_id: str + external_id: Union[str, None] + url: str + html_url: Union[str, None] + details_url: Union[str, None] + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] + started_at: Union[datetime, None] + completed_at: Union[datetime, None] + output: CheckRunPropOutputType + name: str + check_suite: Union[CheckRunPropCheckSuiteType, None] + app: Union[None, IntegrationType, None] + pull_requests: list[PullRequestMinimalType] + deployment: NotRequired[DeploymentSimpleType] + + +class CheckRunPropOutputType(TypedDict): + """CheckRunPropOutput""" + + title: Union[str, None] + summary: Union[str, None] + text: Union[str, None] + annotations_count: int + annotations_url: str + + +class CheckRunPropCheckSuiteType(TypedDict): + """CheckRunPropCheckSuite""" + + id: int + + +__all__ = ( + "CheckRunPropCheckSuiteType", + "CheckRunPropOutputType", + "CheckRunType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0218.py b/githubkit/versions/v2022_11_28/types/group_0218.py index 8ec0e8374..82fbb570d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0218.py +++ b/githubkit/versions/v2022_11_28/types/group_0218.py @@ -9,17 +9,26 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class CodeScanningAutofixCommitsType(TypedDict): - """CodeScanningAutofixCommits +class CheckAnnotationType(TypedDict): + """Check Annotation - Commit an autofix for a code scanning alert + Check Annotation """ - target_ref: NotRequired[str] - message: NotRequired[str] + path: str + start_line: int + end_line: int + start_column: Union[int, None] + end_column: Union[int, None] + annotation_level: Union[str, None] + title: Union[str, None] + message: Union[str, None] + raw_details: Union[str, None] + blob_href: str -__all__ = ("CodeScanningAutofixCommitsType",) +__all__ = ("CheckAnnotationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0219.py b/githubkit/versions/v2022_11_28/types/group_0219.py index 2cbf6f579..4fb97060f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0219.py +++ b/githubkit/versions/v2022_11_28/types/group_0219.py @@ -9,14 +9,69 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0010 import IntegrationType +from .group_0057 import MinimalRepositoryType +from .group_0189 import PullRequestMinimalType +from .group_0190 import SimpleCommitType -class CodeScanningAutofixCommitsResponseType(TypedDict): - """CodeScanningAutofixCommitsResponse""" - target_ref: NotRequired[str] - sha: NotRequired[str] +class CheckSuiteType(TypedDict): + """CheckSuite + A suite of checks performed on the code of a given code change + """ -__all__ = ("CodeScanningAutofixCommitsResponseType",) + id: int + node_id: str + head_branch: Union[str, None] + head_sha: str + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "startup_failure", + "stale", + ], + ] + url: Union[str, None] + before: Union[str, None] + after: Union[str, None] + pull_requests: Union[list[PullRequestMinimalType], None] + app: Union[None, IntegrationType, None] + repository: MinimalRepositoryType + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + head_commit: SimpleCommitType + latest_check_runs_count: int + check_runs_url: str + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int + check_suites: list[CheckSuiteType] + + +__all__ = ( + "CheckSuiteType", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0220.py b/githubkit/versions/v2022_11_28/types/group_0220.py index e1b2b0806..f8094ffc8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0220.py +++ b/githubkit/versions/v2022_11_28/types/group_0220.py @@ -9,30 +9,38 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -from .group_0074 import CodeScanningAnalysisToolType +from .group_0057 import MinimalRepositoryType -class CodeScanningAnalysisType(TypedDict): - """CodeScanningAnalysis""" +class CheckSuitePreferenceType(TypedDict): + """Check Suite Preference - ref: str - commit_sha: str - analysis_key: str - environment: str - category: NotRequired[str] - error: str - created_at: datetime - results_count: int - rules_count: int - id: int - url: str - sarif_id: str - tool: CodeScanningAnalysisToolType - deletable: bool - warning: str + Check suite configuration preferences for a repository. + """ + preferences: CheckSuitePreferencePropPreferencesType + repository: MinimalRepositoryType -__all__ = ("CodeScanningAnalysisType",) + +class CheckSuitePreferencePropPreferencesType(TypedDict): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: NotRequired[ + list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] + ] + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int + setting: bool + + +__all__ = ( + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", + "CheckSuitePreferencePropPreferencesType", + "CheckSuitePreferenceType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0221.py b/githubkit/versions/v2022_11_28/types/group_0221.py index a217f8af1..8b46b3e65 100644 --- a/githubkit/versions/v2022_11_28/types/group_0221.py +++ b/githubkit/versions/v2022_11_28/types/group_0221.py @@ -9,18 +9,36 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict - - -class CodeScanningAnalysisDeletionType(TypedDict): - """Analysis deletion - - Successful deletion of a code scanning analysis - """ - - next_analysis_url: Union[str, None] - confirm_delete_url: Union[str, None] - - -__all__ = ("CodeScanningAnalysisDeletionType",) +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0078 import CodeScanningAlertRuleSummaryType +from .group_0079 import CodeScanningAnalysisToolType +from .group_0080 import CodeScanningAlertInstanceType + + +class CodeScanningAlertItemsType(TypedDict): + """CodeScanningAlertItems""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + + +__all__ = ("CodeScanningAlertItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0222.py b/githubkit/versions/v2022_11_28/types/group_0222.py index 754c2ef4b..09412be47 100644 --- a/githubkit/versions/v2022_11_28/types/group_0222.py +++ b/githubkit/versions/v2022_11_28/types/group_0222.py @@ -10,28 +10,53 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0079 import CodeScanningAnalysisToolType +from .group_0080 import CodeScanningAlertInstanceType -class CodeScanningCodeqlDatabaseType(TypedDict): - """CodeQL Database +class CodeScanningAlertType(TypedDict): + """CodeScanningAlert""" - A CodeQL database. - """ - - id: int - name: str - language: str - uploader: SimpleUserType - content_type: str - size: int + number: int created_at: datetime - updated_at: datetime + updated_at: NotRequired[datetime] url: str - commit_oid: NotRequired[Union[str, None]] - - -__all__ = ("CodeScanningCodeqlDatabaseType",) + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + + +class CodeScanningAlertRuleType(TypedDict): + """CodeScanningAlertRule""" + + id: NotRequired[Union[str, None]] + name: NotRequired[str] + severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] + security_severity_level: NotRequired[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] + description: NotRequired[str] + full_description: NotRequired[str] + tags: NotRequired[Union[list[str], None]] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + + +__all__ = ( + "CodeScanningAlertRuleType", + "CodeScanningAlertType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0223.py b/githubkit/versions/v2022_11_28/types/group_0223.py index 86f33d140..1a155e137 100644 --- a/githubkit/versions/v2022_11_28/types/group_0223.py +++ b/githubkit/versions/v2022_11_28/types/group_0223.py @@ -10,22 +10,16 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import TypedDict -class CodeScanningVariantAnalysisRepositoryType(TypedDict): - """Repository Identifier +class CodeScanningAutofixType(TypedDict): + """CodeScanningAutofix""" - Repository Identifier - """ + status: Literal["pending", "error", "success", "outdated"] + description: Union[str, None] + started_at: datetime - id: int - name: str - full_name: str - private: bool - stargazers_count: int - updated_at: Union[datetime, None] - -__all__ = ("CodeScanningVariantAnalysisRepositoryType",) +__all__ = ("CodeScanningAutofixType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0224.py b/githubkit/versions/v2022_11_28/types/group_0224.py index a2c3a22b0..8ec0e8374 100644 --- a/githubkit/versions/v2022_11_28/types/group_0224.py +++ b/githubkit/versions/v2022_11_28/types/group_0224.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0223 import CodeScanningVariantAnalysisRepositoryType +class CodeScanningAutofixCommitsType(TypedDict): + """CodeScanningAutofixCommits -class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): - """CodeScanningVariantAnalysisSkippedRepoGroup""" + Commit an autofix for a code scanning alert + """ - repository_count: int - repositories: list[CodeScanningVariantAnalysisRepositoryType] + target_ref: NotRequired[str] + message: NotRequired[str] -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) +__all__ = ("CodeScanningAutofixCommitsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0225.py b/githubkit/versions/v2022_11_28/types/group_0225.py index b3df33def..2cbf6f579 100644 --- a/githubkit/versions/v2022_11_28/types/group_0225.py +++ b/githubkit/versions/v2022_11_28/types/group_0225.py @@ -9,43 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0030 import SimpleRepositoryType -from .group_0226 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType -from .group_0227 import CodeScanningVariantAnalysisPropSkippedRepositoriesType - - -class CodeScanningVariantAnalysisType(TypedDict): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. - """ - - id: int - controller_repo: SimpleRepositoryType - actor: SimpleUserType - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack_url: str - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - completed_at: NotRequired[Union[datetime, None]] - status: Literal["in_progress", "succeeded", "failed", "cancelled"] - actions_workflow_run_id: NotRequired[int] - failure_reason: NotRequired[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] - scanned_repositories: NotRequired[ - list[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] - ] - skipped_repositories: NotRequired[ - CodeScanningVariantAnalysisPropSkippedRepositoriesType - ] - - -__all__ = ("CodeScanningVariantAnalysisType",) + +class CodeScanningAutofixCommitsResponseType(TypedDict): + """CodeScanningAutofixCommitsResponse""" + + target_ref: NotRequired[str] + sha: NotRequired[str] + + +__all__ = ("CodeScanningAutofixCommitsResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0226.py b/githubkit/versions/v2022_11_28/types/group_0226.py index 1710d091c..5853fa06d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0226.py +++ b/githubkit/versions/v2022_11_28/types/group_0226.py @@ -9,22 +9,30 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import NotRequired, TypedDict -from .group_0223 import CodeScanningVariantAnalysisRepositoryType +from .group_0079 import CodeScanningAnalysisToolType -class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningAnalysisType(TypedDict): + """CodeScanningAnalysis""" - repository: CodeScanningVariantAnalysisRepositoryType - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] - result_count: NotRequired[int] - artifact_size_in_bytes: NotRequired[int] - failure_message: NotRequired[str] + ref: str + commit_sha: str + analysis_key: str + environment: str + category: NotRequired[str] + error: str + created_at: datetime + results_count: int + rules_count: int + id: int + url: str + sarif_id: str + tool: CodeScanningAnalysisToolType + deletable: bool + warning: str -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) +__all__ = ("CodeScanningAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0227.py b/githubkit/versions/v2022_11_28/types/group_0227.py index 832771d04..a217f8af1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0227.py +++ b/githubkit/versions/v2022_11_28/types/group_0227.py @@ -9,36 +9,18 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -from .group_0224 import CodeScanningVariantAnalysisSkippedRepoGroupType +class CodeScanningAnalysisDeletionType(TypedDict): + """Analysis deletion -class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): - """CodeScanningVariantAnalysisPropSkippedRepositories - - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + Successful deletion of a code scanning analysis """ - access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - not_found_repos: ( - CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType - ) - no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - - -class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType( - TypedDict -): - """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" - - repository_count: int - repository_full_names: list[str] + next_analysis_url: Union[str, None] + confirm_delete_url: Union[str, None] -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", - "CodeScanningVariantAnalysisPropSkippedRepositoriesType", -) +__all__ = ("CodeScanningAnalysisDeletionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0228.py b/githubkit/versions/v2022_11_28/types/group_0228.py index e3cabafbe..279371ebd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0228.py +++ b/githubkit/versions/v2022_11_28/types/group_0228.py @@ -9,25 +9,29 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0030 import SimpleRepositoryType +from .group_0003 import SimpleUserType -class CodeScanningVariantAnalysisRepoTaskType(TypedDict): - """CodeScanningVariantAnalysisRepoTask""" +class CodeScanningCodeqlDatabaseType(TypedDict): + """CodeQL Database - repository: SimpleRepositoryType - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] - artifact_size_in_bytes: NotRequired[int] - result_count: NotRequired[int] - failure_message: NotRequired[str] - database_commit_sha: NotRequired[str] - source_location_prefix: NotRequired[str] - artifact_url: NotRequired[str] + A CodeQL database. + """ + id: int + name: str + language: str + uploader: SimpleUserType + content_type: str + size: int + created_at: datetime + updated_at: datetime + url: str + commit_oid: NotRequired[Union[str, None]] -__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) + +__all__ = ("CodeScanningCodeqlDatabaseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0229.py b/githubkit/versions/v2022_11_28/types/group_0229.py index 6a3c39b96..86f33d140 100644 --- a/githubkit/versions/v2022_11_28/types/group_0229.py +++ b/githubkit/versions/v2022_11_28/types/group_0229.py @@ -10,39 +10,22 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class CodeScanningDefaultSetupType(TypedDict): - """CodeScanningDefaultSetup +class CodeScanningVariantAnalysisRepositoryType(TypedDict): + """Repository Identifier - Configuration for code scanning default setup. + Repository Identifier """ - state: NotRequired[Literal["configured", "not-configured"]] - languages: NotRequired[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] - ] - runner_type: NotRequired[Union[None, Literal["standard", "labeled"]]] - runner_label: NotRequired[Union[str, None]] - query_suite: NotRequired[Literal["default", "extended"]] - updated_at: NotRequired[Union[datetime, None]] - schedule: NotRequired[Union[None, Literal["weekly"]]] - - -__all__ = ("CodeScanningDefaultSetupType",) + id: int + name: str + full_name: str + private: bool + stargazers_count: int + updated_at: Union[datetime, None] + + +__all__ = ("CodeScanningVariantAnalysisRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0230.py b/githubkit/versions/v2022_11_28/types/group_0230.py index 8e432c42b..3b1e2c503 100644 --- a/githubkit/versions/v2022_11_28/types/group_0230.py +++ b/githubkit/versions/v2022_11_28/types/group_0230.py @@ -9,35 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - - -class CodeScanningDefaultSetupUpdateType(TypedDict): - """CodeScanningDefaultSetupUpdate - - Configuration for code scanning default setup. - """ - - state: NotRequired[Literal["configured", "not-configured"]] - runner_type: NotRequired[Literal["standard", "labeled"]] - runner_label: NotRequired[Union[str, None]] - query_suite: NotRequired[Literal["default", "extended"]] - languages: NotRequired[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] - ] - - -__all__ = ("CodeScanningDefaultSetupUpdateType",) +from typing_extensions import TypedDict + +from .group_0229 import CodeScanningVariantAnalysisRepositoryType + + +class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): + """CodeScanningVariantAnalysisSkippedRepoGroup""" + + repository_count: int + repositories: list[CodeScanningVariantAnalysisRepositoryType] + + +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0231.py b/githubkit/versions/v2022_11_28/types/group_0231.py index f363fa4b1..58bb92ac0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0231.py +++ b/githubkit/versions/v2022_11_28/types/group_0231.py @@ -9,19 +9,43 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0031 import SimpleRepositoryType +from .group_0232 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType +from .group_0233 import CodeScanningVariantAnalysisPropSkippedRepositoriesType -class CodeScanningDefaultSetupUpdateResponseType(TypedDict): - """CodeScanningDefaultSetupUpdateResponse - You can use `run_url` to track the status of the run. This includes a property - status and conclusion. - You should not rely on this always being an actions workflow run object. - """ - - run_id: NotRequired[int] - run_url: NotRequired[str] +class CodeScanningVariantAnalysisType(TypedDict): + """Variant Analysis + A run of a CodeQL query against one or more repositories. + """ -__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) + id: int + controller_repo: SimpleRepositoryType + actor: SimpleUserType + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] + query_pack_url: str + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + completed_at: NotRequired[Union[datetime, None]] + status: Literal["in_progress", "succeeded", "failed", "cancelled"] + actions_workflow_run_id: NotRequired[int] + failure_reason: NotRequired[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] + scanned_repositories: NotRequired[ + list[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] + ] + skipped_repositories: NotRequired[ + CodeScanningVariantAnalysisPropSkippedRepositoriesType + ] + + +__all__ = ("CodeScanningVariantAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0232.py b/githubkit/versions/v2022_11_28/types/group_0232.py index 5a45d64e1..fef35519b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0232.py +++ b/githubkit/versions/v2022_11_28/types/group_0232.py @@ -9,14 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0229 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningSarifsReceiptType(TypedDict): - """CodeScanningSarifsReceipt""" - id: NotRequired[str] - url: NotRequired[str] +class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" + repository: CodeScanningVariantAnalysisRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] + result_count: NotRequired[int] + artifact_size_in_bytes: NotRequired[int] + failure_message: NotRequired[str] -__all__ = ("CodeScanningSarifsReceiptType",) + +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0233.py b/githubkit/versions/v2022_11_28/types/group_0233.py index 3b46d219b..f9ff34aec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0233.py +++ b/githubkit/versions/v2022_11_28/types/group_0233.py @@ -9,16 +9,36 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0230 import CodeScanningVariantAnalysisSkippedRepoGroupType -class CodeScanningSarifsStatusType(TypedDict): - """CodeScanningSarifsStatus""" - processing_status: NotRequired[Literal["pending", "complete", "failed"]] - analyses_url: NotRequired[Union[str, None]] - errors: NotRequired[Union[list[str], None]] +class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): + """CodeScanningVariantAnalysisPropSkippedRepositories + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. + """ -__all__ = ("CodeScanningSarifsStatusType",) + access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + not_found_repos: ( + CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType + ) + no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + + +class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType( + TypedDict +): + """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" + + repository_count: int + repository_full_names: list[str] + + +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", + "CodeScanningVariantAnalysisPropSkippedRepositoriesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0234.py b/githubkit/versions/v2022_11_28/types/group_0234.py index 0a266f228..3cababe12 100644 --- a/githubkit/versions/v2022_11_28/types/group_0234.py +++ b/githubkit/versions/v2022_11_28/types/group_0234.py @@ -12,28 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0027 import CodeSecurityConfigurationType - - -class CodeSecurityConfigurationForRepositoryType(TypedDict): - """CodeSecurityConfigurationForRepository - - Code security configuration associated with a repository and attachment status - """ - - status: NotRequired[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] +from .group_0031 import SimpleRepositoryType + + +class CodeScanningVariantAnalysisRepoTaskType(TypedDict): + """CodeScanningVariantAnalysisRepoTask""" + + repository: SimpleRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" ] - configuration: NotRequired[CodeSecurityConfigurationType] + artifact_size_in_bytes: NotRequired[int] + result_count: NotRequired[int] + failure_message: NotRequired[str] + database_commit_sha: NotRequired[str] + source_location_prefix: NotRequired[str] + artifact_url: NotRequired[str] -__all__ = ("CodeSecurityConfigurationForRepositoryType",) +__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0235.py b/githubkit/versions/v2022_11_28/types/group_0235.py index 4480d357f..6a3c39b96 100644 --- a/githubkit/versions/v2022_11_28/types/group_0235.py +++ b/githubkit/versions/v2022_11_28/types/group_0235.py @@ -9,32 +9,40 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeownersErrorsType(TypedDict): - """CODEOWNERS errors +class CodeScanningDefaultSetupType(TypedDict): + """CodeScanningDefaultSetup - A list of errors found in a repo's CODEOWNERS file + Configuration for code scanning default setup. """ - errors: list[CodeownersErrorsPropErrorsItemsType] - - -class CodeownersErrorsPropErrorsItemsType(TypedDict): - """CodeownersErrorsPropErrorsItems""" - - line: int - column: int - source: NotRequired[str] - kind: str - suggestion: NotRequired[Union[str, None]] - message: str - path: str - - -__all__ = ( - "CodeownersErrorsPropErrorsItemsType", - "CodeownersErrorsType", -) + state: NotRequired[Literal["configured", "not-configured"]] + languages: NotRequired[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] + runner_type: NotRequired[Union[None, Literal["standard", "labeled"]]] + runner_label: NotRequired[Union[str, None]] + query_suite: NotRequired[Literal["default", "extended"]] + updated_at: NotRequired[Union[datetime, None]] + schedule: NotRequired[Union[None, Literal["weekly"]]] + + +__all__ = ("CodeScanningDefaultSetupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0236.py b/githubkit/versions/v2022_11_28/types/group_0236.py index e1c93e03b..8e432c42b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0236.py +++ b/githubkit/versions/v2022_11_28/types/group_0236.py @@ -9,16 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class CodespacesPermissionsCheckForDevcontainerType(TypedDict): - """Codespaces Permissions Check +class CodeScanningDefaultSetupUpdateType(TypedDict): + """CodeScanningDefaultSetupUpdate - Permission check result for a given devcontainer config. + Configuration for code scanning default setup. """ - accepted: bool - - -__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) + state: NotRequired[Literal["configured", "not-configured"]] + runner_type: NotRequired[Literal["standard", "labeled"]] + runner_label: NotRequired[Union[str, None]] + query_suite: NotRequired[Literal["default", "extended"]] + languages: NotRequired[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "python", + "ruby", + "swift", + ] + ] + ] + + +__all__ = ("CodeScanningDefaultSetupUpdateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0237.py b/githubkit/versions/v2022_11_28/types/group_0237.py index 4f781e975..f363fa4b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0237.py +++ b/githubkit/versions/v2022_11_28/types/group_0237.py @@ -9,30 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0056 import MinimalRepositoryType +class CodeScanningDefaultSetupUpdateResponseType(TypedDict): + """CodeScanningDefaultSetupUpdateResponse -class RepositoryInvitationType(TypedDict): - """Repository Invitation - - Repository invitations let you manage who you collaborate with. + You can use `run_url` to track the status of the run. This includes a property + status and conclusion. + You should not rely on this always being an actions workflow run object. """ - id: int - repository: MinimalRepositoryType - invitee: Union[None, SimpleUserType] - inviter: Union[None, SimpleUserType] - permissions: Literal["read", "write", "admin", "triage", "maintain"] - created_at: datetime - expired: NotRequired[bool] - url: str - html_url: str - node_id: str + run_id: NotRequired[int] + run_url: NotRequired[str] -__all__ = ("RepositoryInvitationType",) +__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0238.py b/githubkit/versions/v2022_11_28/types/group_0238.py index 10af54a9e..5a45d64e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0238.py +++ b/githubkit/versions/v2022_11_28/types/group_0238.py @@ -9,64 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class RepositoryCollaboratorPermissionType(TypedDict): - """Repository Collaborator Permission +class CodeScanningSarifsReceiptType(TypedDict): + """CodeScanningSarifsReceipt""" - Repository Collaborator Permission - """ + id: NotRequired[str] + url: NotRequired[str] - permission: str - role_name: str - user: Union[None, CollaboratorType] - -class CollaboratorType(TypedDict): - """Collaborator - - Collaborator - """ - - login: str - id: int - email: NotRequired[Union[str, None]] - name: NotRequired[Union[str, None]] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - permissions: NotRequired[CollaboratorPropPermissionsType] - role_name: str - user_view_type: NotRequired[str] - - -class CollaboratorPropPermissionsType(TypedDict): - """CollaboratorPropPermissions""" - - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] - admin: bool - - -__all__ = ( - "CollaboratorPropPermissionsType", - "CollaboratorType", - "RepositoryCollaboratorPermissionType", -) +__all__ = ("CodeScanningSarifsReceiptType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0239.py b/githubkit/versions/v2022_11_28/types/group_0239.py index e0169ea5e..3b46d219b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0239.py +++ b/githubkit/versions/v2022_11_28/types/group_0239.py @@ -9,58 +9,16 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0039 import ReactionRollupType +class CodeScanningSarifsStatusType(TypedDict): + """CodeScanningSarifsStatus""" -class CommitCommentType(TypedDict): - """Commit Comment + processing_status: NotRequired[Literal["pending", "complete", "failed"]] + analyses_url: NotRequired[Union[str, None]] + errors: NotRequired[Union[list[str], None]] - Commit Comment - """ - html_url: str - url: str - id: int - node_id: str - body: str - path: Union[str, None] - position: Union[int, None] - line: Union[int, None] - commit_id: str - user: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] - - -class TimelineCommitCommentedEventType(TypedDict): - """Timeline Commit Commented Event - - Timeline Commit Commented Event - """ - - event: NotRequired[Literal["commit_commented"]] - node_id: NotRequired[str] - commit_id: NotRequired[str] - comments: NotRequired[list[CommitCommentType]] - - -__all__ = ( - "CommitCommentType", - "TimelineCommitCommentedEventType", -) +__all__ = ("CodeScanningSarifsStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0240.py b/githubkit/versions/v2022_11_28/types/group_0240.py index 997250710..39746fa67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0240.py +++ b/githubkit/versions/v2022_11_28/types/group_0240.py @@ -9,28 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0028 import CodeSecurityConfigurationType -class BranchShortType(TypedDict): - """Branch Short - - Branch Short - """ - - name: str - commit: BranchShortPropCommitType - protected: bool +class CodeSecurityConfigurationForRepositoryType(TypedDict): + """CodeSecurityConfigurationForRepository -class BranchShortPropCommitType(TypedDict): - """BranchShortPropCommit""" - - sha: str - url: str - + Code security configuration associated with a repository and attachment status + """ -__all__ = ( - "BranchShortPropCommitType", - "BranchShortType", -) + status: NotRequired[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] + ] + configuration: NotRequired[CodeSecurityConfigurationType] + + +__all__ = ("CodeSecurityConfigurationForRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0241.py b/githubkit/versions/v2022_11_28/types/group_0241.py index 064aa0ae7..4480d357f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0241.py +++ b/githubkit/versions/v2022_11_28/types/group_0241.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class LinkType(TypedDict): - """Link +class CodeownersErrorsType(TypedDict): + """CODEOWNERS errors - Hypermedia Link + A list of errors found in a repo's CODEOWNERS file """ - href: str + errors: list[CodeownersErrorsPropErrorsItemsType] -__all__ = ("LinkType",) +class CodeownersErrorsPropErrorsItemsType(TypedDict): + """CodeownersErrorsPropErrorsItems""" + + line: int + column: int + source: NotRequired[str] + kind: str + suggestion: NotRequired[Union[str, None]] + message: str + path: str + + +__all__ = ( + "CodeownersErrorsPropErrorsItemsType", + "CodeownersErrorsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0242.py b/githubkit/versions/v2022_11_28/types/group_0242.py index fb94a06fc..e1c93e03b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0242.py +++ b/githubkit/versions/v2022_11_28/types/group_0242.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +class CodespacesPermissionsCheckForDevcontainerType(TypedDict): + """Codespaces Permissions Check -class AutoMergeType(TypedDict): - """Auto merge - - The status of auto merging a pull request. + Permission check result for a given devcontainer config. """ - enabled_by: SimpleUserType - merge_method: Literal["merge", "squash", "rebase"] - commit_title: Union[str, None] - commit_message: Union[str, None] + accepted: bool -__all__ = ("AutoMergeType",) +__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0243.py b/githubkit/versions/v2022_11_28/types/group_0243.py index 98e1e9862..efeaff1ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0243.py +++ b/githubkit/versions/v2022_11_28/types/group_0243.py @@ -13,80 +13,26 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0038 import MilestoneType -from .group_0082 import TeamType -from .group_0242 import AutoMergeType -from .group_0244 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType -from .group_0245 import PullRequestSimplePropLinksType +from .group_0003 import SimpleUserType +from .group_0057 import MinimalRepositoryType -class PullRequestSimpleType(TypedDict): - """Pull Request Simple +class RepositoryInvitationType(TypedDict): + """Repository Invitation - Pull Request Simple + Repository invitations let you manage who you collaborate with. """ - url: str id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: str - locked: bool - title: str - user: Union[None, SimpleUserType] - body: Union[str, None] - labels: list[PullRequestSimplePropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] + repository: MinimalRepositoryType + invitee: Union[None, SimpleUserType] + inviter: Union[None, SimpleUserType] + permissions: Literal["read", "write", "admin", "triage", "maintain"] created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] - requested_teams: NotRequired[Union[list[TeamType], None]] - head: PullRequestSimplePropHeadType - base: PullRequestSimplePropBaseType - links: PullRequestSimplePropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - - -class PullRequestSimplePropLabelsItemsType(TypedDict): - """PullRequestSimplePropLabelsItems""" - - id: int - node_id: str + expired: NotRequired[bool] url: str - name: str - description: Union[str, None] - color: str - default: bool + html_url: str + node_id: str -__all__ = ( - "PullRequestSimplePropLabelsItemsType", - "PullRequestSimpleType", -) +__all__ = ("RepositoryInvitationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0244.py b/githubkit/versions/v2022_11_28/types/group_0244.py index 4c416771c..10af54a9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0244.py +++ b/githubkit/versions/v2022_11_28/types/group_0244.py @@ -10,33 +10,63 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType +class RepositoryCollaboratorPermissionType(TypedDict): + """Repository Collaborator Permission -class PullRequestSimplePropHeadType(TypedDict): - """PullRequestSimplePropHead""" + Repository Collaborator Permission + """ - label: Union[str, None] - ref: str - repo: Union[None, RepositoryType] - sha: str - user: Union[None, SimpleUserType] + permission: str + role_name: str + user: Union[None, CollaboratorType] -class PullRequestSimplePropBaseType(TypedDict): - """PullRequestSimplePropBase""" +class CollaboratorType(TypedDict): + """Collaborator - label: str - ref: str - repo: RepositoryType - sha: str - user: Union[None, SimpleUserType] + Collaborator + """ + + login: str + id: int + email: NotRequired[Union[str, None]] + name: NotRequired[Union[str, None]] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + permissions: NotRequired[CollaboratorPropPermissionsType] + role_name: str + user_view_type: NotRequired[str] + + +class CollaboratorPropPermissionsType(TypedDict): + """CollaboratorPropPermissions""" + + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + admin: bool __all__ = ( - "PullRequestSimplePropBaseType", - "PullRequestSimplePropHeadType", + "CollaboratorPropPermissionsType", + "CollaboratorType", + "RepositoryCollaboratorPermissionType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0245.py b/githubkit/versions/v2022_11_28/types/group_0245.py index 122e69005..d449878f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0245.py +++ b/githubkit/versions/v2022_11_28/types/group_0245.py @@ -9,22 +9,58 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0241 import LinkType +from .group_0003 import SimpleUserType +from .group_0040 import ReactionRollupType -class PullRequestSimplePropLinksType(TypedDict): - """PullRequestSimplePropLinks""" +class CommitCommentType(TypedDict): + """Commit Comment - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + Commit Comment + """ + html_url: str + url: str + id: int + node_id: str + body: str + path: Union[str, None] + position: Union[int, None] + line: Union[int, None] + commit_id: str + user: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + reactions: NotRequired[ReactionRollupType] -__all__ = ("PullRequestSimplePropLinksType",) + +class TimelineCommitCommentedEventType(TypedDict): + """Timeline Commit Commented Event + + Timeline Commit Commented Event + """ + + event: NotRequired[Literal["commit_commented"]] + node_id: NotRequired[str] + commit_id: NotRequired[str] + comments: NotRequired[list[CommitCommentType]] + + +__all__ = ( + "CommitCommentType", + "TimelineCommitCommentedEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0246.py b/githubkit/versions/v2022_11_28/types/group_0246.py index db478a639..997250710 100644 --- a/githubkit/versions/v2022_11_28/types/group_0246.py +++ b/githubkit/versions/v2022_11_28/types/group_0246.py @@ -9,45 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0056 import MinimalRepositoryType +class BranchShortType(TypedDict): + """Branch Short -class CombinedCommitStatusType(TypedDict): - """Combined Commit Status - - Combined Commit Status + Branch Short """ - state: str - statuses: list[SimpleCommitStatusType] - sha: str - total_count: int - repository: MinimalRepositoryType - commit_url: str - url: str + name: str + commit: BranchShortPropCommitType + protected: bool -class SimpleCommitStatusType(TypedDict): - """Simple Commit Status""" +class BranchShortPropCommitType(TypedDict): + """BranchShortPropCommit""" - description: Union[str, None] - id: int - node_id: str - state: str - context: str - target_url: Union[str, None] - required: NotRequired[Union[bool, None]] - avatar_url: Union[str, None] + sha: str url: str - created_at: datetime - updated_at: datetime __all__ = ( - "CombinedCommitStatusType", - "SimpleCommitStatusType", + "BranchShortPropCommitType", + "BranchShortType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0247.py b/githubkit/versions/v2022_11_28/types/group_0247.py index 988ab1608..064aa0ae7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0247.py +++ b/githubkit/versions/v2022_11_28/types/group_0247.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +class LinkType(TypedDict): + """Link -class StatusType(TypedDict): - """Status - - The status of a commit. + Hypermedia Link """ - url: str - avatar_url: Union[str, None] - id: int - node_id: str - state: str - description: Union[str, None] - target_url: Union[str, None] - context: str - created_at: str - updated_at: str - creator: Union[None, SimpleUserType] + href: str -__all__ = ("StatusType",) +__all__ = ("LinkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0248.py b/githubkit/versions/v2022_11_28/types/group_0248.py index f53c8744c..ac1473211 100644 --- a/githubkit/versions/v2022_11_28/types/group_0248.py +++ b/githubkit/versions/v2022_11_28/types/group_0248.py @@ -9,49 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0018 import LicenseSimpleType -from .group_0111 import CodeOfConductSimpleType +from .group_0003 import SimpleUserType -class CommunityProfilePropFilesType(TypedDict): - """CommunityProfilePropFiles""" +class AutoMergeType(TypedDict): + """Auto merge - code_of_conduct: Union[None, CodeOfConductSimpleType] - code_of_conduct_file: Union[None, CommunityHealthFileType] - license_: Union[None, LicenseSimpleType] - contributing: Union[None, CommunityHealthFileType] - readme: Union[None, CommunityHealthFileType] - issue_template: Union[None, CommunityHealthFileType] - pull_request_template: Union[None, CommunityHealthFileType] - - -class CommunityHealthFileType(TypedDict): - """Community Health File""" - - url: str - html_url: str - - -class CommunityProfileType(TypedDict): - """Community Profile - - Community Profile + The status of auto merging a pull request. """ - health_percentage: int - description: Union[str, None] - documentation: Union[str, None] - files: CommunityProfilePropFilesType - updated_at: Union[datetime, None] - content_reports_enabled: NotRequired[bool] + enabled_by: SimpleUserType + merge_method: Literal["merge", "squash", "rebase"] + commit_title: Union[str, None] + commit_message: Union[str, None] -__all__ = ( - "CommunityHealthFileType", - "CommunityProfilePropFilesType", - "CommunityProfileType", -) +__all__ = ("AutoMergeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0249.py b/githubkit/versions/v2022_11_28/types/group_0249.py index 107ded969..9dfda0588 100644 --- a/githubkit/versions/v2022_11_28/types/group_0249.py +++ b/githubkit/versions/v2022_11_28/types/group_0249.py @@ -9,32 +9,84 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0203 import DiffEntryType -from .group_0204 import CommitType +from .group_0003 import SimpleUserType +from .group_0039 import MilestoneType +from .group_0087 import TeamType +from .group_0248 import AutoMergeType +from .group_0250 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType +from .group_0251 import PullRequestSimplePropLinksType -class CommitComparisonType(TypedDict): - """Commit Comparison +class PullRequestSimpleType(TypedDict): + """Pull Request Simple - Commit Comparison + Pull Request Simple """ url: str + id: int + node_id: str html_url: str - permalink_url: str diff_url: str patch_url: str - base_commit: CommitType - merge_base_commit: CommitType - status: Literal["diverged", "ahead", "behind", "identical"] - ahead_by: int - behind_by: int - total_commits: int - commits: list[CommitType] - files: NotRequired[list[DiffEntryType]] + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: str + locked: bool + title: str + user: Union[None, SimpleUserType] + body: Union[str, None] + labels: list[PullRequestSimplePropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamType], None]] + head: PullRequestSimplePropHeadType + base: PullRequestSimplePropBaseType + links: PullRequestSimplePropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] -__all__ = ("CommitComparisonType",) +class PullRequestSimplePropLabelsItemsType(TypedDict): + """PullRequestSimplePropLabelsItems""" + + id: int + node_id: str + url: str + name: str + description: Union[str, None] + color: str + default: bool + + +__all__ = ( + "PullRequestSimplePropLabelsItemsType", + "PullRequestSimpleType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0250.py b/githubkit/versions/v2022_11_28/types/group_0250.py index 9868fcf5d..1c03aef11 100644 --- a/githubkit/versions/v2022_11_28/types/group_0250.py +++ b/githubkit/versions/v2022_11_28/types/group_0250.py @@ -10,63 +10,33 @@ from __future__ import annotations from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class ContentTreeType(TypedDict): - """Content Tree - Content Tree - """ +class PullRequestSimplePropHeadType(TypedDict): + """PullRequestSimplePropHead""" - type: str - size: int - name: str - path: str + label: Union[str, None] + ref: str + repo: Union[None, RepositoryType] sha: str - content: NotRequired[str] - url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - entries: NotRequired[list[ContentTreePropEntriesItemsType]] - links: ContentTreePropLinksType + user: Union[None, SimpleUserType] -class ContentTreePropLinksType(TypedDict): - """ContentTreePropLinks""" +class PullRequestSimplePropBaseType(TypedDict): + """PullRequestSimplePropBase""" - git: Union[str, None] - html: Union[str, None] - self_: str - - -class ContentTreePropEntriesItemsType(TypedDict): - """ContentTreePropEntriesItems""" - - type: str - size: int - name: str - path: str + label: str + ref: str + repo: RepositoryType sha: str - url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentTreePropEntriesItemsPropLinksType - - -class ContentTreePropEntriesItemsPropLinksType(TypedDict): - """ContentTreePropEntriesItemsPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str + user: Union[None, SimpleUserType] __all__ = ( - "ContentTreePropEntriesItemsPropLinksType", - "ContentTreePropEntriesItemsType", - "ContentTreePropLinksType", - "ContentTreeType", + "PullRequestSimplePropBaseType", + "PullRequestSimplePropHeadType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0251.py b/githubkit/versions/v2022_11_28/types/group_0251.py index 74ee6a6e4..66fac91da 100644 --- a/githubkit/versions/v2022_11_28/types/group_0251.py +++ b/githubkit/versions/v2022_11_28/types/group_0251.py @@ -9,35 +9,22 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0247 import LinkType -class ContentDirectoryItemsType(TypedDict): - """ContentDirectoryItems""" - type: Literal["dir", "file", "submodule", "symlink"] - size: int - name: str - path: str - content: NotRequired[str] - sha: str - url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentDirectoryItemsPropLinksType +class PullRequestSimplePropLinksType(TypedDict): + """PullRequestSimplePropLinks""" + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType -class ContentDirectoryItemsPropLinksType(TypedDict): - """ContentDirectoryItemsPropLinks""" - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "ContentDirectoryItemsPropLinksType", - "ContentDirectoryItemsType", -) +__all__ = ("PullRequestSimplePropLinksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0252.py b/githubkit/versions/v2022_11_28/types/group_0252.py index 2ad4b4ca8..1511b4be4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0252.py +++ b/githubkit/versions/v2022_11_28/types/group_0252.py @@ -9,41 +9,45 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0057 import MinimalRepositoryType -class ContentFileType(TypedDict): - """Content File - Content File +class CombinedCommitStatusType(TypedDict): + """Combined Commit Status + + Combined Commit Status """ - type: Literal["file"] - encoding: str - size: int - name: str - path: str - content: str + state: str + statuses: list[SimpleCommitStatusType] sha: str + total_count: int + repository: MinimalRepositoryType + commit_url: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentFilePropLinksType - target: NotRequired[str] - submodule_git_url: NotRequired[str] -class ContentFilePropLinksType(TypedDict): - """ContentFilePropLinks""" +class SimpleCommitStatusType(TypedDict): + """Simple Commit Status""" - git: Union[str, None] - html: Union[str, None] - self_: str + description: Union[str, None] + id: int + node_id: str + state: str + context: str + target_url: Union[str, None] + required: NotRequired[Union[bool, None]] + avatar_url: Union[str, None] + url: str + created_at: datetime + updated_at: datetime __all__ = ( - "ContentFilePropLinksType", - "ContentFileType", + "CombinedCommitStatusType", + "SimpleCommitStatusType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0253.py b/githubkit/versions/v2022_11_28/types/group_0253.py index 0998eda68..13b770a02 100644 --- a/githubkit/versions/v2022_11_28/types/group_0253.py +++ b/githubkit/versions/v2022_11_28/types/group_0253.py @@ -9,38 +9,29 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class ContentSymlinkType(TypedDict): - """Symlink Content - An object describing a symlink +class StatusType(TypedDict): + """Status + + The status of a commit. """ - type: Literal["symlink"] - target: str - size: int - name: str - path: str - sha: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentSymlinkPropLinksType - - -class ContentSymlinkPropLinksType(TypedDict): - """ContentSymlinkPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "ContentSymlinkPropLinksType", - "ContentSymlinkType", -) + avatar_url: Union[str, None] + id: int + node_id: str + state: str + description: Union[str, None] + target_url: Union[str, None] + context: str + created_at: str + updated_at: str + creator: Union[None, SimpleUserType] + + +__all__ = ("StatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0254.py b/githubkit/versions/v2022_11_28/types/group_0254.py index b80d6984e..c029291fd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0254.py +++ b/githubkit/versions/v2022_11_28/types/group_0254.py @@ -9,38 +9,49 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0019 import LicenseSimpleType +from .group_0116 import CodeOfConductSimpleType -class ContentSubmoduleType(TypedDict): - """Submodule Content - An object describing a submodule - """ +class CommunityProfilePropFilesType(TypedDict): + """CommunityProfilePropFiles""" + + code_of_conduct: Union[None, CodeOfConductSimpleType] + code_of_conduct_file: Union[None, CommunityHealthFileType] + license_: Union[None, LicenseSimpleType] + contributing: Union[None, CommunityHealthFileType] + readme: Union[None, CommunityHealthFileType] + issue_template: Union[None, CommunityHealthFileType] + pull_request_template: Union[None, CommunityHealthFileType] + + +class CommunityHealthFileType(TypedDict): + """Community Health File""" - type: Literal["submodule"] - submodule_git_url: str - size: int - name: str - path: str - sha: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentSubmodulePropLinksType + html_url: str + +class CommunityProfileType(TypedDict): + """Community Profile -class ContentSubmodulePropLinksType(TypedDict): - """ContentSubmodulePropLinks""" + Community Profile + """ - git: Union[str, None] - html: Union[str, None] - self_: str + health_percentage: int + description: Union[str, None] + documentation: Union[str, None] + files: CommunityProfilePropFilesType + updated_at: Union[datetime, None] + content_reports_enabled: NotRequired[bool] __all__ = ( - "ContentSubmodulePropLinksType", - "ContentSubmoduleType", + "CommunityHealthFileType", + "CommunityProfilePropFilesType", + "CommunityProfileType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0255.py b/githubkit/versions/v2022_11_28/types/group_0255.py index 78a4cf43d..21241e3b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0255.py +++ b/githubkit/versions/v2022_11_28/types/group_0255.py @@ -9,107 +9,32 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0209 import DiffEntryType +from .group_0210 import CommitType -class FileCommitType(TypedDict): - """File Commit - File Commit - """ - - content: Union[FileCommitPropContentType, None] - commit: FileCommitPropCommitType - - -class FileCommitPropContentType(TypedDict): - """FileCommitPropContent""" - - name: NotRequired[str] - path: NotRequired[str] - sha: NotRequired[str] - size: NotRequired[int] - url: NotRequired[str] - html_url: NotRequired[str] - git_url: NotRequired[str] - download_url: NotRequired[str] - type: NotRequired[str] - links: NotRequired[FileCommitPropContentPropLinksType] - - -class FileCommitPropContentPropLinksType(TypedDict): - """FileCommitPropContentPropLinks""" - - self_: NotRequired[str] - git: NotRequired[str] - html: NotRequired[str] - - -class FileCommitPropCommitType(TypedDict): - """FileCommitPropCommit""" - - sha: NotRequired[str] - node_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - author: NotRequired[FileCommitPropCommitPropAuthorType] - committer: NotRequired[FileCommitPropCommitPropCommitterType] - message: NotRequired[str] - tree: NotRequired[FileCommitPropCommitPropTreeType] - parents: NotRequired[list[FileCommitPropCommitPropParentsItemsType]] - verification: NotRequired[FileCommitPropCommitPropVerificationType] - - -class FileCommitPropCommitPropAuthorType(TypedDict): - """FileCommitPropCommitPropAuthor""" - - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropCommitterType(TypedDict): - """FileCommitPropCommitPropCommitter""" - - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropTreeType(TypedDict): - """FileCommitPropCommitPropTree""" - - url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropParentsItemsType(TypedDict): - """FileCommitPropCommitPropParentsItems""" - - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropVerificationType(TypedDict): - """FileCommitPropCommitPropVerification""" - - verified: NotRequired[bool] - reason: NotRequired[str] - signature: NotRequired[Union[str, None]] - payload: NotRequired[Union[str, None]] - verified_at: NotRequired[Union[str, None]] +class CommitComparisonType(TypedDict): + """Commit Comparison + Commit Comparison + """ -__all__ = ( - "FileCommitPropCommitPropAuthorType", - "FileCommitPropCommitPropCommitterType", - "FileCommitPropCommitPropParentsItemsType", - "FileCommitPropCommitPropTreeType", - "FileCommitPropCommitPropVerificationType", - "FileCommitPropCommitType", - "FileCommitPropContentPropLinksType", - "FileCommitPropContentType", - "FileCommitType", -) + url: str + html_url: str + permalink_url: str + diff_url: str + patch_url: str + base_commit: CommitType + merge_base_commit: CommitType + status: Literal["diverged", "ahead", "behind", "identical"] + ahead_by: int + behind_by: int + total_commits: int + commits: list[CommitType] + files: NotRequired[list[DiffEntryType]] + + +__all__ = ("CommitComparisonType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0256.py b/githubkit/versions/v2022_11_28/types/group_0256.py index 82a56dc68..9868fcf5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0256.py +++ b/githubkit/versions/v2022_11_28/types/group_0256.py @@ -9,53 +9,64 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class RepositoryRuleViolationErrorType(TypedDict): - """RepositoryRuleViolationError +class ContentTreeType(TypedDict): + """Content Tree - Repository rule violation was detected + Content Tree """ - message: NotRequired[str] - documentation_url: NotRequired[str] - status: NotRequired[str] - metadata: NotRequired[RepositoryRuleViolationErrorPropMetadataType] + type: str + size: int + name: str + path: str + sha: str + content: NotRequired[str] + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + entries: NotRequired[list[ContentTreePropEntriesItemsType]] + links: ContentTreePropLinksType -class RepositoryRuleViolationErrorPropMetadataType(TypedDict): - """RepositoryRuleViolationErrorPropMetadata""" +class ContentTreePropLinksType(TypedDict): + """ContentTreePropLinks""" - secret_scanning: NotRequired[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningType - ] + git: Union[str, None] + html: Union[str, None] + self_: str -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningType(TypedDict): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" +class ContentTreePropEntriesItemsType(TypedDict): + """ContentTreePropEntriesItems""" - bypass_placeholders: NotRequired[ - list[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType - ] - ] + type: str + size: int + name: str + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentTreePropEntriesItemsPropLinksType -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType( - TypedDict -): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders - Items - """ +class ContentTreePropEntriesItemsPropLinksType(TypedDict): + """ContentTreePropEntriesItemsPropLinks""" - placeholder_id: NotRequired[str] - token_type: NotRequired[str] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", - "RepositoryRuleViolationErrorPropMetadataType", - "RepositoryRuleViolationErrorType", + "ContentTreePropEntriesItemsPropLinksType", + "ContentTreePropEntriesItemsType", + "ContentTreePropLinksType", + "ContentTreeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0257.py b/githubkit/versions/v2022_11_28/types/group_0257.py index 0bcf70515..74ee6a6e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0257.py +++ b/githubkit/versions/v2022_11_28/types/group_0257.py @@ -9,38 +9,35 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ContributorType(TypedDict): - """Contributor - - Contributor - """ - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[Union[str, None]] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: str - site_admin: NotRequired[bool] - contributions: int - email: NotRequired[str] - name: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("ContributorType",) +class ContentDirectoryItemsType(TypedDict): + """ContentDirectoryItems""" + + type: Literal["dir", "file", "submodule", "symlink"] + size: int + name: str + path: str + content: NotRequired[str] + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentDirectoryItemsPropLinksType + + +class ContentDirectoryItemsPropLinksType(TypedDict): + """ContentDirectoryItemsPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentDirectoryItemsPropLinksType", + "ContentDirectoryItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0258.py b/githubkit/versions/v2022_11_28/types/group_0258.py index e3745d47a..2ad4b4ca8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0258.py +++ b/githubkit/versions/v2022_11_28/types/group_0258.py @@ -9,42 +9,41 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0033 import DependabotAlertSecurityVulnerabilityType -from .group_0034 import DependabotAlertSecurityAdvisoryType -from .group_0259 import DependabotAlertPropDependencyType +class ContentFileType(TypedDict): + """Content File -class DependabotAlertType(TypedDict): - """DependabotAlert - - A Dependabot alert. + Content File """ - number: int - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] - dependency: DependabotAlertPropDependencyType - security_advisory: DependabotAlertSecurityAdvisoryType - security_vulnerability: DependabotAlertSecurityVulnerabilityType + type: Literal["file"] + encoding: str + size: int + name: str + path: str + content: str + sha: str url: str - html_url: str - created_at: datetime - updated_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[None, SimpleUserType] - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] - dismissed_comment: Union[str, None] - fixed_at: Union[datetime, None] - auto_dismissed_at: NotRequired[Union[datetime, None]] - - -__all__ = ("DependabotAlertType",) + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentFilePropLinksType + target: NotRequired[str] + submodule_git_url: NotRequired[str] + + +class ContentFilePropLinksType(TypedDict): + """ContentFilePropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentFilePropLinksType", + "ContentFileType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0259.py b/githubkit/versions/v2022_11_28/types/group_0259.py index 1a5c9ca87..0998eda68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0259.py +++ b/githubkit/versions/v2022_11_28/types/group_0259.py @@ -10,20 +10,37 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0032 import DependabotAlertPackageType +class ContentSymlinkType(TypedDict): + """Symlink Content -class DependabotAlertPropDependencyType(TypedDict): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + An object describing a symlink """ - package: NotRequired[DependabotAlertPackageType] - manifest_path: NotRequired[str] - scope: NotRequired[Union[None, Literal["development", "runtime"]]] + type: Literal["symlink"] + target: str + size: int + name: str + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentSymlinkPropLinksType + + +class ContentSymlinkPropLinksType(TypedDict): + """ContentSymlinkPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str -__all__ = ("DependabotAlertPropDependencyType",) +__all__ = ( + "ContentSymlinkPropLinksType", + "ContentSymlinkType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0260.py b/githubkit/versions/v2022_11_28/types/group_0260.py index b061be26e..b80d6984e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0260.py +++ b/githubkit/versions/v2022_11_28/types/group_0260.py @@ -13,31 +13,34 @@ from typing_extensions import TypedDict -class DependencyGraphDiffItemsType(TypedDict): - """DependencyGraphDiffItems""" +class ContentSubmoduleType(TypedDict): + """Submodule Content - change_type: Literal["added", "removed"] - manifest: str - ecosystem: str + An object describing a submodule + """ + + type: Literal["submodule"] + submodule_git_url: str + size: int name: str - version: str - package_url: Union[str, None] - license_: Union[str, None] - source_repository_url: Union[str, None] - vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItemsType] - scope: Literal["unknown", "runtime", "development"] + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentSubmodulePropLinksType -class DependencyGraphDiffItemsPropVulnerabilitiesItemsType(TypedDict): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" +class ContentSubmodulePropLinksType(TypedDict): + """ContentSubmodulePropLinks""" - severity: str - advisory_ghsa_id: str - advisory_summary: str - advisory_url: str + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", - "DependencyGraphDiffItemsType", + "ContentSubmodulePropLinksType", + "ContentSubmoduleType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0261.py b/githubkit/versions/v2022_11_28/types/group_0261.py index 489a3ce99..78a4cf43d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0261.py +++ b/githubkit/versions/v2022_11_28/types/group_0261.py @@ -9,81 +9,107 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class DependencyGraphSpdxSbomType(TypedDict): - """Dependency Graph SPDX SBOM +class FileCommitType(TypedDict): + """File Commit - A schema for the SPDX JSON format returned by the Dependency Graph. + File Commit """ - sbom: DependencyGraphSpdxSbomPropSbomType + content: Union[FileCommitPropContentType, None] + commit: FileCommitPropCommitType -class DependencyGraphSpdxSbomPropSbomType(TypedDict): - """DependencyGraphSpdxSbomPropSbom""" +class FileCommitPropContentType(TypedDict): + """FileCommitPropContent""" - spdxid: str - spdx_version: str - comment: NotRequired[str] - creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType - name: str - data_license: str - document_namespace: str - packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] - relationships: NotRequired[ - list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType] - ] + name: NotRequired[str] + path: NotRequired[str] + sha: NotRequired[str] + size: NotRequired[int] + url: NotRequired[str] + html_url: NotRequired[str] + git_url: NotRequired[str] + download_url: NotRequired[str] + type: NotRequired[str] + links: NotRequired[FileCommitPropContentPropLinksType] + + +class FileCommitPropContentPropLinksType(TypedDict): + """FileCommitPropContentPropLinks""" + self_: NotRequired[str] + git: NotRequired[str] + html: NotRequired[str] -class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - created: str - creators: list[str] +class FileCommitPropCommitType(TypedDict): + """FileCommitPropCommit""" + sha: NotRequired[str] + node_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + author: NotRequired[FileCommitPropCommitPropAuthorType] + committer: NotRequired[FileCommitPropCommitPropCommitterType] + message: NotRequired[str] + tree: NotRequired[FileCommitPropCommitPropTreeType] + parents: NotRequired[list[FileCommitPropCommitPropParentsItemsType]] + verification: NotRequired[FileCommitPropCommitPropVerificationType] -class DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" - relationship_type: NotRequired[str] - spdx_element_id: NotRequired[str] - related_spdx_element: NotRequired[str] +class FileCommitPropCommitPropAuthorType(TypedDict): + """FileCommitPropCommitPropAuthor""" + + date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" +class FileCommitPropCommitPropCommitterType(TypedDict): + """FileCommitPropCommitPropCommitter""" - spdxid: NotRequired[str] + date: NotRequired[str] name: NotRequired[str] - version_info: NotRequired[str] - download_location: NotRequired[str] - files_analyzed: NotRequired[bool] - license_concluded: NotRequired[str] - license_declared: NotRequired[str] - supplier: NotRequired[str] - copyright_text: NotRequired[str] - external_refs: NotRequired[ - list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType] - ] + email: NotRequired[str] + + +class FileCommitPropCommitPropTreeType(TypedDict): + """FileCommitPropCommitPropTree""" + + url: NotRequired[str] + sha: NotRequired[str] + + +class FileCommitPropCommitPropParentsItemsType(TypedDict): + """FileCommitPropCommitPropParentsItems""" + + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType( - TypedDict -): - """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" +class FileCommitPropCommitPropVerificationType(TypedDict): + """FileCommitPropCommitPropVerification""" - reference_category: str - reference_locator: str - reference_type: str + verified: NotRequired[bool] + reason: NotRequired[str] + signature: NotRequired[Union[str, None]] + payload: NotRequired[Union[str, None]] + verified_at: NotRequired[Union[str, None]] __all__ = ( - "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", - "DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType", - "DependencyGraphSpdxSbomPropSbomType", - "DependencyGraphSpdxSbomType", + "FileCommitPropCommitPropAuthorType", + "FileCommitPropCommitPropCommitterType", + "FileCommitPropCommitPropParentsItemsType", + "FileCommitPropCommitPropTreeType", + "FileCommitPropCommitPropVerificationType", + "FileCommitPropCommitType", + "FileCommitPropContentPropLinksType", + "FileCommitPropContentType", + "FileCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0262.py b/githubkit/versions/v2022_11_28/types/group_0262.py index 75968e9b1..82a56dc68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0262.py +++ b/githubkit/versions/v2022_11_28/types/group_0262.py @@ -9,15 +9,53 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing_extensions import NotRequired, TypedDict -MetadataType: TypeAlias = dict[str, Any] -"""metadata -User-defined metadata to store domain-specific information limited to 8 keys -with scalar values. -""" +class RepositoryRuleViolationErrorType(TypedDict): + """RepositoryRuleViolationError + + Repository rule violation was detected + """ + + message: NotRequired[str] + documentation_url: NotRequired[str] + status: NotRequired[str] + metadata: NotRequired[RepositoryRuleViolationErrorPropMetadataType] + + +class RepositoryRuleViolationErrorPropMetadataType(TypedDict): + """RepositoryRuleViolationErrorPropMetadata""" + + secret_scanning: NotRequired[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanningType + ] + + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningType(TypedDict): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" + + bypass_placeholders: NotRequired[ + list[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType + ] + ] + + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType( + TypedDict +): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders + Items + """ + + placeholder_id: NotRequired[str] + token_type: NotRequired[str] -__all__ = ("MetadataType",) +__all__ = ( + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", + "RepositoryRuleViolationErrorPropMetadataType", + "RepositoryRuleViolationErrorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0263.py b/githubkit/versions/v2022_11_28/types/group_0263.py index 79b5f1b42..0bcf70515 100644 --- a/githubkit/versions/v2022_11_28/types/group_0263.py +++ b/githubkit/versions/v2022_11_28/types/group_0263.py @@ -9,20 +9,38 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0262 import MetadataType - -class DependencyType(TypedDict): - """Dependency""" - - package_url: NotRequired[str] - metadata: NotRequired[MetadataType] - relationship: NotRequired[Literal["direct", "indirect"]] - scope: NotRequired[Literal["runtime", "development"]] - dependencies: NotRequired[list[str]] - - -__all__ = ("DependencyType",) +class ContributorType(TypedDict): + """Contributor + + Contributor + """ + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[Union[str, None]] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: str + site_admin: NotRequired[bool] + contributions: int + email: NotRequired[str] + name: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("ContributorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0264.py b/githubkit/versions/v2022_11_28/types/group_0264.py index 2dd2a4ba3..46fefbf24 100644 --- a/githubkit/versions/v2022_11_28/types/group_0264.py +++ b/githubkit/versions/v2022_11_28/types/group_0264.py @@ -9,36 +9,42 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0262 import MetadataType - - -class ManifestType(TypedDict): - """Manifest""" - - name: str - file: NotRequired[ManifestPropFileType] - metadata: NotRequired[MetadataType] - resolved: NotRequired[ManifestPropResolvedType] - - -class ManifestPropFileType(TypedDict): - """ManifestPropFile""" - - source_location: NotRequired[str] - - -ManifestPropResolvedType: TypeAlias = dict[str, Any] -"""ManifestPropResolved - -A collection of resolved package dependencies. -""" - - -__all__ = ( - "ManifestPropFileType", - "ManifestPropResolvedType", - "ManifestType", -) +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0034 import DependabotAlertSecurityVulnerabilityType +from .group_0035 import DependabotAlertSecurityAdvisoryType +from .group_0265 import DependabotAlertPropDependencyType + + +class DependabotAlertType(TypedDict): + """DependabotAlert + + A Dependabot alert. + """ + + number: int + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] + dependency: DependabotAlertPropDependencyType + security_advisory: DependabotAlertSecurityAdvisoryType + security_vulnerability: DependabotAlertSecurityVulnerabilityType + url: str + html_url: str + created_at: datetime + updated_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[None, SimpleUserType] + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] + dismissed_comment: Union[str, None] + fixed_at: Union[datetime, None] + auto_dismissed_at: NotRequired[Union[datetime, None]] + + +__all__ = ("DependabotAlertType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0265.py b/githubkit/versions/v2022_11_28/types/group_0265.py index c466f1985..5c2e8de69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0265.py +++ b/githubkit/versions/v2022_11_28/types/group_0265.py @@ -9,59 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0262 import MetadataType +from .group_0033 import DependabotAlertPackageType -class SnapshotType(TypedDict): - """snapshot +class DependabotAlertPropDependencyType(TypedDict): + """DependabotAlertPropDependency - Create a new snapshot of a repository's dependencies. + Details for the vulnerable dependency. """ - version: int - job: SnapshotPropJobType - sha: str - ref: str - detector: SnapshotPropDetectorType - metadata: NotRequired[MetadataType] - manifests: NotRequired[SnapshotPropManifestsType] - scanned: datetime + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] -class SnapshotPropJobType(TypedDict): - """SnapshotPropJob""" - - id: str - correlator: str - html_url: NotRequired[str] - - -class SnapshotPropDetectorType(TypedDict): - """SnapshotPropDetector - - A description of the detector used. - """ - - name: str - version: str - url: str - - -SnapshotPropManifestsType: TypeAlias = dict[str, Any] -"""SnapshotPropManifests - -A collection of package manifests, which are a collection of related -dependencies declared in a file or representing a logical group of dependencies. -""" - - -__all__ = ( - "SnapshotPropDetectorType", - "SnapshotPropJobType", - "SnapshotPropManifestsType", - "SnapshotType", -) +__all__ = ("DependabotAlertPropDependencyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0266.py b/githubkit/versions/v2022_11_28/types/group_0266.py index 0672fcd03..b061be26e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0266.py +++ b/githubkit/versions/v2022_11_28/types/group_0266.py @@ -9,37 +9,35 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType - - -class DeploymentStatusType(TypedDict): - """Deployment Status - - The status of a deployment. - """ - - url: str - id: int - node_id: str - state: Literal[ - "error", "failure", "inactive", "pending", "success", "queued", "in_progress" - ] - creator: Union[None, SimpleUserType] - description: str - environment: NotRequired[str] - target_url: str - created_at: datetime - updated_at: datetime - deployment_url: str - repository_url: str - environment_url: NotRequired[str] - log_url: NotRequired[str] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -__all__ = ("DeploymentStatusType",) +from typing_extensions import TypedDict + + +class DependencyGraphDiffItemsType(TypedDict): + """DependencyGraphDiffItems""" + + change_type: Literal["added", "removed"] + manifest: str + ecosystem: str + name: str + version: str + package_url: Union[str, None] + license_: Union[str, None] + source_repository_url: Union[str, None] + vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItemsType] + scope: Literal["unknown", "runtime", "development"] + + +class DependencyGraphDiffItemsPropVulnerabilitiesItemsType(TypedDict): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" + + severity: str + advisory_ghsa_id: str + advisory_summary: str + advisory_url: str + + +__all__ = ( + "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", + "DependencyGraphDiffItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0267.py b/githubkit/versions/v2022_11_28/types/group_0267.py index 2b9241c94..489a3ce99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0267.py +++ b/githubkit/versions/v2022_11_28/types/group_0267.py @@ -9,18 +9,81 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class DeploymentBranchPolicySettingsType(TypedDict): - """DeploymentBranchPolicySettings +class DependencyGraphSpdxSbomType(TypedDict): + """Dependency Graph SPDX SBOM - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. + A schema for the SPDX JSON format returned by the Dependency Graph. """ - protected_branches: bool - custom_branch_policies: bool + sbom: DependencyGraphSpdxSbomPropSbomType -__all__ = ("DeploymentBranchPolicySettingsType",) +class DependencyGraphSpdxSbomPropSbomType(TypedDict): + """DependencyGraphSpdxSbomPropSbom""" + + spdxid: str + spdx_version: str + comment: NotRequired[str] + creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType + name: str + data_license: str + document_namespace: str + packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] + relationships: NotRequired[ + list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType] + ] + + +class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" + + created: str + creators: list[str] + + +class DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" + + relationship_type: NotRequired[str] + spdx_element_id: NotRequired[str] + related_spdx_element: NotRequired[str] + + +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" + + spdxid: NotRequired[str] + name: NotRequired[str] + version_info: NotRequired[str] + download_location: NotRequired[str] + files_analyzed: NotRequired[bool] + license_concluded: NotRequired[str] + license_declared: NotRequired[str] + supplier: NotRequired[str] + copyright_text: NotRequired[str] + external_refs: NotRequired[ + list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType] + ] + + +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType( + TypedDict +): + """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" + + reference_category: str + reference_locator: str + reference_type: str + + +__all__ = ( + "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", + "DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType", + "DependencyGraphSpdxSbomPropSbomType", + "DependencyGraphSpdxSbomType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0268.py b/githubkit/versions/v2022_11_28/types/group_0268.py index 92303fcf8..75968e9b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0268.py +++ b/githubkit/versions/v2022_11_28/types/group_0268.py @@ -9,68 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import TypeAlias -from .group_0267 import DeploymentBranchPolicySettingsType -from .group_0269 import EnvironmentPropProtectionRulesItemsAnyof1Type +MetadataType: TypeAlias = dict[str, Any] +"""metadata - -class EnvironmentType(TypedDict): - """Environment - - Details of a deployment environment - """ - - id: int - node_id: str - name: str - url: str - html_url: str - created_at: datetime - updated_at: datetime - protection_rules: NotRequired[ - list[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0Type, - EnvironmentPropProtectionRulesItemsAnyof1Type, - EnvironmentPropProtectionRulesItemsAnyof2Type, - ] - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] - - -class EnvironmentPropProtectionRulesItemsAnyof0Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof0""" - - id: int - node_id: str - type: str - wait_timer: NotRequired[int] - - -class EnvironmentPropProtectionRulesItemsAnyof2Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof2""" - - id: int - node_id: str - type: str - - -class ReposOwnerRepoEnvironmentsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsGetResponse200""" - - total_count: NotRequired[int] - environments: NotRequired[list[EnvironmentType]] +User-defined metadata to store domain-specific information limited to 8 keys +with scalar values. +""" -__all__ = ( - "EnvironmentPropProtectionRulesItemsAnyof0Type", - "EnvironmentPropProtectionRulesItemsAnyof2Type", - "EnvironmentType", - "ReposOwnerRepoEnvironmentsGetResponse200Type", -) +__all__ = ("MetadataType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0269.py b/githubkit/versions/v2022_11_28/types/group_0269.py index 2579b5bfd..4d3b8f471 100644 --- a/githubkit/versions/v2022_11_28/types/group_0269.py +++ b/githubkit/versions/v2022_11_28/types/group_0269.py @@ -9,21 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0270 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType +from .group_0268 import MetadataType -class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1""" +class DependencyType(TypedDict): + """Dependency""" - id: int - node_id: str - prevent_self_review: NotRequired[bool] - type: str - reviewers: NotRequired[ - list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] - ] + package_url: NotRequired[str] + metadata: NotRequired[MetadataType] + relationship: NotRequired[Literal["direct", "indirect"]] + scope: NotRequired[Literal["runtime", "development"]] + dependencies: NotRequired[list[str]] -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) +__all__ = ("DependencyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0270.py b/githubkit/versions/v2022_11_28/types/group_0270.py index b6030c830..627ac51e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0270.py +++ b/githubkit/versions/v2022_11_28/types/group_0270.py @@ -9,18 +9,36 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0082 import TeamType +from .group_0268 import MetadataType -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class ManifestType(TypedDict): + """Manifest""" - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] + name: str + file: NotRequired[ManifestPropFileType] + metadata: NotRequired[MetadataType] + resolved: NotRequired[ManifestPropResolvedType] -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) +class ManifestPropFileType(TypedDict): + """ManifestPropFile""" + + source_location: NotRequired[str] + + +ManifestPropResolvedType: TypeAlias = dict[str, Any] +"""ManifestPropResolved + +A collection of resolved package dependencies. +""" + + +__all__ = ( + "ManifestPropFileType", + "ManifestPropResolvedType", + "ManifestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0271.py b/githubkit/versions/v2022_11_28/types/group_0271.py index 35c7c1f2a..ed0c719da 100644 --- a/githubkit/versions/v2022_11_28/types/group_0271.py +++ b/githubkit/versions/v2022_11_28/types/group_0271.py @@ -9,15 +9,59 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0268 import MetadataType -class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): - """Deployment branch and tag policy name pattern""" + +class SnapshotType(TypedDict): + """snapshot + + Create a new snapshot of a repository's dependencies. + """ + + version: int + job: SnapshotPropJobType + sha: str + ref: str + detector: SnapshotPropDetectorType + metadata: NotRequired[MetadataType] + manifests: NotRequired[SnapshotPropManifestsType] + scanned: datetime + + +class SnapshotPropJobType(TypedDict): + """SnapshotPropJob""" + + id: str + correlator: str + html_url: NotRequired[str] + + +class SnapshotPropDetectorType(TypedDict): + """SnapshotPropDetector + + A description of the detector used. + """ name: str - type: NotRequired[Literal["branch", "tag"]] + version: str + url: str + + +SnapshotPropManifestsType: TypeAlias = dict[str, Any] +"""SnapshotPropManifests + +A collection of package manifests, which are a collection of related +dependencies declared in a file or representing a logical group of dependencies. +""" -__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) +__all__ = ( + "SnapshotPropDetectorType", + "SnapshotPropJobType", + "SnapshotPropManifestsType", + "SnapshotType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0272.py b/githubkit/versions/v2022_11_28/types/group_0272.py index 784015c57..8e3d71848 100644 --- a/githubkit/versions/v2022_11_28/types/group_0272.py +++ b/githubkit/versions/v2022_11_28/types/group_0272.py @@ -9,13 +9,37 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class DeploymentBranchPolicyNamePatternType(TypedDict): - """Deployment branch policy name pattern""" - - name: str - - -__all__ = ("DeploymentBranchPolicyNamePatternType",) +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType + + +class DeploymentStatusType(TypedDict): + """Deployment Status + + The status of a deployment. + """ + + url: str + id: int + node_id: str + state: Literal[ + "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + ] + creator: Union[None, SimpleUserType] + description: str + environment: NotRequired[str] + target_url: str + created_at: datetime + updated_at: datetime + deployment_url: str + repository_url: str + environment_url: NotRequired[str] + log_url: NotRequired[str] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +__all__ = ("DeploymentStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0273.py b/githubkit/versions/v2022_11_28/types/group_0273.py index 55685e749..2b9241c94 100644 --- a/githubkit/versions/v2022_11_28/types/group_0273.py +++ b/githubkit/versions/v2022_11_28/types/group_0273.py @@ -12,16 +12,15 @@ from typing_extensions import TypedDict -class CustomDeploymentRuleAppType(TypedDict): - """Custom deployment protection rule app +class DeploymentBranchPolicySettingsType(TypedDict): + """DeploymentBranchPolicySettings - A GitHub App that is providing a custom deployment protection rule. + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. """ - id: int - slug: str - integration_url: str - node_id: str + protected_branches: bool + custom_branch_policies: bool -__all__ = ("CustomDeploymentRuleAppType",) +__all__ = ("DeploymentBranchPolicySettingsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0274.py b/githubkit/versions/v2022_11_28/types/group_0274.py index 9b93372bc..0575b6e46 100644 --- a/githubkit/versions/v2022_11_28/types/group_0274.py +++ b/githubkit/versions/v2022_11_28/types/group_0274.py @@ -9,37 +9,68 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0273 import CustomDeploymentRuleAppType +from .group_0273 import DeploymentBranchPolicySettingsType +from .group_0275 import EnvironmentPropProtectionRulesItemsAnyof1Type -class DeploymentProtectionRuleType(TypedDict): - """Deployment protection rule +class EnvironmentType(TypedDict): + """Environment - Deployment protection rule + Details of a deployment environment """ id: int node_id: str - enabled: bool - app: CustomDeploymentRuleAppType + name: str + url: str + html_url: str + created_at: datetime + updated_at: datetime + protection_rules: NotRequired[ + list[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0Type, + EnvironmentPropProtectionRulesItemsAnyof1Type, + EnvironmentPropProtectionRulesItemsAnyof2Type, + ] + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] + + +class EnvironmentPropProtectionRulesItemsAnyof0Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof0""" + id: int + node_id: str + type: str + wait_timer: NotRequired[int] -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 - Examples: - {'$ref': '#/components/examples/deployment-protection-rules'} - """ +class EnvironmentPropProtectionRulesItemsAnyof2Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int + node_id: str + type: str + + +class ReposOwnerRepoEnvironmentsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsGetResponse200""" total_count: NotRequired[int] - custom_deployment_protection_rules: NotRequired[list[DeploymentProtectionRuleType]] + environments: NotRequired[list[EnvironmentType]] __all__ = ( - "DeploymentProtectionRuleType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", + "EnvironmentPropProtectionRulesItemsAnyof0Type", + "EnvironmentPropProtectionRulesItemsAnyof2Type", + "EnvironmentType", + "ReposOwnerRepoEnvironmentsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0275.py b/githubkit/versions/v2022_11_28/types/group_0275.py index deb8a4c9a..3e0e99628 100644 --- a/githubkit/versions/v2022_11_28/types/group_0275.py +++ b/githubkit/versions/v2022_11_28/types/group_0275.py @@ -9,17 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0276 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType -class ShortBlobType(TypedDict): - """Short Blob - Short Blob - """ +class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1""" - url: str - sha: str + id: int + node_id: str + prevent_self_review: NotRequired[bool] + type: str + reviewers: NotRequired[ + list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] + ] -__all__ = ("ShortBlobType",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0276.py b/githubkit/versions/v2022_11_28/types/group_0276.py index 7145ff7f3..430924cec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0276.py +++ b/githubkit/versions/v2022_11_28/types/group_0276.py @@ -9,23 +9,18 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0087 import TeamType -class BlobType(TypedDict): - """Blob - Blob - """ +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - content: str - encoding: str - url: str - sha: str - size: Union[int, None] - node_id: str - highlighted_content: NotRequired[str] + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] -__all__ = ("BlobType",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0277.py b/githubkit/versions/v2022_11_28/types/group_0277.py index 576ecf512..35c7c1f2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0277.py +++ b/githubkit/versions/v2022_11_28/types/group_0277.py @@ -9,81 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class GitCommitType(TypedDict): - """Git Commit +class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): + """Deployment branch and tag policy name pattern""" - Low-level Git commit operations within a repository - """ - - sha: str - node_id: str - url: str - author: GitCommitPropAuthorType - committer: GitCommitPropCommitterType - message: str - tree: GitCommitPropTreeType - parents: list[GitCommitPropParentsItemsType] - verification: GitCommitPropVerificationType - html_url: str - - -class GitCommitPropAuthorType(TypedDict): - """GitCommitPropAuthor - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str - - -class GitCommitPropCommitterType(TypedDict): - """GitCommitPropCommitter - - Identifying information for the git-user - """ - - date: datetime - email: str name: str + type: NotRequired[Literal["branch", "tag"]] -class GitCommitPropTreeType(TypedDict): - """GitCommitPropTree""" - - sha: str - url: str - - -class GitCommitPropParentsItemsType(TypedDict): - """GitCommitPropParentsItems""" - - sha: str - url: str - html_url: str - - -class GitCommitPropVerificationType(TypedDict): - """GitCommitPropVerification""" - - verified: bool - reason: str - signature: Union[str, None] - payload: Union[str, None] - verified_at: NotRequired[Union[str, None]] - - -__all__ = ( - "GitCommitPropAuthorType", - "GitCommitPropCommitterType", - "GitCommitPropParentsItemsType", - "GitCommitPropTreeType", - "GitCommitPropVerificationType", - "GitCommitType", -) +__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0278.py b/githubkit/versions/v2022_11_28/types/group_0278.py index 5f8d78e7c..784015c57 100644 --- a/githubkit/versions/v2022_11_28/types/group_0278.py +++ b/githubkit/versions/v2022_11_28/types/group_0278.py @@ -12,27 +12,10 @@ from typing_extensions import TypedDict -class GitRefType(TypedDict): - """Git Reference +class DeploymentBranchPolicyNamePatternType(TypedDict): + """Deployment branch policy name pattern""" - Git references within a repository - """ + name: str - ref: str - node_id: str - url: str - object_: GitRefPropObjectType - -class GitRefPropObjectType(TypedDict): - """GitRefPropObject""" - - type: str - sha: str - url: str - - -__all__ = ( - "GitRefPropObjectType", - "GitRefType", -) +__all__ = ("DeploymentBranchPolicyNamePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0279.py b/githubkit/versions/v2022_11_28/types/group_0279.py index cca7ec143..55685e749 100644 --- a/githubkit/versions/v2022_11_28/types/group_0279.py +++ b/githubkit/versions/v2022_11_28/types/group_0279.py @@ -9,45 +9,19 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0202 import VerificationType +class CustomDeploymentRuleAppType(TypedDict): + """Custom deployment protection rule app -class GitTagType(TypedDict): - """Git Tag - - Metadata for a Git tag + A GitHub App that is providing a custom deployment protection rule. """ + id: int + slug: str + integration_url: str node_id: str - tag: str - sha: str - url: str - message: str - tagger: GitTagPropTaggerType - object_: GitTagPropObjectType - verification: NotRequired[VerificationType] - - -class GitTagPropTaggerType(TypedDict): - """GitTagPropTagger""" - - date: str - email: str - name: str - - -class GitTagPropObjectType(TypedDict): - """GitTagPropObject""" - - sha: str - type: str - url: str -__all__ = ( - "GitTagPropObjectType", - "GitTagPropTaggerType", - "GitTagType", -) +__all__ = ("CustomDeploymentRuleAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0280.py b/githubkit/versions/v2022_11_28/types/group_0280.py index 5076029bf..36b547aa2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0280.py +++ b/githubkit/versions/v2022_11_28/types/group_0280.py @@ -11,31 +11,35 @@ from typing_extensions import NotRequired, TypedDict +from .group_0279 import CustomDeploymentRuleAppType -class GitTreeType(TypedDict): - """Git Tree - The hierarchy between files in a Git repository. +class DeploymentProtectionRuleType(TypedDict): + """Deployment protection rule + + Deployment protection rule """ - sha: str - url: str - truncated: bool - tree: list[GitTreePropTreeItemsType] + id: int + node_id: str + enabled: bool + app: CustomDeploymentRuleAppType + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -class GitTreePropTreeItemsType(TypedDict): - """GitTreePropTreeItems""" + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} + """ - path: NotRequired[str] - mode: NotRequired[str] - type: NotRequired[str] - sha: NotRequired[str] - size: NotRequired[int] - url: NotRequired[str] + total_count: NotRequired[int] + custom_deployment_protection_rules: NotRequired[list[DeploymentProtectionRuleType]] __all__ = ( - "GitTreePropTreeItemsType", - "GitTreeType", + "DeploymentProtectionRuleType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0281.py b/githubkit/versions/v2022_11_28/types/group_0281.py index 2763aab9e..deb8a4c9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0281.py +++ b/githubkit/versions/v2022_11_28/types/group_0281.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class HookResponseType(TypedDict): - """Hook Response""" +class ShortBlobType(TypedDict): + """Short Blob - code: Union[int, None] - status: Union[str, None] - message: Union[str, None] + Short Blob + """ + url: str + sha: str -__all__ = ("HookResponseType",) + +__all__ = ("ShortBlobType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0282.py b/githubkit/versions/v2022_11_28/types/group_0282.py index ad1d73974..7145ff7f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0282.py +++ b/githubkit/versions/v2022_11_28/types/group_0282.py @@ -9,32 +9,23 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0009 import WebhookConfigType -from .group_0281 import HookResponseType +class BlobType(TypedDict): + """Blob -class HookType(TypedDict): - """Webhook - - Webhooks for repositories. + Blob """ - type: str - id: int - name: str - active: bool - events: list[str] - config: WebhookConfigType - updated_at: datetime - created_at: datetime + content: str + encoding: str url: str - test_url: str - ping_url: str - deliveries_url: NotRequired[str] - last_response: HookResponseType + sha: str + size: Union[int, None] + node_id: str + highlighted_content: NotRequired[str] -__all__ = ("HookType",) +__all__ = ("BlobType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0283.py b/githubkit/versions/v2022_11_28/types/group_0283.py index 991490339..cb7d784df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0283.py +++ b/githubkit/versions/v2022_11_28/types/group_0283.py @@ -9,67 +9,81 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import TypedDict -class ImportType(TypedDict): - """Import +class GitCommitType(TypedDict): + """Git Commit - A repository import from an external source. + Low-level Git commit operations within a repository """ - vcs: Union[str, None] - use_lfs: NotRequired[bool] - vcs_url: str - svc_root: NotRequired[str] - tfvc_project: NotRequired[str] - status: Literal[ - "auth", - "error", - "none", - "detecting", - "choose", - "auth_failed", - "importing", - "mapping", - "waiting_to_push", - "pushing", - "complete", - "setup", - "unknown", - "detection_found_multiple", - "detection_found_nothing", - "detection_needs_auth", - ] - status_text: NotRequired[Union[str, None]] - failed_step: NotRequired[Union[str, None]] - error_message: NotRequired[Union[str, None]] - import_percent: NotRequired[Union[int, None]] - commit_count: NotRequired[Union[int, None]] - push_percent: NotRequired[Union[int, None]] - has_large_files: NotRequired[bool] - large_files_size: NotRequired[int] - large_files_count: NotRequired[int] - project_choices: NotRequired[list[ImportPropProjectChoicesItemsType]] - message: NotRequired[str] - authors_count: NotRequired[Union[int, None]] + sha: str + node_id: str url: str + author: GitCommitPropAuthorType + committer: GitCommitPropCommitterType + message: str + tree: GitCommitPropTreeType + parents: list[GitCommitPropParentsItemsType] + verification: GitCommitPropVerificationType html_url: str - authors_url: str - repository_url: str - svn_root: NotRequired[str] -class ImportPropProjectChoicesItemsType(TypedDict): - """ImportPropProjectChoicesItems""" +class GitCommitPropAuthorType(TypedDict): + """GitCommitPropAuthor - vcs: NotRequired[str] - tfvc_project: NotRequired[str] - human_name: NotRequired[str] + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class GitCommitPropCommitterType(TypedDict): + """GitCommitPropCommitter + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class GitCommitPropTreeType(TypedDict): + """GitCommitPropTree""" + + sha: str + url: str + + +class GitCommitPropParentsItemsType(TypedDict): + """GitCommitPropParentsItems""" + + sha: str + url: str + html_url: str + + +class GitCommitPropVerificationType(TypedDict): + """GitCommitPropVerification""" + + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] + verified_at: Union[str, None] __all__ = ( - "ImportPropProjectChoicesItemsType", - "ImportType", + "GitCommitPropAuthorType", + "GitCommitPropCommitterType", + "GitCommitPropParentsItemsType", + "GitCommitPropTreeType", + "GitCommitPropVerificationType", + "GitCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0284.py b/githubkit/versions/v2022_11_28/types/group_0284.py index a760ba55a..5f8d78e7c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0284.py +++ b/githubkit/versions/v2022_11_28/types/group_0284.py @@ -12,19 +12,27 @@ from typing_extensions import TypedDict -class PorterAuthorType(TypedDict): - """Porter Author +class GitRefType(TypedDict): + """Git Reference - Porter Author + Git references within a repository """ - id: int - remote_id: str - remote_name: str - email: str - name: str + ref: str + node_id: str url: str - import_url: str + object_: GitRefPropObjectType -__all__ = ("PorterAuthorType",) +class GitRefPropObjectType(TypedDict): + """GitRefPropObject""" + + type: str + sha: str + url: str + + +__all__ = ( + "GitRefPropObjectType", + "GitRefType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0285.py b/githubkit/versions/v2022_11_28/types/group_0285.py index ae1425148..066a053fe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0285.py +++ b/githubkit/versions/v2022_11_28/types/group_0285.py @@ -9,19 +9,45 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0208 import VerificationType -class PorterLargeFileType(TypedDict): - """Porter Large File - Porter Large File +class GitTagType(TypedDict): + """Git Tag + + Metadata for a Git tag """ - ref_name: str - path: str - oid: str - size: int + node_id: str + tag: str + sha: str + url: str + message: str + tagger: GitTagPropTaggerType + object_: GitTagPropObjectType + verification: NotRequired[VerificationType] + + +class GitTagPropTaggerType(TypedDict): + """GitTagPropTagger""" + + date: str + email: str + name: str + + +class GitTagPropObjectType(TypedDict): + """GitTagPropObject""" + + sha: str + type: str + url: str -__all__ = ("PorterLargeFileType",) +__all__ = ( + "GitTagPropObjectType", + "GitTagPropTaggerType", + "GitTagType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0286.py b/githubkit/versions/v2022_11_28/types/group_0286.py index 2fbac686d..5076029bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0286.py +++ b/githubkit/versions/v2022_11_28/types/group_0286.py @@ -9,114 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0040 import IssueType -from .group_0082 import TeamType +class GitTreeType(TypedDict): + """Git Tree -class IssueEventType(TypedDict): - """Issue Event - - Issue Event - """ - - id: int - node_id: str - url: str - actor: Union[None, SimpleUserType] - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: datetime - issue: NotRequired[Union[None, IssueType]] - label: NotRequired[IssueEventLabelType] - assignee: NotRequired[Union[None, SimpleUserType]] - assigner: NotRequired[Union[None, SimpleUserType]] - review_requester: NotRequired[Union[None, SimpleUserType]] - requested_reviewer: NotRequired[Union[None, SimpleUserType]] - requested_team: NotRequired[TeamType] - dismissed_review: NotRequired[IssueEventDismissedReviewType] - milestone: NotRequired[IssueEventMilestoneType] - project_card: NotRequired[IssueEventProjectCardType] - rename: NotRequired[IssueEventRenameType] - author_association: NotRequired[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] - lock_reason: NotRequired[Union[str, None]] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -class IssueEventLabelType(TypedDict): - """Issue Event Label - - Issue Event Label - """ - - name: Union[str, None] - color: Union[str, None] - - -class IssueEventDismissedReviewType(TypedDict): - """Issue Event Dismissed Review""" - - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[Union[str, None]] - - -class IssueEventMilestoneType(TypedDict): - """Issue Event Milestone - - Issue Event Milestone - """ - - title: str - - -class IssueEventProjectCardType(TypedDict): - """Issue Event Project Card - - Issue Event Project Card + The hierarchy between files in a Git repository. """ + sha: str url: str - id: int - project_url: str - project_id: int - column_name: str - previous_column_name: NotRequired[str] + truncated: bool + tree: list[GitTreePropTreeItemsType] -class IssueEventRenameType(TypedDict): - """Issue Event Rename - - Issue Event Rename - """ +class GitTreePropTreeItemsType(TypedDict): + """GitTreePropTreeItems""" - from_: str - to: str + path: NotRequired[str] + mode: NotRequired[str] + type: NotRequired[str] + sha: NotRequired[str] + size: NotRequired[int] + url: NotRequired[str] __all__ = ( - "IssueEventDismissedReviewType", - "IssueEventLabelType", - "IssueEventMilestoneType", - "IssueEventProjectCardType", - "IssueEventRenameType", - "IssueEventType", + "GitTreePropTreeItemsType", + "GitTreeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0287.py b/githubkit/versions/v2022_11_28/types/group_0287.py index 51e8be06f..2763aab9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0287.py +++ b/githubkit/versions/v2022_11_28/types/group_0287.py @@ -9,39 +9,16 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +class HookResponseType(TypedDict): + """Hook Response""" -class LabeledIssueEventType(TypedDict): - """Labeled Issue Event + code: Union[int, None] + status: Union[str, None] + message: Union[str, None] - Labeled Issue Event - """ - id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["labeled"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - label: LabeledIssueEventPropLabelType - - -class LabeledIssueEventPropLabelType(TypedDict): - """LabeledIssueEventPropLabel""" - - name: str - color: str - - -__all__ = ( - "LabeledIssueEventPropLabelType", - "LabeledIssueEventType", -) +__all__ = ("HookResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0288.py b/githubkit/versions/v2022_11_28/types/group_0288.py index eb5f86f1e..de278d8fe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0288.py +++ b/githubkit/versions/v2022_11_28/types/group_0288.py @@ -9,39 +9,32 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0011 import WebhookConfigType +from .group_0287 import HookResponseType -class UnlabeledIssueEventType(TypedDict): - """Unlabeled Issue Event +class HookType(TypedDict): + """Webhook - Unlabeled Issue Event + Webhooks for repositories. """ + type: str id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["unlabeled"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - label: UnlabeledIssueEventPropLabelType - - -class UnlabeledIssueEventPropLabelType(TypedDict): - """UnlabeledIssueEventPropLabel""" - name: str - color: str + active: bool + events: list[str] + config: WebhookConfigType + updated_at: datetime + created_at: datetime + url: str + test_url: str + ping_url: str + deliveries_url: NotRequired[str] + last_response: HookResponseType -__all__ = ( - "UnlabeledIssueEventPropLabelType", - "UnlabeledIssueEventType", -) +__all__ = ("HookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0289.py b/githubkit/versions/v2022_11_28/types/group_0289.py index d8f7b2faa..991490339 100644 --- a/githubkit/versions/v2022_11_28/types/group_0289.py +++ b/githubkit/versions/v2022_11_28/types/group_0289.py @@ -9,30 +9,67 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +class ImportType(TypedDict): + """Import -class AssignedIssueEventType(TypedDict): - """Assigned Issue Event - - Assigned Issue Event + A repository import from an external source. """ - id: int - node_id: str + vcs: Union[str, None] + use_lfs: NotRequired[bool] + vcs_url: str + svc_root: NotRequired[str] + tfvc_project: NotRequired[str] + status: Literal[ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth", + ] + status_text: NotRequired[Union[str, None]] + failed_step: NotRequired[Union[str, None]] + error_message: NotRequired[Union[str, None]] + import_percent: NotRequired[Union[int, None]] + commit_count: NotRequired[Union[int, None]] + push_percent: NotRequired[Union[int, None]] + has_large_files: NotRequired[bool] + large_files_size: NotRequired[int] + large_files_count: NotRequired[int] + project_choices: NotRequired[list[ImportPropProjectChoicesItemsType]] + message: NotRequired[str] + authors_count: NotRequired[Union[int, None]] url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + html_url: str + authors_url: str + repository_url: str + svn_root: NotRequired[str] + + +class ImportPropProjectChoicesItemsType(TypedDict): + """ImportPropProjectChoicesItems""" + + vcs: NotRequired[str] + tfvc_project: NotRequired[str] + human_name: NotRequired[str] -__all__ = ("AssignedIssueEventType",) +__all__ = ( + "ImportPropProjectChoicesItemsType", + "ImportType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0290.py b/githubkit/versions/v2022_11_28/types/group_0290.py index cadc4836a..a760ba55a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0290.py +++ b/githubkit/versions/v2022_11_28/types/group_0290.py @@ -9,30 +9,22 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +class PorterAuthorType(TypedDict): + """Porter Author -class UnassignedIssueEventType(TypedDict): - """Unassigned Issue Event - - Unassigned Issue Event + Porter Author """ id: int - node_id: str + remote_id: str + remote_name: str + email: str + name: str url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + import_url: str -__all__ = ("UnassignedIssueEventType",) +__all__ = ("PorterAuthorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0291.py b/githubkit/versions/v2022_11_28/types/group_0291.py index 7d121f5d5..ae1425148 100644 --- a/githubkit/versions/v2022_11_28/types/group_0291.py +++ b/githubkit/versions/v2022_11_28/types/group_0291.py @@ -9,38 +9,19 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +class PorterLargeFileType(TypedDict): + """Porter Large File -class MilestonedIssueEventType(TypedDict): - """Milestoned Issue Event - - Milestoned Issue Event + Porter Large File """ - id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["milestoned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - milestone: MilestonedIssueEventPropMilestoneType - - -class MilestonedIssueEventPropMilestoneType(TypedDict): - """MilestonedIssueEventPropMilestone""" - - title: str + ref_name: str + path: str + oid: str + size: int -__all__ = ( - "MilestonedIssueEventPropMilestoneType", - "MilestonedIssueEventType", -) +__all__ = ("PorterLargeFileType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0292.py b/githubkit/versions/v2022_11_28/types/group_0292.py index f228c3e87..1f30a9fd1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0292.py +++ b/githubkit/versions/v2022_11_28/types/group_0292.py @@ -9,38 +9,114 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0041 import IssueType +from .group_0087 import TeamType -class DemilestonedIssueEventType(TypedDict): - """Demilestoned Issue Event +class IssueEventType(TypedDict): + """Issue Event - Demilestoned Issue Event + Issue Event """ id: int node_id: str url: str - actor: SimpleUserType - event: Literal["demilestoned"] + actor: Union[None, SimpleUserType] + event: str commit_id: Union[str, None] commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - milestone: DemilestonedIssueEventPropMilestoneType + created_at: datetime + issue: NotRequired[Union[None, IssueType]] + label: NotRequired[IssueEventLabelType] + assignee: NotRequired[Union[None, SimpleUserType]] + assigner: NotRequired[Union[None, SimpleUserType]] + review_requester: NotRequired[Union[None, SimpleUserType]] + requested_reviewer: NotRequired[Union[None, SimpleUserType]] + requested_team: NotRequired[TeamType] + dismissed_review: NotRequired[IssueEventDismissedReviewType] + milestone: NotRequired[IssueEventMilestoneType] + project_card: NotRequired[IssueEventProjectCardType] + rename: NotRequired[IssueEventRenameType] + author_association: NotRequired[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] + lock_reason: NotRequired[Union[str, None]] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] -class DemilestonedIssueEventPropMilestoneType(TypedDict): - """DemilestonedIssueEventPropMilestone""" +class IssueEventLabelType(TypedDict): + """Issue Event Label + + Issue Event Label + """ + + name: Union[str, None] + color: Union[str, None] + + +class IssueEventDismissedReviewType(TypedDict): + """Issue Event Dismissed Review""" + + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[Union[str, None]] + + +class IssueEventMilestoneType(TypedDict): + """Issue Event Milestone + + Issue Event Milestone + """ title: str +class IssueEventProjectCardType(TypedDict): + """Issue Event Project Card + + Issue Event Project Card + """ + + url: str + id: int + project_url: str + project_id: int + column_name: str + previous_column_name: NotRequired[str] + + +class IssueEventRenameType(TypedDict): + """Issue Event Rename + + Issue Event Rename + """ + + from_: str + to: str + + __all__ = ( - "DemilestonedIssueEventPropMilestoneType", - "DemilestonedIssueEventType", + "IssueEventDismissedReviewType", + "IssueEventLabelType", + "IssueEventMilestoneType", + "IssueEventProjectCardType", + "IssueEventRenameType", + "IssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0293.py b/githubkit/versions/v2022_11_28/types/group_0293.py index 4cabd06cf..e030b2d8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0293.py +++ b/githubkit/versions/v2022_11_28/types/group_0293.py @@ -12,36 +12,36 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class RenamedIssueEventType(TypedDict): - """Renamed Issue Event +class LabeledIssueEventType(TypedDict): + """Labeled Issue Event - Renamed Issue Event + Labeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["renamed"] + event: Literal["labeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - rename: RenamedIssueEventPropRenameType + label: LabeledIssueEventPropLabelType -class RenamedIssueEventPropRenameType(TypedDict): - """RenamedIssueEventPropRename""" +class LabeledIssueEventPropLabelType(TypedDict): + """LabeledIssueEventPropLabel""" - from_: str - to: str + name: str + color: str __all__ = ( - "RenamedIssueEventPropRenameType", - "RenamedIssueEventType", + "LabeledIssueEventPropLabelType", + "LabeledIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0294.py b/githubkit/versions/v2022_11_28/types/group_0294.py index 2eee952e6..94fd5f2f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0294.py +++ b/githubkit/versions/v2022_11_28/types/group_0294.py @@ -10,31 +10,38 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0082 import TeamType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class ReviewRequestedIssueEventType(TypedDict): - """Review Requested Issue Event +class UnlabeledIssueEventType(TypedDict): + """Unlabeled Issue Event - Review Requested Issue Event + Unlabeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_requested"] + event: Literal["unlabeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + label: UnlabeledIssueEventPropLabelType -__all__ = ("ReviewRequestedIssueEventType",) +class UnlabeledIssueEventPropLabelType(TypedDict): + """UnlabeledIssueEventPropLabel""" + + name: str + color: str + + +__all__ = ( + "UnlabeledIssueEventPropLabelType", + "UnlabeledIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0295.py b/githubkit/versions/v2022_11_28/types/group_0295.py index 63aab3e49..735f4766c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0295.py +++ b/githubkit/versions/v2022_11_28/types/group_0295.py @@ -9,32 +9,30 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0082 import TeamType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class ReviewRequestRemovedIssueEventType(TypedDict): - """Review Request Removed Issue Event +class AssignedIssueEventType(TypedDict): + """Assigned Issue Event - Review Request Removed Issue Event + Assigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_request_removed"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + performed_via_github_app: Union[IntegrationType, None] + assignee: SimpleUserType + assigner: SimpleUserType -__all__ = ("ReviewRequestRemovedIssueEventType",) +__all__ = ("AssignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0296.py b/githubkit/versions/v2022_11_28/types/group_0296.py index f98461c20..cee4c2513 100644 --- a/githubkit/versions/v2022_11_28/types/group_0296.py +++ b/githubkit/versions/v2022_11_28/types/group_0296.py @@ -9,41 +9,30 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class ReviewDismissedIssueEventType(TypedDict): - """Review Dismissed Issue Event +class UnassignedIssueEventType(TypedDict): + """Unassigned Issue Event - Review Dismissed Issue Event + Unassigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_dismissed"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType + assignee: SimpleUserType + assigner: SimpleUserType -class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): - """ReviewDismissedIssueEventPropDismissedReview""" - - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[str] - - -__all__ = ( - "ReviewDismissedIssueEventPropDismissedReviewType", - "ReviewDismissedIssueEventType", -) +__all__ = ("UnassignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0297.py b/githubkit/versions/v2022_11_28/types/group_0297.py index 70705da71..2b6b9a914 100644 --- a/githubkit/versions/v2022_11_28/types/group_0297.py +++ b/githubkit/versions/v2022_11_28/types/group_0297.py @@ -12,26 +12,35 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class LockedIssueEventType(TypedDict): - """Locked Issue Event +class MilestonedIssueEventType(TypedDict): + """Milestoned Issue Event - Locked Issue Event + Milestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["locked"] + event: Literal["milestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - lock_reason: Union[str, None] + milestone: MilestonedIssueEventPropMilestoneType -__all__ = ("LockedIssueEventType",) +class MilestonedIssueEventPropMilestoneType(TypedDict): + """MilestonedIssueEventPropMilestone""" + + title: str + + +__all__ = ( + "MilestonedIssueEventPropMilestoneType", + "MilestonedIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0298.py b/githubkit/versions/v2022_11_28/types/group_0298.py index 4ffacf3d5..dfaf3aff4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0298.py +++ b/githubkit/versions/v2022_11_28/types/group_0298.py @@ -10,42 +10,37 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class AddedToProjectIssueEventType(TypedDict): - """Added to Project Issue Event +class DemilestonedIssueEventType(TypedDict): + """Demilestoned Issue Event - Added to Project Issue Event + Demilestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["added_to_project"] + event: Literal["demilestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] + milestone: DemilestonedIssueEventPropMilestoneType -class AddedToProjectIssueEventPropProjectCardType(TypedDict): - """AddedToProjectIssueEventPropProjectCard""" +class DemilestonedIssueEventPropMilestoneType(TypedDict): + """DemilestonedIssueEventPropMilestone""" - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] + title: str __all__ = ( - "AddedToProjectIssueEventPropProjectCardType", - "AddedToProjectIssueEventType", + "DemilestonedIssueEventPropMilestoneType", + "DemilestonedIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0299.py b/githubkit/versions/v2022_11_28/types/group_0299.py index cab6932ec..6d9cdf5e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0299.py +++ b/githubkit/versions/v2022_11_28/types/group_0299.py @@ -10,42 +10,38 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class MovedColumnInProjectIssueEventType(TypedDict): - """Moved Column in Project Issue Event +class RenamedIssueEventType(TypedDict): + """Renamed Issue Event - Moved Column in Project Issue Event + Renamed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["moved_columns_in_project"] + event: Literal["renamed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] + rename: RenamedIssueEventPropRenameType -class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): - """MovedColumnInProjectIssueEventPropProjectCard""" +class RenamedIssueEventPropRenameType(TypedDict): + """RenamedIssueEventPropRename""" - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] + from_: str + to: str __all__ = ( - "MovedColumnInProjectIssueEventPropProjectCardType", - "MovedColumnInProjectIssueEventType", + "RenamedIssueEventPropRenameType", + "RenamedIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0300.py b/githubkit/versions/v2022_11_28/types/group_0300.py index 113d28a97..129680e4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0300.py +++ b/githubkit/versions/v2022_11_28/types/group_0300.py @@ -12,40 +12,29 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0087 import TeamType -class RemovedFromProjectIssueEventType(TypedDict): - """Removed from Project Issue Event +class ReviewRequestedIssueEventType(TypedDict): + """Review Requested Issue Event - Removed from Project Issue Event + Review Requested Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["removed_from_project"] + event: Literal["review_requested"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[RemovedFromProjectIssueEventPropProjectCardType] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): - """RemovedFromProjectIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "RemovedFromProjectIssueEventPropProjectCardType", - "RemovedFromProjectIssueEventType", -) +__all__ = ("ReviewRequestedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0301.py b/githubkit/versions/v2022_11_28/types/group_0301.py index d9489c04a..35a353d2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0301.py +++ b/githubkit/versions/v2022_11_28/types/group_0301.py @@ -12,40 +12,29 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0087 import TeamType -class ConvertedNoteToIssueIssueEventType(TypedDict): - """Converted Note to Issue Issue Event +class ReviewRequestRemovedIssueEventType(TypedDict): + """Review Request Removed Issue Event - Converted Note to Issue Issue Event + Review Request Removed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["converted_note_to_issue"] + event: Literal["review_request_removed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[IntegrationType, None] - project_card: NotRequired[ConvertedNoteToIssueIssueEventPropProjectCardType] + performed_via_github_app: Union[None, IntegrationType, None] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): - """ConvertedNoteToIssueIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "ConvertedNoteToIssueIssueEventPropProjectCardType", - "ConvertedNoteToIssueIssueEventType", -) +__all__ = ("ReviewRequestRemovedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0302.py b/githubkit/versions/v2022_11_28/types/group_0302.py index 784c988ac..160c5a57c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0302.py +++ b/githubkit/versions/v2022_11_28/types/group_0302.py @@ -9,46 +9,41 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0039 import ReactionRollupType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineCommentEventType(TypedDict): - """Timeline Comment Event +class ReviewDismissedIssueEventType(TypedDict): + """Review Dismissed Issue Event - Timeline Comment Event + Review Dismissed Issue Event """ - event: Literal["commented"] - actor: SimpleUserType id: int node_id: str url: str - body: NotRequired[str] - body_text: NotRequired[str] - body_html: NotRequired[str] - html_url: str - user: SimpleUserType - created_at: datetime - updated_at: datetime - issue_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TimelineCommentEventType",) + actor: SimpleUserType + event: Literal["review_dismissed"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType + + +class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): + """ReviewDismissedIssueEventPropDismissedReview""" + + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[str] + + +__all__ = ( + "ReviewDismissedIssueEventPropDismissedReviewType", + "ReviewDismissedIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0303.py b/githubkit/versions/v2022_11_28/types/group_0303.py index 851b0fb57..1c8f2b944 100644 --- a/githubkit/versions/v2022_11_28/types/group_0303.py +++ b/githubkit/versions/v2022_11_28/types/group_0303.py @@ -9,25 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0304 import TimelineCrossReferencedEventPropSourceType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineCrossReferencedEventType(TypedDict): - """Timeline Cross Referenced Event +class LockedIssueEventType(TypedDict): + """Locked Issue Event - Timeline Cross Referenced Event + Locked Issue Event """ - event: Literal["cross-referenced"] - actor: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - source: TimelineCrossReferencedEventPropSourceType + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["locked"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + lock_reason: Union[str, None] -__all__ = ("TimelineCrossReferencedEventType",) +__all__ = ("LockedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0304.py b/githubkit/versions/v2022_11_28/types/group_0304.py index 298533afe..c1191415d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0304.py +++ b/githubkit/versions/v2022_11_28/types/group_0304.py @@ -9,16 +9,43 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineCrossReferencedEventPropSourceType(TypedDict): - """TimelineCrossReferencedEventPropSource""" +class AddedToProjectIssueEventType(TypedDict): + """Added to Project Issue Event - type: NotRequired[str] - issue: NotRequired[IssueType] + Added to Project Issue Event + """ + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["added_to_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] -__all__ = ("TimelineCrossReferencedEventPropSourceType",) + +class AddedToProjectIssueEventPropProjectCardType(TypedDict): + """AddedToProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "AddedToProjectIssueEventPropProjectCardType", + "AddedToProjectIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0305.py b/githubkit/versions/v2022_11_28/types/group_0305.py index f60fa98ce..c8c8ecbcf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0305.py +++ b/githubkit/versions/v2022_11_28/types/group_0305.py @@ -9,82 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineCommittedEventType(TypedDict): - """Timeline Committed Event - Timeline Committed Event - """ - - event: NotRequired[Literal["committed"]] - sha: str - node_id: str - url: str - author: TimelineCommittedEventPropAuthorType - committer: TimelineCommittedEventPropCommitterType - message: str - tree: TimelineCommittedEventPropTreeType - parents: list[TimelineCommittedEventPropParentsItemsType] - verification: TimelineCommittedEventPropVerificationType - html_url: str - - -class TimelineCommittedEventPropAuthorType(TypedDict): - """TimelineCommittedEventPropAuthor - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str +class MovedColumnInProjectIssueEventType(TypedDict): + """Moved Column in Project Issue Event - -class TimelineCommittedEventPropCommitterType(TypedDict): - """TimelineCommittedEventPropCommitter - - Identifying information for the git-user + Moved Column in Project Issue Event """ - date: datetime - email: str - name: str - - -class TimelineCommittedEventPropTreeType(TypedDict): - """TimelineCommittedEventPropTree""" - - sha: str + id: int + node_id: str url: str + actor: SimpleUserType + event: Literal["moved_columns_in_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] -class TimelineCommittedEventPropParentsItemsType(TypedDict): - """TimelineCommittedEventPropParentsItems""" +class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): + """MovedColumnInProjectIssueEventPropProjectCard""" - sha: str + id: int url: str - html_url: str - - -class TimelineCommittedEventPropVerificationType(TypedDict): - """TimelineCommittedEventPropVerification""" - - verified: bool - reason: str - signature: Union[str, None] - payload: Union[str, None] - verified_at: NotRequired[Union[str, None]] + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] __all__ = ( - "TimelineCommittedEventPropAuthorType", - "TimelineCommittedEventPropCommitterType", - "TimelineCommittedEventPropParentsItemsType", - "TimelineCommittedEventPropTreeType", - "TimelineCommittedEventPropVerificationType", - "TimelineCommittedEventType", + "MovedColumnInProjectIssueEventPropProjectCardType", + "MovedColumnInProjectIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0306.py b/githubkit/versions/v2022_11_28/types/group_0306.py index ae1aa5bee..8616df3d4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0306.py +++ b/githubkit/versions/v2022_11_28/types/group_0306.py @@ -9,66 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineReviewedEventType(TypedDict): - """Timeline Reviewed Event +class RemovedFromProjectIssueEventType(TypedDict): + """Removed from Project Issue Event - Timeline Reviewed Event + Removed from Project Issue Event """ - event: Literal["reviewed"] id: int node_id: str - user: SimpleUserType - body: Union[str, None] - state: str - html_url: str - pull_request_url: str - links: TimelineReviewedEventPropLinksType - submitted_at: NotRequired[datetime] - commit_id: str - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] + url: str + actor: SimpleUserType + event: Literal["removed_from_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[RemovedFromProjectIssueEventPropProjectCardType] -class TimelineReviewedEventPropLinksType(TypedDict): - """TimelineReviewedEventPropLinks""" +class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): + """RemovedFromProjectIssueEventPropProjectCard""" - html: TimelineReviewedEventPropLinksPropHtmlType - pull_request: TimelineReviewedEventPropLinksPropPullRequestType - - -class TimelineReviewedEventPropLinksPropHtmlType(TypedDict): - """TimelineReviewedEventPropLinksPropHtml""" - - href: str - - -class TimelineReviewedEventPropLinksPropPullRequestType(TypedDict): - """TimelineReviewedEventPropLinksPropPullRequest""" - - href: str + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] __all__ = ( - "TimelineReviewedEventPropLinksPropHtmlType", - "TimelineReviewedEventPropLinksPropPullRequestType", - "TimelineReviewedEventPropLinksType", - "TimelineReviewedEventType", + "RemovedFromProjectIssueEventPropProjectCardType", + "RemovedFromProjectIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0307.py b/githubkit/versions/v2022_11_28/types/group_0307.py index 100a23bd7..03ad239c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0307.py +++ b/githubkit/versions/v2022_11_28/types/group_0307.py @@ -9,103 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0039 import ReactionRollupType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class PullRequestReviewCommentType(TypedDict): - """Pull Request Review Comment +class ConvertedNoteToIssueIssueEventType(TypedDict): + """Converted Note to Issue Issue Event - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Converted Note to Issue Issue Event """ - url: str - pull_request_review_id: Union[int, None] id: int node_id: str - diff_hunk: str - path: str - position: NotRequired[int] - original_position: NotRequired[int] - commit_id: str - original_commit_id: str - in_reply_to_id: NotRequired[int] - user: SimpleUserType - body: str - created_at: datetime - updated_at: datetime - html_url: str - pull_request_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - links: PullRequestReviewCommentPropLinksType - start_line: NotRequired[Union[int, None]] - original_start_line: NotRequired[Union[int, None]] - start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] - line: NotRequired[int] - original_line: NotRequired[int] - side: NotRequired[Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - reactions: NotRequired[ReactionRollupType] - body_html: NotRequired[str] - body_text: NotRequired[str] - - -class PullRequestReviewCommentPropLinksType(TypedDict): - """PullRequestReviewCommentPropLinks""" - - self_: PullRequestReviewCommentPropLinksPropSelfType - html: PullRequestReviewCommentPropLinksPropHtmlType - pull_request: PullRequestReviewCommentPropLinksPropPullRequestType - - -class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): - """PullRequestReviewCommentPropLinksPropSelf""" - - href: str - - -class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): - """PullRequestReviewCommentPropLinksPropHtml""" - - href: str - - -class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewCommentPropLinksPropPullRequest""" - - href: str - + url: str + actor: SimpleUserType + event: Literal["converted_note_to_issue"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[IntegrationType, None] + project_card: NotRequired[ConvertedNoteToIssueIssueEventPropProjectCardType] -class TimelineLineCommentedEventType(TypedDict): - """Timeline Line Commented Event - Timeline Line Commented Event - """ +class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): + """ConvertedNoteToIssueIssueEventPropProjectCard""" - event: NotRequired[Literal["line_commented"]] - node_id: NotRequired[str] - comments: NotRequired[list[PullRequestReviewCommentType]] + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] __all__ = ( - "PullRequestReviewCommentPropLinksPropHtmlType", - "PullRequestReviewCommentPropLinksPropPullRequestType", - "PullRequestReviewCommentPropLinksPropSelfType", - "PullRequestReviewCommentPropLinksType", - "PullRequestReviewCommentType", - "TimelineLineCommentedEventType", + "ConvertedNoteToIssueIssueEventPropProjectCardType", + "ConvertedNoteToIssueIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0308.py b/githubkit/versions/v2022_11_28/types/group_0308.py index ca38ea139..738677d91 100644 --- a/githubkit/versions/v2022_11_28/types/group_0308.py +++ b/githubkit/versions/v2022_11_28/types/group_0308.py @@ -9,29 +9,46 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0040 import ReactionRollupType -class TimelineAssignedIssueEventType(TypedDict): - """Timeline Assigned Issue Event +class TimelineCommentEventType(TypedDict): + """Timeline Comment Event - Timeline Assigned Issue Event + Timeline Comment Event """ + event: Literal["commented"] + actor: SimpleUserType id: int node_id: str url: str - actor: SimpleUserType - event: Literal["assigned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType - - -__all__ = ("TimelineAssignedIssueEventType",) + body: NotRequired[str] + body_text: NotRequired[str] + body_html: NotRequired[str] + html_url: str + user: SimpleUserType + created_at: datetime + updated_at: datetime + issue_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("TimelineCommentEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0309.py b/githubkit/versions/v2022_11_28/types/group_0309.py index ab2294ac3..9f6465c82 100644 --- a/githubkit/versions/v2022_11_28/types/group_0309.py +++ b/githubkit/versions/v2022_11_28/types/group_0309.py @@ -9,29 +9,25 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0003 import SimpleUserType +from .group_0310 import TimelineCrossReferencedEventPropSourceType -class TimelineUnassignedIssueEventType(TypedDict): - """Timeline Unassigned Issue Event +class TimelineCrossReferencedEventType(TypedDict): + """Timeline Cross Referenced Event - Timeline Unassigned Issue Event + Timeline Cross Referenced Event """ - id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["unassigned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType + event: Literal["cross-referenced"] + actor: NotRequired[SimpleUserType] + created_at: datetime + updated_at: datetime + source: TimelineCrossReferencedEventPropSourceType -__all__ = ("TimelineUnassignedIssueEventType",) +__all__ = ("TimelineCrossReferencedEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0310.py b/githubkit/versions/v2022_11_28/types/group_0310.py index acc66ebcf..89f8fc9b2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0310.py +++ b/githubkit/versions/v2022_11_28/types/group_0310.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType +from .group_0041 import IssueType -class StateChangeIssueEventType(TypedDict): - """State Change Issue Event +class TimelineCrossReferencedEventPropSourceType(TypedDict): + """TimelineCrossReferencedEventPropSource""" - State Change Issue Event - """ + type: NotRequired[str] + issue: NotRequired[IssueType] - id: int - node_id: str - url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - state_reason: NotRequired[Union[str, None]] - -__all__ = ("StateChangeIssueEventType",) +__all__ = ("TimelineCrossReferencedEventPropSourceType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0311.py b/githubkit/versions/v2022_11_28/types/group_0311.py index b320cbbd3..11c95229f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0311.py +++ b/githubkit/versions/v2022_11_28/types/group_0311.py @@ -9,26 +9,82 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class DeployKeyType(TypedDict): - """Deploy Key +class TimelineCommittedEventType(TypedDict): + """Timeline Committed Event - An SSH key granting access to a single repository. + Timeline Committed Event """ - id: int - key: str + event: NotRequired[Literal["committed"]] + sha: str + node_id: str url: str - title: str + author: TimelineCommittedEventPropAuthorType + committer: TimelineCommittedEventPropCommitterType + message: str + tree: TimelineCommittedEventPropTreeType + parents: list[TimelineCommittedEventPropParentsItemsType] + verification: TimelineCommittedEventPropVerificationType + html_url: str + + +class TimelineCommittedEventPropAuthorType(TypedDict): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class TimelineCommittedEventPropCommitterType(TypedDict): + """TimelineCommittedEventPropCommitter + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class TimelineCommittedEventPropTreeType(TypedDict): + """TimelineCommittedEventPropTree""" + + sha: str + url: str + + +class TimelineCommittedEventPropParentsItemsType(TypedDict): + """TimelineCommittedEventPropParentsItems""" + + sha: str + url: str + html_url: str + + +class TimelineCommittedEventPropVerificationType(TypedDict): + """TimelineCommittedEventPropVerification""" + verified: bool - created_at: str - read_only: bool - added_by: NotRequired[Union[str, None]] - last_used: NotRequired[Union[str, None]] - enabled: NotRequired[bool] + reason: str + signature: Union[str, None] + payload: Union[str, None] + verified_at: Union[str, None] -__all__ = ("DeployKeyType",) +__all__ = ( + "TimelineCommittedEventPropAuthorType", + "TimelineCommittedEventPropCommitterType", + "TimelineCommittedEventPropParentsItemsType", + "TimelineCommittedEventPropTreeType", + "TimelineCommittedEventPropVerificationType", + "TimelineCommittedEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0312.py b/githubkit/versions/v2022_11_28/types/group_0312.py index bc5f5cd8b..19ca5be38 100644 --- a/githubkit/versions/v2022_11_28/types/group_0312.py +++ b/githubkit/versions/v2022_11_28/types/group_0312.py @@ -9,14 +9,66 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -LanguageType: TypeAlias = dict[str, Any] -"""Language +from .group_0003 import SimpleUserType -Language -""" + +class TimelineReviewedEventType(TypedDict): + """Timeline Reviewed Event + + Timeline Reviewed Event + """ + + event: Literal["reviewed"] + id: int + node_id: str + user: SimpleUserType + body: Union[str, None] + state: str + html_url: str + pull_request_url: str + links: TimelineReviewedEventPropLinksType + submitted_at: NotRequired[datetime] + commit_id: str + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + + +class TimelineReviewedEventPropLinksType(TypedDict): + """TimelineReviewedEventPropLinks""" + + html: TimelineReviewedEventPropLinksPropHtmlType + pull_request: TimelineReviewedEventPropLinksPropPullRequestType + + +class TimelineReviewedEventPropLinksPropHtmlType(TypedDict): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str + + +class TimelineReviewedEventPropLinksPropPullRequestType(TypedDict): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str -__all__ = ("LanguageType",) +__all__ = ( + "TimelineReviewedEventPropLinksPropHtmlType", + "TimelineReviewedEventPropLinksPropPullRequestType", + "TimelineReviewedEventPropLinksType", + "TimelineReviewedEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0313.py b/githubkit/versions/v2022_11_28/types/group_0313.py index 086621507..654818cfa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0313.py +++ b/githubkit/versions/v2022_11_28/types/group_0313.py @@ -9,42 +9,103 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0018 import LicenseSimpleType +from .group_0003 import SimpleUserType +from .group_0040 import ReactionRollupType -class LicenseContentType(TypedDict): - """License Content +class PullRequestReviewCommentType(TypedDict): + """Pull Request Review Comment - License Content + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. """ - name: str - path: str - sha: str - size: int url: str - html_url: Union[str, None] - git_url: Union[str, None] - download_url: Union[str, None] - type: str - content: str - encoding: str - links: LicenseContentPropLinksType - license_: Union[None, LicenseSimpleType] + pull_request_review_id: Union[int, None] + id: int + node_id: str + diff_hunk: str + path: str + position: NotRequired[int] + original_position: NotRequired[int] + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: SimpleUserType + body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: PullRequestReviewCommentPropLinksType + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + reactions: NotRequired[ReactionRollupType] + body_html: NotRequired[str] + body_text: NotRequired[str] + + +class PullRequestReviewCommentPropLinksType(TypedDict): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelfType + html: PullRequestReviewCommentPropLinksPropHtmlType + pull_request: PullRequestReviewCommentPropLinksPropPullRequestType + + +class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str -class LicenseContentPropLinksType(TypedDict): - """LicenseContentPropLinks""" +class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str + + +class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str + + +class TimelineLineCommentedEventType(TypedDict): + """Timeline Line Commented Event + + Timeline Line Commented Event + """ - git: Union[str, None] - html: Union[str, None] - self_: str + event: NotRequired[Literal["line_commented"]] + node_id: NotRequired[str] + comments: NotRequired[list[PullRequestReviewCommentType]] __all__ = ( - "LicenseContentPropLinksType", - "LicenseContentType", + "PullRequestReviewCommentPropLinksPropHtmlType", + "PullRequestReviewCommentPropLinksPropPullRequestType", + "PullRequestReviewCommentPropLinksPropSelfType", + "PullRequestReviewCommentPropLinksType", + "PullRequestReviewCommentType", + "TimelineLineCommentedEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0314.py b/githubkit/versions/v2022_11_28/types/group_0314.py index ef4f49c12..3baa7987b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0314.py +++ b/githubkit/versions/v2022_11_28/types/group_0314.py @@ -9,19 +9,29 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class MergedUpstreamType(TypedDict): - """Merged upstream - Results of a successful merge upstream request +class TimelineAssignedIssueEventType(TypedDict): + """Timeline Assigned Issue Event + + Timeline Assigned Issue Event """ - message: NotRequired[str] - merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] - base_branch: NotRequired[str] + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["assigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -__all__ = ("MergedUpstreamType",) +__all__ = ("TimelineAssignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0315.py b/githubkit/versions/v2022_11_28/types/group_0315.py index 121c3bad8..7d37c3f07 100644 --- a/githubkit/versions/v2022_11_28/types/group_0315.py +++ b/githubkit/versions/v2022_11_28/types/group_0315.py @@ -9,64 +9,29 @@ from __future__ import annotations -from datetime import date, datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class PageType(TypedDict): - """GitHub Pages - The configuration for GitHub Pages for a repository. +class TimelineUnassignedIssueEventType(TypedDict): + """Timeline Unassigned Issue Event + + Timeline Unassigned Issue Event """ + id: int + node_id: str url: str - status: Union[None, Literal["built", "building", "errored"]] - cname: Union[str, None] - protected_domain_state: NotRequired[ - Union[None, Literal["pending", "verified", "unverified"]] - ] - pending_domain_unverified_at: NotRequired[Union[datetime, None]] - custom_404: bool - html_url: NotRequired[str] - build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] - source: NotRequired[PagesSourceHashType] - public: bool - https_certificate: NotRequired[PagesHttpsCertificateType] - https_enforced: NotRequired[bool] - - -class PagesSourceHashType(TypedDict): - """Pages Source Hash""" - - branch: str - path: str - - -class PagesHttpsCertificateType(TypedDict): - """Pages Https Certificate""" - - state: Literal[ - "new", - "authorization_created", - "authorization_pending", - "authorized", - "authorization_revoked", - "issued", - "uploaded", - "approved", - "errored", - "bad_authz", - "destroy_pending", - "dns_changed", - ] - description: str - domains: list[str] - expires_at: NotRequired[date] + actor: SimpleUserType + event: Literal["unassigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -__all__ = ( - "PageType", - "PagesHttpsCertificateType", - "PagesSourceHashType", -) +__all__ = ("TimelineUnassignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0316.py b/githubkit/versions/v2022_11_28/types/group_0316.py index 77b6d934e..4978c8454 100644 --- a/githubkit/versions/v2022_11_28/types/group_0316.py +++ b/githubkit/versions/v2022_11_28/types/group_0316.py @@ -9,36 +9,29 @@ from __future__ import annotations -from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class PageBuildType(TypedDict): - """Page Build +class StateChangeIssueEventType(TypedDict): + """State Change Issue Event - Page Build + State Change Issue Event """ + id: int + node_id: str url: str - status: str - error: PageBuildPropErrorType - pusher: Union[None, SimpleUserType] - commit: str - duration: int - created_at: datetime - updated_at: datetime + actor: SimpleUserType + event: str + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + state_reason: NotRequired[Union[str, None]] -class PageBuildPropErrorType(TypedDict): - """PageBuildPropError""" - - message: Union[str, None] - - -__all__ = ( - "PageBuildPropErrorType", - "PageBuildType", -) +__all__ = ("StateChangeIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0317.py b/githubkit/versions/v2022_11_28/types/group_0317.py index d7001e4a1..b320cbbd3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0317.py +++ b/githubkit/versions/v2022_11_28/types/group_0317.py @@ -9,17 +9,26 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class PageBuildStatusType(TypedDict): - """Page Build Status +class DeployKeyType(TypedDict): + """Deploy Key - Page Build Status + An SSH key granting access to a single repository. """ + id: int + key: str url: str - status: str + title: str + verified: bool + created_at: str + read_only: bool + added_by: NotRequired[Union[str, None]] + last_used: NotRequired[Union[str, None]] + enabled: NotRequired[bool] -__all__ = ("PageBuildStatusType",) +__all__ = ("DeployKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0318.py b/githubkit/versions/v2022_11_28/types/group_0318.py index d3e0b1eca..bc5f5cd8b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0318.py +++ b/githubkit/versions/v2022_11_28/types/group_0318.py @@ -9,20 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import TypeAlias +LanguageType: TypeAlias = dict[str, Any] +"""Language -class PageDeploymentType(TypedDict): - """GitHub Pages - - The GitHub Pages deployment status. - """ - - id: Union[int, str] - status_url: str - page_url: str - preview_url: NotRequired[str] +Language +""" -__all__ = ("PageDeploymentType",) +__all__ = ("LanguageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0319.py b/githubkit/versions/v2022_11_28/types/group_0319.py index 2bf2ddbc1..2913097c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0319.py +++ b/githubkit/versions/v2022_11_28/types/group_0319.py @@ -9,28 +9,42 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict - - -class PagesDeploymentStatusType(TypedDict): - """GitHub Pages deployment status""" - - status: NotRequired[ - Literal[ - "deployment_in_progress", - "syncing_files", - "finished_file_sync", - "updating_pages", - "purging_cdn", - "deployment_cancelled", - "deployment_failed", - "deployment_content_failed", - "deployment_attempt_error", - "deployment_lost", - "succeed", - ] - ] - - -__all__ = ("PagesDeploymentStatusType",) +from typing import Union +from typing_extensions import TypedDict + +from .group_0019 import LicenseSimpleType + + +class LicenseContentType(TypedDict): + """License Content + + License Content + """ + + name: str + path: str + sha: str + size: int + url: str + html_url: Union[str, None] + git_url: Union[str, None] + download_url: Union[str, None] + type: str + content: str + encoding: str + links: LicenseContentPropLinksType + license_: Union[None, LicenseSimpleType] + + +class LicenseContentPropLinksType(TypedDict): + """LicenseContentPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "LicenseContentPropLinksType", + "LicenseContentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0320.py b/githubkit/versions/v2022_11_28/types/group_0320.py index 5546e6ba9..ef4f49c12 100644 --- a/githubkit/versions/v2022_11_28/types/group_0320.py +++ b/githubkit/versions/v2022_11_28/types/group_0320.py @@ -9,88 +9,19 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class PagesHealthCheckType(TypedDict): - """Pages Health Check Status +class MergedUpstreamType(TypedDict): + """Merged upstream - Pages Health Check Status + Results of a successful merge upstream request """ - domain: NotRequired[PagesHealthCheckPropDomainType] - alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] + message: NotRequired[str] + merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] + base_branch: NotRequired[str] -class PagesHealthCheckPropDomainType(TypedDict): - """PagesHealthCheckPropDomain""" - - host: NotRequired[str] - uri: NotRequired[str] - nameservers: NotRequired[str] - dns_resolves: NotRequired[bool] - is_proxied: NotRequired[Union[bool, None]] - is_cloudflare_ip: NotRequired[Union[bool, None]] - is_fastly_ip: NotRequired[Union[bool, None]] - is_old_ip_address: NotRequired[Union[bool, None]] - is_a_record: NotRequired[Union[bool, None]] - has_cname_record: NotRequired[Union[bool, None]] - has_mx_records_present: NotRequired[Union[bool, None]] - is_valid_domain: NotRequired[bool] - is_apex_domain: NotRequired[bool] - should_be_a_record: NotRequired[Union[bool, None]] - is_cname_to_github_user_domain: NotRequired[Union[bool, None]] - is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] - is_cname_to_fastly: NotRequired[Union[bool, None]] - is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] - is_non_github_pages_ip_present: NotRequired[Union[bool, None]] - is_pages_domain: NotRequired[bool] - is_served_by_pages: NotRequired[Union[bool, None]] - is_valid: NotRequired[bool] - reason: NotRequired[Union[str, None]] - responds_to_https: NotRequired[bool] - enforces_https: NotRequired[bool] - https_error: NotRequired[Union[str, None]] - is_https_eligible: NotRequired[Union[bool, None]] - caa_error: NotRequired[Union[str, None]] - - -class PagesHealthCheckPropAltDomainType(TypedDict): - """PagesHealthCheckPropAltDomain""" - - host: NotRequired[str] - uri: NotRequired[str] - nameservers: NotRequired[str] - dns_resolves: NotRequired[bool] - is_proxied: NotRequired[Union[bool, None]] - is_cloudflare_ip: NotRequired[Union[bool, None]] - is_fastly_ip: NotRequired[Union[bool, None]] - is_old_ip_address: NotRequired[Union[bool, None]] - is_a_record: NotRequired[Union[bool, None]] - has_cname_record: NotRequired[Union[bool, None]] - has_mx_records_present: NotRequired[Union[bool, None]] - is_valid_domain: NotRequired[bool] - is_apex_domain: NotRequired[bool] - should_be_a_record: NotRequired[Union[bool, None]] - is_cname_to_github_user_domain: NotRequired[Union[bool, None]] - is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] - is_cname_to_fastly: NotRequired[Union[bool, None]] - is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] - is_non_github_pages_ip_present: NotRequired[Union[bool, None]] - is_pages_domain: NotRequired[bool] - is_served_by_pages: NotRequired[Union[bool, None]] - is_valid: NotRequired[bool] - reason: NotRequired[Union[str, None]] - responds_to_https: NotRequired[bool] - enforces_https: NotRequired[bool] - https_error: NotRequired[Union[str, None]] - is_https_eligible: NotRequired[Union[bool, None]] - caa_error: NotRequired[Union[str, None]] - - -__all__ = ( - "PagesHealthCheckPropAltDomainType", - "PagesHealthCheckPropDomainType", - "PagesHealthCheckType", -) +__all__ = ("MergedUpstreamType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0321.py b/githubkit/versions/v2022_11_28/types/group_0321.py index 28a63a114..121c3bad8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0321.py +++ b/githubkit/versions/v2022_11_28/types/group_0321.py @@ -9,85 +9,64 @@ from __future__ import annotations -from datetime import datetime +from datetime import date, datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0038 import MilestoneType -from .group_0081 import TeamSimpleType -from .group_0242 import AutoMergeType -from .group_0322 import PullRequestPropLabelsItemsType -from .group_0323 import PullRequestPropBaseType, PullRequestPropHeadType -from .group_0324 import PullRequestPropLinksType +class PageType(TypedDict): + """GitHub Pages -class PullRequestType(TypedDict): - """Pull Request - - Pull requests let you tell others about changes you've pushed to a repository on - GitHub. Once a pull request is sent, interested parties can review the set of - changes, discuss potential modifications, and even push follow-up commits if - necessary. + The configuration for GitHub Pages for a repository. """ url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: list[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] - requested_teams: NotRequired[Union[list[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + status: Union[None, Literal["built", "building", "errored"]] + cname: Union[str, None] + protected_domain_state: NotRequired[ + Union[None, Literal["pending", "verified", "unverified"]] + ] + pending_domain_unverified_at: NotRequired[Union[datetime, None]] + custom_404: bool + html_url: NotRequired[str] + build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] + source: NotRequired[PagesSourceHashType] + public: bool + https_certificate: NotRequired[PagesHttpsCertificateType] + https_enforced: NotRequired[bool] + + +class PagesSourceHashType(TypedDict): + """Pages Source Hash""" + + branch: str + path: str + + +class PagesHttpsCertificateType(TypedDict): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - - -__all__ = ("PullRequestType",) + description: str + domains: list[str] + expires_at: NotRequired[date] + + +__all__ = ( + "PageType", + "PagesHttpsCertificateType", + "PagesSourceHashType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0322.py b/githubkit/versions/v2022_11_28/types/group_0322.py index 8c969ec82..83899a24e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0322.py +++ b/githubkit/versions/v2022_11_28/types/group_0322.py @@ -9,20 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class PullRequestPropLabelsItemsType(TypedDict): - """PullRequestPropLabelsItems""" - id: int - node_id: str +class PageBuildType(TypedDict): + """Page Build + + Page Build + """ + url: str - name: str - description: Union[str, None] - color: str - default: bool + status: str + error: PageBuildPropErrorType + pusher: Union[None, SimpleUserType] + commit: str + duration: int + created_at: datetime + updated_at: datetime + + +class PageBuildPropErrorType(TypedDict): + """PageBuildPropError""" + + message: Union[str, None] -__all__ = ("PullRequestPropLabelsItemsType",) +__all__ = ( + "PageBuildPropErrorType", + "PageBuildType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0323.py b/githubkit/versions/v2022_11_28/types/group_0323.py index ba73c4910..d7001e4a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0323.py +++ b/githubkit/versions/v2022_11_28/types/group_0323.py @@ -9,34 +9,17 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType +class PageBuildStatusType(TypedDict): + """Page Build Status -class PullRequestPropHeadType(TypedDict): - """PullRequestPropHead""" + Page Build Status + """ - label: Union[str, None] - ref: str - repo: RepositoryType - sha: str - user: SimpleUserType + url: str + status: str -class PullRequestPropBaseType(TypedDict): - """PullRequestPropBase""" - - label: str - ref: str - repo: RepositoryType - sha: str - user: SimpleUserType - - -__all__ = ( - "PullRequestPropBaseType", - "PullRequestPropHeadType", -) +__all__ = ("PageBuildStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0324.py b/githubkit/versions/v2022_11_28/types/group_0324.py index 20ca6a967..d3e0b1eca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0324.py +++ b/githubkit/versions/v2022_11_28/types/group_0324.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0241 import LinkType +class PageDeploymentType(TypedDict): + """GitHub Pages -class PullRequestPropLinksType(TypedDict): - """PullRequestPropLinks""" + The GitHub Pages deployment status. + """ - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + id: Union[int, str] + status_url: str + page_url: str + preview_url: NotRequired[str] -__all__ = ("PullRequestPropLinksType",) +__all__ = ("PageDeploymentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0325.py b/githubkit/versions/v2022_11_28/types/group_0325.py index 211278b38..2bf2ddbc1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0325.py +++ b/githubkit/versions/v2022_11_28/types/group_0325.py @@ -9,18 +9,28 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class PullRequestMergeResultType(TypedDict): - """Pull Request Merge Result - - Pull Request Merge Result - """ - - sha: str - merged: bool - message: str - - -__all__ = ("PullRequestMergeResultType",) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class PagesDeploymentStatusType(TypedDict): + """GitHub Pages deployment status""" + + status: NotRequired[ + Literal[ + "deployment_in_progress", + "syncing_files", + "finished_file_sync", + "updating_pages", + "purging_cdn", + "deployment_cancelled", + "deployment_failed", + "deployment_content_failed", + "deployment_attempt_error", + "deployment_lost", + "succeed", + ] + ] + + +__all__ = ("PagesDeploymentStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0326.py b/githubkit/versions/v2022_11_28/types/group_0326.py index 96690588d..5546e6ba9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0326.py +++ b/githubkit/versions/v2022_11_28/types/group_0326.py @@ -9,20 +9,88 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0082 import TeamType +class PagesHealthCheckType(TypedDict): + """Pages Health Check Status -class PullRequestReviewRequestType(TypedDict): - """Pull Request Review Request - - Pull Request Review Request + Pages Health Check Status """ - users: list[SimpleUserType] - teams: list[TeamType] + domain: NotRequired[PagesHealthCheckPropDomainType] + alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] + + +class PagesHealthCheckPropDomainType(TypedDict): + """PagesHealthCheckPropDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +class PagesHealthCheckPropAltDomainType(TypedDict): + """PagesHealthCheckPropAltDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] -__all__ = ("PullRequestReviewRequestType",) +__all__ = ( + "PagesHealthCheckPropAltDomainType", + "PagesHealthCheckPropDomainType", + "PagesHealthCheckType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0327.py b/githubkit/versions/v2022_11_28/types/group_0327.py index c59faa72b..e9b4b0ce6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0327.py +++ b/githubkit/versions/v2022_11_28/types/group_0327.py @@ -13,27 +13,57 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType - - -class PullRequestReviewType(TypedDict): - """Pull Request Review - - Pull Request Reviews are reviews on pull requests. +from .group_0003 import SimpleUserType +from .group_0039 import MilestoneType +from .group_0086 import TeamSimpleType +from .group_0248 import AutoMergeType +from .group_0328 import PullRequestPropLabelsItemsType +from .group_0329 import PullRequestPropBaseType, PullRequestPropHeadType +from .group_0330 import PullRequestPropLinksType + + +class PullRequestType(TypedDict): + """Pull Request + + Pull requests let you tell others about changes you've pushed to a repository on + GitHub. Once a pull request is sent, interested parties can review the set of + changes, discuss potential modifications, and even push follow-up commits if + necessary. """ + url: str id: int node_id: str - user: Union[None, SimpleUserType] - body: str - state: str html_url: str - pull_request_url: str - links: PullRequestReviewPropLinksType - submitted_at: NotRequired[datetime] - commit_id: Union[str, None] - body_html: NotRequired[str] - body_text: NotRequired[str] + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: list[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -44,30 +74,20 @@ class PullRequestReviewType(TypedDict): "NONE", "OWNER", ] - - -class PullRequestReviewPropLinksType(TypedDict): - """PullRequestReviewPropLinks""" - - html: PullRequestReviewPropLinksPropHtmlType - pull_request: PullRequestReviewPropLinksPropPullRequestType - - -class PullRequestReviewPropLinksPropHtmlType(TypedDict): - """PullRequestReviewPropLinksPropHtml""" - - href: str - - -class PullRequestReviewPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewPropLinksPropPullRequest""" - - href: str - - -__all__ = ( - "PullRequestReviewPropLinksPropHtmlType", - "PullRequestReviewPropLinksPropPullRequestType", - "PullRequestReviewPropLinksType", - "PullRequestReviewType", -) + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int + + +__all__ = ("PullRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0328.py b/githubkit/versions/v2022_11_28/types/group_0328.py index ccdc37d78..8c969ec82 100644 --- a/githubkit/versions/v2022_11_28/types/group_0328.py +++ b/githubkit/versions/v2022_11_28/types/group_0328.py @@ -9,58 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0039 import ReactionRollupType -from .group_0329 import ReviewCommentPropLinksType +class PullRequestPropLabelsItemsType(TypedDict): + """PullRequestPropLabelsItems""" -class ReviewCommentType(TypedDict): - """Legacy Review Comment - - Legacy Review Comment - """ - - url: str - pull_request_review_id: Union[int, None] id: int node_id: str - diff_hunk: str - path: str - position: Union[int, None] - original_position: int - commit_id: str - original_commit_id: str - in_reply_to_id: NotRequired[int] - user: Union[None, SimpleUserType] - body: str - created_at: datetime - updated_at: datetime - html_url: str - pull_request_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - links: ReviewCommentPropLinksType - body_text: NotRequired[str] - body_html: NotRequired[str] - reactions: NotRequired[ReactionRollupType] - side: NotRequired[Literal["LEFT", "RIGHT"]] - start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] - line: NotRequired[int] - original_line: NotRequired[int] - start_line: NotRequired[Union[int, None]] - original_start_line: NotRequired[Union[int, None]] + url: str + name: str + description: Union[str, None] + color: str + default: bool -__all__ = ("ReviewCommentType",) +__all__ = ("PullRequestPropLabelsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0329.py b/githubkit/versions/v2022_11_28/types/group_0329.py index 6e8ff2424..60d27727c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0329.py +++ b/githubkit/versions/v2022_11_28/types/group_0329.py @@ -9,17 +9,34 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -from .group_0241 import LinkType +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class ReviewCommentPropLinksType(TypedDict): - """ReviewCommentPropLinks""" +class PullRequestPropHeadType(TypedDict): + """PullRequestPropHead""" - self_: LinkType - html: LinkType - pull_request: LinkType + label: Union[str, None] + ref: str + repo: RepositoryType + sha: str + user: SimpleUserType -__all__ = ("ReviewCommentPropLinksType",) +class PullRequestPropBaseType(TypedDict): + """PullRequestPropBase""" + + label: str + ref: str + repo: RepositoryType + sha: str + user: SimpleUserType + + +__all__ = ( + "PullRequestPropBaseType", + "PullRequestPropHeadType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0330.py b/githubkit/versions/v2022_11_28/types/group_0330.py index 6a0e02975..8a77269b9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0330.py +++ b/githubkit/versions/v2022_11_28/types/group_0330.py @@ -9,32 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +from .group_0247 import LinkType -class ReleaseAssetType(TypedDict): - """Release Asset +class PullRequestPropLinksType(TypedDict): + """PullRequestPropLinks""" - Data related to a release. - """ + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType - url: str - browser_download_url: str - id: int - node_id: str - name: str - label: Union[str, None] - state: Literal["uploaded", "open"] - content_type: str - size: int - download_count: int - created_at: datetime - updated_at: datetime - uploader: Union[None, SimpleUserType] - -__all__ = ("ReleaseAssetType",) +__all__ = ("PullRequestPropLinksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0331.py b/githubkit/versions/v2022_11_28/types/group_0331.py index 7070bcb7a..211278b38 100644 --- a/githubkit/versions/v2022_11_28/types/group_0331.py +++ b/githubkit/versions/v2022_11_28/types/group_0331.py @@ -9,44 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0039 import ReactionRollupType -from .group_0330 import ReleaseAssetType +class PullRequestMergeResultType(TypedDict): + """Pull Request Merge Result -class ReleaseType(TypedDict): - """Release - - A release. + Pull Request Merge Result """ - url: str - html_url: str - assets_url: str - upload_url: str - tarball_url: Union[str, None] - zipball_url: Union[str, None] - id: int - node_id: str - tag_name: str - target_commitish: str - name: Union[str, None] - body: NotRequired[Union[str, None]] - draft: bool - prerelease: bool - created_at: datetime - published_at: Union[datetime, None] - author: SimpleUserType - assets: list[ReleaseAssetType] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - mentions_count: NotRequired[int] - discussion_url: NotRequired[str] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("ReleaseType",) + sha: str + merged: bool + message: str + + +__all__ = ("PullRequestMergeResultType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0332.py b/githubkit/versions/v2022_11_28/types/group_0332.py index 8cbfbc707..dde181025 100644 --- a/githubkit/versions/v2022_11_28/types/group_0332.py +++ b/githubkit/versions/v2022_11_28/types/group_0332.py @@ -11,15 +11,18 @@ from typing_extensions import TypedDict +from .group_0003 import SimpleUserType +from .group_0087 import TeamType -class ReleaseNotesContentType(TypedDict): - """Generated Release Notes Content - Generated name and body describing a release +class PullRequestReviewRequestType(TypedDict): + """Pull Request Review Request + + Pull Request Review Request """ - name: str - body: str + users: list[SimpleUserType] + teams: list[TeamType] -__all__ = ("ReleaseNotesContentType",) +__all__ = ("PullRequestReviewRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0333.py b/githubkit/versions/v2022_11_28/types/group_0333.py index a7e58a24b..d7cb39fb2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0333.py +++ b/githubkit/versions/v2022_11_28/types/group_0333.py @@ -9,20 +9,65 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class RepositoryRuleRulesetInfoType(TypedDict): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. +class PullRequestReviewType(TypedDict): + """Pull Request Review + + Pull Request Reviews are reviews on pull requests. """ - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + id: int + node_id: str + user: Union[None, SimpleUserType] + body: str + state: str + html_url: str + pull_request_url: str + links: PullRequestReviewPropLinksType + submitted_at: NotRequired[datetime] + commit_id: Union[str, None] + body_html: NotRequired[str] + body_text: NotRequired[str] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + + +class PullRequestReviewPropLinksType(TypedDict): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtmlType + pull_request: PullRequestReviewPropLinksPropPullRequestType + + +class PullRequestReviewPropLinksPropHtmlType(TypedDict): + """PullRequestReviewPropLinksPropHtml""" + + href: str + + +class PullRequestReviewPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str -__all__ = ("RepositoryRuleRulesetInfoType",) +__all__ = ( + "PullRequestReviewPropLinksPropHtmlType", + "PullRequestReviewPropLinksPropPullRequestType", + "PullRequestReviewPropLinksType", + "PullRequestReviewType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0334.py b/githubkit/versions/v2022_11_28/types/group_0334.py index 0f564cd7d..bc770e654 100644 --- a/githubkit/versions/v2022_11_28/types/group_0334.py +++ b/githubkit/versions/v2022_11_28/types/group_0334.py @@ -9,17 +9,58 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0040 import ReactionRollupType +from .group_0335 import ReviewCommentPropLinksType -class RepositoryRuleDetailedOneof0Type(TypedDict): - """RepositoryRuleDetailedOneof0""" - type: Literal["creation"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] +class ReviewCommentType(TypedDict): + """Legacy Review Comment + Legacy Review Comment + """ -__all__ = ("RepositoryRuleDetailedOneof0Type",) + url: str + pull_request_review_id: Union[int, None] + id: int + node_id: str + diff_hunk: str + path: str + position: Union[int, None] + original_position: int + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: Union[None, SimpleUserType] + body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: ReviewCommentPropLinksType + body_text: NotRequired[str] + body_html: NotRequired[str] + reactions: NotRequired[ReactionRollupType] + side: NotRequired[Literal["LEFT", "RIGHT"]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] + + +__all__ = ("ReviewCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0335.py b/githubkit/versions/v2022_11_28/types/group_0335.py index ed203d37b..de11a8f72 100644 --- a/githubkit/versions/v2022_11_28/types/group_0335.py +++ b/githubkit/versions/v2022_11_28/types/group_0335.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0127 import RepositoryRuleUpdatePropParametersType +from .group_0247 import LinkType -class RepositoryRuleDetailedOneof1Type(TypedDict): - """RepositoryRuleDetailedOneof1""" +class ReviewCommentPropLinksType(TypedDict): + """ReviewCommentPropLinks""" - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + self_: LinkType + html: LinkType + pull_request: LinkType -__all__ = ("RepositoryRuleDetailedOneof1Type",) +__all__ = ("ReviewCommentPropLinksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0336.py b/githubkit/versions/v2022_11_28/types/group_0336.py index 273dd677c..133f124c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0336.py +++ b/githubkit/versions/v2022_11_28/types/group_0336.py @@ -9,17 +9,32 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class RepositoryRuleDetailedOneof2Type(TypedDict): - """RepositoryRuleDetailedOneof2""" - type: Literal["deletion"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] +class ReleaseAssetType(TypedDict): + """Release Asset + Data related to a release. + """ -__all__ = ("RepositoryRuleDetailedOneof2Type",) + url: str + browser_download_url: str + id: int + node_id: str + name: str + label: Union[str, None] + state: Literal["uploaded", "open"] + content_type: str + size: int + download_count: int + created_at: datetime + updated_at: datetime + uploader: Union[None, SimpleUserType] + + +__all__ = ("ReleaseAssetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0337.py b/githubkit/versions/v2022_11_28/types/group_0337.py index 8886199f4..b827007d7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0337.py +++ b/githubkit/versions/v2022_11_28/types/group_0337.py @@ -9,17 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict - -class RepositoryRuleDetailedOneof3Type(TypedDict): - """RepositoryRuleDetailedOneof3""" - - type: Literal["required_linear_history"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] - - -__all__ = ("RepositoryRuleDetailedOneof3Type",) +from .group_0003 import SimpleUserType +from .group_0040 import ReactionRollupType +from .group_0336 import ReleaseAssetType + + +class ReleaseType(TypedDict): + """Release + + A release. + """ + + url: str + html_url: str + assets_url: str + upload_url: str + tarball_url: Union[str, None] + zipball_url: Union[str, None] + id: int + node_id: str + tag_name: str + target_commitish: str + name: Union[str, None] + body: NotRequired[Union[str, None]] + draft: bool + prerelease: bool + created_at: datetime + published_at: Union[datetime, None] + author: SimpleUserType + assets: list[ReleaseAssetType] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + mentions_count: NotRequired[int] + discussion_url: NotRequired[str] + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("ReleaseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0338.py b/githubkit/versions/v2022_11_28/types/group_0338.py index e42ce2bd2..8cbfbc707 100644 --- a/githubkit/versions/v2022_11_28/types/group_0338.py +++ b/githubkit/versions/v2022_11_28/types/group_0338.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0130 import RepositoryRuleMergeQueuePropParametersType +class ReleaseNotesContentType(TypedDict): + """Generated Release Notes Content -class RepositoryRuleDetailedOneof4Type(TypedDict): - """RepositoryRuleDetailedOneof4""" + Generated name and body describing a release + """ - type: Literal["merge_queue"] - parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + name: str + body: str -__all__ = ("RepositoryRuleDetailedOneof4Type",) +__all__ = ("ReleaseNotesContentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0339.py b/githubkit/versions/v2022_11_28/types/group_0339.py index 82187557b..a7e58a24b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0339.py +++ b/githubkit/versions/v2022_11_28/types/group_0339.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0132 import RepositoryRuleRequiredDeploymentsPropParametersType +class RepositoryRuleRulesetInfoType(TypedDict): + """repository ruleset data for rule -class RepositoryRuleDetailedOneof5Type(TypedDict): - """RepositoryRuleDetailedOneof5""" + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof5Type",) +__all__ = ("RepositoryRuleRulesetInfoType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0340.py b/githubkit/versions/v2022_11_28/types/group_0340.py index c30b2990f..0f564cd7d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0340.py +++ b/githubkit/versions/v2022_11_28/types/group_0340.py @@ -13,13 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleDetailedOneof6Type(TypedDict): - """RepositoryRuleDetailedOneof6""" +class RepositoryRuleDetailedOneof0Type(TypedDict): + """RepositoryRuleDetailedOneof0""" - type: Literal["required_signatures"] + type: Literal["creation"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof6Type",) +__all__ = ("RepositoryRuleDetailedOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0341.py b/githubkit/versions/v2022_11_28/types/group_0341.py index eaf295b49..98d0d9728 100644 --- a/githubkit/versions/v2022_11_28/types/group_0341.py +++ b/githubkit/versions/v2022_11_28/types/group_0341.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0135 import RepositoryRulePullRequestPropParametersType +from .group_0132 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleDetailedOneof7Type(TypedDict): - """RepositoryRuleDetailedOneof7""" +class RepositoryRuleDetailedOneof1Type(TypedDict): + """RepositoryRuleDetailedOneof1""" - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof7Type",) +__all__ = ("RepositoryRuleDetailedOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0342.py b/githubkit/versions/v2022_11_28/types/group_0342.py index 6525ceda2..273dd677c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0342.py +++ b/githubkit/versions/v2022_11_28/types/group_0342.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0137 import RepositoryRuleRequiredStatusChecksPropParametersType +class RepositoryRuleDetailedOneof2Type(TypedDict): + """RepositoryRuleDetailedOneof2""" -class RepositoryRuleDetailedOneof8Type(TypedDict): - """RepositoryRuleDetailedOneof8""" - - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["deletion"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof8Type",) +__all__ = ("RepositoryRuleDetailedOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0343.py b/githubkit/versions/v2022_11_28/types/group_0343.py index d5be14715..8886199f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0343.py +++ b/githubkit/versions/v2022_11_28/types/group_0343.py @@ -13,13 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleDetailedOneof9Type(TypedDict): - """RepositoryRuleDetailedOneof9""" +class RepositoryRuleDetailedOneof3Type(TypedDict): + """RepositoryRuleDetailedOneof3""" - type: Literal["non_fast_forward"] + type: Literal["required_linear_history"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof9Type",) +__all__ = ("RepositoryRuleDetailedOneof3Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0344.py b/githubkit/versions/v2022_11_28/types/group_0344.py index 4157dbc6e..dedff3fd3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0344.py +++ b/githubkit/versions/v2022_11_28/types/group_0344.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0139 import RepositoryRuleCommitMessagePatternPropParametersType +from .group_0135 import RepositoryRuleMergeQueuePropParametersType -class RepositoryRuleDetailedOneof10Type(TypedDict): - """RepositoryRuleDetailedOneof10""" +class RepositoryRuleDetailedOneof4Type(TypedDict): + """RepositoryRuleDetailedOneof4""" - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + type: Literal["merge_queue"] + parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof10Type",) +__all__ = ("RepositoryRuleDetailedOneof4Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0345.py b/githubkit/versions/v2022_11_28/types/group_0345.py index e4df6c718..b64aa7b27 100644 --- a/githubkit/versions/v2022_11_28/types/group_0345.py +++ b/githubkit/versions/v2022_11_28/types/group_0345.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0141 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +from .group_0137 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleDetailedOneof11Type(TypedDict): - """RepositoryRuleDetailedOneof11""" +class RepositoryRuleDetailedOneof5Type(TypedDict): + """RepositoryRuleDetailedOneof5""" - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof11Type",) +__all__ = ("RepositoryRuleDetailedOneof5Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0346.py b/githubkit/versions/v2022_11_28/types/group_0346.py index e2180e66f..c30b2990f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0346.py +++ b/githubkit/versions/v2022_11_28/types/group_0346.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0143 import RepositoryRuleCommitterEmailPatternPropParametersType +class RepositoryRuleDetailedOneof6Type(TypedDict): + """RepositoryRuleDetailedOneof6""" -class RepositoryRuleDetailedOneof12Type(TypedDict): - """RepositoryRuleDetailedOneof12""" - - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + type: Literal["required_signatures"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof12Type",) +__all__ = ("RepositoryRuleDetailedOneof6Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0347.py b/githubkit/versions/v2022_11_28/types/group_0347.py index c211adb82..a561d7692 100644 --- a/githubkit/versions/v2022_11_28/types/group_0347.py +++ b/githubkit/versions/v2022_11_28/types/group_0347.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0145 import RepositoryRuleBranchNamePatternPropParametersType +from .group_0140 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleDetailedOneof13Type(TypedDict): - """RepositoryRuleDetailedOneof13""" +class RepositoryRuleDetailedOneof7Type(TypedDict): + """RepositoryRuleDetailedOneof7""" - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof13Type",) +__all__ = ("RepositoryRuleDetailedOneof7Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0348.py b/githubkit/versions/v2022_11_28/types/group_0348.py index b094f8a9b..f6906b822 100644 --- a/githubkit/versions/v2022_11_28/types/group_0348.py +++ b/githubkit/versions/v2022_11_28/types/group_0348.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0147 import RepositoryRuleTagNamePatternPropParametersType +from .group_0142 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleDetailedOneof14Type(TypedDict): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof8Type(TypedDict): + """RepositoryRuleDetailedOneof8""" - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof14Type",) +__all__ = ("RepositoryRuleDetailedOneof8Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0349.py b/githubkit/versions/v2022_11_28/types/group_0349.py index 2b1918c48..d5be14715 100644 --- a/githubkit/versions/v2022_11_28/types/group_0349.py +++ b/githubkit/versions/v2022_11_28/types/group_0349.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0150 import RepositoryRuleWorkflowsPropParametersType +class RepositoryRuleDetailedOneof9Type(TypedDict): + """RepositoryRuleDetailedOneof9""" -class RepositoryRuleDetailedOneof15Type(TypedDict): - """RepositoryRuleDetailedOneof15""" - - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + type: Literal["non_fast_forward"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof15Type",) +__all__ = ("RepositoryRuleDetailedOneof9Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0350.py b/githubkit/versions/v2022_11_28/types/group_0350.py index 5047f81c8..f621cf952 100644 --- a/githubkit/versions/v2022_11_28/types/group_0350.py +++ b/githubkit/versions/v2022_11_28/types/group_0350.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0152 import RepositoryRuleCodeScanningPropParametersType +from .group_0144 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleDetailedOneof16Type(TypedDict): - """RepositoryRuleDetailedOneof16""" +class RepositoryRuleDetailedOneof10Type(TypedDict): + """RepositoryRuleDetailedOneof10""" - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof16Type",) +__all__ = ("RepositoryRuleDetailedOneof10Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0351.py b/githubkit/versions/v2022_11_28/types/group_0351.py index 42bafed9a..a9de50c2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0351.py +++ b/githubkit/versions/v2022_11_28/types/group_0351.py @@ -9,42 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType - - -class SecretScanningAlertType(TypedDict): - """SecretScanningAlert""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - - -__all__ = ("SecretScanningAlertType",) +from .group_0146 import RepositoryRuleCommitAuthorEmailPatternPropParametersType + + +class RepositoryRuleDetailedOneof11Type(TypedDict): + """RepositoryRuleDetailedOneof11""" + + type: Literal["commit_author_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] + + +__all__ = ("RepositoryRuleDetailedOneof11Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0352.py b/githubkit/versions/v2022_11_28/types/group_0352.py index a7d6503ef..f798db5b5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0352.py +++ b/githubkit/versions/v2022_11_28/types/group_0352.py @@ -9,17 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0148 import RepositoryRuleCommitterEmailPatternPropParametersType -class SecretScanningPushProtectionBypassType(TypedDict): - """SecretScanningPushProtectionBypass""" - reason: NotRequired[Literal["false_positive", "used_in_tests", "will_fix_later"]] - expire_at: NotRequired[Union[datetime, None]] - token_type: NotRequired[str] +class RepositoryRuleDetailedOneof12Type(TypedDict): + """RepositoryRuleDetailedOneof12""" + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -__all__ = ("SecretScanningPushProtectionBypassType",) + +__all__ = ("RepositoryRuleDetailedOneof12Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0353.py b/githubkit/versions/v2022_11_28/types/group_0353.py index c28f498af..92971a8ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0353.py +++ b/githubkit/versions/v2022_11_28/types/group_0353.py @@ -9,47 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0150 import RepositoryRuleBranchNamePatternPropParametersType -class SecretScanningScanHistoryType(TypedDict): - """SecretScanningScanHistory""" - incremental_scans: NotRequired[list[SecretScanningScanType]] - pattern_update_scans: NotRequired[list[SecretScanningScanType]] - backfill_scans: NotRequired[list[SecretScanningScanType]] - custom_pattern_backfill_scans: NotRequired[ - list[SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType] - ] +class RepositoryRuleDetailedOneof13Type(TypedDict): + """RepositoryRuleDetailedOneof13""" + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class SecretScanningScanType(TypedDict): - """SecretScanningScan - Information on a single scan performed by secret scanning on the repository - """ - - type: NotRequired[str] - status: NotRequired[str] - completed_at: NotRequired[Union[datetime, None]] - started_at: NotRequired[Union[datetime, None]] - - -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType(TypedDict): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - - type: NotRequired[str] - status: NotRequired[str] - completed_at: NotRequired[Union[datetime, None]] - started_at: NotRequired[Union[datetime, None]] - pattern_name: NotRequired[str] - pattern_scope: NotRequired[str] - - -__all__ = ( - "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", - "SecretScanningScanHistoryType", - "SecretScanningScanType", -) +__all__ = ("RepositoryRuleDetailedOneof13Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0354.py b/githubkit/versions/v2022_11_28/types/group_0354.py index 3fadc1994..2829eb289 100644 --- a/githubkit/versions/v2022_11_28/types/group_0354.py +++ b/githubkit/versions/v2022_11_28/types/group_0354.py @@ -9,14 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0152 import RepositoryRuleTagNamePatternPropParametersType -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type(TypedDict): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - pattern_name: NotRequired[str] - pattern_scope: NotRequired[str] +class RepositoryRuleDetailedOneof14Type(TypedDict): + """RepositoryRuleDetailedOneof14""" + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type",) + +__all__ = ("RepositoryRuleDetailedOneof14Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0355.py b/githubkit/versions/v2022_11_28/types/group_0355.py index 3bd956c2f..fbe9dba96 100644 --- a/githubkit/versions/v2022_11_28/types/group_0355.py +++ b/githubkit/versions/v2022_11_28/types/group_0355.py @@ -9,80 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0155 import RepositoryRuleWorkflowsPropParametersType -class RepositoryAdvisoryCreateType(TypedDict): - """RepositoryAdvisoryCreate""" - summary: str - description: str - cve_id: NotRequired[Union[str, None]] - vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] - cwe_ids: NotRequired[Union[list[str], None]] - credits_: NotRequired[ - Union[list[RepositoryAdvisoryCreatePropCreditsItemsType], None] - ] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - start_private_fork: NotRequired[bool] +class RepositoryRuleDetailedOneof15Type(TypedDict): + """RepositoryRuleDetailedOneof15""" + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryCreatePropCreditsItems""" - login: str - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "RepositoryAdvisoryCreatePropCreditsItemsType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryCreateType", -) +__all__ = ("RepositoryRuleDetailedOneof15Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0356.py b/githubkit/versions/v2022_11_28/types/group_0356.py index 23f5f5af0..7ba07005e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0356.py +++ b/githubkit/versions/v2022_11_28/types/group_0356.py @@ -9,61 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0157 import RepositoryRuleCodeScanningPropParametersType -class PrivateVulnerabilityReportCreateType(TypedDict): - """PrivateVulnerabilityReportCreate""" - summary: str - description: str - vulnerabilities: NotRequired[ - Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType], None] - ] - cwe_ids: NotRequired[Union[list[str], None]] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - start_private_fork: NotRequired[bool] +class RepositoryRuleDetailedOneof16Type(TypedDict): + """RepositoryRuleDetailedOneof16""" + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType(TypedDict): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", - "PrivateVulnerabilityReportCreateType", -) +__all__ = ("RepositoryRuleDetailedOneof16Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0357.py b/githubkit/versions/v2022_11_28/types/group_0357.py index 689cbef7f..ddc3df6ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0357.py +++ b/githubkit/versions/v2022_11_28/types/group_0357.py @@ -9,84 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class RepositoryAdvisoryUpdateType(TypedDict): - """RepositoryAdvisoryUpdate""" - - summary: NotRequired[str] - description: NotRequired[str] - cve_id: NotRequired[Union[str, None]] - vulnerabilities: NotRequired[ - list[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] - ] - cwe_ids: NotRequired[Union[list[str], None]] - credits_: NotRequired[ - Union[list[RepositoryAdvisoryUpdatePropCreditsItemsType], None] - ] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - state: NotRequired[Literal["published", "closed", "draft"]] - collaborating_users: NotRequired[Union[list[str], None]] - collaborating_teams: NotRequired[Union[list[str], None]] - - -class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropCreditsItems""" - - login: str - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] +class SecretScanningAlertType(TypedDict): + """SecretScanningAlert""" -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "RepositoryAdvisoryUpdatePropCreditsItemsType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryUpdateType", -) + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + + +__all__ = ("SecretScanningAlertType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0358.py b/githubkit/versions/v2022_11_28/types/group_0358.py index 5fdecfac2..a7d6503ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0358.py +++ b/githubkit/versions/v2022_11_28/types/group_0358.py @@ -10,20 +10,16 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class SecretScanningPushProtectionBypassType(TypedDict): + """SecretScanningPushProtectionBypass""" -class StargazerType(TypedDict): - """Stargazer + reason: NotRequired[Literal["false_positive", "used_in_tests", "will_fix_later"]] + expire_at: NotRequired[Union[datetime, None]] + token_type: NotRequired[str] - Stargazer - """ - starred_at: datetime - user: Union[None, SimpleUserType] - - -__all__ = ("StargazerType",) +__all__ = ("SecretScanningPushProtectionBypassType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0359.py b/githubkit/versions/v2022_11_28/types/group_0359.py index c3c8c7e64..c28f498af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0359.py +++ b/githubkit/versions/v2022_11_28/types/group_0359.py @@ -9,18 +9,47 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -class CommitActivityType(TypedDict): - """Commit Activity +class SecretScanningScanHistoryType(TypedDict): + """SecretScanningScanHistory""" - Commit Activity + incremental_scans: NotRequired[list[SecretScanningScanType]] + pattern_update_scans: NotRequired[list[SecretScanningScanType]] + backfill_scans: NotRequired[list[SecretScanningScanType]] + custom_pattern_backfill_scans: NotRequired[ + list[SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType] + ] + + +class SecretScanningScanType(TypedDict): + """SecretScanningScan + + Information on a single scan performed by secret scanning on the repository """ - days: list[int] - total: int - week: int + type: NotRequired[str] + status: NotRequired[str] + completed_at: NotRequired[Union[datetime, None]] + started_at: NotRequired[Union[datetime, None]] + + +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType(TypedDict): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" + + type: NotRequired[str] + status: NotRequired[str] + completed_at: NotRequired[Union[datetime, None]] + started_at: NotRequired[Union[datetime, None]] + pattern_name: NotRequired[str] + pattern_scope: NotRequired[str] -__all__ = ("CommitActivityType",) +__all__ = ( + "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", + "SecretScanningScanHistoryType", + "SecretScanningScanType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0360.py b/githubkit/versions/v2022_11_28/types/group_0360.py index 1273ea797..3fadc1994 100644 --- a/githubkit/versions/v2022_11_28/types/group_0360.py +++ b/githubkit/versions/v2022_11_28/types/group_0360.py @@ -9,33 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type(TypedDict): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" -class ContributorActivityType(TypedDict): - """Contributor Activity + pattern_name: NotRequired[str] + pattern_scope: NotRequired[str] - Contributor Activity - """ - author: Union[None, SimpleUserType] - total: int - weeks: list[ContributorActivityPropWeeksItemsType] - - -class ContributorActivityPropWeeksItemsType(TypedDict): - """ContributorActivityPropWeeksItems""" - - w: NotRequired[int] - a: NotRequired[int] - d: NotRequired[int] - c: NotRequired[int] - - -__all__ = ( - "ContributorActivityPropWeeksItemsType", - "ContributorActivityType", -) +__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0361.py b/githubkit/versions/v2022_11_28/types/group_0361.py index 4bde16f66..3bd956c2f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0361.py +++ b/githubkit/versions/v2022_11_28/types/group_0361.py @@ -9,14 +9,80 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class ParticipationStatsType(TypedDict): - """Participation Stats""" +class RepositoryAdvisoryCreateType(TypedDict): + """RepositoryAdvisoryCreate""" - all_: list[int] - owner: list[int] + summary: str + description: str + cve_id: NotRequired[Union[str, None]] + vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] + cwe_ids: NotRequired[Union[list[str], None]] + credits_: NotRequired[ + Union[list[RepositoryAdvisoryCreatePropCreditsItemsType], None] + ] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + start_private_fork: NotRequired[bool] -__all__ = ("ParticipationStatsType",) +class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryCreatePropCreditsItems""" + + login: str + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[list[str], None]] + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] + + +__all__ = ( + "RepositoryAdvisoryCreatePropCreditsItemsType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryCreateType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0362.py b/githubkit/versions/v2022_11_28/types/group_0362.py index 00a60951a..23f5f5af0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0362.py +++ b/githubkit/versions/v2022_11_28/types/group_0362.py @@ -9,23 +9,61 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class RepositorySubscriptionType(TypedDict): - """Repository Invitation +class PrivateVulnerabilityReportCreateType(TypedDict): + """PrivateVulnerabilityReportCreate""" - Repository invitations let you manage who you collaborate with. + summary: str + description: str + vulnerabilities: NotRequired[ + Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType], None] + ] + cwe_ids: NotRequired[Union[list[str], None]] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + start_private_fork: NotRequired[bool] + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType(TypedDict): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" + + package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[list[str], None]] + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: datetime - url: str - repository_url: str + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] -__all__ = ("RepositorySubscriptionType",) +__all__ = ( + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", + "PrivateVulnerabilityReportCreateType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0363.py b/githubkit/versions/v2022_11_28/types/group_0363.py index 8a231b6fb..689cbef7f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0363.py +++ b/githubkit/versions/v2022_11_28/types/group_0363.py @@ -9,30 +9,84 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class TagType(TypedDict): - """Tag +class RepositoryAdvisoryUpdateType(TypedDict): + """RepositoryAdvisoryUpdate""" - Tag - """ + summary: NotRequired[str] + description: NotRequired[str] + cve_id: NotRequired[Union[str, None]] + vulnerabilities: NotRequired[ + list[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] + ] + cwe_ids: NotRequired[Union[list[str], None]] + credits_: NotRequired[ + Union[list[RepositoryAdvisoryUpdatePropCreditsItemsType], None] + ] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + state: NotRequired[Literal["published", "closed", "draft"]] + collaborating_users: NotRequired[Union[list[str], None]] + collaborating_teams: NotRequired[Union[list[str], None]] + + +class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryUpdatePropCreditsItems""" + + login: str + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] - name: str - commit: TagPropCommitType - zipball_url: str - tarball_url: str - node_id: str +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" -class TagPropCommitType(TypedDict): - """TagPropCommit""" + package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[list[str], None]] + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ - sha: str - url: str + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] __all__ = ( - "TagPropCommitType", - "TagType", + "RepositoryAdvisoryUpdatePropCreditsItemsType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryUpdateType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0364.py b/githubkit/versions/v2022_11_28/types/group_0364.py index a09ecf462..ca2546e70 100644 --- a/githubkit/versions/v2022_11_28/types/group_0364.py +++ b/githubkit/versions/v2022_11_28/types/group_0364.py @@ -9,20 +9,21 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class TagProtectionType(TypedDict): - """Tag protection - Tag protection +class StargazerType(TypedDict): + """Stargazer + + Stargazer """ - id: NotRequired[int] - created_at: NotRequired[str] - updated_at: NotRequired[str] - enabled: NotRequired[bool] - pattern: str + starred_at: datetime + user: Union[None, SimpleUserType] -__all__ = ("TagProtectionType",) +__all__ = ("StargazerType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0365.py b/githubkit/versions/v2022_11_28/types/group_0365.py index 69365fe85..c3c8c7e64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0365.py +++ b/githubkit/versions/v2022_11_28/types/group_0365.py @@ -12,13 +12,15 @@ from typing_extensions import TypedDict -class TopicType(TypedDict): - """Topic +class CommitActivityType(TypedDict): + """Commit Activity - A topic aggregates entities that are related to a subject. + Commit Activity """ - names: list[str] + days: list[int] + total: int + week: int -__all__ = ("TopicType",) +__all__ = ("CommitActivityType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0366.py b/githubkit/versions/v2022_11_28/types/group_0366.py index 2412270d8..0c764aa8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0366.py +++ b/githubkit/versions/v2022_11_28/types/group_0366.py @@ -9,16 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class TrafficType(TypedDict): - """Traffic""" - timestamp: datetime - uniques: int - count: int +class ContributorActivityType(TypedDict): + """Contributor Activity + Contributor Activity + """ -__all__ = ("TrafficType",) + author: Union[None, SimpleUserType] + total: int + weeks: list[ContributorActivityPropWeeksItemsType] + + +class ContributorActivityPropWeeksItemsType(TypedDict): + """ContributorActivityPropWeeksItems""" + + w: NotRequired[int] + a: NotRequired[int] + d: NotRequired[int] + c: NotRequired[int] + + +__all__ = ( + "ContributorActivityPropWeeksItemsType", + "ContributorActivityType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0367.py b/githubkit/versions/v2022_11_28/types/group_0367.py index 43933cc45..4bde16f66 100644 --- a/githubkit/versions/v2022_11_28/types/group_0367.py +++ b/githubkit/versions/v2022_11_28/types/group_0367.py @@ -11,18 +11,12 @@ from typing_extensions import TypedDict -from .group_0366 import TrafficType +class ParticipationStatsType(TypedDict): + """Participation Stats""" -class CloneTrafficType(TypedDict): - """Clone Traffic + all_: list[int] + owner: list[int] - Clone Traffic - """ - count: int - uniques: int - clones: list[TrafficType] - - -__all__ = ("CloneTrafficType",) +__all__ = ("ParticipationStatsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0368.py b/githubkit/versions/v2022_11_28/types/group_0368.py index 8ae9ebc92..00a60951a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0368.py +++ b/githubkit/versions/v2022_11_28/types/group_0368.py @@ -9,19 +9,23 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import TypedDict -class ContentTrafficType(TypedDict): - """Content Traffic +class RepositorySubscriptionType(TypedDict): + """Repository Invitation - Content Traffic + Repository invitations let you manage who you collaborate with. """ - path: str - title: str - count: int - uniques: int + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: datetime + url: str + repository_url: str -__all__ = ("ContentTrafficType",) +__all__ = ("RepositorySubscriptionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0369.py b/githubkit/versions/v2022_11_28/types/group_0369.py index d7d63281a..8a231b6fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0369.py +++ b/githubkit/versions/v2022_11_28/types/group_0369.py @@ -12,15 +12,27 @@ from typing_extensions import TypedDict -class ReferrerTrafficType(TypedDict): - """Referrer Traffic +class TagType(TypedDict): + """Tag - Referrer Traffic + Tag """ - referrer: str - count: int - uniques: int + name: str + commit: TagPropCommitType + zipball_url: str + tarball_url: str + node_id: str -__all__ = ("ReferrerTrafficType",) +class TagPropCommitType(TypedDict): + """TagPropCommit""" + + sha: str + url: str + + +__all__ = ( + "TagPropCommitType", + "TagType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0370.py b/githubkit/versions/v2022_11_28/types/group_0370.py index a0e817aed..a09ecf462 100644 --- a/githubkit/versions/v2022_11_28/types/group_0370.py +++ b/githubkit/versions/v2022_11_28/types/group_0370.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0366 import TrafficType +class TagProtectionType(TypedDict): + """Tag protection -class ViewTrafficType(TypedDict): - """View Traffic - - View Traffic + Tag protection """ - count: int - uniques: int - views: list[TrafficType] + id: NotRequired[int] + created_at: NotRequired[str] + updated_at: NotRequired[str] + enabled: NotRequired[bool] + pattern: str -__all__ = ("ViewTrafficType",) +__all__ = ("TagProtectionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0371.py b/githubkit/versions/v2022_11_28/types/group_0371.py index e1d436bf1..69365fe85 100644 --- a/githubkit/versions/v2022_11_28/types/group_0371.py +++ b/githubkit/versions/v2022_11_28/types/group_0371.py @@ -9,28 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class SearchResultTextMatchesItemsType(TypedDict): - """SearchResultTextMatchesItems""" +class TopicType(TypedDict): + """Topic - object_url: NotRequired[str] - object_type: NotRequired[Union[str, None]] - property_: NotRequired[str] - fragment: NotRequired[str] - matches: NotRequired[list[SearchResultTextMatchesItemsPropMatchesItemsType]] + A topic aggregates entities that are related to a subject. + """ + names: list[str] -class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): - """SearchResultTextMatchesItemsPropMatchesItems""" - text: NotRequired[str] - indices: NotRequired[list[int]] - - -__all__ = ( - "SearchResultTextMatchesItemsPropMatchesItemsType", - "SearchResultTextMatchesItemsType", -) +__all__ = ("TopicType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0372.py b/githubkit/versions/v2022_11_28/types/group_0372.py index b6126bf7b..2412270d8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0372.py +++ b/githubkit/versions/v2022_11_28/types/group_0372.py @@ -10,43 +10,15 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0056 import MinimalRepositoryType -from .group_0371 import SearchResultTextMatchesItemsType +class TrafficType(TypedDict): + """Traffic""" -class CodeSearchResultItemType(TypedDict): - """Code Search Result Item + timestamp: datetime + uniques: int + count: int - Code Search Result Item - """ - name: str - path: str - sha: str - url: str - git_url: str - html_url: str - repository: MinimalRepositoryType - score: float - file_size: NotRequired[int] - language: NotRequired[Union[str, None]] - last_modified_at: NotRequired[datetime] - line_numbers: NotRequired[list[str]] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - - -class SearchCodeGetResponse200Type(TypedDict): - """SearchCodeGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[CodeSearchResultItemType] - - -__all__ = ( - "CodeSearchResultItemType", - "SearchCodeGetResponse200Type", -) +__all__ = ("TrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0373.py b/githubkit/versions/v2022_11_28/types/group_0373.py index 751c41487..5dcd1930b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0373.py +++ b/githubkit/versions/v2022_11_28/types/group_0373.py @@ -9,54 +9,20 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0056 import MinimalRepositoryType -from .group_0201 import GitUserType -from .group_0371 import SearchResultTextMatchesItemsType -from .group_0374 import CommitSearchResultItemPropCommitType +from .group_0372 import TrafficType -class CommitSearchResultItemType(TypedDict): - """Commit Search Result Item +class CloneTrafficType(TypedDict): + """Clone Traffic - Commit Search Result Item + Clone Traffic """ - url: str - sha: str - html_url: str - comments_url: str - commit: CommitSearchResultItemPropCommitType - author: Union[None, SimpleUserType] - committer: Union[None, GitUserType] - parents: list[CommitSearchResultItemPropParentsItemsType] - repository: MinimalRepositoryType - score: float - node_id: str - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + count: int + uniques: int + clones: list[TrafficType] -class CommitSearchResultItemPropParentsItemsType(TypedDict): - """CommitSearchResultItemPropParentsItems""" - - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] - - -class SearchCommitsGetResponse200Type(TypedDict): - """SearchCommitsGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[CommitSearchResultItemType] - - -__all__ = ( - "CommitSearchResultItemPropParentsItemsType", - "CommitSearchResultItemType", - "SearchCommitsGetResponse200Type", -) +__all__ = ("CloneTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0374.py b/githubkit/versions/v2022_11_28/types/group_0374.py index d45b45a61..8ae9ebc92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0374.py +++ b/githubkit/versions/v2022_11_28/types/group_0374.py @@ -9,43 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0201 import GitUserType -from .group_0202 import VerificationType +class ContentTrafficType(TypedDict): + """Content Traffic -class CommitSearchResultItemPropCommitType(TypedDict): - """CommitSearchResultItemPropCommit""" + Content Traffic + """ - author: CommitSearchResultItemPropCommitPropAuthorType - committer: Union[None, GitUserType] - comment_count: int - message: str - tree: CommitSearchResultItemPropCommitPropTreeType - url: str - verification: NotRequired[VerificationType] + path: str + title: str + count: int + uniques: int -class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): - """CommitSearchResultItemPropCommitPropAuthor""" - - name: str - email: str - date: datetime - - -class CommitSearchResultItemPropCommitPropTreeType(TypedDict): - """CommitSearchResultItemPropCommitPropTree""" - - sha: str - url: str - - -__all__ = ( - "CommitSearchResultItemPropCommitPropAuthorType", - "CommitSearchResultItemPropCommitPropTreeType", - "CommitSearchResultItemPropCommitType", -) +__all__ = ("ContentTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0375.py b/githubkit/versions/v2022_11_28/types/group_0375.py index 3134b6cc2..d7d63281a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0375.py +++ b/githubkit/versions/v2022_11_28/types/group_0375.py @@ -9,113 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0008 import IntegrationType -from .group_0019 import RepositoryType -from .group_0038 import MilestoneType -from .group_0039 import ReactionRollupType -from .group_0371 import SearchResultTextMatchesItemsType +class ReferrerTrafficType(TypedDict): + """Referrer Traffic -class IssueSearchResultItemType(TypedDict): - """Issue Search Result Item - - Issue Search Result Item + Referrer Traffic """ - url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str - html_url: str - id: int - node_id: str - number: int - title: str - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - assignees: NotRequired[Union[list[SimpleUserType], None]] - user: Union[None, SimpleUserType] - labels: list[IssueSearchResultItemPropLabelsItemsType] - sub_issues_summary: NotRequired[IssueSearchResultItemPropSubIssuesSummaryType] - state: str - state_reason: NotRequired[Union[str, None]] - assignee: Union[None, SimpleUserType] - milestone: Union[None, MilestoneType] - comments: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] - body: NotRequired[str] - score: float - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - draft: NotRequired[bool] - repository: NotRequired[RepositoryType] - body_html: NotRequired[str] - body_text: NotRequired[str] - timeline_url: NotRequired[str] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] - - -class IssueSearchResultItemPropLabelsItemsType(TypedDict): - """IssueSearchResultItemPropLabelsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - name: NotRequired[str] - color: NotRequired[str] - default: NotRequired[bool] - description: NotRequired[Union[str, None]] - - -class IssueSearchResultItemPropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class IssueSearchResultItemPropPullRequestType(TypedDict): - """IssueSearchResultItemPropPullRequest""" - - merged_at: NotRequired[Union[datetime, None]] - diff_url: Union[str, None] - html_url: Union[str, None] - patch_url: Union[str, None] - url: Union[str, None] - - -class SearchIssuesGetResponse200Type(TypedDict): - """SearchIssuesGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[IssueSearchResultItemType] + referrer: str + count: int + uniques: int -__all__ = ( - "IssueSearchResultItemPropLabelsItemsType", - "IssueSearchResultItemPropPullRequestType", - "IssueSearchResultItemPropSubIssuesSummaryType", - "IssueSearchResultItemType", - "SearchIssuesGetResponse200Type", -) +__all__ = ("ReferrerTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0376.py b/githubkit/versions/v2022_11_28/types/group_0376.py index 3a5c5112b..39e1151a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0376.py +++ b/githubkit/versions/v2022_11_28/types/group_0376.py @@ -9,38 +9,20 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0371 import SearchResultTextMatchesItemsType +from .group_0372 import TrafficType -class LabelSearchResultItemType(TypedDict): - """Label Search Result Item +class ViewTrafficType(TypedDict): + """View Traffic - Label Search Result Item + View Traffic """ - id: int - node_id: str - url: str - name: str - color: str - default: bool - description: Union[str, None] - score: float - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + count: int + uniques: int + views: list[TrafficType] -class SearchLabelsGetResponse200Type(TypedDict): - """SearchLabelsGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[LabelSearchResultItemType] - - -__all__ = ( - "LabelSearchResultItemType", - "SearchLabelsGetResponse200Type", -) +__all__ = ("ViewTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0377.py b/githubkit/versions/v2022_11_28/types/group_0377.py index 92e83daf3..e1d436bf1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0377.py +++ b/githubkit/versions/v2022_11_28/types/group_0377.py @@ -9,132 +9,28 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0018 import LicenseSimpleType -from .group_0371 import SearchResultTextMatchesItemsType +class SearchResultTextMatchesItemsType(TypedDict): + """SearchResultTextMatchesItems""" -class RepoSearchResultItemType(TypedDict): - """Repo Search Result Item + object_url: NotRequired[str] + object_type: NotRequired[Union[str, None]] + property_: NotRequired[str] + fragment: NotRequired[str] + matches: NotRequired[list[SearchResultTextMatchesItemsPropMatchesItemsType]] - Repo Search Result Item - """ - id: int - node_id: str - name: str - full_name: str - owner: Union[None, SimpleUserType] - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - created_at: datetime - updated_at: datetime - pushed_at: datetime - homepage: Union[str, None] - size: int - stargazers_count: int - watchers_count: int - language: Union[str, None] - forks_count: int - open_issues_count: int - master_branch: NotRequired[str] - default_branch: str - score: float - forks_url: str - keys_url: str - collaborators_url: str - teams_url: str - hooks_url: str - issue_events_url: str - events_url: str - assignees_url: str - branches_url: str - tags_url: str - blobs_url: str - git_tags_url: str - git_refs_url: str - trees_url: str - statuses_url: str - languages_url: str - stargazers_url: str - contributors_url: str - subscribers_url: str - subscription_url: str - commits_url: str - git_commits_url: str - comments_url: str - issue_comment_url: str - contents_url: str - compare_url: str - merges_url: str - archive_url: str - downloads_url: str - issues_url: str - pulls_url: str - milestones_url: str - notifications_url: str - labels_url: str - releases_url: str - deployments_url: str - git_url: str - ssh_url: str - clone_url: str - svn_url: str - forks: int - open_issues: int - watchers: int - topics: NotRequired[list[str]] - mirror_url: Union[str, None] - has_issues: bool - has_projects: bool - has_pages: bool - has_wiki: bool - has_downloads: bool - has_discussions: NotRequired[bool] - archived: bool - disabled: bool - visibility: NotRequired[str] - license_: Union[None, LicenseSimpleType] - permissions: NotRequired[RepoSearchResultItemPropPermissionsType] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - temp_clone_token: NotRequired[Union[str, None]] - allow_merge_commit: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - is_template: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] +class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): + """SearchResultTextMatchesItemsPropMatchesItems""" - -class RepoSearchResultItemPropPermissionsType(TypedDict): - """RepoSearchResultItemPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool - - -class SearchRepositoriesGetResponse200Type(TypedDict): - """SearchRepositoriesGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[RepoSearchResultItemType] + text: NotRequired[str] + indices: NotRequired[list[int]] __all__ = ( - "RepoSearchResultItemPropPermissionsType", - "RepoSearchResultItemType", - "SearchRepositoriesGetResponse200Type", + "SearchResultTextMatchesItemsPropMatchesItemsType", + "SearchResultTextMatchesItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0378.py b/githubkit/versions/v2022_11_28/types/group_0378.py index 6e8907bfe..a0a37902b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0378.py +++ b/githubkit/versions/v2022_11_28/types/group_0378.py @@ -13,80 +13,40 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0371 import SearchResultTextMatchesItemsType +from .group_0057 import MinimalRepositoryType +from .group_0377 import SearchResultTextMatchesItemsType -class TopicSearchResultItemType(TypedDict): - """Topic Search Result Item +class CodeSearchResultItemType(TypedDict): + """Code Search Result Item - Topic Search Result Item + Code Search Result Item """ name: str - display_name: Union[str, None] - short_description: Union[str, None] - description: Union[str, None] - created_by: Union[str, None] - released: Union[str, None] - created_at: datetime - updated_at: datetime - featured: bool - curated: bool + path: str + sha: str + url: str + git_url: str + html_url: str + repository: MinimalRepositoryType score: float - repository_count: NotRequired[Union[int, None]] - logo_url: NotRequired[Union[str, None]] + file_size: NotRequired[int] + language: NotRequired[Union[str, None]] + last_modified_at: NotRequired[datetime] + line_numbers: NotRequired[list[str]] text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - related: NotRequired[Union[list[TopicSearchResultItemPropRelatedItemsType], None]] - aliases: NotRequired[Union[list[TopicSearchResultItemPropAliasesItemsType], None]] -class TopicSearchResultItemPropRelatedItemsType(TypedDict): - """TopicSearchResultItemPropRelatedItems""" - - topic_relation: NotRequired[ - TopicSearchResultItemPropRelatedItemsPropTopicRelationType - ] - - -class TopicSearchResultItemPropRelatedItemsPropTopicRelationType(TypedDict): - """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - - id: NotRequired[int] - name: NotRequired[str] - topic_id: NotRequired[int] - relation_type: NotRequired[str] - - -class TopicSearchResultItemPropAliasesItemsType(TypedDict): - """TopicSearchResultItemPropAliasesItems""" - - topic_relation: NotRequired[ - TopicSearchResultItemPropAliasesItemsPropTopicRelationType - ] - - -class TopicSearchResultItemPropAliasesItemsPropTopicRelationType(TypedDict): - """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - - id: NotRequired[int] - name: NotRequired[str] - topic_id: NotRequired[int] - relation_type: NotRequired[str] - - -class SearchTopicsGetResponse200Type(TypedDict): - """SearchTopicsGetResponse200""" +class SearchCodeGetResponse200Type(TypedDict): + """SearchCodeGetResponse200""" total_count: int incomplete_results: bool - items: list[TopicSearchResultItemType] + items: list[CodeSearchResultItemType] __all__ = ( - "SearchTopicsGetResponse200Type", - "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", - "TopicSearchResultItemPropAliasesItemsType", - "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", - "TopicSearchResultItemPropRelatedItemsType", - "TopicSearchResultItemType", + "CodeSearchResultItemType", + "SearchCodeGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0379.py b/githubkit/versions/v2022_11_28/types/group_0379.py index 0ddf2e3f7..de23f5b1c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0379.py +++ b/githubkit/versions/v2022_11_28/types/group_0379.py @@ -9,65 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0371 import SearchResultTextMatchesItemsType +from .group_0003 import SimpleUserType +from .group_0057 import MinimalRepositoryType +from .group_0207 import GitUserType +from .group_0377 import SearchResultTextMatchesItemsType +from .group_0380 import CommitSearchResultItemPropCommitType -class UserSearchResultItemType(TypedDict): - """User Search Result Item +class CommitSearchResultItemType(TypedDict): + """Commit Search Result Item - User Search Result Item + Commit Search Result Item """ - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] url: str + sha: str html_url: str - followers_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - received_events_url: str - type: str + comments_url: str + commit: CommitSearchResultItemPropCommitType + author: Union[None, SimpleUserType] + committer: Union[None, GitUserType] + parents: list[CommitSearchResultItemPropParentsItemsType] + repository: MinimalRepositoryType score: float - following_url: str - gists_url: str - starred_url: str - events_url: str - public_repos: NotRequired[int] - public_gists: NotRequired[int] - followers: NotRequired[int] - following: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - name: NotRequired[Union[str, None]] - bio: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - site_admin: bool - hireable: NotRequired[Union[bool, None]] + node_id: str text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - blog: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - suspended_at: NotRequired[Union[datetime, None]] - user_view_type: NotRequired[str] -class SearchUsersGetResponse200Type(TypedDict): - """SearchUsersGetResponse200""" +class CommitSearchResultItemPropParentsItemsType(TypedDict): + """CommitSearchResultItemPropParentsItems""" + + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] + + +class SearchCommitsGetResponse200Type(TypedDict): + """SearchCommitsGetResponse200""" total_count: int incomplete_results: bool - items: list[UserSearchResultItemType] + items: list[CommitSearchResultItemType] __all__ = ( - "SearchUsersGetResponse200Type", - "UserSearchResultItemType", + "CommitSearchResultItemPropParentsItemsType", + "CommitSearchResultItemType", + "SearchCommitsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0380.py b/githubkit/versions/v2022_11_28/types/group_0380.py index 855325c4a..b3563a0f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0380.py +++ b/githubkit/versions/v2022_11_28/types/group_0380.py @@ -13,68 +13,39 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0207 import GitUserType +from .group_0208 import VerificationType -class PrivateUserType(TypedDict): - """Private User - Private User - """ +class CommitSearchResultItemPropCommitType(TypedDict): + """CommitSearchResultItemPropCommit""" - login: str - id: int - user_view_type: NotRequired[str] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] + author: CommitSearchResultItemPropCommitPropAuthorType + committer: Union[None, GitUserType] + comment_count: int + message: str + tree: CommitSearchResultItemPropCommitPropTreeType url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - name: Union[str, None] - company: Union[str, None] - blog: Union[str, None] - location: Union[str, None] - email: Union[str, None] - notification_email: NotRequired[Union[str, None]] - hireable: Union[bool, None] - bio: Union[str, None] - twitter_username: NotRequired[Union[str, None]] - public_repos: int - public_gists: int - followers: int - following: int - created_at: datetime - updated_at: datetime - private_gists: int - total_private_repos: int - owned_private_repos: int - disk_usage: int - collaborators: int - two_factor_authentication: bool - plan: NotRequired[PrivateUserPropPlanType] - business_plus: NotRequired[bool] - ldap_dn: NotRequired[str] - - -class PrivateUserPropPlanType(TypedDict): - """PrivateUserPropPlan""" - - collaborators: int + verification: NotRequired[VerificationType] + + +class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): + """CommitSearchResultItemPropCommitPropAuthor""" + name: str - space: int - private_repos: int + email: str + date: datetime + + +class CommitSearchResultItemPropCommitPropTreeType(TypedDict): + """CommitSearchResultItemPropCommitPropTree""" + + sha: str + url: str __all__ = ( - "PrivateUserPropPlanType", - "PrivateUserType", + "CommitSearchResultItemPropCommitPropAuthorType", + "CommitSearchResultItemPropCommitPropTreeType", + "CommitSearchResultItemPropCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0381.py b/githubkit/versions/v2022_11_28/types/group_0381.py index 6be52538b..a59ac7bbb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0381.py +++ b/githubkit/versions/v2022_11_28/types/group_0381.py @@ -9,17 +9,113 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0020 import RepositoryType +from .group_0039 import MilestoneType +from .group_0040 import ReactionRollupType +from .group_0377 import SearchResultTextMatchesItemsType -class CodespacesUserPublicKeyType(TypedDict): - """CodespacesUserPublicKey - The public key used for setting user Codespaces' Secrets. +class IssueSearchResultItemType(TypedDict): + """Issue Search Result Item + + Issue Search Result Item """ - key_id: str - key: str + url: str + repository_url: str + labels_url: str + comments_url: str + events_url: str + html_url: str + id: int + node_id: str + number: int + title: str + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + assignees: NotRequired[Union[list[SimpleUserType], None]] + user: Union[None, SimpleUserType] + labels: list[IssueSearchResultItemPropLabelsItemsType] + sub_issues_summary: NotRequired[IssueSearchResultItemPropSubIssuesSummaryType] + state: str + state_reason: NotRequired[Union[str, None]] + assignee: Union[None, SimpleUserType] + milestone: Union[None, MilestoneType] + comments: int + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] + body: NotRequired[str] + score: float + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + draft: NotRequired[bool] + repository: NotRequired[RepositoryType] + body_html: NotRequired[str] + body_text: NotRequired[str] + timeline_url: NotRequired[str] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +class IssueSearchResultItemPropLabelsItemsType(TypedDict): + """IssueSearchResultItemPropLabelsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + name: NotRequired[str] + color: NotRequired[str] + default: NotRequired[bool] + description: NotRequired[Union[str, None]] + + +class IssueSearchResultItemPropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class IssueSearchResultItemPropPullRequestType(TypedDict): + """IssueSearchResultItemPropPullRequest""" + + merged_at: NotRequired[Union[datetime, None]] + diff_url: Union[str, None] + html_url: Union[str, None] + patch_url: Union[str, None] + url: Union[str, None] + + +class SearchIssuesGetResponse200Type(TypedDict): + """SearchIssuesGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[IssueSearchResultItemType] -__all__ = ("CodespacesUserPublicKeyType",) +__all__ = ( + "IssueSearchResultItemPropLabelsItemsType", + "IssueSearchResultItemPropPullRequestType", + "IssueSearchResultItemPropSubIssuesSummaryType", + "IssueSearchResultItemType", + "SearchIssuesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0382.py b/githubkit/versions/v2022_11_28/types/group_0382.py index 2b50d37d0..96624f3ed 100644 --- a/githubkit/versions/v2022_11_28/types/group_0382.py +++ b/githubkit/versions/v2022_11_28/types/group_0382.py @@ -9,25 +9,38 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0377 import SearchResultTextMatchesItemsType -class CodespaceExportDetailsType(TypedDict): - """Fetches information about an export of a codespace. - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest +class LabelSearchResultItemType(TypedDict): + """Label Search Result Item + + Label Search Result Item """ - state: NotRequired[Union[str, None]] - completed_at: NotRequired[Union[datetime, None]] - branch: NotRequired[Union[str, None]] - sha: NotRequired[Union[str, None]] - id: NotRequired[str] - export_url: NotRequired[str] - html_url: NotRequired[Union[str, None]] + id: int + node_id: str + url: str + name: str + color: str + default: bool + description: Union[str, None] + score: float + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + + +class SearchLabelsGetResponse200Type(TypedDict): + """SearchLabelsGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[LabelSearchResultItemType] -__all__ = ("CodespaceExportDetailsType",) +__all__ = ( + "LabelSearchResultItemType", + "SearchLabelsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0383.py b/githubkit/versions/v2022_11_28/types/group_0383.py index f9e591a57..5959bf6d2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0383.py +++ b/githubkit/versions/v2022_11_28/types/group_0383.py @@ -10,94 +10,131 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0077 import CodespaceMachineType -from .group_0112 import FullRepositoryType +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType +from .group_0377 import SearchResultTextMatchesItemsType -class CodespaceWithFullRepositoryType(TypedDict): - """Codespace +class RepoSearchResultItemType(TypedDict): + """Repo Search Result Item - A codespace. + Repo Search Result Item """ id: int + node_id: str name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: FullRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] + full_name: str + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str created_at: datetime updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] - url: str - git_status: CodespaceWithFullRepositoryPropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: list[str] - runtime_constraints: NotRequired[ - CodespaceWithFullRepositoryPropRuntimeConstraintsType - ] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] - - -class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): - """CodespaceWithFullRepositoryPropGitStatus - - Details about the codespace's git repository. - """ - - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] - - -class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" - - allowed_port_privacy_settings: NotRequired[Union[list[str], None]] + pushed_at: datetime + homepage: Union[str, None] + size: int + stargazers_count: int + watchers_count: int + language: Union[str, None] + forks_count: int + open_issues_count: int + master_branch: NotRequired[str] + default_branch: str + score: float + forks_url: str + keys_url: str + collaborators_url: str + teams_url: str + hooks_url: str + issue_events_url: str + events_url: str + assignees_url: str + branches_url: str + tags_url: str + blobs_url: str + git_tags_url: str + git_refs_url: str + trees_url: str + statuses_url: str + languages_url: str + stargazers_url: str + contributors_url: str + subscribers_url: str + subscription_url: str + commits_url: str + git_commits_url: str + comments_url: str + issue_comment_url: str + contents_url: str + compare_url: str + merges_url: str + archive_url: str + downloads_url: str + issues_url: str + pulls_url: str + milestones_url: str + notifications_url: str + labels_url: str + releases_url: str + deployments_url: str + git_url: str + ssh_url: str + clone_url: str + svn_url: str + forks: int + open_issues: int + watchers: int + topics: NotRequired[list[str]] + mirror_url: Union[str, None] + has_issues: bool + has_projects: bool + has_pages: bool + has_wiki: bool + has_downloads: bool + has_discussions: NotRequired[bool] + archived: bool + disabled: bool + visibility: NotRequired[str] + license_: Union[None, LicenseSimpleType] + permissions: NotRequired[RepoSearchResultItemPropPermissionsType] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + temp_clone_token: NotRequired[Union[str, None]] + allow_merge_commit: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + is_template: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + + +class RepoSearchResultItemPropPermissionsType(TypedDict): + """RepoSearchResultItemPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +class SearchRepositoriesGetResponse200Type(TypedDict): + """SearchRepositoriesGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[RepoSearchResultItemType] __all__ = ( - "CodespaceWithFullRepositoryPropGitStatusType", - "CodespaceWithFullRepositoryPropRuntimeConstraintsType", - "CodespaceWithFullRepositoryType", + "RepoSearchResultItemPropPermissionsType", + "RepoSearchResultItemType", + "SearchRepositoriesGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0384.py b/githubkit/versions/v2022_11_28/types/group_0384.py index 767832678..befabef68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0384.py +++ b/githubkit/versions/v2022_11_28/types/group_0384.py @@ -9,20 +9,84 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0377 import SearchResultTextMatchesItemsType -class EmailType(TypedDict): - """Email - Email +class TopicSearchResultItemType(TypedDict): + """Topic Search Result Item + + Topic Search Result Item """ - email: str - primary: bool - verified: bool - visibility: Union[str, None] + name: str + display_name: Union[str, None] + short_description: Union[str, None] + description: Union[str, None] + created_by: Union[str, None] + released: Union[str, None] + created_at: datetime + updated_at: datetime + featured: bool + curated: bool + score: float + repository_count: NotRequired[Union[int, None]] + logo_url: NotRequired[Union[str, None]] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + related: NotRequired[Union[list[TopicSearchResultItemPropRelatedItemsType], None]] + aliases: NotRequired[Union[list[TopicSearchResultItemPropAliasesItemsType], None]] + + +class TopicSearchResultItemPropRelatedItemsType(TypedDict): + """TopicSearchResultItemPropRelatedItems""" + + topic_relation: NotRequired[ + TopicSearchResultItemPropRelatedItemsPropTopicRelationType + ] + + +class TopicSearchResultItemPropRelatedItemsPropTopicRelationType(TypedDict): + """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" + + id: NotRequired[int] + name: NotRequired[str] + topic_id: NotRequired[int] + relation_type: NotRequired[str] + + +class TopicSearchResultItemPropAliasesItemsType(TypedDict): + """TopicSearchResultItemPropAliasesItems""" + + topic_relation: NotRequired[ + TopicSearchResultItemPropAliasesItemsPropTopicRelationType + ] + + +class TopicSearchResultItemPropAliasesItemsPropTopicRelationType(TypedDict): + """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" + + id: NotRequired[int] + name: NotRequired[str] + topic_id: NotRequired[int] + relation_type: NotRequired[str] + + +class SearchTopicsGetResponse200Type(TypedDict): + """SearchTopicsGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[TopicSearchResultItemType] -__all__ = ("EmailType",) +__all__ = ( + "SearchTopicsGetResponse200Type", + "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", + "TopicSearchResultItemPropAliasesItemsType", + "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", + "TopicSearchResultItemPropRelatedItemsType", + "TopicSearchResultItemType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0385.py b/githubkit/versions/v2022_11_28/types/group_0385.py index 324df51fb..e69c2db64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0385.py +++ b/githubkit/versions/v2022_11_28/types/group_0385.py @@ -10,69 +10,64 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0377 import SearchResultTextMatchesItemsType -class GpgKeyType(TypedDict): - """GPG Key - A unique encryption key +class UserSearchResultItemType(TypedDict): + """User Search Result Item + + User Search Result Item """ + login: str id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + received_events_url: str + type: str + score: float + following_url: str + gists_url: str + starred_url: str + events_url: str + public_repos: NotRequired[int] + public_gists: NotRequired[int] + followers: NotRequired[int] + following: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] name: NotRequired[Union[str, None]] - primary_key_id: Union[int, None] - key_id: str - public_key: str - emails: list[GpgKeyPropEmailsItemsType] - subkeys: list[GpgKeyPropSubkeysItemsType] - can_sign: bool - can_encrypt_comms: bool - can_encrypt_storage: bool - can_certify: bool - created_at: datetime - expires_at: Union[datetime, None] - revoked: bool - raw_key: Union[str, None] - - -class GpgKeyPropEmailsItemsType(TypedDict): - """GpgKeyPropEmailsItems""" - - email: NotRequired[str] - verified: NotRequired[bool] - - -class GpgKeyPropSubkeysItemsType(TypedDict): - """GpgKeyPropSubkeysItems""" - - id: NotRequired[int] - primary_key_id: NotRequired[int] - key_id: NotRequired[str] - public_key: NotRequired[str] - emails: NotRequired[list[GpgKeyPropSubkeysItemsPropEmailsItemsType]] - subkeys: NotRequired[list[Any]] - can_sign: NotRequired[bool] - can_encrypt_comms: NotRequired[bool] - can_encrypt_storage: NotRequired[bool] - can_certify: NotRequired[bool] - created_at: NotRequired[str] - expires_at: NotRequired[Union[str, None]] - raw_key: NotRequired[Union[str, None]] - revoked: NotRequired[bool] + bio: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + site_admin: bool + hireable: NotRequired[Union[bool, None]] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + blog: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + suspended_at: NotRequired[Union[datetime, None]] + user_view_type: NotRequired[str] -class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): - """GpgKeyPropSubkeysItemsPropEmailsItems""" +class SearchUsersGetResponse200Type(TypedDict): + """SearchUsersGetResponse200""" - email: NotRequired[str] - verified: NotRequired[bool] + total_count: int + incomplete_results: bool + items: list[UserSearchResultItemType] __all__ = ( - "GpgKeyPropEmailsItemsType", - "GpgKeyPropSubkeysItemsPropEmailsItemsType", - "GpgKeyPropSubkeysItemsType", - "GpgKeyType", + "SearchUsersGetResponse200Type", + "UserSearchResultItemType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0386.py b/githubkit/versions/v2022_11_28/types/group_0386.py index 6c95fc7a9..855325c4a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0386.py +++ b/githubkit/versions/v2022_11_28/types/group_0386.py @@ -10,22 +10,71 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class KeyType(TypedDict): - """Key +class PrivateUserType(TypedDict): + """Private User - Key + Private User """ - key: str + login: str id: int + user_view_type: NotRequired[str] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] url: str - title: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + name: Union[str, None] + company: Union[str, None] + blog: Union[str, None] + location: Union[str, None] + email: Union[str, None] + notification_email: NotRequired[Union[str, None]] + hireable: Union[bool, None] + bio: Union[str, None] + twitter_username: NotRequired[Union[str, None]] + public_repos: int + public_gists: int + followers: int + following: int created_at: datetime - verified: bool - read_only: bool + updated_at: datetime + private_gists: int + total_private_repos: int + owned_private_repos: int + disk_usage: int + collaborators: int + two_factor_authentication: bool + plan: NotRequired[PrivateUserPropPlanType] + business_plus: NotRequired[bool] + ldap_dn: NotRequired[str] -__all__ = ("KeyType",) +class PrivateUserPropPlanType(TypedDict): + """PrivateUserPropPlan""" + + collaborators: int + name: str + space: int + private_repos: int + + +__all__ = ( + "PrivateUserPropPlanType", + "PrivateUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0387.py b/githubkit/versions/v2022_11_28/types/group_0387.py index 4010d11f2..6be52538b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0387.py +++ b/githubkit/versions/v2022_11_28/types/group_0387.py @@ -9,42 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0051 import MarketplaceListingPlanType +class CodespacesUserPublicKeyType(TypedDict): + """CodespacesUserPublicKey -class UserMarketplacePurchaseType(TypedDict): - """User Marketplace Purchase - - User Marketplace Purchase + The public key used for setting user Codespaces' Secrets. """ - billing_cycle: str - next_billing_date: Union[datetime, None] - unit_count: Union[int, None] - on_free_trial: bool - free_trial_ends_on: Union[datetime, None] - updated_at: Union[datetime, None] - account: MarketplaceAccountType - plan: MarketplaceListingPlanType - - -class MarketplaceAccountType(TypedDict): - """Marketplace Account""" - - url: str - id: int - type: str - node_id: NotRequired[str] - login: str - email: NotRequired[Union[str, None]] - organization_billing_email: NotRequired[Union[str, None]] + key_id: str + key: str -__all__ = ( - "MarketplaceAccountType", - "UserMarketplacePurchaseType", -) +__all__ = ("CodespacesUserPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0388.py b/githubkit/versions/v2022_11_28/types/group_0388.py index f892fc0d3..2b50d37d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0388.py +++ b/githubkit/versions/v2022_11_28/types/group_0388.py @@ -9,17 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -class SocialAccountType(TypedDict): - """Social account +class CodespaceExportDetailsType(TypedDict): + """Fetches information about an export of a codespace. - Social media account + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - provider: str - url: str + state: NotRequired[Union[str, None]] + completed_at: NotRequired[Union[datetime, None]] + branch: NotRequired[Union[str, None]] + sha: NotRequired[Union[str, None]] + id: NotRequired[str] + export_url: NotRequired[str] + html_url: NotRequired[Union[str, None]] -__all__ = ("SocialAccountType",) +__all__ = ("CodespaceExportDetailsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0389.py b/githubkit/versions/v2022_11_28/types/group_0389.py index a3c3f348b..322fcdbde 100644 --- a/githubkit/versions/v2022_11_28/types/group_0389.py +++ b/githubkit/versions/v2022_11_28/types/group_0389.py @@ -10,19 +10,94 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0082 import CodespaceMachineType +from .group_0117 import FullRepositoryType -class SshSigningKeyType(TypedDict): - """SSH Signing Key - A public SSH key used to sign Git commits +class CodespaceWithFullRepositoryType(TypedDict): + """Codespace + + A codespace. """ - key: str id: int - title: str + name: str + display_name: NotRequired[Union[str, None]] + environment_id: Union[str, None] + owner: SimpleUserType + billable_owner: SimpleUserType + repository: FullRepositoryType + machine: Union[None, CodespaceMachineType] + devcontainer_path: NotRequired[Union[str, None]] + prebuild: Union[bool, None] created_at: datetime + updated_at: datetime + last_used_at: datetime + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] + url: str + git_status: CodespaceWithFullRepositoryPropGitStatusType + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] + idle_timeout_minutes: Union[int, None] + web_url: str + machines_url: str + start_url: str + stop_url: str + publish_url: NotRequired[Union[str, None]] + pulls_url: Union[str, None] + recent_folders: list[str] + runtime_constraints: NotRequired[ + CodespaceWithFullRepositoryPropRuntimeConstraintsType + ] + pending_operation: NotRequired[Union[bool, None]] + pending_operation_disabled_reason: NotRequired[Union[str, None]] + idle_timeout_notice: NotRequired[Union[str, None]] + retention_period_minutes: NotRequired[Union[int, None]] + retention_expires_at: NotRequired[Union[datetime, None]] + + +class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): + """CodespaceWithFullRepositoryPropGitStatus + + Details about the codespace's git repository. + """ + + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] + + +class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" + + allowed_port_privacy_settings: NotRequired[Union[list[str], None]] -__all__ = ("SshSigningKeyType",) +__all__ = ( + "CodespaceWithFullRepositoryPropGitStatusType", + "CodespaceWithFullRepositoryPropRuntimeConstraintsType", + "CodespaceWithFullRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0390.py b/githubkit/versions/v2022_11_28/types/group_0390.py index eed37f31e..767832678 100644 --- a/githubkit/versions/v2022_11_28/types/group_0390.py +++ b/githubkit/versions/v2022_11_28/types/group_0390.py @@ -9,20 +9,20 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import TypedDict -from .group_0019 import RepositoryType +class EmailType(TypedDict): + """Email -class StarredRepositoryType(TypedDict): - """Starred Repository - - Starred Repository + Email """ - starred_at: datetime - repo: RepositoryType + email: str + primary: bool + verified: bool + visibility: Union[str, None] -__all__ = ("StarredRepositoryType",) +__all__ = ("EmailType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0391.py b/githubkit/versions/v2022_11_28/types/group_0391.py index d66bf379e..324df51fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0391.py +++ b/githubkit/versions/v2022_11_28/types/group_0391.py @@ -9,26 +9,70 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Union +from typing_extensions import NotRequired, TypedDict -class HovercardType(TypedDict): - """Hovercard +class GpgKeyType(TypedDict): + """GPG Key - Hovercard + A unique encryption key """ - contexts: list[HovercardPropContextsItemsType] + id: int + name: NotRequired[Union[str, None]] + primary_key_id: Union[int, None] + key_id: str + public_key: str + emails: list[GpgKeyPropEmailsItemsType] + subkeys: list[GpgKeyPropSubkeysItemsType] + can_sign: bool + can_encrypt_comms: bool + can_encrypt_storage: bool + can_certify: bool + created_at: datetime + expires_at: Union[datetime, None] + revoked: bool + raw_key: Union[str, None] -class HovercardPropContextsItemsType(TypedDict): - """HovercardPropContextsItems""" +class GpgKeyPropEmailsItemsType(TypedDict): + """GpgKeyPropEmailsItems""" - message: str - octicon: str + email: NotRequired[str] + verified: NotRequired[bool] + + +class GpgKeyPropSubkeysItemsType(TypedDict): + """GpgKeyPropSubkeysItems""" + + id: NotRequired[int] + primary_key_id: NotRequired[int] + key_id: NotRequired[str] + public_key: NotRequired[str] + emails: NotRequired[list[GpgKeyPropSubkeysItemsPropEmailsItemsType]] + subkeys: NotRequired[list[Any]] + can_sign: NotRequired[bool] + can_encrypt_comms: NotRequired[bool] + can_encrypt_storage: NotRequired[bool] + can_certify: NotRequired[bool] + created_at: NotRequired[str] + expires_at: NotRequired[Union[str, None]] + raw_key: NotRequired[Union[str, None]] + revoked: NotRequired[bool] + + +class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): + """GpgKeyPropSubkeysItemsPropEmailsItems""" + + email: NotRequired[str] + verified: NotRequired[bool] __all__ = ( - "HovercardPropContextsItemsType", - "HovercardType", + "GpgKeyPropEmailsItemsType", + "GpgKeyPropSubkeysItemsPropEmailsItemsType", + "GpgKeyPropSubkeysItemsType", + "GpgKeyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0392.py b/githubkit/versions/v2022_11_28/types/group_0392.py index 04b787e6a..6c95fc7a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0392.py +++ b/githubkit/versions/v2022_11_28/types/group_0392.py @@ -9,17 +9,23 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class KeySimpleType(TypedDict): - """Key Simple +class KeyType(TypedDict): + """Key - Key Simple + Key """ - id: int key: str + id: int + url: str + title: str + created_at: datetime + verified: bool + read_only: bool -__all__ = ("KeySimpleType",) +__all__ = ("KeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0393.py b/githubkit/versions/v2022_11_28/types/group_0393.py index 7ec29c5b4..7a7252a82 100644 --- a/githubkit/versions/v2022_11_28/types/group_0393.py +++ b/githubkit/versions/v2022_11_28/types/group_0393.py @@ -13,28 +13,38 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0052 import MarketplaceListingPlanType -class EnterpriseWebhooksType(TypedDict): - """Enterprise - An enterprise on GitHub. Webhook payloads contain the `enterprise` property when - the webhook is configured - on an enterprise account or an organization that's part of an enterprise - account. For more information, - see "[About enterprise accounts](https://docs.github.com/admin/overview/about- - enterprise-accounts)." +class UserMarketplacePurchaseType(TypedDict): + """User Marketplace Purchase + + User Marketplace Purchase """ - description: NotRequired[Union[str, None]] - html_url: str - website_url: NotRequired[Union[str, None]] - id: int - node_id: str - name: str - slug: str - created_at: Union[datetime, None] + billing_cycle: str + next_billing_date: Union[datetime, None] + unit_count: Union[int, None] + on_free_trial: bool + free_trial_ends_on: Union[datetime, None] updated_at: Union[datetime, None] - avatar_url: str + account: MarketplaceAccountType + plan: MarketplaceListingPlanType + + +class MarketplaceAccountType(TypedDict): + """Marketplace Account""" + + url: str + id: int + type: str + node_id: NotRequired[str] + login: str + email: NotRequired[Union[str, None]] + organization_billing_email: NotRequired[Union[str, None]] -__all__ = ("EnterpriseWebhooksType",) +__all__ = ( + "MarketplaceAccountType", + "UserMarketplacePurchaseType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0394.py b/githubkit/versions/v2022_11_28/types/group_0394.py index bbc5a360f..f892fc0d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0394.py +++ b/githubkit/versions/v2022_11_28/types/group_0394.py @@ -12,18 +12,14 @@ from typing_extensions import TypedDict -class SimpleInstallationType(TypedDict): - """Simple Installation - - The GitHub App installation. Webhook payloads contain the `installation` - property when the event is configured - for and sent to a GitHub App. For more information, - see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating- - github-apps/registering-a-github-app/using-webhooks-with-github-apps)." +class SocialAccountType(TypedDict): + """Social account + + Social media account """ - id: int - node_id: str + provider: str + url: str -__all__ = ("SimpleInstallationType",) +__all__ = ("SocialAccountType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0395.py b/githubkit/versions/v2022_11_28/types/group_0395.py index b52264ecb..a3c3f348b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0395.py +++ b/githubkit/versions/v2022_11_28/types/group_0395.py @@ -9,31 +9,20 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from typing_extensions import TypedDict -class OrganizationSimpleWebhooksType(TypedDict): - """Organization Simple +class SshSigningKeyType(TypedDict): + """SSH Signing Key - A GitHub organization. Webhook payloads contain the `organization` property when - the webhook is configured for an - organization, or when the event occurs from activity in a repository owned by an - organization. + A public SSH key used to sign Git commits """ - login: str + key: str id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - - -__all__ = ("OrganizationSimpleWebhooksType",) + title: str + created_at: datetime + + +__all__ = ("SshSigningKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0396.py b/githubkit/versions/v2022_11_28/types/group_0396.py index 36c16d179..de982a527 100644 --- a/githubkit/versions/v2022_11_28/types/group_0396.py +++ b/githubkit/versions/v2022_11_28/types/group_0396.py @@ -10,280 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0018 import LicenseSimpleType +from .group_0020 import RepositoryType -class RepositoryWebhooksType(TypedDict): - """Repository +class StarredRepositoryType(TypedDict): + """Starred Repository - The repository on GitHub where the event occurred. Webhook payloads contain the - `repository` property - when the event occurs from activity in a repository. + Starred Repository """ - id: int - node_id: str - name: str - full_name: str - license_: Union[None, LicenseSimpleType] - organization: NotRequired[Union[None, SimpleUserType]] - forks: int - permissions: NotRequired[RepositoryWebhooksPropPermissionsType] - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - custom_properties: NotRequired[RepositoryWebhooksPropCustomPropertiesType] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - has_discussions: NotRequired[bool] - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - template_repository: NotRequired[ - Union[RepositoryWebhooksPropTemplateRepositoryType, None] - ] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - open_issues: int - watchers: int - master_branch: NotRequired[str] - starred_at: NotRequired[str] - anonymous_access_enabled: NotRequired[bool] + starred_at: datetime + repo: RepositoryType -class RepositoryWebhooksPropPermissionsType(TypedDict): - """RepositoryWebhooksPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] - - -RepositoryWebhooksPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""RepositoryWebhooksPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class RepositoryWebhooksPropTemplateRepositoryType(TypedDict): - """RepositoryWebhooksPropTemplateRepository""" - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - full_name: NotRequired[str] - owner: NotRequired[RepositoryWebhooksPropTemplateRepositoryPropOwnerType] - private: NotRequired[bool] - html_url: NotRequired[str] - description: NotRequired[str] - fork: NotRequired[bool] - url: NotRequired[str] - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - forks_url: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - notifications_url: NotRequired[str] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - ssh_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - clone_url: NotRequired[str] - mirror_url: NotRequired[str] - hooks_url: NotRequired[str] - svn_url: NotRequired[str] - homepage: NotRequired[str] - language: NotRequired[str] - forks_count: NotRequired[int] - stargazers_count: NotRequired[int] - watchers_count: NotRequired[int] - size: NotRequired[int] - default_branch: NotRequired[str] - open_issues_count: NotRequired[int] - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_pages: NotRequired[bool] - has_downloads: NotRequired[bool] - archived: NotRequired[bool] - disabled: NotRequired[bool] - visibility: NotRequired[str] - pushed_at: NotRequired[str] - created_at: NotRequired[str] - updated_at: NotRequired[str] - permissions: NotRequired[ - RepositoryWebhooksPropTemplateRepositoryPropPermissionsType - ] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_merge_commit: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - - -class RepositoryWebhooksPropTemplateRepositoryPropOwnerType(TypedDict): - """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - - -class RepositoryWebhooksPropTemplateRepositoryPropPermissionsType(TypedDict): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] - - -__all__ = ( - "RepositoryWebhooksPropCustomPropertiesType", - "RepositoryWebhooksPropPermissionsType", - "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", - "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", - "RepositoryWebhooksPropTemplateRepositoryType", - "RepositoryWebhooksType", -) +__all__ = ("StarredRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0397.py b/githubkit/versions/v2022_11_28/types/group_0397.py index fcc7b35f5..d66bf379e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0397.py +++ b/githubkit/versions/v2022_11_28/types/group_0397.py @@ -9,52 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksRuleType(TypedDict): - """branch protection rule +class HovercardType(TypedDict): + """Hovercard - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/github/administering-a-repository/defining- - the-mergeability-of-pull-requests/about-protected-branches#about-branch- - protection-settings) applied to branches that match the name. Binary settings - are boolean. Multi-level configurations are one of `off`, `non_admins`, or - `everyone`. Actor and build lists are arrays of strings. + Hovercard """ - admin_enforced: bool - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] - authorized_actor_names: list[str] - authorized_actors_only: bool - authorized_dismissal_actors_only: bool - create_protected: NotRequired[bool] - created_at: datetime - dismiss_stale_reviews_on_push: bool - id: int - ignore_approvals_from_contributors: bool - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] - lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] - lock_allows_fork_sync: NotRequired[bool] - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] - name: str - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] - repository_id: int - require_code_owner_review: bool - require_last_push_approval: NotRequired[bool] - required_approving_review_count: int - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] - required_status_checks: list[str] - required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] - signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] - strict_required_status_checks_policy: bool - updated_at: datetime - - -__all__ = ("WebhooksRuleType",) + contexts: list[HovercardPropContextsItemsType] + + +class HovercardPropContextsItemsType(TypedDict): + """HovercardPropContextsItems""" + + message: str + octicon: str + + +__all__ = ( + "HovercardPropContextsItemsType", + "HovercardType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0398.py b/githubkit/versions/v2022_11_28/types/group_0398.py index ce48b1f02..04b787e6a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0398.py +++ b/githubkit/versions/v2022_11_28/types/group_0398.py @@ -9,52 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0008 import IntegrationType -from .group_0056 import MinimalRepositoryType -from .group_0183 import PullRequestMinimalType +class KeySimpleType(TypedDict): + """Key Simple -class SimpleCheckSuiteType(TypedDict): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + Key Simple """ - after: NotRequired[Union[str, None]] - app: NotRequired[Union[IntegrationType, None]] - before: NotRequired[Union[str, None]] - conclusion: NotRequired[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] - created_at: NotRequired[datetime] - head_branch: NotRequired[Union[str, None]] - head_sha: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - pull_requests: NotRequired[list[PullRequestMinimalType]] - repository: NotRequired[MinimalRepositoryType] - status: NotRequired[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] - updated_at: NotRequired[datetime] - url: NotRequired[str] - - -__all__ = ("SimpleCheckSuiteType",) + id: int + key: str + + +__all__ = ("KeySimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0399.py b/githubkit/versions/v2022_11_28/types/group_0399.py index 7f83f0972..7ec29c5b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0399.py +++ b/githubkit/versions/v2022_11_28/types/group_0399.py @@ -10,66 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0008 import IntegrationType -from .group_0183 import PullRequestMinimalType -from .group_0210 import DeploymentSimpleType -from .group_0398 import SimpleCheckSuiteType +class EnterpriseWebhooksType(TypedDict): + """Enterprise -class CheckRunWithSimpleCheckSuiteType(TypedDict): - """CheckRun - - A check performed on the code of a given code change + An enterprise on GitHub. Webhook payloads contain the `enterprise` property when + the webhook is configured + on an enterprise account or an organization that's part of an enterprise + account. For more information, + see "[About enterprise accounts](https://docs.github.com/admin/overview/about- + enterprise-accounts)." """ - app: Union[None, IntegrationType, None] - check_suite: SimpleCheckSuiteType - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - deployment: NotRequired[DeploymentSimpleType] - details_url: str - external_id: str - head_sha: str + description: NotRequired[Union[str, None]] html_url: str + website_url: NotRequired[Union[str, None]] id: int - name: str node_id: str - output: CheckRunWithSimpleCheckSuitePropOutputType - pull_requests: list[PullRequestMinimalType] - started_at: datetime - status: Literal["queued", "in_progress", "completed", "pending"] - url: str - - -class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): - """CheckRunWithSimpleCheckSuitePropOutput""" - - annotations_count: int - annotations_url: str - summary: Union[str, None] - text: Union[str, None] - title: Union[str, None] + name: str + slug: str + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + avatar_url: str -__all__ = ( - "CheckRunWithSimpleCheckSuitePropOutputType", - "CheckRunWithSimpleCheckSuiteType", -) +__all__ = ("EnterpriseWebhooksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0400.py b/githubkit/versions/v2022_11_28/types/group_0400.py index 6420e5dfa..bbc5a360f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0400.py +++ b/githubkit/versions/v2022_11_28/types/group_0400.py @@ -9,27 +9,21 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksDeployKeyType(TypedDict): - """WebhooksDeployKey +class SimpleInstallationType(TypedDict): + """Simple Installation - The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- - deploy-key) resource. + The GitHub App installation. Webhook payloads contain the `installation` + property when the event is configured + for and sent to a GitHub App. For more information, + see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating- + github-apps/registering-a-github-app/using-webhooks-with-github-apps)." """ - added_by: NotRequired[Union[str, None]] - created_at: str id: int - key: str - last_used: NotRequired[Union[str, None]] - read_only: bool - title: str - url: str - verified: bool - enabled: NotRequired[bool] + node_id: str -__all__ = ("WebhooksDeployKeyType",) +__all__ = ("SimpleInstallationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0401.py b/githubkit/versions/v2022_11_28/types/group_0401.py index 34eb3310b..b52264ecb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0401.py +++ b/githubkit/versions/v2022_11_28/types/group_0401.py @@ -9,23 +9,31 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import TypedDict -class WebhooksWorkflowType(TypedDict): - """Workflow""" +class OrganizationSimpleWebhooksType(TypedDict): + """Organization Simple - badge_url: str - created_at: datetime - html_url: str + A GitHub organization. Webhook payloads contain the `organization` property when + the webhook is configured for an + organization, or when the event occurs from activity in a repository owned by an + organization. + """ + + login: str id: int - name: str node_id: str - path: str - state: str - updated_at: datetime url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] -__all__ = ("WebhooksWorkflowType",) +__all__ = ("OrganizationSimpleWebhooksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0402.py b/githubkit/versions/v2022_11_28/types/group_0402.py index c93e49162..5ba060a68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0402.py +++ b/githubkit/versions/v2022_11_28/types/group_0402.py @@ -9,69 +9,281 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType -class WebhooksApproverType(TypedDict): - """WebhooksApprover""" - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] +class RepositoryWebhooksType(TypedDict): + """Repository + The repository on GitHub where the event occurred. Webhook payloads contain the + `repository` property + when the event occurs from activity in a repository. + """ -class WebhooksReviewersItemsType(TypedDict): - """WebhooksReviewersItems""" + id: int + node_id: str + name: str + full_name: str + license_: Union[None, LicenseSimpleType] + organization: NotRequired[Union[None, SimpleUserType]] + forks: int + permissions: NotRequired[RepositoryWebhooksPropPermissionsType] + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + custom_properties: NotRequired[RepositoryWebhooksPropCustomPropertiesType] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + has_discussions: NotRequired[bool] + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + template_repository: NotRequired[ + Union[RepositoryWebhooksPropTemplateRepositoryType, None] + ] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + open_issues: int + watchers: int + master_branch: NotRequired[str] + starred_at: NotRequired[str] + anonymous_access_enabled: NotRequired[bool] - reviewer: NotRequired[Union[WebhooksReviewersItemsPropReviewerType, None]] - type: NotRequired[Literal["User"]] +class RepositoryWebhooksPropPermissionsType(TypedDict): + """RepositoryWebhooksPropPermissions""" -class WebhooksReviewersItemsPropReviewerType(TypedDict): - """User""" + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] + +RepositoryWebhooksPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""RepositoryWebhooksPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class RepositoryWebhooksPropTemplateRepositoryType(TypedDict): + """RepositoryWebhooksPropTemplateRepository""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + full_name: NotRequired[str] + owner: NotRequired[RepositoryWebhooksPropTemplateRepositoryPropOwnerType] + private: NotRequired[bool] + html_url: NotRequired[str] + description: NotRequired[str] + fork: NotRequired[bool] + url: NotRequired[str] + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + downloads_url: NotRequired[str] events_url: NotRequired[str] + forks_url: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + notifications_url: NotRequired[str] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + ssh_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + clone_url: NotRequired[str] + mirror_url: NotRequired[str] + hooks_url: NotRequired[str] + svn_url: NotRequired[str] + homepage: NotRequired[str] + language: NotRequired[str] + forks_count: NotRequired[int] + stargazers_count: NotRequired[int] + watchers_count: NotRequired[int] + size: NotRequired[int] + default_branch: NotRequired[str] + open_issues_count: NotRequired[int] + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_pages: NotRequired[bool] + has_downloads: NotRequired[bool] + archived: NotRequired[bool] + disabled: NotRequired[bool] + visibility: NotRequired[str] + pushed_at: NotRequired[str] + created_at: NotRequired[str] + updated_at: NotRequired[str] + permissions: NotRequired[ + RepositoryWebhooksPropTemplateRepositoryPropPermissionsType + ] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_merge_commit: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + + +class RepositoryWebhooksPropTemplateRepositoryPropOwnerType(TypedDict): + """RepositoryWebhooksPropTemplateRepositoryPropOwner""" + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] organizations_url: NotRequired[str] - received_events_url: NotRequired[str] repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + + +class RepositoryWebhooksPropTemplateRepositoryPropPermissionsType(TypedDict): + """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" + + admin: NotRequired[bool] + maintain: NotRequired[bool] + push: NotRequired[bool] + triage: NotRequired[bool] + pull: NotRequired[bool] __all__ = ( - "WebhooksApproverType", - "WebhooksReviewersItemsPropReviewerType", - "WebhooksReviewersItemsType", + "RepositoryWebhooksPropCustomPropertiesType", + "RepositoryWebhooksPropPermissionsType", + "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", + "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", + "RepositoryWebhooksPropTemplateRepositoryType", + "RepositoryWebhooksType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0403.py b/githubkit/versions/v2022_11_28/types/group_0403.py index 167cc5522..fcc7b35f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0403.py +++ b/githubkit/versions/v2022_11_28/types/group_0403.py @@ -9,20 +9,52 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class WebhooksWorkflowJobRunType(TypedDict): - """WebhooksWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str - html_url: str +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class WebhooksRuleType(TypedDict): + """branch protection rule + + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/github/administering-a-repository/defining- + the-mergeability-of-pull-requests/about-protected-branches#about-branch- + protection-settings) applied to branches that match the name. Binary settings + are boolean. Multi-level configurations are one of `off`, `non_admins`, or + `everyone`. Actor and build lists are arrays of strings. + """ + + admin_enforced: bool + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] + authorized_actor_names: list[str] + authorized_actors_only: bool + authorized_dismissal_actors_only: bool + create_protected: NotRequired[bool] + created_at: datetime + dismiss_stale_reviews_on_push: bool id: int - name: None - status: str - updated_at: str - - -__all__ = ("WebhooksWorkflowJobRunType",) + ignore_approvals_from_contributors: bool + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] + lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] + lock_allows_fork_sync: NotRequired[bool] + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] + name: str + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] + repository_id: int + require_code_owner_review: bool + require_last_push_approval: NotRequired[bool] + required_approving_review_count: int + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] + required_status_checks: list[str] + required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] + signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] + strict_required_status_checks_policy: bool + updated_at: datetime + + +__all__ = ("WebhooksRuleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0404.py b/githubkit/versions/v2022_11_28/types/group_0404.py index da4062d95..398793768 100644 --- a/githubkit/versions/v2022_11_28/types/group_0404.py +++ b/githubkit/versions/v2022_11_28/types/group_0404.py @@ -9,35 +9,52 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class WebhooksUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] +from .group_0010 import IntegrationType +from .group_0057 import MinimalRepositoryType +from .group_0189 import PullRequestMinimalType + + +class SimpleCheckSuiteType(TypedDict): + """SimpleCheckSuite + + A suite of checks performed on the code of a given code change + """ + + after: NotRequired[Union[str, None]] + app: NotRequired[Union[IntegrationType, None]] + before: NotRequired[Union[str, None]] + conclusion: NotRequired[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] + created_at: NotRequired[datetime] + head_branch: NotRequired[Union[str, None]] + head_sha: NotRequired[str] + id: NotRequired[int] node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + pull_requests: NotRequired[list[PullRequestMinimalType]] + repository: NotRequired[MinimalRepositoryType] + status: NotRequired[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] + updated_at: NotRequired[datetime] url: NotRequired[str] - user_view_type: NotRequired[str] -__all__ = ("WebhooksUserType",) +__all__ = ("SimpleCheckSuiteType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0405.py b/githubkit/versions/v2022_11_28/types/group_0405.py index 32906747e..f2d35fa76 100644 --- a/githubkit/versions/v2022_11_28/types/group_0405.py +++ b/githubkit/versions/v2022_11_28/types/group_0405.py @@ -13,78 +13,63 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class WebhooksAnswerType(TypedDict): - """WebhooksAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", +from .group_0010 import IntegrationType +from .group_0189 import PullRequestMinimalType +from .group_0216 import DeploymentSimpleType +from .group_0404 import SimpleCheckSuiteType + + +class CheckRunWithSimpleCheckSuiteType(TypedDict): + """CheckRun + + A check performed on the code of a given code change + """ + + app: Union[None, IntegrationType, None] + check_suite: SimpleCheckSuiteType + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], ] - body: str - child_comment_count: int - created_at: datetime - discussion_id: int + deployment: NotRequired[DeploymentSimpleType] + details_url: str + external_id: str + head_sha: str html_url: str id: int + name: str node_id: str - parent_id: None - reactions: NotRequired[WebhooksAnswerPropReactionsType] - repository_url: str - updated_at: datetime - user: Union[WebhooksAnswerPropUserType, None] - - -class WebhooksAnswerPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + output: CheckRunWithSimpleCheckSuitePropOutputType + pull_requests: list[PullRequestMinimalType] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "pending"] url: str -class WebhooksAnswerPropUserType(TypedDict): - """User""" +class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): + """CheckRunWithSimpleCheckSuitePropOutput""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + annotations_count: int + annotations_url: str + summary: Union[str, None] + text: Union[str, None] + title: Union[str, None] __all__ = ( - "WebhooksAnswerPropReactionsType", - "WebhooksAnswerPropUserType", - "WebhooksAnswerType", + "CheckRunWithSimpleCheckSuitePropOutputType", + "CheckRunWithSimpleCheckSuiteType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0406.py b/githubkit/versions/v2022_11_28/types/group_0406.py index 48f1a497e..6420e5dfa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0406.py +++ b/githubkit/versions/v2022_11_28/types/group_0406.py @@ -9,156 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class DiscussionType(TypedDict): - """Discussion +class WebhooksDeployKeyType(TypedDict): + """WebhooksDeployKey - A Discussion in a repository. + The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- + deploy-key) resource. """ - active_lock_reason: Union[str, None] - answer_chosen_at: Union[str, None] - answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] - answer_html_url: Union[str, None] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - category: DiscussionPropCategoryType - comments: int - created_at: datetime - html_url: str + added_by: NotRequired[Union[str, None]] + created_at: str id: int - locked: bool - node_id: str - number: int - reactions: NotRequired[DiscussionPropReactionsType] - repository_url: str - state: Literal["open", "closed", "locked", "converting", "transferring"] - state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] - timeline_url: NotRequired[str] + key: str + last_used: NotRequired[Union[str, None]] + read_only: bool title: str - updated_at: datetime - user: Union[DiscussionPropUserType, None] - labels: NotRequired[list[LabelType]] - - -class LabelType(TypedDict): - """Label - - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). - """ - - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool - - -class DiscussionPropAnswerChosenByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class DiscussionPropCategoryType(TypedDict): - """DiscussionPropCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool - name: str - node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str - - -class DiscussionPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int url: str + verified: bool + enabled: NotRequired[bool] -class DiscussionPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "DiscussionPropAnswerChosenByType", - "DiscussionPropCategoryType", - "DiscussionPropReactionsType", - "DiscussionPropUserType", - "DiscussionType", - "LabelType", -) +__all__ = ("WebhooksDeployKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0407.py b/githubkit/versions/v2022_11_28/types/group_0407.py index 4c279958b..34eb3310b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0407.py +++ b/githubkit/versions/v2022_11_28/types/group_0407.py @@ -9,81 +9,23 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -class WebhooksCommentType(TypedDict): - """WebhooksComment""" +class WebhooksWorkflowType(TypedDict): + """Workflow""" - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: str - discussion_id: int + badge_url: str + created_at: datetime html_url: str id: int + name: str node_id: str - parent_id: Union[int, None] - reactions: WebhooksCommentPropReactionsType - repository_url: str - updated_at: str - user: Union[WebhooksCommentPropUserType, None] - - -class WebhooksCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + path: str + state: str + updated_at: datetime url: str -class WebhooksCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhooksCommentPropReactionsType", - "WebhooksCommentPropUserType", - "WebhooksCommentType", -) +__all__ = ("WebhooksWorkflowType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0408.py b/githubkit/versions/v2022_11_28/types/group_0408.py index 469b744f3..c93e49162 100644 --- a/githubkit/versions/v2022_11_28/types/group_0408.py +++ b/githubkit/versions/v2022_11_28/types/group_0408.py @@ -9,20 +9,69 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhooksLabelType(TypedDict): - """Label""" +class WebhooksApproverType(TypedDict): + """WebhooksApprover""" - color: str - default: bool - description: Union[str, None] + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksReviewersItemsType(TypedDict): + """WebhooksReviewersItems""" + + reviewer: NotRequired[Union[WebhooksReviewersItemsPropReviewerType, None]] + type: NotRequired[Literal["User"]] + + +class WebhooksReviewersItemsPropReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - name: str - node_id: str - url: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("WebhooksLabelType",) +__all__ = ( + "WebhooksApproverType", + "WebhooksReviewersItemsPropReviewerType", + "WebhooksReviewersItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0409.py b/githubkit/versions/v2022_11_28/types/group_0409.py index 60f7cc9c6..167cc5522 100644 --- a/githubkit/versions/v2022_11_28/types/group_0409.py +++ b/githubkit/versions/v2022_11_28/types/group_0409.py @@ -12,14 +12,17 @@ from typing_extensions import TypedDict -class WebhooksRepositoriesItemsType(TypedDict): - """WebhooksRepositoriesItems""" +class WebhooksWorkflowJobRunType(TypedDict): + """WebhooksWorkflowJobRun""" - full_name: str + conclusion: None + created_at: str + environment: str + html_url: str id: int - name: str - node_id: str - private: bool + name: None + status: str + updated_at: str -__all__ = ("WebhooksRepositoriesItemsType",) +__all__ = ("WebhooksWorkflowJobRunType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0410.py b/githubkit/versions/v2022_11_28/types/group_0410.py index afa5d37c4..da4062d95 100644 --- a/githubkit/versions/v2022_11_28/types/group_0410.py +++ b/githubkit/versions/v2022_11_28/types/group_0410.py @@ -9,17 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class WebhooksRepositoriesAddedItemsType(TypedDict): - """WebhooksRepositoriesAddedItems""" - - full_name: str +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class WebhooksUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - name: str - node_id: str - private: bool - - -__all__ = ("WebhooksRepositoriesAddedItemsType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("WebhooksUserType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0411.py b/githubkit/versions/v2022_11_28/types/group_0411.py index 7f64bc50e..32906747e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0411.py +++ b/githubkit/versions/v2022_11_28/types/group_0411.py @@ -13,15 +13,9 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0008 import IntegrationType - -class WebhooksIssueCommentType(TypedDict): - """issue comment - - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ +class WebhooksAnswerType(TypedDict): + """WebhooksAnswer""" author_association: Literal[ "COLLABORATOR", @@ -34,19 +28,20 @@ class WebhooksIssueCommentType(TypedDict): "OWNER", ] body: str + child_comment_count: int created_at: datetime + discussion_id: int html_url: str id: int - issue_url: str node_id: str - performed_via_github_app: Union[IntegrationType, None] - reactions: WebhooksIssueCommentPropReactionsType + parent_id: None + reactions: NotRequired[WebhooksAnswerPropReactionsType] + repository_url: str updated_at: datetime - url: str - user: Union[WebhooksIssueCommentPropUserType, None] + user: Union[WebhooksAnswerPropUserType, None] -class WebhooksIssueCommentPropReactionsType(TypedDict): +class WebhooksAnswerPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -61,7 +56,7 @@ class WebhooksIssueCommentPropReactionsType(TypedDict): url: str -class WebhooksIssueCommentPropUserType(TypedDict): +class WebhooksAnswerPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -83,13 +78,13 @@ class WebhooksIssueCommentPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhooksIssueCommentPropReactionsType", - "WebhooksIssueCommentPropUserType", - "WebhooksIssueCommentType", + "WebhooksAnswerPropReactionsType", + "WebhooksAnswerPropUserType", + "WebhooksAnswerType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0412.py b/githubkit/versions/v2022_11_28/types/group_0412.py index dea7603b6..48f1a497e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0412.py +++ b/githubkit/versions/v2022_11_28/types/group_0412.py @@ -9,25 +9,156 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksChangesType(TypedDict): - """WebhooksChanges +class DiscussionType(TypedDict): + """Discussion - The changes to the comment. + A Discussion in a repository. """ - body: NotRequired[WebhooksChangesPropBodyType] + active_lock_reason: Union[str, None] + answer_chosen_at: Union[str, None] + answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] + answer_html_url: Union[str, None] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + category: DiscussionPropCategoryType + comments: int + created_at: datetime + html_url: str + id: int + locked: bool + node_id: str + number: int + reactions: NotRequired[DiscussionPropReactionsType] + repository_url: str + state: Literal["open", "closed", "locked", "converting", "transferring"] + state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + user: Union[DiscussionPropUserType, None] + labels: NotRequired[list[LabelType]] -class WebhooksChangesPropBodyType(TypedDict): - """WebhooksChangesPropBody""" +class LabelType(TypedDict): + """Label - from_: str + Color-coded labels help you categorize and filter your issues (just like labels + in Gmail). + """ + + id: int + node_id: str + url: str + name: str + description: Union[str, None] + color: str + default: bool + + +class DiscussionPropAnswerChosenByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class DiscussionPropCategoryType(TypedDict): + """DiscussionPropCategory""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str + + +class DiscussionPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class DiscussionPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhooksChangesPropBodyType", - "WebhooksChangesType", + "DiscussionPropAnswerChosenByType", + "DiscussionPropCategoryType", + "DiscussionPropReactionsType", + "DiscussionPropUserType", + "DiscussionType", + "LabelType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0413.py b/githubkit/versions/v2022_11_28/types/group_0413.py index bb96de997..4c279958b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0413.py +++ b/githubkit/versions/v2022_11_28/types/group_0413.py @@ -9,22 +9,13 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksIssueType(TypedDict): - """Issue +class WebhooksCommentType(TypedDict): + """WebhooksComment""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] - assignees: list[Union[WebhooksIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -35,258 +26,21 @@ class WebhooksIssueType(TypedDict): "NONE", "OWNER", ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str + body: str + child_comment_count: int + created_at: str + discussion_id: int html_url: str id: int - labels: NotRequired[list[WebhooksIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssuePropMilestoneType, None] node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssuePropPullRequestType] - reactions: WebhooksIssuePropReactionsType + parent_id: Union[int, None] + reactions: WebhooksCommentPropReactionsType repository_url: str - sub_issues_summary: NotRequired[WebhooksIssuePropSubIssuesSummaryType] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhooksIssuePropUserType, None] - - -class WebhooksIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhooksIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - + updated_at: str + user: Union[WebhooksCommentPropUserType, None] -class WebhooksIssuePropMilestonePropCreatorType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwnerType, None] - permissions: NotRequired[WebhooksIssuePropPerformedViaGithubAppPropPermissionsType] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): - """WebhooksIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhooksIssuePropPullRequestType(TypedDict): - """WebhooksIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhooksIssuePropReactionsType(TypedDict): +class WebhooksCommentPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -301,15 +55,7 @@ class WebhooksIssuePropReactionsType(TypedDict): url: str -class WebhooksIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhooksIssuePropUserType(TypedDict): +class WebhooksCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -331,23 +77,13 @@ class WebhooksIssuePropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhooksIssuePropAssigneeType", - "WebhooksIssuePropAssigneesItemsType", - "WebhooksIssuePropLabelsItemsType", - "WebhooksIssuePropMilestonePropCreatorType", - "WebhooksIssuePropMilestoneType", - "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", - "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssuePropPerformedViaGithubAppType", - "WebhooksIssuePropPullRequestType", - "WebhooksIssuePropReactionsType", - "WebhooksIssuePropSubIssuesSummaryType", - "WebhooksIssuePropUserType", - "WebhooksIssueType", + "WebhooksCommentPropReactionsType", + "WebhooksCommentPropUserType", + "WebhooksCommentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0414.py b/githubkit/versions/v2022_11_28/types/group_0414.py index 78c0b9fb1..469b744f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0414.py +++ b/githubkit/versions/v2022_11_28/types/group_0414.py @@ -9,63 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class WebhooksMilestoneType(TypedDict): - """Milestone +class WebhooksLabelType(TypedDict): + """Label""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksMilestonePropCreatorType, None] + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -class WebhooksMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhooksMilestonePropCreatorType", - "WebhooksMilestoneType", -) +__all__ = ("WebhooksLabelType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0415.py b/githubkit/versions/v2022_11_28/types/group_0415.py index b90683ad3..60f7cc9c6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0415.py +++ b/githubkit/versions/v2022_11_28/types/group_0415.py @@ -9,345 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksIssue2Type(TypedDict): - """Issue +class WebhooksRepositoriesItemsType(TypedDict): + """WebhooksRepositoriesItems""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] - assignees: list[Union[WebhooksIssue2PropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhooksIssue2PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssue2PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssue2PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssue2PropPullRequestType] - reactions: WebhooksIssue2PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[WebhooksIssue2PropSubIssuesSummaryType] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhooksIssue2PropUserType, None] - - -class WebhooksIssue2PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] + full_name: str id: int name: str node_id: str - url: str - - -class WebhooksIssue2PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksIssue2PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] - permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): - """WebhooksIssue2PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhooksIssue2PropPullRequestType(TypedDict): - """WebhooksIssue2PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhooksIssue2PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksIssue2PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhooksIssue2PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + private: bool -__all__ = ( - "WebhooksIssue2PropAssigneeType", - "WebhooksIssue2PropAssigneesItemsType", - "WebhooksIssue2PropLabelsItemsType", - "WebhooksIssue2PropMilestonePropCreatorType", - "WebhooksIssue2PropMilestoneType", - "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssue2PropPerformedViaGithubAppType", - "WebhooksIssue2PropPullRequestType", - "WebhooksIssue2PropReactionsType", - "WebhooksIssue2PropSubIssuesSummaryType", - "WebhooksIssue2PropUserType", - "WebhooksIssue2Type", -) +__all__ = ("WebhooksRepositoriesItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0416.py b/githubkit/versions/v2022_11_28/types/group_0416.py index 12263b7bb..afa5d37c4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0416.py +++ b/githubkit/versions/v2022_11_28/types/group_0416.py @@ -9,35 +9,17 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - - -class WebhooksUserMannequinType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +from typing_extensions import TypedDict + + +class WebhooksRepositoriesAddedItemsType(TypedDict): + """WebhooksRepositoriesAddedItems""" + + full_name: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhooksUserMannequinType",) + name: str + node_id: str + private: bool + + +__all__ = ("WebhooksRepositoriesAddedItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0417.py b/githubkit/versions/v2022_11_28/types/group_0417.py index 442613e28..62e701472 100644 --- a/githubkit/versions/v2022_11_28/types/group_0417.py +++ b/githubkit/versions/v2022_11_28/types/group_0417.py @@ -9,48 +9,87 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict - - -class WebhooksMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - - account: WebhooksMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: Union[str, None] - on_free_trial: bool - plan: WebhooksMarketplacePurchasePropPlanType - unit_count: int - - -class WebhooksMarketplacePurchasePropAccountType(TypedDict): - """WebhooksMarketplacePurchasePropAccount""" - +from typing_extensions import NotRequired, TypedDict + +from .group_0010 import IntegrationType + + +class WebhooksIssueCommentType(TypedDict): + """issue comment + + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + created_at: datetime + html_url: str id: int - login: str + issue_url: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhooksMarketplacePurchasePropPlanType(TypedDict): - """WebhooksMarketplacePurchasePropPlan""" - - bullets: list[Union[str, None]] - description: str - has_free_trial: bool + performed_via_github_app: Union[IntegrationType, None] + reactions: WebhooksIssueCommentPropReactionsType + updated_at: datetime + url: str + user: Union[WebhooksIssueCommentPropUserType, None] + + +class WebhooksIssueCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssueCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhooksMarketplacePurchasePropAccountType", - "WebhooksMarketplacePurchasePropPlanType", - "WebhooksMarketplacePurchaseType", + "WebhooksIssueCommentPropReactionsType", + "WebhooksIssueCommentPropUserType", + "WebhooksIssueCommentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0418.py b/githubkit/versions/v2022_11_28/types/group_0418.py index 38627d866..dea7603b6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0418.py +++ b/githubkit/versions/v2022_11_28/types/group_0418.py @@ -9,48 +9,25 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" +class WebhooksChangesType(TypedDict): + """WebhooksChanges - account: WebhooksPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhooksPreviousMarketplacePurchasePropPlanType - unit_count: int + The changes to the comment. + """ + body: NotRequired[WebhooksChangesPropBodyType] -class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): - """WebhooksPreviousMarketplacePurchasePropAccount""" - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str +class WebhooksChangesPropBodyType(TypedDict): + """WebhooksChangesPropBody""" - -class WebhooksPreviousMarketplacePurchasePropPlanType(TypedDict): - """WebhooksPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + from_: str __all__ = ( - "WebhooksPreviousMarketplacePurchasePropAccountType", - "WebhooksPreviousMarketplacePurchasePropPlanType", - "WebhooksPreviousMarketplacePurchaseType", + "WebhooksChangesPropBodyType", + "WebhooksChangesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0419.py b/githubkit/versions/v2022_11_28/types/group_0419.py index 1b0b6886a..bb96de997 100644 --- a/githubkit/versions/v2022_11_28/types/group_0419.py +++ b/githubkit/versions/v2022_11_28/types/group_0419.py @@ -9,52 +9,345 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksTeamType(TypedDict): - """Team +class WebhooksIssueType(TypedDict): + """Issue - Groups of organization members that gives permissions on specified repositories. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] + assignees: list[Union[WebhooksIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhooksIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhooksIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhooksIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhooksIssuePropPullRequestType] + reactions: WebhooksIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[WebhooksIssuePropSubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhooksIssuePropUserType, None] + + +class WebhooksIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] id: int - members_url: NotRequired[str] - name: str + login: str + name: NotRequired[str] node_id: NotRequired[str] - parent: NotRequired[Union[WebhooksTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhooksTeamPropParentType(TypedDict): - """WebhooksTeamPropParent""" +class WebhooksIssuePropLabelsItemsType(TypedDict): + """Label""" + color: str + default: bool description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhooksIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int - members_url: str + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssuePropPerformedViaGithubAppPropPermissionsType] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhooksIssuePropPullRequestType(TypedDict): + """WebhooksIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhooksIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str +class WebhooksIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhooksIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + __all__ = ( - "WebhooksTeamPropParentType", - "WebhooksTeamType", + "WebhooksIssuePropAssigneeType", + "WebhooksIssuePropAssigneesItemsType", + "WebhooksIssuePropLabelsItemsType", + "WebhooksIssuePropMilestonePropCreatorType", + "WebhooksIssuePropMilestoneType", + "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", + "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssuePropPerformedViaGithubAppType", + "WebhooksIssuePropPullRequestType", + "WebhooksIssuePropReactionsType", + "WebhooksIssuePropSubIssuesSummaryType", + "WebhooksIssuePropUserType", + "WebhooksIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0420.py b/githubkit/versions/v2022_11_28/types/group_0420.py index 1a8c1af71..78c0b9fb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0420.py +++ b/githubkit/versions/v2022_11_28/types/group_0420.py @@ -9,22 +9,63 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0184 import SimpleCommitType +class WebhooksMilestoneType(TypedDict): + """Milestone -class MergeGroupType(TypedDict): - """Merge Group - - A group of pull requests that the merge queue has grouped together to be merged. + A collection of related issues and pull requests. """ - head_sha: str - head_ref: str - base_sha: str - base_ref: str - head_commit: SimpleCommitType + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("MergeGroupType",) +__all__ = ( + "WebhooksMilestonePropCreatorType", + "WebhooksMilestoneType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0421.py b/githubkit/versions/v2022_11_28/types/group_0421.py index 84341cab5..b90683ad3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0421.py +++ b/githubkit/versions/v2022_11_28/types/group_0421.py @@ -14,7 +14,125 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksMilestone3Type(TypedDict): +class WebhooksIssue2Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] + assignees: list[Union[WebhooksIssue2PropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhooksIssue2PropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhooksIssue2PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhooksIssue2PropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhooksIssue2PropPullRequestType] + reactions: WebhooksIssue2PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[WebhooksIssue2PropSubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhooksIssue2PropUserType, None] + + +class WebhooksIssue2PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhooksIssue2PropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -23,7 +141,7 @@ class WebhooksMilestone3Type(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhooksMilestone3PropCreatorType, None] + creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -38,7 +156,160 @@ class WebhooksMilestone3Type(TypedDict): url: str -class WebhooksMilestone3PropCreatorType(TypedDict): +class WebhooksIssue2PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssue2PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhooksIssue2PropPullRequestType(TypedDict): + """WebhooksIssue2PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhooksIssue2PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssue2PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhooksIssue2PropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -66,6 +337,17 @@ class WebhooksMilestone3PropCreatorType(TypedDict): __all__ = ( - "WebhooksMilestone3PropCreatorType", - "WebhooksMilestone3Type", + "WebhooksIssue2PropAssigneeType", + "WebhooksIssue2PropAssigneesItemsType", + "WebhooksIssue2PropLabelsItemsType", + "WebhooksIssue2PropMilestonePropCreatorType", + "WebhooksIssue2PropMilestoneType", + "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssue2PropPerformedViaGithubAppType", + "WebhooksIssue2PropPullRequestType", + "WebhooksIssue2PropReactionsType", + "WebhooksIssue2PropSubIssuesSummaryType", + "WebhooksIssue2PropUserType", + "WebhooksIssue2Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0422.py b/githubkit/versions/v2022_11_28/types/group_0422.py index 838f548fa..12263b7bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0422.py +++ b/githubkit/versions/v2022_11_28/types/group_0422.py @@ -13,21 +13,7 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksMembershipType(TypedDict): - """Membership - - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ - - organization_url: str - role: str - state: str - url: str - user: Union[WebhooksMembershipPropUserType, None] - - -class WebhooksMembershipPropUserType(TypedDict): +class WebhooksUserMannequinType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -49,12 +35,9 @@ class WebhooksMembershipPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -__all__ = ( - "WebhooksMembershipPropUserType", - "WebhooksMembershipType", -) +__all__ = ("WebhooksUserMannequinType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0423.py b/githubkit/versions/v2022_11_28/types/group_0423.py index aa55edb84..442613e28 100644 --- a/githubkit/versions/v2022_11_28/types/group_0423.py +++ b/githubkit/versions/v2022_11_28/types/group_0423.py @@ -9,163 +9,48 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType +class WebhooksMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" -class PersonalAccessTokenRequestType(TypedDict): - """Personal Access Token Request + account: WebhooksMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhooksMarketplacePurchasePropPlanType + unit_count: int - Details of a Personal Access Token Request. - """ + +class WebhooksMarketplacePurchasePropAccountType(TypedDict): + """WebhooksMarketplacePurchasePropAccount""" id: int - owner: SimpleUserType - permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType - permissions_result: PersonalAccessTokenRequestPropPermissionsResultType - repository_selection: Literal["none", "all", "subset"] - repository_count: Union[int, None] - repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItemsType], None] - created_at: str - token_id: int - token_name: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] - - -class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str - id: int - name: str + login: str node_id: str - private: bool - - -class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ + organization_billing_email: Union[str, None] + type: str - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] +class WebhooksMarketplacePurchasePropPlanType(TypedDict): + """WebhooksMarketplacePurchasePropPlan""" -PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsAddedPropOrganization -""" - - -PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsAddedPropRepository -""" - - -PersonalAccessTokenRequestPropPermissionsAddedPropOtherType: TypeAlias = dict[str, Any] -"""PersonalAccessTokenRequestPropPermissionsAddedPropOther -""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgraded - - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] - - -PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization -""" - - -PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository -""" - - -PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOther -""" - - -class PersonalAccessTokenRequestPropPermissionsResultType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResult - - Permissions requested, categorized by type of permission. This field - incorporates `permissions_added` and `permissions_upgraded`. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsResultPropOtherType] - - -PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsResultPropOrganization -""" - - -PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsResultPropRepository -""" - - -PersonalAccessTokenRequestPropPermissionsResultPropOtherType: TypeAlias = dict[str, Any] -"""PersonalAccessTokenRequestPropPermissionsResultPropOther -""" + bullets: list[Union[str, None]] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsAddedType", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", - "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsResultType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsUpgradedType", - "PersonalAccessTokenRequestPropRepositoriesItemsType", - "PersonalAccessTokenRequestType", + "WebhooksMarketplacePurchasePropAccountType", + "WebhooksMarketplacePurchasePropPlanType", + "WebhooksMarketplacePurchaseType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0424.py b/githubkit/versions/v2022_11_28/types/group_0424.py index 15e68c071..38627d866 100644 --- a/githubkit/versions/v2022_11_28/types/group_0424.py +++ b/githubkit/versions/v2022_11_28/types/group_0424.py @@ -9,57 +9,48 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksProjectCardType(TypedDict): - """Project Card""" +class WebhooksPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: WebhooksPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhooksPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropAccount""" - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhooksProjectCardPropCreatorType, None] id: int + login: str node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str - - -class WebhooksProjectCardPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + organization_billing_email: Union[str, None] + type: str + + +class WebhooksPreviousMarketplacePurchasePropPlanType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] + description: str + has_free_trial: bool id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhooksProjectCardPropCreatorType", - "WebhooksProjectCardType", + "WebhooksPreviousMarketplacePurchasePropAccountType", + "WebhooksPreviousMarketplacePurchasePropPlanType", + "WebhooksPreviousMarketplacePurchaseType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0425.py b/githubkit/versions/v2022_11_28/types/group_0425.py index f00c9358c..1b0b6886a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0425.py +++ b/githubkit/versions/v2022_11_28/types/group_0425.py @@ -9,57 +9,52 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksProjectType(TypedDict): - """Project""" - - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhooksProjectPropCreatorType, None] - html_url: str - id: int - name: str - node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] - updated_at: datetime - url: str +class WebhooksTeamType(TypedDict): + """Team + Groups of organization members that gives permissions on specified repositories. + """ -class WebhooksProjectPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + description: NotRequired[Union[str, None]] html_url: NotRequired[str] id: int - login: str - name: NotRequired[str] + members_url: NotRequired[str] + name: str node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + parent: NotRequired[Union[WebhooksTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] + + +class WebhooksTeamPropParentType(TypedDict): + """WebhooksTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhooksProjectPropCreatorType", - "WebhooksProjectType", + "WebhooksTeamPropParentType", + "WebhooksTeamType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0426.py b/githubkit/versions/v2022_11_28/types/group_0426.py index 3c545b05d..aa4bc3f9b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0426.py +++ b/githubkit/versions/v2022_11_28/types/group_0426.py @@ -9,23 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0190 import SimpleCommitType -class WebhooksProjectColumnType(TypedDict): - """Project Column""" - after_id: NotRequired[Union[int, None]] - cards_url: str - created_at: datetime - id: int - name: str - node_id: str - project_url: str - updated_at: datetime - url: str +class MergeGroupType(TypedDict): + """Merge Group + A group of pull requests that the merge queue has grouped together to be merged. + """ -__all__ = ("WebhooksProjectColumnType",) + head_sha: str + head_ref: str + base_sha: str + base_ref: str + head_commit: SimpleCommitType + + +__all__ = ("MergeGroupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0427.py b/githubkit/versions/v2022_11_28/types/group_0427.py index 8bbc840e6..84341cab5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0427.py +++ b/githubkit/versions/v2022_11_28/types/group_0427.py @@ -10,32 +10,62 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class WebhooksMilestone3Type(TypedDict): + """Milestone -class ProjectsV2Type(TypedDict): - """Projects v2 Project - - A projects v2 project + A collection of related issues and pull requests. """ - id: float - node_id: str - owner: SimpleUserType - creator: SimpleUserType - title: str - description: Union[str, None] - public: bool closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - updated_at: datetime + creator: Union[WebhooksMilestone3PropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str number: int - short_description: Union[str, None] - deleted_at: Union[datetime, None] - deleted_by: Union[None, SimpleUserType] + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksMilestone3PropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("ProjectsV2Type",) +__all__ = ( + "WebhooksMilestone3PropCreatorType", + "WebhooksMilestone3Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0428.py b/githubkit/versions/v2022_11_28/types/group_0428.py index d31a72cb2..838f548fa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0428.py +++ b/githubkit/versions/v2022_11_28/types/group_0428.py @@ -9,25 +9,52 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksProjectChangesType(TypedDict): - """WebhooksProjectChanges""" - - archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] - - -class WebhooksProjectChangesPropArchivedAtType(TypedDict): - """WebhooksProjectChangesPropArchivedAt""" - - from_: NotRequired[Union[datetime, None]] - to: NotRequired[Union[datetime, None]] +class WebhooksMembershipType(TypedDict): + """Membership + + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str + role: str + state: str + url: str + user: Union[WebhooksMembershipPropUserType, None] + + +class WebhooksMembershipPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhooksProjectChangesPropArchivedAtType", - "WebhooksProjectChangesType", + "WebhooksMembershipPropUserType", + "WebhooksMembershipType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0429.py b/githubkit/versions/v2022_11_28/types/group_0429.py index 733be3069..8767f4c9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0429.py +++ b/githubkit/versions/v2022_11_28/types/group_0429.py @@ -9,28 +9,163 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType -class ProjectsV2ItemType(TypedDict): - """Projects v2 Item +class PersonalAccessTokenRequestType(TypedDict): + """Personal Access Token Request - An item belonging to a project + Details of a Personal Access Token Request. """ - id: float - node_id: NotRequired[str] - project_node_id: NotRequired[str] - content_node_id: str - content_type: Literal["Issue", "PullRequest", "DraftIssue"] - creator: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] + id: int + owner: SimpleUserType + permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType + permissions_result: PersonalAccessTokenRequestPropPermissionsResultType + repository_selection: Literal["none", "all", "subset"] + repository_count: Union[int, None] + repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItemsType], None] + created_at: str + token_id: int + token_name: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] -__all__ = ("ProjectsV2ItemType",) +class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str + id: int + name: str + node_id: str + private: bool + + +class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] + + +PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsAddedPropOrganization +""" + + +PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsAddedPropRepository +""" + + +PersonalAccessTokenRequestPropPermissionsAddedPropOtherType: TypeAlias = dict[str, Any] +"""PersonalAccessTokenRequestPropPermissionsAddedPropOther +""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] + + +PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization +""" + + +PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository +""" + + +PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOther +""" + + +class PersonalAccessTokenRequestPropPermissionsResultType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResult + + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsResultPropOtherType] + + +PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsResultPropOrganization +""" + + +PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsResultPropRepository +""" + + +PersonalAccessTokenRequestPropPermissionsResultPropOtherType: TypeAlias = dict[str, Any] +"""PersonalAccessTokenRequestPropPermissionsResultPropOther +""" + + +__all__ = ( + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsAddedType", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", + "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsResultType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsUpgradedType", + "PersonalAccessTokenRequestPropRepositoriesItemsType", + "PersonalAccessTokenRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0430.py b/githubkit/versions/v2022_11_28/types/group_0430.py index 49ab7ebf9..15e68c071 100644 --- a/githubkit/versions/v2022_11_28/types/group_0430.py +++ b/githubkit/versions/v2022_11_28/types/group_0430.py @@ -9,31 +9,57 @@ from __future__ import annotations -from datetime import date, datetime +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class WebhooksProjectCardType(TypedDict): + """Project Card""" -class ProjectsV2StatusUpdateType(TypedDict): - """Projects v2 Status Update - - An status update belonging to a project - """ - - id: float - node_id: str - project_node_id: NotRequired[str] - creator: NotRequired[SimpleUserType] + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] created_at: datetime + creator: Union[WebhooksProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str updated_at: datetime - status: NotRequired[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] - start_date: NotRequired[date] - target_date: NotRequired[date] - body: NotRequired[Union[str, None]] + url: str + + +class WebhooksProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("ProjectsV2StatusUpdateType",) +__all__ = ( + "WebhooksProjectCardPropCreatorType", + "WebhooksProjectCardType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0431.py b/githubkit/versions/v2022_11_28/types/group_0431.py index ab9f816c2..f00c9358c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0431.py +++ b/githubkit/versions/v2022_11_28/types/group_0431.py @@ -13,85 +13,53 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0038 import MilestoneType -from .group_0081 import TeamSimpleType -from .group_0242 import AutoMergeType -from .group_0322 import PullRequestPropLabelsItemsType -from .group_0323 import PullRequestPropBaseType, PullRequestPropHeadType -from .group_0324 import PullRequestPropLinksType +class WebhooksProjectType(TypedDict): + """Project""" -class PullRequestWebhookType(TypedDict): - """PullRequestWebhook""" - - url: str + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhooksProjectPropCreatorType, None] + html_url: str id: int + name: str node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str number: int + owner_url: str state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: list[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] - requested_teams: NotRequired[Union[list[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + url: str + + +class WebhooksProjectPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("PullRequestWebhookType",) +__all__ = ( + "WebhooksProjectPropCreatorType", + "WebhooksProjectType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0432.py b/githubkit/versions/v2022_11_28/types/group_0432.py index 85163bcaa..3c545b05d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0432.py +++ b/githubkit/versions/v2022_11_28/types/group_0432.py @@ -9,23 +9,23 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -class PullRequestWebhookAllof1Type(TypedDict): - """PullRequestWebhookAllof1""" +class WebhooksProjectColumnType(TypedDict): + """Project Column""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime + id: int + name: str + node_id: str + project_url: str + updated_at: datetime + url: str -__all__ = ("PullRequestWebhookAllof1Type",) +__all__ = ("WebhooksProjectColumnType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0433.py b/githubkit/versions/v2022_11_28/types/group_0433.py index 9c89f8ed7..61f9ee87b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0433.py +++ b/githubkit/versions/v2022_11_28/types/group_0433.py @@ -10,869 +10,32 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class WebhooksPullRequest5Type(TypedDict): - """Pull Request""" - links: WebhooksPullRequest5PropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhooksPullRequest5PropAssigneeType, None] - assignees: list[Union[WebhooksPullRequest5PropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] - base: WebhooksPullRequest5PropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhooksPullRequest5PropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhooksPullRequest5PropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[Union[WebhooksPullRequest5PropMergedByType, None]] - milestone: Union[WebhooksPullRequest5PropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItemsType] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhooksPullRequest5PropUserType, None] - - -class WebhooksPullRequest5PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class ProjectsV2Type(TypedDict): + """Projects v2 Project - -class WebhooksPullRequest5PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhooksPullRequest5PropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. + A projects v2 project """ - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledByType, None] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhooksPullRequest5PropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str + id: float node_id: str - url: str - - -class WebhooksPullRequest5PropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksPullRequest5PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] + owner: SimpleUserType + creator: SimpleUserType title: str - updated_at: datetime - url: str - - -class WebhooksPullRequest5PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksPullRequest5PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropLinksType(TypedDict): - """WebhooksPullRequest5PropLinks""" - - comments: WebhooksPullRequest5PropLinksPropCommentsType - commits: WebhooksPullRequest5PropLinksPropCommitsType - html: WebhooksPullRequest5PropLinksPropHtmlType - issue: WebhooksPullRequest5PropLinksPropIssueType - review_comment: WebhooksPullRequest5PropLinksPropReviewCommentType - review_comments: WebhooksPullRequest5PropLinksPropReviewCommentsType - self_: WebhooksPullRequest5PropLinksPropSelfType - statuses: WebhooksPullRequest5PropLinksPropStatusesType - - -class WebhooksPullRequest5PropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropReviewCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropBaseType(TypedDict): - """WebhooksPullRequest5PropBase""" - - label: str - ref: str - repo: WebhooksPullRequest5PropBasePropRepoType - sha: str - user: Union[WebhooksPullRequest5PropBasePropUserType, None] - - -class WebhooksPullRequest5PropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicenseType, None] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwnerType, None] - permissions: NotRequired[WebhooksPullRequest5PropBasePropRepoPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhooksPullRequest5PropBasePropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhooksPullRequest5PropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropBasePropRepoPropPermissionsType(TypedDict): - """WebhooksPullRequest5PropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhooksPullRequest5PropHeadType(TypedDict): - """WebhooksPullRequest5PropHead""" - - label: str - ref: str - repo: WebhooksPullRequest5PropHeadPropRepoType - sha: str - user: Union[WebhooksPullRequest5PropHeadPropUserType, None] - - -class WebhooksPullRequest5PropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicenseType, None] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwnerType, None] - permissions: NotRequired[WebhooksPullRequest5PropHeadPropRepoPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str + public: bool + closed_at: Union[datetime, None] + created_at: datetime updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhooksPullRequest5PropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhooksPullRequest5PropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropHeadPropRepoPropPermissionsType(TypedDict): - """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType(TypedDict): - """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhooksPullRequest5PropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedTeamsItemsPropParentType(TypedDict): - """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + number: int + short_description: Union[str, None] + deleted_at: Union[datetime, None] + deleted_by: Union[None, SimpleUserType] -__all__ = ( - "WebhooksPullRequest5PropAssigneeType", - "WebhooksPullRequest5PropAssigneesItemsType", - "WebhooksPullRequest5PropAutoMergePropEnabledByType", - "WebhooksPullRequest5PropAutoMergeType", - "WebhooksPullRequest5PropBasePropRepoPropLicenseType", - "WebhooksPullRequest5PropBasePropRepoPropOwnerType", - "WebhooksPullRequest5PropBasePropRepoPropPermissionsType", - "WebhooksPullRequest5PropBasePropRepoType", - "WebhooksPullRequest5PropBasePropUserType", - "WebhooksPullRequest5PropBaseType", - "WebhooksPullRequest5PropHeadPropRepoPropLicenseType", - "WebhooksPullRequest5PropHeadPropRepoPropOwnerType", - "WebhooksPullRequest5PropHeadPropRepoPropPermissionsType", - "WebhooksPullRequest5PropHeadPropRepoType", - "WebhooksPullRequest5PropHeadPropUserType", - "WebhooksPullRequest5PropHeadType", - "WebhooksPullRequest5PropLabelsItemsType", - "WebhooksPullRequest5PropLinksPropCommentsType", - "WebhooksPullRequest5PropLinksPropCommitsType", - "WebhooksPullRequest5PropLinksPropHtmlType", - "WebhooksPullRequest5PropLinksPropIssueType", - "WebhooksPullRequest5PropLinksPropReviewCommentType", - "WebhooksPullRequest5PropLinksPropReviewCommentsType", - "WebhooksPullRequest5PropLinksPropSelfType", - "WebhooksPullRequest5PropLinksPropStatusesType", - "WebhooksPullRequest5PropLinksType", - "WebhooksPullRequest5PropMergedByType", - "WebhooksPullRequest5PropMilestonePropCreatorType", - "WebhooksPullRequest5PropMilestoneType", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type", - "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", - "WebhooksPullRequest5PropRequestedTeamsItemsType", - "WebhooksPullRequest5PropUserType", - "WebhooksPullRequest5Type", -) +__all__ = ("ProjectsV2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0434.py b/githubkit/versions/v2022_11_28/types/group_0434.py index fc62f86f0..d31a72cb2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0434.py +++ b/githubkit/versions/v2022_11_28/types/group_0434.py @@ -10,129 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhooksReviewCommentType(TypedDict): - """Pull Request Review Comment +class WebhooksProjectChangesType(TypedDict): + """WebhooksProjectChanges""" - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ + archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] - links: WebhooksReviewCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhooksReviewCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhooksReviewCommentPropUserType, None] +class WebhooksProjectChangesPropArchivedAtType(TypedDict): + """WebhooksProjectChangesPropArchivedAt""" -class WebhooksReviewCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReviewCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewCommentPropLinksType(TypedDict): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtmlType - pull_request: WebhooksReviewCommentPropLinksPropPullRequestType - self_: WebhooksReviewCommentPropLinksPropSelfType - - -class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str + from_: NotRequired[Union[datetime, None]] + to: NotRequired[Union[datetime, None]] __all__ = ( - "WebhooksReviewCommentPropLinksPropHtmlType", - "WebhooksReviewCommentPropLinksPropPullRequestType", - "WebhooksReviewCommentPropLinksPropSelfType", - "WebhooksReviewCommentPropLinksType", - "WebhooksReviewCommentPropReactionsType", - "WebhooksReviewCommentPropUserType", - "WebhooksReviewCommentType", + "WebhooksProjectChangesPropArchivedAtType", + "WebhooksProjectChangesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0435.py b/githubkit/versions/v2022_11_28/types/group_0435.py index 0d56edfb2..11c42252b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0435.py +++ b/githubkit/versions/v2022_11_28/types/group_0435.py @@ -13,85 +13,24 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class WebhooksReviewType(TypedDict): - """WebhooksReview - The review that was affected. - """ - - links: WebhooksReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: str - submitted_at: Union[datetime, None] - user: Union[WebhooksReviewPropUserType, None] +class ProjectsV2ItemType(TypedDict): + """Projects v2 Item + An item belonging to a project + """ -class WebhooksReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: float node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewPropLinksType(TypedDict): - """WebhooksReviewPropLinks""" - - html: WebhooksReviewPropLinksPropHtmlType - pull_request: WebhooksReviewPropLinksPropPullRequestType - - -class WebhooksReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str + project_node_id: NotRequired[str] + content_node_id: str + content_type: Literal["Issue", "PullRequest", "DraftIssue"] + creator: NotRequired[SimpleUserType] + created_at: datetime + updated_at: datetime + archived_at: Union[datetime, None] -__all__ = ( - "WebhooksReviewPropLinksPropHtmlType", - "WebhooksReviewPropLinksPropPullRequestType", - "WebhooksReviewPropLinksType", - "WebhooksReviewPropUserType", - "WebhooksReviewType", -) +__all__ = ("ProjectsV2ItemType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0436.py b/githubkit/versions/v2022_11_28/types/group_0436.py index f326e6f30..07d3ae203 100644 --- a/githubkit/versions/v2022_11_28/types/group_0436.py +++ b/githubkit/versions/v2022_11_28/types/group_0436.py @@ -9,133 +9,31 @@ from __future__ import annotations -from datetime import datetime +from datetime import date, datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class WebhooksReleaseType(TypedDict): - """Release - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: list[WebhooksReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhooksReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhooksReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhooksReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReleasePropReactionsType(TypedDict): - """Reactions""" +class ProjectsV2StatusUpdateType(TypedDict): + """Projects v2 Status Update - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. + An status update belonging to a project """ - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str + id: float node_id: str - size: int - state: Literal["uploaded"] + project_node_id: NotRequired[str] + creator: NotRequired[SimpleUserType] + created_at: datetime updated_at: datetime - uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + status: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + start_date: NotRequired[date] + target_date: NotRequired[date] + body: NotRequired[Union[str, None]] -__all__ = ( - "WebhooksReleasePropAssetsItemsPropUploaderType", - "WebhooksReleasePropAssetsItemsType", - "WebhooksReleasePropAuthorType", - "WebhooksReleasePropReactionsType", - "WebhooksReleaseType", -) +__all__ = ("ProjectsV2StatusUpdateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0437.py b/githubkit/versions/v2022_11_28/types/group_0437.py index e8f03cf30..c7b0f32ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0437.py +++ b/githubkit/versions/v2022_11_28/types/group_0437.py @@ -13,129 +13,85 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0039 import MilestoneType +from .group_0086 import TeamSimpleType +from .group_0248 import AutoMergeType +from .group_0328 import PullRequestPropLabelsItemsType +from .group_0329 import PullRequestPropBaseType, PullRequestPropHeadType +from .group_0330 import PullRequestPropLinksType -class WebhooksRelease1Type(TypedDict): - """Release - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ +class PullRequestWebhookType(TypedDict): + """PullRequestWebhook""" - assets: list[Union[WebhooksRelease1PropAssetsItemsType, None]] - assets_url: str - author: Union[WebhooksRelease1PropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhooksRelease1PropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str url: str - zipball_url: Union[str, None] - - -class WebhooksRelease1PropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int id: int - label: Union[str, None] - name: str node_id: str - size: int - state: Literal["uploaded"] + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: list[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime updated_at: datetime - uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksRelease1PropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksRelease1PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -__all__ = ( - "WebhooksRelease1PropAssetsItemsPropUploaderType", - "WebhooksRelease1PropAssetsItemsType", - "WebhooksRelease1PropAuthorType", - "WebhooksRelease1PropReactionsType", - "WebhooksRelease1Type", -) + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] + + +__all__ = ("PullRequestWebhookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0438.py b/githubkit/versions/v2022_11_28/types/group_0438.py index 3401e5834..85163bcaa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0438.py +++ b/githubkit/versions/v2022_11_28/types/group_0438.py @@ -9,63 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class WebhooksAlertType(TypedDict): - """Repository Vulnerability Alert Alert +class PullRequestWebhookAllof1Type(TypedDict): + """PullRequestWebhookAllof1""" - The security alert of the vulnerable dependency. - """ + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open"] - -class WebhooksAlertPropDismisserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhooksAlertPropDismisserType", - "WebhooksAlertType", -) +__all__ = ("PullRequestWebhookAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0439.py b/githubkit/versions/v2022_11_28/types/group_0439.py index 8e0b2bb13..9c89f8ed7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0439.py +++ b/githubkit/versions/v2022_11_28/types/group_0439.py @@ -13,46 +13,866 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +class WebhooksPullRequest5Type(TypedDict): + """Pull Request""" -class SecretScanningAlertWebhookType(TypedDict): - """SecretScanningAlertWebhook""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - resolution: NotRequired[ + links: WebhooksPullRequest5PropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhooksPullRequest5PropAssigneeType, None] + assignees: list[Union[WebhooksPullRequest5PropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] + base: WebhooksPullRequest5PropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhooksPullRequest5PropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhooksPullRequest5PropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[Union[WebhooksPullRequest5PropMergedByType, None]] + milestone: Union[WebhooksPullRequest5PropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ Union[ + WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], + WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, ] ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - - -__all__ = ("SecretScanningAlertWebhookType",) + requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItemsType] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhooksPullRequest5PropUserType, None] + + +class WebhooksPullRequest5PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhooksPullRequest5PropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledByType, None] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhooksPullRequest5PropAutoMergePropEnabledByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhooksPullRequest5PropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksPullRequest5PropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksPullRequest5PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhooksPullRequest5PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropLinksType(TypedDict): + """WebhooksPullRequest5PropLinks""" + + comments: WebhooksPullRequest5PropLinksPropCommentsType + commits: WebhooksPullRequest5PropLinksPropCommitsType + html: WebhooksPullRequest5PropLinksPropHtmlType + issue: WebhooksPullRequest5PropLinksPropIssueType + review_comment: WebhooksPullRequest5PropLinksPropReviewCommentType + review_comments: WebhooksPullRequest5PropLinksPropReviewCommentsType + self_: WebhooksPullRequest5PropLinksPropSelfType + statuses: WebhooksPullRequest5PropLinksPropStatusesType + + +class WebhooksPullRequest5PropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropReviewCommentType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropReviewCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropBaseType(TypedDict): + """WebhooksPullRequest5PropBase""" + + label: str + ref: str + repo: WebhooksPullRequest5PropBasePropRepoType + sha: str + user: Union[WebhooksPullRequest5PropBasePropUserType, None] + + +class WebhooksPullRequest5PropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicenseType, None] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwnerType, None] + permissions: NotRequired[WebhooksPullRequest5PropBasePropRepoPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhooksPullRequest5PropBasePropRepoPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhooksPullRequest5PropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropBasePropRepoPropPermissionsType(TypedDict): + """WebhooksPullRequest5PropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhooksPullRequest5PropHeadType(TypedDict): + """WebhooksPullRequest5PropHead""" + + label: str + ref: str + repo: WebhooksPullRequest5PropHeadPropRepoType + sha: str + user: Union[WebhooksPullRequest5PropHeadPropUserType, None] + + +class WebhooksPullRequest5PropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicenseType, None] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwnerType, None] + permissions: NotRequired[WebhooksPullRequest5PropHeadPropRepoPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhooksPullRequest5PropHeadPropRepoPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhooksPullRequest5PropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropHeadPropRepoPropPermissionsType(TypedDict): + """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, None] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType(TypedDict): + """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhooksPullRequest5PropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, None] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksPullRequest5PropRequestedTeamsItemsPropParentType(TypedDict): + """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhooksPullRequest5PropAssigneeType", + "WebhooksPullRequest5PropAssigneesItemsType", + "WebhooksPullRequest5PropAutoMergePropEnabledByType", + "WebhooksPullRequest5PropAutoMergeType", + "WebhooksPullRequest5PropBasePropRepoPropLicenseType", + "WebhooksPullRequest5PropBasePropRepoPropOwnerType", + "WebhooksPullRequest5PropBasePropRepoPropPermissionsType", + "WebhooksPullRequest5PropBasePropRepoType", + "WebhooksPullRequest5PropBasePropUserType", + "WebhooksPullRequest5PropBaseType", + "WebhooksPullRequest5PropHeadPropRepoPropLicenseType", + "WebhooksPullRequest5PropHeadPropRepoPropOwnerType", + "WebhooksPullRequest5PropHeadPropRepoPropPermissionsType", + "WebhooksPullRequest5PropHeadPropRepoType", + "WebhooksPullRequest5PropHeadPropUserType", + "WebhooksPullRequest5PropHeadType", + "WebhooksPullRequest5PropLabelsItemsType", + "WebhooksPullRequest5PropLinksPropCommentsType", + "WebhooksPullRequest5PropLinksPropCommitsType", + "WebhooksPullRequest5PropLinksPropHtmlType", + "WebhooksPullRequest5PropLinksPropIssueType", + "WebhooksPullRequest5PropLinksPropReviewCommentType", + "WebhooksPullRequest5PropLinksPropReviewCommentsType", + "WebhooksPullRequest5PropLinksPropSelfType", + "WebhooksPullRequest5PropLinksPropStatusesType", + "WebhooksPullRequest5PropLinksType", + "WebhooksPullRequest5PropMergedByType", + "WebhooksPullRequest5PropMilestonePropCreatorType", + "WebhooksPullRequest5PropMilestoneType", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type", + "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", + "WebhooksPullRequest5PropRequestedTeamsItemsType", + "WebhooksPullRequest5PropUserType", + "WebhooksPullRequest5Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0440.py b/githubkit/versions/v2022_11_28/types/group_0440.py index dce9a1159..fc62f86f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0440.py +++ b/githubkit/versions/v2022_11_28/types/group_0440.py @@ -9,95 +9,130 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType +class WebhooksReviewCommentType(TypedDict): + """Pull Request Review Comment -class WebhooksSecurityAdvisoryType(TypedDict): - """WebhooksSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. """ - cvss: WebhooksSecurityAdvisoryPropCvssType - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: list[WebhooksSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItemsType] - published_at: str - references: list[WebhooksSecurityAdvisoryPropReferencesItemsType] - severity: str - summary: str - updated_at: str - vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] - withdrawn_at: Union[str, None] - - -class WebhooksSecurityAdvisoryPropCvssType(TypedDict): - """WebhooksSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] + links: WebhooksReviewCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhooksReviewCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhooksReviewCommentPropUserType, None] -class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropCwesItems""" +class WebhooksReviewCommentPropReactionsType(TypedDict): + """Reactions""" - cwe_id: str - name: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" +class WebhooksReviewCommentPropUserType(TypedDict): + """User""" - type: str - value: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhooksSecurityAdvisoryPropReferencesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropReferencesItems""" +class WebhooksReviewCommentPropLinksType(TypedDict): + """WebhooksReviewCommentPropLinks""" - url: str + html: WebhooksReviewCommentPropLinksPropHtmlType + pull_request: WebhooksReviewCommentPropLinksPropPullRequestType + self_: WebhooksReviewCommentPropLinksPropSelfType -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" +class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): + """Link""" - first_patched_version: Union[ - WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str + href: str -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" +class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): + """Link""" - identifier: str + href: str -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" +class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): + """Link""" - ecosystem: str - name: str + href: str __all__ = ( - "WebhooksSecurityAdvisoryPropCvssType", - "WebhooksSecurityAdvisoryPropCwesItemsType", - "WebhooksSecurityAdvisoryPropIdentifiersItemsType", - "WebhooksSecurityAdvisoryPropReferencesItemsType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhooksSecurityAdvisoryType", + "WebhooksReviewCommentPropLinksPropHtmlType", + "WebhooksReviewCommentPropLinksPropPullRequestType", + "WebhooksReviewCommentPropLinksPropSelfType", + "WebhooksReviewCommentPropLinksType", + "WebhooksReviewCommentPropReactionsType", + "WebhooksReviewCommentPropUserType", + "WebhooksReviewCommentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0441.py b/githubkit/versions/v2022_11_28/types/group_0441.py index 7dd35b2e2..0d56edfb2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0441.py +++ b/githubkit/versions/v2022_11_28/types/group_0441.py @@ -9,47 +9,40 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksSponsorshipType(TypedDict): - """WebhooksSponsorship""" +class WebhooksReviewType(TypedDict): + """WebhooksReview - created_at: str - maintainer: NotRequired[WebhooksSponsorshipPropMaintainerType] - node_id: str - privacy_level: str - sponsor: Union[WebhooksSponsorshipPropSponsorType, None] - sponsorable: Union[WebhooksSponsorshipPropSponsorableType, None] - tier: WebhooksSponsorshipPropTierType - - -class WebhooksSponsorshipPropMaintainerType(TypedDict): - """WebhooksSponsorshipPropMaintainer""" + The review that was affected. + """ - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] + links: WebhooksReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: str + submitted_at: Union[datetime, None] + user: Union[WebhooksReviewPropUserType, None] -class WebhooksSponsorshipPropSponsorType(TypedDict): +class WebhooksReviewPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -76,56 +69,29 @@ class WebhooksSponsorshipPropSponsorType(TypedDict): user_view_type: NotRequired[str] -class WebhooksSponsorshipPropSponsorableType(TypedDict): - """User""" +class WebhooksReviewPropLinksType(TypedDict): + """WebhooksReviewPropLinks""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + html: WebhooksReviewPropLinksPropHtmlType + pull_request: WebhooksReviewPropLinksPropPullRequestType -class WebhooksSponsorshipPropTierType(TypedDict): - """Sponsorship Tier +class WebhooksReviewPropLinksPropHtmlType(TypedDict): + """Link""" - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ + href: str - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str + +class WebhooksReviewPropLinksPropPullRequestType(TypedDict): + """Link""" + + href: str __all__ = ( - "WebhooksSponsorshipPropMaintainerType", - "WebhooksSponsorshipPropSponsorType", - "WebhooksSponsorshipPropSponsorableType", - "WebhooksSponsorshipPropTierType", - "WebhooksSponsorshipType", + "WebhooksReviewPropLinksPropHtmlType", + "WebhooksReviewPropLinksPropPullRequestType", + "WebhooksReviewPropLinksType", + "WebhooksReviewPropUserType", + "WebhooksReviewType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0442.py b/githubkit/versions/v2022_11_28/types/group_0442.py index bcc71503a..f326e6f30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0442.py +++ b/githubkit/versions/v2022_11_28/types/group_0442.py @@ -9,42 +9,133 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksChanges8Type(TypedDict): - """WebhooksChanges8""" +class WebhooksReleaseType(TypedDict): + """Release - tier: WebhooksChanges8PropTierType - - -class WebhooksChanges8PropTierType(TypedDict): - """WebhooksChanges8PropTier""" - - from_: WebhooksChanges8PropTierPropFromType - - -class WebhooksChanges8PropTierPropFromType(TypedDict): - """Sponsorship Tier + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. + assets: list[WebhooksReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhooksReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhooksReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhooksReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. """ - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] name: str node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhooksChanges8PropTierPropFromType", - "WebhooksChanges8PropTierType", - "WebhooksChanges8Type", + "WebhooksReleasePropAssetsItemsPropUploaderType", + "WebhooksReleasePropAssetsItemsType", + "WebhooksReleasePropAuthorType", + "WebhooksReleasePropReactionsType", + "WebhooksReleaseType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0443.py b/githubkit/versions/v2022_11_28/types/group_0443.py index 108b60484..e8f03cf30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0443.py +++ b/githubkit/versions/v2022_11_28/types/group_0443.py @@ -9,52 +9,133 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksTeam1Type(TypedDict): - """Team +class WebhooksRelease1Type(TypedDict): + """Release - Groups of organization members that gives permissions on specified repositories. + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. """ + assets: list[Union[WebhooksRelease1PropAssetsItemsType, None]] + assets_url: str + author: Union[WebhooksRelease1PropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhooksRelease1PropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhooksRelease1PropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] id: int - members_url: NotRequired[str] - name: str + login: str + name: NotRequired[str] node_id: NotRequired[str] - parent: NotRequired[Union[WebhooksTeam1PropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhooksTeam1PropParentType(TypedDict): - """WebhooksTeam1PropParent""" +class WebhooksRelease1PropAuthorType(TypedDict): + """User""" - description: Union[str, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksRelease1PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str __all__ = ( - "WebhooksTeam1PropParentType", - "WebhooksTeam1Type", + "WebhooksRelease1PropAssetsItemsPropUploaderType", + "WebhooksRelease1PropAssetsItemsType", + "WebhooksRelease1PropAuthorType", + "WebhooksRelease1PropReactionsType", + "WebhooksRelease1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0444.py b/githubkit/versions/v2022_11_28/types/group_0444.py index ea5d6aec6..3401e5834 100644 --- a/githubkit/versions/v2022_11_28/types/group_0444.py +++ b/githubkit/versions/v2022_11_28/types/group_0444.py @@ -9,25 +9,63 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +class WebhooksAlertType(TypedDict): + """Repository Vulnerability Alert Alert -class WebhookBranchProtectionConfigurationDisabledType(TypedDict): - """branch protection configuration disabled event""" + The security alert of the vulnerable dependency. + """ - action: Literal["disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["open"] -__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) +class WebhooksAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhooksAlertPropDismisserType", + "WebhooksAlertType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0445.py b/githubkit/versions/v2022_11_28/types/group_0445.py index fcb9b4649..60f295adf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0445.py +++ b/githubkit/versions/v2022_11_28/types/group_0445.py @@ -9,25 +9,50 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType - - -class WebhookBranchProtectionConfigurationEnabledType(TypedDict): - """branch protection configuration enabled event""" - - action: Literal["enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) +from .group_0003 import SimpleUserType + + +class SecretScanningAlertWebhookType(TypedDict): + """SecretScanningAlertWebhook""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + resolution: NotRequired[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + + +__all__ = ("SecretScanningAlertWebhookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0446.py b/githubkit/versions/v2022_11_28/types/group_0446.py index e5fb48a70..dce9a1159 100644 --- a/githubkit/versions/v2022_11_28/types/group_0446.py +++ b/githubkit/versions/v2022_11_28/types/group_0446.py @@ -9,27 +9,95 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0397 import WebhooksRuleType +from .group_0001 import CvssSeveritiesType -class WebhookBranchProtectionRuleCreatedType(TypedDict): - """branch protection rule created event""" +class WebhooksSecurityAdvisoryType(TypedDict): + """WebhooksSecurityAdvisory - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserType + The details of the security advisory, including summary, description, and + severity. + """ + cvss: WebhooksSecurityAdvisoryPropCvssType + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: list[WebhooksSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItemsType] + published_at: str + references: list[WebhooksSecurityAdvisoryPropReferencesItemsType] + severity: str + summary: str + updated_at: str + vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] + withdrawn_at: Union[str, None] -__all__ = ("WebhookBranchProtectionRuleCreatedType",) + +class WebhooksSecurityAdvisoryPropCvssType(TypedDict): + """WebhooksSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhooksSecurityAdvisoryPropReferencesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" + + identifier: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + + ecosystem: str + name: str + + +__all__ = ( + "WebhooksSecurityAdvisoryPropCvssType", + "WebhooksSecurityAdvisoryPropCwesItemsType", + "WebhooksSecurityAdvisoryPropIdentifiersItemsType", + "WebhooksSecurityAdvisoryPropReferencesItemsType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhooksSecurityAdvisoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0447.py b/githubkit/versions/v2022_11_28/types/group_0447.py index f963e9373..7dd35b2e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0447.py +++ b/githubkit/versions/v2022_11_28/types/group_0447.py @@ -9,27 +9,123 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0397 import WebhooksRuleType +class WebhooksSponsorshipType(TypedDict): + """WebhooksSponsorship""" -class WebhookBranchProtectionRuleDeletedType(TypedDict): - """branch protection rule deleted event""" + created_at: str + maintainer: NotRequired[WebhooksSponsorshipPropMaintainerType] + node_id: str + privacy_level: str + sponsor: Union[WebhooksSponsorshipPropSponsorType, None] + sponsorable: Union[WebhooksSponsorshipPropSponsorableType, None] + tier: WebhooksSponsorshipPropTierType - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserType +class WebhooksSponsorshipPropMaintainerType(TypedDict): + """WebhooksSponsorshipPropMaintainer""" -__all__ = ("WebhookBranchProtectionRuleDeletedType",) + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksSponsorshipPropSponsorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksSponsorshipPropSponsorableType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksSponsorshipPropTierType(TypedDict): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int + name: str + node_id: str + + +__all__ = ( + "WebhooksSponsorshipPropMaintainerType", + "WebhooksSponsorshipPropSponsorType", + "WebhooksSponsorshipPropSponsorableType", + "WebhooksSponsorshipPropTierType", + "WebhooksSponsorshipType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0448.py b/githubkit/versions/v2022_11_28/types/group_0448.py index 83dc7b518..bcc71503a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0448.py +++ b/githubkit/versions/v2022_11_28/types/group_0448.py @@ -9,173 +9,42 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0397 import WebhooksRuleType +class WebhooksChanges8Type(TypedDict): + """WebhooksChanges8""" -class WebhookBranchProtectionRuleEditedType(TypedDict): - """branch protection rule edited event""" + tier: WebhooksChanges8PropTierType - action: Literal["edited"] - changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserType +class WebhooksChanges8PropTierType(TypedDict): + """WebhooksChanges8PropTier""" -class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChanges + from_: WebhooksChanges8PropTierPropFromType - If the action was `edited`, the changes to the rule. - """ - - admin_enforced: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType - ] - authorized_actor_names: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType - ] - authorized_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType - ] - authorized_dismissal_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType - ] - linear_history_requirement_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType - ] - lock_branch_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType - ] - lock_allows_fork_sync: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType - ] - pull_request_reviews_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType - ] - require_last_push_approval: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType - ] - required_status_checks: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType - ] - required_status_checks_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType - ] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" - - from_: list[str] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem - entLevel - """ - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev - el - """ - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: list[str] +class WebhooksChanges8PropTierPropFromType(TypedDict): + """Sponsorship Tier -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - from_: Literal["off", "non_admins", "everyone"] + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int + name: str + node_id: str __all__ = ( - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", - "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", - "WebhookBranchProtectionRuleEditedPropChangesType", - "WebhookBranchProtectionRuleEditedType", + "WebhooksChanges8PropTierPropFromType", + "WebhooksChanges8PropTierType", + "WebhooksChanges8Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0449.py b/githubkit/versions/v2022_11_28/types/group_0449.py index 8232bcfb4..108b60484 100644 --- a/githubkit/versions/v2022_11_28/types/group_0449.py +++ b/githubkit/versions/v2022_11_28/types/group_0449.py @@ -9,25 +9,52 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0399 import CheckRunWithSimpleCheckSuiteType - -class WebhookCheckRunCompletedType(TypedDict): - """Check Run Completed Event""" - - action: Literal["completed"] - check_run: CheckRunWithSimpleCheckSuiteType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookCheckRunCompletedType",) +class WebhooksTeam1Type(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhooksTeam1PropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksTeam1PropParentType(TypedDict): + """WebhooksTeam1PropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhooksTeam1PropParentType", + "WebhooksTeam1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0450.py b/githubkit/versions/v2022_11_28/types/group_0450.py index 831afd105..742509a50 100644 --- a/githubkit/versions/v2022_11_28/types/group_0450.py +++ b/githubkit/versions/v2022_11_28/types/group_0450.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookCheckRunCompletedFormEncodedType(TypedDict): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookBranchProtectionConfigurationDisabledType(TypedDict): + """branch protection configuration disabled event""" - payload: str + action: Literal["disabled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCheckRunCompletedFormEncodedType",) +__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0451.py b/githubkit/versions/v2022_11_28/types/group_0451.py index de86ac7a9..6ce71fefe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0451.py +++ b/githubkit/versions/v2022_11_28/types/group_0451.py @@ -12,22 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0399 import CheckRunWithSimpleCheckSuiteType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookCheckRunCreatedType(TypedDict): - """Check Run Created Event""" +class WebhookBranchProtectionConfigurationEnabledType(TypedDict): + """branch protection configuration enabled event""" - action: Literal["created"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["enabled"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookCheckRunCreatedType",) +__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0452.py b/githubkit/versions/v2022_11_28/types/group_0452.py index 090ccf388..ad5dd1e4f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0452.py +++ b/githubkit/versions/v2022_11_28/types/group_0452.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0403 import WebhooksRuleType -class WebhookCheckRunCreatedFormEncodedType(TypedDict): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleCreatedType(TypedDict): + """branch protection rule created event""" - payload: str + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + rule: WebhooksRuleType + sender: SimpleUserType -__all__ = ("WebhookCheckRunCreatedFormEncodedType",) +__all__ = ("WebhookBranchProtectionRuleCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0453.py b/githubkit/versions/v2022_11_28/types/group_0453.py index 90f5b75de..3695cdbc9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0453.py +++ b/githubkit/versions/v2022_11_28/types/group_0453.py @@ -12,35 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0399 import CheckRunWithSimpleCheckSuiteType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0403 import WebhooksRuleType -class WebhookCheckRunRequestedActionType(TypedDict): - """Check Run Requested Action Event""" +class WebhookBranchProtectionRuleDeletedType(TypedDict): + """branch protection rule deleted event""" - action: Literal["requested_action"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] + rule: WebhooksRuleType sender: SimpleUserType -class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. - """ - - identifier: NotRequired[str] - - -__all__ = ( - "WebhookCheckRunRequestedActionPropRequestedActionType", - "WebhookCheckRunRequestedActionType", -) +__all__ = ("WebhookBranchProtectionRuleDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0454.py b/githubkit/versions/v2022_11_28/types/group_0454.py index 0d80e2c39..c0014af49 100644 --- a/githubkit/versions/v2022_11_28/types/group_0454.py +++ b/githubkit/versions/v2022_11_28/types/group_0454.py @@ -9,16 +9,173 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0403 import WebhooksRuleType -class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding +class WebhookBranchProtectionRuleEditedType(TypedDict): + """branch protection rule edited event""" + + action: Literal["edited"] + changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + rule: WebhooksRuleType + sender: SimpleUserType + + +class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType + ] + authorized_actor_names: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType + ] + authorized_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType + ] + authorized_dismissal_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType + ] + linear_history_requirement_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType + ] + lock_branch_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType + ] + lock_allows_fork_sync: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType + ] + pull_request_reviews_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType + ] + require_last_push_approval: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType + ] + required_status_checks: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType + ] + required_status_checks_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType + ] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: list[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: list[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel """ - payload: str + from_: Literal["off", "non_admins", "everyone"] -__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) +__all__ = ( + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", + "WebhookBranchProtectionRuleEditedPropChangesType", + "WebhookBranchProtectionRuleEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0455.py b/githubkit/versions/v2022_11_28/types/group_0455.py index 4c7a769f0..334165642 100644 --- a/githubkit/versions/v2022_11_28/types/group_0455.py +++ b/githubkit/versions/v2022_11_28/types/group_0455.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0399 import CheckRunWithSimpleCheckSuiteType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0405 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRerequestedType(TypedDict): - """Check Run Re-Requested Event""" +class WebhookCheckRunCompletedType(TypedDict): + """Check Run Completed Event""" - action: Literal["rerequested"] + action: Literal["completed"] check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookCheckRunRerequestedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookCheckRunRerequestedType",) +__all__ = ("WebhookCheckRunCompletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0456.py b/githubkit/versions/v2022_11_28/types/group_0456.py index ef6a77599..831afd105 100644 --- a/githubkit/versions/v2022_11_28/types/group_0456.py +++ b/githubkit/versions/v2022_11_28/types/group_0456.py @@ -12,13 +12,13 @@ from typing_extensions import TypedDict -class WebhookCheckRunRerequestedFormEncodedType(TypedDict): - """Check Run Re-Requested Event +class WebhookCheckRunCompletedFormEncodedType(TypedDict): + """Check Run Completed Event - The check_run.rerequested webhook encoded with URL encoding + The check_run.completed webhook encoded with URL encoding """ payload: str -__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) +__all__ = ("WebhookCheckRunCompletedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0457.py b/githubkit/versions/v2022_11_28/types/group_0457.py index e831d1fa7..55888d333 100644 --- a/githubkit/versions/v2022_11_28/types/group_0457.py +++ b/githubkit/versions/v2022_11_28/types/group_0457.py @@ -9,267 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0405 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckSuiteCompletedType(TypedDict): - """check_suite completed event""" +class WebhookCheckRunCreatedType(TypedDict): + """Check Run Created Event""" - action: Literal["completed"] - check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: list[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] - updated_at: datetime - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - client_id: NotRequired[Union[str, None]] - name: str - node_id: str - owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteCompletedPropCheckSuiteType", - "WebhookCheckSuiteCompletedType", -) +__all__ = ("WebhookCheckRunCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0458.py b/githubkit/versions/v2022_11_28/types/group_0458.py index 89ac57154..090ccf388 100644 --- a/githubkit/versions/v2022_11_28/types/group_0458.py +++ b/githubkit/versions/v2022_11_28/types/group_0458.py @@ -9,264 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +class WebhookCheckRunCreatedFormEncodedType(TypedDict): + """Check Run Created Event -class WebhookCheckSuiteRequestedType(TypedDict): - """check_suite requested event""" - - action: Literal["requested"] - check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: list[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The check_run.created webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - client_id: NotRequired[Union[str, None]] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRequestedPropCheckSuiteType", - "WebhookCheckSuiteRequestedType", -) +__all__ = ("WebhookCheckRunCreatedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0459.py b/githubkit/versions/v2022_11_28/types/group_0459.py index 8b480878d..40f625a2b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0459.py +++ b/githubkit/versions/v2022_11_28/types/group_0459.py @@ -9,263 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0405 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckSuiteRerequestedType(TypedDict): - """check_suite rerequested event""" +class WebhookCheckRunRequestedActionType(TypedDict): + """Check Run Requested Action Event""" - action: Literal["rerequested"] - check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["requested_action"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] sender: SimpleUserType -class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuite +class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): + """WebhookCheckRunRequestedActionPropRequestedAction - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). + The action requested by the user. """ - after: Union[str, None] - app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: list[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - client_id: NotRequired[Union[str, None]] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + identifier: NotRequired[str] __all__ = ( - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRerequestedPropCheckSuiteType", - "WebhookCheckSuiteRerequestedType", + "WebhookCheckRunRequestedActionPropRequestedActionType", + "WebhookCheckRunRequestedActionType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0460.py b/githubkit/versions/v2022_11_28/types/group_0460.py index d9289005e..0d80e2c39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0460.py +++ b/githubkit/versions/v2022_11_28/types/group_0460.py @@ -9,154 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): + """Check Run Requested Action Event -class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): - """code_scanning_alert appeared_in_branch event""" - - action: Literal["appeared_in_branch"] - alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None - ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, - None, - ] - ] - number: int - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed", "fixed"]] - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType - url: str - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge + The check_run.requested_action webhook encoded with URL encoding """ - text: NotRequired[str] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" - - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - - name: str - version: Union[str, None] + payload: str -__all__ = ( - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertType", - "WebhookCodeScanningAlertAppearedInBranchType", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0461.py b/githubkit/versions/v2022_11_28/types/group_0461.py index 830dc5235..f81449a76 100644 --- a/githubkit/versions/v2022_11_28/types/group_0461.py +++ b/githubkit/versions/v2022_11_28/types/group_0461.py @@ -9,156 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0405 import CheckRunWithSimpleCheckSuiteType -class WebhookCodeScanningAlertClosedByUserType(TypedDict): - """code_scanning_alert closed_by_user event""" +class WebhookCheckRunRerequestedType(TypedDict): + """Check Run Re-Requested Event""" - action: Literal["closed_by_user"] - alert: WebhookCodeScanningAlertClosedByUserPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["rerequested"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime - dismissed_at: datetime - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None - ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, - None, - ] - ] - number: int - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType - state: Literal["dismissed", "fixed"] - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType - url: str - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" - - text: NotRequired[str] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" - - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" - - guid: NotRequired[Union[str, None]] - name: str - version: Union[str, None] - - -__all__ = ( - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", - "WebhookCodeScanningAlertClosedByUserPropAlertType", - "WebhookCodeScanningAlertClosedByUserType", -) +__all__ = ("WebhookCheckRunRerequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0462.py b/githubkit/versions/v2022_11_28/types/group_0462.py index c3eb2737c..ef6a77599 100644 --- a/githubkit/versions/v2022_11_28/types/group_0462.py +++ b/githubkit/versions/v2022_11_28/types/group_0462.py @@ -9,121 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +class WebhookCheckRunRerequestedFormEncodedType(TypedDict): + """Check Run Re-Requested Event -class WebhookCodeScanningAlertCreatedType(TypedDict): - """code_scanning_alert created event""" - - action: Literal["created"] - alert: WebhookCodeScanningAlertCreatedPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlert - - The code scanning alert involved in the event. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: Union[datetime, None] - dismissed_at: None - dismissed_by: None - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None - fixed_at: NotRequired[None] - html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] - ] - number: int - rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed"]] - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] - updated_at: NotRequired[Union[str, None]] - url: str - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" - - text: NotRequired[str] - - -class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" - - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] - - -class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" - - guid: NotRequired[Union[str, None]] - name: str - version: Union[str, None] + payload: str -__all__ = ( - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", - "WebhookCodeScanningAlertCreatedPropAlertPropToolType", - "WebhookCodeScanningAlertCreatedPropAlertType", - "WebhookCodeScanningAlertCreatedType", -) +__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0463.py b/githubkit/versions/v2022_11_28/types/group_0463.py index 73f92fd41..b5c65d21a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0463.py +++ b/githubkit/versions/v2022_11_28/types/group_0463.py @@ -13,54 +13,95 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookCodeScanningAlertFixedType(TypedDict): - """code_scanning_alert fixed event""" +class WebhookCheckSuiteCompletedType(TypedDict): + """check_suite completed event""" - action: Literal["fixed"] - alert: WebhookCodeScanningAlertFixedPropAlertType - commit_oid: str + action: Literal["completed"] + check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: list[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType ] - fixed_at: NotRequired[None] - html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] ] - number: int - rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType - state: Union[None, Literal["fixed"]] - tool: WebhookCodeScanningAlertFixedPropAlertPropToolType + updated_at: datetime url: str -class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + client_id: NotRequired[Union[str, None]] + name: str + node_id: str + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -87,72 +128,148 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertFixedPropAlertPropRuleType", - "WebhookCodeScanningAlertFixedPropAlertPropToolType", - "WebhookCodeScanningAlertFixedPropAlertType", - "WebhookCodeScanningAlertFixedType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteCompletedPropCheckSuiteType", + "WebhookCheckSuiteCompletedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0464.py b/githubkit/versions/v2022_11_28/types/group_0464.py index d530e70e5..e4df78c2b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0464.py +++ b/githubkit/versions/v2022_11_28/types/group_0464.py @@ -13,122 +13,260 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookCodeScanningAlertReopenedType(TypedDict): - """code_scanning_alert reopened event""" +class WebhookCheckSuiteRequestedType(TypedDict): + """check_suite requested event""" - action: Literal["reopened"] - alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] - commit_oid: Union[str, None] + action: Literal["requested"] + check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: Union[str, None] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] created_at: datetime - dismissed_at: Union[str, None] - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: list[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[str, None] - fixed_at: NotRequired[None] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + id: Union[int, None] + client_id: NotRequired[Union[str, None]] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType ] - number: int - rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed", "fixed"]] - tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType - url: str + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedPropAlertPropToolType", - "WebhookCodeScanningAlertReopenedPropAlertType", - "WebhookCodeScanningAlertReopenedType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRequestedPropCheckSuiteType", + "WebhookCheckSuiteRequestedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0465.py b/githubkit/versions/v2022_11_28/types/group_0465.py index 7372ac6f1..4779e8833 100644 --- a/githubkit/versions/v2022_11_28/types/group_0465.py +++ b/githubkit/versions/v2022_11_28/types/group_0465.py @@ -13,116 +13,259 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookCodeScanningAlertReopenedByUserType(TypedDict): - """code_scanning_alert reopened_by_user event""" +class WebhookCheckSuiteRerequestedType(TypedDict): + """check_suite rerequested event""" - action: Literal["reopened_by_user"] - alert: WebhookCodeScanningAlertReopenedByUserPropAlertType - commit_oid: str + action: Literal["rerequested"] + check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] created_at: datetime - dismissed_at: None - dismissed_by: None - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, - None, - ] + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: list[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType ] - number: int - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType - state: Union[None, Literal["open", "fixed"]] - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + client_id: NotRequired[Union[str, None]] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType ] - ref: str - state: Literal["open", "dismissed", "fixed"] + slug: NotRequired[str] + updated_at: Union[datetime, None] + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n + """Committer + + Metaproperties for Git author/committer information. """ - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", - "WebhookCodeScanningAlertReopenedByUserPropAlertType", - "WebhookCodeScanningAlertReopenedByUserType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRerequestedPropCheckSuiteType", + "WebhookCheckSuiteRerequestedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0466.py b/githubkit/versions/v2022_11_28/types/group_0466.py index e053d9aed..c8aeead13 100644 --- a/githubkit/versions/v2022_11_28/types/group_0466.py +++ b/githubkit/versions/v2022_11_28/types/group_0466.py @@ -9,77 +9,62 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookCommitCommentCreatedType(TypedDict): - """commit_comment created event""" +class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): + """code_scanning_alert appeared_in_branch event""" - action: Literal["created"] - comment: WebhookCommitCommentCreatedPropCommentType + action: Literal["appeared_in_branch"] + alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCommitCommentCreatedPropCommentType(TypedDict): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlert - The [commit - comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- - comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None ] - body: str - commit_id: str - created_at: str + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + fixed_at: NotRequired[None] html_url: str - id: int - line: Union[int, None] - node_id: str - path: Union[str, None] - position: Union[int, None] - reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] - updated_at: str - url: str - user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] - - -class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed", "fixed"]] + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType url: str -class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -106,9 +91,72 @@ class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): user_view_type: NotRequired[str] +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ + + text: NotRequired[str] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" + + description: str + id: str + severity: Union[None, Literal["none", "note", "warning", "error"]] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" + + name: str + version: Union[str, None] + + __all__ = ( - "WebhookCommitCommentCreatedPropCommentPropReactionsType", - "WebhookCommitCommentCreatedPropCommentPropUserType", - "WebhookCommitCommentCreatedPropCommentType", - "WebhookCommitCommentCreatedType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertType", + "WebhookCodeScanningAlertAppearedInBranchType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0467.py b/githubkit/versions/v2022_11_28/types/group_0467.py index 7dbd92cf4..b86fbbcce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0467.py +++ b/githubkit/versions/v2022_11_28/types/group_0467.py @@ -9,29 +9,156 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookCreateType(TypedDict): - """create event""" +class WebhookCodeScanningAlertClosedByUserType(TypedDict): + """code_scanning_alert closed_by_user event""" - description: Union[str, None] + action: Literal["closed_by_user"] + alert: WebhookCodeScanningAlertClosedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str ref: str - ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookCreateType",) +class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: datetime + dismissed_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None + ] + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + fixed_at: NotRequired[None] + html_url: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType + state: Literal["dismissed", "fixed"] + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertClosedByUserPropAlertType", + "WebhookCodeScanningAlertClosedByUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0468.py b/githubkit/versions/v2022_11_28/types/group_0468.py index c94505397..55b78e1d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0468.py +++ b/githubkit/versions/v2022_11_28/types/group_0468.py @@ -9,25 +9,121 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0107 import CustomPropertyType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookCustomPropertyCreatedType(TypedDict): - """custom property created event""" +class WebhookCodeScanningAlertCreatedType(TypedDict): + """code_scanning_alert created event""" action: Literal["created"] - definition: CustomPropertyType + alert: WebhookCodeScanningAlertCreatedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyCreatedType",) +class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: Union[datetime, None] + dismissed_at: None + dismissed_by: None + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: None + fixed_at: NotRequired[None] + html_url: str + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed"]] + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] + updated_at: NotRequired[Union[str, None]] + url: str + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", + "WebhookCodeScanningAlertCreatedPropAlertPropToolType", + "WebhookCodeScanningAlertCreatedPropAlertType", + "WebhookCodeScanningAlertCreatedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0469.py b/githubkit/versions/v2022_11_28/types/group_0469.py index 19429e59a..23dac01f9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0469.py +++ b/githubkit/versions/v2022_11_28/types/group_0469.py @@ -9,33 +9,150 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookCustomPropertyDeletedType(TypedDict): - """custom property deleted event""" +class WebhookCodeScanningAlertFixedType(TypedDict): + """code_scanning_alert fixed event""" - action: Literal["deleted"] - definition: WebhookCustomPropertyDeletedPropDefinitionType + action: Literal["fixed"] + alert: WebhookCodeScanningAlertFixedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlert - property_name: str + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + fixed_at: NotRequired[None] + html_url: str + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType + state: Union[None, Literal["fixed"]] + tool: WebhookCodeScanningAlertFixedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] __all__ = ( - "WebhookCustomPropertyDeletedPropDefinitionType", - "WebhookCustomPropertyDeletedType", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertFixedPropAlertPropRuleType", + "WebhookCodeScanningAlertFixedPropAlertPropToolType", + "WebhookCodeScanningAlertFixedPropAlertType", + "WebhookCodeScanningAlertFixedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0470.py b/githubkit/versions/v2022_11_28/types/group_0470.py index 29613652a..11aa5ae9d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0470.py +++ b/githubkit/versions/v2022_11_28/types/group_0470.py @@ -9,25 +9,126 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0107 import CustomPropertyType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookCustomPropertyUpdatedType(TypedDict): - """custom property updated event""" +class WebhookCodeScanningAlertReopenedType(TypedDict): + """code_scanning_alert reopened event""" - action: Literal["updated"] - definition: CustomPropertyType + action: Literal["reopened"] + alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] + commit_oid: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + ref: Union[str, None] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyUpdatedType",) +class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[str, None] + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + ] + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[str, None] + fixed_at: NotRequired[None] + html_url: str + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed", "fixed"]] + tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedPropAlertPropToolType", + "WebhookCodeScanningAlertReopenedPropAlertType", + "WebhookCodeScanningAlertReopenedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0471.py b/githubkit/versions/v2022_11_28/types/group_0471.py index 78c61bf42..a22126a6d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0471.py +++ b/githubkit/versions/v2022_11_28/types/group_0471.py @@ -9,28 +9,120 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0109 import CustomPropertyValueType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookCustomPropertyValuesUpdatedType(TypedDict): - """Custom property values updated event""" +class WebhookCodeScanningAlertReopenedByUserType(TypedDict): + """code_scanning_alert reopened_by_user event""" - action: Literal["updated"] + action: Literal["reopened_by_user"] + alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserType] - new_property_values: list[CustomPropertyValueType] - old_property_values: list[CustomPropertyValueType] + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyValuesUpdatedType",) +class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: None + dismissed_by: None + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: None + fixed_at: NotRequired[None] + html_url: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType + state: Union[None, Literal["open", "fixed"]] + tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio + n + """ + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" + + description: str + id: str + severity: Union[None, Literal["none", "note", "warning", "error"]] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" + + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertReopenedByUserPropAlertType", + "WebhookCodeScanningAlertReopenedByUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0472.py b/githubkit/versions/v2022_11_28/types/group_0472.py index 8c72e0d8c..b6aaa5531 100644 --- a/githubkit/versions/v2022_11_28/types/group_0472.py +++ b/githubkit/versions/v2022_11_28/types/group_0472.py @@ -9,27 +9,106 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookDeleteType(TypedDict): - """delete event""" +class WebhookCommitCommentCreatedType(TypedDict): + """commit_comment created event""" + action: Literal["created"] + comment: WebhookCommitCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str - ref: str - ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeleteType",) +class WebhookCommitCommentCreatedPropCommentType(TypedDict): + """WebhookCommitCommentCreatedPropComment + + The [commit + comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- + comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: str + html_url: str + id: int + line: Union[int, None] + node_id: str + path: Union[str, None] + position: Union[int, None] + reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] + updated_at: str + url: str + user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] + + +class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookCommitCommentCreatedPropCommentPropReactionsType", + "WebhookCommitCommentCreatedPropCommentPropUserType", + "WebhookCommitCommentCreatedPropCommentType", + "WebhookCommitCommentCreatedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0473.py b/githubkit/versions/v2022_11_28/types/group_0473.py index 0a9923a30..fd268bf4c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0473.py +++ b/githubkit/versions/v2022_11_28/types/group_0473.py @@ -9,27 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0258 import DependabotAlertType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookDependabotAlertAutoDismissedType(TypedDict): - """Dependabot alert auto-dismissed event""" +class WebhookCreateType(TypedDict): + """create event""" - action: Literal["auto_dismissed"] - alert: DependabotAlertType + description: Union[str, None] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDependabotAlertAutoDismissedType",) +__all__ = ("WebhookCreateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0474.py b/githubkit/versions/v2022_11_28/types/group_0474.py index 5e9a4b814..e781aa78d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0474.py +++ b/githubkit/versions/v2022_11_28/types/group_0474.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0258 import DependabotAlertType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0112 import CustomPropertyType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoReopenedType(TypedDict): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyCreatedType(TypedDict): + """custom property created event""" - action: Literal["auto_reopened"] - alert: DependabotAlertType + action: Literal["created"] + definition: CustomPropertyType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDependabotAlertAutoReopenedType",) +__all__ = ("WebhookCustomPropertyCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0475.py b/githubkit/versions/v2022_11_28/types/group_0475.py index b93ddb706..f9dbaec4f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0475.py +++ b/githubkit/versions/v2022_11_28/types/group_0475.py @@ -12,24 +12,30 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0258 import DependabotAlertType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertCreatedType(TypedDict): - """Dependabot alert created event""" +class WebhookCustomPropertyDeletedType(TypedDict): + """custom property deleted event""" - action: Literal["created"] - alert: DependabotAlertType + action: Literal["deleted"] + definition: WebhookCustomPropertyDeletedPropDefinitionType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] + + +class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str -__all__ = ("WebhookDependabotAlertCreatedType",) +__all__ = ( + "WebhookCustomPropertyDeletedPropDefinitionType", + "WebhookCustomPropertyDeletedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0476.py b/githubkit/versions/v2022_11_28/types/group_0476.py index 55d519b72..a9530577a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0476.py +++ b/githubkit/versions/v2022_11_28/types/group_0476.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0258 import DependabotAlertType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0112 import CustomPropertyType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertDismissedType(TypedDict): - """Dependabot alert dismissed event""" +class WebhookCustomPropertyUpdatedType(TypedDict): + """custom property updated event""" - action: Literal["dismissed"] - alert: DependabotAlertType + action: Literal["updated"] + definition: CustomPropertyType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDependabotAlertDismissedType",) +__all__ = ("WebhookCustomPropertyUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0477.py b/githubkit/versions/v2022_11_28/types/group_0477.py index 3d6fafb23..84e5f20ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0477.py +++ b/githubkit/versions/v2022_11_28/types/group_0477.py @@ -12,24 +12,25 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0258 import DependabotAlertType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0114 import CustomPropertyValueType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookDependabotAlertFixedType(TypedDict): - """Dependabot alert fixed event""" +class WebhookCustomPropertyValuesUpdatedType(TypedDict): + """Custom property values updated event""" - action: Literal["fixed"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] repository: RepositoryWebhooksType - sender: SimpleUserType + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserType] + new_property_values: list[CustomPropertyValueType] + old_property_values: list[CustomPropertyValueType] -__all__ = ("WebhookDependabotAlertFixedType",) +__all__ = ("WebhookCustomPropertyValuesUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0478.py b/githubkit/versions/v2022_11_28/types/group_0478.py index 3ff483aae..342cdb779 100644 --- a/githubkit/versions/v2022_11_28/types/group_0478.py +++ b/githubkit/versions/v2022_11_28/types/group_0478.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0258 import DependabotAlertType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookDependabotAlertReintroducedType(TypedDict): - """Dependabot alert reintroduced event""" +class WebhookDeleteType(TypedDict): + """delete event""" - action: Literal["reintroduced"] - alert: DependabotAlertType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDependabotAlertReintroducedType",) +__all__ = ("WebhookDeleteType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0479.py b/githubkit/versions/v2022_11_28/types/group_0479.py index d8b12f075..743bdb3c2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0479.py +++ b/githubkit/versions/v2022_11_28/types/group_0479.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0258 import DependabotAlertType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0264 import DependabotAlertType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookDependabotAlertReopenedType(TypedDict): - """Dependabot alert reopened event""" +class WebhookDependabotAlertAutoDismissedType(TypedDict): + """Dependabot alert auto-dismissed event""" - action: Literal["reopened"] + action: Literal["auto_dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReopenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertReopenedType",) +__all__ = ("WebhookDependabotAlertAutoDismissedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0480.py b/githubkit/versions/v2022_11_28/types/group_0480.py index 0a53dff52..2c69348df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0480.py +++ b/githubkit/versions/v2022_11_28/types/group_0480.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0400 import WebhooksDeployKeyType +from .group_0003 import SimpleUserType +from .group_0264 import DependabotAlertType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookDeployKeyCreatedType(TypedDict): - """deploy_key created event""" +class WebhookDependabotAlertAutoReopenedType(TypedDict): + """Dependabot alert auto-reopened event""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["auto_reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeployKeyCreatedType",) +__all__ = ("WebhookDependabotAlertAutoReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0481.py b/githubkit/versions/v2022_11_28/types/group_0481.py index 142085980..5e01666b6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0481.py +++ b/githubkit/versions/v2022_11_28/types/group_0481.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0400 import WebhooksDeployKeyType +from .group_0003 import SimpleUserType +from .group_0264 import DependabotAlertType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookDeployKeyDeletedType(TypedDict): - """deploy_key deleted event""" +class WebhookDependabotAlertCreatedType(TypedDict): + """Dependabot alert created event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeployKeyDeletedType",) +__all__ = ("WebhookDependabotAlertCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0482.py b/githubkit/versions/v2022_11_28/types/group_0482.py index 8453ca216..71227f989 100644 --- a/githubkit/versions/v2022_11_28/types/group_0482.py +++ b/githubkit/versions/v2022_11_28/types/group_0482.py @@ -9,550 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0401 import WebhooksWorkflowType +from .group_0003 import SimpleUserType +from .group_0264 import DependabotAlertType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookDeploymentCreatedType(TypedDict): - """deployment created event""" +class WebhookDependabotAlertDismissedType(TypedDict): + """Dependabot alert dismissed event""" - action: Literal["created"] - deployment: WebhookDeploymentCreatedPropDeploymentType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["dismissed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] - - -class WebhookDeploymentCreatedPropDeploymentType(TypedDict): - """Deployment - - The [deployment](https://docs.github.com/rest/deployments/deployments#list- - deployments). - """ - - created_at: str - creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] - description: Union[str, None] - environment: str - id: int - node_id: str - original_environment: str - payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type] - performed_via_github_app: NotRequired[ - Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] - ] - production_environment: NotRequired[bool] - ref: str - repository_url: str - sha: str - statuses_url: str - task: str - transient_environment: NotRequired[bool] - updated_at: str - url: str - - -class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[str, Any] -"""WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 -""" - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[None] - head_repository: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[None] - pull_requests: list[ - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: NotRequired[ - Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: ( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - ) - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: ( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - ) - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentCreatedPropDeploymentType", - "WebhookDeploymentCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentCreatedPropWorkflowRunType", - "WebhookDeploymentCreatedType", -) +__all__ = ("WebhookDependabotAlertDismissedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0483.py b/githubkit/versions/v2022_11_28/types/group_0483.py index b31cf362d..c24beb3bc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0483.py +++ b/githubkit/versions/v2022_11_28/types/group_0483.py @@ -12,27 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0190 import DeploymentType -from .group_0321 import PullRequestType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType - - -class WebhookDeploymentProtectionRuleRequestedType(TypedDict): - """deployment protection rule requested event""" - - action: Literal["requested"] - environment: NotRequired[str] - event: NotRequired[str] - deployment_callback_url: NotRequired[str] - deployment: NotRequired[DeploymentType] - pull_requests: NotRequired[list[PullRequestType]] - repository: NotRequired[RepositoryWebhooksType] - organization: NotRequired[OrganizationSimpleWebhooksType] +from .group_0003 import SimpleUserType +from .group_0264 import DependabotAlertType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType + + +class WebhookDependabotAlertFixedType(TypedDict): + """Dependabot alert fixed event""" + + action: Literal["fixed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - sender: NotRequired[SimpleUserType] + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) +__all__ = ("WebhookDependabotAlertFixedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0484.py b/githubkit/versions/v2022_11_28/types/group_0484.py index 7ae0f13e1..388a00340 100644 --- a/githubkit/versions/v2022_11_28/types/group_0484.py +++ b/githubkit/versions/v2022_11_28/types/group_0484.py @@ -9,419 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0402 import WebhooksApproverType, WebhooksReviewersItemsType -from .group_0403 import WebhooksWorkflowJobRunType +from .group_0003 import SimpleUserType +from .group_0264 import DependabotAlertType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookDeploymentReviewApprovedType(TypedDict): - """WebhookDeploymentReviewApproved""" +class WebhookDependabotAlertReintroducedType(TypedDict): + """Dependabot alert reintroduced event""" - action: Literal["approved"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reintroduced"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[None] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunType", - "WebhookDeploymentReviewApprovedType", -) +__all__ = ("WebhookDependabotAlertReintroducedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0485.py b/githubkit/versions/v2022_11_28/types/group_0485.py index 1da1a4dbc..8d6c40ae5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0485.py +++ b/githubkit/versions/v2022_11_28/types/group_0485.py @@ -9,417 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0402 import WebhooksApproverType, WebhooksReviewersItemsType -from .group_0403 import WebhooksWorkflowJobRunType +from .group_0003 import SimpleUserType +from .group_0264 import DependabotAlertType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookDeploymentReviewRejectedType(TypedDict): - """WebhookDeploymentReviewRejected""" +class WebhookDependabotAlertReopenedType(TypedDict): + """Dependabot alert reopened event""" - action: Literal["rejected"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - display_title: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunType", - "WebhookDeploymentReviewRejectedType", -) +__all__ = ("WebhookDependabotAlertReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0486.py b/githubkit/versions/v2022_11_28/types/group_0486.py index d8814e119..a936f7b2f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0486.py +++ b/githubkit/versions/v2022_11_28/types/group_0486.py @@ -9,453 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0406 import WebhooksDeployKeyType -class WebhookDeploymentReviewRequestedType(TypedDict): - """WebhookDeploymentReviewRequested""" +class WebhookDeployKeyCreatedType(TypedDict): + """deploy_key created event""" - action: Literal["requested"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] - environment: str installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + key: WebhooksDeployKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - requestor: Union[WebhooksUserType, None] - reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserType - since: str - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str - html_url: str - id: int - name: Union[str, None] - status: str - updated_at: str - - -class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] - ] - type: NotRequired[Literal["User", "Team"]] - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - display_title: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewRequestedPropReviewersItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunType", - "WebhookDeploymentReviewRequestedType", -) +__all__ = ("WebhookDeployKeyCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0487.py b/githubkit/versions/v2022_11_28/types/group_0487.py index 133e63a90..050499d6e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0487.py +++ b/githubkit/versions/v2022_11_28/types/group_0487.py @@ -9,765 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0401 import WebhooksWorkflowType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0406 import WebhooksDeployKeyType -class WebhookDeploymentStatusCreatedType(TypedDict): - """deployment_status created event""" +class WebhookDeployKeyDeletedType(TypedDict): + """deploy_key deleted event""" - action: Literal["created"] - check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] - deployment: WebhookDeploymentStatusCreatedPropDeploymentType - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow: NotRequired[Union[WebhooksWorkflowType, None]] - workflow_run: NotRequired[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] - ] -class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - details_url: str - external_id: str - head_sha: str - html_url: str - id: int - name: str - node_id: str - started_at: datetime - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): - """Deployment - - The [deployment](https://docs.github.com/rest/deployments/deployments#list- - deployments). - """ - - created_at: str - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] - description: Union[str, None] - environment: str - id: int - node_id: str - original_environment: str - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None - ] - performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, - None, - ] - ] - production_environment: NotRequired[bool] - ref: str - repository_url: str - sha: str - statuses_url: str - task: str - transient_environment: NotRequired[bool] - updated_at: str - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[ - str, Any -] -"""WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 -""" - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( - TypedDict -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss - ions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusType(TypedDict): - """WebhookDeploymentStatusCreatedPropDeploymentStatus - - The [deployment status](https://docs.github.com/rest/deployments/statuses#list- - deployment-statuses). - """ - - created_at: str - creator: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, None - ] - deployment_url: str - description: str - environment: str - environment_url: NotRequired[str] - id: int - log_url: NotRequired[str] - node_id: str - performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, - None, - ] - ] - repository_url: str - state: str - target_url: str - updated_at: str - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType( - TypedDict -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[None] - head_repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[None] - pull_requests: list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookDeploymentStatusCreatedPropCheckRunType", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusType", - "WebhookDeploymentStatusCreatedPropDeploymentType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunType", - "WebhookDeploymentStatusCreatedType", -) +__all__ = ("WebhookDeployKeyDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0488.py b/githubkit/versions/v2022_11_28/types/group_0488.py index b6136c6ff..075eb7dfc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0488.py +++ b/githubkit/versions/v2022_11_28/types/group_0488.py @@ -9,29 +9,550 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0405 import WebhooksAnswerType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0407 import WebhooksWorkflowType -class WebhookDiscussionAnsweredType(TypedDict): - """discussion answered event""" +class WebhookDeploymentCreatedType(TypedDict): + """deployment created event""" - action: Literal["answered"] - answer: WebhooksAnswerType - discussion: DiscussionType + action: Literal["created"] + deployment: WebhookDeploymentCreatedPropDeploymentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionAnsweredType",) +class WebhookDeploymentCreatedPropDeploymentType(TypedDict): + """Deployment + + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type] + performed_via_github_app: NotRequired[ + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] + ] + production_environment: NotRequired[bool] + ref: str + repository_url: str + sha: str + statuses_url: str + task: str + transient_environment: NotRequired[bool] + updated_at: str + url: str + + +class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[str, Any] +"""WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 +""" + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[None] + head_repository: NotRequired[ + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[None] + pull_requests: list[ + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: NotRequired[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + ) + sha: str + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + ) + sha: str + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentCreatedPropDeploymentType", + "WebhookDeploymentCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentCreatedPropWorkflowRunType", + "WebhookDeploymentCreatedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0489.py b/githubkit/versions/v2022_11_28/types/group_0489.py index 8080b0853..91fca8112 100644 --- a/githubkit/versions/v2022_11_28/types/group_0489.py +++ b/githubkit/versions/v2022_11_28/types/group_0489.py @@ -9,61 +9,30 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0196 import DeploymentType +from .group_0327 import PullRequestType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookDiscussionCategoryChangedType(TypedDict): - """discussion category changed event""" +class WebhookDeploymentProtectionRuleRequestedType(TypedDict): + """deployment protection rule requested event""" - action: Literal["category_changed"] - changes: WebhookDiscussionCategoryChangedPropChangesType - discussion: DiscussionType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + action: Literal["requested"] + environment: NotRequired[str] + event: NotRequired[str] + deployment_callback_url: NotRequired[str] + deployment: NotRequired[DeploymentType] + pull_requests: NotRequired[list[PullRequestType]] + repository: NotRequired[RepositoryWebhooksType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): - """WebhookDiscussionCategoryChangedPropChanges""" - - category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType - - -class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" - - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType - - -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool - name: str - node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str + installation: NotRequired[SimpleInstallationType] + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", - "WebhookDiscussionCategoryChangedPropChangesType", - "WebhookDiscussionCategoryChangedType", -) +__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0490.py b/githubkit/versions/v2022_11_28/types/group_0490.py index 2fe6586a3..003a406d7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0490.py +++ b/githubkit/versions/v2022_11_28/types/group_0490.py @@ -9,27 +9,419 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0408 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0409 import WebhooksWorkflowJobRunType -class WebhookDiscussionClosedType(TypedDict): - """discussion closed event""" +class WebhookDeploymentReviewApprovedType(TypedDict): + """WebhookDeploymentReviewApproved""" - action: Literal["closed"] - discussion: DiscussionType + action: Literal["approved"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionClosedType",) +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" + + conclusion: NotRequired[None] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunType", + "WebhookDeploymentReviewApprovedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0491.py b/githubkit/versions/v2022_11_28/types/group_0491.py index 9644719d8..6b0bb1a32 100644 --- a/githubkit/versions/v2022_11_28/types/group_0491.py +++ b/githubkit/versions/v2022_11_28/types/group_0491.py @@ -9,29 +9,417 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType -from .group_0407 import WebhooksCommentType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0408 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0409 import WebhooksWorkflowJobRunType -class WebhookDiscussionCommentCreatedType(TypedDict): - """discussion_comment created event""" +class WebhookDeploymentReviewRejectedType(TypedDict): + """WebhookDeploymentReviewRejected""" - action: Literal["created"] - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["rejected"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionCommentCreatedType",) +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunType", + "WebhookDeploymentReviewRejectedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0492.py b/githubkit/versions/v2022_11_28/types/group_0492.py index cf9e0c54d..35db0b033 100644 --- a/githubkit/versions/v2022_11_28/types/group_0492.py +++ b/githubkit/versions/v2022_11_28/types/group_0492.py @@ -9,29 +9,453 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType -from .group_0407 import WebhooksCommentType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType -class WebhookDiscussionCommentDeletedType(TypedDict): - """discussion_comment deleted event""" +class WebhookDeploymentReviewRequestedType(TypedDict): + """WebhookDeploymentReviewRequested""" - action: Literal["deleted"] - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["requested"] enterprise: NotRequired[EnterpriseWebhooksType] + environment: str installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + requestor: Union[WebhooksUserType, None] + reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserType + since: str + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionCommentDeletedType",) +class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" + + conclusion: None + created_at: str + environment: str + html_url: str + id: int + name: Union[str, None] + status: str + updated_at: str + + +class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewRequestedPropReviewersItems""" + + reviewer: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] + ] + type: NotRequired[Literal["User", "Team"]] + + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewRequestedPropReviewersItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunType", + "WebhookDeploymentReviewRequestedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0493.py b/githubkit/versions/v2022_11_28/types/group_0493.py index ce142ee73..0f4e2d82a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0493.py +++ b/githubkit/versions/v2022_11_28/types/group_0493.py @@ -9,46 +9,765 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType -from .group_0407 import WebhooksCommentType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0407 import WebhooksWorkflowType -class WebhookDiscussionCommentEditedType(TypedDict): - """discussion_comment edited event""" +class WebhookDeploymentStatusCreatedType(TypedDict): + """deployment_status created event""" - action: Literal["edited"] - changes: WebhookDiscussionCommentEditedPropChangesType - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["created"] + check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] + deployment: WebhookDeploymentStatusCreatedPropDeploymentType + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType + workflow: NotRequired[Union[WebhooksWorkflowType, None]] + workflow_run: NotRequired[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] + ] -class WebhookDiscussionCommentEditedPropChangesType(TypedDict): - """WebhookDiscussionCommentEditedPropChanges""" +class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): + """WebhookDeploymentStatusCreatedPropCheckRun""" - body: WebhookDiscussionCommentEditedPropChangesPropBodyType + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] + details_url: str + external_id: str + head_sha: str + html_url: str + id: int + name: str + node_id: str + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] + url: str -class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionCommentEditedPropChangesPropBody""" +class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): + """Deployment - from_: str + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None + ] + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, + None, + ] + ] + production_environment: NotRequired[bool] + ref: str + repository_url: str + sha: str + statuses_url: str + task: str + transient_environment: NotRequired[bool] + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[ + str, Any +] +"""WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 +""" + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss + ions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusType(TypedDict): + """WebhookDeploymentStatusCreatedPropDeploymentStatus + + The [deployment status](https://docs.github.com/rest/deployments/statuses#list- + deployment-statuses). + """ + + created_at: str + creator: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, None + ] + deployment_url: str + description: str + environment: str + environment_url: NotRequired[str] + id: int + log_url: NotRequired[str] + node_id: str + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, + None, + ] + ] + repository_url: str + state: str + target_url: str + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[None] + head_repository: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[None] + pull_requests: list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str __all__ = ( - "WebhookDiscussionCommentEditedPropChangesPropBodyType", - "WebhookDiscussionCommentEditedPropChangesType", - "WebhookDiscussionCommentEditedType", + "WebhookDeploymentStatusCreatedPropCheckRunType", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusType", + "WebhookDeploymentStatusCreatedPropDeploymentType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunType", + "WebhookDeploymentStatusCreatedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0494.py b/githubkit/versions/v2022_11_28/types/group_0494.py index 7d2c57f08..d83bb4680 100644 --- a/githubkit/versions/v2022_11_28/types/group_0494.py +++ b/githubkit/versions/v2022_11_28/types/group_0494.py @@ -12,18 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0411 import WebhooksAnswerType +from .group_0412 import DiscussionType -class WebhookDiscussionCreatedType(TypedDict): - """discussion created event""" +class WebhookDiscussionAnsweredType(TypedDict): + """discussion answered event""" - action: Literal["created"] + action: Literal["answered"] + answer: WebhooksAnswerType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionCreatedType",) +__all__ = ("WebhookDiscussionAnsweredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0495.py b/githubkit/versions/v2022_11_28/types/group_0495.py index 905ac01bb..cd4f23a03 100644 --- a/githubkit/versions/v2022_11_28/types/group_0495.py +++ b/githubkit/versions/v2022_11_28/types/group_0495.py @@ -9,21 +9,23 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType -class WebhookDiscussionDeletedType(TypedDict): - """discussion deleted event""" +class WebhookDiscussionCategoryChangedType(TypedDict): + """discussion category changed event""" - action: Literal["deleted"] + action: Literal["category_changed"] + changes: WebhookDiscussionCategoryChangedPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,36 @@ class WebhookDiscussionDeletedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionDeletedType",) +class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): + """WebhookDiscussionCategoryChangedPropChanges""" + + category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str + + +__all__ = ( + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", + "WebhookDiscussionCategoryChangedPropChangesType", + "WebhookDiscussionCategoryChangedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0496.py b/githubkit/versions/v2022_11_28/types/group_0496.py index 5935d2d1f..9dc5af78f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0496.py +++ b/githubkit/versions/v2022_11_28/types/group_0496.py @@ -12,19 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType -class WebhookDiscussionEditedType(TypedDict): - """discussion edited event""" +class WebhookDiscussionClosedType(TypedDict): + """discussion closed event""" - action: Literal["edited"] - changes: NotRequired[WebhookDiscussionEditedPropChangesType] + action: Literal["closed"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,28 +32,4 @@ class WebhookDiscussionEditedType(TypedDict): sender: SimpleUserType -class WebhookDiscussionEditedPropChangesType(TypedDict): - """WebhookDiscussionEditedPropChanges""" - - body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] - title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] - - -class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str - - -class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str - - -__all__ = ( - "WebhookDiscussionEditedPropChangesPropBodyType", - "WebhookDiscussionEditedPropChangesPropTitleType", - "WebhookDiscussionEditedPropChangesType", - "WebhookDiscussionEditedType", -) +__all__ = ("WebhookDiscussionClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0497.py b/githubkit/versions/v2022_11_28/types/group_0497.py index 9ed08c894..834735e90 100644 --- a/githubkit/versions/v2022_11_28/types/group_0497.py +++ b/githubkit/versions/v2022_11_28/types/group_0497.py @@ -12,26 +12,26 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType -from .group_0408 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType +from .group_0413 import WebhooksCommentType -class WebhookDiscussionLabeledType(TypedDict): - """discussion labeled event""" +class WebhookDiscussionCommentCreatedType(TypedDict): + """discussion_comment created event""" - action: Literal["labeled"] + action: Literal["created"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionLabeledType",) +__all__ = ("WebhookDiscussionCommentCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0498.py b/githubkit/versions/v2022_11_28/types/group_0498.py index 65b1d2a25..822c65851 100644 --- a/githubkit/versions/v2022_11_28/types/group_0498.py +++ b/githubkit/versions/v2022_11_28/types/group_0498.py @@ -12,18 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType +from .group_0413 import WebhooksCommentType -class WebhookDiscussionLockedType(TypedDict): - """discussion locked event""" +class WebhookDiscussionCommentDeletedType(TypedDict): + """discussion_comment deleted event""" - action: Literal["locked"] + action: Literal["deleted"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionLockedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionLockedType",) +__all__ = ("WebhookDiscussionCommentDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0499.py b/githubkit/versions/v2022_11_28/types/group_0499.py index 3e30ec4ed..b8494ae9f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0499.py +++ b/githubkit/versions/v2022_11_28/types/group_0499.py @@ -12,18 +12,21 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType +from .group_0413 import WebhooksCommentType -class WebhookDiscussionPinnedType(TypedDict): - """discussion pinned event""" +class WebhookDiscussionCommentEditedType(TypedDict): + """discussion_comment edited event""" - action: Literal["pinned"] + action: Literal["edited"] + changes: WebhookDiscussionCommentEditedPropChangesType + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +35,20 @@ class WebhookDiscussionPinnedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionPinnedType",) +class WebhookDiscussionCommentEditedPropChangesType(TypedDict): + """WebhookDiscussionCommentEditedPropChanges""" + + body: WebhookDiscussionCommentEditedPropChangesPropBodyType + + +class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str + + +__all__ = ( + "WebhookDiscussionCommentEditedPropChangesPropBodyType", + "WebhookDiscussionCommentEditedPropChangesType", + "WebhookDiscussionCommentEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0500.py b/githubkit/versions/v2022_11_28/types/group_0500.py index c93fafab0..132c2be8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0500.py +++ b/githubkit/versions/v2022_11_28/types/group_0500.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType -class WebhookDiscussionReopenedType(TypedDict): - """discussion reopened event""" +class WebhookDiscussionCreatedType(TypedDict): + """discussion created event""" - action: Literal["reopened"] + action: Literal["created"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionReopenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionReopenedType",) +__all__ = ("WebhookDiscussionCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0501.py b/githubkit/versions/v2022_11_28/types/group_0501.py index 8c81f12d2..9cbdd3180 100644 --- a/githubkit/versions/v2022_11_28/types/group_0501.py +++ b/githubkit/versions/v2022_11_28/types/group_0501.py @@ -12,20 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType -from .group_0502 import WebhookDiscussionTransferredPropChangesType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType -class WebhookDiscussionTransferredType(TypedDict): - """discussion transferred event""" +class WebhookDiscussionDeletedType(TypedDict): + """discussion deleted event""" - action: Literal["transferred"] - changes: WebhookDiscussionTransferredPropChangesType + action: Literal["deleted"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +32,4 @@ class WebhookDiscussionTransferredType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionTransferredType",) +__all__ = ("WebhookDiscussionDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0502.py b/githubkit/versions/v2022_11_28/types/group_0502.py index 5e59f6818..ab1c19b31 100644 --- a/githubkit/versions/v2022_11_28/types/group_0502.py +++ b/githubkit/versions/v2022_11_28/types/group_0502.py @@ -9,17 +9,52 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType -class WebhookDiscussionTransferredPropChangesType(TypedDict): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionEditedType(TypedDict): + """discussion edited event""" - new_discussion: DiscussionType - new_repository: RepositoryWebhooksType + action: Literal["edited"] + changes: NotRequired[WebhookDiscussionEditedPropChangesType] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookDiscussionTransferredPropChangesType",) +class WebhookDiscussionEditedPropChangesType(TypedDict): + """WebhookDiscussionEditedPropChanges""" + + body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] + title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] + + +class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str + + +class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str + + +__all__ = ( + "WebhookDiscussionEditedPropChangesPropBodyType", + "WebhookDiscussionEditedPropChangesPropTitleType", + "WebhookDiscussionEditedPropChangesType", + "WebhookDiscussionEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0503.py b/githubkit/versions/v2022_11_28/types/group_0503.py index 565243b66..e55d16308 100644 --- a/githubkit/versions/v2022_11_28/types/group_0503.py +++ b/githubkit/versions/v2022_11_28/types/group_0503.py @@ -12,22 +12,26 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0405 import WebhooksAnswerType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType +from .group_0414 import WebhooksLabelType -class WebhookDiscussionUnansweredType(TypedDict): - """discussion unanswered event""" +class WebhookDiscussionLabeledType(TypedDict): + """discussion labeled event""" - action: Literal["unanswered"] + action: Literal["labeled"] discussion: DiscussionType - old_answer: WebhooksAnswerType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookDiscussionUnansweredType",) +__all__ = ("WebhookDiscussionLabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0504.py b/githubkit/versions/v2022_11_28/types/group_0504.py index 2a74a5c9d..afbbdc1d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0504.py +++ b/githubkit/versions/v2022_11_28/types/group_0504.py @@ -12,26 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType -from .group_0408 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType -class WebhookDiscussionUnlabeledType(TypedDict): - """discussion unlabeled event""" +class WebhookDiscussionLockedType(TypedDict): + """discussion locked event""" - action: Literal["unlabeled"] + action: Literal["locked"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionUnlabeledType",) +__all__ = ("WebhookDiscussionLockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0505.py b/githubkit/versions/v2022_11_28/types/group_0505.py index 8e54ee5ca..977540e24 100644 --- a/githubkit/versions/v2022_11_28/types/group_0505.py +++ b/githubkit/versions/v2022_11_28/types/group_0505.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType -class WebhookDiscussionUnlockedType(TypedDict): - """discussion unlocked event""" +class WebhookDiscussionPinnedType(TypedDict): + """discussion pinned event""" - action: Literal["unlocked"] + action: Literal["pinned"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionUnlockedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionUnlockedType",) +__all__ = ("WebhookDiscussionPinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0506.py b/githubkit/versions/v2022_11_28/types/group_0506.py index 97789fd59..11b98694e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0506.py +++ b/githubkit/versions/v2022_11_28/types/group_0506.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0406 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType -class WebhookDiscussionUnpinnedType(TypedDict): - """discussion unpinned event""" +class WebhookDiscussionReopenedType(TypedDict): + """discussion reopened event""" - action: Literal["unpinned"] + action: Literal["reopened"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionUnpinnedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionUnpinnedType",) +__all__ = ("WebhookDiscussionReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0507.py b/githubkit/versions/v2022_11_28/types/group_0507.py index c844f333d..f82018066 100644 --- a/githubkit/versions/v2022_11_28/types/group_0507.py +++ b/githubkit/versions/v2022_11_28/types/group_0507.py @@ -9,28 +9,29 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0508 import WebhookForkPropForkeeType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType +from .group_0508 import WebhookDiscussionTransferredPropChangesType -class WebhookForkType(TypedDict): - """fork event - - A user forks a repository. - """ +class WebhookDiscussionTransferredType(TypedDict): + """discussion transferred event""" + action: Literal["transferred"] + changes: WebhookDiscussionTransferredPropChangesType + discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] - forkee: WebhookForkPropForkeeType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookForkType",) +__all__ = ("WebhookDiscussionTransferredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0508.py b/githubkit/versions/v2022_11_28/types/group_0508.py index 7d96eaee8..2f3dfd1a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0508.py +++ b/githubkit/versions/v2022_11_28/types/group_0508.py @@ -9,151 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0510 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType -class WebhookForkPropForkeeType(TypedDict): - """WebhookForkPropForkee +class WebhookDiscussionTransferredPropChangesType(TypedDict): + """WebhookDiscussionTransferredPropChanges""" - The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- - repository) resource. - """ + new_discussion: DiscussionType + new_repository: RepositoryWebhooksType - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: datetime - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[Union[str, None], None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: Literal[True] - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[Union[str, None], None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[None, None] - languages_url: str - license_: Union[WebhookForkPropForkeeMergedLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[None, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: WebhookForkPropForkeeMergedOwnerType - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: datetime - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - -class WebhookForkPropForkeeMergedLicenseType(TypedDict): - """WebhookForkPropForkeeMergedLicense""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeMergedOwnerType(TypedDict): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeMergedLicenseType", - "WebhookForkPropForkeeMergedOwnerType", - "WebhookForkPropForkeeType", -) +__all__ = ("WebhookDiscussionTransferredPropChangesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0509.py b/githubkit/versions/v2022_11_28/types/group_0509.py index 56e0ca56b..63a8fad05 100644 --- a/githubkit/versions/v2022_11_28/types/group_0509.py +++ b/githubkit/versions/v2022_11_28/types/group_0509.py @@ -9,150 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0510 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0003 import SimpleUserType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0411 import WebhooksAnswerType +from .group_0412 import DiscussionType -class WebhookForkPropForkeeAllof0Type(TypedDict): - """Repository +class WebhookDiscussionUnansweredType(TypedDict): + """discussion unanswered event""" - A git repository - """ + action: Literal["unanswered"] + discussion: DiscussionType + old_answer: WebhooksAnswerType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - -class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeAllof0PropLicenseType", - "WebhookForkPropForkeeAllof0PropOwnerType", - "WebhookForkPropForkeeAllof0Type", -) +__all__ = ("WebhookDiscussionUnansweredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0510.py b/githubkit/versions/v2022_11_28/types/group_0510.py index a6cb9b92f..027f05356 100644 --- a/githubkit/versions/v2022_11_28/types/group_0510.py +++ b/githubkit/versions/v2022_11_28/types/group_0510.py @@ -9,17 +9,29 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType +from .group_0414 import WebhooksLabelType -class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): - """WebhookForkPropForkeeAllof0PropPermissions""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] +class WebhookDiscussionUnlabeledType(TypedDict): + """discussion unlabeled event""" + action: Literal["unlabeled"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) + +__all__ = ("WebhookDiscussionUnlabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0511.py b/githubkit/versions/v2022_11_28/types/group_0511.py index 624daaf0c..ff7fe1276 100644 --- a/githubkit/versions/v2022_11_28/types/group_0511.py +++ b/githubkit/versions/v2022_11_28/types/group_0511.py @@ -9,122 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType -class WebhookForkPropForkeeAllof1Type(TypedDict): - """WebhookForkPropForkeeAllof1""" - allow_forking: NotRequired[bool] - archive_url: NotRequired[str] - archived: NotRequired[bool] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - clone_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - created_at: NotRequired[str] - default_branch: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - disabled: NotRequired[bool] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[Literal[True]] - forks: NotRequired[int] - forks_count: NotRequired[int] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - has_downloads: NotRequired[bool] - has_issues: NotRequired[bool] - has_pages: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - homepage: NotRequired[Union[str, None]] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - is_template: NotRequired[bool] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - language: NotRequired[None] - languages_url: NotRequired[str] - license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - mirror_url: NotRequired[None] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - open_issues: NotRequired[int] - open_issues_count: NotRequired[int] - owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] - private: NotRequired[bool] - public: NotRequired[bool] - pulls_url: NotRequired[str] - pushed_at: NotRequired[str] - releases_url: NotRequired[str] - size: NotRequired[int] - ssh_url: NotRequired[str] - stargazers_count: NotRequired[int] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - svn_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - topics: NotRequired[list[Union[str, None]]] - trees_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - visibility: NotRequired[str] - watchers: NotRequired[int] - watchers_count: NotRequired[int] +class WebhookDiscussionUnlockedType(TypedDict): + """discussion unlocked event""" + action: Literal["unlocked"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): - """WebhookForkPropForkeeAllof1PropLicense""" - -class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): - """WebhookForkPropForkeeAllof1PropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeAllof1PropLicenseType", - "WebhookForkPropForkeeAllof1PropOwnerType", - "WebhookForkPropForkeeAllof1Type", -) +__all__ = ("WebhookDiscussionUnlockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0512.py b/githubkit/versions/v2022_11_28/types/group_0512.py index 17e2579f9..6a289a9b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0512.py +++ b/githubkit/versions/v2022_11_28/types/group_0512.py @@ -10,16 +10,26 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0412 import DiscussionType -class WebhookGithubAppAuthorizationRevokedType(TypedDict): - """github_app_authorization revoked event""" +class WebhookDiscussionUnpinnedType(TypedDict): + """discussion unpinned event""" - action: Literal["revoked"] + action: Literal["unpinned"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookGithubAppAuthorizationRevokedType",) +__all__ = ("WebhookDiscussionUnpinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0513.py b/githubkit/versions/v2022_11_28/types/group_0513.py index ab573b81d..29eb3241f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0513.py +++ b/githubkit/versions/v2022_11_28/types/group_0513.py @@ -9,39 +9,28 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0514 import WebhookForkPropForkeeType -class WebhookGollumType(TypedDict): - """gollum event""" +class WebhookForkType(TypedDict): + """fork event + + A user forks a repository. + """ enterprise: NotRequired[EnterpriseWebhooksType] + forkee: WebhookForkPropForkeeType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pages: list[WebhookGollumPropPagesItemsType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookGollumPropPagesItemsType(TypedDict): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] - html_url: str - page_name: str - sha: str - summary: Union[str, None] - title: str - - -__all__ = ( - "WebhookGollumPropPagesItemsType", - "WebhookGollumType", -) +__all__ = ("WebhookForkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0514.py b/githubkit/versions/v2022_11_28/types/group_0514.py index 9b6f99a5c..158b3c530 100644 --- a/githubkit/versions/v2022_11_28/types/group_0514.py +++ b/githubkit/versions/v2022_11_28/types/group_0514.py @@ -9,29 +9,151 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0393 import EnterpriseWebhooksType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType -from .group_0409 import WebhooksRepositoriesItemsType +from .group_0516 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookInstallationCreatedType(TypedDict): - """installation created event""" +class WebhookForkPropForkeeType(TypedDict): + """WebhookForkPropForkee - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[Union[WebhooksUserType, None]] - sender: SimpleUserType + The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- + repository) resource. + """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: datetime + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[Union[str, None], None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: Literal[True] + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[Union[str, None], None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[None, None] + languages_url: str + license_: Union[WebhookForkPropForkeeMergedLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[None, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: WebhookForkPropForkeeMergedOwnerType + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: datetime + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -__all__ = ("WebhookInstallationCreatedType",) + +class WebhookForkPropForkeeMergedLicenseType(TypedDict): + """WebhookForkPropForkeeMergedLicense""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookForkPropForkeeMergedOwnerType(TypedDict): + """WebhookForkPropForkeeMergedOwner""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeMergedLicenseType", + "WebhookForkPropForkeeMergedOwnerType", + "WebhookForkPropForkeeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0515.py b/githubkit/versions/v2022_11_28/types/group_0515.py index 0137476ac..bc52ebe58 100644 --- a/githubkit/versions/v2022_11_28/types/group_0515.py +++ b/githubkit/versions/v2022_11_28/types/group_0515.py @@ -9,28 +9,150 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0393 import EnterpriseWebhooksType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0409 import WebhooksRepositoriesItemsType +from .group_0516 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookInstallationDeletedType(TypedDict): - """installation deleted event""" +class WebhookForkPropForkeeAllof0Type(TypedDict): + """Repository - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserType + A git repository + """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -__all__ = ("WebhookInstallationDeletedType",) + +class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeAllof0PropLicenseType", + "WebhookForkPropForkeeAllof0PropOwnerType", + "WebhookForkPropForkeeAllof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0516.py b/githubkit/versions/v2022_11_28/types/group_0516.py index de4669bca..a6cb9b92f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0516.py +++ b/githubkit/versions/v2022_11_28/types/group_0516.py @@ -9,28 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0393 import EnterpriseWebhooksType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0409 import WebhooksRepositoriesItemsType +class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): + """WebhookForkPropForkeeAllof0PropPermissions""" -class WebhookInstallationNewPermissionsAcceptedType(TypedDict): - """installation new_permissions_accepted event""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - action: Literal["new_permissions_accepted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserType - -__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) +__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0517.py b/githubkit/versions/v2022_11_28/types/group_0517.py index ad3a18a19..624daaf0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0517.py +++ b/githubkit/versions/v2022_11_28/types/group_0517.py @@ -12,43 +12,119 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0393 import EnterpriseWebhooksType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType -from .group_0410 import WebhooksRepositoriesAddedItemsType - - -class WebhookInstallationRepositoriesAddedType(TypedDict): - """installation_repositories added event""" - - action: Literal["added"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: list[WebhooksRepositoriesAddedItemsType] - repositories_removed: list[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType - ] - repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] - sender: SimpleUserType - - -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" +class WebhookForkPropForkeeAllof1Type(TypedDict): + """WebhookForkPropForkeeAllof1""" + + allow_forking: NotRequired[bool] + archive_url: NotRequired[str] + archived: NotRequired[bool] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + clone_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + created_at: NotRequired[str] + default_branch: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + disabled: NotRequired[bool] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[Literal[True]] + forks: NotRequired[int] + forks_count: NotRequired[int] + forks_url: NotRequired[str] full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + has_downloads: NotRequired[bool] + has_issues: NotRequired[bool] + has_pages: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + homepage: NotRequired[Union[str, None]] + hooks_url: NotRequired[str] + html_url: NotRequired[str] id: NotRequired[int] + is_template: NotRequired[bool] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + language: NotRequired[None] + languages_url: NotRequired[str] + license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + mirror_url: NotRequired[None] name: NotRequired[str] node_id: NotRequired[str] + notifications_url: NotRequired[str] + open_issues: NotRequired[int] + open_issues_count: NotRequired[int] + owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] private: NotRequired[bool] + public: NotRequired[bool] + pulls_url: NotRequired[str] + pushed_at: NotRequired[str] + releases_url: NotRequired[str] + size: NotRequired[int] + ssh_url: NotRequired[str] + stargazers_count: NotRequired[int] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + svn_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + topics: NotRequired[list[Union[str, None]]] + trees_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + visibility: NotRequired[str] + watchers: NotRequired[int] + watchers_count: NotRequired[int] + + +class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): + """WebhookForkPropForkeeAllof1PropLicense""" + + +class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] __all__ = ( - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesAddedType", + "WebhookForkPropForkeeAllof1PropLicenseType", + "WebhookForkPropForkeeAllof1PropOwnerType", + "WebhookForkPropForkeeAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0518.py b/githubkit/versions/v2022_11_28/types/group_0518.py index 627f36189..52c10d4b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0518.py +++ b/githubkit/versions/v2022_11_28/types/group_0518.py @@ -9,46 +9,17 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0393 import EnterpriseWebhooksType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType -from .group_0410 import WebhooksRepositoriesAddedItemsType - - -class WebhookInstallationRepositoriesRemovedType(TypedDict): - """installation_repositories removed event""" - - action: Literal["removed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: list[WebhooksRepositoriesAddedItemsType] - repositories_removed: list[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType - ] - repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] - sender: SimpleUserType +from typing import Literal +from typing_extensions import TypedDict + +from .group_0003 import SimpleUserType -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +class WebhookGithubAppAuthorizationRevokedType(TypedDict): + """github_app_authorization revoked event""" - full_name: str - id: int - name: str - node_id: str - private: bool + action: Literal["revoked"] + sender: SimpleUserType -__all__ = ( - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesRemovedType", -) +__all__ = ("WebhookGithubAppAuthorizationRevokedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0519.py b/githubkit/versions/v2022_11_28/types/group_0519.py index 61374436d..abc34f93a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0519.py +++ b/githubkit/versions/v2022_11_28/types/group_0519.py @@ -9,28 +9,39 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0393 import EnterpriseWebhooksType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0409 import WebhooksRepositoriesItemsType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookInstallationSuspendType(TypedDict): - """installation suspend event""" +class WebhookGollumType(TypedDict): + """gollum event""" - action: Literal["suspend"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] + pages: list[WebhookGollumPropPagesItemsType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookInstallationSuspendType",) +class WebhookGollumPropPagesItemsType(TypedDict): + """WebhookGollumPropPagesItems""" + + action: Literal["created", "edited"] + html_url: str + page_name: str + sha: str + summary: Union[str, None] + title: str + + +__all__ = ( + "WebhookGollumPropPagesItemsType", + "WebhookGollumType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0520.py b/githubkit/versions/v2022_11_28/types/group_0520.py index aa5eacdb7..6c5b249cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0520.py +++ b/githubkit/versions/v2022_11_28/types/group_0520.py @@ -12,92 +12,26 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0399 import EnterpriseWebhooksType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType +from .group_0415 import WebhooksRepositoriesItemsType -class WebhookInstallationTargetRenamedType(TypedDict): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationCreatedType(TypedDict): + """installation created event""" - account: WebhookInstallationTargetRenamedPropAccountType - action: Literal["renamed"] - changes: WebhookInstallationTargetRenamedPropChangesType + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - target_type: str + requester: NotRequired[Union[WebhooksUserType, None]] + sender: SimpleUserType -class WebhookInstallationTargetRenamedPropAccountType(TypedDict): - """WebhookInstallationTargetRenamedPropAccount""" - - archived_at: NotRequired[Union[str, None]] - avatar_url: str - created_at: NotRequired[str] - description: NotRequired[None] - events_url: NotRequired[str] - followers: NotRequired[int] - followers_url: NotRequired[str] - following: NotRequired[int] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - has_organization_projects: NotRequired[bool] - has_repository_projects: NotRequired[bool] - hooks_url: NotRequired[str] - html_url: str - id: int - is_verified: NotRequired[bool] - issues_url: NotRequired[str] - login: NotRequired[str] - members_url: NotRequired[str] - name: NotRequired[str] - node_id: str - organizations_url: NotRequired[str] - public_gists: NotRequired[int] - public_members_url: NotRequired[str] - public_repos: NotRequired[int] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - slug: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - website_url: NotRequired[None] - user_view_type: NotRequired[str] - - -class WebhookInstallationTargetRenamedPropChangesType(TypedDict): - """WebhookInstallationTargetRenamedPropChanges""" - - login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] - slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] - - -class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str - - -class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str - - -__all__ = ( - "WebhookInstallationTargetRenamedPropAccountType", - "WebhookInstallationTargetRenamedPropChangesPropLoginType", - "WebhookInstallationTargetRenamedPropChangesPropSlugType", - "WebhookInstallationTargetRenamedPropChangesType", - "WebhookInstallationTargetRenamedType", -) +__all__ = ("WebhookInstallationCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0521.py b/githubkit/versions/v2022_11_28/types/group_0521.py index 7d0da70c9..4e8a10c8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0521.py +++ b/githubkit/versions/v2022_11_28/types/group_0521.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0017 import InstallationType -from .group_0393 import EnterpriseWebhooksType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0409 import WebhooksRepositoriesItemsType +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0399 import EnterpriseWebhooksType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0415 import WebhooksRepositoriesItemsType -class WebhookInstallationUnsuspendType(TypedDict): - """installation unsuspend event""" +class WebhookInstallationDeletedType(TypedDict): + """installation deleted event""" - action: Literal["unsuspend"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,4 +33,4 @@ class WebhookInstallationUnsuspendType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookInstallationUnsuspendType",) +__all__ = ("WebhookInstallationDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0522.py b/githubkit/versions/v2022_11_28/types/group_0522.py index 15446498e..053367360 100644 --- a/githubkit/versions/v2022_11_28/types/group_0522.py +++ b/githubkit/versions/v2022_11_28/types/group_0522.py @@ -12,26 +12,25 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0523 import WebhookIssueCommentCreatedPropCommentType -from .group_0524 import WebhookIssueCommentCreatedPropIssueType +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0399 import EnterpriseWebhooksType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0415 import WebhooksRepositoriesItemsType -class WebhookIssueCommentCreatedType(TypedDict): - """issue_comment created event""" +class WebhookInstallationNewPermissionsAcceptedType(TypedDict): + """installation new_permissions_accepted event""" - action: Literal["created"] - comment: WebhookIssueCommentCreatedPropCommentType + action: Literal["new_permissions_accepted"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentCreatedPropIssueType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] sender: SimpleUserType -__all__ = ("WebhookIssueCommentCreatedType",) +__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0523.py b/githubkit/versions/v2022_11_28/types/group_0523.py index ab5009b57..4f4f3a6dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0523.py +++ b/githubkit/versions/v2022_11_28/types/group_0523.py @@ -9,87 +9,46 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0008 import IntegrationType - - -class WebhookIssueCommentCreatedPropCommentType(TypedDict): - """issue comment - - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0399 import EnterpriseWebhooksType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType +from .group_0416 import WebhooksRepositoriesAddedItemsType + + +class WebhookInstallationRepositoriesAddedType(TypedDict): + """installation_repositories added event""" + + action: Literal["added"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories_added: list[WebhooksRepositoriesAddedItemsType] + repositories_removed: list[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[None, IntegrationType, None] - reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] - - -class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + repository: NotRequired[RepositoryWebhooksType] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] + sender: SimpleUserType -class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): - """User""" +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + full_name: NotRequired[str] + id: NotRequired[int] name: NotRequired[str] node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + private: NotRequired[bool] __all__ = ( - "WebhookIssueCommentCreatedPropCommentPropReactionsType", - "WebhookIssueCommentCreatedPropCommentPropUserType", - "WebhookIssueCommentCreatedPropCommentType", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesAddedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0524.py b/githubkit/versions/v2022_11_28/types/group_0524.py index a3a53620c..1de3aacd9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0524.py +++ b/githubkit/versions/v2022_11_28/types/group_0524.py @@ -9,155 +9,46 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0526 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) -from .group_0531 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0533 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType -from .group_0534 import ( - WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, -) - - -class WebhookIssueCommentCreatedPropIssueType(TypedDict): - """WebhookIssueCommentCreatedPropIssue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0399 import EnterpriseWebhooksType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType +from .group_0416 import WebhooksRepositoriesAddedItemsType + + +class WebhookInstallationRepositoriesRemovedType(TypedDict): + """installation_repositories removed event""" + + action: Literal["removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories_added: list[WebhooksRepositoriesAddedItemsType] + repositories_removed: list[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssueCommentCreatedPropIssueMergedUserType + repository: NotRequired[RepositoryWebhooksType] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] + sender: SimpleUserType -class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + full_name: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + name: str + node_id: str + private: bool __all__ = ( - "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", - "WebhookIssueCommentCreatedPropIssueMergedReactionsType", - "WebhookIssueCommentCreatedPropIssueMergedUserType", - "WebhookIssueCommentCreatedPropIssueType", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesRemovedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0525.py b/githubkit/versions/v2022_11_28/types/group_0525.py index d5982ff8f..673955616 100644 --- a/githubkit/versions/v2022_11_28/types/group_0525.py +++ b/githubkit/versions/v2022_11_28/types/group_0525.py @@ -9,160 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0526 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) -from .group_0528 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType -from .group_0530 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0531 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, -) +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0399 import EnterpriseWebhooksType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0415 import WebhooksRepositoriesItemsType -class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookInstallationSuspendType(TypedDict): + """installation suspend event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["suspend"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None - ] - ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] - -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", - "WebhookIssueCommentCreatedPropIssueAllof0Type", -) +__all__ = ("WebhookInstallationSuspendType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0526.py b/githubkit/versions/v2022_11_28/types/group_0526.py index 088b44492..fdd87d74f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0526.py +++ b/githubkit/versions/v2022_11_28/types/group_0526.py @@ -9,62 +9,95 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] +class WebhookInstallationTargetRenamedType(TypedDict): + """WebhookInstallationTargetRenamed""" + + account: WebhookInstallationTargetRenamedPropAccountType + action: Literal["renamed"] + changes: WebhookInstallationTargetRenamedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: SimpleInstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] + target_type: str + + +class WebhookInstallationTargetRenamedPropAccountType(TypedDict): + """WebhookInstallationTargetRenamedPropAccount""" + + archived_at: NotRequired[Union[str, None]] + avatar_url: str + created_at: NotRequired[str] + description: NotRequired[None] events_url: NotRequired[str] + followers: NotRequired[int] followers_url: NotRequired[str] + following: NotRequired[int] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] - html_url: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + hooks_url: NotRequired[str] + html_url: str id: int - login: str + is_verified: NotRequired[bool] + issues_url: NotRequired[str] + login: NotRequired[str] + members_url: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] + node_id: str organizations_url: NotRequired[str] + public_gists: NotRequired[int] + public_members_url: NotRequired[str] + public_repos: NotRequired[int] received_events_url: NotRequired[str] repos_url: NotRequired[str] site_admin: NotRequired[bool] + slug: NotRequired[str] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] + updated_at: NotRequired[str] url: NotRequired[str] + website_url: NotRequired[None] user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookInstallationTargetRenamedPropChangesType(TypedDict): + """WebhookInstallationTargetRenamedPropChanges""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str + login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] + slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" +class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] + from_: str + + +class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", + "WebhookInstallationTargetRenamedPropAccountType", + "WebhookInstallationTargetRenamedPropChangesPropLoginType", + "WebhookInstallationTargetRenamedPropChangesPropSlugType", + "WebhookInstallationTargetRenamedPropChangesType", + "WebhookInstallationTargetRenamedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0527.py b/githubkit/versions/v2022_11_28/types/group_0527.py index 2a39d32cf..795bebc7e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0527.py +++ b/githubkit/versions/v2022_11_28/types/group_0527.py @@ -9,35 +9,28 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0399 import EnterpriseWebhooksType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0415 import WebhooksRepositoriesItemsType -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) + +class WebhookInstallationUnsuspendType(TypedDict): + """installation unsuspend event""" + + action: Literal["unsuspend"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserType + + +__all__ = ("WebhookInstallationUnsuspendType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0528.py b/githubkit/versions/v2022_11_28/types/group_0528.py index 6c2c1bb80..52e362986 100644 --- a/githubkit/versions/v2022_11_28/types/group_0528.py +++ b/githubkit/versions/v2022_11_28/types/group_0528.py @@ -9,39 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0527 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) - - -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0529 import WebhookIssueCommentCreatedPropCommentType +from .group_0530 import WebhookIssueCommentCreatedPropIssueType + + +class WebhookIssueCommentCreatedType(TypedDict): + """issue_comment created event""" + + action: Literal["created"] + comment: WebhookIssueCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentCreatedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssueCommentCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0529.py b/githubkit/versions/v2022_11_28/types/group_0529.py index b261a91af..70fa2faff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0529.py +++ b/githubkit/versions/v2022_11_28/types/group_0529.py @@ -9,13 +9,59 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0010 import IntegrationType -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): + +class WebhookIssueCommentCreatedPropCommentType(TypedDict): + """issue comment + + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + created_at: datetime + html_url: str + id: int + issue_url: str + node_id: str + performed_via_github_app: Union[None, IntegrationType, None] + reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] + + +class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -42,53 +88,8 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookIssueCommentCreatedPropCommentPropReactionsType", + "WebhookIssueCommentCreatedPropCommentPropUserType", + "WebhookIssueCommentCreatedPropCommentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0530.py b/githubkit/versions/v2022_11_28/types/group_0530.py index f4f5d1c45..fd3483b78 100644 --- a/githubkit/versions/v2022_11_28/types/group_0530.py +++ b/githubkit/versions/v2022_11_28/types/group_0530.py @@ -10,41 +10,154 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0529 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0532 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) +from .group_0537 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, +) +from .group_0539 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType +from .group_0540 import ( + WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentCreatedPropIssueType(TypedDict): + """WebhookIssueCommentCreatedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssueCommentCreatedPropIssueMergedUserType + + +class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) + +class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedUser""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", + "WebhookIssueCommentCreatedPropIssueMergedReactionsType", + "WebhookIssueCommentCreatedPropIssueMergedUserType", + "WebhookIssueCommentCreatedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0531.py b/githubkit/versions/v2022_11_28/types/group_0531.py index ef1c4a5c5..93a0f5422 100644 --- a/githubkit/versions/v2022_11_28/types/group_0531.py +++ b/githubkit/versions/v2022_11_28/types/group_0531.py @@ -9,15 +9,160 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0532 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) +from .group_0534 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType +from .group_0536 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0537 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, +) -class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - total: int - completed: int - percent_completed: int +class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): + """Issue + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType",) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] + + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0532.py b/githubkit/versions/v2022_11_28/types/group_0532.py index 7b1858f2a..088b44492 100644 --- a/githubkit/versions/v2022_11_28/types/group_0532.py +++ b/githubkit/versions/v2022_11_28/types/group_0532.py @@ -9,53 +9,12 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - list[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,11 +41,7 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): """Label""" color: str @@ -98,59 +53,18 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): url: str -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" -class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + diff_url: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", - "WebhookIssueCommentCreatedPropIssueAllof1Type", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0533.py b/githubkit/versions/v2022_11_28/types/group_0533.py index 4a8f672a3..2a39d32cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0533.py +++ b/githubkit/versions/v2022_11_28/types/group_0533.py @@ -9,36 +9,35 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0527 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0534.py b/githubkit/versions/v2022_11_28/types/group_0534.py index 461fe93bc..b95d92261 100644 --- a/githubkit/versions/v2022_11_28/types/group_0534.py +++ b/githubkit/versions/v2022_11_28/types/group_0534.py @@ -10,35 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0529 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0533 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - created_at: Union[datetime, None] + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + ] description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0535.py b/githubkit/versions/v2022_11_28/types/group_0535.py index 13f2c8f9a..b261a91af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0535.py +++ b/githubkit/versions/v2022_11_28/types/group_0535.py @@ -9,29 +9,86 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0411 import WebhooksIssueCommentType -from .group_0536 import WebhookIssueCommentDeletedPropIssueType +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" -class WebhookIssueCommentDeletedType(TypedDict): - """issue_comment deleted event""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - action: Literal["deleted"] - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -__all__ = ("WebhookIssueCommentDeletedType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0536.py b/githubkit/versions/v2022_11_28/types/group_0536.py index 6cfc90382..b93d79217 100644 --- a/githubkit/versions/v2022_11_28/types/group_0536.py +++ b/githubkit/versions/v2022_11_28/types/group_0536.py @@ -10,154 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0538 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) -from .group_0543 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0545 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType -from .group_0546 import ( - WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, +from .group_0535 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentDeletedPropIssueType(TypedDict): - """WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - id: int - labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] + id: Union[int, None] + name: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, ] - reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssueCommentDeletedPropIssueMergedUserType - - -class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" + slug: NotRequired[str] + updated_at: Union[datetime, None] - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - -class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", - "WebhookIssueCommentDeletedPropIssueMergedReactionsType", - "WebhookIssueCommentDeletedPropIssueMergedUserType", - "WebhookIssueCommentDeletedPropIssueType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0537.py b/githubkit/versions/v2022_11_28/types/group_0537.py index a970501e6..ef1c4a5c5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0537.py +++ b/githubkit/versions/v2022_11_28/types/group_0537.py @@ -9,160 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0538 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) -from .group_0540 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType -from .group_0542 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0543 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" -class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): - """Issue + total: int + completed: int + percent_completed: int - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None - ] - ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] - - -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", - "WebhookIssueCommentDeletedPropIssueAllof0Type", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0538.py b/githubkit/versions/v2022_11_28/types/group_0538.py index 0cf270ec9..7b1858f2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0538.py +++ b/githubkit/versions/v2022_11_28/types/group_0538.py @@ -9,12 +9,53 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1""" + + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + list[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None + ] + ] + reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -41,7 +82,11 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): """Label""" color: str @@ -53,18 +98,59 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + - diff_url: NotRequired[str] +class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0539.py b/githubkit/versions/v2022_11_28/types/group_0539.py index b8118ecd1..c56003ecd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0539.py +++ b/githubkit/versions/v2022_11_28/types/group_0539.py @@ -9,35 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0533 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0540.py b/githubkit/versions/v2022_11_28/types/group_0540.py index 92eab4ee5..71dba9aa6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0540.py +++ b/githubkit/versions/v2022_11_28/types/group_0540.py @@ -10,38 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0539 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +from .group_0535 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None - ] + created_at: Union[datetime, None] description: Union[str, None] - due_on: Union[datetime, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - id: int - labels_url: str + id: Union[int, None] + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0541.py b/githubkit/versions/v2022_11_28/types/group_0541.py index 078dc1e49..1262b8990 100644 --- a/githubkit/versions/v2022_11_28/types/group_0541.py +++ b/githubkit/versions/v2022_11_28/types/group_0541.py @@ -9,86 +9,29 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0417 import WebhooksIssueCommentType +from .group_0542 import WebhookIssueCommentDeletedPropIssueType -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhookIssueCommentDeletedType(TypedDict): + """issue_comment deleted event""" + action: Literal["deleted"] + comment: WebhooksIssueCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentDeletedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0542.py b/githubkit/versions/v2022_11_28/types/group_0542.py index 771457adc..b86db2296 100644 --- a/githubkit/versions/v2022_11_28/types/group_0542.py +++ b/githubkit/versions/v2022_11_28/types/group_0542.py @@ -10,41 +10,154 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0541 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0544 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) +from .group_0549 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, +) +from .group_0551 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType +from .group_0552 import ( + WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentDeletedPropIssueType(TypedDict): + """WebhookIssueCommentDeletedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssueCommentDeletedPropIssueMergedUserType + + +class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) + +class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedUser""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", + "WebhookIssueCommentDeletedPropIssueMergedReactionsType", + "WebhookIssueCommentDeletedPropIssueMergedUserType", + "WebhookIssueCommentDeletedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0543.py b/githubkit/versions/v2022_11_28/types/group_0543.py index aa70cbec8..a6568dffd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0543.py +++ b/githubkit/versions/v2022_11_28/types/group_0543.py @@ -9,15 +9,160 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0544 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) +from .group_0546 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType +from .group_0548 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0549 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - total: int - completed: int - percent_completed: int +class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): + """Issue + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType",) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0544.py b/githubkit/versions/v2022_11_28/types/group_0544.py index 0664cda5a..0cf270ec9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0544.py +++ b/githubkit/versions/v2022_11_28/types/group_0544.py @@ -9,53 +9,12 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - list[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,11 +41,7 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): """Label""" color: str @@ -98,60 +53,18 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): url: str -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + diff_url: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", - "WebhookIssueCommentDeletedPropIssueAllof1Type", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0545.py b/githubkit/versions/v2022_11_28/types/group_0545.py index bdebd8753..b8118ecd1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0545.py +++ b/githubkit/versions/v2022_11_28/types/group_0545.py @@ -9,36 +9,35 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0539 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0546.py b/githubkit/versions/v2022_11_28/types/group_0546.py index f3268a2e7..09bf3f3bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0546.py +++ b/githubkit/versions/v2022_11_28/types/group_0546.py @@ -10,35 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0541 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0545 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - created_at: Union[datetime, None] + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + ] description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0547.py b/githubkit/versions/v2022_11_28/types/group_0547.py index 034673630..078dc1e49 100644 --- a/githubkit/versions/v2022_11_28/types/group_0547.py +++ b/githubkit/versions/v2022_11_28/types/group_0547.py @@ -9,31 +9,86 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0411 import WebhooksIssueCommentType -from .group_0412 import WebhooksChangesType -from .group_0548 import WebhookIssueCommentEditedPropIssueType +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" -class WebhookIssueCommentEditedType(TypedDict): - """issue_comment edited event""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentEditedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -__all__ = ("WebhookIssueCommentEditedType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0548.py b/githubkit/versions/v2022_11_28/types/group_0548.py index b9344a259..6b9b8167a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0548.py +++ b/githubkit/versions/v2022_11_28/types/group_0548.py @@ -10,152 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0550 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, -) -from .group_0555 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType -from .group_0557 import WebhookIssueCommentEditedPropIssueMergedMilestoneType -from .group_0558 import ( - WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, +from .group_0547 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentEditedPropIssueType(TypedDict): - """WebhookIssueCommentEditedPropIssue +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentEditedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - id: int - labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] + id: Union[int, None] + name: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] - reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssueCommentEditedPropIssueMergedUserType - - -class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueMergedAssigneesType", - "WebhookIssueCommentEditedPropIssueMergedReactionsType", - "WebhookIssueCommentEditedPropIssueMergedUserType", - "WebhookIssueCommentEditedPropIssueType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0549.py b/githubkit/versions/v2022_11_28/types/group_0549.py index afba3288b..aa70cbec8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0549.py +++ b/githubkit/versions/v2022_11_28/types/group_0549.py @@ -9,158 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0550 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, -) -from .group_0552 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType -from .group_0554 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0555 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType +class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" -class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): - """Issue + total: int + completed: int + percent_completed: int - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None - ] - ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] - - -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof0PropUserType", - "WebhookIssueCommentEditedPropIssueAllof0Type", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0550.py b/githubkit/versions/v2022_11_28/types/group_0550.py index 398fe7733..0664cda5a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0550.py +++ b/githubkit/versions/v2022_11_28/types/group_0550.py @@ -9,12 +9,53 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1""" + + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + list[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None + ] + ] + reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -41,7 +82,11 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): """Label""" color: str @@ -53,18 +98,60 @@ class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): url: str -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" - diff_url: NotRequired[str] + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0551.py b/githubkit/versions/v2022_11_28/types/group_0551.py index 9ac4a4c4e..05d710ba5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0551.py +++ b/githubkit/versions/v2022_11_28/types/group_0551.py @@ -9,35 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0545 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0552.py b/githubkit/versions/v2022_11_28/types/group_0552.py index 9d1534d4a..bd667cc9d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0552.py +++ b/githubkit/versions/v2022_11_28/types/group_0552.py @@ -10,38 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0551 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +from .group_0547 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None - ] + created_at: Union[datetime, None] description: Union[str, None] - due_on: Union[datetime, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - id: int - labels_url: str + id: Union[int, None] + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0553.py b/githubkit/versions/v2022_11_28/types/group_0553.py index 3b96ed6e4..9a080d522 100644 --- a/githubkit/versions/v2022_11_28/types/group_0553.py +++ b/githubkit/versions/v2022_11_28/types/group_0553.py @@ -9,85 +9,31 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0417 import WebhooksIssueCommentType +from .group_0418 import WebhooksChangesType +from .group_0554 import WebhookIssueCommentEditedPropIssueType -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhookIssueCommentEditedType(TypedDict): + """issue_comment edited event""" + action: Literal["edited"] + changes: WebhooksChangesType + comment: WebhooksIssueCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentEditedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentEditedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0554.py b/githubkit/versions/v2022_11_28/types/group_0554.py index 14437b655..a3736b730 100644 --- a/githubkit/versions/v2022_11_28/types/group_0554.py +++ b/githubkit/versions/v2022_11_28/types/group_0554.py @@ -10,41 +10,152 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0553 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0556 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +) +from .group_0561 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType +from .group_0563 import WebhookIssueCommentEditedPropIssueMergedMilestoneType +from .group_0564 import ( + WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentEditedPropIssueType(TypedDict): + """WebhookIssueCommentEditedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentEditedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssueCommentEditedPropIssueMergedUserType + + +class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) +class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedReactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedUser""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueMergedAssigneesType", + "WebhookIssueCommentEditedPropIssueMergedReactionsType", + "WebhookIssueCommentEditedPropIssueMergedUserType", + "WebhookIssueCommentEditedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0555.py b/githubkit/versions/v2022_11_28/types/group_0555.py index 5c991e61e..1eab10e64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0555.py +++ b/githubkit/versions/v2022_11_28/types/group_0555.py @@ -9,15 +9,158 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0556 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +) +from .group_0558 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType +from .group_0560 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0561 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType -class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - total: int - completed: int - percent_completed: int +class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): + """Issue + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType",) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] + + +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof0PropUserType", + "WebhookIssueCommentEditedPropIssueAllof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0556.py b/githubkit/versions/v2022_11_28/types/group_0556.py index d5d49ac59..398fe7733 100644 --- a/githubkit/versions/v2022_11_28/types/group_0556.py +++ b/githubkit/versions/v2022_11_28/types/group_0556.py @@ -9,53 +9,12 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - list[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,11 +41,7 @@ class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): """Label""" color: str @@ -98,59 +53,18 @@ class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): url: str -class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" -class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + diff_url: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof1PropUserType", - "WebhookIssueCommentEditedPropIssueAllof1Type", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0557.py b/githubkit/versions/v2022_11_28/types/group_0557.py index 420d334ea..9ac4a4c4e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0557.py +++ b/githubkit/versions/v2022_11_28/types/group_0557.py @@ -9,36 +9,35 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0551 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0558.py b/githubkit/versions/v2022_11_28/types/group_0558.py index 7d520740c..958122cb4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0558.py +++ b/githubkit/versions/v2022_11_28/types/group_0558.py @@ -10,35 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0553 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0557 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - created_at: Union[datetime, None] + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + ] description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0559.py b/githubkit/versions/v2022_11_28/types/group_0559.py index c9679c0b7..3b96ed6e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0559.py +++ b/githubkit/versions/v2022_11_28/types/group_0559.py @@ -12,26 +12,82 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType -from .group_0413 import WebhooksIssueType +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" -class WebhookIssuesAssignedType(TypedDict): - """issues assigned event""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - action: Literal["assigned"] - assignee: NotRequired[Union[WebhooksUserType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -__all__ = ("WebhookIssuesAssignedType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0560.py b/githubkit/versions/v2022_11_28/types/group_0560.py index 3399fc5d8..800a8f194 100644 --- a/githubkit/versions/v2022_11_28/types/group_0560.py +++ b/githubkit/versions/v2022_11_28/types/group_0560.py @@ -9,27 +9,42 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0561 import WebhookIssuesClosedPropIssueType - - -class WebhookIssuesClosedType(TypedDict): - """issues closed event""" - - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesClosedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssuesClosedType",) +from .group_0559 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0561.py b/githubkit/versions/v2022_11_28/types/group_0561.py index 22b0ed995..5c991e61e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0561.py +++ b/githubkit/versions/v2022_11_28/types/group_0561.py @@ -9,185 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0567 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequestType, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0569 import WebhookIssuesClosedPropIssueMergedMilestoneType -from .group_0570 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType +class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" -class WebhookIssuesClosedPropIssueType(TypedDict): - """WebhookIssuesClosedPropIssue + total: int + completed: int + percent_completed: int - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] - assignees: list[WebhookIssuesClosedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesClosedPropIssueMergedLabelsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssuesClosedPropIssueMergedUserType - - -class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignee""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedLabels""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): - """WebhookIssuesClosedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesClosedPropIssueMergedAssigneeType", - "WebhookIssuesClosedPropIssueMergedAssigneesType", - "WebhookIssuesClosedPropIssueMergedLabelsType", - "WebhookIssuesClosedPropIssueMergedReactionsType", - "WebhookIssuesClosedPropIssueMergedUserType", - "WebhookIssuesClosedPropIssueType", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0562.py b/githubkit/versions/v2022_11_28/types/group_0562.py index 4fed62ea9..d5d49ac59 100644 --- a/githubkit/versions/v2022_11_28/types/group_0562.py +++ b/githubkit/versions/v2022_11_28/types/group_0562.py @@ -9,77 +9,53 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0564 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType -from .group_0566 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType -from .group_0567 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequestType, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, -) - -class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + list[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] + ] ] - assignees: list[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] + Union[ + WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None + ] ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] + reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] -class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -106,34 +82,11 @@ class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - -class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): """Label""" color: str @@ -145,36 +98,41 @@ class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): - """User""" + +class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -182,16 +140,17 @@ class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof0PropReactionsType", - "WebhookIssuesClosedPropIssueAllof0PropUserType", - "WebhookIssuesClosedPropIssueAllof0Type", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof1PropUserType", + "WebhookIssueCommentEditedPropIssueAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0563.py b/githubkit/versions/v2022_11_28/types/group_0563.py index 2a05f2e97..967cb9ff9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0563.py +++ b/githubkit/versions/v2022_11_28/types/group_0563.py @@ -9,35 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0557 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0564.py b/githubkit/versions/v2022_11_28/types/group_0564.py index d6e971919..f78eb4c81 100644 --- a/githubkit/versions/v2022_11_28/types/group_0564.py +++ b/githubkit/versions/v2022_11_28/types/group_0564.py @@ -10,34 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0563 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +from .group_0559 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] + created_at: Union[datetime, None] description: Union[str, None] - due_on: Union[datetime, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - id: int - labels_url: str + id: Union[int, None] + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0565.py b/githubkit/versions/v2022_11_28/types/group_0565.py index 77496d06f..802568a2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0565.py +++ b/githubkit/versions/v2022_11_28/types/group_0565.py @@ -12,82 +12,26 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType +from .group_0419 import WebhooksIssueType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhookIssuesAssignedType(TypedDict): + """issues assigned event""" + action: Literal["assigned"] + assignee: NotRequired[Union[WebhooksUserType, None]] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssuesAssignedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0566.py b/githubkit/versions/v2022_11_28/types/group_0566.py index dec88dfa2..19095f84b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0566.py +++ b/githubkit/versions/v2022_11_28/types/group_0566.py @@ -9,41 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0565 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0567 import WebhookIssuesClosedPropIssueType + + +class WebhookIssuesClosedType(TypedDict): + """issues closed event""" + + action: Literal["closed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesClosedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssuesClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0567.py b/githubkit/versions/v2022_11_28/types/group_0567.py index 2fe4e0efb..9a2b84923 100644 --- a/githubkit/versions/v2022_11_28/types/group_0567.py +++ b/githubkit/versions/v2022_11_28/types/group_0567.py @@ -10,29 +10,184 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0573 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequestType, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, +) +from .group_0575 import WebhookIssuesClosedPropIssueMergedMilestoneType +from .group_0576 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType + + +class WebhookIssuesClosedPropIssueType(TypedDict): + """WebhookIssuesClosedPropIssue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] + assignees: list[WebhookIssuesClosedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesClosedPropIssueMergedLabelsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssuesClosedPropIssueMergedUserType -class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] +class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignee""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignees""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - total: int - completed: int - percent_completed: int +class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedLabels""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedReactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): + """WebhookIssuesClosedPropIssueMergedUser""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", + "WebhookIssuesClosedPropIssueMergedAssigneeType", + "WebhookIssuesClosedPropIssueMergedAssigneesType", + "WebhookIssuesClosedPropIssueMergedLabelsType", + "WebhookIssuesClosedPropIssueMergedReactionsType", + "WebhookIssuesClosedPropIssueMergedUserType", + "WebhookIssuesClosedPropIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0568.py b/githubkit/versions/v2022_11_28/types/group_0568.py index 06e71289d..1bd0c937d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0568.py +++ b/githubkit/versions/v2022_11_28/types/group_0568.py @@ -9,99 +9,172 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0570 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType +from .group_0572 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType +from .group_0573 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequestType, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, +) + + +class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): + """Issue -class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): - """WebhookIssuesClosedPropIssueAllof1""" + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ - active_lock_reason: NotRequired[Union[str, None]] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] ] - assignees: NotRequired[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] + assignees: list[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: Union[str, None] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - labels_url: NotRequired[str] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] + labels_url: str locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType ] - reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["closed", "open"] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] - + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] -class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" +class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str -class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" +class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropUser""" +class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -109,18 +182,16 @@ class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesClosedPropIssueAllof1PropReactionsType", - "WebhookIssuesClosedPropIssueAllof1PropUserType", - "WebhookIssuesClosedPropIssueAllof1Type", + "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof0PropReactionsType", + "WebhookIssuesClosedPropIssueAllof0PropUserType", + "WebhookIssuesClosedPropIssueAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0569.py b/githubkit/versions/v2022_11_28/types/group_0569.py index 94220313e..2a05f2e97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0569.py +++ b/githubkit/versions/v2022_11_28/types/group_0569.py @@ -9,32 +9,35 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0563 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0570.py b/githubkit/versions/v2022_11_28/types/group_0570.py index 25bf7891b..6bc20853a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0570.py +++ b/githubkit/versions/v2022_11_28/types/group_0570.py @@ -10,34 +10,34 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0565 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0569 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - created_at: Union[datetime, None] + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0571.py b/githubkit/versions/v2022_11_28/types/group_0571.py index 6fa3f99cd..77496d06f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0571.py +++ b/githubkit/versions/v2022_11_28/types/group_0571.py @@ -9,227 +9,13 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType - -class WebhookIssuesDeletedType(TypedDict): - """issues deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesDeletedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] - reactions: WebhookIssuesDeletedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] - - -class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -256,10 +42,10 @@ class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedD user_view_type: NotRequired[str] -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -281,7 +67,7 @@ class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( organization_hooks: NotRequired[Literal["read", "write"]] organization_packages: NotRequired[Literal["read", "write"]] organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] organization_secrets: NotRequired[Literal["read", "write"]] organization_self_hosted_runners: NotRequired[Literal["read", "write"]] organization_user_blocking: NotRequired[Literal["read", "write"]] @@ -301,79 +87,7 @@ class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - __all__ = ( - "WebhookIssuesDeletedPropIssuePropAssigneeType", - "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", - "WebhookIssuesDeletedPropIssuePropLabelsItemsType", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDeletedPropIssuePropMilestoneType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDeletedPropIssuePropPullRequestType", - "WebhookIssuesDeletedPropIssuePropReactionsType", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesDeletedPropIssuePropUserType", - "WebhookIssuesDeletedPropIssueType", - "WebhookIssuesDeletedType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0572.py b/githubkit/versions/v2022_11_28/types/group_0572.py index affb286c4..6646121f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0572.py +++ b/githubkit/versions/v2022_11_28/types/group_0572.py @@ -10,206 +10,16 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0414 import WebhooksMilestoneType - - -class WebhookIssuesDemilestonedType(TypedDict): - """issues demilestoned event""" - - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDemilestonedPropIssueType - milestone: NotRequired[WebhooksMilestoneType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesDemilestonedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +from .group_0571 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -227,162 +37,13 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesDemilestonedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDemilestonedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesDemilestonedPropIssuePropAssigneeType", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssuePropMilestoneType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssuePropPullRequestType", - "WebhookIssuesDemilestonedPropIssuePropReactionsType", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesDemilestonedPropIssuePropUserType", - "WebhookIssuesDemilestonedPropIssueType", - "WebhookIssuesDemilestonedType", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0573.py b/githubkit/versions/v2022_11_28/types/group_0573.py index c6c17432c..2fe4e0efb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0573.py +++ b/githubkit/versions/v2022_11_28/types/group_0573.py @@ -10,324 +10,12 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0408 import WebhooksLabelType - -class WebhookIssuesEditedType(TypedDict): - """issues edited event""" - - action: Literal["edited"] - changes: WebhookIssuesEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesEditedPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesEditedPropChangesType(TypedDict): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] - title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] - - -class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str - - -class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str - - -class WebhookIssuesEditedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesEditedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] - reactions: WebhookIssuesEditedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesEditedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesEditedPropIssuePropUserType, None] - - -class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesEditedPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -336,22 +24,7 @@ class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesEditedPropIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -359,49 +32,7 @@ class WebhookIssuesEditedPropIssuePropSubIssuesSummaryType(TypedDict): percent_completed: int -class WebhookIssuesEditedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - __all__ = ( - "WebhookIssuesEditedPropChangesPropBodyType", - "WebhookIssuesEditedPropChangesPropTitleType", - "WebhookIssuesEditedPropChangesType", - "WebhookIssuesEditedPropIssuePropAssigneeType", - "WebhookIssuesEditedPropIssuePropAssigneesItemsType", - "WebhookIssuesEditedPropIssuePropLabelsItemsType", - "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesEditedPropIssuePropMilestoneType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesEditedPropIssuePropPullRequestType", - "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesEditedPropIssuePropUserType", - "WebhookIssuesEditedPropIssueType", - "WebhookIssuesEditedType", + "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", + "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0574.py b/githubkit/versions/v2022_11_28/types/group_0574.py index 75ca59379..06e71289d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0574.py +++ b/githubkit/versions/v2022_11_28/types/group_0574.py @@ -9,348 +9,99 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0408 import WebhooksLabelType +class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesLabeledType(TypedDict): - """issues labeled event""" - - action: Literal["labeled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLabeledPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesLabeledPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + active_lock_reason: NotRequired[Union[str, None]] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] ] - assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + assignees: NotRequired[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] - reactions: WebhookIssuesLabeledPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] - - -class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: Union[str, None] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None + id: NotRequired[int] + labels: NotRequired[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] ] - permissions: NotRequired[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType + labels_url: NotRequired[str] + locked: NotRequired[bool] + milestone: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] + ] + reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["closed", "open"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] + user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions +class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - The set of permissions for the GitHub app - """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" -class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesLabeledPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] +class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" -class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): - """Reactions""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" - total: int - completed: int - percent_completed: int + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] -class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -358,24 +109,18 @@ class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesLabeledPropIssuePropAssigneeType", - "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", - "WebhookIssuesLabeledPropIssuePropLabelsItemsType", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLabeledPropIssuePropMilestoneType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLabeledPropIssuePropPullRequestType", - "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", - "WebhookIssuesLabeledPropIssuePropUserType", - "WebhookIssuesLabeledPropIssueType", - "WebhookIssuesLabeledType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssuesClosedPropIssueAllof1PropReactionsType", + "WebhookIssuesClosedPropIssueAllof1PropUserType", + "WebhookIssuesClosedPropIssueAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0575.py b/githubkit/versions/v2022_11_28/types/group_0575.py index 2d31e757f..a25306217 100644 --- a/githubkit/versions/v2022_11_28/types/group_0575.py +++ b/githubkit/versions/v2022_11_28/types/group_0575.py @@ -11,159 +11,18 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0569 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesLockedType(TypedDict): - """issues locked event""" - - action: Literal["locked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLockedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesLockedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: Literal[True] - milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] - reactions: WebhookIssuesLockedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesLockedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLockedPropIssuePropUserType, None] - - -class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueMergedMilestone""" closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -178,205 +37,4 @@ class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesLockedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesLockedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesLockedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesLockedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesLockedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesLockedPropIssuePropAssigneeType", - "WebhookIssuesLockedPropIssuePropAssigneesItemsType", - "WebhookIssuesLockedPropIssuePropLabelsItemsType", - "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLockedPropIssuePropMilestoneType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLockedPropIssuePropPullRequestType", - "WebhookIssuesLockedPropIssuePropReactionsType", - "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesLockedPropIssuePropUserType", - "WebhookIssuesLockedPropIssueType", - "WebhookIssuesLockedType", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0576.py b/githubkit/versions/v2022_11_28/types/group_0576.py index 2ae3d2a16..ff503dc37 100644 --- a/githubkit/versions/v2022_11_28/types/group_0576.py +++ b/githubkit/versions/v2022_11_28/types/group_0576.py @@ -10,209 +10,17 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0414 import WebhooksMilestoneType - - -class WebhookIssuesMilestonedType(TypedDict): - """issues milestoned event""" - - action: Literal["milestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesMilestonedPropIssueType - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesMilestonedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesMilestonedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] - - -class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - +from .group_0571 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] description: Union[str, None] @@ -223,160 +31,13 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesMilestonedPropIssuePropAssigneeType", - "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssuePropMilestoneType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssuePropPullRequestType", - "WebhookIssuesMilestonedPropIssuePropReactionsType", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesMilestonedPropIssuePropUserType", - "WebhookIssuesMilestonedPropIssueType", - "WebhookIssuesMilestonedType", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0577.py b/githubkit/versions/v2022_11_28/types/group_0577.py index 29af7a1ef..70a420082 100644 --- a/githubkit/versions/v2022_11_28/types/group_0577.py +++ b/githubkit/versions/v2022_11_28/types/group_0577.py @@ -10,30 +10,29 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookIssuesOpenedType(TypedDict): - """issues opened event""" +class WebhookIssuesDeletedType(TypedDict): + """issues deleted event""" - action: Literal["opened"] - changes: NotRequired[WebhookIssuesOpenedPropChangesType] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesOpenedPropIssueType + issue: WebhookIssuesDeletedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookIssuesOpenedPropIssueType(TypedDict): +class WebhookIssuesDeletedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -42,8 +41,8 @@ class WebhookIssuesOpenedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -63,20 +62,20 @@ class WebhookIssuesOpenedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[list[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] + labels: NotRequired[list[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] - reactions: WebhookIssuesOpenedPropIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] + reactions: WebhookIssuesDeletedPropIssuePropReactionsType repository_url: str sub_issues_summary: NotRequired[ - WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType + WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType ] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -84,10 +83,10 @@ class WebhookIssuesOpenedPropIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] + user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] -class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -114,7 +113,7 @@ class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -138,10 +137,9 @@ class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -153,7 +151,7 @@ class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -162,7 +160,7 @@ class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -177,61 +175,7 @@ class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -258,305 +202,7 @@ class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDi user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesType(TypedDict): - """WebhookIssuesOpenedPropChanges""" - - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] - old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType - - -class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType - ] - reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( - TypedDict -): +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -574,19 +220,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -613,11 +256,10 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -659,8 +301,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDeletedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -669,7 +311,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): +class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -684,7 +326,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -692,7 +334,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDi percent_completed: int -class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): +class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -719,202 +361,19 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_discussions: NotRequired[bool] - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType: TypeAlias = ( - dict[str, Any] -) -"""WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - __all__ = ( - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", - "WebhookIssuesOpenedPropChangesPropOldIssueType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryType", - "WebhookIssuesOpenedPropChangesType", - "WebhookIssuesOpenedPropIssuePropAssigneeType", - "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropIssuePropMilestoneType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropIssuePropPullRequestType", - "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesOpenedPropIssuePropUserType", - "WebhookIssuesOpenedPropIssueType", - "WebhookIssuesOpenedType", + "WebhookIssuesDeletedPropIssuePropAssigneeType", + "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", + "WebhookIssuesDeletedPropIssuePropLabelsItemsType", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDeletedPropIssuePropMilestoneType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDeletedPropIssuePropPullRequestType", + "WebhookIssuesDeletedPropIssuePropReactionsType", + "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesDeletedPropIssuePropUserType", + "WebhookIssuesDeletedPropIssueType", + "WebhookIssuesDeletedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0578.py b/githubkit/versions/v2022_11_28/types/group_0578.py index bb901a945..849902ba7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0578.py +++ b/githubkit/versions/v2022_11_28/types/group_0578.py @@ -9,27 +9,380 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0415 import WebhooksIssue2Type +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0420 import WebhooksMilestoneType -class WebhookIssuesPinnedType(TypedDict): - """issues pinned event""" +class WebhookIssuesDemilestonedType(TypedDict): + """issues demilestoned event""" - action: Literal["pinned"] + action: Literal["demilestoned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhookIssuesDemilestonedPropIssueType + milestone: NotRequired[WebhooksMilestoneType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesPinnedType",) +class WebhookIssuesDemilestonedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] + + +class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesDemilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesDemilestonedPropIssuePropAssigneeType", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDemilestonedPropIssuePropMilestoneType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDemilestonedPropIssuePropPullRequestType", + "WebhookIssuesDemilestonedPropIssuePropReactionsType", + "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesDemilestonedPropIssuePropUserType", + "WebhookIssuesDemilestonedPropIssueType", + "WebhookIssuesDemilestonedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0579.py b/githubkit/versions/v2022_11_28/types/group_0579.py index c05a04c7f..29cf23f95 100644 --- a/githubkit/versions/v2022_11_28/types/group_0579.py +++ b/githubkit/versions/v2022_11_28/types/group_0579.py @@ -13,26 +13,51 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0414 import WebhooksLabelType -class WebhookIssuesReopenedType(TypedDict): - """issues reopened event""" +class WebhookIssuesEditedType(TypedDict): + """issues edited event""" - action: Literal["reopened"] + action: Literal["edited"] + changes: WebhookIssuesEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesReopenedPropIssueType + issue: WebhookIssuesEditedPropIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookIssuesReopenedPropIssueType(TypedDict): +class WebhookIssuesEditedPropChangesType(TypedDict): + """WebhookIssuesEditedPropChanges + + The changes to the issue. + """ + + body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] + title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] + + +class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): + """WebhookIssuesEditedPropChangesPropBody""" + + from_: str + + +class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): + """WebhookIssuesEditedPropChangesPropTitle""" + + from_: str + + +class WebhookIssuesEditedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -41,8 +66,8 @@ class WebhookIssuesReopenedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -62,33 +87,31 @@ class WebhookIssuesReopenedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - list[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] - ] + labels: NotRequired[list[WebhookIssuesEditedPropIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] + milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] - reactions: WebhookIssuesReopenedPropIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] + reactions: WebhookIssuesEditedPropIssuePropReactionsType repository_url: str sub_issues_summary: NotRequired[ - WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType + WebhookIssuesEditedPropIssuePropSubIssuesSummaryType ] - state: Literal["open", "closed"] + state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] + user: Union[WebhookIssuesEditedPropIssuePropUserType, None] -class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -110,11 +133,12 @@ class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -140,7 +164,7 @@ class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -152,7 +176,7 @@ class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -161,7 +185,7 @@ class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -176,7 +200,7 @@ class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -203,7 +227,7 @@ class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -221,16 +245,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -257,10 +281,10 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(Typed user_view_type: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -290,7 +314,7 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType pages: NotRequired[Literal["read", "write"]] pull_requests: NotRequired[Literal["read", "write"]] repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] + repository_projects: NotRequired[Literal["read", "write"]] secret_scanning_alerts: NotRequired[Literal["read", "write"]] secrets: NotRequired[Literal["read", "write"]] security_events: NotRequired[Literal["read", "write"]] @@ -302,8 +326,8 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesReopenedPropIssuePropPullRequest""" +class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesEditedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -312,7 +336,7 @@ class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): +class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -327,7 +351,7 @@ class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesEditedPropIssuePropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -335,7 +359,7 @@ class WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType(TypedDict): percent_completed: int -class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): +class WebhookIssuesEditedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -363,18 +387,21 @@ class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesReopenedPropIssuePropAssigneeType", - "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", - "WebhookIssuesReopenedPropIssuePropLabelsItemsType", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesReopenedPropIssuePropMilestoneType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesReopenedPropIssuePropPullRequestType", - "WebhookIssuesReopenedPropIssuePropReactionsType", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesReopenedPropIssuePropUserType", - "WebhookIssuesReopenedPropIssueType", - "WebhookIssuesReopenedType", + "WebhookIssuesEditedPropChangesPropBodyType", + "WebhookIssuesEditedPropChangesPropTitleType", + "WebhookIssuesEditedPropChangesType", + "WebhookIssuesEditedPropIssuePropAssigneeType", + "WebhookIssuesEditedPropIssuePropAssigneesItemsType", + "WebhookIssuesEditedPropIssuePropLabelsItemsType", + "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesEditedPropIssuePropMilestoneType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesEditedPropIssuePropPullRequestType", + "WebhookIssuesEditedPropIssuePropReactionsType", + "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesEditedPropIssuePropUserType", + "WebhookIssuesEditedPropIssueType", + "WebhookIssuesEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0580.py b/githubkit/versions/v2022_11_28/types/group_0580.py index 50b0472a8..385979216 100644 --- a/githubkit/versions/v2022_11_28/types/group_0580.py +++ b/githubkit/versions/v2022_11_28/types/group_0580.py @@ -10,38 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0415 import WebhooksIssue2Type +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0414 import WebhooksLabelType -class WebhookIssuesTransferredType(TypedDict): - """issues transferred event""" +class WebhookIssuesLabeledType(TypedDict): + """issues labeled event""" - action: Literal["transferred"] - changes: WebhookIssuesTransferredPropChangesType + action: Literal["labeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhookIssuesLabeledPropIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookIssuesTransferredPropChangesType(TypedDict): - """WebhookIssuesTransferredPropChanges""" - - new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType - new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType - - -class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): +class WebhookIssuesLabeledPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -50,14 +43,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] - ] - assignees: list[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None - ] - ] + assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -77,29 +64,20 @@ class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] - ] + labels: NotRequired[list[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None - ] + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] ] - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] + reactions: WebhookIssuesLabeledPropIssuePropReactionsType repository_url: str sub_issues_summary: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType + WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType ] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -107,10 +85,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] + user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): +class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -132,12 +110,12 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict) site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -159,12 +137,11 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -176,7 +153,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDi url: str -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): +class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -185,10 +162,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, - None, - ] + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -203,9 +177,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict url: str -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( - TypedDict -): +class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -227,14 +199,12 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorTyp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( - TypedDict -): +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -252,19 +222,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -291,11 +258,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -317,7 +283,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr organization_hooks: NotRequired[Literal["read", "write"]] organization_packages: NotRequired[Literal["read", "write"]] organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] organization_secrets: NotRequired[Literal["read", "write"]] organization_self_hosted_runners: NotRequired[Literal["read", "write"]] organization_user_blocking: NotRequired[Literal["read", "write"]] @@ -337,8 +303,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" +class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLabeledPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -347,7 +313,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDi url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): +class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -362,9 +328,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict url: str -class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType( - TypedDict -): +class WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -372,163 +336,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType( percent_completed: int -class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType: TypeAlias = dict[ - str, Any -] -"""WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): +class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -550,42 +358,24 @@ class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDic site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - __all__ = ( - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", - "WebhookIssuesTransferredPropChangesPropNewIssueType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryType", - "WebhookIssuesTransferredPropChangesType", - "WebhookIssuesTransferredType", + "WebhookIssuesLabeledPropIssuePropAssigneeType", + "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", + "WebhookIssuesLabeledPropIssuePropLabelsItemsType", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLabeledPropIssuePropMilestoneType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLabeledPropIssuePropPullRequestType", + "WebhookIssuesLabeledPropIssuePropReactionsType", + "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", + "WebhookIssuesLabeledPropIssuePropUserType", + "WebhookIssuesLabeledPropIssueType", + "WebhookIssuesLabeledType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0581.py b/githubkit/versions/v2022_11_28/types/group_0581.py index 23bc263c1..2d4d720ae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0581.py +++ b/githubkit/versions/v2022_11_28/types/group_0581.py @@ -9,29 +9,374 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0413 import WebhooksIssueType -from .group_0416 import WebhooksUserMannequinType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookIssuesUnassignedType(TypedDict): - """issues unassigned event""" +class WebhookIssuesLockedType(TypedDict): + """issues locked event""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType + issue: WebhookIssuesLockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnassignedType",) +class WebhookIssuesLockedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: Literal[True] + milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] + reactions: WebhookIssuesLockedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesLockedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLockedPropIssuePropUserType, None] + + +class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesLockedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesLockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLockedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesLockedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesLockedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesLockedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesLockedPropIssuePropAssigneeType", + "WebhookIssuesLockedPropIssuePropAssigneesItemsType", + "WebhookIssuesLockedPropIssuePropLabelsItemsType", + "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLockedPropIssuePropMilestoneType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropPullRequestType", + "WebhookIssuesLockedPropIssuePropReactionsType", + "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesLockedPropIssuePropUserType", + "WebhookIssuesLockedPropIssueType", + "WebhookIssuesLockedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0582.py b/githubkit/versions/v2022_11_28/types/group_0582.py index 6d952e88c..f5fc409b3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0582.py +++ b/githubkit/versions/v2022_11_28/types/group_0582.py @@ -9,29 +9,374 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0408 import WebhooksLabelType -from .group_0413 import WebhooksIssueType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0420 import WebhooksMilestoneType -class WebhookIssuesUnlabeledType(TypedDict): - """issues unlabeled event""" +class WebhookIssuesMilestonedType(TypedDict): + """issues milestoned event""" - action: Literal["unlabeled"] + action: Literal["milestoned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - label: NotRequired[WebhooksLabelType] + issue: WebhookIssuesMilestonedPropIssueType + milestone: WebhooksMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnlabeledType",) +class WebhookIssuesMilestonedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesMilestonedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] + + +class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesMilestonedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesMilestonedPropIssuePropAssigneeType", + "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesMilestonedPropIssuePropMilestoneType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesMilestonedPropIssuePropPullRequestType", + "WebhookIssuesMilestonedPropIssuePropReactionsType", + "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesMilestonedPropIssuePropUserType", + "WebhookIssuesMilestonedPropIssueType", + "WebhookIssuesMilestonedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0583.py b/githubkit/versions/v2022_11_28/types/group_0583.py index fc807593b..e4d5d97cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0583.py +++ b/githubkit/versions/v2022_11_28/types/group_0583.py @@ -10,29 +10,30 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookIssuesUnlockedType(TypedDict): - """issues unlocked event""" +class WebhookIssuesOpenedType(TypedDict): + """issues opened event""" - action: Literal["unlocked"] + action: Literal["opened"] + changes: NotRequired[WebhookIssuesOpenedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnlockedPropIssueType + issue: WebhookIssuesOpenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookIssuesUnlockedPropIssueType(TypedDict): +class WebhookIssuesOpenedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -41,8 +42,349 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] + reactions: WebhookIssuesOpenedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] + + +class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesType(TypedDict): + """WebhookIssuesOpenedPropChanges""" + + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] + old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType + + +class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None] + ] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -63,21 +405,26 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): html_url: str id: int labels: NotRequired[ - list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] ] labels_url: str - locked: Literal[False] - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] + locked: NotRequired[bool] + milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] + Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType ] - pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] - reactions: WebhookIssuesUnlockedPropIssuePropReactionsType + reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType repository_url: str sub_issues_summary: NotRequired[ - WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType + WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType ] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -85,10 +432,10 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] + user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] -class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -115,7 +462,7 @@ class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -142,7 +489,7 @@ class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -154,7 +501,7 @@ class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -163,7 +510,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None + ] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -178,7 +527,7 @@ class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -205,7 +554,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( + TypedDict +): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -223,16 +574,19 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, + None, ] permissions: NotRequired[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -259,10 +613,11 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(Typed user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns The set of permissions for the GitHub app """ @@ -304,8 +659,8 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -314,7 +669,7 @@ class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -329,7 +684,7 @@ class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -337,7 +692,161 @@ class WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType(TypedDict): percent_completed: int -class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_discussions: NotRequired[bool] + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType: TypeAlias = ( + dict[str, Any] +) +"""WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -364,19 +873,48 @@ class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): user_view_type: NotRequired[str] +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + __all__ = ( - "WebhookIssuesUnlockedPropIssuePropAssigneeType", - "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnlockedPropIssuePropMilestoneType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssuePropPullRequestType", - "WebhookIssuesUnlockedPropIssuePropReactionsType", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesUnlockedPropIssuePropUserType", - "WebhookIssuesUnlockedPropIssueType", - "WebhookIssuesUnlockedType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", + "WebhookIssuesOpenedPropChangesPropOldIssueType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryType", + "WebhookIssuesOpenedPropChangesType", + "WebhookIssuesOpenedPropIssuePropAssigneeType", + "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropIssuePropMilestoneType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropIssuePropPullRequestType", + "WebhookIssuesOpenedPropIssuePropReactionsType", + "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesOpenedPropIssuePropUserType", + "WebhookIssuesOpenedPropIssueType", + "WebhookIssuesOpenedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0584.py b/githubkit/versions/v2022_11_28/types/group_0584.py index 25f318298..15ce7c4d8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0584.py +++ b/githubkit/versions/v2022_11_28/types/group_0584.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0415 import WebhooksIssue2Type +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0421 import WebhooksIssue2Type -class WebhookIssuesUnpinnedType(TypedDict): - """issues unpinned event""" +class WebhookIssuesPinnedType(TypedDict): + """issues pinned event""" - action: Literal["unpinned"] + action: Literal["pinned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] issue: WebhooksIssue2Type @@ -32,4 +32,4 @@ class WebhookIssuesUnpinnedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookIssuesUnpinnedType",) +__all__ = ("WebhookIssuesPinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0585.py b/githubkit/versions/v2022_11_28/types/group_0585.py index 5ed4d2844..8e6d2e402 100644 --- a/githubkit/versions/v2022_11_28/types/group_0585.py +++ b/githubkit/versions/v2022_11_28/types/group_0585.py @@ -9,27 +9,372 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0408 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookLabelCreatedType(TypedDict): - """label created event""" +class WebhookIssuesReopenedType(TypedDict): + """issues reopened event""" - action: Literal["created"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhookIssuesReopenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookLabelCreatedType",) +class WebhookIssuesReopenedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] + reactions: WebhookIssuesReopenedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] + + +class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesReopenedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesReopenedPropIssuePropAssigneeType", + "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", + "WebhookIssuesReopenedPropIssuePropLabelsItemsType", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesReopenedPropIssuePropMilestoneType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropPullRequestType", + "WebhookIssuesReopenedPropIssuePropReactionsType", + "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesReopenedPropIssuePropUserType", + "WebhookIssuesReopenedPropIssueType", + "WebhookIssuesReopenedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0586.py b/githubkit/versions/v2022_11_28/types/group_0586.py index 98cc55779..1ab215e52 100644 --- a/githubkit/versions/v2022_11_28/types/group_0586.py +++ b/githubkit/versions/v2022_11_28/types/group_0586.py @@ -9,27 +9,583 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0408 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0421 import WebhooksIssue2Type -class WebhookLabelDeletedType(TypedDict): - """label deleted event""" +class WebhookIssuesTransferredType(TypedDict): + """issues transferred event""" - action: Literal["deleted"] + action: Literal["transferred"] + changes: WebhookIssuesTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookLabelDeletedType",) +class WebhookIssuesTransferredPropChangesType(TypedDict): + """WebhookIssuesTransferredPropChanges""" + + new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType + new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType + + +class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] + ] + assignees: list[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None + ] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType + ] + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType( + TypedDict +): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType: TypeAlias = dict[ + str, Any +] +"""WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", + "WebhookIssuesTransferredPropChangesPropNewIssueType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryType", + "WebhookIssuesTransferredPropChangesType", + "WebhookIssuesTransferredType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0587.py b/githubkit/versions/v2022_11_28/types/group_0587.py index f06efe71f..6849fe894 100644 --- a/githubkit/versions/v2022_11_28/types/group_0587.py +++ b/githubkit/versions/v2022_11_28/types/group_0587.py @@ -9,63 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0408 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0419 import WebhooksIssueType +from .group_0422 import WebhooksUserMannequinType -class WebhookLabelEditedType(TypedDict): - """label edited event""" +class WebhookIssuesUnassignedType(TypedDict): + """issues unassigned event""" - action: Literal["edited"] - changes: NotRequired[WebhookLabelEditedPropChangesType] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhooksIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookLabelEditedPropChangesType(TypedDict): - """WebhookLabelEditedPropChanges - - The changes to the label if the action was `edited`. - """ - - color: NotRequired[WebhookLabelEditedPropChangesPropColorType] - description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookLabelEditedPropChangesPropNameType] - - -class WebhookLabelEditedPropChangesPropColorType(TypedDict): - """WebhookLabelEditedPropChangesPropColor""" - - from_: str - - -class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): - """WebhookLabelEditedPropChangesPropDescription""" - - from_: str - - -class WebhookLabelEditedPropChangesPropNameType(TypedDict): - """WebhookLabelEditedPropChangesPropName""" - - from_: str - - -__all__ = ( - "WebhookLabelEditedPropChangesPropColorType", - "WebhookLabelEditedPropChangesPropDescriptionType", - "WebhookLabelEditedPropChangesPropNameType", - "WebhookLabelEditedPropChangesType", - "WebhookLabelEditedType", -) +__all__ = ("WebhookIssuesUnassignedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0588.py b/githubkit/versions/v2022_11_28/types/group_0588.py index 02dd0c2d0..c76688696 100644 --- a/githubkit/versions/v2022_11_28/types/group_0588.py +++ b/githubkit/versions/v2022_11_28/types/group_0588.py @@ -12,27 +12,26 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0417 import WebhooksMarketplacePurchaseType -from .group_0418 import WebhooksPreviousMarketplacePurchaseType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0414 import WebhooksLabelType +from .group_0419 import WebhooksIssueType -class WebhookMarketplacePurchaseCancelledType(TypedDict): - """marketplace_purchase cancelled event""" +class WebhookIssuesUnlabeledType(TypedDict): + """issues unlabeled event""" - action: Literal["cancelled"] - effective_date: str + action: Literal["unlabeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhooksIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMarketplacePurchaseCancelledType",) +__all__ = ("WebhookIssuesUnlabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0589.py b/githubkit/versions/v2022_11_28/types/group_0589.py index f3e8c838e..5be9ff691 100644 --- a/githubkit/versions/v2022_11_28/types/group_0589.py +++ b/githubkit/versions/v2022_11_28/types/group_0589.py @@ -9,78 +9,374 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0417 import WebhooksMarketplacePurchaseType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookMarketplacePurchaseChangedType(TypedDict): - """marketplace_purchase changed event""" +class WebhookIssuesUnlockedType(TypedDict): + """issues unlocked event""" - action: Literal["changed"] - effective_date: str + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhookIssuesUnlockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType - ] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" +class WebhookIssuesUnlockedPropIssueType(TypedDict): + """Issue - account: ( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: Union[bool, None] - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType - unit_count: int + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: Literal[False] + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnlockedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] + + +class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" +class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str node_id: str - organization_billing_email: Union[str, None] - type: str + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions - bullets: list[str] - description: str - has_free_trial: bool + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedType", + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesUnlockedPropIssuePropUserType", + "WebhookIssuesUnlockedPropIssueType", + "WebhookIssuesUnlockedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0590.py b/githubkit/versions/v2022_11_28/types/group_0590.py index a1650ecbf..c4d440349 100644 --- a/githubkit/versions/v2022_11_28/types/group_0590.py +++ b/githubkit/versions/v2022_11_28/types/group_0590.py @@ -9,80 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0417 import WebhooksMarketplacePurchaseType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0421 import WebhooksIssue2Type -class WebhookMarketplacePurchasePendingChangeType(TypedDict): - """marketplace_purchase pending_change event""" +class WebhookIssuesUnpinnedType(TypedDict): + """issues unpinned event""" - action: Literal["pending_change"] - effective_date: str + action: Literal["unpinned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType - ] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeType", -) +__all__ = ("WebhookIssuesUnpinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0591.py b/githubkit/versions/v2022_11_28/types/group_0591.py index 08d11c09a..a023eea3b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0591.py +++ b/githubkit/versions/v2022_11_28/types/group_0591.py @@ -9,80 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0418 import WebhooksPreviousMarketplacePurchaseType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0414 import WebhooksLabelType -class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): - """marketplace_purchase pending_change_cancelled event""" +class WebhookLabelCreatedType(TypedDict): + """label created event""" - action: Literal["pending_change_cancelled"] - effective_date: str + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType - ) + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: Union[str, None] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou - nt - """ - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" - - bullets: list[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeCancelledType", -) +__all__ = ("WebhookLabelCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0592.py b/githubkit/versions/v2022_11_28/types/group_0592.py index 5bfeacf94..20b609141 100644 --- a/githubkit/versions/v2022_11_28/types/group_0592.py +++ b/githubkit/versions/v2022_11_28/types/group_0592.py @@ -12,27 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0417 import WebhooksMarketplacePurchaseType -from .group_0418 import WebhooksPreviousMarketplacePurchaseType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0414 import WebhooksLabelType -class WebhookMarketplacePurchasePurchasedType(TypedDict): - """marketplace_purchase purchased event""" +class WebhookLabelDeletedType(TypedDict): + """label deleted event""" - action: Literal["purchased"] - effective_date: str + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMarketplacePurchasePurchasedType",) +__all__ = ("WebhookLabelDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0593.py b/githubkit/versions/v2022_11_28/types/group_0593.py index 3468c2f5b..502eabb78 100644 --- a/githubkit/versions/v2022_11_28/types/group_0593.py +++ b/githubkit/versions/v2022_11_28/types/group_0593.py @@ -9,64 +9,63 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0414 import WebhooksLabelType -class WebhookMemberAddedType(TypedDict): - """member added event""" +class WebhookLabelEditedType(TypedDict): + """label edited event""" - action: Literal["added"] - changes: NotRequired[WebhookMemberAddedPropChangesType] + action: Literal["edited"] + changes: NotRequired[WebhookLabelEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookMemberAddedPropChangesType(TypedDict): - """WebhookMemberAddedPropChanges""" +class WebhookLabelEditedPropChangesType(TypedDict): + """WebhookLabelEditedPropChanges - permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] - role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] + The changes to the label if the action was `edited`. + """ + color: NotRequired[WebhookLabelEditedPropChangesPropColorType] + description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookLabelEditedPropChangesPropNameType] -class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): - """WebhookMemberAddedPropChangesPropPermission - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ +class WebhookLabelEditedPropChangesPropColorType(TypedDict): + """WebhookLabelEditedPropChangesPropColor""" - to: Literal["write", "admin", "read"] + from_: str -class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): - """WebhookMemberAddedPropChangesPropRoleName +class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): + """WebhookLabelEditedPropChangesPropDescription""" - The role assigned to the collaborator. - """ + from_: str + + +class WebhookLabelEditedPropChangesPropNameType(TypedDict): + """WebhookLabelEditedPropChangesPropName""" - to: str + from_: str __all__ = ( - "WebhookMemberAddedPropChangesPropPermissionType", - "WebhookMemberAddedPropChangesPropRoleNameType", - "WebhookMemberAddedPropChangesType", - "WebhookMemberAddedType", + "WebhookLabelEditedPropChangesPropColorType", + "WebhookLabelEditedPropChangesPropDescriptionType", + "WebhookLabelEditedPropChangesPropNameType", + "WebhookLabelEditedPropChangesType", + "WebhookLabelEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0594.py b/githubkit/versions/v2022_11_28/types/group_0594.py index bb10be2e4..144c6360a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0594.py +++ b/githubkit/versions/v2022_11_28/types/group_0594.py @@ -9,56 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0423 import WebhooksMarketplacePurchaseType +from .group_0424 import WebhooksPreviousMarketplacePurchaseType -class WebhookMemberEditedType(TypedDict): - """member edited event""" +class WebhookMarketplacePurchaseCancelledType(TypedDict): + """marketplace_purchase cancelled event""" - action: Literal["edited"] - changes: WebhookMemberEditedPropChangesType + action: Literal["cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookMemberEditedPropChangesType(TypedDict): - """WebhookMemberEditedPropChanges - - The changes to the collaborator permissions - """ - - old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] - permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] - - -class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropOldPermission""" - - from_: str - - -class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropPermission""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "WebhookMemberEditedPropChangesPropOldPermissionType", - "WebhookMemberEditedPropChangesPropPermissionType", - "WebhookMemberEditedPropChangesType", - "WebhookMemberEditedType", -) +__all__ = ("WebhookMarketplacePurchaseCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0595.py b/githubkit/versions/v2022_11_28/types/group_0595.py index 1d66ddc8c..e24297f11 100644 --- a/githubkit/versions/v2022_11_28/types/group_0595.py +++ b/githubkit/versions/v2022_11_28/types/group_0595.py @@ -12,24 +12,75 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0423 import WebhooksMarketplacePurchaseType -class WebhookMemberRemovedType(TypedDict): - """member removed event""" +class WebhookMarketplacePurchaseChangedType(TypedDict): + """marketplace_purchase changed event""" - action: Literal["removed"] + action: Literal["changed"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookMemberRemovedType",) +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: ( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType + ) + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: Union[bool, None] + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +__all__ = ( + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchaseChangedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0596.py b/githubkit/versions/v2022_11_28/types/group_0596.py index d8b2c27e2..745a81ae9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0596.py +++ b/githubkit/versions/v2022_11_28/types/group_0596.py @@ -12,56 +12,77 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType -from .group_0419 import WebhooksTeamType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0423 import WebhooksMarketplacePurchaseType -class WebhookMembershipAddedType(TypedDict): - """membership added event""" +class WebhookMarketplacePurchasePendingChangeType(TypedDict): + """marketplace_purchase pending_change event""" - action: Literal["added"] + action: Literal["pending_change"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + marketplace_purchase: WebhooksMarketplacePurchaseType + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType + ] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team"] - sender: Union[WebhookMembershipAddedPropSenderType, None] - team: WebhooksTeamType - - -class WebhookMembershipAddedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + sender: SimpleUserType + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookMembershipAddedPropSenderType", - "WebhookMembershipAddedType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0597.py b/githubkit/versions/v2022_11_28/types/group_0597.py index f921bd311..91d44b368 100644 --- a/githubkit/versions/v2022_11_28/types/group_0597.py +++ b/githubkit/versions/v2022_11_28/types/group_0597.py @@ -12,56 +12,77 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType -from .group_0419 import WebhooksTeamType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0424 import WebhooksPreviousMarketplacePurchaseType -class WebhookMembershipRemovedType(TypedDict): - """membership removed event""" +class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["removed"] + action: Literal["pending_change_cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + marketplace_purchase: ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType + ) + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team", "organization"] - sender: Union[WebhookMembershipRemovedPropSenderType, None] - team: WebhooksTeamType - - -class WebhookMembershipRemovedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + sender: SimpleUserType + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ + id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookMembershipRemovedPropSenderType", - "WebhookMembershipRemovedType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0598.py b/githubkit/versions/v2022_11_28/types/group_0598.py index c0b4ec35f..4da657dfc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0598.py +++ b/githubkit/versions/v2022_11_28/types/group_0598.py @@ -12,22 +12,27 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0420 import MergeGroupType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0423 import WebhooksMarketplacePurchaseType +from .group_0424 import WebhooksPreviousMarketplacePurchaseType -class WebhookMergeGroupChecksRequestedType(TypedDict): - """WebhookMergeGroupChecksRequested""" +class WebhookMarketplacePurchasePurchasedType(TypedDict): + """marketplace_purchase purchased event""" - action: Literal["checks_requested"] + action: Literal["purchased"] + effective_date: str + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookMergeGroupChecksRequestedType",) +__all__ = ("WebhookMarketplacePurchasePurchasedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0599.py b/githubkit/versions/v2022_11_28/types/group_0599.py index cee394a62..e7d00bc83 100644 --- a/githubkit/versions/v2022_11_28/types/group_0599.py +++ b/githubkit/versions/v2022_11_28/types/group_0599.py @@ -9,26 +9,64 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0420 import MergeGroupType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType -class WebhookMergeGroupDestroyedType(TypedDict): - """WebhookMergeGroupDestroyed""" +class WebhookMemberAddedType(TypedDict): + """member added event""" - action: Literal["destroyed"] - reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] + action: Literal["added"] + changes: NotRequired[WebhookMemberAddedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookMergeGroupDestroyedType",) +class WebhookMemberAddedPropChangesType(TypedDict): + """WebhookMemberAddedPropChanges""" + + permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] + role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] + + +class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + + to: Literal["write", "admin", "read"] + + +class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str + + +__all__ = ( + "WebhookMemberAddedPropChangesPropPermissionType", + "WebhookMemberAddedPropChangesPropRoleNameType", + "WebhookMemberAddedPropChangesType", + "WebhookMemberAddedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0600.py b/githubkit/versions/v2022_11_28/types/group_0600.py index 8d48a6275..2f1740d8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0600.py +++ b/githubkit/versions/v2022_11_28/types/group_0600.py @@ -12,54 +12,53 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType -class WebhookMetaDeletedType(TypedDict): - """meta deleted event""" +class WebhookMemberEditedType(TypedDict): + """member edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookMemberEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] - hook: WebhookMetaDeletedPropHookType - hook_id: int installation: NotRequired[SimpleInstallationType] + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookMetaDeletedPropHookType(TypedDict): - """WebhookMetaDeletedPropHook +class WebhookMemberEditedPropChangesType(TypedDict): + """WebhookMemberEditedPropChanges - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. + The changes to the collaborator permissions """ - active: bool - config: WebhookMetaDeletedPropHookPropConfigType - created_at: str - events: list[str] - id: int - name: str - type: str - updated_at: str + old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] + permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] -class WebhookMetaDeletedPropHookPropConfigType(TypedDict): - """WebhookMetaDeletedPropHookPropConfig""" +class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropOldPermission""" - content_type: Literal["json", "form"] - insecure_ssl: str - secret: NotRequired[str] - url: str + from_: str + + +class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropPermission""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookMetaDeletedPropHookPropConfigType", - "WebhookMetaDeletedPropHookType", - "WebhookMetaDeletedType", + "WebhookMemberEditedPropChangesPropOldPermissionType", + "WebhookMemberEditedPropChangesPropPermissionType", + "WebhookMemberEditedPropChangesType", + "WebhookMemberEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0601.py b/githubkit/versions/v2022_11_28/types/group_0601.py index e2125f695..733c720ed 100644 --- a/githubkit/versions/v2022_11_28/types/group_0601.py +++ b/githubkit/versions/v2022_11_28/types/group_0601.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0414 import WebhooksMilestoneType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType -class WebhookMilestoneClosedType(TypedDict): - """milestone closed event""" +class WebhookMemberRemovedType(TypedDict): + """member removed event""" - action: Literal["closed"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMilestoneClosedType",) +__all__ = ("WebhookMemberRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0602.py b/githubkit/versions/v2022_11_28/types/group_0602.py index 6931f881d..ff989d3a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0602.py +++ b/githubkit/versions/v2022_11_28/types/group_0602.py @@ -9,27 +9,59 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0421 import WebhooksMilestone3Type +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType +from .group_0425 import WebhooksTeamType -class WebhookMilestoneCreatedType(TypedDict): - """milestone created event""" +class WebhookMembershipAddedType(TypedDict): + """membership added event""" - action: Literal["created"] + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + member: Union[WebhooksUserType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team"] + sender: Union[WebhookMembershipAddedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMilestoneCreatedType",) +class WebhookMembershipAddedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookMembershipAddedPropSenderType", + "WebhookMembershipAddedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0603.py b/githubkit/versions/v2022_11_28/types/group_0603.py index 9cd4428f2..ded5a3882 100644 --- a/githubkit/versions/v2022_11_28/types/group_0603.py +++ b/githubkit/versions/v2022_11_28/types/group_0603.py @@ -9,27 +9,59 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0414 import WebhooksMilestoneType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType +from .group_0425 import WebhooksTeamType -class WebhookMilestoneDeletedType(TypedDict): - """milestone deleted event""" +class WebhookMembershipRemovedType(TypedDict): + """membership removed event""" - action: Literal["deleted"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + member: Union[WebhooksUserType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team", "organization"] + sender: Union[WebhookMembershipRemovedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMilestoneDeletedType",) +class WebhookMembershipRemovedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookMembershipRemovedPropSenderType", + "WebhookMembershipRemovedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0604.py b/githubkit/versions/v2022_11_28/types/group_0604.py index 0d452f126..7824cb644 100644 --- a/githubkit/versions/v2022_11_28/types/group_0604.py +++ b/githubkit/versions/v2022_11_28/types/group_0604.py @@ -12,60 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0414 import WebhooksMilestoneType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0426 import MergeGroupType -class WebhookMilestoneEditedType(TypedDict): - """milestone edited event""" +class WebhookMergeGroupChecksRequestedType(TypedDict): + """WebhookMergeGroupChecksRequested""" - action: Literal["edited"] - changes: WebhookMilestoneEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["checks_requested"] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -class WebhookMilestoneEditedPropChangesType(TypedDict): - """WebhookMilestoneEditedPropChanges - - The changes to the milestone if the action was `edited`. - """ - - description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] - due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] - title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] - - -class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): - """WebhookMilestoneEditedPropChangesPropDescription""" - - from_: str - - -class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): - """WebhookMilestoneEditedPropChangesPropDueOn""" - - from_: str - - -class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): - """WebhookMilestoneEditedPropChangesPropTitle""" - - from_: str - - -__all__ = ( - "WebhookMilestoneEditedPropChangesPropDescriptionType", - "WebhookMilestoneEditedPropChangesPropDueOnType", - "WebhookMilestoneEditedPropChangesPropTitleType", - "WebhookMilestoneEditedPropChangesType", - "WebhookMilestoneEditedType", -) +__all__ = ("WebhookMergeGroupChecksRequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0605.py b/githubkit/versions/v2022_11_28/types/group_0605.py index 297a83953..b518ee347 100644 --- a/githubkit/versions/v2022_11_28/types/group_0605.py +++ b/githubkit/versions/v2022_11_28/types/group_0605.py @@ -12,24 +12,23 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0421 import WebhooksMilestone3Type +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0426 import MergeGroupType -class WebhookMilestoneOpenedType(TypedDict): - """milestone opened event""" +class WebhookMergeGroupDestroyedType(TypedDict): + """WebhookMergeGroupDestroyed""" - action: Literal["opened"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["destroyed"] + reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type + merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookMilestoneOpenedType",) +__all__ = ("WebhookMergeGroupDestroyedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0606.py b/githubkit/versions/v2022_11_28/types/group_0606.py index 21e32fa22..779ba0e25 100644 --- a/githubkit/versions/v2022_11_28/types/group_0606.py +++ b/githubkit/versions/v2022_11_28/types/group_0606.py @@ -12,24 +12,54 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookOrgBlockBlockedType(TypedDict): - """org_block blocked event""" +class WebhookMetaDeletedType(TypedDict): + """meta deleted event""" - action: Literal["blocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] + hook: WebhookMetaDeletedPropHookType + hook_id: int installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookOrgBlockBlockedType",) +class WebhookMetaDeletedPropHookType(TypedDict): + """WebhookMetaDeletedPropHook + + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ + + active: bool + config: WebhookMetaDeletedPropHookPropConfigType + created_at: str + events: list[str] + id: int + name: str + type: str + updated_at: str + + +class WebhookMetaDeletedPropHookPropConfigType(TypedDict): + """WebhookMetaDeletedPropHookPropConfig""" + + content_type: Literal["json", "form"] + insecure_ssl: str + secret: NotRequired[str] + url: str + + +__all__ = ( + "WebhookMetaDeletedPropHookPropConfigType", + "WebhookMetaDeletedPropHookType", + "WebhookMetaDeletedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0607.py b/githubkit/versions/v2022_11_28/types/group_0607.py index 93ad210c4..944ee9014 100644 --- a/githubkit/versions/v2022_11_28/types/group_0607.py +++ b/githubkit/versions/v2022_11_28/types/group_0607.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0420 import WebhooksMilestoneType -class WebhookOrgBlockUnblockedType(TypedDict): - """org_block unblocked event""" +class WebhookMilestoneClosedType(TypedDict): + """milestone closed event""" - action: Literal["unblocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrgBlockUnblockedType",) +__all__ = ("WebhookMilestoneClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0608.py b/githubkit/versions/v2022_11_28/types/group_0608.py index 318a53e05..e5c0152e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0608.py +++ b/githubkit/versions/v2022_11_28/types/group_0608.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0422 import WebhooksMembershipType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0427 import WebhooksMilestone3Type -class WebhookOrganizationDeletedType(TypedDict): - """organization deleted event""" +class WebhookMilestoneCreatedType(TypedDict): + """milestone created event""" - action: Literal["deleted"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestone3Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrganizationDeletedType",) +__all__ = ("WebhookMilestoneCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0609.py b/githubkit/versions/v2022_11_28/types/group_0609.py index ffbec97b6..83a7ee221 100644 --- a/githubkit/versions/v2022_11_28/types/group_0609.py +++ b/githubkit/versions/v2022_11_28/types/group_0609.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0422 import WebhooksMembershipType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0420 import WebhooksMilestoneType -class WebhookOrganizationMemberAddedType(TypedDict): - """organization member_added event""" +class WebhookMilestoneDeletedType(TypedDict): + """milestone deleted event""" - action: Literal["member_added"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrganizationMemberAddedType",) +__all__ = ("WebhookMilestoneDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0610.py b/githubkit/versions/v2022_11_28/types/group_0610.py index e34981059..e9e9fff29 100644 --- a/githubkit/versions/v2022_11_28/types/group_0610.py +++ b/githubkit/versions/v2022_11_28/types/group_0610.py @@ -9,80 +9,63 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0420 import WebhooksMilestoneType -class WebhookOrganizationMemberInvitedType(TypedDict): - """organization member_invited event""" +class WebhookMilestoneEditedType(TypedDict): + """milestone edited event""" - action: Literal["member_invited"] + action: Literal["edited"] + changes: WebhookMilestoneEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - invitation: WebhookOrganizationMemberInvitedPropInvitationType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType - user: NotRequired[Union[WebhooksUserType, None]] -class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): - """WebhookOrganizationMemberInvitedPropInvitation +class WebhookMilestoneEditedPropChangesType(TypedDict): + """WebhookMilestoneEditedPropChanges - The invitation for the user or email if the action is `member_invited`. + The changes to the milestone if the action was `edited`. """ - created_at: datetime - email: Union[str, None] - failed_at: Union[datetime, None] - failed_reason: Union[str, None] - id: float - invitation_teams_url: str - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] - login: Union[str, None] - node_id: str - role: str - team_count: float - invitation_source: NotRequired[str] - - -class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] + due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] + title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] + + +class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str + + +class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDueOn""" + + from_: str + + +class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str __all__ = ( - "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", - "WebhookOrganizationMemberInvitedPropInvitationType", - "WebhookOrganizationMemberInvitedType", + "WebhookMilestoneEditedPropChangesPropDescriptionType", + "WebhookMilestoneEditedPropChangesPropDueOnType", + "WebhookMilestoneEditedPropChangesPropTitleType", + "WebhookMilestoneEditedPropChangesType", + "WebhookMilestoneEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0611.py b/githubkit/versions/v2022_11_28/types/group_0611.py index ae49afc90..78720c0c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0611.py +++ b/githubkit/versions/v2022_11_28/types/group_0611.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0422 import WebhooksMembershipType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0427 import WebhooksMilestone3Type -class WebhookOrganizationMemberRemovedType(TypedDict): - """organization member_removed event""" +class WebhookMilestoneOpenedType(TypedDict): + """milestone opened event""" - action: Literal["member_removed"] + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestone3Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrganizationMemberRemovedType",) +__all__ = ("WebhookMilestoneOpenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0612.py b/githubkit/versions/v2022_11_28/types/group_0612.py index 7d29b9db7..dc4a40fdd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0612.py +++ b/githubkit/versions/v2022_11_28/types/group_0612.py @@ -9,44 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0422 import WebhooksMembershipType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType -class WebhookOrganizationRenamedType(TypedDict): - """organization renamed event""" +class WebhookOrgBlockBlockedType(TypedDict): + """org_block blocked event""" - action: Literal["renamed"] - changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + action: Literal["blocked"] + blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookOrganizationRenamedPropChangesType(TypedDict): - """WebhookOrganizationRenamedPropChanges""" - - login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] - - -class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): - """WebhookOrganizationRenamedPropChangesPropLogin""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookOrganizationRenamedPropChangesPropLoginType", - "WebhookOrganizationRenamedPropChangesType", - "WebhookOrganizationRenamedType", -) +__all__ = ("WebhookOrgBlockBlockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0613.py b/githubkit/versions/v2022_11_28/types/group_0613.py index fbf589490..e3d0428d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0613.py +++ b/githubkit/versions/v2022_11_28/types/group_0613.py @@ -9,44 +9,27 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType -class WebhookRubygemsMetadataType(TypedDict): - """Ruby Gems metadata""" - name: NotRequired[str] - description: NotRequired[str] - readme: NotRequired[str] - homepage: NotRequired[str] - version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] - platform: NotRequired[str] - metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] - repo: NotRequired[str] - dependencies: NotRequired[list[WebhookRubygemsMetadataPropDependenciesItemsType]] - commit_oid: NotRequired[str] +class WebhookOrgBlockUnblockedType(TypedDict): + """org_block unblocked event""" + action: Literal["unblocked"] + blocked_user: Union[WebhooksUserType, None] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): - """WebhookRubygemsMetadataPropVersionInfo""" - version: NotRequired[str] - - -WebhookRubygemsMetadataPropMetadataType: TypeAlias = dict[str, Any] -"""WebhookRubygemsMetadataPropMetadata -""" - - -WebhookRubygemsMetadataPropDependenciesItemsType: TypeAlias = dict[str, Any] -"""WebhookRubygemsMetadataPropDependenciesItems -""" - - -__all__ = ( - "WebhookRubygemsMetadataPropDependenciesItemsType", - "WebhookRubygemsMetadataPropMetadataType", - "WebhookRubygemsMetadataPropVersionInfoType", - "WebhookRubygemsMetadataType", -) +__all__ = ("WebhookOrgBlockUnblockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0614.py b/githubkit/versions/v2022_11_28/types/group_0614.py index 2603bcc6d..b4f965373 100644 --- a/githubkit/versions/v2022_11_28/types/group_0614.py +++ b/githubkit/versions/v2022_11_28/types/group_0614.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0615 import WebhookPackagePublishedPropPackageType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0428 import WebhooksMembershipType -class WebhookPackagePublishedType(TypedDict): - """package published event""" +class WebhookOrganizationDeletedType(TypedDict): + """organization deleted event""" - action: Literal["published"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackagePublishedPropPackageType + membership: NotRequired[WebhooksMembershipType] + organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookPackagePublishedType",) +__all__ = ("WebhookOrganizationDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0615.py b/githubkit/versions/v2022_11_28/types/group_0615.py index b6ddc9dff..447b7c1c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0615.py +++ b/githubkit/versions/v2022_11_28/types/group_0615.py @@ -9,73 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0616 import WebhookPackagePublishedPropPackagePropPackageVersionType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0428 import WebhooksMembershipType -class WebhookPackagePublishedPropPackageType(TypedDict): - """WebhookPackagePublishedPropPackage +class WebhookOrganizationMemberAddedType(TypedDict): + """organization member_added event""" - Information about the package. - """ + action: Literal["member_added"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: WebhooksMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType - created_at: Union[str, None] - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] - package_type: str - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionType, None - ] - registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] - updated_at: Union[str, None] - -class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): - """WebhookPackagePublishedPropPackagePropRegistry""" - - about_url: str - name: str - type: str - url: str - vendor: str - - -__all__ = ( - "WebhookPackagePublishedPropPackagePropOwnerType", - "WebhookPackagePublishedPropPackagePropRegistryType", - "WebhookPackagePublishedPropPackageType", -) +__all__ = ("WebhookOrganizationMemberAddedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0616.py b/githubkit/versions/v2022_11_28/types/group_0616.py index b2158b677..152a33210 100644 --- a/githubkit/versions/v2022_11_28/types/group_0616.py +++ b/githubkit/versions/v2022_11_28/types/group_0616.py @@ -9,440 +9,52 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0613 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType -class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersion""" +class WebhookOrganizationMemberInvitedType(TypedDict): + """organization member_invited event""" - author: NotRequired[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] - ] - body: NotRequired[ - Union[ - str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type - ] - ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, - None, - ] - ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, - None, - ] - ] - nuget_metadata: NotRequired[ - Union[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType - ], - None, - ] - ] - package_files: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + action: Literal["member_invited"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + invitation: WebhookOrganizationMemberInvitedPropInvitationType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + user: NotRequired[Union[WebhooksUserType, None]] -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" +class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): + """WebhookOrganizationMemberInvitedPropInvitation - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] - ] - manifest: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] - ] - tag: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest + The invitation for the user or email if the action is `member_invited`. """ - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: NotRequired[str] - name: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[list[str]] - - -WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( - dict[str, Any] -) -"""WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems -""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, - None, - ] - ] - bugs: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, - None, - ] - ] - dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, - None, - ] - ] - scripts: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType - ] - ] - contributors: NotRequired[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType - ] - ] - engines: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[list[str]] - files: NotRequired[list[str]] - bin_: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, - None, - ] - ] - os: NotRequired[list[str]] - cpu: NotRequired[list[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: NotRequired[Union[int, str]] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: Union[str, None] - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): + created_at: datetime + email: Union[str, None] + failed_at: Union[datetime, None] + failed_reason: Union[str, None] + id: float + invitation_teams_url: str + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] + login: Union[str, None] + node_id: str + role: str + team_count: float + invitation_source: NotRequired[str] + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -470,34 +82,7 @@ class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorT __all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackagePublishedPropPackagePropPackageVersionType", + "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", + "WebhookOrganizationMemberInvitedPropInvitationType", + "WebhookOrganizationMemberInvitedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0617.py b/githubkit/versions/v2022_11_28/types/group_0617.py index b67241246..4334c1540 100644 --- a/githubkit/versions/v2022_11_28/types/group_0617.py +++ b/githubkit/versions/v2022_11_28/types/group_0617.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0618 import WebhookPackageUpdatedPropPackageType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0428 import WebhooksMembershipType -class WebhookPackageUpdatedType(TypedDict): - """package updated event""" +class WebhookOrganizationMemberRemovedType(TypedDict): + """organization member_removed event""" - action: Literal["updated"] + action: Literal["member_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackageUpdatedPropPackageType - repository: RepositoryWebhooksType + membership: WebhooksMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookPackageUpdatedType",) +__all__ = ("WebhookOrganizationMemberRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0618.py b/githubkit/versions/v2022_11_28/types/group_0618.py index d64066818..1fe0b611e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0618.py +++ b/githubkit/versions/v2022_11_28/types/group_0618.py @@ -9,71 +9,44 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0619 import WebhookPackageUpdatedPropPackagePropPackageVersionType - - -class WebhookPackageUpdatedPropPackageType(TypedDict): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ - - created_at: str - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] - package_type: str - package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType - registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] - updated_at: str - - -class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): - """WebhookPackageUpdatedPropPackagePropRegistry""" - - about_url: str - name: str - type: str - url: str - vendor: str +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0428 import WebhooksMembershipType + + +class WebhookOrganizationRenamedType(TypedDict): + """organization renamed event""" + + action: Literal["renamed"] + changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhooksMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + + +class WebhookOrganizationRenamedPropChangesType(TypedDict): + """WebhookOrganizationRenamedPropChanges""" + + login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] + + +class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: NotRequired[str] __all__ = ( - "WebhookPackageUpdatedPropPackagePropOwnerType", - "WebhookPackageUpdatedPropPackagePropRegistryType", - "WebhookPackageUpdatedPropPackageType", + "WebhookOrganizationRenamedPropChangesPropLoginType", + "WebhookOrganizationRenamedPropChangesType", + "WebhookOrganizationRenamedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0619.py b/githubkit/versions/v2022_11_28/types/group_0619.py index 8d84d3ce4..fbf589490 100644 --- a/githubkit/versions/v2022_11_28/types/group_0619.py +++ b/githubkit/versions/v2022_11_28/types/group_0619.py @@ -9,168 +9,44 @@ from __future__ import annotations -from typing import Any, Literal, Union +from typing import Any from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0613 import WebhookRubygemsMetadataType - - -class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None - ] - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + +class WebhookRubygemsMetadataType(TypedDict): + """Ruby Gems metadata""" + name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + description: NotRequired[str] + readme: NotRequired[str] + homepage: NotRequired[str] + version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] + platform: NotRequired[str] + metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] + repo: NotRequired[str] + dependencies: NotRequired[list[WebhookRubygemsMetadataPropDependenciesItemsType]] + commit_oid: NotRequired[str] -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" +class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): + """WebhookRubygemsMetadataPropVersionInfo""" - tags: NotRequired[list[str]] + version: NotRequired[str] -WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( - dict[str, Any] -) -"""WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems +WebhookRubygemsMetadataPropMetadataType: TypeAlias = dict[str, Any] +"""WebhookRubygemsMetadataPropMetadata """ -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: str - size: int - state: str - updated_at: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +WebhookRubygemsMetadataPropDependenciesItemsType: TypeAlias = dict[str, Any] +"""WebhookRubygemsMetadataPropDependenciesItems +""" __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackageUpdatedPropPackagePropPackageVersionType", + "WebhookRubygemsMetadataPropDependenciesItemsType", + "WebhookRubygemsMetadataPropMetadataType", + "WebhookRubygemsMetadataPropVersionInfoType", + "WebhookRubygemsMetadataType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0620.py b/githubkit/versions/v2022_11_28/types/group_0620.py index 22340e423..0f682cac4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0620.py +++ b/githubkit/versions/v2022_11_28/types/group_0620.py @@ -9,81 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0621 import WebhookPackagePublishedPropPackageType -class WebhookPageBuildType(TypedDict): - """page_build event""" +class WebhookPackagePublishedType(TypedDict): + """package published event""" - build: WebhookPageBuildPropBuildType + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] - id: int installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + package: WebhookPackagePublishedPropPackageType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookPageBuildPropBuildType(TypedDict): - """WebhookPageBuildPropBuild - - The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- - github-pages-builds) itself. - """ - - commit: Union[str, None] - created_at: str - duration: int - error: WebhookPageBuildPropBuildPropErrorType - pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] - status: str - updated_at: str - url: str - - -class WebhookPageBuildPropBuildPropErrorType(TypedDict): - """WebhookPageBuildPropBuildPropError""" - - message: Union[str, None] - - -class WebhookPageBuildPropBuildPropPusherType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookPageBuildPropBuildPropErrorType", - "WebhookPageBuildPropBuildPropPusherType", - "WebhookPageBuildPropBuildType", - "WebhookPageBuildType", -) +__all__ = ("WebhookPackagePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0621.py b/githubkit/versions/v2022_11_28/types/group_0621.py index 1b1983b73..a99fe7599 100644 --- a/githubkit/versions/v2022_11_28/types/group_0621.py +++ b/githubkit/versions/v2022_11_28/types/group_0621.py @@ -9,25 +9,73 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0423 import PersonalAccessTokenRequestType +from .group_0622 import WebhookPackagePublishedPropPackagePropPackageVersionType -class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): - """personal_access_token_request approved event""" +class WebhookPackagePublishedPropPackageType(TypedDict): + """WebhookPackagePublishedPropPackage - action: Literal["approved"] - personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserType - installation: SimpleInstallationType + Information about the package. + """ + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] + package_type: str + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionType, None + ] + registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] + updated_at: Union[str, None] -__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) + +class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): + """WebhookPackagePublishedPropPackagePropRegistry""" + + about_url: str + name: str + type: str + url: str + vendor: str + + +__all__ = ( + "WebhookPackagePublishedPropPackagePropOwnerType", + "WebhookPackagePublishedPropPackagePropRegistryType", + "WebhookPackagePublishedPropPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0622.py b/githubkit/versions/v2022_11_28/types/group_0622.py index 2930d7ffe..6956733f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0622.py +++ b/githubkit/versions/v2022_11_28/types/group_0622.py @@ -9,25 +9,495 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0423 import PersonalAccessTokenRequestType +from .group_0619 import WebhookRubygemsMetadataType -class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): - """personal_access_token_request cancelled event""" +class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - action: Literal["cancelled"] - personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserType - installation: SimpleInstallationType + author: NotRequired[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] + ] + body: NotRequired[ + Union[ + str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, + None, + ] + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" + + labels: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType + ] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab + els + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan + ifest + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" + + digest: NotRequired[str] + name: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: NotRequired[list[str]] + + +WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( + dict[str, Any] +) +"""WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems +""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, + None, + ] + ] + bugs: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, + None, + ] + ] + dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, + None, + ] + ] + scripts: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType + ] + ] + contributors: NotRequired[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType + ] + ] + engines: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType + ] + keywords: NotRequired[list[str]] + files: NotRequired[list[str]] + bin_: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType + ] + man: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, + None, + ] + ] + os: NotRequired[list[str]] + cpu: NotRequired[list[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc + ies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend + encies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen + dencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD + ependencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor + y + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine + rsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut + orsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori + es + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" + + id: NotRequired[Union[int, str]] + name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa + lueOneof3 + """ + + url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: Union[str, None] + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackagePublishedPropPackagePropPackageVersionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0623.py b/githubkit/versions/v2022_11_28/types/group_0623.py index 2b1aa7a38..de3259116 100644 --- a/githubkit/versions/v2022_11_28/types/group_0623.py +++ b/githubkit/versions/v2022_11_28/types/group_0623.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0423 import PersonalAccessTokenRequestType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0624 import WebhookPackageUpdatedPropPackageType -class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): - """personal_access_token_request created event""" +class WebhookPackageUpdatedType(TypedDict): + """package updated event""" - action: Literal["created"] - personal_access_token_request: PersonalAccessTokenRequestType + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserType installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackageUpdatedPropPackageType + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) +__all__ = ("WebhookPackageUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0624.py b/githubkit/versions/v2022_11_28/types/group_0624.py index e2d188a15..142e8355d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0624.py +++ b/githubkit/versions/v2022_11_28/types/group_0624.py @@ -9,25 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0423 import PersonalAccessTokenRequestType +from .group_0625 import WebhookPackageUpdatedPropPackagePropPackageVersionType -class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): - """personal_access_token_request denied event""" +class WebhookPackageUpdatedPropPackageType(TypedDict): + """WebhookPackageUpdatedPropPackage - action: Literal["denied"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType - enterprise: NotRequired[EnterpriseWebhooksType] - sender: SimpleUserType - installation: SimpleInstallationType + Information about the package. + """ + created_at: str + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] + package_type: str + package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType + registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] + updated_at: str -__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) + +class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): + """WebhookPackageUpdatedPropPackagePropRegistry""" + + about_url: str + name: str + type: str + url: str + vendor: str + + +__all__ = ( + "WebhookPackageUpdatedPropPackagePropOwnerType", + "WebhookPackageUpdatedPropPackagePropRegistryType", + "WebhookPackageUpdatedPropPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0625.py b/githubkit/versions/v2022_11_28/types/group_0625.py index 4da8aa7de..fac3ac687 100644 --- a/githubkit/versions/v2022_11_28/types/group_0625.py +++ b/githubkit/versions/v2022_11_28/types/group_0625.py @@ -9,23 +9,168 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0626 import WebhookPingPropHookType +from .group_0619 import WebhookRubygemsMetadataType -class WebhookPingType(TypedDict): - """WebhookPing""" +class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - hook: NotRequired[WebhookPingPropHookType] - hook_id: NotRequired[int] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - zen: NotRequired[str] + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None + ] + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -__all__ = ("WebhookPingType",) +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: NotRequired[list[str]] + + +WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( + dict[str, Any] +) +"""WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems +""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: str + size: int + state: str + updated_at: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackageUpdatedPropPackagePropPackageVersionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0626.py b/githubkit/versions/v2022_11_28/types/group_0626.py index 04cb04b4a..bb19406d5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0626.py +++ b/githubkit/versions/v2022_11_28/types/group_0626.py @@ -9,45 +9,81 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0281 import HookResponseType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPingPropHookType(TypedDict): - """Webhook +class WebhookPageBuildType(TypedDict): + """page_build event""" - The webhook that is being pinged + build: WebhookPageBuildPropBuildType + enterprise: NotRequired[EnterpriseWebhooksType] + id: int + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +class WebhookPageBuildPropBuildType(TypedDict): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- + github-pages-builds) itself. """ - active: bool - app_id: NotRequired[int] - config: WebhookPingPropHookPropConfigType - created_at: datetime - deliveries_url: NotRequired[str] - events: list[str] - id: int - last_response: NotRequired[HookResponseType] - name: Literal["web"] - ping_url: NotRequired[str] - test_url: NotRequired[str] - type: str - updated_at: datetime - url: NotRequired[str] + commit: Union[str, None] + created_at: str + duration: int + error: WebhookPageBuildPropBuildPropErrorType + pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] + status: str + updated_at: str + url: str + + +class WebhookPageBuildPropBuildPropErrorType(TypedDict): + """WebhookPageBuildPropBuildPropError""" + message: Union[str, None] -class WebhookPingPropHookPropConfigType(TypedDict): - """WebhookPingPropHookPropConfig""" - content_type: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - secret: NotRequired[str] +class WebhookPageBuildPropBuildPropPusherType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookPingPropHookPropConfigType", - "WebhookPingPropHookType", + "WebhookPageBuildPropBuildPropErrorType", + "WebhookPageBuildPropBuildPropPusherType", + "WebhookPageBuildPropBuildType", + "WebhookPageBuildType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0627.py b/githubkit/versions/v2022_11_28/types/group_0627.py index 76f44f172..d16bd6205 100644 --- a/githubkit/versions/v2022_11_28/types/group_0627.py +++ b/githubkit/versions/v2022_11_28/types/group_0627.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0429 import PersonalAccessTokenRequestType -class WebhookPingFormEncodedType(TypedDict): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): + """personal_access_token_request approved event""" - payload: str + action: Literal["approved"] + personal_access_token_request: PersonalAccessTokenRequestType + enterprise: NotRequired[EnterpriseWebhooksType] + organization: OrganizationSimpleWebhooksType + sender: SimpleUserType + installation: SimpleInstallationType -__all__ = ("WebhookPingFormEncodedType",) +__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0628.py b/githubkit/versions/v2022_11_28/types/group_0628.py index a5310b740..9a5adc9cd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0628.py +++ b/githubkit/versions/v2022_11_28/types/group_0628.py @@ -12,41 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0424 import WebhooksProjectCardType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0429 import PersonalAccessTokenRequestType -class WebhookProjectCardConvertedType(TypedDict): - """project_card converted event""" +class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): + """personal_access_token_request cancelled event""" - action: Literal["converted"] - changes: WebhookProjectCardConvertedPropChangesType + action: Literal["cancelled"] + personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType sender: SimpleUserType + installation: SimpleInstallationType -class WebhookProjectCardConvertedPropChangesType(TypedDict): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNoteType - - -class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str - - -__all__ = ( - "WebhookProjectCardConvertedPropChangesPropNoteType", - "WebhookProjectCardConvertedPropChangesType", - "WebhookProjectCardConvertedType", -) +__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0629.py b/githubkit/versions/v2022_11_28/types/group_0629.py index 20e08d81b..5c3e317b0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0629.py +++ b/githubkit/versions/v2022_11_28/types/group_0629.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0424 import WebhooksProjectCardType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0429 import PersonalAccessTokenRequestType -class WebhookProjectCardCreatedType(TypedDict): - """project_card created event""" +class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): + """personal_access_token_request created event""" action: Literal["created"] + personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType sender: SimpleUserType + installation: NotRequired[SimpleInstallationType] -__all__ = ("WebhookProjectCardCreatedType",) +__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0630.py b/githubkit/versions/v2022_11_28/types/group_0630.py index 4305243af..9dfe8b475 100644 --- a/githubkit/versions/v2022_11_28/types/group_0630.py +++ b/githubkit/versions/v2022_11_28/types/group_0630.py @@ -9,76 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0429 import PersonalAccessTokenRequestType -class WebhookProjectCardDeletedType(TypedDict): - """project_card deleted event""" +class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): + """personal_access_token_request denied event""" - action: Literal["deleted"] + action: Literal["denied"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardDeletedPropProjectCardType - repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: SimpleUserType + installation: SimpleInstallationType -class WebhookProjectCardDeletedPropProjectCardType(TypedDict): - """Project Card""" - - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: Union[int, None] - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardDeletedPropProjectCardPropCreatorType", - "WebhookProjectCardDeletedPropProjectCardType", - "WebhookProjectCardDeletedType", -) +__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0631.py b/githubkit/versions/v2022_11_28/types/group_0631.py index 3101c1367..764c524af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0631.py +++ b/githubkit/versions/v2022_11_28/types/group_0631.py @@ -9,44 +9,23 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0424 import WebhooksProjectCardType +from .group_0003 import SimpleUserType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0632 import WebhookPingPropHookType -class WebhookProjectCardEditedType(TypedDict): - """project_card edited event""" +class WebhookPingType(TypedDict): + """WebhookPing""" - action: Literal["edited"] - changes: WebhookProjectCardEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + hook: NotRequired[WebhookPingPropHookType] + hook_id: NotRequired[int] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + sender: NotRequired[SimpleUserType] + zen: NotRequired[str] -class WebhookProjectCardEditedPropChangesType(TypedDict): - """WebhookProjectCardEditedPropChanges""" - - note: WebhookProjectCardEditedPropChangesPropNoteType - - -class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardEditedPropChangesPropNote""" - - from_: Union[str, None] - - -__all__ = ( - "WebhookProjectCardEditedPropChangesPropNoteType", - "WebhookProjectCardEditedPropChangesType", - "WebhookProjectCardEditedType", -) +__all__ = ("WebhookPingType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0632.py b/githubkit/versions/v2022_11_28/types/group_0632.py index 95a7f7cab..ee88951f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0632.py +++ b/githubkit/versions/v2022_11_28/types/group_0632.py @@ -13,87 +13,41 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0287 import HookResponseType -class WebhookProjectCardMovedType(TypedDict): - """project_card moved event""" +class WebhookPingPropHookType(TypedDict): + """Webhook - action: Literal["moved"] - changes: NotRequired[WebhookProjectCardMovedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardMovedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + The webhook that is being pinged + """ - -class WebhookProjectCardMovedPropChangesType(TypedDict): - """WebhookProjectCardMovedPropChanges""" - - column_id: WebhookProjectCardMovedPropChangesPropColumnIdType - - -class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int - - -class WebhookProjectCardMovedPropProjectCardType(TypedDict): - """WebhookProjectCardMovedPropProjectCard""" - - after_id: Union[Union[int, None], None] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] + active: bool + app_id: NotRequired[int] + config: WebhookPingPropHookPropConfigType created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] + deliveries_url: NotRequired[str] + events: list[str] id: int - node_id: str - note: Union[Union[str, None], None] - project_url: str + last_response: NotRequired[HookResponseType] + name: Literal["web"] + ping_url: NotRequired[str] + test_url: NotRequired[str] + type: str updated_at: datetime - url: str + url: NotRequired[str] -class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" +class WebhookPingPropHookPropConfigType(TypedDict): + """WebhookPingPropHookPropConfig""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + content_type: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + secret: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] __all__ = ( - "WebhookProjectCardMovedPropChangesPropColumnIdType", - "WebhookProjectCardMovedPropChangesType", - "WebhookProjectCardMovedPropProjectCardMergedCreatorType", - "WebhookProjectCardMovedPropProjectCardType", - "WebhookProjectCardMovedType", + "WebhookPingPropHookPropConfigType", + "WebhookPingPropHookType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0633.py b/githubkit/versions/v2022_11_28/types/group_0633.py index c75678d30..76f44f172 100644 --- a/githubkit/versions/v2022_11_28/types/group_0633.py +++ b/githubkit/versions/v2022_11_28/types/group_0633.py @@ -9,57 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): - """Project Card""" +class WebhookPingFormEncodedType(TypedDict): + """WebhookPingFormEncoded - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str + The webhooks ping payload encoded with URL encoding. + """ + payload: str -class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", - "WebhookProjectCardMovedPropProjectCardAllof0Type", -) +__all__ = ("WebhookPingFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0634.py b/githubkit/versions/v2022_11_28/types/group_0634.py index 8e4564103..b80d4648f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0634.py +++ b/githubkit/versions/v2022_11_28/types/group_0634.py @@ -9,53 +9,44 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0430 import WebhooksProjectCardType -class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1""" - - after_id: Union[int, None] - archived: NotRequired[bool] - column_id: NotRequired[int] - column_url: NotRequired[str] - created_at: NotRequired[str] - creator: NotRequired[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] - ] - id: NotRequired[int] - node_id: NotRequired[str] - note: NotRequired[Union[str, None]] - project_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - - -class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + +class WebhookProjectCardConvertedType(TypedDict): + """project_card converted event""" + + action: Literal["converted"] + changes: WebhookProjectCardConvertedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + + +class WebhookProjectCardConvertedPropChangesType(TypedDict): + """WebhookProjectCardConvertedPropChanges""" + + note: WebhookProjectCardConvertedPropChangesPropNoteType + + +class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", - "WebhookProjectCardMovedPropProjectCardAllof1Type", + "WebhookProjectCardConvertedPropChangesPropNoteType", + "WebhookProjectCardConvertedPropChangesType", + "WebhookProjectCardConvertedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0635.py b/githubkit/versions/v2022_11_28/types/group_0635.py index 7f34fcb5c..fcd05b3a8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0635.py +++ b/githubkit/versions/v2022_11_28/types/group_0635.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0425 import WebhooksProjectType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0430 import WebhooksProjectCardType -class WebhookProjectClosedType(TypedDict): - """project closed event""" +class WebhookProjectCardCreatedType(TypedDict): + """project_card created event""" - action: Literal["closed"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType + project_card: WebhooksProjectCardType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectClosedType",) +__all__ = ("WebhookProjectCardCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0636.py b/githubkit/versions/v2022_11_28/types/group_0636.py index 93058da56..c03e070a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0636.py +++ b/githubkit/versions/v2022_11_28/types/group_0636.py @@ -9,27 +9,76 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0426 import WebhooksProjectColumnType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookProjectColumnCreatedType(TypedDict): - """project_column created event""" +class WebhookProjectCardDeletedType(TypedDict): + """project_card deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + project_card: WebhookProjectCardDeletedPropProjectCardType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: SimpleUserType -__all__ = ("WebhookProjectColumnCreatedType",) +class WebhookProjectCardDeletedPropProjectCardType(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: Union[int, None] + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardDeletedPropProjectCardPropCreatorType", + "WebhookProjectCardDeletedPropProjectCardType", + "WebhookProjectCardDeletedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0637.py b/githubkit/versions/v2022_11_28/types/group_0637.py index 7623da3c6..5884fac5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0637.py +++ b/githubkit/versions/v2022_11_28/types/group_0637.py @@ -12,24 +12,41 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0426 import WebhooksProjectColumnType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0430 import WebhooksProjectCardType -class WebhookProjectColumnDeletedType(TypedDict): - """project_column deleted event""" +class WebhookProjectCardEditedType(TypedDict): + """project_card edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookProjectCardEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserType] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -__all__ = ("WebhookProjectColumnDeletedType",) +class WebhookProjectCardEditedPropChangesType(TypedDict): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNoteType + + +class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] + + +__all__ = ( + "WebhookProjectCardEditedPropChangesPropNoteType", + "WebhookProjectCardEditedPropChangesType", + "WebhookProjectCardEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0638.py b/githubkit/versions/v2022_11_28/types/group_0638.py index 6ff3113a2..e76f19136 100644 --- a/githubkit/versions/v2022_11_28/types/group_0638.py +++ b/githubkit/versions/v2022_11_28/types/group_0638.py @@ -9,44 +9,91 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0426 import WebhooksProjectColumnType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookProjectColumnEditedType(TypedDict): - """project_column edited event""" +class WebhookProjectCardMovedType(TypedDict): + """project_card moved event""" - action: Literal["edited"] - changes: WebhookProjectColumnEditedPropChangesType + action: Literal["moved"] + changes: NotRequired[WebhookProjectCardMovedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType + project_card: WebhookProjectCardMovedPropProjectCardType repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - - -class WebhookProjectColumnEditedPropChangesType(TypedDict): - """WebhookProjectColumnEditedPropChanges""" - - name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] - - -class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str + sender: SimpleUserType + + +class WebhookProjectCardMovedPropChangesType(TypedDict): + """WebhookProjectCardMovedPropChanges""" + + column_id: WebhookProjectCardMovedPropChangesPropColumnIdType + + +class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): + """WebhookProjectCardMovedPropChangesPropColumnId""" + + from_: int + + +class WebhookProjectCardMovedPropProjectCardType(TypedDict): + """WebhookProjectCardMovedPropProjectCard""" + + after_id: Union[Union[int, None], None] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] + id: int + node_id: str + note: Union[Union[str, None], None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookProjectColumnEditedPropChangesPropNameType", - "WebhookProjectColumnEditedPropChangesType", - "WebhookProjectColumnEditedType", + "WebhookProjectCardMovedPropChangesPropColumnIdType", + "WebhookProjectCardMovedPropChangesType", + "WebhookProjectCardMovedPropProjectCardMergedCreatorType", + "WebhookProjectCardMovedPropProjectCardType", + "WebhookProjectCardMovedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0639.py b/githubkit/versions/v2022_11_28/types/group_0639.py index f6b268998..c75678d30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0639.py +++ b/githubkit/versions/v2022_11_28/types/group_0639.py @@ -9,27 +9,57 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0426 import WebhooksProjectColumnType +class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): + """Project Card""" -class WebhookProjectColumnMovedType(TypedDict): - """project_column moved event""" + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str - action: Literal["moved"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType +class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): + """User""" -__all__ = ("WebhookProjectColumnMovedType",) + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", + "WebhookProjectCardMovedPropProjectCardAllof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0640.py b/githubkit/versions/v2022_11_28/types/group_0640.py index 9987bc448..8e4564103 100644 --- a/githubkit/versions/v2022_11_28/types/group_0640.py +++ b/githubkit/versions/v2022_11_28/types/group_0640.py @@ -9,27 +9,53 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0425 import WebhooksProjectType - -class WebhookProjectCreatedType(TypedDict): - """project created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - - -__all__ = ("WebhookProjectCreatedType",) +class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1""" + + after_id: Union[int, None] + archived: NotRequired[bool] + column_id: NotRequired[int] + column_url: NotRequired[str] + created_at: NotRequired[str] + creator: NotRequired[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] + ] + id: NotRequired[int] + node_id: NotRequired[str] + note: NotRequired[Union[str, None]] + project_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", + "WebhookProjectCardMovedPropProjectCardAllof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0641.py b/githubkit/versions/v2022_11_28/types/group_0641.py index 495f67845..764064db0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0641.py +++ b/githubkit/versions/v2022_11_28/types/group_0641.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0425 import WebhooksProjectType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0431 import WebhooksProjectType -class WebhookProjectDeletedType(TypedDict): - """project deleted event""" +class WebhookProjectClosedType(TypedDict): + """project closed event""" - action: Literal["deleted"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project: WebhooksProjectType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -__all__ = ("WebhookProjectDeletedType",) +__all__ = ("WebhookProjectClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0642.py b/githubkit/versions/v2022_11_28/types/group_0642.py index 596541a8a..2dfc40bb2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0642.py +++ b/githubkit/versions/v2022_11_28/types/group_0642.py @@ -12,52 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0425 import WebhooksProjectType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0432 import WebhooksProjectColumnType -class WebhookProjectEditedType(TypedDict): - """project edited event""" +class WebhookProjectColumnCreatedType(TypedDict): + """project_column created event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectEditedPropChangesType] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType + project_column: WebhooksProjectColumnType repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] -class WebhookProjectEditedPropChangesType(TypedDict): - """WebhookProjectEditedPropChanges - - The changes to the project if the action was `edited`. - """ - - body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] - name: NotRequired[WebhookProjectEditedPropChangesPropNameType] - - -class WebhookProjectEditedPropChangesPropBodyType(TypedDict): - """WebhookProjectEditedPropChangesPropBody""" - - from_: str - - -class WebhookProjectEditedPropChangesPropNameType(TypedDict): - """WebhookProjectEditedPropChangesPropName""" - - from_: str - - -__all__ = ( - "WebhookProjectEditedPropChangesPropBodyType", - "WebhookProjectEditedPropChangesPropNameType", - "WebhookProjectEditedPropChangesType", - "WebhookProjectEditedType", -) +__all__ = ("WebhookProjectColumnCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0643.py b/githubkit/versions/v2022_11_28/types/group_0643.py index fa8cca7ac..badb9690c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0643.py +++ b/githubkit/versions/v2022_11_28/types/group_0643.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0425 import WebhooksProjectType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0432 import WebhooksProjectColumnType -class WebhookProjectReopenedType(TypedDict): - """project reopened event""" +class WebhookProjectColumnDeletedType(TypedDict): + """project_column deleted event""" - action: Literal["reopened"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + project_column: WebhooksProjectColumnType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectReopenedType",) +__all__ = ("WebhookProjectColumnDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0644.py b/githubkit/versions/v2022_11_28/types/group_0644.py index dd91a0b14..b5927d58f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0644.py +++ b/githubkit/versions/v2022_11_28/types/group_0644.py @@ -12,20 +12,41 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0427 import ProjectsV2Type +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0432 import WebhooksProjectColumnType -class WebhookProjectsV2ProjectClosedType(TypedDict): - """Projects v2 Project Closed Event""" +class WebhookProjectColumnEditedType(TypedDict): + """project_column edited event""" - action: Literal["closed"] + action: Literal["edited"] + changes: WebhookProjectColumnEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectsV2ProjectClosedType",) +class WebhookProjectColumnEditedPropChangesType(TypedDict): + """WebhookProjectColumnEditedPropChanges""" + + name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] + + +class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookProjectColumnEditedPropChangesPropNameType", + "WebhookProjectColumnEditedPropChangesType", + "WebhookProjectColumnEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0645.py b/githubkit/versions/v2022_11_28/types/group_0645.py index 8ebead824..09a8ce88b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0645.py +++ b/githubkit/versions/v2022_11_28/types/group_0645.py @@ -12,23 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0427 import ProjectsV2Type +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0432 import WebhooksProjectColumnType -class WebhookProjectsV2ProjectCreatedType(TypedDict): - """WebhookProjectsV2ProjectCreated +class WebhookProjectColumnMovedType(TypedDict): + """project_column moved event""" - A project was created - """ - - action: Literal["created"] + action: Literal["moved"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectCreatedType",) +__all__ = ("WebhookProjectColumnMovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0646.py b/githubkit/versions/v2022_11_28/types/group_0646.py index 9d649526b..81f319f6c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0646.py +++ b/githubkit/versions/v2022_11_28/types/group_0646.py @@ -12,20 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0427 import ProjectsV2Type +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0431 import WebhooksProjectType -class WebhookProjectsV2ProjectDeletedType(TypedDict): - """Projects v2 Project Deleted Event""" +class WebhookProjectCreatedType(TypedDict): + """project created event""" - action: Literal["deleted"] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectDeletedType",) +__all__ = ("WebhookProjectCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0647.py b/githubkit/versions/v2022_11_28/types/group_0647.py index 0564e3130..56c727571 100644 --- a/githubkit/versions/v2022_11_28/types/group_0647.py +++ b/githubkit/versions/v2022_11_28/types/group_0647.py @@ -12,69 +12,24 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0427 import ProjectsV2Type +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0431 import WebhooksProjectType -class WebhookProjectsV2ProjectEditedType(TypedDict): - """Projects v2 Project Edited Event""" +class WebhookProjectDeletedType(TypedDict): + """project deleted event""" - action: Literal["edited"] - changes: WebhookProjectsV2ProjectEditedPropChangesType + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserType] -class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChanges""" - - description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType - ] - public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] - short_description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType - ] - title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] - - -class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - - from_: NotRequired[bool] - to: NotRequired[bool] - - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - - from_: NotRequired[str] - to: NotRequired[str] - - -__all__ = ( - "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", - "WebhookProjectsV2ProjectEditedPropChangesType", - "WebhookProjectsV2ProjectEditedType", -) +__all__ = ("WebhookProjectDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0648.py b/githubkit/versions/v2022_11_28/types/group_0648.py index 65b47d05c..785111f6a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0648.py +++ b/githubkit/versions/v2022_11_28/types/group_0648.py @@ -12,22 +12,52 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0428 import WebhooksProjectChangesType -from .group_0429 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0431 import WebhooksProjectType -class WebhookProjectsV2ItemArchivedType(TypedDict): - """Projects v2 Item Archived Event""" +class WebhookProjectEditedType(TypedDict): + """project edited event""" - action: Literal["archived"] - changes: WebhooksProjectChangesType + action: Literal["edited"] + changes: NotRequired[WebhookProjectEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectsV2ItemArchivedType",) +class WebhookProjectEditedPropChangesType(TypedDict): + """WebhookProjectEditedPropChanges + + The changes to the project if the action was `edited`. + """ + + body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] + name: NotRequired[WebhookProjectEditedPropChangesPropNameType] + + +class WebhookProjectEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectEditedPropChangesPropBody""" + + from_: str + + +class WebhookProjectEditedPropChangesPropNameType(TypedDict): + """WebhookProjectEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookProjectEditedPropChangesPropBodyType", + "WebhookProjectEditedPropChangesPropNameType", + "WebhookProjectEditedPropChangesType", + "WebhookProjectEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0649.py b/githubkit/versions/v2022_11_28/types/group_0649.py index 9cef9800f..766fc8d05 100644 --- a/githubkit/versions/v2022_11_28/types/group_0649.py +++ b/githubkit/versions/v2022_11_28/types/group_0649.py @@ -9,43 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0429 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0431 import WebhooksProjectType -class WebhookProjectsV2ItemConvertedType(TypedDict): - """Projects v2 Item Converted Event""" +class WebhookProjectReopenedType(TypedDict): + """project reopened event""" - action: Literal["converted"] - changes: WebhookProjectsV2ItemConvertedPropChangesType + action: Literal["reopened"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChanges""" - - content_type: NotRequired[ - WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType - ] - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[str] - - -__all__ = ( - "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", - "WebhookProjectsV2ItemConvertedPropChangesType", - "WebhookProjectsV2ItemConvertedType", -) +__all__ = ("WebhookProjectReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0650.py b/githubkit/versions/v2022_11_28/types/group_0650.py index 82813be51..7fbf11c8d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0650.py +++ b/githubkit/versions/v2022_11_28/types/group_0650.py @@ -12,20 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0429 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0433 import ProjectsV2Type -class WebhookProjectsV2ItemCreatedType(TypedDict): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ProjectClosedType(TypedDict): + """Projects v2 Project Closed Event""" - action: Literal["created"] + action: Literal["closed"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemCreatedType",) +__all__ = ("WebhookProjectsV2ProjectClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0651.py b/githubkit/versions/v2022_11_28/types/group_0651.py index 90a698d54..679c50c23 100644 --- a/githubkit/versions/v2022_11_28/types/group_0651.py +++ b/githubkit/versions/v2022_11_28/types/group_0651.py @@ -12,20 +12,23 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0429 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0433 import ProjectsV2Type -class WebhookProjectsV2ItemDeletedType(TypedDict): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ProjectCreatedType(TypedDict): + """WebhookProjectsV2ProjectCreated - action: Literal["deleted"] + A project was created + """ + + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemDeletedType",) +__all__ = ("WebhookProjectsV2ProjectCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0652.py b/githubkit/versions/v2022_11_28/types/group_0652.py index 5d40443b8..9bc9325d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0652.py +++ b/githubkit/versions/v2022_11_28/types/group_0652.py @@ -9,107 +9,23 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0429 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0433 import ProjectsV2Type -class WebhookProjectsV2ItemEditedType(TypedDict): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ProjectDeletedType(TypedDict): + """Projects v2 Project Deleted Event""" - action: Literal["edited"] - changes: NotRequired[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0Type, - WebhookProjectsV2ItemEditedPropChangesOneof1Type, - ] - ] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType - - -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: NotRequired[str] - field_type: NotRequired[str] - field_name: NotRequired[str] - project_number: NotRequired[int] - from_: NotRequired[ - Union[ - str, - int, - ProjectsV2SingleSelectOptionType, - ProjectsV2IterationSettingType, - None, - ] - ] - to: NotRequired[ - Union[ - str, - int, - ProjectsV2SingleSelectOptionType, - ProjectsV2IterationSettingType, - None, - ] - ] - - -class ProjectsV2SingleSelectOptionType(TypedDict): - """Projects v2 Single Select Option - - An option for a single select field - """ - - id: str - name: str - color: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - - -class ProjectsV2IterationSettingType(TypedDict): - """Projects v2 Iteration Setting - - An iteration setting for an iteration field - """ - - id: str - title: str - duration: NotRequired[Union[float, None]] - start_date: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" - - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType - - -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "ProjectsV2IterationSettingType", - "ProjectsV2SingleSelectOptionType", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", - "WebhookProjectsV2ItemEditedPropChangesOneof0Type", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", - "WebhookProjectsV2ItemEditedPropChangesOneof1Type", - "WebhookProjectsV2ItemEditedType", -) +__all__ = ("WebhookProjectsV2ProjectDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0653.py b/githubkit/versions/v2022_11_28/types/group_0653.py index b3b1d7911..0ed153965 100644 --- a/githubkit/versions/v2022_11_28/types/group_0653.py +++ b/githubkit/versions/v2022_11_28/types/group_0653.py @@ -12,42 +12,69 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0429 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0433 import ProjectsV2Type -class WebhookProjectsV2ItemReorderedType(TypedDict): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ProjectEditedType(TypedDict): + """Projects v2 Project Edited Event""" - action: Literal["reordered"] - changes: WebhookProjectsV2ItemReorderedPropChangesType + action: Literal["edited"] + changes: WebhookProjectsV2ProjectEditedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): - """WebhookProjectsV2ItemReorderedPropChanges""" +class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChanges""" - previous_projects_v2_item_node_id: NotRequired[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType + description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType ] + public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] + short_description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType + ] + title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] + + +class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( - TypedDict -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" +class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" + + from_: NotRequired[bool] + to: NotRequired[bool] + + +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" from_: NotRequired[Union[str, None]] to: NotRequired[Union[str, None]] +class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" + + from_: NotRequired[str] + to: NotRequired[str] + + __all__ = ( - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", - "WebhookProjectsV2ItemReorderedPropChangesType", - "WebhookProjectsV2ItemReorderedType", + "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", + "WebhookProjectsV2ProjectEditedPropChangesType", + "WebhookProjectsV2ProjectEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0654.py b/githubkit/versions/v2022_11_28/types/group_0654.py index 912a70094..5876848c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0654.py +++ b/githubkit/versions/v2022_11_28/types/group_0654.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0428 import WebhooksProjectChangesType -from .group_0429 import ProjectsV2ItemType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0434 import WebhooksProjectChangesType +from .group_0435 import ProjectsV2ItemType -class WebhookProjectsV2ItemRestoredType(TypedDict): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ItemArchivedType(TypedDict): + """Projects v2 Item Archived Event""" - action: Literal["restored"] + action: Literal["archived"] changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType @@ -30,4 +30,4 @@ class WebhookProjectsV2ItemRestoredType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemRestoredType",) +__all__ = ("WebhookProjectsV2ItemArchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0655.py b/githubkit/versions/v2022_11_28/types/group_0655.py index d96d53753..55a750d4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0655.py +++ b/githubkit/versions/v2022_11_28/types/group_0655.py @@ -9,23 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0427 import ProjectsV2Type +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0435 import ProjectsV2ItemType -class WebhookProjectsV2ProjectReopenedType(TypedDict): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2ItemConvertedType(TypedDict): + """Projects v2 Item Converted Event""" - action: Literal["reopened"] + action: Literal["converted"] + changes: WebhookProjectsV2ItemConvertedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectReopenedType",) +class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChanges""" + + content_type: NotRequired[ + WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType + ] + + +class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[str] + + +__all__ = ( + "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", + "WebhookProjectsV2ItemConvertedPropChangesType", + "WebhookProjectsV2ItemConvertedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0656.py b/githubkit/versions/v2022_11_28/types/group_0656.py index 71020393e..18d00b1f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0656.py +++ b/githubkit/versions/v2022_11_28/types/group_0656.py @@ -12,20 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0430 import ProjectsV2StatusUpdateType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0435 import ProjectsV2ItemType -class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): - """Projects v2 Status Update Created Event""" +class WebhookProjectsV2ItemCreatedType(TypedDict): + """Projects v2 Item Created Event""" action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) +__all__ = ("WebhookProjectsV2ItemCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0657.py b/githubkit/versions/v2022_11_28/types/group_0657.py index b99f912e4..e078eb1c2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0657.py +++ b/githubkit/versions/v2022_11_28/types/group_0657.py @@ -12,20 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0430 import ProjectsV2StatusUpdateType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0435 import ProjectsV2ItemType -class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): - """Projects v2 Status Update Deleted Event""" +class WebhookProjectsV2ItemDeletedType(TypedDict): + """Projects v2 Item Deleted Event""" action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) +__all__ = ("WebhookProjectsV2ItemDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0658.py b/githubkit/versions/v2022_11_28/types/group_0658.py index f480be9ac..53cc31cf3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0658.py +++ b/githubkit/versions/v2022_11_28/types/group_0658.py @@ -9,77 +9,107 @@ from __future__ import annotations -from datetime import date from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0430 import ProjectsV2StatusUpdateType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0435 import ProjectsV2ItemType -class WebhookProjectsV2StatusUpdateEditedType(TypedDict): - """Projects v2 Status Update Edited Event""" +class WebhookProjectsV2ItemEditedType(TypedDict): + """Projects v2 Item Edited Event""" action: Literal["edited"] - changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] + changes: NotRequired[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0Type, + WebhookProjectsV2ItemEditedPropChangesOneof1Type, + ] + ] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookProjectsV2StatusUpdateEditedPropChangesType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChanges""" +class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType + + +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - body: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType] - status: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType] - start_date: NotRequired[ - WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType + field_node_id: NotRequired[str] + field_type: NotRequired[str] + field_name: NotRequired[str] + project_number: NotRequired[int] + from_: NotRequired[ + Union[ + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, + None, + ] ] - target_date: NotRequired[ - WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType + to: NotRequired[ + Union[ + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, + None, + ] ] -class WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" +class ProjectsV2SingleSelectOptionType(TypedDict): + """Projects v2 Single Select Option - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] + An option for a single select field + """ + id: str + name: str + color: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" - from_: NotRequired[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] - to: NotRequired[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] +class ProjectsV2IterationSettingType(TypedDict): + """Projects v2 Iteration Setting + An iteration setting for an iteration field + """ -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" + id: str + title: str + duration: NotRequired[Union[float, None]] + start_date: NotRequired[Union[str, None]] - from_: NotRequired[Union[date, None]] - to: NotRequired[Union[date, None]] +class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" -class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType - from_: NotRequired[Union[date, None]] - to: NotRequired[Union[date, None]] + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", - "WebhookProjectsV2StatusUpdateEditedPropChangesType", - "WebhookProjectsV2StatusUpdateEditedType", + "ProjectsV2IterationSettingType", + "ProjectsV2SingleSelectOptionType", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", + "WebhookProjectsV2ItemEditedPropChangesOneof0Type", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", + "WebhookProjectsV2ItemEditedPropChangesOneof1Type", + "WebhookProjectsV2ItemEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0659.py b/githubkit/versions/v2022_11_28/types/group_0659.py index b9a25c4d5..113cc9c5b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0659.py +++ b/githubkit/versions/v2022_11_28/types/group_0659.py @@ -9,23 +9,45 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0435 import ProjectsV2ItemType -class WebhookPublicType(TypedDict): - """public event""" +class WebhookProjectsV2ItemReorderedType(TypedDict): + """Projects v2 Item Reordered Event""" - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reordered"] + changes: WebhookProjectsV2ItemReorderedPropChangesType installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookPublicType",) +class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): + """WebhookProjectsV2ItemReorderedPropChanges""" + + previous_projects_v2_item_node_id: NotRequired[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType + ] + + +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( + TypedDict +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +__all__ = ( + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", + "WebhookProjectsV2ItemReorderedPropChangesType", + "WebhookProjectsV2ItemReorderedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0660.py b/githubkit/versions/v2022_11_28/types/group_0660.py index 44d520b87..0ac82acd7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0660.py +++ b/githubkit/versions/v2022_11_28/types/group_0660.py @@ -9,950 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0404 import WebhooksUserType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0434 import WebhooksProjectChangesType +from .group_0435 import ProjectsV2ItemType -class WebhookPullRequestAssignedType(TypedDict): - """pull_request assigned event""" +class WebhookProjectsV2ItemRestoredType(TypedDict): + """Projects v2 Item Restored Event""" - action: Literal["assigned"] - assignee: Union[WebhooksUserType, None] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["restored"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAssignedPropPullRequestType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookPullRequestAssignedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAssignedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestAssignedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAssignedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestAssignedPropPullRequestPropBaseType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAssignedPropPullRequestPropHeadType", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAssignedPropPullRequestPropLinksType", - "WebhookPullRequestAssignedPropPullRequestPropMergedByType", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropUserType", - "WebhookPullRequestAssignedPropPullRequestType", - "WebhookPullRequestAssignedType", -) +__all__ = ("WebhookProjectsV2ItemRestoredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0661.py b/githubkit/versions/v2022_11_28/types/group_0661.py index 21f39876e..861044b30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0661.py +++ b/githubkit/versions/v2022_11_28/types/group_0661.py @@ -9,997 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0433 import ProjectsV2Type -class WebhookPullRequestAutoMergeDisabledType(TypedDict): - """pull_request auto_merge_disabled event""" +class WebhookProjectsV2ProjectReopenedType(TypedDict): + """Projects v2 Project Reopened Event""" - action: Literal["auto_merge_disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType - reason: str - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserType -class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_discussions: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestType", - "WebhookPullRequestAutoMergeDisabledType", -) +__all__ = ("WebhookProjectsV2ProjectReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0662.py b/githubkit/versions/v2022_11_28/types/group_0662.py index f89a50aeb..4dd531093 100644 --- a/githubkit/versions/v2022_11_28/types/group_0662.py +++ b/githubkit/versions/v2022_11_28/types/group_0662.py @@ -9,987 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0436 import ProjectsV2StatusUpdateType -class WebhookPullRequestAutoMergeEnabledType(TypedDict): - """pull_request auto_merge_enabled event""" +class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): + """Projects v2 Status Update Created Event""" - action: Literal["auto_merge_enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType - reason: NotRequired[str] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestType", - "WebhookPullRequestAutoMergeEnabledType", -) +__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0663.py b/githubkit/versions/v2022_11_28/types/group_0663.py index 820698b07..f65e5b386 100644 --- a/githubkit/versions/v2022_11_28/types/group_0663.py +++ b/githubkit/versions/v2022_11_28/types/group_0663.py @@ -12,25 +12,20 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0431 import PullRequestWebhookType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0436 import ProjectsV2StatusUpdateType -class WebhookPullRequestClosedType(TypedDict): - """pull_request closed event""" +class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): + """Projects v2 Status Update Deleted Event""" - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -__all__ = ("WebhookPullRequestClosedType",) +__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0664.py b/githubkit/versions/v2022_11_28/types/group_0664.py index 4823b68d1..de0574900 100644 --- a/githubkit/versions/v2022_11_28/types/group_0664.py +++ b/githubkit/versions/v2022_11_28/types/group_0664.py @@ -9,28 +9,77 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0431 import PullRequestWebhookType +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0436 import ProjectsV2StatusUpdateType -class WebhookPullRequestConvertedToDraftType(TypedDict): - """pull_request converted_to_draft event""" +class WebhookProjectsV2StatusUpdateEditedType(TypedDict): + """Projects v2 Status Update Edited Event""" - action: Literal["converted_to_draft"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["edited"] + changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -__all__ = ("WebhookPullRequestConvertedToDraftType",) +class WebhookProjectsV2StatusUpdateEditedPropChangesType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChanges""" + + body: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType] + status: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType] + start_date: NotRequired[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType + ] + target_date: NotRequired[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType + ] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" + + from_: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + to: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" + + from_: NotRequired[Union[date, None]] + to: NotRequired[Union[date, None]] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" + + from_: NotRequired[Union[date, None]] + to: NotRequired[Union[date, None]] + + +__all__ = ( + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesType", + "WebhookProjectsV2StatusUpdateEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0665.py b/githubkit/versions/v2022_11_28/types/group_0665.py index a8765f194..846843dcc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0665.py +++ b/githubkit/versions/v2022_11_28/types/group_0665.py @@ -9,28 +9,23 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0038 import MilestoneType -from .group_0393 import EnterpriseWebhooksType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0433 import WebhooksPullRequest5Type +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPullRequestDemilestonedType(TypedDict): - """pull_request demilestoned event""" +class WebhookPublicType(TypedDict): + """public event""" - action: Literal["demilestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] - number: int + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookPullRequestDemilestonedType",) +__all__ = ("WebhookPublicType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0666.py b/githubkit/versions/v2022_11_28/types/group_0666.py index ef3cfeed0..f4ee4fc95 100644 --- a/githubkit/versions/v2022_11_28/types/group_0666.py +++ b/githubkit/versions/v2022_11_28/types/group_0666.py @@ -13,51 +13,39 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0410 import WebhooksUserType -class WebhookPullRequestDequeuedType(TypedDict): - """pull_request dequeued event""" +class WebhookPullRequestAssignedType(TypedDict): + """pull_request assigned event""" - action: Literal["dequeued"] + action: Literal["assigned"] + assignee: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestDequeuedPropPullRequestType - reason: Literal[ - "UNKNOWN_REMOVAL_REASON", - "MANUAL", - "MERGE", - "MERGE_CONFLICT", - "CI_FAILURE", - "CI_TIMEOUT", - "ALREADY_MERGED", - "QUEUE_CLEARED", - "ROLL_BACK", - "BRANCH_PROTECTIONS", - "GIT_TREE_INVALID", - "INVALID_MERGE_COMMIT", - ] + pull_request: WebhookPullRequestAssignedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestDequeuedPropPullRequestPropLinksType + links: WebhookPullRequestAssignedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -69,8 +57,8 @@ class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestDequeuedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestAssignedPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -82,11 +70,11 @@ class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestDequeuedPropPullRequestPropHeadType + head: WebhookPullRequestAssignedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -95,22 +83,22 @@ class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] ] - milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -120,10 +108,10 @@ class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] -class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -145,12 +133,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -172,11 +160,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict) site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -185,12 +174,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -219,7 +208,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -231,7 +220,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -258,7 +247,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -268,7 +257,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -284,7 +273,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -311,7 +300,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(Type user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -335,12 +324,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -367,48 +356,48 @@ class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropLinks""" +class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" - comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -416,7 +405,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -424,29 +413,29 @@ class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropBase""" +class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -473,7 +462,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -533,7 +522,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -548,10 +537,10 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -585,7 +574,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -597,7 +586,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -624,10 +613,10 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -636,44 +625,17 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" +class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -733,7 +695,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -748,10 +710,10 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -785,7 +747,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -797,7 +759,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -824,10 +786,10 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -836,7 +798,34 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -845,29 +834,29 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa rent """ @@ -884,7 +873,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -899,7 +888,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -910,10 +899,10 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -929,41 +918,41 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent __all__ = ( - "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropBaseType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadType", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksType", - "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropUserType", - "WebhookPullRequestDequeuedPropPullRequestType", - "WebhookPullRequestDequeuedType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestAssignedPropPullRequestPropBaseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropHeadType", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAssignedPropPullRequestPropLinksType", + "WebhookPullRequestAssignedPropPullRequestPropMergedByType", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropUserType", + "WebhookPullRequestAssignedPropPullRequestType", + "WebhookPullRequestAssignedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0667.py b/githubkit/versions/v2022_11_28/types/group_0667.py index e49611350..29af09191 100644 --- a/githubkit/versions/v2022_11_28/types/group_0667.py +++ b/githubkit/versions/v2022_11_28/types/group_0667.py @@ -9,79 +9,997 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0431 import PullRequestWebhookType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPullRequestEditedType(TypedDict): - """pull_request edited event""" +class WebhookPullRequestAutoMergeDisabledType(TypedDict): + """pull_request auto_merge_disabled event""" - action: Literal["edited"] - changes: WebhookPullRequestEditedPropChangesType + action: Literal["auto_merge_disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType + reason: str repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -class WebhookPullRequestEditedPropChangesType(TypedDict): - """WebhookPullRequestEditedPropChanges +class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): + """Pull Request""" - The changes to the comment if the action was `edited`. + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None + ] + assignees: list[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository """ - base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] - body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] - title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_discussions: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" -class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBody""" + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] - from_: str +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" -class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): - """WebhookPullRequestEditedPropChangesPropTitle""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - from_: str +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ -class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBase""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - ref: WebhookPullRequestEditedPropChangesPropBasePropRefType - sha: WebhookPullRequestEditedPropChangesPropBasePropShaType +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" -class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" + label: str + ref: str + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None + ] - from_: str +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" - from_: str +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookPullRequestEditedPropChangesPropBasePropRefType", - "WebhookPullRequestEditedPropChangesPropBasePropShaType", - "WebhookPullRequestEditedPropChangesPropBaseType", - "WebhookPullRequestEditedPropChangesPropBodyType", - "WebhookPullRequestEditedPropChangesPropTitleType", - "WebhookPullRequestEditedPropChangesType", - "WebhookPullRequestEditedType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestType", + "WebhookPullRequestAutoMergeDisabledType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0668.py b/githubkit/versions/v2022_11_28/types/group_0668.py index 1cd5bf45f..3a321d7bc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0668.py +++ b/githubkit/versions/v2022_11_28/types/group_0668.py @@ -13,37 +13,43 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPullRequestEnqueuedType(TypedDict): - """pull_request enqueued event""" +class WebhookPullRequestAutoMergeEnabledType(TypedDict): + """pull_request auto_merge_enabled event""" - action: Literal["enqueued"] + action: Literal["auto_merge_enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestEnqueuedPropPullRequestType + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType + reason: NotRequired[str] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -55,8 +61,10 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -68,11 +76,11 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -81,22 +89,24 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -106,10 +116,10 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,7 +146,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -162,7 +174,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict) url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -171,12 +183,13 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,7 +218,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -217,7 +230,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -244,7 +257,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -254,7 +267,8 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -270,7 +284,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -297,7 +313,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(Type user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -321,12 +337,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -353,48 +369,54 @@ class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -402,7 +424,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -410,29 +432,33 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -459,7 +485,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -519,7 +545,8 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -534,10 +561,11 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -571,7 +599,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -583,7 +611,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -610,10 +640,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -622,17 +652,19 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -659,7 +691,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -719,7 +751,8 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -734,10 +767,11 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -771,7 +805,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -783,7 +817,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -810,10 +846,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -822,7 +858,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -831,30 +867,30 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent """ description: Union[str, None] @@ -870,7 +906,9 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -885,7 +923,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -896,10 +934,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ description: Union[str, None] html_url: str @@ -915,41 +955,41 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent __all__ = ( - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestType", - "WebhookPullRequestEnqueuedType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestType", + "WebhookPullRequestAutoMergeEnabledType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0669.py b/githubkit/versions/v2022_11_28/types/group_0669.py index c4043337a..cb78b6dc2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0669.py +++ b/githubkit/versions/v2022_11_28/types/group_0669.py @@ -9,945 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0408 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0437 import PullRequestWebhookType -class WebhookPullRequestLabeledType(TypedDict): - """pull_request labeled event""" +class WebhookPullRequestClosedType(TypedDict): + """pull_request closed event""" - action: Literal["labeled"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLabeledPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestLabeledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLabeledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLabeledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLabeledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestLabeledPropPullRequestPropBaseType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLabeledPropPullRequestPropHeadType", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLabeledPropPullRequestPropLinksType", - "WebhookPullRequestLabeledPropPullRequestPropMergedByType", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropUserType", - "WebhookPullRequestLabeledPropPullRequestType", - "WebhookPullRequestLabeledType", -) +__all__ = ("WebhookPullRequestClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0670.py b/githubkit/versions/v2022_11_28/types/group_0670.py index 6fbe44a56..5f0ddda6a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0670.py +++ b/githubkit/versions/v2022_11_28/types/group_0670.py @@ -9,937 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0437 import PullRequestWebhookType -class WebhookPullRequestLockedType(TypedDict): - """pull_request locked event""" +class WebhookPullRequestConvertedToDraftType(TypedDict): + """pull_request converted_to_draft event""" - action: Literal["locked"] + action: Literal["converted_to_draft"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLockedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestLockedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLockedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLockedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestLockedPropPullRequestPropAssigneeType", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestLockedPropPullRequestPropBaseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLockedPropPullRequestPropHeadType", - "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLockedPropPullRequestPropLinksType", - "WebhookPullRequestLockedPropPullRequestPropMergedByType", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLockedPropPullRequestPropMilestoneType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLockedPropPullRequestPropUserType", - "WebhookPullRequestLockedPropPullRequestType", - "WebhookPullRequestLockedType", -) +__all__ = ("WebhookPullRequestConvertedToDraftType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0671.py b/githubkit/versions/v2022_11_28/types/group_0671.py index b2c30254c..fc9f9fd0d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0671.py +++ b/githubkit/versions/v2022_11_28/types/group_0671.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0038 import MilestoneType -from .group_0393 import EnterpriseWebhooksType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0433 import WebhooksPullRequest5Type +from .group_0003 import SimpleUserType +from .group_0039 import MilestoneType +from .group_0399 import EnterpriseWebhooksType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0439 import WebhooksPullRequest5Type -class WebhookPullRequestMilestonedType(TypedDict): - """pull_request milestoned event""" +class WebhookPullRequestDemilestonedType(TypedDict): + """pull_request demilestoned event""" - action: Literal["milestoned"] + action: Literal["demilestoned"] enterprise: NotRequired[EnterpriseWebhooksType] milestone: NotRequired[MilestoneType] number: int @@ -33,4 +33,4 @@ class WebhookPullRequestMilestonedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookPullRequestMilestonedType",) +__all__ = ("WebhookPullRequestDemilestonedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0672.py b/githubkit/versions/v2022_11_28/types/group_0672.py index d48698590..13c443355 100644 --- a/githubkit/versions/v2022_11_28/types/group_0672.py +++ b/githubkit/versions/v2022_11_28/types/group_0672.py @@ -9,28 +9,961 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0431 import PullRequestWebhookType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPullRequestOpenedType(TypedDict): - """pull_request opened event""" +class WebhookPullRequestDequeuedType(TypedDict): + """pull_request dequeued event""" - action: Literal["opened"] + action: Literal["dequeued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestDequeuedPropPullRequestType + reason: Literal[ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT", + ] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPullRequestOpenedType",) +class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestDequeuedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestDequeuedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropBaseType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadType", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksType", + "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropUserType", + "WebhookPullRequestDequeuedPropPullRequestType", + "WebhookPullRequestDequeuedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0673.py b/githubkit/versions/v2022_11_28/types/group_0673.py index 19229ee8a..60988aa5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0673.py +++ b/githubkit/versions/v2022_11_28/types/group_0673.py @@ -12,25 +12,76 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0431 import PullRequestWebhookType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0437 import PullRequestWebhookType -class WebhookPullRequestReadyForReviewType(TypedDict): - """pull_request ready_for_review event""" +class WebhookPullRequestEditedType(TypedDict): + """pull_request edited event""" - action: Literal["ready_for_review"] + action: Literal["edited"] + changes: WebhookPullRequestEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookPullRequestReadyForReviewType",) +class WebhookPullRequestEditedPropChangesType(TypedDict): + """WebhookPullRequestEditedPropChanges + + The changes to the comment if the action was `edited`. + """ + + base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] + body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] + title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] + + +class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): + """WebhookPullRequestEditedPropChangesPropTitle""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBase""" + + ref: WebhookPullRequestEditedPropChangesPropBasePropRefType + sha: WebhookPullRequestEditedPropChangesPropBasePropShaType + + +class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" + + from_: str + + +__all__ = ( + "WebhookPullRequestEditedPropChangesPropBasePropRefType", + "WebhookPullRequestEditedPropChangesPropBasePropShaType", + "WebhookPullRequestEditedPropChangesPropBaseType", + "WebhookPullRequestEditedPropChangesPropBodyType", + "WebhookPullRequestEditedPropChangesPropTitleType", + "WebhookPullRequestEditedPropChangesType", + "WebhookPullRequestEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0674.py b/githubkit/versions/v2022_11_28/types/group_0674.py index 472ce2580..214349e9b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0674.py +++ b/githubkit/versions/v2022_11_28/types/group_0674.py @@ -9,28 +9,947 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0431 import PullRequestWebhookType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPullRequestReopenedType(TypedDict): - """pull_request reopened event""" +class WebhookPullRequestEnqueuedType(TypedDict): + """pull_request enqueued event""" - action: Literal["reopened"] + action: Literal["enqueued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestEnqueuedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPullRequestReopenedType",) +class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestType", + "WebhookPullRequestEnqueuedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0675.py b/githubkit/versions/v2022_11_28/types/group_0675.py index 70c3bf075..70be1367e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0675.py +++ b/githubkit/versions/v2022_11_28/types/group_0675.py @@ -13,158 +13,39 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0414 import WebhooksLabelType -class WebhookPullRequestReviewCommentCreatedType(TypedDict): - """pull_request_review_comment created event""" +class WebhookPullRequestLabeledType(TypedDict): + """pull_request labeled event""" - action: Literal["created"] - comment: WebhookPullRequestReviewCommentCreatedPropCommentType + action: Literal["labeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType + pull_request: WebhookPullRequestLabeledPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, None] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str +class WebhookPullRequestLabeledPropPullRequestType(TypedDict): + """Pull Request""" - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType + links: WebhookPullRequestLabeledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -176,56 +57,61 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLabeledPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType + draft: bool + head: WebhookPullRequestLabeledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -252,9 +138,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(Type user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -280,7 +164,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -289,15 +173,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -324,9 +205,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -338,7 +217,34 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -348,8 +254,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -365,9 +270,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -394,7 +297,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -423,7 +326,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -450,66 +353,54 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDic user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -517,37 +408,29 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -574,9 +457,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -636,8 +517,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -652,11 +532,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -690,7 +569,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -702,9 +581,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -731,12 +608,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -745,23 +620,17 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -807,7 +676,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( has_pages: bool has_projects: bool has_wiki: bool - has_discussions: NotRequired[bool] + has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -821,8 +690,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -837,11 +705,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -875,7 +742,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -887,9 +754,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -916,12 +781,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -930,9 +793,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -959,7 +820,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -976,7 +837,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -987,11 +848,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent """ description: Union[str, None] @@ -1007,9 +868,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -1024,7 +883,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1035,12 +894,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -1056,47 +913,41 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte __all__ = ( - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", - "WebhookPullRequestReviewCommentCreatedPropCommentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestLabeledPropPullRequestPropBaseType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLabeledPropPullRequestPropHeadType", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLabeledPropPullRequestPropLinksType", + "WebhookPullRequestLabeledPropPullRequestPropMergedByType", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropUserType", + "WebhookPullRequestLabeledPropPullRequestType", + "WebhookPullRequestLabeledType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0676.py b/githubkit/versions/v2022_11_28/types/group_0676.py index 00aa52b69..cedeb2a0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0676.py +++ b/githubkit/versions/v2022_11_28/types/group_0676.py @@ -13,42 +13,37 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0434 import WebhooksReviewCommentType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPullRequestReviewCommentDeletedType(TypedDict): - """pull_request_review_comment deleted event""" +class WebhookPullRequestLockedType(TypedDict): + """pull_request locked event""" - action: Literal["deleted"] - comment: WebhooksReviewCommentType + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType + pull_request: WebhookPullRequestLockedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" +class WebhookPullRequestLockedPropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType + links: WebhookPullRequestLockedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -60,56 +55,61 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLockedPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType + draft: bool + head: WebhookPullRequestLockedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,9 +136,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(Type user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -160,11 +158,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsTyp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -173,15 +171,12 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -208,9 +203,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -222,7 +215,34 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -232,8 +252,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -249,9 +268,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -278,7 +295,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCrea user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -302,12 +319,12 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -334,104 +351,82 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDic user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -458,9 +453,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -520,8 +513,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -536,11 +528,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -574,9 +565,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): """License""" key: str @@ -586,9 +575,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -615,12 +602,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -629,23 +614,17 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -705,8 +684,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -721,11 +699,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -759,9 +736,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): """License""" key: str @@ -771,9 +746,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -800,12 +773,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -814,9 +785,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -843,7 +812,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -852,30 +821,30 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] @@ -891,9 +860,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -908,7 +875,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -919,12 +886,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -940,40 +905,41 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte __all__ = ( - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestType", - "WebhookPullRequestReviewCommentDeletedType", + "WebhookPullRequestLockedPropPullRequestPropAssigneeType", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestLockedPropPullRequestPropBaseType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLockedPropPullRequestPropHeadType", + "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLockedPropPullRequestPropLinksType", + "WebhookPullRequestLockedPropPullRequestPropMergedByType", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLockedPropPullRequestPropMilestoneType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLockedPropPullRequestPropUserType", + "WebhookPullRequestLockedPropPullRequestType", + "WebhookPullRequestLockedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0677.py b/githubkit/versions/v2022_11_28/types/group_0677.py index a177b8827..1e0c252d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0677.py +++ b/githubkit/versions/v2022_11_28/types/group_0677.py @@ -9,974 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0412 import WebhooksChangesType -from .group_0434 import WebhooksReviewCommentType +from .group_0003 import SimpleUserType +from .group_0039 import MilestoneType +from .group_0399 import EnterpriseWebhooksType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0439 import WebhooksPullRequest5Type -class WebhookPullRequestReviewCommentEditedType(TypedDict): - """pull_request_review_comment edited event""" +class WebhookPullRequestMilestonedType(TypedDict): + """pull_request milestoned event""" - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksReviewCommentType + action: Literal["milestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + milestone: NotRequired[MilestoneType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType + pull_request: WebhooksPullRequest5Type repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" - - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - user_view_type: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestType", - "WebhookPullRequestReviewCommentEditedType", -) +__all__ = ("WebhookPullRequestMilestonedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0678.py b/githubkit/versions/v2022_11_28/types/group_0678.py index 9fc1be175..c7ac6dd21 100644 --- a/githubkit/versions/v2022_11_28/types/group_0678.py +++ b/githubkit/versions/v2022_11_28/types/group_0678.py @@ -9,1024 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0437 import PullRequestWebhookType -class WebhookPullRequestReviewDismissedType(TypedDict): - """pull_request_review dismissed event""" +class WebhookPullRequestOpenedType(TypedDict): + """pull_request opened event""" - action: Literal["dismissed"] + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewDismissedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserType -class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): - """WebhookPullRequestReviewDismissedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: Literal["dismissed", "approved", "changes_requested"] - submitted_at: datetime - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksType", - "WebhookPullRequestReviewDismissedPropReviewPropUserType", - "WebhookPullRequestReviewDismissedPropReviewType", - "WebhookPullRequestReviewDismissedType", -) +__all__ = ("WebhookPullRequestOpenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0679.py b/githubkit/versions/v2022_11_28/types/group_0679.py index 4d556e741..d53439adc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0679.py +++ b/githubkit/versions/v2022_11_28/types/group_0679.py @@ -9,918 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0435 import WebhooksReviewType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0437 import PullRequestWebhookType -class WebhookPullRequestReviewEditedType(TypedDict): - """pull_request_review edited event""" +class WebhookPullRequestReadyForReviewType(TypedDict): + """pull_request ready_for_review event""" - action: Literal["edited"] - changes: WebhookPullRequestReviewEditedPropChangesType + action: Literal["ready_for_review"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewEditedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - review: WebhooksReviewType sender: SimpleUserType -class WebhookPullRequestReviewEditedPropChangesType(TypedDict): - """WebhookPullRequestReviewEditedPropChanges""" - - body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] - - -class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str - - -class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewEditedPropChangesPropBodyType", - "WebhookPullRequestReviewEditedPropChangesType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestType", - "WebhookPullRequestReviewEditedType", -) +__all__ = ("WebhookPullRequestReadyForReviewType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0680.py b/githubkit/versions/v2022_11_28/types/group_0680.py index 955aa86d5..6057b3331 100644 --- a/githubkit/versions/v2022_11_28/types/group_0680.py +++ b/githubkit/versions/v2022_11_28/types/group_0680.py @@ -9,1068 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0437 import PullRequestWebhookType -class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestReopenedType(TypedDict): + """pull_request reopened event""" - action: Literal["review_request_removed"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None - ] sender: SimpleUserType -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, - None, - ] - assignees: list[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, - None, - ] - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, - None, - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, - None, - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType - ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestRemovedOneof0Type", -) +__all__ = ("WebhookPullRequestReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0681.py b/githubkit/versions/v2022_11_28/types/group_0681.py index 0a5c5766c..3cf9b1756 100644 --- a/githubkit/versions/v2022_11_28/types/group_0681.py +++ b/githubkit/versions/v2022_11_28/types/group_0681.py @@ -13,86 +13,156 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReviewCommentCreatedType(TypedDict): + """pull_request_review_comment created event""" - action: Literal["review_request_removed"] + action: Literal["created"] + comment: WebhookPullRequestReviewCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): - """Team +class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): + """Pull Request Review Comment - Groups of organization members that gives permissions on specified repositories. + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. """ - deleted: NotRequired[bool] - description: Union[str, None] + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str html_url: str id: int - members_url: str - name: str + in_reply_to_id: NotRequired[int] + line: Union[int, None] node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str + original_commit_id: str + original_line: Union[int, None] + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime url: str + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + """Link""" + + href: str - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType +class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -106,76 +176,56 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, - None, + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, - None, - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -197,12 +247,12 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeTyp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -226,14 +276,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesIt site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -242,13 +289,13 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeTy commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -277,7 +324,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -291,38 +338,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -332,7 +348,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneTy closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -349,7 +365,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneTy url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -373,12 +389,12 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePr site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -402,14 +418,12 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -431,31 +445,31 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType + comments: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType + commits: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -463,7 +477,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -471,7 +485,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -479,7 +493,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHt href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -487,7 +501,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIs href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -495,7 +509,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -503,7 +517,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -511,7 +525,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -519,24 +533,19 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSt href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType - ) + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -565,7 +574,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -627,7 +636,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -643,11 +652,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -681,7 +690,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -693,7 +702,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -722,11 +731,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool @@ -736,53 +745,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType - ) + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -830,7 +807,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool + has_discussions: NotRequired[bool] homepage: Union[str, None] hooks_url: str html_url: str @@ -844,7 +821,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -860,11 +837,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -898,7 +875,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -910,7 +887,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -939,11 +916,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool @@ -953,7 +930,36 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -970,7 +976,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -981,11 +987,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -1001,7 +1007,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -1010,30 +1016,30 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTe """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -1050,43 +1056,47 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTe __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestRemovedOneof1Type", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", + "WebhookPullRequestReviewCommentCreatedPropCommentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0682.py b/githubkit/versions/v2022_11_28/types/group_0682.py index 72ba3a080..464462ca9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0682.py +++ b/githubkit/versions/v2022_11_28/types/group_0682.py @@ -13,70 +13,40 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0440 import WebhooksReviewCommentType -class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReviewCommentDeletedType(TypedDict): + """pull_request_review_comment deleted event""" - action: Literal["review_requested"] + action: Literal["deleted"] + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None - ] sender: SimpleUserType -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -90,71 +60,56 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -176,12 +131,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(Typ site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -205,14 +160,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsTy site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -221,13 +173,13 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -256,7 +208,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -270,36 +222,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -309,7 +232,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -326,7 +249,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -350,12 +273,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCre site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -384,7 +307,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -411,26 +334,26 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -438,7 +361,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -446,7 +369,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -454,7 +377,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlTyp href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -462,7 +385,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueTy href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -470,7 +393,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -478,7 +401,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -486,7 +409,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfTyp href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -494,19 +417,19 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -535,7 +458,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -597,7 +520,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -613,11 +536,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -651,7 +574,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -663,7 +586,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -692,11 +615,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool @@ -706,48 +629,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -809,7 +705,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -825,11 +721,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -863,7 +759,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -875,7 +771,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -904,11 +800,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool @@ -918,7 +814,36 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -927,30 +852,30 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -966,7 +891,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -983,7 +908,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -994,11 +919,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -1015,42 +940,40 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt __all__ = ( - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestedOneof0Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestType", + "WebhookPullRequestReviewCommentDeletedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0683.py b/githubkit/versions/v2022_11_28/types/group_0683.py index 4e37b7ab1..e1bc24b5f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0683.py +++ b/githubkit/versions/v2022_11_28/types/group_0683.py @@ -13,82 +13,42 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0418 import WebhooksChangesType +from .group_0440 import WebhooksReviewCommentType -class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewCommentEditedType(TypedDict): + """pull_request_review_comment edited event""" - action: Literal["review_requested"] + action: Literal["edited"] + changes: WebhooksChangesType + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str +class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -102,71 +62,56 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -188,12 +133,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(Typ site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -217,14 +162,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsTy site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -233,13 +176,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -268,7 +211,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -282,36 +225,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -321,7 +235,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -338,7 +252,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -367,7 +281,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -396,7 +310,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -419,30 +333,30 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDi starred_url: NotRequired[str] subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] user_view_type: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -450,7 +364,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -458,7 +372,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -466,7 +380,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlTyp href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -474,7 +388,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueTy href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -482,7 +396,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -490,7 +404,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -498,7 +412,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfTyp href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -506,19 +420,19 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -547,7 +461,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -609,7 +523,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -625,11 +539,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -663,7 +577,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -675,7 +589,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -704,11 +618,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool @@ -718,48 +632,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -821,7 +708,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -837,11 +724,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -875,7 +762,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -887,7 +774,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -916,11 +803,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool @@ -930,7 +817,36 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -947,7 +863,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -958,11 +874,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] @@ -978,7 +894,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -995,7 +911,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1006,11 +922,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] @@ -1027,43 +943,40 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt __all__ = ( - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestedOneof1Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestType", + "WebhookPullRequestReviewCommentEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0684.py b/githubkit/versions/v2022_11_28/types/group_0684.py index 1cee5e014..56939138d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0684.py +++ b/githubkit/versions/v2022_11_28/types/group_0684.py @@ -13,40 +13,117 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0435 import WebhooksReviewType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPullRequestReviewSubmittedType(TypedDict): - """pull_request_review submitted event""" +class WebhookPullRequestReviewDismissedType(TypedDict): + """pull_request_review dismissed event""" - action: Literal["submitted"] + action: Literal["dismissed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + pull_request: WebhookPullRequestReviewDismissedPropPullRequestType repository: RepositoryWebhooksType - review: WebhooksReviewType + review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserType -class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): + """WebhookPullRequestReviewDismissedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewDismissedPropReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: Literal["dismissed", "approved", "changes_requested"] + submitted_at: datetime + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] + + +class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" + + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): """Simple Pull Request""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None ] ] author_association: Literal[ @@ -60,9 +137,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -70,29 +147,29 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType + head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -101,10 +178,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -131,7 +208,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -157,7 +234,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(Typ url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -166,13 +243,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDic commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -201,7 +278,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -213,7 +290,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedD url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -223,7 +300,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -240,7 +317,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -264,12 +341,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorTy site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -298,7 +375,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -325,24 +402,24 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -350,7 +427,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -358,19 +435,19 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -378,7 +455,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -386,13 +463,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -400,19 +477,19 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -439,7 +516,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -499,7 +576,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -515,11 +592,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -553,7 +630,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -565,7 +642,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -594,10 +671,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -606,21 +683,21 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -680,7 +757,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -696,11 +773,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -734,7 +811,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -746,7 +823,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -775,10 +852,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -787,7 +864,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -814,7 +891,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -831,7 +908,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -842,10 +919,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof 1PropParent """ @@ -862,7 +939,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -879,7 +956,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -890,10 +967,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen t """ @@ -911,40 +988,45 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro __all__ = ( - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestType", - "WebhookPullRequestReviewSubmittedType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksType", + "WebhookPullRequestReviewDismissedPropReviewPropUserType", + "WebhookPullRequestReviewDismissedPropReviewType", + "WebhookPullRequestReviewDismissedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0685.py b/githubkit/versions/v2022_11_28/types/group_0685.py index 1ea89f94d..919b60663 100644 --- a/githubkit/versions/v2022_11_28/types/group_0685.py +++ b/githubkit/versions/v2022_11_28/types/group_0685.py @@ -13,41 +13,50 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0441 import WebhooksReviewType -class WebhookPullRequestReviewThreadResolvedType(TypedDict): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewEditedType(TypedDict): + """pull_request_review edited event""" - action: Literal["resolved"] + action: Literal["edited"] + changes: WebhookPullRequestReviewEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + pull_request: WebhookPullRequestReviewEditedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - thread: WebhookPullRequestReviewThreadResolvedPropThreadType + review: WebhooksReviewType + sender: SimpleUserType -class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewEditedPropChangesType(TypedDict): + """WebhookPullRequestReviewEditedPropChanges""" + + body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] + + +class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): """Simple Pull Request""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None - ] + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -60,9 +69,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -70,31 +79,29 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -103,10 +110,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -128,14 +135,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -157,11 +162,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsTyp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -170,13 +175,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,9 +210,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -219,7 +222,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -229,8 +232,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -246,7 +248,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -270,12 +272,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -304,7 +306,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -331,58 +333,48 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDic user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -390,7 +382,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -398,37 +390,29 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -455,9 +439,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -503,7 +485,6 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -517,7 +498,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -531,11 +512,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -561,10 +541,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -576,7 +555,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -605,12 +584,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -619,23 +596,17 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -681,7 +652,6 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -695,7 +665,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -709,11 +679,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -739,10 +708,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -754,7 +722,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -783,12 +751,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -797,9 +763,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -826,7 +790,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -843,7 +807,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -854,11 +818,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] @@ -874,7 +838,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -891,7 +855,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -902,12 +866,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -922,188 +884,43 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str -class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: ( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - __all__ = ( - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadResolvedPropThreadType", - "WebhookPullRequestReviewThreadResolvedType", + "WebhookPullRequestReviewEditedPropChangesPropBodyType", + "WebhookPullRequestReviewEditedPropChangesType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestType", + "WebhookPullRequestReviewEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0686.py b/githubkit/versions/v2022_11_28/types/group_0686.py index ada577a6d..b71a8a6d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0686.py +++ b/githubkit/versions/v2022_11_28/types/group_0686.py @@ -13,39 +13,71 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["unresolved"] + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None + ] + sender: SimpleUserType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): + """User""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] + additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, + None, ] assignees: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, None, ] ] @@ -60,55 +92,73 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, + None, ] - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType ] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, + None, + ] + ] milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, + None, ] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( TypedDict ): """User""" @@ -137,7 +187,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -163,9 +213,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsT subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( TypedDict ): """PullRequestAutoMerge @@ -174,15 +225,15 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( """ commit_message: Union[str, None] - commit_title: str + commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,7 +262,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -225,7 +276,36 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( TypedDict ): """Milestone @@ -237,7 +317,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -254,7 +334,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -283,7 +363,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCr user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -312,7 +392,9 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -339,26 +421,26 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedD user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType ) - commits: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType ) + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -366,7 +448,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommen href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -374,7 +456,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommit href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -382,7 +464,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlTy href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -390,7 +472,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueT href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -398,7 +480,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -406,7 +488,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -414,7 +496,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfTy href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -422,20 +504,24 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatus href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType + ) sha: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, None, ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -464,7 +550,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -526,10 +612,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -540,11 +628,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -553,6 +641,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -567,13 +659,14 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,7 +678,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -614,11 +707,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions """ admin: bool @@ -628,20 +721,24 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType + ) sha: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, None, ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -670,7 +767,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -732,10 +829,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -746,11 +845,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -759,6 +858,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -773,13 +876,14 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -791,7 +895,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -820,11 +924,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions """ admin: bool @@ -834,7 +938,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -843,30 +947,30 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -882,7 +986,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -891,30 +995,30 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent """ description: Union[str, None] @@ -930,190 +1034,43 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: str -class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( - TypedDict -): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: ( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - __all__ = ( - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadType", - "WebhookPullRequestReviewThreadUnresolvedType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestRemovedOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0687.py b/githubkit/versions/v2022_11_28/types/group_0687.py index 676353d21..2eb797c3b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0687.py +++ b/githubkit/versions/v2022_11_28/types/group_0687.py @@ -13,39 +13,88 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPullRequestSynchronizeType(TypedDict): - """pull_request synchronize event""" +class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof1""" - action: Literal["synchronize"] - after: str - before: str + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestSynchronizePropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType repository: RepositoryWebhooksType + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, + None, + ] assignees: list[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -58,9 +107,10 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, + None, ] - base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +122,13 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,10 +137,14 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, + None, + ] ] milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, + None, ] node_id: str number: int @@ -96,13 +152,13 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -112,10 +168,14 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None + ] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -137,12 +197,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -164,11 +226,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDi site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -177,12 +242,13 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,7 +277,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -223,7 +291,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict) url: str -class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -250,7 +320,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -260,7 +332,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -276,7 +349,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -300,12 +373,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -329,12 +402,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -356,53 +431,63 @@ class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType ) - review_comments: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -410,7 +495,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -418,29 +503,42 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsTyp href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType + ) sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, + None, + ] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -467,7 +565,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -527,7 +627,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -543,10 +643,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -580,7 +681,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -592,7 +693,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -621,10 +722,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -633,17 +736,26 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType + ) sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, + None, + ] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -670,7 +782,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -730,7 +844,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -746,10 +860,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -783,7 +898,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -795,7 +910,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -824,10 +939,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -836,7 +953,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -853,7 +970,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -864,11 +981,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -884,7 +1001,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -893,29 +1010,31 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] html_url: str @@ -931,41 +1050,43 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropPar __all__ = ( - "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropBaseType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadType", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksType", - "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropUserType", - "WebhookPullRequestSynchronizePropPullRequestType", - "WebhookPullRequestSynchronizeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestRemovedOneof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0688.py b/githubkit/versions/v2022_11_28/types/group_0688.py index 5d16ddad2..608cc2126 100644 --- a/githubkit/versions/v2022_11_28/types/group_0688.py +++ b/githubkit/versions/v2022_11_28/types/group_0688.py @@ -13,39 +13,72 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0416 import WebhooksUserMannequinType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPullRequestUnassignedType(TypedDict): - """pull_request unassigned event""" +class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnassignedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None + ] + sender: SimpleUserType + +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): + """User""" -class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -58,9 +91,9 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +105,13 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,22 +120,26 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -110,10 +149,12 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None + ] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -140,7 +181,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -164,9 +207,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDic subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -175,12 +221,13 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -209,7 +256,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -221,7 +270,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -243,12 +292,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -258,7 +309,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -274,7 +326,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -303,7 +355,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -327,12 +379,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -359,48 +411,58 @@ class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType ) - review_comments: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + commits: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -408,7 +470,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -416,29 +478,37 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" - label: Union[str, None] + label: str ref: str - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -465,7 +535,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict) user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -525,7 +597,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -540,10 +613,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -577,7 +651,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -589,7 +663,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -618,10 +692,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -630,17 +706,50 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -700,7 +809,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -715,10 +825,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -752,7 +863,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -764,7 +875,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -793,10 +904,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -805,34 +918,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -849,7 +935,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -860,11 +946,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] @@ -880,7 +966,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -895,7 +983,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(Typ node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -906,10 +994,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(Typ url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] html_url: str @@ -925,41 +1015,42 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropPare __all__ = ( - "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropBaseType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadType", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksType", - "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropUserType", - "WebhookPullRequestUnassignedPropPullRequestType", - "WebhookPullRequestUnassignedType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestedOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0689.py b/githubkit/versions/v2022_11_28/types/group_0689.py index 3c045f8d6..adfd8f0ed 100644 --- a/githubkit/versions/v2022_11_28/types/group_0689.py +++ b/githubkit/versions/v2022_11_28/types/group_0689.py @@ -13,39 +13,84 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0408 import WebhooksLabelType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPullRequestUnlabeledType(TypedDict): - """pull_request unlabeled event""" +class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof1""" - action: Literal["unlabeled"] + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlabeledPropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType repository: RepositoryWebhooksType + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +102,10 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -70,11 +117,13 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +132,26 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +161,12 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None + ] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -138,7 +193,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -162,9 +219,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -173,12 +233,13 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -207,7 +268,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -219,7 +282,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -246,7 +309,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -256,7 +321,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -272,7 +338,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -299,7 +367,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -323,12 +391,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -355,48 +423,58 @@ class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType ) - review_comments: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + commits: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -404,7 +482,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -412,29 +490,37 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -461,7 +547,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -521,7 +609,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -536,10 +625,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -573,7 +663,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,7 +675,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -614,10 +704,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -626,17 +718,50 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -696,7 +821,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -711,10 +837,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -748,7 +875,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -760,7 +887,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -789,10 +916,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -801,34 +930,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -837,30 +939,30 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] @@ -876,7 +978,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -891,7 +995,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(Type node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -902,10 +1006,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(Type url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] html_url: str @@ -921,41 +1027,43 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParen __all__ = ( - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestType", - "WebhookPullRequestUnlabeledType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestedOneof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0690.py b/githubkit/versions/v2022_11_28/types/group_0690.py index a4d834a1e..3f44a43a6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0690.py +++ b/githubkit/versions/v2022_11_28/types/group_0690.py @@ -13,37 +13,41 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0441 import WebhooksReviewType -class WebhookPullRequestUnlockedType(TypedDict): - """pull_request unlocked event""" +class WebhookPullRequestReviewSubmittedType(TypedDict): + """pull_request_review submitted event""" - action: Literal["unlocked"] + action: Literal["submitted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlockedPropPullRequestType + pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType repository: RepositoryWebhooksType + review: WebhooksReviewType sender: SimpleUserType -class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): + """Simple Pull Request""" - links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + ] ] author_association: Literal[ "COLLABORATOR", @@ -55,61 +59,52 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str draft: bool - head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] -class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -131,12 +126,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -158,25 +153,26 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict) site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. """ commit_message: Union[str, None] - commit_title: str + commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,7 +201,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -217,34 +213,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -254,7 +223,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -270,7 +240,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -292,12 +264,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -321,12 +293,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -348,53 +320,57 @@ class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -402,7 +378,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -410,29 +386,33 @@ class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -459,7 +439,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -519,7 +499,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -534,10 +515,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -571,7 +553,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -583,7 +565,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -610,10 +594,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -622,17 +606,21 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + ] sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -692,7 +680,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -707,10 +696,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -744,7 +734,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -756,7 +746,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -783,10 +775,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -795,7 +787,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -822,7 +814,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -831,30 +823,30 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] @@ -870,7 +862,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -885,7 +879,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -896,10 +890,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ description: Union[str, None] html_url: str @@ -915,41 +911,40 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent __all__ = ( - "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropBaseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadType", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksType", - "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropUserType", - "WebhookPullRequestUnlockedPropPullRequestType", - "WebhookPullRequestUnlockedType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestType", + "WebhookPullRequestReviewSubmittedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0691.py b/githubkit/versions/v2022_11_28/types/group_0691.py index 14b7bf912..06982382d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0691.py +++ b/githubkit/versions/v2022_11_28/types/group_0691.py @@ -10,129 +10,454 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookPushType(TypedDict): - """push event""" +class WebhookPullRequestReviewThreadResolvedType(TypedDict): + """pull_request_review_thread resolved event""" - after: str - base_ref: Union[str, None] - before: str - commits: list[WebhookPushPropCommitsItemsType] - compare: str - created: bool - deleted: bool + action: Literal["resolved"] enterprise: NotRequired[EnterpriseWebhooksType] - forced: bool - head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher: WebhookPushPropPusherType - ref: str - repository: WebhookPushPropRepositoryType + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] + thread: WebhookPullRequestReviewThreadResolvedPropThreadType -class WebhookPushPropHeadCommitType(TypedDict): - """Commit""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" - added: NotRequired[list[str]] - author: WebhookPushPropHeadCommitPropAuthorType - committer: WebhookPushPropHeadCommitPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[list[str]] - removed: NotRequired[list[str]] - timestamp: datetime - tree_id: str + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + ] + assignees: list[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str url: str + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] -class WebhookPushPropHeadCommitPropAuthorType(TypedDict): - """Committer +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" -class WebhookPushPropHeadCommitPropCommitterType(TypedDict): - """Committer + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - Metaproperties for Git author/committer information. - """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + The status of auto merging a pull request. + """ -class WebhookPushPropPusherType(TypedDict): - """Committer + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] - Metaproperties for Git author/committer information. - """ - date: NotRequired[datetime] +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsType(TypedDict): - """Commit""" - - added: NotRequired[list[str]] - author: WebhookPushPropCommitsItemsPropAuthorType - committer: WebhookPushPropCommitsItemsPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[list[str]] - removed: NotRequired[list[str]] - timestamp: datetime - tree_id: str + node_id: str url: str -class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): - """Committer +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): + """Milestone - Metaproperties for Git author/committer information. + A collection of related issues and pull requests. """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): - """Committer +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" -class WebhookPushPropRepositoryType(TypedDict): + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -157,7 +482,6 @@ class WebhookPushPropRepositoryType(TypedDict): contents_url: str contributors_url: str created_at: Union[int, datetime] - custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] default_branch: str delete_branch_on_merge: NotRequired[bool] deployments_url: str @@ -192,7 +516,10 @@ class WebhookPushPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookPushPropRepositoryPropLicenseType, None] + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] master_branch: NotRequired[str] merges_url: str milestones_url: str @@ -203,8 +530,13 @@ class WebhookPushPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookPushPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] private: bool public: NotRequired[bool] pulls_url: str @@ -232,16 +564,187 @@ class WebhookPushPropRepositoryType(TypedDict): web_commit_signoff_required: NotRequired[bool] -WebhookPushPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookPushPropRepositoryPropCustomProperties +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookPushPropRepositoryPropLicenseType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): """License""" key: str @@ -251,7 +754,9 @@ class WebhookPushPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookPushPropRepositoryPropOwnerType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -278,8 +783,12 @@ class WebhookPushPropRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookPushPropRepositoryPropPermissionsType(TypedDict): - """WebhookPushPropRepositoryPropPermissions""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -288,18 +797,313 @@ class WebhookPushPropRepositoryPropPermissionsType(TypedDict): triage: NotRequired[bool] +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType + ] + node_id: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: ( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: Union[int, None] + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + __all__ = ( - "WebhookPushPropCommitsItemsPropAuthorType", - "WebhookPushPropCommitsItemsPropCommitterType", - "WebhookPushPropCommitsItemsType", - "WebhookPushPropHeadCommitPropAuthorType", - "WebhookPushPropHeadCommitPropCommitterType", - "WebhookPushPropHeadCommitType", - "WebhookPushPropPusherType", - "WebhookPushPropRepositoryPropCustomPropertiesType", - "WebhookPushPropRepositoryPropLicenseType", - "WebhookPushPropRepositoryPropOwnerType", - "WebhookPushPropRepositoryPropPermissionsType", - "WebhookPushPropRepositoryType", - "WebhookPushType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadResolvedPropThreadType", + "WebhookPullRequestReviewThreadResolvedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0692.py b/githubkit/versions/v2022_11_28/types/group_0692.py index 24708816e..644a7253c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0692.py +++ b/githubkit/versions/v2022_11_28/types/group_0692.py @@ -9,27 +9,1111 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0693 import WebhookRegistryPackagePublishedPropRegistryPackageType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRegistryPackagePublishedType(TypedDict): - """WebhookRegistryPackagePublished""" +class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): + """pull_request_review_thread unresolved event""" - action: Literal["published"] + action: Literal["unresolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] + thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType -__all__ = ("WebhookRegistryPackagePublishedType",) +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None + ] + assignees: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType + ] + node_id: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( + TypedDict +): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: ( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +__all__ = ( + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadType", + "WebhookPullRequestReviewThreadUnresolvedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0693.py b/githubkit/versions/v2022_11_28/types/group_0693.py index bd3ef681d..39e474848 100644 --- a/githubkit/versions/v2022_11_28/types/group_0693.py +++ b/githubkit/versions/v2022_11_28/types/group_0693.py @@ -9,71 +9,963 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0694 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, -) +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType + + +class WebhookPullRequestSynchronizeType(TypedDict): + """pull_request synchronize event""" + + action: Literal["synchronize"] + after: str + before: str + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestSynchronizePropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): + """Pull Request""" - created_at: Union[str, None] + links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool description: Union[str, None] - ecosystem: str + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - namespace: str - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType - package_type: str - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType ] - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] - updated_at: Union[str, None] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): + """Repository -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + A git repository + """ - avatar_url: str + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - login: str + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str - user_view_type: NotRequired[str] + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] - about_url: NotRequired[str] + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - type: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] url: NotRequired[str] - vendor: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", - "WebhookRegistryPackagePublishedPropRegistryPackageType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropBaseType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadType", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksType", + "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropUserType", + "WebhookPullRequestSynchronizePropPullRequestType", + "WebhookPullRequestSynchronizeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0694.py b/githubkit/versions/v2022_11_28/types/group_0694.py index bc2be385d..2c4b8ec1f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0694.py +++ b/githubkit/versions/v2022_11_28/types/group_0694.py @@ -9,479 +9,817 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0613 import WebhookRubygemsMetadataType - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0422 import WebhooksUserMannequinType + + +class WebhookPullRequestUnassignedType(TypedDict): + """pull_request unassigned event""" + + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnassignedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] + + +class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - body: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType - ] + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None ] - draft: NotRequired[bool] + base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnassignedPropPullRequestPropHeadType html_url: str id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType - ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, - None, - ] + issue_url: str + labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] ] - nuget_metadata: NotRequired[ + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ Union[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType - ], + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] - package_files: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + requested_teams: list[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" +class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): + """User""" - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - tags: NotRequired[list[str]] +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" -WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ - str, Any -] -"""WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata -Items -""" + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ +class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, - None, - ] - ] - bugs: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, - None, - ] - ] - dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, - None, - ] - ] - scripts: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[list[str]] - contributors: NotRequired[list[str]] - engines: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[list[str]] - files: NotRequired[list[str]] - bin_: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, - None, - ] - ] - os: NotRequired[list[str]] - cpu: NotRequired[list[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 +class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ +class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): + """User""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ +class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] + ref: str + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] - content_type: str - created_at: str - download_url: str + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository """ - labels: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None ] - manifest: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None ] - tag: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ - + """License""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ + """User""" - digest: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository """ - id: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, - int, - None, - ] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None ] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - ] - created_at: NotRequired[str] - draft: NotRequired[bool] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - prerelease: NotRequired[bool] - published_at: NotRequired[str] - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - url: NotRequired[str] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -489,39 +827,139 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropBaseType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadType", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksType", + "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropUserType", + "WebhookPullRequestUnassignedPropPullRequestType", + "WebhookPullRequestUnassignedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0695.py b/githubkit/versions/v2022_11_28/types/group_0695.py index f78cb0d70..38da03c7b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0695.py +++ b/githubkit/versions/v2022_11_28/types/group_0695.py @@ -9,27 +9,953 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0696 import WebhookRegistryPackageUpdatedPropRegistryPackageType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0414 import WebhooksLabelType -class WebhookRegistryPackageUpdatedType(TypedDict): - """WebhookRegistryPackageUpdated""" +class WebhookPullRequestUnlabeledType(TypedDict): + """pull_request unlabeled event""" - action: Literal["updated"] + action: Literal["unlabeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestUnlabeledPropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRegistryPackageUpdatedType",) +class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestType", + "WebhookPullRequestUnlabeledType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0696.py b/githubkit/versions/v2022_11_28/types/group_0696.py index 090d0a348..e21f7aea5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0696.py +++ b/githubkit/versions/v2022_11_28/types/group_0696.py @@ -9,65 +9,947 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0697 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, -) +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType + + +class WebhookPullRequestUnlockedType(TypedDict): + """pull_request unlocked event""" + + action: Literal["unlocked"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnlockedPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" +class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): + """Pull Request""" - created_at: str - description: None - ecosystem: str + links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlockedPropPullRequestPropHeadType html_url: str id: int + issue_url: str + labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str - namespace: str - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType - package_type: str - package_version: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType - ) - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None + node_id: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None ] - updated_at: str + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + href: str - avatar_url: str + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", - "WebhookRegistryPackageUpdatedPropRegistryPackageType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropBaseType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadType", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksType", + "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropUserType", + "WebhookPullRequestUnlockedPropPullRequestType", + "WebhookPullRequestUnlockedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0697.py b/githubkit/versions/v2022_11_28/types/group_0697.py index 0d9dd2a74..d904e2493 100644 --- a/githubkit/versions/v2022_11_28/types/group_0697.py +++ b/githubkit/versions/v2022_11_28/types/group_0697.py @@ -9,172 +9,297 @@ from __future__ import annotations -from typing import Any, Union +from datetime import datetime +from typing import Any, Literal, Union from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0613 import WebhookRubygemsMetadataType - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - - author: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType - ) - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - list[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, - None, - ] - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType + + +class WebhookPushType(TypedDict): + """push event""" + + after: str + base_ref: Union[str, None] + before: str + commits: list[WebhookPushPropCommitsItemsType] + compare: str + created: bool + deleted: bool + enterprise: NotRequired[EnterpriseWebhooksType] + forced: bool + head_commit: Union[WebhookPushPropHeadCommitType, None] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pusher: WebhookPushPropPusherType + ref: str + repository: WebhookPushPropRepositoryType + sender: NotRequired[SimpleUserType] + + +class WebhookPushPropHeadCommitType(TypedDict): + """Commit""" + + added: NotRequired[list[str]] + author: WebhookPushPropHeadCommitPropAuthorType + committer: WebhookPushPropHeadCommitPropCommitterType + distinct: bool + id: str + message: str + modified: NotRequired[list[str]] + removed: NotRequired[list[str]] + timestamp: datetime + tree_id: str url: str - user_view_type: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ +class WebhookPushPropHeadCommitPropAuthorType(TypedDict): + """Committer - tags: NotRequired[list[str]] + Metaproperties for Git author/committer information. + """ + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ - str, Any -] -"""WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt -ems -""" +class WebhookPushPropHeadCommitPropCommitterType(TypedDict): + """Committer -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems + Metaproperties for Git author/committer information. """ - content_type: NotRequired[str] - created_at: NotRequired[str] - download_url: NotRequired[str] - id: NotRequired[int] - md5: NotRequired[Union[str, None]] - name: NotRequired[str] - sha1: NotRequired[Union[str, None]] - sha256: NotRequired[str] - size: NotRequired[int] - state: NotRequired[str] - updated_at: NotRequired[str] + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" +class WebhookPushPropPusherType(TypedDict): + """Committer - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - created_at: str - draft: bool - html_url: str - id: int + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: NotRequired[Union[str, None]] name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str + username: NotRequired[str] + + +class WebhookPushPropCommitsItemsType(TypedDict): + """Commit""" + + added: NotRequired[list[str]] + author: WebhookPushPropCommitsItemsPropAuthorType + committer: WebhookPushPropCommitsItemsPropCommitterType + distinct: bool + id: str + message: str + modified: NotRequired[list[str]] + removed: NotRequired[list[str]] + timestamp: datetime + tree_id: str url: str -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor +class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. """ - avatar_url: str + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - login: str + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookPushPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookPushPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookPushPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookPushPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookPushPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPushPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] user_view_type: NotRequired[str] +class WebhookPushPropRepositoryPropPermissionsType(TypedDict): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", + "WebhookPushPropCommitsItemsPropAuthorType", + "WebhookPushPropCommitsItemsPropCommitterType", + "WebhookPushPropCommitsItemsType", + "WebhookPushPropHeadCommitPropAuthorType", + "WebhookPushPropHeadCommitPropCommitterType", + "WebhookPushPropHeadCommitType", + "WebhookPushPropPusherType", + "WebhookPushPropRepositoryPropCustomPropertiesType", + "WebhookPushPropRepositoryPropLicenseType", + "WebhookPushPropRepositoryPropOwnerType", + "WebhookPushPropRepositoryPropPermissionsType", + "WebhookPushPropRepositoryType", + "WebhookPushType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0698.py b/githubkit/versions/v2022_11_28/types/group_0698.py index 659a02859..4f624d019 100644 --- a/githubkit/versions/v2022_11_28/types/group_0698.py +++ b/githubkit/versions/v2022_11_28/types/group_0698.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0436 import WebhooksReleaseType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0699 import WebhookRegistryPackagePublishedPropRegistryPackageType -class WebhookReleaseCreatedType(TypedDict): - """release created event""" +class WebhookRegistryPackagePublishedType(TypedDict): + """WebhookRegistryPackagePublished""" - action: Literal["created"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType + registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookReleaseCreatedType",) +__all__ = ("WebhookRegistryPackagePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0699.py b/githubkit/versions/v2022_11_28/types/group_0699.py index 96394d767..f7bee5713 100644 --- a/githubkit/versions/v2022_11_28/types/group_0699.py +++ b/githubkit/versions/v2022_11_28/types/group_0699.py @@ -9,27 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0436 import WebhooksReleaseType +from .group_0700 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, +) -class WebhookReleaseDeletedType(TypedDict): - """release deleted event""" +class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackage""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: SimpleUserType + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType + package_type: str + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + ] + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + ] + updated_at: Union[str, None] -__all__ = ("WebhookReleaseDeletedType",) +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: NotRequired[str] + name: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + vendor: NotRequired[str] + + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", + "WebhookRegistryPackagePublishedPropRegistryPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0700.py b/githubkit/versions/v2022_11_28/types/group_0700.py index 139d63fd0..ff8971f5c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0700.py +++ b/githubkit/versions/v2022_11_28/types/group_0700.py @@ -9,60 +9,519 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0436 import WebhooksReleaseType +from .group_0619 import WebhookRubygemsMetadataType -class WebhookReleaseEditedType(TypedDict): - """release edited event""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - action: Literal["edited"] - changes: WebhookReleaseEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType + ] + body: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -class WebhookReleaseEditedPropChangesType(TypedDict): - """WebhookReleaseEditedPropChanges""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" - body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] - name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] - make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] -class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): - """WebhookReleaseEditedPropChangesPropBody""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ - from_: str +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ -class WebhookReleaseEditedPropChangesPropNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropName""" + tags: NotRequired[list[str]] - from_: str + +WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ + str, Any +] +"""WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata +Items +""" + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, + None, + ] + ] + bugs: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, + None, + ] + ] + dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, + None, + ] + ] + scripts: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[list[str]] + contributors: NotRequired[list[str]] + engines: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType + ] + keywords: NotRequired[list[str]] + files: NotRequired[list[str]] + bin_: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType + ] + man: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, + None, + ] + ] + os: NotRequired[list[str]] + cpu: NotRequired[list[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems + """ + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ + + labels: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: NotRequired[str] + name: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, + int, + None, + ] + ] + name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + ] + created_at: NotRequired[str] + draft: NotRequired[bool] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + prerelease: NotRequired[bool] + published_at: NotRequired[str] + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + url: NotRequired[str] -class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): - """WebhookReleaseEditedPropChangesPropMakeLatest""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ - to: bool + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookReleaseEditedPropChangesPropBodyType", - "WebhookReleaseEditedPropChangesPropMakeLatestType", - "WebhookReleaseEditedPropChangesPropNameType", - "WebhookReleaseEditedPropChangesType", - "WebhookReleaseEditedType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0701.py b/githubkit/versions/v2022_11_28/types/group_0701.py index 4aa13851f..4504924b2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0701.py +++ b/githubkit/versions/v2022_11_28/types/group_0701.py @@ -9,154 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0702 import WebhookRegistryPackageUpdatedPropRegistryPackageType -class WebhookReleasePrereleasedType(TypedDict): - """release prereleased event""" +class WebhookRegistryPackageUpdatedType(TypedDict): + """WebhookRegistryPackageUpdated""" - action: Literal["prereleased"] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleasePrereleasedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookReleasePrereleasedPropReleaseType(TypedDict): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] - assets_url: str - author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: Literal[True] - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] - ] - url: str - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -__all__ = ( - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", - "WebhookReleasePrereleasedPropReleasePropAuthorType", - "WebhookReleasePrereleasedPropReleasePropReactionsType", - "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedType", -) +__all__ = ("WebhookRegistryPackageUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0702.py b/githubkit/versions/v2022_11_28/types/group_0702.py index 35698c435..5ca394412 100644 --- a/githubkit/versions/v2022_11_28/types/group_0702.py +++ b/githubkit/versions/v2022_11_28/types/group_0702.py @@ -9,27 +9,65 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0437 import WebhooksRelease1Type +from .group_0703 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, +) -class WebhookReleasePublishedType(TypedDict): - """release published event""" +class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + created_at: str + description: None + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType + package_type: str + package_version: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType + ) + registry: Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None + ] + updated_at: str -__all__ = ("WebhookReleasePublishedType",) +class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" + + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", + "WebhookRegistryPackageUpdatedPropRegistryPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0703.py b/githubkit/versions/v2022_11_28/types/group_0703.py index c661d6682..e88beaf7c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0703.py +++ b/githubkit/versions/v2022_11_28/types/group_0703.py @@ -9,27 +9,172 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0436 import WebhooksReleaseType +from .group_0619 import WebhookRubygemsMetadataType -class WebhookReleaseReleasedType(TypedDict): - """release released event""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - action: Literal["released"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + author: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType + ) + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + list[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, + None, + ] + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -__all__ = ("WebhookReleaseReleasedType",) +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + + tags: NotRequired[list[str]] + + +WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ + str, Any +] +"""WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt +ems +""" + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil + esItems + """ + + content_type: NotRequired[str] + created_at: NotRequired[str] + download_url: NotRequired[str] + id: NotRequired[int] + md5: NotRequired[Union[str, None]] + name: NotRequired[str] + sha1: NotRequired[Union[str, None]] + sha256: NotRequired[str] + size: NotRequired[int] + state: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + created_at: str + draft: bool + html_url: str + id: int + name: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro + pAuthor + """ + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0704.py b/githubkit/versions/v2022_11_28/types/group_0704.py index 3f3972d96..a11175ddb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0704.py +++ b/githubkit/versions/v2022_11_28/types/group_0704.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0437 import WebhooksRelease1Type +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0442 import WebhooksReleaseType -class WebhookReleaseUnpublishedType(TypedDict): - """release unpublished event""" +class WebhookReleaseCreatedType(TypedDict): + """release created event""" - action: Literal["unpublished"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type + release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookReleaseUnpublishedType",) +__all__ = ("WebhookReleaseCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0705.py b/githubkit/versions/v2022_11_28/types/group_0705.py index 69c346ddf..83ba07dc4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0705.py +++ b/githubkit/versions/v2022_11_28/types/group_0705.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0158 import RepositoryAdvisoryType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0442 import WebhooksReleaseType -class WebhookRepositoryAdvisoryPublishedType(TypedDict): - """Repository advisory published event""" +class WebhookReleaseDeletedType(TypedDict): + """release deleted event""" - action: Literal["published"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookRepositoryAdvisoryPublishedType",) +__all__ = ("WebhookReleaseDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0706.py b/githubkit/versions/v2022_11_28/types/group_0706.py index ce5355bf4..4b080628f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0706.py +++ b/githubkit/versions/v2022_11_28/types/group_0706.py @@ -12,24 +12,57 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0158 import RepositoryAdvisoryType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0442 import WebhooksReleaseType -class WebhookRepositoryAdvisoryReportedType(TypedDict): - """Repository advisory reported event""" +class WebhookReleaseEditedType(TypedDict): + """release edited event""" - action: Literal["reported"] + action: Literal["edited"] + changes: WebhookReleaseEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryAdvisoryReportedType",) +class WebhookReleaseEditedPropChangesType(TypedDict): + """WebhookReleaseEditedPropChanges""" + + body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] + name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] + make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] + + +class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool + + +__all__ = ( + "WebhookReleaseEditedPropChangesPropBodyType", + "WebhookReleaseEditedPropChangesPropMakeLatestType", + "WebhookReleaseEditedPropChangesPropNameType", + "WebhookReleaseEditedPropChangesType", + "WebhookReleaseEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0707.py b/githubkit/versions/v2022_11_28/types/group_0707.py index f02139472..1458b0f81 100644 --- a/githubkit/versions/v2022_11_28/types/group_0707.py +++ b/githubkit/versions/v2022_11_28/types/group_0707.py @@ -9,25 +9,154 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryArchivedType(TypedDict): - """repository archived event""" +class WebhookReleasePrereleasedType(TypedDict): + """release prereleased event""" - action: Literal["archived"] + action: Literal["prereleased"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleasePrereleasedPropReleaseType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryArchivedType",) +class WebhookReleasePrereleasedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] + assets_url: str + author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: Literal[True] + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +__all__ = ( + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", + "WebhookReleasePrereleasedPropReleaseType", + "WebhookReleasePrereleasedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0708.py b/githubkit/versions/v2022_11_28/types/group_0708.py index 702d66fa2..7c642f6e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0708.py +++ b/githubkit/versions/v2022_11_28/types/group_0708.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0443 import WebhooksRelease1Type -class WebhookRepositoryCreatedType(TypedDict): - """repository created event""" +class WebhookReleasePublishedType(TypedDict): + """release published event""" - action: Literal["created"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksRelease1Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryCreatedType",) +__all__ = ("WebhookReleasePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0709.py b/githubkit/versions/v2022_11_28/types/group_0709.py index fb1105130..2b88e1193 100644 --- a/githubkit/versions/v2022_11_28/types/group_0709.py +++ b/githubkit/versions/v2022_11_28/types/group_0709.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0442 import WebhooksReleaseType -class WebhookRepositoryDeletedType(TypedDict): - """repository deleted event""" +class WebhookReleaseReleasedType(TypedDict): + """release released event""" - action: Literal["deleted"] + action: Literal["released"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryDeletedType",) +__all__ = ("WebhookReleaseReleasedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0710.py b/githubkit/versions/v2022_11_28/types/group_0710.py index e3b3adfe8..fcf8645e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0710.py +++ b/githubkit/versions/v2022_11_28/types/group_0710.py @@ -9,38 +9,27 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0443 import WebhooksRelease1Type -class WebhookRepositoryDispatchSampleType(TypedDict): - """repository_dispatch event""" +class WebhookReleaseUnpublishedType(TypedDict): + """release unpublished event""" - action: str - branch: str - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] + action: Literal["unpublished"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksRelease1Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -WebhookRepositoryDispatchSamplePropClientPayloadType: TypeAlias = dict[str, Any] -"""WebhookRepositoryDispatchSamplePropClientPayload - -The `client_payload` that was specified in the `POST -/repos/{owner}/{repo}/dispatches` request body. -""" - - -__all__ = ( - "WebhookRepositoryDispatchSamplePropClientPayloadType", - "WebhookRepositoryDispatchSampleType", -) +__all__ = ("WebhookReleaseUnpublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0711.py b/githubkit/versions/v2022_11_28/types/group_0711.py index 86b7b742a..cd26dad03 100644 --- a/githubkit/versions/v2022_11_28/types/group_0711.py +++ b/githubkit/versions/v2022_11_28/types/group_0711.py @@ -9,66 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0163 import RepositoryAdvisoryType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryEditedType(TypedDict): - """repository edited event""" +class WebhookRepositoryAdvisoryPublishedType(TypedDict): + """Repository advisory published event""" - action: Literal["edited"] - changes: WebhookRepositoryEditedPropChangesType + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserType] -class WebhookRepositoryEditedPropChangesType(TypedDict): - """WebhookRepositoryEditedPropChanges""" - - default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] - description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] - homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] - topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] - - -class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str - - -class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] - - -class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] - - -class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: NotRequired[Union[list[str], None]] - - -__all__ = ( - "WebhookRepositoryEditedPropChangesPropDefaultBranchType", - "WebhookRepositoryEditedPropChangesPropDescriptionType", - "WebhookRepositoryEditedPropChangesPropHomepageType", - "WebhookRepositoryEditedPropChangesPropTopicsType", - "WebhookRepositoryEditedPropChangesType", - "WebhookRepositoryEditedType", -) +__all__ = ("WebhookRepositoryAdvisoryPublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0712.py b/githubkit/versions/v2022_11_28/types/group_0712.py index e9b0414be..dd4970221 100644 --- a/githubkit/versions/v2022_11_28/types/group_0712.py +++ b/githubkit/versions/v2022_11_28/types/group_0712.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0163 import RepositoryAdvisoryType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryImportType(TypedDict): - """repository_import event""" +class WebhookRepositoryAdvisoryReportedType(TypedDict): + """Repository advisory reported event""" + action: Literal["reported"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType - status: Literal["success", "cancelled", "failure"] + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryImportType",) +__all__ = ("WebhookRepositoryAdvisoryReportedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0713.py b/githubkit/versions/v2022_11_28/types/group_0713.py index 2c01b6f67..c8cb39e64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0713.py +++ b/githubkit/versions/v2022_11_28/types/group_0713.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryPrivatizedType(TypedDict): - """repository privatized event""" +class WebhookRepositoryArchivedType(TypedDict): + """repository archived event""" - action: Literal["privatized"] + action: Literal["archived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryPrivatizedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryPrivatizedType",) +__all__ = ("WebhookRepositoryArchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0714.py b/githubkit/versions/v2022_11_28/types/group_0714.py index e98dc13e5..371d84bb4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0714.py +++ b/githubkit/versions/v2022_11_28/types/group_0714.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryPublicizedType(TypedDict): - """repository publicized event""" +class WebhookRepositoryCreatedType(TypedDict): + """repository created event""" - action: Literal["publicized"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryPublicizedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryPublicizedType",) +__all__ = ("WebhookRepositoryCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0715.py b/githubkit/versions/v2022_11_28/types/group_0715.py index f176a7d3c..1216a796e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0715.py +++ b/githubkit/versions/v2022_11_28/types/group_0715.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryRenamedType(TypedDict): - """repository renamed event""" +class WebhookRepositoryDeletedType(TypedDict): + """repository deleted event""" - action: Literal["renamed"] - changes: WebhookRepositoryRenamedPropChangesType + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -31,27 +30,4 @@ class WebhookRepositoryRenamedType(TypedDict): sender: SimpleUserType -class WebhookRepositoryRenamedPropChangesType(TypedDict): - """WebhookRepositoryRenamedPropChanges""" - - repository: WebhookRepositoryRenamedPropChangesPropRepositoryType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str - - -__all__ = ( - "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", - "WebhookRepositoryRenamedPropChangesPropRepositoryType", - "WebhookRepositoryRenamedPropChangesType", - "WebhookRepositoryRenamedType", -) +__all__ = ("WebhookRepositoryDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0716.py b/githubkit/versions/v2022_11_28/types/group_0716.py index f7017a0ed..d19cd05f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0716.py +++ b/githubkit/versions/v2022_11_28/types/group_0716.py @@ -9,27 +9,38 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0154 import RepositoryRulesetType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryRulesetCreatedType(TypedDict): - """repository ruleset created event""" +class WebhookRepositoryDispatchSampleType(TypedDict): + """repository_dispatch event""" - action: Literal["created"] + action: str + branch: str + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + installation: SimpleInstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetCreatedType",) +WebhookRepositoryDispatchSamplePropClientPayloadType: TypeAlias = dict[str, Any] +"""WebhookRepositoryDispatchSamplePropClientPayload + +The `client_payload` that was specified in the `POST +/repos/{owner}/{repo}/dispatches` request body. +""" + + +__all__ = ( + "WebhookRepositoryDispatchSamplePropClientPayloadType", + "WebhookRepositoryDispatchSampleType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0717.py b/githubkit/versions/v2022_11_28/types/group_0717.py index 7b8aaf4e4..43056f861 100644 --- a/githubkit/versions/v2022_11_28/types/group_0717.py +++ b/githubkit/versions/v2022_11_28/types/group_0717.py @@ -9,27 +9,66 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0154 import RepositoryRulesetType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryRulesetDeletedType(TypedDict): - """repository ruleset deleted event""" +class WebhookRepositoryEditedType(TypedDict): + """repository edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookRepositoryEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetDeletedType",) +class WebhookRepositoryEditedPropChangesType(TypedDict): + """WebhookRepositoryEditedPropChanges""" + + default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] + description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] + homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] + topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] + + +class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + + from_: str + + +class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDescription""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: NotRequired[Union[list[str], None]] + + +__all__ = ( + "WebhookRepositoryEditedPropChangesPropDefaultBranchType", + "WebhookRepositoryEditedPropChangesPropDescriptionType", + "WebhookRepositoryEditedPropChangesPropHomepageType", + "WebhookRepositoryEditedPropChangesPropTopicsType", + "WebhookRepositoryEditedPropChangesType", + "WebhookRepositoryEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0718.py b/githubkit/versions/v2022_11_28/types/group_0718.py index 42e6954b2..e0d975025 100644 --- a/githubkit/versions/v2022_11_28/types/group_0718.py +++ b/githubkit/versions/v2022_11_28/types/group_0718.py @@ -12,26 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0154 import RepositoryRulesetType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0719 import WebhookRepositoryRulesetEditedPropChangesType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedType(TypedDict): - """repository ruleset edited event""" +class WebhookRepositoryImportType(TypedDict): + """repository_import event""" - action: Literal["edited"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] + repository: RepositoryWebhooksType sender: SimpleUserType + status: Literal["success", "cancelled", "failure"] -__all__ = ("WebhookRepositoryRulesetEditedType",) +__all__ = ("WebhookRepositoryImportType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0719.py b/githubkit/versions/v2022_11_28/types/group_0719.py index 22143a40d..36b1f13f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0719.py +++ b/githubkit/versions/v2022_11_28/types/group_0719.py @@ -9,37 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0720 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType -from .group_0722 import WebhookRepositoryRulesetEditedPropChangesPropRulesType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryPrivatizedType(TypedDict): + """repository privatized event""" - name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] - enforcement: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropEnforcementType - ] - conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] - rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] + action: Literal["privatized"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", - "WebhookRepositoryRulesetEditedPropChangesPropNameType", - "WebhookRepositoryRulesetEditedPropChangesType", -) +__all__ = ("WebhookRepositoryPrivatizedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0720.py b/githubkit/versions/v2022_11_28/types/group_0720.py index 99d2de811..5a90f88f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0720.py +++ b/githubkit/versions/v2022_11_28/types/group_0720.py @@ -9,24 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0114 import RepositoryRulesetConditionsType -from .group_0721 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, -) +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" +class WebhookRepositoryPublicizedType(TypedDict): + """repository publicized event""" - added: NotRequired[list[RepositoryRulesetConditionsType]] - deleted: NotRequired[list[RepositoryRulesetConditionsType]] - updated: NotRequired[ - list[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType - ] - ] + action: Literal["publicized"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) +__all__ = ("WebhookRepositoryPublicizedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0721.py b/githubkit/versions/v2022_11_28/types/group_0721.py index f8883665b..a35439efb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0721.py +++ b/githubkit/versions/v2022_11_28/types/group_0721.py @@ -9,88 +9,49 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0114 import RepositoryRulesetConditionsType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class WebhookRepositoryRenamedType(TypedDict): + """repository renamed event""" - condition: NotRequired[RepositoryRulesetConditionsType] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType - ] + action: Literal["renamed"] + changes: WebhookRepositoryRenamedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ +class WebhookRepositoryRenamedPropChangesType(TypedDict): + """WebhookRepositoryRenamedPropChanges""" - condition_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType - ] - target: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType - ] - include: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType - ] - exclude: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType - ] + repository: WebhookRepositoryRenamedPropChangesPropRepositoryType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ +class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepository""" - from_: NotRequired[str] + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ +class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: NotRequired[list[str]] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: NotRequired[list[str]] + from_: str __all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", + "WebhookRepositoryRenamedPropChangesPropRepositoryType", + "WebhookRepositoryRenamedPropChangesType", + "WebhookRepositoryRenamedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0722.py b/githubkit/versions/v2022_11_28/types/group_0722.py index fe520054b..b76d3ebc5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0722.py +++ b/githubkit/versions/v2022_11_28/types/group_0722.py @@ -9,99 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0125 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0126 import RepositoryRuleUpdateType -from .group_0128 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0129 import RepositoryRuleMergeQueueType -from .group_0131 import RepositoryRuleRequiredDeploymentsType -from .group_0134 import RepositoryRulePullRequestType -from .group_0136 import RepositoryRuleRequiredStatusChecksType -from .group_0138 import RepositoryRuleCommitMessagePatternType -from .group_0140 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0142 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleBranchNamePatternType -from .group_0146 import RepositoryRuleTagNamePatternType -from .group_0149 import RepositoryRuleWorkflowsType -from .group_0151 import RepositoryRuleCodeScanningType -from .group_0153 import RepositoryRuleOneof18Type -from .group_0723 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, -) +from .group_0003 import SimpleUserType +from .group_0159 import RepositoryRulesetType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" +class WebhookRepositoryRulesetCreatedType(TypedDict): + """repository ruleset created event""" - added: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - deleted: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - updated: NotRequired[ - list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] - ] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) +__all__ = ("WebhookRepositoryRulesetCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0723.py b/githubkit/versions/v2022_11_28/types/group_0723.py index fb08e5d7b..490b0b2f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0723.py +++ b/githubkit/versions/v2022_11_28/types/group_0723.py @@ -9,119 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0125 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0126 import RepositoryRuleUpdateType -from .group_0128 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0129 import RepositoryRuleMergeQueueType -from .group_0131 import RepositoryRuleRequiredDeploymentsType -from .group_0134 import RepositoryRulePullRequestType -from .group_0136 import RepositoryRuleRequiredStatusChecksType -from .group_0138 import RepositoryRuleCommitMessagePatternType -from .group_0140 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0142 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleBranchNamePatternType -from .group_0146 import RepositoryRuleTagNamePatternType -from .group_0149 import RepositoryRuleWorkflowsType -from .group_0151 import RepositoryRuleCodeScanningType -from .group_0153 import RepositoryRuleOneof18Type +from .group_0003 import SimpleUserType +from .group_0159 import RepositoryRulesetType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" +class WebhookRepositoryRulesetDeletedType(TypedDict): + """repository ruleset deleted event""" - rule: NotRequired[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType - ] + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType - ] - rule_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType - ] - pattern: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", -) +__all__ = ("WebhookRepositoryRulesetDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0724.py b/githubkit/versions/v2022_11_28/types/group_0724.py index b8bfdd865..f26702ad8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0724.py +++ b/githubkit/versions/v2022_11_28/types/group_0724.py @@ -9,105 +9,29 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0159 import RepositoryRulesetType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0725 import WebhookRepositoryRulesetEditedPropChangesType -class WebhookRepositoryTransferredType(TypedDict): - """repository transferred event""" +class WebhookRepositoryRulesetEditedType(TypedDict): + """repository ruleset edited event""" - action: Literal["transferred"] - changes: WebhookRepositoryTransferredPropChangesType + action: Literal["edited"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] sender: SimpleUserType -class WebhookRepositoryTransferredPropChangesType(TypedDict): - """WebhookRepositoryTransferredPropChanges""" - - owner: WebhookRepositoryTransferredPropChangesPropOwnerType - - -class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): - """WebhookRepositoryTransferredPropChangesPropOwner""" - - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - - organization: NotRequired[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType - ] - user: NotRequired[ - Union[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None - ] - ] - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( - TypedDict -): - """Organization""" - - avatar_url: str - description: Union[str, None] - events_url: str - hooks_url: str - html_url: NotRequired[str] - id: int - issues_url: str - login: str - members_url: str - node_id: str - public_members_url: str - repos_url: str - url: str - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", - "WebhookRepositoryTransferredPropChangesPropOwnerType", - "WebhookRepositoryTransferredPropChangesType", - "WebhookRepositoryTransferredType", -) +__all__ = ("WebhookRepositoryRulesetEditedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0725.py b/githubkit/versions/v2022_11_28/types/group_0725.py index a2c31cc4d..c5a77a0e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0725.py +++ b/githubkit/versions/v2022_11_28/types/group_0725.py @@ -9,25 +9,37 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0726 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType +from .group_0728 import WebhookRepositoryRulesetEditedPropChangesPropRulesType -class WebhookRepositoryUnarchivedType(TypedDict): - """repository unarchived event""" +class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["unarchived"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] + enforcement: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropEnforcementType + ] + conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] + rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] -__all__ = ("WebhookRepositoryUnarchivedType",) +class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropName""" + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" + + from_: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", + "WebhookRepositoryRulesetEditedPropChangesPropNameType", + "WebhookRepositoryRulesetEditedPropChangesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0726.py b/githubkit/versions/v2022_11_28/types/group_0726.py index 1c71de5d8..8110c7c9b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0726.py +++ b/githubkit/versions/v2022_11_28/types/group_0726.py @@ -9,27 +9,24 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0438 import WebhooksAlertType +from .group_0119 import RepositoryRulesetConditionsType +from .group_0727 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, +) -class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): - """repository_vulnerability_alert create event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - action: Literal["create"] - alert: WebhooksAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + added: NotRequired[list[RepositoryRulesetConditionsType]] + deleted: NotRequired[list[RepositoryRulesetConditionsType]] + updated: NotRequired[ + list[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType + ] + ] -__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0727.py b/githubkit/versions/v2022_11_28/types/group_0727.py index 5813ddacb..fd38f6893 100644 --- a/githubkit/versions/v2022_11_28/types/group_0727.py +++ b/githubkit/versions/v2022_11_28/types/group_0727.py @@ -9,86 +9,88 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0119 import RepositoryRulesetConditionsType -class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): - """repository_vulnerability_alert dismiss event""" - - action: Literal["dismiss"] - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" + condition: NotRequired[RepositoryRulesetConditionsType] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType + ] -class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): - """Repository Vulnerability Alert Alert - The security alert of the vulnerable dependency. +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es """ - affected_package_name: str - affected_range: str - created_at: str - dismiss_comment: NotRequired[Union[str, None]] - dismiss_reason: str - dismissed_at: str - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, None + condition_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType + ] + target: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["dismissed"] - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + include: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType + ] + exclude: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: NotRequired[list[str]] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: NotRequired[list[str]] __all__ = ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", - "WebhookRepositoryVulnerabilityAlertDismissType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0728.py b/githubkit/versions/v2022_11_28/types/group_0728.py index 327918019..83dca302a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0728.py +++ b/githubkit/versions/v2022_11_28/types/group_0728.py @@ -9,27 +9,99 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0438 import WebhooksAlertType +from .group_0130 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0131 import RepositoryRuleUpdateType +from .group_0133 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0134 import RepositoryRuleMergeQueueType +from .group_0136 import RepositoryRuleRequiredDeploymentsType +from .group_0139 import RepositoryRulePullRequestType +from .group_0141 import RepositoryRuleRequiredStatusChecksType +from .group_0143 import RepositoryRuleCommitMessagePatternType +from .group_0145 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0147 import RepositoryRuleCommitterEmailPatternType +from .group_0149 import RepositoryRuleBranchNamePatternType +from .group_0151 import RepositoryRuleTagNamePatternType +from .group_0154 import RepositoryRuleWorkflowsType +from .group_0156 import RepositoryRuleCodeScanningType +from .group_0158 import RepositoryRuleOneof18Type +from .group_0729 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, +) -class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): - """repository_vulnerability_alert reopen event""" +class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" - action: Literal["reopen"] - alert: WebhooksAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + added: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + deleted: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + updated: NotRequired[ + list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] + ] -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0729.py b/githubkit/versions/v2022_11_28/types/group_0729.py index 274bdd2a0..f029aa5ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0729.py +++ b/githubkit/versions/v2022_11_28/types/group_0729.py @@ -9,86 +9,119 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0130 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0131 import RepositoryRuleUpdateType +from .group_0133 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0134 import RepositoryRuleMergeQueueType +from .group_0136 import RepositoryRuleRequiredDeploymentsType +from .group_0139 import RepositoryRulePullRequestType +from .group_0141 import RepositoryRuleRequiredStatusChecksType +from .group_0143 import RepositoryRuleCommitMessagePatternType +from .group_0145 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0147 import RepositoryRuleCommitterEmailPatternType +from .group_0149 import RepositoryRuleBranchNamePatternType +from .group_0151 import RepositoryRuleTagNamePatternType +from .group_0154 import RepositoryRuleWorkflowsType +from .group_0156 import RepositoryRuleCodeScanningType +from .group_0158 import RepositoryRuleOneof18Type + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" + + rule: NotRequired[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType + ] -class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): - """repository_vulnerability_alert resolve event""" +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - action: Literal["resolve"] - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + configuration: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType + ] + rule_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType + ] + pattern: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType + ] -class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): - """Repository Vulnerability Alert Alert +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration + """ - The security alert of the vulnerable dependency. + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType """ - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None - ] - ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["fixed", "open"] - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ + + from_: NotRequired[str] __all__ = ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", - "WebhookRepositoryVulnerabilityAlertResolveType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0730.py b/githubkit/versions/v2022_11_28/types/group_0730.py index 3e402b045..c83e16af3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0730.py +++ b/githubkit/versions/v2022_11_28/types/group_0730.py @@ -9,27 +9,105 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0439 import SecretScanningAlertWebhookType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookSecretScanningAlertCreatedType(TypedDict): - """secret_scanning_alert created event""" +class WebhookRepositoryTransferredType(TypedDict): + """repository transferred event""" - action: Literal["created"] - alert: SecretScanningAlertWebhookType + action: Literal["transferred"] + changes: WebhookRepositoryTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertCreatedType",) +class WebhookRepositoryTransferredPropChangesType(TypedDict): + """WebhookRepositoryTransferredPropChanges""" + + owner: WebhookRepositoryTransferredPropChangesPropOwnerType + + +class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwner""" + + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + + organization: NotRequired[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType + ] + user: NotRequired[ + Union[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None + ] + ] + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( + TypedDict +): + """Organization""" + + avatar_url: str + description: Union[str, None] + events_url: str + hooks_url: str + html_url: NotRequired[str] + id: int + issues_url: str + login: str + members_url: str + node_id: str + public_members_url: str + repos_url: str + url: str + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", + "WebhookRepositoryTransferredPropChangesPropOwnerType", + "WebhookRepositoryTransferredPropChangesType", + "WebhookRepositoryTransferredType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0731.py b/githubkit/versions/v2022_11_28/types/group_0731.py index 666ebce5c..56918289c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0731.py +++ b/githubkit/versions/v2022_11_28/types/group_0731.py @@ -9,228 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0439 import SecretScanningAlertWebhookType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookSecretScanningAlertLocationCreatedType(TypedDict): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryUnarchivedType(TypedDict): + """repository unarchived event""" - action: Literal["created"] - alert: SecretScanningAlertWebhookType + action: Literal["unarchived"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class SecretScanningLocationType(TypedDict): - """SecretScanningLocation""" - - type: NotRequired[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] - details: NotRequired[ - Union[ - SecretScanningLocationCommitType, - SecretScanningLocationWikiCommitType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationIssueCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationPullRequestTitleType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestCommentType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationPullRequestReviewCommentType, - ] - ] - - -class SecretScanningLocationCommitType(TypedDict): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - blob_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationWikiCommitType(TypedDict): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - page_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationIssueTitleType(TypedDict): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str - - -class SecretScanningLocationIssueBodyType(TypedDict): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str - - -class SecretScanningLocationIssueCommentType(TypedDict): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str - - -class SecretScanningLocationDiscussionTitleType(TypedDict): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str - - -class SecretScanningLocationDiscussionBodyType(TypedDict): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str - - -class SecretScanningLocationDiscussionCommentType(TypedDict): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str - - -class SecretScanningLocationPullRequestTitleType(TypedDict): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str - - -class SecretScanningLocationPullRequestBodyType(TypedDict): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str - - -class SecretScanningLocationPullRequestCommentType(TypedDict): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str - - -class SecretScanningLocationPullRequestReviewType(TypedDict): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str - - -class SecretScanningLocationPullRequestReviewCommentType(TypedDict): - """SecretScanningLocationPullRequestReviewComment - - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. - """ - - pull_request_review_comment_url: str - - -__all__ = ( - "SecretScanningLocationCommitType", - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestCommentType", - "SecretScanningLocationPullRequestReviewCommentType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationPullRequestTitleType", - "SecretScanningLocationType", - "SecretScanningLocationWikiCommitType", - "WebhookSecretScanningAlertLocationCreatedType", -) +__all__ = ("WebhookRepositoryUnarchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0732.py b/githubkit/versions/v2022_11_28/types/group_0732.py index 4c3c84e39..4c24b7123 100644 --- a/githubkit/versions/v2022_11_28/types/group_0732.py +++ b/githubkit/versions/v2022_11_28/types/group_0732.py @@ -9,13 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0444 import WebhooksAlertType -class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): - """Secret Scanning Alert Location Created Event""" - payload: str +class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): + """repository_vulnerability_alert create event""" + action: Literal["create"] + alert: WebhooksAlertType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) + +__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0733.py b/githubkit/versions/v2022_11_28/types/group_0733.py index b521c7892..57aaaa3f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0733.py +++ b/githubkit/versions/v2022_11_28/types/group_0733.py @@ -9,27 +9,86 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0439 import SecretScanningAlertWebhookType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): - """secret_scanning_alert publicly leaked event""" +class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): + """repository_vulnerability_alert dismiss event""" - action: Literal["publicly_leaked"] - alert: SecretScanningAlertWebhookType + action: Literal["dismiss"] + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertPubliclyLeakedType",) +class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str + affected_range: str + created_at: str + dismiss_comment: NotRequired[Union[str, None]] + dismiss_reason: str + dismissed_at: str + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, None + ] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["dismissed"] + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", + "WebhookRepositoryVulnerabilityAlertDismissType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0734.py b/githubkit/versions/v2022_11_28/types/group_0734.py index 7fcf07c7c..52e5395e0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0734.py +++ b/githubkit/versions/v2022_11_28/types/group_0734.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0439 import SecretScanningAlertWebhookType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0444 import WebhooksAlertType -class WebhookSecretScanningAlertReopenedType(TypedDict): - """secret_scanning_alert reopened event""" +class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): + """repository_vulnerability_alert reopen event""" - action: Literal["reopened"] - alert: SecretScanningAlertWebhookType + action: Literal["reopen"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertReopenedType",) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0735.py b/githubkit/versions/v2022_11_28/types/group_0735.py index fc9cf3a72..6410e3c10 100644 --- a/githubkit/versions/v2022_11_28/types/group_0735.py +++ b/githubkit/versions/v2022_11_28/types/group_0735.py @@ -9,27 +9,86 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0439 import SecretScanningAlertWebhookType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookSecretScanningAlertResolvedType(TypedDict): - """secret_scanning_alert resolved event""" +class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): + """repository_vulnerability_alert resolve event""" - action: Literal["resolved"] - alert: SecretScanningAlertWebhookType + action: Literal["resolve"] + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertResolvedType",) +class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[ + Union[ + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None + ] + ] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["fixed", "open"] + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", + "WebhookRepositoryVulnerabilityAlertResolveType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0736.py b/githubkit/versions/v2022_11_28/types/group_0736.py index 3f303086b..8ae488168 100644 --- a/githubkit/versions/v2022_11_28/types/group_0736.py +++ b/githubkit/versions/v2022_11_28/types/group_0736.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0439 import SecretScanningAlertWebhookType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0445 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertValidatedType(TypedDict): - """secret_scanning_alert validated event""" +class WebhookSecretScanningAlertCreatedType(TypedDict): + """secret_scanning_alert created event""" - action: Literal["validated"] + action: Literal["created"] alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookSecretScanningAlertValidatedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertValidatedType",) +__all__ = ("WebhookSecretScanningAlertCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0737.py b/githubkit/versions/v2022_11_28/types/group_0737.py index 669c355a8..8616e26e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0737.py +++ b/githubkit/versions/v2022_11_28/types/group_0737.py @@ -9,35 +9,228 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType - - -class WebhookSecretScanningScanCompletedType(TypedDict): - """secret_scanning_scan completed event""" - - action: Literal["completed"] - type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] - source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] - started_at: datetime - completed_at: datetime - secret_types: NotRequired[Union[list[str], None]] - custom_pattern_name: NotRequired[Union[str, None]] - custom_pattern_scope: NotRequired[ - Union[None, Literal["repository", "organization", "enterprise"]] - ] - repository: NotRequired[RepositoryWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] +from .group_0003 import SimpleUserType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0445 import SecretScanningAlertWebhookType + + +class WebhookSecretScanningAlertLocationCreatedType(TypedDict): + """Secret Scanning Alert Location Created Event""" + + action: Literal["created"] + alert: SecretScanningAlertWebhookType installation: NotRequired[SimpleInstallationType] + location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +class SecretScanningLocationType(TypedDict): + """SecretScanningLocation""" + + type: NotRequired[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] + ] + details: NotRequired[ + Union[ + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] + ] + + +class SecretScanningLocationCommitType(TypedDict): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + blob_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationWikiCommitType(TypedDict): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + page_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationIssueTitleType(TypedDict): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str + + +class SecretScanningLocationIssueBodyType(TypedDict): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str + + +class SecretScanningLocationIssueCommentType(TypedDict): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str + + +class SecretScanningLocationDiscussionTitleType(TypedDict): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str + + +class SecretScanningLocationDiscussionBodyType(TypedDict): + """SecretScanningLocationDiscussionBody + + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + + discussion_body_url: str + + +class SecretScanningLocationDiscussionCommentType(TypedDict): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str + + +class SecretScanningLocationPullRequestTitleType(TypedDict): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str + + +class SecretScanningLocationPullRequestBodyType(TypedDict): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str + + +class SecretScanningLocationPullRequestCommentType(TypedDict): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str + + +class SecretScanningLocationPullRequestReviewType(TypedDict): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str + + +class SecretScanningLocationPullRequestReviewCommentType(TypedDict): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str -__all__ = ("WebhookSecretScanningScanCompletedType",) +__all__ = ( + "SecretScanningLocationCommitType", + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestCommentType", + "SecretScanningLocationPullRequestReviewCommentType", + "SecretScanningLocationPullRequestReviewType", + "SecretScanningLocationPullRequestTitleType", + "SecretScanningLocationType", + "SecretScanningLocationWikiCommitType", + "WebhookSecretScanningAlertLocationCreatedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0738.py b/githubkit/versions/v2022_11_28/types/group_0738.py index bbe3233d8..4c3c84e39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0738.py +++ b/githubkit/versions/v2022_11_28/types/group_0738.py @@ -9,27 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0440 import WebhooksSecurityAdvisoryType +class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): + """Secret Scanning Alert Location Created Event""" -class WebhookSecurityAdvisoryPublishedType(TypedDict): - """security_advisory published event""" + payload: str - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType - sender: NotRequired[SimpleUserType] - -__all__ = ("WebhookSecurityAdvisoryPublishedType",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0739.py b/githubkit/versions/v2022_11_28/types/group_0739.py index 827c22523..fd45ec364 100644 --- a/githubkit/versions/v2022_11_28/types/group_0739.py +++ b/githubkit/versions/v2022_11_28/types/group_0739.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0440 import WebhooksSecurityAdvisoryType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0445 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryUpdatedType(TypedDict): - """security_advisory updated event""" +class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): + """secret_scanning_alert publicly leaked event""" - action: Literal["updated"] + action: Literal["publicly_leaked"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryUpdatedType",) +__all__ = ("WebhookSecretScanningAlertPubliclyLeakedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0740.py b/githubkit/versions/v2022_11_28/types/group_0740.py index 6cc9cfbad..ebcd7aa4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0740.py +++ b/githubkit/versions/v2022_11_28/types/group_0740.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0741 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0445 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryWithdrawnType(TypedDict): - """security_advisory withdrawn event""" +class WebhookSecretScanningAlertReopenedType(TypedDict): + """secret_scanning_alert reopened event""" - action: Literal["withdrawn"] + action: Literal["reopened"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryWithdrawnType",) +__all__ = ("WebhookSecretScanningAlertReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0741.py b/githubkit/versions/v2022_11_28/types/group_0741.py index f38acab63..d284ba862 100644 --- a/githubkit/versions/v2022_11_28/types/group_0741.py +++ b/githubkit/versions/v2022_11_28/types/group_0741.py @@ -9,113 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0445 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +class WebhookSecretScanningAlertResolvedType(TypedDict): + """secret_scanning_alert resolved event""" - The details of the security advisory, including summary, description, and - severity. - """ + action: Literal["resolved"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType - ] - published_at: str - references: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType - ] - severity: str - summary: str - updated_at: str - vulnerabilities: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType - ] - withdrawn_at: str - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" - - url: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str - name: str - - -__all__ = ( - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", -) +__all__ = ("WebhookSecretScanningAlertResolvedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0742.py b/githubkit/versions/v2022_11_28/types/group_0742.py index 456c3c6fd..89e1b50b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0742.py +++ b/githubkit/versions/v2022_11_28/types/group_0742.py @@ -9,25 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0112 import FullRepositoryType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0743 import WebhookSecurityAndAnalysisPropChangesType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0445 import SecretScanningAlertWebhookType -class WebhookSecurityAndAnalysisType(TypedDict): - """security_and_analysis event""" +class WebhookSecretScanningAlertValidatedType(TypedDict): + """secret_scanning_alert validated event""" - changes: WebhookSecurityAndAnalysisPropChangesType + action: Literal["validated"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: FullRepositoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAndAnalysisType",) +__all__ = ("WebhookSecretScanningAlertValidatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0743.py b/githubkit/versions/v2022_11_28/types/group_0743.py index e3d054f81..d7ae312ee 100644 --- a/githubkit/versions/v2022_11_28/types/group_0743.py +++ b/githubkit/versions/v2022_11_28/types/group_0743.py @@ -9,15 +9,35 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0744 import WebhookSecurityAndAnalysisPropChangesPropFromType - - -class WebhookSecurityAndAnalysisPropChangesType(TypedDict): - """WebhookSecurityAndAnalysisPropChanges""" - - from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] - - -__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType + + +class WebhookSecretScanningScanCompletedType(TypedDict): + """secret_scanning_scan completed event""" + + action: Literal["completed"] + type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] + source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] + started_at: datetime + completed_at: datetime + secret_types: NotRequired[Union[list[str], None]] + custom_pattern_name: NotRequired[Union[str, None]] + custom_pattern_scope: NotRequired[ + Union[None, Literal["repository", "organization", "enterprise"]] + ] + repository: NotRequired[RepositoryWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + sender: NotRequired[SimpleUserType] + + +__all__ = ("WebhookSecretScanningScanCompletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0744.py b/githubkit/versions/v2022_11_28/types/group_0744.py index ba1084b40..62a266ae5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0744.py +++ b/githubkit/versions/v2022_11_28/types/group_0744.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0055 import SecurityAndAnalysisType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0446 import WebhooksSecurityAdvisoryType -class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSecurityAdvisoryPublishedType(TypedDict): + """security_advisory published event""" - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhooksSecurityAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) +__all__ = ("WebhookSecurityAdvisoryPublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0745.py b/githubkit/versions/v2022_11_28/types/group_0745.py index 072b730cf..a45c960b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0745.py +++ b/githubkit/versions/v2022_11_28/types/group_0745.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0441 import WebhooksSponsorshipType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0446 import WebhooksSecurityAdvisoryType -class WebhookSponsorshipCancelledType(TypedDict): - """sponsorship cancelled event""" +class WebhookSecurityAdvisoryUpdatedType(TypedDict): + """security_advisory updated event""" - action: Literal["cancelled"] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhooksSecurityAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSponsorshipCancelledType",) +__all__ = ("WebhookSecurityAdvisoryUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0746.py b/githubkit/versions/v2022_11_28/types/group_0746.py index f66db3cd5..1feca0078 100644 --- a/githubkit/versions/v2022_11_28/types/group_0746.py +++ b/githubkit/versions/v2022_11_28/types/group_0746.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0441 import WebhooksSponsorshipType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0747 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType -class WebhookSponsorshipCreatedType(TypedDict): - """sponsorship created event""" +class WebhookSecurityAdvisoryWithdrawnType(TypedDict): + """security_advisory withdrawn event""" - action: Literal["created"] + action: Literal["withdrawn"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSponsorshipCreatedType",) +__all__ = ("WebhookSecurityAdvisoryWithdrawnType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0747.py b/githubkit/versions/v2022_11_28/types/group_0747.py index 50b539dac..f38acab63 100644 --- a/githubkit/versions/v2022_11_28/types/group_0747.py +++ b/githubkit/versions/v2022_11_28/types/group_0747.py @@ -9,44 +9,113 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0441 import WebhooksSponsorshipType +from .group_0001 import CvssSeveritiesType -class WebhookSponsorshipEditedType(TypedDict): - """sponsorship edited event""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - action: Literal["edited"] - changes: WebhookSponsorshipEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + The details of the security advisory, including summary, description, and + severity. + """ + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType + ] + published_at: str + references: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType + ] + severity: str + summary: str + updated_at: str + vulnerabilities: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType + ] + withdrawn_at: str -class WebhookSponsorshipEditedPropChangesType(TypedDict): - """WebhookSponsorshipEditedPropChanges""" - privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" + score: float + vector_string: Union[str, None] -class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - from_: str +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str + name: str __all__ = ( - "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", - "WebhookSponsorshipEditedPropChangesType", - "WebhookSponsorshipEditedType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0748.py b/githubkit/versions/v2022_11_28/types/group_0748.py index 61596afee..7c9d2fdc6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0748.py +++ b/githubkit/versions/v2022_11_28/types/group_0748.py @@ -9,28 +9,25 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0441 import WebhooksSponsorshipType +from .group_0003 import SimpleUserType +from .group_0117 import FullRepositoryType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0749 import WebhookSecurityAndAnalysisPropChangesType -class WebhookSponsorshipPendingCancellationType(TypedDict): - """sponsorship pending_cancellation event""" +class WebhookSecurityAndAnalysisType(TypedDict): + """security_and_analysis event""" - action: Literal["pending_cancellation"] - effective_date: NotRequired[str] + changes: WebhookSecurityAndAnalysisPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + repository: FullRepositoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSponsorshipPendingCancellationType",) +__all__ = ("WebhookSecurityAndAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0749.py b/githubkit/versions/v2022_11_28/types/group_0749.py index 0554692dd..4adee2113 100644 --- a/githubkit/versions/v2022_11_28/types/group_0749.py +++ b/githubkit/versions/v2022_11_28/types/group_0749.py @@ -9,30 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0441 import WebhooksSponsorshipType -from .group_0442 import WebhooksChanges8Type +from .group_0750 import WebhookSecurityAndAnalysisPropChangesPropFromType -class WebhookSponsorshipPendingTierChangeType(TypedDict): - """sponsorship pending_tier_change event""" +class WebhookSecurityAndAnalysisPropChangesType(TypedDict): + """WebhookSecurityAndAnalysisPropChanges""" - action: Literal["pending_tier_change"] - changes: WebhooksChanges8Type - effective_date: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] -__all__ = ("WebhookSponsorshipPendingTierChangeType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0750.py b/githubkit/versions/v2022_11_28/types/group_0750.py index 25563d8c5..33eab37e7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0750.py +++ b/githubkit/versions/v2022_11_28/types/group_0750.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0441 import WebhooksSponsorshipType -from .group_0442 import WebhooksChanges8Type +from .group_0056 import SecurityAndAnalysisType -class WebhookSponsorshipTierChangedType(TypedDict): - """sponsorship tier_changed event""" +class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["tier_changed"] - changes: WebhooksChanges8Type - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] -__all__ = ("WebhookSponsorshipTierChangedType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0751.py b/githubkit/versions/v2022_11_28/types/group_0751.py index aba841c9a..b471dea22 100644 --- a/githubkit/versions/v2022_11_28/types/group_0751.py +++ b/githubkit/versions/v2022_11_28/types/group_0751.py @@ -9,26 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0447 import WebhooksSponsorshipType -class WebhookStarCreatedType(TypedDict): - """star created event""" +class WebhookSponsorshipCancelledType(TypedDict): + """sponsorship cancelled event""" - action: Literal["created"] + action: Literal["cancelled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - starred_at: Union[str, None] + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStarCreatedType",) +__all__ = ("WebhookSponsorshipCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0752.py b/githubkit/versions/v2022_11_28/types/group_0752.py index f07fa0117..c9b380669 100644 --- a/githubkit/versions/v2022_11_28/types/group_0752.py +++ b/githubkit/versions/v2022_11_28/types/group_0752.py @@ -12,23 +12,24 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0447 import WebhooksSponsorshipType -class WebhookStarDeletedType(TypedDict): - """star deleted event""" +class WebhookSponsorshipCreatedType(TypedDict): + """sponsorship created event""" - action: Literal["deleted"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - starred_at: None + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStarDeletedType",) +__all__ = ("WebhookSponsorshipCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0753.py b/githubkit/versions/v2022_11_28/types/group_0753.py index 4838a7ec7..6e15be424 100644 --- a/githubkit/versions/v2022_11_28/types/group_0753.py +++ b/githubkit/versions/v2022_11_28/types/group_0753.py @@ -9,202 +9,44 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0447 import WebhooksSponsorshipType -class WebhookStatusType(TypedDict): - """status event""" +class WebhookSponsorshipEditedType(TypedDict): + """sponsorship edited event""" - avatar_url: NotRequired[Union[str, None]] - branches: list[WebhookStatusPropBranchesItemsType] - commit: WebhookStatusPropCommitType - context: str - created_at: str - description: Union[str, None] + action: Literal["edited"] + changes: WebhookSponsorshipEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] - id: int installation: NotRequired[SimpleInstallationType] - name: str organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - sha: str - state: Literal["pending", "success", "failure", "error"] - target_url: Union[str, None] - updated_at: str - - -class WebhookStatusPropBranchesItemsType(TypedDict): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommitType - name: str - protected: bool - - -class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] - url: Union[str, None] - - -class WebhookStatusPropCommitType(TypedDict): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthorType, None] - comments_url: str - commit: WebhookStatusPropCommitPropCommitType - committer: Union[WebhookStatusPropCommitPropCommitterType, None] - html_url: str - node_id: str - parents: list[WebhookStatusPropCommitPropParentsItemsType] - sha: str - url: str - + sponsorship: WebhooksSponsorshipType -class WebhookStatusPropCommitPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropParentsItemsType(TypedDict): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitType(TypedDict): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthorType - comment_count: int - committer: WebhookStatusPropCommitPropCommitPropCommitterType - message: str - tree: WebhookStatusPropCommitPropCommitPropTreeType - url: str - verification: WebhookStatusPropCommitPropCommitPropVerificationType - - -class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] - signature: Union[str, None] - verified: bool - verified_at: NotRequired[Union[str, None]] + +class WebhookSponsorshipEditedPropChangesType(TypedDict): + """WebhookSponsorshipEditedPropChanges""" + + privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] + + +class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" + + from_: str __all__ = ( - "WebhookStatusPropBranchesItemsPropCommitType", - "WebhookStatusPropBranchesItemsType", - "WebhookStatusPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropCommitterType", - "WebhookStatusPropCommitPropCommitPropTreeType", - "WebhookStatusPropCommitPropCommitPropVerificationType", - "WebhookStatusPropCommitPropCommitType", - "WebhookStatusPropCommitPropCommitterType", - "WebhookStatusPropCommitPropParentsItemsType", - "WebhookStatusPropCommitType", - "WebhookStatusType", + "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", + "WebhookSponsorshipEditedPropChangesType", + "WebhookSponsorshipEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0754.py b/githubkit/versions/v2022_11_28/types/group_0754.py index 31b2ed900..f36ff9a2c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0754.py +++ b/githubkit/versions/v2022_11_28/types/group_0754.py @@ -9,21 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0447 import WebhooksSponsorshipType -class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipPendingCancellationType(TypedDict): + """sponsorship pending_cancellation event""" - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + action: Literal["pending_cancellation"] + effective_date: NotRequired[str] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) +__all__ = ("WebhookSponsorshipPendingCancellationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0755.py b/githubkit/versions/v2022_11_28/types/group_0755.py index eafde2845..877074a8e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0755.py +++ b/githubkit/versions/v2022_11_28/types/group_0755.py @@ -9,15 +9,30 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0447 import WebhooksSponsorshipType +from .group_0448 import WebhooksChanges8Type -class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +class WebhookSponsorshipPendingTierChangeType(TypedDict): + """sponsorship pending_tier_change event""" + action: Literal["pending_tier_change"] + changes: WebhooksChanges8Type + effective_date: NotRequired[str] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) + +__all__ = ("WebhookSponsorshipPendingTierChangeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0756.py b/githubkit/versions/v2022_11_28/types/group_0756.py index e44b95c39..7724f1523 100644 --- a/githubkit/versions/v2022_11_28/types/group_0756.py +++ b/githubkit/versions/v2022_11_28/types/group_0756.py @@ -9,21 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0447 import WebhooksSponsorshipType +from .group_0448 import WebhooksChanges8Type -class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipTierChangedType(TypedDict): + """sponsorship tier_changed event""" - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + action: Literal["tier_changed"] + changes: WebhooksChanges8Type + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) +__all__ = ("WebhookSponsorshipTierChangedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0757.py b/githubkit/versions/v2022_11_28/types/group_0757.py index a808e25ce..f8effb17d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0757.py +++ b/githubkit/versions/v2022_11_28/types/group_0757.py @@ -9,15 +9,26 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +class WebhookStarCreatedType(TypedDict): + """star created event""" + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + starred_at: Union[str, None] -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) + +__all__ = ("WebhookStarCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0758.py b/githubkit/versions/v2022_11_28/types/group_0758.py index 15b8cdb46..3906f59bd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0758.py +++ b/githubkit/versions/v2022_11_28/types/group_0758.py @@ -12,27 +12,23 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType -from .group_0040 import IssueType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType - - -class WebhookSubIssuesParentIssueAddedType(TypedDict): - """parent issue added event""" - - action: Literal["parent_issue_added"] - parent_issue_id: float - parent_issue: IssueType - parent_issue_repo: RepositoryType - sub_issue_id: float - sub_issue: IssueType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType + + +class WebhookStarDeletedType(TypedDict): + """star deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType + starred_at: None -__all__ = ("WebhookSubIssuesParentIssueAddedType",) +__all__ = ("WebhookStarDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0759.py b/githubkit/versions/v2022_11_28/types/group_0759.py index 207b52ff4..8af083202 100644 --- a/githubkit/versions/v2022_11_28/types/group_0759.py +++ b/githubkit/versions/v2022_11_28/types/group_0759.py @@ -9,30 +9,202 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType -from .group_0040 import IssueType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookSubIssuesParentIssueRemovedType(TypedDict): - """parent issue removed event""" +class WebhookStatusType(TypedDict): + """status event""" - action: Literal["parent_issue_removed"] - parent_issue_id: float - parent_issue: IssueType - parent_issue_repo: RepositoryType - sub_issue_id: float - sub_issue: IssueType + avatar_url: NotRequired[Union[str, None]] + branches: list[WebhookStatusPropBranchesItemsType] + commit: WebhookStatusPropCommitType + context: str + created_at: str + description: Union[str, None] + enterprise: NotRequired[EnterpriseWebhooksType] + id: int installation: NotRequired[SimpleInstallationType] + name: str organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType + sha: str + state: Literal["pending", "success", "failure", "error"] + target_url: Union[str, None] + updated_at: str -__all__ = ("WebhookSubIssuesParentIssueRemovedType",) +class WebhookStatusPropBranchesItemsType(TypedDict): + """WebhookStatusPropBranchesItems""" + + commit: WebhookStatusPropBranchesItemsPropCommitType + name: str + protected: bool + + +class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): + """WebhookStatusPropBranchesItemsPropCommit""" + + sha: Union[str, None] + url: Union[str, None] + + +class WebhookStatusPropCommitType(TypedDict): + """WebhookStatusPropCommit""" + + author: Union[WebhookStatusPropCommitPropAuthorType, None] + comments_url: str + commit: WebhookStatusPropCommitPropCommitType + committer: Union[WebhookStatusPropCommitPropCommitterType, None] + html_url: str + node_id: str + parents: list[WebhookStatusPropCommitPropParentsItemsType] + sha: str + url: str + + +class WebhookStatusPropCommitPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookStatusPropCommitPropCommitterType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookStatusPropCommitPropParentsItemsType(TypedDict): + """WebhookStatusPropCommitPropParentsItems""" + + html_url: str + sha: str + url: str + + +class WebhookStatusPropCommitPropCommitType(TypedDict): + """WebhookStatusPropCommitPropCommit""" + + author: WebhookStatusPropCommitPropCommitPropAuthorType + comment_count: int + committer: WebhookStatusPropCommitPropCommitPropCommitterType + message: str + tree: WebhookStatusPropCommitPropCommitPropTreeType + url: str + verification: WebhookStatusPropCommitPropCommitPropVerificationType + + +class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthor""" + + date: datetime + email: str + name: str + username: NotRequired[str] + + +class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitter""" + + date: datetime + email: str + name: str + username: NotRequired[str] + + +class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): + """WebhookStatusPropCommitPropCommitPropTree""" + + sha: str + url: str + + +class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): + """WebhookStatusPropCommitPropCommitPropVerification""" + + payload: Union[str, None] + reason: Literal[ + "expired_key", + "not_signing_key", + "gpgverify_error", + "gpgverify_unavailable", + "unsigned", + "unknown_signature_type", + "no_user", + "unverified_email", + "bad_email", + "unknown_key", + "malformed_signature", + "invalid", + "valid", + "bad_cert", + "ocsp_pending", + ] + signature: Union[str, None] + verified: bool + verified_at: Union[str, None] + + +__all__ = ( + "WebhookStatusPropBranchesItemsPropCommitType", + "WebhookStatusPropBranchesItemsType", + "WebhookStatusPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitPropCommitterType", + "WebhookStatusPropCommitPropCommitPropTreeType", + "WebhookStatusPropCommitPropCommitPropVerificationType", + "WebhookStatusPropCommitPropCommitType", + "WebhookStatusPropCommitPropCommitterType", + "WebhookStatusPropCommitPropParentsItemsType", + "WebhookStatusPropCommitType", + "WebhookStatusType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0760.py b/githubkit/versions/v2022_11_28/types/group_0760.py index 746c41a8e..31b2ed900 100644 --- a/githubkit/versions/v2022_11_28/types/group_0760.py +++ b/githubkit/versions/v2022_11_28/types/group_0760.py @@ -9,30 +9,21 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType -from .group_0040 import IssueType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): + """Committer -class WebhookSubIssuesSubIssueAddedType(TypedDict): - """sub-issue added event""" + Metaproperties for Git author/committer information. + """ - action: Literal["sub_issue_added"] - sub_issue_id: float - sub_issue: IssueType - sub_issue_repo: RepositoryType - parent_issue_id: float - parent_issue: IssueType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -__all__ = ("WebhookSubIssuesSubIssueAddedType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0761.py b/githubkit/versions/v2022_11_28/types/group_0761.py index 5af8c2553..eafde2845 100644 --- a/githubkit/versions/v2022_11_28/types/group_0761.py +++ b/githubkit/versions/v2022_11_28/types/group_0761.py @@ -9,30 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0019 import RepositoryType -from .group_0040 import IssueType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" -class WebhookSubIssuesSubIssueRemovedType(TypedDict): - """sub-issue removed event""" + date: str + email: NotRequired[str] + name: NotRequired[str] - action: Literal["sub_issue_removed"] - sub_issue_id: float - sub_issue: IssueType - sub_issue_repo: RepositoryType - parent_issue_id: float - parent_issue: IssueType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - -__all__ = ("WebhookSubIssuesSubIssueRemovedType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0762.py b/githubkit/versions/v2022_11_28/types/group_0762.py index 0abfecc6c..e44b95c39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0762.py +++ b/githubkit/versions/v2022_11_28/types/group_0762.py @@ -9,25 +9,21 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0443 import WebhooksTeam1Type +class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): + """Committer -class WebhookTeamAddType(TypedDict): - """team_add event""" + Metaproperties for Git author/committer information. + """ - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - team: WebhooksTeam1Type + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -__all__ = ("WebhookTeamAddType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0763.py b/githubkit/versions/v2022_11_28/types/group_0763.py index a8891ef90..a808e25ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0763.py +++ b/githubkit/versions/v2022_11_28/types/group_0763.py @@ -9,194 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0443 import WebhooksTeam1Type +class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" -class WebhookTeamAddedToRepositoryType(TypedDict): - """team added_to_repository event""" - - action: Literal["added_to_repository"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] - sender: NotRequired[SimpleUserType] - team: WebhooksTeam1Type - - -class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = dict[ - str, Any -] -"""WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + date: str + email: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] -__all__ = ( - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamAddedToRepositoryPropRepositoryType", - "WebhookTeamAddedToRepositoryType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0764.py b/githubkit/versions/v2022_11_28/types/group_0764.py index 9cc28e740..697e7059a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0764.py +++ b/githubkit/versions/v2022_11_28/types/group_0764.py @@ -9,190 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0443 import WebhooksTeam1Type - - -class WebhookTeamCreatedType(TypedDict): - """team created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType +from .group_0041 import IssueType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType + + +class WebhookSubIssuesParentIssueAddedType(TypedDict): + """parent issue added event""" + + action: Literal["parent_issue_added"] + parent_issue_id: float + parent_issue: IssueType + parent_issue_repo: RepositoryType + sub_issue_id: float + sub_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamCreatedPropRepositoryType] - sender: SimpleUserType - team: WebhooksTeam1Type - - -class WebhookTeamCreatedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamCreatedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamCreatedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamCreatedPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", - "WebhookTeamCreatedPropRepositoryPropLicenseType", - "WebhookTeamCreatedPropRepositoryPropOwnerType", - "WebhookTeamCreatedPropRepositoryPropPermissionsType", - "WebhookTeamCreatedPropRepositoryType", - "WebhookTeamCreatedType", -) +__all__ = ("WebhookSubIssuesParentIssueAddedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0765.py b/githubkit/versions/v2022_11_28/types/group_0765.py index 28ea27e91..5b68843f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0765.py +++ b/githubkit/versions/v2022_11_28/types/group_0765.py @@ -9,190 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0443 import WebhooksTeam1Type - - -class WebhookTeamDeletedType(TypedDict): - """team deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType +from .group_0041 import IssueType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType + + +class WebhookSubIssuesParentIssueRemovedType(TypedDict): + """parent issue removed event""" + + action: Literal["parent_issue_removed"] + parent_issue_id: float + parent_issue: IssueType + parent_issue_repo: RepositoryType + sub_issue_id: float + sub_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] - team: WebhooksTeam1Type - - -class WebhookTeamDeletedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamDeletedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamDeletedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamDeletedPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] -__all__ = ( - "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", - "WebhookTeamDeletedPropRepositoryPropLicenseType", - "WebhookTeamDeletedPropRepositoryPropOwnerType", - "WebhookTeamDeletedPropRepositoryPropPermissionsType", - "WebhookTeamDeletedPropRepositoryType", - "WebhookTeamDeletedType", -) +__all__ = ("WebhookSubIssuesParentIssueRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0766.py b/githubkit/versions/v2022_11_28/types/group_0766.py index 214f4fc7e..81a175e6b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0766.py +++ b/githubkit/versions/v2022_11_28/types/group_0766.py @@ -9,258 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0443 import WebhooksTeam1Type - - -class WebhookTeamEditedType(TypedDict): - """team edited event""" - - action: Literal["edited"] - changes: WebhookTeamEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType +from .group_0041 import IssueType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType + + +class WebhookSubIssuesSubIssueAddedType(TypedDict): + """sub-issue added event""" + + action: Literal["sub_issue_added"] + sub_issue_id: float + sub_issue: IssueType + sub_issue_repo: RepositoryType + parent_issue_id: float + parent_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamEditedPropRepositoryType] - sender: SimpleUserType - team: WebhooksTeam1Type - - -class WebhookTeamEditedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamEditedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamEditedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamEditedPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamEditedPropChangesType(TypedDict): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookTeamEditedPropChangesPropNameType] - privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] - notification_setting: NotRequired[ - WebhookTeamEditedPropChangesPropNotificationSettingType - ] - repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] - - -class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNameType(TypedDict): - """WebhookTeamEditedPropChangesPropName""" - - from_: str - - -class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str - - -class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: NotRequired[bool] - pull: NotRequired[bool] - push: NotRequired[bool] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookTeamEditedPropChangesPropDescriptionType", - "WebhookTeamEditedPropChangesPropNameType", - "WebhookTeamEditedPropChangesPropNotificationSettingType", - "WebhookTeamEditedPropChangesPropPrivacyType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropChangesPropRepositoryType", - "WebhookTeamEditedPropChangesType", - "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", - "WebhookTeamEditedPropRepositoryPropLicenseType", - "WebhookTeamEditedPropRepositoryPropOwnerType", - "WebhookTeamEditedPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropRepositoryType", - "WebhookTeamEditedType", -) +__all__ = ("WebhookSubIssuesSubIssueAddedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0767.py b/githubkit/versions/v2022_11_28/types/group_0767.py index 17f09365f..35a218342 100644 --- a/githubkit/versions/v2022_11_28/types/group_0767.py +++ b/githubkit/versions/v2022_11_28/types/group_0767.py @@ -9,194 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0443 import WebhooksTeam1Type - - -class WebhookTeamRemovedFromRepositoryType(TypedDict): - """team removed_from_repository event""" - - action: Literal["removed_from_repository"] - enterprise: NotRequired[EnterpriseWebhooksType] +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType +from .group_0041 import IssueType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType + + +class WebhookSubIssuesSubIssueRemovedType(TypedDict): + """sub-issue removed event""" + + action: Literal["sub_issue_removed"] + sub_issue_id: float + sub_issue: IssueType + sub_issue_repo: RepositoryType + parent_issue_id: float + parent_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] - sender: SimpleUserType - team: WebhooksTeam1Type - - -class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = ( - dict[str, Any] -) -"""WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamRemovedFromRepositoryPropRepositoryType", - "WebhookTeamRemovedFromRepositoryType", -) +__all__ = ("WebhookSubIssuesSubIssueRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0768.py b/githubkit/versions/v2022_11_28/types/group_0768.py index cc2b1e1af..0be0436c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0768.py +++ b/githubkit/versions/v2022_11_28/types/group_0768.py @@ -9,25 +9,25 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0449 import WebhooksTeam1Type -class WebhookWatchStartedType(TypedDict): - """watch started event""" +class WebhookTeamAddType(TypedDict): + """team_add event""" - action: Literal["started"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType + team: WebhooksTeam1Type -__all__ = ("WebhookWatchStartedType",) +__all__ = ("WebhookTeamAddType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0769.py b/githubkit/versions/v2022_11_28/types/group_0769.py index 47e51bebc..909fc81c5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0769.py +++ b/githubkit/versions/v2022_11_28/types/group_0769.py @@ -9,35 +9,194 @@ from __future__ import annotations -from typing import Any, Union +from datetime import datetime +from typing import Any, Literal, Union from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0449 import WebhooksTeam1Type -class WebhookWorkflowDispatchType(TypedDict): - """workflow_dispatch event""" +class WebhookTeamAddedToRepositoryType(TypedDict): + """team added_to_repository event""" + action: Literal["added_to_repository"] enterprise: NotRequired[EnterpriseWebhooksType] - inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow: str + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] + sender: NotRequired[SimpleUserType] + team: WebhooksTeam1Type -WebhookWorkflowDispatchPropInputsType: TypeAlias = dict[str, Any] -"""WebhookWorkflowDispatchPropInputs +class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = dict[ + str, Any +] +"""WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. """ +class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + __all__ = ( - "WebhookWorkflowDispatchPropInputsType", - "WebhookWorkflowDispatchType", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamAddedToRepositoryPropRepositoryType", + "WebhookTeamAddedToRepositoryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0770.py b/githubkit/versions/v2022_11_28/types/group_0770.py index f0880427a..bafcb38fd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0770.py +++ b/githubkit/versions/v2022_11_28/types/group_0770.py @@ -9,79 +9,190 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0190 import DeploymentType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0449 import WebhooksTeam1Type -class WebhookWorkflowJobCompletedType(TypedDict): - """workflow_job completed event""" +class WebhookTeamCreatedType(TypedDict): + """team created event""" - action: Literal["completed"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamCreatedPropRepositoryType] sender: SimpleUserType - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJob""" - - check_run_url: str - completed_at: str - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", + team: WebhooksTeam1Type + + +class WebhookTeamCreatedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamCreatedPropRepositoryPropCustomPropertiesType ] - created_at: str - head_sha: str + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: list[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int -class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" +WebhookTeamCreatedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookTeamCreatedPropRepositoryPropCustomProperties - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", - "WebhookWorkflowJobCompletedPropWorkflowJobType", - "WebhookWorkflowJobCompletedType", + "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", + "WebhookTeamCreatedPropRepositoryPropLicenseType", + "WebhookTeamCreatedPropRepositoryPropOwnerType", + "WebhookTeamCreatedPropRepositoryPropPermissionsType", + "WebhookTeamCreatedPropRepositoryType", + "WebhookTeamCreatedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0771.py b/githubkit/versions/v2022_11_28/types/group_0771.py index d129fc90a..8b0109828 100644 --- a/githubkit/versions/v2022_11_28/types/group_0771.py +++ b/githubkit/versions/v2022_11_28/types/group_0771.py @@ -9,65 +9,190 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0449 import WebhooksTeam1Type -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamDeletedType(TypedDict): + """team deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + sender: NotRequired[SimpleUserType] + team: WebhooksTeam1Type + + +class WebhookTeamDeletedPropRepositoryType(TypedDict): + """Repository + + A git repository """ - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamDeletedPropRepositoryPropCustomPropertiesType ] - created_at: str - head_sha: str + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: list[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamDeletedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookTeamDeletedPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" +class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): + """License""" - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", + "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", + "WebhookTeamDeletedPropRepositoryPropLicenseType", + "WebhookTeamDeletedPropRepositoryPropOwnerType", + "WebhookTeamDeletedPropRepositoryPropPermissionsType", + "WebhookTeamDeletedPropRepositoryType", + "WebhookTeamDeletedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0772.py b/githubkit/versions/v2022_11_28/types/group_0772.py index 92b2bfd6b..bbfc7e6da 100644 --- a/githubkit/versions/v2022_11_28/types/group_0772.py +++ b/githubkit/versions/v2022_11_28/types/group_0772.py @@ -9,57 +9,258 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: NotRequired[str] - completed_at: NotRequired[str] - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict + +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0449 import WebhooksTeam1Type + + +class WebhookTeamEditedType(TypedDict): + """team edited event""" + + action: Literal["edited"] + changes: WebhookTeamEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamEditedPropRepositoryType] + sender: SimpleUserType + team: WebhooksTeam1Type + + +class WebhookTeamEditedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamEditedPropRepositoryPropCustomPropertiesType ] - created_at: NotRequired[str] - head_sha: NotRequired[str] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamEditedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookTeamEditedPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[list[Union[str, None]]] + id: int + login: str name: NotRequired[str] node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: NotRequired[ - list[ - Union[ - WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None - ] - ] - ] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamEditedPropChangesType(TypedDict): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookTeamEditedPropChangesPropNameType] + privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] + notification_setting: NotRequired[ + WebhookTeamEditedPropChangesPropNotificationSettingType + ] + repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] + + +class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNameType(TypedDict): + """WebhookTeamEditedPropChangesPropName""" + + from_: str + + +class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str + + +class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" + admin: NotRequired[bool] + pull: NotRequired[bool] + push: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", + "WebhookTeamEditedPropChangesPropDescriptionType", + "WebhookTeamEditedPropChangesPropNameType", + "WebhookTeamEditedPropChangesPropNotificationSettingType", + "WebhookTeamEditedPropChangesPropPrivacyType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropChangesPropRepositoryType", + "WebhookTeamEditedPropChangesType", + "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", + "WebhookTeamEditedPropRepositoryPropLicenseType", + "WebhookTeamEditedPropRepositoryPropOwnerType", + "WebhookTeamEditedPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropRepositoryType", + "WebhookTeamEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0773.py b/githubkit/versions/v2022_11_28/types/group_0773.py index 49e772c29..83ca8ee1b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0773.py +++ b/githubkit/versions/v2022_11_28/types/group_0773.py @@ -9,71 +9,194 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0002 import SimpleUserType -from .group_0190 import DeploymentType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0449 import WebhooksTeam1Type -class WebhookWorkflowJobInProgressType(TypedDict): - """workflow_job in_progress event""" +class WebhookTeamRemovedFromRepositoryType(TypedDict): + """team removed_from_repository event""" - action: Literal["in_progress"] + action: Literal["removed_from_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] sender: SimpleUserType - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJob""" - - check_run_url: str - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] - created_at: str - head_sha: str + team: WebhooksTeam1Type + + +class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: list[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = ( + dict[str, Any] +) +"""WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] + key: str name: str - number: int - started_at: Union[Union[str, None], None] - status: Literal["in_progress", "completed", "queued", "pending"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", - "WebhookWorkflowJobInProgressPropWorkflowJobType", - "WebhookWorkflowJobInProgressType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamRemovedFromRepositoryPropRepositoryType", + "WebhookTeamRemovedFromRepositoryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0774.py b/githubkit/versions/v2022_11_28/types/group_0774.py index 217bd7ee4..ddb958e09 100644 --- a/githubkit/versions/v2022_11_28/types/group_0774.py +++ b/githubkit/versions/v2022_11_28/types/group_0774.py @@ -9,54 +9,25 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] - created_at: str - head_sha: str - html_url: str - id: int - labels: list[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] - url: str - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued", "pending"] - - -__all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", -) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType + + +class WebhookWatchStartedType(TypedDict): + """watch started event""" + + action: Literal["started"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookWatchStartedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0775.py b/githubkit/versions/v2022_11_28/types/group_0775.py index 7a741384f..cbe5c36a5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0775.py +++ b/githubkit/versions/v2022_11_28/types/group_0775.py @@ -9,50 +9,35 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - - check_run_url: NotRequired[str] - completed_at: NotRequired[Union[str, None]] - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[list[str]] - name: NotRequired[str] - node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: Literal["in_progress", "completed", "queued"] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] - url: NotRequired[str] - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[str, None] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "pending", "queued"] +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict + +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType + + +class WebhookWorkflowDispatchType(TypedDict): + """workflow_dispatch event""" + + enterprise: NotRequired[EnterpriseWebhooksType] + inputs: Union[WebhookWorkflowDispatchPropInputsType, None] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: str + + +WebhookWorkflowDispatchPropInputsType: TypeAlias = dict[str, Any] +"""WebhookWorkflowDispatchPropInputs +""" __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", + "WebhookWorkflowDispatchPropInputsType", + "WebhookWorkflowDispatchType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0776.py b/githubkit/versions/v2022_11_28/types/group_0776.py index 649a92fcb..030e8a7ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0776.py +++ b/githubkit/versions/v2022_11_28/types/group_0776.py @@ -9,37 +9,44 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0190 import DeploymentType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +from .group_0003 import SimpleUserType +from .group_0196 import DeploymentType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookWorkflowJobQueuedType(TypedDict): - """workflow_job queued event""" +class WebhookWorkflowJobCompletedType(TypedDict): + """workflow_job completed event""" - action: Literal["queued"] + action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType deployment: NotRequired[DeploymentType] -class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobQueuedPropWorkflowJob""" +class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJob""" check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] + completed_at: str + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] created_at: str head_sha: str html_url: str @@ -50,31 +57,31 @@ class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): run_attempt: int run_id: int run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: datetime + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] url: str -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" +class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" completed_at: Union[str, None] conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str number: int started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending"] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", - "WebhookWorkflowJobQueuedPropWorkflowJobType", - "WebhookWorkflowJobQueuedType", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", + "WebhookWorkflowJobCompletedPropWorkflowJobType", + "WebhookWorkflowJobCompletedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0777.py b/githubkit/versions/v2022_11_28/types/group_0777.py index 4463a8a97..d129fc90a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0777.py +++ b/githubkit/versions/v2022_11_28/types/group_0777.py @@ -9,37 +9,31 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0190 import DeploymentType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowJobWaitingType(TypedDict): - """workflow_job waiting event""" - - action: Literal["waiting"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobWaitingPropWorkflowJob""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ check_run_url: str completed_at: Union[str, None] - conclusion: Union[str, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], + ] created_at: str head_sha: str html_url: str @@ -54,15 +48,15 @@ class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): runner_group_name: Union[str, None] runner_id: Union[int, None] runner_name: Union[str, None] - started_at: datetime + started_at: str + status: Literal["queued", "in_progress", "completed", "waiting"] head_branch: Union[str, None] workflow_name: Union[str, None] - status: Literal["queued", "in_progress", "completed", "waiting"] - steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): """Workflow Step""" completed_at: Union[str, None] @@ -70,11 +64,10 @@ class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): name: str number: int started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", - "WebhookWorkflowJobWaitingPropWorkflowJobType", - "WebhookWorkflowJobWaitingType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0778.py b/githubkit/versions/v2022_11_28/types/group_0778.py index c597f1ef0..92b2bfd6b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0778.py +++ b/githubkit/versions/v2022_11_28/types/group_0778.py @@ -9,426 +9,57 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0401 import WebhooksWorkflowType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" -class WebhookWorkflowRunCompletedType(TypedDict): - """workflow_run completed event""" - - action: Literal["completed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType - - -class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - "startup_failure", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: list[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + check_run_url: NotRequired[str] + completed_at: NotRequired[str] + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + created_at: NotRequired[str] + head_sha: NotRequired[str] html_url: NotRequired[str] - id: int - login: str + id: NotRequired[int] + labels: NotRequired[list[Union[str, None]]] name: NotRequired[str] node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, None + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: NotRequired[str] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: NotRequired[ + list[ + Union[ + WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None + ] + ] ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - id: int - name: str - url: str +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" __all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0779.py b/githubkit/versions/v2022_11_28/types/group_0779.py index 8156b29ee..a60f57821 100644 --- a/githubkit/versions/v2022_11_28/types/group_0779.py +++ b/githubkit/versions/v2022_11_28/types/group_0779.py @@ -9,20 +9,19 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0401 import WebhooksWorkflowType +from .group_0003 import SimpleUserType +from .group_0196 import DeploymentType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class WebhookWorkflowRunInProgressType(TypedDict): - """workflow_run in_progress event""" +class WebhookWorkflowJobInProgressType(TypedDict): + """workflow_job in_progress event""" action: Literal["in_progress"] enterprise: NotRequired[EnterpriseWebhooksType] @@ -30,403 +29,51 @@ class WebhookWorkflowRunInProgressType(TypedDict): organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType + deployment: NotRequired[DeploymentType] -class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): - """Workflow Run""" +class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJob""" - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + check_run_url: str + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] + created_at: str head_sha: str html_url: str id: int - jobs_url: str - logs_url: str - name: Union[str, None] + labels: list[str] + name: str node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: list[ - Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None - ] - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType - rerun_url: str run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "pending"] - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] url: str - workflow_id: int - workflow_url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( - TypedDict -): - """Committer - Metaproperties for Git author/committer information. - """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer +class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: Union[str, None] - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int number: int - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + started_at: Union[Union[str, None], None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressType", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", + "WebhookWorkflowJobInProgressPropWorkflowJobType", + "WebhookWorkflowJobInProgressType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0780.py b/githubkit/versions/v2022_11_28/types/group_0780.py index a07a2d024..217bd7ee4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0780.py +++ b/githubkit/versions/v2022_11_28/types/group_0780.py @@ -9,426 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0002 import SimpleUserType -from .group_0393 import EnterpriseWebhooksType -from .group_0394 import SimpleInstallationType -from .group_0395 import OrganizationSimpleWebhooksType -from .group_0396 import RepositoryWebhooksType -from .group_0401 import WebhooksWorkflowType +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowRunRequestedType(TypedDict): - """workflow_run requested event""" - - action: Literal["requested"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType - - -class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] + created_at: str + head_sha: str html_url: str id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + labels: list[str] name: str node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int number: int - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunType", - "WebhookWorkflowRunRequestedType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0781.py b/githubkit/versions/v2022_11_28/types/group_0781.py index c6d3cdfae..7a741384f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0781.py +++ b/githubkit/versions/v2022_11_28/types/group_0781.py @@ -9,34 +9,50 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType -from .group_0007 import IntegrationPropPermissionsType +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" + + check_run_url: NotRequired[str] + completed_at: NotRequired[Union[str, None]] + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + head_sha: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[list[str]] + name: NotRequired[str] + node_id: NotRequired[str] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: Literal["in_progress", "completed", "queued"] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] + url: NotRequired[str] + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[str, None] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "pending", "queued"] -class AppManifestsCodeConversionsPostResponse201Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201""" - id: int - slug: NotRequired[str] - node_id: str - client_id: str - owner: Union[None, SimpleUserType] - name: str - description: Union[str, None] - external_url: str - html_url: str - created_at: datetime - updated_at: datetime - permissions: IntegrationPropPermissionsType - events: list[str] - installations_count: NotRequired[int] - client_secret: str - webhook_secret: Union[Union[str, None], None] - pem: str - - -__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0782.py b/githubkit/versions/v2022_11_28/types/group_0782.py index 528a915b7..2684be117 100644 --- a/githubkit/versions/v2022_11_28/types/group_0782.py +++ b/githubkit/versions/v2022_11_28/types/group_0782.py @@ -9,17 +9,72 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0196 import DeploymentType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201Allof1""" - client_id: str - client_secret: str - webhook_secret: Union[str, None] - pem: str +class WebhookWorkflowJobQueuedType(TypedDict): + """workflow_job queued event""" + action: Literal["queued"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType + deployment: NotRequired[DeploymentType] -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) + +class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + labels: list[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending"] + + +__all__ = ( + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowJobQueuedPropWorkflowJobType", + "WebhookWorkflowJobQueuedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0783.py b/githubkit/versions/v2022_11_28/types/group_0783.py index 8f59ec945..0a0ef6d48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0783.py +++ b/githubkit/versions/v2022_11_28/types/group_0783.py @@ -9,17 +9,72 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0196 import DeploymentType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType -class AppHookConfigPatchBodyType(TypedDict): - """AppHookConfigPatchBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] +class WebhookWorkflowJobWaitingType(TypedDict): + """workflow_job waiting event""" + action: Literal["waiting"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType + deployment: NotRequired[DeploymentType] -__all__ = ("AppHookConfigPatchBodyType",) + +class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + labels: list[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + head_branch: Union[str, None] + workflow_name: Union[str, None] + status: Literal["queued", "in_progress", "completed", "waiting"] + steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] + + +__all__ = ( + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowJobWaitingPropWorkflowJobType", + "WebhookWorkflowJobWaitingType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0784.py b/githubkit/versions/v2022_11_28/types/group_0784.py index 24eb9bac1..751ed580f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0784.py +++ b/githubkit/versions/v2022_11_28/types/group_0784.py @@ -9,11 +9,426 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0407 import WebhooksWorkflowType -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" +class WebhookWorkflowRunCompletedType(TypedDict): + """workflow_run completed event""" -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType + + +class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + "startup_failure", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: list[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunType", + "WebhookWorkflowRunCompletedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0785.py b/githubkit/versions/v2022_11_28/types/group_0785.py index e53ae18dc..40c4dddf9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0785.py +++ b/githubkit/versions/v2022_11_28/types/group_0785.py @@ -9,17 +9,424 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0016 import AppPermissionsType +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0407 import WebhooksWorkflowType -class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): - """AppInstallationsInstallationIdAccessTokensPostBody""" +class WebhookWorkflowRunInProgressType(TypedDict): + """workflow_run in_progress event""" - repositories: NotRequired[list[str]] - repository_ids: NotRequired[list[int]] - permissions: NotRequired[AppPermissionsType] + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) +class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: list[ + Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None + ] + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "pending"] + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType + committer: ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType + ) + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: Union[str, None] + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunType", + "WebhookWorkflowRunInProgressType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0786.py b/githubkit/versions/v2022_11_28/types/group_0786.py index fad60868e..d7141c19f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0786.py +++ b/githubkit/versions/v2022_11_28/types/group_0786.py @@ -9,13 +9,426 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0399 import EnterpriseWebhooksType +from .group_0400 import SimpleInstallationType +from .group_0401 import OrganizationSimpleWebhooksType +from .group_0402 import RepositoryWebhooksType +from .group_0407 import WebhooksWorkflowType -class ApplicationsClientIdGrantDeleteBodyType(TypedDict): - """ApplicationsClientIdGrantDeleteBody""" - access_token: str +class WebhookWorkflowRunRequestedType(TypedDict): + """workflow_run requested event""" + action: Literal["requested"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType -__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) + +class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunType", + "WebhookWorkflowRunRequestedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0787.py b/githubkit/versions/v2022_11_28/types/group_0787.py index c0bad1ae1..5ba65712d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0787.py +++ b/githubkit/versions/v2022_11_28/types/group_0787.py @@ -9,13 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ApplicationsClientIdTokenPostBodyType(TypedDict): - """ApplicationsClientIdTokenPostBody""" - - access_token: str - - -__all__ = ("ApplicationsClientIdTokenPostBodyType",) +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0008 import EnterpriseType +from .group_0009 import IntegrationPropPermissionsType + + +class AppManifestsCodeConversionsPostResponse201Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201""" + + id: int + slug: NotRequired[str] + node_id: str + client_id: str + owner: Union[SimpleUserType, EnterpriseType] + name: str + description: Union[str, None] + external_url: str + html_url: str + created_at: datetime + updated_at: datetime + permissions: IntegrationPropPermissionsType + events: list[str] + installations_count: NotRequired[int] + client_secret: str + webhook_secret: Union[Union[str, None], None] + pem: str + + +__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0788.py b/githubkit/versions/v2022_11_28/types/group_0788.py index 8a68cb8df..528a915b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0788.py +++ b/githubkit/versions/v2022_11_28/types/group_0788.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class ApplicationsClientIdTokenDeleteBodyType(TypedDict): - """ApplicationsClientIdTokenDeleteBody""" +class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201Allof1""" - access_token: str + client_id: str + client_secret: str + webhook_secret: Union[str, None] + pem: str -__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0789.py b/githubkit/versions/v2022_11_28/types/group_0789.py index 8e0b6ce68..8f59ec945 100644 --- a/githubkit/versions/v2022_11_28/types/group_0789.py +++ b/githubkit/versions/v2022_11_28/types/group_0789.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ApplicationsClientIdTokenPatchBodyType(TypedDict): - """ApplicationsClientIdTokenPatchBody""" +class AppHookConfigPatchBodyType(TypedDict): + """AppHookConfigPatchBody""" - access_token: str + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("ApplicationsClientIdTokenPatchBodyType",) +__all__ = ("AppHookConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0790.py b/githubkit/versions/v2022_11_28/types/group_0790.py index 84a716496..24eb9bac1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0790.py +++ b/githubkit/versions/v2022_11_28/types/group_0790.py @@ -9,20 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0016 import AppPermissionsType +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" -class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): - """ApplicationsClientIdTokenScopedPostBody""" - access_token: str - target: NotRequired[str] - target_id: NotRequired[int] - repositories: NotRequired[list[str]] - repository_ids: NotRequired[list[int]] - permissions: NotRequired[AppPermissionsType] - - -__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0791.py b/githubkit/versions/v2022_11_28/types/group_0791.py index e3fd6e8a8..e93cba9f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0791.py +++ b/githubkit/versions/v2022_11_28/types/group_0791.py @@ -9,12 +9,17 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing_extensions import NotRequired, TypedDict -EmojisGetResponse200Type: TypeAlias = dict[str, Any] -"""EmojisGetResponse200 -""" +from .group_0017 import AppPermissionsType + + +class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): + """AppInstallationsInstallationIdAccessTokensPostBody""" + + repositories: NotRequired[list[str]] + repository_ids: NotRequired[list[int]] + permissions: NotRequired[AppPermissionsType] -__all__ = ("EmojisGetResponse200Type",) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0792.py b/githubkit/versions/v2022_11_28/types/group_0792.py index 5e4ed6156..fad60868e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0792.py +++ b/githubkit/versions/v2022_11_28/types/group_0792.py @@ -9,60 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0028 import CodeScanningDefaultSetupOptionsType +class ApplicationsClientIdGrantDeleteBodyType(TypedDict): + """ApplicationsClientIdGrantDeleteBody""" -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + access_token: str - name: str - description: str - advanced_security: NotRequired[Literal["enabled", "disabled"]] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu - bmitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", -) +__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0793.py b/githubkit/versions/v2022_11_28/types/group_0793.py index f62b58b12..c0bad1ae1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0793.py +++ b/githubkit/versions/v2022_11_28/types/group_0793.py @@ -9,62 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0028 import CodeScanningDefaultSetupOptionsType +class ApplicationsClientIdTokenPostBodyType(TypedDict): + """ApplicationsClientIdTokenPostBody""" -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" + access_token: str - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[Literal["enabled", "disabled"]] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen - dencyGraphAutosubmitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", -) +__all__ = ("ApplicationsClientIdTokenPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0794.py b/githubkit/versions/v2022_11_28/types/group_0794.py index ec6e0b6b9..8a68cb8df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0794.py +++ b/githubkit/versions/v2022_11_28/types/group_0794.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class ApplicationsClientIdTokenDeleteBodyType(TypedDict): + """ApplicationsClientIdTokenDeleteBody""" - scope: Literal["all", "all_without_configurations"] + access_token: str -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", -) +__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0795.py b/githubkit/versions/v2022_11_28/types/group_0795.py index 47259f1fc..8e0b6ce68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0795.py +++ b/githubkit/versions/v2022_11_28/types/group_0795.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class ApplicationsClientIdTokenPatchBodyType(TypedDict): + """ApplicationsClientIdTokenPatchBody""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] + access_token: str -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", -) +__all__ = ("ApplicationsClientIdTokenPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0796.py b/githubkit/versions/v2022_11_28/types/group_0796.py index 63b987e7d..8351134ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0796.py +++ b/githubkit/versions/v2022_11_28/types/group_0796.py @@ -9,25 +9,20 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0027 import CodeSecurityConfigurationType +from .group_0017 import AppPermissionsType -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons - e200 - """ +class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): + """ApplicationsClientIdTokenScopedPostBody""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] - configuration: NotRequired[CodeSecurityConfigurationType] + access_token: str + target: NotRequired[str] + target_id: NotRequired[int] + repositories: NotRequired[list[str]] + repository_ids: NotRequired[list[int]] + permissions: NotRequired[AppPermissionsType] -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0797.py b/githubkit/versions/v2022_11_28/types/group_0797.py index 778644432..e3fd6e8a8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0797.py +++ b/githubkit/versions/v2022_11_28/types/group_0797.py @@ -9,15 +9,12 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import TypeAlias - -class EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type(TypedDict): - """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" - - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] +EmojisGetResponse200Type: TypeAlias = dict[str, Any] +"""EmojisGetResponse200 +""" -__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",) +__all__ = ("EmojisGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0798.py b/githubkit/versions/v2022_11_28/types/group_0798.py index 2a811b378..e9b840a48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0798.py +++ b/githubkit/versions/v2022_11_28/types/group_0798.py @@ -9,29 +9,60 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0029 import CodeScanningDefaultSetupOptionsType -class GistsPostBodyType(TypedDict): - """GistsPostBody""" - description: NotRequired[str] - files: GistsPostBodyPropFilesType - public: NotRequired[Union[bool, Literal["true", "false"]]] +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + name: str + description: str + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -GistsPostBodyPropFilesType: TypeAlias = dict[str, Any] -"""GistsPostBodyPropFiles -Names and content for the files that make up the gist +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu + bmitActionOptions -Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} -""" + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] __all__ = ( - "GistsPostBodyPropFilesType", - "GistsPostBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0799.py b/githubkit/versions/v2022_11_28/types/group_0799.py index cad5cbf2a..4fd2b397e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0799.py +++ b/githubkit/versions/v2022_11_28/types/group_0799.py @@ -9,27 +9,62 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0029 import CodeScanningDefaultSetupOptionsType -class GistsGistIdGetResponse403Type(TypedDict): - """GistsGistIdGetResponse403""" - block: NotRequired[GistsGistIdGetResponse403PropBlockType] - message: NotRequired[str] - documentation_url: NotRequired[str] +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -class GistsGistIdGetResponse403PropBlockType(TypedDict): - """GistsGistIdGetResponse403PropBlock""" - reason: NotRequired[str] - created_at: NotRequired[str] - html_url: NotRequired[Union[str, None]] +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen + dencyGraphAutosubmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] __all__ = ( - "GistsGistIdGetResponse403PropBlockType", - "GistsGistIdGetResponse403Type", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0800.py b/githubkit/versions/v2022_11_28/types/group_0800.py index e5f3979ec..ec6e0b6b9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0800.py +++ b/githubkit/versions/v2022_11_28/types/group_0800.py @@ -9,35 +9,18 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class GistsGistIdPatchBodyType(TypedDict): - """GistsGistIdPatchBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - description: NotRequired[str] - files: NotRequired[GistsGistIdPatchBodyPropFilesType] - - -GistsGistIdPatchBodyPropFilesType: TypeAlias = dict[str, Any] -"""GistsGistIdPatchBodyPropFiles - -The gist files to be updated, renamed, or deleted. Each `key` must match the -current filename -(including extension) of the targeted gist file. For example: `hello.py`. - -To delete a file, set the whole file to null. For example: `hello.py : null`. -The file will also be -deleted if the specified object does not contain at least one of `content` or -`filename`. - -Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} -""" + scope: Literal["all", "all_without_configurations"] __all__ = ( - "GistsGistIdPatchBodyPropFilesType", - "GistsGistIdPatchBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0801.py b/githubkit/versions/v2022_11_28/types/group_0801.py index 054661ac7..47259f1fc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0801.py +++ b/githubkit/versions/v2022_11_28/types/group_0801.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class GistsGistIdCommentsPostBodyType(TypedDict): - """GistsGistIdCommentsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - body: str + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] -__all__ = ("GistsGistIdCommentsPostBodyType",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0802.py b/githubkit/versions/v2022_11_28/types/group_0802.py index 39ac46ae2..ec2e0b140 100644 --- a/githubkit/versions/v2022_11_28/types/group_0802.py +++ b/githubkit/versions/v2022_11_28/types/group_0802.py @@ -9,13 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0028 import CodeSecurityConfigurationType -class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): - """GistsGistIdCommentsCommentIdPatchBody""" - body: str +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons + e200 + """ + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) + +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0803.py b/githubkit/versions/v2022_11_28/types/group_0803.py index 10e6b69c7..778644432 100644 --- a/githubkit/versions/v2022_11_28/types/group_0803.py +++ b/githubkit/versions/v2022_11_28/types/group_0803.py @@ -9,11 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class GistsGistIdStarGetResponse404Type(TypedDict): - """GistsGistIdStarGetResponse404""" +class EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type(TypedDict): + """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("GistsGistIdStarGetResponse404Type",) + +__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0804.py b/githubkit/versions/v2022_11_28/types/group_0804.py index c8981b265..2a811b378 100644 --- a/githubkit/versions/v2022_11_28/types/group_0804.py +++ b/githubkit/versions/v2022_11_28/types/group_0804.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0019 import RepositoryType +class GistsPostBodyType(TypedDict): + """GistsPostBody""" -class InstallationRepositoriesGetResponse200Type(TypedDict): - """InstallationRepositoriesGetResponse200""" + description: NotRequired[str] + files: GistsPostBodyPropFilesType + public: NotRequired[Union[bool, Literal["true", "false"]]] - total_count: int - repositories: list[RepositoryType] - repository_selection: NotRequired[str] +GistsPostBodyPropFilesType: TypeAlias = dict[str, Any] +"""GistsPostBodyPropFiles -__all__ = ("InstallationRepositoriesGetResponse200Type",) +Names and content for the files that make up the gist + +Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} +""" + + +__all__ = ( + "GistsPostBodyPropFilesType", + "GistsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0805.py b/githubkit/versions/v2022_11_28/types/group_0805.py index cb94d812e..cad5cbf2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0805.py +++ b/githubkit/versions/v2022_11_28/types/group_0805.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class MarkdownPostBodyType(TypedDict): - """MarkdownPostBody""" +class GistsGistIdGetResponse403Type(TypedDict): + """GistsGistIdGetResponse403""" - text: str - mode: NotRequired[Literal["markdown", "gfm"]] - context: NotRequired[str] + block: NotRequired[GistsGistIdGetResponse403PropBlockType] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("MarkdownPostBodyType",) +class GistsGistIdGetResponse403PropBlockType(TypedDict): + """GistsGistIdGetResponse403PropBlock""" + + reason: NotRequired[str] + created_at: NotRequired[str] + html_url: NotRequired[Union[str, None]] + + +__all__ = ( + "GistsGistIdGetResponse403PropBlockType", + "GistsGistIdGetResponse403Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0806.py b/githubkit/versions/v2022_11_28/types/group_0806.py index f9c51f36b..e5f3979ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0806.py +++ b/githubkit/versions/v2022_11_28/types/group_0806.py @@ -9,15 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class NotificationsPutBodyType(TypedDict): - """NotificationsPutBody""" +class GistsGistIdPatchBodyType(TypedDict): + """GistsGistIdPatchBody""" - last_read_at: NotRequired[datetime] - read: NotRequired[bool] + description: NotRequired[str] + files: NotRequired[GistsGistIdPatchBodyPropFilesType] -__all__ = ("NotificationsPutBodyType",) +GistsGistIdPatchBodyPropFilesType: TypeAlias = dict[str, Any] +"""GistsGistIdPatchBodyPropFiles + +The gist files to be updated, renamed, or deleted. Each `key` must match the +current filename +(including extension) of the targeted gist file. For example: `hello.py`. + +To delete a file, set the whole file to null. For example: `hello.py : null`. +The file will also be +deleted if the specified object does not contain at least one of `content` or +`filename`. + +Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} +""" + + +__all__ = ( + "GistsGistIdPatchBodyPropFilesType", + "GistsGistIdPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0807.py b/githubkit/versions/v2022_11_28/types/group_0807.py index 70705f433..054661ac7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0807.py +++ b/githubkit/versions/v2022_11_28/types/group_0807.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class NotificationsPutResponse202Type(TypedDict): - """NotificationsPutResponse202""" +class GistsGistIdCommentsPostBodyType(TypedDict): + """GistsGistIdCommentsPostBody""" - message: NotRequired[str] + body: str -__all__ = ("NotificationsPutResponse202Type",) +__all__ = ("GistsGistIdCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0808.py b/githubkit/versions/v2022_11_28/types/group_0808.py index 0dbd53ac7..39ac46ae2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0808.py +++ b/githubkit/versions/v2022_11_28/types/group_0808.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): + """GistsGistIdCommentsCommentIdPatchBody""" - ignored: NotRequired[bool] + body: str -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0809.py b/githubkit/versions/v2022_11_28/types/group_0809.py index f0059925f..10e6b69c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0809.py +++ b/githubkit/versions/v2022_11_28/types/group_0809.py @@ -9,47 +9,11 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict - - -class OrgsOrgPatchBodyType(TypedDict): - """OrgsOrgPatchBody""" - - billing_email: NotRequired[str] - company: NotRequired[str] - email: NotRequired[str] - twitter_username: NotRequired[str] - location: NotRequired[str] - name: NotRequired[str] - description: NotRequired[str] - has_organization_projects: NotRequired[bool] - has_repository_projects: NotRequired[bool] - default_repository_permission: NotRequired[ - Literal["read", "write", "admin", "none"] - ] - members_can_create_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_public_repositories: NotRequired[bool] - members_allowed_repository_creation_type: NotRequired[ - Literal["all", "private", "none"] - ] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - blog: NotRequired[str] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[str] - deploy_keys_enabled_for_repositories: NotRequired[bool] - - -__all__ = ("OrgsOrgPatchBodyType",) +from typing_extensions import TypedDict + + +class GistsGistIdStarGetResponse404Type(TypedDict): + """GistsGistIdStarGetResponse404""" + + +__all__ = ("GistsGistIdStarGetResponse404Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0810.py b/githubkit/versions/v2022_11_28/types/group_0810.py index c9f8884a9..a168e4016 100644 --- a/githubkit/versions/v2022_11_28/types/group_0810.py +++ b/githubkit/versions/v2022_11_28/types/group_0810.py @@ -9,28 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0020 import RepositoryType -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - total_count: int - repository_cache_usages: list[ActionsCacheUsageByRepositoryType] - - -class ActionsCacheUsageByRepositoryType(TypedDict): - """Actions Cache Usage by repository +class InstallationRepositoriesGetResponse200Type(TypedDict): + """InstallationRepositoriesGetResponse200""" - GitHub Actions Cache Usage by repository. - """ - - full_name: str - active_caches_size_in_bytes: int - active_caches_count: int + total_count: int + repositories: list[RepositoryType] + repository_selection: NotRequired[str] -__all__ = ( - "ActionsCacheUsageByRepositoryType", - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", -) +__all__ = ("InstallationRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0811.py b/githubkit/versions/v2022_11_28/types/group_0811.py index dfdea43ec..cb94d812e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0811.py +++ b/githubkit/versions/v2022_11_28/types/group_0811.py @@ -13,11 +13,12 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsPermissionsPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsPutBody""" +class MarkdownPostBodyType(TypedDict): + """MarkdownPostBody""" - enabled_repositories: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + text: str + mode: NotRequired[Literal["markdown", "gfm"]] + context: NotRequired[str] -__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) +__all__ = ("MarkdownPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0812.py b/githubkit/versions/v2022_11_28/types/group_0812.py index e3ced0e8f..f9c51f36b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0812.py +++ b/githubkit/versions/v2022_11_28/types/group_0812.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -from .group_0019 import RepositoryType +class NotificationsPutBodyType(TypedDict): + """NotificationsPutBody""" -class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + last_read_at: NotRequired[datetime] + read: NotRequired[bool] - total_count: float - repositories: list[RepositoryType] - -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) +__all__ = ("NotificationsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0813.py b/githubkit/versions/v2022_11_28/types/group_0813.py index a2735688c..70705f433 100644 --- a/githubkit/versions/v2022_11_28/types/group_0813.py +++ b/githubkit/versions/v2022_11_28/types/group_0813.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class NotificationsPutResponse202Type(TypedDict): + """NotificationsPutResponse202""" - selected_repository_ids: list[int] + message: NotRequired[str] -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) +__all__ = ("NotificationsPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0814.py b/githubkit/versions/v2022_11_28/types/group_0814.py index 9daaa8c91..0dbd53ac7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0814.py +++ b/githubkit/versions/v2022_11_28/types/group_0814.py @@ -12,32 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsGetResponse200""" - - total_count: float - runner_groups: list[RunnerGroupsOrgType] - - -class RunnerGroupsOrgType(TypedDict): - """RunnerGroupsOrg""" - - id: float - name: str - visibility: str - default: bool - selected_repositories_url: NotRequired[str] - runners_url: str - hosted_runners_url: NotRequired[str] - inherited: bool - inherited_allows_public_repositories: NotRequired[bool] - allows_public_repositories: bool - workflow_restrictions_read_only: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - - -__all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsOrgType", -) +class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): + """NotificationsThreadsThreadIdSubscriptionPutBody""" + + ignored: NotRequired[bool] + + +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0815.py b/githubkit/versions/v2022_11_28/types/group_0815.py index 0648fe2ea..f0059925f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0815.py +++ b/githubkit/versions/v2022_11_28/types/group_0815.py @@ -13,16 +13,43 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsPostBody""" - - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - selected_repository_ids: NotRequired[list[int]] - runners: NotRequired[list[int]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - - -__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) +class OrgsOrgPatchBodyType(TypedDict): + """OrgsOrgPatchBody""" + + billing_email: NotRequired[str] + company: NotRequired[str] + email: NotRequired[str] + twitter_username: NotRequired[str] + location: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + default_repository_permission: NotRequired[ + Literal["read", "write", "admin", "none"] + ] + members_can_create_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_public_repositories: NotRequired[bool] + members_allowed_repository_creation_type: NotRequired[ + Literal["all", "private", "none"] + ] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + blog: NotRequired[str] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[str] + deploy_keys_enabled_for_repositories: NotRequired[bool] + + +__all__ = ("OrgsOrgPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0816.py b/githubkit/versions/v2022_11_28/types/group_0816.py index fc632cf85..c9f8884a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0816.py +++ b/githubkit/versions/v2022_11_28/types/group_0816.py @@ -9,18 +9,28 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] + total_count: int + repository_cache_usages: list[ActionsCacheUsageByRepositoryType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) +class ActionsCacheUsageByRepositoryType(TypedDict): + """Actions Cache Usage by repository + + GitHub Actions Cache Usage by repository. + """ + + full_name: str + active_caches_size_in_bytes: int + active_caches_count: int + + +__all__ = ( + "ActionsCacheUsageByRepositoryType", + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0817.py b/githubkit/versions/v2022_11_28/types/group_0817.py index 796c7b1a8..527c31a39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0817.py +++ b/githubkit/versions/v2022_11_28/types/group_0817.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0056 import MinimalRepositoryType +from .group_0065 import ActionsHostedRunnerType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" +class OrgsOrgActionsHostedRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersGetResponse200""" - total_count: float - repositories: list[MinimalRepositoryType] + total_count: int + runners: list[ActionsHostedRunnerType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0818.py b/githubkit/versions/v2022_11_28/types/group_0818.py index 0ab50bd6d..0244f5750 100644 --- a/githubkit/versions/v2022_11_28/types/group_0818.py +++ b/githubkit/versions/v2022_11_28/types/group_0818.py @@ -9,13 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" +class OrgsOrgActionsHostedRunnersPostBodyType(TypedDict): + """OrgsOrgActionsHostedRunnersPostBody""" - selected_repository_ids: list[int] + name: str + image: OrgsOrgActionsHostedRunnersPostBodyPropImageType + size: str + runner_group_id: int + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) +class OrgsOrgActionsHostedRunnersPostBodyPropImageType(TypedDict): + """OrgsOrgActionsHostedRunnersPostBodyPropImage + + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ + + id: NotRequired[str] + source: NotRequired[Literal["github", "partner", "custom"]] + version: NotRequired[Union[str, None]] + + +__all__ = ( + "OrgsOrgActionsHostedRunnersPostBodyPropImageType", + "OrgsOrgActionsHostedRunnersPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0819.py b/githubkit/versions/v2022_11_28/types/group_0819.py index 57430e64c..82028c065 100644 --- a/githubkit/versions/v2022_11_28/types/group_0819.py +++ b/githubkit/versions/v2022_11_28/types/group_0819.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0069 import RunnerType +from .group_0066 import ActionsHostedRunnerImageType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" +class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" - total_count: float - runners: list[RunnerType] + total_count: int + images: list[ActionsHostedRunnerImageType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0820.py b/githubkit/versions/v2022_11_28/types/group_0820.py index bb10bbf9a..747e75e44 100644 --- a/githubkit/versions/v2022_11_28/types/group_0820.py +++ b/githubkit/versions/v2022_11_28/types/group_0820.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0066 import ActionsHostedRunnerImageType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: list[int] +class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" + total_count: int + images: list[ActionsHostedRunnerImageType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) + +__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0821.py b/githubkit/versions/v2022_11_28/types/group_0821.py index 4416aecc5..243b56b60 100644 --- a/githubkit/versions/v2022_11_28/types/group_0821.py +++ b/githubkit/versions/v2022_11_28/types/group_0821.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0069 import RunnerType +from .group_0064 import ActionsHostedRunnerMachineSpecType -class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersGetResponse200""" +class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" total_count: int - runners: list[RunnerType] + machine_specs: list[ActionsHostedRunnerMachineSpecType] -__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0822.py b/githubkit/versions/v2022_11_28/types/group_0822.py index 5e08d0dd4..f96c7b054 100644 --- a/githubkit/versions/v2022_11_28/types/group_0822.py +++ b/githubkit/versions/v2022_11_28/types/group_0822.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" - name: str - runner_group_id: int - labels: list[str] - work_folder: NotRequired[str] + total_count: int + platforms: list[str] -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0823.py b/githubkit/versions/v2022_11_28/types/group_0823.py index 8b38f4fa1..363057afe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0823.py +++ b/githubkit/versions/v2022_11_28/types/group_0823.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0069 import RunnerType +class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): + """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" -class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" + name: NotRequired[str] + runner_group_id: NotRequired[int] + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] + image_version: NotRequired[Union[str, None]] - runner: RunnerType - encoded_jit_config: str - -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",) +__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0824.py b/githubkit/versions/v2022_11_28/types/group_0824.py index 59a1c83ed..dfdea43ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0824.py +++ b/githubkit/versions/v2022_11_28/types/group_0824.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0068 import RunnerLabelType +class OrgsOrgActionsPermissionsPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsPutBody""" -class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" + enabled_repositories: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - total_count: int - labels: list[RunnerLabelType] - -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",) +__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0825.py b/githubkit/versions/v2022_11_28/types/group_0825.py index 86d454795..484b23498 100644 --- a/githubkit/versions/v2022_11_28/types/group_0825.py +++ b/githubkit/versions/v2022_11_28/types/group_0825.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0020 import RepositoryType -class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - labels: list[str] +class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + total_count: float + repositories: list[RepositoryType] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) + +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0826.py b/githubkit/versions/v2022_11_28/types/group_0826.py index 1e050b2e1..a2735688c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0826.py +++ b/githubkit/versions/v2022_11_28/types/group_0826.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" +class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" - labels: list[str] + selected_repository_ids: list[int] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0827.py b/githubkit/versions/v2022_11_28/types/group_0827.py index 4c1a19c0e..507ed1dee 100644 --- a/githubkit/versions/v2022_11_28/types/group_0827.py +++ b/githubkit/versions/v2022_11_28/types/group_0827.py @@ -9,16 +9,36 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0068 import RunnerLabelType +class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsGetResponse200""" -class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" + total_count: float + runner_groups: list[RunnerGroupsOrgType] - total_count: int - labels: list[RunnerLabelType] +class RunnerGroupsOrgType(TypedDict): + """RunnerGroupsOrg""" -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",) + id: float + name: str + visibility: str + default: bool + selected_repositories_url: NotRequired[str] + runners_url: str + hosted_runners_url: NotRequired[str] + network_configuration_id: NotRequired[str] + inherited: bool + inherited_allows_public_repositories: NotRequired[bool] + allows_public_repositories: bool + workflow_restrictions_read_only: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + + +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200Type", + "RunnerGroupsOrgType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0828.py b/githubkit/versions/v2022_11_28/types/group_0828.py index f17121488..28b84e166 100644 --- a/githubkit/versions/v2022_11_28/types/group_0828.py +++ b/githubkit/versions/v2022_11_28/types/group_0828.py @@ -9,32 +9,21 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsGetResponse200""" - - total_count: int - secrets: list[OrganizationActionsSecretType] - - -class OrganizationActionsSecretType(TypedDict): - """Actions Secret for an Organization - - Secrets for GitHub Actions for an organization. - """ +class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsPostBody""" name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + visibility: NotRequired[Literal["selected", "all", "private"]] + selected_repository_ids: NotRequired[list[int]] + runners: NotRequired[list[int]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + network_configuration_id: NotRequired[str] -__all__ = ( - "OrganizationActionsSecretType", - "OrgsOrgActionsSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0829.py b/githubkit/versions/v2022_11_28/types/group_0829.py index e812089e8..d7ec24fe4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0829.py +++ b/githubkit/versions/v2022_11_28/types/group_0829.py @@ -9,17 +9,19 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] + name: str + visibility: NotRequired[Literal["selected", "all", "private"]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + network_configuration_id: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0830.py b/githubkit/versions/v2022_11_28/types/group_0830.py index c061f1347..eccbb4703 100644 --- a/githubkit/versions/v2022_11_28/types/group_0830.py +++ b/githubkit/versions/v2022_11_28/types/group_0830.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0056 import MinimalRepositoryType +from .group_0065 import ActionsHostedRunnerType -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" - total_count: int - repositories: list[MinimalRepositoryType] + total_count: float + runners: list[ActionsHostedRunnerType] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0831.py b/githubkit/versions/v2022_11_28/types/group_0831.py index 91774da55..5398b1b93 100644 --- a/githubkit/versions/v2022_11_28/types/group_0831.py +++ b/githubkit/versions/v2022_11_28/types/group_0831.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0057 import MinimalRepositoryType -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: list[int] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + total_count: float + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0832.py b/githubkit/versions/v2022_11_28/types/group_0832.py index feb95bc8c..0ab50bd6d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0832.py +++ b/githubkit/versions/v2022_11_28/types/group_0832.py @@ -9,33 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - total_count: int - variables: list[OrganizationActionsVariableType] + selected_repository_ids: list[int] -class OrganizationActionsVariableType(TypedDict): - """Actions Variable for an Organization - - Organization variable for GitHub Actions. - """ - - name: str - value: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "OrganizationActionsVariableType", - "OrgsOrgActionsVariablesGetResponse200Type", -) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0833.py b/githubkit/versions/v2022_11_28/types/group_0833.py index 35d9aa84a..156318579 100644 --- a/githubkit/versions/v2022_11_28/types/group_0833.py +++ b/githubkit/versions/v2022_11_28/types/group_0833.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0074 import RunnerType -class OrgsOrgActionsVariablesPostBodyType(TypedDict): - """OrgsOrgActionsVariablesPostBody""" - name: str - value: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: float + runners: list[RunnerType] -__all__ = ("OrgsOrgActionsVariablesPostBodyType",) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0834.py b/githubkit/versions/v2022_11_28/types/group_0834.py index 32397b063..bb10bbf9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0834.py +++ b/githubkit/versions/v2022_11_28/types/group_0834.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): - """OrgsOrgActionsVariablesNamePatchBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - name: NotRequired[str] - value: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[list[int]] + runners: list[int] -__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0835.py b/githubkit/versions/v2022_11_28/types/group_0835.py index 2eed4ffb6..ed87fc3d7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0835.py +++ b/githubkit/versions/v2022_11_28/types/group_0835.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0056 import MinimalRepositoryType +from .group_0074 import RunnerType -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" +class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersGetResponse200""" total_count: int - repositories: list[MinimalRepositoryType] + runners: list[RunnerType] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0836.py b/githubkit/versions/v2022_11_28/types/group_0836.py index 7b7f6fc84..5e08d0dd4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0836.py +++ b/githubkit/versions/v2022_11_28/types/group_0836.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - selected_repository_ids: list[int] + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0837.py b/githubkit/versions/v2022_11_28/types/group_0837.py index 5fba98e1e..bc7f83b13 100644 --- a/githubkit/versions/v2022_11_28/types/group_0837.py +++ b/githubkit/versions/v2022_11_28/types/group_0837.py @@ -9,70 +9,16 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict +from .group_0074 import RunnerType -class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): - """OrgsOrgAttestationsSubjectDigestGetResponse200""" - attestations: NotRequired[ - list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] - ] +class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" + runner: RunnerType + encoded_jit_config: str -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - bundle: NotRequired[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( - TypedDict -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType - ] - - -OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ - str, Any -] -"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro -pVerificationMaterial -""" - - -OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro -pDsseEnvelope -""" - - -__all__ = ( - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "OrgsOrgAttestationsSubjectDigestGetResponse200Type", -) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0838.py b/githubkit/versions/v2022_11_28/types/group_0838.py index 449ced7d9..70198dd6b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0838.py +++ b/githubkit/versions/v2022_11_28/types/group_0838.py @@ -9,95 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0028 import CodeScanningDefaultSetupOptionsType +from .group_0073 import RunnerLabelType -class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsPostBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" - name: str - description: str - advanced_security: NotRequired[Literal["enabled", "disabled"]] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] + total_count: int + labels: list[RunnerLabelType] -class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti - ons - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - s - - Feature options for secret scanning delegated bypass - """ - - reviewers: NotRequired[ - list[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType - ] - ] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - sPropReviewersItems - """ - - reviewer_id: int - reviewer_type: Literal["TEAM", "ROLE"] - - -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyType", -) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0839.py b/githubkit/versions/v2022_11_28/types/group_0839.py index a177d65ec..86d454795 100644 --- a/githubkit/versions/v2022_11_28/types/group_0839.py +++ b/githubkit/versions/v2022_11_28/types/group_0839.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - selected_repository_ids: NotRequired[list[int]] + labels: list[str] -__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0840.py b/githubkit/versions/v2022_11_28/types/group_0840.py index e24d56ec7..1e050b2e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0840.py +++ b/githubkit/versions/v2022_11_28/types/group_0840.py @@ -9,95 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0028 import CodeScanningDefaultSetupOptionsType +class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + labels: list[str] - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[Literal["enabled", "disabled"]] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto - submitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: NotRequired[ - list[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType - ] - ] - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptionsPropReviewersItems - """ - - reviewer_id: int - reviewer_type: Literal["TEAM", "ROLE"] - - -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", -) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0841.py b/githubkit/versions/v2022_11_28/types/group_0841.py index 2ad011ac8..314b90084 100644 --- a/githubkit/versions/v2022_11_28/types/group_0841.py +++ b/githubkit/versions/v2022_11_28/types/group_0841.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0073 import RunnerLabelType -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - scope: Literal[ - "all", "all_without_configurations", "public", "private_or_internal", "selected" - ] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" + total_count: int + labels: list[RunnerLabelType] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) + +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0842.py b/githubkit/versions/v2022_11_28/types/group_0842.py index ed69b7f35..f17121488 100644 --- a/githubkit/versions/v2022_11_28/types/group_0842.py +++ b/githubkit/versions/v2022_11_28/types/group_0842.py @@ -9,16 +9,32 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsGetResponse200""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] + total_count: int + secrets: list[OrganizationActionsSecretType] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) +class OrganizationActionsSecretType(TypedDict): + """Actions Secret for an Organization + + Secrets for GitHub Actions for an organization. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrganizationActionsSecretType", + "OrgsOrgActionsSecretsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0843.py b/githubkit/versions/v2022_11_28/types/group_0843.py index 04905abc0..6f2b7d0ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0843.py +++ b/githubkit/versions/v2022_11_28/types/group_0843.py @@ -12,20 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0027 import CodeSecurityConfigurationType +class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNamePutBody""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" + encrypted_value: str + key_id: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] - configuration: NotRequired[CodeSecurityConfigurationType] - -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0844.py b/githubkit/versions/v2022_11_28/types/group_0844.py index cbe65091c..8785d3b0b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0844.py +++ b/githubkit/versions/v2022_11_28/types/group_0844.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0078 import CodespaceType +from .group_0057 import MinimalRepositoryType -class OrgsOrgCodespacesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" total_count: int - codespaces: list[CodespaceType] + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0845.py b/githubkit/versions/v2022_11_28/types/group_0845.py index 1234cdbd0..91774da55 100644 --- a/githubkit/versions/v2022_11_28/types/group_0845.py +++ b/githubkit/versions/v2022_11_28/types/group_0845.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgCodespacesAccessPutBodyType(TypedDict): - """OrgsOrgCodespacesAccessPutBody""" +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] - selected_usernames: NotRequired[list[str]] + selected_repository_ids: list[int] -__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0846.py b/githubkit/versions/v2022_11_28/types/group_0846.py index 214a3ca92..feb95bc8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0846.py +++ b/githubkit/versions/v2022_11_28/types/group_0846.py @@ -9,13 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesGetResponse200""" - selected_usernames: list[str] + total_count: int + variables: list[OrganizationActionsVariableType] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) +class OrganizationActionsVariableType(TypedDict): + """Actions Variable for an Organization + + Organization variable for GitHub Actions. + """ + + name: str + value: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrganizationActionsVariableType", + "OrgsOrgActionsVariablesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0847.py b/githubkit/versions/v2022_11_28/types/group_0847.py index 1aec188b7..35d9aa84a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0847.py +++ b/githubkit/versions/v2022_11_28/types/group_0847.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgActionsVariablesPostBodyType(TypedDict): + """OrgsOrgActionsVariablesPostBody""" - selected_usernames: list[str] + name: str + value: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) +__all__ = ("OrgsOrgActionsVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0848.py b/githubkit/versions/v2022_11_28/types/group_0848.py index b5051f775..32397b063 100644 --- a/githubkit/versions/v2022_11_28/types/group_0848.py +++ b/githubkit/versions/v2022_11_28/types/group_0848.py @@ -9,32 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): + """OrgsOrgActionsVariablesNamePatchBody""" - total_count: int - secrets: list[CodespacesOrgSecretType] + name: NotRequired[str] + value: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[list[int]] -class CodespacesOrgSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "CodespacesOrgSecretType", - "OrgsOrgCodespacesSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0849.py b/githubkit/versions/v2022_11_28/types/group_0849.py index 8eb7cb359..d2e813b41 100644 --- a/githubkit/versions/v2022_11_28/types/group_0849.py +++ b/githubkit/versions/v2022_11_28/types/group_0849.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0057 import MinimalRepositoryType -class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) + +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0850.py b/githubkit/versions/v2022_11_28/types/group_0850.py index d1d0670e1..7b7f6fc84 100644 --- a/githubkit/versions/v2022_11_28/types/group_0850.py +++ b/githubkit/versions/v2022_11_28/types/group_0850.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0056 import MinimalRepositoryType +class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0851.py b/githubkit/versions/v2022_11_28/types/group_0851.py index 9d6f25331..5fba98e1e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0851.py +++ b/githubkit/versions/v2022_11_28/types/group_0851.py @@ -9,13 +9,70 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" - selected_repository_ids: list[int] + attestations: NotRequired[ + list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] + ] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro +pVerificationMaterial +""" + + +OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro +pDsseEnvelope +""" + + +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "OrgsOrgAttestationsSubjectDigestGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0852.py b/githubkit/versions/v2022_11_28/types/group_0852.py index a2e3b4a72..d3ae463f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0852.py +++ b/githubkit/versions/v2022_11_28/types/group_0852.py @@ -9,13 +9,95 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0029 import CodeScanningDefaultSetupOptionsType -class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_teams: list[str] +class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + name: str + description: str + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti + ons + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + s + + Feature options for secret scanning delegated bypass + """ + + reviewers: NotRequired[ + list[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType + ] + ] + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + sPropReviewersItems + """ + + reviewer_id: int + reviewer_type: Literal["TEAM", "ROLE"] + + +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", + "OrgsOrgCodeSecurityConfigurationsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0853.py b/githubkit/versions/v2022_11_28/types/group_0853.py index 76837fcdc..a177d65ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0853.py +++ b/githubkit/versions/v2022_11_28/types/group_0853.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - The total number of seats created for members of the specified team(s). - """ + selected_repository_ids: NotRequired[list[int]] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0854.py b/githubkit/versions/v2022_11_28/types/group_0854.py index dba449159..f9c86d8b5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0854.py +++ b/githubkit/versions/v2022_11_28/types/group_0854.py @@ -9,13 +9,95 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0029 import CodeScanningDefaultSetupOptionsType -class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - selected_teams: list[str] +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto + submitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: NotRequired[ + list[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType + ] + ] + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptionsPropReviewersItems + """ + + reviewer_id: int + reviewer_type: Literal["TEAM", "ROLE"] + + +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0855.py b/githubkit/versions/v2022_11_28/types/group_0855.py index 1b12f6a95..2ad011ac8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0855.py +++ b/githubkit/versions/v2022_11_28/types/group_0855.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - The total number of seats set to "pending cancellation" for members of the - specified team(s). - """ + scope: Literal[ + "all", "all_without_configurations", "public", "private_or_internal", "selected" + ] + selected_repository_ids: NotRequired[list[int]] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0856.py b/githubkit/versions/v2022_11_28/types/group_0856.py index 9a511ba2a..ed69b7f35 100644 --- a/githubkit/versions/v2022_11_28/types/group_0856.py +++ b/githubkit/versions/v2022_11_28/types/group_0856.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - selected_usernames: list[str] + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0857.py b/githubkit/versions/v2022_11_28/types/group_0857.py index 651754049..3a65dd886 100644 --- a/githubkit/versions/v2022_11_28/types/group_0857.py +++ b/githubkit/versions/v2022_11_28/types/group_0857.py @@ -9,16 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0028 import CodeSecurityConfigurationType -class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - The total number of seats created for the specified user(s). - """ +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - seats_created: int + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0858.py b/githubkit/versions/v2022_11_28/types/group_0858.py index dddfa0789..ffb934ec5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0858.py +++ b/githubkit/versions/v2022_11_28/types/group_0858.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0083 import CodespaceType -class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - selected_usernames: list[str] +class OrgsOrgCodespacesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) + +__all__ = ("OrgsOrgCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0859.py b/githubkit/versions/v2022_11_28/types/group_0859.py index b1510f36c..1234cdbd0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0859.py +++ b/githubkit/versions/v2022_11_28/types/group_0859.py @@ -9,16 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 +class OrgsOrgCodespacesAccessPutBodyType(TypedDict): + """OrgsOrgCodespacesAccessPutBody""" - The total number of seats set to "pending cancellation" for the specified users. - """ + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] + selected_usernames: NotRequired[list[str]] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) +__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0860.py b/githubkit/versions/v2022_11_28/types/group_0860.py index fef93ba69..214a3ca92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0860.py +++ b/githubkit/versions/v2022_11_28/types/group_0860.py @@ -9,32 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsGetResponse200""" +class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - total_count: int - secrets: list[OrganizationDependabotSecretType] + selected_usernames: list[str] -class OrganizationDependabotSecretType(TypedDict): - """Dependabot Secret for an Organization - - Secrets for GitHub Dependabot for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "OrganizationDependabotSecretType", - "OrgsOrgDependabotSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0861.py b/githubkit/versions/v2022_11_28/types/group_0861.py index 5ee895714..1aec188b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0861.py +++ b/githubkit/versions/v2022_11_28/types/group_0861.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[str]] + selected_usernames: list[str] -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0862.py b/githubkit/versions/v2022_11_28/types/group_0862.py index 0083e82e8..b5051f775 100644 --- a/githubkit/versions/v2022_11_28/types/group_0862.py +++ b/githubkit/versions/v2022_11_28/types/group_0862.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0056 import MinimalRepositoryType - -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsGetResponse200""" total_count: int - repositories: list[MinimalRepositoryType] + 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_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ( + "CodespacesOrgSecretType", + "OrgsOrgCodespacesSecretsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0863.py b/githubkit/versions/v2022_11_28/types/group_0863.py index 258f8e119..8eb7cb359 100644 --- a/githubkit/versions/v2022_11_28/types/group_0863.py +++ b/githubkit/versions/v2022_11_28/types/group_0863.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - selected_repository_ids: list[int] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0864.py b/githubkit/versions/v2022_11_28/types/group_0864.py index e99853b27..3358c739d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0864.py +++ b/githubkit/versions/v2022_11_28/types/group_0864.py @@ -9,34 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0057 import MinimalRepositoryType -class OrgsOrgHooksPostBodyType(TypedDict): - """OrgsOrgHooksPostBody""" - name: str - config: OrgsOrgHooksPostBodyPropConfigType - events: NotRequired[list[str]] - active: NotRequired[bool] +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -class OrgsOrgHooksPostBodyPropConfigType(TypedDict): - """OrgsOrgHooksPostBodyPropConfig - Key/value pairs to provide settings for this webhook. - """ - - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - username: NotRequired[str] - password: NotRequired[str] - - -__all__ = ( - "OrgsOrgHooksPostBodyPropConfigType", - "OrgsOrgHooksPostBodyType", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0865.py b/githubkit/versions/v2022_11_28/types/group_0865.py index 19cc5034f..9d6f25331 100644 --- a/githubkit/versions/v2022_11_28/types/group_0865.py +++ b/githubkit/versions/v2022_11_28/types/group_0865.py @@ -9,32 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgHooksHookIdPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] - events: NotRequired[list[str]] - active: NotRequired[bool] - name: NotRequired[str] + selected_repository_ids: list[int] -class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "OrgsOrgHooksHookIdPatchBodyPropConfigType", - "OrgsOrgHooksHookIdPatchBodyType", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0866.py b/githubkit/versions/v2022_11_28/types/group_0866.py index 6399b7a4c..a2e3b4a72 100644 --- a/githubkit/versions/v2022_11_28/types/group_0866.py +++ b/githubkit/versions/v2022_11_28/types/group_0866.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdConfigPatchBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + selected_teams: list[str] -__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0867.py b/githubkit/versions/v2022_11_28/types/group_0867.py index 597402a80..76837fcdc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0867.py +++ b/githubkit/versions/v2022_11_28/types/group_0867.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0017 import InstallationType +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 -class OrgsOrgInstallationsGetResponse200Type(TypedDict): - """OrgsOrgInstallationsGetResponse200""" + The total number of seats created for members of the specified team(s). + """ - total_count: int - installations: list[InstallationType] + seats_created: int -__all__ = ("OrgsOrgInstallationsGetResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0868.py b/githubkit/versions/v2022_11_28/types/group_0868.py index 5916d7d10..dba449159 100644 --- a/githubkit/versions/v2022_11_28/types/group_0868.py +++ b/githubkit/versions/v2022_11_28/types/group_0868.py @@ -12,8 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" + selected_teams: list[str] -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0869.py b/githubkit/versions/v2022_11_28/types/group_0869.py index 2184fe8a4..1b12f6a95 100644 --- a/githubkit/versions/v2022_11_28/types/group_0869.py +++ b/githubkit/versions/v2022_11_28/types/group_0869.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgInvitationsPostBodyType(TypedDict): - """OrgsOrgInvitationsPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - invitee_id: NotRequired[int] - email: NotRequired[str] - role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] - team_ids: NotRequired[list[int]] + The total number of seats set to "pending cancellation" for members of the + specified team(s). + """ + seats_cancelled: int -__all__ = ("OrgsOrgInvitationsPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0870.py b/githubkit/versions/v2022_11_28/types/group_0870.py index c6eb96064..9a511ba2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0870.py +++ b/githubkit/versions/v2022_11_28/types/group_0870.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0078 import CodespaceType +class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" -class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + selected_usernames: list[str] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0871.py b/githubkit/versions/v2022_11_28/types/group_0871.py index 78a34c5ed..651754049 100644 --- a/githubkit/versions/v2022_11_28/types/group_0871.py +++ b/githubkit/versions/v2022_11_28/types/group_0871.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - role: NotRequired[Literal["admin", "member"]] + The total number of seats created for the specified user(s). + """ + seats_created: int -__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0872.py b/githubkit/versions/v2022_11_28/types/group_0872.py index 242ce3795..dddfa0789 100644 --- a/githubkit/versions/v2022_11_28/types/group_0872.py +++ b/githubkit/versions/v2022_11_28/types/group_0872.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgMigrationsPostBodyType(TypedDict): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - repositories: list[str] - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[list[Literal["repositories"]]] + selected_usernames: list[str] -__all__ = ("OrgsOrgMigrationsPostBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0873.py b/githubkit/versions/v2022_11_28/types/group_0873.py index b7593464f..b1510f36c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0873.py +++ b/githubkit/versions/v2022_11_28/types/group_0873.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - async_: NotRequired[bool] + The total number of seats set to "pending cancellation" for the specified users. + """ + seats_cancelled: int -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0874.py b/githubkit/versions/v2022_11_28/types/group_0874.py index 5de4170f2..fef93ba69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0874.py +++ b/githubkit/versions/v2022_11_28/types/group_0874.py @@ -9,11 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsGetResponse200""" + total_count: int + secrets: list[OrganizationDependabotSecretType] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) + +class OrganizationDependabotSecretType(TypedDict): + """Dependabot Secret for an Organization + + Secrets for GitHub Dependabot for an organization. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrganizationDependabotSecretType", + "OrgsOrgDependabotSecretsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0875.py b/githubkit/versions/v2022_11_28/types/group_0875.py index f43c7d76b..5ee895714 100644 --- a/githubkit/versions/v2022_11_28/types/group_0875.py +++ b/githubkit/versions/v2022_11_28/types/group_0875.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[str]] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0876.py b/githubkit/versions/v2022_11_28/types/group_0876.py index a99cad652..815939b5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0876.py +++ b/githubkit/versions/v2022_11_28/types/group_0876.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0057 import MinimalRepositoryType -class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" - pat_request_ids: NotRequired[list[int]] - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0877.py b/githubkit/versions/v2022_11_28/types/group_0877.py index f08e02365..258f8e119 100644 --- a/githubkit/versions/v2022_11_28/types/group_0877.py +++ b/githubkit/versions/v2022_11_28/types/group_0877.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + selected_repository_ids: list[int] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0878.py b/githubkit/versions/v2022_11_28/types/group_0878.py index b2f0b1907..e99853b27 100644 --- a/githubkit/versions/v2022_11_28/types/group_0878.py +++ b/githubkit/versions/v2022_11_28/types/group_0878.py @@ -9,15 +9,34 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgHooksPostBodyType(TypedDict): + """OrgsOrgHooksPostBody""" - action: Literal["revoke"] - pat_ids: list[int] + name: str + config: OrgsOrgHooksPostBodyPropConfigType + events: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) +class OrgsOrgHooksPostBodyPropConfigType(TypedDict): + """OrgsOrgHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + username: NotRequired[str] + password: NotRequired[str] + + +__all__ = ( + "OrgsOrgHooksPostBodyPropConfigType", + "OrgsOrgHooksPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0879.py b/githubkit/versions/v2022_11_28/types/group_0879.py index 32c37cd97..19cc5034f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0879.py +++ b/githubkit/versions/v2022_11_28/types/group_0879.py @@ -9,14 +9,32 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgHooksHookIdPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdPatchBody""" - action: Literal["revoke"] + config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] + events: NotRequired[list[str]] + active: NotRequired[bool] + name: NotRequired[str] -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) +class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): + """OrgsOrgHooksHookIdPatchBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ( + "OrgsOrgHooksHookIdPatchBodyPropConfigType", + "OrgsOrgHooksHookIdPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0880.py b/githubkit/versions/v2022_11_28/types/group_0880.py index 015086720..6399b7a4c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0880.py +++ b/githubkit/versions/v2022_11_28/types/group_0880.py @@ -9,33 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgPrivateRegistriesGetResponse200Type(TypedDict): - """OrgsOrgPrivateRegistriesGetResponse200""" +class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdConfigPatchBody""" - total_count: int - configurations: list[OrgPrivateRegistryConfigurationType] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -class OrgPrivateRegistryConfigurationType(TypedDict): - """Organization private registry - - Private registry configuration for an organization - """ - - name: str - registry_type: Literal["maven_repository"] - username: NotRequired[Union[str, None]] - visibility: Literal["all", "private", "selected"] - created_at: datetime - updated_at: datetime - - -__all__ = ( - "OrgPrivateRegistryConfigurationType", - "OrgsOrgPrivateRegistriesGetResponse200Type", -) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0881.py b/githubkit/versions/v2022_11_28/types/group_0881.py index 1aa9cb63a..54372b1e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0881.py +++ b/githubkit/versions/v2022_11_28/types/group_0881.py @@ -9,19 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0018 import InstallationType -class OrgsOrgPrivateRegistriesPostBodyType(TypedDict): - """OrgsOrgPrivateRegistriesPostBody""" - registry_type: Literal["maven_repository"] - username: NotRequired[Union[str, None]] - encrypted_value: str - key_id: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgInstallationsGetResponse200Type(TypedDict): + """OrgsOrgInstallationsGetResponse200""" + total_count: int + installations: list[InstallationType] -__all__ = ("OrgsOrgPrivateRegistriesPostBodyType",) + +__all__ = ("OrgsOrgInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0882.py b/githubkit/versions/v2022_11_28/types/group_0882.py index 95dc5e190..5916d7d10 100644 --- a/githubkit/versions/v2022_11_28/types/group_0882.py +++ b/githubkit/versions/v2022_11_28/types/group_0882.py @@ -12,11 +12,8 @@ from typing_extensions import TypedDict -class OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type(TypedDict): - """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" +class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" - key_id: str - key: str - -__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0883.py b/githubkit/versions/v2022_11_28/types/group_0883.py index e4ce35654..2184fe8a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0883.py +++ b/githubkit/versions/v2022_11_28/types/group_0883.py @@ -9,19 +9,17 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgPrivateRegistriesSecretNamePatchBodyType(TypedDict): - """OrgsOrgPrivateRegistriesSecretNamePatchBody""" +class OrgsOrgInvitationsPostBodyType(TypedDict): + """OrgsOrgInvitationsPostBody""" - registry_type: NotRequired[Literal["maven_repository"]] - username: NotRequired[Union[str, None]] - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[list[int]] + invitee_id: NotRequired[int] + email: NotRequired[str] + role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] + team_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",) +__all__ = ("OrgsOrgInvitationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0884.py b/githubkit/versions/v2022_11_28/types/group_0884.py index 1afe17554..ba6e5aad8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0884.py +++ b/githubkit/versions/v2022_11_28/types/group_0884.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0083 import CodespaceType -class OrgsOrgProjectsPostBodyType(TypedDict): - """OrgsOrgProjectsPostBody""" - name: str - body: NotRequired[str] +class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("OrgsOrgProjectsPostBodyType",) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0885.py b/githubkit/versions/v2022_11_28/types/group_0885.py index 7dfb2c23e..78a34c5ed 100644 --- a/githubkit/versions/v2022_11_28/types/group_0885.py +++ b/githubkit/versions/v2022_11_28/types/group_0885.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0107 import CustomPropertyType +class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgMembershipsUsernamePutBody""" -class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): - """OrgsOrgPropertiesSchemaPatchBody""" + role: NotRequired[Literal["admin", "member"]] - properties: list[CustomPropertyType] - -__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) +__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0886.py b/githubkit/versions/v2022_11_28/types/group_0886.py index 5af894fd6..242ce3795 100644 --- a/githubkit/versions/v2022_11_28/types/group_0886.py +++ b/githubkit/versions/v2022_11_28/types/group_0886.py @@ -9,16 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0109 import CustomPropertyValueType +class OrgsOrgMigrationsPostBodyType(TypedDict): + """OrgsOrgMigrationsPostBody""" -class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): - """OrgsOrgPropertiesValuesPatchBody""" + 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"]]] - repository_names: list[str] - properties: list[CustomPropertyValueType] - -__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) +__all__ = ("OrgsOrgMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0887.py b/githubkit/versions/v2022_11_28/types/group_0887.py index 5e584bb70..b7593464f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0887.py +++ b/githubkit/versions/v2022_11_28/types/group_0887.py @@ -9,51 +9,13 @@ from __future__ import annotations -from typing import Any, Literal -from typing_extensions import NotRequired, TypeAlias, TypedDict - - -class OrgsOrgReposPostBodyType(TypedDict): - """OrgsOrgReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private"]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] - - -OrgsOrgReposPostBodyPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""OrgsOrgReposPostBodyPropCustomProperties - -The custom properties for the new repository. The keys are the custom property -names, and the values are the corresponding custom property values. -""" +from typing_extensions import NotRequired, TypedDict + + +class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" + + async_: NotRequired[bool] -__all__ = ( - "OrgsOrgReposPostBodyPropCustomPropertiesType", - "OrgsOrgReposPostBodyType", -) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0888.py b/githubkit/versions/v2022_11_28/types/group_0888.py index 80c1c67dc..5de4170f2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0888.py +++ b/githubkit/versions/v2022_11_28/types/group_0888.py @@ -9,81 +9,11 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0113 import RepositoryRulesetBypassActorType -from .group_0122 import OrgRulesetConditionsOneof0Type -from .group_0123 import OrgRulesetConditionsOneof1Type -from .group_0124 import OrgRulesetConditionsOneof2Type -from .group_0125 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0126 import RepositoryRuleUpdateType -from .group_0128 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0129 import RepositoryRuleMergeQueueType -from .group_0131 import RepositoryRuleRequiredDeploymentsType -from .group_0134 import RepositoryRulePullRequestType -from .group_0136 import RepositoryRuleRequiredStatusChecksType -from .group_0138 import RepositoryRuleCommitMessagePatternType -from .group_0140 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0142 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleBranchNamePatternType -from .group_0146 import RepositoryRuleTagNamePatternType -from .group_0149 import RepositoryRuleWorkflowsType -from .group_0151 import RepositoryRuleCodeScanningType -from .group_0153 import RepositoryRuleOneof18Type +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -class OrgsOrgRulesetsPostBodyType(TypedDict): - """OrgsOrgRulesetsPostBody""" - name: str - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - - -__all__ = ("OrgsOrgRulesetsPostBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0889.py b/githubkit/versions/v2022_11_28/types/group_0889.py index fb54b52bf..f43c7d76b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0889.py +++ b/githubkit/versions/v2022_11_28/types/group_0889.py @@ -9,81 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0113 import RepositoryRulesetBypassActorType -from .group_0122 import OrgRulesetConditionsOneof0Type -from .group_0123 import OrgRulesetConditionsOneof1Type -from .group_0124 import OrgRulesetConditionsOneof2Type -from .group_0125 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0126 import RepositoryRuleUpdateType -from .group_0128 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0129 import RepositoryRuleMergeQueueType -from .group_0131 import RepositoryRuleRequiredDeploymentsType -from .group_0134 import RepositoryRulePullRequestType -from .group_0136 import RepositoryRuleRequiredStatusChecksType -from .group_0138 import RepositoryRuleCommitMessagePatternType -from .group_0140 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0142 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleBranchNamePatternType -from .group_0146 import RepositoryRuleTagNamePatternType -from .group_0149 import RepositoryRuleWorkflowsType -from .group_0151 import RepositoryRuleCodeScanningType -from .group_0153 import RepositoryRuleOneof18Type +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" -class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): - """OrgsOrgRulesetsRulesetIdPutBody""" + message: NotRequired[str] + documentation_url: NotRequired[str] - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0890.py b/githubkit/versions/v2022_11_28/types/group_0890.py index ccfb358e6..a99cad652 100644 --- a/githubkit/versions/v2022_11_28/types/group_0890.py +++ b/githubkit/versions/v2022_11_28/types/group_0890.py @@ -9,23 +9,16 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsPostBodyType(TypedDict): - """OrgsOrgTeamsPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" - name: str - description: NotRequired[str] - maintainers: NotRequired[list[str]] - repo_names: NotRequired[list[str]] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push"]] - parent_team_id: NotRequired[int] + pat_request_ids: NotRequired[list[int]] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgTeamsPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0891.py b/githubkit/versions/v2022_11_28/types/group_0891.py index c08c152bc..f08e02365 100644 --- a/githubkit/versions/v2022_11_28/types/group_0891.py +++ b/githubkit/versions/v2022_11_28/types/group_0891.py @@ -13,17 +13,11 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - 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]] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0892.py b/githubkit/versions/v2022_11_28/types/group_0892.py index cb961efbb..b2f0b1907 100644 --- a/githubkit/versions/v2022_11_28/types/group_0892.py +++ b/githubkit/versions/v2022_11_28/types/group_0892.py @@ -9,15 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPostBody""" - title: str - body: str - private: NotRequired[bool] + action: Literal["revoke"] + pat_ids: list[int] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0893.py b/githubkit/versions/v2022_11_28/types/group_0893.py index db3011d85..32c37cd97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0893.py +++ b/githubkit/versions/v2022_11_28/types/group_0893.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - title: NotRequired[str] - body: NotRequired[str] + action: Literal["revoke"] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0894.py b/githubkit/versions/v2022_11_28/types/group_0894.py index a05290583..015086720 100644 --- a/githubkit/versions/v2022_11_28/types/group_0894.py +++ b/githubkit/versions/v2022_11_28/types/group_0894.py @@ -9,13 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgPrivateRegistriesGetResponse200Type(TypedDict): + """OrgsOrgPrivateRegistriesGetResponse200""" - body: str + total_count: int + configurations: list[OrgPrivateRegistryConfigurationType] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) +class OrgPrivateRegistryConfigurationType(TypedDict): + """Organization private registry + + Private registry configuration for an organization + """ + + name: str + registry_type: Literal["maven_repository"] + username: NotRequired[Union[str, None]] + visibility: Literal["all", "private", "selected"] + created_at: datetime + updated_at: datetime + + +__all__ = ( + "OrgPrivateRegistryConfigurationType", + "OrgsOrgPrivateRegistriesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0895.py b/githubkit/versions/v2022_11_28/types/group_0895.py index a6b974137..1aa9cb63a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0895.py +++ b/githubkit/versions/v2022_11_28/types/group_0895.py @@ -9,17 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class OrgsOrgPrivateRegistriesPostBodyType(TypedDict): + """OrgsOrgPrivateRegistriesPostBody""" - body: str + registry_type: Literal["maven_repository"] + username: NotRequired[Union[str, None]] + encrypted_value: str + key_id: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", -) +__all__ = ("OrgsOrgPrivateRegistriesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0896.py b/githubkit/versions/v2022_11_28/types/group_0896.py index 937b98f91..95dc5e190 100644 --- a/githubkit/versions/v2022_11_28/types/group_0896.py +++ b/githubkit/versions/v2022_11_28/types/group_0896.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type(TypedDict): + """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + key_id: str + key: str -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0897.py b/githubkit/versions/v2022_11_28/types/group_0897.py index c71526f64..e4ce35654 100644 --- a/githubkit/versions/v2022_11_28/types/group_0897.py +++ b/githubkit/versions/v2022_11_28/types/group_0897.py @@ -9,16 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgPrivateRegistriesSecretNamePatchBodyType(TypedDict): + """OrgsOrgPrivateRegistriesSecretNamePatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + registry_type: NotRequired[Literal["maven_repository"]] + username: NotRequired[Union[str, None]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0898.py b/githubkit/versions/v2022_11_28/types/group_0898.py index b4d610e84..1afe17554 100644 --- a/githubkit/versions/v2022_11_28/types/group_0898.py +++ b/githubkit/versions/v2022_11_28/types/group_0898.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgProjectsPostBodyType(TypedDict): + """OrgsOrgProjectsPostBody""" - role: NotRequired[Literal["member", "maintainer"]] + name: str + body: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0899.py b/githubkit/versions/v2022_11_28/types/group_0899.py index 8466dce90..0db319f83 100644 --- a/githubkit/versions/v2022_11_28/types/group_0899.py +++ b/githubkit/versions/v2022_11_28/types/group_0899.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0112 import CustomPropertyType -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] +class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): + """OrgsOrgPropertiesSchemaPatchBody""" + properties: list[CustomPropertyType] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) + +__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0900.py b/githubkit/versions/v2022_11_28/types/group_0900.py index a637157e4..5843e7d09 100644 --- a/githubkit/versions/v2022_11_28/types/group_0900.py +++ b/githubkit/versions/v2022_11_28/types/group_0900.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0114 import CustomPropertyValueType -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - message: NotRequired[str] - documentation_url: NotRequired[str] +class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): + """OrgsOrgPropertiesValuesPatchBody""" + repository_names: list[str] + properties: list[CustomPropertyValueType] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) + +__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0901.py b/githubkit/versions/v2022_11_28/types/group_0901.py index b42f638ac..5e584bb70 100644 --- a/githubkit/versions/v2022_11_28/types/group_0901.py +++ b/githubkit/versions/v2022_11_28/types/group_0901.py @@ -9,13 +9,51 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict - - -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - - permission: NotRequired[str] +from typing import Any, Literal +from typing_extensions import NotRequired, TypeAlias, TypedDict + + +class OrgsOrgReposPostBodyType(TypedDict): + """OrgsOrgReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private"]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] + + +OrgsOrgReposPostBodyPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""OrgsOrgReposPostBodyPropCustomProperties + +The custom properties for the new repository. The keys are the custom property +names, and the values are the corresponding custom property values. +""" -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) +__all__ = ( + "OrgsOrgReposPostBodyPropCustomPropertiesType", + "OrgsOrgReposPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0902.py b/githubkit/versions/v2022_11_28/types/group_0902.py index edc438335..1bdbbdb57 100644 --- a/githubkit/versions/v2022_11_28/types/group_0902.py +++ b/githubkit/versions/v2022_11_28/types/group_0902.py @@ -9,14 +9,81 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0118 import RepositoryRulesetBypassActorType +from .group_0127 import OrgRulesetConditionsOneof0Type +from .group_0128 import OrgRulesetConditionsOneof1Type +from .group_0129 import OrgRulesetConditionsOneof2Type +from .group_0130 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0131 import RepositoryRuleUpdateType +from .group_0133 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0134 import RepositoryRuleMergeQueueType +from .group_0136 import RepositoryRuleRequiredDeploymentsType +from .group_0139 import RepositoryRulePullRequestType +from .group_0141 import RepositoryRuleRequiredStatusChecksType +from .group_0143 import RepositoryRuleCommitMessagePatternType +from .group_0145 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0147 import RepositoryRuleCommitterEmailPatternType +from .group_0149 import RepositoryRuleBranchNamePatternType +from .group_0151 import RepositoryRuleTagNamePatternType +from .group_0154 import RepositoryRuleWorkflowsType +from .group_0156 import RepositoryRuleCodeScanningType +from .group_0158 import RepositoryRuleOneof18Type -class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): - """OrgsOrgSecurityProductEnablementPostBody""" - query_suite: NotRequired[Literal["default", "extended"]] +class OrgsOrgRulesetsPostBodyType(TypedDict): + """OrgsOrgRulesetsPostBody""" + name: str + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) + +__all__ = ("OrgsOrgRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0903.py b/githubkit/versions/v2022_11_28/types/group_0903.py index 8710755b1..c6f8e758e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0903.py +++ b/githubkit/versions/v2022_11_28/types/group_0903.py @@ -9,15 +9,81 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0118 import RepositoryRulesetBypassActorType +from .group_0127 import OrgRulesetConditionsOneof0Type +from .group_0128 import OrgRulesetConditionsOneof1Type +from .group_0129 import OrgRulesetConditionsOneof2Type +from .group_0130 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0131 import RepositoryRuleUpdateType +from .group_0133 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0134 import RepositoryRuleMergeQueueType +from .group_0136 import RepositoryRuleRequiredDeploymentsType +from .group_0139 import RepositoryRulePullRequestType +from .group_0141 import RepositoryRuleRequiredStatusChecksType +from .group_0143 import RepositoryRuleCommitMessagePatternType +from .group_0145 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0147 import RepositoryRuleCommitterEmailPatternType +from .group_0149 import RepositoryRuleBranchNamePatternType +from .group_0151 import RepositoryRuleTagNamePatternType +from .group_0154 import RepositoryRuleWorkflowsType +from .group_0156 import RepositoryRuleCodeScanningType +from .group_0158 import RepositoryRuleOneof18Type -class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdDeleteResponse403""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] +class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): + """OrgsOrgRulesetsRulesetIdPutBody""" + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) + +__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0904.py b/githubkit/versions/v2022_11_28/types/group_0904.py index 3481963bb..56c40e834 100644 --- a/githubkit/versions/v2022_11_28/types/group_0904.py +++ b/githubkit/versions/v2022_11_28/types/group_0904.py @@ -9,15 +9,32 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): - """ProjectsColumnsCardsCardIdPatchBody""" +class OrgsOrgSettingsNetworkConfigurationsGetResponse200Type(TypedDict): + """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" - note: NotRequired[Union[str, None]] - archived: NotRequired[bool] + total_count: int + network_configurations: list[NetworkConfigurationType] -__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) +class NetworkConfigurationType(TypedDict): + """Hosted compute network configuration + + A hosted compute network configuration. + """ + + id: str + name: str + compute_service: NotRequired[Literal["none", "actions", "codespaces"]] + network_settings_ids: NotRequired[list[str]] + created_on: Union[datetime, None] + + +__all__ = ( + "NetworkConfigurationType", + "OrgsOrgSettingsNetworkConfigurationsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0905.py b/githubkit/versions/v2022_11_28/types/group_0905.py index ab2395816..c29f59c8e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0905.py +++ b/githubkit/versions/v2022_11_28/types/group_0905.py @@ -9,14 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class OrgsOrgSettingsNetworkConfigurationsPostBodyType(TypedDict): + """OrgsOrgSettingsNetworkConfigurationsPostBody""" - position: str - column_id: NotRequired[int] + name: str + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: list[str] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0906.py b/githubkit/versions/v2022_11_28/types/group_0906.py index 7c136f63a..cf5c73d09 100644 --- a/githubkit/versions/v2022_11_28/types/group_0906.py +++ b/githubkit/versions/v2022_11_28/types/group_0906.py @@ -9,11 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType( + TypedDict +): + """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" + name: NotRequired[str] + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: NotRequired[list[str]] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) + +__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0907.py b/githubkit/versions/v2022_11_28/types/group_0907.py index 2628f5b1a..ccfb358e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0907.py +++ b/githubkit/versions/v2022_11_28/types/group_0907.py @@ -9,29 +9,23 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class OrgsOrgTeamsPostBodyType(TypedDict): + """OrgsOrgTeamsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + name: str + description: NotRequired[str] + maintainers: NotRequired[list[str]] + repo_names: NotRequired[list[str]] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] ] + permission: NotRequired[Literal["pull", "push"]] + parent_team_id: NotRequired[int] -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - resource: NotRequired[str] - field: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", - "ProjectsColumnsCardsCardIdMovesPostResponse403Type", -) +__all__ = ("OrgsOrgTeamsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0908.py b/githubkit/versions/v2022_11_28/types/group_0908.py index c4d1b64db..c08c152bc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0908.py +++ b/githubkit/versions/v2022_11_28/types/group_0908.py @@ -9,28 +9,21 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugPatchBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + name: NotRequired[str] + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", - "ProjectsColumnsCardsCardIdMovesPostResponse503Type", -) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0909.py b/githubkit/versions/v2022_11_28/types/group_0909.py index 62ebaaaef..cb961efbb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0909.py +++ b/githubkit/versions/v2022_11_28/types/group_0909.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdPatchBodyType(TypedDict): - """ProjectsColumnsColumnIdPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - name: str + title: str + body: str + private: NotRequired[bool] -__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0910.py b/githubkit/versions/v2022_11_28/types/group_0910.py index 1fdc1bf2e..db3011d85 100644 --- a/githubkit/versions/v2022_11_28/types/group_0910.py +++ b/githubkit/versions/v2022_11_28/types/group_0910.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - note: Union[str, None] + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0911.py b/githubkit/versions/v2022_11_28/types/group_0911.py index 93c271e2e..a05290583 100644 --- a/githubkit/versions/v2022_11_28/types/group_0911.py +++ b/githubkit/versions/v2022_11_28/types/group_0911.py @@ -12,11 +12,10 @@ from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - content_id: int - content_type: str + body: str -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0912.py b/githubkit/versions/v2022_11_28/types/group_0912.py index 4b4ed0962..a6b974137 100644 --- a/githubkit/versions/v2022_11_28/types/group_0912.py +++ b/githubkit/versions/v2022_11_28/types/group_0912.py @@ -9,28 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] - ] - - -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] + body: str __all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", - "ProjectsColumnsColumnIdCardsPostResponse503Type", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0913.py b/githubkit/versions/v2022_11_28/types/group_0913.py index 1eee63273..937b98f91 100644 --- a/githubkit/versions/v2022_11_28/types/group_0913.py +++ b/githubkit/versions/v2022_11_28/types/group_0913.py @@ -9,13 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): - """ProjectsColumnsColumnIdMovesPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - position: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0914.py b/githubkit/versions/v2022_11_28/types/group_0914.py index 7df563c61..c71526f64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0914.py +++ b/githubkit/versions/v2022_11_28/types/group_0914.py @@ -9,11 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) + +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0915.py b/githubkit/versions/v2022_11_28/types/group_0915.py index 36d491ce7..b4d610e84 100644 --- a/githubkit/versions/v2022_11_28/types/group_0915.py +++ b/githubkit/versions/v2022_11_28/types/group_0915.py @@ -9,15 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdDeleteResponse403Type(TypedDict): - """ProjectsProjectIdDeleteResponse403""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("ProjectsProjectIdDeleteResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0916.py b/githubkit/versions/v2022_11_28/types/group_0916.py index 31f864cbd..8466dce90 100644 --- a/githubkit/versions/v2022_11_28/types/group_0916.py +++ b/githubkit/versions/v2022_11_28/types/group_0916.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdPatchBodyType(TypedDict): - """ProjectsProjectIdPatchBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - name: NotRequired[str] - body: NotRequired[Union[str, None]] - state: NotRequired[str] - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("ProjectsProjectIdPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0917.py b/githubkit/versions/v2022_11_28/types/group_0917.py index 6e093b913..a637157e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0917.py +++ b/githubkit/versions/v2022_11_28/types/group_0917.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdPatchResponse403Type(TypedDict): - """ProjectsProjectIdPatchResponse403""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" message: NotRequired[str] documentation_url: NotRequired[str] - errors: NotRequired[list[str]] -__all__ = ("ProjectsProjectIdPatchResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0918.py b/githubkit/versions/v2022_11_28/types/group_0918.py index e3cd89b33..b42f638ac 100644 --- a/githubkit/versions/v2022_11_28/types/group_0918.py +++ b/githubkit/versions/v2022_11_28/types/group_0918.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + permission: NotRequired[str] -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0919.py b/githubkit/versions/v2022_11_28/types/group_0919.py index 8c02d8953..edc438335 100644 --- a/githubkit/versions/v2022_11_28/types/group_0919.py +++ b/githubkit/versions/v2022_11_28/types/group_0919.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdColumnsPostBodyType(TypedDict): - """ProjectsProjectIdColumnsPostBody""" +class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): + """OrgsOrgSecurityProductEnablementPostBody""" - name: str + query_suite: NotRequired[Literal["default", "extended"]] -__all__ = ("ProjectsProjectIdColumnsPostBodyType",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0920.py b/githubkit/versions/v2022_11_28/types/group_0920.py index a7224c5e8..8710755b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0920.py +++ b/githubkit/versions/v2022_11_28/types/group_0920.py @@ -12,11 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDeleteResponse403Type(TypedDict): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdDeleteResponse403""" message: NotRequired[str] documentation_url: NotRequired[str] + errors: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoDeleteResponse403Type",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0921.py b/githubkit/versions/v2022_11_28/types/group_0921.py index 2b9373d69..3481963bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0921.py +++ b/githubkit/versions/v2022_11_28/types/group_0921.py @@ -9,154 +9,15 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPatchBodyType(TypedDict): - """ReposOwnerRepoPatchBody""" +class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): + """ProjectsColumnsCardsCardIdPatchBody""" - 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"]] + note: NotRequired[Union[str, None]] archived: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/organizations/managing-peoples-access-to- - your-organization-with-roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType - ] - secret_scanning: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType - ] - secret_scanning_push_protection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_ai_detection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType - ] - secret_scanning_non_provider_patterns: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType - ] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - - Use the `status` property to enable or disable secret scanning AI detection for - this repository. For more information, see "[Responsible detection of generic - secrets with AI](https://docs.github.com/code-security/secret-scanning/using- - advanced-secret-scanning-and-push-protection-features/generic-secret- - detection/responsible-ai-generic-secrets)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Supported secret - scanning patterns](/code-security/secret-scanning/introduction/supported-secret- - scanning-patterns#supported-secrets)." - """ - - status: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", - "ReposOwnerRepoPatchBodyType", -) +__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0922.py b/githubkit/versions/v2022_11_28/types/group_0922.py index 2f790e780..ab2395816 100644 --- a/githubkit/versions/v2022_11_28/types/group_0922.py +++ b/githubkit/versions/v2022_11_28/types/group_0922.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0175 import ArtifactType +class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + position: str + column_id: NotRequired[int] - total_count: int - artifacts: list[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0923.py b/githubkit/versions/v2022_11_28/types/group_0923.py index 8552ab8cf..7c136f63a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0923.py +++ b/githubkit/versions/v2022_11_28/types/group_0923.py @@ -9,13 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" - enable_debug_logging: NotRequired[bool] - -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0924.py b/githubkit/versions/v2022_11_28/types/group_0924.py index 19c3d652d..2628f5b1a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0924.py +++ b/githubkit/versions/v2022_11_28/types/group_0924.py @@ -12,14 +12,26 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): - """Actions OIDC subject customization for a repository +class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" - Actions OIDC subject customization for a repository - """ + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + ] - use_default: bool - include_claim_keys: NotRequired[list[str]] +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) + code: NotRequired[str] + message: NotRequired[str] + resource: NotRequired[str] + field: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse403Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0925.py b/githubkit/versions/v2022_11_28/types/group_0925.py index 6b4c3dfa2..c4d1b64db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0925.py +++ b/githubkit/versions/v2022_11_28/types/group_0925.py @@ -9,16 +9,28 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0179 import ActionsSecretType +class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + ] - total_count: int - secrets: list[ActionsSecretType] +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse503Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0926.py b/githubkit/versions/v2022_11_28/types/group_0926.py index e798f60e1..62ebaaaef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0926.py +++ b/githubkit/versions/v2022_11_28/types/group_0926.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0180 import ActionsVariableType +class ProjectsColumnsColumnIdPatchBodyType(TypedDict): + """ProjectsColumnsColumnIdPatchBody""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + name: str - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) +__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0927.py b/githubkit/versions/v2022_11_28/types/group_0927.py index fc3874a09..1fdc1bf2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0927.py +++ b/githubkit/versions/v2022_11_28/types/group_0927.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + note: Union[str, None] -__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0928.py b/githubkit/versions/v2022_11_28/types/group_0928.py index 4cf8fbbef..93c271e2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0928.py +++ b/githubkit/versions/v2022_11_28/types/group_0928.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0069 import RunnerType +class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" -class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunnersGetResponse200""" + content_id: int + content_type: str - total_count: int - runners: list[RunnerType] - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0929.py b/githubkit/versions/v2022_11_28/types/group_0929.py index 5036c414c..4b4ed0962 100644 --- a/githubkit/versions/v2022_11_28/types/group_0929.py +++ b/githubkit/versions/v2022_11_28/types/group_0929.py @@ -12,13 +12,25 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503""" - name: str - runner_group_id: int - labels: list[str] - work_folder: NotRequired[str] + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] + ] -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", + "ProjectsColumnsColumnIdCardsPostResponse503Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0930.py b/githubkit/versions/v2022_11_28/types/group_0930.py index 9ca36f6ff..1eee63273 100644 --- a/githubkit/versions/v2022_11_28/types/group_0930.py +++ b/githubkit/versions/v2022_11_28/types/group_0930.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): + """ProjectsColumnsColumnIdMovesPostBody""" - labels: list[str] + position: str -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0931.py b/githubkit/versions/v2022_11_28/types/group_0931.py index 17c2e6d71..7df563c61 100644 --- a/githubkit/versions/v2022_11_28/types/group_0931.py +++ b/githubkit/versions/v2022_11_28/types/group_0931.py @@ -12,10 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" +class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsColumnIdMovesPostResponse201""" - labels: list[str] - -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0932.py b/githubkit/versions/v2022_11_28/types/group_0932.py index adc23c08f..36d491ce7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0932.py +++ b/githubkit/versions/v2022_11_28/types/group_0932.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0185 import WorkflowRunType +class ProjectsProjectIdDeleteResponse403Type(TypedDict): + """ProjectsProjectIdDeleteResponse403""" -class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsGetResponse200""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] - total_count: int - workflow_runs: list[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) +__all__ = ("ProjectsProjectIdDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0933.py b/githubkit/versions/v2022_11_28/types/group_0933.py index e6076f58c..31f864cbd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0933.py +++ b/githubkit/versions/v2022_11_28/types/group_0933.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0175 import ArtifactType +class ProjectsProjectIdPatchBodyType(TypedDict): + """ProjectsProjectIdPatchBody""" -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + name: NotRequired[str] + body: NotRequired[Union[str, None]] + state: NotRequired[str] + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] - total_count: int - artifacts: list[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) +__all__ = ("ProjectsProjectIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0934.py b/githubkit/versions/v2022_11_28/types/group_0934.py index 1a936af44..6e093b913 100644 --- a/githubkit/versions/v2022_11_28/types/group_0934.py +++ b/githubkit/versions/v2022_11_28/types/group_0934.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0177 import JobType +class ProjectsProjectIdPatchResponse403Type(TypedDict): + """ProjectsProjectIdPatchResponse403""" -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] - total_count: int - jobs: list[JobType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) +__all__ = ("ProjectsProjectIdPatchResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0935.py b/githubkit/versions/v2022_11_28/types/group_0935.py index c374fc072..e3cd89b33 100644 --- a/githubkit/versions/v2022_11_28/types/group_0935.py +++ b/githubkit/versions/v2022_11_28/types/group_0935.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0177 import JobType +class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + permission: NotRequired[Literal["read", "write", "admin"]] - total_count: int - jobs: list[JobType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0936.py b/githubkit/versions/v2022_11_28/types/group_0936.py index 76bdf5b5d..8c02d8953 100644 --- a/githubkit/versions/v2022_11_28/types/group_0936.py +++ b/githubkit/versions/v2022_11_28/types/group_0936.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ProjectsProjectIdColumnsPostBodyType(TypedDict): + """ProjectsProjectIdColumnsPostBody""" - environment_ids: list[int] - state: Literal["approved", "rejected"] - comment: str + name: str -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) +__all__ = ("ProjectsProjectIdColumnsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0937.py b/githubkit/versions/v2022_11_28/types/group_0937.py index 41d795f26..a7224c5e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0937.py +++ b/githubkit/versions/v2022_11_28/types/group_0937.py @@ -12,10 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoDeleteResponse403Type(TypedDict): + """ReposOwnerRepoDeleteResponse403""" - enable_debug_logging: NotRequired[bool] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) +__all__ = ("ReposOwnerRepoDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0938.py b/githubkit/versions/v2022_11_28/types/group_0938.py index d27f156d2..2b9373d69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0938.py +++ b/githubkit/versions/v2022_11_28/types/group_0938.py @@ -9,13 +9,154 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ReposOwnerRepoPatchBodyType(TypedDict): + """ReposOwnerRepoPatchBody""" - enable_debug_logging: NotRequired[bool] + name: NotRequired[str] + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private"]] + security_and_analysis: NotRequired[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] + ] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + is_template: NotRequired[bool] + default_branch: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + archived: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) +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_ai_detection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + + Use the `status` property to enable or disable secret scanning AI detection for + this repository. For more information, see "[Responsible detection of generic + secrets with AI](https://docs.github.com/code-security/secret-scanning/using- + advanced-secret-scanning-and-push-protection-features/generic-secret- + detection/responsible-ai-generic-secrets)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Supported secret + scanning patterns](/code-security/secret-scanning/introduction/supported-secret- + scanning-patterns#supported-secrets)." + """ + + status: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", + "ReposOwnerRepoPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0939.py b/githubkit/versions/v2022_11_28/types/group_0939.py index 6f163b8ad..143b35e06 100644 --- a/githubkit/versions/v2022_11_28/types/group_0939.py +++ b/githubkit/versions/v2022_11_28/types/group_0939.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0179 import ActionsSecretType +from .group_0181 import ArtifactType -class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsSecretsGetResponse200""" +class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsArtifactsGetResponse200""" total_count: int - secrets: list[ActionsSecretType] + artifacts: list[ArtifactType] -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0940.py b/githubkit/versions/v2022_11_28/types/group_0940.py index 4892cd830..8552ab8cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0940.py +++ b/githubkit/versions/v2022_11_28/types/group_0940.py @@ -12,11 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + enable_debug_logging: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0941.py b/githubkit/versions/v2022_11_28/types/group_0941.py index 6dd4e0033..19c3d652d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0941.py +++ b/githubkit/versions/v2022_11_28/types/group_0941.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0180 import ActionsVariableType +class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): + """Actions OIDC subject customization for a repository -class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsVariablesGetResponse200""" + Actions OIDC subject customization for a repository + """ - total_count: int - variables: list[ActionsVariableType] + use_default: bool + include_claim_keys: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0942.py b/githubkit/versions/v2022_11_28/types/group_0942.py index a5b1bcda1..508b06f30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0942.py +++ b/githubkit/versions/v2022_11_28/types/group_0942.py @@ -11,12 +11,14 @@ from typing_extensions import TypedDict +from .group_0185 import ActionsSecretType -class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesPostBody""" - name: str - value: str +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + total_count: int + secrets: list[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0943.py b/githubkit/versions/v2022_11_28/types/group_0943.py index 9dc60de46..574b9b070 100644 --- a/githubkit/versions/v2022_11_28/types/group_0943.py +++ b/githubkit/versions/v2022_11_28/types/group_0943.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0186 import ActionsVariableType -class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesNamePatchBody""" - name: NotRequired[str] - value: NotRequired[str] +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + total_count: int + variables: list[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) + +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0944.py b/githubkit/versions/v2022_11_28/types/group_0944.py index 567412f15..fc3874a09 100644 --- a/githubkit/versions/v2022_11_28/types/group_0944.py +++ b/githubkit/versions/v2022_11_28/types/group_0944.py @@ -9,40 +9,15 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" +class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): + """ReposOwnerRepoActionsPermissionsPutBody""" - total_count: int - workflows: list[WorkflowType] + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -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__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0945.py b/githubkit/versions/v2022_11_28/types/group_0945.py index 3e172dbfe..ac03751ac 100644 --- a/githubkit/versions/v2022_11_28/types/group_0945.py +++ b/githubkit/versions/v2022_11_28/types/group_0945.py @@ -9,31 +9,16 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict +from .group_0074 import RunnerType -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - ref: str - inputs: NotRequired[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType - ] +class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int + runners: list[RunnerType] -ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType: TypeAlias = ( - dict[str, Any] -) -"""ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs -Input keys and values configured in the workflow file. The maximum number of -properties is 10. Any default properties configured in the workflow file will be -used when `inputs` are omitted. -""" - - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", -) +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0946.py b/githubkit/versions/v2022_11_28/types/group_0946.py index 853dffe65..5036c414c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0946.py +++ b/githubkit/versions/v2022_11_28/types/group_0946.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0185 import WorkflowRunType +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] - total_count: int - workflow_runs: list[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0947.py b/githubkit/versions/v2022_11_28/types/group_0947.py index e197b3b3a..9ca36f6ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0947.py +++ b/githubkit/versions/v2022_11_28/types/group_0947.py @@ -9,51 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoAttestationsPostBodyType(TypedDict): - """ReposOwnerRepoAttestationsPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType + labels: list[str] -class ReposOwnerRepoAttestationsPostBodyPropBundleType(TypedDict): - """ReposOwnerRepoAttestationsPostBodyPropBundle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType - ] - - -ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType: TypeAlias = ( - dict[str, Any] -) -"""ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial -""" - - -ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope -""" - - -__all__ = ( - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", - "ReposOwnerRepoAttestationsPostBodyPropBundleType", - "ReposOwnerRepoAttestationsPostBodyType", -) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0948.py b/githubkit/versions/v2022_11_28/types/group_0948.py index 79c9aa002..17c2e6d71 100644 --- a/githubkit/versions/v2022_11_28/types/group_0948.py +++ b/githubkit/versions/v2022_11_28/types/group_0948.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - id: NotRequired[int] + labels: list[str] -__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0949.py b/githubkit/versions/v2022_11_28/types/group_0949.py index 8a6a46fe3..41f67c08e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0949.py +++ b/githubkit/versions/v2022_11_28/types/group_0949.py @@ -9,73 +9,16 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict +from .group_0191 import WorkflowRunType -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - attestations: NotRequired[ - list[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] +class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int + workflow_runs: list[WorkflowRunType] -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - bundle: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( - TypedDict -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType - ] - - -ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ - str, Any -] -"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu -ndlePropVerificationMaterial -""" - - -ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu -ndlePropDsseEnvelope -""" - - -__all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", -) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0950.py b/githubkit/versions/v2022_11_28/types/group_0950.py index d3cf0850b..58ed4702c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0950.py +++ b/githubkit/versions/v2022_11_28/types/group_0950.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0181 import ArtifactType -class ReposOwnerRepoAutolinksPostBodyType(TypedDict): - """ReposOwnerRepoAutolinksPostBody""" - key_prefix: str - url_template: str - is_alphanumeric: NotRequired[bool] +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + total_count: int + artifacts: list[ArtifactType] -__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0951.py b/githubkit/versions/v2022_11_28/types/group_0951.py index bca1d637c..051e180e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0951.py +++ b/githubkit/versions/v2022_11_28/types/group_0951.py @@ -9,132 +9,18 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0183 import JobType -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 -): - """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( +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( 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. - """ + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - users: list[str] - teams: list[str] - apps: NotRequired[list[str]] + total_count: int + jobs: list[JobType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyType", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0952.py b/githubkit/versions/v2022_11_28/types/group_0952.py index 663ec3e19..80decabf6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0952.py +++ b/githubkit/versions/v2022_11_28/types/group_0952.py @@ -9,59 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0183 import JobType -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( - TypedDict -): - """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 ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + total_count: int + jobs: list[JobType] -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0953.py b/githubkit/versions/v2022_11_28/types/group_0953.py index 0e57487fc..76bdf5b5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0953.py +++ b/githubkit/versions/v2022_11_28/types/group_0953.py @@ -9,35 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - strict: NotRequired[bool] - contexts: NotRequired[list[str]] - checks: NotRequired[ - list[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType - ] - ] + environment_ids: list[int] + state: Literal["approved", "rejected"] + comment: str -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - - context: str - app_id: NotRequired[int] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0954.py b/githubkit/versions/v2022_11_28/types/group_0954.py index e1f78ac45..41d795f26 100644 --- a/githubkit/versions/v2022_11_28/types/group_0954.py +++ b/githubkit/versions/v2022_11_28/types/group_0954.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - Examples: - {'contexts': ['contexts']} - """ + enable_debug_logging: NotRequired[bool] - contexts: list[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0955.py b/githubkit/versions/v2022_11_28/types/group_0955.py index 7953af035..d27f156d2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0955.py +++ b/githubkit/versions/v2022_11_28/types/group_0955.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - Examples: - {'contexts': ['contexts']} - """ + enable_debug_logging: NotRequired[bool] - contexts: list[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0956.py b/githubkit/versions/v2022_11_28/types/group_0956.py index b4a0d30f6..6a8ba4c92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0956.py +++ b/githubkit/versions/v2022_11_28/types/group_0956.py @@ -11,20 +11,14 @@ from typing_extensions import TypedDict +from .group_0185 import ActionsSecretType -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsSecretsGetResponse200""" - contexts: list[str] + total_count: int + secrets: list[ActionsSecretType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0957.py b/githubkit/versions/v2022_11_28/types/group_0957.py index 1f154c587..335280e49 100644 --- a/githubkit/versions/v2022_11_28/types/group_0957.py +++ b/githubkit/versions/v2022_11_28/types/group_0957.py @@ -12,14 +12,11 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody +class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - Examples: - {'apps': ['my-app']} - """ + encrypted_value: str + key_id: str - apps: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0958.py b/githubkit/versions/v2022_11_28/types/group_0958.py index e8ab2de74..083113f38 100644 --- a/githubkit/versions/v2022_11_28/types/group_0958.py +++ b/githubkit/versions/v2022_11_28/types/group_0958.py @@ -11,15 +11,14 @@ from typing_extensions import TypedDict +from .group_0186 import ActionsVariableType -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody - Examples: - {'apps': ['my-app']} - """ +class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsVariablesGetResponse200""" - apps: list[str] + total_count: int + variables: list[ActionsVariableType] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType",) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0959.py b/githubkit/versions/v2022_11_28/types/group_0959.py index 26bc12cd2..a5b1bcda1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0959.py +++ b/githubkit/versions/v2022_11_28/types/group_0959.py @@ -12,14 +12,11 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody +class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesPostBody""" - Examples: - {'apps': ['my-app']} - """ + name: str + value: str - apps: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0960.py b/githubkit/versions/v2022_11_28/types/group_0960.py index db6c7e46c..9dc60de46 100644 --- a/githubkit/versions/v2022_11_28/types/group_0960.py +++ b/githubkit/versions/v2022_11_28/types/group_0960.py @@ -9,19 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 +class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - Examples: - {'teams': ['justice-league']} - """ + name: NotRequired[str] + value: NotRequired[str] - teams: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0961.py b/githubkit/versions/v2022_11_28/types/group_0961.py index d74b8d070..567412f15 100644 --- a/githubkit/versions/v2022_11_28/types/group_0961.py +++ b/githubkit/versions/v2022_11_28/types/group_0961.py @@ -9,19 +9,40 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 +class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" + + total_count: int + workflows: list[WorkflowType] - Examples: - {'teams': ['my-team']} - """ - teams: list[str] +class WorkflowType(TypedDict): + """Workflow + A GitHub Actions workflow + """ -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) + 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", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0962.py b/githubkit/versions/v2022_11_28/types/group_0962.py index 85e315c26..3e172dbfe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0962.py +++ b/githubkit/versions/v2022_11_28/types/group_0962.py @@ -9,21 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - Examples: - {'teams': ['my-team']} - """ + ref: str + inputs: NotRequired[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + ] - teams: list[str] + +ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType: TypeAlias = ( + dict[str, Any] +) +"""ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs + +Input keys and values configured in the workflow file. The maximum number of +properties is 10. Any default properties configured in the workflow file will be +used when `inputs` are omitted. +""" __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0963.py b/githubkit/versions/v2022_11_28/types/group_0963.py index 14d747f27..4cb8574ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0963.py +++ b/githubkit/versions/v2022_11_28/types/group_0963.py @@ -11,15 +11,14 @@ from typing_extensions import TypedDict +from .group_0191 import WorkflowRunType -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody - Examples: - {'users': ['mona']} - """ +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" - users: list[str] + total_count: int + workflow_runs: list[WorkflowRunType] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType",) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0964.py b/githubkit/versions/v2022_11_28/types/group_0964.py index a879b8e99..e197b3b3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0964.py +++ b/githubkit/versions/v2022_11_28/types/group_0964.py @@ -9,17 +9,51 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody +class ReposOwnerRepoAttestationsPostBodyType(TypedDict): + """ReposOwnerRepoAttestationsPostBody""" - Examples: - {'users': ['mona']} + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType + + +class ReposOwnerRepoAttestationsPostBodyPropBundleType(TypedDict): + """ReposOwnerRepoAttestationsPostBodyPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. """ - users: list[str] + media_type: NotRequired[str] + verification_material: NotRequired[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType + ] + + +ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType: TypeAlias = ( + dict[str, Any] +) +"""ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial +""" + + +ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope +""" -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType",) +__all__ = ( + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsPostBodyPropBundleType", + "ReposOwnerRepoAttestationsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0965.py b/githubkit/versions/v2022_11_28/types/group_0965.py index 88f98adfd..79c9aa002 100644 --- a/githubkit/versions/v2022_11_28/types/group_0965.py +++ b/githubkit/versions/v2022_11_28/types/group_0965.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody +class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): + """ReposOwnerRepoAttestationsPostResponse201""" - Examples: - {'users': ['mona']} - """ + id: NotRequired[int] - users: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType",) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0966.py b/githubkit/versions/v2022_11_28/types/group_0966.py index b46802659..8a6a46fe3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0966.py +++ b/githubkit/versions/v2022_11_28/types/group_0966.py @@ -9,13 +9,73 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - new_name: str + attestations: NotRequired[ + list[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu +ndlePropVerificationMaterial +""" + + +ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu +ndlePropDsseEnvelope +""" + + +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0967.py b/githubkit/versions/v2022_11_28/types/group_0967.py index 0e96d896e..d3cf0850b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0967.py +++ b/githubkit/versions/v2022_11_28/types/group_0967.py @@ -9,62 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutput +class ReposOwnerRepoAutolinksPostBodyType(TypedDict): + """ReposOwnerRepoAutolinksPostBody""" - 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. - """ + key_prefix: str + url_template: str + is_alphanumeric: NotRequired[bool] - 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__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputType", -) +__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0968.py b/githubkit/versions/v2022_11_28/types/group_0968.py index e0984fb3e..bca1d637c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0968.py +++ b/githubkit/versions/v2022_11_28/types/group_0968.py @@ -9,38 +9,132 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0967 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsPostBodyPropOutputType, -) +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 +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str + app_id: NotRequired[int] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews -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", + 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 ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions + + Restrict who can push to the protected branch. User, app, and team + `restrictions` are only available for organization-owned repositories. Set to + `null` to disable. + """ + + users: list[str] + teams: list[str] + apps: NotRequired[list[str]] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0969.py b/githubkit/versions/v2022_11_28/types/group_0969.py index d0e0f346d..663ec3e19 100644 --- a/githubkit/versions/v2022_11_28/types/group_0969.py +++ b/githubkit/versions/v2022_11_28/types/group_0969.py @@ -9,42 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0967 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsPostBodyPropOutputType, -) - -class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: NotRequired[ - Literal["queued", "in_progress", "waiting", "requested", "pending"] + dismissal_restrictions: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType ] - started_at: NotRequired[datetime] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] + 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 ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0970.py b/githubkit/versions/v2022_11_28/types/group_0970.py index cdd81f62e..0e57487fc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0970.py +++ b/githubkit/versions/v2022_11_28/types/group_0970.py @@ -9,68 +9,35 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - title: NotRequired[str] - summary: str - text: NotRequired[str] - annotations: NotRequired[ + strict: NotRequired[bool] + contexts: NotRequired[list[str]] + checks: NotRequired[ list[ - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType ] ] - 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] - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( TypedDict ): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms + """ - label: str - description: str - identifier: str + context: str + app_id: NotRequired[int] __all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0971.py b/githubkit/versions/v2022_11_28/types/group_0971.py index abfda1c90..e1f78ac45 100644 --- a/githubkit/versions/v2022_11_28/types/group_0971.py +++ b/githubkit/versions/v2022_11_28/types/group_0971.py @@ -9,39 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0970 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, -) +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + + Examples: + {'contexts': ['contexts']} + """ + + contexts: list[str] -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" - - name: NotRequired[str] - details_url: NotRequired[str] - external_id: NotRequired[str] - started_at: NotRequired[datetime] - status: NotRequired[Literal["completed"]] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] - ] - - -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0972.py b/githubkit/versions/v2022_11_28/types/group_0972.py index 45ec9e202..7953af035 100644 --- a/githubkit/versions/v2022_11_28/types/group_0972.py +++ b/githubkit/versions/v2022_11_28/types/group_0972.py @@ -9,41 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0970 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, -) +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + + Examples: + {'contexts': ['contexts']} + """ + + contexts: list[str] -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",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0973.py b/githubkit/versions/v2022_11_28/types/group_0973.py index 5d8ac49c1..b4a0d30f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0973.py +++ b/githubkit/versions/v2022_11_28/types/group_0973.py @@ -12,10 +12,19 @@ from typing_extensions import TypedDict -class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 - head_sha: str + Examples: + {'contexts': ['contexts']} + """ + contexts: list[str] -__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0974.py b/githubkit/versions/v2022_11_28/types/group_0974.py index 5f72161c7..1f154c587 100644 --- a/githubkit/versions/v2022_11_28/types/group_0974.py +++ b/githubkit/versions/v2022_11_28/types/group_0974.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody - auto_trigger_checks: NotRequired[ - list[ - ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType - ] - ] + Examples: + {'apps': ['my-app']} + """ + apps: list[str] -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( - TypedDict -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - app_id: int - setting: bool - - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0975.py b/githubkit/versions/v2022_11_28/types/group_0975.py index 44c5f9a8b..e8ab2de74 100644 --- a/githubkit/versions/v2022_11_28/types/group_0975.py +++ b/githubkit/versions/v2022_11_28/types/group_0975.py @@ -11,14 +11,15 @@ from typing_extensions import TypedDict -from .group_0211 import CheckRunType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + Examples: + {'apps': ['my-app']} + """ - total_count: int - check_runs: list[CheckRunType] + apps: list[str] -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0976.py b/githubkit/versions/v2022_11_28/types/group_0976.py index a4c727bcd..26bc12cd2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0976.py +++ b/githubkit/versions/v2022_11_28/types/group_0976.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody - state: Literal["open", "dismissed"] - dismissed_reason: NotRequired[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] - dismissed_comment: NotRequired[Union[str, None]] + Examples: + {'apps': ['my-app']} + """ + apps: list[str] -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0977.py b/githubkit/versions/v2022_11_28/types/group_0977.py index 92c6c6183..db6c7e46c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0977.py +++ b/githubkit/versions/v2022_11_28/types/group_0977.py @@ -9,20 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack: str - repositories: list[str] - repository_lists: NotRequired[list[str]] - repository_owners: NotRequired[list[str]] + Examples: + {'teams': ['justice-league']} + """ + teams: list[str] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0978.py b/githubkit/versions/v2022_11_28/types/group_0978.py index 31a733d64..d74b8d070 100644 --- a/githubkit/versions/v2022_11_28/types/group_0978.py +++ b/githubkit/versions/v2022_11_28/types/group_0978.py @@ -9,20 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack: str - repositories: NotRequired[list[str]] - repository_lists: list[str] - repository_owners: NotRequired[list[str]] + Examples: + {'teams': ['my-team']} + """ + teams: list[str] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0979.py b/githubkit/versions/v2022_11_28/types/group_0979.py index 92ee2d76b..85e315c26 100644 --- a/githubkit/versions/v2022_11_28/types/group_0979.py +++ b/githubkit/versions/v2022_11_28/types/group_0979.py @@ -9,20 +9,21 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 - 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] + Examples: + {'teams': ['my-team']} + """ + teams: list[str] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0980.py b/githubkit/versions/v2022_11_28/types/group_0980.py index e9eb27946..14d747f27 100644 --- a/githubkit/versions/v2022_11_28/types/group_0980.py +++ b/githubkit/versions/v2022_11_28/types/group_0980.py @@ -9,20 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody - commit_sha: str - ref: str - sarif: str - checkout_uri: NotRequired[str] - started_at: NotRequired[datetime] - tool_name: NotRequired[str] - validate_: NotRequired[bool] + Examples: + {'users': ['mona']} + """ + users: list[str] -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0981.py b/githubkit/versions/v2022_11_28/types/group_0981.py index 39ce60c5d..a879b8e99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0981.py +++ b/githubkit/versions/v2022_11_28/types/group_0981.py @@ -11,14 +11,15 @@ from typing_extensions import TypedDict -from .group_0078 import CodespaceType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody -class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesGetResponse200""" + Examples: + {'users': ['mona']} + """ - total_count: int - codespaces: list[CodespaceType] + users: list[str] -__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0982.py b/githubkit/versions/v2022_11_28/types/group_0982.py index 88f53eda8..88f98adfd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0982.py +++ b/githubkit/versions/v2022_11_28/types/group_0982.py @@ -9,24 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody - 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] + Examples: + {'users': ['mona']} + """ + users: list[str] -__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0983.py b/githubkit/versions/v2022_11_28/types/group_0983.py index 2b6a98e8b..b46802659 100644 --- a/githubkit/versions/v2022_11_28/types/group_0983.py +++ b/githubkit/versions/v2022_11_28/types/group_0983.py @@ -9,29 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" +class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - total_count: int - devcontainers: list[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType - ] + new_name: str -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( - TypedDict -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - - path: str - name: NotRequired[str] - display_name: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0984.py b/githubkit/versions/v2022_11_28/types/group_0984.py index 7ab3034ca..0e96d896e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0984.py +++ b/githubkit/versions/v2022_11_28/types/group_0984.py @@ -9,16 +9,62 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0077 import CodespaceMachineType +class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutput -class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" + 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. + """ - total_count: int - machines: list[CodespaceMachineType] + title: str + summary: str + text: NotRequired[str] + annotations: NotRequired[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] + ] + images: NotRequired[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] + ] -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0985.py b/githubkit/versions/v2022_11_28/types/group_0985.py index 9c9db6dc4..7e301dc5f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0985.py +++ b/githubkit/versions/v2022_11_28/types/group_0985.py @@ -9,27 +9,38 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0002 import SimpleUserType - - -class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200""" - - billable_owner: NotRequired[SimpleUserType] - defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] - - -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str - devcontainer_path: Union[str, None] +from .group_0984 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsPostBodyPropOutputType, +) -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", - "ReposOwnerRepoCodespacesNewGetResponse200Type", -) +class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: Literal["completed"] + started_at: NotRequired[datetime] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0986.py b/githubkit/versions/v2022_11_28/types/group_0986.py index fe71c65ab..9f7ec0e8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0986.py +++ b/githubkit/versions/v2022_11_28/types/group_0986.py @@ -10,28 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict - - -class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - - total_count: int - secrets: list[RepoCodespacesSecretType] +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0984 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsPostBodyPropOutputType, +) -class RepoCodespacesSecretType(TypedDict): - """Codespaces Secret - Set repository secrets for GitHub Codespaces. - """ +class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "RepoCodespacesSecretType", - "ReposOwnerRepoCodespacesSecretsGetResponse200Type", -) + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: NotRequired[ + Literal["queued", "in_progress", "waiting", "requested", "pending"] + ] + started_at: NotRequired[datetime] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0987.py b/githubkit/versions/v2022_11_28/types/group_0987.py index 4e9617e8c..cdd81f62e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0987.py +++ b/githubkit/versions/v2022_11_28/types/group_0987.py @@ -9,14 +9,68 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + title: NotRequired[str] + summary: str + text: NotRequired[str] + annotations: NotRequired[ + list[ + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + ] + ] + images: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] + ] -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0988.py b/githubkit/versions/v2022_11_28/types/group_0988.py index 4cccc4ae5..e2680f46e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0988.py +++ b/githubkit/versions/v2022_11_28/types/group_0988.py @@ -9,13 +9,39 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict - -class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" - - permission: NotRequired[str] - - -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) +from .group_0987 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["completed"]] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0989.py b/githubkit/versions/v2022_11_28/types/group_0989.py index 25f26d78b..97b30e91d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0989.py +++ b/githubkit/versions/v2022_11_28/types/group_0989.py @@ -9,13 +9,41 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdPatchBody""" - - body: str - - -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0987 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["queued", "in_progress"]] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0990.py b/githubkit/versions/v2022_11_28/types/group_0990.py index ce91eec32..5d8ac49c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0990.py +++ b/githubkit/versions/v2022_11_28/types/group_0990.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + head_sha: str -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0991.py b/githubkit/versions/v2022_11_28/types/group_0991.py index 36d63c915..5f72161c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0991.py +++ b/githubkit/versions/v2022_11_28/types/group_0991.py @@ -12,13 +12,26 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - body: str - path: NotRequired[str] - position: NotRequired[int] - line: NotRequired[int] + auto_trigger_checks: NotRequired[ + list[ + ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType + ] + ] -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( + TypedDict +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" + + app_id: int + setting: bool + + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0992.py b/githubkit/versions/v2022_11_28/types/group_0992.py index ac5f5442d..7ba1c8400 100644 --- a/githubkit/versions/v2022_11_28/types/group_0992.py +++ b/githubkit/versions/v2022_11_28/types/group_0992.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0211 import CheckRunType +from .group_0217 import CheckRunType -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" total_count: int check_runs: list[CheckRunType] -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0993.py b/githubkit/versions/v2022_11_28/types/group_0993.py index a33d63ac7..a4c727bcd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0993.py +++ b/githubkit/versions/v2022_11_28/types/group_0993.py @@ -9,45 +9,18 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoContentsPathPutBodyType(TypedDict): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - message: str - content: str - sha: NotRequired[str] - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] + 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 ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropCommitter - - The person that committed the file. Default: the authenticated user. - """ - - name: str - email: str - date: NotRequired[str] - - -class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. - """ - - name: str - email: str - date: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoContentsPathPutBodyPropAuthorType", - "ReposOwnerRepoContentsPathPutBodyPropCommitterType", - "ReposOwnerRepoContentsPathPutBodyType", -) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0994.py b/githubkit/versions/v2022_11_28/types/group_0994.py index 1a6415115..92c6c6183 100644 --- a/githubkit/versions/v2022_11_28/types/group_0994.py +++ b/githubkit/versions/v2022_11_28/types/group_0994.py @@ -9,41 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - message: str - sha: str - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] + query_pack: str + repositories: list[str] + repository_lists: NotRequired[list[str]] + repository_owners: NotRequired[list[str]] -class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - - object containing information about the committer. - """ - - name: NotRequired[str] - email: NotRequired[str] - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ - - name: NotRequired[str] - email: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", - "ReposOwnerRepoContentsPathDeleteBodyType", -) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0995.py b/githubkit/versions/v2022_11_28/types/group_0995.py index b6eb59e50..31a733d64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0995.py +++ b/githubkit/versions/v2022_11_28/types/group_0995.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - - state: Literal["dismissed", "open"] - dismissed_reason: NotRequired[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" + + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" ] - dismissed_comment: NotRequired[str] + query_pack: str + repositories: NotRequired[list[str]] + repository_lists: list[str] + repository_owners: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0996.py b/githubkit/versions/v2022_11_28/types/group_0996.py index 61528dc95..92ee2d76b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0996.py +++ b/githubkit/versions/v2022_11_28/types/group_0996.py @@ -9,29 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - total_count: int - secrets: list[DependabotSecretType] + 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] -class DependabotSecretType(TypedDict): - """Dependabot Secret - - Set secrets for Dependabot. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "DependabotSecretType", - "ReposOwnerRepoDependabotSecretsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0997.py b/githubkit/versions/v2022_11_28/types/group_0997.py index 95231af1a..e9eb27946 100644 --- a/githubkit/versions/v2022_11_28/types/group_0997.py +++ b/githubkit/versions/v2022_11_28/types/group_0997.py @@ -9,14 +9,20 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + commit_sha: str + ref: str + sarif: str + checkout_uri: NotRequired[str] + started_at: NotRequired[datetime] + tool_name: NotRequired[str] + validate_: NotRequired[bool] -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0998.py b/githubkit/versions/v2022_11_28/types/group_0998.py index 6e9243ec2..5826f1cea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0998.py +++ b/githubkit/versions/v2022_11_28/types/group_0998.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict +from .group_0083 import CodespaceType -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - id: int - created_at: str - result: str - message: str +class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0999.py b/githubkit/versions/v2022_11_28/types/group_0999.py index 149bc226e..88f53eda8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0999.py +++ b/githubkit/versions/v2022_11_28/types/group_0999.py @@ -9,32 +9,24 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoCodespacesPostBody""" - 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] + 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] -ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type: TypeAlias = dict[str, Any] -"""ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 -""" - - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", - "ReposOwnerRepoDeploymentsPostBodyType", -) +__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1000.py b/githubkit/versions/v2022_11_28/types/group_1000.py index 8dce1979d..2b6a98e8b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1000.py +++ b/githubkit/versions/v2022_11_28/types/group_1000.py @@ -12,10 +12,26 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - message: NotRequired[str] + total_count: int + devcontainers: list[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType + ] -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( + TypedDict +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + + path: str + name: NotRequired[str] + display_name: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1001.py b/githubkit/versions/v2022_11_28/types/group_1001.py index cc93f9515..0924c3790 100644 --- a/githubkit/versions/v2022_11_28/types/group_1001.py +++ b/githubkit/versions/v2022_11_28/types/group_1001.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0082 import CodespaceMachineType -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] - target_url: NotRequired[str] - log_url: NotRequired[str] - description: NotRequired[str] - environment: NotRequired[str] - environment_url: NotRequired[str] - auto_inactive: NotRequired[bool] +class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + total_count: int + machines: list[CodespaceMachineType] -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) + +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1002.py b/githubkit/versions/v2022_11_28/types/group_1002.py index d1e750ab3..1da0f80f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1002.py +++ b/githubkit/versions/v2022_11_28/types/group_1002.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class ReposOwnerRepoDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoDispatchesPostBody""" - event_type: str - client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] +class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200""" + billable_owner: NotRequired[SimpleUserType] + defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] -ReposOwnerRepoDispatchesPostBodyPropClientPayloadType: TypeAlias = dict[str, Any] -"""ReposOwnerRepoDispatchesPostBodyPropClientPayload -JSON payload with extra information about the webhook event that your action or -workflow may use. The maximum number of top-level properties is 10. The total -size of the JSON payload must be less than 64KB. -""" +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + + location: str + devcontainer_path: Union[str, None] __all__ = ( - "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", - "ReposOwnerRepoDispatchesPostBodyType", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", + "ReposOwnerRepoCodespacesNewGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1003.py b/githubkit/versions/v2022_11_28/types/group_1003.py index a2ae8cb42..fe71c65ab 100644 --- a/githubkit/versions/v2022_11_28/types/group_1003.py +++ b/githubkit/versions/v2022_11_28/types/group_1003.py @@ -9,38 +9,29 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -from .group_0267 import DeploymentBranchPolicySettingsType +class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + total_count: int + secrets: list[RepoCodespacesSecretType] - wait_timer: NotRequired[int] - prevent_self_review: NotRequired[bool] - reviewers: NotRequired[ - Union[ - list[ - ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType - ], - None, - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] +class RepoCodespacesSecretType(TypedDict): + """Codespaces Secret -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + Set repository secrets for GitHub Codespaces. + """ - type: NotRequired[Literal["User", "Team"]] - id: NotRequired[int] + name: str + created_at: datetime + updated_at: datetime __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", + "RepoCodespacesSecretType", + "ReposOwnerRepoCodespacesSecretsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1004.py b/githubkit/versions/v2022_11_28/types/group_1004.py index ab59e0b4e..4e9617e8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1004.py +++ b/githubkit/versions/v2022_11_28/types/group_1004.py @@ -9,32 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - total_count: int - branch_policies: list[DeploymentBranchPolicyType] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -class DeploymentBranchPolicyType(TypedDict): - """Deployment branch policy - - Details of a deployment branch or tag policy. - """ - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - type: NotRequired[Literal["branch", "tag"]] - - -__all__ = ( - "DeploymentBranchPolicyType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1005.py b/githubkit/versions/v2022_11_28/types/group_1005.py index bb2b4e614..4cccc4ae5 100644 --- a/githubkit/versions/v2022_11_28/types/group_1005.py +++ b/githubkit/versions/v2022_11_28/types/group_1005.py @@ -12,14 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - integration_id: NotRequired[int] + permission: NotRequired[str] -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", -) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1006.py b/githubkit/versions/v2022_11_28/types/group_1006.py index d90ad52cd..25f26d78b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1006.py +++ b/githubkit/versions/v2022_11_28/types/group_1006.py @@ -9,24 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0273 import CustomDeploymentRuleAppType +class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdPatchBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ + body: str - total_count: NotRequired[int] - available_custom_deployment_protection_rule_integrations: NotRequired[ - list[CustomDeploymentRuleAppType] - ] - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1007.py b/githubkit/versions/v2022_11_28/types/group_1007.py index 32624b9e6..ce91eec32 100644 --- a/githubkit/versions/v2022_11_28/types/group_1007.py +++ b/githubkit/versions/v2022_11_28/types/group_1007.py @@ -9,16 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -from .group_0179 import ActionsSecretType +class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1008.py b/githubkit/versions/v2022_11_28/types/group_1008.py index 3ec440fb1..36d63c915 100644 --- a/githubkit/versions/v2022_11_28/types/group_1008.py +++ b/githubkit/versions/v2022_11_28/types/group_1008.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - encrypted_value: str - key_id: str + body: str + path: NotRequired[str] + position: NotRequired[int] + line: NotRequired[int] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1009.py b/githubkit/versions/v2022_11_28/types/group_1009.py index 01febc3a4..2ce0c77e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1009.py +++ b/githubkit/versions/v2022_11_28/types/group_1009.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0180 import ActionsVariableType +from .group_0217 import CheckRunType -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" total_count: int - variables: list[ActionsVariableType] + check_runs: list[CheckRunType] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1010.py b/githubkit/versions/v2022_11_28/types/group_1010.py index f3a29926f..a33d63ac7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1010.py +++ b/githubkit/versions/v2022_11_28/types/group_1010.py @@ -9,14 +9,45 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoContentsPathPutBodyType(TypedDict): + """ReposOwnerRepoContentsPathPutBody""" + + message: str + content: str + sha: NotRequired[str] + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] + + +class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropCommitter + + The person that committed the file. Default: the authenticated user. + """ + + name: str + email: str + date: NotRequired[str] + + +class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ name: str - value: str + email: str + date: NotRequired[str] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) +__all__ = ( + "ReposOwnerRepoContentsPathPutBodyPropAuthorType", + "ReposOwnerRepoContentsPathPutBodyPropCommitterType", + "ReposOwnerRepoContentsPathPutBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1011.py b/githubkit/versions/v2022_11_28/types/group_1011.py index adee73102..1a6415115 100644 --- a/githubkit/versions/v2022_11_28/types/group_1011.py +++ b/githubkit/versions/v2022_11_28/types/group_1011.py @@ -12,11 +12,38 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBody""" + + message: str + sha: str + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] + + +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] - value: NotRequired[str] + email: NotRequired[str] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) +__all__ = ( + "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1012.py b/githubkit/versions/v2022_11_28/types/group_1012.py index eb686a699..b6eb59e50 100644 --- a/githubkit/versions/v2022_11_28/types/group_1012.py +++ b/githubkit/versions/v2022_11_28/types/group_1012.py @@ -9,15 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoForksPostBodyType(TypedDict): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - organization: NotRequired[str] - name: NotRequired[str] - default_branch_only: NotRequired[bool] + state: Literal["dismissed", "open"] + dismissed_reason: NotRequired[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] + dismissed_comment: NotRequired[str] -__all__ = ("ReposOwnerRepoForksPostBodyType",) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1013.py b/githubkit/versions/v2022_11_28/types/group_1013.py index 4c2ef3730..61528dc95 100644 --- a/githubkit/versions/v2022_11_28/types/group_1013.py +++ b/githubkit/versions/v2022_11_28/types/group_1013.py @@ -9,14 +9,29 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - content: str - encoding: NotRequired[str] + total_count: int + secrets: list[DependabotSecretType] -__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) +class DependabotSecretType(TypedDict): + """Dependabot Secret + + Set secrets for Dependabot. + """ + + name: str + created_at: datetime + updated_at: datetime + + +__all__ = ( + "DependabotSecretType", + "ReposOwnerRepoDependabotSecretsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1014.py b/githubkit/versions/v2022_11_28/types/group_1014.py index 73106315f..95231af1a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1014.py +++ b/githubkit/versions/v2022_11_28/types/group_1014.py @@ -9,49 +9,14 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - message: str - tree: str - parents: NotRequired[list[str]] - author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] - committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] - signature: NotRequired[str] + encrypted_value: NotRequired[str] + key_id: 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__ = ( - "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", - "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", - "ReposOwnerRepoGitCommitsPostBodyType", -) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1015.py b/githubkit/versions/v2022_11_28/types/group_1015.py index aa4d83aff..6e9243ec2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1015.py +++ b/githubkit/versions/v2022_11_28/types/group_1015.py @@ -12,11 +12,13 @@ from typing_extensions import TypedDict -class ReposOwnerRepoGitRefsPostBodyType(TypedDict): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - ref: str - sha: str + id: int + created_at: str + result: str + message: str -__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1016.py b/githubkit/versions/v2022_11_28/types/group_1016.py index 95219ce12..149bc226e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1016.py +++ b/githubkit/versions/v2022_11_28/types/group_1016.py @@ -9,14 +9,32 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsPostBody""" - sha: str - force: NotRequired[bool] + 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__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) +ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type: TypeAlias = dict[str, Any] +"""ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 +""" + + +__all__ = ( + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", + "ReposOwnerRepoDeploymentsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1017.py b/githubkit/versions/v2022_11_28/types/group_1017.py index bf927c780..8dce1979d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1017.py +++ b/githubkit/versions/v2022_11_28/types/group_1017.py @@ -9,33 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitTagsPostBodyType(TypedDict): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): + """ReposOwnerRepoDeploymentsPostResponse202""" - tag: str - message: str - object_: str - type: Literal["commit", "tree", "blob"] - tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] + message: NotRequired[str] -class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str - email: str - date: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoGitTagsPostBodyPropTaggerType", - "ReposOwnerRepoGitTagsPostBodyType", -) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1018.py b/githubkit/versions/v2022_11_28/types/group_1018.py index 62d4e64ac..cc93f9515 100644 --- a/githubkit/versions/v2022_11_28/types/group_1018.py +++ b/githubkit/versions/v2022_11_28/types/group_1018.py @@ -9,28 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitTreesPostBodyType(TypedDict): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] - base_tree: NotRequired[str] + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] + target_url: NotRequired[str] + log_url: NotRequired[str] + description: NotRequired[str] + environment: NotRequired[str] + environment_url: NotRequired[str] + auto_inactive: NotRequired[bool] -class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: NotRequired[str] - mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] - type: NotRequired[Literal["blob", "tree", "commit"]] - sha: NotRequired[Union[str, None]] - content: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", - "ReposOwnerRepoGitTreesPostBodyType", -) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1019.py b/githubkit/versions/v2022_11_28/types/group_1019.py index 44bb98073..d1e750ab3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1019.py +++ b/githubkit/versions/v2022_11_28/types/group_1019.py @@ -9,32 +9,27 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoHooksPostBodyType(TypedDict): - """ReposOwnerRepoHooksPostBody""" +class ReposOwnerRepoDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoDispatchesPostBody""" - name: NotRequired[str] - config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] - events: NotRequired[list[str]] - active: NotRequired[bool] + event_type: str + client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] -class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): - """ReposOwnerRepoHooksPostBodyPropConfig +ReposOwnerRepoDispatchesPostBodyPropClientPayloadType: TypeAlias = dict[str, Any] +"""ReposOwnerRepoDispatchesPostBodyPropClientPayload - 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]] +JSON payload with extra information about the webhook event that your action or +workflow may use. The maximum number of top-level properties is 10. The total +size of the JSON payload must be less than 64KB. +""" __all__ = ( - "ReposOwnerRepoHooksPostBodyPropConfigType", - "ReposOwnerRepoHooksPostBodyType", + "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", + "ReposOwnerRepoDispatchesPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1020.py b/githubkit/versions/v2022_11_28/types/group_1020.py index 6fdcbd125..6d7678fc1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1020.py +++ b/githubkit/versions/v2022_11_28/types/group_1020.py @@ -9,19 +9,38 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0009 import WebhookConfigType +from .group_0273 import DeploymentBranchPolicySettingsType -class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" - config: NotRequired[WebhookConfigType] - events: NotRequired[list[str]] - add_events: NotRequired[list[str]] - remove_events: NotRequired[list[str]] - active: NotRequired[bool] + wait_timer: NotRequired[int] + prevent_self_review: NotRequired[bool] + reviewers: NotRequired[ + Union[ + list[ + ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType + ], + None, + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] -__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: NotRequired[Literal["User", "Team"]] + id: NotRequired[int] + + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1021.py b/githubkit/versions/v2022_11_28/types/group_1021.py index 2de12ce93..ab59e0b4e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1021.py +++ b/githubkit/versions/v2022_11_28/types/group_1021.py @@ -9,17 +9,32 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + total_count: int + branch_policies: list[DeploymentBranchPolicyType] -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) +class DeploymentBranchPolicyType(TypedDict): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + type: NotRequired[Literal["branch", "tag"]] + + +__all__ = ( + "DeploymentBranchPolicyType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1022.py b/githubkit/versions/v2022_11_28/types/group_1022.py index 02673d9bf..bb2b4e614 100644 --- a/githubkit/versions/v2022_11_28/types/group_1022.py +++ b/githubkit/versions/v2022_11_28/types/group_1022.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportPutBodyType(TypedDict): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - vcs_url: str - vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - tfvc_project: NotRequired[str] + integration_id: NotRequired[int] -__all__ = ("ReposOwnerRepoImportPutBodyType",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1023.py b/githubkit/versions/v2022_11_28/types/group_1023.py index 5f68422b7..a5fd1654b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1023.py +++ b/githubkit/versions/v2022_11_28/types/group_1023.py @@ -9,17 +9,24 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0279 import CustomDeploymentRuleAppType -class ReposOwnerRepoImportPatchBodyType(TypedDict): - """ReposOwnerRepoImportPatchBody""" - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] - tfvc_project: NotRequired[str] +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ + total_count: NotRequired[int] + available_custom_deployment_protection_rule_integrations: NotRequired[ + list[CustomDeploymentRuleAppType] + ] -__all__ = ("ReposOwnerRepoImportPatchBodyType",) + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1024.py b/githubkit/versions/v2022_11_28/types/group_1024.py index f2dee5034..7540c16e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1024.py +++ b/githubkit/versions/v2022_11_28/types/group_1024.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0185 import ActionsSecretType -class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - email: NotRequired[str] - name: NotRequired[str] +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int + secrets: list[ActionsSecretType] -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1025.py b/githubkit/versions/v2022_11_28/types/group_1025.py index f8207f6ea..3ec440fb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1025.py +++ b/githubkit/versions/v2022_11_28/types/group_1025.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - use_lfs: Literal["opt_in", "opt_out"] + encrypted_value: str + key_id: str -__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1026.py b/githubkit/versions/v2022_11_28/types/group_1026.py index ca60a7364..55b8d2a42 100644 --- a/githubkit/versions/v2022_11_28/types/group_1026.py +++ b/githubkit/versions/v2022_11_28/types/group_1026.py @@ -11,9 +11,14 @@ from typing_extensions import TypedDict +from .group_0186 import ActionsVariableType -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) + total_count: int + variables: list[ActionsVariableType] + + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1027.py b/githubkit/versions/v2022_11_28/types/group_1027.py index 9285f63d1..f3a29926f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1027.py +++ b/githubkit/versions/v2022_11_28/types/group_1027.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] + name: str + value: str -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1028.py b/githubkit/versions/v2022_11_28/types/group_1028.py index e685abb43..adee73102 100644 --- a/githubkit/versions/v2022_11_28/types/group_1028.py +++ b/githubkit/versions/v2022_11_28/types/group_1028.py @@ -9,33 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - 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]] - - -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] + value: NotRequired[str] -__all__ = ( - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", - "ReposOwnerRepoIssuesPostBodyType", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1029.py b/githubkit/versions/v2022_11_28/types/group_1029.py index 4b0c546c3..eb686a699 100644 --- a/githubkit/versions/v2022_11_28/types/group_1029.py +++ b/githubkit/versions/v2022_11_28/types/group_1029.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoForksPostBodyType(TypedDict): + """ReposOwnerRepoForksPostBody""" - body: str + organization: NotRequired[str] + name: NotRequired[str] + default_branch_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoForksPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1030.py b/githubkit/versions/v2022_11_28/types/group_1030.py index 77f77960c..4c2ef3730 100644 --- a/githubkit/versions/v2022_11_28/types/group_1030.py +++ b/githubkit/versions/v2022_11_28/types/group_1030.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): + """ReposOwnerRepoGitBlobsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + content: str + encoding: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1031.py b/githubkit/versions/v2022_11_28/types/group_1031.py index 2d97e4a7a..73106315f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1031.py +++ b/githubkit/versions/v2022_11_28/types/group_1031.py @@ -9,41 +9,49 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): + """ReposOwnerRepoGitCommitsPostBody""" - 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]] + message: str + tree: str + parents: NotRequired[list[str]] + author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] + signature: NotRequired[str] -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" +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. + """ - id: NotRequired[int] name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] + email: NotRequired[str] + date: NotRequired[datetime] __all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", - "ReposOwnerRepoIssuesIssueNumberPatchBodyType", + "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", + "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", + "ReposOwnerRepoGitCommitsPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1032.py b/githubkit/versions/v2022_11_28/types/group_1032.py index 0f0f4ae84..aa4d83aff 100644 --- a/githubkit/versions/v2022_11_28/types/group_1032.py +++ b/githubkit/versions/v2022_11_28/types/group_1032.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoGitRefsPostBodyType(TypedDict): + """ReposOwnerRepoGitRefsPostBody""" - assignees: NotRequired[list[str]] + ref: str + sha: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) +__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1033.py b/githubkit/versions/v2022_11_28/types/group_1033.py index 2795b587e..95219ce12 100644 --- a/githubkit/versions/v2022_11_28/types/group_1033.py +++ b/githubkit/versions/v2022_11_28/types/group_1033.py @@ -12,10 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): + """ReposOwnerRepoGitRefsRefPatchBody""" - assignees: NotRequired[list[str]] + sha: str + force: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1034.py b/githubkit/versions/v2022_11_28/types/group_1034.py index 2585a1e0c..bf927c780 100644 --- a/githubkit/versions/v2022_11_28/types/group_1034.py +++ b/githubkit/versions/v2022_11_28/types/group_1034.py @@ -9,13 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoGitTagsPostBodyType(TypedDict): + """ReposOwnerRepoGitTagsPostBody""" - body: str + tag: str + message: str + object_: str + type: Literal["commit", "tree", "blob"] + tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) +class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ + + name: str + email: str + date: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoGitTagsPostBodyPropTaggerType", + "ReposOwnerRepoGitTagsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1035.py b/githubkit/versions/v2022_11_28/types/group_1035.py index 8653eeddb..62d4e64ac 100644 --- a/githubkit/versions/v2022_11_28/types/group_1035.py +++ b/githubkit/versions/v2022_11_28/types/group_1035.py @@ -9,13 +9,28 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoGitTreesPostBodyType(TypedDict): + """ReposOwnerRepoGitTreesPostBody""" - labels: NotRequired[list[str]] + tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] + base_tree: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) +class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: NotRequired[str] + mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] + type: NotRequired[Literal["blob", "tree", "commit"]] + sha: NotRequired[Union[str, None]] + content: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", + "ReposOwnerRepoGitTreesPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1036.py b/githubkit/versions/v2022_11_28/types/group_1036.py index 28a5135d1..44bb98073 100644 --- a/githubkit/versions/v2022_11_28/types/group_1036.py +++ b/githubkit/versions/v2022_11_28/types/group_1036.py @@ -9,24 +9,32 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoHooksPostBodyType(TypedDict): + """ReposOwnerRepoHooksPostBody""" - labels: NotRequired[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] - ] + name: NotRequired[str] + config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] + events: NotRequired[list[str]] + active: NotRequired[bool] -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" +class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): + """ReposOwnerRepoHooksPostBodyPropConfig - name: str + 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__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", + "ReposOwnerRepoHooksPostBodyPropConfigType", + "ReposOwnerRepoHooksPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1037.py b/githubkit/versions/v2022_11_28/types/group_1037.py index 4b61c7722..616829ef4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1037.py +++ b/githubkit/versions/v2022_11_28/types/group_1037.py @@ -9,13 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0011 import WebhookConfigType -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - name: str +class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdPatchBody""" + config: NotRequired[WebhookConfigType] + events: NotRequired[list[str]] + add_events: NotRequired[list[str]] + remove_events: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1038.py b/githubkit/versions/v2022_11_28/types/group_1038.py index a0fe1957d..2de12ce93 100644 --- a/githubkit/versions/v2022_11_28/types/group_1038.py +++ b/githubkit/versions/v2022_11_28/types/group_1038.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - labels: NotRequired[list[str]] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1039.py b/githubkit/versions/v2022_11_28/types/group_1039.py index 672fc26ff..02673d9bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1039.py +++ b/githubkit/versions/v2022_11_28/types/group_1039.py @@ -9,24 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" +class ReposOwnerRepoImportPutBodyType(TypedDict): + """ReposOwnerRepoImportPutBody""" - labels: NotRequired[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] - ] + vcs_url: str + vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + tfvc_project: NotRequired[str] -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", -) +__all__ = ("ReposOwnerRepoImportPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1040.py b/githubkit/versions/v2022_11_28/types/group_1040.py index 6872247a2..5f68422b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1040.py +++ b/githubkit/versions/v2022_11_28/types/group_1040.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoImportPatchBodyType(TypedDict): + """ReposOwnerRepoImportPatchBody""" - name: str + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) +__all__ = ("ReposOwnerRepoImportPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1041.py b/githubkit/versions/v2022_11_28/types/group_1041.py index 392d8c14f..f2dee5034 100644 --- a/githubkit/versions/v2022_11_28/types/group_1041.py +++ b/githubkit/versions/v2022_11_28/types/group_1041.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] + email: NotRequired[str] + name: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1042.py b/githubkit/versions/v2022_11_28/types/group_1042.py index 5d8ff2645..f8207f6ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_1042.py +++ b/githubkit/versions/v2022_11_28/types/group_1042.py @@ -13,12 +13,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): + """ReposOwnerRepoImportLfsPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + use_lfs: Literal["opt_in", "opt_out"] -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1043.py b/githubkit/versions/v2022_11_28/types/group_1043.py index 6e796683c..ca60a7364 100644 --- a/githubkit/versions/v2022_11_28/types/group_1043.py +++ b/githubkit/versions/v2022_11_28/types/group_1043.py @@ -12,10 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - sub_issue_id: int - -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1044.py b/githubkit/versions/v2022_11_28/types/group_1044.py index 294d951b6..9285f63d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1044.py +++ b/githubkit/versions/v2022_11_28/types/group_1044.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - sub_issue_id: int - replace_parent: NotRequired[bool] + permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1045.py b/githubkit/versions/v2022_11_28/types/group_1045.py index 6ffa90a5b..e685abb43 100644 --- a/githubkit/versions/v2022_11_28/types/group_1045.py +++ b/githubkit/versions/v2022_11_28/types/group_1045.py @@ -9,15 +9,33 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" +class ReposOwnerRepoIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesPostBody""" - sub_issue_id: int - after_id: NotRequired[int] - before_id: NotRequired[int] + 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__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType",) +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", + "ReposOwnerRepoIssuesPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1046.py b/githubkit/versions/v2022_11_28/types/group_1046.py index acb0bbfba..4b0c546c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1046.py +++ b/githubkit/versions/v2022_11_28/types/group_1046.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoKeysPostBodyType(TypedDict): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - title: NotRequired[str] - key: str - read_only: NotRequired[bool] + body: str -__all__ = ("ReposOwnerRepoKeysPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1047.py b/githubkit/versions/v2022_11_28/types/group_1047.py index 7cc0b1b26..77f77960c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1047.py +++ b/githubkit/versions/v2022_11_28/types/group_1047.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoLabelsPostBodyType(TypedDict): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - name: str - color: NotRequired[str] - description: NotRequired[str] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoLabelsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1048.py b/githubkit/versions/v2022_11_28/types/group_1048.py index 607085961..2d97e4a7a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1048.py +++ b/githubkit/versions/v2022_11_28/types/group_1048.py @@ -9,15 +9,41 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): - """ReposOwnerRepoLabelsNamePatchBody""" - - new_name: NotRequired[str] - color: NotRequired[str] - description: NotRequired[str] - - -__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) +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]] + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", + "ReposOwnerRepoIssuesIssueNumberPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1049.py b/githubkit/versions/v2022_11_28/types/group_1049.py index ac724c353..0f0f4ae84 100644 --- a/githubkit/versions/v2022_11_28/types/group_1049.py +++ b/githubkit/versions/v2022_11_28/types/group_1049.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - branch: str + assignees: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1050.py b/githubkit/versions/v2022_11_28/types/group_1050.py index f33bb6f09..2795b587e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1050.py +++ b/githubkit/versions/v2022_11_28/types/group_1050.py @@ -12,12 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMergesPostBodyType(TypedDict): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - base: str - head: str - commit_message: NotRequired[str] + assignees: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoMergesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1051.py b/githubkit/versions/v2022_11_28/types/group_1051.py index 17d426f88..2585a1e0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1051.py +++ b/githubkit/versions/v2022_11_28/types/group_1051.py @@ -9,18 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoMilestonesPostBodyType(TypedDict): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - title: str - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + body: str -__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1052.py b/githubkit/versions/v2022_11_28/types/group_1052.py index 1eaa2807a..8653eeddb 100644 --- a/githubkit/versions/v2022_11_28/types/group_1052.py +++ b/githubkit/versions/v2022_11_28/types/group_1052.py @@ -9,18 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - title: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + labels: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1053.py b/githubkit/versions/v2022_11_28/types/group_1053.py index c350dcdf7..28a5135d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1053.py +++ b/githubkit/versions/v2022_11_28/types/group_1053.py @@ -9,14 +9,24 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoNotificationsPutBodyType(TypedDict): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - last_read_at: NotRequired[datetime] + labels: NotRequired[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1054.py b/githubkit/versions/v2022_11_28/types/group_1054.py index 7ab2c0401..4b61c7722 100644 --- a/githubkit/versions/v2022_11_28/types/group_1054.py +++ b/githubkit/versions/v2022_11_28/types/group_1054.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - message: NotRequired[str] - url: NotRequired[str] + name: str -__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1055.py b/githubkit/versions/v2022_11_28/types/group_1055.py index cd3deab02..a0fe1957d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1055.py +++ b/githubkit/versions/v2022_11_28/types/group_1055.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - Update the source for the repository. Must include the branch name and path. - """ + labels: NotRequired[list[str]] - branch: str - path: Literal["/", "/docs"] - -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1056.py b/githubkit/versions/v2022_11_28/types/group_1056.py index d7f8a60dd..672fc26ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_1056.py +++ b/githubkit/versions/v2022_11_28/types/group_1056.py @@ -9,24 +9,24 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1055 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" -class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof0""" - - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] + labels: NotRequired[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] ] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1057.py b/githubkit/versions/v2022_11_28/types/group_1057.py index ae2ace6e1..6872247a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1057.py +++ b/githubkit/versions/v2022_11_28/types/group_1057.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_1055 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" -class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof1""" + name: str - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1058.py b/githubkit/versions/v2022_11_28/types/group_1058.py index 6cd14741f..392d8c14f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1058.py +++ b/githubkit/versions/v2022_11_28/types/group_1058.py @@ -9,24 +9,14 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1055 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" -class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof2""" + lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] - cname: Union[str, None] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1059.py b/githubkit/versions/v2022_11_28/types/group_1059.py index 03d3ed1ef..5d8ff2645 100644 --- a/githubkit/versions/v2022_11_28/types/group_1059.py +++ b/githubkit/versions/v2022_11_28/types/group_1059.py @@ -9,24 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_1055 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof3""" - - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1060.py b/githubkit/versions/v2022_11_28/types/group_1060.py index c384cd6a4..6e796683c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1060.py +++ b/githubkit/versions/v2022_11_28/types/group_1060.py @@ -9,24 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_1055 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" -class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof4""" + sub_issue_id: int - cname: NotRequired[Union[str, None]] - https_enforced: bool - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1061.py b/githubkit/versions/v2022_11_28/types/group_1061.py index 1f79f8c8a..294d951b6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1061.py +++ b/githubkit/versions/v2022_11_28/types/group_1061.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): - """ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" - The source branch and directory used to publish your Pages site. - """ + sub_issue_id: int + replace_parent: NotRequired[bool] - branch: str - path: NotRequired[Literal["/", "/docs"]] - -__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1062.py b/githubkit/versions/v2022_11_28/types/group_1062.py index 9ac9d1c9c..6ffa90a5b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1062.py +++ b/githubkit/versions/v2022_11_28/types/group_1062.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1061 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" -class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof0""" + sub_issue_id: int + after_id: NotRequired[int] + before_id: NotRequired[int] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: ReposOwnerRepoPagesPostBodyPropSourceType - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1063.py b/githubkit/versions/v2022_11_28/types/group_1063.py index e955976d1..acb0bbfba 100644 --- a/githubkit/versions/v2022_11_28/types/group_1063.py +++ b/githubkit/versions/v2022_11_28/types/group_1063.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1061 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoKeysPostBodyType(TypedDict): + """ReposOwnerRepoKeysPostBody""" -class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof1""" + title: NotRequired[str] + key: str + read_only: NotRequired[bool] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1064.py b/githubkit/versions/v2022_11_28/types/group_1064.py index 4bdb60454..7cc0b1b26 100644 --- a/githubkit/versions/v2022_11_28/types/group_1064.py +++ b/githubkit/versions/v2022_11_28/types/group_1064.py @@ -12,17 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoPagesDeploymentsPostBody +class ReposOwnerRepoLabelsPostBodyType(TypedDict): + """ReposOwnerRepoLabelsPostBody""" - The object used to create GitHub Pages deployment - """ + name: str + color: NotRequired[str] + description: NotRequired[str] - artifact_id: NotRequired[float] - artifact_url: NotRequired[str] - environment: NotRequired[str] - pages_build_version: str - oidc_token: str - -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1065.py b/githubkit/versions/v2022_11_28/types/group_1065.py index c22c267f3..607085961 100644 --- a/githubkit/versions/v2022_11_28/types/group_1065.py +++ b/githubkit/versions/v2022_11_28/types/group_1065.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): + """ReposOwnerRepoLabelsNamePatchBody""" - enabled: bool + new_name: NotRequired[str] + color: NotRequired[str] + description: NotRequired[str] -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1066.py b/githubkit/versions/v2022_11_28/types/group_1066.py index 5d8355086..ac724c353 100644 --- a/githubkit/versions/v2022_11_28/types/group_1066.py +++ b/githubkit/versions/v2022_11_28/types/group_1066.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoProjectsPostBodyType(TypedDict): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): + """ReposOwnerRepoMergeUpstreamPostBody""" - name: str - body: NotRequired[str] + branch: str -__all__ = ("ReposOwnerRepoProjectsPostBodyType",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1067.py b/githubkit/versions/v2022_11_28/types/group_1067.py index f0f4f0c6d..f33bb6f09 100644 --- a/githubkit/versions/v2022_11_28/types/group_1067.py +++ b/githubkit/versions/v2022_11_28/types/group_1067.py @@ -9,15 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0109 import CustomPropertyValueType +class ReposOwnerRepoMergesPostBodyType(TypedDict): + """ReposOwnerRepoMergesPostBody""" -class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): - """ReposOwnerRepoPropertiesValuesPatchBody""" + base: str + head: str + commit_message: NotRequired[str] - properties: list[CustomPropertyValueType] - -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) +__all__ = ("ReposOwnerRepoMergesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1068.py b/githubkit/versions/v2022_11_28/types/group_1068.py index 8e9e41f56..17d426f88 100644 --- a/githubkit/versions/v2022_11_28/types/group_1068.py +++ b/githubkit/versions/v2022_11_28/types/group_1068.py @@ -9,20 +9,18 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPostBody""" +class ReposOwnerRepoMilestonesPostBodyType(TypedDict): + """ReposOwnerRepoMilestonesPostBody""" - 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] + title: str + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoPullsPostBodyType",) +__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1069.py b/githubkit/versions/v2022_11_28/types/group_1069.py index 160987b13..1eaa2807a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1069.py +++ b/githubkit/versions/v2022_11_28/types/group_1069.py @@ -9,13 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - body: str + title: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1070.py b/githubkit/versions/v2022_11_28/types/group_1070.py index 4dc9e5008..c350dcdf7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1070.py +++ b/githubkit/versions/v2022_11_28/types/group_1070.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoNotificationsPutBodyType(TypedDict): + """ReposOwnerRepoNotificationsPutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + last_read_at: NotRequired[datetime] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1071.py b/githubkit/versions/v2022_11_28/types/group_1071.py index 1bb472545..7ab2c0401 100644 --- a/githubkit/versions/v2022_11_28/types/group_1071.py +++ b/githubkit/versions/v2022_11_28/types/group_1071.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): + """ReposOwnerRepoNotificationsPutResponse202""" - title: NotRequired[str] - body: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - base: NotRequired[str] - maintainer_can_modify: NotRequired[bool] + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1072.py b/githubkit/versions/v2022_11_28/types/group_1072.py index b0eda78e6..cd3deab02 100644 --- a/githubkit/versions/v2022_11_28/types/group_1072.py +++ b/githubkit/versions/v2022_11_28/types/group_1072.py @@ -10,22 +10,17 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - 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] + Update the source for the repository. Must include the branch name and path. + """ + branch: str + path: Literal["/", "/docs"] -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1073.py b/githubkit/versions/v2022_11_28/types/group_1073.py index f15be5df1..97b87b764 100644 --- a/githubkit/versions/v2022_11_28/types/group_1073.py +++ b/githubkit/versions/v2022_11_28/types/group_1073.py @@ -9,23 +9,24 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1072 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - body: str - commit_id: str - path: str - position: NotRequired[int] - side: NotRequired[Literal["LEFT", "RIGHT"]] - line: NotRequired[int] - start_line: NotRequired[int] - start_side: NotRequired[Literal["LEFT", "RIGHT", "side"]] - in_reply_to: NotRequired[int] - subject_type: NotRequired[Literal["line", "file"]] +class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof0""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: Literal["legacy", "workflow"] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1074.py b/githubkit/versions/v2022_11_28/types/group_1074.py index fdc9c5a0e..28f249a7e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1074.py +++ b/githubkit/versions/v2022_11_28/types/group_1074.py @@ -9,13 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_1072 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - body: str +class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof1""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1075.py b/githubkit/versions/v2022_11_28/types/group_1075.py index 743310547..e260e9a6a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1075.py +++ b/githubkit/versions/v2022_11_28/types/group_1075.py @@ -9,17 +9,24 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1072 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutBody""" - commit_title: NotRequired[str] - commit_message: NotRequired[str] - sha: NotRequired[str] - merge_method: NotRequired[Literal["merge", "squash", "rebase"]] +class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof2""" + cname: Union[str, None] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1076.py b/githubkit/versions/v2022_11_28/types/group_1076.py index 797f629f0..739be6fd9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1076.py +++ b/githubkit/versions/v2022_11_28/types/group_1076.py @@ -9,14 +9,24 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1072 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - message: NotRequired[str] - documentation_url: NotRequired[str] +class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof3""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1077.py b/githubkit/versions/v2022_11_28/types/group_1077.py index 8525d9950..658b5cbeb 100644 --- a/githubkit/versions/v2022_11_28/types/group_1077.py +++ b/githubkit/versions/v2022_11_28/types/group_1077.py @@ -9,14 +9,24 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1072 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - message: NotRequired[str] - documentation_url: NotRequired[str] +class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof4""" + cname: NotRequired[Union[str, None]] + https_enforced: bool + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1078.py b/githubkit/versions/v2022_11_28/types/group_1078.py index c92fe8585..1f79f8c8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1078.py +++ b/githubkit/versions/v2022_11_28/types/group_1078.py @@ -9,14 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): + """ReposOwnerRepoPagesPostBodyPropSource - reviewers: list[str] - team_reviewers: NotRequired[list[str]] + The source branch and directory used to publish your Pages site. + """ + branch: str + path: NotRequired[Literal["/", "/docs"]] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) + +__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1079.py b/githubkit/versions/v2022_11_28/types/group_1079.py index e461ce1cf..3a91610d4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1079.py +++ b/githubkit/versions/v2022_11_28/types/group_1079.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1078 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: NotRequired[list[str]] - team_reviewers: list[str] +class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof0""" + build_type: NotRequired[Literal["legacy", "workflow"]] + source: ReposOwnerRepoPagesPostBodyPropSourceType -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1080.py b/githubkit/versions/v2022_11_28/types/group_1080.py index 43201ae1f..b3410a95f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1080.py +++ b/githubkit/versions/v2022_11_28/types/group_1080.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1078 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - reviewers: list[str] - team_reviewers: NotRequired[list[str]] +class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof1""" + build_type: Literal["legacy", "workflow"] + source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1081.py b/githubkit/versions/v2022_11_28/types/group_1081.py index bf17592a6..4bdb60454 100644 --- a/githubkit/versions/v2022_11_28/types/group_1081.py +++ b/githubkit/versions/v2022_11_28/types/group_1081.py @@ -9,34 +9,20 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoPagesDeploymentsPostBody - commit_id: NotRequired[str] - body: NotRequired[str] - event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] - comments: NotRequired[ - list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] - ] + 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 -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - path: str - position: NotRequired[int] - body: str - line: NotRequired[int] - side: NotRequired[str] - start_line: NotRequired[int] - start_side: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", -) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1082.py b/githubkit/versions/v2022_11_28/types/group_1082.py index 05cccf0c0..c22c267f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1082.py +++ b/githubkit/versions/v2022_11_28/types/group_1082.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - body: str + enabled: bool -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1083.py b/githubkit/versions/v2022_11_28/types/group_1083.py index 412543923..5d8355086 100644 --- a/githubkit/versions/v2022_11_28/types/group_1083.py +++ b/githubkit/versions/v2022_11_28/types/group_1083.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoProjectsPostBodyType(TypedDict): + """ReposOwnerRepoProjectsPostBody""" - message: str - event: NotRequired[Literal["DISMISS"]] + name: str + body: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) +__all__ = ("ReposOwnerRepoProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1084.py b/githubkit/versions/v2022_11_28/types/group_1084.py index d03c573ae..a3046b0e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1084.py +++ b/githubkit/versions/v2022_11_28/types/group_1084.py @@ -9,15 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0114 import CustomPropertyValueType -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - body: NotRequired[str] - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] +class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: list[CustomPropertyValueType] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1085.py b/githubkit/versions/v2022_11_28/types/group_1085.py index c102fe4d6..8e9e41f56 100644 --- a/githubkit/versions/v2022_11_28/types/group_1085.py +++ b/githubkit/versions/v2022_11_28/types/group_1085.py @@ -12,10 +12,17 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPostBody""" - expected_head_sha: NotRequired[str] + title: NotRequired[str] + head: str + head_repo: NotRequired[str] + base: str + body: NotRequired[str] + maintainer_can_modify: NotRequired[bool] + draft: NotRequired[bool] + issue: NotRequired[int] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1086.py b/githubkit/versions/v2022_11_28/types/group_1086.py index e633d70f9..160987b13 100644 --- a/githubkit/versions/v2022_11_28/types/group_1086.py +++ b/githubkit/versions/v2022_11_28/types/group_1086.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - message: NotRequired[str] - url: NotRequired[str] + body: str -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1087.py b/githubkit/versions/v2022_11_28/types/group_1087.py index 4065bba0c..4dc9e5008 100644 --- a/githubkit/versions/v2022_11_28/types/group_1087.py +++ b/githubkit/versions/v2022_11_28/types/group_1087.py @@ -10,21 +10,15 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoReleasesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - 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"]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoReleasesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1088.py b/githubkit/versions/v2022_11_28/types/group_1088.py index 0ddd0a8bf..1bb472545 100644 --- a/githubkit/versions/v2022_11_28/types/group_1088.py +++ b/githubkit/versions/v2022_11_28/types/group_1088.py @@ -9,15 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberPatchBody""" - name: NotRequired[str] - label: NotRequired[str] - state: NotRequired[str] + title: NotRequired[str] + body: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + base: NotRequired[str] + maintainer_can_modify: NotRequired[bool] -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1089.py b/githubkit/versions/v2022_11_28/types/group_1089.py index 2f21e468e..b0eda78e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1089.py +++ b/githubkit/versions/v2022_11_28/types/group_1089.py @@ -9,16 +9,23 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - tag_name: str - target_commitish: NotRequired[str] - previous_tag_name: NotRequired[str] - configuration_file_path: 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__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1090.py b/githubkit/versions/v2022_11_28/types/group_1090.py index 2300351d5..f15be5df1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1090.py +++ b/githubkit/versions/v2022_11_28/types/group_1090.py @@ -13,17 +13,19 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" - - 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__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) +class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" + + body: str + commit_id: str + path: str + position: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + line: NotRequired[int] + start_line: NotRequired[int] + start_side: NotRequired[Literal["LEFT", "RIGHT", "side"]] + in_reply_to: NotRequired[int] + subject_type: NotRequired[Literal["line", "file"]] + + +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1091.py b/githubkit/versions/v2022_11_28/types/group_1091.py index d85bf8d37..fdc9c5a0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1091.py +++ b/githubkit/versions/v2022_11_28/types/group_1091.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] + body: str -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1092.py b/githubkit/versions/v2022_11_28/types/group_1092.py index 808552b15..743310547 100644 --- a/githubkit/versions/v2022_11_28/types/group_1092.py +++ b/githubkit/versions/v2022_11_28/types/group_1092.py @@ -9,73 +9,17 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0113 import RepositoryRulesetBypassActorType -from .group_0114 import RepositoryRulesetConditionsType -from .group_0125 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0126 import RepositoryRuleUpdateType -from .group_0128 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0129 import RepositoryRuleMergeQueueType -from .group_0131 import RepositoryRuleRequiredDeploymentsType -from .group_0134 import RepositoryRulePullRequestType -from .group_0136 import RepositoryRuleRequiredStatusChecksType -from .group_0138 import RepositoryRuleCommitMessagePatternType -from .group_0140 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0142 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleBranchNamePatternType -from .group_0146 import RepositoryRuleTagNamePatternType -from .group_0149 import RepositoryRuleWorkflowsType -from .group_0151 import RepositoryRuleCodeScanningType -from .group_0153 import RepositoryRuleOneof18Type +class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutBody""" -class ReposOwnerRepoRulesetsPostBodyType(TypedDict): - """ReposOwnerRepoRulesetsPostBody""" + commit_title: NotRequired[str] + commit_message: NotRequired[str] + sha: NotRequired[str] + merge_method: NotRequired[Literal["merge", "squash", "rebase"]] - name: str - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1093.py b/githubkit/versions/v2022_11_28/types/group_1093.py index 98f2f07f1..797f629f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1093.py +++ b/githubkit/versions/v2022_11_28/types/group_1093.py @@ -9,73 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0113 import RepositoryRulesetBypassActorType -from .group_0114 import RepositoryRulesetConditionsType -from .group_0125 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof17Type, - RepositoryRuleRequiredSignaturesType, -) -from .group_0126 import RepositoryRuleUpdateType -from .group_0128 import ( - RepositoryRuleOneof16Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0129 import RepositoryRuleMergeQueueType -from .group_0131 import RepositoryRuleRequiredDeploymentsType -from .group_0134 import RepositoryRulePullRequestType -from .group_0136 import RepositoryRuleRequiredStatusChecksType -from .group_0138 import RepositoryRuleCommitMessagePatternType -from .group_0140 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0142 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleBranchNamePatternType -from .group_0146 import RepositoryRuleTagNamePatternType -from .group_0149 import RepositoryRuleWorkflowsType -from .group_0151 import RepositoryRuleCodeScanningType -from .group_0153 import RepositoryRuleOneof18Type +class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" -class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" + message: NotRequired[str] + documentation_url: NotRequired[str] - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleOneof18Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1094.py b/githubkit/versions/v2022_11_28/types/group_1094.py index a4f75ebc8..8525d9950 100644 --- a/githubkit/versions/v2022_11_28/types/group_1094.py +++ b/githubkit/versions/v2022_11_28/types/group_1094.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - state: Literal["open", "resolved"] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolution_comment: NotRequired[Union[str, None]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1095.py b/githubkit/versions/v2022_11_28/types/group_1095.py index ca4fd9976..c92fe8585 100644 --- a/githubkit/versions/v2022_11_28/types/group_1095.py +++ b/githubkit/versions/v2022_11_28/types/group_1095.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType(TypedDict): - """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - reason: Literal["false_positive", "used_in_tests", "will_fix_later"] - placeholder_id: str + reviewers: list[str] + team_reviewers: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1096.py b/githubkit/versions/v2022_11_28/types/group_1096.py index f5eb2b08d..e461ce1cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1096.py +++ b/githubkit/versions/v2022_11_28/types/group_1096.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - state: Literal["error", "failure", "pending", "success"] - target_url: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - context: NotRequired[str] + reviewers: NotRequired[list[str]] + team_reviewers: list[str] -__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1097.py b/githubkit/versions/v2022_11_28/types/group_1097.py index bf3b98dcb..43201ae1f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1097.py +++ b/githubkit/versions/v2022_11_28/types/group_1097.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - subscribed: NotRequired[bool] - ignored: NotRequired[bool] + reviewers: list[str] + team_reviewers: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1098.py b/githubkit/versions/v2022_11_28/types/group_1098.py index 492fdc91e..bf17592a6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1098.py +++ b/githubkit/versions/v2022_11_28/types/group_1098.py @@ -9,13 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - pattern: str + commit_id: NotRequired[str] + body: NotRequired[str] + event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] + comments: NotRequired[ + list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] + ] -__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str + position: NotRequired[int] + body: str + line: NotRequired[int] + side: NotRequired[str] + start_line: NotRequired[int] + start_side: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1099.py b/githubkit/versions/v2022_11_28/types/group_1099.py index f6f94cfa4..05cccf0c0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1099.py +++ b/githubkit/versions/v2022_11_28/types/group_1099.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoTopicsPutBodyType(TypedDict): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - names: list[str] + body: str -__all__ = ("ReposOwnerRepoTopicsPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1100.py b/githubkit/versions/v2022_11_28/types/group_1100.py index 4f00c0f54..412543923 100644 --- a/githubkit/versions/v2022_11_28/types/group_1100.py +++ b/githubkit/versions/v2022_11_28/types/group_1100.py @@ -9,15 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTransferPostBodyType(TypedDict): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - new_owner: str - new_name: NotRequired[str] - team_ids: NotRequired[list[int]] + message: str + event: NotRequired[Literal["DISMISS"]] -__all__ = ("ReposOwnerRepoTransferPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1101.py b/githubkit/versions/v2022_11_28/types/group_1101.py index f8f62bc0c..d03c573ae 100644 --- a/githubkit/versions/v2022_11_28/types/group_1101.py +++ b/githubkit/versions/v2022_11_28/types/group_1101.py @@ -9,17 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - owner: NotRequired[str] - name: str - description: NotRequired[str] - include_all_branches: NotRequired[bool] - private: NotRequired[bool] + body: NotRequired[str] + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1102.py b/githubkit/versions/v2022_11_28/types/group_1102.py index 6accad501..c102fe4d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1102.py +++ b/githubkit/versions/v2022_11_28/types/group_1102.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdPatchBodyType(TypedDict): - """TeamsTeamIdPatchBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - 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]] + expected_head_sha: NotRequired[str] -__all__ = ("TeamsTeamIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1103.py b/githubkit/versions/v2022_11_28/types/group_1103.py index 5fc734f17..e633d70f9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1103.py +++ b/githubkit/versions/v2022_11_28/types/group_1103.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - title: str - body: str - private: NotRequired[bool] + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1104.py b/githubkit/versions/v2022_11_28/types/group_1104.py index 97be26f9a..4065bba0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1104.py +++ b/githubkit/versions/v2022_11_28/types/group_1104.py @@ -9,14 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoReleasesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesPostBody""" - title: NotRequired[str] + tag_name: str + target_commitish: NotRequired[str] + name: NotRequired[str] body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + discussion_category_name: NotRequired[str] + generate_release_notes: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1105.py b/githubkit/versions/v2022_11_28/types/group_1105.py index 49b6126e3..0ddd0a8bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1105.py +++ b/githubkit/versions/v2022_11_28/types/group_1105.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - body: str + name: NotRequired[str] + label: NotRequired[str] + state: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1106.py b/githubkit/versions/v2022_11_28/types/group_1106.py index aba26488a..2f21e468e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1106.py +++ b/githubkit/versions/v2022_11_28/types/group_1106.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - body: str + tag_name: str + target_commitish: NotRequired[str] + previous_tag_name: NotRequired[str] + configuration_file_path: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1107.py b/githubkit/versions/v2022_11_28/types/group_1107.py index ea06c9bbf..2300351d5 100644 --- a/githubkit/versions/v2022_11_28/types/group_1107.py +++ b/githubkit/versions/v2022_11_28/types/group_1107.py @@ -10,19 +10,20 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "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__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1108.py b/githubkit/versions/v2022_11_28/types/group_1108.py index 02edb1cc8..d85bf8d37 100644 --- a/githubkit/versions/v2022_11_28/types/group_1108.py +++ b/githubkit/versions/v2022_11_28/types/group_1108.py @@ -13,12 +13,10 @@ from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1109.py b/githubkit/versions/v2022_11_28/types/group_1109.py index 4c1b9ea73..7ad59110d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1109.py +++ b/githubkit/versions/v2022_11_28/types/group_1109.py @@ -9,14 +9,73 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0118 import RepositoryRulesetBypassActorType +from .group_0119 import RepositoryRulesetConditionsType +from .group_0130 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0131 import RepositoryRuleUpdateType +from .group_0133 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0134 import RepositoryRuleMergeQueueType +from .group_0136 import RepositoryRuleRequiredDeploymentsType +from .group_0139 import RepositoryRulePullRequestType +from .group_0141 import RepositoryRuleRequiredStatusChecksType +from .group_0143 import RepositoryRuleCommitMessagePatternType +from .group_0145 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0147 import RepositoryRuleCommitterEmailPatternType +from .group_0149 import RepositoryRuleBranchNamePatternType +from .group_0151 import RepositoryRuleTagNamePatternType +from .group_0154 import RepositoryRuleWorkflowsType +from .group_0156 import RepositoryRuleCodeScanningType +from .group_0158 import RepositoryRuleOneof18Type -class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): - """TeamsTeamIdMembershipsUsernamePutBody""" - role: NotRequired[Literal["member", "maintainer"]] +class ReposOwnerRepoRulesetsPostBodyType(TypedDict): + """ReposOwnerRepoRulesetsPostBody""" + name: str + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) + +__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1110.py b/githubkit/versions/v2022_11_28/types/group_1110.py index 0fc6bc372..8a86b803d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1110.py +++ b/githubkit/versions/v2022_11_28/types/group_1110.py @@ -9,14 +9,73 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0118 import RepositoryRulesetBypassActorType +from .group_0119 import RepositoryRulesetConditionsType +from .group_0130 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof17Type, + RepositoryRuleRequiredSignaturesType, +) +from .group_0131 import RepositoryRuleUpdateType +from .group_0133 import ( + RepositoryRuleOneof16Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0134 import RepositoryRuleMergeQueueType +from .group_0136 import RepositoryRuleRequiredDeploymentsType +from .group_0139 import RepositoryRulePullRequestType +from .group_0141 import RepositoryRuleRequiredStatusChecksType +from .group_0143 import RepositoryRuleCommitMessagePatternType +from .group_0145 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0147 import RepositoryRuleCommitterEmailPatternType +from .group_0149 import RepositoryRuleBranchNamePatternType +from .group_0151 import RepositoryRuleTagNamePatternType +from .group_0154 import RepositoryRuleWorkflowsType +from .group_0156 import RepositoryRuleCodeScanningType +from .group_0158 import RepositoryRuleOneof18Type -class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): - """TeamsTeamIdProjectsProjectIdPutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] +class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleOneof18Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) + +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1111.py b/githubkit/versions/v2022_11_28/types/group_1111.py index 27e574fd9..a4f75ebc8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1111.py +++ b/githubkit/versions/v2022_11_28/types/group_1111.py @@ -9,14 +9,18 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - message: NotRequired[str] - documentation_url: 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__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1112.py b/githubkit/versions/v2022_11_28/types/group_1112.py index 218231963..ca4fd9976 100644 --- a/githubkit/versions/v2022_11_28/types/group_1112.py +++ b/githubkit/versions/v2022_11_28/types/group_1112.py @@ -10,13 +10,14 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): - """TeamsTeamIdReposOwnerRepoPutBody""" +class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType(TypedDict): + """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - permission: NotRequired[Literal["pull", "push", "admin"]] + reason: Literal["false_positive", "used_in_tests", "will_fix_later"] + placeholder_id: str -__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) +__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1113.py b/githubkit/versions/v2022_11_28/types/group_1113.py index 0cc0c51fd..f5eb2b08d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1113.py +++ b/githubkit/versions/v2022_11_28/types/group_1113.py @@ -9,21 +9,17 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class UserPatchBodyType(TypedDict): - """UserPatchBody""" +class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): + """ReposOwnerRepoStatusesShaPostBody""" - 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] + state: Literal["error", "failure", "pending", "success"] + target_url: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + context: NotRequired[str] -__all__ = ("UserPatchBodyType",) +__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1114.py b/githubkit/versions/v2022_11_28/types/group_1114.py index d8d30dce5..bf3b98dcb 100644 --- a/githubkit/versions/v2022_11_28/types/group_1114.py +++ b/githubkit/versions/v2022_11_28/types/group_1114.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0078 import CodespaceType +class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): + """ReposOwnerRepoSubscriptionPutBody""" -class UserCodespacesGetResponse200Type(TypedDict): - """UserCodespacesGetResponse200""" + subscribed: NotRequired[bool] + ignored: NotRequired[bool] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("UserCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1115.py b/githubkit/versions/v2022_11_28/types/group_1115.py index ca44ecf9e..492fdc91e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1115.py +++ b/githubkit/versions/v2022_11_28/types/group_1115.py @@ -9,25 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserCodespacesPostBodyOneof0Type(TypedDict): - """UserCodespacesPostBodyOneof0""" +class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): + """ReposOwnerRepoTagsProtectionPostBody""" - 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] + pattern: str -__all__ = ("UserCodespacesPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1116.py b/githubkit/versions/v2022_11_28/types/group_1116.py index ad32a685a..f6f94cfa4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1116.py +++ b/githubkit/versions/v2022_11_28/types/group_1116.py @@ -9,33 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserCodespacesPostBodyOneof1Type(TypedDict): - """UserCodespacesPostBodyOneof1""" +class ReposOwnerRepoTopicsPutBodyType(TypedDict): + """ReposOwnerRepoTopicsPutBody""" - 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] + names: list[str] -class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int - repository_id: int - - -__all__ = ( - "UserCodespacesPostBodyOneof1PropPullRequestType", - "UserCodespacesPostBodyOneof1Type", -) +__all__ = ("ReposOwnerRepoTopicsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1117.py b/githubkit/versions/v2022_11_28/types/group_1117.py index 1e27e71b8..4f00c0f54 100644 --- a/githubkit/versions/v2022_11_28/types/group_1117.py +++ b/githubkit/versions/v2022_11_28/types/group_1117.py @@ -9,32 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserCodespacesSecretsGetResponse200Type(TypedDict): - """UserCodespacesSecretsGetResponse200""" +class ReposOwnerRepoTransferPostBodyType(TypedDict): + """ReposOwnerRepoTransferPostBody""" - total_count: int - secrets: list[CodespacesSecretType] + new_owner: str + new_name: NotRequired[str] + team_ids: NotRequired[list[int]] -class CodespacesSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: str - - -__all__ = ( - "CodespacesSecretType", - "UserCodespacesSecretsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoTransferPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1118.py b/githubkit/versions/v2022_11_28/types/group_1118.py index 6ec0707c1..f8f62bc0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1118.py +++ b/githubkit/versions/v2022_11_28/types/group_1118.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): - """UserCodespacesSecretsSecretNamePutBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - encrypted_value: NotRequired[str] - key_id: str - selected_repository_ids: NotRequired[list[Union[int, str]]] + owner: NotRequired[str] + name: str + description: NotRequired[str] + include_all_branches: NotRequired[bool] + private: NotRequired[bool] -__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1119.py b/githubkit/versions/v2022_11_28/types/group_1119.py index 9230db9c8..6accad501 100644 --- a/githubkit/versions/v2022_11_28/types/group_1119.py +++ b/githubkit/versions/v2022_11_28/types/group_1119.py @@ -9,16 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0056 import MinimalRepositoryType +class TeamsTeamIdPatchBodyType(TypedDict): + """TeamsTeamIdPatchBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + 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]] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("TeamsTeamIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1120.py b/githubkit/versions/v2022_11_28/types/group_1120.py index 69b6c64de..5fc734f17 100644 --- a/githubkit/versions/v2022_11_28/types/group_1120.py +++ b/githubkit/versions/v2022_11_28/types/group_1120.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class TeamsTeamIdDiscussionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsPostBody""" - selected_repository_ids: list[int] + title: str + body: str + private: NotRequired[bool] -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1121.py b/githubkit/versions/v2022_11_28/types/group_1121.py index 73deadc8f..97be26f9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1121.py +++ b/githubkit/versions/v2022_11_28/types/group_1121.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class UserCodespacesCodespaceNamePatchBodyType(TypedDict): - """UserCodespacesCodespaceNamePatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - machine: NotRequired[str] - display_name: NotRequired[str] - recent_folders: NotRequired[list[str]] + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1122.py b/githubkit/versions/v2022_11_28/types/group_1122.py index ec5bfb024..49b6126e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1122.py +++ b/githubkit/versions/v2022_11_28/types/group_1122.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0077 import CodespaceMachineType +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + body: str - total_count: int - machines: list[CodespaceMachineType] - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1123.py b/githubkit/versions/v2022_11_28/types/group_1123.py index 90f680aa4..aba26488a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1123.py +++ b/githubkit/versions/v2022_11_28/types/group_1123.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): - """UserCodespacesCodespaceNamePublishPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - name: NotRequired[str] - private: NotRequired[bool] + body: str -__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1124.py b/githubkit/versions/v2022_11_28/types/group_1124.py index 741f85377..ea06c9bbf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1124.py +++ b/githubkit/versions/v2022_11_28/types/group_1124.py @@ -13,10 +13,16 @@ from typing_extensions import TypedDict -class UserEmailVisibilityPatchBodyType(TypedDict): - """UserEmailVisibilityPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - visibility: Literal["public", "private"] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("UserEmailVisibilityPatchBodyType",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1125.py b/githubkit/versions/v2022_11_28/types/group_1125.py index fa445ed2c..02edb1cc8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1125.py +++ b/githubkit/versions/v2022_11_28/types/group_1125.py @@ -9,17 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class UserEmailsPostBodyOneof0Type(TypedDict): - """UserEmailsPostBodyOneof0 +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] - emails: list[str] - -__all__ = ("UserEmailsPostBodyOneof0Type",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1126.py b/githubkit/versions/v2022_11_28/types/group_1126.py index 85a754f60..4c1b9ea73 100644 --- a/githubkit/versions/v2022_11_28/types/group_1126.py +++ b/githubkit/versions/v2022_11_28/types/group_1126.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class UserEmailsDeleteBodyOneof0Type(TypedDict): - """UserEmailsDeleteBodyOneof0 +class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): + """TeamsTeamIdMembershipsUsernamePutBody""" - 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. + role: NotRequired[Literal["member", "maintainer"]] - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - emails: list[str] - - -__all__ = ("UserEmailsDeleteBodyOneof0Type",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1127.py b/githubkit/versions/v2022_11_28/types/group_1127.py index bef46dc62..0fc6bc372 100644 --- a/githubkit/versions/v2022_11_28/types/group_1127.py +++ b/githubkit/versions/v2022_11_28/types/group_1127.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class UserGpgKeysPostBodyType(TypedDict): - """UserGpgKeysPostBody""" +class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): + """TeamsTeamIdProjectsProjectIdPutBody""" - name: NotRequired[str] - armored_public_key: str + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("UserGpgKeysPostBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1128.py b/githubkit/versions/v2022_11_28/types/group_1128.py index 05274655d..27e574fd9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1128.py +++ b/githubkit/versions/v2022_11_28/types/group_1128.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0017 import InstallationType +class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): + """TeamsTeamIdProjectsProjectIdPutResponse403""" -class UserInstallationsGetResponse200Type(TypedDict): - """UserInstallationsGetResponse200""" + message: NotRequired[str] + documentation_url: NotRequired[str] - total_count: int - installations: list[InstallationType] - -__all__ = ("UserInstallationsGetResponse200Type",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1129.py b/githubkit/versions/v2022_11_28/types/group_1129.py index 2b0ca50aa..218231963 100644 --- a/githubkit/versions/v2022_11_28/types/group_1129.py +++ b/githubkit/versions/v2022_11_28/types/group_1129.py @@ -9,17 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0019 import RepositoryType +class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): + """TeamsTeamIdReposOwnerRepoPutBody""" -class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" + permission: NotRequired[Literal["pull", "push", "admin"]] - total_count: int - repository_selection: NotRequired[str] - repositories: list[RepositoryType] - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1130.py b/githubkit/versions/v2022_11_28/types/group_1130.py index 9f9dd053b..0cc0c51fd 100644 --- a/githubkit/versions/v2022_11_28/types/group_1130.py +++ b/githubkit/versions/v2022_11_28/types/group_1130.py @@ -9,11 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """UserInteractionLimitsGetResponse200Anyof1""" +class UserPatchBodyType(TypedDict): + """UserPatchBody""" + 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] -__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("UserPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1131.py b/githubkit/versions/v2022_11_28/types/group_1131.py index 5ec08a5e0..105583bf3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1131.py +++ b/githubkit/versions/v2022_11_28/types/group_1131.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0083 import CodespaceType -class UserKeysPostBodyType(TypedDict): - """UserKeysPostBody""" - title: NotRequired[str] - key: str +class UserCodespacesGetResponse200Type(TypedDict): + """UserCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("UserKeysPostBodyType",) + +__all__ = ("UserCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1132.py b/githubkit/versions/v2022_11_28/types/group_1132.py index 718052573..ca44ecf9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1132.py +++ b/githubkit/versions/v2022_11_28/types/group_1132.py @@ -10,13 +10,24 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserMembershipsOrgsOrgPatchBodyType(TypedDict): - """UserMembershipsOrgsOrgPatchBody""" +class UserCodespacesPostBodyOneof0Type(TypedDict): + """UserCodespacesPostBodyOneof0""" - state: Literal["active"] + repository_id: int + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] -__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) +__all__ = ("UserCodespacesPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1133.py b/githubkit/versions/v2022_11_28/types/group_1133.py index 586d41155..ad32a685a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1133.py +++ b/githubkit/versions/v2022_11_28/types/group_1133.py @@ -13,18 +13,29 @@ from typing_extensions import NotRequired, TypedDict -class UserMigrationsPostBodyType(TypedDict): - """UserMigrationsPostBody""" +class UserCodespacesPostBodyOneof1Type(TypedDict): + """UserCodespacesPostBodyOneof1""" - 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] + 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] -__all__ = ("UserMigrationsPostBodyType",) +class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): + """UserCodespacesPostBodyOneof1PropPullRequest + + Pull request number for this codespace + """ + + pull_request_number: int + repository_id: int + + +__all__ = ( + "UserCodespacesPostBodyOneof1PropPullRequestType", + "UserCodespacesPostBodyOneof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1134.py b/githubkit/versions/v2022_11_28/types/group_1134.py index 6393094b2..1e27e71b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1134.py +++ b/githubkit/versions/v2022_11_28/types/group_1134.py @@ -9,15 +9,32 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import TypedDict -class UserProjectsPostBodyType(TypedDict): - """UserProjectsPostBody""" +class UserCodespacesSecretsGetResponse200Type(TypedDict): + """UserCodespacesSecretsGetResponse200""" + + total_count: int + secrets: list[CodespacesSecretType] + + +class CodespacesSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ name: str - body: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: str -__all__ = ("UserProjectsPostBodyType",) +__all__ = ( + "CodespacesSecretType", + "UserCodespacesSecretsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1135.py b/githubkit/versions/v2022_11_28/types/group_1135.py index 354d7b410..6ec0707c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1135.py +++ b/githubkit/versions/v2022_11_28/types/group_1135.py @@ -9,38 +9,16 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class UserReposPostBodyType(TypedDict): - """UserReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_discussions: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - - -__all__ = ("UserReposPostBodyType",) +class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): + """UserCodespacesSecretsSecretNamePutBody""" + + encrypted_value: NotRequired[str] + key_id: str + selected_repository_ids: NotRequired[list[Union[int, str]]] + + +__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1136.py b/githubkit/versions/v2022_11_28/types/group_1136.py index 7c5bf8edc..2fd5852fa 100644 --- a/githubkit/versions/v2022_11_28/types/group_1136.py +++ b/githubkit/versions/v2022_11_28/types/group_1136.py @@ -11,16 +11,14 @@ from typing_extensions import TypedDict +from .group_0057 import MinimalRepositoryType -class UserSocialAccountsPostBodyType(TypedDict): - """UserSocialAccountsPostBody - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" - account_urls: list[str] + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("UserSocialAccountsPostBodyType",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1137.py b/githubkit/versions/v2022_11_28/types/group_1137.py index 5e8ecaf24..69b6c64de 100644 --- a/githubkit/versions/v2022_11_28/types/group_1137.py +++ b/githubkit/versions/v2022_11_28/types/group_1137.py @@ -12,15 +12,10 @@ from typing_extensions import TypedDict -class UserSocialAccountsDeleteBodyType(TypedDict): - """UserSocialAccountsDeleteBody +class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ + selected_repository_ids: list[int] - account_urls: list[str] - -__all__ = ("UserSocialAccountsDeleteBodyType",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1138.py b/githubkit/versions/v2022_11_28/types/group_1138.py index 712df953e..73deadc8f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1138.py +++ b/githubkit/versions/v2022_11_28/types/group_1138.py @@ -12,11 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class UserSshSigningKeysPostBodyType(TypedDict): - """UserSshSigningKeysPostBody""" +class UserCodespacesCodespaceNamePatchBodyType(TypedDict): + """UserCodespacesCodespaceNamePatchBody""" - title: NotRequired[str] - key: str + machine: NotRequired[str] + display_name: NotRequired[str] + recent_folders: NotRequired[list[str]] -__all__ = ("UserSshSigningKeysPostBodyType",) +__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1139.py b/githubkit/versions/v2022_11_28/types/group_1139.py index 2a9a086ef..db2c20e25 100644 --- a/githubkit/versions/v2022_11_28/types/group_1139.py +++ b/githubkit/versions/v2022_11_28/types/group_1139.py @@ -9,144 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0082 import CodespaceMachineType -class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" - attestations: NotRequired[ - list[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] +class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + total_count: int + machines: list[CodespaceMachineType] -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - bundle: NotRequired[SigstoreBundle0Type] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -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__ = ( - "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", - "SigstoreBundle0PropDsseEnvelopeType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", - "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", - "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", - "SigstoreBundle0PropVerificationMaterialType", - "SigstoreBundle0Type", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "UsersUsernameAttestationsSubjectDigestGetResponse200Type", -) +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1140.py b/githubkit/versions/v2022_11_28/types/group_1140.py new file mode 100644 index 000000000..90f680aa4 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1140.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): + """UserCodespacesCodespaceNamePublishPostBody""" + + name: NotRequired[str] + private: NotRequired[bool] + + +__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1141.py b/githubkit/versions/v2022_11_28/types/group_1141.py new file mode 100644 index 000000000..741f85377 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1141.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import TypedDict + + +class UserEmailVisibilityPatchBodyType(TypedDict): + """UserEmailVisibilityPatchBody""" + + visibility: Literal["public", "private"] + + +__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1142.py b/githubkit/versions/v2022_11_28/types/group_1142.py new file mode 100644 index 000000000..fa445ed2c --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1142.py @@ -0,0 +1,25 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserEmailsPostBodyOneof0Type(TypedDict): + """UserEmailsPostBodyOneof0 + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: list[str] + + +__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1143.py b/githubkit/versions/v2022_11_28/types/group_1143.py new file mode 100644 index 000000000..85a754f60 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1143.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserEmailsDeleteBodyOneof0Type(TypedDict): + """UserEmailsDeleteBodyOneof0 + + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: list[str] + + +__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1144.py b/githubkit/versions/v2022_11_28/types/group_1144.py new file mode 100644 index 000000000..bef46dc62 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1144.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserGpgKeysPostBodyType(TypedDict): + """UserGpgKeysPostBody""" + + name: NotRequired[str] + armored_public_key: str + + +__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1145.py b/githubkit/versions/v2022_11_28/types/group_1145.py new file mode 100644 index 000000000..069eb3383 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1145.py @@ -0,0 +1,24 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + +from .group_0018 import InstallationType + + +class UserInstallationsGetResponse200Type(TypedDict): + """UserInstallationsGetResponse200""" + + total_count: int + installations: list[InstallationType] + + +__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1146.py b/githubkit/versions/v2022_11_28/types/group_1146.py new file mode 100644 index 000000000..8e85a1d81 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1146.py @@ -0,0 +1,25 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + +from .group_0020 import RepositoryType + + +class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + + total_count: int + repository_selection: NotRequired[str] + repositories: list[RepositoryType] + + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1147.py b/githubkit/versions/v2022_11_28/types/group_1147.py new file mode 100644 index 000000000..9f9dd053b --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1147.py @@ -0,0 +1,19 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """UserInteractionLimitsGetResponse200Anyof1""" + + +__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1148.py b/githubkit/versions/v2022_11_28/types/group_1148.py new file mode 100644 index 000000000..5ec08a5e0 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1148.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserKeysPostBodyType(TypedDict): + """UserKeysPostBody""" + + title: NotRequired[str] + key: str + + +__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1149.py b/githubkit/versions/v2022_11_28/types/group_1149.py new file mode 100644 index 000000000..718052573 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1149.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import TypedDict + + +class UserMembershipsOrgsOrgPatchBodyType(TypedDict): + """UserMembershipsOrgsOrgPatchBody""" + + state: Literal["active"] + + +__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1150.py b/githubkit/versions/v2022_11_28/types/group_1150.py new file mode 100644 index 000000000..586d41155 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1150.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class UserMigrationsPostBodyType(TypedDict): + """UserMigrationsPostBody""" + + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[list[Literal["repositories"]]] + repositories: list[str] + + +__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1151.py b/githubkit/versions/v2022_11_28/types/group_1151.py new file mode 100644 index 000000000..6393094b2 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1151.py @@ -0,0 +1,23 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union +from typing_extensions import NotRequired, TypedDict + + +class UserProjectsPostBodyType(TypedDict): + """UserProjectsPostBody""" + + name: str + body: NotRequired[Union[str, None]] + + +__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1152.py b/githubkit/versions/v2022_11_28/types/group_1152.py new file mode 100644 index 000000000..354d7b410 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1152.py @@ -0,0 +1,46 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class UserReposPostBodyType(TypedDict): + """UserReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_discussions: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + + +__all__ = ("UserReposPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1153.py b/githubkit/versions/v2022_11_28/types/group_1153.py new file mode 100644 index 000000000..7c5bf8edc --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1153.py @@ -0,0 +1,26 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserSocialAccountsPostBodyType(TypedDict): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] + + +__all__ = ("UserSocialAccountsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1154.py b/githubkit/versions/v2022_11_28/types/group_1154.py new file mode 100644 index 000000000..5e8ecaf24 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1154.py @@ -0,0 +1,26 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserSocialAccountsDeleteBodyType(TypedDict): + """UserSocialAccountsDeleteBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] + + +__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1155.py b/githubkit/versions/v2022_11_28/types/group_1155.py new file mode 100644 index 000000000..712df953e --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1155.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserSshSigningKeysPostBodyType(TypedDict): + """UserSshSigningKeysPostBody""" + + title: NotRequired[str] + key: str + + +__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1156.py b/githubkit/versions/v2022_11_28/types/group_1156.py new file mode 100644 index 000000000..2a9a086ef --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1156.py @@ -0,0 +1,152 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union +from typing_extensions import NotRequired, TypedDict + + +class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: NotRequired[ + list[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[SigstoreBundle0Type] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +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__ = ( + "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", + "SigstoreBundle0PropDsseEnvelopeType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", + "SigstoreBundle0PropVerificationMaterialType", + "SigstoreBundle0Type", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", +)